From f39ab76567e4a8a6d8cd3fbb9a983c06d44697f6 Mon Sep 17 00:00:00 2001 From: Kubernetes Publisher Date: Fri, 21 Nov 2025 03:26:08 +0000 Subject: [PATCH 1/4] Automated openapi generation from release-1.34 Signed-off-by: Kubernetes Publisher --- gen | 1 + kubernetes/.openapi-generator/COMMIT | 4 +- kubernetes/.openapi-generator/VERSION | 2 +- kubernetes/api/openapi.yaml | 14324 ++++++++-------- .../client/openapi/ApiCallback.java | 23 +- .../kubernetes/client/openapi/ApiClient.java | 94 +- .../client/openapi/ApiException.java | 28 +- .../client/openapi/ApiResponse.java | 25 +- .../client/openapi/Configuration.java | 27 +- .../openapi/GzipRequestInterceptor.java | 23 +- .../io/kubernetes/client/openapi/JSON.java | 59 +- .../io/kubernetes/client/openapi/Pair.java | 75 +- .../client/openapi/ProgressRequestBody.java | 23 +- .../client/openapi/ProgressResponseBody.java | 23 +- .../client/openapi/ServerConfiguration.java | 25 +- .../client/openapi/ServerVariable.java | 25 +- .../kubernetes/client/openapi/StringUtil.java | 25 +- .../apis/AdmissionregistrationApi.java | 25 +- .../apis/AdmissionregistrationV1Api.java | 87 +- .../AdmissionregistrationV1alpha1Api.java | 53 +- .../apis/AdmissionregistrationV1beta1Api.java | 53 +- .../client/openapi/apis/ApiextensionsApi.java | 25 +- .../openapi/apis/ApiextensionsV1Api.java | 45 +- .../openapi/apis/ApiregistrationApi.java | 25 +- .../openapi/apis/ApiregistrationV1Api.java | 45 +- .../client/openapi/apis/ApisApi.java | 25 +- .../client/openapi/apis/AppsApi.java | 25 +- .../client/openapi/apis/AppsV1Api.java | 147 +- .../openapi/apis/AuthenticationApi.java | 25 +- .../openapi/apis/AuthenticationV1Api.java | 29 +- .../client/openapi/apis/AuthorizationApi.java | 25 +- .../openapi/apis/AuthorizationV1Api.java | 33 +- .../client/openapi/apis/AutoscalingApi.java | 25 +- .../client/openapi/apis/AutoscalingV1Api.java | 47 +- .../client/openapi/apis/AutoscalingV2Api.java | 47 +- .../client/openapi/apis/BatchApi.java | 25 +- .../client/openapi/apis/BatchV1Api.java | 69 +- .../client/openapi/apis/CertificatesApi.java | 25 +- .../openapi/apis/CertificatesV1Api.java | 51 +- .../openapi/apis/CertificatesV1alpha1Api.java | 61 +- .../openapi/apis/CertificatesV1beta1Api.java | 39 +- .../client/openapi/apis/CoordinationApi.java | 25 +- .../openapi/apis/CoordinationV1Api.java | 41 +- .../openapi/apis/CoordinationV1alpha2Api.java | 41 +- .../openapi/apis/CoordinationV1beta1Api.java | 41 +- .../client/openapi/apis/CoreApi.java | 25 +- .../client/openapi/apis/CoreV1Api.java | 435 +- .../client/openapi/apis/CustomObjectsApi.java | 79 +- .../client/openapi/apis/DiscoveryApi.java | 25 +- .../client/openapi/apis/DiscoveryV1Api.java | 41 +- .../client/openapi/apis/EventsApi.java | 25 +- .../client/openapi/apis/EventsV1Api.java | 41 +- .../openapi/apis/FlowcontrolApiserverApi.java | 25 +- .../apis/FlowcontrolApiserverV1Api.java | 65 +- .../openapi/apis/InternalApiserverApi.java | 25 +- .../apis/InternalApiserverV1alpha1Api.java | 45 +- .../client/openapi/apis/LogsApi.java | 31 +- .../client/openapi/apis/NetworkingApi.java | 25 +- .../client/openapi/apis/NetworkingV1Api.java | 111 +- .../openapi/apis/NetworkingV1beta1Api.java | 59 +- .../client/openapi/apis/NodeApi.java | 25 +- .../client/openapi/apis/NodeV1Api.java | 39 +- .../client/openapi/apis/OpenidApi.java | 25 +- .../client/openapi/apis/PolicyApi.java | 25 +- .../client/openapi/apis/PolicyV1Api.java | 47 +- .../openapi/apis/RbacAuthorizationApi.java | 25 +- .../openapi/apis/RbacAuthorizationV1Api.java | 85 +- .../client/openapi/apis/ResourceApi.java | 25 +- .../client/openapi/apis/ResourceV1Api.java | 91 +- .../openapi/apis/ResourceV1alpha3Api.java | 39 +- .../openapi/apis/ResourceV1beta1Api.java | 91 +- .../openapi/apis/ResourceV1beta2Api.java | 91 +- .../client/openapi/apis/SchedulingApi.java | 25 +- .../client/openapi/apis/SchedulingV1Api.java | 39 +- .../client/openapi/apis/StorageApi.java | 25 +- .../client/openapi/apis/StorageV1Api.java | 117 +- .../openapi/apis/StorageV1alpha1Api.java | 39 +- .../openapi/apis/StorageV1beta1Api.java | 39 +- .../openapi/apis/StoragemigrationApi.java | 25 +- .../apis/StoragemigrationV1alpha1Api.java | 45 +- .../client/openapi/apis/VersionApi.java | 25 +- .../client/openapi/apis/WellKnownApi.java | 25 +- .../client/openapi/auth/ApiKeyAuth.java | 25 +- .../client/openapi/auth/Authentication.java | 25 +- .../client/openapi/auth/HttpBasicAuth.java | 23 +- .../client/openapi/auth/HttpBearerAuth.java | 25 +- .../openapi/models/AbstractOpenApiSchema.java | 25 +- ...missionregistrationV1ServiceReference.java | 50 +- ...sionregistrationV1WebhookClientConfig.java | 41 +- .../ApiextensionsV1ServiceReference.java | 50 +- .../ApiextensionsV1WebhookClientConfig.java | 41 +- .../ApiregistrationV1ServiceReference.java | 43 +- .../models/AuthenticationV1TokenRequest.java | 48 +- .../openapi/models/CoreV1EndpointPort.java | 49 +- .../client/openapi/models/CoreV1Event.java | 73 +- .../openapi/models/CoreV1EventList.java | 49 +- .../openapi/models/CoreV1EventSeries.java | 38 +- .../openapi/models/CoreV1ResourceClaim.java | 45 +- .../models/DiscoveryV1EndpointPort.java | 46 +- .../client/openapi/models/EventsV1Event.java | 72 +- .../openapi/models/EventsV1EventList.java | 49 +- .../openapi/models/EventsV1EventSeries.java | 42 +- .../openapi/models/FlowcontrolV1Subject.java | 45 +- .../client/openapi/models/RbacV1Subject.java | 52 +- .../models/ResourceV1ResourceClaim.java | 48 +- .../openapi/models/StorageV1TokenRequest.java | 43 +- .../client/openapi/models/V1APIGroup.java | 56 +- .../client/openapi/models/V1APIGroupList.java | 48 +- .../client/openapi/models/V1APIResource.java | 71 +- .../openapi/models/V1APIResourceList.java | 52 +- .../client/openapi/models/V1APIService.java | 45 +- .../openapi/models/V1APIServiceCondition.java | 53 +- .../openapi/models/V1APIServiceList.java | 49 +- .../openapi/models/V1APIServiceSpec.java | 51 +- .../openapi/models/V1APIServiceStatus.java | 39 +- .../client/openapi/models/V1APIVersions.java | 52 +- .../V1AWSElasticBlockStoreVolumeSource.java | 47 +- .../client/openapi/models/V1Affinity.java | 39 +- .../openapi/models/V1AggregationRule.java | 39 +- .../models/V1AllocatedDeviceStatus.java | 58 +- .../openapi/models/V1AllocationResult.java | 39 +- .../openapi/models/V1AppArmorProfile.java | 45 +- .../openapi/models/V1AttachedVolume.java | 46 +- .../openapi/models/V1AuditAnnotation.java | 46 +- .../models/V1AzureDiskVolumeSource.java | 56 +- .../V1AzureFilePersistentVolumeSource.java | 50 +- .../models/V1AzureFileVolumeSource.java | 47 +- .../client/openapi/models/V1Binding.java | 47 +- .../models/V1BoundObjectReference.java | 48 +- .../openapi/models/V1CELDeviceSelector.java | 42 +- .../client/openapi/models/V1CSIDriver.java | 47 +- .../openapi/models/V1CSIDriverList.java | 49 +- .../openapi/models/V1CSIDriverSpec.java | 51 +- .../client/openapi/models/V1CSINode.java | 47 +- .../openapi/models/V1CSINodeDriver.java | 50 +- .../client/openapi/models/V1CSINodeList.java | 49 +- .../client/openapi/models/V1CSINodeSpec.java | 42 +- .../models/V1CSIPersistentVolumeSource.java | 56 +- .../openapi/models/V1CSIStorageCapacity.java | 56 +- .../models/V1CSIStorageCapacityList.java | 49 +- .../openapi/models/V1CSIVolumeSource.java | 48 +- .../client/openapi/models/V1Capabilities.java | 42 +- .../models/V1CapacityRequestPolicy.java | 43 +- .../models/V1CapacityRequestPolicyRange.java | 48 +- .../models/V1CapacityRequirements.java | 37 +- .../V1CephFSPersistentVolumeSource.java | 53 +- .../openapi/models/V1CephFSVolumeSource.java | 53 +- .../models/V1CertificateSigningRequest.java | 48 +- .../V1CertificateSigningRequestCondition.java | 54 +- .../V1CertificateSigningRequestList.java | 49 +- .../V1CertificateSigningRequestSpec.java | 58 +- .../V1CertificateSigningRequestStatus.java | 40 +- .../V1CinderPersistentVolumeSource.java | 47 +- .../openapi/models/V1CinderVolumeSource.java | 47 +- .../openapi/models/V1ClientIPConfig.java | 37 +- .../client/openapi/models/V1ClusterRole.java | 47 +- .../openapi/models/V1ClusterRoleBinding.java | 50 +- .../models/V1ClusterRoleBindingList.java | 49 +- .../openapi/models/V1ClusterRoleList.java | 49 +- .../V1ClusterTrustBundleProjection.java | 50 +- .../openapi/models/V1ComponentCondition.java | 52 +- .../openapi/models/V1ComponentStatus.java | 46 +- .../openapi/models/V1ComponentStatusList.java | 49 +- .../client/openapi/models/V1Condition.java | 57 +- .../client/openapi/models/V1ConfigMap.java | 46 +- .../openapi/models/V1ConfigMapEnvSource.java | 40 +- .../models/V1ConfigMapKeySelector.java | 46 +- .../openapi/models/V1ConfigMapList.java | 49 +- .../models/V1ConfigMapNodeConfigSource.java | 56 +- .../openapi/models/V1ConfigMapProjection.java | 43 +- .../models/V1ConfigMapVolumeSource.java | 44 +- .../client/openapi/models/V1Container.java | 96 +- .../V1ContainerExtendedResourceRequest.java | 50 +- .../openapi/models/V1ContainerImage.java | 40 +- .../openapi/models/V1ContainerPort.java | 50 +- .../models/V1ContainerResizePolicy.java | 46 +- .../models/V1ContainerRestartRule.java | 43 +- .../V1ContainerRestartRuleOnExitCodes.java | 45 +- .../openapi/models/V1ContainerState.java | 39 +- .../models/V1ContainerStateRunning.java | 37 +- .../models/V1ContainerStateTerminated.java | 52 +- .../models/V1ContainerStateWaiting.java | 42 +- .../openapi/models/V1ContainerStatus.java | 72 +- .../openapi/models/V1ContainerUser.java | 37 +- .../openapi/models/V1ControllerRevision.java | 48 +- .../models/V1ControllerRevisionList.java | 49 +- .../client/openapi/models/V1Counter.java | 42 +- .../client/openapi/models/V1CounterSet.java | 44 +- .../client/openapi/models/V1CronJob.java | 45 +- .../client/openapi/models/V1CronJobList.java | 49 +- .../client/openapi/models/V1CronJobSpec.java | 54 +- .../openapi/models/V1CronJobStatus.java | 41 +- .../models/V1CrossVersionObjectReference.java | 49 +- .../V1CustomResourceColumnDefinition.java | 57 +- .../models/V1CustomResourceConversion.java | 43 +- .../models/V1CustomResourceDefinition.java | 48 +- .../V1CustomResourceDefinitionCondition.java | 53 +- .../V1CustomResourceDefinitionList.java | 49 +- .../V1CustomResourceDefinitionNames.java | 58 +- .../V1CustomResourceDefinitionSpec.java | 54 +- .../V1CustomResourceDefinitionStatus.java | 43 +- .../V1CustomResourceDefinitionVersion.java | 58 +- .../V1CustomResourceSubresourceScale.java | 49 +- .../models/V1CustomResourceSubresources.java | 38 +- .../models/V1CustomResourceValidation.java | 37 +- .../openapi/models/V1DaemonEndpoint.java | 40 +- .../client/openapi/models/V1DaemonSet.java | 45 +- .../openapi/models/V1DaemonSetCondition.java | 53 +- .../openapi/models/V1DaemonSetList.java | 49 +- .../openapi/models/V1DaemonSetSpec.java | 45 +- .../openapi/models/V1DaemonSetStatus.java | 54 +- .../models/V1DaemonSetUpdateStrategy.java | 40 +- .../openapi/models/V1DeleteOptions.java | 52 +- .../client/openapi/models/V1Deployment.java | 45 +- .../openapi/models/V1DeploymentCondition.java | 54 +- .../openapi/models/V1DeploymentList.java | 49 +- .../openapi/models/V1DeploymentSpec.java | 48 +- .../openapi/models/V1DeploymentStatus.java | 47 +- .../openapi/models/V1DeploymentStrategy.java | 40 +- .../client/openapi/models/V1Device.java | 63 +- .../V1DeviceAllocationConfiguration.java | 46 +- .../models/V1DeviceAllocationResult.java | 42 +- .../openapi/models/V1DeviceAttribute.java | 44 +- .../openapi/models/V1DeviceCapacity.java | 43 +- .../client/openapi/models/V1DeviceClaim.java | 45 +- .../models/V1DeviceClaimConfiguration.java | 40 +- .../client/openapi/models/V1DeviceClass.java | 47 +- .../models/V1DeviceClassConfiguration.java | 37 +- .../openapi/models/V1DeviceClassList.java | 49 +- .../openapi/models/V1DeviceClassSpec.java | 45 +- .../openapi/models/V1DeviceConstraint.java | 45 +- .../models/V1DeviceCounterConsumption.java | 44 +- .../openapi/models/V1DeviceRequest.java | 46 +- .../V1DeviceRequestAllocationResult.java | 68 +- .../openapi/models/V1DeviceSelector.java | 37 +- .../openapi/models/V1DeviceSubRequest.java | 57 +- .../client/openapi/models/V1DeviceTaint.java | 50 +- .../openapi/models/V1DeviceToleration.java | 49 +- .../models/V1DownwardAPIProjection.java | 39 +- .../models/V1DownwardAPIVolumeFile.java | 45 +- .../models/V1DownwardAPIVolumeSource.java | 40 +- .../models/V1EmptyDirVolumeSource.java | 42 +- .../client/openapi/models/V1Endpoint.java | 55 +- .../openapi/models/V1EndpointAddress.java | 49 +- .../openapi/models/V1EndpointConditions.java | 39 +- .../openapi/models/V1EndpointHints.java | 42 +- .../openapi/models/V1EndpointSlice.java | 56 +- .../openapi/models/V1EndpointSliceList.java | 49 +- .../openapi/models/V1EndpointSubset.java | 45 +- .../client/openapi/models/V1Endpoints.java | 46 +- .../openapi/models/V1EndpointsList.java | 49 +- .../openapi/models/V1EnvFromSource.java | 41 +- .../client/openapi/models/V1EnvVar.java | 46 +- .../client/openapi/models/V1EnvVarSource.java | 41 +- .../openapi/models/V1EphemeralContainer.java | 99 +- .../models/V1EphemeralVolumeSource.java | 37 +- .../client/openapi/models/V1EventSource.java | 42 +- .../client/openapi/models/V1Eviction.java | 44 +- .../openapi/models/V1ExactDeviceRequest.java | 54 +- .../client/openapi/models/V1ExecAction.java | 39 +- .../V1ExemptPriorityLevelConfiguration.java | 38 +- .../openapi/models/V1ExpressionWarning.java | 46 +- .../models/V1ExternalDocumentation.java | 42 +- .../openapi/models/V1FCVolumeSource.java | 47 +- .../models/V1FieldSelectorAttributes.java | 42 +- .../models/V1FieldSelectorRequirement.java | 49 +- .../openapi/models/V1FileKeySelector.java | 51 +- .../models/V1FlexPersistentVolumeSource.java | 48 +- .../openapi/models/V1FlexVolumeSource.java | 48 +- .../openapi/models/V1FlockerVolumeSource.java | 42 +- .../models/V1FlowDistinguisherMethod.java | 42 +- .../client/openapi/models/V1FlowSchema.java | 45 +- .../openapi/models/V1FlowSchemaCondition.java | 49 +- .../openapi/models/V1FlowSchemaList.java | 49 +- .../openapi/models/V1FlowSchemaSpec.java | 45 +- .../openapi/models/V1FlowSchemaStatus.java | 39 +- .../client/openapi/models/V1ForNode.java | 42 +- .../client/openapi/models/V1ForZone.java | 42 +- .../V1GCEPersistentDiskVolumeSource.java | 47 +- .../client/openapi/models/V1GRPCAction.java | 43 +- .../openapi/models/V1GitRepoVolumeSource.java | 48 +- .../V1GlusterfsPersistentVolumeSource.java | 50 +- .../models/V1GlusterfsVolumeSource.java | 47 +- .../client/openapi/models/V1GroupSubject.java | 42 +- .../models/V1GroupVersionForDiscovery.java | 46 +- .../openapi/models/V1HTTPGetAction.java | 54 +- .../client/openapi/models/V1HTTPHeader.java | 46 +- .../openapi/models/V1HTTPIngressPath.java | 47 +- .../models/V1HTTPIngressRuleValue.java | 42 +- .../models/V1HorizontalPodAutoscaler.java | 45 +- .../models/V1HorizontalPodAutoscalerList.java | 49 +- .../models/V1HorizontalPodAutoscalerSpec.java | 44 +- .../V1HorizontalPodAutoscalerStatus.java | 45 +- .../client/openapi/models/V1HostAlias.java | 45 +- .../client/openapi/models/V1HostIP.java | 42 +- .../models/V1HostPathVolumeSource.java | 45 +- .../client/openapi/models/V1IPAddress.java | 44 +- .../openapi/models/V1IPAddressList.java | 49 +- .../openapi/models/V1IPAddressSpec.java | 40 +- .../client/openapi/models/V1IPBlock.java | 45 +- .../models/V1ISCSIPersistentVolumeSource.java | 64 +- .../openapi/models/V1ISCSIVolumeSource.java | 64 +- .../openapi/models/V1ImageVolumeSource.java | 42 +- .../client/openapi/models/V1Ingress.java | 45 +- .../openapi/models/V1IngressBackend.java | 38 +- .../client/openapi/models/V1IngressClass.java | 44 +- .../openapi/models/V1IngressClassList.java | 49 +- .../V1IngressClassParametersReference.java | 55 +- .../openapi/models/V1IngressClassSpec.java | 40 +- .../client/openapi/models/V1IngressList.java | 49 +- .../models/V1IngressLoadBalancerIngress.java | 45 +- .../models/V1IngressLoadBalancerStatus.java | 39 +- .../openapi/models/V1IngressPortStatus.java | 47 +- .../client/openapi/models/V1IngressRule.java | 40 +- .../models/V1IngressServiceBackend.java | 43 +- .../client/openapi/models/V1IngressSpec.java | 46 +- .../openapi/models/V1IngressStatus.java | 37 +- .../client/openapi/models/V1IngressTLS.java | 42 +- .../openapi/models/V1JSONSchemaProps.java | 114 +- .../client/openapi/models/V1Job.java | 45 +- .../client/openapi/models/V1JobCondition.java | 54 +- .../client/openapi/models/V1JobList.java | 49 +- .../client/openapi/models/V1JobSpec.java | 61 +- .../client/openapi/models/V1JobStatus.java | 53 +- .../openapi/models/V1JobTemplateSpec.java | 38 +- .../client/openapi/models/V1KeyToPath.java | 47 +- .../openapi/models/V1LabelSelector.java | 40 +- .../models/V1LabelSelectorAttributes.java | 42 +- .../models/V1LabelSelectorRequirement.java | 49 +- .../client/openapi/models/V1Lease.java | 44 +- .../client/openapi/models/V1LeaseList.java | 49 +- .../client/openapi/models/V1LeaseSpec.java | 49 +- .../client/openapi/models/V1Lifecycle.java | 41 +- .../openapi/models/V1LifecycleHandler.java | 40 +- .../client/openapi/models/V1LimitRange.java | 44 +- .../openapi/models/V1LimitRangeItem.java | 47 +- .../openapi/models/V1LimitRangeList.java | 49 +- .../openapi/models/V1LimitRangeSpec.java | 42 +- .../openapi/models/V1LimitResponse.java | 43 +- .../V1LimitedPriorityLevelConfiguration.java | 40 +- .../openapi/models/V1LinuxContainerUser.java | 45 +- .../client/openapi/models/V1ListMeta.java | 49 +- .../openapi/models/V1LoadBalancerIngress.java | 48 +- .../openapi/models/V1LoadBalancerStatus.java | 39 +- .../models/V1LocalObjectReference.java | 39 +- .../models/V1LocalSubjectAccessReview.java | 48 +- .../openapi/models/V1LocalVolumeSource.java | 45 +- .../openapi/models/V1ManagedFieldsEntry.java | 53 +- .../openapi/models/V1MatchCondition.java | 46 +- .../openapi/models/V1MatchResources.java | 47 +- .../openapi/models/V1ModifyVolumeStatus.java | 45 +- .../openapi/models/V1MutatingWebhook.java | 70 +- .../V1MutatingWebhookConfiguration.java | 46 +- .../V1MutatingWebhookConfigurationList.java | 49 +- .../openapi/models/V1NFSVolumeSource.java | 47 +- .../models/V1NamedRuleWithOperations.java | 54 +- .../client/openapi/models/V1Namespace.java | 45 +- .../openapi/models/V1NamespaceCondition.java | 53 +- .../openapi/models/V1NamespaceList.java | 49 +- .../openapi/models/V1NamespaceSpec.java | 39 +- .../openapi/models/V1NamespaceStatus.java | 42 +- .../openapi/models/V1NetworkDeviceData.java | 45 +- .../openapi/models/V1NetworkPolicy.java | 44 +- .../models/V1NetworkPolicyEgressRule.java | 42 +- .../models/V1NetworkPolicyIngressRule.java | 42 +- .../openapi/models/V1NetworkPolicyList.java | 49 +- .../openapi/models/V1NetworkPolicyPeer.java | 39 +- .../openapi/models/V1NetworkPolicyPort.java | 43 +- .../openapi/models/V1NetworkPolicySpec.java | 46 +- .../client/openapi/models/V1Node.java | 45 +- .../client/openapi/models/V1NodeAddress.java | 46 +- .../client/openapi/models/V1NodeAffinity.java | 40 +- .../openapi/models/V1NodeCondition.java | 54 +- .../openapi/models/V1NodeConfigSource.java | 37 +- .../openapi/models/V1NodeConfigStatus.java | 42 +- .../openapi/models/V1NodeDaemonEndpoints.java | 37 +- .../client/openapi/models/V1NodeFeatures.java | 37 +- .../client/openapi/models/V1NodeList.java | 49 +- .../openapi/models/V1NodeRuntimeHandler.java | 40 +- .../models/V1NodeRuntimeHandlerFeatures.java | 38 +- .../client/openapi/models/V1NodeSelector.java | 42 +- .../models/V1NodeSelectorRequirement.java | 49 +- .../openapi/models/V1NodeSelectorTerm.java | 42 +- .../client/openapi/models/V1NodeSpec.java | 53 +- .../client/openapi/models/V1NodeStatus.java | 63 +- .../openapi/models/V1NodeSwapStatus.java | 37 +- .../openapi/models/V1NodeSystemInfo.java | 79 +- .../models/V1NonResourceAttributes.java | 42 +- .../models/V1NonResourcePolicyRule.java | 46 +- .../openapi/models/V1NonResourceRule.java | 45 +- .../openapi/models/V1ObjectFieldSelector.java | 45 +- .../client/openapi/models/V1ObjectMeta.java | 69 +- .../openapi/models/V1ObjectReference.java | 57 +- .../models/V1OpaqueDeviceConfiguration.java | 44 +- .../client/openapi/models/V1Overhead.java | 37 +- .../openapi/models/V1OwnerReference.java | 56 +- .../client/openapi/models/V1ParamKind.java | 42 +- .../client/openapi/models/V1ParamRef.java | 46 +- .../openapi/models/V1ParentReference.java | 52 +- .../openapi/models/V1PersistentVolume.java | 45 +- .../models/V1PersistentVolumeClaim.java | 45 +- .../V1PersistentVolumeClaimCondition.java | 54 +- .../models/V1PersistentVolumeClaimList.java | 49 +- .../models/V1PersistentVolumeClaimSpec.java | 55 +- .../models/V1PersistentVolumeClaimStatus.java | 52 +- .../V1PersistentVolumeClaimTemplate.java | 41 +- .../V1PersistentVolumeClaimVolumeSource.java | 43 +- .../models/V1PersistentVolumeList.java | 49 +- .../models/V1PersistentVolumeSpec.java | 79 +- .../models/V1PersistentVolumeStatus.java | 46 +- .../V1PhotonPersistentDiskVolumeSource.java | 45 +- .../client/openapi/models/V1Pod.java | 45 +- .../client/openapi/models/V1PodAffinity.java | 42 +- .../openapi/models/V1PodAffinityTerm.java | 53 +- .../openapi/models/V1PodAntiAffinity.java | 42 +- .../models/V1PodCertificateProjection.java | 56 +- .../client/openapi/models/V1PodCondition.java | 55 +- .../client/openapi/models/V1PodDNSConfig.java | 45 +- .../openapi/models/V1PodDNSConfigOption.java | 42 +- .../openapi/models/V1PodDisruptionBudget.java | 45 +- .../models/V1PodDisruptionBudgetList.java | 49 +- .../models/V1PodDisruptionBudgetSpec.java | 46 +- .../models/V1PodDisruptionBudgetStatus.java | 51 +- .../V1PodExtendedResourceClaimStatus.java | 46 +- .../openapi/models/V1PodFailurePolicy.java | 42 +- ...odFailurePolicyOnExitCodesRequirement.java | 49 +- ...odFailurePolicyOnPodConditionsPattern.java | 46 +- .../models/V1PodFailurePolicyRule.java | 46 +- .../client/openapi/models/V1PodIP.java | 42 +- .../client/openapi/models/V1PodList.java | 49 +- .../client/openapi/models/V1PodOS.java | 42 +- .../openapi/models/V1PodReadinessGate.java | 42 +- .../openapi/models/V1PodResourceClaim.java | 48 +- .../models/V1PodResourceClaimStatus.java | 45 +- .../openapi/models/V1PodSchedulingGate.java | 42 +- .../openapi/models/V1PodSecurityContext.java | 59 +- .../client/openapi/models/V1PodSpec.java | 126 +- .../client/openapi/models/V1PodStatus.java | 84 +- .../client/openapi/models/V1PodTemplate.java | 44 +- .../openapi/models/V1PodTemplateList.java | 49 +- .../openapi/models/V1PodTemplateSpec.java | 38 +- .../client/openapi/models/V1PolicyRule.java | 54 +- .../models/V1PolicyRulesWithSubjects.java | 48 +- .../client/openapi/models/V1PortStatus.java | 47 +- .../models/V1PortworxVolumeSource.java | 46 +- .../openapi/models/V1Preconditions.java | 42 +- .../models/V1PreferredSchedulingTerm.java | 42 +- .../openapi/models/V1PriorityClass.java | 54 +- .../openapi/models/V1PriorityClassList.java | 49 +- .../models/V1PriorityLevelConfiguration.java | 45 +- ...V1PriorityLevelConfigurationCondition.java | 49 +- .../V1PriorityLevelConfigurationList.java | 49 +- ...V1PriorityLevelConfigurationReference.java | 42 +- .../V1PriorityLevelConfigurationSpec.java | 44 +- .../V1PriorityLevelConfigurationStatus.java | 39 +- .../client/openapi/models/V1Probe.java | 46 +- .../models/V1ProjectedVolumeSource.java | 40 +- .../models/V1QueuingConfiguration.java | 39 +- .../openapi/models/V1QuobyteVolumeSource.java | 56 +- .../models/V1RBDPersistentVolumeSource.java | 60 +- .../openapi/models/V1RBDVolumeSource.java | 60 +- .../client/openapi/models/V1ReplicaSet.java | 45 +- .../openapi/models/V1ReplicaSetCondition.java | 53 +- .../openapi/models/V1ReplicaSetList.java | 49 +- .../openapi/models/V1ReplicaSetSpec.java | 43 +- .../openapi/models/V1ReplicaSetStatus.java | 48 +- .../models/V1ReplicationController.java | 45 +- .../V1ReplicationControllerCondition.java | 53 +- .../models/V1ReplicationControllerList.java | 49 +- .../models/V1ReplicationControllerSpec.java | 40 +- .../models/V1ReplicationControllerStatus.java | 47 +- .../openapi/models/V1ResourceAttributes.java | 59 +- .../V1ResourceClaimConsumerReference.java | 53 +- .../openapi/models/V1ResourceClaimList.java | 49 +- .../openapi/models/V1ResourceClaimSpec.java | 37 +- .../openapi/models/V1ResourceClaimStatus.java | 43 +- .../models/V1ResourceClaimTemplate.java | 47 +- .../models/V1ResourceClaimTemplateList.java | 49 +- .../models/V1ResourceClaimTemplateSpec.java | 41 +- .../models/V1ResourceFieldSelector.java | 48 +- .../openapi/models/V1ResourceHealth.java | 45 +- .../openapi/models/V1ResourcePolicyRule.java | 54 +- .../client/openapi/models/V1ResourcePool.java | 46 +- .../openapi/models/V1ResourceQuota.java | 45 +- .../openapi/models/V1ResourceQuotaList.java | 49 +- .../openapi/models/V1ResourceQuotaSpec.java | 41 +- .../openapi/models/V1ResourceQuotaStatus.java | 38 +- .../models/V1ResourceRequirements.java | 41 +- .../client/openapi/models/V1ResourceRule.java | 51 +- .../openapi/models/V1ResourceSlice.java | 47 +- .../openapi/models/V1ResourceSliceList.java | 49 +- .../openapi/models/V1ResourceSliceSpec.java | 56 +- .../openapi/models/V1ResourceStatus.java | 45 +- .../client/openapi/models/V1Role.java | 46 +- .../client/openapi/models/V1RoleBinding.java | 50 +- .../openapi/models/V1RoleBindingList.java | 49 +- .../client/openapi/models/V1RoleList.java | 49 +- .../client/openapi/models/V1RoleRef.java | 50 +- .../models/V1RollingUpdateDaemonSet.java | 42 +- .../models/V1RollingUpdateDeployment.java | 42 +- .../V1RollingUpdateStatefulSetStrategy.java | 40 +- .../openapi/models/V1RuleWithOperations.java | 51 +- .../client/openapi/models/V1RuntimeClass.java | 51 +- .../openapi/models/V1RuntimeClassList.java | 49 +- .../openapi/models/V1SELinuxOptions.java | 48 +- .../client/openapi/models/V1Scale.java | 45 +- .../V1ScaleIOPersistentVolumeSource.java | 65 +- .../openapi/models/V1ScaleIOVolumeSource.java | 65 +- .../client/openapi/models/V1ScaleSpec.java | 37 +- .../client/openapi/models/V1ScaleStatus.java | 43 +- .../client/openapi/models/V1Scheduling.java | 40 +- .../openapi/models/V1ScopeSelector.java | 39 +- .../V1ScopedResourceSelectorRequirement.java | 49 +- .../openapi/models/V1SeccompProfile.java | 45 +- .../client/openapi/models/V1Secret.java | 52 +- .../openapi/models/V1SecretEnvSource.java | 40 +- .../openapi/models/V1SecretKeySelector.java | 46 +- .../client/openapi/models/V1SecretList.java | 49 +- .../openapi/models/V1SecretProjection.java | 43 +- .../openapi/models/V1SecretReference.java | 42 +- .../openapi/models/V1SecretVolumeSource.java | 44 +- .../openapi/models/V1SecurityContext.java | 50 +- .../openapi/models/V1SelectableField.java | 42 +- .../models/V1SelfSubjectAccessReview.java | 48 +- .../models/V1SelfSubjectAccessReviewSpec.java | 38 +- .../openapi/models/V1SelfSubjectReview.java | 44 +- .../models/V1SelfSubjectReviewStatus.java | 37 +- .../models/V1SelfSubjectRulesReview.java | 48 +- .../models/V1SelfSubjectRulesReviewSpec.java | 39 +- .../models/V1ServerAddressByClientCIDR.java | 46 +- .../client/openapi/models/V1Service.java | 45 +- .../openapi/models/V1ServiceAccount.java | 50 +- .../openapi/models/V1ServiceAccountList.java | 49 +- .../models/V1ServiceAccountSubject.java | 46 +- .../V1ServiceAccountTokenProjection.java | 46 +- .../openapi/models/V1ServiceBackendPort.java | 40 +- .../client/openapi/models/V1ServiceCIDR.java | 45 +- .../openapi/models/V1ServiceCIDRList.java | 49 +- .../openapi/models/V1ServiceCIDRSpec.java | 39 +- .../openapi/models/V1ServiceCIDRStatus.java | 39 +- .../client/openapi/models/V1ServiceList.java | 49 +- .../client/openapi/models/V1ServicePort.java | 53 +- .../client/openapi/models/V1ServiceSpec.java | 86 +- .../openapi/models/V1ServiceStatus.java | 40 +- .../models/V1SessionAffinityConfig.java | 37 +- .../client/openapi/models/V1SleepAction.java | 40 +- .../client/openapi/models/V1StatefulSet.java | 45 +- .../models/V1StatefulSetCondition.java | 53 +- .../openapi/models/V1StatefulSetList.java | 49 +- .../openapi/models/V1StatefulSetOrdinals.java | 37 +- ...tPersistentVolumeClaimRetentionPolicy.java | 42 +- .../openapi/models/V1StatefulSetSpec.java | 57 +- .../openapi/models/V1StatefulSetStatus.java | 55 +- .../models/V1StatefulSetUpdateStrategy.java | 40 +- .../client/openapi/models/V1Status.java | 57 +- .../client/openapi/models/V1StatusCause.java | 45 +- .../openapi/models/V1StatusDetails.java | 52 +- .../client/openapi/models/V1StorageClass.java | 63 +- .../openapi/models/V1StorageClassList.java | 49 +- .../V1StorageOSPersistentVolumeSource.java | 47 +- .../models/V1StorageOSVolumeSource.java | 47 +- .../openapi/models/V1SubjectAccessReview.java | 48 +- .../models/V1SubjectAccessReviewSpec.java | 48 +- .../models/V1SubjectAccessReviewStatus.java | 47 +- .../models/V1SubjectRulesReviewStatus.java | 51 +- .../openapi/models/V1SuccessPolicy.java | 42 +- .../openapi/models/V1SuccessPolicyRule.java | 40 +- .../client/openapi/models/V1Sysctl.java | 46 +- .../openapi/models/V1TCPSocketAction.java | 45 +- .../client/openapi/models/V1Taint.java | 50 +- .../openapi/models/V1TokenRequestSpec.java | 44 +- .../openapi/models/V1TokenRequestStatus.java | 44 +- .../client/openapi/models/V1TokenReview.java | 48 +- .../openapi/models/V1TokenReviewSpec.java | 42 +- .../openapi/models/V1TokenReviewStatus.java | 44 +- .../client/openapi/models/V1Toleration.java | 49 +- .../V1TopologySelectorLabelRequirement.java | 46 +- .../models/V1TopologySelectorTerm.java | 39 +- .../models/V1TopologySpreadConstraint.java | 59 +- .../client/openapi/models/V1TypeChecking.java | 39 +- .../models/V1TypedLocalObjectReference.java | 49 +- .../models/V1TypedObjectReference.java | 52 +- .../models/V1UncountedTerminatedPods.java | 42 +- .../client/openapi/models/V1UserInfo.java | 46 +- .../client/openapi/models/V1UserSubject.java | 42 +- .../models/V1ValidatingAdmissionPolicy.java | 45 +- .../V1ValidatingAdmissionPolicyBinding.java | 44 +- ...1ValidatingAdmissionPolicyBindingList.java | 49 +- ...1ValidatingAdmissionPolicyBindingSpec.java | 44 +- .../V1ValidatingAdmissionPolicyList.java | 49 +- .../V1ValidatingAdmissionPolicySpec.java | 53 +- .../V1ValidatingAdmissionPolicyStatus.java | 41 +- .../openapi/models/V1ValidatingWebhook.java | 67 +- .../V1ValidatingWebhookConfiguration.java | 46 +- .../V1ValidatingWebhookConfigurationList.java | 49 +- .../client/openapi/models/V1Validation.java | 51 +- .../openapi/models/V1ValidationRule.java | 55 +- .../client/openapi/models/V1Variable.java | 46 +- .../client/openapi/models/V1Volume.java | 72 +- .../openapi/models/V1VolumeAttachment.java | 48 +- .../models/V1VolumeAttachmentList.java | 49 +- .../models/V1VolumeAttachmentSource.java | 40 +- .../models/V1VolumeAttachmentSpec.java | 48 +- .../models/V1VolumeAttachmentStatus.java | 43 +- .../models/V1VolumeAttributesClass.java | 50 +- .../models/V1VolumeAttributesClassList.java | 49 +- .../client/openapi/models/V1VolumeDevice.java | 46 +- .../client/openapi/models/V1VolumeError.java | 41 +- .../client/openapi/models/V1VolumeMount.java | 59 +- .../openapi/models/V1VolumeMountStatus.java | 50 +- .../openapi/models/V1VolumeNodeAffinity.java | 37 +- .../openapi/models/V1VolumeNodeResources.java | 37 +- .../openapi/models/V1VolumeProjection.java | 42 +- .../models/V1VolumeResourceRequirements.java | 38 +- .../V1VsphereVirtualDiskVolumeSource.java | 51 +- .../client/openapi/models/V1WatchEvent.java | 44 +- .../openapi/models/V1WebhookConversion.java | 43 +- .../models/V1WeightedPodAffinityTerm.java | 42 +- .../V1WindowsSecurityContextOptions.java | 46 +- .../models/V1alpha1ApplyConfiguration.java | 39 +- .../models/V1alpha1ClusterTrustBundle.java | 47 +- .../V1alpha1ClusterTrustBundleList.java | 49 +- .../V1alpha1ClusterTrustBundleSpec.java | 45 +- .../models/V1alpha1GroupVersionResource.java | 45 +- .../openapi/models/V1alpha1JSONPatch.java | 39 +- .../models/V1alpha1MatchCondition.java | 46 +- .../models/V1alpha1MatchResources.java | 47 +- .../models/V1alpha1MigrationCondition.java | 53 +- .../V1alpha1MutatingAdmissionPolicy.java | 44 +- ...1alpha1MutatingAdmissionPolicyBinding.java | 44 +- ...ha1MutatingAdmissionPolicyBindingList.java | 49 +- ...ha1MutatingAdmissionPolicyBindingSpec.java | 41 +- .../V1alpha1MutatingAdmissionPolicyList.java | 49 +- .../V1alpha1MutatingAdmissionPolicySpec.java | 53 +- .../openapi/models/V1alpha1Mutation.java | 44 +- .../V1alpha1NamedRuleWithOperations.java | 54 +- .../openapi/models/V1alpha1ParamKind.java | 42 +- .../openapi/models/V1alpha1ParamRef.java | 46 +- .../models/V1alpha1PodCertificateRequest.java | 48 +- .../V1alpha1PodCertificateRequestList.java | 49 +- .../V1alpha1PodCertificateRequestSpec.java | 71 +- .../V1alpha1PodCertificateRequestStatus.java | 45 +- .../models/V1alpha1ServerStorageVersion.java | 48 +- .../models/V1alpha1StorageVersion.java | 49 +- .../V1alpha1StorageVersionCondition.java | 56 +- .../models/V1alpha1StorageVersionList.java | 49 +- .../V1alpha1StorageVersionMigration.java | 45 +- .../V1alpha1StorageVersionMigrationList.java | 49 +- .../V1alpha1StorageVersionMigrationSpec.java | 43 +- ...V1alpha1StorageVersionMigrationStatus.java | 42 +- .../models/V1alpha1StorageVersionStatus.java | 45 +- .../openapi/models/V1alpha1Variable.java | 46 +- .../models/V1alpha1VolumeAttributesClass.java | 50 +- .../V1alpha1VolumeAttributesClassList.java | 49 +- .../models/V1alpha2LeaseCandidate.java | 44 +- .../models/V1alpha2LeaseCandidateList.java | 49 +- .../models/V1alpha2LeaseCandidateSpec.java | 55 +- .../models/V1alpha3CELDeviceSelector.java | 42 +- .../models/V1alpha3DeviceSelector.java | 37 +- .../openapi/models/V1alpha3DeviceTaint.java | 50 +- .../models/V1alpha3DeviceTaintRule.java | 47 +- .../models/V1alpha3DeviceTaintRuleList.java | 49 +- .../models/V1alpha3DeviceTaintRuleSpec.java | 41 +- .../models/V1alpha3DeviceTaintSelector.java | 51 +- .../models/V1beta1AllocatedDeviceStatus.java | 58 +- .../models/V1beta1AllocationResult.java | 39 +- .../models/V1beta1ApplyConfiguration.java | 39 +- .../openapi/models/V1beta1BasicDevice.java | 57 +- .../models/V1beta1CELDeviceSelector.java | 42 +- .../models/V1beta1CapacityRequestPolicy.java | 43 +- .../V1beta1CapacityRequestPolicyRange.java | 48 +- .../models/V1beta1CapacityRequirements.java | 37 +- .../models/V1beta1ClusterTrustBundle.java | 47 +- .../models/V1beta1ClusterTrustBundleList.java | 49 +- .../models/V1beta1ClusterTrustBundleSpec.java | 45 +- .../client/openapi/models/V1beta1Counter.java | 42 +- .../openapi/models/V1beta1CounterSet.java | 44 +- .../client/openapi/models/V1beta1Device.java | 43 +- .../V1beta1DeviceAllocationConfiguration.java | 46 +- .../models/V1beta1DeviceAllocationResult.java | 42 +- .../models/V1beta1DeviceAttribute.java | 44 +- .../openapi/models/V1beta1DeviceCapacity.java | 43 +- .../openapi/models/V1beta1DeviceClaim.java | 45 +- .../V1beta1DeviceClaimConfiguration.java | 40 +- .../openapi/models/V1beta1DeviceClass.java | 47 +- .../V1beta1DeviceClassConfiguration.java | 37 +- .../models/V1beta1DeviceClassList.java | 49 +- .../models/V1beta1DeviceClassSpec.java | 45 +- .../models/V1beta1DeviceConstraint.java | 45 +- .../V1beta1DeviceCounterConsumption.java | 44 +- .../openapi/models/V1beta1DeviceRequest.java | 60 +- .../V1beta1DeviceRequestAllocationResult.java | 68 +- .../openapi/models/V1beta1DeviceSelector.java | 37 +- .../models/V1beta1DeviceSubRequest.java | 57 +- .../openapi/models/V1beta1DeviceTaint.java | 50 +- .../models/V1beta1DeviceToleration.java | 49 +- .../openapi/models/V1beta1IPAddress.java | 44 +- .../openapi/models/V1beta1IPAddressList.java | 49 +- .../openapi/models/V1beta1IPAddressSpec.java | 40 +- .../openapi/models/V1beta1JSONPatch.java | 39 +- .../openapi/models/V1beta1LeaseCandidate.java | 44 +- .../models/V1beta1LeaseCandidateList.java | 49 +- .../models/V1beta1LeaseCandidateSpec.java | 55 +- .../openapi/models/V1beta1MatchCondition.java | 46 +- .../openapi/models/V1beta1MatchResources.java | 47 +- .../V1beta1MutatingAdmissionPolicy.java | 44 +- ...V1beta1MutatingAdmissionPolicyBinding.java | 44 +- ...ta1MutatingAdmissionPolicyBindingList.java | 49 +- ...ta1MutatingAdmissionPolicyBindingSpec.java | 41 +- .../V1beta1MutatingAdmissionPolicyList.java | 49 +- .../V1beta1MutatingAdmissionPolicySpec.java | 53 +- .../openapi/models/V1beta1Mutation.java | 44 +- .../V1beta1NamedRuleWithOperations.java | 54 +- .../models/V1beta1NetworkDeviceData.java | 45 +- .../V1beta1OpaqueDeviceConfiguration.java | 44 +- .../openapi/models/V1beta1ParamKind.java | 42 +- .../openapi/models/V1beta1ParamRef.java | 46 +- .../models/V1beta1ParentReference.java | 52 +- .../openapi/models/V1beta1ResourceClaim.java | 48 +- ...V1beta1ResourceClaimConsumerReference.java | 53 +- .../models/V1beta1ResourceClaimList.java | 49 +- .../models/V1beta1ResourceClaimSpec.java | 37 +- .../models/V1beta1ResourceClaimStatus.java | 43 +- .../models/V1beta1ResourceClaimTemplate.java | 47 +- .../V1beta1ResourceClaimTemplateList.java | 49 +- .../V1beta1ResourceClaimTemplateSpec.java | 41 +- .../openapi/models/V1beta1ResourcePool.java | 46 +- .../openapi/models/V1beta1ResourceSlice.java | 47 +- .../models/V1beta1ResourceSliceList.java | 49 +- .../models/V1beta1ResourceSliceSpec.java | 56 +- .../openapi/models/V1beta1ServiceCIDR.java | 45 +- .../models/V1beta1ServiceCIDRList.java | 49 +- .../models/V1beta1ServiceCIDRSpec.java | 39 +- .../models/V1beta1ServiceCIDRStatus.java | 39 +- .../openapi/models/V1beta1Variable.java | 46 +- .../models/V1beta1VolumeAttributesClass.java | 50 +- .../V1beta1VolumeAttributesClassList.java | 49 +- .../models/V1beta2AllocatedDeviceStatus.java | 58 +- .../models/V1beta2AllocationResult.java | 39 +- .../models/V1beta2CELDeviceSelector.java | 42 +- .../models/V1beta2CapacityRequestPolicy.java | 43 +- .../V1beta2CapacityRequestPolicyRange.java | 48 +- .../models/V1beta2CapacityRequirements.java | 37 +- .../client/openapi/models/V1beta2Counter.java | 42 +- .../openapi/models/V1beta2CounterSet.java | 44 +- .../client/openapi/models/V1beta2Device.java | 63 +- .../V1beta2DeviceAllocationConfiguration.java | 46 +- .../models/V1beta2DeviceAllocationResult.java | 42 +- .../models/V1beta2DeviceAttribute.java | 44 +- .../openapi/models/V1beta2DeviceCapacity.java | 43 +- .../openapi/models/V1beta2DeviceClaim.java | 45 +- .../V1beta2DeviceClaimConfiguration.java | 40 +- .../openapi/models/V1beta2DeviceClass.java | 47 +- .../V1beta2DeviceClassConfiguration.java | 37 +- .../models/V1beta2DeviceClassList.java | 49 +- .../models/V1beta2DeviceClassSpec.java | 45 +- .../models/V1beta2DeviceConstraint.java | 45 +- .../V1beta2DeviceCounterConsumption.java | 44 +- .../openapi/models/V1beta2DeviceRequest.java | 46 +- .../V1beta2DeviceRequestAllocationResult.java | 68 +- .../openapi/models/V1beta2DeviceSelector.java | 37 +- .../models/V1beta2DeviceSubRequest.java | 57 +- .../openapi/models/V1beta2DeviceTaint.java | 50 +- .../models/V1beta2DeviceToleration.java | 49 +- .../models/V1beta2ExactDeviceRequest.java | 54 +- .../models/V1beta2NetworkDeviceData.java | 45 +- .../V1beta2OpaqueDeviceConfiguration.java | 44 +- .../openapi/models/V1beta2ResourceClaim.java | 48 +- ...V1beta2ResourceClaimConsumerReference.java | 53 +- .../models/V1beta2ResourceClaimList.java | 49 +- .../models/V1beta2ResourceClaimSpec.java | 37 +- .../models/V1beta2ResourceClaimStatus.java | 43 +- .../models/V1beta2ResourceClaimTemplate.java | 47 +- .../V1beta2ResourceClaimTemplateList.java | 49 +- .../V1beta2ResourceClaimTemplateSpec.java | 41 +- .../openapi/models/V1beta2ResourcePool.java | 46 +- .../openapi/models/V1beta2ResourceSlice.java | 47 +- .../models/V1beta2ResourceSliceList.java | 49 +- .../models/V1beta2ResourceSliceSpec.java | 56 +- .../V2ContainerResourceMetricSource.java | 48 +- .../V2ContainerResourceMetricStatus.java | 48 +- .../models/V2CrossVersionObjectReference.java | 49 +- .../models/V2ExternalMetricSource.java | 42 +- .../models/V2ExternalMetricStatus.java | 42 +- .../openapi/models/V2HPAScalingPolicy.java | 46 +- .../openapi/models/V2HPAScalingRules.java | 46 +- .../models/V2HorizontalPodAutoscaler.java | 45 +- .../V2HorizontalPodAutoscalerBehavior.java | 38 +- .../V2HorizontalPodAutoscalerCondition.java | 53 +- .../models/V2HorizontalPodAutoscalerList.java | 49 +- .../models/V2HorizontalPodAutoscalerSpec.java | 47 +- .../V2HorizontalPodAutoscalerStatus.java | 49 +- .../openapi/models/V2MetricIdentifier.java | 43 +- .../client/openapi/models/V2MetricSpec.java | 47 +- .../client/openapi/models/V2MetricStatus.java | 47 +- .../client/openapi/models/V2MetricTarget.java | 49 +- .../openapi/models/V2MetricValueStatus.java | 43 +- .../openapi/models/V2ObjectMetricSource.java | 44 +- .../openapi/models/V2ObjectMetricStatus.java | 44 +- .../openapi/models/V2PodsMetricSource.java | 42 +- .../openapi/models/V2PodsMetricStatus.java | 42 +- .../models/V2ResourceMetricSource.java | 44 +- .../models/V2ResourceMetricStatus.java | 44 +- .../client/openapi/models/VersionInfo.java | 86 +- 804 files changed, 25681 insertions(+), 26438 deletions(-) create mode 160000 gen diff --git a/gen b/gen new file mode 160000 index 0000000000..fc51af92af --- /dev/null +++ b/gen @@ -0,0 +1 @@ +Subproject commit fc51af92afc406664dc9bce6234ecfb9c9499dc9 diff --git a/kubernetes/.openapi-generator/COMMIT b/kubernetes/.openapi-generator/COMMIT index 2af53c20f9..307846bd7f 100644 --- a/kubernetes/.openapi-generator/COMMIT +++ b/kubernetes/.openapi-generator/COMMIT @@ -1,2 +1,2 @@ -Requested Commit/Tag : v7.13.0 -Actual Commit : 4b805ff6b7ac5bd2557555810357569fe2677311 +Requested Commit/Tag : v7.16.0 +Actual Commit : c0b72ee970922b47eac484ff851f3b9992cd5ef1 diff --git a/kubernetes/.openapi-generator/VERSION b/kubernetes/.openapi-generator/VERSION index eb1dc6a51a..971ecb25a6 100644 --- a/kubernetes/.openapi-generator/VERSION +++ b/kubernetes/.openapi-generator/VERSION @@ -1 +1 @@ -7.13.0 +7.16.0 diff --git a/kubernetes/api/openapi.yaml b/kubernetes/api/openapi.yaml index d4761521d6..13812891b7 100644 --- a/kubernetes/api/openapi.yaml +++ b/kubernetes/api/openapi.yaml @@ -16,13 +16,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIVersions' + $ref: "#/components/schemas/v1.APIVersions" application/yaml: schema: - $ref: '#/components/schemas/v1.APIVersions' + $ref: "#/components/schemas/v1.APIVersions" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIVersions' + $ref: "#/components/schemas/v1.APIVersions" description: OK "401": content: {} @@ -42,16 +42,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -164,25 +164,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ComponentStatusList' + $ref: "#/components/schemas/v1.ComponentStatusList" application/yaml: schema: - $ref: '#/components/schemas/v1.ComponentStatusList' + $ref: "#/components/schemas/v1.ComponentStatusList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ComponentStatusList' + $ref: "#/components/schemas/v1.ComponentStatusList" application/cbor: schema: - $ref: '#/components/schemas/v1.ComponentStatusList' + $ref: "#/components/schemas/v1.ComponentStatusList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ComponentStatusList' + $ref: "#/components/schemas/v1.ComponentStatusList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ComponentStatusList' + $ref: "#/components/schemas/v1.ComponentStatusList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ComponentStatusList' + $ref: "#/components/schemas/v1.ComponentStatusList" description: OK "401": content: {} @@ -225,16 +225,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ComponentStatus' + $ref: "#/components/schemas/v1.ComponentStatus" application/yaml: schema: - $ref: '#/components/schemas/v1.ComponentStatus' + $ref: "#/components/schemas/v1.ComponentStatus" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ComponentStatus' + $ref: "#/components/schemas/v1.ComponentStatus" application/cbor: schema: - $ref: '#/components/schemas/v1.ComponentStatus' + $ref: "#/components/schemas/v1.ComponentStatus" description: OK "401": content: {} @@ -352,25 +352,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" application/cbor: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" description: OK "401": content: {} @@ -491,25 +491,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" description: OK "401": content: {} @@ -630,25 +630,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" application/yaml: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" application/cbor: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" application/json;stream=watch: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" application/cbor-seq: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" description: OK "401": content: {} @@ -769,25 +769,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" application/cbor: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" description: OK "401": content: {} @@ -908,25 +908,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NamespaceList' + $ref: "#/components/schemas/v1.NamespaceList" application/yaml: schema: - $ref: '#/components/schemas/v1.NamespaceList' + $ref: "#/components/schemas/v1.NamespaceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NamespaceList' + $ref: "#/components/schemas/v1.NamespaceList" application/cbor: schema: - $ref: '#/components/schemas/v1.NamespaceList' + $ref: "#/components/schemas/v1.NamespaceList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.NamespaceList' + $ref: "#/components/schemas/v1.NamespaceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.NamespaceList' + $ref: "#/components/schemas/v1.NamespaceList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.NamespaceList' + $ref: "#/components/schemas/v1.NamespaceList" description: OK "401": content: {} @@ -993,53 +993,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/cbor: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/cbor: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/cbor: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" description: Accepted "401": content: {} @@ -1112,53 +1112,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/yaml: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/cbor: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/yaml: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/cbor: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/yaml: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/cbor: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" description: Accepted "401": content: {} @@ -1318,23 +1318,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -1459,25 +1459,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" application/cbor: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" description: OK "401": content: {} @@ -1550,53 +1550,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/cbor: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/cbor: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/cbor: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" description: Accepted "401": content: {} @@ -1694,38 +1694,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -1772,16 +1772,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/cbor: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" description: OK "401": content: {} @@ -1866,38 +1866,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/cbor: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/cbor: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" description: Created "401": content: {} @@ -1975,38 +1975,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/cbor: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/cbor: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" description: Created "401": content: {} @@ -2166,23 +2166,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -2307,25 +2307,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" description: OK "401": content: {} @@ -2398,53 +2398,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/yaml: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/cbor: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/yaml: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/cbor: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/yaml: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/cbor: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" description: Accepted "401": content: {} @@ -2542,38 +2542,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -2620,16 +2620,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/yaml: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/cbor: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" description: OK "401": content: {} @@ -2714,38 +2714,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/yaml: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/cbor: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/yaml: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/cbor: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" description: Created "401": content: {} @@ -2823,38 +2823,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/yaml: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/cbor: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/yaml: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/cbor: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" description: Created "401": content: {} @@ -3014,23 +3014,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -3155,25 +3155,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" application/yaml: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" application/cbor: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" application/json;stream=watch: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" application/cbor-seq: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" description: OK "401": content: {} @@ -3246,53 +3246,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/cbor: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/cbor: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/cbor: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" description: Accepted "401": content: {} @@ -3390,38 +3390,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -3468,16 +3468,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/cbor: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" description: OK "401": content: {} @@ -3562,38 +3562,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/cbor: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/cbor: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" description: Created "401": content: {} @@ -3671,38 +3671,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/cbor: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/cbor: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" description: Created "401": content: {} @@ -3862,23 +3862,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -4003,25 +4003,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" application/cbor: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" description: OK "401": content: {} @@ -4094,53 +4094,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/cbor: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/cbor: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/cbor: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" description: Accepted "401": content: {} @@ -4238,38 +4238,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -4316,16 +4316,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/cbor: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" description: OK "401": content: {} @@ -4410,38 +4410,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/cbor: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/cbor: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" description: Created "401": content: {} @@ -4519,38 +4519,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/cbor: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/cbor: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" description: Created "401": content: {} @@ -4710,23 +4710,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -4851,25 +4851,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" description: OK "401": content: {} @@ -4942,53 +4942,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: Accepted "401": content: {} @@ -5086,38 +5086,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: Accepted "401": content: {} @@ -5164,16 +5164,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: OK "401": content: {} @@ -5258,38 +5258,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: Created "401": content: {} @@ -5367,38 +5367,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: Created "401": content: {} @@ -5446,16 +5446,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: OK "401": content: {} @@ -5540,38 +5540,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: Created "401": content: {} @@ -5649,38 +5649,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: Created "401": content: {} @@ -5840,23 +5840,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -5981,25 +5981,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" application/yaml: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" application/cbor: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" description: OK "401": content: {} @@ -6072,53 +6072,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: Accepted "401": content: {} @@ -6216,38 +6216,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: Accepted "401": content: {} @@ -6294,16 +6294,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: OK "401": content: {} @@ -6388,38 +6388,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: Created "401": content: {} @@ -6497,38 +6497,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: Created "401": content: {} @@ -6740,53 +6740,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/yaml: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/cbor: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/yaml: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/cbor: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/yaml: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/cbor: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" description: Accepted "401": content: {} @@ -6834,16 +6834,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: OK "401": content: {} @@ -6928,38 +6928,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: Created "401": content: {} @@ -7037,38 +7037,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: Created "401": content: {} @@ -7147,53 +7147,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" application/yaml: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" application/cbor: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" application/yaml: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" application/cbor: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" application/yaml: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" application/cbor: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" description: Accepted "401": content: {} @@ -8206,16 +8206,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: OK "401": content: {} @@ -8300,38 +8300,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: Created "401": content: {} @@ -8409,38 +8409,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: Created "401": content: {} @@ -8488,16 +8488,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: OK "401": content: {} @@ -8582,38 +8582,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: Created "401": content: {} @@ -8691,38 +8691,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/cbor: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" description: Created "401": content: {} @@ -8882,23 +8882,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -9023,25 +9023,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" application/cbor: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" description: OK "401": content: {} @@ -9114,53 +9114,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" description: Accepted "401": content: {} @@ -9258,38 +9258,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" description: Accepted "401": content: {} @@ -9336,16 +9336,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" description: OK "401": content: {} @@ -9430,38 +9430,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" description: Created "401": content: {} @@ -9539,38 +9539,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" description: Created "401": content: {} @@ -9730,23 +9730,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -9871,25 +9871,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" description: OK "401": content: {} @@ -9962,53 +9962,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" description: Accepted "401": content: {} @@ -10106,38 +10106,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -10184,16 +10184,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" description: OK "401": content: {} @@ -10278,38 +10278,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" description: Created "401": content: {} @@ -10387,38 +10387,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" description: Created "401": content: {} @@ -10466,16 +10466,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: OK "401": content: {} @@ -10560,38 +10560,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: Created "401": content: {} @@ -10669,38 +10669,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: Created "401": content: {} @@ -10748,16 +10748,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" description: OK "401": content: {} @@ -10842,38 +10842,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" description: Created "401": content: {} @@ -10951,38 +10951,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" description: Created "401": content: {} @@ -11142,23 +11142,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -11283,25 +11283,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" description: OK "401": content: {} @@ -11374,53 +11374,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" description: Accepted "401": content: {} @@ -11518,38 +11518,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" description: Accepted "401": content: {} @@ -11596,16 +11596,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" description: OK "401": content: {} @@ -11690,38 +11690,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" description: Created "401": content: {} @@ -11799,38 +11799,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" description: Created "401": content: {} @@ -11878,16 +11878,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" description: OK "401": content: {} @@ -11972,38 +11972,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" description: Created "401": content: {} @@ -12081,38 +12081,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" description: Created "401": content: {} @@ -12272,23 +12272,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -12413,25 +12413,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" application/yaml: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" application/cbor: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" description: OK "401": content: {} @@ -12504,53 +12504,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/yaml: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/cbor: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/yaml: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/cbor: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/yaml: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/cbor: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" description: Accepted "401": content: {} @@ -12648,38 +12648,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -12726,16 +12726,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/yaml: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/cbor: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" description: OK "401": content: {} @@ -12820,38 +12820,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/yaml: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/cbor: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/yaml: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/cbor: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" description: Created "401": content: {} @@ -12929,38 +12929,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/yaml: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/cbor: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/yaml: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/cbor: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" description: Created "401": content: {} @@ -13120,23 +13120,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -13261,25 +13261,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" description: OK "401": content: {} @@ -13352,53 +13352,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" description: Accepted "401": content: {} @@ -13496,38 +13496,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" description: Accepted "401": content: {} @@ -13574,16 +13574,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" description: OK "401": content: {} @@ -13668,38 +13668,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" description: Created "401": content: {} @@ -13777,38 +13777,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" description: Created "401": content: {} @@ -13887,53 +13887,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" application/yaml: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" application/cbor: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" application/yaml: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" application/cbor: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" application/yaml: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" application/cbor: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" description: Accepted "401": content: {} @@ -14093,23 +14093,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -14234,25 +14234,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" description: OK "401": content: {} @@ -14325,53 +14325,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/cbor: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/cbor: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/cbor: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" description: Accepted "401": content: {} @@ -14469,38 +14469,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/cbor: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/cbor: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" description: Accepted "401": content: {} @@ -14547,16 +14547,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/cbor: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" description: OK "401": content: {} @@ -14641,38 +14641,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/cbor: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/cbor: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" description: Created "401": content: {} @@ -14750,38 +14750,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/cbor: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/cbor: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" description: Created "401": content: {} @@ -15475,16 +15475,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/cbor: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" description: OK "401": content: {} @@ -15569,38 +15569,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/cbor: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/cbor: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" description: Created "401": content: {} @@ -15678,38 +15678,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/cbor: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/cbor: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" description: Created "401": content: {} @@ -15801,38 +15801,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -15873,16 +15873,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/cbor: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" description: OK "401": content: {} @@ -15961,38 +15961,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/cbor: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/cbor: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" description: Created "401": content: {} @@ -16064,38 +16064,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/cbor: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/cbor: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" description: Created "401": content: {} @@ -16168,38 +16168,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/cbor: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/cbor: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" description: Created "401": content: {} @@ -16241,16 +16241,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/cbor: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" description: OK "401": content: {} @@ -16329,38 +16329,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/cbor: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/cbor: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" description: Created "401": content: {} @@ -16432,38 +16432,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/cbor: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/cbor: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" description: Created "401": content: {} @@ -16617,23 +16617,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -16752,25 +16752,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NodeList' + $ref: "#/components/schemas/v1.NodeList" application/yaml: schema: - $ref: '#/components/schemas/v1.NodeList' + $ref: "#/components/schemas/v1.NodeList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NodeList' + $ref: "#/components/schemas/v1.NodeList" application/cbor: schema: - $ref: '#/components/schemas/v1.NodeList' + $ref: "#/components/schemas/v1.NodeList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.NodeList' + $ref: "#/components/schemas/v1.NodeList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.NodeList' + $ref: "#/components/schemas/v1.NodeList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.NodeList' + $ref: "#/components/schemas/v1.NodeList" description: OK "401": content: {} @@ -16837,53 +16837,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/cbor: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/cbor: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/cbor: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" description: Accepted "401": content: {} @@ -16975,38 +16975,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -17047,16 +17047,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/cbor: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" description: OK "401": content: {} @@ -17135,38 +17135,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/cbor: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/cbor: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" description: Created "401": content: {} @@ -17238,38 +17238,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/cbor: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/cbor: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" description: Created "401": content: {} @@ -17845,16 +17845,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/cbor: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" description: OK "401": content: {} @@ -17933,38 +17933,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/cbor: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/cbor: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" description: Created "401": content: {} @@ -18036,38 +18036,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/cbor: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/cbor: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" description: Created "401": content: {} @@ -18187,25 +18187,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" description: OK "401": content: {} @@ -18360,23 +18360,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -18495,25 +18495,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeList' + $ref: "#/components/schemas/v1.PersistentVolumeList" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeList' + $ref: "#/components/schemas/v1.PersistentVolumeList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeList' + $ref: "#/components/schemas/v1.PersistentVolumeList" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolumeList' + $ref: "#/components/schemas/v1.PersistentVolumeList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PersistentVolumeList' + $ref: "#/components/schemas/v1.PersistentVolumeList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PersistentVolumeList' + $ref: "#/components/schemas/v1.PersistentVolumeList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.PersistentVolumeList' + $ref: "#/components/schemas/v1.PersistentVolumeList" description: OK "401": content: {} @@ -18580,53 +18580,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" description: Accepted "401": content: {} @@ -18718,38 +18718,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" description: Accepted "401": content: {} @@ -18790,16 +18790,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" description: OK "401": content: {} @@ -18878,38 +18878,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" description: Created "401": content: {} @@ -18981,38 +18981,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" description: Created "401": content: {} @@ -19054,16 +19054,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" description: OK "401": content: {} @@ -19142,38 +19142,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" description: Created "401": content: {} @@ -19245,38 +19245,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/cbor: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" description: Created "401": content: {} @@ -19396,25 +19396,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" application/yaml: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" application/cbor: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" description: OK "401": content: {} @@ -19535,25 +19535,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" application/cbor: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" description: OK "401": content: {} @@ -19674,25 +19674,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" description: OK "401": content: {} @@ -19813,25 +19813,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" description: OK "401": content: {} @@ -19952,25 +19952,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" application/yaml: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" application/cbor: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" description: OK "401": content: {} @@ -20091,25 +20091,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" description: OK "401": content: {} @@ -20230,25 +20230,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" description: OK "401": content: {} @@ -20319,13 +20319,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroupList' + $ref: "#/components/schemas/v1.APIGroupList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroupList' + $ref: "#/components/schemas/v1.APIGroupList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroupList' + $ref: "#/components/schemas/v1.APIGroupList" description: OK "401": content: {} @@ -20345,13 +20345,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -20371,16 +20371,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -20527,23 +20527,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -20662,25 +20662,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" application/yaml: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" application/cbor: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" description: OK "401": content: {} @@ -20747,53 +20747,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: Accepted "401": content: {} @@ -20885,38 +20885,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -20957,16 +20957,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: OK "401": content: {} @@ -21045,38 +21045,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: Created "401": content: {} @@ -21148,38 +21148,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: Created "401": content: {} @@ -21333,23 +21333,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -21468,25 +21468,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" description: OK "401": content: {} @@ -21553,53 +21553,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: Accepted "401": content: {} @@ -21691,38 +21691,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -21763,16 +21763,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: OK "401": content: {} @@ -21851,38 +21851,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: Created "401": content: {} @@ -21954,38 +21954,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: Created "401": content: {} @@ -22027,16 +22027,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: OK "401": content: {} @@ -22115,38 +22115,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: Created "401": content: {} @@ -22218,38 +22218,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: Created "401": content: {} @@ -22403,23 +22403,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -22538,25 +22538,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" description: OK "401": content: {} @@ -22623,53 +22623,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: Accepted "401": content: {} @@ -22761,38 +22761,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -22833,16 +22833,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: OK "401": content: {} @@ -22921,38 +22921,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: Created "401": content: {} @@ -23024,38 +23024,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: Created "401": content: {} @@ -23209,23 +23209,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -23344,25 +23344,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" description: OK "401": content: {} @@ -23429,53 +23429,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: Accepted "401": content: {} @@ -23567,38 +23567,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -23639,16 +23639,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: OK "401": content: {} @@ -23727,38 +23727,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: Created "401": content: {} @@ -23830,38 +23830,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: Created "401": content: {} @@ -23897,16 +23897,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -24053,23 +24053,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -24188,25 +24188,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" description: OK "401": content: {} @@ -24273,53 +24273,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: Accepted "401": content: {} @@ -24411,38 +24411,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -24483,16 +24483,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: OK "401": content: {} @@ -24571,38 +24571,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: Created "401": content: {} @@ -24674,38 +24674,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: Created "401": content: {} @@ -24859,23 +24859,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -24994,25 +24994,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" description: OK "401": content: {} @@ -25079,53 +25079,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: Accepted "401": content: {} @@ -25217,38 +25217,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -25289,16 +25289,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: OK "401": content: {} @@ -25377,38 +25377,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: Created "401": content: {} @@ -25480,38 +25480,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: Created "401": content: {} @@ -25543,16 +25543,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -25699,23 +25699,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -25834,25 +25834,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" description: OK "401": content: {} @@ -25919,53 +25919,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: Accepted "401": content: {} @@ -26057,38 +26057,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -26129,16 +26129,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: OK "401": content: {} @@ -26217,38 +26217,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: Created "401": content: {} @@ -26320,38 +26320,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: Created "401": content: {} @@ -26505,23 +26505,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -26640,25 +26640,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" description: OK "401": content: {} @@ -26725,53 +26725,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: Accepted "401": content: {} @@ -26863,38 +26863,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -26935,16 +26935,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: OK "401": content: {} @@ -27023,38 +27023,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: Created "401": content: {} @@ -27126,38 +27126,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: Created "401": content: {} @@ -27189,13 +27189,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -27215,16 +27215,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -27371,23 +27371,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -27506,25 +27506,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" application/cbor: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" description: OK "401": content: {} @@ -27591,53 +27591,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: Accepted "401": content: {} @@ -27729,38 +27729,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -27801,16 +27801,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: OK "401": content: {} @@ -27889,38 +27889,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: Created "401": content: {} @@ -27992,38 +27992,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: Created "401": content: {} @@ -28065,16 +28065,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: OK "401": content: {} @@ -28153,38 +28153,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: Created "401": content: {} @@ -28256,38 +28256,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: Created "401": content: {} @@ -28317,13 +28317,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -28343,16 +28343,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -28499,23 +28499,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -28634,25 +28634,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIServiceList' + $ref: "#/components/schemas/v1.APIServiceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIServiceList' + $ref: "#/components/schemas/v1.APIServiceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIServiceList' + $ref: "#/components/schemas/v1.APIServiceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIServiceList' + $ref: "#/components/schemas/v1.APIServiceList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.APIServiceList' + $ref: "#/components/schemas/v1.APIServiceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.APIServiceList' + $ref: "#/components/schemas/v1.APIServiceList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.APIServiceList' + $ref: "#/components/schemas/v1.APIServiceList" description: OK "401": content: {} @@ -28719,53 +28719,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" description: Accepted "401": content: {} @@ -28857,38 +28857,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -28929,16 +28929,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" description: OK "401": content: {} @@ -29017,38 +29017,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" description: Created "401": content: {} @@ -29120,38 +29120,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" description: Created "401": content: {} @@ -29193,16 +29193,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" description: OK "401": content: {} @@ -29281,38 +29281,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" description: Created "401": content: {} @@ -29384,38 +29384,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" description: Created "401": content: {} @@ -29445,13 +29445,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -29471,16 +29471,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -29593,25 +29593,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" application/cbor: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" description: OK "401": content: {} @@ -29732,25 +29732,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" application/cbor: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" description: OK "401": content: {} @@ -29871,25 +29871,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" application/yaml: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" application/cbor: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" description: OK "401": content: {} @@ -30050,23 +30050,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -30191,25 +30191,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" application/cbor: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" description: OK "401": content: {} @@ -30282,53 +30282,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/cbor: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/cbor: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/cbor: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" description: Accepted "401": content: {} @@ -30426,38 +30426,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -30504,16 +30504,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/cbor: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" description: OK "401": content: {} @@ -30598,38 +30598,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/cbor: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/cbor: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" description: Created "401": content: {} @@ -30707,38 +30707,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/cbor: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/cbor: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" description: Created "401": content: {} @@ -30898,23 +30898,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -31039,25 +31039,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" application/cbor: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" description: OK "401": content: {} @@ -31130,53 +31130,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" description: Accepted "401": content: {} @@ -31274,38 +31274,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -31352,16 +31352,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" description: OK "401": content: {} @@ -31446,38 +31446,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" description: Created "401": content: {} @@ -31555,38 +31555,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" description: Created "401": content: {} @@ -31634,16 +31634,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" description: OK "401": content: {} @@ -31728,38 +31728,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" description: Created "401": content: {} @@ -31837,38 +31837,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" description: Created "401": content: {} @@ -32028,23 +32028,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -32169,25 +32169,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" application/yaml: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" application/cbor: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" description: OK "401": content: {} @@ -32260,53 +32260,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/cbor: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/cbor: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/cbor: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" description: Accepted "401": content: {} @@ -32404,38 +32404,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -32482,16 +32482,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/cbor: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" description: OK "401": content: {} @@ -32576,38 +32576,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/cbor: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/cbor: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" description: Created "401": content: {} @@ -32685,38 +32685,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/cbor: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/cbor: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" description: Created "401": content: {} @@ -32764,16 +32764,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: OK "401": content: {} @@ -32858,38 +32858,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: Created "401": content: {} @@ -32967,38 +32967,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: Created "401": content: {} @@ -33046,16 +33046,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/cbor: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" description: OK "401": content: {} @@ -33140,38 +33140,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/cbor: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/cbor: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" description: Created "401": content: {} @@ -33249,38 +33249,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/cbor: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/cbor: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" description: Created "401": content: {} @@ -33440,23 +33440,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -33581,25 +33581,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" description: OK "401": content: {} @@ -33672,53 +33672,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" description: Accepted "401": content: {} @@ -33816,38 +33816,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -33894,16 +33894,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" description: OK "401": content: {} @@ -33988,38 +33988,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" description: Created "401": content: {} @@ -34097,38 +34097,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" description: Created "401": content: {} @@ -34176,16 +34176,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: OK "401": content: {} @@ -34270,38 +34270,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: Created "401": content: {} @@ -34379,38 +34379,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: Created "401": content: {} @@ -34458,16 +34458,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" description: OK "401": content: {} @@ -34552,38 +34552,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" description: Created "401": content: {} @@ -34661,38 +34661,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" description: Created "401": content: {} @@ -34852,23 +34852,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -34993,25 +34993,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" application/cbor: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" description: OK "401": content: {} @@ -35084,53 +35084,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/cbor: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/cbor: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/cbor: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" description: Accepted "401": content: {} @@ -35228,38 +35228,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -35306,16 +35306,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/cbor: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" description: OK "401": content: {} @@ -35400,38 +35400,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/cbor: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/cbor: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" description: Created "401": content: {} @@ -35509,38 +35509,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/cbor: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/cbor: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" description: Created "401": content: {} @@ -35588,16 +35588,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: OK "401": content: {} @@ -35682,38 +35682,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: Created "401": content: {} @@ -35791,38 +35791,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/cbor: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" description: Created "401": content: {} @@ -35870,16 +35870,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/cbor: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" description: OK "401": content: {} @@ -35964,38 +35964,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/cbor: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/cbor: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" description: Created "401": content: {} @@ -36073,38 +36073,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/cbor: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/cbor: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" description: Created "401": content: {} @@ -36224,25 +36224,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" application/cbor: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" description: OK "401": content: {} @@ -36363,25 +36363,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" application/cbor: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" description: OK "401": content: {} @@ -36425,13 +36425,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -36451,16 +36451,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -36520,53 +36520,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" application/cbor: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" application/cbor: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" application/cbor: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" description: Accepted "401": content: {} @@ -36633,53 +36633,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" application/yaml: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" application/cbor: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" application/yaml: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" application/cbor: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" application/yaml: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" application/cbor: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" description: Accepted "401": content: {} @@ -36707,13 +36707,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -36733,16 +36733,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -36808,53 +36808,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" application/yaml: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" application/cbor: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" application/yaml: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" application/cbor: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" application/yaml: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" application/cbor: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" description: Accepted "401": content: {} @@ -36921,53 +36921,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" application/cbor: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" application/cbor: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" application/cbor: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" description: Accepted "401": content: {} @@ -37034,53 +37034,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" application/cbor: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" application/cbor: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" application/cbor: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" description: Accepted "401": content: {} @@ -37147,53 +37147,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" application/cbor: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" application/cbor: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" application/cbor: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" description: Accepted "401": content: {} @@ -37221,13 +37221,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -37247,16 +37247,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -37369,25 +37369,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/cbor: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" description: OK "401": content: {} @@ -37548,23 +37548,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -37689,25 +37689,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/cbor: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" description: OK "401": content: {} @@ -37780,53 +37780,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: Accepted "401": content: {} @@ -37924,38 +37924,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -38002,16 +38002,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "401": content: {} @@ -38096,38 +38096,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: Created "401": content: {} @@ -38205,38 +38205,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: Created "401": content: {} @@ -38284,16 +38284,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "401": content: {} @@ -38378,38 +38378,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: Created "401": content: {} @@ -38487,38 +38487,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: Created "401": content: {} @@ -38549,16 +38549,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -38671,25 +38671,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/cbor: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/cbor-seq: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" description: OK "401": content: {} @@ -38850,23 +38850,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -38991,25 +38991,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/cbor: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/cbor-seq: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" description: OK "401": content: {} @@ -39082,53 +39082,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: Accepted "401": content: {} @@ -39226,38 +39226,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -39304,16 +39304,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "401": content: {} @@ -39398,38 +39398,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: Created "401": content: {} @@ -39507,38 +39507,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: Created "401": content: {} @@ -39586,16 +39586,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "401": content: {} @@ -39680,38 +39680,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: Created "401": content: {} @@ -39789,38 +39789,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: Created "401": content: {} @@ -39851,13 +39851,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -39877,16 +39877,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -39999,25 +39999,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" application/cbor: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" description: OK "401": content: {} @@ -40138,25 +40138,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" application/yaml: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" application/cbor: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" description: OK "401": content: {} @@ -40317,23 +40317,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -40458,25 +40458,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" application/cbor: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" description: OK "401": content: {} @@ -40549,53 +40549,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" description: Accepted "401": content: {} @@ -40693,38 +40693,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -40771,16 +40771,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" description: OK "401": content: {} @@ -40865,38 +40865,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" description: Created "401": content: {} @@ -40974,38 +40974,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" description: Created "401": content: {} @@ -41053,16 +41053,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" description: OK "401": content: {} @@ -41147,38 +41147,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" description: Created "401": content: {} @@ -41256,38 +41256,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" description: Created "401": content: {} @@ -41447,23 +41447,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -41588,25 +41588,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" application/yaml: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" application/cbor: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" description: OK "401": content: {} @@ -41679,53 +41679,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" description: Accepted "401": content: {} @@ -41823,38 +41823,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -41901,16 +41901,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" description: OK "401": content: {} @@ -41995,38 +41995,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" description: Created "401": content: {} @@ -42104,38 +42104,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" description: Created "401": content: {} @@ -42183,16 +42183,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" description: OK "401": content: {} @@ -42277,38 +42277,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" description: Created "401": content: {} @@ -42386,38 +42386,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" description: Created "401": content: {} @@ -42451,13 +42451,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -42477,16 +42477,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -42633,23 +42633,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -42768,25 +42768,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: "#/components/schemas/v1.CertificateSigningRequestList" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: "#/components/schemas/v1.CertificateSigningRequestList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: "#/components/schemas/v1.CertificateSigningRequestList" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: "#/components/schemas/v1.CertificateSigningRequestList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: "#/components/schemas/v1.CertificateSigningRequestList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: "#/components/schemas/v1.CertificateSigningRequestList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: "#/components/schemas/v1.CertificateSigningRequestList" description: OK "401": content: {} @@ -42853,53 +42853,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Accepted "401": content: {} @@ -42991,38 +42991,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -43063,16 +43063,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "401": content: {} @@ -43151,38 +43151,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "401": content: {} @@ -43254,38 +43254,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "401": content: {} @@ -43327,16 +43327,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "401": content: {} @@ -43415,38 +43415,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "401": content: {} @@ -43518,38 +43518,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "401": content: {} @@ -43591,16 +43591,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "401": content: {} @@ -43679,38 +43679,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "401": content: {} @@ -43782,38 +43782,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "401": content: {} @@ -43843,16 +43843,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -43999,23 +43999,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -44134,25 +44134,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" description: OK "401": content: {} @@ -44219,53 +44219,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: Accepted "401": content: {} @@ -44357,38 +44357,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -44429,16 +44429,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: OK "401": content: {} @@ -44517,38 +44517,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: Created "401": content: {} @@ -44620,38 +44620,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: Created "401": content: {} @@ -44811,23 +44811,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -44952,25 +44952,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequestList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequestList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequestList" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequestList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequestList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequestList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequestList" description: OK "401": content: {} @@ -45043,53 +45043,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" description: Accepted "401": content: {} @@ -45187,38 +45187,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -45265,16 +45265,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" description: OK "401": content: {} @@ -45359,38 +45359,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" description: Created "401": content: {} @@ -45468,38 +45468,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" description: Created "401": content: {} @@ -45547,16 +45547,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" description: OK "401": content: {} @@ -45641,38 +45641,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" description: Created "401": content: {} @@ -45750,38 +45750,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" description: Created "401": content: {} @@ -45901,25 +45901,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequestList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequestList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequestList" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequestList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequestList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequestList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequestList' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequestList" description: OK "401": content: {} @@ -45953,16 +45953,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -46109,23 +46109,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -46244,25 +46244,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" description: OK "401": content: {} @@ -46329,53 +46329,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: Accepted "401": content: {} @@ -46467,38 +46467,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -46539,16 +46539,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: OK "401": content: {} @@ -46627,38 +46627,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: Created "401": content: {} @@ -46730,38 +46730,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: Created "401": content: {} @@ -46791,13 +46791,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -46817,16 +46817,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -46939,25 +46939,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1.LeaseList" application/yaml: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1.LeaseList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1.LeaseList" application/cbor: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1.LeaseList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1.LeaseList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1.LeaseList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1.LeaseList" description: OK "401": content: {} @@ -47118,23 +47118,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -47259,25 +47259,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1.LeaseList" application/yaml: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1.LeaseList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1.LeaseList" application/cbor: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1.LeaseList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1.LeaseList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1.LeaseList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1.LeaseList" description: OK "401": content: {} @@ -47350,53 +47350,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" description: Accepted "401": content: {} @@ -47494,38 +47494,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -47572,16 +47572,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" description: OK "401": content: {} @@ -47666,38 +47666,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" description: Created "401": content: {} @@ -47775,38 +47775,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" application/cbor: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" description: Created "401": content: {} @@ -47837,16 +47837,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -47959,25 +47959,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" description: OK "401": content: {} @@ -48138,23 +48138,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -48279,25 +48279,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" description: OK "401": content: {} @@ -48370,53 +48370,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: Accepted "401": content: {} @@ -48514,38 +48514,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -48592,16 +48592,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: OK "401": content: {} @@ -48686,38 +48686,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: Created "401": content: {} @@ -48795,38 +48795,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: Created "401": content: {} @@ -48857,16 +48857,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -48979,25 +48979,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" description: OK "401": content: {} @@ -49158,23 +49158,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -49299,25 +49299,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidateList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" description: OK "401": content: {} @@ -49390,53 +49390,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: Accepted "401": content: {} @@ -49534,38 +49534,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -49612,16 +49612,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: OK "401": content: {} @@ -49706,38 +49706,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: Created "401": content: {} @@ -49815,38 +49815,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: Created "401": content: {} @@ -49877,13 +49877,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -49903,16 +49903,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -50025,25 +50025,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.EndpointSliceList" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.EndpointSliceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.EndpointSliceList" application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.EndpointSliceList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.EndpointSliceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.EndpointSliceList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.EndpointSliceList" description: OK "401": content: {} @@ -50204,23 +50204,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -50345,25 +50345,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.EndpointSliceList" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.EndpointSliceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.EndpointSliceList" application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.EndpointSliceList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.EndpointSliceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.EndpointSliceList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.EndpointSliceList" description: OK "401": content: {} @@ -50436,53 +50436,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" description: Accepted "401": content: {} @@ -50580,38 +50580,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -50658,16 +50658,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" description: OK "401": content: {} @@ -50752,38 +50752,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" description: Created "401": content: {} @@ -50861,38 +50861,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" application/cbor: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" description: Created "401": content: {} @@ -50923,13 +50923,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -50949,16 +50949,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -51071,25 +51071,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/events.v1.EventList" application/yaml: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/events.v1.EventList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/events.v1.EventList" application/cbor: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/events.v1.EventList" application/json;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/events.v1.EventList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/events.v1.EventList" application/cbor-seq: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/events.v1.EventList" description: OK "401": content: {} @@ -51250,23 +51250,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -51391,25 +51391,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/events.v1.EventList" application/yaml: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/events.v1.EventList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/events.v1.EventList" application/cbor: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/events.v1.EventList" application/json;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/events.v1.EventList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/events.v1.EventList" application/cbor-seq: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/events.v1.EventList" description: OK "401": content: {} @@ -51482,53 +51482,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" description: Accepted "401": content: {} @@ -51626,38 +51626,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -51704,16 +51704,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" description: OK "401": content: {} @@ -51798,38 +51798,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" description: Created "401": content: {} @@ -51907,38 +51907,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" application/cbor: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" description: Created "401": content: {} @@ -51969,13 +51969,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -51995,16 +51995,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -52151,23 +52151,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -52286,25 +52286,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: "#/components/schemas/v1.FlowSchemaList" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: "#/components/schemas/v1.FlowSchemaList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: "#/components/schemas/v1.FlowSchemaList" application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: "#/components/schemas/v1.FlowSchemaList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: "#/components/schemas/v1.FlowSchemaList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: "#/components/schemas/v1.FlowSchemaList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: "#/components/schemas/v1.FlowSchemaList" description: OK "401": content: {} @@ -52371,53 +52371,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" description: Accepted "401": content: {} @@ -52509,38 +52509,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -52581,16 +52581,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" description: OK "401": content: {} @@ -52669,38 +52669,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" description: Created "401": content: {} @@ -52772,38 +52772,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" description: Created "401": content: {} @@ -52845,16 +52845,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" description: OK "401": content: {} @@ -52933,38 +52933,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" description: Created "401": content: {} @@ -53036,38 +53036,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" description: Created "401": content: {} @@ -53221,23 +53221,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -53356,25 +53356,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" description: OK "401": content: {} @@ -53441,53 +53441,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: Accepted "401": content: {} @@ -53579,38 +53579,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -53651,16 +53651,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "401": content: {} @@ -53739,38 +53739,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: Created "401": content: {} @@ -53842,38 +53842,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: Created "401": content: {} @@ -53915,16 +53915,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "401": content: {} @@ -54003,38 +54003,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: Created "401": content: {} @@ -54106,38 +54106,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: Created "401": content: {} @@ -54169,13 +54169,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -54195,16 +54195,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -54351,23 +54351,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -54486,25 +54486,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: "#/components/schemas/v1alpha1.StorageVersionList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: "#/components/schemas/v1alpha1.StorageVersionList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: "#/components/schemas/v1alpha1.StorageVersionList" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: "#/components/schemas/v1alpha1.StorageVersionList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: "#/components/schemas/v1alpha1.StorageVersionList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: "#/components/schemas/v1alpha1.StorageVersionList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: "#/components/schemas/v1alpha1.StorageVersionList" description: OK "401": content: {} @@ -54571,53 +54571,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: Accepted "401": content: {} @@ -54709,38 +54709,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -54781,16 +54781,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: OK "401": content: {} @@ -54869,38 +54869,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: Created "401": content: {} @@ -54972,38 +54972,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: Created "401": content: {} @@ -55045,16 +55045,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: OK "401": content: {} @@ -55133,38 +55133,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: Created "401": content: {} @@ -55236,38 +55236,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: Created "401": content: {} @@ -55297,13 +55297,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -55323,16 +55323,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -55479,23 +55479,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -55614,25 +55614,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: "#/components/schemas/v1.IngressClassList" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: "#/components/schemas/v1.IngressClassList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: "#/components/schemas/v1.IngressClassList" application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: "#/components/schemas/v1.IngressClassList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: "#/components/schemas/v1.IngressClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: "#/components/schemas/v1.IngressClassList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: "#/components/schemas/v1.IngressClassList" description: OK "401": content: {} @@ -55699,53 +55699,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" description: Accepted "401": content: {} @@ -55837,38 +55837,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -55909,16 +55909,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" description: OK "401": content: {} @@ -55997,38 +55997,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" description: Created "401": content: {} @@ -56100,38 +56100,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" application/cbor: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" description: Created "401": content: {} @@ -56251,25 +56251,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressList" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressList" application/cbor: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressList" description: OK "401": content: {} @@ -56424,23 +56424,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -56559,25 +56559,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddressList' + $ref: "#/components/schemas/v1.IPAddressList" application/yaml: schema: - $ref: '#/components/schemas/v1.IPAddressList' + $ref: "#/components/schemas/v1.IPAddressList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IPAddressList' + $ref: "#/components/schemas/v1.IPAddressList" application/cbor: schema: - $ref: '#/components/schemas/v1.IPAddressList' + $ref: "#/components/schemas/v1.IPAddressList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.IPAddressList' + $ref: "#/components/schemas/v1.IPAddressList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.IPAddressList' + $ref: "#/components/schemas/v1.IPAddressList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.IPAddressList' + $ref: "#/components/schemas/v1.IPAddressList" description: OK "401": content: {} @@ -56644,53 +56644,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" description: Accepted "401": content: {} @@ -56782,38 +56782,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -56854,16 +56854,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" description: OK "401": content: {} @@ -56942,38 +56942,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" description: Created "401": content: {} @@ -57045,38 +57045,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" description: Created "401": content: {} @@ -57236,23 +57236,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -57377,25 +57377,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressList" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressList" application/cbor: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressList" description: OK "401": content: {} @@ -57468,53 +57468,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" description: Accepted "401": content: {} @@ -57612,38 +57612,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -57690,16 +57690,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" description: OK "401": content: {} @@ -57784,38 +57784,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" description: Created "401": content: {} @@ -57893,38 +57893,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" description: Created "401": content: {} @@ -57972,16 +57972,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" description: OK "401": content: {} @@ -58066,38 +58066,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" description: Created "401": content: {} @@ -58175,38 +58175,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" description: Created "401": content: {} @@ -58366,23 +58366,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -58507,25 +58507,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.NetworkPolicyList" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.NetworkPolicyList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.NetworkPolicyList" application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.NetworkPolicyList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.NetworkPolicyList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.NetworkPolicyList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.NetworkPolicyList" description: OK "401": content: {} @@ -58598,53 +58598,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" description: Accepted "401": content: {} @@ -58742,38 +58742,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -58820,16 +58820,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" description: OK "401": content: {} @@ -58914,38 +58914,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" description: Created "401": content: {} @@ -59023,38 +59023,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" description: Created "401": content: {} @@ -59174,25 +59174,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.NetworkPolicyList" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.NetworkPolicyList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.NetworkPolicyList" application/cbor: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.NetworkPolicyList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.NetworkPolicyList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.NetworkPolicyList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.NetworkPolicyList" description: OK "401": content: {} @@ -59347,23 +59347,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -59482,25 +59482,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDRList' + $ref: "#/components/schemas/v1.ServiceCIDRList" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDRList' + $ref: "#/components/schemas/v1.ServiceCIDRList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDRList' + $ref: "#/components/schemas/v1.ServiceCIDRList" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDRList' + $ref: "#/components/schemas/v1.ServiceCIDRList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceCIDRList' + $ref: "#/components/schemas/v1.ServiceCIDRList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceCIDRList' + $ref: "#/components/schemas/v1.ServiceCIDRList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ServiceCIDRList' + $ref: "#/components/schemas/v1.ServiceCIDRList" description: OK "401": content: {} @@ -59567,53 +59567,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" description: Accepted "401": content: {} @@ -59705,38 +59705,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -59777,16 +59777,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "401": content: {} @@ -59865,38 +59865,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" description: Created "401": content: {} @@ -59968,38 +59968,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" description: Created "401": content: {} @@ -60041,16 +60041,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "401": content: {} @@ -60129,38 +60129,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" description: Created "401": content: {} @@ -60232,38 +60232,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" description: Created "401": content: {} @@ -60303,16 +60303,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -60459,23 +60459,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -60594,25 +60594,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: "#/components/schemas/v1beta1.IPAddressList" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: "#/components/schemas/v1beta1.IPAddressList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: "#/components/schemas/v1beta1.IPAddressList" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: "#/components/schemas/v1beta1.IPAddressList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: "#/components/schemas/v1beta1.IPAddressList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: "#/components/schemas/v1beta1.IPAddressList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.IPAddressList' + $ref: "#/components/schemas/v1beta1.IPAddressList" description: OK "401": content: {} @@ -60679,53 +60679,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" description: Accepted "401": content: {} @@ -60817,38 +60817,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -60889,16 +60889,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" description: OK "401": content: {} @@ -60977,38 +60977,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" description: Created "401": content: {} @@ -61080,38 +61080,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" description: Created "401": content: {} @@ -61265,23 +61265,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -61400,25 +61400,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDRList' + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" description: OK "401": content: {} @@ -61485,53 +61485,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: Accepted "401": content: {} @@ -61623,38 +61623,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -61695,16 +61695,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: OK "401": content: {} @@ -61783,38 +61783,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: Created "401": content: {} @@ -61886,38 +61886,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: Created "401": content: {} @@ -61959,16 +61959,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: OK "401": content: {} @@ -62047,38 +62047,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: Created "401": content: {} @@ -62150,38 +62150,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: Created "401": content: {} @@ -62213,13 +62213,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -62239,16 +62239,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -62395,23 +62395,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -62530,25 +62530,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: "#/components/schemas/v1.RuntimeClassList" application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: "#/components/schemas/v1.RuntimeClassList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: "#/components/schemas/v1.RuntimeClassList" application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: "#/components/schemas/v1.RuntimeClassList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: "#/components/schemas/v1.RuntimeClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: "#/components/schemas/v1.RuntimeClassList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: "#/components/schemas/v1.RuntimeClassList" description: OK "401": content: {} @@ -62615,53 +62615,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" description: Accepted "401": content: {} @@ -62753,38 +62753,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -62825,16 +62825,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" description: OK "401": content: {} @@ -62913,38 +62913,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" description: Created "401": content: {} @@ -63016,38 +63016,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" application/cbor: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" description: Created "401": content: {} @@ -63077,13 +63077,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -63103,16 +63103,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -63265,23 +63265,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -63406,25 +63406,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" description: OK "401": content: {} @@ -63497,53 +63497,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: Accepted "401": content: {} @@ -63641,38 +63641,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -63719,16 +63719,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: OK "401": content: {} @@ -63813,38 +63813,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: Created "401": content: {} @@ -63922,38 +63922,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: Created "401": content: {} @@ -64001,16 +64001,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: OK "401": content: {} @@ -64095,38 +64095,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: Created "401": content: {} @@ -64204,38 +64204,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: Created "401": content: {} @@ -64355,25 +64355,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/cbor: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" description: OK "401": content: {} @@ -64405,13 +64405,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -64431,16 +64431,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -64587,23 +64587,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -64722,25 +64722,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: "#/components/schemas/v1.ClusterRoleBindingList" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: "#/components/schemas/v1.ClusterRoleBindingList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: "#/components/schemas/v1.ClusterRoleBindingList" application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: "#/components/schemas/v1.ClusterRoleBindingList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: "#/components/schemas/v1.ClusterRoleBindingList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: "#/components/schemas/v1.ClusterRoleBindingList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: "#/components/schemas/v1.ClusterRoleBindingList" description: OK "401": content: {} @@ -64807,53 +64807,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" description: Accepted "401": content: {} @@ -64945,38 +64945,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -65017,16 +65017,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" description: OK "401": content: {} @@ -65105,38 +65105,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" description: Created "401": content: {} @@ -65208,38 +65208,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" description: Created "401": content: {} @@ -65393,23 +65393,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -65528,25 +65528,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: "#/components/schemas/v1.ClusterRoleList" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: "#/components/schemas/v1.ClusterRoleList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: "#/components/schemas/v1.ClusterRoleList" application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: "#/components/schemas/v1.ClusterRoleList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: "#/components/schemas/v1.ClusterRoleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: "#/components/schemas/v1.ClusterRoleList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: "#/components/schemas/v1.ClusterRoleList" description: OK "401": content: {} @@ -65613,53 +65613,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" description: Accepted "401": content: {} @@ -65751,38 +65751,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -65823,16 +65823,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" description: OK "401": content: {} @@ -65911,38 +65911,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" description: Created "401": content: {} @@ -66014,38 +66014,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" application/cbor: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" description: Created "401": content: {} @@ -66205,23 +66205,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -66346,25 +66346,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RoleBindingList" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RoleBindingList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RoleBindingList" application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RoleBindingList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RoleBindingList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RoleBindingList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RoleBindingList" description: OK "401": content: {} @@ -66437,53 +66437,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" description: Accepted "401": content: {} @@ -66581,38 +66581,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -66659,16 +66659,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" description: OK "401": content: {} @@ -66753,38 +66753,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" description: Created "401": content: {} @@ -66862,38 +66862,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" description: Created "401": content: {} @@ -67053,23 +67053,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -67194,25 +67194,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.RoleList" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.RoleList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.RoleList" application/cbor: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.RoleList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.RoleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.RoleList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.RoleList" description: OK "401": content: {} @@ -67285,53 +67285,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" description: Accepted "401": content: {} @@ -67429,38 +67429,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -67507,16 +67507,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" description: OK "401": content: {} @@ -67601,38 +67601,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" description: Created "401": content: {} @@ -67710,38 +67710,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" application/cbor: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" description: Created "401": content: {} @@ -67861,25 +67861,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RoleBindingList" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RoleBindingList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RoleBindingList" application/cbor: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RoleBindingList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RoleBindingList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RoleBindingList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RoleBindingList" description: OK "401": content: {} @@ -68000,25 +68000,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.RoleList" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.RoleList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.RoleList" application/cbor: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.RoleList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.RoleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.RoleList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.RoleList" description: OK "401": content: {} @@ -68057,13 +68057,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -68083,16 +68083,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -68239,23 +68239,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -68374,25 +68374,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeviceClassList' + $ref: "#/components/schemas/v1.DeviceClassList" application/yaml: schema: - $ref: '#/components/schemas/v1.DeviceClassList' + $ref: "#/components/schemas/v1.DeviceClassList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DeviceClassList' + $ref: "#/components/schemas/v1.DeviceClassList" application/cbor: schema: - $ref: '#/components/schemas/v1.DeviceClassList' + $ref: "#/components/schemas/v1.DeviceClassList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.DeviceClassList' + $ref: "#/components/schemas/v1.DeviceClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.DeviceClassList' + $ref: "#/components/schemas/v1.DeviceClassList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.DeviceClassList' + $ref: "#/components/schemas/v1.DeviceClassList" description: OK "401": content: {} @@ -68459,53 +68459,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" description: Accepted "401": content: {} @@ -68597,38 +68597,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" description: Accepted "401": content: {} @@ -68669,16 +68669,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" description: OK "401": content: {} @@ -68757,38 +68757,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" description: Created "401": content: {} @@ -68860,38 +68860,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" description: Created "401": content: {} @@ -69051,23 +69051,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -69192,25 +69192,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceClaimList' + $ref: "#/components/schemas/v1.ResourceClaimList" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceClaimList' + $ref: "#/components/schemas/v1.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceClaimList' + $ref: "#/components/schemas/v1.ResourceClaimList" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceClaimList' + $ref: "#/components/schemas/v1.ResourceClaimList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ResourceClaimList' + $ref: "#/components/schemas/v1.ResourceClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ResourceClaimList' + $ref: "#/components/schemas/v1.ResourceClaimList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ResourceClaimList' + $ref: "#/components/schemas/v1.ResourceClaimList" description: OK "401": content: {} @@ -69283,53 +69283,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Accepted "401": content: {} @@ -69427,38 +69427,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Accepted "401": content: {} @@ -69505,16 +69505,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "401": content: {} @@ -69599,38 +69599,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Created "401": content: {} @@ -69708,38 +69708,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Created "401": content: {} @@ -69787,16 +69787,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "401": content: {} @@ -69881,38 +69881,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Created "401": content: {} @@ -69990,38 +69990,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Created "401": content: {} @@ -70181,23 +70181,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -70322,25 +70322,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" description: OK "401": content: {} @@ -70413,53 +70413,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Accepted "401": content: {} @@ -70557,38 +70557,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Accepted "401": content: {} @@ -70635,16 +70635,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "401": content: {} @@ -70729,38 +70729,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Created "401": content: {} @@ -70838,38 +70838,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Created "401": content: {} @@ -70989,25 +70989,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceClaimList' + $ref: "#/components/schemas/v1.ResourceClaimList" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceClaimList' + $ref: "#/components/schemas/v1.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceClaimList' + $ref: "#/components/schemas/v1.ResourceClaimList" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceClaimList' + $ref: "#/components/schemas/v1.ResourceClaimList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ResourceClaimList' + $ref: "#/components/schemas/v1.ResourceClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ResourceClaimList' + $ref: "#/components/schemas/v1.ResourceClaimList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ResourceClaimList' + $ref: "#/components/schemas/v1.ResourceClaimList" description: OK "401": content: {} @@ -71128,25 +71128,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" description: OK "401": content: {} @@ -71301,23 +71301,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -71436,25 +71436,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceSliceList' + $ref: "#/components/schemas/v1.ResourceSliceList" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceSliceList' + $ref: "#/components/schemas/v1.ResourceSliceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceSliceList' + $ref: "#/components/schemas/v1.ResourceSliceList" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceSliceList' + $ref: "#/components/schemas/v1.ResourceSliceList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ResourceSliceList' + $ref: "#/components/schemas/v1.ResourceSliceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ResourceSliceList' + $ref: "#/components/schemas/v1.ResourceSliceList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.ResourceSliceList' + $ref: "#/components/schemas/v1.ResourceSliceList" description: OK "401": content: {} @@ -71521,53 +71521,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" description: Accepted "401": content: {} @@ -71659,38 +71659,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" description: Accepted "401": content: {} @@ -71731,16 +71731,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "401": content: {} @@ -71819,38 +71819,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" description: Created "401": content: {} @@ -71922,38 +71922,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" description: Created "401": content: {} @@ -71991,16 +71991,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -72147,23 +72147,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -72282,25 +72282,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleList' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" description: OK "401": content: {} @@ -72367,53 +72367,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Accepted "401": content: {} @@ -72505,38 +72505,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Accepted "401": content: {} @@ -72577,16 +72577,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "401": content: {} @@ -72665,38 +72665,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Created "401": content: {} @@ -72768,38 +72768,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Created "401": content: {} @@ -72829,16 +72829,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -72985,23 +72985,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -73120,25 +73120,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.DeviceClassList' + $ref: "#/components/schemas/v1beta1.DeviceClassList" description: OK "401": content: {} @@ -73205,53 +73205,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Accepted "401": content: {} @@ -73343,38 +73343,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Accepted "401": content: {} @@ -73415,16 +73415,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "401": content: {} @@ -73503,38 +73503,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Created "401": content: {} @@ -73606,38 +73606,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Created "401": content: {} @@ -73797,23 +73797,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -73938,25 +73938,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" description: OK "401": content: {} @@ -74029,53 +74029,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Accepted "401": content: {} @@ -74173,38 +74173,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Accepted "401": content: {} @@ -74251,16 +74251,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "401": content: {} @@ -74345,38 +74345,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Created "401": content: {} @@ -74454,38 +74454,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Created "401": content: {} @@ -74533,16 +74533,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "401": content: {} @@ -74627,38 +74627,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Created "401": content: {} @@ -74736,38 +74736,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Created "401": content: {} @@ -74927,23 +74927,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -75068,25 +75068,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" description: OK "401": content: {} @@ -75159,53 +75159,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Accepted "401": content: {} @@ -75303,38 +75303,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Accepted "401": content: {} @@ -75381,16 +75381,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "401": content: {} @@ -75475,38 +75475,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Created "401": content: {} @@ -75584,38 +75584,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Created "401": content: {} @@ -75735,25 +75735,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" description: OK "401": content: {} @@ -75874,25 +75874,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" description: OK "401": content: {} @@ -76047,23 +76047,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -76182,25 +76182,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSliceList' + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSliceList' + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSliceList' + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSliceList' + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ResourceSliceList' + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ResourceSliceList' + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.ResourceSliceList' + $ref: "#/components/schemas/v1beta1.ResourceSliceList" description: OK "401": content: {} @@ -76267,53 +76267,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Accepted "401": content: {} @@ -76405,38 +76405,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Accepted "401": content: {} @@ -76477,16 +76477,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "401": content: {} @@ -76565,38 +76565,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Created "401": content: {} @@ -76668,38 +76668,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Created "401": content: {} @@ -76737,16 +76737,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -76893,23 +76893,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -77028,25 +77028,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.DeviceClassList' + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.DeviceClassList' + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.DeviceClassList' + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.DeviceClassList' + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.DeviceClassList' + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.DeviceClassList' + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta2.DeviceClassList' + $ref: "#/components/schemas/v1beta2.DeviceClassList" description: OK "401": content: {} @@ -77113,53 +77113,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" description: Accepted "401": content: {} @@ -77251,38 +77251,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" description: Accepted "401": content: {} @@ -77323,16 +77323,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" description: OK "401": content: {} @@ -77411,38 +77411,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" description: Created "401": content: {} @@ -77514,38 +77514,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" description: Created "401": content: {} @@ -77705,23 +77705,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -77846,25 +77846,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: "#/components/schemas/v1beta2.ResourceClaimList" description: OK "401": content: {} @@ -77937,53 +77937,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: Accepted "401": content: {} @@ -78081,38 +78081,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: Accepted "401": content: {} @@ -78159,16 +78159,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK "401": content: {} @@ -78253,38 +78253,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: Created "401": content: {} @@ -78362,38 +78362,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: Created "401": content: {} @@ -78441,16 +78441,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK "401": content: {} @@ -78535,38 +78535,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: Created "401": content: {} @@ -78644,38 +78644,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: Created "401": content: {} @@ -78835,23 +78835,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -78976,25 +78976,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" description: OK "401": content: {} @@ -79067,53 +79067,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: Accepted "401": content: {} @@ -79211,38 +79211,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: Accepted "401": content: {} @@ -79289,16 +79289,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: OK "401": content: {} @@ -79383,38 +79383,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: Created "401": content: {} @@ -79492,38 +79492,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: Created "401": content: {} @@ -79643,25 +79643,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimList' + $ref: "#/components/schemas/v1beta2.ResourceClaimList" description: OK "401": content: {} @@ -79782,25 +79782,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" description: OK "401": content: {} @@ -79955,23 +79955,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -80090,25 +80090,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSliceList' + $ref: "#/components/schemas/v1beta2.ResourceSliceList" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSliceList' + $ref: "#/components/schemas/v1beta2.ResourceSliceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSliceList' + $ref: "#/components/schemas/v1beta2.ResourceSliceList" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSliceList' + $ref: "#/components/schemas/v1beta2.ResourceSliceList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.ResourceSliceList' + $ref: "#/components/schemas/v1beta2.ResourceSliceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.ResourceSliceList' + $ref: "#/components/schemas/v1beta2.ResourceSliceList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta2.ResourceSliceList' + $ref: "#/components/schemas/v1beta2.ResourceSliceList" description: OK "401": content: {} @@ -80175,53 +80175,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: Accepted "401": content: {} @@ -80313,38 +80313,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: Accepted "401": content: {} @@ -80385,16 +80385,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: OK "401": content: {} @@ -80473,38 +80473,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: Created "401": content: {} @@ -80576,38 +80576,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: Created "401": content: {} @@ -80645,13 +80645,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -80671,16 +80671,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -80827,23 +80827,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -80962,25 +80962,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: "#/components/schemas/v1.PriorityClassList" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: "#/components/schemas/v1.PriorityClassList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: "#/components/schemas/v1.PriorityClassList" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: "#/components/schemas/v1.PriorityClassList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: "#/components/schemas/v1.PriorityClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: "#/components/schemas/v1.PriorityClassList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: "#/components/schemas/v1.PriorityClassList" description: OK "401": content: {} @@ -81047,53 +81047,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" description: Accepted "401": content: {} @@ -81185,38 +81185,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -81257,16 +81257,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" description: OK "401": content: {} @@ -81345,38 +81345,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" description: Created "401": content: {} @@ -81448,38 +81448,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" description: Created "401": content: {} @@ -81509,13 +81509,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -81535,16 +81535,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -81691,23 +81691,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -81826,25 +81826,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: "#/components/schemas/v1.CSIDriverList" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: "#/components/schemas/v1.CSIDriverList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: "#/components/schemas/v1.CSIDriverList" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: "#/components/schemas/v1.CSIDriverList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: "#/components/schemas/v1.CSIDriverList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: "#/components/schemas/v1.CSIDriverList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: "#/components/schemas/v1.CSIDriverList" description: OK "401": content: {} @@ -81911,53 +81911,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" description: Accepted "401": content: {} @@ -82049,38 +82049,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" description: Accepted "401": content: {} @@ -82121,16 +82121,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" description: OK "401": content: {} @@ -82209,38 +82209,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" description: Created "401": content: {} @@ -82312,38 +82312,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" description: Created "401": content: {} @@ -82497,23 +82497,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -82632,25 +82632,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: "#/components/schemas/v1.CSINodeList" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: "#/components/schemas/v1.CSINodeList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: "#/components/schemas/v1.CSINodeList" application/cbor: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: "#/components/schemas/v1.CSINodeList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: "#/components/schemas/v1.CSINodeList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: "#/components/schemas/v1.CSINodeList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: "#/components/schemas/v1.CSINodeList" description: OK "401": content: {} @@ -82717,53 +82717,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" description: Accepted "401": content: {} @@ -82855,38 +82855,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" description: Accepted "401": content: {} @@ -82927,16 +82927,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" description: OK "401": content: {} @@ -83015,38 +83015,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" description: Created "401": content: {} @@ -83118,38 +83118,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" application/cbor: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" description: Created "401": content: {} @@ -83269,25 +83269,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1.CSIStorageCapacityList" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1.CSIStorageCapacityList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1.CSIStorageCapacityList" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1.CSIStorageCapacityList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1.CSIStorageCapacityList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1.CSIStorageCapacityList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1.CSIStorageCapacityList" description: OK "401": content: {} @@ -83448,23 +83448,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -83589,25 +83589,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1.CSIStorageCapacityList" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1.CSIStorageCapacityList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1.CSIStorageCapacityList" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1.CSIStorageCapacityList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1.CSIStorageCapacityList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1.CSIStorageCapacityList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1.CSIStorageCapacityList" description: OK "401": content: {} @@ -83680,53 +83680,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" description: Accepted "401": content: {} @@ -83824,38 +83824,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -83902,16 +83902,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" description: OK "401": content: {} @@ -83996,38 +83996,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" description: Created "401": content: {} @@ -84105,38 +84105,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" description: Created "401": content: {} @@ -84290,23 +84290,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -84425,25 +84425,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: "#/components/schemas/v1.StorageClassList" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: "#/components/schemas/v1.StorageClassList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: "#/components/schemas/v1.StorageClassList" application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: "#/components/schemas/v1.StorageClassList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: "#/components/schemas/v1.StorageClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: "#/components/schemas/v1.StorageClassList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: "#/components/schemas/v1.StorageClassList" description: OK "401": content: {} @@ -84510,53 +84510,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" description: Accepted "401": content: {} @@ -84648,38 +84648,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" description: Accepted "401": content: {} @@ -84720,16 +84720,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" description: OK "401": content: {} @@ -84808,38 +84808,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" description: Created "401": content: {} @@ -84911,38 +84911,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" application/cbor: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" description: Created "401": content: {} @@ -85096,23 +85096,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -85231,25 +85231,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: "#/components/schemas/v1.VolumeAttachmentList" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: "#/components/schemas/v1.VolumeAttachmentList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: "#/components/schemas/v1.VolumeAttachmentList" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: "#/components/schemas/v1.VolumeAttachmentList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: "#/components/schemas/v1.VolumeAttachmentList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: "#/components/schemas/v1.VolumeAttachmentList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: "#/components/schemas/v1.VolumeAttachmentList" description: OK "401": content: {} @@ -85316,53 +85316,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" description: Accepted "401": content: {} @@ -85454,38 +85454,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" description: Accepted "401": content: {} @@ -85526,16 +85526,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" description: OK "401": content: {} @@ -85614,38 +85614,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" description: Created "401": content: {} @@ -85717,38 +85717,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" description: Created "401": content: {} @@ -85790,16 +85790,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" description: OK "401": content: {} @@ -85878,38 +85878,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" description: Created "401": content: {} @@ -85981,38 +85981,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" description: Created "401": content: {} @@ -86166,23 +86166,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -86301,25 +86301,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1.VolumeAttributesClassList" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1.VolumeAttributesClassList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1.VolumeAttributesClassList" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1.VolumeAttributesClassList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1.VolumeAttributesClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1.VolumeAttributesClassList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1.VolumeAttributesClassList" description: OK "401": content: {} @@ -86386,53 +86386,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" description: Accepted "401": content: {} @@ -86524,38 +86524,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" description: Accepted "401": content: {} @@ -86596,16 +86596,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" description: OK "401": content: {} @@ -86684,38 +86684,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" description: Created "401": content: {} @@ -86787,38 +86787,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" description: Created "401": content: {} @@ -86859,16 +86859,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -87015,23 +87015,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -87150,25 +87150,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClassList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClassList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClassList" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClassList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClassList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClassList" description: OK "401": content: {} @@ -87235,53 +87235,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" description: Accepted "401": content: {} @@ -87373,38 +87373,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" description: Accepted "401": content: {} @@ -87445,16 +87445,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" description: OK "401": content: {} @@ -87533,38 +87533,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" description: Created "401": content: {} @@ -87636,38 +87636,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" description: Created "401": content: {} @@ -87697,16 +87697,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -87853,23 +87853,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -87988,25 +87988,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClassList" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClassList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClassList" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClassList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClassList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClassList" description: OK "401": content: {} @@ -88073,53 +88073,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" description: Accepted "401": content: {} @@ -88211,38 +88211,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" description: Accepted "401": content: {} @@ -88283,16 +88283,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" description: OK "401": content: {} @@ -88371,38 +88371,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" description: Created "401": content: {} @@ -88474,38 +88474,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" application/cbor: schema: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" description: Created "401": content: {} @@ -88535,13 +88535,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -88561,16 +88561,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -88717,23 +88717,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -88852,25 +88852,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigrationList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigrationList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigrationList" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigrationList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigrationList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigrationList" application/cbor-seq: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigrationList" description: OK "401": content: {} @@ -88937,53 +88937,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" description: Accepted "401": content: {} @@ -89075,38 +89075,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -89147,16 +89147,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" description: OK "401": content: {} @@ -89235,38 +89235,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" description: Created "401": content: {} @@ -89338,38 +89338,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" description: Created "401": content: {} @@ -89411,16 +89411,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" description: OK "401": content: {} @@ -89499,38 +89499,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" description: Created "401": content: {} @@ -89602,38 +89602,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" description: Created "401": content: {} @@ -89692,7 +89692,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/version.Info' + $ref: "#/components/schemas/version.Info" description: OK "401": content: {} @@ -89723,7 +89723,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -89920,7 +89920,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": @@ -90223,7 +90223,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": @@ -90519,7 +90519,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": @@ -91349,7 +91349,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": @@ -92387,7 +92387,7 @@ components: \ take precedence over include rules (if a resource matches both, it is\ \ excluded)" items: - $ref: '#/components/schemas/v1.NamedRuleWithOperations' + $ref: "#/components/schemas/v1.NamedRuleWithOperations" type: array x-kubernetes-list-type: atomic matchPolicy: @@ -92401,15 +92401,15 @@ components: Defaults to "Equivalent" type: string namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" objectSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" resourceRules: description: ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. items: - $ref: '#/components/schemas/v1.NamedRuleWithOperations' + $ref: "#/components/schemas/v1.NamedRuleWithOperations" type: array x-kubernetes-list-type: atomic type: object @@ -92509,7 +92509,7 @@ components: type: array x-kubernetes-list-type: atomic clientConfig: - $ref: '#/components/schemas/admissionregistration.v1.WebhookClientConfig' + $ref: "#/components/schemas/admissionregistration.v1.WebhookClientConfig" failurePolicy: description: FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to @@ -92526,7 +92526,7 @@ components: - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped items: - $ref: '#/components/schemas/v1.MatchCondition' + $ref: "#/components/schemas/v1.MatchCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -92549,9 +92549,9 @@ components: \ the webhook, and kubernetes.io is the name of the organization. Required." type: string namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" objectSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" reinvocationPolicy: description: |- reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". @@ -92572,7 +92572,7 @@ components: \ for ValidatingWebhookConfiguration and MutatingWebhookConfiguration\ \ objects." items: - $ref: '#/components/schemas/v1.RuleWithOperations' + $ref: "#/components/schemas/v1.RuleWithOperations" type: array x-kubernetes-list-type: atomic sideEffects: @@ -92816,12 +92816,12 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" webhooks: description: Webhooks is a list of webhooks and the affected resources and operations. items: - $ref: '#/components/schemas/v1.MutatingWebhook' + $ref: "#/components/schemas/v1.MutatingWebhook" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -93261,7 +93261,7 @@ components: items: description: List of MutatingWebhookConfiguration. items: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -93269,7 +93269,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -93419,7 +93419,7 @@ components: Required type: string selector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" type: object x-kubernetes-map-type: atomic v1.RuleWithOperations: @@ -93528,7 +93528,7 @@ components: expressionWarnings: description: The type checking warnings for each expression. items: - $ref: '#/components/schemas/v1.ExpressionWarning' + $ref: "#/components/schemas/v1.ExpressionWarning" type: array x-kubernetes-list-type: atomic type: object @@ -93742,11 +93742,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicySpec' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicySpec" status: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyStatus' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyStatus" type: object x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io @@ -93941,9 +93941,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingSpec' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingSpec" type: object x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io @@ -94305,7 +94305,7 @@ components: items: description: List of PolicyBinding. items: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -94313,7 +94313,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -94447,9 +94447,9 @@ components: - validationActions properties: matchResources: - $ref: '#/components/schemas/v1.MatchResources' + $ref: "#/components/schemas/v1.MatchResources" paramRef: - $ref: '#/components/schemas/v1.ParamRef' + $ref: "#/components/schemas/v1.ParamRef" policyName: description: "PolicyName references a ValidatingAdmissionPolicy name which\ \ the ValidatingAdmissionPolicyBinding binds to. If the referenced resource\ @@ -94890,7 +94890,7 @@ components: items: description: List of ValidatingAdmissionPolicy. items: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -94898,7 +94898,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -95043,7 +95043,7 @@ components: and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required. items: - $ref: '#/components/schemas/v1.AuditAnnotation' + $ref: "#/components/schemas/v1.AuditAnnotation" type: array x-kubernetes-list-type: atomic failurePolicy: @@ -95071,7 +95071,7 @@ components: - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped items: - $ref: '#/components/schemas/v1.MatchCondition' + $ref: "#/components/schemas/v1.MatchCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -95079,15 +95079,15 @@ components: - name x-kubernetes-patch-merge-key: name matchConstraints: - $ref: '#/components/schemas/v1.MatchResources' + $ref: "#/components/schemas/v1.MatchResources" paramKind: - $ref: '#/components/schemas/v1.ParamKind' + $ref: "#/components/schemas/v1.ParamKind" validations: description: Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. items: - $ref: '#/components/schemas/v1.Validation' + $ref: "#/components/schemas/v1.Validation" type: array x-kubernetes-list-type: atomic variables: @@ -95096,7 +95096,7 @@ components: The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. items: - $ref: '#/components/schemas/v1.Variable' + $ref: "#/components/schemas/v1.Variable" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -95133,7 +95133,7 @@ components: description: The conditions represent the latest available observations of a policy's current state. items: - $ref: '#/components/schemas/v1.Condition' + $ref: "#/components/schemas/v1.Condition" type: array x-kubernetes-list-type: map x-kubernetes-list-map-keys: @@ -95143,7 +95143,7 @@ components: format: int64 type: integer typeChecking: - $ref: '#/components/schemas/v1.TypeChecking' + $ref: "#/components/schemas/v1.TypeChecking" type: object v1.ValidatingWebhook: description: ValidatingWebhook describes an admission webhook and the resources @@ -95239,7 +95239,7 @@ components: type: array x-kubernetes-list-type: atomic clientConfig: - $ref: '#/components/schemas/admissionregistration.v1.WebhookClientConfig' + $ref: "#/components/schemas/admissionregistration.v1.WebhookClientConfig" failurePolicy: description: FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to @@ -95256,7 +95256,7 @@ components: - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped items: - $ref: '#/components/schemas/v1.MatchCondition' + $ref: "#/components/schemas/v1.MatchCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -95279,9 +95279,9 @@ components: \ the webhook, and kubernetes.io is the name of the organization. Required." type: string namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" objectSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $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\ @@ -95292,7 +95292,7 @@ components: \ for ValidatingWebhookConfiguration and MutatingWebhookConfiguration\ \ objects." items: - $ref: '#/components/schemas/v1.RuleWithOperations' + $ref: "#/components/schemas/v1.RuleWithOperations" type: array x-kubernetes-list-type: atomic sideEffects: @@ -95534,12 +95534,12 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" webhooks: description: Webhooks is a list of webhooks and the affected resources and operations. items: - $ref: '#/components/schemas/v1.ValidatingWebhook' + $ref: "#/components/schemas/v1.ValidatingWebhook" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -95975,7 +95975,7 @@ components: items: description: List of ValidatingWebhookConfiguration. items: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -95983,7 +95983,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -96126,7 +96126,7 @@ components: 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' + $ref: "#/components/schemas/admissionregistration.v1.ServiceReference" url: description: |- `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. @@ -96367,7 +96367,7 @@ components: \ the policy 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' + $ref: "#/components/schemas/v1alpha1.NamedRuleWithOperations" type: array x-kubernetes-list-type: atomic matchPolicy: @@ -96381,15 +96381,15 @@ components: Defaults to "Equivalent" type: string namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" objectSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" resourceRules: description: ResourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule. items: - $ref: '#/components/schemas/v1alpha1.NamedRuleWithOperations' + $ref: "#/components/schemas/v1alpha1.NamedRuleWithOperations" type: array x-kubernetes-list-type: atomic type: object @@ -96581,9 +96581,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicySpec' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicySpec" type: object x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io @@ -96775,9 +96775,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingSpec' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingSpec" type: object x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io @@ -97133,7 +97133,7 @@ components: items: description: List of PolicyBinding. items: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -97141,7 +97141,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -97272,9 +97272,9 @@ components: key: matchLabels properties: matchResources: - $ref: '#/components/schemas/v1alpha1.MatchResources' + $ref: "#/components/schemas/v1alpha1.MatchResources" paramRef: - $ref: '#/components/schemas/v1alpha1.ParamRef' + $ref: "#/components/schemas/v1alpha1.ParamRef" policyName: description: "policyName references a MutatingAdmissionPolicy name which\ \ the MutatingAdmissionPolicyBinding binds to. If the referenced resource\ @@ -97644,7 +97644,7 @@ components: items: description: List of ValidatingAdmissionPolicy. items: - $ref: '#/components/schemas/v1alpha1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -97652,7 +97652,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -97812,7 +97812,7 @@ components: - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped items: - $ref: '#/components/schemas/v1alpha1.MatchCondition' + $ref: "#/components/schemas/v1alpha1.MatchCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -97820,7 +97820,7 @@ components: - name x-kubernetes-patch-merge-key: name matchConstraints: - $ref: '#/components/schemas/v1alpha1.MatchResources' + $ref: "#/components/schemas/v1alpha1.MatchResources" mutations: description: "mutations contain operations to perform on matching objects.\ \ mutations may not be empty; a minimum of one mutation is required. mutations\ @@ -97828,11 +97828,11 @@ components: \ The mutations of a policy are invoked for each binding of this policy\ \ and reinvocation of mutations occurs on a per binding basis." items: - $ref: '#/components/schemas/v1alpha1.Mutation' + $ref: "#/components/schemas/v1alpha1.Mutation" type: array x-kubernetes-list-type: atomic paramKind: - $ref: '#/components/schemas/v1alpha1.ParamKind' + $ref: "#/components/schemas/v1alpha1.ParamKind" reinvocationPolicy: description: |- reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". @@ -97847,7 +97847,7 @@ components: The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic. items: - $ref: '#/components/schemas/v1alpha1.Variable' + $ref: "#/components/schemas/v1alpha1.Variable" type: array x-kubernetes-list-type: atomic type: object @@ -97862,9 +97862,9 @@ components: expression: expression properties: applyConfiguration: - $ref: '#/components/schemas/v1alpha1.ApplyConfiguration' + $ref: "#/components/schemas/v1alpha1.ApplyConfiguration" jsonPatch: - $ref: '#/components/schemas/v1alpha1.JSONPatch' + $ref: "#/components/schemas/v1alpha1.JSONPatch" patchType: description: patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required. @@ -98008,7 +98008,7 @@ components: Allowed values are `Allow` or `Deny` Default to `Deny` type: string selector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" type: object x-kubernetes-map-type: atomic v1alpha1.Variable: @@ -98260,7 +98260,7 @@ components: \ take precedence over include rules (if a resource matches both, it is\ \ excluded)" items: - $ref: '#/components/schemas/v1beta1.NamedRuleWithOperations' + $ref: "#/components/schemas/v1beta1.NamedRuleWithOperations" type: array x-kubernetes-list-type: atomic matchPolicy: @@ -98274,15 +98274,15 @@ components: Defaults to "Equivalent" type: string namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" objectSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" resourceRules: description: ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. items: - $ref: '#/components/schemas/v1beta1.NamedRuleWithOperations' + $ref: "#/components/schemas/v1beta1.NamedRuleWithOperations" type: array x-kubernetes-list-type: atomic type: object @@ -98474,9 +98474,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicySpec' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicySpec" type: object x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io @@ -98668,9 +98668,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingSpec' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingSpec" type: object x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io @@ -99026,7 +99026,7 @@ components: items: description: List of PolicyBinding. items: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -99034,7 +99034,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -99165,9 +99165,9 @@ components: key: matchLabels properties: matchResources: - $ref: '#/components/schemas/v1beta1.MatchResources' + $ref: "#/components/schemas/v1beta1.MatchResources" paramRef: - $ref: '#/components/schemas/v1beta1.ParamRef' + $ref: "#/components/schemas/v1beta1.ParamRef" policyName: description: "policyName references a MutatingAdmissionPolicy name which\ \ the MutatingAdmissionPolicyBinding binds to. If the referenced resource\ @@ -99537,7 +99537,7 @@ components: items: description: List of ValidatingAdmissionPolicy. items: - $ref: '#/components/schemas/v1beta1.MutatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -99545,7 +99545,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -99705,7 +99705,7 @@ components: - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped items: - $ref: '#/components/schemas/v1beta1.MatchCondition' + $ref: "#/components/schemas/v1beta1.MatchCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -99713,7 +99713,7 @@ components: - name x-kubernetes-patch-merge-key: name matchConstraints: - $ref: '#/components/schemas/v1beta1.MatchResources' + $ref: "#/components/schemas/v1beta1.MatchResources" mutations: description: "mutations contain operations to perform on matching objects.\ \ mutations may not be empty; a minimum of one mutation is required. mutations\ @@ -99721,11 +99721,11 @@ components: \ The mutations of a policy are invoked for each binding of this policy\ \ and reinvocation of mutations occurs on a per binding basis." items: - $ref: '#/components/schemas/v1beta1.Mutation' + $ref: "#/components/schemas/v1beta1.Mutation" type: array x-kubernetes-list-type: atomic paramKind: - $ref: '#/components/schemas/v1beta1.ParamKind' + $ref: "#/components/schemas/v1beta1.ParamKind" reinvocationPolicy: description: |- reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". @@ -99740,7 +99740,7 @@ components: The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic. items: - $ref: '#/components/schemas/v1beta1.Variable' + $ref: "#/components/schemas/v1beta1.Variable" type: array x-kubernetes-list-type: atomic type: object @@ -99755,9 +99755,9 @@ components: expression: expression properties: applyConfiguration: - $ref: '#/components/schemas/v1beta1.ApplyConfiguration' + $ref: "#/components/schemas/v1beta1.ApplyConfiguration" jsonPatch: - $ref: '#/components/schemas/v1beta1.JSONPatch' + $ref: "#/components/schemas/v1beta1.JSONPatch" patchType: description: patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required. @@ -99905,7 +99905,7 @@ components: Required type: string selector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" type: object x-kubernetes-map-type: atomic v1beta1.Variable: @@ -100062,14 +100062,14 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: description: Spec is an empty spec. It is here to comply with Kubernetes API style. properties: {} type: object status: - $ref: '#/components/schemas/v1alpha1.StorageVersionStatus' + $ref: "#/components/schemas/v1alpha1.StorageVersionStatus" required: - spec - status @@ -100299,7 +100299,7 @@ components: items: description: Items holds a list of StorageVersion items: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1alpha1.StorageVersion" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -100307,7 +100307,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -100363,7 +100363,7 @@ components: conditions: description: The latest available observations of the storageVersion's state. items: - $ref: '#/components/schemas/v1alpha1.StorageVersionCondition' + $ref: "#/components/schemas/v1alpha1.StorageVersionCondition" type: array x-kubernetes-list-type: map x-kubernetes-list-map-keys: @@ -100371,7 +100371,7 @@ components: storageVersions: description: The reported versions per API server instance. items: - $ref: '#/components/schemas/v1alpha1.ServerStorageVersion' + $ref: "#/components/schemas/v1alpha1.ServerStorageVersion" type: array x-kubernetes-list-type: map x-kubernetes-list-map-keys: @@ -100455,7 +100455,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" revision: description: Revision indicates the revision of the state represented by Data. @@ -100591,7 +100591,7 @@ components: items: description: Items is the list of ControllerRevisions items: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -100599,7 +100599,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -103948,11 +103948,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.DaemonSetSpec' + $ref: "#/components/schemas/v1.DaemonSetSpec" status: - $ref: '#/components/schemas/v1.DaemonSetStatus' + $ref: "#/components/schemas/v1.DaemonSetStatus" type: object x-kubernetes-group-version-kind: - group: apps @@ -110658,7 +110658,7 @@ components: items: description: A list of daemon sets. items: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -110666,7 +110666,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -113948,11 +113948,11 @@ components: format: int32 type: integer selector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" template: - $ref: '#/components/schemas/v1.PodTemplateSpec' + $ref: "#/components/schemas/v1.PodTemplateSpec" updateStrategy: - $ref: '#/components/schemas/v1.DaemonSetUpdateStrategy' + $ref: "#/components/schemas/v1.DaemonSetUpdateStrategy" required: - selector - template @@ -113991,7 +113991,7 @@ components: description: Represents the latest available observations of a DaemonSet's current state. items: - $ref: '#/components/schemas/v1.DaemonSetCondition' + $ref: "#/components/schemas/v1.DaemonSetCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -114055,7 +114055,7 @@ components: maxUnavailable: maxUnavailable properties: rollingUpdate: - $ref: '#/components/schemas/v1.RollingUpdateDaemonSet' + $ref: "#/components/schemas/v1.RollingUpdateDaemonSet" type: description: Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. @@ -117404,11 +117404,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.DeploymentSpec' + $ref: "#/components/schemas/v1.DeploymentSpec" status: - $ref: '#/components/schemas/v1.DeploymentStatus' + $ref: "#/components/schemas/v1.DeploymentStatus" type: object x-kubernetes-group-version-kind: - group: apps @@ -124127,7 +124127,7 @@ components: items: description: Items is the list of Deployments. items: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -124135,7 +124135,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -127437,11 +127437,11 @@ components: format: int32 type: integer selector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" strategy: - $ref: '#/components/schemas/v1.DeploymentStrategy' + $ref: "#/components/schemas/v1.DeploymentStrategy" template: - $ref: '#/components/schemas/v1.PodTemplateSpec' + $ref: "#/components/schemas/v1.PodTemplateSpec" required: - selector - template @@ -127486,7 +127486,7 @@ components: description: Represents the latest available observations of a deployment's current state. items: - $ref: '#/components/schemas/v1.DeploymentCondition' + $ref: "#/components/schemas/v1.DeploymentCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -127537,7 +127537,7 @@ components: maxUnavailable: maxUnavailable properties: rollingUpdate: - $ref: '#/components/schemas/v1.RollingUpdateDeployment' + $ref: "#/components/schemas/v1.RollingUpdateDeployment" type: description: Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. @@ -130875,11 +130875,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.ReplicaSetSpec' + $ref: "#/components/schemas/v1.ReplicaSetSpec" status: - $ref: '#/components/schemas/v1.ReplicaSetStatus' + $ref: "#/components/schemas/v1.ReplicaSetStatus" type: object x-kubernetes-group-version-kind: - group: apps @@ -137570,7 +137570,7 @@ components: items: description: "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset" items: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -137578,7 +137578,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -140855,9 +140855,9 @@ components: format: int32 type: integer selector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" template: - $ref: '#/components/schemas/v1.PodTemplateSpec' + $ref: "#/components/schemas/v1.PodTemplateSpec" required: - selector type: object @@ -140891,7 +140891,7 @@ components: description: Represents the latest available observations of a replica set's current state. items: - $ref: '#/components/schemas/v1.ReplicaSetCondition' + $ref: "#/components/schemas/v1.ReplicaSetCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -144570,11 +144570,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.StatefulSetSpec' + $ref: "#/components/schemas/v1.StatefulSetSpec" status: - $ref: '#/components/schemas/v1.StatefulSetStatus' + $ref: "#/components/schemas/v1.StatefulSetStatus" type: object x-kubernetes-group-version-kind: - group: apps @@ -151746,7 +151746,7 @@ components: items: description: Items is the list of stateful sets. items: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -151754,7 +151754,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -155299,9 +155299,9 @@ components: format: int32 type: integer ordinals: - $ref: '#/components/schemas/v1.StatefulSetOrdinals' + $ref: "#/components/schemas/v1.StatefulSetOrdinals" persistentVolumeClaimRetentionPolicy: - $ref: '#/components/schemas/v1.StatefulSetPersistentVolumeClaimRetentionPolicy' + $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\ @@ -155327,7 +155327,7 @@ components: format: int32 type: integer selector: - $ref: '#/components/schemas/v1.LabelSelector' + $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\ @@ -155336,9 +155336,9 @@ components: \ where \"pod-specific-string\" is managed by the StatefulSet controller." type: string template: - $ref: '#/components/schemas/v1.PodTemplateSpec' + $ref: "#/components/schemas/v1.PodTemplateSpec" updateStrategy: - $ref: '#/components/schemas/v1.StatefulSetUpdateStrategy' + $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\ @@ -155348,7 +155348,7 @@ components: \ list takes precedence over any volumes in the template, with the same\ \ name." items: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" type: array x-kubernetes-list-type: atomic required: @@ -155394,7 +155394,7 @@ components: description: Represents the latest available observations of a statefulset's current state. items: - $ref: '#/components/schemas/v1.StatefulSetCondition' + $ref: "#/components/schemas/v1.StatefulSetCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -155448,7 +155448,7 @@ components: maxUnavailable: maxUnavailable properties: rollingUpdate: - $ref: '#/components/schemas/v1.RollingUpdateStatefulSetStrategy' + $ref: "#/components/schemas/v1.RollingUpdateStatefulSetStrategy" type: description: Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. @@ -155554,9 +155554,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" status: - $ref: '#/components/schemas/v1.SelfSubjectReviewStatus' + $ref: "#/components/schemas/v1.SelfSubjectReviewStatus" type: object x-kubernetes-group-version-kind: - group: authentication.k8s.io @@ -155580,7 +155580,7 @@ components: username: username properties: userInfo: - $ref: '#/components/schemas/v1.UserInfo' + $ref: "#/components/schemas/v1.UserInfo" type: object authentication.v1.TokenRequest: description: TokenRequest requests a token for a given service account. @@ -155658,11 +155658,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.TokenRequestSpec' + $ref: "#/components/schemas/v1.TokenRequestSpec" status: - $ref: '#/components/schemas/v1.TokenRequestStatus' + $ref: "#/components/schemas/v1.TokenRequestStatus" required: - spec type: object @@ -155698,7 +155698,7 @@ components: type: array x-kubernetes-list-type: atomic boundObjectRef: - $ref: '#/components/schemas/v1.BoundObjectReference' + $ref: "#/components/schemas/v1.BoundObjectReference" expirationSeconds: description: ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity @@ -155812,11 +155812,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.TokenReviewSpec' + $ref: "#/components/schemas/v1.TokenReviewSpec" status: - $ref: '#/components/schemas/v1.TokenReviewStatus' + $ref: "#/components/schemas/v1.TokenReviewStatus" required: - spec type: object @@ -155889,7 +155889,7 @@ components: description: Error indicates that the token couldn't be checked type: string user: - $ref: '#/components/schemas/v1.UserInfo' + $ref: "#/components/schemas/v1.UserInfo" type: object v1.UserInfo: description: UserInfo holds the information about the user needed to implement @@ -155969,7 +155969,7 @@ components: \ it is safe to authorize as unlimited request if the requirements are\ \ not understood." items: - $ref: '#/components/schemas/v1.FieldSelectorRequirement' + $ref: "#/components/schemas/v1.FieldSelectorRequirement" type: array x-kubernetes-list-type: atomic type: object @@ -156014,7 +156014,7 @@ components: \ it is safe to authorize as unlimited request if the requirements are\ \ not understood." items: - $ref: '#/components/schemas/v1.LabelSelectorRequirement' + $ref: "#/components/schemas/v1.LabelSelectorRequirement" type: array x-kubernetes-list-type: atomic type: object @@ -156136,11 +156136,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.SubjectAccessReviewSpec' + $ref: "#/components/schemas/v1.SubjectAccessReviewSpec" status: - $ref: '#/components/schemas/v1.SubjectAccessReviewStatus' + $ref: "#/components/schemas/v1.SubjectAccessReviewStatus" required: - spec type: object @@ -156232,12 +156232,12 @@ components: group: group properties: fieldSelector: - $ref: '#/components/schemas/v1.FieldSelectorAttributes' + $ref: "#/components/schemas/v1.FieldSelectorAttributes" group: description: Group is the API Group of the Resource. "*" means all. type: string labelSelector: - $ref: '#/components/schemas/v1.LabelSelectorAttributes' + $ref: "#/components/schemas/v1.LabelSelectorAttributes" name: description: Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. @@ -156427,11 +156427,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.SelfSubjectAccessReviewSpec' + $ref: "#/components/schemas/v1.SelfSubjectAccessReviewSpec" status: - $ref: '#/components/schemas/v1.SubjectAccessReviewStatus' + $ref: "#/components/schemas/v1.SubjectAccessReviewStatus" required: - spec type: object @@ -156485,9 +156485,9 @@ components: group: group properties: nonResourceAttributes: - $ref: '#/components/schemas/v1.NonResourceAttributes' + $ref: "#/components/schemas/v1.NonResourceAttributes" resourceAttributes: - $ref: '#/components/schemas/v1.ResourceAttributes' + $ref: "#/components/schemas/v1.ResourceAttributes" type: object v1.SelfSubjectRulesReview: description: "SelfSubjectRulesReview enumerates the set of actions the current\ @@ -156603,11 +156603,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.SelfSubjectRulesReviewSpec' + $ref: "#/components/schemas/v1.SelfSubjectRulesReviewSpec" status: - $ref: '#/components/schemas/v1.SubjectRulesReviewStatus' + $ref: "#/components/schemas/v1.SubjectRulesReviewStatus" required: - spec type: object @@ -156742,11 +156742,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.SubjectAccessReviewSpec' + $ref: "#/components/schemas/v1.SubjectAccessReviewSpec" status: - $ref: '#/components/schemas/v1.SubjectAccessReviewStatus' + $ref: "#/components/schemas/v1.SubjectAccessReviewStatus" required: - spec type: object @@ -156824,9 +156824,9 @@ components: type: array x-kubernetes-list-type: atomic nonResourceAttributes: - $ref: '#/components/schemas/v1.NonResourceAttributes' + $ref: "#/components/schemas/v1.NonResourceAttributes" resourceAttributes: - $ref: '#/components/schemas/v1.ResourceAttributes' + $ref: "#/components/schemas/v1.ResourceAttributes" uid: description: UID information about the requesting user. type: string @@ -156932,7 +156932,7 @@ components: \ to perform on non-resources. The list ordering isn't significant, may\ \ contain duplicates, and possibly be incomplete." items: - $ref: '#/components/schemas/v1.NonResourceRule' + $ref: "#/components/schemas/v1.NonResourceRule" type: array x-kubernetes-list-type: atomic resourceRules: @@ -156940,7 +156940,7 @@ components: \ to perform on resources. The list ordering isn't significant, may contain\ \ duplicates, and possibly be incomplete." items: - $ref: '#/components/schemas/v1.ResourceRule' + $ref: "#/components/schemas/v1.ResourceRule" type: array x-kubernetes-list-type: atomic required: @@ -157047,11 +157047,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerSpec' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerSpec" status: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerStatus' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerStatus" type: object x-kubernetes-group-version-kind: - group: autoscaling @@ -157203,7 +157203,7 @@ components: items: description: items is the list of horizontal pod autoscaler objects. items: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -157211,7 +157211,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -157246,7 +157246,7 @@ components: format: int32 type: integer scaleTargetRef: - $ref: '#/components/schemas/v1.CrossVersionObjectReference' + $ref: "#/components/schemas/v1.CrossVersionObjectReference" targetCPUUtilizationPercentage: description: targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not @@ -157366,11 +157366,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.ScaleSpec' + $ref: "#/components/schemas/v1.ScaleSpec" status: - $ref: '#/components/schemas/v1.ScaleStatus' + $ref: "#/components/schemas/v1.ScaleStatus" type: object x-kubernetes-group-version-kind: - group: autoscaling @@ -157435,7 +157435,7 @@ components: description: name is the name of the resource in question. type: string target: - $ref: '#/components/schemas/v2.MetricTarget' + $ref: "#/components/schemas/v2.MetricTarget" required: - container - name @@ -157461,7 +157461,7 @@ components: target type: string current: - $ref: '#/components/schemas/v2.MetricValueStatus' + $ref: "#/components/schemas/v2.MetricValueStatus" name: description: name is the name of the resource in question. type: string @@ -157519,9 +157519,9 @@ components: value: value properties: metric: - $ref: '#/components/schemas/v2.MetricIdentifier' + $ref: "#/components/schemas/v2.MetricIdentifier" target: - $ref: '#/components/schemas/v2.MetricTarget' + $ref: "#/components/schemas/v2.MetricTarget" required: - metric - target @@ -157552,9 +157552,9 @@ components: key: matchLabels properties: current: - $ref: '#/components/schemas/v2.MetricValueStatus' + $ref: "#/components/schemas/v2.MetricValueStatus" metric: - $ref: '#/components/schemas/v2.MetricIdentifier' + $ref: "#/components/schemas/v2.MetricIdentifier" required: - current - metric @@ -157612,7 +157612,7 @@ components: \ in a 15s window. - For scale down: allow all pods to be removed in a\ \ 15s window." items: - $ref: '#/components/schemas/v2.HPAScalingPolicy' + $ref: "#/components/schemas/v2.HPAScalingPolicy" type: array x-kubernetes-list-type: atomic selectPolicy: @@ -158114,11 +158114,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerSpec' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerSpec" status: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerStatus' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerStatus" type: object x-kubernetes-group-version-kind: - group: autoscaling @@ -158155,9 +158155,9 @@ components: tolerance: tolerance properties: scaleDown: - $ref: '#/components/schemas/v2.HPAScalingRules' + $ref: "#/components/schemas/v2.HPAScalingRules" scaleUp: - $ref: '#/components/schemas/v2.HPAScalingRules' + $ref: "#/components/schemas/v2.HPAScalingRules" type: object v2.HorizontalPodAutoscalerCondition: description: HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler @@ -159072,7 +159072,7 @@ components: items: description: items is the list of horizontal pod autoscaler objects. items: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -159080,7 +159080,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -159298,7 +159298,7 @@ components: name: name properties: behavior: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerBehavior' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerBehavior" maxReplicas: description: maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. @@ -159314,7 +159314,7 @@ components: \ 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' + $ref: "#/components/schemas/v2.MetricSpec" type: array x-kubernetes-list-type: atomic minReplicas: @@ -159326,7 +159326,7 @@ components: format: int32 type: integer scaleTargetRef: - $ref: '#/components/schemas/v2.CrossVersionObjectReference' + $ref: "#/components/schemas/v2.CrossVersionObjectReference" required: - maxReplicas - scaleTargetRef @@ -159519,7 +159519,7 @@ components: \ to scale its target, and indicates whether or not those conditions are\ \ met." items: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerCondition' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -159530,7 +159530,7 @@ components: description: currentMetrics is the last read state of the metrics used by this autoscaler. items: - $ref: '#/components/schemas/v2.MetricStatus' + $ref: "#/components/schemas/v2.MetricStatus" type: array x-kubernetes-list-type: atomic currentReplicas: @@ -159581,7 +159581,7 @@ components: description: name is the name of the given metric type: string selector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" required: - name type: object @@ -159677,15 +159677,15 @@ components: value: value properties: containerResource: - $ref: '#/components/schemas/v2.ContainerResourceMetricSource' + $ref: "#/components/schemas/v2.ContainerResourceMetricSource" external: - $ref: '#/components/schemas/v2.ExternalMetricSource' + $ref: "#/components/schemas/v2.ExternalMetricSource" object: - $ref: '#/components/schemas/v2.ObjectMetricSource' + $ref: "#/components/schemas/v2.ObjectMetricSource" pods: - $ref: '#/components/schemas/v2.PodsMetricSource' + $ref: "#/components/schemas/v2.PodsMetricSource" resource: - $ref: '#/components/schemas/v2.ResourceMetricSource' + $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\"\ @@ -159780,15 +159780,15 @@ components: key: matchLabels properties: containerResource: - $ref: '#/components/schemas/v2.ContainerResourceMetricStatus' + $ref: "#/components/schemas/v2.ContainerResourceMetricStatus" external: - $ref: '#/components/schemas/v2.ExternalMetricStatus' + $ref: "#/components/schemas/v2.ExternalMetricStatus" object: - $ref: '#/components/schemas/v2.ObjectMetricStatus' + $ref: "#/components/schemas/v2.ObjectMetricStatus" pods: - $ref: '#/components/schemas/v2.PodsMetricStatus' + $ref: "#/components/schemas/v2.PodsMetricStatus" resource: - $ref: '#/components/schemas/v2.ResourceMetricStatus' + $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\ @@ -160017,11 +160017,11 @@ components: value: value properties: describedObject: - $ref: '#/components/schemas/v2.CrossVersionObjectReference' + $ref: "#/components/schemas/v2.CrossVersionObjectReference" metric: - $ref: '#/components/schemas/v2.MetricIdentifier' + $ref: "#/components/schemas/v2.MetricIdentifier" target: - $ref: '#/components/schemas/v2.MetricTarget' + $ref: "#/components/schemas/v2.MetricTarget" required: - describedObject - metric @@ -160057,11 +160057,11 @@ components: key: matchLabels properties: current: - $ref: '#/components/schemas/v2.MetricValueStatus' + $ref: "#/components/schemas/v2.MetricValueStatus" describedObject: - $ref: '#/components/schemas/v2.CrossVersionObjectReference' + $ref: "#/components/schemas/v2.CrossVersionObjectReference" metric: - $ref: '#/components/schemas/v2.MetricIdentifier' + $ref: "#/components/schemas/v2.MetricIdentifier" required: - current - describedObject @@ -160096,9 +160096,9 @@ components: value: value properties: metric: - $ref: '#/components/schemas/v2.MetricIdentifier' + $ref: "#/components/schemas/v2.MetricIdentifier" target: - $ref: '#/components/schemas/v2.MetricTarget' + $ref: "#/components/schemas/v2.MetricTarget" required: - metric - target @@ -160129,9 +160129,9 @@ components: key: matchLabels properties: current: - $ref: '#/components/schemas/v2.MetricValueStatus' + $ref: "#/components/schemas/v2.MetricValueStatus" metric: - $ref: '#/components/schemas/v2.MetricIdentifier' + $ref: "#/components/schemas/v2.MetricIdentifier" required: - current - metric @@ -160156,7 +160156,7 @@ components: description: name is the name of the resource in question. type: string target: - $ref: '#/components/schemas/v2.MetricTarget' + $ref: "#/components/schemas/v2.MetricTarget" required: - name - target @@ -160175,7 +160175,7 @@ components: name: name properties: current: - $ref: '#/components/schemas/v2.MetricValueStatus' + $ref: "#/components/schemas/v2.MetricValueStatus" name: description: name is the name of the resource in question. type: string @@ -163611,11 +163611,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.CronJobSpec' + $ref: "#/components/schemas/v1.CronJobSpec" status: - $ref: '#/components/schemas/v1.CronJobStatus' + $ref: "#/components/schemas/v1.CronJobStatus" type: object x-kubernetes-group-version-kind: - group: batch @@ -170469,7 +170469,7 @@ components: items: description: items is the list of CronJobs. items: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -170477,7 +170477,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -173850,7 +173850,7 @@ components: format: int32 type: integer jobTemplate: - $ref: '#/components/schemas/v1.JobTemplateSpec' + $ref: "#/components/schemas/v1.JobTemplateSpec" schedule: description: "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron." type: string @@ -173910,7 +173910,7 @@ components: active: description: A list of pointers to currently running jobs. items: - $ref: '#/components/schemas/v1.ObjectReference' + $ref: "#/components/schemas/v1.ObjectReference" type: array x-kubernetes-list-type: atomic lastScheduleTime: @@ -177308,11 +177308,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.JobSpec' + $ref: "#/components/schemas/v1.JobSpec" status: - $ref: '#/components/schemas/v1.JobStatus' + $ref: "#/components/schemas/v1.JobStatus" type: object x-kubernetes-group-version-kind: - group: batch @@ -184114,7 +184114,7 @@ components: items: description: items is the list of Jobs. items: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -184122,7 +184122,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -187504,7 +187504,7 @@ components: format: int32 type: integer podFailurePolicy: - $ref: '#/components/schemas/v1.PodFailurePolicy' + $ref: "#/components/schemas/v1.PodFailurePolicy" podReplacementPolicy: description: |- podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods @@ -187515,9 +187515,9 @@ components: When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. type: string selector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" successPolicy: - $ref: '#/components/schemas/v1.SuccessPolicy' + $ref: "#/components/schemas/v1.SuccessPolicy" 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\ @@ -187529,7 +187529,7 @@ components: \ too. Defaults to false." type: boolean template: - $ref: '#/components/schemas/v1.PodTemplateSpec' + $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\ @@ -187607,7 +187607,7 @@ components: More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ items: - $ref: '#/components/schemas/v1.JobCondition' + $ref: "#/components/schemas/v1.JobCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: atomic @@ -187654,7 +187654,7 @@ components: format: int32 type: integer uncountedTerminatedPods: - $ref: '#/components/schemas/v1.UncountedTerminatedPods' + $ref: "#/components/schemas/v1.UncountedTerminatedPods" type: object v1.JobTemplateSpec: description: JobTemplateSpec describes the data a Job should have when created @@ -191000,9 +191000,9 @@ components: succeededIndexes: succeededIndexes properties: metadata: - $ref: '#/components/schemas/v1.ObjectMeta' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.JobSpec' + $ref: "#/components/schemas/v1.JobSpec" type: object v1.PodFailurePolicy: description: PodFailurePolicy describes how failed pods influence the backoffLimit. @@ -191040,7 +191040,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.PodFailurePolicyRule" type: array x-kubernetes-list-type: atomic required: @@ -191147,14 +191147,14 @@ components: Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. type: string onExitCodes: - $ref: '#/components/schemas/v1.PodFailurePolicyOnExitCodesRequirement' + $ref: "#/components/schemas/v1.PodFailurePolicyOnExitCodesRequirement" onPodConditions: description: Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed. items: - $ref: '#/components/schemas/v1.PodFailurePolicyOnPodConditionsPattern' + $ref: "#/components/schemas/v1.PodFailurePolicyOnPodConditionsPattern" type: array x-kubernetes-list-type: atomic required: @@ -191179,7 +191179,7 @@ components: \ are evaluated in order; Once the Job meets one of the rules, other rules\ \ are ignored. At most 20 elements are allowed." items: - $ref: '#/components/schemas/v1.SuccessPolicyRule' + $ref: "#/components/schemas/v1.SuccessPolicyRule" type: array x-kubernetes-list-type: atomic required: @@ -191344,11 +191344,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.CertificateSigningRequestSpec' + $ref: "#/components/schemas/v1.CertificateSigningRequestSpec" status: - $ref: '#/components/schemas/v1.CertificateSigningRequestStatus' + $ref: "#/components/schemas/v1.CertificateSigningRequestStatus" required: - spec type: object @@ -191588,7 +191588,7 @@ components: items: description: items is a collection of CertificateSigningRequest objects items: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -191596,7 +191596,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -191773,7 +191773,7 @@ components: description: "conditions applied to the request. Known conditions are \"\ Approved\", \"Denied\", and \"Failed\"." items: - $ref: '#/components/schemas/v1.CertificateSigningRequestCondition' + $ref: "#/components/schemas/v1.CertificateSigningRequestCondition" type: array x-kubernetes-list-type: map x-kubernetes-list-map-keys: @@ -191850,9 +191850,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleSpec' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleSpec" required: - spec type: object @@ -191984,7 +191984,7 @@ components: items: description: items is a collection of ClusterTrustBundle objects items: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -191992,7 +191992,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -192126,11 +192126,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequestSpec' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequestSpec" status: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequestStatus' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequestStatus" required: - spec type: object @@ -192315,7 +192315,7 @@ components: items: description: items is a collection of PodCertificateRequest objects items: - $ref: '#/components/schemas/v1alpha1.PodCertificateRequest' + $ref: "#/components/schemas/v1alpha1.PodCertificateRequest" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -192323,7 +192323,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -192472,7 +192472,7 @@ components: If the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field. items: - $ref: '#/components/schemas/v1.Condition' + $ref: "#/components/schemas/v1.Condition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -192567,9 +192567,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundleSpec' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleSpec" required: - spec type: object @@ -192701,7 +192701,7 @@ components: items: description: items is a collection of ClusterTrustBundle objects items: - $ref: '#/components/schemas/v1beta1.ClusterTrustBundle' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -192709,7 +192709,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -192819,9 +192819,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.LeaseSpec' + $ref: "#/components/schemas/v1.LeaseSpec" type: object x-kubernetes-group-version-kind: - group: coordination.k8s.io @@ -192961,7 +192961,7 @@ components: items: description: items is a list of schema objects. items: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1.Lease" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -192969,7 +192969,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -193099,9 +193099,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1alpha2.LeaseCandidateSpec' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateSpec" type: object x-kubernetes-group-version-kind: - group: coordination.k8s.io @@ -193239,7 +193239,7 @@ components: items: description: items is a list of schema objects. items: - $ref: '#/components/schemas/v1alpha2.LeaseCandidate' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -193247,7 +193247,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -193381,9 +193381,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1beta1.LeaseCandidateSpec' + $ref: "#/components/schemas/v1beta1.LeaseCandidateSpec" type: object x-kubernetes-group-version-kind: - group: coordination.k8s.io @@ -193521,7 +193521,7 @@ components: items: description: items is a list of schema objects. items: - $ref: '#/components/schemas/v1beta1.LeaseCandidate' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -193529,7 +193529,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -194048,11 +194048,11 @@ components: weight: 1 properties: nodeAffinity: - $ref: '#/components/schemas/v1.NodeAffinity' + $ref: "#/components/schemas/v1.NodeAffinity" podAffinity: - $ref: '#/components/schemas/v1.PodAffinity' + $ref: "#/components/schemas/v1.PodAffinity" podAntiAffinity: - $ref: '#/components/schemas/v1.PodAntiAffinity' + $ref: "#/components/schemas/v1.PodAntiAffinity" type: object v1.AppArmorProfile: description: AppArmorProfile defines a pod or container's AppArmor settings. @@ -194259,9 +194259,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" target: - $ref: '#/components/schemas/v1.ObjectReference' + $ref: "#/components/schemas/v1.ObjectReference" required: - target type: object @@ -194297,9 +194297,9 @@ components: key: volumeAttributes properties: controllerExpandSecretRef: - $ref: '#/components/schemas/v1.SecretReference' + $ref: "#/components/schemas/v1.SecretReference" controllerPublishSecretRef: - $ref: '#/components/schemas/v1.SecretReference' + $ref: "#/components/schemas/v1.SecretReference" driver: description: driver is the name of the driver to use for this volume. Required. type: string @@ -194308,11 +194308,11 @@ components: \ host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\"." type: string nodeExpandSecretRef: - $ref: '#/components/schemas/v1.SecretReference' + $ref: "#/components/schemas/v1.SecretReference" nodePublishSecretRef: - $ref: '#/components/schemas/v1.SecretReference' + $ref: "#/components/schemas/v1.SecretReference" nodeStageSecretRef: - $ref: '#/components/schemas/v1.SecretReference' + $ref: "#/components/schemas/v1.SecretReference" readOnly: description: readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). @@ -194353,7 +194353,7 @@ components: \ the default filesystem to apply." type: string nodePublishSecretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' + $ref: "#/components/schemas/v1.LocalObjectReference" readOnly: description: readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). @@ -194426,7 +194426,7 @@ components: \ 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' + $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" @@ -194468,7 +194468,7 @@ components: \ 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' + $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" @@ -194500,7 +194500,7 @@ components: \ 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' + $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" @@ -194531,7 +194531,7 @@ components: \ 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' + $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" @@ -194576,7 +194576,7 @@ components: signerName: signerName properties: labelSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" name: description: Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector. @@ -194695,7 +194695,7 @@ components: conditions: description: List of component conditions observed items: - $ref: '#/components/schemas/v1.ComponentCondition' + $ref: "#/components/schemas/v1.ComponentCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -194708,7 +194708,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" type: object x-kubernetes-group-version-kind: - group: "" @@ -194851,7 +194851,7 @@ components: items: description: List of ComponentStatus objects. items: - $ref: '#/components/schemas/v1.ComponentStatus' + $ref: "#/components/schemas/v1.ComponentStatus" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -194859,7 +194859,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -194964,7 +194964,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" type: object x-kubernetes-group-version-kind: - group: "" @@ -195140,7 +195140,7 @@ components: items: description: Items is the list of ConfigMaps. items: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -195148,7 +195148,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -195220,7 +195220,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.KeyToPath" type: array x-kubernetes-list-type: atomic name: @@ -195270,7 +195270,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.KeyToPath" type: array x-kubernetes-list-type: atomic name: @@ -195609,7 +195609,7 @@ components: description: List of environment variables to set in the container. Cannot be updated. items: - $ref: '#/components/schemas/v1.EnvVar' + $ref: "#/components/schemas/v1.EnvVar" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -195623,7 +195623,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.EnvFromSource" type: array x-kubernetes-list-type: atomic image: @@ -195638,9 +195638,9 @@ components: \ be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images" type: string lifecycle: - $ref: '#/components/schemas/v1.Lifecycle' + $ref: "#/components/schemas/v1.Lifecycle" livenessProbe: - $ref: '#/components/schemas/v1.Probe' + $ref: "#/components/schemas/v1.Probe" name: description: Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. @@ -195653,7 +195653,7 @@ components: patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. items: - $ref: '#/components/schemas/v1.ContainerPort' + $ref: "#/components/schemas/v1.ContainerPort" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -195662,15 +195662,15 @@ components: - protocol x-kubernetes-patch-merge-key: containerPort readinessProbe: - $ref: '#/components/schemas/v1.Probe' + $ref: "#/components/schemas/v1.Probe" resizePolicy: description: Resources resize policy for the container. items: - $ref: '#/components/schemas/v1.ContainerResizePolicy' + $ref: "#/components/schemas/v1.ContainerResizePolicy" type: array x-kubernetes-list-type: atomic resources: - $ref: '#/components/schemas/v1.ResourceRequirements' + $ref: "#/components/schemas/v1.ResourceRequirements" restartPolicy: description: "RestartPolicy defines the restart behavior of individual containers\ \ in a pod. This overrides the pod-level restart policy. When this field\ @@ -195698,13 +195698,13 @@ components: \ When rules are specified, container MUST set RestartPolicy explicitly\ \ even it if matches the Pod's RestartPolicy." items: - $ref: '#/components/schemas/v1.ContainerRestartRule' + $ref: "#/components/schemas/v1.ContainerRestartRule" type: array x-kubernetes-list-type: atomic securityContext: - $ref: '#/components/schemas/v1.SecurityContext' + $ref: "#/components/schemas/v1.SecurityContext" startupProbe: - $ref: '#/components/schemas/v1.Probe' + $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\ @@ -195746,7 +195746,7 @@ components: description: volumeDevices is the list of block devices to be used by the container. items: - $ref: '#/components/schemas/v1.VolumeDevice' + $ref: "#/components/schemas/v1.VolumeDevice" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -195757,7 +195757,7 @@ components: description: Pod volumes to mount into the container's filesystem. Cannot be updated. items: - $ref: '#/components/schemas/v1.VolumeMount' + $ref: "#/components/schemas/v1.VolumeMount" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -195885,7 +195885,7 @@ components: are satisfied. The only possible value is "Restart" to restart the container. type: string exitCodes: - $ref: '#/components/schemas/v1.ContainerRestartRuleOnExitCodes' + $ref: "#/components/schemas/v1.ContainerRestartRuleOnExitCodes" required: - action type: object @@ -195936,11 +195936,11 @@ components: finishedAt: 2000-01-23T04:56:07.000+00:00 properties: running: - $ref: '#/components/schemas/v1.ContainerStateRunning' + $ref: "#/components/schemas/v1.ContainerStateRunning" terminated: - $ref: '#/components/schemas/v1.ContainerStateTerminated' + $ref: "#/components/schemas/v1.ContainerStateTerminated" waiting: - $ref: '#/components/schemas/v1.ContainerStateWaiting' + $ref: "#/components/schemas/v1.ContainerStateWaiting" type: object v1.ContainerStateRunning: description: ContainerStateRunning is a running state of a container. @@ -196088,7 +196088,7 @@ components: properties: allocatedResources: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired @@ -196098,7 +196098,7 @@ components: description: AllocatedResourcesStatus represents the status of various resources allocated for this Pod. items: - $ref: '#/components/schemas/v1.ResourceStatus' + $ref: "#/components/schemas/v1.ResourceStatus" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -196121,7 +196121,7 @@ components: \ may have been resolved by the runtime." type: string lastState: - $ref: '#/components/schemas/v1.ContainerState' + $ref: "#/components/schemas/v1.ContainerState" name: description: Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. @@ -196134,7 +196134,7 @@ components: The value is typically used to determine whether a container is ready to accept traffic. type: boolean resources: - $ref: '#/components/schemas/v1.ResourceRequirements' + $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\ @@ -196152,16 +196152,16 @@ components: \ hook. The null value must be treated the same as false." type: boolean state: - $ref: '#/components/schemas/v1.ContainerState' + $ref: "#/components/schemas/v1.ContainerState" stopSignal: description: StopSignal reports the effective stop signal for this container type: string user: - $ref: '#/components/schemas/v1.ContainerUser' + $ref: "#/components/schemas/v1.ContainerUser" volumeMounts: description: Status of volume mounts. items: - $ref: '#/components/schemas/v1.VolumeMountStatus' + $ref: "#/components/schemas/v1.VolumeMountStatus" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -196186,7 +196186,7 @@ components: - 8 properties: linux: - $ref: '#/components/schemas/v1.LinuxContainerUser' + $ref: "#/components/schemas/v1.LinuxContainerUser" type: object v1.DaemonEndpoint: description: DaemonEndpoint contains information about a single Daemon endpoint. @@ -196228,7 +196228,7 @@ components: items: description: Items is a list of DownwardAPIVolume file items: - $ref: '#/components/schemas/v1.DownwardAPIVolumeFile' + $ref: "#/components/schemas/v1.DownwardAPIVolumeFile" type: array x-kubernetes-list-type: atomic type: object @@ -196247,7 +196247,7 @@ components: fieldPath: fieldPath properties: fieldRef: - $ref: '#/components/schemas/v1.ObjectFieldSelector' + $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\ @@ -196263,7 +196263,7 @@ components: \ encoded. The first item of the relative path must not start with '..'" type: string resourceFieldRef: - $ref: '#/components/schemas/v1.ResourceFieldSelector' + $ref: "#/components/schemas/v1.ResourceFieldSelector" required: - path type: object @@ -196306,7 +196306,7 @@ components: items: description: Items is a list of downward API volume file items: - $ref: '#/components/schemas/v1.DownwardAPIVolumeFile' + $ref: "#/components/schemas/v1.DownwardAPIVolumeFile" type: array x-kubernetes-list-type: atomic type: object @@ -196390,7 +196390,7 @@ components: \ determine endpoints local to a node." type: string targetRef: - $ref: '#/components/schemas/v1.ObjectReference' + $ref: "#/components/schemas/v1.ObjectReference" required: - ip type: object @@ -196504,7 +196504,7 @@ components: as ready. These endpoints should be considered safe for load balancers and clients to utilize. items: - $ref: '#/components/schemas/v1.EndpointAddress' + $ref: "#/components/schemas/v1.EndpointAddress" type: array x-kubernetes-list-type: atomic notReadyAddresses: @@ -196512,13 +196512,13 @@ components: \ 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' + $ref: "#/components/schemas/v1.EndpointAddress" type: array x-kubernetes-list-type: atomic ports: description: Port numbers available on the related IP addresses. items: - $ref: '#/components/schemas/core.v1.EndpointPort' + $ref: "#/components/schemas/core.v1.EndpointPort" type: array x-kubernetes-list-type: atomic type: object @@ -196705,7 +196705,7 @@ components: \ submits requests to. Cannot 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' + $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\ @@ -196715,7 +196715,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.EndpointSubset" type: array x-kubernetes-list-type: atomic type: object @@ -197064,7 +197064,7 @@ components: items: description: List of endpoints. items: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -197072,7 +197072,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -197094,13 +197094,13 @@ components: optional: true properties: configMapRef: - $ref: '#/components/schemas/v1.ConfigMapEnvSource' + $ref: "#/components/schemas/v1.ConfigMapEnvSource" prefix: description: Optional text to prepend to the name of each environment variable. May consist of any printable ASCII characters except '='. type: string secretRef: - $ref: '#/components/schemas/v1.SecretEnvSource' + $ref: "#/components/schemas/v1.SecretEnvSource" type: object v1.EnvVar: description: EnvVar represents an environment variable present in a Container. @@ -197144,7 +197144,7 @@ components: \ Defaults to \"\"." type: string valueFrom: - $ref: '#/components/schemas/v1.EnvVarSource' + $ref: "#/components/schemas/v1.EnvVarSource" required: - name type: object @@ -197173,15 +197173,15 @@ components: key: key properties: configMapKeyRef: - $ref: '#/components/schemas/v1.ConfigMapKeySelector' + $ref: "#/components/schemas/v1.ConfigMapKeySelector" fieldRef: - $ref: '#/components/schemas/v1.ObjectFieldSelector' + $ref: "#/components/schemas/v1.ObjectFieldSelector" fileKeyRef: - $ref: '#/components/schemas/v1.FileKeySelector' + $ref: "#/components/schemas/v1.FileKeySelector" resourceFieldRef: - $ref: '#/components/schemas/v1.ResourceFieldSelector' + $ref: "#/components/schemas/v1.ResourceFieldSelector" secretKeyRef: - $ref: '#/components/schemas/v1.SecretKeySelector' + $ref: "#/components/schemas/v1.SecretKeySelector" type: object v1.EphemeralContainer: description: |- @@ -197512,7 +197512,7 @@ components: description: List of environment variables to set in the container. Cannot be updated. items: - $ref: '#/components/schemas/v1.EnvVar' + $ref: "#/components/schemas/v1.EnvVar" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -197526,7 +197526,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.EnvFromSource" type: array x-kubernetes-list-type: atomic image: @@ -197538,9 +197538,9 @@ components: \ be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images" type: string lifecycle: - $ref: '#/components/schemas/v1.Lifecycle' + $ref: "#/components/schemas/v1.Lifecycle" livenessProbe: - $ref: '#/components/schemas/v1.Probe' + $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\ @@ -197549,7 +197549,7 @@ components: ports: description: Ports are not allowed for ephemeral containers. items: - $ref: '#/components/schemas/v1.ContainerPort' + $ref: "#/components/schemas/v1.ContainerPort" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -197558,15 +197558,15 @@ components: - protocol x-kubernetes-patch-merge-key: containerPort readinessProbe: - $ref: '#/components/schemas/v1.Probe' + $ref: "#/components/schemas/v1.Probe" resizePolicy: description: Resources resize policy for the container. items: - $ref: '#/components/schemas/v1.ContainerResizePolicy' + $ref: "#/components/schemas/v1.ContainerResizePolicy" type: array x-kubernetes-list-type: atomic resources: - $ref: '#/components/schemas/v1.ResourceRequirements' + $ref: "#/components/schemas/v1.ResourceRequirements" restartPolicy: description: Restart policy for the container to manage the restart behavior of each container within a pod. You cannot set this field on ephemeral @@ -197577,13 +197577,13 @@ components: container should be restarted on exit. You cannot set this field on ephemeral containers. items: - $ref: '#/components/schemas/v1.ContainerRestartRule' + $ref: "#/components/schemas/v1.ContainerRestartRule" type: array x-kubernetes-list-type: atomic securityContext: - $ref: '#/components/schemas/v1.SecurityContext' + $ref: "#/components/schemas/v1.SecurityContext" startupProbe: - $ref: '#/components/schemas/v1.Probe' + $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\ @@ -197631,7 +197631,7 @@ components: description: volumeDevices is the list of block devices to be used by the container. items: - $ref: '#/components/schemas/v1.VolumeDevice' + $ref: "#/components/schemas/v1.VolumeDevice" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -197642,7 +197642,7 @@ components: description: Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated. items: - $ref: '#/components/schemas/v1.VolumeMount' + $ref: "#/components/schemas/v1.VolumeMount" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -197746,7 +197746,7 @@ components: volumeMode: volumeMode properties: volumeClaimTemplate: - $ref: '#/components/schemas/v1.PersistentVolumeClaimTemplate' + $ref: "#/components/schemas/v1.PersistentVolumeClaimTemplate" type: object core.v1.Event: description: "Event is a report of an event somewhere in the cluster. Events\ @@ -197859,7 +197859,7 @@ components: format: date-time type: string involvedObject: - $ref: '#/components/schemas/v1.ObjectReference' + $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\ @@ -197874,13 +197874,13 @@ components: description: A human-readable description of the status of this operation. type: string metadata: - $ref: '#/components/schemas/v1.ObjectMeta' + $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." type: string related: - $ref: '#/components/schemas/v1.ObjectReference' + $ref: "#/components/schemas/v1.ObjectReference" reportingComponent: description: "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`." type: string @@ -197888,9 +197888,9 @@ components: description: "ID of the controller instance, e.g. `kubelet-xyzf`." type: string series: - $ref: '#/components/schemas/core.v1.EventSeries' + $ref: "#/components/schemas/core.v1.EventSeries" source: - $ref: '#/components/schemas/v1.EventSource' + $ref: "#/components/schemas/v1.EventSource" type: description: "Type of this event (Normal, Warning), new types could be added\ \ in the future" @@ -198085,7 +198085,7 @@ components: items: description: List of events items: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -198093,7 +198093,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -198260,7 +198260,7 @@ components: \ here will force the ReadOnly setting in VolumeMounts." type: boolean secretRef: - $ref: '#/components/schemas/v1.SecretReference' + $ref: "#/components/schemas/v1.SecretReference" required: - driver type: object @@ -198295,7 +198295,7 @@ components: \ here will force the ReadOnly setting in VolumeMounts." type: boolean secretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' + $ref: "#/components/schemas/v1.LocalObjectReference" required: - driver type: object @@ -198469,7 +198469,7 @@ components: description: Custom headers to set in the request. HTTP allows repeated headers. items: - $ref: '#/components/schemas/v1.HTTPHeader' + $ref: "#/components/schemas/v1.HTTPHeader" type: array x-kubernetes-list-type: atomic path: @@ -198618,7 +198618,7 @@ components: Defaults to false. type: boolean secretRef: - $ref: '#/components/schemas/v1.SecretReference' + $ref: "#/components/schemas/v1.SecretReference" targetPortal: description: targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports @@ -198691,7 +198691,7 @@ components: Defaults to false. type: boolean secretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' + $ref: "#/components/schemas/v1.LocalObjectReference" targetPortal: description: targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports @@ -198808,9 +198808,9 @@ components: stopSignal: stopSignal properties: postStart: - $ref: '#/components/schemas/v1.LifecycleHandler' + $ref: "#/components/schemas/v1.LifecycleHandler" preStop: - $ref: '#/components/schemas/v1.LifecycleHandler' + $ref: "#/components/schemas/v1.LifecycleHandler" stopSignal: description: "StopSignal defines which signal will be sent to a container\ \ when it is being stopped. If not specified, the default is defined by\ @@ -198844,13 +198844,13 @@ components: value: value properties: exec: - $ref: '#/components/schemas/v1.ExecAction' + $ref: "#/components/schemas/v1.ExecAction" httpGet: - $ref: '#/components/schemas/v1.HTTPGetAction' + $ref: "#/components/schemas/v1.HTTPGetAction" sleep: - $ref: '#/components/schemas/v1.SleepAction' + $ref: "#/components/schemas/v1.SleepAction" tcpSocket: - $ref: '#/components/schemas/v1.TCPSocketAction' + $ref: "#/components/schemas/v1.TCPSocketAction" type: object v1.LimitRange: description: LimitRange sets resource usage limits for each kind of resource @@ -198940,9 +198940,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.LimitRangeSpec' + $ref: "#/components/schemas/v1.LimitRangeSpec" type: object x-kubernetes-group-version-kind: - group: "" @@ -198968,24 +198968,24 @@ components: properties: default: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: Default resource requirement limit value by resource name if resource limit is omitted. type: object defaultRequest: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. type: object max: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: Max usage constraints on this kind by resource name. type: object maxLimitRequestRatio: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $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\ @@ -198993,7 +198993,7 @@ components: type: object min: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: Min usage constraints on this kind by resource name. type: object type: @@ -199166,7 +199166,7 @@ components: items: 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' + $ref: "#/components/schemas/v1.LimitRange" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -199174,7 +199174,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -199215,7 +199215,7 @@ components: limits: description: Limits is the list of LimitRangeItem objects that are enforced. items: - $ref: '#/components/schemas/v1.LimitRangeItem' + $ref: "#/components/schemas/v1.LimitRangeItem" type: array x-kubernetes-list-type: atomic required: @@ -199289,7 +199289,7 @@ components: 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' + $ref: "#/components/schemas/v1.PortStatus" type: array x-kubernetes-list-type: atomic type: object @@ -199322,7 +199322,7 @@ components: description: Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. items: - $ref: '#/components/schemas/v1.LoadBalancerIngress' + $ref: "#/components/schemas/v1.LoadBalancerIngress" type: array x-kubernetes-list-type: atomic type: object @@ -199488,11 +199488,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.NamespaceSpec' + $ref: "#/components/schemas/v1.NamespaceSpec" status: - $ref: '#/components/schemas/v1.NamespaceStatus' + $ref: "#/components/schemas/v1.NamespaceStatus" type: object x-kubernetes-group-version-kind: - group: "" @@ -199681,7 +199681,7 @@ components: 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' + $ref: "#/components/schemas/v1.Namespace" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -199689,7 +199689,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -199734,7 +199734,7 @@ components: description: Represents the latest available observations of a namespace's current state. items: - $ref: '#/components/schemas/v1.NamespaceCondition' + $ref: "#/components/schemas/v1.NamespaceCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -199925,11 +199925,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.NodeSpec' + $ref: "#/components/schemas/v1.NodeSpec" status: - $ref: '#/components/schemas/v1.NodeStatus' + $ref: "#/components/schemas/v1.NodeStatus" type: object x-kubernetes-group-version-kind: - group: "" @@ -200063,11 +200063,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.PreferredSchedulingTerm" type: array x-kubernetes-list-type: atomic requiredDuringSchedulingIgnoredDuringExecution: - $ref: '#/components/schemas/v1.NodeSelector' + $ref: "#/components/schemas/v1.NodeSelector" type: object v1.NodeCondition: description: NodeCondition contains condition information for a node. @@ -200116,7 +200116,7 @@ components: namespace: namespace properties: configMap: - $ref: '#/components/schemas/v1.ConfigMapNodeConfigSource' + $ref: "#/components/schemas/v1.ConfigMapNodeConfigSource" type: object v1.NodeConfigStatus: description: NodeConfigStatus describes the status of the config assigned by @@ -200146,9 +200146,9 @@ components: error: error properties: active: - $ref: '#/components/schemas/v1.NodeConfigSource' + $ref: "#/components/schemas/v1.NodeConfigSource" assigned: - $ref: '#/components/schemas/v1.NodeConfigSource' + $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\ @@ -200167,7 +200167,7 @@ components: \ Kubelet versions." type: string lastKnownGood: - $ref: '#/components/schemas/v1.NodeConfigSource' + $ref: "#/components/schemas/v1.NodeConfigSource" type: object v1.NodeDaemonEndpoints: description: NodeDaemonEndpoints lists ports opened by daemons running on the @@ -200177,7 +200177,7 @@ components: Port: 0 properties: kubeletEndpoint: - $ref: '#/components/schemas/v1.DaemonEndpoint' + $ref: "#/components/schemas/v1.DaemonEndpoint" type: object v1.NodeFeatures: description: NodeFeatures describes the set of features implemented by the CRI @@ -200538,7 +200538,7 @@ components: items: description: List of nodes items: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -200546,7 +200546,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -200565,7 +200565,7 @@ components: name: name properties: features: - $ref: '#/components/schemas/v1.NodeRuntimeHandlerFeatures' + $ref: "#/components/schemas/v1.NodeRuntimeHandlerFeatures" name: description: Runtime handler name. Empty for the default runtime handler. type: string @@ -200640,7 +200640,7 @@ components: nodeSelectorTerms: description: Required. A list of node selector terms. The terms are ORed. items: - $ref: '#/components/schemas/v1.NodeSelectorTerm' + $ref: "#/components/schemas/v1.NodeSelectorTerm" type: array x-kubernetes-list-type: atomic required: @@ -200709,13 +200709,13 @@ components: matchExpressions: description: A list of node selector requirements by node's labels. items: - $ref: '#/components/schemas/v1.NodeSelectorRequirement' + $ref: "#/components/schemas/v1.NodeSelectorRequirement" type: array x-kubernetes-list-type: atomic matchFields: description: A list of node selector requirements by node's fields. items: - $ref: '#/components/schemas/v1.NodeSelectorRequirement' + $ref: "#/components/schemas/v1.NodeSelectorRequirement" type: array x-kubernetes-list-type: atomic type: object @@ -200748,7 +200748,7 @@ components: podCIDR: podCIDR properties: configSource: - $ref: '#/components/schemas/v1.NodeConfigSource' + $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" @@ -200773,7 +200773,7 @@ components: taints: description: "If specified, the node's taints." items: - $ref: '#/components/schemas/v1.Taint' + $ref: "#/components/schemas/v1.Taint" type: array x-kubernetes-list-type: atomic unschedulable: @@ -200886,7 +200886,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.NodeAddress" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -200895,13 +200895,13 @@ components: x-kubernetes-patch-merge-key: type allocatable: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. type: object capacity: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: "Capacity represents the total resources of a node. More info:\ \ https://kubernetes.io/docs/reference/node/node-status/#capacity" type: object @@ -200909,7 +200909,7 @@ components: description: "Conditions is an array of current observed node conditions.\ \ More info: https://kubernetes.io/docs/reference/node/node-status/#condition" items: - $ref: '#/components/schemas/v1.NodeCondition' + $ref: "#/components/schemas/v1.NodeCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -200917,19 +200917,19 @@ components: - type x-kubernetes-patch-merge-key: type config: - $ref: '#/components/schemas/v1.NodeConfigStatus' + $ref: "#/components/schemas/v1.NodeConfigStatus" daemonEndpoints: - $ref: '#/components/schemas/v1.NodeDaemonEndpoints' + $ref: "#/components/schemas/v1.NodeDaemonEndpoints" features: - $ref: '#/components/schemas/v1.NodeFeatures' + $ref: "#/components/schemas/v1.NodeFeatures" images: description: List of container images on this node items: - $ref: '#/components/schemas/v1.ContainerImage' + $ref: "#/components/schemas/v1.ContainerImage" type: array x-kubernetes-list-type: atomic nodeInfo: - $ref: '#/components/schemas/v1.NodeSystemInfo' + $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\ @@ -200938,13 +200938,13 @@ components: runtimeHandlers: description: The available runtime handlers. items: - $ref: '#/components/schemas/v1.NodeRuntimeHandler' + $ref: "#/components/schemas/v1.NodeRuntimeHandler" type: array x-kubernetes-list-type: atomic volumesAttached: description: List of volumes that are attached to the node. items: - $ref: '#/components/schemas/v1.AttachedVolume' + $ref: "#/components/schemas/v1.AttachedVolume" type: array x-kubernetes-list-type: atomic volumesInUse: @@ -201012,7 +201012,7 @@ components: GNU/Linux 7 (wheezy)). type: string swap: - $ref: '#/components/schemas/v1.NodeSwapStatus' + $ref: "#/components/schemas/v1.NodeSwapStatus" systemUUID: description: SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid @@ -201400,11 +201400,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.PersistentVolumeSpec' + $ref: "#/components/schemas/v1.PersistentVolumeSpec" status: - $ref: '#/components/schemas/v1.PersistentVolumeStatus' + $ref: "#/components/schemas/v1.PersistentVolumeStatus" type: object x-kubernetes-group-version-kind: - group: "" @@ -201540,11 +201540,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.PersistentVolumeClaimSpec' + $ref: "#/components/schemas/v1.PersistentVolumeClaimSpec" status: - $ref: '#/components/schemas/v1.PersistentVolumeClaimStatus' + $ref: "#/components/schemas/v1.PersistentVolumeClaimStatus" type: object x-kubernetes-group-version-kind: - group: "" @@ -201837,7 +201837,7 @@ components: items: 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' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -201845,7 +201845,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -201903,13 +201903,13 @@ components: type: array x-kubernetes-list-type: atomic dataSource: - $ref: '#/components/schemas/v1.TypedLocalObjectReference' + $ref: "#/components/schemas/v1.TypedLocalObjectReference" dataSourceRef: - $ref: '#/components/schemas/v1.TypedObjectReference' + $ref: "#/components/schemas/v1.TypedObjectReference" resources: - $ref: '#/components/schemas/v1.VolumeResourceRequirements' + $ref: "#/components/schemas/v1.VolumeResourceRequirements" selector: - $ref: '#/components/schemas/v1.LabelSelector' + $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" @@ -202012,7 +202012,7 @@ components: x-kubernetes-map-type: granular allocatedResources: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: "allocatedResources tracks the resources allocated to a PVC\ \ including its capacity. Key names follow standard Kubernetes label syntax.\ \ Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the\ @@ -202036,7 +202036,7 @@ components: type: object capacity: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: capacity represents the actual resources of the underlying volume. type: object @@ -202045,7 +202045,7 @@ components: If underlying persistent volume is being resized then the Condition will be set to 'Resizing'. items: - $ref: '#/components/schemas/v1.PersistentVolumeClaimCondition' + $ref: "#/components/schemas/v1.PersistentVolumeClaimCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -202058,7 +202058,7 @@ components: \ applied to this PersistentVolumeClaim" type: string modifyVolumeStatus: - $ref: '#/components/schemas/v1.ModifyVolumeStatus' + $ref: "#/components/schemas/v1.ModifyVolumeStatus" phase: description: phase represents the current phase of PersistentVolumeClaim. type: string @@ -202151,9 +202151,9 @@ components: volumeMode: volumeMode properties: metadata: - $ref: '#/components/schemas/v1.ObjectMeta' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.PersistentVolumeClaimSpec' + $ref: "#/components/schemas/v1.PersistentVolumeClaimSpec" required: - spec type: object @@ -202785,7 +202785,7 @@ components: items: description: "items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes" items: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -202793,7 +202793,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -203055,41 +203055,41 @@ components: type: array x-kubernetes-list-type: atomic awsElasticBlockStore: - $ref: '#/components/schemas/v1.AWSElasticBlockStoreVolumeSource' + $ref: "#/components/schemas/v1.AWSElasticBlockStoreVolumeSource" azureDisk: - $ref: '#/components/schemas/v1.AzureDiskVolumeSource' + $ref: "#/components/schemas/v1.AzureDiskVolumeSource" azureFile: - $ref: '#/components/schemas/v1.AzureFilePersistentVolumeSource' + $ref: "#/components/schemas/v1.AzureFilePersistentVolumeSource" capacity: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $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" type: object cephfs: - $ref: '#/components/schemas/v1.CephFSPersistentVolumeSource' + $ref: "#/components/schemas/v1.CephFSPersistentVolumeSource" cinder: - $ref: '#/components/schemas/v1.CinderPersistentVolumeSource' + $ref: "#/components/schemas/v1.CinderPersistentVolumeSource" claimRef: - $ref: '#/components/schemas/v1.ObjectReference' + $ref: "#/components/schemas/v1.ObjectReference" csi: - $ref: '#/components/schemas/v1.CSIPersistentVolumeSource' + $ref: "#/components/schemas/v1.CSIPersistentVolumeSource" fc: - $ref: '#/components/schemas/v1.FCVolumeSource' + $ref: "#/components/schemas/v1.FCVolumeSource" flexVolume: - $ref: '#/components/schemas/v1.FlexPersistentVolumeSource' + $ref: "#/components/schemas/v1.FlexPersistentVolumeSource" flocker: - $ref: '#/components/schemas/v1.FlockerVolumeSource' + $ref: "#/components/schemas/v1.FlockerVolumeSource" gcePersistentDisk: - $ref: '#/components/schemas/v1.GCEPersistentDiskVolumeSource' + $ref: "#/components/schemas/v1.GCEPersistentDiskVolumeSource" glusterfs: - $ref: '#/components/schemas/v1.GlusterfsPersistentVolumeSource' + $ref: "#/components/schemas/v1.GlusterfsPersistentVolumeSource" hostPath: - $ref: '#/components/schemas/v1.HostPathVolumeSource' + $ref: "#/components/schemas/v1.HostPathVolumeSource" iscsi: - $ref: '#/components/schemas/v1.ISCSIPersistentVolumeSource' + $ref: "#/components/schemas/v1.ISCSIPersistentVolumeSource" local: - $ref: '#/components/schemas/v1.LocalVolumeSource' + $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\ @@ -203099,9 +203099,9 @@ components: type: array x-kubernetes-list-type: atomic nfs: - $ref: '#/components/schemas/v1.NFSVolumeSource' + $ref: "#/components/schemas/v1.NFSVolumeSource" nodeAffinity: - $ref: '#/components/schemas/v1.VolumeNodeAffinity' + $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\ @@ -203111,22 +203111,22 @@ components: \ More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming" type: string photonPersistentDisk: - $ref: '#/components/schemas/v1.PhotonPersistentDiskVolumeSource' + $ref: "#/components/schemas/v1.PhotonPersistentDiskVolumeSource" portworxVolume: - $ref: '#/components/schemas/v1.PortworxVolumeSource' + $ref: "#/components/schemas/v1.PortworxVolumeSource" quobyte: - $ref: '#/components/schemas/v1.QuobyteVolumeSource' + $ref: "#/components/schemas/v1.QuobyteVolumeSource" rbd: - $ref: '#/components/schemas/v1.RBDPersistentVolumeSource' + $ref: "#/components/schemas/v1.RBDPersistentVolumeSource" scaleIO: - $ref: '#/components/schemas/v1.ScaleIOPersistentVolumeSource' + $ref: "#/components/schemas/v1.ScaleIOPersistentVolumeSource" storageClassName: description: storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. type: string storageos: - $ref: '#/components/schemas/v1.StorageOSPersistentVolumeSource' + $ref: "#/components/schemas/v1.StorageOSPersistentVolumeSource" volumeAttributesClassName: description: "Name of VolumeAttributesClass to which this persistent volume\ \ belongs. Empty value is not allowed. When this field is not set, it\ @@ -203142,7 +203142,7 @@ components: is implied when not included in spec. type: string vsphereVolume: - $ref: '#/components/schemas/v1.VsphereVirtualDiskVolumeSource' + $ref: "#/components/schemas/v1.VsphereVirtualDiskVolumeSource" type: object v1.PersistentVolumeStatus: description: PersistentVolumeStatus is the current status of a persistent volume. @@ -206950,11 +206950,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.PodSpec' + $ref: "#/components/schemas/v1.PodSpec" status: - $ref: '#/components/schemas/v1.PodStatus' + $ref: "#/components/schemas/v1.PodStatus" type: object x-kubernetes-group-version-kind: - group: "" @@ -207135,7 +207135,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.WeightedPodAffinityTerm" type: array x-kubernetes-list-type: atomic requiredDuringSchedulingIgnoredDuringExecution: @@ -207147,7 +207147,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.PodAffinityTerm" type: array x-kubernetes-list-type: atomic type: object @@ -207198,7 +207198,7 @@ components: - namespaces properties: labelSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" matchLabelKeys: description: "MatchLabelKeys is a set of pod label keys to select which\ \ pods will be taken into consideration. The keys are used to lookup values\ @@ -207228,7 +207228,7 @@ components: type: array x-kubernetes-list-type: atomic namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" namespaces: description: namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces @@ -207423,7 +207423,7 @@ components: \ \"weight\" from 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' + $ref: "#/components/schemas/v1.WeightedPodAffinityTerm" type: array x-kubernetes-list-type: atomic requiredDuringSchedulingIgnoredDuringExecution: @@ -207435,7 +207435,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.PodAffinityTerm" type: array x-kubernetes-list-type: atomic type: object @@ -207570,7 +207570,7 @@ components: Resolution options given in Options will override those that appear in the base DNSPolicy. items: - $ref: '#/components/schemas/v1.PodDNSConfigOption' + $ref: "#/components/schemas/v1.PodDNSConfigOption" type: array x-kubernetes-list-type: atomic searches: @@ -207613,7 +207613,7 @@ components: description: "RequestMappings identifies the mapping of to device request in the generated ResourceClaim." items: - $ref: '#/components/schemas/v1.ContainerExtendedResourceRequest' + $ref: "#/components/schemas/v1.ContainerExtendedResourceRequest" type: array x-kubernetes-list-type: atomic resourceClaimName: @@ -215145,7 +215145,7 @@ components: items: description: "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md" items: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -215153,7 +215153,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -215295,7 +215295,7 @@ components: supplementalGroupsPolicy: supplementalGroupsPolicy properties: appArmorProfile: - $ref: '#/components/schemas/v1.AppArmorProfile' + $ref: "#/components/schemas/v1.AppArmorProfile" fsGroup: description: |- A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: @@ -215353,9 +215353,9 @@ components: All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows. type: string seLinuxOptions: - $ref: '#/components/schemas/v1.SELinuxOptions' + $ref: "#/components/schemas/v1.SELinuxOptions" seccompProfile: - $ref: '#/components/schemas/v1.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 and fsGroup (if\ @@ -215383,11 +215383,11 @@ components: Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows. items: - $ref: '#/components/schemas/v1.Sysctl' + $ref: "#/components/schemas/v1.Sysctl" type: array x-kubernetes-list-type: atomic windowsOptions: - $ref: '#/components/schemas/v1.WindowsSecurityContextOptions' + $ref: "#/components/schemas/v1.WindowsSecurityContextOptions" type: object v1.PodSpec: description: PodSpec is a description of a pod. @@ -218585,7 +218585,7 @@ components: format: int64 type: integer affinity: - $ref: '#/components/schemas/v1.Affinity' + $ref: "#/components/schemas/v1.Affinity" automountServiceAccountToken: description: AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. @@ -218595,7 +218595,7 @@ components: currently be added or removed. There must be at least one container in a Pod. Cannot be updated. items: - $ref: '#/components/schemas/v1.Container' + $ref: "#/components/schemas/v1.Container" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -218603,7 +218603,7 @@ components: - name x-kubernetes-patch-merge-key: name dnsConfig: - $ref: '#/components/schemas/v1.PodDNSConfig' + $ref: "#/components/schemas/v1.PodDNSConfig" dnsPolicy: description: "Set DNS policy for the pod. Defaults to \"ClusterFirst\".\ \ Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default'\ @@ -218623,7 +218623,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.EphemeralContainer" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -218634,7 +218634,7 @@ components: description: HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. items: - $ref: '#/components/schemas/v1.HostAlias' + $ref: "#/components/schemas/v1.HostAlias" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -218682,7 +218682,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.LocalObjectReference" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -218703,7 +218703,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.Container" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -218727,10 +218727,10 @@ components: type: object x-kubernetes-map-type: atomic os: - $ref: '#/components/schemas/v1.PodOS' + $ref: "#/components/schemas/v1.PodOS" overhead: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $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\ @@ -218768,7 +218768,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.PodReadinessGate" type: array x-kubernetes-list-type: atomic resourceClaims: @@ -218779,7 +218779,7 @@ components: This field is immutable. items: - $ref: '#/components/schemas/v1.PodResourceClaim' + $ref: "#/components/schemas/v1.PodResourceClaim" type: array x-kubernetes-patch-strategy: "merge,retainKeys" x-kubernetes-list-type: map @@ -218787,7 +218787,7 @@ components: - name x-kubernetes-patch-merge-key: name resources: - $ref: '#/components/schemas/v1.ResourceRequirements' + $ref: "#/components/schemas/v1.ResourceRequirements" 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\ @@ -218811,7 +218811,7 @@ components: SchedulingGates can only be set at pod creation time, and be removed only afterwards. items: - $ref: '#/components/schemas/v1.PodSchedulingGate' + $ref: "#/components/schemas/v1.PodSchedulingGate" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -218819,7 +218819,7 @@ components: - name x-kubernetes-patch-merge-key: name securityContext: - $ref: '#/components/schemas/v1.PodSecurityContext' + $ref: "#/components/schemas/v1.PodSecurityContext" serviceAccount: description: "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.\ \ Deprecated: Use serviceAccountName instead." @@ -218864,7 +218864,7 @@ components: tolerations: description: "If specified, the pod's tolerations." items: - $ref: '#/components/schemas/v1.Toleration' + $ref: "#/components/schemas/v1.Toleration" type: array x-kubernetes-list-type: atomic topologySpreadConstraints: @@ -218872,7 +218872,7 @@ components: to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. items: - $ref: '#/components/schemas/v1.TopologySpreadConstraint' + $ref: "#/components/schemas/v1.TopologySpreadConstraint" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -218884,7 +218884,7 @@ components: 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' + $ref: "#/components/schemas/v1.Volume" type: array x-kubernetes-patch-strategy: "merge,retainKeys" x-kubernetes-list-type: map @@ -219413,7 +219413,7 @@ components: 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' + $ref: "#/components/schemas/v1.PodCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -219428,7 +219428,7 @@ components: \ duplicate names, the behavior of various Kubernetes components is not\ \ defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status" items: - $ref: '#/components/schemas/v1.ContainerStatus' + $ref: "#/components/schemas/v1.ContainerStatus" type: array x-kubernetes-list-type: atomic ephemeralContainerStatuses: @@ -219440,11 +219440,11 @@ components: \ of various Kubernetes components is not defined and those statuses might\ \ be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status" items: - $ref: '#/components/schemas/v1.ContainerStatus' + $ref: "#/components/schemas/v1.ContainerStatus" type: array x-kubernetes-list-type: atomic extendedResourceClaimStatus: - $ref: '#/components/schemas/v1.PodExtendedResourceClaimStatus' + $ref: "#/components/schemas/v1.PodExtendedResourceClaimStatus" hostIP: description: hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned @@ -219458,7 +219458,7 @@ components: \ to a node that has a problem in kubelet which in turns means that HostIPs\ \ will not be updated even if there is a node is assigned to this pod." items: - $ref: '#/components/schemas/v1.HostIP' + $ref: "#/components/schemas/v1.HostIP" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: atomic @@ -219473,7 +219473,7 @@ components: \ duplicate names, the behavior of various Kubernetes components is not\ \ defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status" items: - $ref: '#/components/schemas/v1.ContainerStatus' + $ref: "#/components/schemas/v1.ContainerStatus" type: array x-kubernetes-list-type: atomic message: @@ -219514,7 +219514,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.PodIP" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -219543,7 +219543,7 @@ components: resourceClaimStatuses: description: Status of resource claims. items: - $ref: '#/components/schemas/v1.PodResourceClaimStatus' + $ref: "#/components/schemas/v1.PodResourceClaimStatus" type: array x-kubernetes-patch-strategy: "merge,retainKeys" x-kubernetes-list-type: map @@ -222854,9 +222854,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" template: - $ref: '#/components/schemas/v1.PodTemplateSpec' + $ref: "#/components/schemas/v1.PodTemplateSpec" type: object x-kubernetes-group-version-kind: - group: "" @@ -229446,7 +229446,7 @@ components: items: description: List of pod templates items: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -229454,7 +229454,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -232702,9 +232702,9 @@ components: hostPID: true properties: metadata: - $ref: '#/components/schemas/v1.ObjectMeta' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.PodSpec' + $ref: "#/components/schemas/v1.PodSpec" type: object v1.PortStatus: description: PortStatus represents the error condition of a service port @@ -232786,7 +232786,7 @@ components: weight: 6 properties: preference: - $ref: '#/components/schemas/v1.NodeSelectorTerm' + $ref: "#/components/schemas/v1.NodeSelectorTerm" weight: description: "Weight associated with matching the corresponding nodeSelectorTerm,\ \ in the range 1-100." @@ -232828,16 +232828,16 @@ components: value: value properties: exec: - $ref: '#/components/schemas/v1.ExecAction' + $ref: "#/components/schemas/v1.ExecAction" failureThreshold: description: Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. format: int32 type: integer grpc: - $ref: '#/components/schemas/v1.GRPCAction' + $ref: "#/components/schemas/v1.GRPCAction" httpGet: - $ref: '#/components/schemas/v1.HTTPGetAction' + $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" @@ -232855,7 +232855,7 @@ components: format: int32 type: integer tcpSocket: - $ref: '#/components/schemas/v1.TCPSocketAction' + $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\ @@ -233036,7 +233036,7 @@ components: description: sources is the list of volume projections. Each entry in this list handles one source. items: - $ref: '#/components/schemas/v1.VolumeProjection' + $ref: "#/components/schemas/v1.VolumeProjection" type: array x-kubernetes-list-type: atomic type: object @@ -233122,7 +233122,7 @@ components: \ 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' + $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" @@ -233174,7 +233174,7 @@ components: \ 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' + $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" @@ -236502,11 +236502,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.ReplicationControllerSpec' + $ref: "#/components/schemas/v1.ReplicationControllerSpec" status: - $ref: '#/components/schemas/v1.ReplicationControllerStatus' + $ref: "#/components/schemas/v1.ReplicationControllerStatus" type: object x-kubernetes-group-version-kind: - group: "" @@ -243171,7 +243171,7 @@ components: items: description: "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller" items: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -243179,7 +243179,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -246455,7 +246455,7 @@ components: type: object x-kubernetes-map-type: atomic template: - $ref: '#/components/schemas/v1.PodTemplateSpec' + $ref: "#/components/schemas/v1.PodTemplateSpec" type: object v1.ReplicationControllerStatus: description: ReplicationControllerStatus represents the current status of a @@ -246487,7 +246487,7 @@ components: description: Represents the latest available observations of a replication controller's current state. items: - $ref: '#/components/schemas/v1.ReplicationControllerCondition' + $ref: "#/components/schemas/v1.ReplicationControllerCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -246703,11 +246703,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.ResourceQuotaSpec' + $ref: "#/components/schemas/v1.ResourceQuotaSpec" status: - $ref: '#/components/schemas/v1.ResourceQuotaStatus' + $ref: "#/components/schemas/v1.ResourceQuotaStatus" type: object x-kubernetes-group-version-kind: - group: "" @@ -246877,7 +246877,7 @@ components: items: description: "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/" items: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -246885,7 +246885,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -246919,12 +246919,12 @@ components: properties: hard: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $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/" type: object scopeSelector: - $ref: '#/components/schemas/v1.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." @@ -246944,13 +246944,13 @@ components: properties: hard: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $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/" type: object used: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: Used is the current observed total usage of the resource in the namespace. type: object @@ -246976,20 +246976,20 @@ components: This field is immutable. It can only be set for containers. items: - $ref: '#/components/schemas/core.v1.ResourceClaim' + $ref: "#/components/schemas/core.v1.ResourceClaim" type: array x-kubernetes-list-type: map x-kubernetes-list-map-keys: - name limits: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $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/" type: object requests: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $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\ @@ -247023,7 +247023,7 @@ components: \ See ResourceID type definition for a specific format it has in various\ \ use cases." items: - $ref: '#/components/schemas/v1.ResourceHealth' + $ref: "#/components/schemas/v1.ResourceHealth" type: array x-kubernetes-list-type: map x-kubernetes-list-map-keys: @@ -247085,7 +247085,7 @@ components: force the ReadOnly setting in VolumeMounts. type: boolean secretRef: - $ref: '#/components/schemas/v1.SecretReference' + $ref: "#/components/schemas/v1.SecretReference" sslEnabled: description: "sslEnabled is the flag to enable/disable SSL communication\ \ with Gateway, default false" @@ -247142,7 +247142,7 @@ components: force the ReadOnly setting in VolumeMounts. type: boolean secretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' + $ref: "#/components/schemas/v1.LocalObjectReference" sslEnabled: description: "sslEnabled Flag enable/disable SSL communication with Gateway,\ \ default false" @@ -247186,7 +247186,7 @@ components: matchExpressions: description: A list of scope selector requirements by scope of the resources. items: - $ref: '#/components/schemas/v1.ScopedResourceSelectorRequirement' + $ref: "#/components/schemas/v1.ScopedResourceSelectorRequirement" type: array x-kubernetes-list-type: atomic type: object @@ -247334,7 +247334,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" stringData: additionalProperties: type: string @@ -247526,7 +247526,7 @@ components: items: description: "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret" items: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -247534,7 +247534,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -247569,7 +247569,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.KeyToPath" type: array x-kubernetes-list-type: atomic name: @@ -247635,7 +247635,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.KeyToPath" type: array x-kubernetes-list-type: atomic optional: @@ -247691,9 +247691,9 @@ components: \ Note that this field cannot be set when spec.os.name is windows." type: boolean appArmorProfile: - $ref: '#/components/schemas/v1.AppArmorProfile' + $ref: "#/components/schemas/v1.AppArmorProfile" capabilities: - $ref: '#/components/schemas/v1.Capabilities' + $ref: "#/components/schemas/v1.Capabilities" privileged: description: Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note @@ -247735,11 +247735,11 @@ components: format: int64 type: integer seLinuxOptions: - $ref: '#/components/schemas/v1.SELinuxOptions' + $ref: "#/components/schemas/v1.SELinuxOptions" seccompProfile: - $ref: '#/components/schemas/v1.SeccompProfile' + $ref: "#/components/schemas/v1.SeccompProfile" windowsOptions: - $ref: '#/components/schemas/v1.WindowsSecurityContextOptions' + $ref: "#/components/schemas/v1.WindowsSecurityContextOptions" type: object v1.Service: description: "Service is a named abstraction of software service (for example,\ @@ -247887,11 +247887,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.ServiceSpec' + $ref: "#/components/schemas/v1.ServiceSpec" status: - $ref: '#/components/schemas/v1.ServiceStatus' + $ref: "#/components/schemas/v1.ServiceStatus" type: object x-kubernetes-group-version-kind: - group: "" @@ -247989,7 +247989,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.LocalObjectReference" type: array x-kubernetes-list-type: atomic kind: @@ -247998,7 +247998,7 @@ components: \ submits requests to. Cannot 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' + $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\ @@ -248011,7 +248011,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectReference" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -248179,7 +248179,7 @@ components: items: description: "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/" items: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -248187,7 +248187,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -248505,7 +248505,7 @@ components: items: description: List of services items: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -248513,7 +248513,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -248774,7 +248774,7 @@ components: 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' + $ref: "#/components/schemas/v1.ServicePort" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -248809,7 +248809,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.SessionAffinityConfig" trafficDistribution: description: "TrafficDistribution offers a way to express preferences for\ \ how traffic is distributed to Service endpoints. Implementations can\ @@ -248877,7 +248877,7 @@ components: conditions: description: Current service state items: - $ref: '#/components/schemas/v1.Condition' + $ref: "#/components/schemas/v1.Condition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -248885,7 +248885,7 @@ components: - type x-kubernetes-patch-merge-key: type loadBalancer: - $ref: '#/components/schemas/v1.LoadBalancerStatus' + $ref: "#/components/schemas/v1.LoadBalancerStatus" type: object v1.SessionAffinityConfig: description: SessionAffinityConfig represents the configurations of session @@ -248895,7 +248895,7 @@ components: timeoutSeconds: 5 properties: clientIP: - $ref: '#/components/schemas/v1.ClientIPConfig' + $ref: "#/components/schemas/v1.ClientIPConfig" type: object v1.SleepAction: description: SleepAction describes a "sleep" action. @@ -248935,7 +248935,7 @@ components: force the ReadOnly setting in VolumeMounts. type: boolean secretRef: - $ref: '#/components/schemas/v1.ObjectReference' + $ref: "#/components/schemas/v1.ObjectReference" volumeName: description: volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. @@ -248969,7 +248969,7 @@ components: force the ReadOnly setting in VolumeMounts. type: boolean secretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' + $ref: "#/components/schemas/v1.LocalObjectReference" volumeName: description: volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. @@ -249127,7 +249127,7 @@ components: matchLabelExpressions: description: A list of topology selector requirements by labels. items: - $ref: '#/components/schemas/v1.TopologySelectorLabelRequirement' + $ref: "#/components/schemas/v1.TopologySelectorLabelRequirement" type: array x-kubernetes-list-type: atomic type: object @@ -249161,7 +249161,7 @@ components: - matchLabelKeys properties: labelSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" matchLabelKeys: description: |- MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. 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. @@ -249718,69 +249718,69 @@ components: type: type properties: awsElasticBlockStore: - $ref: '#/components/schemas/v1.AWSElasticBlockStoreVolumeSource' + $ref: "#/components/schemas/v1.AWSElasticBlockStoreVolumeSource" azureDisk: - $ref: '#/components/schemas/v1.AzureDiskVolumeSource' + $ref: "#/components/schemas/v1.AzureDiskVolumeSource" azureFile: - $ref: '#/components/schemas/v1.AzureFileVolumeSource' + $ref: "#/components/schemas/v1.AzureFileVolumeSource" cephfs: - $ref: '#/components/schemas/v1.CephFSVolumeSource' + $ref: "#/components/schemas/v1.CephFSVolumeSource" cinder: - $ref: '#/components/schemas/v1.CinderVolumeSource' + $ref: "#/components/schemas/v1.CinderVolumeSource" configMap: - $ref: '#/components/schemas/v1.ConfigMapVolumeSource' + $ref: "#/components/schemas/v1.ConfigMapVolumeSource" csi: - $ref: '#/components/schemas/v1.CSIVolumeSource' + $ref: "#/components/schemas/v1.CSIVolumeSource" downwardAPI: - $ref: '#/components/schemas/v1.DownwardAPIVolumeSource' + $ref: "#/components/schemas/v1.DownwardAPIVolumeSource" emptyDir: - $ref: '#/components/schemas/v1.EmptyDirVolumeSource' + $ref: "#/components/schemas/v1.EmptyDirVolumeSource" ephemeral: - $ref: '#/components/schemas/v1.EphemeralVolumeSource' + $ref: "#/components/schemas/v1.EphemeralVolumeSource" fc: - $ref: '#/components/schemas/v1.FCVolumeSource' + $ref: "#/components/schemas/v1.FCVolumeSource" flexVolume: - $ref: '#/components/schemas/v1.FlexVolumeSource' + $ref: "#/components/schemas/v1.FlexVolumeSource" flocker: - $ref: '#/components/schemas/v1.FlockerVolumeSource' + $ref: "#/components/schemas/v1.FlockerVolumeSource" gcePersistentDisk: - $ref: '#/components/schemas/v1.GCEPersistentDiskVolumeSource' + $ref: "#/components/schemas/v1.GCEPersistentDiskVolumeSource" gitRepo: - $ref: '#/components/schemas/v1.GitRepoVolumeSource' + $ref: "#/components/schemas/v1.GitRepoVolumeSource" glusterfs: - $ref: '#/components/schemas/v1.GlusterfsVolumeSource' + $ref: "#/components/schemas/v1.GlusterfsVolumeSource" hostPath: - $ref: '#/components/schemas/v1.HostPathVolumeSource' + $ref: "#/components/schemas/v1.HostPathVolumeSource" image: - $ref: '#/components/schemas/v1.ImageVolumeSource' + $ref: "#/components/schemas/v1.ImageVolumeSource" iscsi: - $ref: '#/components/schemas/v1.ISCSIVolumeSource' + $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" type: string nfs: - $ref: '#/components/schemas/v1.NFSVolumeSource' + $ref: "#/components/schemas/v1.NFSVolumeSource" persistentVolumeClaim: - $ref: '#/components/schemas/v1.PersistentVolumeClaimVolumeSource' + $ref: "#/components/schemas/v1.PersistentVolumeClaimVolumeSource" photonPersistentDisk: - $ref: '#/components/schemas/v1.PhotonPersistentDiskVolumeSource' + $ref: "#/components/schemas/v1.PhotonPersistentDiskVolumeSource" portworxVolume: - $ref: '#/components/schemas/v1.PortworxVolumeSource' + $ref: "#/components/schemas/v1.PortworxVolumeSource" projected: - $ref: '#/components/schemas/v1.ProjectedVolumeSource' + $ref: "#/components/schemas/v1.ProjectedVolumeSource" quobyte: - $ref: '#/components/schemas/v1.QuobyteVolumeSource' + $ref: "#/components/schemas/v1.QuobyteVolumeSource" rbd: - $ref: '#/components/schemas/v1.RBDVolumeSource' + $ref: "#/components/schemas/v1.RBDVolumeSource" scaleIO: - $ref: '#/components/schemas/v1.ScaleIOVolumeSource' + $ref: "#/components/schemas/v1.ScaleIOVolumeSource" secret: - $ref: '#/components/schemas/v1.SecretVolumeSource' + $ref: "#/components/schemas/v1.SecretVolumeSource" storageos: - $ref: '#/components/schemas/v1.StorageOSVolumeSource' + $ref: "#/components/schemas/v1.StorageOSVolumeSource" vsphereVolume: - $ref: '#/components/schemas/v1.VsphereVirtualDiskVolumeSource' + $ref: "#/components/schemas/v1.VsphereVirtualDiskVolumeSource" required: - name type: object @@ -249936,7 +249936,7 @@ components: operator: operator properties: required: - $ref: '#/components/schemas/v1.NodeSelector' + $ref: "#/components/schemas/v1.NodeSelector" type: object v1.VolumeProjection: description: Projection that may be projected along with other supported volume @@ -250014,17 +250014,17 @@ components: signerName: signerName properties: clusterTrustBundle: - $ref: '#/components/schemas/v1.ClusterTrustBundleProjection' + $ref: "#/components/schemas/v1.ClusterTrustBundleProjection" configMap: - $ref: '#/components/schemas/v1.ConfigMapProjection' + $ref: "#/components/schemas/v1.ConfigMapProjection" downwardAPI: - $ref: '#/components/schemas/v1.DownwardAPIProjection' + $ref: "#/components/schemas/v1.DownwardAPIProjection" podCertificate: - $ref: '#/components/schemas/v1.PodCertificateProjection' + $ref: "#/components/schemas/v1.PodCertificateProjection" secret: - $ref: '#/components/schemas/v1.SecretProjection' + $ref: "#/components/schemas/v1.SecretProjection" serviceAccountToken: - $ref: '#/components/schemas/v1.ServiceAccountTokenProjection' + $ref: "#/components/schemas/v1.ServiceAccountTokenProjection" type: object v1.VolumeResourceRequirements: description: VolumeResourceRequirements describes the storage resource requirements @@ -250037,13 +250037,13 @@ components: properties: limits: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $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/" type: object requests: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $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\ @@ -250123,7 +250123,7 @@ components: weight: 1 properties: podAffinityTerm: - $ref: '#/components/schemas/v1.PodAffinityTerm' + $ref: "#/components/schemas/v1.PodAffinityTerm" weight: description: "weight associated with matching the corresponding podAffinityTerm,\ \ in the range 1-100." @@ -250210,7 +250210,7 @@ components: type: array x-kubernetes-list-type: set conditions: - $ref: '#/components/schemas/v1.EndpointConditions' + $ref: "#/components/schemas/v1.EndpointConditions" deprecatedTopology: additionalProperties: type: string @@ -250222,7 +250222,7 @@ components: \ can be found in the zone and nodeName fields instead." type: object hints: - $ref: '#/components/schemas/v1.EndpointHints' + $ref: "#/components/schemas/v1.EndpointHints" hostname: description: hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). @@ -250235,7 +250235,7 @@ components: This can be used to determine endpoints local to a Node. type: string targetRef: - $ref: '#/components/schemas/v1.ObjectReference' + $ref: "#/components/schemas/v1.ObjectReference" zone: description: zone is the name of the Zone this endpoint exists in. type: string @@ -250286,14 +250286,14 @@ components: This is an Alpha feature and is only used when the PreferSameTrafficDistribution feature gate is enabled. items: - $ref: '#/components/schemas/v1.ForNode' + $ref: "#/components/schemas/v1.ForNode" type: array x-kubernetes-list-type: atomic forZones: description: forZones indicates the zone(s) this endpoint should be consumed by when using topology aware routing. May contain a maximum of 8 entries. items: - $ref: '#/components/schemas/v1.ForZone' + $ref: "#/components/schemas/v1.ForZone" type: array x-kubernetes-list-type: atomic type: object @@ -250481,7 +250481,7 @@ components: description: endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. items: - $ref: '#/components/schemas/v1.Endpoint' + $ref: "#/components/schemas/v1.Endpoint" type: array x-kubernetes-list-type: atomic kind: @@ -250490,7 +250490,7 @@ components: \ submits requests to. Cannot 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' + $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. Each slice\ @@ -250499,7 +250499,7 @@ components: \ likewise always have at least 1 port. EndpointSlices used for other\ \ purposes may have an empty ports list." items: - $ref: '#/components/schemas/discovery.v1.EndpointPort' + $ref: "#/components/schemas/discovery.v1.EndpointPort" type: array x-kubernetes-list-type: atomic required: @@ -250758,7 +250758,7 @@ components: items: description: items is the list of endpoint slices items: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.EndpointSlice" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -250766,7 +250766,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -250915,7 +250915,7 @@ components: format: date-time type: string deprecatedSource: - $ref: '#/components/schemas/v1.EventSource' + $ref: "#/components/schemas/v1.EventSource" eventTime: description: eventTime is the time when this Event was first observed. It is required. @@ -250927,7 +250927,7 @@ components: \ submits requests to. Cannot 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' + $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\ @@ -250938,9 +250938,9 @@ components: field cannot be empty for new Events and it can have at most 128 characters. type: string regarding: - $ref: '#/components/schemas/v1.ObjectReference' + $ref: "#/components/schemas/v1.ObjectReference" related: - $ref: '#/components/schemas/v1.ObjectReference' + $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\ @@ -250952,7 +250952,7 @@ components: \ have at most 128 characters." type: string series: - $ref: '#/components/schemas/events.v1.EventSeries' + $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\ @@ -251147,7 +251147,7 @@ components: items: description: items is a list of schema objects. items: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/events.v1.Event" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -251155,7 +251155,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -251426,11 +251426,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.FlowSchemaSpec' + $ref: "#/components/schemas/v1.FlowSchemaSpec" status: - $ref: '#/components/schemas/v1.FlowSchemaStatus' + $ref: "#/components/schemas/v1.FlowSchemaStatus" type: object x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io @@ -251850,7 +251850,7 @@ components: items: description: '`items` is a list of FlowSchemas.' items: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.FlowSchema" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -251858,7 +251858,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -251994,7 +251994,7 @@ components: type: type properties: distinguisherMethod: - $ref: '#/components/schemas/v1.FlowDistinguisherMethod' + $ref: "#/components/schemas/v1.FlowDistinguisherMethod" matchingPrecedence: description: "`matchingPrecedence` is used to choose among the FlowSchemas\ \ that match a given request. The chosen FlowSchema is among those with\ @@ -252004,14 +252004,14 @@ components: format: int32 type: integer priorityLevelConfiguration: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationReference' + $ref: "#/components/schemas/v1.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." items: - $ref: '#/components/schemas/v1.PolicyRulesWithSubjects' + $ref: "#/components/schemas/v1.PolicyRulesWithSubjects" type: array x-kubernetes-list-type: atomic required: @@ -252035,7 +252035,7 @@ components: conditions: description: '`conditions` is a list of the current states of FlowSchema.' items: - $ref: '#/components/schemas/v1.FlowSchemaCondition' + $ref: "#/components/schemas/v1.FlowSchemaCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -252067,7 +252067,7 @@ components: type: type properties: queuing: - $ref: '#/components/schemas/v1.QueuingConfiguration' + $ref: "#/components/schemas/v1.QueuingConfiguration" type: description: '`type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can @@ -252114,7 +252114,7 @@ components: format: int32 type: integer limitResponse: - $ref: '#/components/schemas/v1.LimitResponse' + $ref: "#/components/schemas/v1.LimitResponse" nominalConcurrencyShares: description: |- `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values: @@ -252238,7 +252238,7 @@ components: identify matching requests according to their verb and the target non-resource URL.' items: - $ref: '#/components/schemas/v1.NonResourcePolicyRule' + $ref: "#/components/schemas/v1.NonResourcePolicyRule" type: array x-kubernetes-list-type: atomic resourceRules: @@ -252246,7 +252246,7 @@ components: matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.' items: - $ref: '#/components/schemas/v1.ResourcePolicyRule' + $ref: "#/components/schemas/v1.ResourcePolicyRule" type: array x-kubernetes-list-type: atomic subjects: @@ -252255,7 +252255,7 @@ components: \ slice. A slice that includes both the system:authenticated and system:unauthenticated\ \ user groups matches every request. Required." items: - $ref: '#/components/schemas/flowcontrol.v1.Subject' + $ref: "#/components/schemas/flowcontrol.v1.Subject" type: array x-kubernetes-list-type: atomic required: @@ -252352,11 +252352,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationSpec' + $ref: "#/components/schemas/v1.PriorityLevelConfigurationSpec" status: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationStatus' + $ref: "#/components/schemas/v1.PriorityLevelConfigurationStatus" type: object x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io @@ -252566,7 +252566,7 @@ components: items: description: '`items` is a list of request-priorities.' items: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -252574,7 +252574,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -252617,9 +252617,9 @@ components: type: type properties: exempt: - $ref: '#/components/schemas/v1.ExemptPriorityLevelConfiguration' + $ref: "#/components/schemas/v1.ExemptPriorityLevelConfiguration" limited: - $ref: '#/components/schemas/v1.LimitedPriorityLevelConfiguration' + $ref: "#/components/schemas/v1.LimitedPriorityLevelConfiguration" type: description: '`type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests @@ -252656,7 +252656,7 @@ components: conditions: description: '`conditions` is the current state of "request-priority".' items: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationCondition' + $ref: "#/components/schemas/v1.PriorityLevelConfigurationCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -252806,15 +252806,15 @@ components: name: name properties: group: - $ref: '#/components/schemas/v1.GroupSubject' + $ref: "#/components/schemas/v1.GroupSubject" kind: description: '`kind` indicates which one of the other fields is non-empty. Required' type: string serviceAccount: - $ref: '#/components/schemas/v1.ServiceAccountSubject' + $ref: "#/components/schemas/v1.ServiceAccountSubject" user: - $ref: '#/components/schemas/v1.UserSubject' + $ref: "#/components/schemas/v1.UserSubject" required: - kind type: object @@ -252854,7 +252854,7 @@ components: pathType: pathType properties: backend: - $ref: '#/components/schemas/v1.IngressBackend' + $ref: "#/components/schemas/v1.IngressBackend" path: description: path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part @@ -252914,7 +252914,7 @@ components: paths: description: paths is a collection of paths that map requests to backends. items: - $ref: '#/components/schemas/v1.HTTPIngressPath' + $ref: "#/components/schemas/v1.HTTPIngressPath" type: array x-kubernetes-list-type: atomic required: @@ -252996,9 +252996,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.IPAddressSpec' + $ref: "#/components/schemas/v1.IPAddressSpec" type: object x-kubernetes-group-version-kind: - group: networking.k8s.io @@ -253134,7 +253134,7 @@ components: items: description: items is the list of IPAddresses. items: - $ref: '#/components/schemas/v1.IPAddress' + $ref: "#/components/schemas/v1.IPAddress" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -253142,7 +253142,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -253162,7 +253162,7 @@ components: group: group properties: parentRef: - $ref: '#/components/schemas/v1.ParentReference' + $ref: "#/components/schemas/v1.ParentReference" required: - parentRef type: object @@ -253355,11 +253355,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.IngressSpec' + $ref: "#/components/schemas/v1.IngressSpec" status: - $ref: '#/components/schemas/v1.IngressStatus' + $ref: "#/components/schemas/v1.IngressStatus" type: object x-kubernetes-group-version-kind: - group: networking.k8s.io @@ -253382,9 +253382,9 @@ components: name: name properties: resource: - $ref: '#/components/schemas/v1.TypedLocalObjectReference' + $ref: "#/components/schemas/v1.TypedLocalObjectReference" service: - $ref: '#/components/schemas/v1.IngressServiceBackend' + $ref: "#/components/schemas/v1.IngressServiceBackend" type: object v1.IngressClass: description: "IngressClass represents the class of the Ingress, referenced by\ @@ -253462,9 +253462,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.IngressClassSpec' + $ref: "#/components/schemas/v1.IngressClassSpec" type: object x-kubernetes-group-version-kind: - group: networking.k8s.io @@ -253604,7 +253604,7 @@ components: items: description: items is the list of IngressClasses. items: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1.IngressClass" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -253612,7 +253612,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -253676,7 +253676,7 @@ components: acme.io/ingress-controller\". This field is immutable." type: string parameters: - $ref: '#/components/schemas/v1.IngressClassParametersReference' + $ref: "#/components/schemas/v1.IngressClassParametersReference" type: object v1.IngressList: description: IngressList is a collection of Ingress. @@ -253988,7 +253988,7 @@ components: items: description: items is the list of Ingress. items: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.Ingress" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -253996,7 +253996,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -254031,7 +254031,7 @@ components: description: ports provides information about the ports exposed by this LoadBalancer. items: - $ref: '#/components/schemas/v1.IngressPortStatus' + $ref: "#/components/schemas/v1.IngressPortStatus" type: array x-kubernetes-list-type: atomic type: object @@ -254061,7 +254061,7 @@ components: ingress: description: ingress is a list containing ingress points for the load-balancer. items: - $ref: '#/components/schemas/v1.IngressLoadBalancerIngress' + $ref: "#/components/schemas/v1.IngressLoadBalancerIngress" type: array x-kubernetes-list-type: atomic type: object @@ -254148,7 +254148,7 @@ components: \ (removing the first label) of the wildcard rule." type: string http: - $ref: '#/components/schemas/v1.HTTPIngressRuleValue' + $ref: "#/components/schemas/v1.HTTPIngressRuleValue" type: object v1.IngressServiceBackend: description: IngressServiceBackend references a Kubernetes Service as a Backend. @@ -254163,7 +254163,7 @@ components: same namespace as the Ingress object. type: string port: - $ref: '#/components/schemas/v1.ServiceBackendPort' + $ref: "#/components/schemas/v1.ServiceBackendPort" required: - name type: object @@ -254247,7 +254247,7 @@ components: - hosts properties: defaultBackend: - $ref: '#/components/schemas/v1.IngressBackend' + $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\ @@ -254265,7 +254265,7 @@ components: \ If unspecified, or no rule matches, all traffic is sent to the default\ \ backend." items: - $ref: '#/components/schemas/v1.IngressRule' + $ref: "#/components/schemas/v1.IngressRule" type: array x-kubernetes-list-type: atomic tls: @@ -254275,7 +254275,7 @@ components: \ to the hostname specified through the SNI TLS extension, if the ingress\ \ controller fulfilling the ingress supports SNI." items: - $ref: '#/components/schemas/v1.IngressTLS' + $ref: "#/components/schemas/v1.IngressTLS" type: array x-kubernetes-list-type: atomic type: object @@ -254304,7 +254304,7 @@ components: error: error properties: loadBalancer: - $ref: '#/components/schemas/v1.IngressLoadBalancerStatus' + $ref: "#/components/schemas/v1.IngressLoadBalancerStatus" type: object v1.IngressTLS: description: IngressTLS describes the transport layer security associated with @@ -254712,9 +254712,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.NetworkPolicySpec' + $ref: "#/components/schemas/v1.NetworkPolicySpec" type: object x-kubernetes-group-version-kind: - group: networking.k8s.io @@ -254810,7 +254810,7 @@ components: \ this rule allows traffic only if the traffic matches at least one port\ \ in the list." items: - $ref: '#/components/schemas/v1.NetworkPolicyPort' + $ref: "#/components/schemas/v1.NetworkPolicyPort" type: array x-kubernetes-list-type: atomic to: @@ -254821,7 +254821,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.NetworkPolicyPeer" type: array x-kubernetes-list-type: atomic type: object @@ -254913,7 +254913,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.NetworkPolicyPeer" type: array x-kubernetes-list-type: atomic ports: @@ -254924,7 +254924,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.NetworkPolicyPort" type: array x-kubernetes-list-type: atomic type: object @@ -255676,7 +255676,7 @@ components: items: description: items is a list of schema objects. items: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.NetworkPolicy" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -255684,7 +255684,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -255733,11 +255733,11 @@ components: key: matchLabels properties: ipBlock: - $ref: '#/components/schemas/v1.IPBlock' + $ref: "#/components/schemas/v1.IPBlock" namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" podSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" type: object v1.NetworkPolicyPort: description: NetworkPolicyPort describes a port to allow traffic on @@ -256095,7 +256095,7 @@ components: \ ensure that the pods it selects are isolated by default). This field\ \ is beta-level in 1.8" items: - $ref: '#/components/schemas/v1.NetworkPolicyEgressRule' + $ref: "#/components/schemas/v1.NetworkPolicyEgressRule" type: array x-kubernetes-list-type: atomic ingress: @@ -256108,11 +256108,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.NetworkPolicyIngressRule" type: array x-kubernetes-list-type: atomic podSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $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\"\ @@ -256255,11 +256255,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.ServiceCIDRSpec' + $ref: "#/components/schemas/v1.ServiceCIDRSpec" status: - $ref: '#/components/schemas/v1.ServiceCIDRStatus' + $ref: "#/components/schemas/v1.ServiceCIDRStatus" type: object x-kubernetes-group-version-kind: - group: networking.k8s.io @@ -256419,7 +256419,7 @@ components: items: description: items is the list of ServiceCIDRs. items: - $ref: '#/components/schemas/v1.ServiceCIDR' + $ref: "#/components/schemas/v1.ServiceCIDR" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -256427,7 +256427,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -256475,7 +256475,7 @@ components: description: conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state items: - $ref: '#/components/schemas/v1.Condition' + $ref: "#/components/schemas/v1.Condition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -256559,9 +256559,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1beta1.IPAddressSpec' + $ref: "#/components/schemas/v1beta1.IPAddressSpec" type: object x-kubernetes-group-version-kind: - group: networking.k8s.io @@ -256697,7 +256697,7 @@ components: items: description: items is the list of IPAddresses. items: - $ref: '#/components/schemas/v1beta1.IPAddress' + $ref: "#/components/schemas/v1beta1.IPAddress" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -256705,7 +256705,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -256725,7 +256725,7 @@ components: group: group properties: parentRef: - $ref: '#/components/schemas/v1beta1.ParentReference' + $ref: "#/components/schemas/v1beta1.ParentReference" required: - parentRef type: object @@ -256836,11 +256836,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1beta1.ServiceCIDRSpec' + $ref: "#/components/schemas/v1beta1.ServiceCIDRSpec" status: - $ref: '#/components/schemas/v1beta1.ServiceCIDRStatus' + $ref: "#/components/schemas/v1beta1.ServiceCIDRStatus" type: object x-kubernetes-group-version-kind: - group: networking.k8s.io @@ -257000,7 +257000,7 @@ components: items: description: items is the list of ServiceCIDRs. items: - $ref: '#/components/schemas/v1beta1.ServiceCIDR' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -257008,7 +257008,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -257056,7 +257056,7 @@ components: description: conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state items: - $ref: '#/components/schemas/v1.Condition' + $ref: "#/components/schemas/v1.Condition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -257073,7 +257073,7 @@ components: properties: podFixed: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: podFixed represents the fixed resource overhead associated with running a pod. type: object @@ -257175,11 +257175,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" overhead: - $ref: '#/components/schemas/v1.Overhead' + $ref: "#/components/schemas/v1.Overhead" scheduling: - $ref: '#/components/schemas/v1.Scheduling' + $ref: "#/components/schemas/v1.Scheduling" required: - handler type: object @@ -257341,7 +257341,7 @@ components: items: description: items is a list of schema objects. items: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.RuntimeClass" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -257349,7 +257349,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -257392,7 +257392,7 @@ components: \ with this RuntimeClass during admission, effectively unioning the set\ \ of nodes tolerated by the pod and the RuntimeClass." items: - $ref: '#/components/schemas/v1.Toleration' + $ref: "#/components/schemas/v1.Toleration" type: array x-kubernetes-list-type: atomic type: object @@ -257469,14 +257469,14 @@ components: \ 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' + $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" type: string metadata: - $ref: '#/components/schemas/v1.ObjectMeta' + $ref: "#/components/schemas/v1.ObjectMeta" type: object x-kubernetes-group-version-kind: - group: policy @@ -257587,11 +257587,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.PodDisruptionBudgetSpec' + $ref: "#/components/schemas/v1.PodDisruptionBudgetSpec" status: - $ref: '#/components/schemas/v1.PodDisruptionBudgetStatus' + $ref: "#/components/schemas/v1.PodDisruptionBudgetStatus" type: object x-kubernetes-group-version-kind: - group: policy @@ -257793,7 +257793,7 @@ components: items: description: Items is a list of PodDisruptionBudgets items: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.PodDisruptionBudget" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -257801,7 +257801,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -257847,7 +257847,7 @@ components: format: int-or-string type: string selector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" unhealthyPodEvictionPolicy: description: |- UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type="Ready",status="True". @@ -257898,7 +257898,7 @@ components: The condition will be True, and the number of allowed disruptions are provided by the disruptionsAllowed property. items: - $ref: '#/components/schemas/v1.Condition' + $ref: "#/components/schemas/v1.Condition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -257990,7 +257990,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.LabelSelector" type: array x-kubernetes-list-type: atomic type: object @@ -258107,7 +258107,7 @@ components: - nonResourceURLs properties: aggregationRule: - $ref: '#/components/schemas/v1.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\ @@ -258119,11 +258119,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" rules: description: Rules holds all the PolicyRules for this ClusterRole items: - $ref: '#/components/schemas/v1.PolicyRule' + $ref: "#/components/schemas/v1.PolicyRule" type: array x-kubernetes-list-type: atomic type: object @@ -258211,13 +258211,13 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" roleRef: - $ref: '#/components/schemas/v1.RoleRef' + $ref: "#/components/schemas/v1.RoleRef" subjects: description: Subjects holds references to the objects the role applies to. items: - $ref: '#/components/schemas/rbac.v1.Subject' + $ref: "#/components/schemas/rbac.v1.Subject" type: array x-kubernetes-list-type: atomic required: @@ -258371,7 +258371,7 @@ components: items: description: Items is a list of ClusterRoleBindings items: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1.ClusterRoleBinding" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -258379,7 +258379,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -258623,7 +258623,7 @@ components: items: description: Items is a list of ClusterRoles items: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1.ClusterRole" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -258631,7 +258631,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -258801,11 +258801,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" rules: description: Rules holds all the PolicyRules for this Role items: - $ref: '#/components/schemas/v1.PolicyRule' + $ref: "#/components/schemas/v1.PolicyRule" type: array x-kubernetes-list-type: atomic type: object @@ -258895,13 +258895,13 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" roleRef: - $ref: '#/components/schemas/v1.RoleRef' + $ref: "#/components/schemas/v1.RoleRef" subjects: description: Subjects holds references to the objects the role applies to. items: - $ref: '#/components/schemas/rbac.v1.Subject' + $ref: "#/components/schemas/rbac.v1.Subject" type: array x-kubernetes-list-type: atomic required: @@ -259055,7 +259055,7 @@ components: items: description: Items is a list of RoleBindings items: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RoleBinding" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -259063,7 +259063,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -259251,7 +259251,7 @@ components: items: description: Items is a list of Roles items: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.Role" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -259259,7 +259259,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -259362,7 +259362,7 @@ components: Must not contain more than 8 entries. items: - $ref: '#/components/schemas/v1.Condition' + $ref: "#/components/schemas/v1.Condition" type: array x-kubernetes-list-type: map x-kubernetes-list-map-keys: @@ -259385,7 +259385,7 @@ components: Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. type: string networkData: - $ref: '#/components/schemas/v1.NetworkDeviceData' + $ref: "#/components/schemas/v1.NetworkDeviceData" pool: description: |- This name together with the driver name and the device name field identify which device was allocated (`//`). @@ -259527,9 +259527,9 @@ components: format: date-time type: string devices: - $ref: '#/components/schemas/v1.DeviceAllocationResult' + $ref: "#/components/schemas/v1.DeviceAllocationResult" nodeSelector: - $ref: '#/components/schemas/v1.NodeSelector' + $ref: "#/components/schemas/v1.NodeSelector" type: object v1.CELDeviceSelector: description: CELDeviceSelector contains a CEL expression for selecting a device. @@ -259627,7 +259627,7 @@ components: format: quantity type: string validRange: - $ref: '#/components/schemas/v1.CapacityRequestPolicyRange' + $ref: "#/components/schemas/v1.CapacityRequestPolicyRange" validValues: description: |- ValidValues defines a set of acceptable quantity values in consuming requests. @@ -259640,7 +259640,7 @@ components: If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. items: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" type: array x-kubernetes-list-type: atomic type: object @@ -259785,7 +259785,7 @@ components: properties: requests: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: |- Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. @@ -259859,7 +259859,7 @@ components: properties: counters: additionalProperties: - $ref: '#/components/schemas/v1.Counter' + $ref: "#/components/schemas/v1.Counter" description: |- Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. @@ -259986,7 +259986,7 @@ components: type: boolean attributes: additionalProperties: - $ref: '#/components/schemas/v1.DeviceAttribute' + $ref: "#/components/schemas/v1.DeviceAttribute" description: |- Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. @@ -260026,7 +260026,7 @@ components: type: boolean capacity: additionalProperties: - $ref: '#/components/schemas/v1.DeviceCapacity' + $ref: "#/components/schemas/v1.DeviceCapacity" description: |- Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. @@ -260040,7 +260040,7 @@ components: The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). items: - $ref: '#/components/schemas/v1.DeviceCounterConsumption' + $ref: "#/components/schemas/v1.DeviceCounterConsumption" type: array x-kubernetes-list-type: atomic name: @@ -260054,7 +260054,7 @@ components: Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. type: string nodeSelector: - $ref: '#/components/schemas/v1.NodeSelector' + $ref: "#/components/schemas/v1.NodeSelector" taints: description: |- If specified, these are the driver-defined taints. @@ -260063,7 +260063,7 @@ components: This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - $ref: '#/components/schemas/v1.DeviceTaint' + $ref: "#/components/schemas/v1.DeviceTaint" type: array x-kubernetes-list-type: atomic required: @@ -260081,7 +260081,7 @@ components: source: source properties: opaque: - $ref: '#/components/schemas/v1.OpaqueDeviceConfiguration' + $ref: "#/components/schemas/v1.OpaqueDeviceConfiguration" requests: description: |- Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. @@ -260175,13 +260175,13 @@ components: This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. items: - $ref: '#/components/schemas/v1.DeviceAllocationConfiguration' + $ref: "#/components/schemas/v1.DeviceAllocationConfiguration" type: array x-kubernetes-list-type: atomic results: description: Results lists all allocated devices. items: - $ref: '#/components/schemas/v1.DeviceRequestAllocationResult' + $ref: "#/components/schemas/v1.DeviceRequestAllocationResult" type: array x-kubernetes-list-type: atomic type: object @@ -260223,7 +260223,7 @@ components: - null properties: requestPolicy: - $ref: '#/components/schemas/v1.CapacityRequestPolicy' + $ref: "#/components/schemas/v1.CapacityRequestPolicy" value: description: "Quantity is a fixed-point representation of a number. It provides\ \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ @@ -260443,21 +260443,21 @@ components: which could satisfy requests in this claim. It is ignored while allocating the claim. items: - $ref: '#/components/schemas/v1.DeviceClaimConfiguration' + $ref: "#/components/schemas/v1.DeviceClaimConfiguration" type: array x-kubernetes-list-type: atomic constraints: description: These constraints must be satisfied by the set of devices that get allocated for the claim. items: - $ref: '#/components/schemas/v1.DeviceConstraint' + $ref: "#/components/schemas/v1.DeviceConstraint" type: array x-kubernetes-list-type: atomic requests: description: "Requests represent individual requests for distinct devices\ \ which must all be satisfied. If empty, nothing needs to be allocated." items: - $ref: '#/components/schemas/v1.DeviceRequest' + $ref: "#/components/schemas/v1.DeviceRequest" type: array x-kubernetes-list-type: atomic type: object @@ -260473,7 +260473,7 @@ components: - requests properties: opaque: - $ref: '#/components/schemas/v1.OpaqueDeviceConfiguration' + $ref: "#/components/schemas/v1.OpaqueDeviceConfiguration" requests: description: |- Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. @@ -260564,9 +260564,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.DeviceClassSpec' + $ref: "#/components/schemas/v1.DeviceClassSpec" required: - spec type: object @@ -260584,7 +260584,7 @@ components: parameters: "{}" properties: opaque: - $ref: '#/components/schemas/v1.OpaqueDeviceConfiguration' + $ref: "#/components/schemas/v1.OpaqueDeviceConfiguration" type: object v1.DeviceClassList: description: DeviceClassList is a collection of classes. @@ -260730,7 +260730,7 @@ components: items: description: Items is the list of resource classes. items: - $ref: '#/components/schemas/v1.DeviceClass' + $ref: "#/components/schemas/v1.DeviceClass" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -260738,7 +260738,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -260772,7 +260772,7 @@ components: They are passed to the driver, but are not considered while allocating the claim. items: - $ref: '#/components/schemas/v1.DeviceClassConfiguration' + $ref: "#/components/schemas/v1.DeviceClassConfiguration" type: array x-kubernetes-list-type: atomic extendedResourceName: @@ -260785,7 +260785,7 @@ components: description: Each selector must be satisfied by a device which is claimed via this class. items: - $ref: '#/components/schemas/v1.DeviceSelector' + $ref: "#/components/schemas/v1.DeviceSelector" type: array x-kubernetes-list-type: atomic type: object @@ -260841,7 +260841,7 @@ components: type: string counters: additionalProperties: - $ref: '#/components/schemas/v1.Counter' + $ref: "#/components/schemas/v1.Counter" description: |- Counters defines the counters that will be consumed by the device. @@ -260931,14 +260931,14 @@ components: key: null properties: exactly: - $ref: '#/components/schemas/v1.ExactDeviceRequest' + $ref: "#/components/schemas/v1.ExactDeviceRequest" firstAvailable: description: |- FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. items: - $ref: '#/components/schemas/v1.DeviceSubRequest' + $ref: "#/components/schemas/v1.DeviceSubRequest" type: array x-kubernetes-list-type: atomic name: @@ -261008,7 +261008,7 @@ components: x-kubernetes-list-type: atomic consumedCapacity: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: |- ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). @@ -261052,7 +261052,7 @@ components: This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - $ref: '#/components/schemas/v1.DeviceToleration' + $ref: "#/components/schemas/v1.DeviceToleration" type: array x-kubernetes-list-type: atomic required: @@ -261068,7 +261068,7 @@ components: expression: expression properties: cel: - $ref: '#/components/schemas/v1.CELDeviceSelector' + $ref: "#/components/schemas/v1.CELDeviceSelector" type: object v1.DeviceSubRequest: description: |- @@ -261117,7 +261117,7 @@ components: More modes may get added in the future. Clients must refuse to handle requests with unknown modes. type: string capacity: - $ref: '#/components/schemas/v1.CapacityRequirements' + $ref: "#/components/schemas/v1.CapacityRequirements" count: description: "Count is used only when the count mode is \"ExactCount\".\ \ Must be greater than zero. If AllocationMode is ExactCount and this\ @@ -261143,7 +261143,7 @@ components: device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered. items: - $ref: '#/components/schemas/v1.DeviceSelector' + $ref: "#/components/schemas/v1.DeviceSelector" type: array x-kubernetes-list-type: atomic tolerations: @@ -261158,7 +261158,7 @@ components: This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - $ref: '#/components/schemas/v1.DeviceToleration' + $ref: "#/components/schemas/v1.DeviceToleration" type: array x-kubernetes-list-type: atomic required: @@ -261292,7 +261292,7 @@ components: More modes may get added in the future. Clients must refuse to handle requests with unknown modes. type: string capacity: - $ref: '#/components/schemas/v1.CapacityRequirements' + $ref: "#/components/schemas/v1.CapacityRequirements" count: description: "Count is used only when the count mode is \"ExactCount\".\ \ Must be greater than zero. If AllocationMode is ExactCount and this\ @@ -261312,7 +261312,7 @@ components: device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. items: - $ref: '#/components/schemas/v1.DeviceSelector' + $ref: "#/components/schemas/v1.DeviceSelector" type: array x-kubernetes-list-type: atomic tolerations: @@ -261327,7 +261327,7 @@ components: This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - $ref: '#/components/schemas/v1.DeviceToleration' + $ref: "#/components/schemas/v1.DeviceToleration" type: array x-kubernetes-list-type: atomic required: @@ -261804,11 +261804,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.ResourceClaimSpec' + $ref: "#/components/schemas/v1.ResourceClaimSpec" status: - $ref: '#/components/schemas/v1.ResourceClaimStatus' + $ref: "#/components/schemas/v1.ResourceClaimStatus" required: - spec type: object @@ -262654,7 +262654,7 @@ components: items: description: Items is the list of resource claims. items: - $ref: '#/components/schemas/resource.v1.ResourceClaim' + $ref: "#/components/schemas/resource.v1.ResourceClaim" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -262662,7 +262662,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -262848,7 +262848,7 @@ components: - requests properties: devices: - $ref: '#/components/schemas/v1.DeviceClaim' + $ref: "#/components/schemas/v1.DeviceClaim" type: object v1.ResourceClaimStatus: description: ResourceClaimStatus tracks whether the resource has been allocated @@ -263029,13 +263029,13 @@ components: device: device properties: allocation: - $ref: '#/components/schemas/v1.AllocationResult' + $ref: "#/components/schemas/v1.AllocationResult" devices: description: "Devices contains the status of each device allocated for this\ \ claim, as reported by the driver. This can include driver-specific information.\ \ Entries are owned by their respective drivers." items: - $ref: '#/components/schemas/v1.AllocatedDeviceStatus' + $ref: "#/components/schemas/v1.AllocatedDeviceStatus" type: array x-kubernetes-list-type: map x-kubernetes-list-map-keys: @@ -263053,7 +263053,7 @@ components: There can be at most 256 such reservations. This may get increased in the future, but not reduced. items: - $ref: '#/components/schemas/v1.ResourceClaimConsumerReference' + $ref: "#/components/schemas/v1.ResourceClaimConsumerReference" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -263345,9 +263345,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.ResourceClaimTemplateSpec' + $ref: "#/components/schemas/v1.ResourceClaimTemplateSpec" required: - spec type: object @@ -263909,7 +263909,7 @@ components: items: description: Items is the list of resource claim templates. items: - $ref: '#/components/schemas/v1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -263917,7 +263917,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -264150,9 +264150,9 @@ components: - requests properties: metadata: - $ref: '#/components/schemas/v1.ObjectMeta' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.ResourceClaimSpec' + $ref: "#/components/schemas/v1.ResourceClaimSpec" required: - spec type: object @@ -264513,9 +264513,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.ResourceSliceSpec' + $ref: "#/components/schemas/v1.ResourceSliceSpec" required: - spec type: object @@ -265143,7 +265143,7 @@ components: items: description: Items is the list of resource ResourceSlices. items: - $ref: '#/components/schemas/v1.ResourceSlice' + $ref: "#/components/schemas/v1.ResourceSlice" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -265151,7 +265151,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -265428,7 +265428,7 @@ components: Must not have more than 128 entries. items: - $ref: '#/components/schemas/v1.Device' + $ref: "#/components/schemas/v1.Device" type: array x-kubernetes-list-type: atomic driver: @@ -265446,7 +265446,7 @@ components: Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable. type: string nodeSelector: - $ref: '#/components/schemas/v1.NodeSelector' + $ref: "#/components/schemas/v1.NodeSelector" perDeviceNodeSelection: description: |- PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually. @@ -265454,7 +265454,7 @@ components: Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. type: boolean pool: - $ref: '#/components/schemas/v1.ResourcePool' + $ref: "#/components/schemas/v1.ResourcePool" sharedCounters: description: |- SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. @@ -265463,7 +265463,7 @@ components: The maximum number of counters in all sets is 32. items: - $ref: '#/components/schemas/v1.CounterSet' + $ref: "#/components/schemas/v1.CounterSet" type: array x-kubernetes-list-type: atomic required: @@ -265517,7 +265517,7 @@ components: expression: expression properties: cel: - $ref: '#/components/schemas/v1alpha3.CELDeviceSelector' + $ref: "#/components/schemas/v1alpha3.CELDeviceSelector" type: object v1alpha3.DeviceTaint: description: "The device this taint is attached to has the \"effect\" on any\ @@ -265632,9 +265632,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRuleSpec' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleSpec" required: - spec type: object @@ -265792,7 +265792,7 @@ components: items: description: Items is the list of DeviceTaintRules. items: - $ref: '#/components/schemas/v1alpha3.DeviceTaintRule' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -265800,7 +265800,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -265830,9 +265830,9 @@ components: device: device properties: deviceSelector: - $ref: '#/components/schemas/v1alpha3.DeviceTaintSelector' + $ref: "#/components/schemas/v1alpha3.DeviceTaintSelector" taint: - $ref: '#/components/schemas/v1alpha3.DeviceTaint' + $ref: "#/components/schemas/v1alpha3.DeviceTaint" required: - taint type: object @@ -265876,7 +265876,7 @@ components: \ Currently, CEL expressions are supported. All of these selectors must\ \ be satisfied." items: - $ref: '#/components/schemas/v1alpha3.DeviceSelector' + $ref: "#/components/schemas/v1alpha3.DeviceSelector" type: array x-kubernetes-list-type: atomic type: object @@ -265917,7 +265917,7 @@ components: Must not contain more than 8 entries. items: - $ref: '#/components/schemas/v1.Condition' + $ref: "#/components/schemas/v1.Condition" type: array x-kubernetes-list-type: map x-kubernetes-list-map-keys: @@ -265940,7 +265940,7 @@ components: Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. type: string networkData: - $ref: '#/components/schemas/v1beta1.NetworkDeviceData' + $ref: "#/components/schemas/v1beta1.NetworkDeviceData" pool: description: |- This name together with the driver name and the device name field identify which device was allocated (`//`). @@ -266082,9 +266082,9 @@ components: format: date-time type: string devices: - $ref: '#/components/schemas/v1beta1.DeviceAllocationResult' + $ref: "#/components/schemas/v1beta1.DeviceAllocationResult" nodeSelector: - $ref: '#/components/schemas/v1.NodeSelector' + $ref: "#/components/schemas/v1.NodeSelector" type: object v1beta1.BasicDevice: description: BasicDevice defines one device instance. @@ -266196,7 +266196,7 @@ components: type: boolean attributes: additionalProperties: - $ref: '#/components/schemas/v1beta1.DeviceAttribute' + $ref: "#/components/schemas/v1beta1.DeviceAttribute" description: |- Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. @@ -266236,7 +266236,7 @@ components: type: boolean capacity: additionalProperties: - $ref: '#/components/schemas/v1beta1.DeviceCapacity' + $ref: "#/components/schemas/v1beta1.DeviceCapacity" description: |- Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. @@ -266250,7 +266250,7 @@ components: The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). items: - $ref: '#/components/schemas/v1beta1.DeviceCounterConsumption' + $ref: "#/components/schemas/v1beta1.DeviceCounterConsumption" type: array x-kubernetes-list-type: atomic nodeName: @@ -266260,7 +266260,7 @@ components: Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. type: string nodeSelector: - $ref: '#/components/schemas/v1.NodeSelector' + $ref: "#/components/schemas/v1.NodeSelector" taints: description: |- If specified, these are the driver-defined taints. @@ -266269,7 +266269,7 @@ components: This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - $ref: '#/components/schemas/v1beta1.DeviceTaint' + $ref: "#/components/schemas/v1beta1.DeviceTaint" type: array x-kubernetes-list-type: atomic type: object @@ -266369,7 +266369,7 @@ components: format: quantity type: string validRange: - $ref: '#/components/schemas/v1beta1.CapacityRequestPolicyRange' + $ref: "#/components/schemas/v1beta1.CapacityRequestPolicyRange" validValues: description: |- ValidValues defines a set of acceptable quantity values in consuming requests. @@ -266382,7 +266382,7 @@ components: If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. items: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" type: array x-kubernetes-list-type: atomic type: object @@ -266527,7 +266527,7 @@ components: properties: requests: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: |- Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. @@ -266601,7 +266601,7 @@ components: properties: counters: additionalProperties: - $ref: '#/components/schemas/v1beta1.Counter' + $ref: "#/components/schemas/v1beta1.Counter" description: |- Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. @@ -266716,7 +266716,7 @@ components: operator: operator properties: basic: - $ref: '#/components/schemas/v1beta1.BasicDevice' + $ref: "#/components/schemas/v1beta1.BasicDevice" name: description: Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. @@ -266736,7 +266736,7 @@ components: source: source properties: opaque: - $ref: '#/components/schemas/v1beta1.OpaqueDeviceConfiguration' + $ref: "#/components/schemas/v1beta1.OpaqueDeviceConfiguration" requests: description: |- Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. @@ -266830,13 +266830,13 @@ components: This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. items: - $ref: '#/components/schemas/v1beta1.DeviceAllocationConfiguration' + $ref: "#/components/schemas/v1beta1.DeviceAllocationConfiguration" type: array x-kubernetes-list-type: atomic results: description: Results lists all allocated devices. items: - $ref: '#/components/schemas/v1beta1.DeviceRequestAllocationResult' + $ref: "#/components/schemas/v1beta1.DeviceRequestAllocationResult" type: array x-kubernetes-list-type: atomic type: object @@ -266878,7 +266878,7 @@ components: - null properties: requestPolicy: - $ref: '#/components/schemas/v1beta1.CapacityRequestPolicy' + $ref: "#/components/schemas/v1beta1.CapacityRequestPolicy" value: description: "Quantity is a fixed-point representation of a number. It provides\ \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ @@ -267096,21 +267096,21 @@ components: which could satisfy requests in this claim. It is ignored while allocating the claim. items: - $ref: '#/components/schemas/v1beta1.DeviceClaimConfiguration' + $ref: "#/components/schemas/v1beta1.DeviceClaimConfiguration" type: array x-kubernetes-list-type: atomic constraints: description: These constraints must be satisfied by the set of devices that get allocated for the claim. items: - $ref: '#/components/schemas/v1beta1.DeviceConstraint' + $ref: "#/components/schemas/v1beta1.DeviceConstraint" type: array x-kubernetes-list-type: atomic requests: description: "Requests represent individual requests for distinct devices\ \ which must all be satisfied. If empty, nothing needs to be allocated." items: - $ref: '#/components/schemas/v1beta1.DeviceRequest' + $ref: "#/components/schemas/v1beta1.DeviceRequest" type: array x-kubernetes-list-type: atomic type: object @@ -267126,7 +267126,7 @@ components: - requests properties: opaque: - $ref: '#/components/schemas/v1beta1.OpaqueDeviceConfiguration' + $ref: "#/components/schemas/v1beta1.OpaqueDeviceConfiguration" requests: description: |- Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. @@ -267217,9 +267217,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1beta1.DeviceClassSpec' + $ref: "#/components/schemas/v1beta1.DeviceClassSpec" required: - spec type: object @@ -267237,7 +267237,7 @@ components: parameters: "{}" properties: opaque: - $ref: '#/components/schemas/v1beta1.OpaqueDeviceConfiguration' + $ref: "#/components/schemas/v1beta1.OpaqueDeviceConfiguration" type: object v1beta1.DeviceClassList: description: DeviceClassList is a collection of classes. @@ -267383,7 +267383,7 @@ components: items: description: Items is the list of resource classes. items: - $ref: '#/components/schemas/v1beta1.DeviceClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -267391,7 +267391,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -267425,7 +267425,7 @@ components: They are passed to the driver, but are not considered while allocating the claim. items: - $ref: '#/components/schemas/v1beta1.DeviceClassConfiguration' + $ref: "#/components/schemas/v1beta1.DeviceClassConfiguration" type: array x-kubernetes-list-type: atomic extendedResourceName: @@ -267438,7 +267438,7 @@ components: description: Each selector must be satisfied by a device which is claimed via this class. items: - $ref: '#/components/schemas/v1beta1.DeviceSelector' + $ref: "#/components/schemas/v1beta1.DeviceSelector" type: array x-kubernetes-list-type: atomic type: object @@ -267494,7 +267494,7 @@ components: type: string counters: additionalProperties: - $ref: '#/components/schemas/v1beta1.Counter' + $ref: "#/components/schemas/v1beta1.Counter" description: |- Counters defines the counters that will be consumed by the device. @@ -267609,7 +267609,7 @@ components: More modes may get added in the future. Clients must refuse to handle requests with unknown modes. type: string capacity: - $ref: '#/components/schemas/v1beta1.CapacityRequirements' + $ref: "#/components/schemas/v1beta1.CapacityRequirements" count: description: |- Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. @@ -267633,7 +267633,7 @@ components: DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. items: - $ref: '#/components/schemas/v1beta1.DeviceSubRequest' + $ref: "#/components/schemas/v1beta1.DeviceSubRequest" type: array x-kubernetes-list-type: atomic name: @@ -267648,7 +267648,7 @@ components: This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. items: - $ref: '#/components/schemas/v1beta1.DeviceSelector' + $ref: "#/components/schemas/v1beta1.DeviceSelector" type: array x-kubernetes-list-type: atomic tolerations: @@ -267665,7 +267665,7 @@ components: This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - $ref: '#/components/schemas/v1beta1.DeviceToleration' + $ref: "#/components/schemas/v1beta1.DeviceToleration" type: array x-kubernetes-list-type: atomic required: @@ -267727,7 +267727,7 @@ components: x-kubernetes-list-type: atomic consumedCapacity: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: |- ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). @@ -267771,7 +267771,7 @@ components: This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - $ref: '#/components/schemas/v1beta1.DeviceToleration' + $ref: "#/components/schemas/v1beta1.DeviceToleration" type: array x-kubernetes-list-type: atomic required: @@ -267787,7 +267787,7 @@ components: expression: expression properties: cel: - $ref: '#/components/schemas/v1beta1.CELDeviceSelector' + $ref: "#/components/schemas/v1beta1.CELDeviceSelector" type: object v1beta1.DeviceSubRequest: description: |- @@ -267836,7 +267836,7 @@ components: More modes may get added in the future. Clients must refuse to handle requests with unknown modes. type: string capacity: - $ref: '#/components/schemas/v1beta1.CapacityRequirements' + $ref: "#/components/schemas/v1beta1.CapacityRequirements" count: description: "Count is used only when the count mode is \"ExactCount\".\ \ Must be greater than zero. If AllocationMode is ExactCount and this\ @@ -267862,7 +267862,7 @@ components: device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered. items: - $ref: '#/components/schemas/v1beta1.DeviceSelector' + $ref: "#/components/schemas/v1beta1.DeviceSelector" type: array x-kubernetes-list-type: atomic tolerations: @@ -267877,7 +267877,7 @@ components: This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - $ref: '#/components/schemas/v1beta1.DeviceToleration' + $ref: "#/components/schemas/v1beta1.DeviceToleration" type: array x-kubernetes-list-type: atomic required: @@ -268428,11 +268428,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1beta1.ResourceClaimSpec' + $ref: "#/components/schemas/v1beta1.ResourceClaimSpec" status: - $ref: '#/components/schemas/v1beta1.ResourceClaimStatus' + $ref: "#/components/schemas/v1beta1.ResourceClaimStatus" required: - spec type: object @@ -269274,7 +269274,7 @@ components: items: description: Items is the list of resource claims. items: - $ref: '#/components/schemas/v1beta1.ResourceClaim' + $ref: "#/components/schemas/v1beta1.ResourceClaim" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -269282,7 +269282,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -269466,7 +269466,7 @@ components: - requests properties: devices: - $ref: '#/components/schemas/v1beta1.DeviceClaim' + $ref: "#/components/schemas/v1beta1.DeviceClaim" type: object v1beta1.ResourceClaimStatus: description: ResourceClaimStatus tracks whether the resource has been allocated @@ -269647,13 +269647,13 @@ components: device: device properties: allocation: - $ref: '#/components/schemas/v1beta1.AllocationResult' + $ref: "#/components/schemas/v1beta1.AllocationResult" devices: description: "Devices contains the status of each device allocated for this\ \ claim, as reported by the driver. This can include driver-specific information.\ \ Entries are owned by their respective drivers." items: - $ref: '#/components/schemas/v1beta1.AllocatedDeviceStatus' + $ref: "#/components/schemas/v1beta1.AllocatedDeviceStatus" type: array x-kubernetes-list-type: map x-kubernetes-list-map-keys: @@ -269671,7 +269671,7 @@ components: There can be at most 256 such reservations. This may get increased in the future, but not reduced. items: - $ref: '#/components/schemas/v1beta1.ResourceClaimConsumerReference' + $ref: "#/components/schemas/v1beta1.ResourceClaimConsumerReference" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -269961,9 +269961,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplateSpec' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateSpec" required: - spec type: object @@ -270521,7 +270521,7 @@ components: items: description: Items is the list of resource claim templates. items: - $ref: '#/components/schemas/v1beta1.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -270529,7 +270529,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -270760,9 +270760,9 @@ components: - requests properties: metadata: - $ref: '#/components/schemas/v1.ObjectMeta' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1beta1.ResourceClaimSpec' + $ref: "#/components/schemas/v1beta1.ResourceClaimSpec" required: - spec type: object @@ -271125,9 +271125,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1beta1.ResourceSliceSpec' + $ref: "#/components/schemas/v1beta1.ResourceSliceSpec" required: - spec type: object @@ -271759,7 +271759,7 @@ components: items: description: Items is the list of resource ResourceSlices. items: - $ref: '#/components/schemas/v1beta1.ResourceSlice' + $ref: "#/components/schemas/v1beta1.ResourceSlice" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -271767,7 +271767,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -272046,7 +272046,7 @@ components: Must not have more than 128 entries. items: - $ref: '#/components/schemas/v1beta1.Device' + $ref: "#/components/schemas/v1beta1.Device" type: array x-kubernetes-list-type: atomic driver: @@ -272064,7 +272064,7 @@ components: Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable. type: string nodeSelector: - $ref: '#/components/schemas/v1.NodeSelector' + $ref: "#/components/schemas/v1.NodeSelector" perDeviceNodeSelection: description: |- PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually. @@ -272072,7 +272072,7 @@ components: Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. type: boolean pool: - $ref: '#/components/schemas/v1beta1.ResourcePool' + $ref: "#/components/schemas/v1beta1.ResourcePool" sharedCounters: description: |- SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. @@ -272081,7 +272081,7 @@ components: The maximum number of SharedCounters is 32. items: - $ref: '#/components/schemas/v1beta1.CounterSet' + $ref: "#/components/schemas/v1beta1.CounterSet" type: array x-kubernetes-list-type: atomic required: @@ -272125,7 +272125,7 @@ components: Must not contain more than 8 entries. items: - $ref: '#/components/schemas/v1.Condition' + $ref: "#/components/schemas/v1.Condition" type: array x-kubernetes-list-type: map x-kubernetes-list-map-keys: @@ -272148,7 +272148,7 @@ components: Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. type: string networkData: - $ref: '#/components/schemas/v1beta2.NetworkDeviceData' + $ref: "#/components/schemas/v1beta2.NetworkDeviceData" pool: description: |- This name together with the driver name and the device name field identify which device was allocated (`//`). @@ -272290,9 +272290,9 @@ components: format: date-time type: string devices: - $ref: '#/components/schemas/v1beta2.DeviceAllocationResult' + $ref: "#/components/schemas/v1beta2.DeviceAllocationResult" nodeSelector: - $ref: '#/components/schemas/v1.NodeSelector' + $ref: "#/components/schemas/v1.NodeSelector" type: object v1beta2.CELDeviceSelector: description: CELDeviceSelector contains a CEL expression for selecting a device. @@ -272390,7 +272390,7 @@ components: format: quantity type: string validRange: - $ref: '#/components/schemas/v1beta2.CapacityRequestPolicyRange' + $ref: "#/components/schemas/v1beta2.CapacityRequestPolicyRange" validValues: description: |- ValidValues defines a set of acceptable quantity values in consuming requests. @@ -272403,7 +272403,7 @@ components: If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. items: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" type: array x-kubernetes-list-type: atomic type: object @@ -272548,7 +272548,7 @@ components: properties: requests: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: |- Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. @@ -272622,7 +272622,7 @@ components: properties: counters: additionalProperties: - $ref: '#/components/schemas/v1beta2.Counter' + $ref: "#/components/schemas/v1beta2.Counter" description: |- Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. @@ -272749,7 +272749,7 @@ components: type: boolean attributes: additionalProperties: - $ref: '#/components/schemas/v1beta2.DeviceAttribute' + $ref: "#/components/schemas/v1beta2.DeviceAttribute" description: |- Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. @@ -272789,7 +272789,7 @@ components: type: boolean capacity: additionalProperties: - $ref: '#/components/schemas/v1beta2.DeviceCapacity' + $ref: "#/components/schemas/v1beta2.DeviceCapacity" description: |- Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. @@ -272803,7 +272803,7 @@ components: The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). items: - $ref: '#/components/schemas/v1beta2.DeviceCounterConsumption' + $ref: "#/components/schemas/v1beta2.DeviceCounterConsumption" type: array x-kubernetes-list-type: atomic name: @@ -272817,7 +272817,7 @@ components: Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. type: string nodeSelector: - $ref: '#/components/schemas/v1.NodeSelector' + $ref: "#/components/schemas/v1.NodeSelector" taints: description: |- If specified, these are the driver-defined taints. @@ -272826,7 +272826,7 @@ components: This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - $ref: '#/components/schemas/v1beta2.DeviceTaint' + $ref: "#/components/schemas/v1beta2.DeviceTaint" type: array x-kubernetes-list-type: atomic required: @@ -272844,7 +272844,7 @@ components: source: source properties: opaque: - $ref: '#/components/schemas/v1beta2.OpaqueDeviceConfiguration' + $ref: "#/components/schemas/v1beta2.OpaqueDeviceConfiguration" requests: description: |- Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. @@ -272938,13 +272938,13 @@ components: This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. items: - $ref: '#/components/schemas/v1beta2.DeviceAllocationConfiguration' + $ref: "#/components/schemas/v1beta2.DeviceAllocationConfiguration" type: array x-kubernetes-list-type: atomic results: description: Results lists all allocated devices. items: - $ref: '#/components/schemas/v1beta2.DeviceRequestAllocationResult' + $ref: "#/components/schemas/v1beta2.DeviceRequestAllocationResult" type: array x-kubernetes-list-type: atomic type: object @@ -272986,7 +272986,7 @@ components: - null properties: requestPolicy: - $ref: '#/components/schemas/v1beta2.CapacityRequestPolicy' + $ref: "#/components/schemas/v1beta2.CapacityRequestPolicy" value: description: "Quantity is a fixed-point representation of a number. It provides\ \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ @@ -273206,21 +273206,21 @@ components: which could satisfy requests in this claim. It is ignored while allocating the claim. items: - $ref: '#/components/schemas/v1beta2.DeviceClaimConfiguration' + $ref: "#/components/schemas/v1beta2.DeviceClaimConfiguration" type: array x-kubernetes-list-type: atomic constraints: description: These constraints must be satisfied by the set of devices that get allocated for the claim. items: - $ref: '#/components/schemas/v1beta2.DeviceConstraint' + $ref: "#/components/schemas/v1beta2.DeviceConstraint" type: array x-kubernetes-list-type: atomic requests: description: "Requests represent individual requests for distinct devices\ \ which must all be satisfied. If empty, nothing needs to be allocated." items: - $ref: '#/components/schemas/v1beta2.DeviceRequest' + $ref: "#/components/schemas/v1beta2.DeviceRequest" type: array x-kubernetes-list-type: atomic type: object @@ -273236,7 +273236,7 @@ components: - requests properties: opaque: - $ref: '#/components/schemas/v1beta2.OpaqueDeviceConfiguration' + $ref: "#/components/schemas/v1beta2.OpaqueDeviceConfiguration" requests: description: |- Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. @@ -273327,9 +273327,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1beta2.DeviceClassSpec' + $ref: "#/components/schemas/v1beta2.DeviceClassSpec" required: - spec type: object @@ -273347,7 +273347,7 @@ components: parameters: "{}" properties: opaque: - $ref: '#/components/schemas/v1beta2.OpaqueDeviceConfiguration' + $ref: "#/components/schemas/v1beta2.OpaqueDeviceConfiguration" type: object v1beta2.DeviceClassList: description: DeviceClassList is a collection of classes. @@ -273493,7 +273493,7 @@ components: items: description: Items is the list of resource classes. items: - $ref: '#/components/schemas/v1beta2.DeviceClass' + $ref: "#/components/schemas/v1beta2.DeviceClass" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -273501,7 +273501,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -273535,7 +273535,7 @@ components: They are passed to the driver, but are not considered while allocating the claim. items: - $ref: '#/components/schemas/v1beta2.DeviceClassConfiguration' + $ref: "#/components/schemas/v1beta2.DeviceClassConfiguration" type: array x-kubernetes-list-type: atomic extendedResourceName: @@ -273548,7 +273548,7 @@ components: description: Each selector must be satisfied by a device which is claimed via this class. items: - $ref: '#/components/schemas/v1beta2.DeviceSelector' + $ref: "#/components/schemas/v1beta2.DeviceSelector" type: array x-kubernetes-list-type: atomic type: object @@ -273604,7 +273604,7 @@ components: type: string counters: additionalProperties: - $ref: '#/components/schemas/v1beta2.Counter' + $ref: "#/components/schemas/v1beta2.Counter" description: |- Counters defines the counters that will be consumed by the device. @@ -273694,14 +273694,14 @@ components: key: null properties: exactly: - $ref: '#/components/schemas/v1beta2.ExactDeviceRequest' + $ref: "#/components/schemas/v1beta2.ExactDeviceRequest" firstAvailable: description: |- FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. items: - $ref: '#/components/schemas/v1beta2.DeviceSubRequest' + $ref: "#/components/schemas/v1beta2.DeviceSubRequest" type: array x-kubernetes-list-type: atomic name: @@ -273771,7 +273771,7 @@ components: x-kubernetes-list-type: atomic consumedCapacity: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: |- ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). @@ -273815,7 +273815,7 @@ components: This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - $ref: '#/components/schemas/v1beta2.DeviceToleration' + $ref: "#/components/schemas/v1beta2.DeviceToleration" type: array x-kubernetes-list-type: atomic required: @@ -273831,7 +273831,7 @@ components: expression: expression properties: cel: - $ref: '#/components/schemas/v1beta2.CELDeviceSelector' + $ref: "#/components/schemas/v1beta2.CELDeviceSelector" type: object v1beta2.DeviceSubRequest: description: |- @@ -273880,7 +273880,7 @@ components: More modes may get added in the future. Clients must refuse to handle requests with unknown modes. type: string capacity: - $ref: '#/components/schemas/v1beta2.CapacityRequirements' + $ref: "#/components/schemas/v1beta2.CapacityRequirements" count: description: "Count is used only when the count mode is \"ExactCount\".\ \ Must be greater than zero. If AllocationMode is ExactCount and this\ @@ -273906,7 +273906,7 @@ components: device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered. items: - $ref: '#/components/schemas/v1beta2.DeviceSelector' + $ref: "#/components/schemas/v1beta2.DeviceSelector" type: array x-kubernetes-list-type: atomic tolerations: @@ -273921,7 +273921,7 @@ components: This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - $ref: '#/components/schemas/v1beta2.DeviceToleration' + $ref: "#/components/schemas/v1beta2.DeviceToleration" type: array x-kubernetes-list-type: atomic required: @@ -274055,7 +274055,7 @@ components: More modes may get added in the future. Clients must refuse to handle requests with unknown modes. type: string capacity: - $ref: '#/components/schemas/v1beta2.CapacityRequirements' + $ref: "#/components/schemas/v1beta2.CapacityRequirements" count: description: "Count is used only when the count mode is \"ExactCount\".\ \ Must be greater than zero. If AllocationMode is ExactCount and this\ @@ -274075,7 +274075,7 @@ components: device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. items: - $ref: '#/components/schemas/v1beta2.DeviceSelector' + $ref: "#/components/schemas/v1beta2.DeviceSelector" type: array x-kubernetes-list-type: atomic tolerations: @@ -274090,7 +274090,7 @@ components: This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - $ref: '#/components/schemas/v1beta2.DeviceToleration' + $ref: "#/components/schemas/v1beta2.DeviceToleration" type: array x-kubernetes-list-type: atomic required: @@ -274567,11 +274567,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1beta2.ResourceClaimSpec' + $ref: "#/components/schemas/v1beta2.ResourceClaimSpec" status: - $ref: '#/components/schemas/v1beta2.ResourceClaimStatus' + $ref: "#/components/schemas/v1beta2.ResourceClaimStatus" required: - spec type: object @@ -275417,7 +275417,7 @@ components: items: description: Items is the list of resource claims. items: - $ref: '#/components/schemas/v1beta2.ResourceClaim' + $ref: "#/components/schemas/v1beta2.ResourceClaim" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -275425,7 +275425,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -275611,7 +275611,7 @@ components: - requests properties: devices: - $ref: '#/components/schemas/v1beta2.DeviceClaim' + $ref: "#/components/schemas/v1beta2.DeviceClaim" type: object v1beta2.ResourceClaimStatus: description: ResourceClaimStatus tracks whether the resource has been allocated @@ -275792,13 +275792,13 @@ components: device: device properties: allocation: - $ref: '#/components/schemas/v1beta2.AllocationResult' + $ref: "#/components/schemas/v1beta2.AllocationResult" devices: description: "Devices contains the status of each device allocated for this\ \ claim, as reported by the driver. This can include driver-specific information.\ \ Entries are owned by their respective drivers." items: - $ref: '#/components/schemas/v1beta2.AllocatedDeviceStatus' + $ref: "#/components/schemas/v1beta2.AllocatedDeviceStatus" type: array x-kubernetes-list-type: map x-kubernetes-list-map-keys: @@ -275816,7 +275816,7 @@ components: There can be at most 256 such reservations. This may get increased in the future, but not reduced. items: - $ref: '#/components/schemas/v1beta2.ResourceClaimConsumerReference' + $ref: "#/components/schemas/v1beta2.ResourceClaimConsumerReference" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -276108,9 +276108,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplateSpec' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateSpec" required: - spec type: object @@ -276672,7 +276672,7 @@ components: items: description: Items is the list of resource claim templates. items: - $ref: '#/components/schemas/v1beta2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -276680,7 +276680,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -276913,9 +276913,9 @@ components: - requests properties: metadata: - $ref: '#/components/schemas/v1.ObjectMeta' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1beta2.ResourceClaimSpec' + $ref: "#/components/schemas/v1beta2.ResourceClaimSpec" required: - spec type: object @@ -277276,9 +277276,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1beta2.ResourceSliceSpec' + $ref: "#/components/schemas/v1beta2.ResourceSliceSpec" required: - spec type: object @@ -277906,7 +277906,7 @@ components: items: description: Items is the list of resource ResourceSlices. items: - $ref: '#/components/schemas/v1beta2.ResourceSlice' + $ref: "#/components/schemas/v1beta2.ResourceSlice" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -277914,7 +277914,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -278191,7 +278191,7 @@ components: Must not have more than 128 entries. items: - $ref: '#/components/schemas/v1beta2.Device' + $ref: "#/components/schemas/v1beta2.Device" type: array x-kubernetes-list-type: atomic driver: @@ -278209,7 +278209,7 @@ components: Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable. type: string nodeSelector: - $ref: '#/components/schemas/v1.NodeSelector' + $ref: "#/components/schemas/v1.NodeSelector" perDeviceNodeSelection: description: |- PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually. @@ -278217,7 +278217,7 @@ components: Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. type: boolean pool: - $ref: '#/components/schemas/v1beta2.ResourcePool' + $ref: "#/components/schemas/v1beta2.ResourcePool" sharedCounters: description: |- SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. @@ -278226,7 +278226,7 @@ components: The maximum number of counters in all sets is 32. items: - $ref: '#/components/schemas/v1beta2.CounterSet' + $ref: "#/components/schemas/v1beta2.CounterSet" type: array x-kubernetes-list-type: atomic required: @@ -278313,7 +278313,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" preemptionPolicy: description: "preemptionPolicy is the Policy for preempting pods with lower\ \ priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority\ @@ -278458,7 +278458,7 @@ components: items: description: items is the list of PriorityClasses items: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.PriorityClass" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -278466,7 +278466,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -278559,9 +278559,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.CSIDriverSpec' + $ref: "#/components/schemas/v1.CSIDriverSpec" required: - spec type: object @@ -278719,7 +278719,7 @@ components: items: description: items is the list of CSIDriver items: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.CSIDriver" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -278727,7 +278727,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -278830,7 +278830,7 @@ components: 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. items: - $ref: '#/components/schemas/storage.v1.TokenRequest' + $ref: "#/components/schemas/storage.v1.TokenRequest" type: array x-kubernetes-list-type: atomic volumeLifecycleModes: @@ -278934,9 +278934,9 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.CSINodeSpec' + $ref: "#/components/schemas/v1.CSINodeSpec" required: - spec type: object @@ -278959,7 +278959,7 @@ components: nodeID: nodeID properties: allocatable: - $ref: '#/components/schemas/v1.VolumeNodeResources' + $ref: "#/components/schemas/v1.VolumeNodeResources" name: description: name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() @@ -279142,7 +279142,7 @@ components: items: description: items is the list of CSINode items: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1.CSINode" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -279150,7 +279150,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -279185,7 +279185,7 @@ components: \ on a node. If all drivers in the list are uninstalled, this can become\ \ empty." items: - $ref: '#/components/schemas/v1.CSINodeDriver' + $ref: "#/components/schemas/v1.CSINodeDriver" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -279360,9 +279360,9 @@ components: format: quantity type: string metadata: - $ref: '#/components/schemas/v1.ObjectMeta' + $ref: "#/components/schemas/v1.ObjectMeta" nodeTopology: - $ref: '#/components/schemas/v1.LabelSelector' + $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\ @@ -279529,7 +279529,7 @@ components: items: description: items is the list of CSIStorageCapacity objects. items: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1.CSIStorageCapacity" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -279537,7 +279537,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -279641,7 +279641,7 @@ components: is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. items: - $ref: '#/components/schemas/v1.TopologySelectorTerm' + $ref: "#/components/schemas/v1.TopologySelectorTerm" type: array x-kubernetes-list-type: atomic apiVersion: @@ -279655,7 +279655,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" mountOptions: description: "mountOptions controls the mountOptions for dynamically provisioned\ \ PersistentVolumes of this storage class. e.g. [\"ro\", \"soft\"]. Not\ @@ -279864,7 +279864,7 @@ components: items: description: items is the list of StorageClasses items: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1.StorageClass" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -279872,7 +279872,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -280225,11 +280225,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.VolumeAttachmentSpec' + $ref: "#/components/schemas/v1.VolumeAttachmentSpec" status: - $ref: '#/components/schemas/v1.VolumeAttachmentStatus' + $ref: "#/components/schemas/v1.VolumeAttachmentStatus" required: - spec type: object @@ -280871,7 +280871,7 @@ components: items: description: items is the list of VolumeAttachments items: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1.VolumeAttachment" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -280879,7 +280879,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -281139,7 +281139,7 @@ components: type: type properties: inlineVolumeSpec: - $ref: '#/components/schemas/v1.PersistentVolumeSpec' + $ref: "#/components/schemas/v1.PersistentVolumeSpec" persistentVolumeName: description: persistentVolumeName represents the name of the persistent volume to attach. @@ -281404,7 +281404,7 @@ components: to. type: string source: - $ref: '#/components/schemas/v1.VolumeAttachmentSource' + $ref: "#/components/schemas/v1.VolumeAttachmentSource" required: - attacher - nodeName @@ -281426,7 +281426,7 @@ components: attached: true properties: attachError: - $ref: '#/components/schemas/v1.VolumeError' + $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,\ @@ -281441,7 +281441,7 @@ components: \ set by the entity completing the attach operation, i.e. the external-attacher." type: object detachError: - $ref: '#/components/schemas/v1.VolumeError' + $ref: "#/components/schemas/v1.VolumeError" required: - attached type: object @@ -281517,7 +281517,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" parameters: additionalProperties: type: string @@ -281658,7 +281658,7 @@ components: items: description: items is the list of VolumeAttributesClass objects. items: - $ref: '#/components/schemas/v1.VolumeAttributesClass' + $ref: "#/components/schemas/v1.VolumeAttributesClass" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -281666,7 +281666,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -281788,7 +281788,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" parameters: additionalProperties: type: string @@ -281929,7 +281929,7 @@ components: items: description: items is the list of VolumeAttributesClass objects. items: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1alpha1.VolumeAttributesClass" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -281937,7 +281937,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -282019,7 +282019,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" parameters: additionalProperties: type: string @@ -282160,7 +282160,7 @@ components: items: description: items is the list of VolumeAttributesClass objects. items: - $ref: '#/components/schemas/v1beta1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.VolumeAttributesClass" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -282168,7 +282168,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -282307,11 +282307,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationSpec' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigrationSpec" status: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationStatus' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigrationStatus" type: object x-kubernetes-group-version-kind: - group: storagemigration.k8s.io @@ -282474,7 +282474,7 @@ components: items: description: Items is the list of StorageVersionMigration items: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1alpha1.StorageVersionMigration" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -282487,7 +282487,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -282513,7 +282513,7 @@ components: \ migration." type: string resource: - $ref: '#/components/schemas/v1alpha1.GroupVersionResource' + $ref: "#/components/schemas/v1alpha1.GroupVersionResource" required: - resource type: object @@ -282537,7 +282537,7 @@ components: description: The latest available observations of the migration's current state. items: - $ref: '#/components/schemas/v1alpha1.MigrationCondition' + $ref: "#/components/schemas/v1alpha1.MigrationCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -282619,7 +282619,7 @@ components: is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. type: string webhook: - $ref: '#/components/schemas/v1.WebhookConversion' + $ref: "#/components/schemas/v1.WebhookConversion" required: - strategy type: object @@ -282949,11 +282949,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.CustomResourceDefinitionSpec' + $ref: "#/components/schemas/v1.CustomResourceDefinitionSpec" status: - $ref: '#/components/schemas/v1.CustomResourceDefinitionStatus' + $ref: "#/components/schemas/v1.CustomResourceDefinitionStatus" required: - spec type: object @@ -283639,7 +283639,7 @@ components: items: description: items list individual CustomResourceDefinition objects items: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -283647,7 +283647,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -283952,14 +283952,14 @@ components: group: group properties: conversion: - $ref: '#/components/schemas/v1.CustomResourceConversion' + $ref: "#/components/schemas/v1.CustomResourceConversion" group: description: group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). type: string names: - $ref: '#/components/schemas/v1.CustomResourceDefinitionNames' + $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\ @@ -283985,7 +283985,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.CustomResourceDefinitionVersion" type: array x-kubernetes-list-type: atomic required: @@ -284024,11 +284024,11 @@ components: singular: singular properties: acceptedNames: - $ref: '#/components/schemas/v1.CustomResourceDefinitionNames' + $ref: "#/components/schemas/v1.CustomResourceDefinitionNames" conditions: description: conditions indicate state for particular aspects of a CustomResourceDefinition items: - $ref: '#/components/schemas/v1.CustomResourceDefinitionCondition' + $ref: "#/components/schemas/v1.CustomResourceDefinitionCondition" type: array x-kubernetes-list-type: map x-kubernetes-list-map-keys: @@ -284159,7 +284159,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.CustomResourceColumnDefinition" type: array x-kubernetes-list-type: atomic deprecated: @@ -284179,13 +284179,13 @@ components: \ if `served` is true." type: string schema: - $ref: '#/components/schemas/v1.CustomResourceValidation' + $ref: "#/components/schemas/v1.CustomResourceValidation" selectableFields: description: selectableFields specifies paths to fields that may be used as field selectors. A maximum of 8 selectable fields are allowed. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors items: - $ref: '#/components/schemas/v1.SelectableField' + $ref: "#/components/schemas/v1.SelectableField" type: array x-kubernetes-list-type: atomic served: @@ -284197,7 +284197,7 @@ components: custom resources to storage. There must be exactly one version with storage=true. type: boolean subresources: - $ref: '#/components/schemas/v1.CustomResourceSubresources' + $ref: "#/components/schemas/v1.CustomResourceSubresources" required: - name - served @@ -284253,7 +284253,7 @@ components: status: "{}" properties: scale: - $ref: '#/components/schemas/v1.CustomResourceSubresourceScale' + $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\ @@ -284343,7 +284343,7 @@ components: key: null properties: openAPIV3Schema: - $ref: '#/components/schemas/v1.JSONSchemaProps' + $ref: "#/components/schemas/v1.JSONSchemaProps" type: object v1.ExternalDocumentation: description: ExternalDocumentation allows referencing an external resource for @@ -284452,12 +284452,12 @@ components: type: object allOf: items: - $ref: '#/components/schemas/v1.JSONSchemaProps' + $ref: "#/components/schemas/v1.JSONSchemaProps" type: array x-kubernetes-list-type: atomic anyOf: items: - $ref: '#/components/schemas/v1.JSONSchemaProps' + $ref: "#/components/schemas/v1.JSONSchemaProps" type: array x-kubernetes-list-type: atomic default: @@ -284468,7 +284468,7 @@ components: type: object definitions: additionalProperties: - $ref: '#/components/schemas/v1.JSONSchemaProps' + $ref: "#/components/schemas/v1.JSONSchemaProps" type: object dependencies: additionalProperties: @@ -284499,7 +284499,7 @@ components: exclusiveMinimum: type: boolean externalDocs: - $ref: '#/components/schemas/v1.ExternalDocumentation' + $ref: "#/components/schemas/v1.ExternalDocumentation" format: description: |- format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: @@ -284542,23 +284542,23 @@ components: format: double type: number not: - $ref: '#/components/schemas/v1.JSONSchemaProps' + $ref: "#/components/schemas/v1.JSONSchemaProps" nullable: type: boolean oneOf: items: - $ref: '#/components/schemas/v1.JSONSchemaProps' + $ref: "#/components/schemas/v1.JSONSchemaProps" type: array x-kubernetes-list-type: atomic pattern: type: string patternProperties: additionalProperties: - $ref: '#/components/schemas/v1.JSONSchemaProps' + $ref: "#/components/schemas/v1.JSONSchemaProps" type: object properties: additionalProperties: - $ref: '#/components/schemas/v1.JSONSchemaProps' + $ref: "#/components/schemas/v1.JSONSchemaProps" type: object required: items: @@ -284642,7 +284642,7 @@ components: description: x-kubernetes-validations describes a list of validation rules written in the CEL expression language. items: - $ref: '#/components/schemas/v1.ValidationRule' + $ref: "#/components/schemas/v1.ValidationRule" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -284851,7 +284851,7 @@ components: 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' + $ref: "#/components/schemas/apiextensions.v1.ServiceReference" url: description: |- url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. @@ -284883,7 +284883,7 @@ components: - conversionReviewVersions properties: clientConfig: - $ref: '#/components/schemas/apiextensions.v1.WebhookClientConfig' + $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\ @@ -284970,7 +284970,7 @@ components: description: name is the name of the group. type: string preferredVersion: - $ref: '#/components/schemas/v1.GroupVersionForDiscovery' + $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\ @@ -284982,13 +284982,13 @@ components: \ 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' + $ref: "#/components/schemas/v1.ServerAddressByClientCIDR" type: array x-kubernetes-list-type: atomic versions: description: versions are the versions supported in this group. items: - $ref: '#/components/schemas/v1.GroupVersionForDiscovery' + $ref: "#/components/schemas/v1.GroupVersionForDiscovery" type: array x-kubernetes-list-type: atomic required: @@ -285047,7 +285047,7 @@ components: groups: description: groups is a list of APIGroup. items: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" type: array x-kubernetes-list-type: atomic kind: @@ -285205,7 +285205,7 @@ components: description: resources contains the name of the resources and if they are namespaced. items: - $ref: '#/components/schemas/v1.APIResource' + $ref: "#/components/schemas/v1.APIResource" type: array x-kubernetes-list-type: atomic required: @@ -285252,7 +285252,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ServerAddressByClientCIDR" type: array x-kubernetes-list-type: atomic versions: @@ -285383,7 +285383,7 @@ components: \ but not both." type: boolean preconditions: - $ref: '#/components/schemas/v1.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\ @@ -285654,7 +285654,7 @@ components: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: - $ref: '#/components/schemas/v1.LabelSelectorRequirement' + $ref: "#/components/schemas/v1.LabelSelectorRequirement" type: array x-kubernetes-list-type: atomic matchLabels: @@ -285919,7 +285919,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ManagedFieldsEntry" type: array x-kubernetes-list-type: atomic name: @@ -285942,7 +285942,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.OwnerReference" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -286085,7 +286085,7 @@ components: format: int32 type: integer details: - $ref: '#/components/schemas/v1.StatusDetails' + $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\ @@ -286095,7 +286095,7 @@ components: description: A human-readable description of the status of this operation. type: string metadata: - $ref: '#/components/schemas/v1.ListMeta' + $ref: "#/components/schemas/v1.ListMeta" reason: description: A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. @@ -286159,7 +286159,7 @@ components: description: The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. items: - $ref: '#/components/schemas/v1.StatusCause' + $ref: "#/components/schemas/v1.StatusCause" type: array x-kubernetes-list-type: atomic group: @@ -286549,11 +286549,11 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.APIServiceSpec' + $ref: "#/components/schemas/v1.APIServiceSpec" status: - $ref: '#/components/schemas/v1.APIServiceStatus' + $ref: "#/components/schemas/v1.APIServiceStatus" type: object x-kubernetes-group-version-kind: - group: apiregistration.k8s.io @@ -286755,7 +286755,7 @@ components: items: description: Items is the list of APIService items: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -286763,7 +286763,7 @@ components: \ submits requests to. Cannot 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -286819,7 +286819,7 @@ components: should use the CABundle instead. type: boolean service: - $ref: '#/components/schemas/apiregistration.v1.ServiceReference' + $ref: "#/components/schemas/apiregistration.v1.ServiceReference" version: description: "Version is the API version this server hosts. For example,\ \ \"v1\"" @@ -286863,7 +286863,7 @@ components: conditions: description: Current service state of apiService. items: - $ref: '#/components/schemas/v1.APIServiceCondition' + $ref: "#/components/schemas/v1.APIServiceCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map 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 4ee3eea705..3c9269768d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiCallback.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiCallback.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi; import java.io.IOException; 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 d5d3fd68c2..72c2a8e32c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi; import okhttp3.*; @@ -60,7 +61,7 @@ */ public class ApiClient { - private String basePath = "http://localhost"; + protected String basePath = "http://localhost"; protected List servers = new ArrayList(Arrays.asList( new ServerConfiguration( "", @@ -70,26 +71,26 @@ public class ApiClient { )); protected Integer serverIndex = 0; protected Map serverVariables = null; - private boolean debugging = false; - private Map defaultHeaderMap = new HashMap(); - private Map defaultCookieMap = new HashMap(); - private String tempFolderPath = null; + protected boolean debugging = false; + protected Map defaultHeaderMap = new HashMap(); + protected Map defaultCookieMap = new HashMap(); + protected String tempFolderPath = null; - private Map authentications; + protected Map authentications; - private DateFormat dateFormat; - private DateFormat datetimeFormat; - private boolean lenientDatetimeFormat; - private int dateLength; + protected DateFormat dateFormat; + protected DateFormat datetimeFormat; + protected boolean lenientDatetimeFormat; + protected int dateLength; - private InputStream sslCaCert; - private boolean verifyingSsl; - private KeyManager[] keyManagers; + protected InputStream sslCaCert; + protected boolean verifyingSsl; + protected KeyManager[] keyManagers; - private OkHttpClient httpClient; - private JSON json; + protected OkHttpClient httpClient; + protected JSON json; - private HttpLoggingInterceptor loggingInterceptor; + protected HttpLoggingInterceptor loggingInterceptor; /** * Basic constructor for ApiClient @@ -120,11 +121,11 @@ public ApiClient(OkHttpClient client) { authentications = Collections.unmodifiableMap(authentications); } - private void initHttpClient() { + protected void initHttpClient() { initHttpClient(Collections.emptyList()); } - private void initHttpClient(List interceptors) { + protected void initHttpClient(List interceptors) { OkHttpClient.Builder builder = new OkHttpClient.Builder(); builder.addNetworkInterceptor(getProgressInterceptor()); for (Interceptor interceptor: interceptors) { @@ -134,7 +135,7 @@ private void initHttpClient(List interceptors) { httpClient = builder.build(); } - private void init() { + protected void init() { verifyingSsl = true; json = new JSON(); @@ -157,8 +158,8 @@ public String getBasePath() { /** * Set base path * - * @param basePath Base path of the URL (e.g http://localhost - * @return An instance of OkHttpClient + * @param basePath Base path of the URL (e.g http://localhost) + * @return An instance of ApiClient */ public ApiClient setBasePath(String basePath) { this.basePath = basePath; @@ -206,7 +207,7 @@ public OkHttpClient getHttpClient() { * Set HTTP client, which must never be null. * * @param newHttpClient An instance of OkHttpClient - * @return Api Client + * @return ApiClient * @throws java.lang.NullPointerException when newHttpClient is null */ public ApiClient setHttpClient(OkHttpClient newHttpClient) { @@ -694,7 +695,7 @@ public List parameterToPair(String name, Object value) { * @param value The value of the parameter. * @return A list of {@code Pair} objects. */ - public List parameterToPairs(String collectionFormat, String name, Collection value) { + public List parameterToPairs(String collectionFormat, String name, Collection value) { List params = new ArrayList(); // preconditions @@ -801,7 +802,7 @@ public String collectionPathParameterToString(String collectionFormat, Collectio * @return The sanitized filename */ public String sanitizeFilename(String filename) { - return filename.replaceAll(".*[/\\\\]", ""); + return filename.replaceFirst("^.*[/\\\\]", ""); } /** @@ -1266,7 +1267,8 @@ public String buildUrl(String baseUrl, String path, List queryParams, List 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() + Locale.ROOT, + "Invalid index %d when selecting the host settings. Must be less than %d", serverIndex, servers.size() )); } baseURL = servers.get(serverIndex).URL(serverVariables); @@ -1338,11 +1340,11 @@ public void processHeaderParams(Map headerParams, Request.Builde */ public void processCookieParams(Map cookieParams, Request.Builder reqBuilder) { for (Entry param : cookieParams.entrySet()) { - reqBuilder.addHeader("Cookie", String.format("%s=%s", param.getKey(), param.getValue())); + reqBuilder.addHeader("Cookie", String.format(Locale.ROOT, "%s=%s", param.getKey(), param.getValue())); } for (Entry param : defaultCookieMap.entrySet()) { if (!cookieParams.containsKey(param.getKey())) { - reqBuilder.addHeader("Cookie", String.format("%s=%s", param.getKey(), param.getValue())); + reqBuilder.addHeader("Cookie", String.format(Locale.ROOT, "%s=%s", param.getKey(), param.getValue())); } } } @@ -1431,11 +1433,11 @@ 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 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) { + */ + protected 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)); @@ -1448,7 +1450,7 @@ private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String k * @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) { + protected void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, Object obj) { RequestBody requestBody; if (obj instanceof String) { requestBody = RequestBody.create((String) obj, MediaType.parse("text/plain")); @@ -1470,7 +1472,7 @@ private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String k * Get network interceptor to add it to the httpClient to track download progress for * async requests. */ - private Interceptor getProgressInterceptor() { + protected Interceptor getProgressInterceptor() { return new Interceptor() { @Override public Response intercept(Interceptor.Chain chain) throws IOException { @@ -1491,7 +1493,7 @@ public Response intercept(Interceptor.Chain chain) throws IOException { * Apply SSL related settings to httpClient according to the current values of * verifyingSsl and sslCaCert. */ - private void applySslSettings() { + protected void applySslSettings() { try { TrustManager[] trustManagers; HostnameVerifier hostnameVerifier; @@ -1553,7 +1555,7 @@ public boolean verify(String hostname, SSLSession session) { } } - private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityException { + protected KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityException { try { KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); keyStore.load(null, password); @@ -1570,7 +1572,7 @@ private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityExcepti * @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 { + protected String requestBodyToString(RequestBody requestBody) throws ApiException { if (requestBody != null) { try { final Buffer buffer = new Buffer(); 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 54f2007ba0..bd7b98883b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java @@ -1,26 +1,28 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi; import java.util.Map; import java.util.List; +import java.util.Locale; /** *

ApiException class.

*/ @SuppressWarnings("serial") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; @@ -160,7 +162,7 @@ public String getResponseBody() { * @return The exception message */ public String getMessage() { - return String.format("Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s", + return String.format(Locale.ROOT, "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 1b03e38975..52f5becda8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi; import java.util.List; @@ -58,7 +59,7 @@ public int getStatusCode() { /** *

Get the headers.

* - * @return a {@link java.util.Map} of headers + * @return a {@link java.util.Map} of headers */ public Map> getHeaders() { return headers; 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 0d14be1951..5eaa2206ff 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java @@ -1,22 +1,23 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi; import java.util.Objects; import java.util.concurrent.atomic.AtomicReference; import java.util.function.Supplier; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class Configuration { public static final String VERSION = "25.0.0-SNAPSHOT"; @@ -59,4 +60,4 @@ public static void setApiClientFactory(Supplier factory) { private Configuration() { } -} +} \ No newline at end of file diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java index ec4cfbb653..0cf9561b1e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi; import okhttp3.*; 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 02bc54407a..f2536b2a9f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi; import com.google.gson.Gson; @@ -23,9 +24,6 @@ import io.gsonfire.GsonFireBuilder; import io.gsonfire.TypeSelector; -import io.kubernetes.client.gson.V1MetadataExclusionStrategy; -import io.kubernetes.client.gson.V1StatusPreProcessor; -import io.kubernetes.client.openapi.models.V1Status; import okio.ByteString; import java.io.IOException; @@ -40,9 +38,6 @@ 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; @@ -57,20 +52,9 @@ public class JSON { private static Gson gson; private static boolean isLenientOnJson = false; - - private static final DateTimeFormatter RFC3339MICRO_FORMATTER = - new DateTimeFormatterBuilder() - .parseDefaulting(ChronoField.OFFSET_SECONDS, 0) - .append(DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss")) - .optionalStart() - .appendFraction(ChronoField.NANO_OF_SECOND, 6, 6, true) - .optionalEnd() - .appendLiteral("Z") - .toFormatter(); - private static DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); private static SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); - private static OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(RFC3339MICRO_FORMATTER); + private static OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(); private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); @@ -78,11 +62,8 @@ public class JSON { public static GsonBuilder createGson() { GsonFireBuilder fireBuilder = new GsonFireBuilder() ; - GsonBuilder builder = - fireBuilder - .registerPreProcessor(V1Status.class, new V1StatusPreProcessor()) - .createGsonBuilder(); - return builder.setExclusionStrategies(new V1MetadataExclusionStrategy()); + GsonBuilder builder = fireBuilder.createGsonBuilder(); + return builder; } private static String getDiscriminatorValue(JsonElement readElement, String discriminatorField) { @@ -926,14 +907,11 @@ public static class ByteArrayAdapter extends TypeAdapter { @Override public void write(JsonWriter out, byte[] value) throws IOException { - boolean oldHtmlSafe = out.isHtmlSafe(); - out.setHtmlSafe(false); if (value == null) { out.nullValue(); } else { out.value(ByteString.of(value).base64()); } - out.setHtmlSafe(oldHtmlSafe); } @Override @@ -989,12 +967,7 @@ public OffsetDateTime read(JsonReader in) throws IOException { if (date.endsWith("+0000")) { date = date.substring(0, date.length()-5) + "Z"; } - try { - return OffsetDateTime.parse(date, formatter); - } catch (DateTimeParseException e) { - // backward-compatibility for ISO8601 timestamp format - return OffsetDateTime.parse(date, DateTimeFormatter.ISO_OFFSET_DATE_TIME); - } + return OffsetDateTime.parse(date, formatter); } } } 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 ade04b4845..6461e0a8f0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java @@ -1,56 +1,37 @@ /* -Copyright 2025 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; - -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") -public class Pair { - private String name = ""; - private String value = ""; - - public Pair (String name, String value) { - setName(name); - setValue(value); - } + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ - private void setName(String name) { - if (!isValidString(name)) { - return; - } - this.name = name; - } - - private void setValue(String value) { - if (!isValidString(value)) { - return; - } +package io.kubernetes.client.openapi; - this.value = value; - } +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") +public class Pair { + private final String name; + private final String value; - public String getName() { - return this.name; - } + public Pair(String name, String value) { + this.name = isValidString(name) ? name : ""; + this.value = isValidString(value) ? value : ""; + } - public String getValue() { - return this.value; - } + public String getName() { + return this.name; + } - private boolean isValidString(String arg) { - if (arg == null) { - return false; - } + public String getValue() { + return this.value; + } - return true; - } + private static boolean isValidString(String arg) { + return arg != null; + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java index 9f03aa6f25..78f16ff777 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi; import okhttp3.MediaType; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressResponseBody.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressResponseBody.java index ae03d657b5..46d2af36f4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressResponseBody.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressResponseBody.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi; import okhttp3.MediaType; 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 5017faea41..0ecfda1250 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi; import java.util.Map; @@ -17,7 +18,7 @@ /** * Representing a Server configuration. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class ServerConfiguration { public String URL; public String description; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java index 8cc4100aa7..363d47cef7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi; import java.util.HashSet; @@ -17,7 +18,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class ServerVariable { public String description; public String defaultValue; 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 05488b5969..c6e8d86194 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java @@ -1,21 +1,22 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi; import java.util.Collection; import java.util.Iterator; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). 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 3b6665ec78..4b8c47f08b 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 57e7f2999a..9e31078388 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -305,7 +306,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * create a ValidatingAdmissionPolicy * @param body (required) * @return APIcreateValidatingAdmissionPolicyRequest @@ -785,7 +786,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of MutatingWebhookConfiguration * @return APIdeleteCollectionMutatingWebhookConfigurationRequest * @http.response.details @@ -1814,7 +1815,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ValidatingAdmissionPolicy * @return APIdeleteCollectionValidatingAdmissionPolicyRequest * @http.response.details @@ -2207,7 +2208,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ValidatingAdmissionPolicyBinding * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest * @http.response.details @@ -2600,7 +2601,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ValidatingWebhookConfiguration * @return APIdeleteCollectionValidatingWebhookConfigurationRequest * @http.response.details @@ -2878,7 +2879,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a MutatingWebhookConfiguration * @param name name of the MutatingWebhookConfiguration (required) * @return APIdeleteMutatingWebhookConfigurationRequest @@ -3158,7 +3159,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @return APIdeleteValidatingAdmissionPolicyRequest @@ -3438,7 +3439,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ValidatingAdmissionPolicyBinding * @param name name of the ValidatingAdmissionPolicyBinding (required) * @return APIdeleteValidatingAdmissionPolicyBindingRequest @@ -3718,7 +3719,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ValidatingWebhookConfiguration * @param name name of the ValidatingWebhookConfiguration (required) * @return APIdeleteValidatingWebhookConfigurationRequest @@ -3876,7 +3877,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -4211,7 +4212,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) @@ -5996,7 +5997,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update status of the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) @@ -6518,7 +6519,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @return APIreadValidatingAdmissionPolicyRequest @@ -7066,7 +7067,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read status of the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @return APIreadValidatingAdmissionPolicyStatusRequest @@ -7430,7 +7431,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) @@ -8163,7 +8164,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace status of the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) @@ -8653,7 +8654,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of MutatingAdmissionPolicy * @return APIdeleteCollectionMutatingAdmissionPolicyRequest * @http.response.details @@ -1330,7 +1331,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of MutatingAdmissionPolicyBinding * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest * @http.response.details @@ -1608,7 +1609,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a MutatingAdmissionPolicy * @param name name of the MutatingAdmissionPolicy (required) * @return APIdeleteMutatingAdmissionPolicyRequest @@ -1888,7 +1889,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a MutatingAdmissionPolicyBinding * @param name name of the MutatingAdmissionPolicyBinding (required) * @return APIdeleteMutatingAdmissionPolicyBindingRequest @@ -2046,7 +2047,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -2381,7 +2382,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of MutatingAdmissionPolicy * @return APIdeleteCollectionMutatingAdmissionPolicyRequest * @http.response.details @@ -1330,7 +1331,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of MutatingAdmissionPolicyBinding * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest * @http.response.details @@ -1608,7 +1609,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a MutatingAdmissionPolicy * @param name name of the MutatingAdmissionPolicy (required) * @return APIdeleteMutatingAdmissionPolicyRequest @@ -1888,7 +1889,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a MutatingAdmissionPolicyBinding * @param name name of the MutatingAdmissionPolicyBinding (required) * @return APIdeleteMutatingAdmissionPolicyBindingRequest @@ -2046,7 +2047,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -2381,7 +2382,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 6849111e79..707f55e73a 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -299,7 +300,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * create a CustomResourceDefinition * @param body (required) * @return APIcreateCustomResourceDefinitionRequest @@ -695,7 +696,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of CustomResourceDefinition * @return APIdeleteCollectionCustomResourceDefinitionRequest * @http.response.details @@ -973,7 +974,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @return APIdeleteCustomResourceDefinitionRequest @@ -1131,7 +1132,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1466,7 +1467,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * partially update the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) @@ -1985,7 +1986,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * partially update status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) @@ -2169,7 +2170,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * read the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @return APIreadCustomResourceDefinitionRequest @@ -2351,7 +2352,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * read status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @return APIreadCustomResourceDefinitionStatusRequest @@ -2594,7 +2595,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * replace the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) @@ -2839,7 +2840,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * replace status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) 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 dbae624c76..542036697d 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 a011d8e584..4f5e6cab6a 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -299,7 +300,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * create an APIService * @param body (required) * @return APIcreateAPIServiceRequest @@ -580,7 +581,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete an APIService * @param name name of the APIService (required) * @return APIdeleteAPIServiceRequest @@ -975,7 +976,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of APIService * @return APIdeleteCollectionAPIServiceRequest * @http.response.details @@ -1131,7 +1132,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1466,7 +1467,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind APIService * @return APIlistAPIServiceRequest * @http.response.details @@ -1724,7 +1725,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * partially update the specified APIService * @param name name of the APIService (required) * @param body (required) @@ -1985,7 +1986,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * partially update status of the specified APIService * @param name name of the APIService (required) * @param body (required) @@ -2169,7 +2170,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * read the specified APIService * @param name name of the APIService (required) * @return APIreadAPIServiceRequest @@ -2351,7 +2352,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * read status of the specified APIService * @param name name of the APIService (required) * @return APIreadAPIServiceStatusRequest @@ -2594,7 +2595,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * replace the specified APIService * @param name name of the APIService (required) * @param body (required) @@ -2839,7 +2840,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * replace status of the specified APIService * @param name name of the APIService (required) * @param body (required) 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 1d75105954..79ba4acf3b 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * get available API versions * @return APIgetAPIVersionsRequest * @http.response.details 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 cc5603483c..d8ead2a1b2 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 5f1c28364a..e981ac22b3 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -317,7 +318,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * create a ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -567,7 +568,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * create a DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -817,7 +818,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * create a Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1067,7 +1068,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * create a ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1317,7 +1318,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * create a StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1723,7 +1724,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedControllerRevisionRequest @@ -2126,7 +2127,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedDaemonSetRequest @@ -2529,7 +2530,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedDeploymentRequest @@ -2932,7 +2933,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedReplicaSetRequest @@ -3335,7 +3336,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedStatefulSetRequest @@ -3623,7 +3624,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3913,7 +3914,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4203,7 +4204,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4493,7 +4494,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4783,7 +4784,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4942,7 +4943,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -5277,7 +5278,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind ControllerRevision * @return APIlistControllerRevisionForAllNamespacesRequest * @http.response.details @@ -5612,7 +5613,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind DaemonSet * @return APIlistDaemonSetForAllNamespacesRequest * @http.response.details @@ -5947,7 +5948,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind Deployment * @return APIlistDeploymentForAllNamespacesRequest * @http.response.details @@ -6291,7 +6292,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedControllerRevisionRequest @@ -6636,7 +6637,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedDaemonSetRequest @@ -6981,7 +6982,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedDeploymentRequest @@ -7326,7 +7327,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedReplicaSetRequest @@ -7671,7 +7672,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedStatefulSetRequest @@ -8007,7 +8008,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind ReplicaSet * @return APIlistReplicaSetForAllNamespacesRequest * @http.response.details @@ -8342,7 +8343,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind StatefulSet * @return APIlistStatefulSetForAllNamespacesRequest * @http.response.details @@ -8609,7 +8610,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * partially update the specified ControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8880,7 +8881,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * partially update the specified DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9151,7 +9152,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * partially update status of the specified DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9422,7 +9423,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * partially update the specified Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9693,7 +9694,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * partially update scale of the specified Deployment * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9964,7 +9965,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * partially update status of the specified Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -10235,7 +10236,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * partially update the specified ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -10506,7 +10507,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * partially update scale of the specified ReplicaSet * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -10777,7 +10778,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * partially update status of the specified ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -11048,7 +11049,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * partially update the specified StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -11319,7 +11320,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * partially update scale of the specified StatefulSet * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -11590,7 +11591,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * partially update status of the specified StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -11784,7 +11785,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * read the specified ControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -11976,7 +11977,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * read the specified DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -12168,7 +12169,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * read status of the specified DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -12360,7 +12361,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * read the specified Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -12552,7 +12553,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * read scale of the specified Deployment * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -12744,7 +12745,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * read status of the specified Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -12936,7 +12937,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * read the specified ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -13128,7 +13129,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * read scale of the specified ReplicaSet * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -13320,7 +13321,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * read status of the specified ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -13512,7 +13513,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * read the specified StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -13704,7 +13705,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * read scale of the specified StatefulSet * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -13896,7 +13897,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * read status of the specified StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -14149,7 +14150,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * replace the specified ControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -14404,7 +14405,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace the specified DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -14659,7 +14660,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace status of the specified DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -14914,7 +14915,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * replace the specified Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -15169,7 +15170,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * replace scale of the specified Deployment * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -15424,7 +15425,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * replace status of the specified Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -15679,7 +15680,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * replace the specified ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -15934,7 +15935,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * replace scale of the specified ReplicaSet * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -16189,7 +16190,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * replace status of the specified ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -16444,7 +16445,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * replace the specified StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -16699,7 +16700,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * replace scale of the specified StatefulSet * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -16954,7 +16955,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * replace status of the specified StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) 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 9c967600e6..746ebd81f1 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 5e6b61e94d..a3c2920495 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -296,7 +297,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * create a SelfSubjectReview * @param body (required) * @return APIcreateSelfSubjectReviewRequest @@ -536,7 +537,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * create a TokenReview * @param body (required) * @return APIcreateTokenReviewRequest @@ -695,7 +696,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details 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 825184e955..63be1105a5 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 1d0fe2ff2a..82ea88829c 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -307,7 +308,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * create a LocalSubjectAccessReview * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -548,7 +549,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * create a SelfSubjectAccessReview * @param body (required) * @return APIcreateSelfSubjectAccessReviewRequest @@ -788,7 +789,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * create a SelfSubjectRulesReview * @param body (required) * @return APIcreateSelfSubjectRulesReviewRequest @@ -1028,7 +1029,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * create a SubjectAccessReview * @param body (required) * @return APIcreateSubjectAccessReviewRequest @@ -1187,7 +1188,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details 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 305a1b013b..d26fe46620 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 4d2150215e..508bb8e074 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -308,7 +309,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * create a HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -714,7 +715,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest @@ -1002,7 +1003,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1161,7 +1162,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1496,7 +1497,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * partially update the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2379,7 +2380,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * partially update status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2573,7 +2574,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * read the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2765,7 +2766,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * read status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3018,7 +3019,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * replace the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3273,7 +3274,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * replace status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) 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 2a96543269..fae9f4bda2 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -308,7 +309,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * create a HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -714,7 +715,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest @@ -1002,7 +1003,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1161,7 +1162,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1496,7 +1497,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * partially update the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2379,7 +2380,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * partially update status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2573,7 +2574,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * read the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2765,7 +2766,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * read status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3018,7 +3019,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * replace the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3273,7 +3274,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * replace status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) 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 94346ddc2f..12c5d9be9e 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 259fc2f0c1..0c7c4d3af6 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -310,7 +311,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * create a CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -560,7 +561,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * create a Job * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -966,7 +967,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedCronJobRequest @@ -1369,7 +1370,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Job * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedJobRequest @@ -1657,7 +1658,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1947,7 +1948,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2106,7 +2107,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -2441,7 +2442,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * list or watch objects of kind CronJob * @return APIlistCronJobForAllNamespacesRequest * @http.response.details @@ -2776,7 +2777,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * list or watch objects of kind Job * @return APIlistJobForAllNamespacesRequest * @http.response.details @@ -3120,7 +3121,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * list or watch objects of kind CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedCronJobRequest @@ -3465,7 +3466,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * list or watch objects of kind Job * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedJobRequest @@ -3733,7 +3734,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * partially update the specified CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4004,7 +4005,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * partially update status of the specified CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4275,7 +4276,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * partially update the specified Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4546,7 +4547,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * partially update status of the specified Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4740,7 +4741,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * read the specified CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4932,7 +4933,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * read status of the specified CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -5124,7 +5125,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * read the specified Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -5316,7 +5317,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * read status of the specified Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -5569,7 +5570,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * replace the specified CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -5824,7 +5825,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * replace status of the specified CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -6079,7 +6080,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * replace the specified Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -6334,7 +6335,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * replace status of the specified Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) 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 8271b16bb1..ae04b2868a 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 fe94f8d673..4a410f1e7a 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -299,7 +300,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * create a CertificateSigningRequest * @param body (required) * @return APIcreateCertificateSigningRequestRequest @@ -580,7 +581,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @return APIdeleteCertificateSigningRequestRequest @@ -975,7 +976,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of CertificateSigningRequest * @return APIdeleteCollectionCertificateSigningRequestRequest * @http.response.details @@ -1131,7 +1132,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1466,7 +1467,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) @@ -1985,7 +1986,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) @@ -2246,7 +2247,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) @@ -2430,7 +2431,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @return APIreadCertificateSigningRequestRequest @@ -2612,7 +2613,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @return APIreadCertificateSigningRequestApprovalRequest @@ -2794,7 +2795,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @return APIreadCertificateSigningRequestStatusRequest @@ -3037,7 +3038,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) @@ -3282,7 +3283,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) @@ -3527,7 +3528,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) 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 1131f67fd6..ac317f516b 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -301,7 +302,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * create a ClusterTrustBundle * @param body (required) * @return APIcreateClusterTrustBundleRequest @@ -550,7 +551,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @return APIdeleteClusterTrustBundleRequest @@ -1227,7 +1228,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ClusterTrustBundle * @return APIdeleteCollectionClusterTrustBundleRequest * @http.response.details @@ -1629,7 +1630,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of PodCertificateRequest * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedPodCertificateRequestRequest @@ -1917,7 +1918,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a PodCertificateRequest * @param name name of the PodCertificateRequest (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2076,7 +2077,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -2411,7 +2412,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * partially update the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) @@ -3619,7 +3620,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * read the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @return APIreadClusterTrustBundleRequest @@ -4266,7 +4267,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * replace the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) @@ -4956,7 +4957,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * create a ClusterTrustBundle * @param body (required) * @return APIcreateClusterTrustBundleRequest @@ -580,7 +581,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @return APIdeleteClusterTrustBundleRequest @@ -975,7 +976,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ClusterTrustBundle * @return APIdeleteCollectionClusterTrustBundleRequest * @http.response.details @@ -1131,7 +1132,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1466,7 +1467,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * partially update the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) @@ -1908,7 +1909,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * read the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @return APIreadClusterTrustBundleRequest @@ -2151,7 +2152,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * replace the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) 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 31c582a8c4..9c42d91a7f 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 674491cbec..78de9dd010 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -308,7 +309,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * create a Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -714,7 +715,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedLeaseRequest @@ -1002,7 +1003,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a Lease * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1161,7 +1162,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1496,7 +1497,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * list or watch objects of kind Lease * @return APIlistLeaseForAllNamespacesRequest * @http.response.details @@ -1840,7 +1841,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * list or watch objects of kind Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedLeaseRequest @@ -2108,7 +2109,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * partially update the specified Lease * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2302,7 +2303,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * read the specified Lease * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2555,7 +2556,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * replace the specified Lease * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java index bec94a9127..827c6017b0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -308,7 +309,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * create a LeaseCandidate * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -714,7 +715,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of LeaseCandidate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest @@ -1002,7 +1003,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a LeaseCandidate * @param name name of the LeaseCandidate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1161,7 +1162,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1496,7 +1497,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * list or watch objects of kind LeaseCandidate * @return APIlistLeaseCandidateForAllNamespacesRequest * @http.response.details @@ -1840,7 +1841,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * list or watch objects of kind LeaseCandidate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedLeaseCandidateRequest @@ -2108,7 +2109,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * partially update the specified LeaseCandidate * @param name name of the LeaseCandidate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2302,7 +2303,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * read the specified LeaseCandidate * @param name name of the LeaseCandidate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2555,7 +2556,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * replace the specified LeaseCandidate * @param name name of the LeaseCandidate (required) * @param namespace object name and auth scope, such as for teams and projects (required) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java index 82451d4b1d..fc2d17f453 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -308,7 +309,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * create a LeaseCandidate * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -714,7 +715,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of LeaseCandidate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest @@ -1002,7 +1003,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a LeaseCandidate * @param name name of the LeaseCandidate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1161,7 +1162,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1496,7 +1497,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * list or watch objects of kind LeaseCandidate * @return APIlistLeaseCandidateForAllNamespacesRequest * @http.response.details @@ -1840,7 +1841,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * list or watch objects of kind LeaseCandidate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedLeaseCandidateRequest @@ -2108,7 +2109,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * partially update the specified LeaseCandidate * @param name name of the LeaseCandidate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2302,7 +2303,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * read the specified LeaseCandidate * @param name name of the LeaseCandidate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2555,7 +2556,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * replace the specified LeaseCandidate * @param name name of the LeaseCandidate (required) * @param namespace object name and auth scope, such as for teams and projects (required) 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 b136a81fa0..ebfd088a3f 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * get available API versions * @return APIgetAPIVersionsRequest * @http.response.details 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 0801447352..db26d8cb57 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -283,7 +284,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect DELETE requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -481,7 +482,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect DELETE requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -671,7 +672,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect DELETE requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -869,7 +870,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect DELETE requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1050,7 +1051,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect DELETE requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectDeleteNodeProxyRequest @@ -1238,7 +1239,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect DELETE requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) @@ -1491,7 +1492,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect GET requests to attach of Pod * @param name name of the PodAttachOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1760,7 +1761,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect GET requests to exec of Pod * @param name name of the PodExecOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1949,7 +1950,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect GET requests to portforward of Pod * @param name name of the PodPortForwardOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2138,7 +2139,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect GET requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2336,7 +2337,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect GET requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2526,7 +2527,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect GET requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2724,7 +2725,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect GET requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2905,7 +2906,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect GET requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectGetNodeProxyRequest @@ -3093,7 +3094,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect GET requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) @@ -3282,7 +3283,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect HEAD requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3480,7 +3481,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect HEAD requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3670,7 +3671,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect HEAD requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3868,7 +3869,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect HEAD requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4049,7 +4050,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect HEAD requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectHeadNodeProxyRequest @@ -4237,7 +4238,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect HEAD requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) @@ -4426,7 +4427,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect OPTIONS requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4624,7 +4625,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect OPTIONS requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4814,7 +4815,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect OPTIONS requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -5012,7 +5013,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect OPTIONS requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -5193,7 +5194,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect OPTIONS requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectOptionsNodeProxyRequest @@ -5381,7 +5382,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect OPTIONS requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) @@ -5570,7 +5571,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PATCH requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -5768,7 +5769,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PATCH requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -5958,7 +5959,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PATCH requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -6156,7 +6157,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PATCH requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -6337,7 +6338,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PATCH requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectPatchNodeProxyRequest @@ -6525,7 +6526,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PATCH requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) @@ -6778,7 +6779,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect POST requests to attach of Pod * @param name name of the PodAttachOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7047,7 +7048,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect POST requests to exec of Pod * @param name name of the PodExecOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7236,7 +7237,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect POST requests to portforward of Pod * @param name name of the PodPortForwardOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7425,7 +7426,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect POST requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7623,7 +7624,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect POST requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7813,7 +7814,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect POST requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8011,7 +8012,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect POST requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8192,7 +8193,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect POST requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectPostNodeProxyRequest @@ -8380,7 +8381,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect POST requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) @@ -8569,7 +8570,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PUT requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8767,7 +8768,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PUT requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8957,7 +8958,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PUT requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9155,7 +9156,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PUT requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9336,7 +9337,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PUT requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectPutNodeProxyRequest @@ -9524,7 +9525,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PUT requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) @@ -9763,7 +9764,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * create a Namespace * @param body (required) * @return APIcreateNamespaceRequest @@ -10012,7 +10013,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * create a Binding * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -10262,7 +10263,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * create a ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -10512,7 +10513,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * create Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -10762,7 +10763,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * create an Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -11012,7 +11013,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * create a LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -11262,7 +11263,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * create a PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -11512,7 +11513,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * create a Pod * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -11771,7 +11772,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * create binding of a Pod * @param name name of the Binding (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -12031,7 +12032,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * create eviction of a Pod * @param name name of the Eviction (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -12282,7 +12283,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * create a PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -12532,7 +12533,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * create a ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -12782,7 +12783,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * create a ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -13032,7 +13033,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * create a Secret * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -13282,7 +13283,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * create a Service * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -13532,7 +13533,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * create a ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -13791,7 +13792,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * create token of a ServiceAccount * @param name name of the TokenRequest (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -14033,7 +14034,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * create a Node * @param body (required) * @return APIcreateNodeRequest @@ -14273,7 +14274,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * create a PersistentVolume * @param body (required) * @return APIcreatePersistentVolumeRequest @@ -14678,7 +14679,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedConfigMapRequest @@ -15081,7 +15082,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedEndpointsRequest @@ -15484,7 +15485,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedEventRequest @@ -15887,7 +15888,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedLimitRangeRequest @@ -16290,7 +16291,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest @@ -16693,7 +16694,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Pod * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedPodRequest @@ -17096,7 +17097,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedPodTemplateRequest @@ -17499,7 +17500,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedReplicationControllerRequest @@ -17902,7 +17903,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedResourceQuotaRequest @@ -18305,7 +18306,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Secret * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedSecretRequest @@ -18708,7 +18709,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Service * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedServiceRequest @@ -19111,7 +19112,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedServiceAccountRequest @@ -19505,7 +19506,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Node * @return APIdeleteCollectionNodeRequest * @http.response.details @@ -19898,7 +19899,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of PersistentVolume * @return APIdeleteCollectionPersistentVolumeRequest * @http.response.details @@ -20176,7 +20177,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a Namespace * @param name name of the Namespace (required) * @return APIdeleteNamespaceRequest @@ -20465,7 +20466,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -20755,7 +20756,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete Endpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -21045,7 +21046,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete an Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -21335,7 +21336,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a LimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -21625,7 +21626,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * delete a PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -21915,7 +21916,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * delete a Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -22205,7 +22206,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * delete a PodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -22495,7 +22496,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -22785,7 +22786,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * delete a ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -23075,7 +23076,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -23365,7 +23366,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * delete a Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -23655,7 +23656,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * delete a ServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -23936,7 +23937,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a Node * @param name name of the Node (required) * @return APIdeleteNodeRequest @@ -24216,7 +24217,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * delete a PersistentVolume * @param name name of the PersistentVolume (required) * @return APIdeletePersistentVolumeRequest @@ -24374,7 +24375,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -24709,7 +24710,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * list objects of kind ComponentStatus * @return APIlistComponentStatusRequest * @http.response.details @@ -25044,7 +25045,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind ConfigMap * @return APIlistConfigMapForAllNamespacesRequest * @http.response.details @@ -25379,7 +25380,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind Endpoints * @return APIlistEndpointsForAllNamespacesRequest * @http.response.details @@ -25714,7 +25715,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind Event * @return APIlistEventForAllNamespacesRequest * @http.response.details @@ -26049,7 +26050,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind LimitRange * @return APIlistLimitRangeForAllNamespacesRequest * @http.response.details @@ -26384,7 +26385,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind Namespace * @return APIlistNamespaceRequest * @http.response.details @@ -26728,7 +26729,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedConfigMapRequest @@ -27073,7 +27074,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedEndpointsRequest @@ -27418,7 +27419,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedEventRequest @@ -27763,7 +27764,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedLimitRangeRequest @@ -28108,7 +28109,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * list or watch objects of kind PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedPersistentVolumeClaimRequest @@ -28453,7 +28454,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * list or watch objects of kind Pod * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedPodRequest @@ -28798,7 +28799,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedPodTemplateRequest @@ -29143,7 +29144,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * list or watch objects of kind ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedReplicationControllerRequest @@ -29488,7 +29489,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedResourceQuotaRequest @@ -29833,7 +29834,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * list or watch objects of kind Secret * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedSecretRequest @@ -30178,7 +30179,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * list or watch objects of kind Service * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedServiceRequest @@ -30523,7 +30524,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * list or watch objects of kind ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedServiceAccountRequest @@ -30859,7 +30860,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * list or watch objects of kind Node * @return APIlistNodeRequest * @http.response.details @@ -31194,7 +31195,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * list or watch objects of kind PersistentVolume * @return APIlistPersistentVolumeRequest * @http.response.details @@ -31529,7 +31530,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * list or watch objects of kind PersistentVolumeClaim * @return APIlistPersistentVolumeClaimForAllNamespacesRequest * @http.response.details @@ -31864,7 +31865,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * list or watch objects of kind Pod * @return APIlistPodForAllNamespacesRequest * @http.response.details @@ -32199,7 +32200,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind PodTemplate * @return APIlistPodTemplateForAllNamespacesRequest * @http.response.details @@ -32534,7 +32535,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * list or watch objects of kind ReplicationController * @return APIlistReplicationControllerForAllNamespacesRequest * @http.response.details @@ -32869,7 +32870,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind ResourceQuota * @return APIlistResourceQuotaForAllNamespacesRequest * @http.response.details @@ -33204,7 +33205,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * list or watch objects of kind Secret * @return APIlistSecretForAllNamespacesRequest * @http.response.details @@ -33539,7 +33540,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * list or watch objects of kind ServiceAccount * @return APIlistServiceAccountForAllNamespacesRequest * @http.response.details @@ -33874,7 +33875,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * list or watch objects of kind Service * @return APIlistServiceForAllNamespacesRequest * @http.response.details @@ -34132,7 +34133,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * partially update the specified Namespace * @param name name of the Namespace (required) * @param body (required) @@ -34393,7 +34394,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * partially update status of the specified Namespace * @param name name of the Namespace (required) * @param body (required) @@ -34663,7 +34664,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * partially update the specified ConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -34934,7 +34935,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * partially update the specified Endpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -35205,7 +35206,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * partially update the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -35476,7 +35477,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * partially update the specified LimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -35747,7 +35748,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * partially update the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -36018,7 +36019,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * partially update status of the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -36289,7 +36290,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * partially update the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -36560,7 +36561,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * partially update ephemeralcontainers of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -36831,7 +36832,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * partially update resize of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -37102,7 +37103,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * partially update status of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -37373,7 +37374,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * partially update the specified PodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -37644,7 +37645,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * partially update the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -37915,7 +37916,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * partially update scale of the specified ReplicationController * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -38186,7 +38187,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * partially update status of the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -38457,7 +38458,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * partially update the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -38728,7 +38729,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * partially update status of the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -38999,7 +39000,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * partially update the specified Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -39270,7 +39271,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * partially update the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -39541,7 +39542,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * partially update the specified ServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -39812,7 +39813,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * partially update status of the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -40074,7 +40075,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * partially update the specified Node * @param name name of the Node (required) * @param body (required) @@ -40335,7 +40336,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * partially update status of the specified Node * @param name name of the Node (required) * @param body (required) @@ -40596,7 +40597,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * partially update the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) @@ -40857,7 +40858,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * partially update status of the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) @@ -41041,7 +41042,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * read the specified ComponentStatus * @param name name of the ComponentStatus (required) * @return APIreadComponentStatusRequest @@ -41223,7 +41224,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * read the specified Namespace * @param name name of the Namespace (required) * @return APIreadNamespaceRequest @@ -41405,7 +41406,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * read status of the specified Namespace * @param name name of the Namespace (required) * @return APIreadNamespaceStatusRequest @@ -41596,7 +41597,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * read the specified ConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -41788,7 +41789,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * read the specified Endpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -41980,7 +41981,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * read the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -42172,7 +42173,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * read the specified LimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -42364,7 +42365,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * read the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -42556,7 +42557,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * read status of the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -42748,7 +42749,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * read the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -42940,7 +42941,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * read ephemeralcontainers of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -43277,7 +43278,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * read log of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -43469,7 +43470,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * read resize of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -43661,7 +43662,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * read status of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -43853,7 +43854,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * read the specified PodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -44045,7 +44046,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * read the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -44237,7 +44238,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * read scale of the specified ReplicationController * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -44429,7 +44430,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * read status of the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -44621,7 +44622,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * read the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -44813,7 +44814,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * read status of the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -45005,7 +45006,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * read the specified Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -45197,7 +45198,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * read the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -45389,7 +45390,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * read the specified ServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -45581,7 +45582,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * read status of the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -45764,7 +45765,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * read the specified Node * @param name name of the Node (required) * @return APIreadNodeRequest @@ -45946,7 +45947,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * read status of the specified Node * @param name name of the Node (required) * @return APIreadNodeStatusRequest @@ -46128,7 +46129,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * read the specified PersistentVolume * @param name name of the PersistentVolume (required) * @return APIreadPersistentVolumeRequest @@ -46310,7 +46311,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * read status of the specified PersistentVolume * @param name name of the PersistentVolume (required) * @return APIreadPersistentVolumeStatusRequest @@ -46553,7 +46554,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace the specified Namespace * @param name name of the Namespace (required) * @param body (required) @@ -46798,7 +46799,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace finalize of the specified Namespace * @param name name of the Namespace (required) * @param body (required) @@ -47043,7 +47044,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace status of the specified Namespace * @param name name of the Namespace (required) * @param body (required) @@ -47297,7 +47298,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace the specified ConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -47552,7 +47553,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace the specified Endpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -47807,7 +47808,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -48062,7 +48063,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * replace the specified LimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -48317,7 +48318,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * replace the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -48572,7 +48573,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * replace status of the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -48827,7 +48828,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * replace the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -49082,7 +49083,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * replace ephemeralcontainers of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -49337,7 +49338,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * replace resize of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -49592,7 +49593,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * replace status of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -49847,7 +49848,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * replace the specified PodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -50102,7 +50103,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * replace the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -50357,7 +50358,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * replace scale of the specified ReplicationController * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -50612,7 +50613,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * replace status of the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -50867,7 +50868,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * replace the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -51122,7 +51123,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * replace status of the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -51377,7 +51378,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * replace the specified Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -51632,7 +51633,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * replace the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -51887,7 +51888,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * replace the specified ServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -52142,7 +52143,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * replace status of the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -52388,7 +52389,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * replace the specified Node * @param name name of the Node (required) * @param body (required) @@ -52633,7 +52634,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * replace status of the specified Node * @param name name of the Node (required) * @param body (required) @@ -52878,7 +52879,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * replace the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) @@ -53123,7 +53124,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * replace status of the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) 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 8cda5462f9..4aa5e795c0 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -311,7 +312,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * Creates a cluster scoped Custom object * @param group The custom resource's group name (required) * @param version The custom resource's version (required) @@ -577,7 +578,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * Creates a namespace scoped Custom object * @param group The custom resource's group name (required) * @param version The custom resource's version (required) @@ -848,7 +849,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * Deletes the specified cluster scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -1141,7 +1142,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * Delete collection of cluster scoped custom objects * @param group The custom resource's group name (required) * @param version The custom resource's version (required) @@ -1458,7 +1459,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * Delete collection of namespace scoped custom objects * @param group The custom resource's group name (required) * @param version The custom resource's version (required) @@ -1737,7 +1738,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * Deletes the specified namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -1913,7 +1914,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @param group The custom resource's group name (required) * @param version The custom resource's version (required) @@ -2104,7 +2105,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * Returns a cluster scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -2299,7 +2300,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * read scale of the specified custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -2494,7 +2495,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * read status of the specified cluster scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -2696,7 +2697,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * Returns a namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -2901,7 +2902,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * read scale of the specified namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -3106,7 +3107,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * read status of the specified namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -3452,7 +3453,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * list or watch cluster scoped custom objects * @param group The custom resource's group name (required) * @param version The custom resource's version (required) @@ -3796,7 +3797,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * list or watch namespace scoped custom objects * @param group The custom resource's group name (required) * @param version The custom resource's version (required) @@ -4149,7 +4150,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * list or watch namespace scoped custom objects * @param group The custom resource's group name (required) * @param version The custom resource's version (required) @@ -4415,7 +4416,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * patch the specified cluster scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -4684,7 +4685,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * partially update scale of the specified cluster scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -4953,7 +4954,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * partially update status of the specified cluster scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -5229,7 +5230,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * patch the specified namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -5508,7 +5509,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * partially update scale of the specified namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -5787,7 +5788,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * partially update status of the specified namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -6039,7 +6040,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * replace the specified cluster scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -6296,7 +6297,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * replace scale of the specified cluster scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -6554,7 +6555,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * replace status of the cluster scoped specified custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -6815,7 +6816,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * replace the specified namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -7082,7 +7083,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * replace scale of the specified namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -7350,7 +7351,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * replace status of the specified namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) 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 da2d077ec4..ff18d77843 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 d0574b7d80..8b45e14278 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -308,7 +309,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * create an EndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -714,7 +715,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of EndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedEndpointSliceRequest @@ -1002,7 +1003,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete an EndpointSlice * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1161,7 +1162,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1496,7 +1497,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind EndpointSlice * @return APIlistEndpointSliceForAllNamespacesRequest * @http.response.details @@ -1840,7 +1841,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind EndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedEndpointSliceRequest @@ -2108,7 +2109,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * partially update the specified EndpointSlice * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2302,7 +2303,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * read the specified EndpointSlice * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2555,7 +2556,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * replace the specified EndpointSlice * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) 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 129d9222c0..b3b9801fd3 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 cc04b7647c..5fa43940cc 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -308,7 +309,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * create an Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -714,7 +715,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedEventRequest @@ -1002,7 +1003,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete an Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1161,7 +1162,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1496,7 +1497,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind Event * @return APIlistEventForAllNamespacesRequest * @http.response.details @@ -1840,7 +1841,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedEventRequest @@ -2108,7 +2109,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * partially update the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2302,7 +2303,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * read the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2555,7 +2556,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * replace the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) 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 0752e8da72..ccee19fb72 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java index fbbb3bd7b4..bb705ccc32 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -301,7 +302,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * create a FlowSchema * @param body (required) * @return APIcreateFlowSchemaRequest @@ -541,7 +542,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * create a PriorityLevelConfiguration * @param body (required) * @return APIcreatePriorityLevelConfigurationRequest @@ -937,7 +938,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of FlowSchema * @return APIdeleteCollectionFlowSchemaRequest * @http.response.details @@ -1330,7 +1331,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of PriorityLevelConfiguration * @return APIdeleteCollectionPriorityLevelConfigurationRequest * @http.response.details @@ -1608,7 +1609,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a FlowSchema * @param name name of the FlowSchema (required) * @return APIdeleteFlowSchemaRequest @@ -1888,7 +1889,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration (required) * @return APIdeletePriorityLevelConfigurationRequest @@ -2046,7 +2047,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -2381,7 +2382,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind FlowSchema * @return APIlistFlowSchemaRequest * @http.response.details @@ -2716,7 +2717,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * partially update the specified FlowSchema * @param name name of the FlowSchema (required) * @param body (required) @@ -3235,7 +3236,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * partially update status of the specified FlowSchema * @param name name of the FlowSchema (required) * @param body (required) @@ -3496,7 +3497,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration (required) * @param body (required) @@ -3757,7 +3758,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update status of the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration (required) * @param body (required) @@ -3941,7 +3942,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * read the specified FlowSchema * @param name name of the FlowSchema (required) * @return APIreadFlowSchemaRequest @@ -4123,7 +4124,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * read status of the specified FlowSchema * @param name name of the FlowSchema (required) * @return APIreadFlowSchemaStatusRequest @@ -4305,7 +4306,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration (required) * @return APIreadPriorityLevelConfigurationRequest @@ -4487,7 +4488,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read status of the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration (required) * @return APIreadPriorityLevelConfigurationStatusRequest @@ -4730,7 +4731,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * replace the specified FlowSchema * @param name name of the FlowSchema (required) * @param body (required) @@ -4975,7 +4976,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * replace status of the specified FlowSchema * @param name name of the FlowSchema (required) * @param body (required) @@ -5220,7 +5221,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration (required) * @param body (required) @@ -5465,7 +5466,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace status of the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration (required) * @param body (required) 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 caedcfa7a5..103f4d512e 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 a8e37f39d9..55b6b4f498 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -299,7 +300,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * create a StorageVersion * @param body (required) * @return APIcreateStorageVersionRequest @@ -695,7 +696,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of StorageVersion * @return APIdeleteCollectionStorageVersionRequest * @http.response.details @@ -973,7 +974,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a StorageVersion * @param name name of the StorageVersion (required) * @return APIdeleteStorageVersionRequest @@ -1131,7 +1132,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1466,7 +1467,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * list or watch objects of kind StorageVersion * @return APIlistStorageVersionRequest * @http.response.details @@ -1724,7 +1725,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * partially update the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) @@ -1985,7 +1986,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * partially update status of the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) @@ -2169,7 +2170,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * read the specified StorageVersion * @param name name of the StorageVersion (required) * @return APIreadStorageVersionRequest @@ -2351,7 +2352,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * read status of the specified StorageVersion * @param name name of the StorageVersion (required) * @return APIreadStorageVersionStatusRequest @@ -2594,7 +2595,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * replace the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) @@ -2839,7 +2840,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * replace status of the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) 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 5ecc5e2935..2212113e35 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -209,8 +210,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiEx } /** - * - * + * + * * @param logpath path to the log (required) * @return APIlogFileHandlerRequest * @http.response.details @@ -353,8 +354,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiEx } /** - * - * + * + * * @return APIlogFileListHandlerRequest * @http.response.details 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 d66c75e614..437d36d755 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 2241ba4671..654521e32e 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -307,7 +308,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * create an IPAddress * @param body (required) * @return APIcreateIPAddressRequest @@ -547,7 +548,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * create an IngressClass * @param body (required) * @return APIcreateIngressClassRequest @@ -796,7 +797,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * create an Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1046,7 +1047,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * create a NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1287,7 +1288,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * create a ServiceCIDR * @param body (required) * @return APIcreateServiceCIDRRequest @@ -1683,7 +1684,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of IPAddress * @return APIdeleteCollectionIPAddressRequest * @http.response.details @@ -2076,7 +2077,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of IngressClass * @return APIdeleteCollectionIngressClassRequest * @http.response.details @@ -2478,7 +2479,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedIngressRequest @@ -2881,7 +2882,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedNetworkPolicyRequest @@ -3275,7 +3276,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ServiceCIDR * @return APIdeleteCollectionServiceCIDRRequest * @http.response.details @@ -3553,7 +3554,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete an IPAddress * @param name name of the IPAddress (required) * @return APIdeleteIPAddressRequest @@ -3833,7 +3834,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete an IngressClass * @param name name of the IngressClass (required) * @return APIdeleteIngressClassRequest @@ -4122,7 +4123,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete an Ingress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4412,7 +4413,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a NetworkPolicy * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4693,7 +4694,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ServiceCIDR * @param name name of the ServiceCIDR (required) * @return APIdeleteServiceCIDRRequest @@ -4851,7 +4852,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -5186,7 +5187,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind IPAddress * @return APIlistIPAddressRequest * @http.response.details @@ -5521,7 +5522,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * list or watch objects of kind IngressClass * @return APIlistIngressClassRequest * @http.response.details @@ -5856,7 +5857,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * list or watch objects of kind Ingress * @return APIlistIngressForAllNamespacesRequest * @http.response.details @@ -6200,7 +6201,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * list or watch objects of kind Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedIngressRequest @@ -6545,7 +6546,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedNetworkPolicyRequest @@ -6881,7 +6882,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind NetworkPolicy * @return APIlistNetworkPolicyForAllNamespacesRequest * @http.response.details @@ -7216,7 +7217,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind ServiceCIDR * @return APIlistServiceCIDRRequest * @http.response.details @@ -7474,7 +7475,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * partially update the specified IPAddress * @param name name of the IPAddress (required) * @param body (required) @@ -7735,7 +7736,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * partially update the specified IngressClass * @param name name of the IngressClass (required) * @param body (required) @@ -8005,7 +8006,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * partially update the specified Ingress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8276,7 +8277,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * partially update status of the specified Ingress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8547,7 +8548,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * partially update the specified NetworkPolicy * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8809,7 +8810,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * partially update the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @param body (required) @@ -9070,7 +9071,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * partially update status of the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @param body (required) @@ -9254,7 +9255,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * read the specified IPAddress * @param name name of the IPAddress (required) * @return APIreadIPAddressRequest @@ -9436,7 +9437,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * read the specified IngressClass * @param name name of the IngressClass (required) * @return APIreadIngressClassRequest @@ -9627,7 +9628,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * read the specified Ingress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9819,7 +9820,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * read status of the specified Ingress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -10011,7 +10012,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * read the specified NetworkPolicy * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -10194,7 +10195,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * read the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @return APIreadServiceCIDRRequest @@ -10376,7 +10377,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * read status of the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @return APIreadServiceCIDRStatusRequest @@ -10619,7 +10620,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace the specified IPAddress * @param name name of the IPAddress (required) * @param body (required) @@ -10864,7 +10865,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * replace the specified IngressClass * @param name name of the IngressClass (required) * @param body (required) @@ -11118,7 +11119,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * replace the specified Ingress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -11373,7 +11374,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * replace status of the specified Ingress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -11628,7 +11629,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * replace the specified NetworkPolicy * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -11874,7 +11875,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * replace the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @param body (required) @@ -12119,7 +12120,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * replace status of the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @param body (required) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java index 96a8ec057d..4c494af4a6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -301,7 +302,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * create an IPAddress * @param body (required) * @return APIcreateIPAddressRequest @@ -541,7 +542,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * create a ServiceCIDR * @param body (required) * @return APIcreateServiceCIDRRequest @@ -937,7 +938,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of IPAddress * @return APIdeleteCollectionIPAddressRequest * @http.response.details @@ -1330,7 +1331,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ServiceCIDR * @return APIdeleteCollectionServiceCIDRRequest * @http.response.details @@ -1608,7 +1609,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete an IPAddress * @param name name of the IPAddress (required) * @return APIdeleteIPAddressRequest @@ -1888,7 +1889,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ServiceCIDR * @param name name of the ServiceCIDR (required) * @return APIdeleteServiceCIDRRequest @@ -2046,7 +2047,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -2381,7 +2382,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * list or watch objects of kind IPAddress * @return APIlistIPAddressRequest * @http.response.details @@ -2716,7 +2717,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * list or watch objects of kind ServiceCIDR * @return APIlistServiceCIDRRequest * @http.response.details @@ -2974,7 +2975,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * partially update the specified IPAddress * @param name name of the IPAddress (required) * @param body (required) @@ -3235,7 +3236,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * partially update the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @param body (required) @@ -3496,7 +3497,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * partially update status of the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @param body (required) @@ -3680,7 +3681,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * read the specified IPAddress * @param name name of the IPAddress (required) * @return APIreadIPAddressRequest @@ -3862,7 +3863,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * read the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @return APIreadServiceCIDRRequest @@ -4044,7 +4045,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * read status of the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @return APIreadServiceCIDRStatusRequest @@ -4287,7 +4288,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * replace the specified IPAddress * @param name name of the IPAddress (required) * @param body (required) @@ -4532,7 +4533,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * replace the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @param body (required) @@ -4777,7 +4778,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * replace status of the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @param body (required) 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 67f3ba627b..34568bdc9f 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 e0004e527a..75af093e73 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -299,7 +300,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * create a RuntimeClass * @param body (required) * @return APIcreateRuntimeClassRequest @@ -695,7 +696,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of RuntimeClass * @return APIdeleteCollectionRuntimeClassRequest * @http.response.details @@ -973,7 +974,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a RuntimeClass * @param name name of the RuntimeClass (required) * @return APIdeleteRuntimeClassRequest @@ -1131,7 +1132,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1466,7 +1467,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * list or watch objects of kind RuntimeClass * @return APIlistRuntimeClassRequest * @http.response.details @@ -1724,7 +1725,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * partially update the specified RuntimeClass * @param name name of the RuntimeClass (required) * @param body (required) @@ -1908,7 +1909,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * read the specified RuntimeClass * @param name name of the RuntimeClass (required) * @return APIreadRuntimeClassRequest @@ -2151,7 +2152,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * replace the specified RuntimeClass * @param name name of the RuntimeClass (required) * @param body (required) 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 43ecc8627b..343d39e501 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -209,7 +210,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * get service account issuer OpenID JSON Web Key Set (contains public token verification keys) * @return APIgetServiceAccountIssuerOpenIDKeysetRequest * @http.response.details 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 d137974bad..13ab4d9f78 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 1d15879fd4..2166f40827 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -308,7 +309,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * create a PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -714,7 +715,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest @@ -1002,7 +1003,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1161,7 +1162,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1505,7 +1506,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * list or watch objects of kind PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedPodDisruptionBudgetRequest @@ -1841,7 +1842,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * list or watch objects of kind PodDisruptionBudget * @return APIlistPodDisruptionBudgetForAllNamespacesRequest * @http.response.details @@ -2108,7 +2109,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * partially update the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2379,7 +2380,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * partially update status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2573,7 +2574,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * read the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2765,7 +2766,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * read status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3018,7 +3019,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * replace the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3273,7 +3274,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * replace status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) 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 3cf3dd6471..084da660da 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 465763c0ab..8851d74d71 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -305,7 +306,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * create a ClusterRole * @param body (required) * @return APIcreateClusterRoleRequest @@ -545,7 +546,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * create a ClusterRoleBinding * @param body (required) * @return APIcreateClusterRoleBindingRequest @@ -794,7 +795,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * create a Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1044,7 +1045,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * create a RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1326,7 +1327,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ClusterRole * @param name name of the ClusterRole (required) * @return APIdeleteClusterRoleRequest @@ -1606,7 +1607,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @return APIdeleteClusterRoleBindingRequest @@ -2001,7 +2002,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ClusterRole * @return APIdeleteCollectionClusterRoleRequest * @http.response.details @@ -2394,7 +2395,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ClusterRoleBinding * @return APIdeleteCollectionClusterRoleBindingRequest * @http.response.details @@ -2796,7 +2797,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Role * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedRoleRequest @@ -3199,7 +3200,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedRoleBindingRequest @@ -3487,7 +3488,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a Role * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3777,7 +3778,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a RoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3936,7 +3937,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -4271,7 +4272,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind ClusterRole * @return APIlistClusterRoleRequest * @http.response.details @@ -4606,7 +4607,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind ClusterRoleBinding * @return APIlistClusterRoleBindingRequest * @http.response.details @@ -4950,7 +4951,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * list or watch objects of kind Role * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedRoleRequest @@ -5295,7 +5296,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedRoleBindingRequest @@ -5631,7 +5632,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind RoleBinding * @return APIlistRoleBindingForAllNamespacesRequest * @http.response.details @@ -5966,7 +5967,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * list or watch objects of kind Role * @return APIlistRoleForAllNamespacesRequest * @http.response.details @@ -6224,7 +6225,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * partially update the specified ClusterRole * @param name name of the ClusterRole (required) * @param body (required) @@ -6485,7 +6486,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * partially update the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param body (required) @@ -6755,7 +6756,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * partially update the specified Role * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7026,7 +7027,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * partially update the specified RoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7211,7 +7212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * read the specified ClusterRole * @param name name of the ClusterRole (required) * @return APIreadClusterRoleRequest @@ -7393,7 +7394,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * read the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @return APIreadClusterRoleBindingRequest @@ -7584,7 +7585,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * read the specified Role * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7776,7 +7777,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * read the specified RoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8020,7 +8021,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * replace the specified ClusterRole * @param name name of the ClusterRole (required) * @param body (required) @@ -8265,7 +8266,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * replace the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param body (required) @@ -8519,7 +8520,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * replace the specified Role * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8774,7 +8775,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * replace the specified RoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) 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 4147e9439c..86d5331a00 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java index 2fba2a11db..6f33ee342f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -305,7 +306,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * create a DeviceClass * @param body (required) * @return APIcreateDeviceClassRequest @@ -554,7 +555,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * create a ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -804,7 +805,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * create a ResourceClaimTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1045,7 +1046,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * create a ResourceSlice * @param body (required) * @return APIcreateResourceSliceRequest @@ -1441,7 +1442,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of DeviceClass * @return APIdeleteCollectionDeviceClassRequest * @http.response.details @@ -1843,7 +1844,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedResourceClaimRequest @@ -2246,7 +2247,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceClaimTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest @@ -2640,7 +2641,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceSlice * @return APIdeleteCollectionResourceSliceRequest * @http.response.details @@ -2918,7 +2919,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * delete a DeviceClass * @param name name of the DeviceClass (required) * @return APIdeleteDeviceClassRequest @@ -3207,7 +3208,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * delete a ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3497,7 +3498,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * delete a ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3778,7 +3779,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * delete a ResourceSlice * @param name name of the ResourceSlice (required) * @return APIdeleteResourceSliceRequest @@ -3936,7 +3937,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -4271,7 +4272,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind DeviceClass * @return APIlistDeviceClassRequest * @http.response.details @@ -4615,7 +4616,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedResourceClaimRequest @@ -4960,7 +4961,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * list or watch objects of kind ResourceClaimTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedResourceClaimTemplateRequest @@ -5296,7 +5297,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind ResourceClaim * @return APIlistResourceClaimForAllNamespacesRequest * @http.response.details @@ -5631,7 +5632,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * list or watch objects of kind ResourceClaimTemplate * @return APIlistResourceClaimTemplateForAllNamespacesRequest * @http.response.details @@ -5966,7 +5967,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind ResourceSlice * @return APIlistResourceSliceRequest * @http.response.details @@ -6224,7 +6225,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * partially update the specified DeviceClass * @param name name of the DeviceClass (required) * @param body (required) @@ -6494,7 +6495,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * partially update the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -6765,7 +6766,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * partially update status of the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7036,7 +7037,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * partially update the specified ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7298,7 +7299,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * partially update the specified ResourceSlice * @param name name of the ResourceSlice (required) * @param body (required) @@ -7482,7 +7483,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * read the specified DeviceClass * @param name name of the DeviceClass (required) * @return APIreadDeviceClassRequest @@ -7673,7 +7674,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * read the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7865,7 +7866,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * read status of the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8057,7 +8058,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * read the specified ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8240,7 +8241,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * read the specified ResourceSlice * @param name name of the ResourceSlice (required) * @return APIreadResourceSliceRequest @@ -8483,7 +8484,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * replace the specified DeviceClass * @param name name of the DeviceClass (required) * @param body (required) @@ -8737,7 +8738,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * replace the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8992,7 +8993,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * replace status of the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9247,7 +9248,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * replace the specified ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9493,7 +9494,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * replace the specified ResourceSlice * @param name name of the ResourceSlice (required) * @param body (required) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java index ab0066c324..937c52a024 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -299,7 +300,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * create a DeviceTaintRule * @param body (required) * @return APIcreateDeviceTaintRuleRequest @@ -695,7 +696,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of DeviceTaintRule * @return APIdeleteCollectionDeviceTaintRuleRequest * @http.response.details @@ -973,7 +974,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * delete a DeviceTaintRule * @param name name of the DeviceTaintRule (required) * @return APIdeleteDeviceTaintRuleRequest @@ -1131,7 +1132,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1466,7 +1467,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * list or watch objects of kind DeviceTaintRule * @return APIlistDeviceTaintRuleRequest * @http.response.details @@ -1724,7 +1725,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * partially update the specified DeviceTaintRule * @param name name of the DeviceTaintRule (required) * @param body (required) @@ -1908,7 +1909,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * read the specified DeviceTaintRule * @param name name of the DeviceTaintRule (required) * @return APIreadDeviceTaintRuleRequest @@ -2151,7 +2152,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * replace the specified DeviceTaintRule * @param name name of the DeviceTaintRule (required) * @param body (required) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java index b1d03602cb..3407ef26e1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -305,7 +306,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * create a DeviceClass * @param body (required) * @return APIcreateDeviceClassRequest @@ -554,7 +555,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * create a ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -804,7 +805,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * create a ResourceClaimTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1045,7 +1046,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * create a ResourceSlice * @param body (required) * @return APIcreateResourceSliceRequest @@ -1441,7 +1442,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of DeviceClass * @return APIdeleteCollectionDeviceClassRequest * @http.response.details @@ -1843,7 +1844,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedResourceClaimRequest @@ -2246,7 +2247,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceClaimTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest @@ -2640,7 +2641,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceSlice * @return APIdeleteCollectionResourceSliceRequest * @http.response.details @@ -2918,7 +2919,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * delete a DeviceClass * @param name name of the DeviceClass (required) * @return APIdeleteDeviceClassRequest @@ -3207,7 +3208,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * delete a ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3497,7 +3498,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * delete a ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3778,7 +3779,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * delete a ResourceSlice * @param name name of the ResourceSlice (required) * @return APIdeleteResourceSliceRequest @@ -3936,7 +3937,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -4271,7 +4272,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * list or watch objects of kind DeviceClass * @return APIlistDeviceClassRequest * @http.response.details @@ -4615,7 +4616,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedResourceClaimRequest @@ -4960,7 +4961,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind ResourceClaim * @return APIlistResourceClaimForAllNamespacesRequest * @http.response.details @@ -5631,7 +5632,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind ResourceSlice * @return APIlistResourceSliceRequest * @http.response.details @@ -6224,7 +6225,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * partially update the specified DeviceClass * @param name name of the DeviceClass (required) * @param body (required) @@ -6494,7 +6495,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * partially update the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -6765,7 +6766,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * partially update status of the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7036,7 +7037,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update the specified ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7298,7 +7299,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * partially update the specified ResourceSlice * @param name name of the ResourceSlice (required) * @param body (required) @@ -7482,7 +7483,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * read the specified DeviceClass * @param name name of the DeviceClass (required) * @return APIreadDeviceClassRequest @@ -7673,7 +7674,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * read the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7865,7 +7866,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * read status of the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8057,7 +8058,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read the specified ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8240,7 +8241,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * read the specified ResourceSlice * @param name name of the ResourceSlice (required) * @return APIreadResourceSliceRequest @@ -8483,7 +8484,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * replace the specified DeviceClass * @param name name of the DeviceClass (required) * @param body (required) @@ -8737,7 +8738,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * replace the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8992,7 +8993,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * replace status of the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9247,7 +9248,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace the specified ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9493,7 +9494,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * replace the specified ResourceSlice * @param name name of the ResourceSlice (required) * @param body (required) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java index eb8440204b..54a3fe458e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -305,7 +306,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * create a DeviceClass * @param body (required) * @return APIcreateDeviceClassRequest @@ -554,7 +555,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * create a ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -804,7 +805,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * create a ResourceClaimTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1045,7 +1046,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * create a ResourceSlice * @param body (required) * @return APIcreateResourceSliceRequest @@ -1441,7 +1442,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of DeviceClass * @return APIdeleteCollectionDeviceClassRequest * @http.response.details @@ -1843,7 +1844,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedResourceClaimRequest @@ -2246,7 +2247,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceClaimTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest @@ -2640,7 +2641,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceSlice * @return APIdeleteCollectionResourceSliceRequest * @http.response.details @@ -2918,7 +2919,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * delete a DeviceClass * @param name name of the DeviceClass (required) * @return APIdeleteDeviceClassRequest @@ -3207,7 +3208,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * delete a ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3497,7 +3498,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * delete a ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3778,7 +3779,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * delete a ResourceSlice * @param name name of the ResourceSlice (required) * @return APIdeleteResourceSliceRequest @@ -3936,7 +3937,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -4271,7 +4272,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * list or watch objects of kind DeviceClass * @return APIlistDeviceClassRequest * @http.response.details @@ -4615,7 +4616,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedResourceClaimRequest @@ -4960,7 +4961,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind ResourceClaim * @return APIlistResourceClaimForAllNamespacesRequest * @http.response.details @@ -5631,7 +5632,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind ResourceSlice * @return APIlistResourceSliceRequest * @http.response.details @@ -6224,7 +6225,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * partially update the specified DeviceClass * @param name name of the DeviceClass (required) * @param body (required) @@ -6494,7 +6495,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * partially update the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -6765,7 +6766,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * partially update status of the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7036,7 +7037,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update the specified ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7298,7 +7299,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * partially update the specified ResourceSlice * @param name name of the ResourceSlice (required) * @param body (required) @@ -7482,7 +7483,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * read the specified DeviceClass * @param name name of the DeviceClass (required) * @return APIreadDeviceClassRequest @@ -7673,7 +7674,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * read the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7865,7 +7866,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * read status of the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8057,7 +8058,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read the specified ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8240,7 +8241,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * read the specified ResourceSlice * @param name name of the ResourceSlice (required) * @return APIreadResourceSliceRequest @@ -8483,7 +8484,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * replace the specified DeviceClass * @param name name of the DeviceClass (required) * @param body (required) @@ -8737,7 +8738,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * replace the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8992,7 +8993,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * replace status of the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9247,7 +9248,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace the specified ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9493,7 +9494,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * replace the specified ResourceSlice * @param name name of the ResourceSlice (required) * @param body (required) 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 b4447b7907..c7533e27ff 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 8c86558182..698209b8f2 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -299,7 +300,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * create a PriorityClass * @param body (required) * @return APIcreatePriorityClassRequest @@ -695,7 +696,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of PriorityClass * @return APIdeleteCollectionPriorityClassRequest * @http.response.details @@ -973,7 +974,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a PriorityClass * @param name name of the PriorityClass (required) * @return APIdeletePriorityClassRequest @@ -1131,7 +1132,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1466,7 +1467,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind PriorityClass * @return APIlistPriorityClassRequest * @http.response.details @@ -1724,7 +1725,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * partially update the specified PriorityClass * @param name name of the PriorityClass (required) * @param body (required) @@ -1908,7 +1909,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * read the specified PriorityClass * @param name name of the PriorityClass (required) * @return APIreadPriorityClassRequest @@ -2151,7 +2152,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * replace the specified PriorityClass * @param name name of the PriorityClass (required) * @param body (required) 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 5dfb2a2197..cd4afe6952 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 834d22f0be..64c10c35f3 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -309,7 +310,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * create a CSIDriver * @param body (required) * @return APIcreateCSIDriverRequest @@ -549,7 +550,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * create a CSINode * @param body (required) * @return APIcreateCSINodeRequest @@ -798,7 +799,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * create a CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1039,7 +1040,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * create a StorageClass * @param body (required) * @return APIcreateStorageClassRequest @@ -1279,7 +1280,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * create a VolumeAttachment * @param body (required) * @return APIcreateVolumeAttachmentRequest @@ -1519,7 +1520,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * create a VolumeAttributesClass * @param body (required) * @return APIcreateVolumeAttributesClassRequest @@ -1800,7 +1801,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * delete a CSIDriver * @param name name of the CSIDriver (required) * @return APIdeleteCSIDriverRequest @@ -2080,7 +2081,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * delete a CSINode * @param name name of the CSINode (required) * @return APIdeleteCSINodeRequest @@ -2475,7 +2476,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of CSIDriver * @return APIdeleteCollectionCSIDriverRequest * @http.response.details @@ -2868,7 +2869,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of CSINode * @return APIdeleteCollectionCSINodeRequest * @http.response.details @@ -3270,7 +3271,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest @@ -3664,7 +3665,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of StorageClass * @return APIdeleteCollectionStorageClassRequest * @http.response.details @@ -4057,7 +4058,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of VolumeAttachment * @return APIdeleteCollectionVolumeAttachmentRequest * @http.response.details @@ -4450,7 +4451,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of VolumeAttributesClass * @return APIdeleteCollectionVolumeAttributesClassRequest * @http.response.details @@ -4737,7 +4738,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a CSIStorageCapacity * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -5018,7 +5019,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * delete a StorageClass * @param name name of the StorageClass (required) * @return APIdeleteStorageClassRequest @@ -5298,7 +5299,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * delete a VolumeAttachment * @param name name of the VolumeAttachment (required) * @return APIdeleteVolumeAttachmentRequest @@ -5578,7 +5579,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * delete a VolumeAttributesClass * @param name name of the VolumeAttributesClass (required) * @return APIdeleteVolumeAttributesClassRequest @@ -5736,7 +5737,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -6071,7 +6072,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind CSIDriver * @return APIlistCSIDriverRequest * @http.response.details @@ -6406,7 +6407,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * list or watch objects of kind CSINode * @return APIlistCSINodeRequest * @http.response.details @@ -6741,7 +6742,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind CSIStorageCapacity * @return APIlistCSIStorageCapacityForAllNamespacesRequest * @http.response.details @@ -7085,7 +7086,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedCSIStorageCapacityRequest @@ -7421,7 +7422,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * list or watch objects of kind StorageClass * @return APIlistStorageClassRequest * @http.response.details @@ -7756,7 +7757,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * list or watch objects of kind VolumeAttachment * @return APIlistVolumeAttachmentRequest * @http.response.details @@ -8091,7 +8092,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * list or watch objects of kind VolumeAttributesClass * @return APIlistVolumeAttributesClassRequest * @http.response.details @@ -8349,7 +8350,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * partially update the specified CSIDriver * @param name name of the CSIDriver (required) * @param body (required) @@ -8610,7 +8611,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * partially update the specified CSINode * @param name name of the CSINode (required) * @param body (required) @@ -8880,7 +8881,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * partially update the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9142,7 +9143,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * partially update the specified StorageClass * @param name name of the StorageClass (required) * @param body (required) @@ -9403,7 +9404,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * partially update the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) @@ -9664,7 +9665,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * partially update status of the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) @@ -9925,7 +9926,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * partially update the specified VolumeAttributesClass * @param name name of the VolumeAttributesClass (required) * @param body (required) @@ -10109,7 +10110,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * read the specified CSIDriver * @param name name of the CSIDriver (required) * @return APIreadCSIDriverRequest @@ -10291,7 +10292,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * read the specified CSINode * @param name name of the CSINode (required) * @return APIreadCSINodeRequest @@ -10482,7 +10483,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * read the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -10665,7 +10666,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * read the specified StorageClass * @param name name of the StorageClass (required) * @return APIreadStorageClassRequest @@ -10847,7 +10848,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * read the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @return APIreadVolumeAttachmentRequest @@ -11029,7 +11030,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * read status of the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @return APIreadVolumeAttachmentStatusRequest @@ -11211,7 +11212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * read the specified VolumeAttributesClass * @param name name of the VolumeAttributesClass (required) * @return APIreadVolumeAttributesClassRequest @@ -11454,7 +11455,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace the specified CSIDriver * @param name name of the CSIDriver (required) * @param body (required) @@ -11699,7 +11700,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * replace the specified CSINode * @param name name of the CSINode (required) * @param body (required) @@ -11953,7 +11954,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * replace the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -12199,7 +12200,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * replace the specified StorageClass * @param name name of the StorageClass (required) * @param body (required) @@ -12444,7 +12445,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * replace the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) @@ -12689,7 +12690,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * replace status of the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) @@ -12934,7 +12935,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * replace the specified VolumeAttributesClass * @param name name of the VolumeAttributesClass (required) * @param body (required) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1alpha1Api.java index 0fdc27ef4d..6cd792d694 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1alpha1Api.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -299,7 +300,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of VolumeAttributesClass * @return APIdeleteCollectionVolumeAttributesClassRequest * @http.response.details @@ -973,7 +974,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1466,7 +1467,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * create a VolumeAttributesClass * @param body (required) * @return APIcreateVolumeAttributesClassRequest @@ -695,7 +696,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of VolumeAttributesClass * @return APIdeleteCollectionVolumeAttributesClassRequest * @http.response.details @@ -973,7 +974,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * delete a VolumeAttributesClass * @param name name of the VolumeAttributesClass (required) * @return APIdeleteVolumeAttributesClassRequest @@ -1131,7 +1132,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1466,7 +1467,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update the specified VolumeAttributesClass * @param name name of the VolumeAttributesClass (required) * @param body (required) @@ -1908,7 +1909,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read the specified VolumeAttributesClass * @param name name of the VolumeAttributesClass (required) * @return APIreadVolumeAttributesClassRequest @@ -2151,7 +2152,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace the specified VolumeAttributesClass * @param name name of the VolumeAttributesClass (required) * @param body (required) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationApi.java index 0d1bce2f93..e040b13066 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationApi.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -212,7 +213,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1alpha1Api.java index f0fdf9bceb..c0d346c891 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1alpha1Api.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -299,7 +300,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of StorageVersionMigration * @return APIdeleteCollectionStorageVersionMigrationRequest * @http.response.details @@ -973,7 +974,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a StorageVersionMigration * @param name name of the StorageVersionMigration (required) * @return APIdeleteStorageVersionMigrationRequest @@ -1131,7 +1132,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1466,7 +1467,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * get the version information for this server * @return APIgetCodeRequest * @http.response.details 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 035dc0b4c6..46efd5d1da 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -209,7 +210,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * get service account issuer OpenID configuration, also known as the 'OIDC discovery doc' * @return APIgetServiceAccountIssuerOpenIDConfigurationRequest * @http.response.details 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 c8c8cd0e4f..6662a52f36 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.auth; import io.kubernetes.client.openapi.ApiException; @@ -19,7 +20,7 @@ import java.util.Map; import java.util.List; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; 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 2d72fff4da..ba17d60e0c 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.auth; import io.kubernetes.client.openapi.Pair; @@ -19,7 +20,7 @@ import java.util.Map; import java.util.List; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public interface Authentication { /** * Apply authentication settings to header and query params. 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 84d6891f1c..482ae8901a 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.auth; import io.kubernetes.client.openapi.Pair; 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 4ca3bc1cc9..334417a430 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 @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.auth; import io.kubernetes.client.openapi.ApiException; @@ -21,7 +22,7 @@ import java.util.Optional; import java.util.function.Supplier; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class HttpBearerAuth implements Authentication { private final String scheme; private Supplier tokenSupplier; 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 index 7f91a24d55..a62c0ddabf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java @@ -1,15 +1,16 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import io.kubernetes.client.openapi.ApiException; @@ -20,7 +21,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object 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 c75270a5fd..1897a15db7 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class AdmissionregistrationV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -205,16 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("name", "namespace", "path", "port")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("namespace"); + openapiRequiredFields = new HashSet(Arrays.asList("name", "namespace")); } /** @@ -226,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AdmissionregistrationV1ServiceReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AdmissionregistrationV1ServiceReference is not found in the empty JSON string", AdmissionregistrationV1ServiceReference.openapiRequiredFields.toString())); } } @@ -234,25 +231,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AdmissionregistrationV1ServiceReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AdmissionregistrationV1ServiceReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -305,3 +302,4 @@ 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 1b8e469bcd..86cf6a6c82 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * WebhookClientConfig contains the information to make a TLS connection with the webhook */ @ApiModel(description = "WebhookClientConfig contains the information to make a TLS connection with the webhook") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class AdmissionregistrationV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) @@ -179,13 +182,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("caBundle"); - openapiFields.add("service"); - openapiFields.add("url"); + openapiFields = new HashSet(Arrays.asList("caBundle", "service", "url")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -197,7 +197,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AdmissionregistrationV1WebhookClientConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AdmissionregistrationV1WebhookClientConfig is not found in the empty JSON string", AdmissionregistrationV1WebhookClientConfig.openapiRequiredFields.toString())); } } @@ -205,7 +205,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AdmissionregistrationV1WebhookClientConfig` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -214,7 +214,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti AdmissionregistrationV1ServiceReference.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); } } @@ -267,3 +267,4 @@ 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 b6931138e3..6e5d19d685 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class ApiextensionsV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -205,16 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("name", "namespace", "path", "port")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("namespace"); + openapiRequiredFields = new HashSet(Arrays.asList("name", "namespace")); } /** @@ -226,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ApiextensionsV1ServiceReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ApiextensionsV1ServiceReference is not found in the empty JSON string", ApiextensionsV1ServiceReference.openapiRequiredFields.toString())); } } @@ -234,25 +231,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ApiextensionsV1ServiceReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ApiextensionsV1ServiceReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -305,3 +302,4 @@ 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 7cd77c6ccb..92df18b2e3 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * WebhookClientConfig contains the information to make a TLS connection with the webhook. */ @ApiModel(description = "WebhookClientConfig contains the information to make a TLS connection with the webhook.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class ApiextensionsV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) @@ -179,13 +182,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("caBundle"); - openapiFields.add("service"); - openapiFields.add("url"); + openapiFields = new HashSet(Arrays.asList("caBundle", "service", "url")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -197,7 +197,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ApiextensionsV1WebhookClientConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ApiextensionsV1WebhookClientConfig is not found in the empty JSON string", ApiextensionsV1WebhookClientConfig.openapiRequiredFields.toString())); } } @@ -205,7 +205,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ApiextensionsV1WebhookClientConfig` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -214,7 +214,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ApiextensionsV1ServiceReference.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); } } @@ -267,3 +267,4 @@ 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 8005178e15..4ccc14f9ba 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class ApiregistrationV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -178,13 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("namespace"); - openapiFields.add("port"); + openapiFields = new HashSet(Arrays.asList("name", "namespace", "port")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -196,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ApiregistrationV1ServiceReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ApiregistrationV1ServiceReference is not found in the empty JSON string", ApiregistrationV1ServiceReference.openapiRequiredFields.toString())); } } @@ -204,15 +204,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ApiregistrationV1ServiceReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } } @@ -265,3 +265,4 @@ 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 515b9e0dee..cbb7b1e236 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * TokenRequest requests a token for a given service account. */ @ApiModel(description = "TokenRequest requests a token for a given service account.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class AuthenticationV1TokenRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,16 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -256,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AuthenticationV1TokenRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in AuthenticationV1TokenRequest is not found in the empty JSON string", AuthenticationV1TokenRequest.openapiRequiredFields.toString())); } } @@ -264,22 +261,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AuthenticationV1TokenRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AuthenticationV1TokenRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -342,3 +339,4 @@ 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 a2cb3b0811..65f77dfa84 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * EndpointPort is a tuple that describes a single port. Deprecated: This API is deprecated in v1.33+. */ @ApiModel(description = "EndpointPort is a tuple that describes a single port. Deprecated: This API is deprecated in v1.33+.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class CoreV1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) @@ -205,15 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("appProtocol", "name", "port", "protocol")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("port"); + openapiRequiredFields = new HashSet(Arrays.asList("port")); } /** @@ -225,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CoreV1EndpointPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CoreV1EndpointPort is not found in the empty JSON string", CoreV1EndpointPort.openapiRequiredFields.toString())); } } @@ -233,25 +231,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `CoreV1EndpointPort` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CoreV1EndpointPort.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `protocol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("protocol").toString())); } } @@ -304,3 +302,4 @@ 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 39f6259908..fe97c0fca6 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class CoreV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) @@ -561,29 +564,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("action", "apiVersion", "count", "eventTime", "firstTimestamp", "involvedObject", "kind", "lastTimestamp", "message", "metadata", "reason", "related", "reportingComponent", "reportingInstance", "series", "source", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("involvedObject"); - openapiRequiredFields.add("metadata"); + openapiRequiredFields = new HashSet(Arrays.asList("involvedObject", "metadata")); } /** @@ -595,7 +579,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CoreV1Event.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CoreV1Event is not found in the empty JSON string", CoreV1Event.openapiRequiredFields.toString())); } } @@ -603,45 +587,45 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `CoreV1Event` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CoreV1Event.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -652,7 +636,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1EventSource.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -705,3 +689,4 @@ 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 d0f700304c..4ec9e7b6e3 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * EventList is a list of events. */ @ApiModel(description = "EventList is a list of events.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class CoreV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CoreV1EventList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CoreV1EventList is not found in the empty JSON string", CoreV1EventList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `CoreV1EventList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CoreV1EventList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti CoreV1Event.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 e5192cf128..d39f3b778a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. */ @ApiModel(description = "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class CoreV1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) @@ -152,12 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("count"); - openapiFields.add("lastObservedTime"); + openapiFields = new HashSet(Arrays.asList("count", "lastObservedTime")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -169,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CoreV1EventSeries.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CoreV1EventSeries is not found in the empty JSON string", CoreV1EventSeries.openapiRequiredFields.toString())); } } @@ -177,7 +178,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `CoreV1EventSeries` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -232,3 +233,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java index 1d73a8a47c..6ddb966d8b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ResourceClaim references one entry in PodSpec.ResourceClaims. */ @ApiModel(description = "ResourceClaim references one entry in PodSpec.ResourceClaims.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class CoreV1ResourceClaim { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -151,13 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("request"); + openapiFields = new HashSet(Arrays.asList("name", "request")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -169,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CoreV1ResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in CoreV1ResourceClaim is not found in the empty JSON string", CoreV1ResourceClaim.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in CoreV1ResourceClaim is not found in the empty JSON string", CoreV1ResourceClaim.openapiRequiredFields.toString())); } } @@ -177,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!CoreV1ResourceClaim.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `CoreV1ResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `CoreV1ResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : CoreV1ResourceClaim.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("request") != null && !jsonObj.get("request").isJsonNull()) && !jsonObj.get("request").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `request` to be a primitive type in the JSON string but got `%s`", jsonObj.get("request").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `request` to be a primitive type in the JSON string but got `%s`", jsonObj.get("request").toString())); } } @@ -245,3 +245,4 @@ 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 7a444a9c9d..fbcc964828 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * EndpointPort represents a Port used by an EndpointSlice */ @ApiModel(description = "EndpointPort represents a Port used by an EndpointSlice") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class DiscoveryV1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) @@ -205,14 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("appProtocol", "name", "port", "protocol")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -224,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!DiscoveryV1EndpointPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in DiscoveryV1EndpointPort is not found in the empty JSON string", DiscoveryV1EndpointPort.openapiRequiredFields.toString())); } } @@ -232,18 +231,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `DiscoveryV1EndpointPort` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `protocol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("protocol").toString())); } } @@ -296,3 +295,4 @@ 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 d6045f77f8..4b4a9738f8 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class EventsV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) @@ -561,28 +564,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("action", "apiVersion", "deprecatedCount", "deprecatedFirstTimestamp", "deprecatedLastTimestamp", "deprecatedSource", "eventTime", "kind", "metadata", "note", "reason", "regarding", "related", "reportingController", "reportingInstance", "series", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("eventTime"); + openapiRequiredFields = new HashSet(Arrays.asList("eventTime")); } /** @@ -594,7 +579,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!EventsV1Event.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in EventsV1Event is not found in the empty JSON string", EventsV1Event.openapiRequiredFields.toString())); } } @@ -602,39 +587,39 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `EventsV1Event` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : EventsV1Event.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -645,17 +630,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ObjectReference.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -708,3 +693,4 @@ 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 8649cb5217..b2729fa32a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * EventList is a list of Event objects. */ @ApiModel(description = "EventList is a list of Event objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class EventsV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!EventsV1EventList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in EventsV1EventList is not found in the empty JSON string", EventsV1EventList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `EventsV1EventList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : EventsV1EventList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti EventsV1Event.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 255ccad1f5..9461e4b2ca 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class EventsV1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) @@ -152,14 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("count"); - openapiFields.add("lastObservedTime"); + openapiFields = new HashSet(Arrays.asList("count", "lastObservedTime")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("count"); - openapiRequiredFields.add("lastObservedTime"); + openapiRequiredFields = new HashSet(Arrays.asList("count", "lastObservedTime")); } /** @@ -171,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!EventsV1EventSeries.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in EventsV1EventSeries is not found in the empty JSON string", EventsV1EventSeries.openapiRequiredFields.toString())); } } @@ -179,14 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `EventsV1EventSeries` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : EventsV1EventSeries.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -241,3 +240,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java index 9a99bb16dc..bf8f2b3d9b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class FlowcontrolV1Subject { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -208,15 +211,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("group", "kind", "serviceAccount", "user")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("kind"); + openapiRequiredFields = new HashSet(Arrays.asList("kind")); } /** @@ -228,7 +226,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!FlowcontrolV1Subject.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in FlowcontrolV1Subject is not found in the empty JSON string", FlowcontrolV1Subject.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in FlowcontrolV1Subject is not found in the empty JSON string", FlowcontrolV1Subject.openapiRequiredFields.toString())); } } @@ -236,14 +234,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!FlowcontrolV1Subject.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FlowcontrolV1Subject` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `FlowcontrolV1Subject` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : FlowcontrolV1Subject.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -252,7 +250,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1GroupSubject.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -313,3 +311,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java index 1621f80d75..1b9eb41f0d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class RbacV1Subject { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) @@ -205,16 +208,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiGroup", "kind", "name", "namespace")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("kind"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("kind", "name")); } /** @@ -226,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RbacV1Subject.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in RbacV1Subject is not found in the empty JSON string", RbacV1Subject.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in RbacV1Subject is not found in the empty JSON string", RbacV1Subject.openapiRequiredFields.toString())); } } @@ -234,28 +231,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!RbacV1Subject.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RbacV1Subject` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `RbacV1Subject` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : RbacV1Subject.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } } @@ -308,3 +305,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java index 13ddab065f..57a471d5d6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class ResourceV1ResourceClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,16 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -256,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ResourceV1ResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in ResourceV1ResourceClaim is not found in the empty JSON string", ResourceV1ResourceClaim.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in ResourceV1ResourceClaim is not found in the empty JSON string", ResourceV1ResourceClaim.openapiRequiredFields.toString())); } } @@ -264,22 +261,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!ResourceV1ResourceClaim.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ResourceV1ResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ResourceV1ResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ResourceV1ResourceClaim.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -342,3 +339,4 @@ 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 b01ed981b7..9439cda7c1 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * TokenRequest contains parameters of a service account token. */ @ApiModel(description = "TokenRequest contains parameters of a service account token.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class StorageV1TokenRequest { public static final String SERIALIZED_NAME_AUDIENCE = "audience"; @SerializedName(SERIALIZED_NAME_AUDIENCE) @@ -151,13 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("audience"); - openapiFields.add("expirationSeconds"); + openapiFields = new HashSet(Arrays.asList("audience", "expirationSeconds")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("audience"); + openapiRequiredFields = new HashSet(Arrays.asList("audience")); } /** @@ -169,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StorageV1TokenRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in StorageV1TokenRequest is not found in the empty JSON string", StorageV1TokenRequest.openapiRequiredFields.toString())); } } @@ -177,19 +177,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `StorageV1TokenRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : StorageV1TokenRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `audience` to be a primitive type in the JSON string but got `%s`", jsonObj.get("audience").toString())); } } @@ -242,3 +242,4 @@ 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 3224d8f566..e058f55caf 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * APIGroup contains the name, the supported versions, and the preferred version of a group. */ @ApiModel(description = "APIGroup contains the name, the supported versions, and the preferred version of a group.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1APIGroup { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -279,18 +282,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "name", "preferredVersion", "serverAddressByClientCIDRs", "versions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("versions"); + openapiRequiredFields = new HashSet(Arrays.asList("name", "versions")); } /** @@ -302,7 +297,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1APIGroup is not found in the empty JSON string", V1APIGroup.openapiRequiredFields.toString())); } } @@ -310,25 +305,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1APIGroup` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1APIGroup.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -339,7 +334,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -350,7 +345,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `versions` to be an array in the JSON string but got `%s`", jsonObj.get("versions").toString())); } JsonArray jsonArrayversions = jsonObj.getAsJsonArray("versions"); @@ -409,3 +404,4 @@ 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 51ca0e9a99..201dac21c4 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis. */ @ApiModel(description = "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1APIGroupList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -189,14 +192,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("apiVersion"); - openapiFields.add("groups"); - openapiFields.add("kind"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "groups", "kind")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("groups"); + openapiRequiredFields = new HashSet(Arrays.asList("groups")); } /** @@ -208,7 +207,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIGroupList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1APIGroupList is not found in the empty JSON string", V1APIGroupList.openapiRequiredFields.toString())); } } @@ -216,23 +215,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1APIGroupList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1APIGroupList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `groups` to be an array in the JSON string but got `%s`", jsonObj.get("groups").toString())); } JsonArray jsonArraygroups = jsonObj.getAsJsonArray("groups"); @@ -241,7 +240,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1APIGroup.validateJsonElement(jsonArraygroups.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); } } @@ -294,3 +293,4 @@ 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 bf6a583bbb..bc003788d9 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * APIResource specifies the name of a resource and whether it is namespaced. */ @ApiModel(description = "APIResource specifies the name of a resource and whether it is namespaced.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1APIResource { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; @SerializedName(SERIALIZED_NAME_CATEGORIES) @@ -393,25 +396,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("categories", "group", "kind", "name", "namespaced", "shortNames", "singularName", "storageVersionHash", "verbs", "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"); + openapiRequiredFields = new HashSet(Arrays.asList("kind", "name", "namespaced", "singularName", "verbs")); } /** @@ -423,7 +411,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1APIResource is not found in the empty JSON string", V1APIResource.openapiRequiredFields.toString())); } } @@ -431,48 +419,48 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1APIResource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1APIResource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("categories") != null && !jsonObj.get("categories").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } } @@ -525,3 +513,4 @@ 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 461beffff1..abec9d9a2f 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1APIResourceList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -216,16 +219,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "groupVersion", "kind", "resources")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("groupVersion"); - openapiRequiredFields.add("resources"); + openapiRequiredFields = new HashSet(Arrays.asList("groupVersion", "resources")); } /** @@ -237,7 +234,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIResourceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1APIResourceList is not found in the empty JSON string", V1APIResourceList.openapiRequiredFields.toString())); } } @@ -245,29 +242,29 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1APIResourceList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1APIResourceList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resources` to be an array in the JSON string but got `%s`", jsonObj.get("resources").toString())); } JsonArray jsonArrayresources = jsonObj.getAsJsonArray("resources"); @@ -326,3 +323,4 @@ 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 e1b3857630..b40b3fece0 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * APIService represents a server for a particular GroupVersion. Name must be \"version.group\". */ @ApiModel(description = "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1APIService implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIService.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1APIService is not found in the empty JSON string", V1APIService.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1APIService` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 5e69064799..3fc8a75086 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * APIServiceCondition describes the state of an APIService at a particular point */ @ApiModel(description = "APIServiceCondition describes the state of an APIService at a particular point") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1APIServiceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -233,17 +236,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); } /** @@ -255,7 +251,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIServiceCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1APIServiceCondition is not found in the empty JSON string", V1APIServiceCondition.openapiRequiredFields.toString())); } } @@ -263,28 +259,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1APIServiceCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1APIServiceCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -337,3 +333,4 @@ 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 b46e23bc3c..8e94f9fc52 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * APIServiceList is a list of APIService objects. */ @ApiModel(description = "APIServiceList is a list of APIService objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1APIServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIServiceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1APIServiceList is not found in the empty JSON string", V1APIServiceList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1APIServiceList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1APIServiceList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1APIService.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 5a8d550b28..e45681186e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. */ @ApiModel(description = "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1APIServiceSpec { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) @@ -287,19 +290,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("caBundle", "group", "groupPriorityMinimum", "insecureSkipTLSVerify", "service", "version", "versionPriority")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("groupPriorityMinimum"); - openapiRequiredFields.add("versionPriority"); + openapiRequiredFields = new HashSet(Arrays.asList("groupPriorityMinimum", "versionPriority")); } /** @@ -311,7 +305,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIServiceSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1APIServiceSpec is not found in the empty JSON string", V1APIServiceSpec.openapiRequiredFields.toString())); } } @@ -319,26 +313,26 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1APIServiceSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1APIServiceSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } } @@ -391,3 +385,4 @@ 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 c06beda88f..079063a84b 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * APIServiceStatus contains derived information about an API server */ @ApiModel(description = "APIServiceStatus contains derived information about an API server") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1APIServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -135,11 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("conditions"); + openapiFields = new HashSet(Arrays.asList("conditions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -151,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIServiceStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1APIServiceStatus is not found in the empty JSON string", V1APIServiceStatus.openapiRequiredFields.toString())); } } @@ -159,7 +161,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1APIServiceStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -168,7 +170,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -228,3 +230,4 @@ 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 edc93fbe55..9e8be47729 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1APIVersions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -224,16 +227,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "serverAddressByClientCIDRs", "versions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("serverAddressByClientCIDRs"); - openapiRequiredFields.add("versions"); + openapiRequiredFields = new HashSet(Arrays.asList("serverAddressByClientCIDRs", "versions")); } /** @@ -245,7 +242,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1APIVersions.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1APIVersions is not found in the empty JSON string", V1APIVersions.openapiRequiredFields.toString())); } } @@ -253,26 +250,26 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1APIVersions` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1APIVersions.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `serverAddressByClientCIDRs` to be an array in the JSON string but got `%s`", jsonObj.get("serverAddressByClientCIDRs").toString())); } JsonArray jsonArrayserverAddressByClientCIDRs = jsonObj.getAsJsonArray("serverAddressByClientCIDRs"); @@ -284,7 +281,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `versions` to be an array in the JSON string but got `%s`", jsonObj.get("versions").toString())); } } @@ -337,3 +334,4 @@ 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 e1c9c52434..00bcfc1c0c 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1AWSElasticBlockStoreVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -205,15 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("fsType", "partition", "readOnly", "volumeID")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("volumeID"); + openapiRequiredFields = new HashSet(Arrays.asList("volumeID")); } /** @@ -225,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1AWSElasticBlockStoreVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1AWSElasticBlockStoreVolumeSource is not found in the empty JSON string", V1AWSElasticBlockStoreVolumeSource.openapiRequiredFields.toString())); } } @@ -233,22 +231,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1AWSElasticBlockStoreVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1AWSElasticBlockStoreVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `volumeID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeID").toString())); } } @@ -301,3 +299,4 @@ 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 4c51f65b3c..24f1b433ef 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * Affinity is a group of affinity scheduling rules. */ @ApiModel(description = "Affinity is a group of affinity scheduling rules.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Affinity { public static final String SERIALIZED_NAME_NODE_AFFINITY = "nodeAffinity"; @SerializedName(SERIALIZED_NAME_NODE_AFFINITY) @@ -181,13 +184,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("nodeAffinity"); - openapiFields.add("podAffinity"); - openapiFields.add("podAntiAffinity"); + openapiFields = new HashSet(Arrays.asList("nodeAffinity", "podAffinity", "podAntiAffinity")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -199,7 +199,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Affinity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Affinity is not found in the empty JSON string", V1Affinity.openapiRequiredFields.toString())); } } @@ -207,7 +207,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Affinity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -274,3 +274,4 @@ 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 1c028e05b8..1433e727c4 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole */ @ApiModel(description = "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1AggregationRule { public static final String SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS = "clusterRoleSelectors"; @SerializedName(SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS) @@ -135,11 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("clusterRoleSelectors"); + openapiFields = new HashSet(Arrays.asList("clusterRoleSelectors")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -151,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1AggregationRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1AggregationRule is not found in the empty JSON string", V1AggregationRule.openapiRequiredFields.toString())); } } @@ -159,7 +161,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1AggregationRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -168,7 +170,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -228,3 +230,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java index 7ae923dfa3..b01881c78f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. */ @ApiModel(description = "AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1AllocatedDeviceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -298,20 +301,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("conditions"); - openapiFields.add("data"); - openapiFields.add("device"); - openapiFields.add("driver"); - openapiFields.add("networkData"); - openapiFields.add("pool"); - openapiFields.add("shareID"); + openapiFields = new HashSet(Arrays.asList("conditions", "data", "device", "driver", "networkData", "pool", "shareID")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("device"); - openapiRequiredFields.add("driver"); - openapiRequiredFields.add("pool"); + openapiRequiredFields = new HashSet(Arrays.asList("device", "driver", "pool")); } /** @@ -323,7 +316,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1AllocatedDeviceStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1AllocatedDeviceStatus is not found in the empty JSON string", V1AllocatedDeviceStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1AllocatedDeviceStatus is not found in the empty JSON string", V1AllocatedDeviceStatus.openapiRequiredFields.toString())); } } @@ -331,14 +324,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1AllocatedDeviceStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1AllocatedDeviceStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1AllocatedDeviceStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1AllocatedDeviceStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -347,7 +340,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -357,20 +350,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } if (!jsonObj.get("device").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").toString())); } // validate the optional field `networkData` if (jsonObj.get("networkData") != null && !jsonObj.get("networkData").isJsonNull()) { V1NetworkDeviceData.validateJsonElement(jsonObj.get("networkData")); } if (!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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `pool` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pool").toString())); } if ((jsonObj.get("shareID") != null && !jsonObj.get("shareID").isJsonNull()) && !jsonObj.get("shareID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").toString())); } } @@ -423,3 +416,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java index 306d42a9c6..25d6072843 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * AllocationResult contains attributes of an allocated resource. */ @ApiModel(description = "AllocationResult contains attributes of an allocated resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1AllocationResult { public static final String SERIALIZED_NAME_ALLOCATION_TIMESTAMP = "allocationTimestamp"; @SerializedName(SERIALIZED_NAME_ALLOCATION_TIMESTAMP) @@ -181,13 +184,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allocationTimestamp"); - openapiFields.add("devices"); - openapiFields.add("nodeSelector"); + openapiFields = new HashSet(Arrays.asList("allocationTimestamp", "devices", "nodeSelector")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -199,7 +199,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1AllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1AllocationResult is not found in the empty JSON string", V1AllocationResult.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1AllocationResult is not found in the empty JSON string", V1AllocationResult.openapiRequiredFields.toString())); } } @@ -207,7 +207,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1AllocationResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1AllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1AllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -270,3 +270,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java index b5b124edc7..2dca090c7f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * AppArmorProfile defines a pod or container's AppArmor settings. */ @ApiModel(description = "AppArmorProfile defines a pod or container's AppArmor settings.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1AppArmorProfile { public static final String SERIALIZED_NAME_LOCALHOST_PROFILE = "localhostProfile"; @SerializedName(SERIALIZED_NAME_LOCALHOST_PROFILE) @@ -151,13 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("localhostProfile"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("localhostProfile", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -169,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1AppArmorProfile.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1AppArmorProfile is not found in the empty JSON string", V1AppArmorProfile.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1AppArmorProfile is not found in the empty JSON string", V1AppArmorProfile.openapiRequiredFields.toString())); } } @@ -177,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1AppArmorProfile.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1AppArmorProfile` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1AppArmorProfile` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1AppArmorProfile.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -245,3 +245,4 @@ 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 52d486c008..82ee068ebf 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * AttachedVolume describes a volume attached to a node */ @ApiModel(description = "AttachedVolume describes a volume attached to a node") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1AttachedVolume { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; @SerializedName(SERIALIZED_NAME_DEVICE_PATH) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("devicePath"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("devicePath", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("devicePath"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("devicePath", "name")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1AttachedVolume.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1AttachedVolume is not found in the empty JSON string", V1AttachedVolume.openapiRequiredFields.toString())); } } @@ -178,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1AttachedVolume` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1AttachedVolume.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -246,3 +245,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java index 29256fdfa7..fd923b37b5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * AuditAnnotation describes how to produce an audit annotation for an API request. */ @ApiModel(description = "AuditAnnotation describes how to produce an audit annotation for an API request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1AuditAnnotation { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("key"); - openapiFields.add("valueExpression"); + openapiFields = new HashSet(Arrays.asList("key", "valueExpression")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("key"); - openapiRequiredFields.add("valueExpression"); + openapiRequiredFields = new HashSet(Arrays.asList("key", "valueExpression")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1AuditAnnotation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1AuditAnnotation is not found in the empty JSON string", V1AuditAnnotation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1AuditAnnotation is not found in the empty JSON string", V1AuditAnnotation.openapiRequiredFields.toString())); } } @@ -178,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1AuditAnnotation.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1AuditAnnotation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1AuditAnnotation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1AuditAnnotation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `valueExpression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("valueExpression").toString())); } } @@ -246,3 +245,4 @@ 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 5ed2c825c4..c9d1aea036 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. */ @ApiModel(description = "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1AzureDiskVolumeSource { public static final String SERIALIZED_NAME_CACHING_MODE = "cachingMode"; @SerializedName(SERIALIZED_NAME_CACHING_MODE) @@ -259,18 +262,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("cachingMode", "diskName", "diskURI", "fsType", "kind", "readOnly")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("diskName"); - openapiRequiredFields.add("diskURI"); + openapiRequiredFields = new HashSet(Arrays.asList("diskName", "diskURI")); } /** @@ -282,7 +277,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1AzureDiskVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1AzureDiskVolumeSource is not found in the empty JSON string", V1AzureDiskVolumeSource.openapiRequiredFields.toString())); } } @@ -290,31 +285,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1AzureDiskVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1AzureDiskVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); } } @@ -367,3 +362,4 @@ 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 408be3bc09..7d969e95c5 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. */ @ApiModel(description = "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1AzureFilePersistentVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) @@ -205,16 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("readOnly", "secretName", "secretNamespace", "shareName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("secretName"); - openapiRequiredFields.add("shareName"); + openapiRequiredFields = new HashSet(Arrays.asList("secretName", "shareName")); } /** @@ -226,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1AzureFilePersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1AzureFilePersistentVolumeSource is not found in the empty JSON string", V1AzureFilePersistentVolumeSource.openapiRequiredFields.toString())); } } @@ -234,25 +231,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1AzureFilePersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1AzureFilePersistentVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `shareName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareName").toString())); } } @@ -305,3 +302,4 @@ 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 e2b60000d8..c6067cef7d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. */ @ApiModel(description = "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1AzureFileVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) @@ -178,15 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("readOnly"); - openapiFields.add("secretName"); - openapiFields.add("shareName"); + openapiFields = new HashSet(Arrays.asList("readOnly", "secretName", "shareName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("secretName"); - openapiRequiredFields.add("shareName"); + openapiRequiredFields = new HashSet(Arrays.asList("secretName", "shareName")); } /** @@ -198,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1AzureFileVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1AzureFileVolumeSource is not found in the empty JSON string", V1AzureFileVolumeSource.openapiRequiredFields.toString())); } } @@ -206,22 +204,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1AzureFileVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1AzureFileVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `shareName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareName").toString())); } } @@ -274,3 +272,4 @@ 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 536255cf0b..04cf861283 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * Binding ties one object to another; for example, a pod is bound to a node by a scheduler. */ @ApiModel(description = "Binding ties one object to another; for example, a pod is bound to a node by a scheduler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Binding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,15 +210,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "target")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("target"); + openapiRequiredFields = new HashSet(Arrays.asList("target")); } /** @@ -227,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Binding.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Binding is not found in the empty JSON string", V1Binding.openapiRequiredFields.toString())); } } @@ -235,22 +233,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Binding` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1Binding.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -309,3 +307,4 @@ 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 f5247885e3..4b93b373ad 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * BoundObjectReference is a reference to an object that a token is bound to. */ @ApiModel(description = "BoundObjectReference is a reference to an object that a token is bound to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1BoundObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -205,14 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "name", "uid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -224,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1BoundObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1BoundObjectReference is not found in the empty JSON string", V1BoundObjectReference.openapiRequiredFields.toString())); } } @@ -232,21 +231,21 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1BoundObjectReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); } } @@ -299,3 +298,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java index 8d541caf1e..829722961f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * CELDeviceSelector contains a CEL expression for selecting a device. */ @ApiModel(description = "CELDeviceSelector contains a CEL expression for selecting a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CELDeviceSelector { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -124,12 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("expression"); + openapiFields = new HashSet(Arrays.asList("expression")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("expression"); + openapiRequiredFields = new HashSet(Arrays.asList("expression")); } /** @@ -141,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CELDeviceSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1CELDeviceSelector is not found in the empty JSON string", V1CELDeviceSelector.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CELDeviceSelector is not found in the empty JSON string", V1CELDeviceSelector.openapiRequiredFields.toString())); } } @@ -149,19 +150,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1CELDeviceSelector.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CELDeviceSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CELDeviceSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CELDeviceSelector.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); } } @@ -214,3 +215,4 @@ 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 76bedd11d4..8fecf9a356 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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. */ @ApiModel(description = "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CSIDriver implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,15 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -227,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSIDriver.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CSIDriver is not found in the empty JSON string", V1CSIDriver.openapiRequiredFields.toString())); } } @@ -235,22 +233,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CSIDriver` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CSIDriver.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -309,3 +307,4 @@ 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 1f92cf4e69..e102b585ab 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * CSIDriverList is a collection of CSIDriver objects. */ @ApiModel(description = "CSIDriverList is a collection of CSIDriver objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CSIDriverList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSIDriverList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CSIDriverList is not found in the empty JSON string", V1CSIDriverList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CSIDriverList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CSIDriverList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1CSIDriver.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 e103baef1b..9ad60c57a8 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * CSIDriverSpec is the specification of a CSIDriver. */ @ApiModel(description = "CSIDriverSpec is the specification of a CSIDriver.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CSIDriverSpec { public static final String SERIALIZED_NAME_ATTACH_REQUIRED = "attachRequired"; @SerializedName(SERIALIZED_NAME_ATTACH_REQUIRED) @@ -359,19 +362,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("attachRequired"); - openapiFields.add("fsGroupPolicy"); - openapiFields.add("nodeAllocatableUpdatePeriodSeconds"); - openapiFields.add("podInfoOnMount"); - openapiFields.add("requiresRepublish"); - openapiFields.add("seLinuxMount"); - openapiFields.add("storageCapacity"); - openapiFields.add("tokenRequests"); - openapiFields.add("volumeLifecycleModes"); + openapiFields = new HashSet(Arrays.asList("attachRequired", "fsGroupPolicy", "nodeAllocatableUpdatePeriodSeconds", "podInfoOnMount", "requiresRepublish", "seLinuxMount", "storageCapacity", "tokenRequests", "volumeLifecycleModes")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -383,7 +377,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSIDriverSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CSIDriverSpec is not found in the empty JSON string", V1CSIDriverSpec.openapiRequiredFields.toString())); } } @@ -391,19 +385,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CSIDriverSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -414,7 +408,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("volumeLifecycleModes") != null && !jsonObj.get("volumeLifecycleModes").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `volumeLifecycleModes` to be an array in the JSON string but got `%s`", jsonObj.get("volumeLifecycleModes").toString())); } } @@ -467,3 +461,4 @@ 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 da130c33d4..63d6280e42 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CSINode implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,15 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -227,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSINode.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CSINode is not found in the empty JSON string", V1CSINode.openapiRequiredFields.toString())); } } @@ -235,22 +233,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CSINode` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CSINode.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -309,3 +307,4 @@ 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 eb1fc35e88..c58232472e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * CSINodeDriver holds information about the specification of one CSI driver installed on a node */ @ApiModel(description = "CSINodeDriver holds information about the specification of one CSI driver installed on a node") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CSINodeDriver { public static final String SERIALIZED_NAME_ALLOCATABLE = "allocatable"; @SerializedName(SERIALIZED_NAME_ALLOCATABLE) @@ -216,16 +219,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("allocatable", "name", "nodeID", "topologyKeys")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("nodeID"); + openapiRequiredFields = new HashSet(Arrays.asList("name", "nodeID")); } /** @@ -237,7 +234,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSINodeDriver.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CSINodeDriver is not found in the empty JSON string", V1CSINodeDriver.openapiRequiredFields.toString())); } } @@ -245,14 +242,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CSINodeDriver` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CSINodeDriver.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -261,14 +258,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1VolumeNodeResources.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `topologyKeys` to be an array in the JSON string but got `%s`", jsonObj.get("topologyKeys").toString())); } } @@ -321,3 +318,4 @@ 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 4fb94b9ca3..5709d7127c 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * CSINodeList is a collection of CSINode objects. */ @ApiModel(description = "CSINodeList is a collection of CSINode objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CSINodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSINodeList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CSINodeList is not found in the empty JSON string", V1CSINodeList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CSINodeList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CSINodeList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1CSINode.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 0f907fbf15..fa18f4466e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * CSINodeSpec holds information about the specification of all CSI drivers installed on a node */ @ApiModel(description = "CSINodeSpec holds information about the specification of all CSI drivers installed on a node") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CSINodeSpec { public static final String SERIALIZED_NAME_DRIVERS = "drivers"; @SerializedName(SERIALIZED_NAME_DRIVERS) @@ -135,12 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("drivers"); + openapiFields = new HashSet(Arrays.asList("drivers")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("drivers"); + openapiRequiredFields = new HashSet(Arrays.asList("drivers")); } /** @@ -152,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSINodeSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CSINodeSpec is not found in the empty JSON string", V1CSINodeSpec.openapiRequiredFields.toString())); } } @@ -160,20 +161,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CSINodeSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CSINodeSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `drivers` to be an array in the JSON string but got `%s`", jsonObj.get("drivers").toString())); } JsonArray jsonArraydrivers = jsonObj.getAsJsonArray("drivers"); @@ -232,3 +233,4 @@ 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 0d0d1df478..2f563aa901 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * Represents storage that is managed by an external CSI volume driver */ @ApiModel(description = "Represents storage that is managed by an external CSI volume driver") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF = "controllerExpandSecretRef"; @SerializedName(SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF) @@ -378,22 +381,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("controllerExpandSecretRef", "controllerPublishSecretRef", "driver", "fsType", "nodeExpandSecretRef", "nodePublishSecretRef", "nodeStageSecretRef", "readOnly", "volumeAttributes", "volumeHandle")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("driver"); - openapiRequiredFields.add("volumeHandle"); + openapiRequiredFields = new HashSet(Arrays.asList("driver", "volumeHandle")); } /** @@ -405,7 +396,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSIPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CSIPersistentVolumeSource is not found in the empty JSON string", V1CSIPersistentVolumeSource.openapiRequiredFields.toString())); } } @@ -413,14 +404,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CSIPersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CSIPersistentVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -433,10 +424,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1SecretReference.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -451,7 +442,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1SecretReference.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `volumeHandle` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeHandle").toString())); } } @@ -504,3 +495,4 @@ 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 8423e181d0..cff9284b8d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(description = "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. 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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CSIStorageCapacity implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -289,18 +292,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "capacity", "kind", "maximumVolumeSize", "metadata", "nodeTopology", "storageClassName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("storageClassName"); + openapiRequiredFields = new HashSet(Arrays.asList("storageClassName")); } /** @@ -312,7 +307,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSIStorageCapacity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CSIStorageCapacity is not found in the empty JSON string", V1CSIStorageCapacity.openapiRequiredFields.toString())); } } @@ -320,28 +315,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CSIStorageCapacity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CSIStorageCapacity.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -352,7 +347,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1LabelSelector.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `storageClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("storageClassName").toString())); } } @@ -405,3 +400,4 @@ 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 efc0fb0565..28fddc03e9 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. */ @ApiModel(description = "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CSIStorageCapacityList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSIStorageCapacityList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CSIStorageCapacityList is not found in the empty JSON string", V1CSIStorageCapacityList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CSIStorageCapacityList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CSIStorageCapacityList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1CSIStorageCapacity.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 c0ab7417a0..f6f3c03f8c 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * Represents a source location of a volume to mount, managed by an external CSI driver */ @ApiModel(description = "Represents a source location of a volume to mount, managed by an external CSI driver") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CSIVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) @@ -243,16 +246,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("driver", "fsType", "nodePublishSecretRef", "readOnly", "volumeAttributes")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("driver"); + openapiRequiredFields = new HashSet(Arrays.asList("driver")); } /** @@ -264,7 +261,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CSIVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CSIVolumeSource is not found in the empty JSON string", V1CSIVolumeSource.openapiRequiredFields.toString())); } } @@ -272,22 +269,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CSIVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CSIVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -344,3 +341,4 @@ 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 a82cc50def..c6bc1aef17 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * Adds and removes POSIX capabilities from running containers. */ @ApiModel(description = "Adds and removes POSIX capabilities from running containers.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Capabilities { public static final String SERIALIZED_NAME_ADD = "add"; @SerializedName(SERIALIZED_NAME_ADD) @@ -169,12 +172,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("add"); - openapiFields.add("drop"); + openapiFields = new HashSet(Arrays.asList("add", "drop")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -186,7 +187,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Capabilities.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Capabilities is not found in the empty JSON string", V1Capabilities.openapiRequiredFields.toString())); } } @@ -194,17 +195,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Capabilities` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("add") != null && !jsonObj.get("add").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `drop` to be an array in the JSON string but got `%s`", jsonObj.get("drop").toString())); } } @@ -257,3 +258,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java index 99804c5fce..45994c9c5f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. */ @ApiModel(description = "CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CapacityRequestPolicy { public static final String SERIALIZED_NAME_DEFAULT = "default"; @SerializedName(SERIALIZED_NAME_DEFAULT) @@ -190,13 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("default"); - openapiFields.add("validRange"); - openapiFields.add("validValues"); + openapiFields = new HashSet(Arrays.asList("default", "validRange", "validValues")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -208,7 +208,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CapacityRequestPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1CapacityRequestPolicy is not found in the empty JSON string", V1CapacityRequestPolicy.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CapacityRequestPolicy is not found in the empty JSON string", V1CapacityRequestPolicy.openapiRequiredFields.toString())); } } @@ -216,12 +216,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1CapacityRequestPolicy.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CapacityRequestPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CapacityRequestPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("default") != null && !jsonObj.get("default").isJsonNull()) && !jsonObj.get("default").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `default` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `default` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default").toString())); } // validate the optional field `validRange` if (jsonObj.get("validRange") != null && !jsonObj.get("validRange").isJsonNull()) { @@ -229,7 +229,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("validValues") != null && !jsonObj.get("validValues").isJsonNull() && !jsonObj.get("validValues").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `validValues` to be an array in the JSON string but got `%s`", jsonObj.get("validValues").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `validValues` to be an array in the JSON string but got `%s`", jsonObj.get("validValues").toString())); } } @@ -282,3 +282,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java index c1c24dcffe..4f346392f3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. */ @ApiModel(description = "CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CapacityRequestPolicyRange { public static final String SERIALIZED_NAME_MAX = "max"; @SerializedName(SERIALIZED_NAME_MAX) @@ -179,14 +182,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("max"); - openapiFields.add("min"); - openapiFields.add("step"); + openapiFields = new HashSet(Arrays.asList("max", "min", "step")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("min"); + openapiRequiredFields = new HashSet(Arrays.asList("min")); } /** @@ -198,7 +197,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CapacityRequestPolicyRange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1CapacityRequestPolicyRange is not found in the empty JSON string", V1CapacityRequestPolicyRange.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CapacityRequestPolicyRange is not found in the empty JSON string", V1CapacityRequestPolicyRange.openapiRequiredFields.toString())); } } @@ -206,25 +205,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1CapacityRequestPolicyRange.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CapacityRequestPolicyRange` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CapacityRequestPolicyRange` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CapacityRequestPolicyRange.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("max") != null && !jsonObj.get("max").isJsonNull()) && !jsonObj.get("max").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `max` to be a primitive type in the JSON string but got `%s`", jsonObj.get("max").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `max` to be a primitive type in the JSON string but got `%s`", jsonObj.get("max").toString())); } if (!jsonObj.get("min").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `min` to be a primitive type in the JSON string but got `%s`", jsonObj.get("min").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `min` to be a primitive type in the JSON string but got `%s`", jsonObj.get("min").toString())); } if ((jsonObj.get("step") != null && !jsonObj.get("step").isJsonNull()) && !jsonObj.get("step").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `step` to be a primitive type in the JSON string but got `%s`", jsonObj.get("step").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `step` to be a primitive type in the JSON string but got `%s`", jsonObj.get("step").toString())); } } @@ -277,3 +276,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java index 8097d5d53c..73e506af6e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * CapacityRequirements defines the capacity requirements for a specific device request. */ @ApiModel(description = "CapacityRequirements defines the capacity requirements for a specific device request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CapacityRequirements { public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) @@ -135,11 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("requests"); + openapiFields = new HashSet(Arrays.asList("requests")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -151,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CapacityRequirements.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1CapacityRequirements is not found in the empty JSON string", V1CapacityRequirements.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CapacityRequirements is not found in the empty JSON string", V1CapacityRequirements.openapiRequiredFields.toString())); } } @@ -159,7 +161,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1CapacityRequirements.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CapacityRequirements` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CapacityRequirements` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -214,3 +216,4 @@ 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 26a6fc5061..277d26f3de 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CephFSPersistentVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "monitors"; @SerializedName(SERIALIZED_NAME_MONITORS) @@ -270,17 +273,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("monitors", "path", "readOnly", "secretFile", "secretRef", "user")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("monitors"); + openapiRequiredFields = new HashSet(Arrays.asList("monitors")); } /** @@ -292,7 +288,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CephFSPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CephFSPersistentVolumeSource is not found in the empty JSON string", V1CephFSPersistentVolumeSource.openapiRequiredFields.toString())); } } @@ -300,14 +296,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CephFSPersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CephFSPersistentVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -315,20 +311,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `user` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user").toString())); } } @@ -381,3 +377,4 @@ 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 31a33fe3ed..2aeea85de5 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CephFSVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "monitors"; @SerializedName(SERIALIZED_NAME_MONITORS) @@ -270,17 +273,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("monitors", "path", "readOnly", "secretFile", "secretRef", "user")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("monitors"); + openapiRequiredFields = new HashSet(Arrays.asList("monitors")); } /** @@ -292,7 +288,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CephFSVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CephFSVolumeSource is not found in the empty JSON string", V1CephFSVolumeSource.openapiRequiredFields.toString())); } } @@ -300,14 +296,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CephFSVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CephFSVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -315,20 +311,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `user` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user").toString())); } } @@ -381,3 +377,4 @@ 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 d4b26c03fc..c65a8aa9dc 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CertificateSigningRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,16 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -256,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CertificateSigningRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CertificateSigningRequest is not found in the empty JSON string", V1CertificateSigningRequest.openapiRequiredFields.toString())); } } @@ -264,22 +261,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CertificateSigningRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CertificateSigningRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -342,3 +339,4 @@ 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 27bcac7b1c..b138c9cdf2 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object */ @ApiModel(description = "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CertificateSigningRequestCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -260,18 +263,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "lastUpdateTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); } /** @@ -283,7 +278,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CertificateSigningRequestCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CertificateSigningRequestCondition is not found in the empty JSON string", V1CertificateSigningRequestCondition.openapiRequiredFields.toString())); } } @@ -291,28 +286,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CertificateSigningRequestCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CertificateSigningRequestCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -365,3 +360,4 @@ 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 6241ee7aab..af453eb582 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * CertificateSigningRequestList is a collection of CertificateSigningRequest objects */ @ApiModel(description = "CertificateSigningRequestList is a collection of CertificateSigningRequest objects") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CertificateSigningRequestList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CertificateSigningRequestList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CertificateSigningRequestList is not found in the empty JSON string", V1CertificateSigningRequestList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CertificateSigningRequestList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CertificateSigningRequestList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1CertificateSigningRequest.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 908d3871a2..9c49e261da 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * CertificateSigningRequestSpec contains the certificate request. */ @ApiModel(description = "CertificateSigningRequestSpec contains the certificate request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CertificateSigningRequestSpec { public static final String SERIALIZED_NAME_EXPIRATION_SECONDS = "expirationSeconds"; @SerializedName(SERIALIZED_NAME_EXPIRATION_SECONDS) @@ -341,20 +344,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("expirationSeconds", "extra", "groups", "request", "signerName", "uid", "usages", "username")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("request"); - openapiRequiredFields.add("signerName"); + openapiRequiredFields = new HashSet(Arrays.asList("request", "signerName")); } /** @@ -366,7 +359,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CertificateSigningRequestSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CertificateSigningRequestSpec is not found in the empty JSON string", V1CertificateSigningRequestSpec.openapiRequiredFields.toString())); } } @@ -374,33 +367,33 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CertificateSigningRequestSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CertificateSigningRequestSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } } @@ -453,3 +446,4 @@ 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 2d0f01339c..36f11504ef 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate. */ @ApiModel(description = "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CertificateSigningRequestStatus { public static final String SERIALIZED_NAME_CERTIFICATE = "certificate"; @SerializedName(SERIALIZED_NAME_CERTIFICATE) @@ -162,12 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("certificate"); - openapiFields.add("conditions"); + openapiFields = new HashSet(Arrays.asList("certificate", "conditions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -179,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CertificateSigningRequestStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CertificateSigningRequestStatus is not found in the empty JSON string", V1CertificateSigningRequestStatus.openapiRequiredFields.toString())); } } @@ -187,7 +188,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CertificateSigningRequestStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -196,7 +197,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -256,3 +257,4 @@ 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 b7c80fe0f9..7ac4549468 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * 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. */ @ApiModel(description = "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CinderPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -206,15 +209,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("fsType", "readOnly", "secretRef", "volumeID")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("volumeID"); + openapiRequiredFields = new HashSet(Arrays.asList("volumeID")); } /** @@ -226,7 +224,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CinderPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CinderPersistentVolumeSource is not found in the empty JSON string", V1CinderPersistentVolumeSource.openapiRequiredFields.toString())); } } @@ -234,26 +232,26 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CinderPersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CinderPersistentVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `volumeID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeID").toString())); } } @@ -306,3 +304,4 @@ 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 1f8987d4dc..c8d161c606 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * 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. */ @ApiModel(description = "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CinderVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -206,15 +209,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("fsType", "readOnly", "secretRef", "volumeID")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("volumeID"); + openapiRequiredFields = new HashSet(Arrays.asList("volumeID")); } /** @@ -226,7 +224,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CinderVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CinderVolumeSource is not found in the empty JSON string", V1CinderVolumeSource.openapiRequiredFields.toString())); } } @@ -234,26 +232,26 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CinderVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CinderVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `volumeID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeID").toString())); } } @@ -306,3 +304,4 @@ 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 85546cff54..c377096d8a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ClientIPConfig represents the configurations of Client IP based session affinity. */ @ApiModel(description = "ClientIPConfig represents the configurations of Client IP based session affinity.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ClientIPConfig { public static final String SERIALIZED_NAME_TIMEOUT_SECONDS = "timeoutSeconds"; @SerializedName(SERIALIZED_NAME_TIMEOUT_SECONDS) @@ -124,11 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("timeoutSeconds"); + openapiFields = new HashSet(Arrays.asList("timeoutSeconds")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -140,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ClientIPConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ClientIPConfig is not found in the empty JSON string", V1ClientIPConfig.openapiRequiredFields.toString())); } } @@ -148,7 +150,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ClientIPConfig` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -203,3 +205,4 @@ 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 c92a411f15..2979330fbf 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. */ @ApiModel(description = "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ClusterRole implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_AGGREGATION_RULE = "aggregationRule"; @SerializedName(SERIALIZED_NAME_AGGREGATION_RULE) @@ -245,15 +248,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("aggregationRule", "apiVersion", "kind", "metadata", "rules")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -265,7 +263,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ClusterRole.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ClusterRole is not found in the empty JSON string", V1ClusterRole.openapiRequiredFields.toString())); } } @@ -273,7 +271,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ClusterRole` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -282,10 +280,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1AggregationRule.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -296,7 +294,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -356,3 +354,4 @@ 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 ee67ed807c..99645cb45d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. */ @ApiModel(description = "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ClusterRoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -245,16 +248,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "roleRef", "subjects")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("roleRef"); + openapiRequiredFields = new HashSet(Arrays.asList("roleRef")); } /** @@ -266,7 +263,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ClusterRoleBinding.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ClusterRoleBinding is not found in the empty JSON string", V1ClusterRoleBinding.openapiRequiredFields.toString())); } } @@ -274,22 +271,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ClusterRoleBinding` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ClusterRoleBinding.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -302,7 +299,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -362,3 +359,4 @@ 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 7e90e2a224..6cbf066df6 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ClusterRoleBindingList is a collection of ClusterRoleBindings */ @ApiModel(description = "ClusterRoleBindingList is a collection of ClusterRoleBindings") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ClusterRoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ClusterRoleBindingList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ClusterRoleBindingList is not found in the empty JSON string", V1ClusterRoleBindingList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ClusterRoleBindingList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ClusterRoleBindingList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ClusterRoleBinding.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 dd02853f8f..fb4647ec0c 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ClusterRoleList is a collection of ClusterRoles */ @ApiModel(description = "ClusterRoleList is a collection of ClusterRoles") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ClusterRoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ClusterRoleList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ClusterRoleList is not found in the empty JSON string", V1ClusterRoleList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ClusterRoleList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ClusterRoleList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ClusterRole.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java index 41402f7b9f..80151376fe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem. */ @ApiModel(description = "ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ClusterTrustBundleProjection { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) @@ -233,16 +236,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("labelSelector"); - openapiFields.add("name"); - openapiFields.add("optional"); - openapiFields.add("path"); - openapiFields.add("signerName"); + openapiFields = new HashSet(Arrays.asList("labelSelector", "name", "optional", "path", "signerName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("path"); + openapiRequiredFields = new HashSet(Arrays.asList("path")); } /** @@ -254,7 +251,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ClusterTrustBundleProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ClusterTrustBundleProjection is not found in the empty JSON string", V1ClusterTrustBundleProjection.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ClusterTrustBundleProjection is not found in the empty JSON string", V1ClusterTrustBundleProjection.openapiRequiredFields.toString())); } } @@ -262,14 +259,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ClusterTrustBundleProjection.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ClusterTrustBundleProjection` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ClusterTrustBundleProjection` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ClusterTrustBundleProjection.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -278,13 +275,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1LabelSelector.validateJsonElement(jsonObj.get("labelSelector")); } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `signerName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signerName").toString())); } } @@ -337,3 +334,4 @@ 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 55e21e4541..1a00741f42 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Information about the condition of a component. */ @ApiModel(description = "Information about the condition of a component.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ComponentCondition { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) @@ -205,16 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("error", "message", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); } /** @@ -226,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ComponentCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ComponentCondition is not found in the empty JSON string", V1ComponentCondition.openapiRequiredFields.toString())); } } @@ -234,28 +231,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ComponentCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ComponentCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -308,3 +305,4 @@ 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 dcaf84d560..120709f5ac 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+ */ @ApiModel(description = "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ComponentStatus implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,14 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "conditions", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -236,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ComponentStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ComponentStatus is not found in the empty JSON string", V1ComponentStatus.openapiRequiredFields.toString())); } } @@ -244,19 +243,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ComponentStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -266,7 +265,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -323,3 +322,4 @@ 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 54f2210013..03c57a7c65 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+ */ @ApiModel(description = "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ComponentStatusList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ComponentStatusList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ComponentStatusList is not found in the empty JSON string", V1ComponentStatusList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ComponentStatusList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ComponentStatusList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ComponentStatus.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 b1defd1900..827e7f9a88 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * Condition contains details for one aspect of the current state of this API Resource. */ @ApiModel(description = "Condition contains details for one aspect of the current state of this API Resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Condition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -260,21 +263,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "observedGeneration", "reason", "status", "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"); + openapiRequiredFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "reason", "status", "type")); } /** @@ -286,7 +278,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Condition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Condition is not found in the empty JSON string", V1Condition.openapiRequiredFields.toString())); } } @@ -294,28 +286,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Condition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1Condition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -368,3 +360,4 @@ 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 3fab559c2f..571e8a7659 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ConfigMap holds configuration data for pods to consume. */ @ApiModel(description = "ConfigMap holds configuration data for pods to consume.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ConfigMap implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -278,16 +281,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "binaryData", "data", "immutable", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -299,7 +296,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ConfigMap.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ConfigMap is not found in the empty JSON string", V1ConfigMap.openapiRequiredFields.toString())); } } @@ -307,15 +304,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ConfigMap` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -372,3 +369,4 @@ 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 fcf341a416..5b14df1000 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ConfigMapEnvSource { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("optional"); + openapiFields = new HashSet(Arrays.asList("name", "optional")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ConfigMapEnvSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ConfigMapEnvSource is not found in the empty JSON string", V1ConfigMapEnvSource.openapiRequiredFields.toString())); } } @@ -176,12 +177,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ConfigMapEnvSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -234,3 +235,4 @@ 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 b1e760ce84..e60df304f2 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Selects a key from a ConfigMap. */ @ApiModel(description = "Selects a key from a ConfigMap.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ConfigMapKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -178,14 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("key"); - openapiFields.add("name"); - openapiFields.add("optional"); + openapiFields = new HashSet(Arrays.asList("key", "name", "optional")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("key"); + openapiRequiredFields = new HashSet(Arrays.asList("key")); } /** @@ -197,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ConfigMapKeySelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ConfigMapKeySelector is not found in the empty JSON string", V1ConfigMapKeySelector.openapiRequiredFields.toString())); } } @@ -205,22 +204,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ConfigMapKeySelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ConfigMapKeySelector.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -273,3 +272,4 @@ 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 0c2930656d..de2882daf2 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ConfigMapList is a resource containing a list of ConfigMap objects. */ @ApiModel(description = "ConfigMapList is a resource containing a list of ConfigMap objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ConfigMapList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ConfigMapList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ConfigMapList is not found in the empty JSON string", V1ConfigMapList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ConfigMapList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ConfigMapList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ConfigMap.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 e157765d7b..8ae6a2face 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * 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 */ @ApiModel(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") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ConfigMapNodeConfigSource { public static final String SERIALIZED_NAME_KUBELET_CONFIG_KEY = "kubeletConfigKey"; @SerializedName(SERIALIZED_NAME_KUBELET_CONFIG_KEY) @@ -232,18 +235,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("kubeletConfigKey", "name", "namespace", "resourceVersion", "uid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("kubeletConfigKey"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("namespace"); + openapiRequiredFields = new HashSet(Arrays.asList("kubeletConfigKey", "name", "namespace")); } /** @@ -255,7 +250,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ConfigMapNodeConfigSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ConfigMapNodeConfigSource is not found in the empty JSON string", V1ConfigMapNodeConfigSource.openapiRequiredFields.toString())); } } @@ -263,31 +258,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ConfigMapNodeConfigSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ConfigMapNodeConfigSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); } } @@ -340,3 +335,4 @@ 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 d8f7edc264..932e961943 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ConfigMapProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) @@ -189,13 +192,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("items"); - openapiFields.add("name"); - openapiFields.add("optional"); + openapiFields = new HashSet(Arrays.asList("items", "name", "optional")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -207,7 +207,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ConfigMapProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ConfigMapProjection is not found in the empty JSON string", V1ConfigMapProjection.openapiRequiredFields.toString())); } } @@ -215,7 +215,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ConfigMapProjection` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -224,7 +224,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -234,7 +234,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -287,3 +287,4 @@ 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 0ddc4ab7ba..7392111b59 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ConfigMapVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) @@ -216,14 +219,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("defaultMode", "items", "name", "optional")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -235,7 +234,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ConfigMapVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ConfigMapVolumeSource is not found in the empty JSON string", V1ConfigMapVolumeSource.openapiRequiredFields.toString())); } } @@ -243,7 +242,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ConfigMapVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -252,7 +251,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -262,7 +261,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -315,3 +314,4 @@ 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 59f5e0448f..33c46ee210 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -56,6 +58,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -63,7 +66,7 @@ * A single application container that you want to run within a pod. */ @ApiModel(description = "A single application container that you want to run within a pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Container { public static final String SERIALIZED_NAME_ARGS = "args"; @SerializedName(SERIALIZED_NAME_ARGS) @@ -857,36 +860,10 @@ private String toIndentedString(Object o) { 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("restartPolicyRules"); - 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"); + openapiFields = new HashSet(Arrays.asList("args", "command", "env", "envFrom", "image", "imagePullPolicy", "lifecycle", "livenessProbe", "name", "ports", "readinessProbe", "resizePolicy", "resources", "restartPolicy", "restartPolicyRules", "securityContext", "startupProbe", "stdin", "stdinOnce", "terminationMessagePath", "terminationMessagePolicy", "tty", "volumeDevices", "volumeMounts", "workingDir")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -898,7 +875,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Container.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Container is not found in the empty JSON string", V1Container.openapiRequiredFields.toString())); } } @@ -906,31 +883,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Container` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1Container.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("args") != null && !jsonObj.get("args").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -944,7 +921,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -954,10 +931,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -968,14 +945,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1Probe.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -993,7 +970,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1007,14 +984,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ResourceRequirements.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `restartPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("restartPolicy").toString())); } if (jsonObj.get("restartPolicyRules") != null && !jsonObj.get("restartPolicyRules").isJsonNull()) { JsonArray jsonArrayrestartPolicyRules = jsonObj.getAsJsonArray("restartPolicyRules"); if (jsonArrayrestartPolicyRules != null) { // ensure the json data is an array if (!jsonObj.get("restartPolicyRules").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `restartPolicyRules` to be an array in the JSON string but got `%s`", jsonObj.get("restartPolicyRules").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `restartPolicyRules` to be an array in the JSON string but got `%s`", jsonObj.get("restartPolicyRules").toString())); } // validate the optional field `restartPolicyRules` (array) @@ -1032,17 +1009,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1Probe.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1056,7 +1033,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1066,7 +1043,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workingDir` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workingDir").toString())); } } @@ -1119,3 +1096,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java index 54daa68f84..da23c287dd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name. */ @ApiModel(description = "ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ContainerExtendedResourceRequest { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) @@ -178,16 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("containerName"); - openapiFields.add("requestName"); - openapiFields.add("resourceName"); + openapiFields = new HashSet(Arrays.asList("containerName", "requestName", "resourceName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("containerName"); - openapiRequiredFields.add("requestName"); - openapiRequiredFields.add("resourceName"); + openapiRequiredFields = new HashSet(Arrays.asList("containerName", "requestName", "resourceName")); } /** @@ -199,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerExtendedResourceRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ContainerExtendedResourceRequest is not found in the empty JSON string", V1ContainerExtendedResourceRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ContainerExtendedResourceRequest is not found in the empty JSON string", V1ContainerExtendedResourceRequest.openapiRequiredFields.toString())); } } @@ -207,25 +204,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ContainerExtendedResourceRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ContainerExtendedResourceRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ContainerExtendedResourceRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ContainerExtendedResourceRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `containerName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerName").toString())); } if (!jsonObj.get("requestName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `requestName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("requestName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `requestName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("requestName").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resourceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceName").toString())); } } @@ -278,3 +275,4 @@ 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 9c61435e89..50c9f5304c 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * Describe a container image */ @ApiModel(description = "Describe a container image") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ContainerImage { public static final String SERIALIZED_NAME_NAMES = "names"; @SerializedName(SERIALIZED_NAME_NAMES) @@ -161,12 +164,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("names"); - openapiFields.add("sizeBytes"); + openapiFields = new HashSet(Arrays.asList("names", "sizeBytes")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -178,7 +179,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerImage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ContainerImage is not found in the empty JSON string", V1ContainerImage.openapiRequiredFields.toString())); } } @@ -186,13 +187,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ContainerImage` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("names") != null && !jsonObj.get("names").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `names` to be an array in the JSON string but got `%s`", jsonObj.get("names").toString())); } } @@ -245,3 +246,4 @@ 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 cb2d64efae..790eedd64d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ContainerPort represents a network port in a single container. */ @ApiModel(description = "ContainerPort represents a network port in a single container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ContainerPort { public static final String SERIALIZED_NAME_CONTAINER_PORT = "containerPort"; @SerializedName(SERIALIZED_NAME_CONTAINER_PORT) @@ -232,16 +235,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("containerPort", "hostIP", "hostPort", "name", "protocol")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("containerPort"); + openapiRequiredFields = new HashSet(Arrays.asList("containerPort")); } /** @@ -253,7 +250,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ContainerPort is not found in the empty JSON string", V1ContainerPort.openapiRequiredFields.toString())); } } @@ -261,25 +258,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ContainerPort` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ContainerPort.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `protocol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("protocol").toString())); } } @@ -332,3 +329,4 @@ 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 40691d607e..f08265e295 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ContainerResizePolicy represents resource resize policy for the container. */ @ApiModel(description = "ContainerResizePolicy represents resource resize policy for the container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ContainerResizePolicy { public static final String SERIALIZED_NAME_RESOURCE_NAME = "resourceName"; @SerializedName(SERIALIZED_NAME_RESOURCE_NAME) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("resourceName"); - openapiFields.add("restartPolicy"); + openapiFields = new HashSet(Arrays.asList("resourceName", "restartPolicy")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("resourceName"); - openapiRequiredFields.add("restartPolicy"); + openapiRequiredFields = new HashSet(Arrays.asList("resourceName", "restartPolicy")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerResizePolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ContainerResizePolicy is not found in the empty JSON string", V1ContainerResizePolicy.openapiRequiredFields.toString())); } } @@ -178,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ContainerResizePolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ContainerResizePolicy.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `restartPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("restartPolicy").toString())); } } @@ -246,3 +245,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java index ca191793b4..ca188892f8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * ContainerRestartRule describes how a container exit is handled. */ @ApiModel(description = "ContainerRestartRule describes how a container exit is handled.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ContainerRestartRule { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) @@ -152,13 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("action"); - openapiFields.add("exitCodes"); + openapiFields = new HashSet(Arrays.asList("action", "exitCodes")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("action"); + openapiRequiredFields = new HashSet(Arrays.asList("action")); } /** @@ -170,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerRestartRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ContainerRestartRule is not found in the empty JSON string", V1ContainerRestartRule.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ContainerRestartRule is not found in the empty JSON string", V1ContainerRestartRule.openapiRequiredFields.toString())); } } @@ -178,19 +178,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ContainerRestartRule.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ContainerRestartRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ContainerRestartRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ContainerRestartRule.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `action` to be a primitive type in the JSON string but got `%s`", jsonObj.get("action").toString())); } // validate the optional field `exitCodes` if (jsonObj.get("exitCodes") != null && !jsonObj.get("exitCodes").isJsonNull()) { @@ -247,3 +247,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java index 61cfbd8233..b0bd49bb0d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes. */ @ApiModel(description = "ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ContainerRestartRuleOnExitCodes { public static final String SERIALIZED_NAME_OPERATOR = "operator"; @SerializedName(SERIALIZED_NAME_OPERATOR) @@ -161,13 +164,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("operator"); + openapiRequiredFields = new HashSet(Arrays.asList("operator")); } /** @@ -179,7 +179,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerRestartRuleOnExitCodes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ContainerRestartRuleOnExitCodes is not found in the empty JSON string", V1ContainerRestartRuleOnExitCodes.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ContainerRestartRuleOnExitCodes is not found in the empty JSON string", V1ContainerRestartRuleOnExitCodes.openapiRequiredFields.toString())); } } @@ -187,23 +187,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ContainerRestartRuleOnExitCodes.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ContainerRestartRuleOnExitCodes` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ContainerRestartRuleOnExitCodes` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ContainerRestartRuleOnExitCodes.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -256,3 +256,4 @@ 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 8129de0afd..8d24292553 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ContainerState { public static final String SERIALIZED_NAME_RUNNING = "running"; @SerializedName(SERIALIZED_NAME_RUNNING) @@ -181,13 +184,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("running"); - openapiFields.add("terminated"); - openapiFields.add("waiting"); + openapiFields = new HashSet(Arrays.asList("running", "terminated", "waiting")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -199,7 +199,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerState.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ContainerState is not found in the empty JSON string", V1ContainerState.openapiRequiredFields.toString())); } } @@ -207,7 +207,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ContainerState` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -274,3 +274,4 @@ 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 708dcde35c..c10f938e55 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * ContainerStateRunning is a running state of a container. */ @ApiModel(description = "ContainerStateRunning is a running state of a container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ContainerStateRunning { public static final String SERIALIZED_NAME_STARTED_AT = "startedAt"; @SerializedName(SERIALIZED_NAME_STARTED_AT) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("startedAt"); + openapiFields = new HashSet(Arrays.asList("startedAt")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerStateRunning.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ContainerStateRunning is not found in the empty JSON string", V1ContainerStateRunning.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ContainerStateRunning` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -204,3 +206,4 @@ 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 63132e4a35..925682039a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * ContainerStateTerminated is a terminated state of a container. */ @ApiModel(description = "ContainerStateTerminated is a terminated state of a container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ContainerStateTerminated { public static final String SERIALIZED_NAME_CONTAINER_I_D = "containerID"; @SerializedName(SERIALIZED_NAME_CONTAINER_I_D) @@ -287,18 +290,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("containerID", "exitCode", "finishedAt", "message", "reason", "signal", "startedAt")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("exitCode"); + openapiRequiredFields = new HashSet(Arrays.asList("exitCode")); } /** @@ -310,7 +305,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerStateTerminated.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ContainerStateTerminated is not found in the empty JSON string", V1ContainerStateTerminated.openapiRequiredFields.toString())); } } @@ -318,25 +313,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ContainerStateTerminated` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ContainerStateTerminated.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); } } @@ -389,3 +384,4 @@ 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 b83099770d..647534f2e8 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ContainerStateWaiting is a waiting state of a container. */ @ApiModel(description = "ContainerStateWaiting is a waiting state of a container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ContainerStateWaiting { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("message"); - openapiFields.add("reason"); + openapiFields = new HashSet(Arrays.asList("message", "reason")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerStateWaiting.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ContainerStateWaiting is not found in the empty JSON string", V1ContainerStateWaiting.openapiRequiredFields.toString())); } } @@ -176,15 +177,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ContainerStateWaiting` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); } } @@ -237,3 +238,4 @@ 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 3bb13e3e6a..c831f8ea78 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -53,6 +55,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -60,7 +63,7 @@ * ContainerStatus contains details for the current status of this container. */ @ApiModel(description = "ContainerStatus contains details for the current status of this container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ContainerStatus { public static final String SERIALIZED_NAME_ALLOCATED_RESOURCES = "allocatedResources"; @SerializedName(SERIALIZED_NAME_ALLOCATED_RESOURCES) @@ -536,30 +539,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allocatedResources"); - openapiFields.add("allocatedResourcesStatus"); - 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"); - openapiFields.add("stopSignal"); - openapiFields.add("user"); - openapiFields.add("volumeMounts"); + openapiFields = new HashSet(Arrays.asList("allocatedResources", "allocatedResourcesStatus", "containerID", "image", "imageID", "lastState", "name", "ready", "resources", "restartCount", "started", "state", "stopSignal", "user", "volumeMounts")); // 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"); + openapiRequiredFields = new HashSet(Arrays.asList("image", "imageID", "name", "ready", "restartCount")); } /** @@ -571,7 +554,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ContainerStatus is not found in the empty JSON string", V1ContainerStatus.openapiRequiredFields.toString())); } } @@ -579,14 +562,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ContainerStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ContainerStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -595,7 +578,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayallocatedResourcesStatus != null) { // ensure the json data is an array if (!jsonObj.get("allocatedResourcesStatus").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `allocatedResourcesStatus` to be an array in the JSON string but got `%s`", jsonObj.get("allocatedResourcesStatus").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allocatedResourcesStatus` to be an array in the JSON string but got `%s`", jsonObj.get("allocatedResourcesStatus").toString())); } // validate the optional field `allocatedResourcesStatus` (array) @@ -605,20 +588,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -629,7 +612,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ContainerState.validateJsonElement(jsonObj.get("state")); } if ((jsonObj.get("stopSignal") != null && !jsonObj.get("stopSignal").isJsonNull()) && !jsonObj.get("stopSignal").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `stopSignal` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stopSignal").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stopSignal` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stopSignal").toString())); } // validate the optional field `user` if (jsonObj.get("user") != null && !jsonObj.get("user").isJsonNull()) { @@ -640,7 +623,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -700,3 +683,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java index eb6f508c9d..46122fe1b4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * ContainerUser represents user identity information */ @ApiModel(description = "ContainerUser represents user identity information") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ContainerUser { public static final String SERIALIZED_NAME_LINUX = "linux"; @SerializedName(SERIALIZED_NAME_LINUX) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("linux"); + openapiFields = new HashSet(Arrays.asList("linux")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ContainerUser.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ContainerUser is not found in the empty JSON string", V1ContainerUser.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ContainerUser is not found in the empty JSON string", V1ContainerUser.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ContainerUser.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ContainerUser` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ContainerUser` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ 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 5785ba275b..267ecb0244 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ControllerRevision implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -233,16 +236,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "data", "kind", "metadata", "revision")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("revision"); + openapiRequiredFields = new HashSet(Arrays.asList("revision")); } /** @@ -254,7 +251,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ControllerRevision.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ControllerRevision is not found in the empty JSON string", V1ControllerRevision.openapiRequiredFields.toString())); } } @@ -262,22 +259,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ControllerRevision` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ControllerRevision.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -334,3 +331,4 @@ 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 0fda9c5514..61e9d94f20 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ControllerRevisionList is a resource containing a list of ControllerRevision objects. */ @ApiModel(description = "ControllerRevisionList is a resource containing a list of ControllerRevision objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ControllerRevisionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ControllerRevisionList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ControllerRevisionList is not found in the empty JSON string", V1ControllerRevisionList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ControllerRevisionList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ControllerRevisionList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ControllerRevision.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java index f8fe02d174..4ccfcf402e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * Counter describes a quantity associated with a device. */ @ApiModel(description = "Counter describes a quantity associated with a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Counter { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -125,12 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("value")); } /** @@ -142,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Counter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1Counter is not found in the empty JSON string", V1Counter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Counter is not found in the empty JSON string", V1Counter.openapiRequiredFields.toString())); } } @@ -150,19 +151,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1Counter.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Counter` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Counter` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1Counter.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -215,3 +216,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java index fb97ed902a..2828f55ae1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. */ @ApiModel(description = "CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CounterSet { public static final String SERIALIZED_NAME_COUNTERS = "counters"; @SerializedName(SERIALIZED_NAME_COUNTERS) @@ -162,14 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("counters"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("counters", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("counters"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("counters", "name")); } /** @@ -181,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CounterSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1CounterSet is not found in the empty JSON string", V1CounterSet.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CounterSet is not found in the empty JSON string", V1CounterSet.openapiRequiredFields.toString())); } } @@ -189,19 +188,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1CounterSet.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1CounterSet` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CounterSet` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CounterSet.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -254,3 +253,4 @@ 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 60a28eed1a..5c6d252fa3 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * CronJob represents the configuration of a single cron job. */ @ApiModel(description = "CronJob represents the configuration of a single cron job.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CronJob implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CronJob.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CronJob is not found in the empty JSON string", V1CronJob.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CronJob` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 22cbfc4c7c..6e33b5a2b9 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * CronJobList is a collection of cron jobs. */ @ApiModel(description = "CronJobList is a collection of cron jobs.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CronJobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CronJobList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CronJobList is not found in the empty JSON string", V1CronJobList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CronJobList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CronJobList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1CronJob.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 77aa40ae02..93e3b8d59d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * CronJobSpec describes how the job execution will look like and when it will actually run. */ @ApiModel(description = "CronJobSpec describes how the job execution will look like and when it will actually run.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CronJobSpec { public static final String SERIALIZED_NAME_CONCURRENCY_POLICY = "concurrencyPolicy"; @SerializedName(SERIALIZED_NAME_CONCURRENCY_POLICY) @@ -314,20 +317,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("concurrencyPolicy", "failedJobsHistoryLimit", "jobTemplate", "schedule", "startingDeadlineSeconds", "successfulJobsHistoryLimit", "suspend", "timeZone")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("jobTemplate"); - openapiRequiredFields.add("schedule"); + openapiRequiredFields = new HashSet(Arrays.asList("jobTemplate", "schedule")); } /** @@ -339,7 +332,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CronJobSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CronJobSpec is not found in the empty JSON string", V1CronJobSpec.openapiRequiredFields.toString())); } } @@ -347,27 +340,27 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CronJobSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CronJobSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `timeZone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timeZone").toString())); } } @@ -420,3 +413,4 @@ 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 6d9c094a1f..8c8b44cfda 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * CronJobStatus represents the current state of a cron job. */ @ApiModel(description = "CronJobStatus represents the current state of a cron job.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CronJobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) @@ -190,13 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("active"); - openapiFields.add("lastScheduleTime"); - openapiFields.add("lastSuccessfulTime"); + openapiFields = new HashSet(Arrays.asList("active", "lastScheduleTime", "lastSuccessfulTime")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -208,7 +208,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CronJobStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CronJobStatus is not found in the empty JSON string", V1CronJobStatus.openapiRequiredFields.toString())); } } @@ -216,7 +216,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CronJobStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -225,7 +225,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -285,3 +285,4 @@ 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 4299df0368..f10c654f23 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * CrossVersionObjectReference contains enough information to let you identify the referred resource. */ @ApiModel(description = "CrossVersionObjectReference contains enough information to let you identify the referred resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -178,15 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("apiVersion"); - openapiFields.add("kind"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("kind"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("kind", "name")); } /** @@ -198,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CrossVersionObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CrossVersionObjectReference is not found in the empty JSON string", V1CrossVersionObjectReference.openapiRequiredFields.toString())); } } @@ -206,25 +204,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CrossVersionObjectReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CrossVersionObjectReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -277,3 +275,4 @@ 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 91f77ae448..221a68a319 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * CustomResourceColumnDefinition specifies a column for server side printing. */ @ApiModel(description = "CustomResourceColumnDefinition specifies a column for server side printing.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CustomResourceColumnDefinition { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -259,19 +262,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("description", "format", "jsonPath", "name", "priority", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("jsonPath"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("jsonPath", "name", "type")); } /** @@ -283,7 +277,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceColumnDefinition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CustomResourceColumnDefinition is not found in the empty JSON string", V1CustomResourceColumnDefinition.openapiRequiredFields.toString())); } } @@ -291,31 +285,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CustomResourceColumnDefinition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CustomResourceColumnDefinition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -368,3 +362,4 @@ 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 04cd25973a..177dae465f 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * CustomResourceConversion describes how to convert different versions of a CR. */ @ApiModel(description = "CustomResourceConversion describes how to convert different versions of a CR.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CustomResourceConversion { public static final String SERIALIZED_NAME_STRATEGY = "strategy"; @SerializedName(SERIALIZED_NAME_STRATEGY) @@ -152,13 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("strategy"); - openapiFields.add("webhook"); + openapiFields = new HashSet(Arrays.asList("strategy", "webhook")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("strategy"); + openapiRequiredFields = new HashSet(Arrays.asList("strategy")); } /** @@ -170,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceConversion.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CustomResourceConversion is not found in the empty JSON string", V1CustomResourceConversion.openapiRequiredFields.toString())); } } @@ -178,19 +178,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CustomResourceConversion` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CustomResourceConversion.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -247,3 +247,4 @@ 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 6693c536b3..55e05ad7ac 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. */ @ApiModel(description = "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CustomResourceDefinition implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,16 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -256,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceDefinition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CustomResourceDefinition is not found in the empty JSON string", V1CustomResourceDefinition.openapiRequiredFields.toString())); } } @@ -264,22 +261,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CustomResourceDefinition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CustomResourceDefinition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -342,3 +339,4 @@ 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 9e6d4a1232..1bda60f43b 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * CustomResourceDefinitionCondition contains details for the current condition of this pod. */ @ApiModel(description = "CustomResourceDefinitionCondition contains details for the current condition of this pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CustomResourceDefinitionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -233,17 +236,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); } /** @@ -255,7 +251,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceDefinitionCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CustomResourceDefinitionCondition is not found in the empty JSON string", V1CustomResourceDefinitionCondition.openapiRequiredFields.toString())); } } @@ -263,28 +259,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CustomResourceDefinitionCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CustomResourceDefinitionCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -337,3 +333,4 @@ 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 0b13479b7c..ccc93fb161 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * CustomResourceDefinitionList is a list of CustomResourceDefinition objects. */ @ApiModel(description = "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CustomResourceDefinitionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceDefinitionList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CustomResourceDefinitionList is not found in the empty JSON string", V1CustomResourceDefinitionList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CustomResourceDefinitionList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CustomResourceDefinitionList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1CustomResourceDefinition.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 c7d1e4921b..9099343b41 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition */ @ApiModel(description = "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CustomResourceDefinitionNames { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; @SerializedName(SERIALIZED_NAME_CATEGORIES) @@ -277,18 +280,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("categories", "kind", "listKind", "plural", "shortNames", "singular")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("kind"); - openapiRequiredFields.add("plural"); + openapiRequiredFields = new HashSet(Arrays.asList("kind", "plural")); } /** @@ -300,7 +295,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceDefinitionNames.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CustomResourceDefinitionNames is not found in the empty JSON string", V1CustomResourceDefinitionNames.openapiRequiredFields.toString())); } } @@ -308,36 +303,36 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CustomResourceDefinitionNames` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CustomResourceDefinitionNames.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("categories") != null && !jsonObj.get("categories").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `singular` to be a primitive type in the JSON string but got `%s`", jsonObj.get("singular").toString())); } } @@ -390,3 +385,4 @@ 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 b867c62156..7cae91ced5 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * CustomResourceDefinitionSpec describes how a user wants their resource to appear */ @ApiModel(description = "CustomResourceDefinitionSpec describes how a user wants their resource to appear") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CustomResourceDefinitionSpec { public static final String SERIALIZED_NAME_CONVERSION = "conversion"; @SerializedName(SERIALIZED_NAME_CONVERSION) @@ -272,20 +275,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("conversion", "group", "names", "preserveUnknownFields", "scope", "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"); + openapiRequiredFields = new HashSet(Arrays.asList("group", "names", "scope", "versions")); } /** @@ -297,7 +290,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceDefinitionSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CustomResourceDefinitionSpec is not found in the empty JSON string", V1CustomResourceDefinitionSpec.openapiRequiredFields.toString())); } } @@ -305,14 +298,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CustomResourceDefinitionSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CustomResourceDefinitionSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -321,16 +314,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1CustomResourceConversion.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `versions` to be an array in the JSON string but got `%s`", jsonObj.get("versions").toString())); } JsonArray jsonArrayversions = jsonObj.getAsJsonArray("versions"); @@ -389,3 +382,4 @@ 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 f541681842..6e3d8ebf65 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition */ @ApiModel(description = "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CustomResourceDefinitionStatus { public static final String SERIALIZED_NAME_ACCEPTED_NAMES = "acceptedNames"; @SerializedName(SERIALIZED_NAME_ACCEPTED_NAMES) @@ -198,13 +201,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("acceptedNames"); - openapiFields.add("conditions"); - openapiFields.add("storedVersions"); + openapiFields = new HashSet(Arrays.asList("acceptedNames", "conditions", "storedVersions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -216,7 +216,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceDefinitionStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CustomResourceDefinitionStatus is not found in the empty JSON string", V1CustomResourceDefinitionStatus.openapiRequiredFields.toString())); } } @@ -224,7 +224,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CustomResourceDefinitionStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -237,7 +237,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -248,7 +248,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("storedVersions") != null && !jsonObj.get("storedVersions").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `storedVersions` to be an array in the JSON string but got `%s`", jsonObj.get("storedVersions").toString())); } } @@ -301,3 +301,4 @@ 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 21be89eda4..7c8c1c3c72 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * CustomResourceDefinitionVersion describes a version for CRD. */ @ApiModel(description = "CustomResourceDefinitionVersion describes a version for CRD.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CustomResourceDefinitionVersion { public static final String SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS = "additionalPrinterColumns"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS) @@ -362,22 +365,10 @@ private String toIndentedString(Object o) { 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("selectableFields"); - openapiFields.add("served"); - openapiFields.add("storage"); - openapiFields.add("subresources"); + openapiFields = new HashSet(Arrays.asList("additionalPrinterColumns", "deprecated", "deprecationWarning", "name", "schema", "selectableFields", "served", "storage", "subresources")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("served"); - openapiRequiredFields.add("storage"); + openapiRequiredFields = new HashSet(Arrays.asList("name", "served", "storage")); } /** @@ -389,7 +380,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceDefinitionVersion.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CustomResourceDefinitionVersion is not found in the empty JSON string", V1CustomResourceDefinitionVersion.openapiRequiredFields.toString())); } } @@ -397,14 +388,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CustomResourceDefinitionVersion` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CustomResourceDefinitionVersion.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -413,7 +404,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -423,10 +414,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -437,7 +428,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayselectableFields != null) { // ensure the json data is an array if (!jsonObj.get("selectableFields").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `selectableFields` to be an array in the JSON string but got `%s`", jsonObj.get("selectableFields").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `selectableFields` to be an array in the JSON string but got `%s`", jsonObj.get("selectableFields").toString())); } // validate the optional field `selectableFields` (array) @@ -501,3 +492,4 @@ 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 a87d936a91..1e06e77ad5 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. */ @ApiModel(description = "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CustomResourceSubresourceScale { public static final String SERIALIZED_NAME_LABEL_SELECTOR_PATH = "labelSelectorPath"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR_PATH) @@ -178,15 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("labelSelectorPath"); - openapiFields.add("specReplicasPath"); - openapiFields.add("statusReplicasPath"); + openapiFields = new HashSet(Arrays.asList("labelSelectorPath", "specReplicasPath", "statusReplicasPath")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("specReplicasPath"); - openapiRequiredFields.add("statusReplicasPath"); + openapiRequiredFields = new HashSet(Arrays.asList("specReplicasPath", "statusReplicasPath")); } /** @@ -198,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceSubresourceScale.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CustomResourceSubresourceScale is not found in the empty JSON string", V1CustomResourceSubresourceScale.openapiRequiredFields.toString())); } } @@ -206,25 +204,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CustomResourceSubresourceScale` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1CustomResourceSubresourceScale.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `statusReplicasPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("statusReplicasPath").toString())); } } @@ -277,3 +275,4 @@ 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 80efc94252..3358897ff0 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * CustomResourceSubresources defines the status and scale subresources for CustomResources. */ @ApiModel(description = "CustomResourceSubresources defines the status and scale subresources for CustomResources.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CustomResourceSubresources { public static final String SERIALIZED_NAME_SCALE = "scale"; @SerializedName(SERIALIZED_NAME_SCALE) @@ -152,12 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("scale"); - openapiFields.add("status"); + openapiFields = new HashSet(Arrays.asList("scale", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -169,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceSubresources.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CustomResourceSubresources is not found in the empty JSON string", V1CustomResourceSubresources.openapiRequiredFields.toString())); } } @@ -177,7 +178,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CustomResourceSubresources` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -236,3 +237,4 @@ 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 b6ca600d9d..f560905743 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * CustomResourceValidation is a list of validation methods for CustomResources. */ @ApiModel(description = "CustomResourceValidation is a list of validation methods for CustomResources.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1CustomResourceValidation { public static final String SERIALIZED_NAME_OPEN_A_P_I_V3_SCHEMA = "openAPIV3Schema"; @SerializedName(SERIALIZED_NAME_OPEN_A_P_I_V3_SCHEMA) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("openAPIV3Schema"); + openapiFields = new HashSet(Arrays.asList("openAPIV3Schema")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1CustomResourceValidation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1CustomResourceValidation is not found in the empty JSON string", V1CustomResourceValidation.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CustomResourceValidation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ 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 f9137a1cfc..f88264c511 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * DaemonEndpoint contains information about a single Daemon endpoint. */ @ApiModel(description = "DaemonEndpoint contains information about a single Daemon endpoint.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DaemonEndpoint { public static final String SERIALIZED_NAME_PORT = "Port"; @SerializedName(SERIALIZED_NAME_PORT) @@ -124,12 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("Port"); + openapiFields = new HashSet(Arrays.asList("Port")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("Port"); + openapiRequiredFields = new HashSet(Arrays.asList("Port")); } /** @@ -141,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DaemonEndpoint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DaemonEndpoint is not found in the empty JSON string", V1DaemonEndpoint.openapiRequiredFields.toString())); } } @@ -149,14 +150,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DaemonEndpoint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1DaemonEndpoint.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -211,3 +212,4 @@ 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 82432cfa94..f4ce1a425e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * DaemonSet represents the configuration of a daemon set. */ @ApiModel(description = "DaemonSet represents the configuration of a daemon set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DaemonSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DaemonSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DaemonSet is not found in the empty JSON string", V1DaemonSet.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DaemonSet` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 5ecaf95c62..b856db2f13 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * DaemonSetCondition describes the state of a DaemonSet at a certain point. */ @ApiModel(description = "DaemonSetCondition describes the state of a DaemonSet at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DaemonSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -233,17 +236,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); } /** @@ -255,7 +251,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DaemonSetCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DaemonSetCondition is not found in the empty JSON string", V1DaemonSetCondition.openapiRequiredFields.toString())); } } @@ -263,28 +259,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DaemonSetCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1DaemonSetCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -337,3 +333,4 @@ 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 bda70a0e19..fbff0c4c5d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * DaemonSetList is a collection of daemon sets. */ @ApiModel(description = "DaemonSetList is a collection of daemon sets.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DaemonSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DaemonSetList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DaemonSetList is not found in the empty JSON string", V1DaemonSetList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DaemonSetList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1DaemonSetList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1DaemonSet.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 98f9afe7f6..0deae6aa21 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * DaemonSetSpec is the specification of a daemon set. */ @ApiModel(description = "DaemonSetSpec is the specification of a daemon set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DaemonSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) @@ -235,17 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("minReadySeconds", "revisionHistoryLimit", "selector", "template", "updateStrategy")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("selector"); - openapiRequiredFields.add("template"); + openapiRequiredFields = new HashSet(Arrays.asList("selector", "template")); } /** @@ -257,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DaemonSetSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DaemonSetSpec is not found in the empty JSON string", V1DaemonSetSpec.openapiRequiredFields.toString())); } } @@ -265,14 +261,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DaemonSetSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1DaemonSetSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -335,3 +331,4 @@ 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 6c009290ab..f924fb29f2 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * DaemonSetStatus represents the current status of a daemon set. */ @ApiModel(description = "DaemonSetStatus represents the current status of a daemon set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DaemonSetStatus { public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) @@ -378,24 +381,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("collisionCount", "conditions", "currentNumberScheduled", "desiredNumberScheduled", "numberAvailable", "numberMisscheduled", "numberReady", "numberUnavailable", "observedGeneration", "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"); + openapiRequiredFields = new HashSet(Arrays.asList("currentNumberScheduled", "desiredNumberScheduled", "numberMisscheduled", "numberReady")); } /** @@ -407,7 +396,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DaemonSetStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DaemonSetStatus is not found in the empty JSON string", V1DaemonSetStatus.openapiRequiredFields.toString())); } } @@ -415,14 +404,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DaemonSetStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1DaemonSetStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -431,7 +420,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -491,3 +480,4 @@ 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 7b11a3c48f..b35c0a92e5 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. */ @ApiModel(description = "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DaemonSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) @@ -152,12 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("rollingUpdate"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("rollingUpdate", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -169,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DaemonSetUpdateStrategy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DaemonSetUpdateStrategy is not found in the empty JSON string", V1DaemonSetUpdateStrategy.openapiRequiredFields.toString())); } } @@ -177,7 +178,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DaemonSetUpdateStrategy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -186,7 +187,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1RollingUpdateDaemonSet.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -239,3 +240,4 @@ 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 80e84373dc..692267a02d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * DeleteOptions may be provided when deleting an API object. */ @ApiModel(description = "DeleteOptions may be provided when deleting an API object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeleteOptions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -324,18 +327,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("apiVersion"); - openapiFields.add("dryRun"); - openapiFields.add("gracePeriodSeconds"); - openapiFields.add("ignoreStoreReadErrorWithClusterBreakingPotential"); - openapiFields.add("kind"); - openapiFields.add("orphanDependents"); - openapiFields.add("preconditions"); - openapiFields.add("propagationPolicy"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "dryRun", "gracePeriodSeconds", "ignoreStoreReadErrorWithClusterBreakingPotential", "kind", "orphanDependents", "preconditions", "propagationPolicy")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -347,7 +342,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeleteOptions.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeleteOptions is not found in the empty JSON string", V1DeleteOptions.openapiRequiredFields.toString())); } } @@ -355,26 +350,26 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeleteOptions` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `propagationPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("propagationPolicy").toString())); } } @@ -427,3 +422,4 @@ 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 9fdf9f4ca9..16d2ee1a87 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * Deployment enables declarative updates for Pods and ReplicaSets. */ @ApiModel(description = "Deployment enables declarative updates for Pods and ReplicaSets.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Deployment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Deployment.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Deployment is not found in the empty JSON string", V1Deployment.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Deployment` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 128a6938e6..8a1bd6ac4b 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * DeploymentCondition describes the state of a deployment at a certain point. */ @ApiModel(description = "DeploymentCondition describes the state of a deployment at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeploymentCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -260,18 +263,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "lastUpdateTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); } /** @@ -283,7 +278,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeploymentCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeploymentCondition is not found in the empty JSON string", V1DeploymentCondition.openapiRequiredFields.toString())); } } @@ -291,28 +286,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeploymentCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1DeploymentCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -365,3 +360,4 @@ 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 77d7851bcc..e4ff0d8097 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * DeploymentList is a list of Deployments. */ @ApiModel(description = "DeploymentList is a list of Deployments.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeploymentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeploymentList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeploymentList is not found in the empty JSON string", V1DeploymentList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeploymentList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1DeploymentList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1Deployment.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 cf44da479d..ebfbed5a9b 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * DeploymentSpec is the specification of the desired behavior of the Deployment. */ @ApiModel(description = "DeploymentSpec is the specification of the desired behavior of the Deployment.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeploymentSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) @@ -316,20 +319,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("minReadySeconds", "paused", "progressDeadlineSeconds", "replicas", "revisionHistoryLimit", "selector", "strategy", "template")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("selector"); - openapiRequiredFields.add("template"); + openapiRequiredFields = new HashSet(Arrays.asList("selector", "template")); } /** @@ -341,7 +334,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeploymentSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeploymentSpec is not found in the empty JSON string", V1DeploymentSpec.openapiRequiredFields.toString())); } } @@ -349,14 +342,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeploymentSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1DeploymentSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -419,3 +412,4 @@ 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 eefa3518dd..a446cdc02a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * DeploymentStatus is the most recently observed status of the Deployment. */ @ApiModel(description = "DeploymentStatus is the most recently observed status of the Deployment.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeploymentStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) @@ -351,19 +354,10 @@ private String toIndentedString(Object o) { 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("terminatingReplicas"); - openapiFields.add("unavailableReplicas"); - openapiFields.add("updatedReplicas"); + openapiFields = new HashSet(Arrays.asList("availableReplicas", "collisionCount", "conditions", "observedGeneration", "readyReplicas", "replicas", "terminatingReplicas", "unavailableReplicas", "updatedReplicas")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -375,7 +369,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeploymentStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeploymentStatus is not found in the empty JSON string", V1DeploymentStatus.openapiRequiredFields.toString())); } } @@ -383,7 +377,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeploymentStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -392,7 +386,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -452,3 +446,4 @@ 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 c49f60ecac..9d129e3495 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * DeploymentStrategy describes how to replace existing pods with new ones. */ @ApiModel(description = "DeploymentStrategy describes how to replace existing pods with new ones.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeploymentStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) @@ -152,12 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("rollingUpdate"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("rollingUpdate", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -169,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeploymentStrategy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeploymentStrategy is not found in the empty JSON string", V1DeploymentStrategy.openapiRequiredFields.toString())); } } @@ -177,7 +178,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeploymentStrategy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -186,7 +187,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1RollingUpdateDeployment.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -239,3 +240,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Device.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Device.java index 4505b2bc77..912f7183a3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Device.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Device.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -52,6 +54,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -59,7 +62,7 @@ * Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. */ @ApiModel(description = "Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Device { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @@ -478,23 +481,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allNodes"); - openapiFields.add("allowMultipleAllocations"); - openapiFields.add("attributes"); - openapiFields.add("bindingConditions"); - openapiFields.add("bindingFailureConditions"); - openapiFields.add("bindsToNode"); - openapiFields.add("capacity"); - openapiFields.add("consumesCounters"); - openapiFields.add("name"); - openapiFields.add("nodeName"); - openapiFields.add("nodeSelector"); - openapiFields.add("taints"); + openapiFields = new HashSet(Arrays.asList("allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "name", "nodeName", "nodeSelector", "taints")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -506,7 +496,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Device.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1Device is not found in the empty JSON string", V1Device.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Device is not found in the empty JSON string", V1Device.openapiRequiredFields.toString())); } } @@ -514,31 +504,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1Device.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Device` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Device` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1Device.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("bindingConditions") != null && !jsonObj.get("bindingConditions").isJsonNull() && !jsonObj.get("bindingConditions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `bindingConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingConditions").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `bindingConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingConditions").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("bindingFailureConditions") != null && !jsonObj.get("bindingFailureConditions").isJsonNull() && !jsonObj.get("bindingFailureConditions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `bindingFailureConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingFailureConditions").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `bindingFailureConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingFailureConditions").toString())); } if (jsonObj.get("consumesCounters") != null && !jsonObj.get("consumesCounters").isJsonNull()) { JsonArray jsonArrayconsumesCounters = jsonObj.getAsJsonArray("consumesCounters"); if (jsonArrayconsumesCounters != null) { // ensure the json data is an array if (!jsonObj.get("consumesCounters").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `consumesCounters` to be an array in the JSON string but got `%s`", jsonObj.get("consumesCounters").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `consumesCounters` to be an array in the JSON string but got `%s`", jsonObj.get("consumesCounters").toString())); } // validate the optional field `consumesCounters` (array) @@ -548,10 +538,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); } // validate the optional field `nodeSelector` if (jsonObj.get("nodeSelector") != null && !jsonObj.get("nodeSelector").isJsonNull()) { @@ -562,7 +552,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -622,3 +612,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java index d3013eae51..b63de593f1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * DeviceAllocationConfiguration gets embedded in an AllocationResult. */ @ApiModel(description = "DeviceAllocationConfiguration gets embedded in an AllocationResult.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeviceAllocationConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) @@ -189,14 +192,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("opaque"); - openapiFields.add("requests"); - openapiFields.add("source"); + openapiFields = new HashSet(Arrays.asList("opaque", "requests", "source")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("source"); + openapiRequiredFields = new HashSet(Arrays.asList("source")); } /** @@ -208,7 +207,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeviceAllocationConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceAllocationConfiguration is not found in the empty JSON string", V1DeviceAllocationConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeviceAllocationConfiguration is not found in the empty JSON string", V1DeviceAllocationConfiguration.openapiRequiredFields.toString())); } } @@ -216,14 +215,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1DeviceAllocationConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceAllocationConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceAllocationConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1DeviceAllocationConfiguration.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,10 +232,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("requests") != null && !jsonObj.get("requests").isJsonNull() && !jsonObj.get("requests").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); } if (!jsonObj.get("source").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source").toString())); } } @@ -289,3 +288,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java index a4f7d2e64f..edc51b9330 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * DeviceAllocationResult is the result of allocating devices. */ @ApiModel(description = "DeviceAllocationResult is the result of allocating devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeviceAllocationResult { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -171,12 +174,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("config"); - openapiFields.add("results"); + openapiFields = new HashSet(Arrays.asList("config", "results")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -188,7 +189,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeviceAllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceAllocationResult is not found in the empty JSON string", V1DeviceAllocationResult.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeviceAllocationResult is not found in the empty JSON string", V1DeviceAllocationResult.openapiRequiredFields.toString())); } } @@ -196,7 +197,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1DeviceAllocationResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceAllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceAllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -205,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayconfig != null) { // ensure the json data is an array if (!jsonObj.get("config").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `config` to be an array in the JSON string but got `%s`", jsonObj.get("config").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `config` to be an array in the JSON string but got `%s`", jsonObj.get("config").toString())); } // validate the optional field `config` (array) @@ -219,7 +220,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayresults != null) { // ensure the json data is an array if (!jsonObj.get("results").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `results` to be an array in the JSON string but got `%s`", jsonObj.get("results").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `results` to be an array in the JSON string but got `%s`", jsonObj.get("results").toString())); } // validate the optional field `results` (array) @@ -279,3 +280,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java index 169be2b9e0..614785bd5f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * DeviceAttribute must have exactly one field set. */ @ApiModel(description = "DeviceAttribute must have exactly one field set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeviceAttribute { public static final String SERIALIZED_NAME_BOOL = "bool"; @SerializedName(SERIALIZED_NAME_BOOL) @@ -205,14 +208,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("bool"); - openapiFields.add("int"); - openapiFields.add("string"); - openapiFields.add("version"); + openapiFields = new HashSet(Arrays.asList("bool", "int", "string", "version")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -224,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeviceAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceAttribute is not found in the empty JSON string", V1DeviceAttribute.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeviceAttribute is not found in the empty JSON string", V1DeviceAttribute.openapiRequiredFields.toString())); } } @@ -232,15 +231,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1DeviceAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("string") != null && !jsonObj.get("string").isJsonNull()) && !jsonObj.get("string").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `string` to be a primitive type in the JSON string but got `%s`", jsonObj.get("string").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `string` to be a primitive type in the JSON string but got `%s`", jsonObj.get("string").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } } @@ -293,3 +292,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java index 2372eb6bc4..badbb88576 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * DeviceCapacity describes a quantity associated with a device. */ @ApiModel(description = "DeviceCapacity describes a quantity associated with a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeviceCapacity { public static final String SERIALIZED_NAME_REQUEST_POLICY = "requestPolicy"; @SerializedName(SERIALIZED_NAME_REQUEST_POLICY) @@ -153,13 +156,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("requestPolicy"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("requestPolicy", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("value")); } /** @@ -171,7 +171,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeviceCapacity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceCapacity is not found in the empty JSON string", V1DeviceCapacity.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeviceCapacity is not found in the empty JSON string", V1DeviceCapacity.openapiRequiredFields.toString())); } } @@ -179,14 +179,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1DeviceCapacity.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceCapacity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceCapacity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1DeviceCapacity.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -195,7 +195,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1CapacityRequestPolicy.validateJsonElement(jsonObj.get("requestPolicy")); } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -248,3 +248,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java index 4cc1949fcb..c6cc2f3065 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * DeviceClaim defines how to request devices with a ResourceClaim. */ @ApiModel(description = "DeviceClaim defines how to request devices with a ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeviceClaim { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -207,13 +210,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("config"); - openapiFields.add("constraints"); - openapiFields.add("requests"); + openapiFields = new HashSet(Arrays.asList("config", "constraints", "requests")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -225,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeviceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceClaim is not found in the empty JSON string", V1DeviceClaim.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeviceClaim is not found in the empty JSON string", V1DeviceClaim.openapiRequiredFields.toString())); } } @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1DeviceClaim.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -242,7 +242,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayconfig != null) { // ensure the json data is an array if (!jsonObj.get("config").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `config` to be an array in the JSON string but got `%s`", jsonObj.get("config").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `config` to be an array in the JSON string but got `%s`", jsonObj.get("config").toString())); } // validate the optional field `config` (array) @@ -256,7 +256,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayconstraints != null) { // ensure the json data is an array if (!jsonObj.get("constraints").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `constraints` to be an array in the JSON string but got `%s`", jsonObj.get("constraints").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `constraints` to be an array in the JSON string but got `%s`", jsonObj.get("constraints").toString())); } // validate the optional field `constraints` (array) @@ -270,7 +270,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayrequests != null) { // ensure the json data is an array if (!jsonObj.get("requests").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); } // validate the optional field `requests` (array) @@ -330,3 +330,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java index 4da9de521f..c1c3c850d8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. */ @ApiModel(description = "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeviceClaimConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) @@ -162,12 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("opaque"); - openapiFields.add("requests"); + openapiFields = new HashSet(Arrays.asList("opaque", "requests")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -179,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeviceClaimConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceClaimConfiguration is not found in the empty JSON string", V1DeviceClaimConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeviceClaimConfiguration is not found in the empty JSON string", V1DeviceClaimConfiguration.openapiRequiredFields.toString())); } } @@ -187,7 +188,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1DeviceClaimConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceClaimConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceClaimConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -197,7 +198,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("requests") != null && !jsonObj.get("requests").isJsonNull() && !jsonObj.get("requests").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); } } @@ -250,3 +251,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java index 09421306c0..3e261a76fe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeviceClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,15 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -227,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeviceClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceClass is not found in the empty JSON string", V1DeviceClass.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeviceClass is not found in the empty JSON string", V1DeviceClass.openapiRequiredFields.toString())); } } @@ -235,22 +233,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1DeviceClass.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1DeviceClass.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -309,3 +307,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java index 636fbb1631..ec48031d20 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * DeviceClassConfiguration is used in DeviceClass. */ @ApiModel(description = "DeviceClassConfiguration is used in DeviceClass.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeviceClassConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("opaque"); + openapiFields = new HashSet(Arrays.asList("opaque")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeviceClassConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceClassConfiguration is not found in the empty JSON string", V1DeviceClassConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeviceClassConfiguration is not found in the empty JSON string", V1DeviceClassConfiguration.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1DeviceClassConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceClassConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceClassConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java index 4e77e879a2..162df58199 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * DeviceClassList is a collection of classes. */ @ApiModel(description = "DeviceClassList is a collection of classes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeviceClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeviceClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceClassList is not found in the empty JSON string", V1DeviceClassList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeviceClassList is not found in the empty JSON string", V1DeviceClassList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1DeviceClassList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1DeviceClassList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1DeviceClass.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java index a2b050a7cf..3c9dc53036 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. */ @ApiModel(description = "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeviceClassSpec { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -198,13 +201,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("config"); - openapiFields.add("extendedResourceName"); - openapiFields.add("selectors"); + openapiFields = new HashSet(Arrays.asList("config", "extendedResourceName", "selectors")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -216,7 +216,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeviceClassSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceClassSpec is not found in the empty JSON string", V1DeviceClassSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeviceClassSpec is not found in the empty JSON string", V1DeviceClassSpec.openapiRequiredFields.toString())); } } @@ -224,7 +224,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1DeviceClassSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceClassSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceClassSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayconfig != null) { // ensure the json data is an array if (!jsonObj.get("config").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `config` to be an array in the JSON string but got `%s`", jsonObj.get("config").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `config` to be an array in the JSON string but got `%s`", jsonObj.get("config").toString())); } // validate the optional field `config` (array) @@ -243,14 +243,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } if ((jsonObj.get("extendedResourceName") != null && !jsonObj.get("extendedResourceName").isJsonNull()) && !jsonObj.get("extendedResourceName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `extendedResourceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("extendedResourceName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `extendedResourceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("extendedResourceName").toString())); } if (jsonObj.get("selectors") != null && !jsonObj.get("selectors").isJsonNull()) { JsonArray jsonArrayselectors = jsonObj.getAsJsonArray("selectors"); if (jsonArrayselectors != null) { // ensure the json data is an array if (!jsonObj.get("selectors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); } // validate the optional field `selectors` (array) @@ -310,3 +310,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java index b9521a9322..07f599ebb9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * DeviceConstraint must have exactly one field set besides Requests. */ @ApiModel(description = "DeviceConstraint must have exactly one field set besides Requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeviceConstraint { public static final String SERIALIZED_NAME_DISTINCT_ATTRIBUTE = "distinctAttribute"; @SerializedName(SERIALIZED_NAME_DISTINCT_ATTRIBUTE) @@ -188,13 +191,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("distinctAttribute"); - openapiFields.add("matchAttribute"); - openapiFields.add("requests"); + openapiFields = new HashSet(Arrays.asList("distinctAttribute", "matchAttribute", "requests")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -206,7 +206,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeviceConstraint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceConstraint is not found in the empty JSON string", V1DeviceConstraint.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeviceConstraint is not found in the empty JSON string", V1DeviceConstraint.openapiRequiredFields.toString())); } } @@ -214,19 +214,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1DeviceConstraint.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceConstraint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceConstraint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("distinctAttribute") != null && !jsonObj.get("distinctAttribute").isJsonNull()) && !jsonObj.get("distinctAttribute").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `distinctAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("distinctAttribute").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `distinctAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("distinctAttribute").toString())); } if ((jsonObj.get("matchAttribute") != null && !jsonObj.get("matchAttribute").isJsonNull()) && !jsonObj.get("matchAttribute").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `matchAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("matchAttribute").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `matchAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("matchAttribute").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("requests") != null && !jsonObj.get("requests").isJsonNull() && !jsonObj.get("requests").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); } } @@ -279,3 +279,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java index 8a12d37b5d..6f71ca110a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. */ @ApiModel(description = "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeviceCounterConsumption { public static final String SERIALIZED_NAME_COUNTER_SET = "counterSet"; @SerializedName(SERIALIZED_NAME_COUNTER_SET) @@ -162,14 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("counterSet"); - openapiFields.add("counters"); + openapiFields = new HashSet(Arrays.asList("counterSet", "counters")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("counterSet"); - openapiRequiredFields.add("counters"); + openapiRequiredFields = new HashSet(Arrays.asList("counterSet", "counters")); } /** @@ -181,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeviceCounterConsumption.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceCounterConsumption is not found in the empty JSON string", V1DeviceCounterConsumption.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeviceCounterConsumption is not found in the empty JSON string", V1DeviceCounterConsumption.openapiRequiredFields.toString())); } } @@ -189,19 +188,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1DeviceCounterConsumption.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceCounterConsumption` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceCounterConsumption` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1DeviceCounterConsumption.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("counterSet").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `counterSet` to be a primitive type in the JSON string but got `%s`", jsonObj.get("counterSet").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `counterSet` to be a primitive type in the JSON string but got `%s`", jsonObj.get("counterSet").toString())); } } @@ -254,3 +253,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java index 6c16093425..cc72e3147e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. With FirstAvailable it is also possible to provide a prioritized list of requests. */ @ApiModel(description = "DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. With FirstAvailable it is also possible to provide a prioritized list of requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeviceRequest { public static final String SERIALIZED_NAME_EXACTLY = "exactly"; @SerializedName(SERIALIZED_NAME_EXACTLY) @@ -190,14 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("exactly"); - openapiFields.add("firstAvailable"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("exactly", "firstAvailable", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -209,7 +208,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeviceRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceRequest is not found in the empty JSON string", V1DeviceRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeviceRequest is not found in the empty JSON string", V1DeviceRequest.openapiRequiredFields.toString())); } } @@ -217,14 +216,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1DeviceRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1DeviceRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -237,7 +236,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayfirstAvailable != null) { // ensure the json data is an array if (!jsonObj.get("firstAvailable").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `firstAvailable` to be an array in the JSON string but got `%s`", jsonObj.get("firstAvailable").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `firstAvailable` to be an array in the JSON string but got `%s`", jsonObj.get("firstAvailable").toString())); } // validate the optional field `firstAvailable` (array) @@ -247,7 +246,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -300,3 +299,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java index 064f0b9b58..91cc0f936a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * DeviceRequestAllocationResult contains the allocation result for one request. */ @ApiModel(description = "DeviceRequestAllocationResult contains the allocation result for one request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeviceRequestAllocationResult { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -405,24 +408,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("adminAccess"); - openapiFields.add("bindingConditions"); - openapiFields.add("bindingFailureConditions"); - openapiFields.add("consumedCapacity"); - openapiFields.add("device"); - openapiFields.add("driver"); - openapiFields.add("pool"); - openapiFields.add("request"); - openapiFields.add("shareID"); - openapiFields.add("tolerations"); + openapiFields = new HashSet(Arrays.asList("adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "tolerations")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("device"); - openapiRequiredFields.add("driver"); - openapiRequiredFields.add("pool"); - openapiRequiredFields.add("request"); + openapiRequiredFields = new HashSet(Arrays.asList("device", "driver", "pool", "request")); } /** @@ -434,7 +423,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeviceRequestAllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceRequestAllocationResult is not found in the empty JSON string", V1DeviceRequestAllocationResult.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeviceRequestAllocationResult is not found in the empty JSON string", V1DeviceRequestAllocationResult.openapiRequiredFields.toString())); } } @@ -442,46 +431,46 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1DeviceRequestAllocationResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceRequestAllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceRequestAllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1DeviceRequestAllocationResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("bindingConditions") != null && !jsonObj.get("bindingConditions").isJsonNull() && !jsonObj.get("bindingConditions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `bindingConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingConditions").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `bindingConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingConditions").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("bindingFailureConditions") != null && !jsonObj.get("bindingFailureConditions").isJsonNull() && !jsonObj.get("bindingFailureConditions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `bindingFailureConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingFailureConditions").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `bindingFailureConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingFailureConditions").toString())); } if (!jsonObj.get("device").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").toString())); } if (!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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `pool` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pool").toString())); } if (!jsonObj.get("request").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `request` to be a primitive type in the JSON string but got `%s`", jsonObj.get("request").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `request` to be a primitive type in the JSON string but got `%s`", jsonObj.get("request").toString())); } if ((jsonObj.get("shareID") != null && !jsonObj.get("shareID").isJsonNull()) && !jsonObj.get("shareID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -541,3 +530,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java index 123d62b324..76c3548bd7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * DeviceSelector must have exactly one field set. */ @ApiModel(description = "DeviceSelector must have exactly one field set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeviceSelector { public static final String SERIALIZED_NAME_CEL = "cel"; @SerializedName(SERIALIZED_NAME_CEL) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("cel"); + openapiFields = new HashSet(Arrays.asList("cel")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeviceSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceSelector is not found in the empty JSON string", V1DeviceSelector.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeviceSelector is not found in the empty JSON string", V1DeviceSelector.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1DeviceSelector.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java index 8a05dcada6..388eb86399 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device. */ @ApiModel(description = "DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeviceSubRequest { public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) @@ -307,19 +310,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allocationMode"); - openapiFields.add("capacity"); - openapiFields.add("count"); - openapiFields.add("deviceClassName"); - openapiFields.add("name"); - openapiFields.add("selectors"); - openapiFields.add("tolerations"); + openapiFields = new HashSet(Arrays.asList("allocationMode", "capacity", "count", "deviceClassName", "name", "selectors", "tolerations")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("deviceClassName"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("deviceClassName", "name")); } /** @@ -331,7 +325,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeviceSubRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceSubRequest is not found in the empty JSON string", V1DeviceSubRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeviceSubRequest is not found in the empty JSON string", V1DeviceSubRequest.openapiRequiredFields.toString())); } } @@ -339,36 +333,36 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1DeviceSubRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceSubRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceSubRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1DeviceSubRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allocationMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMode").toString())); } // validate the optional field `capacity` if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { V1CapacityRequirements.validateJsonElement(jsonObj.get("capacity")); } if (!jsonObj.get("deviceClassName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (jsonObj.get("selectors") != null && !jsonObj.get("selectors").isJsonNull()) { JsonArray jsonArrayselectors = jsonObj.getAsJsonArray("selectors"); if (jsonArrayselectors != null) { // ensure the json data is an array if (!jsonObj.get("selectors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); } // validate the optional field `selectors` (array) @@ -382,7 +376,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -442,3 +436,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java index 6cb50a0252..9e31f11fed 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. */ @ApiModel(description = "The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeviceTaint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) @@ -206,16 +209,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("effect", "key", "timeAdded", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("effect"); - openapiRequiredFields.add("key"); + openapiRequiredFields = new HashSet(Arrays.asList("effect", "key")); } /** @@ -227,7 +224,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeviceTaint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceTaint is not found in the empty JSON string", V1DeviceTaint.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeviceTaint is not found in the empty JSON string", V1DeviceTaint.openapiRequiredFields.toString())); } } @@ -235,25 +232,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1DeviceTaint.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceTaint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceTaint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1DeviceTaint.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -306,3 +303,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java index 9974bbb1e8..4c46e0e903 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. */ @ApiModel(description = "The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator .") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DeviceToleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) @@ -232,15 +235,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("effect", "key", "operator", "tolerationSeconds", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -252,7 +250,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DeviceToleration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1DeviceToleration is not found in the empty JSON string", V1DeviceToleration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DeviceToleration is not found in the empty JSON string", V1DeviceToleration.openapiRequiredFields.toString())); } } @@ -260,21 +258,21 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1DeviceToleration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1DeviceToleration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DeviceToleration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -327,3 +325,4 @@ 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 486c0d0a45..16929bfab1 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode. */ @ApiModel(description = "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DownwardAPIProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) @@ -135,11 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("items"); + openapiFields = new HashSet(Arrays.asList("items")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -151,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DownwardAPIProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DownwardAPIProjection is not found in the empty JSON string", V1DownwardAPIProjection.openapiRequiredFields.toString())); } } @@ -159,7 +161,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DownwardAPIProjection` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -168,7 +170,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -228,3 +230,4 @@ 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 8d191fc5eb..302f3708c8 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * DownwardAPIVolumeFile represents information to create the file containing the pod field */ @ApiModel(description = "DownwardAPIVolumeFile represents information to create the file containing the pod field") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DownwardAPIVolumeFile { public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; @SerializedName(SERIALIZED_NAME_FIELD_REF) @@ -207,15 +210,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("fieldRef", "mode", "path", "resourceFieldRef")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("path"); + openapiRequiredFields = new HashSet(Arrays.asList("path")); } /** @@ -227,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DownwardAPIVolumeFile.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DownwardAPIVolumeFile is not found in the empty JSON string", V1DownwardAPIVolumeFile.openapiRequiredFields.toString())); } } @@ -235,14 +233,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DownwardAPIVolumeFile` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1DownwardAPIVolumeFile.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -251,7 +249,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ObjectFieldSelector.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -308,3 +306,4 @@ 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 6df9507d64..650a4d2306 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1DownwardAPIVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) @@ -162,12 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("defaultMode"); - openapiFields.add("items"); + openapiFields = new HashSet(Arrays.asList("defaultMode", "items")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -179,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1DownwardAPIVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1DownwardAPIVolumeSource is not found in the empty JSON string", V1DownwardAPIVolumeSource.openapiRequiredFields.toString())); } } @@ -187,7 +188,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1DownwardAPIVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -196,7 +197,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -256,3 +257,4 @@ 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 3e7b83944f..7ca4c8a1ce 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1EmptyDirVolumeSource { public static final String SERIALIZED_NAME_MEDIUM = "medium"; @SerializedName(SERIALIZED_NAME_MEDIUM) @@ -152,12 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("medium"); - openapiFields.add("sizeLimit"); + openapiFields = new HashSet(Arrays.asList("medium", "sizeLimit")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -169,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EmptyDirVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1EmptyDirVolumeSource is not found in the empty JSON string", V1EmptyDirVolumeSource.openapiRequiredFields.toString())); } } @@ -177,15 +178,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1EmptyDirVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sizeLimit` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sizeLimit").toString())); } } @@ -238,3 +239,4 @@ 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 a7a8b3512c..042b9098bb 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -50,6 +52,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -57,7 +60,7 @@ * Endpoint represents a single logical \"backend\" implementing a service. */ @ApiModel(description = "Endpoint represents a single logical \"backend\" implementing a service.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Endpoint { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) @@ -336,19 +339,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("addresses", "conditions", "deprecatedTopology", "hints", "hostname", "nodeName", "targetRef", "zone")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("addresses"); + openapiRequiredFields = new HashSet(Arrays.asList("addresses")); } /** @@ -360,7 +354,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Endpoint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Endpoint is not found in the empty JSON string", V1Endpoint.openapiRequiredFields.toString())); } } @@ -368,14 +362,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Endpoint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1Endpoint.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -383,7 +377,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -394,17 +388,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1EndpointHints.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `zone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("zone").toString())); } } @@ -457,3 +451,4 @@ 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 d1f7e69d81..d08f362f00 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * EndpointAddress is a tuple that describes single IP address. Deprecated: This API is deprecated in v1.33+. */ @ApiModel(description = "EndpointAddress is a tuple that describes single IP address. Deprecated: This API is deprecated in v1.33+.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1EndpointAddress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) @@ -206,15 +209,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("hostname", "ip", "nodeName", "targetRef")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("ip"); + openapiRequiredFields = new HashSet(Arrays.asList("ip")); } /** @@ -226,7 +224,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EndpointAddress.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1EndpointAddress is not found in the empty JSON string", V1EndpointAddress.openapiRequiredFields.toString())); } } @@ -234,25 +232,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1EndpointAddress` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1EndpointAddress.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -309,3 +307,4 @@ 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 b9eec01d2c..dde26c0adb 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * EndpointConditions represents the current condition of an endpoint. */ @ApiModel(description = "EndpointConditions represents the current condition of an endpoint.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1EndpointConditions { public static final String SERIALIZED_NAME_READY = "ready"; @SerializedName(SERIALIZED_NAME_READY) @@ -178,13 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("ready"); - openapiFields.add("serving"); - openapiFields.add("terminating"); + openapiFields = new HashSet(Arrays.asList("ready", "serving", "terminating")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -196,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EndpointConditions.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1EndpointConditions is not found in the empty JSON string", V1EndpointConditions.openapiRequiredFields.toString())); } } @@ -204,7 +204,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1EndpointConditions` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -259,3 +259,4 @@ 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 248f5f0d6b..96c0c6a12d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * EndpointHints provides hints describing how an endpoint should be consumed. */ @ApiModel(description = "EndpointHints provides hints describing how an endpoint should be consumed.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1EndpointHints { public static final String SERIALIZED_NAME_FOR_NODES = "forNodes"; @SerializedName(SERIALIZED_NAME_FOR_NODES) @@ -171,12 +174,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("forNodes"); - openapiFields.add("forZones"); + openapiFields = new HashSet(Arrays.asList("forNodes", "forZones")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -188,7 +189,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EndpointHints.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1EndpointHints is not found in the empty JSON string", V1EndpointHints.openapiRequiredFields.toString())); } } @@ -196,7 +197,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1EndpointHints` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -205,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayforNodes != null) { // ensure the json data is an array if (!jsonObj.get("forNodes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `forNodes` to be an array in the JSON string but got `%s`", jsonObj.get("forNodes").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `forNodes` to be an array in the JSON string but got `%s`", jsonObj.get("forNodes").toString())); } // validate the optional field `forNodes` (array) @@ -219,7 +220,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -279,3 +280,4 @@ 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 29798a46e4..99857cec67 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * EndpointSlice represents a set of service endpoints. Most EndpointSlices are created by the EndpointSlice controller to represent the Pods selected by Service objects. For a given service there may be multiple EndpointSlice objects which must be joined to produce the full set of endpoints; you can find all of the slices for a given service by listing EndpointSlices in the service's namespace whose `kubernetes.io/service-name` label contains the service's name. */ @ApiModel(description = "EndpointSlice represents a set of service endpoints. Most EndpointSlices are created by the EndpointSlice controller to represent the Pods selected by Service objects. For a given service there may be multiple EndpointSlice objects which must be joined to produce the full set of endpoints; you can find all of the slices for a given service by listing EndpointSlices in the service's namespace whose `kubernetes.io/service-name` label contains the service's name.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1EndpointSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ADDRESS_TYPE = "addressType"; @SerializedName(SERIALIZED_NAME_ADDRESS_TYPE) @@ -280,18 +283,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("addressType", "apiVersion", "endpoints", "kind", "metadata", "ports")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("addressType"); - openapiRequiredFields.add("endpoints"); + openapiRequiredFields = new HashSet(Arrays.asList("addressType", "endpoints")); } /** @@ -303,7 +298,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EndpointSlice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1EndpointSlice is not found in the empty JSON string", V1EndpointSlice.openapiRequiredFields.toString())); } } @@ -311,26 +306,26 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1EndpointSlice` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1EndpointSlice.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `endpoints` to be an array in the JSON string but got `%s`", jsonObj.get("endpoints").toString())); } JsonArray jsonArrayendpoints = jsonObj.getAsJsonArray("endpoints"); @@ -339,7 +334,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1Endpoint.validateJsonElement(jsonArrayendpoints.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -350,7 +345,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -410,3 +405,4 @@ 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 5a99125608..11f2c73c4c 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * EndpointSliceList represents a list of endpoint slices */ @ApiModel(description = "EndpointSliceList represents a list of endpoint slices") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1EndpointSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EndpointSliceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1EndpointSliceList is not found in the empty JSON string", V1EndpointSliceList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1EndpointSliceList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1EndpointSliceList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1EndpointSlice.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 32186e8c3d..868f404898 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * 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 ] Deprecated: This API is deprecated in v1.33+. */ @ApiModel(description = "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { 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 ] Deprecated: This API is deprecated in v1.33+.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1EndpointSubset { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) @@ -206,13 +209,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("addresses"); - openapiFields.add("notReadyAddresses"); - openapiFields.add("ports"); + openapiFields = new HashSet(Arrays.asList("addresses", "notReadyAddresses", "ports")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -224,7 +224,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EndpointSubset.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1EndpointSubset is not found in the empty JSON string", V1EndpointSubset.openapiRequiredFields.toString())); } } @@ -232,7 +232,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1EndpointSubset` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -241,7 +241,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -255,7 +255,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -269,7 +269,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -329,3 +329,4 @@ 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 35cf9d8a42..cb302f0f31 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * 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}] }, ] Endpoints is a legacy API and does not contain information about all Service features. Use discoveryv1.EndpointSlice for complete information about Service endpoints. Deprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice. */ @ApiModel(description = "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}] }, ] Endpoints is a legacy API and does not contain information about all Service features. Use discoveryv1.EndpointSlice for complete information about Service endpoints. Deprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Endpoints implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,14 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "subsets")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -236,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Endpoints.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Endpoints is not found in the empty JSON string", V1Endpoints.openapiRequiredFields.toString())); } } @@ -244,15 +243,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Endpoints` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -263,7 +262,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -323,3 +322,4 @@ 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 a207c393a0..8b4288bdd1 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * EndpointsList is a list of endpoints. Deprecated: This API is deprecated in v1.33+. */ @ApiModel(description = "EndpointsList is a list of endpoints. Deprecated: This API is deprecated in v1.33+.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1EndpointsList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EndpointsList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1EndpointsList is not found in the empty JSON string", V1EndpointsList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1EndpointsList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1EndpointsList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1Endpoints.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 ec40431d1e..00b7e866e0 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * EnvFromSource represents the source of a set of ConfigMaps or Secrets */ @ApiModel(description = "EnvFromSource represents the source of a set of ConfigMaps or Secrets") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1EnvFromSource { public static final String SERIALIZED_NAME_CONFIG_MAP_REF = "configMapRef"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP_REF) @@ -180,13 +183,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("configMapRef"); - openapiFields.add("prefix"); - openapiFields.add("secretRef"); + openapiFields = new HashSet(Arrays.asList("configMapRef", "prefix", "secretRef")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -198,7 +198,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EnvFromSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1EnvFromSource is not found in the empty JSON string", V1EnvFromSource.openapiRequiredFields.toString())); } } @@ -206,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1EnvFromSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -215,7 +215,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ConfigMapEnvSource.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -272,3 +272,4 @@ 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 c80b14edce..9f4c4ae59e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * EnvVar represents an environment variable present in a Container. */ @ApiModel(description = "EnvVar represents an environment variable present in a Container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1EnvVar { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -179,14 +182,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("value"); - openapiFields.add("valueFrom"); + openapiFields = new HashSet(Arrays.asList("name", "value", "valueFrom")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -198,7 +197,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EnvVar.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1EnvVar is not found in the empty JSON string", V1EnvVar.openapiRequiredFields.toString())); } } @@ -206,22 +205,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1EnvVar` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1EnvVar.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -278,3 +277,4 @@ 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 1ad1380967..4e772d2110 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * EnvVarSource represents a source for the value of an EnvVar. */ @ApiModel(description = "EnvVarSource represents a source for the value of an EnvVar.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1EnvVarSource { public static final String SERIALIZED_NAME_CONFIG_MAP_KEY_REF = "configMapKeyRef"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP_KEY_REF) @@ -237,15 +240,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("configMapKeyRef"); - openapiFields.add("fieldRef"); - openapiFields.add("fileKeyRef"); - openapiFields.add("resourceFieldRef"); - openapiFields.add("secretKeyRef"); + openapiFields = new HashSet(Arrays.asList("configMapKeyRef", "fieldRef", "fileKeyRef", "resourceFieldRef", "secretKeyRef")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -257,7 +255,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EnvVarSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1EnvVarSource is not found in the empty JSON string", V1EnvVarSource.openapiRequiredFields.toString())); } } @@ -265,7 +263,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1EnvVarSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -340,3 +338,4 @@ 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 22a723bc5c..fe9ee7529d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -56,6 +58,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -63,7 +66,7 @@ * 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. */ @ApiModel(description = "An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation. To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1EphemeralContainer { public static final String SERIALIZED_NAME_ARGS = "args"; @SerializedName(SERIALIZED_NAME_ARGS) @@ -884,37 +887,10 @@ private String toIndentedString(Object o) { 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("restartPolicyRules"); - 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"); + openapiFields = new HashSet(Arrays.asList("args", "command", "env", "envFrom", "image", "imagePullPolicy", "lifecycle", "livenessProbe", "name", "ports", "readinessProbe", "resizePolicy", "resources", "restartPolicy", "restartPolicyRules", "securityContext", "startupProbe", "stdin", "stdinOnce", "targetContainerName", "terminationMessagePath", "terminationMessagePolicy", "tty", "volumeDevices", "volumeMounts", "workingDir")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -926,7 +902,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EphemeralContainer.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1EphemeralContainer is not found in the empty JSON string", V1EphemeralContainer.openapiRequiredFields.toString())); } } @@ -934,31 +910,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1EphemeralContainer` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1EphemeralContainer.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("args") != null && !jsonObj.get("args").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -972,7 +948,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -982,10 +958,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -996,14 +972,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1Probe.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1021,7 +997,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1035,14 +1011,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ResourceRequirements.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `restartPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("restartPolicy").toString())); } if (jsonObj.get("restartPolicyRules") != null && !jsonObj.get("restartPolicyRules").isJsonNull()) { JsonArray jsonArrayrestartPolicyRules = jsonObj.getAsJsonArray("restartPolicyRules"); if (jsonArrayrestartPolicyRules != null) { // ensure the json data is an array if (!jsonObj.get("restartPolicyRules").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `restartPolicyRules` to be an array in the JSON string but got `%s`", jsonObj.get("restartPolicyRules").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `restartPolicyRules` to be an array in the JSON string but got `%s`", jsonObj.get("restartPolicyRules").toString())); } // validate the optional field `restartPolicyRules` (array) @@ -1060,20 +1036,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1Probe.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1087,7 +1063,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1097,7 +1073,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `workingDir` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workingDir").toString())); } } @@ -1150,3 +1126,4 @@ 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 ee55c51760..1bb9c719fd 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * Represents an ephemeral volume that is handled by a normal storage driver. */ @ApiModel(description = "Represents an ephemeral volume that is handled by a normal storage driver.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1EphemeralVolumeSource { public static final String SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATE = "volumeClaimTemplate"; @SerializedName(SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATE) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("volumeClaimTemplate"); + openapiFields = new HashSet(Arrays.asList("volumeClaimTemplate")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EphemeralVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1EphemeralVolumeSource is not found in the empty JSON string", V1EphemeralVolumeSource.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1EphemeralVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ 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 efed44b8a3..626eeb5417 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * EventSource contains information for an event. */ @ApiModel(description = "EventSource contains information for an event.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1EventSource { public static final String SERIALIZED_NAME_COMPONENT = "component"; @SerializedName(SERIALIZED_NAME_COMPONENT) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("component"); - openapiFields.add("host"); + openapiFields = new HashSet(Arrays.asList("component", "host")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1EventSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1EventSource is not found in the empty JSON string", V1EventSource.openapiRequiredFields.toString())); } } @@ -176,15 +177,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1EventSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `host` to be a primitive type in the JSON string but got `%s`", jsonObj.get("host").toString())); } } @@ -237,3 +238,4 @@ 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 1a8dcc0985..b74980f5ec 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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. */ @ApiModel(description = "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Eviction implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,14 +210,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "deleteOptions", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Eviction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Eviction is not found in the empty JSON string", V1Eviction.openapiRequiredFields.toString())); } } @@ -234,19 +233,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Eviction` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -303,3 +302,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java index 1b843e126d..54c28a28ea 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * ExactDeviceRequest is a request for one or more identical devices. */ @ApiModel(description = "ExactDeviceRequest is a request for one or more identical devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ExactDeviceRequest { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -307,18 +310,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("adminAccess"); - openapiFields.add("allocationMode"); - openapiFields.add("capacity"); - openapiFields.add("count"); - openapiFields.add("deviceClassName"); - openapiFields.add("selectors"); - openapiFields.add("tolerations"); + openapiFields = new HashSet(Arrays.asList("adminAccess", "allocationMode", "capacity", "count", "deviceClassName", "selectors", "tolerations")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("deviceClassName"); + openapiRequiredFields = new HashSet(Arrays.asList("deviceClassName")); } /** @@ -330,7 +325,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ExactDeviceRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ExactDeviceRequest is not found in the empty JSON string", V1ExactDeviceRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ExactDeviceRequest is not found in the empty JSON string", V1ExactDeviceRequest.openapiRequiredFields.toString())); } } @@ -338,33 +333,33 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ExactDeviceRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ExactDeviceRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ExactDeviceRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ExactDeviceRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allocationMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMode").toString())); } // validate the optional field `capacity` if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { V1CapacityRequirements.validateJsonElement(jsonObj.get("capacity")); } if (!jsonObj.get("deviceClassName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); } if (jsonObj.get("selectors") != null && !jsonObj.get("selectors").isJsonNull()) { JsonArray jsonArrayselectors = jsonObj.getAsJsonArray("selectors"); if (jsonArrayselectors != null) { // ensure the json data is an array if (!jsonObj.get("selectors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); } // validate the optional field `selectors` (array) @@ -378,7 +373,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -438,3 +433,4 @@ 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 3252de3818..30e727aacb 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * ExecAction describes a \"run in container\" action. */ @ApiModel(description = "ExecAction describes a \"run in container\" action.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ExecAction { public static final String SERIALIZED_NAME_COMMAND = "command"; @SerializedName(SERIALIZED_NAME_COMMAND) @@ -134,11 +137,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("command"); + openapiFields = new HashSet(Arrays.asList("command")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -150,7 +152,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ExecAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ExecAction is not found in the empty JSON string", V1ExecAction.openapiRequiredFields.toString())); } } @@ -158,13 +160,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ExecAction` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("command") != null && !jsonObj.get("command").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `command` to be an array in the JSON string but got `%s`", jsonObj.get("command").toString())); } } @@ -217,3 +219,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java index 83f65defd3..4bac804fbc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`. */ @ApiModel(description = "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ExemptPriorityLevelConfiguration { public static final String SERIALIZED_NAME_LENDABLE_PERCENT = "lendablePercent"; @SerializedName(SERIALIZED_NAME_LENDABLE_PERCENT) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("lendablePercent"); - openapiFields.add("nominalConcurrencyShares"); + openapiFields = new HashSet(Arrays.asList("lendablePercent", "nominalConcurrencyShares")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ExemptPriorityLevelConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ExemptPriorityLevelConfiguration is not found in the empty JSON string", V1ExemptPriorityLevelConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ExemptPriorityLevelConfiguration is not found in the empty JSON string", V1ExemptPriorityLevelConfiguration.openapiRequiredFields.toString())); } } @@ -176,7 +177,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ExemptPriorityLevelConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ExemptPriorityLevelConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ExemptPriorityLevelConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -231,3 +232,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java index 212804d8d3..cad77f6685 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ExpressionWarning is a warning information that targets a specific expression. */ @ApiModel(description = "ExpressionWarning is a warning information that targets a specific expression.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ExpressionWarning { public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; @SerializedName(SERIALIZED_NAME_FIELD_REF) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("fieldRef"); - openapiFields.add("warning"); + openapiFields = new HashSet(Arrays.asList("fieldRef", "warning")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("fieldRef"); - openapiRequiredFields.add("warning"); + openapiRequiredFields = new HashSet(Arrays.asList("fieldRef", "warning")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ExpressionWarning.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ExpressionWarning is not found in the empty JSON string", V1ExpressionWarning.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ExpressionWarning is not found in the empty JSON string", V1ExpressionWarning.openapiRequiredFields.toString())); } } @@ -178,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ExpressionWarning.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ExpressionWarning` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ExpressionWarning` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ExpressionWarning.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `warning` to be a primitive type in the JSON string but got `%s`", jsonObj.get("warning").toString())); } } @@ -246,3 +245,4 @@ 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 3147de8a8d..a89f19eaa9 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ExternalDocumentation allows referencing an external resource for extended documentation. */ @ApiModel(description = "ExternalDocumentation allows referencing an external resource for extended documentation.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ExternalDocumentation { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("description"); - openapiFields.add("url"); + openapiFields = new HashSet(Arrays.asList("description", "url")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ExternalDocumentation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ExternalDocumentation is not found in the empty JSON string", V1ExternalDocumentation.openapiRequiredFields.toString())); } } @@ -176,15 +177,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ExternalDocumentation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); } } @@ -237,3 +238,4 @@ 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 74f982b328..c18dfafdcd 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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. */ @ApiModel(description = "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1FCVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -250,15 +253,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("fsType", "lun", "readOnly", "targetWWNs", "wwids")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -270,7 +268,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FCVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1FCVolumeSource is not found in the empty JSON string", V1FCVolumeSource.openapiRequiredFields.toString())); } } @@ -278,20 +276,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1FCVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `wwids` to be an array in the JSON string but got `%s`", jsonObj.get("wwids").toString())); } } @@ -344,3 +342,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java index 6df6fe5543..2ed5b6906d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * FieldSelectorAttributes indicates a field limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid. */ @ApiModel(description = "FieldSelectorAttributes indicates a field limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1FieldSelectorAttributes { public static final String SERIALIZED_NAME_RAW_SELECTOR = "rawSelector"; @SerializedName(SERIALIZED_NAME_RAW_SELECTOR) @@ -162,12 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("rawSelector"); - openapiFields.add("requirements"); + openapiFields = new HashSet(Arrays.asList("rawSelector", "requirements")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -179,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FieldSelectorAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1FieldSelectorAttributes is not found in the empty JSON string", V1FieldSelectorAttributes.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1FieldSelectorAttributes is not found in the empty JSON string", V1FieldSelectorAttributes.openapiRequiredFields.toString())); } } @@ -187,19 +188,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1FieldSelectorAttributes.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1FieldSelectorAttributes` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1FieldSelectorAttributes` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("rawSelector") != null && !jsonObj.get("rawSelector").isJsonNull()) && !jsonObj.get("rawSelector").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `rawSelector` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rawSelector").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `rawSelector` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rawSelector").toString())); } if (jsonObj.get("requirements") != null && !jsonObj.get("requirements").isJsonNull()) { JsonArray jsonArrayrequirements = jsonObj.getAsJsonArray("requirements"); if (jsonArrayrequirements != null) { // ensure the json data is an array if (!jsonObj.get("requirements").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `requirements` to be an array in the JSON string but got `%s`", jsonObj.get("requirements").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `requirements` to be an array in the JSON string but got `%s`", jsonObj.get("requirements").toString())); } // validate the optional field `requirements` (array) @@ -259,3 +260,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java index c055849135..bf82aa3bd0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values. */ @ApiModel(description = "FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1FieldSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -188,15 +191,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("key"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("key", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("key"); - openapiRequiredFields.add("operator"); + openapiRequiredFields = new HashSet(Arrays.asList("key", "operator")); } /** @@ -208,7 +206,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FieldSelectorRequirement.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1FieldSelectorRequirement is not found in the empty JSON string", V1FieldSelectorRequirement.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1FieldSelectorRequirement is not found in the empty JSON string", V1FieldSelectorRequirement.openapiRequiredFields.toString())); } } @@ -216,26 +214,26 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1FieldSelectorRequirement.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1FieldSelectorRequirement` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1FieldSelectorRequirement` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1FieldSelectorRequirement.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -288,3 +286,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java index 43fd03d32d..7c98c2eaf5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * FileKeySelector selects a key of the env file. */ @ApiModel(description = "FileKeySelector selects a key of the env file.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1FileKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -205,17 +208,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("key"); - openapiFields.add("optional"); - openapiFields.add("path"); - openapiFields.add("volumeName"); + openapiFields = new HashSet(Arrays.asList("key", "optional", "path", "volumeName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("key"); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("volumeName"); + openapiRequiredFields = new HashSet(Arrays.asList("key", "path", "volumeName")); } /** @@ -227,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FileKeySelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1FileKeySelector is not found in the empty JSON string", V1FileKeySelector.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1FileKeySelector is not found in the empty JSON string", V1FileKeySelector.openapiRequiredFields.toString())); } } @@ -235,25 +231,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1FileKeySelector.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1FileKeySelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1FileKeySelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1FileKeySelector.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } if (!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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `volumeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeName").toString())); } } @@ -306,3 +302,4 @@ 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 be0dfc6eee..cb400ab8be 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin. */ @ApiModel(description = "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1FlexPersistentVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) @@ -243,16 +246,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("driver", "fsType", "options", "readOnly", "secretRef")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("driver"); + openapiRequiredFields = new HashSet(Arrays.asList("driver")); } /** @@ -264,7 +261,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FlexPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1FlexPersistentVolumeSource is not found in the empty JSON string", V1FlexPersistentVolumeSource.openapiRequiredFields.toString())); } } @@ -272,22 +269,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1FlexPersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1FlexPersistentVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -344,3 +341,4 @@ 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 799f089d76..3d07b0e662 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. */ @ApiModel(description = "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1FlexVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) @@ -243,16 +246,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("driver", "fsType", "options", "readOnly", "secretRef")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("driver"); + openapiRequiredFields = new HashSet(Arrays.asList("driver")); } /** @@ -264,7 +261,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FlexVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1FlexVolumeSource is not found in the empty JSON string", V1FlexVolumeSource.openapiRequiredFields.toString())); } } @@ -272,22 +269,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1FlexVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1FlexVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -344,3 +341,4 @@ 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 031c1f1578..ba9499976d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * 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. */ @ApiModel(description = "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1FlockerVolumeSource { public static final String SERIALIZED_NAME_DATASET_NAME = "datasetName"; @SerializedName(SERIALIZED_NAME_DATASET_NAME) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("datasetName"); - openapiFields.add("datasetUUID"); + openapiFields = new HashSet(Arrays.asList("datasetName", "datasetUUID")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FlockerVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1FlockerVolumeSource is not found in the empty JSON string", V1FlockerVolumeSource.openapiRequiredFields.toString())); } } @@ -176,15 +177,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1FlockerVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `datasetUUID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("datasetUUID").toString())); } } @@ -237,3 +238,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java index 022ce3f8fb..43bfe48891 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * FlowDistinguisherMethod specifies the method of a flow distinguisher. */ @ApiModel(description = "FlowDistinguisherMethod specifies the method of a flow distinguisher.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1FlowDistinguisherMethod { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -124,12 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -141,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FlowDistinguisherMethod.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1FlowDistinguisherMethod is not found in the empty JSON string", V1FlowDistinguisherMethod.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1FlowDistinguisherMethod is not found in the empty JSON string", V1FlowDistinguisherMethod.openapiRequiredFields.toString())); } } @@ -149,19 +150,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1FlowDistinguisherMethod.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1FlowDistinguisherMethod` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1FlowDistinguisherMethod` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1FlowDistinguisherMethod.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -214,3 +215,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java index 22f2376a37..6803c8387e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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\". */ @ApiModel(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\".") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1FlowSchema implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FlowSchema.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1FlowSchema is not found in the empty JSON string", V1FlowSchema.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1FlowSchema is not found in the empty JSON string", V1FlowSchema.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1FlowSchema.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1FlowSchema` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1FlowSchema` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java index da4326cff7..daa49dffa2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * FlowSchemaCondition describes conditions for a FlowSchema. */ @ApiModel(description = "FlowSchemaCondition describes conditions for a FlowSchema.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1FlowSchemaCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -233,15 +236,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -253,7 +251,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FlowSchemaCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1FlowSchemaCondition is not found in the empty JSON string", V1FlowSchemaCondition.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1FlowSchemaCondition is not found in the empty JSON string", V1FlowSchemaCondition.openapiRequiredFields.toString())); } } @@ -261,21 +259,21 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1FlowSchemaCondition.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1FlowSchemaCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1FlowSchemaCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -328,3 +326,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java index b12a68e961..e1266ab240 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * FlowSchemaList is a list of FlowSchema objects. */ @ApiModel(description = "FlowSchemaList is a list of FlowSchema objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1FlowSchemaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FlowSchemaList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1FlowSchemaList is not found in the empty JSON string", V1FlowSchemaList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1FlowSchemaList is not found in the empty JSON string", V1FlowSchemaList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1FlowSchemaList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1FlowSchemaList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1FlowSchemaList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1FlowSchemaList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1FlowSchema.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java index f9f3f43fd3..5f02a11580 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * FlowSchemaSpec describes how the FlowSchema's specification looks like. */ @ApiModel(description = "FlowSchemaSpec describes how the FlowSchema's specification looks like.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1FlowSchemaSpec { public static final String SERIALIZED_NAME_DISTINGUISHER_METHOD = "distinguisherMethod"; @SerializedName(SERIALIZED_NAME_DISTINGUISHER_METHOD) @@ -218,15 +221,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("distinguisherMethod", "matchingPrecedence", "priorityLevelConfiguration", "rules")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("priorityLevelConfiguration"); + openapiRequiredFields = new HashSet(Arrays.asList("priorityLevelConfiguration")); } /** @@ -238,7 +236,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FlowSchemaSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1FlowSchemaSpec is not found in the empty JSON string", V1FlowSchemaSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1FlowSchemaSpec is not found in the empty JSON string", V1FlowSchemaSpec.openapiRequiredFields.toString())); } } @@ -246,14 +244,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1FlowSchemaSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1FlowSchemaSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1FlowSchemaSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1FlowSchemaSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -268,7 +266,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -328,3 +326,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java index 06a16d076c..428317cfaf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * FlowSchemaStatus represents the current state of a FlowSchema. */ @ApiModel(description = "FlowSchemaStatus represents the current state of a FlowSchema.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1FlowSchemaStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -135,11 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("conditions"); + openapiFields = new HashSet(Arrays.asList("conditions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -151,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1FlowSchemaStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1FlowSchemaStatus is not found in the empty JSON string", V1FlowSchemaStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1FlowSchemaStatus is not found in the empty JSON string", V1FlowSchemaStatus.openapiRequiredFields.toString())); } } @@ -159,7 +161,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1FlowSchemaStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1FlowSchemaStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1FlowSchemaStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -168,7 +170,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -228,3 +230,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java index c3a539cc09..17d4abe04b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ForNode provides information about which nodes should consume this endpoint. */ @ApiModel(description = "ForNode provides information about which nodes should consume this endpoint.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ForNode { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -124,12 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -141,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ForNode.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ForNode is not found in the empty JSON string", V1ForNode.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ForNode is not found in the empty JSON string", V1ForNode.openapiRequiredFields.toString())); } } @@ -149,19 +150,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ForNode.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ForNode` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ForNode` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ForNode.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -214,3 +215,4 @@ 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 d4fcacdfee..80cb8fda6b 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ForZone provides information about which zones should consume this endpoint. */ @ApiModel(description = "ForZone provides information about which zones should consume this endpoint.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ForZone { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -124,12 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -141,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ForZone.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ForZone is not found in the empty JSON string", V1ForZone.openapiRequiredFields.toString())); } } @@ -149,19 +150,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ForZone` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ForZone.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -214,3 +215,4 @@ 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 590c1821a4..51c30c3e4b 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1GCEPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -205,15 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("fsType", "partition", "pdName", "readOnly")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("pdName"); + openapiRequiredFields = new HashSet(Arrays.asList("pdName")); } /** @@ -225,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1GCEPersistentDiskVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1GCEPersistentDiskVolumeSource is not found in the empty JSON string", V1GCEPersistentDiskVolumeSource.openapiRequiredFields.toString())); } } @@ -233,22 +231,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1GCEPersistentDiskVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1GCEPersistentDiskVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `pdName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pdName").toString())); } } @@ -301,3 +299,4 @@ 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 7d932597ee..4c937f17d7 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * GRPCAction specifies an action involving a GRPC service. */ @ApiModel(description = "GRPCAction specifies an action involving a GRPC service.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1GRPCAction { public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) @@ -151,13 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("port"); - openapiFields.add("service"); + openapiFields = new HashSet(Arrays.asList("port", "service")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("port"); + openapiRequiredFields = new HashSet(Arrays.asList("port")); } /** @@ -169,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1GRPCAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1GRPCAction is not found in the empty JSON string", V1GRPCAction.openapiRequiredFields.toString())); } } @@ -177,19 +177,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1GRPCAction` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1GRPCAction.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `service` to be a primitive type in the JSON string but got `%s`", jsonObj.get("service").toString())); } } @@ -242,3 +242,4 @@ 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 74924850b8..1f0613cc39 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * 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. */ @ApiModel(description = "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. 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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1GitRepoVolumeSource { public static final String SERIALIZED_NAME_DIRECTORY = "directory"; @SerializedName(SERIALIZED_NAME_DIRECTORY) @@ -178,14 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("directory"); - openapiFields.add("repository"); - openapiFields.add("revision"); + openapiFields = new HashSet(Arrays.asList("directory", "repository", "revision")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("repository"); + openapiRequiredFields = new HashSet(Arrays.asList("repository")); } /** @@ -197,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1GitRepoVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1GitRepoVolumeSource is not found in the empty JSON string", V1GitRepoVolumeSource.openapiRequiredFields.toString())); } } @@ -205,25 +204,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1GitRepoVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1GitRepoVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `revision` to be a primitive type in the JSON string but got `%s`", jsonObj.get("revision").toString())); } } @@ -276,3 +275,4 @@ 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 83380d7d10..482bcd04c6 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1GlusterfsPersistentVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; @SerializedName(SERIALIZED_NAME_ENDPOINTS) @@ -205,16 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("endpoints", "endpointsNamespace", "path", "readOnly")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("endpoints"); - openapiRequiredFields.add("path"); + openapiRequiredFields = new HashSet(Arrays.asList("endpoints", "path")); } /** @@ -226,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1GlusterfsPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1GlusterfsPersistentVolumeSource is not found in the empty JSON string", V1GlusterfsPersistentVolumeSource.openapiRequiredFields.toString())); } } @@ -234,25 +231,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1GlusterfsPersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1GlusterfsPersistentVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -305,3 +302,4 @@ 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 c918d25583..626cff7d8e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1GlusterfsVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; @SerializedName(SERIALIZED_NAME_ENDPOINTS) @@ -178,15 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("endpoints"); - openapiFields.add("path"); - openapiFields.add("readOnly"); + openapiFields = new HashSet(Arrays.asList("endpoints", "path", "readOnly")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("endpoints"); - openapiRequiredFields.add("path"); + openapiRequiredFields = new HashSet(Arrays.asList("endpoints", "path")); } /** @@ -198,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1GlusterfsVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1GlusterfsVolumeSource is not found in the empty JSON string", V1GlusterfsVolumeSource.openapiRequiredFields.toString())); } } @@ -206,22 +204,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1GlusterfsVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1GlusterfsVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -274,3 +272,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java index c976c05165..7687cabdb3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * GroupSubject holds detailed information for group-kind subject. */ @ApiModel(description = "GroupSubject holds detailed information for group-kind subject.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1GroupSubject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -124,12 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -141,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1GroupSubject.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1GroupSubject is not found in the empty JSON string", V1GroupSubject.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1GroupSubject is not found in the empty JSON string", V1GroupSubject.openapiRequiredFields.toString())); } } @@ -149,19 +150,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1GroupSubject.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1GroupSubject` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1GroupSubject` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1GroupSubject.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -214,3 +215,4 @@ 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 71e35796f7..cf19eb023a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility. */ @ApiModel(description = "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1GroupVersionForDiscovery { public static final String SERIALIZED_NAME_GROUP_VERSION = "groupVersion"; @SerializedName(SERIALIZED_NAME_GROUP_VERSION) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("groupVersion"); - openapiFields.add("version"); + openapiFields = new HashSet(Arrays.asList("groupVersion", "version")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("groupVersion"); - openapiRequiredFields.add("version"); + openapiRequiredFields = new HashSet(Arrays.asList("groupVersion", "version")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1GroupVersionForDiscovery.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1GroupVersionForDiscovery is not found in the empty JSON string", V1GroupVersionForDiscovery.openapiRequiredFields.toString())); } } @@ -178,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1GroupVersionForDiscovery` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1GroupVersionForDiscovery.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } } @@ -246,3 +245,4 @@ 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 014b9d08cf..30e5543596 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * HTTPGetAction describes an action based on HTTP Get requests. */ @ApiModel(description = "HTTPGetAction describes an action based on HTTP Get requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1HTTPGetAction { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) @@ -244,16 +247,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("host", "httpHeaders", "path", "port", "scheme")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("port"); + openapiRequiredFields = new HashSet(Arrays.asList("port")); } /** @@ -265,7 +262,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HTTPGetAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1HTTPGetAction is not found in the empty JSON string", V1HTTPGetAction.openapiRequiredFields.toString())); } } @@ -273,26 +270,26 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1HTTPGetAction` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1HTTPGetAction.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -302,13 +299,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `scheme` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scheme").toString())); } } @@ -361,3 +358,4 @@ 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 461b515e5a..2dd5ca65ef 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * HTTPHeader describes a custom header to be used in HTTP probes */ @ApiModel(description = "HTTPHeader describes a custom header to be used in HTTP probes") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1HTTPHeader { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("name", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("name", "value")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HTTPHeader.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1HTTPHeader is not found in the empty JSON string", V1HTTPHeader.openapiRequiredFields.toString())); } } @@ -178,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1HTTPHeader` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1HTTPHeader.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -246,3 +245,4 @@ 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 771bf1a79a..4ec3f8229f 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend. */ @ApiModel(description = "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1HTTPIngressPath { public static final String SERIALIZED_NAME_BACKEND = "backend"; @SerializedName(SERIALIZED_NAME_BACKEND) @@ -179,15 +182,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("backend"); - openapiFields.add("path"); - openapiFields.add("pathType"); + openapiFields = new HashSet(Arrays.asList("backend", "path", "pathType")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("backend"); - openapiRequiredFields.add("pathType"); + openapiRequiredFields = new HashSet(Arrays.asList("backend", "pathType")); } /** @@ -199,7 +197,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HTTPIngressPath.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1HTTPIngressPath is not found in the empty JSON string", V1HTTPIngressPath.openapiRequiredFields.toString())); } } @@ -207,24 +205,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1HTTPIngressPath` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1HTTPIngressPath.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `backend` V1IngressBackend.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `pathType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pathType").toString())); } } @@ -277,3 +275,4 @@ 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 54359b1e2a..5d26eca04a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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 '#'. */ @ApiModel(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 '#'.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1HTTPIngressRuleValue { public static final String SERIALIZED_NAME_PATHS = "paths"; @SerializedName(SERIALIZED_NAME_PATHS) @@ -135,12 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("paths"); + openapiFields = new HashSet(Arrays.asList("paths")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("paths"); + openapiRequiredFields = new HashSet(Arrays.asList("paths")); } /** @@ -152,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HTTPIngressRuleValue.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1HTTPIngressRuleValue is not found in the empty JSON string", V1HTTPIngressRuleValue.openapiRequiredFields.toString())); } } @@ -160,20 +161,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1HTTPIngressRuleValue` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1HTTPIngressRuleValue.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `paths` to be an array in the JSON string but got `%s`", jsonObj.get("paths").toString())); } JsonArray jsonArraypaths = jsonObj.getAsJsonArray("paths"); @@ -232,3 +233,4 @@ 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 b4997ad1b2..261a24b40d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * configuration of a horizontal pod autoscaler. */ @ApiModel(description = "configuration of a horizontal pod autoscaler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HorizontalPodAutoscaler.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1HorizontalPodAutoscaler is not found in the empty JSON string", V1HorizontalPodAutoscaler.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1HorizontalPodAutoscaler` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 9e540ae883..fdb8275b08 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * list of horizontal pod autoscaler objects. */ @ApiModel(description = "list of horizontal pod autoscaler objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HorizontalPodAutoscalerList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1HorizontalPodAutoscalerList is not found in the empty JSON string", V1HorizontalPodAutoscalerList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1HorizontalPodAutoscalerList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1HorizontalPodAutoscalerList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1HorizontalPodAutoscaler.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 123e7e9914..c75a3ce050 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * specification of a horizontal pod autoscaler. */ @ApiModel(description = "specification of a horizontal pod autoscaler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_MAX_REPLICAS = "maxReplicas"; @SerializedName(SERIALIZED_NAME_MAX_REPLICAS) @@ -206,16 +209,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("maxReplicas", "minReplicas", "scaleTargetRef", "targetCPUUtilizationPercentage")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("maxReplicas"); - openapiRequiredFields.add("scaleTargetRef"); + openapiRequiredFields = new HashSet(Arrays.asList("maxReplicas", "scaleTargetRef")); } /** @@ -227,7 +224,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HorizontalPodAutoscalerSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1HorizontalPodAutoscalerSpec is not found in the empty JSON string", V1HorizontalPodAutoscalerSpec.openapiRequiredFields.toString())); } } @@ -235,14 +232,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1HorizontalPodAutoscalerSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1HorizontalPodAutoscalerSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -299,3 +296,4 @@ 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 a008400fb8..8edea333db 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * current status of a horizontal pod autoscaler */ @ApiModel(description = "current status of a horizontal pod autoscaler") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE = "currentCPUUtilizationPercentage"; @SerializedName(SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE) @@ -233,17 +236,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("currentCPUUtilizationPercentage", "currentReplicas", "desiredReplicas", "lastScaleTime", "observedGeneration")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("currentReplicas"); - openapiRequiredFields.add("desiredReplicas"); + openapiRequiredFields = new HashSet(Arrays.asList("currentReplicas", "desiredReplicas")); } /** @@ -255,7 +251,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HorizontalPodAutoscalerStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1HorizontalPodAutoscalerStatus is not found in the empty JSON string", V1HorizontalPodAutoscalerStatus.openapiRequiredFields.toString())); } } @@ -263,14 +259,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1HorizontalPodAutoscalerStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1HorizontalPodAutoscalerStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -325,3 +321,4 @@ 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 a72bc978b9..0e2437d8f3 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file. */ @ApiModel(description = "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1HostAlias { public static final String SERIALIZED_NAME_HOSTNAMES = "hostnames"; @SerializedName(SERIALIZED_NAME_HOSTNAMES) @@ -161,13 +164,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("hostnames"); - openapiFields.add("ip"); + openapiFields = new HashSet(Arrays.asList("hostnames", "ip")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("ip"); + openapiRequiredFields = new HashSet(Arrays.asList("ip")); } /** @@ -179,7 +179,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HostAlias.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1HostAlias is not found in the empty JSON string", V1HostAlias.openapiRequiredFields.toString())); } } @@ -187,23 +187,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1HostAlias` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1HostAlias.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("hostnames") != null && !jsonObj.get("hostnames").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `hostnames` to be an array in the JSON string but got `%s`", jsonObj.get("hostnames").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ip").toString())); } } @@ -256,3 +256,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java index 20b12a560e..6d3adf4b1a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * HostIP represents a single IP address allocated to the host. */ @ApiModel(description = "HostIP represents a single IP address allocated to the host.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1HostIP { public static final String SERIALIZED_NAME_IP = "ip"; @SerializedName(SERIALIZED_NAME_IP) @@ -124,12 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("ip"); + openapiFields = new HashSet(Arrays.asList("ip")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("ip"); + openapiRequiredFields = new HashSet(Arrays.asList("ip")); } /** @@ -141,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HostIP.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1HostIP is not found in the empty JSON string", V1HostIP.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1HostIP is not found in the empty JSON string", V1HostIP.openapiRequiredFields.toString())); } } @@ -149,19 +150,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1HostIP.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1HostIP` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1HostIP` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1HostIP.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ip").toString())); } } @@ -214,3 +215,4 @@ 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 ba82b79fb5..7ffe66b4f1 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1HostPathVolumeSource { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -151,13 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("path"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("path", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("path"); + openapiRequiredFields = new HashSet(Arrays.asList("path")); } /** @@ -169,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1HostPathVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1HostPathVolumeSource is not found in the empty JSON string", V1HostPathVolumeSource.openapiRequiredFields.toString())); } } @@ -177,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1HostPathVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1HostPathVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -245,3 +245,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java index 556d5a0295..8aa63d48dc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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 */ @ApiModel(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") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1IPAddress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,14 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IPAddress.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1IPAddress is not found in the empty JSON string", V1IPAddress.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1IPAddress is not found in the empty JSON string", V1IPAddress.openapiRequiredFields.toString())); } } @@ -234,15 +233,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1IPAddress.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IPAddress` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IPAddress` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -303,3 +302,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java index 7a8702071f..0533db7092 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * IPAddressList contains a list of IPAddress. */ @ApiModel(description = "IPAddressList contains a list of IPAddress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1IPAddressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IPAddressList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1IPAddressList is not found in the empty JSON string", V1IPAddressList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1IPAddressList is not found in the empty JSON string", V1IPAddressList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1IPAddressList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IPAddressList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IPAddressList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1IPAddressList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1IPAddress.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java index 3657ffdf00..95be599c78 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * IPAddressSpec describe the attributes in an IP Address. */ @ApiModel(description = "IPAddressSpec describe the attributes in an IP Address.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1IPAddressSpec { public static final String SERIALIZED_NAME_PARENT_REF = "parentRef"; @SerializedName(SERIALIZED_NAME_PARENT_REF) @@ -125,12 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("parentRef"); + openapiFields = new HashSet(Arrays.asList("parentRef")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("parentRef"); + openapiRequiredFields = new HashSet(Arrays.asList("parentRef")); } /** @@ -142,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IPAddressSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1IPAddressSpec is not found in the empty JSON string", V1IPAddressSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1IPAddressSpec is not found in the empty JSON string", V1IPAddressSpec.openapiRequiredFields.toString())); } } @@ -150,14 +151,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1IPAddressSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1IPAddressSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IPAddressSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1IPAddressSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -214,3 +215,4 @@ 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 e03357f4ae..3f9e61f135 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1IPBlock { public static final String SERIALIZED_NAME_CIDR = "cidr"; @SerializedName(SERIALIZED_NAME_CIDR) @@ -161,13 +164,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("cidr"); - openapiFields.add("except"); + openapiFields = new HashSet(Arrays.asList("cidr", "except")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("cidr"); + openapiRequiredFields = new HashSet(Arrays.asList("cidr")); } /** @@ -179,7 +179,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IPBlock.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1IPBlock is not found in the empty JSON string", V1IPBlock.openapiRequiredFields.toString())); } } @@ -187,23 +187,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IPBlock` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1IPBlock.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `except` to be an array in the JSON string but got `%s`", jsonObj.get("except").toString())); } } @@ -256,3 +256,4 @@ 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 e771fbd0c3..74ef515794 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ISCSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; @SerializedName(SERIALIZED_NAME_CHAP_AUTH_DISCOVERY) @@ -405,24 +408,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("chapAuthDiscovery", "chapAuthSession", "fsType", "initiatorName", "iqn", "iscsiInterface", "lun", "portals", "readOnly", "secretRef", "targetPortal")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("iqn"); - openapiRequiredFields.add("lun"); - openapiRequiredFields.add("targetPortal"); + openapiRequiredFields = new HashSet(Arrays.asList("iqn", "lun", "targetPortal")); } /** @@ -434,7 +423,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ISCSIPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ISCSIPersistentVolumeSource is not found in the empty JSON string", V1ISCSIPersistentVolumeSource.openapiRequiredFields.toString())); } } @@ -442,39 +431,39 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ISCSIPersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ISCSIPersistentVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `targetPortal` to be a primitive type in the JSON string but got `%s`", jsonObj.get("targetPortal").toString())); } } @@ -527,3 +516,4 @@ 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 3abe4f8487..a529000ff5 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ISCSIVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; @SerializedName(SERIALIZED_NAME_CHAP_AUTH_DISCOVERY) @@ -405,24 +408,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("chapAuthDiscovery", "chapAuthSession", "fsType", "initiatorName", "iqn", "iscsiInterface", "lun", "portals", "readOnly", "secretRef", "targetPortal")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("iqn"); - openapiRequiredFields.add("lun"); - openapiRequiredFields.add("targetPortal"); + openapiRequiredFields = new HashSet(Arrays.asList("iqn", "lun", "targetPortal")); } /** @@ -434,7 +423,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ISCSIVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ISCSIVolumeSource is not found in the empty JSON string", V1ISCSIVolumeSource.openapiRequiredFields.toString())); } } @@ -442,39 +431,39 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ISCSIVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ISCSIVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `targetPortal` to be a primitive type in the JSON string but got `%s`", jsonObj.get("targetPortal").toString())); } } @@ -527,3 +516,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java index 915bceaff8..5ee7da8f01 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ImageVolumeSource represents a image volume resource. */ @ApiModel(description = "ImageVolumeSource represents a image volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ImageVolumeSource { public static final String SERIALIZED_NAME_PULL_POLICY = "pullPolicy"; @SerializedName(SERIALIZED_NAME_PULL_POLICY) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("pullPolicy"); - openapiFields.add("reference"); + openapiFields = new HashSet(Arrays.asList("pullPolicy", "reference")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ImageVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ImageVolumeSource is not found in the empty JSON string", V1ImageVolumeSource.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ImageVolumeSource is not found in the empty JSON string", V1ImageVolumeSource.openapiRequiredFields.toString())); } } @@ -176,15 +177,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ImageVolumeSource.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ImageVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ImageVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("pullPolicy") != null && !jsonObj.get("pullPolicy").isJsonNull()) && !jsonObj.get("pullPolicy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `pullPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pullPolicy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `pullPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pullPolicy").toString())); } if ((jsonObj.get("reference") != null && !jsonObj.get("reference").isJsonNull()) && !jsonObj.get("reference").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `reference` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reference").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reference` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reference").toString())); } } @@ -237,3 +238,4 @@ 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 69788f0b58..3cb3b2c8d5 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Ingress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Ingress.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Ingress is not found in the empty JSON string", V1Ingress.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Ingress` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 f2e2a57369..77498b43e2 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * IngressBackend describes all endpoints for a given service and port. */ @ApiModel(description = "IngressBackend describes all endpoints for a given service and port.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1IngressBackend { public static final String SERIALIZED_NAME_RESOURCE = "resource"; @SerializedName(SERIALIZED_NAME_RESOURCE) @@ -153,12 +156,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("resource"); - openapiFields.add("service"); + openapiFields = new HashSet(Arrays.asList("resource", "service")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -170,7 +171,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressBackend.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1IngressBackend is not found in the empty JSON string", V1IngressBackend.openapiRequiredFields.toString())); } } @@ -178,7 +179,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IngressBackend` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -241,3 +242,4 @@ 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 6d6698e052..7e0fd9aa55 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1IngressClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,14 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1IngressClass is not found in the empty JSON string", V1IngressClass.openapiRequiredFields.toString())); } } @@ -234,15 +233,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IngressClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -303,3 +302,4 @@ 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 ca6bcfaa62..05c3f4cbf2 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * IngressClassList is a collection of IngressClasses. */ @ApiModel(description = "IngressClassList is a collection of IngressClasses.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1IngressClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1IngressClassList is not found in the empty JSON string", V1IngressClassList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IngressClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1IngressClassList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1IngressClass.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 f0540aae82..7d182d8ff7 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource. */ @ApiModel(description = "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1IngressClassParametersReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) @@ -232,17 +235,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiGroup", "kind", "name", "namespace", "scope")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("kind"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("kind", "name")); } /** @@ -254,7 +250,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressClassParametersReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1IngressClassParametersReference is not found in the empty JSON string", V1IngressClassParametersReference.openapiRequiredFields.toString())); } } @@ -262,31 +258,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IngressClassParametersReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1IngressClassParametersReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scope").toString())); } } @@ -339,3 +335,4 @@ 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 0ed26c9bcb..afa547fd68 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * IngressClassSpec provides information about the class of an Ingress. */ @ApiModel(description = "IngressClassSpec provides information about the class of an Ingress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1IngressClassSpec { public static final String SERIALIZED_NAME_CONTROLLER = "controller"; @SerializedName(SERIALIZED_NAME_CONTROLLER) @@ -152,12 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("controller"); - openapiFields.add("parameters"); + openapiFields = new HashSet(Arrays.asList("controller", "parameters")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -169,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressClassSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1IngressClassSpec is not found in the empty JSON string", V1IngressClassSpec.openapiRequiredFields.toString())); } } @@ -177,12 +178,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IngressClassSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -239,3 +240,4 @@ 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 d11abb82a8..f7c6c7909f 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * IngressList is a collection of Ingress. */ @ApiModel(description = "IngressList is a collection of Ingress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1IngressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1IngressList is not found in the empty JSON string", V1IngressList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IngressList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1IngressList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1Ingress.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 3abffc7e91..e8b107c47c 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * IngressLoadBalancerIngress represents the status of a load-balancer ingress point. */ @ApiModel(description = "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1IngressLoadBalancerIngress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) @@ -189,13 +192,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("hostname"); - openapiFields.add("ip"); - openapiFields.add("ports"); + openapiFields = new HashSet(Arrays.asList("hostname", "ip", "ports")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -207,7 +207,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressLoadBalancerIngress.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1IngressLoadBalancerIngress is not found in the empty JSON string", V1IngressLoadBalancerIngress.openapiRequiredFields.toString())); } } @@ -215,22 +215,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IngressLoadBalancerIngress` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -290,3 +290,4 @@ 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 9d6c6152fd..6bb65ba4a7 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * IngressLoadBalancerStatus represents the status of a load-balancer. */ @ApiModel(description = "IngressLoadBalancerStatus represents the status of a load-balancer.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1IngressLoadBalancerStatus { public static final String SERIALIZED_NAME_INGRESS = "ingress"; @SerializedName(SERIALIZED_NAME_INGRESS) @@ -135,11 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("ingress"); + openapiFields = new HashSet(Arrays.asList("ingress")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -151,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressLoadBalancerStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1IngressLoadBalancerStatus is not found in the empty JSON string", V1IngressLoadBalancerStatus.openapiRequiredFields.toString())); } } @@ -159,7 +161,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IngressLoadBalancerStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -168,7 +170,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -228,3 +230,4 @@ 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 4e7f05e150..79a77c9abe 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * IngressPortStatus represents the error condition of a service port */ @ApiModel(description = "IngressPortStatus represents the error condition of a service port") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1IngressPortStatus { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) @@ -178,15 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("error"); - openapiFields.add("port"); - openapiFields.add("protocol"); + openapiFields = new HashSet(Arrays.asList("error", "port", "protocol")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("port"); - openapiRequiredFields.add("protocol"); + openapiRequiredFields = new HashSet(Arrays.asList("port", "protocol")); } /** @@ -198,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressPortStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1IngressPortStatus is not found in the empty JSON string", V1IngressPortStatus.openapiRequiredFields.toString())); } } @@ -206,22 +204,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IngressPortStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1IngressPortStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `protocol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("protocol").toString())); } } @@ -274,3 +272,4 @@ 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 af1ddcb85f..ad500d5636 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1IngressRule { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) @@ -152,12 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("host"); - openapiFields.add("http"); + openapiFields = new HashSet(Arrays.asList("host", "http")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -169,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1IngressRule is not found in the empty JSON string", V1IngressRule.openapiRequiredFields.toString())); } } @@ -177,12 +178,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IngressRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -239,3 +240,4 @@ 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 ee29f5ee44..8d53421cf2 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * IngressServiceBackend references a Kubernetes Service as a Backend. */ @ApiModel(description = "IngressServiceBackend references a Kubernetes Service as a Backend.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1IngressServiceBackend { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -152,13 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("port"); + openapiFields = new HashSet(Arrays.asList("name", "port")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -170,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressServiceBackend.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1IngressServiceBackend is not found in the empty JSON string", V1IngressServiceBackend.openapiRequiredFields.toString())); } } @@ -178,19 +178,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IngressServiceBackend` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1IngressServiceBackend.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -247,3 +247,4 @@ 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 c02395831e..5be38f6d3f 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * IngressSpec describes the Ingress the user wishes to exist. */ @ApiModel(description = "IngressSpec describes the Ingress the user wishes to exist.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1IngressSpec { public static final String SERIALIZED_NAME_DEFAULT_BACKEND = "defaultBackend"; @SerializedName(SERIALIZED_NAME_DEFAULT_BACKEND) @@ -226,14 +229,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("defaultBackend", "ingressClassName", "rules", "tls")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -245,7 +244,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1IngressSpec is not found in the empty JSON string", V1IngressSpec.openapiRequiredFields.toString())); } } @@ -253,7 +252,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IngressSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -262,14 +261,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1IngressBackend.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -283,7 +282,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -343,3 +342,4 @@ 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 0a175b52b8..76819e484a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * IngressStatus describe the current state of the Ingress. */ @ApiModel(description = "IngressStatus describe the current state of the Ingress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1IngressStatus { public static final String SERIALIZED_NAME_LOAD_BALANCER = "loadBalancer"; @SerializedName(SERIALIZED_NAME_LOAD_BALANCER) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("loadBalancer"); + openapiFields = new HashSet(Arrays.asList("loadBalancer")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1IngressStatus is not found in the empty JSON string", V1IngressStatus.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IngressStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ 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 a01994c3a4..bcdae03054 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * IngressTLS describes the transport layer security associated with an ingress. */ @ApiModel(description = "IngressTLS describes the transport layer security associated with an ingress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1IngressTLS { public static final String SERIALIZED_NAME_HOSTS = "hosts"; @SerializedName(SERIALIZED_NAME_HOSTS) @@ -161,12 +164,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("hosts"); - openapiFields.add("secretName"); + openapiFields = new HashSet(Arrays.asList("hosts", "secretName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -178,7 +179,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1IngressTLS.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1IngressTLS is not found in the empty JSON string", V1IngressTLS.openapiRequiredFields.toString())); } } @@ -186,16 +187,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IngressTLS` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("hosts") != null && !jsonObj.get("hosts").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `secretName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secretName").toString())); } } @@ -248,3 +249,4 @@ 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 890ab8a1fd..e82888e080 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). */ @ApiModel(description = "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1JSONSchemaProps { public static final String SERIALIZED_NAME_$_REF = "$ref"; @SerializedName(SERIALIZED_NAME_$_REF) @@ -1379,54 +1382,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("$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", "x-kubernetes-embedded-resource", "x-kubernetes-int-or-string", "x-kubernetes-list-map-keys", "x-kubernetes-list-type", "x-kubernetes-map-type", "x-kubernetes-preserve-unknown-fields", "x-kubernetes-validations")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -1438,7 +1397,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1JSONSchemaProps.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1JSONSchemaProps is not found in the empty JSON string", V1JSONSchemaProps.openapiRequiredFields.toString())); } } @@ -1446,22 +1405,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1JSONSchemaProps` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1475,7 +1434,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1485,21 +1444,21 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -1510,7 +1469,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1520,34 +1479,34 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1607,3 +1566,4 @@ 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 47b6dba4e2..fd9148e79e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * Job represents the configuration of a single job. */ @ApiModel(description = "Job represents the configuration of a single job.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Job implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Job.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Job is not found in the empty JSON string", V1Job.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Job` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 39863976fb..173bcc39e7 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * JobCondition describes current state of a job. */ @ApiModel(description = "JobCondition describes current state of a job.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1JobCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) @@ -260,18 +263,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("lastProbeTime", "lastTransitionTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); } /** @@ -283,7 +278,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1JobCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1JobCondition is not found in the empty JSON string", V1JobCondition.openapiRequiredFields.toString())); } } @@ -291,28 +286,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1JobCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1JobCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -365,3 +360,4 @@ 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 138742b89b..da4cfaa91e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * JobList is a collection of jobs. */ @ApiModel(description = "JobList is a collection of jobs.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1JobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1JobList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1JobList is not found in the empty JSON string", V1JobList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1JobList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1JobList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1Job.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 65d22adc0b..d6ab3b46ca 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * JobSpec describes how the job execution will look like. */ @ApiModel(description = "JobSpec describes how the job execution will look like.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1JobSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @SerializedName(SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS) @@ -533,27 +536,10 @@ private String toIndentedString(Object o) { 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("managedBy"); - openapiFields.add("manualSelector"); - openapiFields.add("maxFailedIndexes"); - openapiFields.add("parallelism"); - openapiFields.add("podFailurePolicy"); - openapiFields.add("podReplacementPolicy"); - openapiFields.add("selector"); - openapiFields.add("successPolicy"); - openapiFields.add("suspend"); - openapiFields.add("template"); - openapiFields.add("ttlSecondsAfterFinished"); + openapiFields = new HashSet(Arrays.asList("activeDeadlineSeconds", "backoffLimit", "backoffLimitPerIndex", "completionMode", "completions", "managedBy", "manualSelector", "maxFailedIndexes", "parallelism", "podFailurePolicy", "podReplacementPolicy", "selector", "successPolicy", "suspend", "template", "ttlSecondsAfterFinished")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("template"); + openapiRequiredFields = new HashSet(Arrays.asList("template")); } /** @@ -565,7 +551,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1JobSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1JobSpec is not found in the empty JSON string", V1JobSpec.openapiRequiredFields.toString())); } } @@ -573,29 +559,29 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1JobSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1JobSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `completionMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("completionMode").toString())); } if ((jsonObj.get("managedBy") != null && !jsonObj.get("managedBy").isJsonNull()) && !jsonObj.get("managedBy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `managedBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("managedBy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `managedBy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("managedBy").toString())); } // validate the optional field `podFailurePolicy` if (jsonObj.get("podFailurePolicy") != null && !jsonObj.get("podFailurePolicy").isJsonNull()) { V1PodFailurePolicy.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -658,3 +644,4 @@ 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 ccd51f3bd5..17cf16cbc3 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * JobStatus represents the current state of a Job. */ @ApiModel(description = "JobStatus represents the current state of a Job.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1JobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) @@ -407,21 +410,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("active", "completedIndexes", "completionTime", "conditions", "failed", "failedIndexes", "ready", "startTime", "succeeded", "terminating", "uncountedTerminatedPods")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -433,7 +425,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1JobStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1JobStatus is not found in the empty JSON string", V1JobStatus.openapiRequiredFields.toString())); } } @@ -441,19 +433,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1JobStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -463,7 +455,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -520,3 +512,4 @@ 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 a7eba22145..e97ce1299b 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * JobTemplateSpec describes the data a Job should have when created from a template */ @ApiModel(description = "JobTemplateSpec describes the data a Job should have when created from a template") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1JobTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) @@ -153,12 +156,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("metadata"); - openapiFields.add("spec"); + openapiFields = new HashSet(Arrays.asList("metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -170,7 +171,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1JobTemplateSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1JobTemplateSpec is not found in the empty JSON string", V1JobTemplateSpec.openapiRequiredFields.toString())); } } @@ -178,7 +179,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1JobTemplateSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -241,3 +242,4 @@ 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 6415da05a3..669b4f5ff1 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Maps a string key to a path within a volume. */ @ApiModel(description = "Maps a string key to a path within a volume.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1KeyToPath { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -178,15 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("key"); - openapiFields.add("mode"); - openapiFields.add("path"); + openapiFields = new HashSet(Arrays.asList("key", "mode", "path")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("key"); - openapiRequiredFields.add("path"); + openapiRequiredFields = new HashSet(Arrays.asList("key", "path")); } /** @@ -198,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1KeyToPath.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1KeyToPath is not found in the empty JSON string", V1KeyToPath.openapiRequiredFields.toString())); } } @@ -206,22 +204,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1KeyToPath` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1KeyToPath.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -274,3 +272,4 @@ 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 77d07e79e6..a89a56ab23 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * 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. */ @ApiModel(description = "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1LabelSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) @@ -172,12 +175,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("matchExpressions"); - openapiFields.add("matchLabels"); + openapiFields = new HashSet(Arrays.asList("matchExpressions", "matchLabels")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -189,7 +190,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LabelSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1LabelSelector is not found in the empty JSON string", V1LabelSelector.openapiRequiredFields.toString())); } } @@ -197,7 +198,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LabelSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -206,7 +207,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -266,3 +267,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java index fac61608f5..27b6b5fa29 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * LabelSelectorAttributes indicates a label limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid. */ @ApiModel(description = "LabelSelectorAttributes indicates a label limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1LabelSelectorAttributes { public static final String SERIALIZED_NAME_RAW_SELECTOR = "rawSelector"; @SerializedName(SERIALIZED_NAME_RAW_SELECTOR) @@ -162,12 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("rawSelector"); - openapiFields.add("requirements"); + openapiFields = new HashSet(Arrays.asList("rawSelector", "requirements")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -179,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LabelSelectorAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1LabelSelectorAttributes is not found in the empty JSON string", V1LabelSelectorAttributes.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1LabelSelectorAttributes is not found in the empty JSON string", V1LabelSelectorAttributes.openapiRequiredFields.toString())); } } @@ -187,19 +188,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1LabelSelectorAttributes.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1LabelSelectorAttributes` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LabelSelectorAttributes` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("rawSelector") != null && !jsonObj.get("rawSelector").isJsonNull()) && !jsonObj.get("rawSelector").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `rawSelector` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rawSelector").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `rawSelector` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rawSelector").toString())); } if (jsonObj.get("requirements") != null && !jsonObj.get("requirements").isJsonNull()) { JsonArray jsonArrayrequirements = jsonObj.getAsJsonArray("requirements"); if (jsonArrayrequirements != null) { // ensure the json data is an array if (!jsonObj.get("requirements").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `requirements` to be an array in the JSON string but got `%s`", jsonObj.get("requirements").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `requirements` to be an array in the JSON string but got `%s`", jsonObj.get("requirements").toString())); } // validate the optional field `requirements` (array) @@ -259,3 +260,4 @@ 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 fc635b668a..e792155dc6 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ @ApiModel(description = "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1LabelSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -188,15 +191,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("key"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("key", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("key"); - openapiRequiredFields.add("operator"); + openapiRequiredFields = new HashSet(Arrays.asList("key", "operator")); } /** @@ -208,7 +206,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LabelSelectorRequirement.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1LabelSelectorRequirement is not found in the empty JSON string", V1LabelSelectorRequirement.openapiRequiredFields.toString())); } } @@ -216,26 +214,26 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LabelSelectorRequirement` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1LabelSelectorRequirement.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -288,3 +286,4 @@ 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 e38fadc2e2..bf20a8ed6a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * Lease defines a lease concept. */ @ApiModel(description = "Lease defines a lease concept.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Lease implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,14 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Lease.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Lease is not found in the empty JSON string", V1Lease.openapiRequiredFields.toString())); } } @@ -234,15 +233,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Lease` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -303,3 +302,4 @@ 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 8c53f0cada..6226bf5d6a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * LeaseList is a list of Lease objects. */ @ApiModel(description = "LeaseList is a list of Lease objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1LeaseList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LeaseList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1LeaseList is not found in the empty JSON string", V1LeaseList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LeaseList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1LeaseList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1Lease.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 ac9f567e2d..593916e5eb 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * LeaseSpec is a specification of a Lease. */ @ApiModel(description = "LeaseSpec is a specification of a Lease.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1LeaseSpec { public static final String SERIALIZED_NAME_ACQUIRE_TIME = "acquireTime"; @SerializedName(SERIALIZED_NAME_ACQUIRE_TIME) @@ -287,17 +290,10 @@ private String toIndentedString(Object o) { 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("preferredHolder"); - openapiFields.add("renewTime"); - openapiFields.add("strategy"); + openapiFields = new HashSet(Arrays.asList("acquireTime", "holderIdentity", "leaseDurationSeconds", "leaseTransitions", "preferredHolder", "renewTime", "strategy")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -309,7 +305,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LeaseSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1LeaseSpec is not found in the empty JSON string", V1LeaseSpec.openapiRequiredFields.toString())); } } @@ -317,18 +313,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LeaseSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `holderIdentity` to be a primitive type in the JSON string but got `%s`", jsonObj.get("holderIdentity").toString())); } if ((jsonObj.get("preferredHolder") != null && !jsonObj.get("preferredHolder").isJsonNull()) && !jsonObj.get("preferredHolder").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `preferredHolder` to be a primitive type in the JSON string but got `%s`", jsonObj.get("preferredHolder").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `preferredHolder` to be a primitive type in the JSON string but got `%s`", jsonObj.get("preferredHolder").toString())); } if ((jsonObj.get("strategy") != null && !jsonObj.get("strategy").isJsonNull()) && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `strategy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("strategy").toString())); } } @@ -381,3 +377,4 @@ 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 2852f20f0a..6012a7c9e2 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Lifecycle { public static final String SERIALIZED_NAME_POST_START = "postStart"; @SerializedName(SERIALIZED_NAME_POST_START) @@ -179,13 +182,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("postStart"); - openapiFields.add("preStop"); - openapiFields.add("stopSignal"); + openapiFields = new HashSet(Arrays.asList("postStart", "preStop", "stopSignal")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -197,7 +197,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Lifecycle.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Lifecycle is not found in the empty JSON string", V1Lifecycle.openapiRequiredFields.toString())); } } @@ -205,7 +205,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Lifecycle` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -218,7 +218,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1LifecycleHandler.validateJsonElement(jsonObj.get("preStop")); } if ((jsonObj.get("stopSignal") != null && !jsonObj.get("stopSignal").isJsonNull()) && !jsonObj.get("stopSignal").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `stopSignal` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stopSignal").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `stopSignal` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stopSignal").toString())); } } @@ -271,3 +271,4 @@ 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 78f0388111..54ec745210 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1LifecycleHandler { public static final String SERIALIZED_NAME_EXEC = "exec"; @SerializedName(SERIALIZED_NAME_EXEC) @@ -209,14 +212,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("exec"); - openapiFields.add("httpGet"); - openapiFields.add("sleep"); - openapiFields.add("tcpSocket"); + openapiFields = new HashSet(Arrays.asList("exec", "httpGet", "sleep", "tcpSocket")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -228,7 +227,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LifecycleHandler.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1LifecycleHandler is not found in the empty JSON string", V1LifecycleHandler.openapiRequiredFields.toString())); } } @@ -236,7 +235,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LifecycleHandler` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -307,3 +306,4 @@ 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 0a63abe928..997a5654e6 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * LimitRange sets resource usage limits for each kind of resource in a Namespace. */ @ApiModel(description = "LimitRange sets resource usage limits for each kind of resource in a Namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1LimitRange implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,14 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LimitRange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1LimitRange is not found in the empty JSON string", V1LimitRange.openapiRequiredFields.toString())); } } @@ -234,15 +233,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LimitRange` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -303,3 +302,4 @@ 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 659a6258b8..8fe460dd28 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * LimitRangeItem defines a min/max usage limit for any resource that matches on kind. */ @ApiModel(description = "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1LimitRangeItem { public static final String SERIALIZED_NAME_DEFAULT = "default"; @SerializedName(SERIALIZED_NAME_DEFAULT) @@ -302,17 +305,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("default", "defaultRequest", "max", "maxLimitRequestRatio", "min", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -324,7 +320,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LimitRangeItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1LimitRangeItem is not found in the empty JSON string", V1LimitRangeItem.openapiRequiredFields.toString())); } } @@ -332,19 +328,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LimitRangeItem` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1LimitRangeItem.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -397,3 +393,4 @@ 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 78e07de9ae..8b613e7bfb 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * LimitRangeList is a list of LimitRange items. */ @ApiModel(description = "LimitRangeList is a list of LimitRange items.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1LimitRangeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LimitRangeList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1LimitRangeList is not found in the empty JSON string", V1LimitRangeList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LimitRangeList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1LimitRangeList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1LimitRange.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 5d07e63889..0e9edd5c06 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * LimitRangeSpec defines a min/max usage limit for resources that match on kind. */ @ApiModel(description = "LimitRangeSpec defines a min/max usage limit for resources that match on kind.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1LimitRangeSpec { public static final String SERIALIZED_NAME_LIMITS = "limits"; @SerializedName(SERIALIZED_NAME_LIMITS) @@ -135,12 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("limits"); + openapiFields = new HashSet(Arrays.asList("limits")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("limits"); + openapiRequiredFields = new HashSet(Arrays.asList("limits")); } /** @@ -152,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LimitRangeSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1LimitRangeSpec is not found in the empty JSON string", V1LimitRangeSpec.openapiRequiredFields.toString())); } } @@ -160,20 +161,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LimitRangeSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1LimitRangeSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `limits` to be an array in the JSON string but got `%s`", jsonObj.get("limits").toString())); } JsonArray jsonArraylimits = jsonObj.getAsJsonArray("limits"); @@ -232,3 +233,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java index 56fa9b1e2a..143752bcd3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * LimitResponse defines how to handle requests that can not be executed right now. */ @ApiModel(description = "LimitResponse defines how to handle requests that can not be executed right now.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1LimitResponse { public static final String SERIALIZED_NAME_QUEUING = "queuing"; @SerializedName(SERIALIZED_NAME_QUEUING) @@ -152,13 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("queuing"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("queuing", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -170,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LimitResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1LimitResponse is not found in the empty JSON string", V1LimitResponse.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1LimitResponse is not found in the empty JSON string", V1LimitResponse.openapiRequiredFields.toString())); } } @@ -178,14 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1LimitResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1LimitResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LimitResponse` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1LimitResponse.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -194,7 +194,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1QueuingConfiguration.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -247,3 +247,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java index f79fb0a984..1425bae19e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * 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? */ @ApiModel(description = "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?") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1LimitedPriorityLevelConfiguration { public static final String SERIALIZED_NAME_BORROWING_LIMIT_PERCENT = "borrowingLimitPercent"; @SerializedName(SERIALIZED_NAME_BORROWING_LIMIT_PERCENT) @@ -206,14 +209,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("borrowingLimitPercent", "lendablePercent", "limitResponse", "nominalConcurrencyShares")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -225,7 +224,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LimitedPriorityLevelConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1LimitedPriorityLevelConfiguration is not found in the empty JSON string", V1LimitedPriorityLevelConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1LimitedPriorityLevelConfiguration is not found in the empty JSON string", V1LimitedPriorityLevelConfiguration.openapiRequiredFields.toString())); } } @@ -233,7 +232,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1LimitedPriorityLevelConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1LimitedPriorityLevelConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LimitedPriorityLevelConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -292,3 +291,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java index 1298edaa57..a517c48bb3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * LinuxContainerUser represents user identity information in Linux containers */ @ApiModel(description = "LinuxContainerUser represents user identity information in Linux containers") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1LinuxContainerUser { public static final String SERIALIZED_NAME_GID = "gid"; @SerializedName(SERIALIZED_NAME_GID) @@ -188,15 +191,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("gid"); - openapiFields.add("supplementalGroups"); - openapiFields.add("uid"); + openapiFields = new HashSet(Arrays.asList("gid", "supplementalGroups", "uid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("gid"); - openapiRequiredFields.add("uid"); + openapiRequiredFields = new HashSet(Arrays.asList("gid", "uid")); } /** @@ -208,7 +206,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LinuxContainerUser.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1LinuxContainerUser is not found in the empty JSON string", V1LinuxContainerUser.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1LinuxContainerUser is not found in the empty JSON string", V1LinuxContainerUser.openapiRequiredFields.toString())); } } @@ -216,20 +214,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1LinuxContainerUser.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1LinuxContainerUser` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LinuxContainerUser` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1LinuxContainerUser.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("supplementalGroups") != null && !jsonObj.get("supplementalGroups").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `supplementalGroups` to be an array in the JSON string but got `%s`", jsonObj.get("supplementalGroups").toString())); } } @@ -282,3 +280,4 @@ 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 64f98f69bc..c005c5ba23 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. */ @ApiModel(description = "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ListMeta { public static final String SERIALIZED_NAME_CONTINUE = "continue"; @SerializedName(SERIALIZED_NAME_CONTINUE) @@ -205,14 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("continue", "remainingItemCount", "resourceVersion", "selfLink")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -224,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ListMeta.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ListMeta is not found in the empty JSON string", V1ListMeta.openapiRequiredFields.toString())); } } @@ -232,18 +231,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ListMeta` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `selfLink` to be a primitive type in the JSON string but got `%s`", jsonObj.get("selfLink").toString())); } } @@ -268,8 +267,7 @@ public void write(JsonWriter out, V1ListMeta value) throws IOException { @Override public V1ListMeta read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); - // Disable validation so delete API can tolerate non-status return object (graceful deletion) - // validateJsonObject(jsonObj); + validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); } @@ -297,3 +295,4 @@ 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 b2df88c7fb..fe2ea12cf9 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point. */ @ApiModel(description = "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1LoadBalancerIngress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) @@ -216,14 +219,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("hostname"); - openapiFields.add("ip"); - openapiFields.add("ipMode"); - openapiFields.add("ports"); + openapiFields = new HashSet(Arrays.asList("hostname", "ip", "ipMode", "ports")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -235,7 +234,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LoadBalancerIngress.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1LoadBalancerIngress is not found in the empty JSON string", V1LoadBalancerIngress.openapiRequiredFields.toString())); } } @@ -243,25 +242,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LoadBalancerIngress` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ip").toString())); } if ((jsonObj.get("ipMode") != null && !jsonObj.get("ipMode").isJsonNull()) && !jsonObj.get("ipMode").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `ipMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ipMode").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ipMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ipMode").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -321,3 +320,4 @@ 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 e6ea2b31d3..0872652c4c 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * LoadBalancerStatus represents the status of a load-balancer. */ @ApiModel(description = "LoadBalancerStatus represents the status of a load-balancer.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1LoadBalancerStatus { public static final String SERIALIZED_NAME_INGRESS = "ingress"; @SerializedName(SERIALIZED_NAME_INGRESS) @@ -135,11 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("ingress"); + openapiFields = new HashSet(Arrays.asList("ingress")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -151,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LoadBalancerStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1LoadBalancerStatus is not found in the empty JSON string", V1LoadBalancerStatus.openapiRequiredFields.toString())); } } @@ -159,7 +161,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LoadBalancerStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -168,7 +170,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -228,3 +230,4 @@ 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 c01457b0ed..2a291b0d87 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. */ @ApiModel(description = "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1LocalObjectReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -124,11 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -140,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LocalObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1LocalObjectReference is not found in the empty JSON string", V1LocalObjectReference.openapiRequiredFields.toString())); } } @@ -148,12 +150,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LocalObjectReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -206,3 +208,4 @@ 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 545cd2c7bf..6bff3b6490 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(description = "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1LocalSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,16 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -256,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LocalSubjectAccessReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1LocalSubjectAccessReview is not found in the empty JSON string", V1LocalSubjectAccessReview.openapiRequiredFields.toString())); } } @@ -264,22 +261,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LocalSubjectAccessReview` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1LocalSubjectAccessReview.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -342,3 +339,4 @@ 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 74ad2c5606..cdb1d5f0b9 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Local represents directly-attached storage with node affinity */ @ApiModel(description = "Local represents directly-attached storage with node affinity") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1LocalVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -151,13 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("fsType"); - openapiFields.add("path"); + openapiFields = new HashSet(Arrays.asList("fsType", "path")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("path"); + openapiRequiredFields = new HashSet(Arrays.asList("path")); } /** @@ -169,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1LocalVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1LocalVolumeSource is not found in the empty JSON string", V1LocalVolumeSource.openapiRequiredFields.toString())); } } @@ -177,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1LocalVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1LocalVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -245,3 +245,4 @@ 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 51cef976f4..7513322ccc 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. */ @ApiModel(description = "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ManagedFieldsEntry { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -287,17 +290,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "fieldsType", "fieldsV1", "manager", "operation", "subresource", "time")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -309,7 +305,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ManagedFieldsEntry.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ManagedFieldsEntry is not found in the empty JSON string", V1ManagedFieldsEntry.openapiRequiredFields.toString())); } } @@ -317,24 +313,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ManagedFieldsEntry` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `subresource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subresource").toString())); } } @@ -387,3 +383,4 @@ 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 2dd66b6538..6239cf51e3 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook. */ @ApiModel(description = "MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1MatchCondition { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("expression"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("expression", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("expression"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("expression", "name")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1MatchCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1MatchCondition is not found in the empty JSON string", V1MatchCondition.openapiRequiredFields.toString())); } } @@ -178,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1MatchCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1MatchCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -246,3 +245,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java index a345db2a02..71e38b71a0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * 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) */ @ApiModel(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)") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) @@ -252,15 +255,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("excludeResourceRules", "matchPolicy", "namespaceSelector", "objectSelector", "resourceRules")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -272,7 +270,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1MatchResources.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1MatchResources is not found in the empty JSON string", V1MatchResources.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1MatchResources is not found in the empty JSON string", V1MatchResources.openapiRequiredFields.toString())); } } @@ -280,7 +278,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1MatchResources.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1MatchResources` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1MatchResources` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -289,7 +287,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -299,7 +297,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -314,7 +312,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -374,3 +372,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java index 99a14e48a6..4110e80a1f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ModifyVolumeStatus represents the status object of ControllerModifyVolume operation */ @ApiModel(description = "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ModifyVolumeStatus { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -151,13 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("status"); - openapiFields.add("targetVolumeAttributesClassName"); + openapiFields = new HashSet(Arrays.asList("status", "targetVolumeAttributesClassName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); + openapiRequiredFields = new HashSet(Arrays.asList("status")); } /** @@ -169,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ModifyVolumeStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ModifyVolumeStatus is not found in the empty JSON string", V1ModifyVolumeStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ModifyVolumeStatus is not found in the empty JSON string", V1ModifyVolumeStatus.openapiRequiredFields.toString())); } } @@ -177,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ModifyVolumeStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ModifyVolumeStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ModifyVolumeStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ModifyVolumeStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } if ((jsonObj.get("targetVolumeAttributesClassName") != null && !jsonObj.get("targetVolumeAttributesClassName").isJsonNull()) && !jsonObj.get("targetVolumeAttributesClassName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `targetVolumeAttributesClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("targetVolumeAttributesClassName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `targetVolumeAttributesClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("targetVolumeAttributesClassName").toString())); } } @@ -245,3 +245,4 @@ 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 2cfae695ed..3d57c1192e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * MutatingWebhook describes an admission webhook and the resources and operations it applies to. */ @ApiModel(description = "MutatingWebhook describes an admission webhook and the resources and operations it applies to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1MutatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; @SerializedName(SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS) @@ -451,26 +454,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("admissionReviewVersions", "clientConfig", "failurePolicy", "matchConditions", "matchPolicy", "name", "namespaceSelector", "objectSelector", "reinvocationPolicy", "rules", "sideEffects", "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"); + openapiRequiredFields = new HashSet(Arrays.asList("admissionReviewVersions", "clientConfig", "name", "sideEffects")); } /** @@ -482,7 +469,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1MutatingWebhook.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1MutatingWebhook is not found in the empty JSON string", V1MutatingWebhook.openapiRequiredFields.toString())); } } @@ -490,14 +477,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1MutatingWebhook` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1MutatingWebhook.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -505,19 +492,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -527,10 +514,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -541,14 +528,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1LabelSelector.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -558,7 +545,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sideEffects` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sideEffects").toString())); } } @@ -611,3 +598,4 @@ 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 0b271b106d..5735e5623a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. */ @ApiModel(description = "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1MutatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,14 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "webhooks")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -236,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1MutatingWebhookConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1MutatingWebhookConfiguration is not found in the empty JSON string", V1MutatingWebhookConfiguration.openapiRequiredFields.toString())); } } @@ -244,15 +243,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1MutatingWebhookConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -263,7 +262,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -323,3 +322,4 @@ 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 16f769bd59..bbd0d585cc 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. */ @ApiModel(description = "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1MutatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1MutatingWebhookConfigurationList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1MutatingWebhookConfigurationList is not found in the empty JSON string", V1MutatingWebhookConfigurationList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1MutatingWebhookConfigurationList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1MutatingWebhookConfigurationList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1MutatingWebhookConfiguration.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 4aaad3e928..9c7f6a513a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NFSVolumeSource { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -178,15 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("path"); - openapiFields.add("readOnly"); - openapiFields.add("server"); + openapiFields = new HashSet(Arrays.asList("path", "readOnly", "server")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("path"); - openapiRequiredFields.add("server"); + openapiRequiredFields = new HashSet(Arrays.asList("path", "server")); } /** @@ -198,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NFSVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NFSVolumeSource is not found in the empty JSON string", V1NFSVolumeSource.openapiRequiredFields.toString())); } } @@ -206,22 +204,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NFSVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1NFSVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `server` to be a primitive type in the JSON string but got `%s`", jsonObj.get("server").toString())); } } @@ -274,3 +272,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java index a1c970cc60..86bd5b7e9d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. */ @ApiModel(description = "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NamedRuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -301,16 +304,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiGroups", "apiVersions", "operations", "resourceNames", "resources", "scope")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -322,7 +319,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NamedRuleWithOperations.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1NamedRuleWithOperations is not found in the empty JSON string", V1NamedRuleWithOperations.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NamedRuleWithOperations is not found in the empty JSON string", V1NamedRuleWithOperations.openapiRequiredFields.toString())); } } @@ -330,32 +327,32 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1NamedRuleWithOperations.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NamedRuleWithOperations` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NamedRuleWithOperations` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("apiGroups") != null && !jsonObj.get("apiGroups").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scope").toString())); } } @@ -408,3 +405,4 @@ 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 2f5176a045..7c9a10e4da 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * Namespace provides a scope for Names. Use of multiple namespaces is optional. */ @ApiModel(description = "Namespace provides a scope for Names. Use of multiple namespaces is optional.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Namespace implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Namespace.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Namespace is not found in the empty JSON string", V1Namespace.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Namespace` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 aa3abc24c7..e631392727 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * NamespaceCondition contains details about state of namespace. */ @ApiModel(description = "NamespaceCondition contains details about state of namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NamespaceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -233,17 +236,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); } /** @@ -255,7 +251,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NamespaceCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NamespaceCondition is not found in the empty JSON string", V1NamespaceCondition.openapiRequiredFields.toString())); } } @@ -263,28 +259,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NamespaceCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1NamespaceCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -337,3 +333,4 @@ 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 941e6b5fb6..4aca3a2ec2 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * NamespaceList is a list of Namespaces. */ @ApiModel(description = "NamespaceList is a list of Namespaces.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NamespaceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NamespaceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NamespaceList is not found in the empty JSON string", V1NamespaceList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NamespaceList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1NamespaceList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1Namespace.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 3f9d2116ce..7dce16204d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * NamespaceSpec describes the attributes on a Namespace. */ @ApiModel(description = "NamespaceSpec describes the attributes on a Namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NamespaceSpec { public static final String SERIALIZED_NAME_FINALIZERS = "finalizers"; @SerializedName(SERIALIZED_NAME_FINALIZERS) @@ -134,11 +137,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("finalizers"); + openapiFields = new HashSet(Arrays.asList("finalizers")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -150,7 +152,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NamespaceSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NamespaceSpec is not found in the empty JSON string", V1NamespaceSpec.openapiRequiredFields.toString())); } } @@ -158,13 +160,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NamespaceSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("finalizers") != null && !jsonObj.get("finalizers").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `finalizers` to be an array in the JSON string but got `%s`", jsonObj.get("finalizers").toString())); } } @@ -217,3 +219,4 @@ 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 270200ebb5..11c3145b8a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * NamespaceStatus is information about the current status of a Namespace. */ @ApiModel(description = "NamespaceStatus is information about the current status of a Namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NamespaceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -162,12 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("conditions"); - openapiFields.add("phase"); + openapiFields = new HashSet(Arrays.asList("conditions", "phase")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -179,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NamespaceStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NamespaceStatus is not found in the empty JSON string", V1NamespaceStatus.openapiRequiredFields.toString())); } } @@ -187,7 +188,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NamespaceStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -196,7 +197,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -206,7 +207,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `phase` to be a primitive type in the JSON string but got `%s`", jsonObj.get("phase").toString())); } } @@ -259,3 +260,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java index e85c39be06..85f4935367 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context. */ @ApiModel(description = "NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NetworkDeviceData { public static final String SERIALIZED_NAME_HARDWARE_ADDRESS = "hardwareAddress"; @SerializedName(SERIALIZED_NAME_HARDWARE_ADDRESS) @@ -188,13 +191,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("hardwareAddress"); - openapiFields.add("interfaceName"); - openapiFields.add("ips"); + openapiFields = new HashSet(Arrays.asList("hardwareAddress", "interfaceName", "ips")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -206,7 +206,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NetworkDeviceData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1NetworkDeviceData is not found in the empty JSON string", V1NetworkDeviceData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NetworkDeviceData is not found in the empty JSON string", V1NetworkDeviceData.openapiRequiredFields.toString())); } } @@ -214,19 +214,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1NetworkDeviceData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NetworkDeviceData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NetworkDeviceData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("hardwareAddress") != null && !jsonObj.get("hardwareAddress").isJsonNull()) && !jsonObj.get("hardwareAddress").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `hardwareAddress` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hardwareAddress").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `hardwareAddress` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hardwareAddress").toString())); } if ((jsonObj.get("interfaceName") != null && !jsonObj.get("interfaceName").isJsonNull()) && !jsonObj.get("interfaceName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `interfaceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interfaceName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `interfaceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interfaceName").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("ips") != null && !jsonObj.get("ips").isJsonNull() && !jsonObj.get("ips").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `ips` to be an array in the JSON string but got `%s`", jsonObj.get("ips").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ips` to be an array in the JSON string but got `%s`", jsonObj.get("ips").toString())); } } @@ -279,3 +279,4 @@ 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 fdce2698c9..8e8c5129da 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * NetworkPolicy describes what network traffic is allowed for a set of Pods */ @ApiModel(description = "NetworkPolicy describes what network traffic is allowed for a set of Pods") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NetworkPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,14 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NetworkPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NetworkPolicy is not found in the empty JSON string", V1NetworkPolicy.openapiRequiredFields.toString())); } } @@ -234,15 +233,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NetworkPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -303,3 +302,4 @@ 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 6941d72ea0..58e77eb729 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * 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 */ @ApiModel(description = "NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NetworkPolicyEgressRule { public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) @@ -171,12 +174,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("ports"); - openapiFields.add("to"); + openapiFields = new HashSet(Arrays.asList("ports", "to")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -188,7 +189,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NetworkPolicyEgressRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NetworkPolicyEgressRule is not found in the empty JSON string", V1NetworkPolicyEgressRule.openapiRequiredFields.toString())); } } @@ -196,7 +197,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NetworkPolicyEgressRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -205,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -219,7 +220,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -279,3 +280,4 @@ 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 b6d9a22079..2c2edfe405 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * 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. */ @ApiModel(description = "NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NetworkPolicyIngressRule { public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) @@ -171,12 +174,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("from"); - openapiFields.add("ports"); + openapiFields = new HashSet(Arrays.asList("from", "ports")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -188,7 +189,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NetworkPolicyIngressRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NetworkPolicyIngressRule is not found in the empty JSON string", V1NetworkPolicyIngressRule.openapiRequiredFields.toString())); } } @@ -196,7 +197,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NetworkPolicyIngressRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -205,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -219,7 +220,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -279,3 +280,4 @@ 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 b880cf8719..b17b0de209 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * NetworkPolicyList is a list of NetworkPolicy objects. */ @ApiModel(description = "NetworkPolicyList is a list of NetworkPolicy objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NetworkPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NetworkPolicyList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NetworkPolicyList is not found in the empty JSON string", V1NetworkPolicyList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NetworkPolicyList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1NetworkPolicyList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1NetworkPolicy.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 15fcc2653a..7063645c52 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed */ @ApiModel(description = "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NetworkPolicyPeer { public static final String SERIALIZED_NAME_IP_BLOCK = "ipBlock"; @SerializedName(SERIALIZED_NAME_IP_BLOCK) @@ -180,13 +183,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("ipBlock"); - openapiFields.add("namespaceSelector"); - openapiFields.add("podSelector"); + openapiFields = new HashSet(Arrays.asList("ipBlock", "namespaceSelector", "podSelector")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -198,7 +198,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NetworkPolicyPeer.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NetworkPolicyPeer is not found in the empty JSON string", V1NetworkPolicyPeer.openapiRequiredFields.toString())); } } @@ -206,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NetworkPolicyPeer` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -273,3 +273,4 @@ 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 7cac9774c0..5ce035a95a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * NetworkPolicyPort describes a port to allow traffic on */ @ApiModel(description = "NetworkPolicyPort describes a port to allow traffic on") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NetworkPolicyPort { public static final String SERIALIZED_NAME_END_PORT = "endPort"; @SerializedName(SERIALIZED_NAME_END_PORT) @@ -179,13 +182,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("endPort"); - openapiFields.add("port"); - openapiFields.add("protocol"); + openapiFields = new HashSet(Arrays.asList("endPort", "port", "protocol")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -197,7 +197,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NetworkPolicyPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NetworkPolicyPort is not found in the empty JSON string", V1NetworkPolicyPort.openapiRequiredFields.toString())); } } @@ -205,15 +205,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NetworkPolicyPort` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `protocol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("protocol").toString())); } } @@ -266,3 +266,4 @@ 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 7dcf7ca17d..3847eb0875 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * NetworkPolicySpec provides the specification of a NetworkPolicy */ @ApiModel(description = "NetworkPolicySpec provides the specification of a NetworkPolicy") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NetworkPolicySpec { public static final String SERIALIZED_NAME_EGRESS = "egress"; @SerializedName(SERIALIZED_NAME_EGRESS) @@ -234,14 +237,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("egress", "ingress", "podSelector", "policyTypes")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -253,7 +252,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NetworkPolicySpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NetworkPolicySpec is not found in the empty JSON string", V1NetworkPolicySpec.openapiRequiredFields.toString())); } } @@ -261,7 +260,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NetworkPolicySpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -270,7 +269,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -284,7 +283,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -299,7 +298,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("policyTypes") != null && !jsonObj.get("policyTypes").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `policyTypes` to be an array in the JSON string but got `%s`", jsonObj.get("policyTypes").toString())); } } @@ -352,3 +351,4 @@ 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 34ea6210d4..8ce6d9c2bd 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). */ @ApiModel(description = "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Node implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Node.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Node is not found in the empty JSON string", V1Node.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Node` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 a2bab05581..6b92bf8b92 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * NodeAddress contains information for the node's address. */ @ApiModel(description = "NodeAddress contains information for the node's address.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NodeAddress { public static final String SERIALIZED_NAME_ADDRESS = "address"; @SerializedName(SERIALIZED_NAME_ADDRESS) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("address"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("address", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("address"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("address", "type")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeAddress.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NodeAddress is not found in the empty JSON string", V1NodeAddress.openapiRequiredFields.toString())); } } @@ -178,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeAddress` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1NodeAddress.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -246,3 +245,4 @@ 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 78485630e9..c396a73ec7 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * Node affinity is a group of node affinity scheduling rules. */ @ApiModel(description = "Node affinity is a group of node affinity scheduling rules.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") 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) @@ -163,12 +166,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("preferredDuringSchedulingIgnoredDuringExecution"); - openapiFields.add("requiredDuringSchedulingIgnoredDuringExecution"); + openapiFields = new HashSet(Arrays.asList("preferredDuringSchedulingIgnoredDuringExecution", "requiredDuringSchedulingIgnoredDuringExecution")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -180,7 +181,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeAffinity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NodeAffinity is not found in the empty JSON string", V1NodeAffinity.openapiRequiredFields.toString())); } } @@ -188,7 +189,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeAffinity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -197,7 +198,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -261,3 +262,4 @@ 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 31025133f6..ec06a31376 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * NodeCondition contains condition information for a node. */ @ApiModel(description = "NodeCondition contains condition information for a node.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NodeCondition { public static final String SERIALIZED_NAME_LAST_HEARTBEAT_TIME = "lastHeartbeatTime"; @SerializedName(SERIALIZED_NAME_LAST_HEARTBEAT_TIME) @@ -260,18 +263,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("lastHeartbeatTime", "lastTransitionTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); } /** @@ -283,7 +278,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NodeCondition is not found in the empty JSON string", V1NodeCondition.openapiRequiredFields.toString())); } } @@ -291,28 +286,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1NodeCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -365,3 +360,4 @@ 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 cf5e9d3125..c4ea935faf 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22 */ @ApiModel(description = "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NodeConfigSource { public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("configMap"); + openapiFields = new HashSet(Arrays.asList("configMap")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeConfigSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NodeConfigSource is not found in the empty JSON string", V1NodeConfigSource.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeConfigSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ 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 5523b648eb..525a622ca1 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource. */ @ApiModel(description = "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NodeConfigStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) @@ -206,14 +209,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("active", "assigned", "error", "lastKnownGood")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -225,7 +224,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeConfigStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NodeConfigStatus is not found in the empty JSON string", V1NodeConfigStatus.openapiRequiredFields.toString())); } } @@ -233,7 +232,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeConfigStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -246,7 +245,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1NodeConfigSource.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -303,3 +302,4 @@ 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 8b75702c36..1335bdd29e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * NodeDaemonEndpoints lists ports opened by daemons running on the Node. */ @ApiModel(description = "NodeDaemonEndpoints lists ports opened by daemons running on the Node.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NodeDaemonEndpoints { public static final String SERIALIZED_NAME_KUBELET_ENDPOINT = "kubeletEndpoint"; @SerializedName(SERIALIZED_NAME_KUBELET_ENDPOINT) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("kubeletEndpoint"); + openapiFields = new HashSet(Arrays.asList("kubeletEndpoint")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeDaemonEndpoints.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NodeDaemonEndpoints is not found in the empty JSON string", V1NodeDaemonEndpoints.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeDaemonEndpoints` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java index 5061acdec3..84e5bba106 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers. */ @ApiModel(description = "NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NodeFeatures { public static final String SERIALIZED_NAME_SUPPLEMENTAL_GROUPS_POLICY = "supplementalGroupsPolicy"; @SerializedName(SERIALIZED_NAME_SUPPLEMENTAL_GROUPS_POLICY) @@ -124,11 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("supplementalGroupsPolicy"); + openapiFields = new HashSet(Arrays.asList("supplementalGroupsPolicy")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -140,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeFeatures.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1NodeFeatures is not found in the empty JSON string", V1NodeFeatures.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NodeFeatures is not found in the empty JSON string", V1NodeFeatures.openapiRequiredFields.toString())); } } @@ -148,7 +150,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1NodeFeatures.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NodeFeatures` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeFeatures` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -203,3 +205,4 @@ 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 7689831042..dedad738b6 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * NodeList is the whole list of all Nodes which have been registered with master. */ @ApiModel(description = "NodeList is the whole list of all Nodes which have been registered with master.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NodeList is not found in the empty JSON string", V1NodeList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1NodeList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1Node.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java index c4a857757a..6f3797f904 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * NodeRuntimeHandler is a set of runtime handler information. */ @ApiModel(description = "NodeRuntimeHandler is a set of runtime handler information.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NodeRuntimeHandler { public static final String SERIALIZED_NAME_FEATURES = "features"; @SerializedName(SERIALIZED_NAME_FEATURES) @@ -152,12 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("features"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("features", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -169,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeRuntimeHandler.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1NodeRuntimeHandler is not found in the empty JSON string", V1NodeRuntimeHandler.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NodeRuntimeHandler is not found in the empty JSON string", V1NodeRuntimeHandler.openapiRequiredFields.toString())); } } @@ -177,7 +178,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1NodeRuntimeHandler.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NodeRuntimeHandler` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeRuntimeHandler` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -186,7 +187,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1NodeRuntimeHandlerFeatures.validateJsonElement(jsonObj.get("features")); } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -239,3 +240,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java index ecfa3da09d..0dc5593fbb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler. */ @ApiModel(description = "NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NodeRuntimeHandlerFeatures { public static final String SERIALIZED_NAME_RECURSIVE_READ_ONLY_MOUNTS = "recursiveReadOnlyMounts"; @SerializedName(SERIALIZED_NAME_RECURSIVE_READ_ONLY_MOUNTS) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("recursiveReadOnlyMounts"); - openapiFields.add("userNamespaces"); + openapiFields = new HashSet(Arrays.asList("recursiveReadOnlyMounts", "userNamespaces")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeRuntimeHandlerFeatures.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1NodeRuntimeHandlerFeatures is not found in the empty JSON string", V1NodeRuntimeHandlerFeatures.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NodeRuntimeHandlerFeatures is not found in the empty JSON string", V1NodeRuntimeHandlerFeatures.openapiRequiredFields.toString())); } } @@ -176,7 +177,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1NodeRuntimeHandlerFeatures.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NodeRuntimeHandlerFeatures` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeRuntimeHandlerFeatures` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -231,3 +232,4 @@ 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 fe204cd2e2..7d82d6e609 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NodeSelector { public static final String SERIALIZED_NAME_NODE_SELECTOR_TERMS = "nodeSelectorTerms"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR_TERMS) @@ -135,12 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("nodeSelectorTerms"); + openapiFields = new HashSet(Arrays.asList("nodeSelectorTerms")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("nodeSelectorTerms"); + openapiRequiredFields = new HashSet(Arrays.asList("nodeSelectorTerms")); } /** @@ -152,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NodeSelector is not found in the empty JSON string", V1NodeSelector.openapiRequiredFields.toString())); } } @@ -160,20 +161,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1NodeSelector.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nodeSelectorTerms` to be an array in the JSON string but got `%s`", jsonObj.get("nodeSelectorTerms").toString())); } JsonArray jsonArraynodeSelectorTerms = jsonObj.getAsJsonArray("nodeSelectorTerms"); @@ -232,3 +233,4 @@ 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 de095196de..c2aa91f201 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ @ApiModel(description = "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NodeSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -188,15 +191,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("key"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("key", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("key"); - openapiRequiredFields.add("operator"); + openapiRequiredFields = new HashSet(Arrays.asList("key", "operator")); } /** @@ -208,7 +206,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeSelectorRequirement.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NodeSelectorRequirement is not found in the empty JSON string", V1NodeSelectorRequirement.openapiRequiredFields.toString())); } } @@ -216,26 +214,26 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeSelectorRequirement` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1NodeSelectorRequirement.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -288,3 +286,4 @@ 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 69172feaf7..733e3713d0 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(description = "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NodeSelectorTerm { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) @@ -170,12 +173,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("matchExpressions"); - openapiFields.add("matchFields"); + openapiFields = new HashSet(Arrays.asList("matchExpressions", "matchFields")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -187,7 +188,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeSelectorTerm.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NodeSelectorTerm is not found in the empty JSON string", V1NodeSelectorTerm.openapiRequiredFields.toString())); } } @@ -195,7 +196,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeSelectorTerm` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -204,7 +205,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -218,7 +219,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -278,3 +279,4 @@ 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 efef716bfa..20f4cf65e1 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * NodeSpec describes the attributes that a node is created with. */ @ApiModel(description = "NodeSpec describes the attributes that a node is created with.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NodeSpec { public static final String SERIALIZED_NAME_CONFIG_SOURCE = "configSource"; @SerializedName(SERIALIZED_NAME_CONFIG_SOURCE) @@ -306,17 +309,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("configSource", "externalID", "podCIDR", "podCIDRs", "providerID", "taints", "unschedulable")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -328,7 +324,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NodeSpec is not found in the empty JSON string", V1NodeSpec.openapiRequiredFields.toString())); } } @@ -336,7 +332,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -345,24 +341,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1NodeConfigSource.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -422,3 +418,4 @@ 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 76a6828214..e076f68941 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -57,6 +59,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -64,7 +67,7 @@ * NodeStatus is information about the current status of a node. */ @ApiModel(description = "NodeStatus is information about the current status of a node.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NodeStatus { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) @@ -526,23 +529,10 @@ private String toIndentedString(Object o) { 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("features"); - openapiFields.add("images"); - openapiFields.add("nodeInfo"); - openapiFields.add("phase"); - openapiFields.add("runtimeHandlers"); - openapiFields.add("volumesAttached"); - openapiFields.add("volumesInUse"); + openapiFields = new HashSet(Arrays.asList("addresses", "allocatable", "capacity", "conditions", "config", "daemonEndpoints", "features", "images", "nodeInfo", "phase", "runtimeHandlers", "volumesAttached", "volumesInUse")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -554,7 +544,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NodeStatus is not found in the empty JSON string", V1NodeStatus.openapiRequiredFields.toString())); } } @@ -562,7 +552,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -571,7 +561,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -585,7 +575,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -611,7 +601,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -625,14 +615,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1NodeSystemInfo.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `phase` to be a primitive type in the JSON string but got `%s`", jsonObj.get("phase").toString())); } if (jsonObj.get("runtimeHandlers") != null && !jsonObj.get("runtimeHandlers").isJsonNull()) { JsonArray jsonArrayruntimeHandlers = jsonObj.getAsJsonArray("runtimeHandlers"); if (jsonArrayruntimeHandlers != null) { // ensure the json data is an array if (!jsonObj.get("runtimeHandlers").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `runtimeHandlers` to be an array in the JSON string but got `%s`", jsonObj.get("runtimeHandlers").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `runtimeHandlers` to be an array in the JSON string but got `%s`", jsonObj.get("runtimeHandlers").toString())); } // validate the optional field `runtimeHandlers` (array) @@ -646,7 +636,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -657,7 +647,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("volumesInUse") != null && !jsonObj.get("volumesInUse").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `volumesInUse` to be an array in the JSON string but got `%s`", jsonObj.get("volumesInUse").toString())); } } @@ -710,3 +700,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java index 40b58a1db4..71d5833828 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * NodeSwapStatus represents swap memory information. */ @ApiModel(description = "NodeSwapStatus represents swap memory information.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NodeSwapStatus { public static final String SERIALIZED_NAME_CAPACITY = "capacity"; @SerializedName(SERIALIZED_NAME_CAPACITY) @@ -124,11 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("capacity"); + openapiFields = new HashSet(Arrays.asList("capacity")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -140,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeSwapStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1NodeSwapStatus is not found in the empty JSON string", V1NodeSwapStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NodeSwapStatus is not found in the empty JSON string", V1NodeSwapStatus.openapiRequiredFields.toString())); } } @@ -148,7 +150,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1NodeSwapStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NodeSwapStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeSwapStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -203,3 +205,4 @@ 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 2f516cd91f..d5591dccf7 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * NodeSystemInfo is a set of ids/uuids to uniquely identify the node. */ @ApiModel(description = "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NodeSystemInfo { public static final String SERIALIZED_NAME_ARCHITECTURE = "architecture"; @SerializedName(SERIALIZED_NAME_ARCHITECTURE) @@ -395,31 +398,10 @@ private String toIndentedString(Object o) { 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("swap"); - openapiFields.add("systemUUID"); + openapiFields = new HashSet(Arrays.asList("architecture", "bootID", "containerRuntimeVersion", "kernelVersion", "kubeProxyVersion", "kubeletVersion", "machineID", "operatingSystem", "osImage", "swap", "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"); + openapiRequiredFields = new HashSet(Arrays.asList("architecture", "bootID", "containerRuntimeVersion", "kernelVersion", "kubeProxyVersion", "kubeletVersion", "machineID", "operatingSystem", "osImage", "systemUUID")); } /** @@ -431,7 +413,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NodeSystemInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NodeSystemInfo is not found in the empty JSON string", V1NodeSystemInfo.openapiRequiredFields.toString())); } } @@ -439,50 +421,50 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeSystemInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1NodeSystemInfo.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `osImage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("osImage").toString())); } // validate the optional field `swap` if (jsonObj.get("swap") != null && !jsonObj.get("swap").isJsonNull()) { V1NodeSwapStatus.validateJsonElement(jsonObj.get("swap")); } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `systemUUID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("systemUUID").toString())); } } @@ -535,3 +517,4 @@ 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 1fe8130ae5..4182bff8c3 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface */ @ApiModel(description = "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NonResourceAttributes { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("path"); - openapiFields.add("verb"); + openapiFields = new HashSet(Arrays.asList("path", "verb")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NonResourceAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NonResourceAttributes is not found in the empty JSON string", V1NonResourceAttributes.openapiRequiredFields.toString())); } } @@ -176,15 +177,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NonResourceAttributes` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `verb` to be a primitive type in the JSON string but got `%s`", jsonObj.get("verb").toString())); } } @@ -237,3 +238,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java index fd9f65ce8f..708f3fc113 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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. */ @ApiModel(description = "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NonResourcePolicyRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) @@ -169,14 +172,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("nonResourceURLs"); - openapiFields.add("verbs"); + openapiFields = new HashSet(Arrays.asList("nonResourceURLs", "verbs")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("nonResourceURLs"); - openapiRequiredFields.add("verbs"); + openapiRequiredFields = new HashSet(Arrays.asList("nonResourceURLs", "verbs")); } /** @@ -188,7 +187,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NonResourcePolicyRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1NonResourcePolicyRule is not found in the empty JSON string", V1NonResourcePolicyRule.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NonResourcePolicyRule is not found in the empty JSON string", V1NonResourcePolicyRule.openapiRequiredFields.toString())); } } @@ -196,14 +195,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1NonResourcePolicyRule.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1NonResourcePolicyRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NonResourcePolicyRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1NonResourcePolicyRule.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -211,13 +210,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `verbs` to be an array in the JSON string but got `%s`", jsonObj.get("verbs").toString())); } } @@ -270,3 +269,4 @@ 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 55c5acbaaa..0981bf7489 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * NonResourceRule holds information that describes a rule for the non-resource */ @ApiModel(description = "NonResourceRule holds information that describes a rule for the non-resource") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1NonResourceRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) @@ -169,13 +172,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("nonResourceURLs"); - openapiFields.add("verbs"); + openapiFields = new HashSet(Arrays.asList("nonResourceURLs", "verbs")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("verbs"); + openapiRequiredFields = new HashSet(Arrays.asList("verbs")); } /** @@ -187,7 +187,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1NonResourceRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1NonResourceRule is not found in the empty JSON string", V1NonResourceRule.openapiRequiredFields.toString())); } } @@ -195,26 +195,26 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NonResourceRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1NonResourceRule.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("nonResourceURLs") != null && !jsonObj.get("nonResourceURLs").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `verbs` to be an array in the JSON string but got `%s`", jsonObj.get("verbs").toString())); } } @@ -267,3 +267,4 @@ 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 06d270a6c8..49253a25ee 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ObjectFieldSelector selects an APIVersioned field of an object. */ @ApiModel(description = "ObjectFieldSelector selects an APIVersioned field of an object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ObjectFieldSelector { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -151,13 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("apiVersion"); - openapiFields.add("fieldPath"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "fieldPath")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("fieldPath"); + openapiRequiredFields = new HashSet(Arrays.asList("fieldPath")); } /** @@ -169,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ObjectFieldSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ObjectFieldSelector is not found in the empty JSON string", V1ObjectFieldSelector.openapiRequiredFields.toString())); } } @@ -177,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ObjectFieldSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ObjectFieldSelector.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `fieldPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fieldPath").toString())); } } @@ -245,3 +245,4 @@ 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 bec6018837..39a6d2355b 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -50,6 +52,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -57,7 +60,7 @@ * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. */ @ApiModel(description = "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ObjectMeta { public static final String SERIALIZED_NAME_ANNOTATIONS = "annotations"; @SerializedName(SERIALIZED_NAME_ANNOTATIONS) @@ -549,25 +552,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("annotations", "creationTimestamp", "deletionGracePeriodSeconds", "deletionTimestamp", "finalizers", "generateName", "generation", "labels", "managedFields", "name", "namespace", "ownerReferences", "resourceVersion", "selfLink", "uid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -579,7 +567,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ObjectMeta.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ObjectMeta is not found in the empty JSON string", V1ObjectMeta.openapiRequiredFields.toString())); } } @@ -587,23 +575,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ObjectMeta` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("finalizers") != null && !jsonObj.get("finalizers").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -613,17 +601,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -633,13 +621,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); } } @@ -692,3 +680,4 @@ 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 1ae6c476ea..85627ab879 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ObjectReference contains enough information to let you inspect or modify the referred object. */ @ApiModel(description = "ObjectReference contains enough information to let you inspect or modify the referred object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -286,17 +289,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "fieldPath", "kind", "name", "namespace", "resourceVersion", "uid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -308,7 +304,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ObjectReference is not found in the empty JSON string", V1ObjectReference.openapiRequiredFields.toString())); } } @@ -316,30 +312,30 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ObjectReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); } } @@ -392,3 +388,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java index 521b859b00..b89dd2a58e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. */ @ApiModel(description = "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1OpaqueDeviceConfiguration { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("driver"); - openapiFields.add("parameters"); + openapiFields = new HashSet(Arrays.asList("driver", "parameters")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("driver"); - openapiRequiredFields.add("parameters"); + openapiRequiredFields = new HashSet(Arrays.asList("driver", "parameters")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1OpaqueDeviceConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1OpaqueDeviceConfiguration is not found in the empty JSON string", V1OpaqueDeviceConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1OpaqueDeviceConfiguration is not found in the empty JSON string", V1OpaqueDeviceConfiguration.openapiRequiredFields.toString())); } } @@ -178,19 +177,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1OpaqueDeviceConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1OpaqueDeviceConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1OpaqueDeviceConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1OpaqueDeviceConfiguration.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").toString())); } } @@ -243,3 +242,4 @@ 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 29a35f32c1..5191bd61a4 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * Overhead structure represents the resource overhead associated with running a pod. */ @ApiModel(description = "Overhead structure represents the resource overhead associated with running a pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Overhead { public static final String SERIALIZED_NAME_POD_FIXED = "podFixed"; @SerializedName(SERIALIZED_NAME_POD_FIXED) @@ -135,11 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("podFixed"); + openapiFields = new HashSet(Arrays.asList("podFixed")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -151,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Overhead.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Overhead is not found in the empty JSON string", V1Overhead.openapiRequiredFields.toString())); } } @@ -159,7 +161,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Overhead` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -214,3 +216,4 @@ 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 ae19617817..14897b6b11 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1OwnerReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -259,20 +262,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "blockOwnerDeletion", "controller", "kind", "name", "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"); + openapiRequiredFields = new HashSet(Arrays.asList("apiVersion", "kind", "name", "uid")); } /** @@ -284,7 +277,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1OwnerReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1OwnerReference is not found in the empty JSON string", V1OwnerReference.openapiRequiredFields.toString())); } } @@ -292,28 +285,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1OwnerReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1OwnerReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); } } @@ -366,3 +359,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java index 13c3015020..41a61f99b6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ParamKind is a tuple of Group Kind and Version. */ @ApiModel(description = "ParamKind is a tuple of Group Kind and Version.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ParamKind { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("apiVersion"); - openapiFields.add("kind"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ParamKind.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ParamKind is not found in the empty JSON string", V1ParamKind.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ParamKind is not found in the empty JSON string", V1ParamKind.openapiRequiredFields.toString())); } } @@ -176,15 +177,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ParamKind.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ParamKind` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ParamKind` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); } } @@ -237,3 +238,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java index 05ea091600..2eb790e842 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. */ @ApiModel(description = "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ParamRef { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -206,14 +209,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("name", "namespace", "parameterNotFoundAction", "selector")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -225,7 +224,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ParamRef.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ParamRef is not found in the empty JSON string", V1ParamRef.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ParamRef is not found in the empty JSON string", V1ParamRef.openapiRequiredFields.toString())); } } @@ -233,18 +232,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ParamRef.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ParamRef` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ParamRef` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -301,3 +300,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java index 1a26b02c8f..d9db165c74 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ParentReference describes a reference to a parent object. */ @ApiModel(description = "ParentReference describes a reference to a parent object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ParentReference { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -205,16 +208,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("group", "name", "namespace", "resource")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("resource"); + openapiRequiredFields = new HashSet(Arrays.asList("name", "resource")); } /** @@ -226,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ParentReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ParentReference is not found in the empty JSON string", V1ParentReference.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ParentReference is not found in the empty JSON string", V1ParentReference.openapiRequiredFields.toString())); } } @@ -234,28 +231,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ParentReference.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ParentReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ParentReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ParentReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource").toString())); } } @@ -308,3 +305,4 @@ 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 a2c068b910..3c7b9a7713 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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 */ @ApiModel(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") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PersistentVolume implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolume.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PersistentVolume is not found in the empty JSON string", V1PersistentVolume.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PersistentVolume` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 7a21f751ef..7dcc174dd1 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * PersistentVolumeClaim is a user's request for and claim to a persistent volume */ @ApiModel(description = "PersistentVolumeClaim is a user's request for and claim to a persistent volume") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PersistentVolumeClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PersistentVolumeClaim is not found in the empty JSON string", V1PersistentVolumeClaim.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PersistentVolumeClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 060780d0cf..70342b85c7 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * PersistentVolumeClaimCondition contains details about state of pvc */ @ApiModel(description = "PersistentVolumeClaimCondition contains details about state of pvc") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PersistentVolumeClaimCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) @@ -260,18 +263,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("lastProbeTime", "lastTransitionTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); } /** @@ -283,7 +278,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeClaimCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PersistentVolumeClaimCondition is not found in the empty JSON string", V1PersistentVolumeClaimCondition.openapiRequiredFields.toString())); } } @@ -291,28 +286,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PersistentVolumeClaimCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PersistentVolumeClaimCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -365,3 +360,4 @@ 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 e4e37bdff5..8681298c2e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * PersistentVolumeClaimList is a list of PersistentVolumeClaim items. */ @ApiModel(description = "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PersistentVolumeClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeClaimList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PersistentVolumeClaimList is not found in the empty JSON string", V1PersistentVolumeClaimList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PersistentVolumeClaimList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PersistentVolumeClaimList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1PersistentVolumeClaim.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 49b8654aee..86f1ad85d3 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes */ @ApiModel(description = "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PersistentVolumeClaimSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) @@ -354,19 +357,10 @@ private String toIndentedString(Object o) { 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("volumeAttributesClassName"); - openapiFields.add("volumeMode"); - openapiFields.add("volumeName"); + openapiFields = new HashSet(Arrays.asList("accessModes", "dataSource", "dataSourceRef", "resources", "selector", "storageClassName", "volumeAttributesClassName", "volumeMode", "volumeName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -378,7 +372,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeClaimSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PersistentVolumeClaimSpec is not found in the empty JSON string", V1PersistentVolumeClaimSpec.openapiRequiredFields.toString())); } } @@ -386,13 +380,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PersistentVolumeClaimSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("accessModes") != null && !jsonObj.get("accessModes").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -411,16 +405,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1LabelSelector.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `storageClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("storageClassName").toString())); } if ((jsonObj.get("volumeAttributesClassName") != null && !jsonObj.get("volumeAttributesClassName").isJsonNull()) && !jsonObj.get("volumeAttributesClassName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `volumeAttributesClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeAttributesClassName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `volumeAttributesClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeAttributesClassName").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `volumeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeName").toString())); } } @@ -473,3 +467,4 @@ 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 4f87ddc170..300e2e62ea 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -50,6 +52,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -57,7 +60,7 @@ * PersistentVolumeClaimStatus is the current status of a persistent volume claim. */ @ApiModel(description = "PersistentVolumeClaimStatus is the current status of a persistent volume claim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PersistentVolumeClaimStatus { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) @@ -360,18 +363,10 @@ private String toIndentedString(Object o) { 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("currentVolumeAttributesClassName"); - openapiFields.add("modifyVolumeStatus"); - openapiFields.add("phase"); + openapiFields = new HashSet(Arrays.asList("accessModes", "allocatedResourceStatuses", "allocatedResources", "capacity", "conditions", "currentVolumeAttributesClassName", "modifyVolumeStatus", "phase")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -383,7 +378,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeClaimStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PersistentVolumeClaimStatus is not found in the empty JSON string", V1PersistentVolumeClaimStatus.openapiRequiredFields.toString())); } } @@ -391,20 +386,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PersistentVolumeClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("accessModes") != null && !jsonObj.get("accessModes").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -414,14 +409,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } if ((jsonObj.get("currentVolumeAttributesClassName") != null && !jsonObj.get("currentVolumeAttributesClassName").isJsonNull()) && !jsonObj.get("currentVolumeAttributesClassName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `currentVolumeAttributesClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currentVolumeAttributesClassName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `currentVolumeAttributesClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currentVolumeAttributesClassName").toString())); } // validate the optional field `modifyVolumeStatus` if (jsonObj.get("modifyVolumeStatus") != null && !jsonObj.get("modifyVolumeStatus").isJsonNull()) { V1ModifyVolumeStatus.validateJsonElement(jsonObj.get("modifyVolumeStatus")); } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `phase` to be a primitive type in the JSON string but got `%s`", jsonObj.get("phase").toString())); } } @@ -474,3 +469,4 @@ 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 13971b8397..c02467cbb0 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource. */ @ApiModel(description = "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PersistentVolumeClaimTemplate { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) @@ -153,13 +156,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("metadata"); - openapiFields.add("spec"); + openapiFields = new HashSet(Arrays.asList("metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -171,7 +171,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeClaimTemplate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PersistentVolumeClaimTemplate is not found in the empty JSON string", V1PersistentVolumeClaimTemplate.openapiRequiredFields.toString())); } } @@ -179,14 +179,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PersistentVolumeClaimTemplate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PersistentVolumeClaimTemplate.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -247,3 +247,4 @@ 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 fd2d953be7..21d23026c6 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * 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). */ @ApiModel(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).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PersistentVolumeClaimVolumeSource { public static final String SERIALIZED_NAME_CLAIM_NAME = "claimName"; @SerializedName(SERIALIZED_NAME_CLAIM_NAME) @@ -151,13 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("claimName"); - openapiFields.add("readOnly"); + openapiFields = new HashSet(Arrays.asList("claimName", "readOnly")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("claimName"); + openapiRequiredFields = new HashSet(Arrays.asList("claimName")); } /** @@ -169,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeClaimVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PersistentVolumeClaimVolumeSource is not found in the empty JSON string", V1PersistentVolumeClaimVolumeSource.openapiRequiredFields.toString())); } } @@ -177,19 +177,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PersistentVolumeClaimVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PersistentVolumeClaimVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `claimName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("claimName").toString())); } } @@ -242,3 +242,4 @@ 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 649572b7f9..eb15f5dd9f 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * PersistentVolumeList is a list of PersistentVolume items. */ @ApiModel(description = "PersistentVolumeList is a list of PersistentVolume items.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PersistentVolumeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PersistentVolumeList is not found in the empty JSON string", V1PersistentVolumeList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PersistentVolumeList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PersistentVolumeList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1PersistentVolume.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 69ec0cab4e..0d669f6475 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -72,6 +74,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -79,7 +82,7 @@ * PersistentVolumeSpec is the specification of a persistent volume. */ @ApiModel(description = "PersistentVolumeSpec is the specification of a persistent volume.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PersistentVolumeSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) @@ -987,41 +990,10 @@ private String toIndentedString(Object o) { 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("volumeAttributesClassName"); - openapiFields.add("volumeMode"); - openapiFields.add("vsphereVolume"); + openapiFields = new HashSet(Arrays.asList("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", "volumeAttributesClassName", "volumeMode", "vsphereVolume")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -1033,7 +1005,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PersistentVolumeSpec is not found in the empty JSON string", V1PersistentVolumeSpec.openapiRequiredFields.toString())); } } @@ -1041,13 +1013,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PersistentVolumeSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("accessModes") != null && !jsonObj.get("accessModes").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -1111,7 +1083,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("mountOptions") != null && !jsonObj.get("mountOptions").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -1122,7 +1094,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1VolumeNodeAffinity.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -1145,17 +1117,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ScaleIOPersistentVolumeSource.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("storageos")); } if ((jsonObj.get("volumeAttributesClassName") != null && !jsonObj.get("volumeAttributesClassName").isJsonNull()) && !jsonObj.get("volumeAttributesClassName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `volumeAttributesClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeAttributesClassName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `volumeAttributesClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeAttributesClassName").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -1212,3 +1184,4 @@ 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 364cf0390c..1e4a250ea4 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * PersistentVolumeStatus is the current status of a persistent volume. */ @ApiModel(description = "PersistentVolumeStatus is the current status of a persistent volume.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PersistentVolumeStatus { public static final String SERIALIZED_NAME_LAST_PHASE_TRANSITION_TIME = "lastPhaseTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_PHASE_TRANSITION_TIME) @@ -206,14 +209,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("lastPhaseTransitionTime", "message", "phase", "reason")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -225,7 +224,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PersistentVolumeStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PersistentVolumeStatus is not found in the empty JSON string", V1PersistentVolumeStatus.openapiRequiredFields.toString())); } } @@ -233,18 +232,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PersistentVolumeStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); } } @@ -297,3 +296,4 @@ 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 9a4252ca01..bc402899c7 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Represents a Photon Controller persistent disk resource. */ @ApiModel(description = "Represents a Photon Controller persistent disk resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PhotonPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -151,13 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("fsType"); - openapiFields.add("pdID"); + openapiFields = new HashSet(Arrays.asList("fsType", "pdID")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("pdID"); + openapiRequiredFields = new HashSet(Arrays.asList("pdID")); } /** @@ -169,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PhotonPersistentDiskVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PhotonPersistentDiskVolumeSource is not found in the empty JSON string", V1PhotonPersistentDiskVolumeSource.openapiRequiredFields.toString())); } } @@ -177,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PhotonPersistentDiskVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PhotonPersistentDiskVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `pdID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pdID").toString())); } } @@ -245,3 +245,4 @@ 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 d613c697a0..30d8d2bf4d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. */ @ApiModel(description = "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Pod implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Pod.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Pod is not found in the empty JSON string", V1Pod.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Pod` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 c19abe7067..f0b338e96c 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * Pod affinity is a group of inter pod affinity scheduling rules. */ @ApiModel(description = "Pod affinity is a group of inter pod affinity scheduling rules.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") 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) @@ -171,12 +174,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("preferredDuringSchedulingIgnoredDuringExecution"); - openapiFields.add("requiredDuringSchedulingIgnoredDuringExecution"); + openapiFields = new HashSet(Arrays.asList("preferredDuringSchedulingIgnoredDuringExecution", "requiredDuringSchedulingIgnoredDuringExecution")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -188,7 +189,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodAffinity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodAffinity is not found in the empty JSON string", V1PodAffinity.openapiRequiredFields.toString())); } } @@ -196,7 +197,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodAffinity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -205,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -219,7 +220,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -279,3 +280,4 @@ 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 68b2edf4e8..fda9be711b 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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 */ @ApiModel(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") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodAffinityTerm { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) @@ -286,17 +289,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("labelSelector"); - openapiFields.add("matchLabelKeys"); - openapiFields.add("mismatchLabelKeys"); - openapiFields.add("namespaceSelector"); - openapiFields.add("namespaces"); - openapiFields.add("topologyKey"); + openapiFields = new HashSet(Arrays.asList("labelSelector", "matchLabelKeys", "mismatchLabelKeys", "namespaceSelector", "namespaces", "topologyKey")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("topologyKey"); + openapiRequiredFields = new HashSet(Arrays.asList("topologyKey")); } /** @@ -308,7 +304,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodAffinityTerm.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodAffinityTerm is not found in the empty JSON string", V1PodAffinityTerm.openapiRequiredFields.toString())); } } @@ -316,14 +312,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodAffinityTerm` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodAffinityTerm.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -333,11 +329,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("matchLabelKeys") != null && !jsonObj.get("matchLabelKeys").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `matchLabelKeys` to be an array in the JSON string but got `%s`", jsonObj.get("matchLabelKeys").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("mismatchLabelKeys") != null && !jsonObj.get("mismatchLabelKeys").isJsonNull() && !jsonObj.get("mismatchLabelKeys").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `mismatchLabelKeys` to be an array in the JSON string but got `%s`", jsonObj.get("mismatchLabelKeys").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `mismatchLabelKeys` to be an array in the JSON string but got `%s`", jsonObj.get("mismatchLabelKeys").toString())); } // validate the optional field `namespaceSelector` if (jsonObj.get("namespaceSelector") != null && !jsonObj.get("namespaceSelector").isJsonNull()) { @@ -345,10 +341,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `topologyKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("topologyKey").toString())); } } @@ -401,3 +397,4 @@ 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 90399ba11c..824224f237 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * Pod anti affinity is a group of inter pod anti affinity scheduling rules. */ @ApiModel(description = "Pod anti affinity is a group of inter pod anti affinity scheduling rules.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") 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) @@ -171,12 +174,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("preferredDuringSchedulingIgnoredDuringExecution"); - openapiFields.add("requiredDuringSchedulingIgnoredDuringExecution"); + openapiFields = new HashSet(Arrays.asList("preferredDuringSchedulingIgnoredDuringExecution", "requiredDuringSchedulingIgnoredDuringExecution")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -188,7 +189,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodAntiAffinity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodAntiAffinity is not found in the empty JSON string", V1PodAntiAffinity.openapiRequiredFields.toString())); } } @@ -196,7 +197,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodAntiAffinity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -205,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -219,7 +220,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -279,3 +280,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java index f66e11af7b..122f7eec63 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * PodCertificateProjection provides a private key and X.509 certificate in the pod filesystem. */ @ApiModel(description = "PodCertificateProjection provides a private key and X.509 certificate in the pod filesystem.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodCertificateProjection { public static final String SERIALIZED_NAME_CERTIFICATE_CHAIN_PATH = "certificateChainPath"; @SerializedName(SERIALIZED_NAME_CERTIFICATE_CHAIN_PATH) @@ -259,18 +262,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("certificateChainPath"); - openapiFields.add("credentialBundlePath"); - openapiFields.add("keyPath"); - openapiFields.add("keyType"); - openapiFields.add("maxExpirationSeconds"); - openapiFields.add("signerName"); + openapiFields = new HashSet(Arrays.asList("certificateChainPath", "credentialBundlePath", "keyPath", "keyType", "maxExpirationSeconds", "signerName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("keyType"); - openapiRequiredFields.add("signerName"); + openapiRequiredFields = new HashSet(Arrays.asList("keyType", "signerName")); } /** @@ -282,7 +277,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodCertificateProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodCertificateProjection is not found in the empty JSON string", V1PodCertificateProjection.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodCertificateProjection is not found in the empty JSON string", V1PodCertificateProjection.openapiRequiredFields.toString())); } } @@ -290,31 +285,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1PodCertificateProjection.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodCertificateProjection` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodCertificateProjection` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodCertificateProjection.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("certificateChainPath") != null && !jsonObj.get("certificateChainPath").isJsonNull()) && !jsonObj.get("certificateChainPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `certificateChainPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("certificateChainPath").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `certificateChainPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("certificateChainPath").toString())); } if ((jsonObj.get("credentialBundlePath") != null && !jsonObj.get("credentialBundlePath").isJsonNull()) && !jsonObj.get("credentialBundlePath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `credentialBundlePath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentialBundlePath").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `credentialBundlePath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentialBundlePath").toString())); } if ((jsonObj.get("keyPath") != null && !jsonObj.get("keyPath").isJsonNull()) && !jsonObj.get("keyPath").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `keyPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("keyPath").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `keyPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("keyPath").toString())); } if (!jsonObj.get("keyType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `keyType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("keyType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `keyType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("keyType").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `signerName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signerName").toString())); } } @@ -367,3 +362,4 @@ 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 383b5cf67c..d417d1f03f 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * PodCondition contains details for the current condition of this pod. */ @ApiModel(description = "PodCondition contains details for the current condition of this pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) @@ -287,19 +290,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("lastProbeTime"); - openapiFields.add("lastTransitionTime"); - openapiFields.add("message"); - openapiFields.add("observedGeneration"); - openapiFields.add("reason"); - openapiFields.add("status"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("lastProbeTime", "lastTransitionTime", "message", "observedGeneration", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); } /** @@ -311,7 +305,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodCondition is not found in the empty JSON string", V1PodCondition.openapiRequiredFields.toString())); } } @@ -319,28 +313,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -393,3 +387,4 @@ 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 a6afef104b..a638119d2f 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy. */ @ApiModel(description = "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodDNSConfig { public static final String SERIALIZED_NAME_NAMESERVERS = "nameservers"; @SerializedName(SERIALIZED_NAME_NAMESERVERS) @@ -205,13 +208,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("nameservers"); - openapiFields.add("options"); - openapiFields.add("searches"); + openapiFields = new HashSet(Arrays.asList("nameservers", "options", "searches")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -223,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodDNSConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodDNSConfig is not found in the empty JSON string", V1PodDNSConfig.openapiRequiredFields.toString())); } } @@ -231,20 +231,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodDNSConfig` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("nameservers") != null && !jsonObj.get("nameservers").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -255,7 +255,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("searches") != null && !jsonObj.get("searches").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `searches` to be an array in the JSON string but got `%s`", jsonObj.get("searches").toString())); } } @@ -308,3 +308,4 @@ 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 daa8c9a684..0ff4876d20 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * PodDNSConfigOption defines DNS resolver options of a pod. */ @ApiModel(description = "PodDNSConfigOption defines DNS resolver options of a pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodDNSConfigOption { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("name", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodDNSConfigOption.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodDNSConfigOption is not found in the empty JSON string", V1PodDNSConfigOption.openapiRequiredFields.toString())); } } @@ -176,15 +177,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodDNSConfigOption` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -237,3 +238,4 @@ 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 c1aa913293..ad8749e79e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods */ @ApiModel(description = "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodDisruptionBudget implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodDisruptionBudget.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodDisruptionBudget is not found in the empty JSON string", V1PodDisruptionBudget.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodDisruptionBudget` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 b63e1adaed..aedc39a06b 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. */ @ApiModel(description = "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodDisruptionBudgetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodDisruptionBudgetList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodDisruptionBudgetList is not found in the empty JSON string", V1PodDisruptionBudgetList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodDisruptionBudgetList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodDisruptionBudgetList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1PodDisruptionBudget.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 6a0bc6e0ec..e8645629da 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. */ @ApiModel(description = "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodDisruptionBudgetSpec { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) @@ -207,14 +210,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("maxUnavailable", "minAvailable", "selector", "unhealthyPodEvictionPolicy")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodDisruptionBudgetSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodDisruptionBudgetSpec is not found in the empty JSON string", V1PodDisruptionBudgetSpec.openapiRequiredFields.toString())); } } @@ -234,22 +233,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodDisruptionBudgetSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `unhealthyPodEvictionPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("unhealthyPodEvictionPolicy").toString())); } } @@ -302,3 +301,4 @@ 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 60aa89186f..fb53d68d30 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system. */ @ApiModel(description = "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodDisruptionBudgetStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -308,21 +311,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("conditions", "currentHealthy", "desiredHealthy", "disruptedPods", "disruptionsAllowed", "expectedPods", "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"); + openapiRequiredFields = new HashSet(Arrays.asList("currentHealthy", "desiredHealthy", "disruptionsAllowed", "expectedPods")); } /** @@ -334,7 +326,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodDisruptionBudgetStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodDisruptionBudgetStatus is not found in the empty JSON string", V1PodDisruptionBudgetStatus.openapiRequiredFields.toString())); } } @@ -342,14 +334,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodDisruptionBudgetStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodDisruptionBudgetStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -358,7 +350,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -418,3 +410,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java index f19a8b1903..c8a0e0e10c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * PodExtendedResourceClaimStatus is stored in the PodStatus for the extended resource requests backed by DRA. It stores the generated name for the corresponding special ResourceClaim created by the scheduler. */ @ApiModel(description = "PodExtendedResourceClaimStatus is stored in the PodStatus for the extended resource requests backed by DRA. It stores the generated name for the corresponding special ResourceClaim created by the scheduler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodExtendedResourceClaimStatus { public static final String SERIALIZED_NAME_REQUEST_MAPPINGS = "requestMappings"; @SerializedName(SERIALIZED_NAME_REQUEST_MAPPINGS) @@ -162,14 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("requestMappings"); - openapiFields.add("resourceClaimName"); + openapiFields = new HashSet(Arrays.asList("requestMappings", "resourceClaimName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("requestMappings"); - openapiRequiredFields.add("resourceClaimName"); + openapiRequiredFields = new HashSet(Arrays.asList("requestMappings", "resourceClaimName")); } /** @@ -181,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodExtendedResourceClaimStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodExtendedResourceClaimStatus is not found in the empty JSON string", V1PodExtendedResourceClaimStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodExtendedResourceClaimStatus is not found in the empty JSON string", V1PodExtendedResourceClaimStatus.openapiRequiredFields.toString())); } } @@ -189,20 +188,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1PodExtendedResourceClaimStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodExtendedResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodExtendedResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodExtendedResourceClaimStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the json data is an array if (!jsonObj.get("requestMappings").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `requestMappings` to be an array in the JSON string but got `%s`", jsonObj.get("requestMappings").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `requestMappings` to be an array in the JSON string but got `%s`", jsonObj.get("requestMappings").toString())); } JsonArray jsonArrayrequestMappings = jsonObj.getAsJsonArray("requestMappings"); @@ -211,7 +210,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ContainerExtendedResourceRequest.validateJsonElement(jsonArrayrequestMappings.get(i)); }; if (!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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resourceClaimName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceClaimName").toString())); } } @@ -264,3 +263,4 @@ 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 9150ff2baa..4eccdfff21 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * PodFailurePolicy describes how failed pods influence the backoffLimit. */ @ApiModel(description = "PodFailurePolicy describes how failed pods influence the backoffLimit.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodFailurePolicy { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) @@ -135,12 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("rules"); + openapiFields = new HashSet(Arrays.asList("rules")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("rules"); + openapiRequiredFields = new HashSet(Arrays.asList("rules")); } /** @@ -152,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodFailurePolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodFailurePolicy is not found in the empty JSON string", V1PodFailurePolicy.openapiRequiredFields.toString())); } } @@ -160,20 +161,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodFailurePolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodFailurePolicy.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `rules` to be an array in the JSON string but got `%s`", jsonObj.get("rules").toString())); } JsonArray jsonArrayrules = jsonObj.getAsJsonArray("rules"); @@ -232,3 +233,4 @@ 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 abf4821457..8630e3f194 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodFailurePolicyOnExitCodesRequirement { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) @@ -188,15 +191,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("containerName"); - openapiFields.add("operator"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("containerName", "operator", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("operator"); - openapiRequiredFields.add("values"); + openapiRequiredFields = new HashSet(Arrays.asList("operator", "values")); } /** @@ -208,7 +206,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodFailurePolicyOnExitCodesRequirement.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodFailurePolicyOnExitCodesRequirement is not found in the empty JSON string", V1PodFailurePolicyOnExitCodesRequirement.openapiRequiredFields.toString())); } } @@ -216,28 +214,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodFailurePolicyOnExitCodesRequirement` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodFailurePolicyOnExitCodesRequirement.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -290,3 +288,4 @@ 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 2340fe6f00..0583260da5 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type. */ @ApiModel(description = "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodFailurePolicyOnPodConditionsPattern { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("status"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodFailurePolicyOnPodConditionsPattern.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodFailurePolicyOnPodConditionsPattern is not found in the empty JSON string", V1PodFailurePolicyOnPodConditionsPattern.openapiRequiredFields.toString())); } } @@ -178,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodFailurePolicyOnPodConditionsPattern` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodFailurePolicyOnPodConditionsPattern.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -246,3 +245,4 @@ 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 f09112290b..125ffb69a8 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodFailurePolicyRule { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) @@ -190,14 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("action"); - openapiFields.add("onExitCodes"); - openapiFields.add("onPodConditions"); + openapiFields = new HashSet(Arrays.asList("action", "onExitCodes", "onPodConditions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("action"); + openapiRequiredFields = new HashSet(Arrays.asList("action")); } /** @@ -209,7 +208,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodFailurePolicyRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodFailurePolicyRule is not found in the empty JSON string", V1PodFailurePolicyRule.openapiRequiredFields.toString())); } } @@ -217,19 +216,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodFailurePolicyRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodFailurePolicyRule.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -240,7 +239,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -300,3 +299,4 @@ 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 649dc5b996..c92dcb85a8 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * PodIP represents a single IP address allocated to the pod. */ @ApiModel(description = "PodIP represents a single IP address allocated to the pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodIP { public static final String SERIALIZED_NAME_IP = "ip"; @SerializedName(SERIALIZED_NAME_IP) @@ -124,12 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("ip"); + openapiFields = new HashSet(Arrays.asList("ip")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("ip"); + openapiRequiredFields = new HashSet(Arrays.asList("ip")); } /** @@ -141,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodIP.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodIP is not found in the empty JSON string", V1PodIP.openapiRequiredFields.toString())); } } @@ -149,19 +150,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodIP` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodIP.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ip").toString())); } } @@ -214,3 +215,4 @@ 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 dfc98f4bc5..564a679ec1 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * PodList is a list of Pods. */ @ApiModel(description = "PodList is a list of Pods.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodList is not found in the empty JSON string", V1PodList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1Pod.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 f0fdec07ae..3f2b23fed2 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * PodOS defines the OS parameters of a pod. */ @ApiModel(description = "PodOS defines the OS parameters of a pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodOS { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -124,12 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -141,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodOS.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodOS is not found in the empty JSON string", V1PodOS.openapiRequiredFields.toString())); } } @@ -149,19 +150,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodOS` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodOS.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -214,3 +215,4 @@ 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 b7cd340532..507f371396 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * PodReadinessGate contains the reference to a pod condition */ @ApiModel(description = "PodReadinessGate contains the reference to a pod condition") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodReadinessGate { public static final String SERIALIZED_NAME_CONDITION_TYPE = "conditionType"; @SerializedName(SERIALIZED_NAME_CONDITION_TYPE) @@ -124,12 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("conditionType"); + openapiFields = new HashSet(Arrays.asList("conditionType")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("conditionType"); + openapiRequiredFields = new HashSet(Arrays.asList("conditionType")); } /** @@ -141,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodReadinessGate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodReadinessGate is not found in the empty JSON string", V1PodReadinessGate.openapiRequiredFields.toString())); } } @@ -149,19 +150,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodReadinessGate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodReadinessGate.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `conditionType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("conditionType").toString())); } } @@ -214,3 +215,4 @@ 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 09cb862aca..d25f895613 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. 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. */ @ApiModel(description = "PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. 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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodResourceClaim { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -178,14 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("resourceClaimName"); - openapiFields.add("resourceClaimTemplateName"); + openapiFields = new HashSet(Arrays.asList("name", "resourceClaimName", "resourceClaimTemplateName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -197,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodResourceClaim is not found in the empty JSON string", V1PodResourceClaim.openapiRequiredFields.toString())); } } @@ -205,25 +204,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodResourceClaim.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resourceClaimTemplateName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceClaimTemplateName").toString())); } } @@ -276,3 +275,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java index 29268e3335..04769e8fba 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. */ @ApiModel(description = "PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodResourceClaimStatus { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -151,13 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("resourceClaimName"); + openapiFields = new HashSet(Arrays.asList("name", "resourceClaimName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -169,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodResourceClaimStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1PodResourceClaimStatus is not found in the empty JSON string", V1PodResourceClaimStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodResourceClaimStatus is not found in the empty JSON string", V1PodResourceClaimStatus.openapiRequiredFields.toString())); } } @@ -177,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1PodResourceClaimStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PodResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodResourceClaimStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resourceClaimName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceClaimName").toString())); } } @@ -245,3 +245,4 @@ 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 b2a5d028f1..188c9977f8 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * PodSchedulingGate is associated to a Pod to guard its scheduling. */ @ApiModel(description = "PodSchedulingGate is associated to a Pod to guard its scheduling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodSchedulingGate { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -124,12 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -141,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodSchedulingGate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodSchedulingGate is not found in the empty JSON string", V1PodSchedulingGate.openapiRequiredFields.toString())); } } @@ -149,19 +150,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodSchedulingGate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodSchedulingGate.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -214,3 +215,4 @@ 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 9d2dc4aea0..fe2fbb280f 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -50,6 +52,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -57,7 +60,7 @@ * 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. */ @ApiModel(description = "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodSecurityContext { public static final String SERIALIZED_NAME_APP_ARMOR_PROFILE = "appArmorProfile"; @SerializedName(SERIALIZED_NAME_APP_ARMOR_PROFILE) @@ -471,23 +474,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("appArmorProfile"); - openapiFields.add("fsGroup"); - openapiFields.add("fsGroupChangePolicy"); - openapiFields.add("runAsGroup"); - openapiFields.add("runAsNonRoot"); - openapiFields.add("runAsUser"); - openapiFields.add("seLinuxChangePolicy"); - openapiFields.add("seLinuxOptions"); - openapiFields.add("seccompProfile"); - openapiFields.add("supplementalGroups"); - openapiFields.add("supplementalGroupsPolicy"); - openapiFields.add("sysctls"); - openapiFields.add("windowsOptions"); + openapiFields = new HashSet(Arrays.asList("appArmorProfile", "fsGroup", "fsGroupChangePolicy", "runAsGroup", "runAsNonRoot", "runAsUser", "seLinuxChangePolicy", "seLinuxOptions", "seccompProfile", "supplementalGroups", "supplementalGroupsPolicy", "sysctls", "windowsOptions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -499,7 +489,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodSecurityContext.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodSecurityContext is not found in the empty JSON string", V1PodSecurityContext.openapiRequiredFields.toString())); } } @@ -507,7 +497,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodSecurityContext` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -516,10 +506,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1AppArmorProfile.validateJsonElement(jsonObj.get("appArmorProfile")); } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `fsGroupChangePolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fsGroupChangePolicy").toString())); } if ((jsonObj.get("seLinuxChangePolicy") != null && !jsonObj.get("seLinuxChangePolicy").isJsonNull()) && !jsonObj.get("seLinuxChangePolicy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `seLinuxChangePolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("seLinuxChangePolicy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `seLinuxChangePolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("seLinuxChangePolicy").toString())); } // validate the optional field `seLinuxOptions` if (jsonObj.get("seLinuxOptions") != null && !jsonObj.get("seLinuxOptions").isJsonNull()) { @@ -531,17 +521,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("supplementalGroups") != null && !jsonObj.get("supplementalGroups").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `supplementalGroups` to be an array in the JSON string but got `%s`", jsonObj.get("supplementalGroups").toString())); } if ((jsonObj.get("supplementalGroupsPolicy") != null && !jsonObj.get("supplementalGroupsPolicy").isJsonNull()) && !jsonObj.get("supplementalGroupsPolicy").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `supplementalGroupsPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("supplementalGroupsPolicy").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `supplementalGroupsPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("supplementalGroupsPolicy").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -605,3 +595,4 @@ 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 401c5f70d2..bcfe7e8558 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -63,6 +65,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -70,7 +73,7 @@ * PodSpec is a description of a pod. */ @ApiModel(description = "PodSpec is a description of a pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @SerializedName(SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS) @@ -1328,52 +1331,10 @@ private String toIndentedString(Object o) { 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("hostnameOverride"); - 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("resources"); - 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"); + openapiFields = new HashSet(Arrays.asList("activeDeadlineSeconds", "affinity", "automountServiceAccountToken", "containers", "dnsConfig", "dnsPolicy", "enableServiceLinks", "ephemeralContainers", "hostAliases", "hostIPC", "hostNetwork", "hostPID", "hostUsers", "hostname", "hostnameOverride", "imagePullSecrets", "initContainers", "nodeName", "nodeSelector", "os", "overhead", "preemptionPolicy", "priority", "priorityClassName", "readinessGates", "resourceClaims", "resources", "restartPolicy", "runtimeClassName", "schedulerName", "schedulingGates", "securityContext", "serviceAccount", "serviceAccountName", "setHostnameAsFQDN", "shareProcessNamespace", "subdomain", "terminationGracePeriodSeconds", "tolerations", "topologySpreadConstraints", "volumes")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("containers"); + openapiRequiredFields = new HashSet(Arrays.asList("containers")); } /** @@ -1385,7 +1346,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodSpec is not found in the empty JSON string", V1PodSpec.openapiRequiredFields.toString())); } } @@ -1393,14 +1354,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -1410,7 +1371,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `containers` to be an array in the JSON string but got `%s`", jsonObj.get("containers").toString())); } JsonArray jsonArraycontainers = jsonObj.getAsJsonArray("containers"); @@ -1423,14 +1384,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1PodDNSConfig.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1444,7 +1405,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1454,17 +1415,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `hostname` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hostname").toString())); } if ((jsonObj.get("hostnameOverride") != null && !jsonObj.get("hostnameOverride").isJsonNull()) && !jsonObj.get("hostnameOverride").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `hostnameOverride` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hostnameOverride").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `hostnameOverride` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hostnameOverride").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1478,7 +1439,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1488,24 +1449,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1519,7 +1480,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1533,20 +1494,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ResourceRequirements.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1560,20 +1521,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1PodSecurityContext.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1587,7 +1548,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1601,7 +1562,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -1661,3 +1622,4 @@ 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 93b56ece7d..59c7cccbfb 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -52,6 +54,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -59,7 +62,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -648,28 +651,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("conditions"); - openapiFields.add("containerStatuses"); - openapiFields.add("ephemeralContainerStatuses"); - openapiFields.add("extendedResourceClaimStatus"); - openapiFields.add("hostIP"); - openapiFields.add("hostIPs"); - openapiFields.add("initContainerStatuses"); - openapiFields.add("message"); - openapiFields.add("nominatedNodeName"); - openapiFields.add("observedGeneration"); - openapiFields.add("phase"); - openapiFields.add("podIP"); - openapiFields.add("podIPs"); - openapiFields.add("qosClass"); - openapiFields.add("reason"); - openapiFields.add("resize"); - openapiFields.add("resourceClaimStatuses"); - openapiFields.add("startTime"); + openapiFields = new HashSet(Arrays.asList("conditions", "containerStatuses", "ephemeralContainerStatuses", "extendedResourceClaimStatus", "hostIP", "hostIPs", "initContainerStatuses", "message", "nominatedNodeName", "observedGeneration", "phase", "podIP", "podIPs", "qosClass", "reason", "resize", "resourceClaimStatuses", "startTime")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -681,7 +666,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodStatus is not found in the empty JSON string", V1PodStatus.openapiRequiredFields.toString())); } } @@ -689,7 +674,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -698,7 +683,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -712,7 +697,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -726,7 +711,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -740,14 +725,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1PodExtendedResourceClaimStatus.validateJsonElement(jsonObj.get("extendedResourceClaimStatus")); } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -761,7 +746,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -771,23 +756,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -797,20 +782,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -870,3 +855,4 @@ 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 a8afc2b09a..d719531653 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * PodTemplate describes a template for creating copies of a predefined pod. */ @ApiModel(description = "PodTemplate describes a template for creating copies of a predefined pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,14 +210,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "template")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodTemplate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodTemplate is not found in the empty JSON string", V1PodTemplate.openapiRequiredFields.toString())); } } @@ -234,15 +233,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodTemplate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -303,3 +302,4 @@ 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 72b3680f6f..eaf1c428cc 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * PodTemplateList is a list of PodTemplates. */ @ApiModel(description = "PodTemplateList is a list of PodTemplates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodTemplateList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodTemplateList is not found in the empty JSON string", V1PodTemplateList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodTemplateList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PodTemplateList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1PodTemplate.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 1e7d188146..c1af3dd054 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * PodTemplateSpec describes the data a pod should have when created from a template */ @ApiModel(description = "PodTemplateSpec describes the data a pod should have when created from a template") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PodTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) @@ -153,12 +156,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("metadata"); - openapiFields.add("spec"); + openapiFields = new HashSet(Arrays.asList("metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -170,7 +171,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PodTemplateSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PodTemplateSpec is not found in the empty JSON string", V1PodTemplateSpec.openapiRequiredFields.toString())); } } @@ -178,7 +179,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodTemplateSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -241,3 +242,4 @@ 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 11ff5e6c4d..d30a30ae35 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -274,16 +277,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiGroups", "nonResourceURLs", "resourceNames", "resources", "verbs")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("verbs"); + openapiRequiredFields = new HashSet(Arrays.asList("verbs")); } /** @@ -295,7 +292,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PolicyRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PolicyRule is not found in the empty JSON string", V1PolicyRule.openapiRequiredFields.toString())); } } @@ -303,38 +300,38 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PolicyRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PolicyRule.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("apiGroups") != null && !jsonObj.get("apiGroups").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `verbs` to be an array in the JSON string but got `%s`", jsonObj.get("verbs").toString())); } } @@ -387,3 +384,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java index 90d73c67d8..692234aa3d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PolicyRulesWithSubjects { public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_RULES) @@ -207,14 +210,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("nonResourceRules"); - openapiFields.add("resourceRules"); - openapiFields.add("subjects"); + openapiFields = new HashSet(Arrays.asList("nonResourceRules", "resourceRules", "subjects")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("subjects"); + openapiRequiredFields = new HashSet(Arrays.asList("subjects")); } /** @@ -226,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PolicyRulesWithSubjects.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1PolicyRulesWithSubjects is not found in the empty JSON string", V1PolicyRulesWithSubjects.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PolicyRulesWithSubjects is not found in the empty JSON string", V1PolicyRulesWithSubjects.openapiRequiredFields.toString())); } } @@ -234,14 +233,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1PolicyRulesWithSubjects.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PolicyRulesWithSubjects` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PolicyRulesWithSubjects` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PolicyRulesWithSubjects.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -250,7 +249,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -264,7 +263,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -275,7 +274,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `subjects` to be an array in the JSON string but got `%s`", jsonObj.get("subjects").toString())); } JsonArray jsonArraysubjects = jsonObj.getAsJsonArray("subjects"); @@ -334,3 +333,4 @@ 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 5ba1c450d6..1396452388 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * PortStatus represents the error condition of a service port */ @ApiModel(description = "PortStatus represents the error condition of a service port") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PortStatus { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) @@ -178,15 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("error"); - openapiFields.add("port"); - openapiFields.add("protocol"); + openapiFields = new HashSet(Arrays.asList("error", "port", "protocol")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("port"); - openapiRequiredFields.add("protocol"); + openapiRequiredFields = new HashSet(Arrays.asList("port", "protocol")); } /** @@ -198,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PortStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PortStatus is not found in the empty JSON string", V1PortStatus.openapiRequiredFields.toString())); } } @@ -206,22 +204,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PortStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PortStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `protocol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("protocol").toString())); } } @@ -274,3 +272,4 @@ 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 aaaf58c0a5..926adc497a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * PortworxVolumeSource represents a Portworx volume resource. */ @ApiModel(description = "PortworxVolumeSource represents a Portworx volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PortworxVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -178,14 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("fsType"); - openapiFields.add("readOnly"); - openapiFields.add("volumeID"); + openapiFields = new HashSet(Arrays.asList("fsType", "readOnly", "volumeID")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("volumeID"); + openapiRequiredFields = new HashSet(Arrays.asList("volumeID")); } /** @@ -197,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PortworxVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PortworxVolumeSource is not found in the empty JSON string", V1PortworxVolumeSource.openapiRequiredFields.toString())); } } @@ -205,22 +204,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PortworxVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PortworxVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `volumeID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeID").toString())); } } @@ -273,3 +272,4 @@ 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 f06ea36008..dd11eb086a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. */ @ApiModel(description = "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Preconditions { public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("resourceVersion"); - openapiFields.add("uid"); + openapiFields = new HashSet(Arrays.asList("resourceVersion", "uid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Preconditions.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Preconditions is not found in the empty JSON string", V1Preconditions.openapiRequiredFields.toString())); } } @@ -176,15 +177,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Preconditions` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); } } @@ -237,3 +238,4 @@ 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 be64727420..0f911175da 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * 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). */ @ApiModel(description = "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PreferredSchedulingTerm { public static final String SERIALIZED_NAME_PREFERENCE = "preference"; @SerializedName(SERIALIZED_NAME_PREFERENCE) @@ -152,14 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("preference"); - openapiFields.add("weight"); + openapiFields = new HashSet(Arrays.asList("preference", "weight")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("preference"); - openapiRequiredFields.add("weight"); + openapiRequiredFields = new HashSet(Arrays.asList("preference", "weight")); } /** @@ -171,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PreferredSchedulingTerm.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PreferredSchedulingTerm is not found in the empty JSON string", V1PreferredSchedulingTerm.openapiRequiredFields.toString())); } } @@ -179,14 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PreferredSchedulingTerm` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PreferredSchedulingTerm.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -243,3 +242,4 @@ 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 e5fe50e2d2..a89cc8c49f 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. */ @ApiModel(description = "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PriorityClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -287,18 +290,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "description", "globalDefault", "kind", "metadata", "preemptionPolicy", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("value")); } /** @@ -310,7 +305,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PriorityClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PriorityClass is not found in the empty JSON string", V1PriorityClass.openapiRequiredFields.toString())); } } @@ -318,32 +313,32 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PriorityClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PriorityClass.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `preemptionPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("preemptionPolicy").toString())); } } @@ -396,3 +391,4 @@ 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 6ddbd5fe84..c598675860 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * PriorityClassList is a collection of priority classes. */ @ApiModel(description = "PriorityClassList is a collection of priority classes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PriorityClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PriorityClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PriorityClassList is not found in the empty JSON string", V1PriorityClassList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PriorityClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PriorityClassList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1PriorityClass.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java index 7dfbfe144c..fd5d11991d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * PriorityLevelConfiguration represents the configuration of a priority level. */ @ApiModel(description = "PriorityLevelConfiguration represents the configuration of a priority level.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PriorityLevelConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PriorityLevelConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1PriorityLevelConfiguration is not found in the empty JSON string", V1PriorityLevelConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PriorityLevelConfiguration is not found in the empty JSON string", V1PriorityLevelConfiguration.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1PriorityLevelConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PriorityLevelConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PriorityLevelConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java index a73df7ce21..d00aaa8f14 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * PriorityLevelConfigurationCondition defines the condition of priority level. */ @ApiModel(description = "PriorityLevelConfigurationCondition defines the condition of priority level.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PriorityLevelConfigurationCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -233,15 +236,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -253,7 +251,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PriorityLevelConfigurationCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1PriorityLevelConfigurationCondition is not found in the empty JSON string", V1PriorityLevelConfigurationCondition.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PriorityLevelConfigurationCondition is not found in the empty JSON string", V1PriorityLevelConfigurationCondition.openapiRequiredFields.toString())); } } @@ -261,21 +259,21 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1PriorityLevelConfigurationCondition.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PriorityLevelConfigurationCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PriorityLevelConfigurationCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -328,3 +326,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java index 833cf3ff32..56a794fb24 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. */ @ApiModel(description = "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PriorityLevelConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PriorityLevelConfigurationList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1PriorityLevelConfigurationList is not found in the empty JSON string", V1PriorityLevelConfigurationList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PriorityLevelConfigurationList is not found in the empty JSON string", V1PriorityLevelConfigurationList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1PriorityLevelConfigurationList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PriorityLevelConfigurationList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PriorityLevelConfigurationList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PriorityLevelConfigurationList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1PriorityLevelConfiguration.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java index 602c64c8f9..17920fd08a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used. */ @ApiModel(description = "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PriorityLevelConfigurationReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -124,12 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -141,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PriorityLevelConfigurationReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1PriorityLevelConfigurationReference is not found in the empty JSON string", V1PriorityLevelConfigurationReference.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PriorityLevelConfigurationReference is not found in the empty JSON string", V1PriorityLevelConfigurationReference.openapiRequiredFields.toString())); } } @@ -149,19 +150,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1PriorityLevelConfigurationReference.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PriorityLevelConfigurationReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PriorityLevelConfigurationReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PriorityLevelConfigurationReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -214,3 +215,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java index 30e0113fb8..874cc4a1f8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * PriorityLevelConfigurationSpec specifies the configuration of a priority level. */ @ApiModel(description = "PriorityLevelConfigurationSpec specifies the configuration of a priority level.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PriorityLevelConfigurationSpec { public static final String SERIALIZED_NAME_EXEMPT = "exempt"; @SerializedName(SERIALIZED_NAME_EXEMPT) @@ -180,14 +183,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("exempt"); - openapiFields.add("limited"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("exempt", "limited", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -199,7 +198,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PriorityLevelConfigurationSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1PriorityLevelConfigurationSpec is not found in the empty JSON string", V1PriorityLevelConfigurationSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PriorityLevelConfigurationSpec is not found in the empty JSON string", V1PriorityLevelConfigurationSpec.openapiRequiredFields.toString())); } } @@ -207,14 +206,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1PriorityLevelConfigurationSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PriorityLevelConfigurationSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PriorityLevelConfigurationSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1PriorityLevelConfigurationSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -227,7 +226,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1LimitedPriorityLevelConfiguration.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -280,3 +279,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java index 7bc271f887..c4bf7bf3e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". */ @ApiModel(description = "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1PriorityLevelConfigurationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -135,11 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("conditions"); + openapiFields = new HashSet(Arrays.asList("conditions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -151,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1PriorityLevelConfigurationStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1PriorityLevelConfigurationStatus is not found in the empty JSON string", V1PriorityLevelConfigurationStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1PriorityLevelConfigurationStatus is not found in the empty JSON string", V1PriorityLevelConfigurationStatus.openapiRequiredFields.toString())); } } @@ -159,7 +161,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1PriorityLevelConfigurationStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1PriorityLevelConfigurationStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PriorityLevelConfigurationStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -168,7 +170,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -228,3 +230,4 @@ 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 608f113cb7..f236bcf52a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. */ @ApiModel(description = "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Probe { public static final String SERIALIZED_NAME_EXEC = "exec"; @SerializedName(SERIALIZED_NAME_EXEC) @@ -371,20 +374,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("exec", "failureThreshold", "grpc", "httpGet", "initialDelaySeconds", "periodSeconds", "successThreshold", "tcpSocket", "terminationGracePeriodSeconds", "timeoutSeconds")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -396,7 +389,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Probe.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Probe is not found in the empty JSON string", V1Probe.openapiRequiredFields.toString())); } } @@ -404,7 +397,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Probe` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -475,3 +468,4 @@ 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 87dff7a640..60d81eab3c 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * Represents a projected volume source */ @ApiModel(description = "Represents a projected volume source") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ProjectedVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) @@ -162,12 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("defaultMode"); - openapiFields.add("sources"); + openapiFields = new HashSet(Arrays.asList("defaultMode", "sources")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -179,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ProjectedVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ProjectedVolumeSource is not found in the empty JSON string", V1ProjectedVolumeSource.openapiRequiredFields.toString())); } } @@ -187,7 +188,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ProjectedVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -196,7 +197,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -256,3 +257,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java index cab013cda5..a3617a183f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * QueuingConfiguration holds the configuration parameters for queuing */ @ApiModel(description = "QueuingConfiguration holds the configuration parameters for queuing") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1QueuingConfiguration { public static final String SERIALIZED_NAME_HAND_SIZE = "handSize"; @SerializedName(SERIALIZED_NAME_HAND_SIZE) @@ -178,13 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("handSize"); - openapiFields.add("queueLengthLimit"); - openapiFields.add("queues"); + openapiFields = new HashSet(Arrays.asList("handSize", "queueLengthLimit", "queues")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -196,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1QueuingConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1QueuingConfiguration is not found in the empty JSON string", V1QueuingConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1QueuingConfiguration is not found in the empty JSON string", V1QueuingConfiguration.openapiRequiredFields.toString())); } } @@ -204,7 +204,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1QueuingConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1QueuingConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1QueuingConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -259,3 +259,4 @@ 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 8afed10c6a..a0db66b831 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1QuobyteVolumeSource { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -259,18 +262,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("group", "readOnly", "registry", "tenant", "user", "volume")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("registry"); - openapiRequiredFields.add("volume"); + openapiRequiredFields = new HashSet(Arrays.asList("registry", "volume")); } /** @@ -282,7 +277,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1QuobyteVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1QuobyteVolumeSource is not found in the empty JSON string", V1QuobyteVolumeSource.openapiRequiredFields.toString())); } } @@ -290,31 +285,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1QuobyteVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1QuobyteVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `volume` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volume").toString())); } } @@ -367,3 +362,4 @@ 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 f0d934eb7c..b66bd94b0f 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1RBDPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -324,20 +327,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("fsType", "image", "keyring", "monitors", "pool", "readOnly", "secretRef", "user")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("image"); - openapiRequiredFields.add("monitors"); + openapiRequiredFields = new HashSet(Arrays.asList("image", "monitors")); } /** @@ -349,7 +342,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RBDPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1RBDPersistentVolumeSource is not found in the empty JSON string", V1RBDPersistentVolumeSource.openapiRequiredFields.toString())); } } @@ -357,41 +350,41 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1RBDPersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1RBDPersistentVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `user` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user").toString())); } } @@ -444,3 +437,4 @@ 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 e016d08760..25706b0aa5 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1RBDVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -324,20 +327,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("fsType", "image", "keyring", "monitors", "pool", "readOnly", "secretRef", "user")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("image"); - openapiRequiredFields.add("monitors"); + openapiRequiredFields = new HashSet(Arrays.asList("image", "monitors")); } /** @@ -349,7 +342,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RBDVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1RBDVolumeSource is not found in the empty JSON string", V1RBDVolumeSource.openapiRequiredFields.toString())); } } @@ -357,41 +350,41 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1RBDVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1RBDVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `user` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user").toString())); } } @@ -444,3 +437,4 @@ 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 81184ec713..6c5ab6a655 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ReplicaSet ensures that a specified number of pod replicas are running at any given time. */ @ApiModel(description = "ReplicaSet ensures that a specified number of pod replicas are running at any given time.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ReplicaSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicaSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ReplicaSet is not found in the empty JSON string", V1ReplicaSet.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ReplicaSet` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 bc76846ff9..fc5801544a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * ReplicaSetCondition describes the state of a replica set at a certain point. */ @ApiModel(description = "ReplicaSetCondition describes the state of a replica set at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ReplicaSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -233,17 +236,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); } /** @@ -255,7 +251,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicaSetCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ReplicaSetCondition is not found in the empty JSON string", V1ReplicaSetCondition.openapiRequiredFields.toString())); } } @@ -263,28 +259,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ReplicaSetCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ReplicaSetCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -337,3 +333,4 @@ 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 634b74e1cf..3270002c93 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ReplicaSetList is a collection of ReplicaSets. */ @ApiModel(description = "ReplicaSetList is a collection of ReplicaSets.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ReplicaSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicaSetList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ReplicaSetList is not found in the empty JSON string", V1ReplicaSetList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ReplicaSetList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ReplicaSetList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ReplicaSet.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 6f24908290..2a17cfe6d3 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * ReplicaSetSpec is the specification of a ReplicaSet. */ @ApiModel(description = "ReplicaSetSpec is the specification of a ReplicaSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ReplicaSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) @@ -207,15 +210,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("minReadySeconds", "replicas", "selector", "template")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("selector"); + openapiRequiredFields = new HashSet(Arrays.asList("selector")); } /** @@ -227,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicaSetSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ReplicaSetSpec is not found in the empty JSON string", V1ReplicaSetSpec.openapiRequiredFields.toString())); } } @@ -235,14 +233,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ReplicaSetSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ReplicaSetSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -303,3 +301,4 @@ 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 06ceaea7f7..935b0ba8c6 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ReplicaSetStatus represents the current status of a ReplicaSet. */ @ApiModel(description = "ReplicaSetStatus represents the current status of a ReplicaSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ReplicaSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) @@ -297,18 +300,10 @@ private String toIndentedString(Object o) { 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"); - openapiFields.add("terminatingReplicas"); + openapiFields = new HashSet(Arrays.asList("availableReplicas", "conditions", "fullyLabeledReplicas", "observedGeneration", "readyReplicas", "replicas", "terminatingReplicas")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("replicas"); + openapiRequiredFields = new HashSet(Arrays.asList("replicas")); } /** @@ -320,7 +315,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicaSetStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ReplicaSetStatus is not found in the empty JSON string", V1ReplicaSetStatus.openapiRequiredFields.toString())); } } @@ -328,14 +323,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ReplicaSetStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ReplicaSetStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -344,7 +339,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -404,3 +399,4 @@ 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 bb74a9e5f4..83eeec68a7 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ReplicationController represents the configuration of a replication controller. */ @ApiModel(description = "ReplicationController represents the configuration of a replication controller.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ReplicationController implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicationController.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ReplicationController is not found in the empty JSON string", V1ReplicationController.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ReplicationController` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 dba2b944bb..3836171e8c 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * ReplicationControllerCondition describes the state of a replication controller at a certain point. */ @ApiModel(description = "ReplicationControllerCondition describes the state of a replication controller at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ReplicationControllerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -233,17 +236,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); } /** @@ -255,7 +251,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicationControllerCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ReplicationControllerCondition is not found in the empty JSON string", V1ReplicationControllerCondition.openapiRequiredFields.toString())); } } @@ -263,28 +259,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ReplicationControllerCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ReplicationControllerCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -337,3 +333,4 @@ 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 a857d403b9..750ed21336 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ReplicationControllerList is a collection of replication controllers. */ @ApiModel(description = "ReplicationControllerList is a collection of replication controllers.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ReplicationControllerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicationControllerList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ReplicationControllerList is not found in the empty JSON string", V1ReplicationControllerList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ReplicationControllerList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ReplicationControllerList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ReplicationController.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 6d49096021..70d4151c86 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ReplicationControllerSpec is the specification of a replication controller. */ @ApiModel(description = "ReplicationControllerSpec is the specification of a replication controller.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ReplicationControllerSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) @@ -216,14 +219,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("minReadySeconds", "replicas", "selector", "template")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -235,7 +234,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicationControllerSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ReplicationControllerSpec is not found in the empty JSON string", V1ReplicationControllerSpec.openapiRequiredFields.toString())); } } @@ -243,7 +242,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ReplicationControllerSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -302,3 +301,4 @@ 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 4990f42625..e8c5145dbf 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ReplicationControllerStatus represents the current status of a replication controller. */ @ApiModel(description = "ReplicationControllerStatus represents the current status of a replication controller.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ReplicationControllerStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) @@ -270,17 +273,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("availableReplicas", "conditions", "fullyLabeledReplicas", "observedGeneration", "readyReplicas", "replicas")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("replicas"); + openapiRequiredFields = new HashSet(Arrays.asList("replicas")); } /** @@ -292,7 +288,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ReplicationControllerStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ReplicationControllerStatus is not found in the empty JSON string", V1ReplicationControllerStatus.openapiRequiredFields.toString())); } } @@ -300,14 +296,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ReplicationControllerStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ReplicationControllerStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -316,7 +312,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -376,3 +372,4 @@ 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 1f4b74612b..9f68614905 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface */ @ApiModel(description = "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceAttributes { public static final String SERIALIZED_NAME_FIELD_SELECTOR = "fieldSelector"; @SerializedName(SERIALIZED_NAME_FIELD_SELECTOR) @@ -342,19 +345,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("fieldSelector"); - openapiFields.add("group"); - openapiFields.add("labelSelector"); - openapiFields.add("name"); - openapiFields.add("namespace"); - openapiFields.add("resource"); - openapiFields.add("subresource"); - openapiFields.add("verb"); - openapiFields.add("version"); + openapiFields = new HashSet(Arrays.asList("fieldSelector", "group", "labelSelector", "name", "namespace", "resource", "subresource", "verb", "version")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -366,7 +360,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceAttributes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceAttributes is not found in the empty JSON string", V1ResourceAttributes.openapiRequiredFields.toString())); } } @@ -374,7 +368,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceAttributes` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -383,29 +377,29 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1FieldSelectorAttributes.validateJsonElement(jsonObj.get("fieldSelector")); } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); } // validate the optional field `labelSelector` if (jsonObj.get("labelSelector") != null && !jsonObj.get("labelSelector").isJsonNull()) { V1LabelSelectorAttributes.validateJsonElement(jsonObj.get("labelSelector")); } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } } @@ -458,3 +452,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java index 1b9f06b796..4338c50d7b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * 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. */ @ApiModel(description = "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceClaimConsumerReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) @@ -205,17 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiGroup", "name", "resource", "uid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("resource"); - openapiRequiredFields.add("uid"); + openapiRequiredFields = new HashSet(Arrays.asList("name", "resource", "uid")); } /** @@ -227,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceClaimConsumerReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceClaimConsumerReference is not found in the empty JSON string", V1ResourceClaimConsumerReference.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceClaimConsumerReference is not found in the empty JSON string", V1ResourceClaimConsumerReference.openapiRequiredFields.toString())); } } @@ -235,28 +231,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ResourceClaimConsumerReference.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceClaimConsumerReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceClaimConsumerReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ResourceClaimConsumerReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); } } @@ -309,3 +305,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java index 74a76d28a1..a3f124ab9f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ResourceClaimList is a collection of claims. */ @ApiModel(description = "ResourceClaimList is a collection of claims.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceClaimList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceClaimList is not found in the empty JSON string", V1ResourceClaimList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceClaimList is not found in the empty JSON string", V1ResourceClaimList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ResourceClaimList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceClaimList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceClaimList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ResourceClaimList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ResourceV1ResourceClaim.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java index bd9cda5a7d..9bff8447f7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. */ @ApiModel(description = "ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceClaimSpec { public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("devices"); + openapiFields = new HashSet(Arrays.asList("devices")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceClaimSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceClaimSpec is not found in the empty JSON string", V1ResourceClaimSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceClaimSpec is not found in the empty JSON string", V1ResourceClaimSpec.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ResourceClaimSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceClaimSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceClaimSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java index 1ea56f27ad..342c083119 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. */ @ApiModel(description = "ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceClaimStatus { public static final String SERIALIZED_NAME_ALLOCATION = "allocation"; @SerializedName(SERIALIZED_NAME_ALLOCATION) @@ -199,13 +202,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allocation"); - openapiFields.add("devices"); - openapiFields.add("reservedFor"); + openapiFields = new HashSet(Arrays.asList("allocation", "devices", "reservedFor")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -217,7 +217,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceClaimStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceClaimStatus is not found in the empty JSON string", V1ResourceClaimStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceClaimStatus is not found in the empty JSON string", V1ResourceClaimStatus.openapiRequiredFields.toString())); } } @@ -225,7 +225,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ResourceClaimStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -238,7 +238,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydevices != null) { // ensure the json data is an array if (!jsonObj.get("devices").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `devices` to be an array in the JSON string but got `%s`", jsonObj.get("devices").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `devices` to be an array in the JSON string but got `%s`", jsonObj.get("devices").toString())); } // validate the optional field `devices` (array) @@ -252,7 +252,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -312,3 +312,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java index 411cca7f37..fde200f02a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceClaimTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,15 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -227,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceClaimTemplate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceClaimTemplate is not found in the empty JSON string", V1ResourceClaimTemplate.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceClaimTemplate is not found in the empty JSON string", V1ResourceClaimTemplate.openapiRequiredFields.toString())); } } @@ -235,22 +233,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ResourceClaimTemplate.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceClaimTemplate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceClaimTemplate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ResourceClaimTemplate.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -309,3 +307,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java index 940b116c4a..6c17573025 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ResourceClaimTemplateList is a collection of claim templates. */ @ApiModel(description = "ResourceClaimTemplateList is a collection of claim templates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceClaimTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceClaimTemplateList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceClaimTemplateList is not found in the empty JSON string", V1ResourceClaimTemplateList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceClaimTemplateList is not found in the empty JSON string", V1ResourceClaimTemplateList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ResourceClaimTemplateList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceClaimTemplateList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceClaimTemplateList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ResourceClaimTemplateList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ResourceClaimTemplate.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java index ab63d56a1c..d639aac675 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. */ @ApiModel(description = "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceClaimTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) @@ -153,13 +156,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("metadata"); - openapiFields.add("spec"); + openapiFields = new HashSet(Arrays.asList("metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -171,7 +171,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceClaimTemplateSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceClaimTemplateSpec is not found in the empty JSON string", V1ResourceClaimTemplateSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceClaimTemplateSpec is not found in the empty JSON string", V1ResourceClaimTemplateSpec.openapiRequiredFields.toString())); } } @@ -179,14 +179,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ResourceClaimTemplateSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceClaimTemplateSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceClaimTemplateSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ResourceClaimTemplateSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -247,3 +247,4 @@ 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 96d8585c72..e71b2d90b9 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * ResourceFieldSelector represents container resources (cpu, memory) and their output format */ @ApiModel(description = "ResourceFieldSelector represents container resources (cpu, memory) and their output format") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceFieldSelector { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) @@ -179,14 +182,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("containerName"); - openapiFields.add("divisor"); - openapiFields.add("resource"); + openapiFields = new HashSet(Arrays.asList("containerName", "divisor", "resource")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("resource"); + openapiRequiredFields = new HashSet(Arrays.asList("resource")); } /** @@ -198,7 +197,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceFieldSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceFieldSelector is not found in the empty JSON string", V1ResourceFieldSelector.openapiRequiredFields.toString())); } } @@ -206,25 +205,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceFieldSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ResourceFieldSelector.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource").toString())); } } @@ -277,3 +276,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java index 659900d5d8..62b72fd73c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680. */ @ApiModel(description = "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceHealth { public static final String SERIALIZED_NAME_HEALTH = "health"; @SerializedName(SERIALIZED_NAME_HEALTH) @@ -151,13 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("health"); - openapiFields.add("resourceID"); + openapiFields = new HashSet(Arrays.asList("health", "resourceID")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("resourceID"); + openapiRequiredFields = new HashSet(Arrays.asList("resourceID")); } /** @@ -169,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceHealth.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceHealth is not found in the empty JSON string", V1ResourceHealth.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceHealth is not found in the empty JSON string", V1ResourceHealth.openapiRequiredFields.toString())); } } @@ -177,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ResourceHealth.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceHealth` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceHealth` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ResourceHealth.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("health") != null && !jsonObj.get("health").isJsonNull()) && !jsonObj.get("health").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `health` to be a primitive type in the JSON string but got `%s`", jsonObj.get("health").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `health` to be a primitive type in the JSON string but got `%s`", jsonObj.get("health").toString())); } if (!jsonObj.get("resourceID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `resourceID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resourceID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceID").toString())); } } @@ -245,3 +245,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java index 9896f12bdc..d122372587 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourcePolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -266,18 +269,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiGroups", "clusterScope", "namespaces", "resources", "verbs")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("apiGroups"); - openapiRequiredFields.add("resources"); - openapiRequiredFields.add("verbs"); + openapiRequiredFields = new HashSet(Arrays.asList("apiGroups", "resources", "verbs")); } /** @@ -289,7 +284,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourcePolicyRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourcePolicyRule is not found in the empty JSON string", V1ResourcePolicyRule.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourcePolicyRule is not found in the empty JSON string", V1ResourcePolicyRule.openapiRequiredFields.toString())); } } @@ -297,14 +292,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ResourcePolicyRule.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourcePolicyRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourcePolicyRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ResourcePolicyRule.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -312,23 +307,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `verbs` to be an array in the JSON string but got `%s`", jsonObj.get("verbs").toString())); } } @@ -381,3 +376,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java index 78cd9e7dd4..e80a7656f9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ResourcePool describes the pool that ResourceSlices belong to. */ @ApiModel(description = "ResourcePool describes the pool that ResourceSlices belong to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourcePool { public static final String SERIALIZED_NAME_GENERATION = "generation"; @SerializedName(SERIALIZED_NAME_GENERATION) @@ -178,16 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("generation"); - openapiFields.add("name"); - openapiFields.add("resourceSliceCount"); + openapiFields = new HashSet(Arrays.asList("generation", "name", "resourceSliceCount")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("generation"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("resourceSliceCount"); + openapiRequiredFields = new HashSet(Arrays.asList("generation", "name", "resourceSliceCount")); } /** @@ -199,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourcePool.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourcePool is not found in the empty JSON string", V1ResourcePool.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourcePool is not found in the empty JSON string", V1ResourcePool.openapiRequiredFields.toString())); } } @@ -207,19 +204,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ResourcePool.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourcePool` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourcePool` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ResourcePool.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -272,3 +269,4 @@ 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 76cb6897ca..b590dfde39 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ResourceQuota sets aggregate quota restrictions enforced per namespace */ @ApiModel(description = "ResourceQuota sets aggregate quota restrictions enforced per namespace") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceQuota implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceQuota.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceQuota is not found in the empty JSON string", V1ResourceQuota.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceQuota` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 70773ca3ba..180df930ae 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ResourceQuotaList is a list of ResourceQuota items. */ @ApiModel(description = "ResourceQuotaList is a list of ResourceQuota items.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceQuotaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceQuotaList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceQuotaList is not found in the empty JSON string", V1ResourceQuotaList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceQuotaList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ResourceQuotaList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ResourceQuota.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 60f63b7062..8a721392dd 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * ResourceQuotaSpec defines the desired hard limits to enforce for Quota. */ @ApiModel(description = "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceQuotaSpec { public static final String SERIALIZED_NAME_HARD = "hard"; @SerializedName(SERIALIZED_NAME_HARD) @@ -200,13 +203,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("hard"); - openapiFields.add("scopeSelector"); - openapiFields.add("scopes"); + openapiFields = new HashSet(Arrays.asList("hard", "scopeSelector", "scopes")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -218,7 +218,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceQuotaSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceQuotaSpec is not found in the empty JSON string", V1ResourceQuotaSpec.openapiRequiredFields.toString())); } } @@ -226,7 +226,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceQuotaSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -236,7 +236,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("scopes") != null && !jsonObj.get("scopes").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `scopes` to be an array in the JSON string but got `%s`", jsonObj.get("scopes").toString())); } } @@ -289,3 +289,4 @@ 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 d92a76bd04..4346a00854 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ResourceQuotaStatus defines the enforced hard limits and observed use. */ @ApiModel(description = "ResourceQuotaStatus defines the enforced hard limits and observed use.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceQuotaStatus { public static final String SERIALIZED_NAME_HARD = "hard"; @SerializedName(SERIALIZED_NAME_HARD) @@ -170,12 +173,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("hard"); - openapiFields.add("used"); + openapiFields = new HashSet(Arrays.asList("hard", "used")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -187,7 +188,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceQuotaStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceQuotaStatus is not found in the empty JSON string", V1ResourceQuotaStatus.openapiRequiredFields.toString())); } } @@ -195,7 +196,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceQuotaStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -250,3 +251,4 @@ 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 ec5494290b..dda040e13c 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * ResourceRequirements describes the compute resource requirements. */ @ApiModel(description = "ResourceRequirements describes the compute resource requirements.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceRequirements { public static final String SERIALIZED_NAME_CLAIMS = "claims"; @SerializedName(SERIALIZED_NAME_CLAIMS) @@ -208,13 +211,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("claims"); - openapiFields.add("limits"); - openapiFields.add("requests"); + openapiFields = new HashSet(Arrays.asList("claims", "limits", "requests")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,7 +226,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceRequirements.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceRequirements is not found in the empty JSON string", V1ResourceRequirements.openapiRequiredFields.toString())); } } @@ -234,7 +234,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceRequirements` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -243,7 +243,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -303,3 +303,4 @@ 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 c3f0a7ddef..d1afcaf1fa 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -239,15 +242,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiGroups", "resourceNames", "resources", "verbs")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("verbs"); + openapiRequiredFields = new HashSet(Arrays.asList("verbs")); } /** @@ -259,7 +257,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceRule is not found in the empty JSON string", V1ResourceRule.openapiRequiredFields.toString())); } } @@ -267,34 +265,34 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ResourceRule.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("apiGroups") != null && !jsonObj.get("apiGroups").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `verbs` to be an array in the JSON string but got `%s`", jsonObj.get("verbs").toString())); } } @@ -347,3 +345,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java index 736d98c0e6..7f2d54a8ef 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>. Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple , , . Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,15 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -227,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceSlice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceSlice is not found in the empty JSON string", V1ResourceSlice.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceSlice is not found in the empty JSON string", V1ResourceSlice.openapiRequiredFields.toString())); } } @@ -235,22 +233,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ResourceSlice.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceSlice` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceSlice` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ResourceSlice.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -309,3 +307,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java index 8f92c0f2f7..5c2bbfa169 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ResourceSliceList is a collection of ResourceSlices. */ @ApiModel(description = "ResourceSliceList is a collection of ResourceSlices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceSliceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceSliceList is not found in the empty JSON string", V1ResourceSliceList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceSliceList is not found in the empty JSON string", V1ResourceSliceList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ResourceSliceList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceSliceList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceSliceList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ResourceSliceList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ResourceSlice.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java index 9e6b0a3633..b2df57d8c0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * ResourceSliceSpec contains the information published by the driver in one ResourceSlice. */ @ApiModel(description = "ResourceSliceSpec contains the information published by the driver in one ResourceSlice.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceSliceSpec { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @@ -335,20 +338,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allNodes"); - openapiFields.add("devices"); - openapiFields.add("driver"); - openapiFields.add("nodeName"); - openapiFields.add("nodeSelector"); - openapiFields.add("perDeviceNodeSelection"); - openapiFields.add("pool"); - openapiFields.add("sharedCounters"); + openapiFields = new HashSet(Arrays.asList("allNodes", "devices", "driver", "nodeName", "nodeSelector", "perDeviceNodeSelection", "pool", "sharedCounters")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("driver"); - openapiRequiredFields.add("pool"); + openapiRequiredFields = new HashSet(Arrays.asList("driver", "pool")); } /** @@ -360,7 +353,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceSliceSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceSliceSpec is not found in the empty JSON string", V1ResourceSliceSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceSliceSpec is not found in the empty JSON string", V1ResourceSliceSpec.openapiRequiredFields.toString())); } } @@ -368,14 +361,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ResourceSliceSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceSliceSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceSliceSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ResourceSliceSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -384,7 +377,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydevices != null) { // ensure the json data is an array if (!jsonObj.get("devices").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `devices` to be an array in the JSON string but got `%s`", jsonObj.get("devices").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `devices` to be an array in the JSON string but got `%s`", jsonObj.get("devices").toString())); } // validate the optional field `devices` (array) @@ -394,10 +387,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); } // validate the optional field `nodeSelector` if (jsonObj.get("nodeSelector") != null && !jsonObj.get("nodeSelector").isJsonNull()) { @@ -410,7 +403,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraysharedCounters != null) { // ensure the json data is an array if (!jsonObj.get("sharedCounters").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sharedCounters` to be an array in the JSON string but got `%s`", jsonObj.get("sharedCounters").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sharedCounters` to be an array in the JSON string but got `%s`", jsonObj.get("sharedCounters").toString())); } // validate the optional field `sharedCounters` (array) @@ -470,3 +463,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java index c9393b809e..dd1d0e09a7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ResourceStatus represents the status of a single resource allocated to a Pod. */ @ApiModel(description = "ResourceStatus represents the status of a single resource allocated to a Pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ResourceStatus { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -162,13 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("resources"); + openapiFields = new HashSet(Arrays.asList("name", "resources")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -180,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ResourceStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ResourceStatus is not found in the empty JSON string", V1ResourceStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ResourceStatus is not found in the empty JSON string", V1ResourceStatus.openapiRequiredFields.toString())); } } @@ -188,26 +188,26 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ResourceStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ResourceStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ResourceStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ResourceStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (jsonObj.get("resources") != null && !jsonObj.get("resources").isJsonNull()) { JsonArray jsonArrayresources = jsonObj.getAsJsonArray("resources"); if (jsonArrayresources != null) { // 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resources` to be an array in the JSON string but got `%s`", jsonObj.get("resources").toString())); } // validate the optional field `resources` (array) @@ -267,3 +267,4 @@ 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 17c53fa501..900d421abe 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. */ @ApiModel(description = "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Role implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,14 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "rules")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -236,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Role.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Role is not found in the empty JSON string", V1Role.openapiRequiredFields.toString())); } } @@ -244,15 +243,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Role` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -263,7 +262,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -323,3 +322,4 @@ 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 104dd2b586..b2b4d3c5cc 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1RoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -245,16 +248,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "roleRef", "subjects")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("roleRef"); + openapiRequiredFields = new HashSet(Arrays.asList("roleRef")); } /** @@ -266,7 +263,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RoleBinding.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1RoleBinding is not found in the empty JSON string", V1RoleBinding.openapiRequiredFields.toString())); } } @@ -274,22 +271,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1RoleBinding` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1RoleBinding.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -302,7 +299,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -362,3 +359,4 @@ 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 f133510fde..b1ff53ffb5 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * RoleBindingList is a collection of RoleBindings */ @ApiModel(description = "RoleBindingList is a collection of RoleBindings") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1RoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RoleBindingList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1RoleBindingList is not found in the empty JSON string", V1RoleBindingList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1RoleBindingList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1RoleBindingList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1RoleBinding.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 316a3b819c..c02f1f450e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * RoleList is a collection of Roles */ @ApiModel(description = "RoleList is a collection of Roles") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1RoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RoleList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1RoleList is not found in the empty JSON string", V1RoleList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1RoleList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1RoleList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1Role.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 45d32eec2b..bc2a0d42c8 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * RoleRef contains information that points to the role being used */ @ApiModel(description = "RoleRef contains information that points to the role being used") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1RoleRef { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) @@ -178,16 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("apiGroup"); - openapiFields.add("kind"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("apiGroup", "kind", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("apiGroup"); - openapiRequiredFields.add("kind"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("apiGroup", "kind", "name")); } /** @@ -199,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RoleRef.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1RoleRef is not found in the empty JSON string", V1RoleRef.openapiRequiredFields.toString())); } } @@ -207,25 +204,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1RoleRef` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1RoleRef.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -278,3 +275,4 @@ 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 606136a4d7..a3398da440 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * Spec to control the desired behavior of daemon set rolling update. */ @ApiModel(description = "Spec to control the desired behavior of daemon set rolling update.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1RollingUpdateDaemonSet { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; @SerializedName(SERIALIZED_NAME_MAX_SURGE) @@ -152,12 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("maxSurge"); - openapiFields.add("maxUnavailable"); + openapiFields = new HashSet(Arrays.asList("maxSurge", "maxUnavailable")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -169,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RollingUpdateDaemonSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1RollingUpdateDaemonSet is not found in the empty JSON string", V1RollingUpdateDaemonSet.openapiRequiredFields.toString())); } } @@ -177,15 +178,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1RollingUpdateDaemonSet` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxUnavailable` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxUnavailable").toString())); } } @@ -238,3 +239,4 @@ 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 86f0465b85..57a1d49bdb 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * Spec to control the desired behavior of rolling update. */ @ApiModel(description = "Spec to control the desired behavior of rolling update.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1RollingUpdateDeployment { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; @SerializedName(SERIALIZED_NAME_MAX_SURGE) @@ -152,12 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("maxSurge"); - openapiFields.add("maxUnavailable"); + openapiFields = new HashSet(Arrays.asList("maxSurge", "maxUnavailable")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -169,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RollingUpdateDeployment.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1RollingUpdateDeployment is not found in the empty JSON string", V1RollingUpdateDeployment.openapiRequiredFields.toString())); } } @@ -177,15 +178,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1RollingUpdateDeployment` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxUnavailable` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxUnavailable").toString())); } } @@ -238,3 +239,4 @@ 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 9a881279d0..d388c6aff7 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. */ @ApiModel(description = "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1RollingUpdateStatefulSetStrategy { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) @@ -152,12 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("maxUnavailable"); - openapiFields.add("partition"); + openapiFields = new HashSet(Arrays.asList("maxUnavailable", "partition")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -169,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RollingUpdateStatefulSetStrategy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1RollingUpdateStatefulSetStrategy is not found in the empty JSON string", V1RollingUpdateStatefulSetStrategy.openapiRequiredFields.toString())); } } @@ -177,12 +178,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1RollingUpdateStatefulSetStrategy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `maxUnavailable` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxUnavailable").toString())); } } @@ -235,3 +236,4 @@ 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 01842ab467..a2f28145d6 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid. */ @ApiModel(description = "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1RuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -266,15 +269,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiGroups", "apiVersions", "operations", "resources", "scope")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -286,7 +284,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RuleWithOperations.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1RuleWithOperations is not found in the empty JSON string", V1RuleWithOperations.openapiRequiredFields.toString())); } } @@ -294,28 +292,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1RuleWithOperations` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("apiGroups") != null && !jsonObj.get("apiGroups").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scope").toString())); } } @@ -368,3 +366,4 @@ 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 9b1f04b249..74b9bc3d22 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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/ */ @ApiModel(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/") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1RuntimeClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -262,17 +265,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "handler", "kind", "metadata", "overhead", "scheduling")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("handler"); + openapiRequiredFields = new HashSet(Arrays.asList("handler")); } /** @@ -284,7 +280,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RuntimeClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1RuntimeClass is not found in the empty JSON string", V1RuntimeClass.openapiRequiredFields.toString())); } } @@ -292,25 +288,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1RuntimeClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1RuntimeClass.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -375,3 +371,4 @@ 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 54f9e92f5b..8e2608e71c 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * RuntimeClassList is a list of RuntimeClass objects. */ @ApiModel(description = "RuntimeClassList is a list of RuntimeClass objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1RuntimeClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1RuntimeClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1RuntimeClassList is not found in the empty JSON string", V1RuntimeClassList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1RuntimeClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1RuntimeClassList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1RuntimeClass.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 3d7538deee..3ed9275fa2 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * SELinuxOptions are the labels to be applied to the container */ @ApiModel(description = "SELinuxOptions are the labels to be applied to the container") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SELinuxOptions { public static final String SERIALIZED_NAME_LEVEL = "level"; @SerializedName(SERIALIZED_NAME_LEVEL) @@ -205,14 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("level", "role", "type", "user")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -224,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SELinuxOptions.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SELinuxOptions is not found in the empty JSON string", V1SELinuxOptions.openapiRequiredFields.toString())); } } @@ -232,21 +231,21 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SELinuxOptions` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `user` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user").toString())); } } @@ -299,3 +298,4 @@ 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 0e0851f82f..8e820f7cb1 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * Scale represents a scaling request for a resource. */ @ApiModel(description = "Scale represents a scaling request for a resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Scale implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Scale.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Scale is not found in the empty JSON string", V1Scale.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Scale` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 ac167dbdf0..fd41b026a6 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume */ @ApiModel(description = "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ScaleIOPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -368,23 +371,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("fsType", "gateway", "protectionDomain", "readOnly", "secretRef", "sslEnabled", "storageMode", "storagePool", "system", "volumeName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("gateway"); - openapiRequiredFields.add("secretRef"); - openapiRequiredFields.add("system"); + openapiRequiredFields = new HashSet(Arrays.asList("gateway", "secretRef", "system")); } /** @@ -396,7 +386,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ScaleIOPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ScaleIOPersistentVolumeSource is not found in the empty JSON string", V1ScaleIOPersistentVolumeSource.openapiRequiredFields.toString())); } } @@ -404,39 +394,39 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ScaleIOPersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ScaleIOPersistentVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `volumeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeName").toString())); } } @@ -489,3 +479,4 @@ 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 e54772318f..2a97e69445 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * ScaleIOVolumeSource represents a persistent ScaleIO volume */ @ApiModel(description = "ScaleIOVolumeSource represents a persistent ScaleIO volume") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ScaleIOVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -368,23 +371,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("fsType", "gateway", "protectionDomain", "readOnly", "secretRef", "sslEnabled", "storageMode", "storagePool", "system", "volumeName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("gateway"); - openapiRequiredFields.add("secretRef"); - openapiRequiredFields.add("system"); + openapiRequiredFields = new HashSet(Arrays.asList("gateway", "secretRef", "system")); } /** @@ -396,7 +386,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ScaleIOVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ScaleIOVolumeSource is not found in the empty JSON string", V1ScaleIOVolumeSource.openapiRequiredFields.toString())); } } @@ -404,39 +394,39 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ScaleIOVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ScaleIOVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `volumeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeName").toString())); } } @@ -489,3 +479,4 @@ 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 3a7e372505..cb9812be39 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ScaleSpec describes the attributes of a scale subresource. */ @ApiModel(description = "ScaleSpec describes the attributes of a scale subresource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ScaleSpec { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) @@ -124,11 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("replicas"); + openapiFields = new HashSet(Arrays.asList("replicas")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -140,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ScaleSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ScaleSpec is not found in the empty JSON string", V1ScaleSpec.openapiRequiredFields.toString())); } } @@ -148,7 +150,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ScaleSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -203,3 +205,4 @@ 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 f71cf817f0..810179ecc0 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ScaleStatus represents the current status of a scale subresource. */ @ApiModel(description = "ScaleStatus represents the current status of a scale subresource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ScaleStatus { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) @@ -151,13 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("replicas"); - openapiFields.add("selector"); + openapiFields = new HashSet(Arrays.asList("replicas", "selector")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("replicas"); + openapiRequiredFields = new HashSet(Arrays.asList("replicas")); } /** @@ -169,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ScaleStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ScaleStatus is not found in the empty JSON string", V1ScaleStatus.openapiRequiredFields.toString())); } } @@ -177,19 +177,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ScaleStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ScaleStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `selector` to be a primitive type in the JSON string but got `%s`", jsonObj.get("selector").toString())); } } @@ -242,3 +242,4 @@ 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 f33e79b1c7..5253e300f9 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. */ @ApiModel(description = "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Scheduling { public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) @@ -172,12 +175,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("nodeSelector"); - openapiFields.add("tolerations"); + openapiFields = new HashSet(Arrays.asList("nodeSelector", "tolerations")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -189,7 +190,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Scheduling.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Scheduling is not found in the empty JSON string", V1Scheduling.openapiRequiredFields.toString())); } } @@ -197,7 +198,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Scheduling` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -206,7 +207,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -266,3 +267,4 @@ 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 2d5513598a..5f2fdb5e3f 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements. */ @ApiModel(description = "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ScopeSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) @@ -135,11 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("matchExpressions"); + openapiFields = new HashSet(Arrays.asList("matchExpressions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -151,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ScopeSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ScopeSelector is not found in the empty JSON string", V1ScopeSelector.openapiRequiredFields.toString())); } } @@ -159,7 +161,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ScopeSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -168,7 +170,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -228,3 +230,4 @@ 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 ec94805eb6..17760054e4 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ScopedResourceSelectorRequirement { public static final String SERIALIZED_NAME_OPERATOR = "operator"; @SerializedName(SERIALIZED_NAME_OPERATOR) @@ -188,15 +191,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("operator"); - openapiFields.add("scopeName"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("operator", "scopeName", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("operator"); - openapiRequiredFields.add("scopeName"); + openapiRequiredFields = new HashSet(Arrays.asList("operator", "scopeName")); } /** @@ -208,7 +206,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ScopedResourceSelectorRequirement.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ScopedResourceSelectorRequirement is not found in the empty JSON string", V1ScopedResourceSelectorRequirement.openapiRequiredFields.toString())); } } @@ -216,26 +214,26 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ScopedResourceSelectorRequirement` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ScopedResourceSelectorRequirement.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -288,3 +286,4 @@ 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 b74efec55e..19aae60c52 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set. */ @ApiModel(description = "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SeccompProfile { public static final String SERIALIZED_NAME_LOCALHOST_PROFILE = "localhostProfile"; @SerializedName(SERIALIZED_NAME_LOCALHOST_PROFILE) @@ -151,13 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("localhostProfile"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("localhostProfile", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -169,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SeccompProfile.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SeccompProfile is not found in the empty JSON string", V1SeccompProfile.openapiRequiredFields.toString())); } } @@ -177,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SeccompProfile` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1SeccompProfile.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -245,3 +245,4 @@ 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 16c2b08763..de3b2f48a8 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 @@ -1,24 +1,25 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.custom.MapUtils; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -47,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +56,7 @@ * Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. */ @ApiModel(description = "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Secret implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -261,7 +263,7 @@ public boolean equals(Object o) { } V1Secret v1Secret = (V1Secret) o; return Objects.equals(this.apiVersion, v1Secret.apiVersion) && - MapUtils.equals(this.data, v1Secret.data) && + Objects.equals(this.data, v1Secret.data) && Objects.equals(this.immutable, v1Secret.immutable) && Objects.equals(this.kind, v1Secret.kind) && Objects.equals(this.metadata, v1Secret.metadata) && @@ -306,17 +308,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "data", "immutable", "kind", "metadata", "stringData", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -328,7 +323,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Secret.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Secret is not found in the empty JSON string", V1Secret.openapiRequiredFields.toString())); } } @@ -336,22 +331,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Secret` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -404,3 +399,4 @@ 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 8c49162277..fae81ac362 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SecretEnvSource { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("optional"); + openapiFields = new HashSet(Arrays.asList("name", "optional")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SecretEnvSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SecretEnvSource is not found in the empty JSON string", V1SecretEnvSource.openapiRequiredFields.toString())); } } @@ -176,12 +177,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SecretEnvSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -234,3 +235,4 @@ 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 47ce5b3212..6df9c65c2b 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * SecretKeySelector selects a key of a Secret. */ @ApiModel(description = "SecretKeySelector selects a key of a Secret.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SecretKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -178,14 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("key"); - openapiFields.add("name"); - openapiFields.add("optional"); + openapiFields = new HashSet(Arrays.asList("key", "name", "optional")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("key"); + openapiRequiredFields = new HashSet(Arrays.asList("key")); } /** @@ -197,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SecretKeySelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SecretKeySelector is not found in the empty JSON string", V1SecretKeySelector.openapiRequiredFields.toString())); } } @@ -205,22 +204,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SecretKeySelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1SecretKeySelector.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -273,3 +272,4 @@ 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 5ae1bba8ef..c8165cb486 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * SecretList is a list of Secret. */ @ApiModel(description = "SecretList is a list of Secret.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SecretList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SecretList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SecretList is not found in the empty JSON string", V1SecretList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SecretList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1SecretList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1Secret.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 501bff97f2..db25abcf3e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SecretProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) @@ -189,13 +192,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("items"); - openapiFields.add("name"); - openapiFields.add("optional"); + openapiFields = new HashSet(Arrays.asList("items", "name", "optional")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -207,7 +207,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SecretProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SecretProjection is not found in the empty JSON string", V1SecretProjection.openapiRequiredFields.toString())); } } @@ -215,7 +215,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SecretProjection` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -224,7 +224,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -234,7 +234,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -287,3 +287,4 @@ 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 ffbe286913..a11f435e42 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace */ @ApiModel(description = "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SecretReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("namespace"); + openapiFields = new HashSet(Arrays.asList("name", "namespace")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SecretReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SecretReference is not found in the empty JSON string", V1SecretReference.openapiRequiredFields.toString())); } } @@ -176,15 +177,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SecretReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } } @@ -237,3 +238,4 @@ 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 2abf8c2180..9c5306db1c 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SecretVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) @@ -216,14 +219,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("defaultMode", "items", "optional", "secretName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -235,7 +234,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SecretVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SecretVolumeSource is not found in the empty JSON string", V1SecretVolumeSource.openapiRequiredFields.toString())); } } @@ -243,7 +242,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SecretVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -252,7 +251,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -262,7 +261,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `secretName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secretName").toString())); } } @@ -315,3 +314,4 @@ 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 3587a4cc85..ea96bafa48 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SecurityContext { public static final String SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION = "allowPrivilegeEscalation"; @SerializedName(SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION) @@ -426,22 +429,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allowPrivilegeEscalation"); - openapiFields.add("appArmorProfile"); - 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"); + openapiFields = new HashSet(Arrays.asList("allowPrivilegeEscalation", "appArmorProfile", "capabilities", "privileged", "procMount", "readOnlyRootFilesystem", "runAsGroup", "runAsNonRoot", "runAsUser", "seLinuxOptions", "seccompProfile", "windowsOptions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -453,7 +444,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SecurityContext.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SecurityContext is not found in the empty JSON string", V1SecurityContext.openapiRequiredFields.toString())); } } @@ -461,7 +452,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SecurityContext` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -474,7 +465,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1Capabilities.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -539,3 +530,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java index 88746d2995..c6647cbfe8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * SelectableField specifies the JSON path of a field that may be used with field selectors. */ @ApiModel(description = "SelectableField specifies the JSON path of a field that may be used with field selectors.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SelectableField { public static final String SERIALIZED_NAME_JSON_PATH = "jsonPath"; @SerializedName(SERIALIZED_NAME_JSON_PATH) @@ -124,12 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("jsonPath"); + openapiFields = new HashSet(Arrays.asList("jsonPath")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("jsonPath"); + openapiRequiredFields = new HashSet(Arrays.asList("jsonPath")); } /** @@ -141,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SelectableField.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1SelectableField is not found in the empty JSON string", V1SelectableField.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SelectableField is not found in the empty JSON string", V1SelectableField.openapiRequiredFields.toString())); } } @@ -149,19 +150,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1SelectableField.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SelectableField` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SelectableField` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1SelectableField.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `jsonPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("jsonPath").toString())); } } @@ -214,3 +215,4 @@ 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 9b3603d5e9..632f1a684e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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 */ @ApiModel(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") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SelfSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,16 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -256,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SelfSubjectAccessReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SelfSubjectAccessReview is not found in the empty JSON string", V1SelfSubjectAccessReview.openapiRequiredFields.toString())); } } @@ -264,22 +261,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SelfSubjectAccessReview` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1SelfSubjectAccessReview.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -342,3 +339,4 @@ 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 f3c6908ee2..5abaa17b79 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set */ @ApiModel(description = "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SelfSubjectAccessReviewSpec { public static final String SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES = "nonResourceAttributes"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES) @@ -153,12 +156,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("nonResourceAttributes"); - openapiFields.add("resourceAttributes"); + openapiFields = new HashSet(Arrays.asList("nonResourceAttributes", "resourceAttributes")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -170,7 +171,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SelfSubjectAccessReviewSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SelfSubjectAccessReviewSpec is not found in the empty JSON string", V1SelfSubjectAccessReviewSpec.openapiRequiredFields.toString())); } } @@ -178,7 +179,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SelfSubjectAccessReviewSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -241,3 +242,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java index 531c00b460..f3ced7f442 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SelfSubjectReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,14 +210,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SelfSubjectReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1SelfSubjectReview is not found in the empty JSON string", V1SelfSubjectReview.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SelfSubjectReview is not found in the empty JSON string", V1SelfSubjectReview.openapiRequiredFields.toString())); } } @@ -234,15 +233,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1SelfSubjectReview.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SelfSubjectReview` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SelfSubjectReview` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -303,3 +302,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java index 3274d6587b..d5a076eb25 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. */ @ApiModel(description = "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SelfSubjectReviewStatus { public static final String SERIALIZED_NAME_USER_INFO = "userInfo"; @SerializedName(SERIALIZED_NAME_USER_INFO) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("userInfo"); + openapiFields = new HashSet(Arrays.asList("userInfo")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SelfSubjectReviewStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1SelfSubjectReviewStatus is not found in the empty JSON string", V1SelfSubjectReviewStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SelfSubjectReviewStatus is not found in the empty JSON string", V1SelfSubjectReviewStatus.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1SelfSubjectReviewStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SelfSubjectReviewStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SelfSubjectReviewStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ 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 0d3d34b8fc..c6db2b5053 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SelfSubjectRulesReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,16 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -256,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SelfSubjectRulesReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SelfSubjectRulesReview is not found in the empty JSON string", V1SelfSubjectRulesReview.openapiRequiredFields.toString())); } } @@ -264,22 +261,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SelfSubjectRulesReview` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1SelfSubjectRulesReview.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -342,3 +339,4 @@ 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 c8858e0763..fa34a63011 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. */ @ApiModel(description = "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SelfSubjectRulesReviewSpec { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -124,11 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("namespace"); + openapiFields = new HashSet(Arrays.asList("namespace")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -140,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SelfSubjectRulesReviewSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SelfSubjectRulesReviewSpec is not found in the empty JSON string", V1SelfSubjectRulesReviewSpec.openapiRequiredFields.toString())); } } @@ -148,12 +150,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SelfSubjectRulesReviewSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } } @@ -206,3 +208,4 @@ 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 ea9f03ab75..a55d5f3f20 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. */ @ApiModel(description = "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ServerAddressByClientCIDR { public static final String SERIALIZED_NAME_CLIENT_C_I_D_R = "clientCIDR"; @SerializedName(SERIALIZED_NAME_CLIENT_C_I_D_R) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("clientCIDR"); - openapiFields.add("serverAddress"); + openapiFields = new HashSet(Arrays.asList("clientCIDR", "serverAddress")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("clientCIDR"); - openapiRequiredFields.add("serverAddress"); + openapiRequiredFields = new HashSet(Arrays.asList("clientCIDR", "serverAddress")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServerAddressByClientCIDR.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ServerAddressByClientCIDR is not found in the empty JSON string", V1ServerAddressByClientCIDR.openapiRequiredFields.toString())); } } @@ -178,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ServerAddressByClientCIDR` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ServerAddressByClientCIDR.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `serverAddress` to be a primitive type in the JSON string but got `%s`", jsonObj.get("serverAddress").toString())); } } @@ -246,3 +245,4 @@ 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 bb6411a2ff..0fc4f267c7 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Service implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Service.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Service is not found in the empty JSON string", V1Service.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Service` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 39c1b24132..e693acf29a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * 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 */ @ApiModel(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") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ServiceAccount implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -280,16 +283,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "automountServiceAccountToken", "imagePullSecrets", "kind", "metadata", "secrets")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -301,7 +298,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceAccount.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ServiceAccount is not found in the empty JSON string", V1ServiceAccount.openapiRequiredFields.toString())); } } @@ -309,19 +306,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ServiceAccount` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -331,7 +328,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -342,7 +339,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -402,3 +399,4 @@ 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 e6dd052494..733f410954 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ServiceAccountList is a list of ServiceAccount objects */ @ApiModel(description = "ServiceAccountList is a list of ServiceAccount objects") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ServiceAccountList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceAccountList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ServiceAccountList is not found in the empty JSON string", V1ServiceAccountList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ServiceAccountList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ServiceAccountList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ServiceAccount.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java index ac1a5576aa..8cfb4bc81c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ServiceAccountSubject holds detailed information for service-account-kind subject. */ @ApiModel(description = "ServiceAccountSubject holds detailed information for service-account-kind subject.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ServiceAccountSubject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("namespace"); + openapiFields = new HashSet(Arrays.asList("name", "namespace")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("namespace"); + openapiRequiredFields = new HashSet(Arrays.asList("name", "namespace")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceAccountSubject.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ServiceAccountSubject is not found in the empty JSON string", V1ServiceAccountSubject.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ServiceAccountSubject is not found in the empty JSON string", V1ServiceAccountSubject.openapiRequiredFields.toString())); } } @@ -178,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ServiceAccountSubject.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ServiceAccountSubject` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ServiceAccountSubject` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ServiceAccountSubject.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } } @@ -246,3 +245,4 @@ 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 115dd7fdc4..a02e315fe4 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * 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). */ @ApiModel(description = "ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ServiceAccountTokenProjection { public static final String SERIALIZED_NAME_AUDIENCE = "audience"; @SerializedName(SERIALIZED_NAME_AUDIENCE) @@ -178,14 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("audience"); - openapiFields.add("expirationSeconds"); - openapiFields.add("path"); + openapiFields = new HashSet(Arrays.asList("audience", "expirationSeconds", "path")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("path"); + openapiRequiredFields = new HashSet(Arrays.asList("path")); } /** @@ -197,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceAccountTokenProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ServiceAccountTokenProjection is not found in the empty JSON string", V1ServiceAccountTokenProjection.openapiRequiredFields.toString())); } } @@ -205,22 +204,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ServiceAccountTokenProjection` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ServiceAccountTokenProjection.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } } @@ -273,3 +272,4 @@ 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 a4fd64c7bb..e14614d3d8 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ServiceBackendPort is the service port being referenced. */ @ApiModel(description = "ServiceBackendPort is the service port being referenced.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ServiceBackendPort { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("number"); + openapiFields = new HashSet(Arrays.asList("name", "number")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceBackendPort.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ServiceBackendPort is not found in the empty JSON string", V1ServiceBackendPort.openapiRequiredFields.toString())); } } @@ -176,12 +177,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ServiceBackendPort` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -234,3 +235,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java index d74ca773b5..1480bdc0a3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects. */ @ApiModel(description = "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ServiceCIDR implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceCIDR.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ServiceCIDR is not found in the empty JSON string", V1ServiceCIDR.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ServiceCIDR is not found in the empty JSON string", V1ServiceCIDR.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ServiceCIDR.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ServiceCIDR` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ServiceCIDR` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java index 056f381c36..db2cdca474 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ServiceCIDRList contains a list of ServiceCIDR objects. */ @ApiModel(description = "ServiceCIDRList contains a list of ServiceCIDR objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ServiceCIDRList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceCIDRList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ServiceCIDRList is not found in the empty JSON string", V1ServiceCIDRList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ServiceCIDRList is not found in the empty JSON string", V1ServiceCIDRList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ServiceCIDRList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ServiceCIDRList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ServiceCIDRList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ServiceCIDRList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ServiceCIDR.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java index 87665a57f2..b9590a16bb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. */ @ApiModel(description = "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ServiceCIDRSpec { public static final String SERIALIZED_NAME_CIDRS = "cidrs"; @SerializedName(SERIALIZED_NAME_CIDRS) @@ -134,11 +137,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("cidrs"); + openapiFields = new HashSet(Arrays.asList("cidrs")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -150,7 +152,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceCIDRSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ServiceCIDRSpec is not found in the empty JSON string", V1ServiceCIDRSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ServiceCIDRSpec is not found in the empty JSON string", V1ServiceCIDRSpec.openapiRequiredFields.toString())); } } @@ -158,13 +160,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ServiceCIDRSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ServiceCIDRSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ServiceCIDRSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("cidrs") != null && !jsonObj.get("cidrs").isJsonNull() && !jsonObj.get("cidrs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `cidrs` to be an array in the JSON string but got `%s`", jsonObj.get("cidrs").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cidrs` to be an array in the JSON string but got `%s`", jsonObj.get("cidrs").toString())); } } @@ -217,3 +219,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java index 6540968077..fca50be2a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ServiceCIDRStatus describes the current state of the ServiceCIDR. */ @ApiModel(description = "ServiceCIDRStatus describes the current state of the ServiceCIDR.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ServiceCIDRStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -135,11 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("conditions"); + openapiFields = new HashSet(Arrays.asList("conditions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -151,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceCIDRStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ServiceCIDRStatus is not found in the empty JSON string", V1ServiceCIDRStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ServiceCIDRStatus is not found in the empty JSON string", V1ServiceCIDRStatus.openapiRequiredFields.toString())); } } @@ -159,7 +161,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ServiceCIDRStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ServiceCIDRStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ServiceCIDRStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -168,7 +170,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -228,3 +230,4 @@ 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 d9f6cc3860..644b5bcfc1 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ServiceList holds a list of services. */ @ApiModel(description = "ServiceList holds a list of services.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ServiceList is not found in the empty JSON string", V1ServiceList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ServiceList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ServiceList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1Service.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 2ac4be430f..0730755fc6 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * ServicePort contains information on service's port. */ @ApiModel(description = "ServicePort contains information on service's port.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ServicePort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) @@ -260,17 +263,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("appProtocol", "name", "nodePort", "port", "protocol", "targetPort")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("port"); + openapiRequiredFields = new HashSet(Arrays.asList("port")); } /** @@ -282,7 +278,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServicePort.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ServicePort is not found in the empty JSON string", V1ServicePort.openapiRequiredFields.toString())); } } @@ -290,28 +286,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ServicePort` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ServicePort.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `targetPort` to be a primitive type in the JSON string but got `%s`", jsonObj.get("targetPort").toString())); } } @@ -364,3 +360,4 @@ 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 cda1fff3ca..4af3e69585 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * ServiceSpec describes the attributes that a user creates on a service. */ @ApiModel(description = "ServiceSpec describes the attributes that a user creates on a service.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ServiceSpec { public static final String SERIALIZED_NAME_ALLOCATE_LOAD_BALANCER_NODE_PORTS = "allocateLoadBalancerNodePorts"; @SerializedName(SERIALIZED_NAME_ALLOCATE_LOAD_BALANCER_NODE_PORTS) @@ -691,30 +694,10 @@ private String toIndentedString(Object o) { 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("trafficDistribution"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("allocateLoadBalancerNodePorts", "clusterIP", "clusterIPs", "externalIPs", "externalName", "externalTrafficPolicy", "healthCheckNodePort", "internalTrafficPolicy", "ipFamilies", "ipFamilyPolicy", "loadBalancerClass", "loadBalancerIP", "loadBalancerSourceRanges", "ports", "publishNotReadyAddresses", "selector", "sessionAffinity", "sessionAffinityConfig", "trafficDistribution", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -726,7 +709,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ServiceSpec is not found in the empty JSON string", V1ServiceSpec.openapiRequiredFields.toString())); } } @@ -734,53 +717,53 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ServiceSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -790,17 +773,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("sessionAffinityConfig")); } if ((jsonObj.get("trafficDistribution") != null && !jsonObj.get("trafficDistribution").isJsonNull()) && !jsonObj.get("trafficDistribution").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `trafficDistribution` to be a primitive type in the JSON string but got `%s`", jsonObj.get("trafficDistribution").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `trafficDistribution` to be a primitive type in the JSON string but got `%s`", jsonObj.get("trafficDistribution").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -853,3 +836,4 @@ 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 ac04e476cd..d39bae5436 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ServiceStatus represents the current status of a service. */ @ApiModel(description = "ServiceStatus represents the current status of a service.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -163,12 +166,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("conditions"); - openapiFields.add("loadBalancer"); + openapiFields = new HashSet(Arrays.asList("conditions", "loadBalancer")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -180,7 +181,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ServiceStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ServiceStatus is not found in the empty JSON string", V1ServiceStatus.openapiRequiredFields.toString())); } } @@ -188,7 +189,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ServiceStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -197,7 +198,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -261,3 +262,4 @@ 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 c626b90529..39e26645eb 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * SessionAffinityConfig represents the configurations of session affinity. */ @ApiModel(description = "SessionAffinityConfig represents the configurations of session affinity.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SessionAffinityConfig { public static final String SERIALIZED_NAME_CLIENT_I_P = "clientIP"; @SerializedName(SERIALIZED_NAME_CLIENT_I_P) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("clientIP"); + openapiFields = new HashSet(Arrays.asList("clientIP")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SessionAffinityConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SessionAffinityConfig is not found in the empty JSON string", V1SessionAffinityConfig.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SessionAffinityConfig` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java index 776c12adb6..71e58e699f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * SleepAction describes a \"sleep\" action. */ @ApiModel(description = "SleepAction describes a \"sleep\" action.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SleepAction { public static final String SERIALIZED_NAME_SECONDS = "seconds"; @SerializedName(SERIALIZED_NAME_SECONDS) @@ -124,12 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("seconds"); + openapiFields = new HashSet(Arrays.asList("seconds")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("seconds"); + openapiRequiredFields = new HashSet(Arrays.asList("seconds")); } /** @@ -141,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SleepAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1SleepAction is not found in the empty JSON string", V1SleepAction.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SleepAction is not found in the empty JSON string", V1SleepAction.openapiRequiredFields.toString())); } } @@ -149,14 +150,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1SleepAction.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SleepAction` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SleepAction` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1SleepAction.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -211,3 +212,4 @@ 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 67861c533e..7af2eade6e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1StatefulSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatefulSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1StatefulSet is not found in the empty JSON string", V1StatefulSet.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StatefulSet` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 ccef715fca..061fdb545a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * StatefulSetCondition describes the state of a statefulset at a certain point. */ @ApiModel(description = "StatefulSetCondition describes the state of a statefulset at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1StatefulSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -233,17 +236,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); } /** @@ -255,7 +251,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatefulSetCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1StatefulSetCondition is not found in the empty JSON string", V1StatefulSetCondition.openapiRequiredFields.toString())); } } @@ -263,28 +259,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StatefulSetCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1StatefulSetCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -337,3 +333,4 @@ 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 d3ad36125a..5e4e06cfa9 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * StatefulSetList is a collection of StatefulSets. */ @ApiModel(description = "StatefulSetList is a collection of StatefulSets.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1StatefulSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatefulSetList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1StatefulSetList is not found in the empty JSON string", V1StatefulSetList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StatefulSetList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1StatefulSetList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1StatefulSet.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 d33f35adc0..36a6bb29f1 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet. */ @ApiModel(description = "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1StatefulSetOrdinals { public static final String SERIALIZED_NAME_START = "start"; @SerializedName(SERIALIZED_NAME_START) @@ -124,11 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("start"); + openapiFields = new HashSet(Arrays.asList("start")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -140,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatefulSetOrdinals.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1StatefulSetOrdinals is not found in the empty JSON string", V1StatefulSetOrdinals.openapiRequiredFields.toString())); } } @@ -148,7 +150,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StatefulSetOrdinals` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -203,3 +205,4 @@ 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 43bf713d14..8efff33af3 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. */ @ApiModel(description = "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1StatefulSetPersistentVolumeClaimRetentionPolicy { public static final String SERIALIZED_NAME_WHEN_DELETED = "whenDeleted"; @SerializedName(SERIALIZED_NAME_WHEN_DELETED) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("whenDeleted"); - openapiFields.add("whenScaled"); + openapiFields = new HashSet(Arrays.asList("whenDeleted", "whenScaled")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatefulSetPersistentVolumeClaimRetentionPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1StatefulSetPersistentVolumeClaimRetentionPolicy is not found in the empty JSON string", V1StatefulSetPersistentVolumeClaimRetentionPolicy.openapiRequiredFields.toString())); } } @@ -176,15 +177,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StatefulSetPersistentVolumeClaimRetentionPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `whenScaled` to be a primitive type in the JSON string but got `%s`", jsonObj.get("whenScaled").toString())); } } @@ -237,3 +238,4 @@ 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 8edc229c38..4bd1f1e5ce 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -51,6 +53,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -58,7 +61,7 @@ * A StatefulSetSpec is the specification of a StatefulSet. */ @ApiModel(description = "A StatefulSetSpec is the specification of a StatefulSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1StatefulSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) @@ -410,23 +413,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("minReadySeconds", "ordinals", "persistentVolumeClaimRetentionPolicy", "podManagementPolicy", "replicas", "revisionHistoryLimit", "selector", "serviceName", "template", "updateStrategy", "volumeClaimTemplates")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("selector"); - openapiRequiredFields.add("template"); + openapiRequiredFields = new HashSet(Arrays.asList("selector", "template")); } /** @@ -438,7 +428,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatefulSetSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1StatefulSetSpec is not found in the empty JSON string", V1StatefulSetSpec.openapiRequiredFields.toString())); } } @@ -446,14 +436,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StatefulSetSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1StatefulSetSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -466,12 +456,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1StatefulSetPersistentVolumeClaimRetentionPolicy.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("selector")); if ((jsonObj.get("serviceName") != null && !jsonObj.get("serviceName").isJsonNull()) && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("template")); @@ -484,7 +474,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -544,3 +534,4 @@ 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 20e97388b2..bad92b9f02 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * StatefulSetStatus represents the current state of a StatefulSet. */ @ApiModel(description = "StatefulSetStatus represents the current state of a StatefulSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1StatefulSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) @@ -378,21 +381,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("availableReplicas", "collisionCount", "conditions", "currentReplicas", "currentRevision", "observedGeneration", "readyReplicas", "replicas", "updateRevision", "updatedReplicas")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("replicas"); + openapiRequiredFields = new HashSet(Arrays.asList("replicas")); } /** @@ -404,7 +396,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatefulSetStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1StatefulSetStatus is not found in the empty JSON string", V1StatefulSetStatus.openapiRequiredFields.toString())); } } @@ -412,14 +404,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StatefulSetStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1StatefulSetStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -428,7 +420,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -438,10 +430,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `updateRevision` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updateRevision").toString())); } } @@ -494,3 +486,4 @@ 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 184b6f766a..2555ea3e44 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * 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. */ @ApiModel(description = "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1StatefulSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) @@ -152,12 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("rollingUpdate"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("rollingUpdate", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -169,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatefulSetUpdateStrategy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1StatefulSetUpdateStrategy is not found in the empty JSON string", V1StatefulSetUpdateStrategy.openapiRequiredFields.toString())); } } @@ -177,7 +178,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StatefulSetUpdateStrategy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -186,7 +187,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1RollingUpdateStatefulSetStrategy.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -239,3 +240,4 @@ 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 af41bb1fc4..20f3ef32df 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * Status is a return value for calls that don't return other objects. */ @ApiModel(description = "Status is a return value for calls that don't return other objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Status { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -315,18 +318,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "code", "details", "kind", "message", "metadata", "reason", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -338,7 +333,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Status.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Status is not found in the empty JSON string", V1Status.openapiRequiredFields.toString())); } } @@ -346,32 +341,32 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Status` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } } @@ -396,8 +391,7 @@ public void write(JsonWriter out, V1Status value) throws IOException { @Override public V1Status read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); - // Disable validation so delete API can tolerate non-status return object (graceful deletion) - // validateJsonObject(jsonObj); + validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); } @@ -425,3 +419,4 @@ 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 6a9dabd1a2..0d30abdadf 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. */ @ApiModel(description = "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1StatusCause { public static final String SERIALIZED_NAME_FIELD = "field"; @SerializedName(SERIALIZED_NAME_FIELD) @@ -178,13 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("field"); - openapiFields.add("message"); - openapiFields.add("reason"); + openapiFields = new HashSet(Arrays.asList("field", "message", "reason")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -196,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatusCause.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1StatusCause is not found in the empty JSON string", V1StatusCause.openapiRequiredFields.toString())); } } @@ -204,18 +204,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StatusCause` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); } } @@ -268,3 +268,4 @@ 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 4ee389edbf..cd467d199d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1StatusDetails { public static final String SERIALIZED_NAME_CAUSES = "causes"; @SerializedName(SERIALIZED_NAME_CAUSES) @@ -270,16 +273,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("causes", "group", "kind", "name", "retryAfterSeconds", "uid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -291,7 +288,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StatusDetails.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1StatusDetails is not found in the empty JSON string", V1StatusDetails.openapiRequiredFields.toString())); } } @@ -299,7 +296,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StatusDetails` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -308,7 +305,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -318,16 +315,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); } } @@ -380,3 +377,4 @@ 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 63c0aa85c0..7688cd9d64 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1StorageClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION = "allowVolumeExpansion"; @SerializedName(SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION) @@ -397,21 +400,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("allowVolumeExpansion", "allowedTopologies", "apiVersion", "kind", "metadata", "mountOptions", "parameters", "provisioner", "reclaimPolicy", "volumeBindingMode")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("provisioner"); + openapiRequiredFields = new HashSet(Arrays.asList("provisioner")); } /** @@ -423,7 +415,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StorageClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1StorageClass is not found in the empty JSON string", V1StorageClass.openapiRequiredFields.toString())); } } @@ -431,14 +423,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StorageClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1StorageClass.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -447,7 +439,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -457,10 +449,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -468,16 +460,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("mountOptions") != null && !jsonObj.get("mountOptions").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `volumeBindingMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeBindingMode").toString())); } } @@ -530,3 +522,4 @@ 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 e87a9c43bf..c9966102a5 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * StorageClassList is a collection of storage classes. */ @ApiModel(description = "StorageClassList is a collection of storage classes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1StorageClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StorageClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1StorageClassList is not found in the empty JSON string", V1StorageClassList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StorageClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1StorageClassList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1StorageClass.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 1614f9a688..7176b97b3b 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * Represents a StorageOS persistent volume resource. */ @ApiModel(description = "Represents a StorageOS persistent volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1StorageOSPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -233,15 +236,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("fsType", "readOnly", "secretRef", "volumeName", "volumeNamespace")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -253,7 +251,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StorageOSPersistentVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1StorageOSPersistentVolumeSource is not found in the empty JSON string", V1StorageOSPersistentVolumeSource.openapiRequiredFields.toString())); } } @@ -261,22 +259,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StorageOSPersistentVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `volumeNamespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeNamespace").toString())); } } @@ -329,3 +327,4 @@ 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 38c5c63397..91a090b17d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * Represents a StorageOS persistent volume resource. */ @ApiModel(description = "Represents a StorageOS persistent volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1StorageOSVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -233,15 +236,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("fsType", "readOnly", "secretRef", "volumeName", "volumeNamespace")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -253,7 +251,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1StorageOSVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1StorageOSVolumeSource is not found in the empty JSON string", V1StorageOSVolumeSource.openapiRequiredFields.toString())); } } @@ -261,22 +259,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1StorageOSVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `volumeNamespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumeNamespace").toString())); } } @@ -329,3 +327,4 @@ 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 040905e329..68c92cf0bd 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * SubjectAccessReview checks whether or not a user or group can perform an action. */ @ApiModel(description = "SubjectAccessReview checks whether or not a user or group can perform an action.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,16 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -256,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SubjectAccessReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SubjectAccessReview is not found in the empty JSON string", V1SubjectAccessReview.openapiRequiredFields.toString())); } } @@ -264,22 +261,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SubjectAccessReview` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1SubjectAccessReview.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -342,3 +339,4 @@ 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 0796eaadbf..52a95306dd 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set */ @ApiModel(description = "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SubjectAccessReviewSpec { public static final String SERIALIZED_NAME_EXTRA = "extra"; @SerializedName(SERIALIZED_NAME_EXTRA) @@ -281,16 +284,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("extra", "groups", "nonResourceAttributes", "resourceAttributes", "uid", "user")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -302,7 +299,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SubjectAccessReviewSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SubjectAccessReviewSpec is not found in the empty JSON string", V1SubjectAccessReviewSpec.openapiRequiredFields.toString())); } } @@ -310,13 +307,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SubjectAccessReviewSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,10 +324,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ResourceAttributes.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `user` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user").toString())); } } @@ -383,3 +380,4 @@ 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 6acd04b0d8..3a88d8eb2b 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * SubjectAccessReviewStatus */ @ApiModel(description = "SubjectAccessReviewStatus") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SubjectAccessReviewStatus { public static final String SERIALIZED_NAME_ALLOWED = "allowed"; @SerializedName(SERIALIZED_NAME_ALLOWED) @@ -205,15 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("allowed", "denied", "evaluationError", "reason")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("allowed"); + openapiRequiredFields = new HashSet(Arrays.asList("allowed")); } /** @@ -225,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SubjectAccessReviewStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SubjectAccessReviewStatus is not found in the empty JSON string", V1SubjectAccessReviewStatus.openapiRequiredFields.toString())); } } @@ -233,22 +231,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SubjectAccessReviewStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1SubjectAccessReviewStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); } } @@ -301,3 +299,4 @@ 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 b6f99f27eb..7e70d510db 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SubjectRulesReviewStatus { public static final String SERIALIZED_NAME_EVALUATION_ERROR = "evaluationError"; @SerializedName(SERIALIZED_NAME_EVALUATION_ERROR) @@ -225,17 +228,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("evaluationError", "incomplete", "nonResourceRules", "resourceRules")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("incomplete"); - openapiRequiredFields.add("nonResourceRules"); - openapiRequiredFields.add("resourceRules"); + openapiRequiredFields = new HashSet(Arrays.asList("incomplete", "nonResourceRules", "resourceRules")); } /** @@ -247,7 +243,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SubjectRulesReviewStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SubjectRulesReviewStatus is not found in the empty JSON string", V1SubjectRulesReviewStatus.openapiRequiredFields.toString())); } } @@ -255,23 +251,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SubjectRulesReviewStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1SubjectRulesReviewStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nonResourceRules` to be an array in the JSON string but got `%s`", jsonObj.get("nonResourceRules").toString())); } JsonArray jsonArraynonResourceRules = jsonObj.getAsJsonArray("nonResourceRules"); @@ -281,7 +277,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; // 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resourceRules` to be an array in the JSON string but got `%s`", jsonObj.get("resourceRules").toString())); } JsonArray jsonArrayresourceRules = jsonObj.getAsJsonArray("resourceRules"); @@ -340,3 +336,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java index aefef0c728..410d81278d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes. */ @ApiModel(description = "SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SuccessPolicy { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) @@ -135,12 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("rules"); + openapiFields = new HashSet(Arrays.asList("rules")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("rules"); + openapiRequiredFields = new HashSet(Arrays.asList("rules")); } /** @@ -152,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SuccessPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1SuccessPolicy is not found in the empty JSON string", V1SuccessPolicy.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SuccessPolicy is not found in the empty JSON string", V1SuccessPolicy.openapiRequiredFields.toString())); } } @@ -160,20 +161,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1SuccessPolicy.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SuccessPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SuccessPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1SuccessPolicy.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `rules` to be an array in the JSON string but got `%s`", jsonObj.get("rules").toString())); } JsonArray jsonArrayrules = jsonObj.getAsJsonArray("rules"); @@ -232,3 +233,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java index 7fbc7ede49..fa5abfd0c1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \"succeededIndexes\" or \"succeededCount\" specified. */ @ApiModel(description = "SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \"succeededIndexes\" or \"succeededCount\" specified.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1SuccessPolicyRule { public static final String SERIALIZED_NAME_SUCCEEDED_COUNT = "succeededCount"; @SerializedName(SERIALIZED_NAME_SUCCEEDED_COUNT) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("succeededCount"); - openapiFields.add("succeededIndexes"); + openapiFields = new HashSet(Arrays.asList("succeededCount", "succeededIndexes")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1SuccessPolicyRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1SuccessPolicyRule is not found in the empty JSON string", V1SuccessPolicyRule.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1SuccessPolicyRule is not found in the empty JSON string", V1SuccessPolicyRule.openapiRequiredFields.toString())); } } @@ -176,12 +177,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1SuccessPolicyRule.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1SuccessPolicyRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1SuccessPolicyRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("succeededIndexes") != null && !jsonObj.get("succeededIndexes").isJsonNull()) && !jsonObj.get("succeededIndexes").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `succeededIndexes` to be a primitive type in the JSON string but got `%s`", jsonObj.get("succeededIndexes").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `succeededIndexes` to be a primitive type in the JSON string but got `%s`", jsonObj.get("succeededIndexes").toString())); } } @@ -234,3 +235,4 @@ 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 254db5d461..198df282f4 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Sysctl defines a kernel parameter to be set */ @ApiModel(description = "Sysctl defines a kernel parameter to be set") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Sysctl { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("name", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("name", "value")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Sysctl.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Sysctl is not found in the empty JSON string", V1Sysctl.openapiRequiredFields.toString())); } } @@ -178,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Sysctl` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1Sysctl.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -246,3 +245,4 @@ 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 9797fd4eab..39ee6ec84b 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * TCPSocketAction describes an action based on opening a socket */ @ApiModel(description = "TCPSocketAction describes an action based on opening a socket") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1TCPSocketAction { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) @@ -152,13 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("host"); - openapiFields.add("port"); + openapiFields = new HashSet(Arrays.asList("host", "port")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("port"); + openapiRequiredFields = new HashSet(Arrays.asList("port")); } /** @@ -170,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TCPSocketAction.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1TCPSocketAction is not found in the empty JSON string", V1TCPSocketAction.openapiRequiredFields.toString())); } } @@ -178,22 +178,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1TCPSocketAction` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1TCPSocketAction.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `port` to be a primitive type in the JSON string but got `%s`", jsonObj.get("port").toString())); } } @@ -246,3 +246,4 @@ 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 9872118608..489a29feb0 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint. */ @ApiModel(description = "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Taint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) @@ -206,16 +209,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("effect", "key", "timeAdded", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("effect"); - openapiRequiredFields.add("key"); + openapiRequiredFields = new HashSet(Arrays.asList("effect", "key")); } /** @@ -227,7 +224,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Taint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Taint is not found in the empty JSON string", V1Taint.openapiRequiredFields.toString())); } } @@ -235,25 +232,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Taint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1Taint.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -306,3 +303,4 @@ 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 668f0e7586..905cf91776 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * TokenRequestSpec contains client provided parameters of a token request. */ @ApiModel(description = "TokenRequestSpec contains client provided parameters of a token request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1TokenRequestSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) @@ -189,14 +192,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("audiences"); - openapiFields.add("boundObjectRef"); - openapiFields.add("expirationSeconds"); + openapiFields = new HashSet(Arrays.asList("audiences", "boundObjectRef", "expirationSeconds")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("audiences"); + openapiRequiredFields = new HashSet(Arrays.asList("audiences")); } /** @@ -208,7 +207,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TokenRequestSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1TokenRequestSpec is not found in the empty JSON string", V1TokenRequestSpec.openapiRequiredFields.toString())); } } @@ -216,14 +215,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1TokenRequestSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1TokenRequestSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -231,7 +230,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -288,3 +287,4 @@ 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 d3fc6fcfaf..4c8e682581 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * TokenRequestStatus is the result of a token request. */ @ApiModel(description = "TokenRequestStatus is the result of a token request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1TokenRequestStatus { public static final String SERIALIZED_NAME_EXPIRATION_TIMESTAMP = "expirationTimestamp"; @SerializedName(SERIALIZED_NAME_EXPIRATION_TIMESTAMP) @@ -152,14 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("expirationTimestamp"); - openapiFields.add("token"); + openapiFields = new HashSet(Arrays.asList("expirationTimestamp", "token")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("expirationTimestamp"); - openapiRequiredFields.add("token"); + openapiRequiredFields = new HashSet(Arrays.asList("expirationTimestamp", "token")); } /** @@ -171,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TokenRequestStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1TokenRequestStatus is not found in the empty JSON string", V1TokenRequestStatus.openapiRequiredFields.toString())); } } @@ -179,19 +178,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1TokenRequestStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1TokenRequestStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `token` to be a primitive type in the JSON string but got `%s`", jsonObj.get("token").toString())); } } @@ -244,3 +243,4 @@ 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 95552bc42e..012d05e1f8 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1TokenReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,16 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -256,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TokenReview.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1TokenReview is not found in the empty JSON string", V1TokenReview.openapiRequiredFields.toString())); } } @@ -264,22 +261,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1TokenReview` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1TokenReview.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -342,3 +339,4 @@ 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 0c1d916acc..a3ea976b05 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * TokenReviewSpec is a description of the token authentication request. */ @ApiModel(description = "TokenReviewSpec is a description of the token authentication request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1TokenReviewSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) @@ -161,12 +164,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("audiences"); - openapiFields.add("token"); + openapiFields = new HashSet(Arrays.asList("audiences", "token")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -178,7 +179,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TokenReviewSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1TokenReviewSpec is not found in the empty JSON string", V1TokenReviewSpec.openapiRequiredFields.toString())); } } @@ -186,16 +187,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1TokenReviewSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("audiences") != null && !jsonObj.get("audiences").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `token` to be a primitive type in the JSON string but got `%s`", jsonObj.get("token").toString())); } } @@ -248,3 +249,4 @@ 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 5aa922ca97..cfb1e4defe 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * TokenReviewStatus is the result of the token authentication request. */ @ApiModel(description = "TokenReviewStatus is the result of the token authentication request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1TokenReviewStatus { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) @@ -216,14 +219,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("audiences", "authenticated", "error", "user")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -235,7 +234,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TokenReviewStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1TokenReviewStatus is not found in the empty JSON string", V1TokenReviewStatus.openapiRequiredFields.toString())); } } @@ -243,16 +242,16 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1TokenReviewStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("audiences") != null && !jsonObj.get("audiences").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -309,3 +308,4 @@ 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 249719b6fc..01faaaac14 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. */ @ApiModel(description = "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Toleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) @@ -232,15 +235,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("effect", "key", "operator", "tolerationSeconds", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -252,7 +250,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Toleration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Toleration is not found in the empty JSON string", V1Toleration.openapiRequiredFields.toString())); } } @@ -260,21 +258,21 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Toleration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -327,3 +325,4 @@ 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 42a6469a3a..15e956713b 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future. */ @ApiModel(description = "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1TopologySelectorLabelRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -161,14 +164,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("key"); - openapiFields.add("values"); + openapiFields = new HashSet(Arrays.asList("key", "values")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("key"); - openapiRequiredFields.add("values"); + openapiRequiredFields = new HashSet(Arrays.asList("key", "values")); } /** @@ -180,7 +179,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TopologySelectorLabelRequirement.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1TopologySelectorLabelRequirement is not found in the empty JSON string", V1TopologySelectorLabelRequirement.openapiRequiredFields.toString())); } } @@ -188,25 +187,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1TopologySelectorLabelRequirement` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1TopologySelectorLabelRequirement.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `values` to be an array in the JSON string but got `%s`", jsonObj.get("values").toString())); } } @@ -259,3 +258,4 @@ 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 4a77a6d654..737d3fcc98 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(description = "A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1TopologySelectorTerm { public static final String SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS = "matchLabelExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS) @@ -135,11 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("matchLabelExpressions"); + openapiFields = new HashSet(Arrays.asList("matchLabelExpressions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -151,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TopologySelectorTerm.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1TopologySelectorTerm is not found in the empty JSON string", V1TopologySelectorTerm.openapiRequiredFields.toString())); } } @@ -159,7 +161,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1TopologySelectorTerm` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -168,7 +170,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -228,3 +230,4 @@ 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 307f13e146..00a45a7fc9 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * TopologySpreadConstraint specifies how to spread matching pods among the given topology. */ @ApiModel(description = "TopologySpreadConstraint specifies how to spread matching pods among the given topology.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1TopologySpreadConstraint { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) @@ -324,21 +327,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("labelSelector", "matchLabelKeys", "maxSkew", "minDomains", "nodeAffinityPolicy", "nodeTaintsPolicy", "topologyKey", "whenUnsatisfiable")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("maxSkew"); - openapiRequiredFields.add("topologyKey"); - openapiRequiredFields.add("whenUnsatisfiable"); + openapiRequiredFields = new HashSet(Arrays.asList("maxSkew", "topologyKey", "whenUnsatisfiable")); } /** @@ -350,7 +342,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TopologySpreadConstraint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1TopologySpreadConstraint is not found in the empty JSON string", V1TopologySpreadConstraint.openapiRequiredFields.toString())); } } @@ -358,14 +350,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1TopologySpreadConstraint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1TopologySpreadConstraint.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -375,19 +367,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("matchLabelKeys") != null && !jsonObj.get("matchLabelKeys").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `whenUnsatisfiable` to be a primitive type in the JSON string but got `%s`", jsonObj.get("whenUnsatisfiable").toString())); } } @@ -440,3 +432,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java index 713789255f..50a66ce1a2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy */ @ApiModel(description = "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1TypeChecking { public static final String SERIALIZED_NAME_EXPRESSION_WARNINGS = "expressionWarnings"; @SerializedName(SERIALIZED_NAME_EXPRESSION_WARNINGS) @@ -135,11 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("expressionWarnings"); + openapiFields = new HashSet(Arrays.asList("expressionWarnings")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -151,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TypeChecking.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1TypeChecking is not found in the empty JSON string", V1TypeChecking.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1TypeChecking is not found in the empty JSON string", V1TypeChecking.openapiRequiredFields.toString())); } } @@ -159,7 +161,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1TypeChecking.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1TypeChecking` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1TypeChecking` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -168,7 +170,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -228,3 +230,4 @@ 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 d70f5684a0..425d24c23d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. */ @ApiModel(description = "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1TypedLocalObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) @@ -178,15 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("apiGroup"); - openapiFields.add("kind"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("apiGroup", "kind", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("kind"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("kind", "name")); } /** @@ -198,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TypedLocalObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1TypedLocalObjectReference is not found in the empty JSON string", V1TypedLocalObjectReference.openapiRequiredFields.toString())); } } @@ -206,25 +204,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1TypedLocalObjectReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1TypedLocalObjectReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -277,3 +275,4 @@ 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 16a3952119..3bac979ddc 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * TypedObjectReference contains enough information to let you locate the typed referenced object */ @ApiModel(description = "TypedObjectReference contains enough information to let you locate the typed referenced object") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1TypedObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) @@ -205,16 +208,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiGroup", "kind", "name", "namespace")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("kind"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("kind", "name")); } /** @@ -226,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1TypedObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1TypedObjectReference is not found in the empty JSON string", V1TypedObjectReference.openapiRequiredFields.toString())); } } @@ -234,28 +231,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1TypedObjectReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1TypedObjectReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); } } @@ -308,3 +305,4 @@ 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 cd4deacdfc..2ce3bcb83d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters. */ @ApiModel(description = "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1UncountedTerminatedPods { public static final String SERIALIZED_NAME_FAILED = "failed"; @SerializedName(SERIALIZED_NAME_FAILED) @@ -169,12 +172,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("failed"); - openapiFields.add("succeeded"); + openapiFields = new HashSet(Arrays.asList("failed", "succeeded")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -186,7 +187,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1UncountedTerminatedPods.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1UncountedTerminatedPods is not found in the empty JSON string", V1UncountedTerminatedPods.openapiRequiredFields.toString())); } } @@ -194,17 +195,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1UncountedTerminatedPods` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("failed") != null && !jsonObj.get("failed").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `succeeded` to be an array in the JSON string but got `%s`", jsonObj.get("succeeded").toString())); } } @@ -257,3 +258,4 @@ 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 9cb0acc703..cc0805e1b6 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * UserInfo holds the information about the user needed to implement the user.Info interface. */ @ApiModel(description = "UserInfo holds the information about the user needed to implement the user.Info interface.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1UserInfo { public static final String SERIALIZED_NAME_EXTRA = "extra"; @SerializedName(SERIALIZED_NAME_EXTRA) @@ -225,14 +228,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("extra", "groups", "uid", "username")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -244,7 +243,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1UserInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1UserInfo is not found in the empty JSON string", V1UserInfo.openapiRequiredFields.toString())); } } @@ -252,19 +251,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1UserInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } } @@ -317,3 +316,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java index faa293067b..a50a022a92 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * UserSubject holds detailed information for user-kind subject. */ @ApiModel(description = "UserSubject holds detailed information for user-kind subject.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1UserSubject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -124,12 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -141,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1UserSubject.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1UserSubject is not found in the empty JSON string", V1UserSubject.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1UserSubject is not found in the empty JSON string", V1UserSubject.openapiRequiredFields.toString())); } } @@ -149,19 +150,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1UserSubject.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1UserSubject` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1UserSubject` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1UserSubject.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -214,3 +215,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java index c51163c383..317d630f61 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. */ @ApiModel(description = "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ValidatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingAdmissionPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ValidatingAdmissionPolicy is not found in the empty JSON string", V1ValidatingAdmissionPolicy.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ValidatingAdmissionPolicy is not found in the empty JSON string", V1ValidatingAdmissionPolicy.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ValidatingAdmissionPolicy.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ValidatingAdmissionPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ValidatingAdmissionPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java index 7f7e8547e5..2dde9873fb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ValidatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,14 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingAdmissionPolicyBinding.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ValidatingAdmissionPolicyBinding is not found in the empty JSON string", V1ValidatingAdmissionPolicyBinding.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ValidatingAdmissionPolicyBinding is not found in the empty JSON string", V1ValidatingAdmissionPolicyBinding.openapiRequiredFields.toString())); } } @@ -234,15 +233,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ValidatingAdmissionPolicyBinding.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ValidatingAdmissionPolicyBinding` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ValidatingAdmissionPolicyBinding` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -303,3 +302,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java index f0a5dc385d..5f5f5909e1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. */ @ApiModel(description = "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ValidatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingAdmissionPolicyBindingList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ValidatingAdmissionPolicyBindingList is not found in the empty JSON string", V1ValidatingAdmissionPolicyBindingList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ValidatingAdmissionPolicyBindingList is not found in the empty JSON string", V1ValidatingAdmissionPolicyBindingList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ValidatingAdmissionPolicyBindingList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ValidatingAdmissionPolicyBindingList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ValidatingAdmissionPolicyBindingList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ValidatingAdmissionPolicyBindingList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ValidatingAdmissionPolicyBinding.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java index 919454c4e6..786dbac5a7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. */ @ApiModel(description = "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ValidatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) @@ -217,14 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("matchResources", "paramRef", "policyName", "validationActions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -236,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingAdmissionPolicyBindingSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ValidatingAdmissionPolicyBindingSpec is not found in the empty JSON string", V1ValidatingAdmissionPolicyBindingSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ValidatingAdmissionPolicyBindingSpec is not found in the empty JSON string", V1ValidatingAdmissionPolicyBindingSpec.openapiRequiredFields.toString())); } } @@ -244,7 +243,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ValidatingAdmissionPolicyBindingSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ValidatingAdmissionPolicyBindingSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ValidatingAdmissionPolicyBindingSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -257,11 +256,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ParamRef.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `validationActions` to be an array in the JSON string but got `%s`", jsonObj.get("validationActions").toString())); } } @@ -314,3 +313,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java index 7a2efa6d8f..1bdc534764 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. */ @ApiModel(description = "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ValidatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingAdmissionPolicyList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ValidatingAdmissionPolicyList is not found in the empty JSON string", V1ValidatingAdmissionPolicyList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ValidatingAdmissionPolicyList is not found in the empty JSON string", V1ValidatingAdmissionPolicyList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ValidatingAdmissionPolicyList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ValidatingAdmissionPolicyList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ValidatingAdmissionPolicyList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ValidatingAdmissionPolicyList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ValidatingAdmissionPolicy.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java index e1faac69b6..353f88ab16 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -51,6 +53,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -58,7 +61,7 @@ * ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. */ @ApiModel(description = "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ValidatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_AUDIT_ANNOTATIONS = "auditAnnotations"; @SerializedName(SERIALIZED_NAME_AUDIT_ANNOTATIONS) @@ -326,17 +329,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("auditAnnotations", "failurePolicy", "matchConditions", "matchConstraints", "paramKind", "validations", "variables")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -348,7 +344,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingAdmissionPolicySpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ValidatingAdmissionPolicySpec is not found in the empty JSON string", V1ValidatingAdmissionPolicySpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ValidatingAdmissionPolicySpec is not found in the empty JSON string", V1ValidatingAdmissionPolicySpec.openapiRequiredFields.toString())); } } @@ -356,7 +352,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ValidatingAdmissionPolicySpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ValidatingAdmissionPolicySpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ValidatingAdmissionPolicySpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -365,7 +361,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -375,14 +371,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -404,7 +400,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -418,7 +414,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -478,3 +474,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java index 27662896eb..64136ac807 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. */ @ApiModel(description = "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ValidatingAdmissionPolicyStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -190,13 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("conditions"); - openapiFields.add("observedGeneration"); - openapiFields.add("typeChecking"); + openapiFields = new HashSet(Arrays.asList("conditions", "observedGeneration", "typeChecking")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -208,7 +208,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingAdmissionPolicyStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1ValidatingAdmissionPolicyStatus is not found in the empty JSON string", V1ValidatingAdmissionPolicyStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ValidatingAdmissionPolicyStatus is not found in the empty JSON string", V1ValidatingAdmissionPolicyStatus.openapiRequiredFields.toString())); } } @@ -216,7 +216,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1ValidatingAdmissionPolicyStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1ValidatingAdmissionPolicyStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ValidatingAdmissionPolicyStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -225,7 +225,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -289,3 +289,4 @@ 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 f368f4b499..4e540720c8 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * ValidatingWebhook describes an admission webhook and the resources and operations it applies to. */ @ApiModel(description = "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ValidatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; @SerializedName(SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS) @@ -424,25 +427,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("admissionReviewVersions", "clientConfig", "failurePolicy", "matchConditions", "matchPolicy", "name", "namespaceSelector", "objectSelector", "rules", "sideEffects", "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"); + openapiRequiredFields = new HashSet(Arrays.asList("admissionReviewVersions", "clientConfig", "name", "sideEffects")); } /** @@ -454,7 +442,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingWebhook.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ValidatingWebhook is not found in the empty JSON string", V1ValidatingWebhook.openapiRequiredFields.toString())); } } @@ -462,14 +450,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ValidatingWebhook` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ValidatingWebhook.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -477,19 +465,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -499,10 +487,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -517,7 +505,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -527,7 +515,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sideEffects` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sideEffects").toString())); } } @@ -580,3 +568,4 @@ 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 ed2e7b75b2..a7bffbf618 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. */ @ApiModel(description = "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ValidatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,14 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "webhooks")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -236,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingWebhookConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ValidatingWebhookConfiguration is not found in the empty JSON string", V1ValidatingWebhookConfiguration.openapiRequiredFields.toString())); } } @@ -244,15 +243,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ValidatingWebhookConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -263,7 +262,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -323,3 +322,4 @@ 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 2a66dc7b81..88db9eb642 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. */ @ApiModel(description = "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ValidatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidatingWebhookConfigurationList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ValidatingWebhookConfigurationList is not found in the empty JSON string", V1ValidatingWebhookConfigurationList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ValidatingWebhookConfigurationList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ValidatingWebhookConfigurationList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ValidatingWebhookConfiguration.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java index a16ccee4c2..0f435e175d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Validation specifies the CEL expression which is used to apply the validation. */ @ApiModel(description = "Validation specifies the CEL expression which is used to apply the validation.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Validation { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -205,15 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("expression", "message", "messageExpression", "reason")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("expression"); + openapiRequiredFields = new HashSet(Arrays.asList("expression")); } /** @@ -225,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Validation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1Validation is not found in the empty JSON string", V1Validation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Validation is not found in the empty JSON string", V1Validation.openapiRequiredFields.toString())); } } @@ -233,28 +231,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1Validation.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Validation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Validation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1Validation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reason").toString())); } } @@ -307,3 +305,4 @@ 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 f1a0f79f24..1498e02094 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ValidationRule describes a validation rule written in the CEL expression language. */ @ApiModel(description = "ValidationRule describes a validation rule written in the CEL expression language.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1ValidationRule { public static final String SERIALIZED_NAME_FIELD_PATH = "fieldPath"; @SerializedName(SERIALIZED_NAME_FIELD_PATH) @@ -259,17 +262,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("fieldPath"); - openapiFields.add("message"); - openapiFields.add("messageExpression"); - openapiFields.add("optionalOldSelf"); - openapiFields.add("reason"); - openapiFields.add("rule"); + openapiFields = new HashSet(Arrays.asList("fieldPath", "message", "messageExpression", "optionalOldSelf", "reason", "rule")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("rule"); + openapiRequiredFields = new HashSet(Arrays.asList("rule")); } /** @@ -281,7 +277,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1ValidationRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1ValidationRule is not found in the empty JSON string", V1ValidationRule.openapiRequiredFields.toString())); } } @@ -289,31 +285,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ValidationRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1ValidationRule.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `rule` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rule").toString())); } } @@ -366,3 +362,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java index 9895e6f957..8ef1dcf238 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Variable is the definition of a variable that is used for composition. A variable is defined as a named expression. */ @ApiModel(description = "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Variable { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("expression"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("expression", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("expression"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("expression", "name")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Variable.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1Variable is not found in the empty JSON string", V1Variable.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Variable is not found in the empty JSON string", V1Variable.openapiRequiredFields.toString())); } } @@ -178,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1Variable.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1Variable` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Variable` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1Variable.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -246,3 +245,4 @@ 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 334e6fab01..7b4f444545 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -73,6 +75,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -80,7 +83,7 @@ * Volume represents a named volume in a pod that may be accessed by any container in the pod. */ @ApiModel(description = "Volume represents a named volume in a pod that may be accessed by any container in the pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1Volume { public static final String SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE = "awsElasticBlockStore"; @SerializedName(SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE) @@ -964,42 +967,10 @@ private String toIndentedString(Object o) { 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("image"); - 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"); + openapiFields = new HashSet(Arrays.asList("awsElasticBlockStore", "azureDisk", "azureFile", "cephfs", "cinder", "configMap", "csi", "downwardAPI", "emptyDir", "ephemeral", "fc", "flexVolume", "flocker", "gcePersistentDisk", "gitRepo", "glusterfs", "hostPath", "image", "iscsi", "name", "nfs", "persistentVolumeClaim", "photonPersistentDisk", "portworxVolume", "projected", "quobyte", "rbd", "scaleIO", "secret", "storageos", "vsphereVolume")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -1011,7 +982,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1Volume.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1Volume is not found in the empty JSON string", V1Volume.openapiRequiredFields.toString())); } } @@ -1019,14 +990,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Volume` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1Volume.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -1107,7 +1078,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ISCSIVolumeSource.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -1204,3 +1175,4 @@ 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 536e2d248d..1be76d8ea7 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced. */ @ApiModel(description = "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1VolumeAttachment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,16 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -256,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeAttachment.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1VolumeAttachment is not found in the empty JSON string", V1VolumeAttachment.openapiRequiredFields.toString())); } } @@ -264,22 +261,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VolumeAttachment` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1VolumeAttachment.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -342,3 +339,4 @@ 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 1677b60d2b..c6693c3314 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * VolumeAttachmentList is a collection of VolumeAttachment objects. */ @ApiModel(description = "VolumeAttachmentList is a collection of VolumeAttachment objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1VolumeAttachmentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeAttachmentList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1VolumeAttachmentList is not found in the empty JSON string", V1VolumeAttachmentList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VolumeAttachmentList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1VolumeAttachmentList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1VolumeAttachment.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 71638020d7..7e9f7ccda1 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * VolumeAttachmentSource represents a volume that should be attached. Right now only PersistentVolumes can be attached via external attacher, in the future we may allow also inline volumes in pods. Exactly one member can be set. */ @ApiModel(description = "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistentVolumes can be attached via external attacher, in the future we may allow also inline volumes in pods. Exactly one member can be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1VolumeAttachmentSource { public static final String SERIALIZED_NAME_INLINE_VOLUME_SPEC = "inlineVolumeSpec"; @SerializedName(SERIALIZED_NAME_INLINE_VOLUME_SPEC) @@ -152,12 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("inlineVolumeSpec"); - openapiFields.add("persistentVolumeName"); + openapiFields = new HashSet(Arrays.asList("inlineVolumeSpec", "persistentVolumeName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -169,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeAttachmentSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1VolumeAttachmentSource is not found in the empty JSON string", V1VolumeAttachmentSource.openapiRequiredFields.toString())); } } @@ -177,7 +178,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VolumeAttachmentSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -186,7 +187,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1PersistentVolumeSpec.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `persistentVolumeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("persistentVolumeName").toString())); } } @@ -239,3 +240,4 @@ 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 976e66bdd1..b6d7a5f4e2 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * VolumeAttachmentSpec is the specification of a VolumeAttachment request. */ @ApiModel(description = "VolumeAttachmentSpec is the specification of a VolumeAttachment request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1VolumeAttachmentSpec { public static final String SERIALIZED_NAME_ATTACHER = "attacher"; @SerializedName(SERIALIZED_NAME_ATTACHER) @@ -179,16 +182,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("attacher"); - openapiFields.add("nodeName"); - openapiFields.add("source"); + openapiFields = new HashSet(Arrays.asList("attacher", "nodeName", "source")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("attacher"); - openapiRequiredFields.add("nodeName"); - openapiRequiredFields.add("source"); + openapiRequiredFields = new HashSet(Arrays.asList("attacher", "nodeName", "source")); } /** @@ -200,7 +197,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeAttachmentSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1VolumeAttachmentSpec is not found in the empty JSON string", V1VolumeAttachmentSpec.openapiRequiredFields.toString())); } } @@ -208,22 +205,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VolumeAttachmentSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1VolumeAttachmentSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("source")); @@ -278,3 +275,4 @@ 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 a103ee938a..6617433628 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * VolumeAttachmentStatus is the status of a VolumeAttachment request. */ @ApiModel(description = "VolumeAttachmentStatus is the status of a VolumeAttachment request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1VolumeAttachmentStatus { public static final String SERIALIZED_NAME_ATTACH_ERROR = "attachError"; @SerializedName(SERIALIZED_NAME_ATTACH_ERROR) @@ -216,15 +219,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("attachError", "attached", "attachmentMetadata", "detachError")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("attached"); + openapiRequiredFields = new HashSet(Arrays.asList("attached")); } /** @@ -236,7 +234,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeAttachmentStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1VolumeAttachmentStatus is not found in the empty JSON string", V1VolumeAttachmentStatus.openapiRequiredFields.toString())); } } @@ -244,14 +242,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VolumeAttachmentStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1VolumeAttachmentStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -314,3 +312,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java index 786cffc01a..8f47ec2273 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning. */ @ApiModel(description = "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1VolumeAttributesClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -243,16 +246,10 @@ private String toIndentedString(Object o) { 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("parameters"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "driverName", "kind", "metadata", "parameters")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("driverName"); + openapiRequiredFields = new HashSet(Arrays.asList("driverName")); } /** @@ -264,7 +261,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeAttributesClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1VolumeAttributesClass is not found in the empty JSON string", V1VolumeAttributesClass.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1VolumeAttributesClass is not found in the empty JSON string", V1VolumeAttributesClass.openapiRequiredFields.toString())); } } @@ -272,25 +269,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1VolumeAttributesClass.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1VolumeAttributesClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VolumeAttributesClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1VolumeAttributesClass.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -347,3 +344,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java index bd181ec0b0..1ef8945fe3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * VolumeAttributesClassList is a collection of VolumeAttributesClass objects. */ @ApiModel(description = "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1VolumeAttributesClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeAttributesClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1VolumeAttributesClassList is not found in the empty JSON string", V1VolumeAttributesClassList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1VolumeAttributesClassList is not found in the empty JSON string", V1VolumeAttributesClassList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1VolumeAttributesClassList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1VolumeAttributesClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VolumeAttributesClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1VolumeAttributesClassList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1VolumeAttributesClass.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 68ebb1c4d6..0393ba3dca 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * volumeDevice describes a mapping of a raw block device within a container. */ @ApiModel(description = "volumeDevice describes a mapping of a raw block device within a container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1VolumeDevice { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; @SerializedName(SERIALIZED_NAME_DEVICE_PATH) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("devicePath"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("devicePath", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("devicePath"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("devicePath", "name")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeDevice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1VolumeDevice is not found in the empty JSON string", V1VolumeDevice.openapiRequiredFields.toString())); } } @@ -178,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VolumeDevice` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1VolumeDevice.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -246,3 +245,4 @@ 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 789cb34529..516d1c17de 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * VolumeError captures an error encountered during a volume operation. */ @ApiModel(description = "VolumeError captures an error encountered during a volume operation.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1VolumeError { public static final String SERIALIZED_NAME_ERROR_CODE = "errorCode"; @SerializedName(SERIALIZED_NAME_ERROR_CODE) @@ -179,13 +182,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("errorCode"); - openapiFields.add("message"); - openapiFields.add("time"); + openapiFields = new HashSet(Arrays.asList("errorCode", "message", "time")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -197,7 +197,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1VolumeError is not found in the empty JSON string", V1VolumeError.openapiRequiredFields.toString())); } } @@ -205,12 +205,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VolumeError` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } } @@ -263,3 +263,4 @@ 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 59618972d8..96a7f463ea 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * VolumeMount describes a mounting of a Volume within a container. */ @ApiModel(description = "VolumeMount describes a mounting of a Volume within a container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1VolumeMount { public static final String SERIALIZED_NAME_MOUNT_PATH = "mountPath"; @SerializedName(SERIALIZED_NAME_MOUNT_PATH) @@ -286,19 +289,10 @@ private String toIndentedString(Object o) { 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("recursiveReadOnly"); - openapiFields.add("subPath"); - openapiFields.add("subPathExpr"); + openapiFields = new HashSet(Arrays.asList("mountPath", "mountPropagation", "name", "readOnly", "recursiveReadOnly", "subPath", "subPathExpr")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("mountPath"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("mountPath", "name")); } /** @@ -310,7 +304,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeMount.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1VolumeMount is not found in the empty JSON string", V1VolumeMount.openapiRequiredFields.toString())); } } @@ -318,34 +312,34 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VolumeMount` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1VolumeMount.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("recursiveReadOnly") != null && !jsonObj.get("recursiveReadOnly").isJsonNull()) && !jsonObj.get("recursiveReadOnly").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `recursiveReadOnly` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recursiveReadOnly").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `recursiveReadOnly` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recursiveReadOnly").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `subPathExpr` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subPathExpr").toString())); } } @@ -398,3 +392,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java index fbed01e7d4..9aef426a97 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * VolumeMountStatus shows status of volume mounts. */ @ApiModel(description = "VolumeMountStatus shows status of volume mounts.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1VolumeMountStatus { public static final String SERIALIZED_NAME_MOUNT_PATH = "mountPath"; @SerializedName(SERIALIZED_NAME_MOUNT_PATH) @@ -205,16 +208,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("mountPath"); - openapiFields.add("name"); - openapiFields.add("readOnly"); - openapiFields.add("recursiveReadOnly"); + openapiFields = new HashSet(Arrays.asList("mountPath", "name", "readOnly", "recursiveReadOnly")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("mountPath"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("mountPath", "name")); } /** @@ -226,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeMountStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1VolumeMountStatus is not found in the empty JSON string", V1VolumeMountStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1VolumeMountStatus is not found in the empty JSON string", V1VolumeMountStatus.openapiRequiredFields.toString())); } } @@ -234,25 +231,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1VolumeMountStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1VolumeMountStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VolumeMountStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1VolumeMountStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `mountPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mountPath").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("recursiveReadOnly") != null && !jsonObj.get("recursiveReadOnly").isJsonNull()) && !jsonObj.get("recursiveReadOnly").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `recursiveReadOnly` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recursiveReadOnly").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `recursiveReadOnly` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recursiveReadOnly").toString())); } } @@ -305,3 +302,4 @@ 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 762e5c4a7e..cc33f57655 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. */ @ApiModel(description = "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1VolumeNodeAffinity { public static final String SERIALIZED_NAME_REQUIRED = "required"; @SerializedName(SERIALIZED_NAME_REQUIRED) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("required"); + openapiFields = new HashSet(Arrays.asList("required")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeNodeAffinity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1VolumeNodeAffinity is not found in the empty JSON string", V1VolumeNodeAffinity.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VolumeNodeAffinity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ 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 1e2b287947..0ee654d4e4 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * VolumeNodeResources is a set of resource limits for scheduling of volumes. */ @ApiModel(description = "VolumeNodeResources is a set of resource limits for scheduling of volumes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1VolumeNodeResources { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) @@ -124,11 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("count"); + openapiFields = new HashSet(Arrays.asList("count")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -140,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeNodeResources.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1VolumeNodeResources is not found in the empty JSON string", V1VolumeNodeResources.openapiRequiredFields.toString())); } } @@ -148,7 +150,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VolumeNodeResources` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -203,3 +205,4 @@ 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 53519306bd..2a28b100cb 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * Projection that may be projected along with other supported volume types. Exactly one of these fields must be set. */ @ApiModel(description = "Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1VolumeProjection { public static final String SERIALIZED_NAME_CLUSTER_TRUST_BUNDLE = "clusterTrustBundle"; @SerializedName(SERIALIZED_NAME_CLUSTER_TRUST_BUNDLE) @@ -265,16 +268,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("clusterTrustBundle"); - openapiFields.add("configMap"); - openapiFields.add("downwardAPI"); - openapiFields.add("podCertificate"); - openapiFields.add("secret"); - openapiFields.add("serviceAccountToken"); + openapiFields = new HashSet(Arrays.asList("clusterTrustBundle", "configMap", "downwardAPI", "podCertificate", "secret", "serviceAccountToken")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -286,7 +283,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeProjection.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1VolumeProjection is not found in the empty JSON string", V1VolumeProjection.openapiRequiredFields.toString())); } } @@ -294,7 +291,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VolumeProjection` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -373,3 +370,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java index da9ffc9c40..e195d02afa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * VolumeResourceRequirements describes the storage resource requirements for a volume. */ @ApiModel(description = "VolumeResourceRequirements describes the storage resource requirements for a volume.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1VolumeResourceRequirements { public static final String SERIALIZED_NAME_LIMITS = "limits"; @SerializedName(SERIALIZED_NAME_LIMITS) @@ -170,12 +173,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("limits"); - openapiFields.add("requests"); + openapiFields = new HashSet(Arrays.asList("limits", "requests")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -187,7 +188,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VolumeResourceRequirements.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1VolumeResourceRequirements is not found in the empty JSON string", V1VolumeResourceRequirements.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1VolumeResourceRequirements is not found in the empty JSON string", V1VolumeResourceRequirements.openapiRequiredFields.toString())); } } @@ -195,7 +196,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1VolumeResourceRequirements.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1VolumeResourceRequirements` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VolumeResourceRequirements` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -250,3 +251,4 @@ 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 36ac37e660..b84e59702b 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Represents a vSphere volume resource. */ @ApiModel(description = "Represents a vSphere volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1VsphereVirtualDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) @@ -205,15 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("fsType", "storagePolicyID", "storagePolicyName", "volumePath")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("volumePath"); + openapiRequiredFields = new HashSet(Arrays.asList("volumePath")); } /** @@ -225,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1VsphereVirtualDiskVolumeSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1VsphereVirtualDiskVolumeSource is not found in the empty JSON string", V1VsphereVirtualDiskVolumeSource.openapiRequiredFields.toString())); } } @@ -233,28 +231,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VsphereVirtualDiskVolumeSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1VsphereVirtualDiskVolumeSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `volumePath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("volumePath").toString())); } } @@ -307,3 +305,4 @@ 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 f5fa60356a..7d63ff3d8e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Event represents a single event to a watched resource. */ @ApiModel(description = "Event represents a single event to a watched resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1WatchEvent { public static final String SERIALIZED_NAME_OBJECT = "object"; @SerializedName(SERIALIZED_NAME_OBJECT) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("object"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("object", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("object"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("object", "type")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1WatchEvent.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1WatchEvent is not found in the empty JSON string", V1WatchEvent.openapiRequiredFields.toString())); } } @@ -178,19 +177,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1WatchEvent` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1WatchEvent.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -243,3 +242,4 @@ 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 642214c299..041f197a06 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * WebhookConversion describes how to call a conversion webhook */ @ApiModel(description = "WebhookConversion describes how to call a conversion webhook") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1WebhookConversion { public static final String SERIALIZED_NAME_CLIENT_CONFIG = "clientConfig"; @SerializedName(SERIALIZED_NAME_CLIENT_CONFIG) @@ -162,13 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("clientConfig"); - openapiFields.add("conversionReviewVersions"); + openapiFields = new HashSet(Arrays.asList("clientConfig", "conversionReviewVersions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("conversionReviewVersions"); + openapiRequiredFields = new HashSet(Arrays.asList("conversionReviewVersions")); } /** @@ -180,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1WebhookConversion.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1WebhookConversion is not found in the empty JSON string", V1WebhookConversion.openapiRequiredFields.toString())); } } @@ -188,14 +188,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1WebhookConversion` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1WebhookConversion.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -207,7 +207,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `conversionReviewVersions` to be an array in the JSON string but got `%s`", jsonObj.get("conversionReviewVersions").toString())); } } @@ -260,3 +260,4 @@ 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 2cf352c8c2..8502d6e0db 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) */ @ApiModel(description = "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1WeightedPodAffinityTerm { public static final String SERIALIZED_NAME_POD_AFFINITY_TERM = "podAffinityTerm"; @SerializedName(SERIALIZED_NAME_POD_AFFINITY_TERM) @@ -152,14 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("podAffinityTerm"); - openapiFields.add("weight"); + openapiFields = new HashSet(Arrays.asList("podAffinityTerm", "weight")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("podAffinityTerm"); - openapiRequiredFields.add("weight"); + openapiRequiredFields = new HashSet(Arrays.asList("podAffinityTerm", "weight")); } /** @@ -171,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1WeightedPodAffinityTerm.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1WeightedPodAffinityTerm is not found in the empty JSON string", V1WeightedPodAffinityTerm.openapiRequiredFields.toString())); } } @@ -179,14 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1WeightedPodAffinityTerm` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1WeightedPodAffinityTerm.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -243,3 +242,4 @@ 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 da7dba3351..876f21e5f7 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * WindowsSecurityContextOptions contain Windows-specific options and credentials. */ @ApiModel(description = "WindowsSecurityContextOptions contain Windows-specific options and credentials.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1WindowsSecurityContextOptions { public static final String SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC = "gmsaCredentialSpec"; @SerializedName(SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC) @@ -205,14 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("gmsaCredentialSpec", "gmsaCredentialSpecName", "hostProcess", "runAsUserName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -224,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1WindowsSecurityContextOptions.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1WindowsSecurityContextOptions is not found in the empty JSON string", V1WindowsSecurityContextOptions.openapiRequiredFields.toString())); } } @@ -232,18 +231,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1WindowsSecurityContextOptions` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `runAsUserName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("runAsUserName").toString())); } } @@ -296,3 +295,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java index e089f7e10f..e175d3fe86 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ApplyConfiguration defines the desired configuration values of an object. */ @ApiModel(description = "ApplyConfiguration defines the desired configuration values of an object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1ApplyConfiguration { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -124,11 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("expression"); + openapiFields = new HashSet(Arrays.asList("expression")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -140,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1ApplyConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1ApplyConfiguration is not found in the empty JSON string", V1alpha1ApplyConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1ApplyConfiguration is not found in the empty JSON string", V1alpha1ApplyConfiguration.openapiRequiredFields.toString())); } } @@ -148,12 +150,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1ApplyConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1ApplyConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1ApplyConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("expression") != null && !jsonObj.get("expression").isJsonNull()) && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); } } @@ -206,3 +208,4 @@ 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 0d18cc5925..971173c40e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1ClusterTrustBundle implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,15 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -227,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1ClusterTrustBundle.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1ClusterTrustBundle is not found in the empty JSON string", V1alpha1ClusterTrustBundle.openapiRequiredFields.toString())); } } @@ -235,22 +233,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1ClusterTrustBundle` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1ClusterTrustBundle.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -309,3 +307,4 @@ 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 df40e393e2..1de2a7a227 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ClusterTrustBundleList is a collection of ClusterTrustBundle objects */ @ApiModel(description = "ClusterTrustBundleList is a collection of ClusterTrustBundle objects") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1ClusterTrustBundleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1ClusterTrustBundleList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1ClusterTrustBundleList is not found in the empty JSON string", V1alpha1ClusterTrustBundleList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1ClusterTrustBundleList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1ClusterTrustBundleList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1alpha1ClusterTrustBundle.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 20780bb816..3654b2c079 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ClusterTrustBundleSpec contains the signer and trust anchors. */ @ApiModel(description = "ClusterTrustBundleSpec contains the signer and trust anchors.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1ClusterTrustBundleSpec { public static final String SERIALIZED_NAME_SIGNER_NAME = "signerName"; @SerializedName(SERIALIZED_NAME_SIGNER_NAME) @@ -151,13 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("signerName"); - openapiFields.add("trustBundle"); + openapiFields = new HashSet(Arrays.asList("signerName", "trustBundle")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("trustBundle"); + openapiRequiredFields = new HashSet(Arrays.asList("trustBundle")); } /** @@ -169,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1ClusterTrustBundleSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1ClusterTrustBundleSpec is not found in the empty JSON string", V1alpha1ClusterTrustBundleSpec.openapiRequiredFields.toString())); } } @@ -177,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1ClusterTrustBundleSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1ClusterTrustBundleSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `trustBundle` to be a primitive type in the JSON string but got `%s`", jsonObj.get("trustBundle").toString())); } } @@ -245,3 +245,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java index d47795a6c6..677aaf39d1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * The names of the group, the version, and the resource. */ @ApiModel(description = "The names of the group, the version, and the resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1GroupVersionResource { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -178,13 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("group"); - openapiFields.add("resource"); - openapiFields.add("version"); + openapiFields = new HashSet(Arrays.asList("group", "resource", "version")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -196,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1GroupVersionResource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1GroupVersionResource is not found in the empty JSON string", V1alpha1GroupVersionResource.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1GroupVersionResource is not found in the empty JSON string", V1alpha1GroupVersionResource.openapiRequiredFields.toString())); } } @@ -204,18 +204,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1GroupVersionResource.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1GroupVersionResource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1GroupVersionResource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } } @@ -268,3 +268,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java index df9bc67d0a..0de220d329 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * JSONPatch defines a JSON Patch. */ @ApiModel(description = "JSONPatch defines a JSON Patch.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1JSONPatch { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -124,11 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("expression"); + openapiFields = new HashSet(Arrays.asList("expression")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -140,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1JSONPatch.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1JSONPatch is not found in the empty JSON string", V1alpha1JSONPatch.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1JSONPatch is not found in the empty JSON string", V1alpha1JSONPatch.openapiRequiredFields.toString())); } } @@ -148,12 +150,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1JSONPatch.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1JSONPatch` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1JSONPatch` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("expression") != null && !jsonObj.get("expression").isJsonNull()) && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); } } @@ -206,3 +208,4 @@ 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 601ccb4a36..97526deff3 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,13 +45,14 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; /** * V1alpha1MatchCondition */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1MatchCondition { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -150,14 +153,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("expression"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("expression", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("expression"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("expression", "name")); } /** @@ -169,7 +168,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1MatchCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1MatchCondition is not found in the empty JSON string", V1alpha1MatchCondition.openapiRequiredFields.toString())); } } @@ -177,22 +176,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1MatchCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1MatchCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -245,3 +244,4 @@ 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 8a4b25768d..d18aed2473 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * 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) */ @ApiModel(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)") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) @@ -252,15 +255,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("excludeResourceRules", "matchPolicy", "namespaceSelector", "objectSelector", "resourceRules")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -272,7 +270,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1MatchResources.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1MatchResources is not found in the empty JSON string", V1alpha1MatchResources.openapiRequiredFields.toString())); } } @@ -280,7 +278,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1MatchResources` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -289,7 +287,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -299,7 +297,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -314,7 +312,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -374,3 +372,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java index ef7ae17d52..1908544a3e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * Describes the state of a migration at a certain point. */ @ApiModel(description = "Describes the state of a migration at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1MigrationCondition { public static final String SERIALIZED_NAME_LAST_UPDATE_TIME = "lastUpdateTime"; @SerializedName(SERIALIZED_NAME_LAST_UPDATE_TIME) @@ -233,17 +236,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("lastUpdateTime"); - openapiFields.add("message"); - openapiFields.add("reason"); - openapiFields.add("status"); - openapiFields.add("type"); + openapiFields = new HashSet(Arrays.asList("lastUpdateTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); } /** @@ -255,7 +251,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1MigrationCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1MigrationCondition is not found in the empty JSON string", V1alpha1MigrationCondition.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1MigrationCondition is not found in the empty JSON string", V1alpha1MigrationCondition.openapiRequiredFields.toString())); } } @@ -263,28 +259,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1MigrationCondition.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1MigrationCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1MigrationCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1MigrationCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -337,3 +333,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java index 28a16bcb0f..241400ea58 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain. */ @ApiModel(description = "MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1MutatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,14 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1MutatingAdmissionPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1MutatingAdmissionPolicy is not found in the empty JSON string", V1alpha1MutatingAdmissionPolicy.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1MutatingAdmissionPolicy is not found in the empty JSON string", V1alpha1MutatingAdmissionPolicy.openapiRequiredFields.toString())); } } @@ -234,15 +233,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1MutatingAdmissionPolicy.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1MutatingAdmissionPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1MutatingAdmissionPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -303,3 +302,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java index ecfde8fefa..f694638dd2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource 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. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. */ @ApiModel(description = "MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource 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. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1MutatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,14 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1MutatingAdmissionPolicyBinding.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1MutatingAdmissionPolicyBinding is not found in the empty JSON string", V1alpha1MutatingAdmissionPolicyBinding.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1MutatingAdmissionPolicyBinding is not found in the empty JSON string", V1alpha1MutatingAdmissionPolicyBinding.openapiRequiredFields.toString())); } } @@ -234,15 +233,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1MutatingAdmissionPolicyBinding.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1MutatingAdmissionPolicyBinding` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1MutatingAdmissionPolicyBinding` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -303,3 +302,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java index f8df5371a0..13d9b61931 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. */ @ApiModel(description = "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1MutatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1MutatingAdmissionPolicyBindingList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1MutatingAdmissionPolicyBindingList is not found in the empty JSON string", V1alpha1MutatingAdmissionPolicyBindingList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1MutatingAdmissionPolicyBindingList is not found in the empty JSON string", V1alpha1MutatingAdmissionPolicyBindingList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1MutatingAdmissionPolicyBindingList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1MutatingAdmissionPolicyBindingList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1MutatingAdmissionPolicyBindingList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1MutatingAdmissionPolicyBindingList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1alpha1MutatingAdmissionPolicyBinding.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java index eb5931361c..ccbaf3e00f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding. */ @ApiModel(description = "MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1MutatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) @@ -180,13 +183,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("matchResources"); - openapiFields.add("paramRef"); - openapiFields.add("policyName"); + openapiFields = new HashSet(Arrays.asList("matchResources", "paramRef", "policyName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -198,7 +198,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1MutatingAdmissionPolicyBindingSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1MutatingAdmissionPolicyBindingSpec is not found in the empty JSON string", V1alpha1MutatingAdmissionPolicyBindingSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1MutatingAdmissionPolicyBindingSpec is not found in the empty JSON string", V1alpha1MutatingAdmissionPolicyBindingSpec.openapiRequiredFields.toString())); } } @@ -206,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1MutatingAdmissionPolicyBindingSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1MutatingAdmissionPolicyBindingSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1MutatingAdmissionPolicyBindingSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -219,7 +219,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1alpha1ParamRef.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `policyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("policyName").toString())); } } @@ -272,3 +272,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java index 9c194eac47..35ac45d75d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. */ @ApiModel(description = "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1MutatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1MutatingAdmissionPolicyList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1MutatingAdmissionPolicyList is not found in the empty JSON string", V1alpha1MutatingAdmissionPolicyList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1MutatingAdmissionPolicyList is not found in the empty JSON string", V1alpha1MutatingAdmissionPolicyList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1MutatingAdmissionPolicyList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1MutatingAdmissionPolicyList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1MutatingAdmissionPolicyList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1MutatingAdmissionPolicyList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1alpha1MutatingAdmissionPolicy.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java index ea3d1d0d90..5fe928a004 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -50,6 +52,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -57,7 +60,7 @@ * MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy. */ @ApiModel(description = "MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1MutatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) @@ -317,17 +320,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("failurePolicy"); - openapiFields.add("matchConditions"); - openapiFields.add("matchConstraints"); - openapiFields.add("mutations"); - openapiFields.add("paramKind"); - openapiFields.add("reinvocationPolicy"); - openapiFields.add("variables"); + openapiFields = new HashSet(Arrays.asList("failurePolicy", "matchConditions", "matchConstraints", "mutations", "paramKind", "reinvocationPolicy", "variables")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -339,7 +335,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1MutatingAdmissionPolicySpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1MutatingAdmissionPolicySpec is not found in the empty JSON string", V1alpha1MutatingAdmissionPolicySpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1MutatingAdmissionPolicySpec is not found in the empty JSON string", V1alpha1MutatingAdmissionPolicySpec.openapiRequiredFields.toString())); } } @@ -347,19 +343,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1MutatingAdmissionPolicySpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1MutatingAdmissionPolicySpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1MutatingAdmissionPolicySpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -377,7 +373,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraymutations != null) { // ensure the json data is an array if (!jsonObj.get("mutations").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `mutations` to be an array in the JSON string but got `%s`", jsonObj.get("mutations").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `mutations` to be an array in the JSON string but got `%s`", jsonObj.get("mutations").toString())); } // validate the optional field `mutations` (array) @@ -391,14 +387,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1alpha1ParamKind.validateJsonElement(jsonObj.get("paramKind")); } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reinvocationPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reinvocationPolicy").toString())); } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -458,3 +454,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java index 2e10ad45f6..859e867e48 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * Mutation specifies the CEL expression which is used to apply the Mutation. */ @ApiModel(description = "Mutation specifies the CEL expression which is used to apply the Mutation.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1Mutation { public static final String SERIALIZED_NAME_APPLY_CONFIGURATION = "applyConfiguration"; @SerializedName(SERIALIZED_NAME_APPLY_CONFIGURATION) @@ -180,14 +183,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("applyConfiguration"); - openapiFields.add("jsonPatch"); - openapiFields.add("patchType"); + openapiFields = new HashSet(Arrays.asList("applyConfiguration", "jsonPatch", "patchType")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("patchType"); + openapiRequiredFields = new HashSet(Arrays.asList("patchType")); } /** @@ -199,7 +198,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1Mutation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1Mutation is not found in the empty JSON string", V1alpha1Mutation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1Mutation is not found in the empty JSON string", V1alpha1Mutation.openapiRequiredFields.toString())); } } @@ -207,14 +206,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1Mutation.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1Mutation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1Mutation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1Mutation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -227,7 +226,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1alpha1JSONPatch.validateJsonElement(jsonObj.get("jsonPatch")); } if (!jsonObj.get("patchType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `patchType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `patchType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchType").toString())); } } @@ -280,3 +279,4 @@ 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 14c5b73d3a..adf1fb286a 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. */ @ApiModel(description = "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1NamedRuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -301,16 +304,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiGroups", "apiVersions", "operations", "resourceNames", "resources", "scope")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -322,7 +319,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1NamedRuleWithOperations.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1NamedRuleWithOperations is not found in the empty JSON string", V1alpha1NamedRuleWithOperations.openapiRequiredFields.toString())); } } @@ -330,32 +327,32 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1NamedRuleWithOperations` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("apiGroups") != null && !jsonObj.get("apiGroups").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scope").toString())); } } @@ -408,3 +405,4 @@ 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 06974e885d..79d15e3166 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ParamKind is a tuple of Group Kind and Version. */ @ApiModel(description = "ParamKind is a tuple of Group Kind and Version.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1ParamKind { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("apiVersion"); - openapiFields.add("kind"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1ParamKind.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1ParamKind is not found in the empty JSON string", V1alpha1ParamKind.openapiRequiredFields.toString())); } } @@ -176,15 +177,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1ParamKind` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); } } @@ -237,3 +238,4 @@ 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 6724bb895c..649782d1d0 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. */ @ApiModel(description = "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1ParamRef { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -206,14 +209,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("name", "namespace", "parameterNotFoundAction", "selector")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -225,7 +224,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1ParamRef.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1ParamRef is not found in the empty JSON string", V1alpha1ParamRef.openapiRequiredFields.toString())); } } @@ -233,18 +232,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1ParamRef` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -301,3 +300,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequest.java index 7011e4895e..f1dbc8991f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequest.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * PodCertificateRequest encodes a pod requesting a certificate from a given signer. Kubelets use this API to implement podCertificate projected volumes */ @ApiModel(description = "PodCertificateRequest encodes a pod requesting a certificate from a given signer. Kubelets use this API to implement podCertificate projected volumes") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1PodCertificateRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,16 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -256,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1PodCertificateRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1PodCertificateRequest is not found in the empty JSON string", V1alpha1PodCertificateRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1PodCertificateRequest is not found in the empty JSON string", V1alpha1PodCertificateRequest.openapiRequiredFields.toString())); } } @@ -264,22 +261,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1PodCertificateRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1PodCertificateRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1PodCertificateRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1PodCertificateRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -342,3 +339,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestList.java index d66cad835f..379d68f41e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * PodCertificateRequestList is a collection of PodCertificateRequest objects */ @ApiModel(description = "PodCertificateRequestList is a collection of PodCertificateRequest objects") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1PodCertificateRequestList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1PodCertificateRequestList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1PodCertificateRequestList is not found in the empty JSON string", V1alpha1PodCertificateRequestList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1PodCertificateRequestList is not found in the empty JSON string", V1alpha1PodCertificateRequestList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1PodCertificateRequestList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1PodCertificateRequestList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1PodCertificateRequestList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1PodCertificateRequestList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1alpha1PodCertificateRequest.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpec.java index 9ec3e88558..88c1c86c3f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation. */ @ApiModel(description = "PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1PodCertificateRequestSpec { public static final String SERIALIZED_NAME_MAX_EXPIRATION_SECONDS = "maxExpirationSeconds"; @SerializedName(SERIALIZED_NAME_MAX_EXPIRATION_SECONDS) @@ -367,29 +370,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("maxExpirationSeconds"); - openapiFields.add("nodeName"); - openapiFields.add("nodeUID"); - openapiFields.add("pkixPublicKey"); - openapiFields.add("podName"); - openapiFields.add("podUID"); - openapiFields.add("proofOfPossession"); - openapiFields.add("serviceAccountName"); - openapiFields.add("serviceAccountUID"); - openapiFields.add("signerName"); + openapiFields = new HashSet(Arrays.asList("maxExpirationSeconds", "nodeName", "nodeUID", "pkixPublicKey", "podName", "podUID", "proofOfPossession", "serviceAccountName", "serviceAccountUID", "signerName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("nodeName"); - openapiRequiredFields.add("nodeUID"); - openapiRequiredFields.add("pkixPublicKey"); - openapiRequiredFields.add("podName"); - openapiRequiredFields.add("podUID"); - openapiRequiredFields.add("proofOfPossession"); - openapiRequiredFields.add("serviceAccountName"); - openapiRequiredFields.add("serviceAccountUID"); - openapiRequiredFields.add("signerName"); + openapiRequiredFields = new HashSet(Arrays.asList("nodeName", "nodeUID", "pkixPublicKey", "podName", "podUID", "proofOfPossession", "serviceAccountName", "serviceAccountUID", "signerName")); } /** @@ -401,7 +385,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1PodCertificateRequestSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1PodCertificateRequestSpec is not found in the empty JSON string", V1alpha1PodCertificateRequestSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1PodCertificateRequestSpec is not found in the empty JSON string", V1alpha1PodCertificateRequestSpec.openapiRequiredFields.toString())); } } @@ -409,37 +393,37 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1PodCertificateRequestSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1PodCertificateRequestSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1PodCertificateRequestSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1PodCertificateRequestSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); } if (!jsonObj.get("nodeUID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `nodeUID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeUID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nodeUID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeUID").toString())); } if (!jsonObj.get("podName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `podName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("podName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `podName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("podName").toString())); } if (!jsonObj.get("podUID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `podUID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("podUID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `podUID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("podUID").toString())); } if (!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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `serviceAccountName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("serviceAccountName").toString())); } if (!jsonObj.get("serviceAccountUID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `serviceAccountUID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("serviceAccountUID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `serviceAccountUID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("serviceAccountUID").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `signerName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("signerName").toString())); } } @@ -492,3 +476,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatus.java index 36281d8cd8..187047f9be 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued. */ @ApiModel(description = "PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1PodCertificateRequestStatus { public static final String SERIALIZED_NAME_BEGIN_REFRESH_AT = "beginRefreshAt"; @SerializedName(SERIALIZED_NAME_BEGIN_REFRESH_AT) @@ -244,15 +247,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("beginRefreshAt"); - openapiFields.add("certificateChain"); - openapiFields.add("conditions"); - openapiFields.add("notAfter"); - openapiFields.add("notBefore"); + openapiFields = new HashSet(Arrays.asList("beginRefreshAt", "certificateChain", "conditions", "notAfter", "notBefore")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -264,7 +262,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1PodCertificateRequestStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1PodCertificateRequestStatus is not found in the empty JSON string", V1alpha1PodCertificateRequestStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1PodCertificateRequestStatus is not found in the empty JSON string", V1alpha1PodCertificateRequestStatus.openapiRequiredFields.toString())); } } @@ -272,19 +270,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1PodCertificateRequestStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1PodCertificateRequestStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1PodCertificateRequestStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("certificateChain") != null && !jsonObj.get("certificateChain").isJsonNull()) && !jsonObj.get("certificateChain").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `certificateChain` to be a primitive type in the JSON string but got `%s`", jsonObj.get("certificateChain").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `certificateChain` to be a primitive type in the JSON string but got `%s`", jsonObj.get("certificateChain").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -344,3 +342,4 @@ 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 b8e9c0be83..ebed432d48 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend. */ @ApiModel(description = "An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1ServerStorageVersion { public static final String SERIALIZED_NAME_API_SERVER_I_D = "apiServerID"; @SerializedName(SERIALIZED_NAME_API_SERVER_I_D) @@ -223,14 +226,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiServerID", "decodableVersions", "encodingVersion", "servedVersions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -242,7 +241,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1ServerStorageVersion.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1ServerStorageVersion is not found in the empty JSON string", V1alpha1ServerStorageVersion.openapiRequiredFields.toString())); } } @@ -250,23 +249,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1ServerStorageVersion` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `servedVersions` to be an array in the JSON string but got `%s`", jsonObj.get("servedVersions").toString())); } } @@ -319,3 +318,4 @@ 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 593796ff2f..3a9fe99446 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * Storage version of a specific resource. */ @ApiModel(description = "Storage version of a specific resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1StorageVersion implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -234,17 +237,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); - openapiRequiredFields.add("status"); + openapiRequiredFields = new HashSet(Arrays.asList("spec", "status")); } /** @@ -256,7 +252,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1StorageVersion.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1StorageVersion is not found in the empty JSON string", V1alpha1StorageVersion.openapiRequiredFields.toString())); } } @@ -264,22 +260,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1StorageVersion` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1StorageVersion.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -338,3 +334,4 @@ 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 ed01e3af39..f7cf9975db 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * Describes the state of the storageVersion at a certain point. */ @ApiModel(description = "Describes the state of the storageVersion at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1StorageVersionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -260,20 +263,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "observedGeneration", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("message"); - openapiRequiredFields.add("reason"); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("message", "reason", "status", "type")); } /** @@ -285,7 +278,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1StorageVersionCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1StorageVersionCondition is not found in the empty JSON string", V1alpha1StorageVersionCondition.openapiRequiredFields.toString())); } } @@ -293,28 +286,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1StorageVersionCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1StorageVersionCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -367,3 +360,4 @@ 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 14fb73c866..772022d3da 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * A list of StorageVersions. */ @ApiModel(description = "A list of StorageVersions.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1StorageVersionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1StorageVersionList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1StorageVersionList is not found in the empty JSON string", V1alpha1StorageVersionList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1StorageVersionList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1StorageVersionList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1alpha1StorageVersion.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java index e5dff4c09c..f19cc3c2fa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * StorageVersionMigration represents a migration of stored data to the latest storage version. */ @ApiModel(description = "StorageVersionMigration represents a migration of stored data to the latest storage version.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1StorageVersionMigration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1StorageVersionMigration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1StorageVersionMigration is not found in the empty JSON string", V1alpha1StorageVersionMigration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1StorageVersionMigration is not found in the empty JSON string", V1alpha1StorageVersionMigration.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1StorageVersionMigration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1StorageVersionMigration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1StorageVersionMigration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java index 99d94ee575..b27672f782 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * StorageVersionMigrationList is a collection of storage version migrations. */ @ApiModel(description = "StorageVersionMigrationList is a collection of storage version migrations.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1StorageVersionMigrationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1StorageVersionMigrationList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1StorageVersionMigrationList is not found in the empty JSON string", V1alpha1StorageVersionMigrationList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1StorageVersionMigrationList is not found in the empty JSON string", V1alpha1StorageVersionMigrationList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1StorageVersionMigrationList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1StorageVersionMigrationList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1StorageVersionMigrationList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1StorageVersionMigrationList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1alpha1StorageVersionMigration.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java index 87d417a727..74b153454a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * Spec of the storage version migration. */ @ApiModel(description = "Spec of the storage version migration.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1StorageVersionMigrationSpec { public static final String SERIALIZED_NAME_CONTINUE_TOKEN = "continueToken"; @SerializedName(SERIALIZED_NAME_CONTINUE_TOKEN) @@ -152,13 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("continueToken"); - openapiFields.add("resource"); + openapiFields = new HashSet(Arrays.asList("continueToken", "resource")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("resource"); + openapiRequiredFields = new HashSet(Arrays.asList("resource")); } /** @@ -170,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1StorageVersionMigrationSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1StorageVersionMigrationSpec is not found in the empty JSON string", V1alpha1StorageVersionMigrationSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1StorageVersionMigrationSpec is not found in the empty JSON string", V1alpha1StorageVersionMigrationSpec.openapiRequiredFields.toString())); } } @@ -178,19 +178,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1StorageVersionMigrationSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1StorageVersionMigrationSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1StorageVersionMigrationSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1StorageVersionMigrationSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("continueToken") != null && !jsonObj.get("continueToken").isJsonNull()) && !jsonObj.get("continueToken").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `continueToken` to be a primitive type in the JSON string but got `%s`", jsonObj.get("continueToken").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `continueToken` to be a primitive type in the JSON string but got `%s`", jsonObj.get("continueToken").toString())); } // validate the required field `resource` V1alpha1GroupVersionResource.validateJsonElement(jsonObj.get("resource")); @@ -245,3 +245,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java index 595648085d..d52d2eae83 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * Status of the storage version migration. */ @ApiModel(description = "Status of the storage version migration.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1StorageVersionMigrationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -162,12 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("conditions"); - openapiFields.add("resourceVersion"); + openapiFields = new HashSet(Arrays.asList("conditions", "resourceVersion")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -179,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1StorageVersionMigrationStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1StorageVersionMigrationStatus is not found in the empty JSON string", V1alpha1StorageVersionMigrationStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1StorageVersionMigrationStatus is not found in the empty JSON string", V1alpha1StorageVersionMigrationStatus.openapiRequiredFields.toString())); } } @@ -187,7 +188,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1StorageVersionMigrationStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1StorageVersionMigrationStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1StorageVersionMigrationStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -196,7 +197,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -206,7 +207,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resourceVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceVersion").toString())); } } @@ -259,3 +260,4 @@ 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 b049d50ed0..0e79a45288 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend. */ @ApiModel(description = "API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1StorageVersionStatus { public static final String SERIALIZED_NAME_COMMON_ENCODING_VERSION = "commonEncodingVersion"; @SerializedName(SERIALIZED_NAME_COMMON_ENCODING_VERSION) @@ -198,13 +201,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("commonEncodingVersion"); - openapiFields.add("conditions"); - openapiFields.add("storageVersions"); + openapiFields = new HashSet(Arrays.asList("commonEncodingVersion", "conditions", "storageVersions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -216,7 +216,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1StorageVersionStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1StorageVersionStatus is not found in the empty JSON string", V1alpha1StorageVersionStatus.openapiRequiredFields.toString())); } } @@ -224,19 +224,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1StorageVersionStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -250,7 +250,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -310,3 +310,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java index f0ba117c04..340e419798 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Variable is the definition of a variable that is used for composition. */ @ApiModel(description = "Variable is the definition of a variable that is used for composition.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1Variable { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("expression"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("expression", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("expression"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("expression", "name")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1Variable.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1Variable is not found in the empty JSON string", V1alpha1Variable.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1Variable is not found in the empty JSON string", V1alpha1Variable.openapiRequiredFields.toString())); } } @@ -178,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1Variable.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1Variable` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1Variable` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1Variable.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -246,3 +245,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java index 7f6946907b..91fd02fa71 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning. */ @ApiModel(description = "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1VolumeAttributesClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -243,16 +246,10 @@ private String toIndentedString(Object o) { 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("parameters"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "driverName", "kind", "metadata", "parameters")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("driverName"); + openapiRequiredFields = new HashSet(Arrays.asList("driverName")); } /** @@ -264,7 +261,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1VolumeAttributesClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1VolumeAttributesClass is not found in the empty JSON string", V1alpha1VolumeAttributesClass.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1VolumeAttributesClass is not found in the empty JSON string", V1alpha1VolumeAttributesClass.openapiRequiredFields.toString())); } } @@ -272,25 +269,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1VolumeAttributesClass.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1VolumeAttributesClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1VolumeAttributesClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1VolumeAttributesClass.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -347,3 +344,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java index 6a96a610d2..bd0358e9c2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * VolumeAttributesClassList is a collection of VolumeAttributesClass objects. */ @ApiModel(description = "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha1VolumeAttributesClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha1VolumeAttributesClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha1VolumeAttributesClassList is not found in the empty JSON string", V1alpha1VolumeAttributesClassList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha1VolumeAttributesClassList is not found in the empty JSON string", V1alpha1VolumeAttributesClassList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha1VolumeAttributesClassList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha1VolumeAttributesClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1VolumeAttributesClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha1VolumeAttributesClassList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1alpha1VolumeAttributesClass.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java index 8811e69dfc..cb60596fae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates. */ @ApiModel(description = "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha2LeaseCandidate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,14 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha2LeaseCandidate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2LeaseCandidate is not found in the empty JSON string", V1alpha2LeaseCandidate.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha2LeaseCandidate is not found in the empty JSON string", V1alpha2LeaseCandidate.openapiRequiredFields.toString())); } } @@ -234,15 +233,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha2LeaseCandidate.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2LeaseCandidate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2LeaseCandidate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -303,3 +302,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java index 93977cf17e..37e45657ec 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * LeaseCandidateList is a list of Lease objects. */ @ApiModel(description = "LeaseCandidateList is a list of Lease objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha2LeaseCandidateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha2LeaseCandidateList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2LeaseCandidateList is not found in the empty JSON string", V1alpha2LeaseCandidateList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha2LeaseCandidateList is not found in the empty JSON string", V1alpha2LeaseCandidateList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha2LeaseCandidateList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2LeaseCandidateList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2LeaseCandidateList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha2LeaseCandidateList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1alpha2LeaseCandidate.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java index 01cdec6af6..5c37c7cf3a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * LeaseCandidateSpec is a specification of a Lease. */ @ApiModel(description = "LeaseCandidateSpec is a specification of a Lease.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha2LeaseCandidateSpec { public static final String SERIALIZED_NAME_BINARY_VERSION = "binaryVersion"; @SerializedName(SERIALIZED_NAME_BINARY_VERSION) @@ -260,19 +263,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("binaryVersion"); - openapiFields.add("emulationVersion"); - openapiFields.add("leaseName"); - openapiFields.add("pingTime"); - openapiFields.add("renewTime"); - openapiFields.add("strategy"); + openapiFields = new HashSet(Arrays.asList("binaryVersion", "emulationVersion", "leaseName", "pingTime", "renewTime", "strategy")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("binaryVersion"); - openapiRequiredFields.add("leaseName"); - openapiRequiredFields.add("strategy"); + openapiRequiredFields = new HashSet(Arrays.asList("binaryVersion", "leaseName", "strategy")); } /** @@ -284,7 +278,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha2LeaseCandidateSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha2LeaseCandidateSpec is not found in the empty JSON string", V1alpha2LeaseCandidateSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha2LeaseCandidateSpec is not found in the empty JSON string", V1alpha2LeaseCandidateSpec.openapiRequiredFields.toString())); } } @@ -292,28 +286,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha2LeaseCandidateSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha2LeaseCandidateSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2LeaseCandidateSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha2LeaseCandidateSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("binaryVersion").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `binaryVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("binaryVersion").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `binaryVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("binaryVersion").toString())); } if ((jsonObj.get("emulationVersion") != null && !jsonObj.get("emulationVersion").isJsonNull()) && !jsonObj.get("emulationVersion").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `emulationVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("emulationVersion").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `emulationVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("emulationVersion").toString())); } if (!jsonObj.get("leaseName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `leaseName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("leaseName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `leaseName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("leaseName").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `strategy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("strategy").toString())); } } @@ -366,3 +360,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java index 7f9feaf22c..4238b30bde 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * CELDeviceSelector contains a CEL expression for selecting a device. */ @ApiModel(description = "CELDeviceSelector contains a CEL expression for selecting a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha3CELDeviceSelector { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -124,12 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("expression"); + openapiFields = new HashSet(Arrays.asList("expression")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("expression"); + openapiRequiredFields = new HashSet(Arrays.asList("expression")); } /** @@ -141,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3CELDeviceSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3CELDeviceSelector is not found in the empty JSON string", V1alpha3CELDeviceSelector.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha3CELDeviceSelector is not found in the empty JSON string", V1alpha3CELDeviceSelector.openapiRequiredFields.toString())); } } @@ -149,19 +150,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha3CELDeviceSelector.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3CELDeviceSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3CELDeviceSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha3CELDeviceSelector.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); } } @@ -214,3 +215,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java index f2ba810979..34462600dc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * DeviceSelector must have exactly one field set. */ @ApiModel(description = "DeviceSelector must have exactly one field set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha3DeviceSelector { public static final String SERIALIZED_NAME_CEL = "cel"; @SerializedName(SERIALIZED_NAME_CEL) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("cel"); + openapiFields = new HashSet(Arrays.asList("cel")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceSelector is not found in the empty JSON string", V1alpha3DeviceSelector.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha3DeviceSelector is not found in the empty JSON string", V1alpha3DeviceSelector.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha3DeviceSelector.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3DeviceSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java index 85e8c45dd8..b8b5b5041e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. */ @ApiModel(description = "The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha3DeviceTaint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) @@ -206,16 +209,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("effect", "key", "timeAdded", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("effect"); - openapiRequiredFields.add("key"); + openapiRequiredFields = new HashSet(Arrays.asList("effect", "key")); } /** @@ -227,7 +224,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceTaint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceTaint is not found in the empty JSON string", V1alpha3DeviceTaint.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha3DeviceTaint is not found in the empty JSON string", V1alpha3DeviceTaint.openapiRequiredFields.toString())); } } @@ -235,25 +232,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha3DeviceTaint.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceTaint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3DeviceTaint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha3DeviceTaint.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -306,3 +303,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java index 66587e7c18..1eb8b9da59 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * DeviceTaintRule adds one taint to all devices which match the selector. This has the same effect as if the taint was specified directly in the ResourceSlice by the DRA driver. */ @ApiModel(description = "DeviceTaintRule adds one taint to all devices which match the selector. This has the same effect as if the taint was specified directly in the ResourceSlice by the DRA driver.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha3DeviceTaintRule implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,15 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -227,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceTaintRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceTaintRule is not found in the empty JSON string", V1alpha3DeviceTaintRule.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha3DeviceTaintRule is not found in the empty JSON string", V1alpha3DeviceTaintRule.openapiRequiredFields.toString())); } } @@ -235,22 +233,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha3DeviceTaintRule.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceTaintRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3DeviceTaintRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha3DeviceTaintRule.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -309,3 +307,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java index e5382e9522..8a3bdae51a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * DeviceTaintRuleList is a collection of DeviceTaintRules. */ @ApiModel(description = "DeviceTaintRuleList is a collection of DeviceTaintRules.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha3DeviceTaintRuleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceTaintRuleList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceTaintRuleList is not found in the empty JSON string", V1alpha3DeviceTaintRuleList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha3DeviceTaintRuleList is not found in the empty JSON string", V1alpha3DeviceTaintRuleList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha3DeviceTaintRuleList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceTaintRuleList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3DeviceTaintRuleList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha3DeviceTaintRuleList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1alpha3DeviceTaintRule.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java index 4be0d58c30..bfb590f094 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * DeviceTaintRuleSpec specifies the selector and one taint. */ @ApiModel(description = "DeviceTaintRuleSpec specifies the selector and one taint.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha3DeviceTaintRuleSpec { public static final String SERIALIZED_NAME_DEVICE_SELECTOR = "deviceSelector"; @SerializedName(SERIALIZED_NAME_DEVICE_SELECTOR) @@ -153,13 +156,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("deviceSelector"); - openapiFields.add("taint"); + openapiFields = new HashSet(Arrays.asList("deviceSelector", "taint")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("taint"); + openapiRequiredFields = new HashSet(Arrays.asList("taint")); } /** @@ -171,7 +171,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceTaintRuleSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceTaintRuleSpec is not found in the empty JSON string", V1alpha3DeviceTaintRuleSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha3DeviceTaintRuleSpec is not found in the empty JSON string", V1alpha3DeviceTaintRuleSpec.openapiRequiredFields.toString())); } } @@ -179,14 +179,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha3DeviceTaintRuleSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceTaintRuleSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3DeviceTaintRuleSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1alpha3DeviceTaintRuleSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -247,3 +247,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java index d0e4a192de..28e29c33c8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched. */ @ApiModel(description = "DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1alpha3DeviceTaintSelector { public static final String SERIALIZED_NAME_DEVICE = "device"; @SerializedName(SERIALIZED_NAME_DEVICE) @@ -243,15 +246,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("device"); - openapiFields.add("deviceClassName"); - openapiFields.add("driver"); - openapiFields.add("pool"); - openapiFields.add("selectors"); + openapiFields = new HashSet(Arrays.asList("device", "deviceClassName", "driver", "pool", "selectors")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -263,7 +261,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1alpha3DeviceTaintSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1alpha3DeviceTaintSelector is not found in the empty JSON string", V1alpha3DeviceTaintSelector.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1alpha3DeviceTaintSelector is not found in the empty JSON string", V1alpha3DeviceTaintSelector.openapiRequiredFields.toString())); } } @@ -271,28 +269,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1alpha3DeviceTaintSelector.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1alpha3DeviceTaintSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3DeviceTaintSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("device") != null && !jsonObj.get("device").isJsonNull()) && !jsonObj.get("device").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").toString())); } if ((jsonObj.get("deviceClassName") != null && !jsonObj.get("deviceClassName").isJsonNull()) && !jsonObj.get("deviceClassName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); } if ((jsonObj.get("driver") != null && !jsonObj.get("driver").isJsonNull()) && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `pool` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pool").toString())); } if (jsonObj.get("selectors") != null && !jsonObj.get("selectors").isJsonNull()) { JsonArray jsonArrayselectors = jsonObj.getAsJsonArray("selectors"); if (jsonArrayselectors != null) { // ensure the json data is an array if (!jsonObj.get("selectors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); } // validate the optional field `selectors` (array) @@ -352,3 +350,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java index 2617a17410..ab1ac4cc70 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. */ @ApiModel(description = "AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1AllocatedDeviceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -298,20 +301,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("conditions"); - openapiFields.add("data"); - openapiFields.add("device"); - openapiFields.add("driver"); - openapiFields.add("networkData"); - openapiFields.add("pool"); - openapiFields.add("shareID"); + openapiFields = new HashSet(Arrays.asList("conditions", "data", "device", "driver", "networkData", "pool", "shareID")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("device"); - openapiRequiredFields.add("driver"); - openapiRequiredFields.add("pool"); + openapiRequiredFields = new HashSet(Arrays.asList("device", "driver", "pool")); } /** @@ -323,7 +316,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1AllocatedDeviceStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1AllocatedDeviceStatus is not found in the empty JSON string", V1beta1AllocatedDeviceStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1AllocatedDeviceStatus is not found in the empty JSON string", V1beta1AllocatedDeviceStatus.openapiRequiredFields.toString())); } } @@ -331,14 +324,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1AllocatedDeviceStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1AllocatedDeviceStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1AllocatedDeviceStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1AllocatedDeviceStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -347,7 +340,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -357,20 +350,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } if (!jsonObj.get("device").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").toString())); } // validate the optional field `networkData` if (jsonObj.get("networkData") != null && !jsonObj.get("networkData").isJsonNull()) { V1beta1NetworkDeviceData.validateJsonElement(jsonObj.get("networkData")); } if (!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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `pool` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pool").toString())); } if ((jsonObj.get("shareID") != null && !jsonObj.get("shareID").isJsonNull()) && !jsonObj.get("shareID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").toString())); } } @@ -423,3 +416,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java index 0b2df11c00..e732e143a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * AllocationResult contains attributes of an allocated resource. */ @ApiModel(description = "AllocationResult contains attributes of an allocated resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1AllocationResult { public static final String SERIALIZED_NAME_ALLOCATION_TIMESTAMP = "allocationTimestamp"; @SerializedName(SERIALIZED_NAME_ALLOCATION_TIMESTAMP) @@ -181,13 +184,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allocationTimestamp"); - openapiFields.add("devices"); - openapiFields.add("nodeSelector"); + openapiFields = new HashSet(Arrays.asList("allocationTimestamp", "devices", "nodeSelector")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -199,7 +199,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1AllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1AllocationResult is not found in the empty JSON string", V1beta1AllocationResult.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1AllocationResult is not found in the empty JSON string", V1beta1AllocationResult.openapiRequiredFields.toString())); } } @@ -207,7 +207,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1AllocationResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1AllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1AllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -270,3 +270,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java index 4c31d45d9e..076d0cb6af 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ApplyConfiguration defines the desired configuration values of an object. */ @ApiModel(description = "ApplyConfiguration defines the desired configuration values of an object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ApplyConfiguration { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -124,11 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("expression"); + openapiFields = new HashSet(Arrays.asList("expression")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -140,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ApplyConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ApplyConfiguration is not found in the empty JSON string", V1beta1ApplyConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ApplyConfiguration is not found in the empty JSON string", V1beta1ApplyConfiguration.openapiRequiredFields.toString())); } } @@ -148,12 +150,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ApplyConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ApplyConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ApplyConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("expression") != null && !jsonObj.get("expression").isJsonNull()) && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); } } @@ -206,3 +208,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java index dd76da741d..847173c7e1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -52,6 +54,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -59,7 +62,7 @@ * BasicDevice defines one device instance. */ @ApiModel(description = "BasicDevice defines one device instance.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1BasicDevice { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @@ -451,21 +454,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allNodes"); - openapiFields.add("allowMultipleAllocations"); - openapiFields.add("attributes"); - openapiFields.add("bindingConditions"); - openapiFields.add("bindingFailureConditions"); - openapiFields.add("bindsToNode"); - openapiFields.add("capacity"); - openapiFields.add("consumesCounters"); - openapiFields.add("nodeName"); - openapiFields.add("nodeSelector"); - openapiFields.add("taints"); + openapiFields = new HashSet(Arrays.asList("allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "nodeName", "nodeSelector", "taints")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -477,7 +469,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1BasicDevice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1BasicDevice is not found in the empty JSON string", V1beta1BasicDevice.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1BasicDevice is not found in the empty JSON string", V1beta1BasicDevice.openapiRequiredFields.toString())); } } @@ -485,24 +477,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1BasicDevice.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1BasicDevice` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1BasicDevice` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("bindingConditions") != null && !jsonObj.get("bindingConditions").isJsonNull() && !jsonObj.get("bindingConditions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `bindingConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingConditions").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `bindingConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingConditions").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("bindingFailureConditions") != null && !jsonObj.get("bindingFailureConditions").isJsonNull() && !jsonObj.get("bindingFailureConditions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `bindingFailureConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingFailureConditions").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `bindingFailureConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingFailureConditions").toString())); } if (jsonObj.get("consumesCounters") != null && !jsonObj.get("consumesCounters").isJsonNull()) { JsonArray jsonArrayconsumesCounters = jsonObj.getAsJsonArray("consumesCounters"); if (jsonArrayconsumesCounters != null) { // ensure the json data is an array if (!jsonObj.get("consumesCounters").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `consumesCounters` to be an array in the JSON string but got `%s`", jsonObj.get("consumesCounters").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `consumesCounters` to be an array in the JSON string but got `%s`", jsonObj.get("consumesCounters").toString())); } // validate the optional field `consumesCounters` (array) @@ -512,7 +504,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); } // validate the optional field `nodeSelector` if (jsonObj.get("nodeSelector") != null && !jsonObj.get("nodeSelector").isJsonNull()) { @@ -523,7 +515,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -583,3 +575,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java index ff7ffcf0c8..4ebb7a0acd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * CELDeviceSelector contains a CEL expression for selecting a device. */ @ApiModel(description = "CELDeviceSelector contains a CEL expression for selecting a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1CELDeviceSelector { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -124,12 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("expression"); + openapiFields = new HashSet(Arrays.asList("expression")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("expression"); + openapiRequiredFields = new HashSet(Arrays.asList("expression")); } /** @@ -141,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1CELDeviceSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1CELDeviceSelector is not found in the empty JSON string", V1beta1CELDeviceSelector.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1CELDeviceSelector is not found in the empty JSON string", V1beta1CELDeviceSelector.openapiRequiredFields.toString())); } } @@ -149,19 +150,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1CELDeviceSelector.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1CELDeviceSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1CELDeviceSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1CELDeviceSelector.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); } } @@ -214,3 +215,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java index 1a3c4d0e8d..1bccff2a66 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. */ @ApiModel(description = "CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1CapacityRequestPolicy { public static final String SERIALIZED_NAME_DEFAULT = "default"; @SerializedName(SERIALIZED_NAME_DEFAULT) @@ -190,13 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("default"); - openapiFields.add("validRange"); - openapiFields.add("validValues"); + openapiFields = new HashSet(Arrays.asList("default", "validRange", "validValues")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -208,7 +208,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1CapacityRequestPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1CapacityRequestPolicy is not found in the empty JSON string", V1beta1CapacityRequestPolicy.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1CapacityRequestPolicy is not found in the empty JSON string", V1beta1CapacityRequestPolicy.openapiRequiredFields.toString())); } } @@ -216,12 +216,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1CapacityRequestPolicy.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1CapacityRequestPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1CapacityRequestPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("default") != null && !jsonObj.get("default").isJsonNull()) && !jsonObj.get("default").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `default` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `default` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default").toString())); } // validate the optional field `validRange` if (jsonObj.get("validRange") != null && !jsonObj.get("validRange").isJsonNull()) { @@ -229,7 +229,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("validValues") != null && !jsonObj.get("validValues").isJsonNull() && !jsonObj.get("validValues").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `validValues` to be an array in the JSON string but got `%s`", jsonObj.get("validValues").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `validValues` to be an array in the JSON string but got `%s`", jsonObj.get("validValues").toString())); } } @@ -282,3 +282,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java index ce2c022afa..1640bbe769 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. */ @ApiModel(description = "CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1CapacityRequestPolicyRange { public static final String SERIALIZED_NAME_MAX = "max"; @SerializedName(SERIALIZED_NAME_MAX) @@ -179,14 +182,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("max"); - openapiFields.add("min"); - openapiFields.add("step"); + openapiFields = new HashSet(Arrays.asList("max", "min", "step")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("min"); + openapiRequiredFields = new HashSet(Arrays.asList("min")); } /** @@ -198,7 +197,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1CapacityRequestPolicyRange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1CapacityRequestPolicyRange is not found in the empty JSON string", V1beta1CapacityRequestPolicyRange.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1CapacityRequestPolicyRange is not found in the empty JSON string", V1beta1CapacityRequestPolicyRange.openapiRequiredFields.toString())); } } @@ -206,25 +205,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1CapacityRequestPolicyRange.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1CapacityRequestPolicyRange` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1CapacityRequestPolicyRange` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1CapacityRequestPolicyRange.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("max") != null && !jsonObj.get("max").isJsonNull()) && !jsonObj.get("max").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `max` to be a primitive type in the JSON string but got `%s`", jsonObj.get("max").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `max` to be a primitive type in the JSON string but got `%s`", jsonObj.get("max").toString())); } if (!jsonObj.get("min").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `min` to be a primitive type in the JSON string but got `%s`", jsonObj.get("min").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `min` to be a primitive type in the JSON string but got `%s`", jsonObj.get("min").toString())); } if ((jsonObj.get("step") != null && !jsonObj.get("step").isJsonNull()) && !jsonObj.get("step").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `step` to be a primitive type in the JSON string but got `%s`", jsonObj.get("step").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `step` to be a primitive type in the JSON string but got `%s`", jsonObj.get("step").toString())); } } @@ -277,3 +276,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java index dc49c950a5..aeeacb639d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * CapacityRequirements defines the capacity requirements for a specific device request. */ @ApiModel(description = "CapacityRequirements defines the capacity requirements for a specific device request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1CapacityRequirements { public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) @@ -135,11 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("requests"); + openapiFields = new HashSet(Arrays.asList("requests")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -151,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1CapacityRequirements.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1CapacityRequirements is not found in the empty JSON string", V1beta1CapacityRequirements.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1CapacityRequirements is not found in the empty JSON string", V1beta1CapacityRequirements.openapiRequiredFields.toString())); } } @@ -159,7 +161,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1CapacityRequirements.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1CapacityRequirements` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1CapacityRequirements` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -214,3 +216,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java index bcb6e4ea70..a52ccc9197 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ClusterTrustBundle implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,15 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -227,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ClusterTrustBundle.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ClusterTrustBundle is not found in the empty JSON string", V1beta1ClusterTrustBundle.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ClusterTrustBundle is not found in the empty JSON string", V1beta1ClusterTrustBundle.openapiRequiredFields.toString())); } } @@ -235,22 +233,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ClusterTrustBundle.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ClusterTrustBundle` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ClusterTrustBundle` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1ClusterTrustBundle.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -309,3 +307,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java index 09fe911013..a663f846e9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ClusterTrustBundleList is a collection of ClusterTrustBundle objects */ @ApiModel(description = "ClusterTrustBundleList is a collection of ClusterTrustBundle objects") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ClusterTrustBundleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ClusterTrustBundleList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ClusterTrustBundleList is not found in the empty JSON string", V1beta1ClusterTrustBundleList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ClusterTrustBundleList is not found in the empty JSON string", V1beta1ClusterTrustBundleList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ClusterTrustBundleList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ClusterTrustBundleList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ClusterTrustBundleList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1ClusterTrustBundleList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta1ClusterTrustBundle.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java index 04aa586aac..814508c4fe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ClusterTrustBundleSpec contains the signer and trust anchors. */ @ApiModel(description = "ClusterTrustBundleSpec contains the signer and trust anchors.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ClusterTrustBundleSpec { public static final String SERIALIZED_NAME_SIGNER_NAME = "signerName"; @SerializedName(SERIALIZED_NAME_SIGNER_NAME) @@ -151,13 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("signerName"); - openapiFields.add("trustBundle"); + openapiFields = new HashSet(Arrays.asList("signerName", "trustBundle")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("trustBundle"); + openapiRequiredFields = new HashSet(Arrays.asList("trustBundle")); } /** @@ -169,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ClusterTrustBundleSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ClusterTrustBundleSpec is not found in the empty JSON string", V1beta1ClusterTrustBundleSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ClusterTrustBundleSpec is not found in the empty JSON string", V1beta1ClusterTrustBundleSpec.openapiRequiredFields.toString())); } } @@ -177,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ClusterTrustBundleSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ClusterTrustBundleSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ClusterTrustBundleSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1ClusterTrustBundleSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `trustBundle` to be a primitive type in the JSON string but got `%s`", jsonObj.get("trustBundle").toString())); } } @@ -245,3 +245,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java index fb60bad28a..50b6b9a00a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * Counter describes a quantity associated with a device. */ @ApiModel(description = "Counter describes a quantity associated with a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1Counter { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -125,12 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("value")); } /** @@ -142,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1Counter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1Counter is not found in the empty JSON string", V1beta1Counter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1Counter is not found in the empty JSON string", V1beta1Counter.openapiRequiredFields.toString())); } } @@ -150,19 +151,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1Counter.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1Counter` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1Counter` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1Counter.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -215,3 +216,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSet.java index 7e30bb51bc..e6759d2d95 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSet.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. */ @ApiModel(description = "CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1CounterSet { public static final String SERIALIZED_NAME_COUNTERS = "counters"; @SerializedName(SERIALIZED_NAME_COUNTERS) @@ -162,14 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("counters"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("counters", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("counters"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("counters", "name")); } /** @@ -181,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1CounterSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1CounterSet is not found in the empty JSON string", V1beta1CounterSet.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1CounterSet is not found in the empty JSON string", V1beta1CounterSet.openapiRequiredFields.toString())); } } @@ -189,19 +188,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1CounterSet.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1CounterSet` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1CounterSet` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1CounterSet.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -254,3 +253,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Device.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Device.java index 6f541c838b..87fdd90c88 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Device.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Device.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. */ @ApiModel(description = "Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1Device { public static final String SERIALIZED_NAME_BASIC = "basic"; @SerializedName(SERIALIZED_NAME_BASIC) @@ -152,13 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("basic"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("basic", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -170,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1Device.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1Device is not found in the empty JSON string", V1beta1Device.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1Device is not found in the empty JSON string", V1beta1Device.openapiRequiredFields.toString())); } } @@ -178,14 +178,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1Device.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1Device` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1Device` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1Device.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -194,7 +194,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta1BasicDevice.validateJsonElement(jsonObj.get("basic")); } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -247,3 +247,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfiguration.java index 80b14aca20..863f9db310 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfiguration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * DeviceAllocationConfiguration gets embedded in an AllocationResult. */ @ApiModel(description = "DeviceAllocationConfiguration gets embedded in an AllocationResult.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1DeviceAllocationConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) @@ -189,14 +192,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("opaque"); - openapiFields.add("requests"); - openapiFields.add("source"); + openapiFields = new HashSet(Arrays.asList("opaque", "requests", "source")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("source"); + openapiRequiredFields = new HashSet(Arrays.asList("source")); } /** @@ -208,7 +207,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1DeviceAllocationConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1DeviceAllocationConfiguration is not found in the empty JSON string", V1beta1DeviceAllocationConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1DeviceAllocationConfiguration is not found in the empty JSON string", V1beta1DeviceAllocationConfiguration.openapiRequiredFields.toString())); } } @@ -216,14 +215,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1DeviceAllocationConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1DeviceAllocationConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceAllocationConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1DeviceAllocationConfiguration.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,10 +232,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("requests") != null && !jsonObj.get("requests").isJsonNull() && !jsonObj.get("requests").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); } if (!jsonObj.get("source").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source").toString())); } } @@ -289,3 +288,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResult.java index 14aef4e0a6..30171f13ab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResult.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * DeviceAllocationResult is the result of allocating devices. */ @ApiModel(description = "DeviceAllocationResult is the result of allocating devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1DeviceAllocationResult { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -171,12 +174,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("config"); - openapiFields.add("results"); + openapiFields = new HashSet(Arrays.asList("config", "results")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -188,7 +189,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1DeviceAllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1DeviceAllocationResult is not found in the empty JSON string", V1beta1DeviceAllocationResult.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1DeviceAllocationResult is not found in the empty JSON string", V1beta1DeviceAllocationResult.openapiRequiredFields.toString())); } } @@ -196,7 +197,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1DeviceAllocationResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1DeviceAllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceAllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -205,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayconfig != null) { // ensure the json data is an array if (!jsonObj.get("config").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `config` to be an array in the JSON string but got `%s`", jsonObj.get("config").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `config` to be an array in the JSON string but got `%s`", jsonObj.get("config").toString())); } // validate the optional field `config` (array) @@ -219,7 +220,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayresults != null) { // ensure the json data is an array if (!jsonObj.get("results").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `results` to be an array in the JSON string but got `%s`", jsonObj.get("results").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `results` to be an array in the JSON string but got `%s`", jsonObj.get("results").toString())); } // validate the optional field `results` (array) @@ -279,3 +280,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttribute.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttribute.java index bbef5e14b0..898223ad36 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttribute.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttribute.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * DeviceAttribute must have exactly one field set. */ @ApiModel(description = "DeviceAttribute must have exactly one field set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1DeviceAttribute { public static final String SERIALIZED_NAME_BOOL = "bool"; @SerializedName(SERIALIZED_NAME_BOOL) @@ -205,14 +208,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("bool"); - openapiFields.add("int"); - openapiFields.add("string"); - openapiFields.add("version"); + openapiFields = new HashSet(Arrays.asList("bool", "int", "string", "version")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -224,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1DeviceAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1DeviceAttribute is not found in the empty JSON string", V1beta1DeviceAttribute.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1DeviceAttribute is not found in the empty JSON string", V1beta1DeviceAttribute.openapiRequiredFields.toString())); } } @@ -232,15 +231,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1DeviceAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1DeviceAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("string") != null && !jsonObj.get("string").isJsonNull()) && !jsonObj.get("string").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `string` to be a primitive type in the JSON string but got `%s`", jsonObj.get("string").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `string` to be a primitive type in the JSON string but got `%s`", jsonObj.get("string").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } } @@ -293,3 +292,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacity.java index 9d085701db..0804adc2d8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacity.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * DeviceCapacity describes a quantity associated with a device. */ @ApiModel(description = "DeviceCapacity describes a quantity associated with a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1DeviceCapacity { public static final String SERIALIZED_NAME_REQUEST_POLICY = "requestPolicy"; @SerializedName(SERIALIZED_NAME_REQUEST_POLICY) @@ -153,13 +156,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("requestPolicy"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("requestPolicy", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("value")); } /** @@ -171,7 +171,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1DeviceCapacity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1DeviceCapacity is not found in the empty JSON string", V1beta1DeviceCapacity.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1DeviceCapacity is not found in the empty JSON string", V1beta1DeviceCapacity.openapiRequiredFields.toString())); } } @@ -179,14 +179,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1DeviceCapacity.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1DeviceCapacity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceCapacity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1DeviceCapacity.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -195,7 +195,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta1CapacityRequestPolicy.validateJsonElement(jsonObj.get("requestPolicy")); } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -248,3 +248,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaim.java index 52b7d15180..64e882b7fa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaim.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * DeviceClaim defines how to request devices with a ResourceClaim. */ @ApiModel(description = "DeviceClaim defines how to request devices with a ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1DeviceClaim { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -207,13 +210,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("config"); - openapiFields.add("constraints"); - openapiFields.add("requests"); + openapiFields = new HashSet(Arrays.asList("config", "constraints", "requests")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -225,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1DeviceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1DeviceClaim is not found in the empty JSON string", V1beta1DeviceClaim.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1DeviceClaim is not found in the empty JSON string", V1beta1DeviceClaim.openapiRequiredFields.toString())); } } @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1DeviceClaim.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1DeviceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -242,7 +242,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayconfig != null) { // ensure the json data is an array if (!jsonObj.get("config").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `config` to be an array in the JSON string but got `%s`", jsonObj.get("config").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `config` to be an array in the JSON string but got `%s`", jsonObj.get("config").toString())); } // validate the optional field `config` (array) @@ -256,7 +256,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayconstraints != null) { // ensure the json data is an array if (!jsonObj.get("constraints").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `constraints` to be an array in the JSON string but got `%s`", jsonObj.get("constraints").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `constraints` to be an array in the JSON string but got `%s`", jsonObj.get("constraints").toString())); } // validate the optional field `constraints` (array) @@ -270,7 +270,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayrequests != null) { // ensure the json data is an array if (!jsonObj.get("requests").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); } // validate the optional field `requests` (array) @@ -330,3 +330,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfiguration.java index 19767b6fbd..1e5f271a1d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfiguration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. */ @ApiModel(description = "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1DeviceClaimConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) @@ -162,12 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("opaque"); - openapiFields.add("requests"); + openapiFields = new HashSet(Arrays.asList("opaque", "requests")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -179,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1DeviceClaimConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1DeviceClaimConfiguration is not found in the empty JSON string", V1beta1DeviceClaimConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1DeviceClaimConfiguration is not found in the empty JSON string", V1beta1DeviceClaimConfiguration.openapiRequiredFields.toString())); } } @@ -187,7 +188,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1DeviceClaimConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1DeviceClaimConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceClaimConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -197,7 +198,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("requests") != null && !jsonObj.get("requests").isJsonNull() && !jsonObj.get("requests").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); } } @@ -250,3 +251,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClass.java index fa7bc49e06..c2c00b79b9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClass.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1DeviceClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,15 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -227,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1DeviceClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1DeviceClass is not found in the empty JSON string", V1beta1DeviceClass.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1DeviceClass is not found in the empty JSON string", V1beta1DeviceClass.openapiRequiredFields.toString())); } } @@ -235,22 +233,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1DeviceClass.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1DeviceClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1DeviceClass.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -309,3 +307,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguration.java index e22004b829..c53fbce0a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * DeviceClassConfiguration is used in DeviceClass. */ @ApiModel(description = "DeviceClassConfiguration is used in DeviceClass.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1DeviceClassConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("opaque"); + openapiFields = new HashSet(Arrays.asList("opaque")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1DeviceClassConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1DeviceClassConfiguration is not found in the empty JSON string", V1beta1DeviceClassConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1DeviceClassConfiguration is not found in the empty JSON string", V1beta1DeviceClassConfiguration.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1DeviceClassConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1DeviceClassConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceClassConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassList.java index 617fb603a0..4bfb930f54 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * DeviceClassList is a collection of classes. */ @ApiModel(description = "DeviceClassList is a collection of classes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1DeviceClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1DeviceClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1DeviceClassList is not found in the empty JSON string", V1beta1DeviceClassList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1DeviceClassList is not found in the empty JSON string", V1beta1DeviceClassList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1DeviceClassList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1DeviceClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1DeviceClassList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta1DeviceClass.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpec.java index 239a2777a9..69aa115fd7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. */ @ApiModel(description = "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1DeviceClassSpec { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -198,13 +201,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("config"); - openapiFields.add("extendedResourceName"); - openapiFields.add("selectors"); + openapiFields = new HashSet(Arrays.asList("config", "extendedResourceName", "selectors")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -216,7 +216,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1DeviceClassSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1DeviceClassSpec is not found in the empty JSON string", V1beta1DeviceClassSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1DeviceClassSpec is not found in the empty JSON string", V1beta1DeviceClassSpec.openapiRequiredFields.toString())); } } @@ -224,7 +224,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1DeviceClassSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1DeviceClassSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceClassSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayconfig != null) { // ensure the json data is an array if (!jsonObj.get("config").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `config` to be an array in the JSON string but got `%s`", jsonObj.get("config").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `config` to be an array in the JSON string but got `%s`", jsonObj.get("config").toString())); } // validate the optional field `config` (array) @@ -243,14 +243,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } if ((jsonObj.get("extendedResourceName") != null && !jsonObj.get("extendedResourceName").isJsonNull()) && !jsonObj.get("extendedResourceName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `extendedResourceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("extendedResourceName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `extendedResourceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("extendedResourceName").toString())); } if (jsonObj.get("selectors") != null && !jsonObj.get("selectors").isJsonNull()) { JsonArray jsonArrayselectors = jsonObj.getAsJsonArray("selectors"); if (jsonArrayselectors != null) { // ensure the json data is an array if (!jsonObj.get("selectors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); } // validate the optional field `selectors` (array) @@ -310,3 +310,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraint.java index b4c93470e3..1bbf462b53 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraint.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * DeviceConstraint must have exactly one field set besides Requests. */ @ApiModel(description = "DeviceConstraint must have exactly one field set besides Requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1DeviceConstraint { public static final String SERIALIZED_NAME_DISTINCT_ATTRIBUTE = "distinctAttribute"; @SerializedName(SERIALIZED_NAME_DISTINCT_ATTRIBUTE) @@ -188,13 +191,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("distinctAttribute"); - openapiFields.add("matchAttribute"); - openapiFields.add("requests"); + openapiFields = new HashSet(Arrays.asList("distinctAttribute", "matchAttribute", "requests")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -206,7 +206,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1DeviceConstraint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1DeviceConstraint is not found in the empty JSON string", V1beta1DeviceConstraint.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1DeviceConstraint is not found in the empty JSON string", V1beta1DeviceConstraint.openapiRequiredFields.toString())); } } @@ -214,19 +214,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1DeviceConstraint.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1DeviceConstraint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceConstraint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("distinctAttribute") != null && !jsonObj.get("distinctAttribute").isJsonNull()) && !jsonObj.get("distinctAttribute").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `distinctAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("distinctAttribute").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `distinctAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("distinctAttribute").toString())); } if ((jsonObj.get("matchAttribute") != null && !jsonObj.get("matchAttribute").isJsonNull()) && !jsonObj.get("matchAttribute").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `matchAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("matchAttribute").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `matchAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("matchAttribute").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("requests") != null && !jsonObj.get("requests").isJsonNull() && !jsonObj.get("requests").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); } } @@ -279,3 +279,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumption.java index b8b61a454b..eca501036d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumption.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. */ @ApiModel(description = "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1DeviceCounterConsumption { public static final String SERIALIZED_NAME_COUNTER_SET = "counterSet"; @SerializedName(SERIALIZED_NAME_COUNTER_SET) @@ -162,14 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("counterSet"); - openapiFields.add("counters"); + openapiFields = new HashSet(Arrays.asList("counterSet", "counters")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("counterSet"); - openapiRequiredFields.add("counters"); + openapiRequiredFields = new HashSet(Arrays.asList("counterSet", "counters")); } /** @@ -181,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1DeviceCounterConsumption.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1DeviceCounterConsumption is not found in the empty JSON string", V1beta1DeviceCounterConsumption.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1DeviceCounterConsumption is not found in the empty JSON string", V1beta1DeviceCounterConsumption.openapiRequiredFields.toString())); } } @@ -189,19 +188,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1DeviceCounterConsumption.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1DeviceCounterConsumption` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceCounterConsumption` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1DeviceCounterConsumption.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("counterSet").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `counterSet` to be a primitive type in the JSON string but got `%s`", jsonObj.get("counterSet").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `counterSet` to be a primitive type in the JSON string but got `%s`", jsonObj.get("counterSet").toString())); } } @@ -254,3 +253,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java index 76bb1dd559..d974789c79 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. */ @ApiModel(description = "DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1DeviceRequest { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -370,20 +373,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("adminAccess"); - openapiFields.add("allocationMode"); - openapiFields.add("capacity"); - openapiFields.add("count"); - openapiFields.add("deviceClassName"); - openapiFields.add("firstAvailable"); - openapiFields.add("name"); - openapiFields.add("selectors"); - openapiFields.add("tolerations"); + openapiFields = new HashSet(Arrays.asList("adminAccess", "allocationMode", "capacity", "count", "deviceClassName", "firstAvailable", "name", "selectors", "tolerations")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -395,7 +388,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1DeviceRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1DeviceRequest is not found in the empty JSON string", V1beta1DeviceRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1DeviceRequest is not found in the empty JSON string", V1beta1DeviceRequest.openapiRequiredFields.toString())); } } @@ -403,33 +396,33 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1DeviceRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1DeviceRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1DeviceRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allocationMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMode").toString())); } // validate the optional field `capacity` if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { V1beta1CapacityRequirements.validateJsonElement(jsonObj.get("capacity")); } if ((jsonObj.get("deviceClassName") != null && !jsonObj.get("deviceClassName").isJsonNull()) && !jsonObj.get("deviceClassName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); } if (jsonObj.get("firstAvailable") != null && !jsonObj.get("firstAvailable").isJsonNull()) { JsonArray jsonArrayfirstAvailable = jsonObj.getAsJsonArray("firstAvailable"); if (jsonArrayfirstAvailable != null) { // ensure the json data is an array if (!jsonObj.get("firstAvailable").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `firstAvailable` to be an array in the JSON string but got `%s`", jsonObj.get("firstAvailable").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `firstAvailable` to be an array in the JSON string but got `%s`", jsonObj.get("firstAvailable").toString())); } // validate the optional field `firstAvailable` (array) @@ -439,14 +432,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (jsonObj.get("selectors") != null && !jsonObj.get("selectors").isJsonNull()) { JsonArray jsonArrayselectors = jsonObj.getAsJsonArray("selectors"); if (jsonArrayselectors != null) { // ensure the json data is an array if (!jsonObj.get("selectors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); } // validate the optional field `selectors` (array) @@ -460,7 +453,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -520,3 +513,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResult.java index 405e17ade9..f22c00e6e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResult.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * DeviceRequestAllocationResult contains the allocation result for one request. */ @ApiModel(description = "DeviceRequestAllocationResult contains the allocation result for one request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1DeviceRequestAllocationResult { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -405,24 +408,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("adminAccess"); - openapiFields.add("bindingConditions"); - openapiFields.add("bindingFailureConditions"); - openapiFields.add("consumedCapacity"); - openapiFields.add("device"); - openapiFields.add("driver"); - openapiFields.add("pool"); - openapiFields.add("request"); - openapiFields.add("shareID"); - openapiFields.add("tolerations"); + openapiFields = new HashSet(Arrays.asList("adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "tolerations")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("device"); - openapiRequiredFields.add("driver"); - openapiRequiredFields.add("pool"); - openapiRequiredFields.add("request"); + openapiRequiredFields = new HashSet(Arrays.asList("device", "driver", "pool", "request")); } /** @@ -434,7 +423,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1DeviceRequestAllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1DeviceRequestAllocationResult is not found in the empty JSON string", V1beta1DeviceRequestAllocationResult.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1DeviceRequestAllocationResult is not found in the empty JSON string", V1beta1DeviceRequestAllocationResult.openapiRequiredFields.toString())); } } @@ -442,46 +431,46 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1DeviceRequestAllocationResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1DeviceRequestAllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceRequestAllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1DeviceRequestAllocationResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("bindingConditions") != null && !jsonObj.get("bindingConditions").isJsonNull() && !jsonObj.get("bindingConditions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `bindingConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingConditions").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `bindingConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingConditions").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("bindingFailureConditions") != null && !jsonObj.get("bindingFailureConditions").isJsonNull() && !jsonObj.get("bindingFailureConditions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `bindingFailureConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingFailureConditions").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `bindingFailureConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingFailureConditions").toString())); } if (!jsonObj.get("device").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").toString())); } if (!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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `pool` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pool").toString())); } if (!jsonObj.get("request").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `request` to be a primitive type in the JSON string but got `%s`", jsonObj.get("request").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `request` to be a primitive type in the JSON string but got `%s`", jsonObj.get("request").toString())); } if ((jsonObj.get("shareID") != null && !jsonObj.get("shareID").isJsonNull()) && !jsonObj.get("shareID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -541,3 +530,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java index bf31095c47..5ab89b3b67 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * DeviceSelector must have exactly one field set. */ @ApiModel(description = "DeviceSelector must have exactly one field set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1DeviceSelector { public static final String SERIALIZED_NAME_CEL = "cel"; @SerializedName(SERIALIZED_NAME_CEL) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("cel"); + openapiFields = new HashSet(Arrays.asList("cel")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1DeviceSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1DeviceSelector is not found in the empty JSON string", V1beta1DeviceSelector.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1DeviceSelector is not found in the empty JSON string", V1beta1DeviceSelector.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1DeviceSelector.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1DeviceSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java index e9d6d9ec2e..32b28c2a97 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported. */ @ApiModel(description = "DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1DeviceSubRequest { public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) @@ -307,19 +310,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allocationMode"); - openapiFields.add("capacity"); - openapiFields.add("count"); - openapiFields.add("deviceClassName"); - openapiFields.add("name"); - openapiFields.add("selectors"); - openapiFields.add("tolerations"); + openapiFields = new HashSet(Arrays.asList("allocationMode", "capacity", "count", "deviceClassName", "name", "selectors", "tolerations")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("deviceClassName"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("deviceClassName", "name")); } /** @@ -331,7 +325,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1DeviceSubRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1DeviceSubRequest is not found in the empty JSON string", V1beta1DeviceSubRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1DeviceSubRequest is not found in the empty JSON string", V1beta1DeviceSubRequest.openapiRequiredFields.toString())); } } @@ -339,36 +333,36 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1DeviceSubRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1DeviceSubRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceSubRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1DeviceSubRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allocationMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMode").toString())); } // validate the optional field `capacity` if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { V1beta1CapacityRequirements.validateJsonElement(jsonObj.get("capacity")); } if (!jsonObj.get("deviceClassName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (jsonObj.get("selectors") != null && !jsonObj.get("selectors").isJsonNull()) { JsonArray jsonArrayselectors = jsonObj.getAsJsonArray("selectors"); if (jsonArrayselectors != null) { // ensure the json data is an array if (!jsonObj.get("selectors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); } // validate the optional field `selectors` (array) @@ -382,7 +376,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -442,3 +436,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java index 051a80cae1..ba9c7d230a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. */ @ApiModel(description = "The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1DeviceTaint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) @@ -206,16 +209,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("effect", "key", "timeAdded", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("effect"); - openapiRequiredFields.add("key"); + openapiRequiredFields = new HashSet(Arrays.asList("effect", "key")); } /** @@ -227,7 +224,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1DeviceTaint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1DeviceTaint is not found in the empty JSON string", V1beta1DeviceTaint.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1DeviceTaint is not found in the empty JSON string", V1beta1DeviceTaint.openapiRequiredFields.toString())); } } @@ -235,25 +232,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1DeviceTaint.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1DeviceTaint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceTaint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1DeviceTaint.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -306,3 +303,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java index 287064895f..8f16a0ca35 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. */ @ApiModel(description = "The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator .") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1DeviceToleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) @@ -232,15 +235,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("effect", "key", "operator", "tolerationSeconds", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -252,7 +250,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1DeviceToleration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1DeviceToleration is not found in the empty JSON string", V1beta1DeviceToleration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1DeviceToleration is not found in the empty JSON string", V1beta1DeviceToleration.openapiRequiredFields.toString())); } } @@ -260,21 +258,21 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1DeviceToleration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1DeviceToleration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1DeviceToleration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java index 0ef4cc4f83..6f64b72f0f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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 */ @ApiModel(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") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1IPAddress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,14 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1IPAddress.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1IPAddress is not found in the empty JSON string", V1beta1IPAddress.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1IPAddress is not found in the empty JSON string", V1beta1IPAddress.openapiRequiredFields.toString())); } } @@ -234,15 +233,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1IPAddress.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1IPAddress` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1IPAddress` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -303,3 +302,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java index df9411bf0f..3f2ed2692f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * IPAddressList contains a list of IPAddress. */ @ApiModel(description = "IPAddressList contains a list of IPAddress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1IPAddressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1IPAddressList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1IPAddressList is not found in the empty JSON string", V1beta1IPAddressList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1IPAddressList is not found in the empty JSON string", V1beta1IPAddressList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1IPAddressList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1IPAddressList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1IPAddressList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1IPAddressList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta1IPAddress.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java index 77e09d3980..7b5d4b531e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * IPAddressSpec describe the attributes in an IP Address. */ @ApiModel(description = "IPAddressSpec describe the attributes in an IP Address.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1IPAddressSpec { public static final String SERIALIZED_NAME_PARENT_REF = "parentRef"; @SerializedName(SERIALIZED_NAME_PARENT_REF) @@ -125,12 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("parentRef"); + openapiFields = new HashSet(Arrays.asList("parentRef")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("parentRef"); + openapiRequiredFields = new HashSet(Arrays.asList("parentRef")); } /** @@ -142,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1IPAddressSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1IPAddressSpec is not found in the empty JSON string", V1beta1IPAddressSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1IPAddressSpec is not found in the empty JSON string", V1beta1IPAddressSpec.openapiRequiredFields.toString())); } } @@ -150,14 +151,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1IPAddressSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1IPAddressSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1IPAddressSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1IPAddressSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -214,3 +215,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java index 41084a3d83..16d6c5a0b9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * JSONPatch defines a JSON Patch. */ @ApiModel(description = "JSONPatch defines a JSON Patch.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1JSONPatch { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -124,11 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("expression"); + openapiFields = new HashSet(Arrays.asList("expression")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -140,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1JSONPatch.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1JSONPatch is not found in the empty JSON string", V1beta1JSONPatch.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1JSONPatch is not found in the empty JSON string", V1beta1JSONPatch.openapiRequiredFields.toString())); } } @@ -148,12 +150,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1JSONPatch.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1JSONPatch` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1JSONPatch` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("expression") != null && !jsonObj.get("expression").isJsonNull()) && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); } } @@ -206,3 +208,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java index bc95ea4cdf..4f56b3bad7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates. */ @ApiModel(description = "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1LeaseCandidate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,14 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1LeaseCandidate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1LeaseCandidate is not found in the empty JSON string", V1beta1LeaseCandidate.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1LeaseCandidate is not found in the empty JSON string", V1beta1LeaseCandidate.openapiRequiredFields.toString())); } } @@ -234,15 +233,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1LeaseCandidate.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1LeaseCandidate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1LeaseCandidate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -303,3 +302,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java index 0a72b234f7..963aa4ea19 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * LeaseCandidateList is a list of Lease objects. */ @ApiModel(description = "LeaseCandidateList is a list of Lease objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1LeaseCandidateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1LeaseCandidateList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1LeaseCandidateList is not found in the empty JSON string", V1beta1LeaseCandidateList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1LeaseCandidateList is not found in the empty JSON string", V1beta1LeaseCandidateList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1LeaseCandidateList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1LeaseCandidateList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1LeaseCandidateList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1LeaseCandidateList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta1LeaseCandidate.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java index 28dc2e9270..be96efa6bb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * LeaseCandidateSpec is a specification of a Lease. */ @ApiModel(description = "LeaseCandidateSpec is a specification of a Lease.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1LeaseCandidateSpec { public static final String SERIALIZED_NAME_BINARY_VERSION = "binaryVersion"; @SerializedName(SERIALIZED_NAME_BINARY_VERSION) @@ -260,19 +263,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("binaryVersion"); - openapiFields.add("emulationVersion"); - openapiFields.add("leaseName"); - openapiFields.add("pingTime"); - openapiFields.add("renewTime"); - openapiFields.add("strategy"); + openapiFields = new HashSet(Arrays.asList("binaryVersion", "emulationVersion", "leaseName", "pingTime", "renewTime", "strategy")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("binaryVersion"); - openapiRequiredFields.add("leaseName"); - openapiRequiredFields.add("strategy"); + openapiRequiredFields = new HashSet(Arrays.asList("binaryVersion", "leaseName", "strategy")); } /** @@ -284,7 +278,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1LeaseCandidateSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1LeaseCandidateSpec is not found in the empty JSON string", V1beta1LeaseCandidateSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1LeaseCandidateSpec is not found in the empty JSON string", V1beta1LeaseCandidateSpec.openapiRequiredFields.toString())); } } @@ -292,28 +286,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1LeaseCandidateSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1LeaseCandidateSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1LeaseCandidateSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1LeaseCandidateSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("binaryVersion").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `binaryVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("binaryVersion").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `binaryVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("binaryVersion").toString())); } if ((jsonObj.get("emulationVersion") != null && !jsonObj.get("emulationVersion").isJsonNull()) && !jsonObj.get("emulationVersion").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `emulationVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("emulationVersion").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `emulationVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("emulationVersion").toString())); } if (!jsonObj.get("leaseName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `leaseName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("leaseName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `leaseName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("leaseName").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `strategy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("strategy").toString())); } } @@ -366,3 +360,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java index c41f0bec39..f4c62b7801 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook. */ @ApiModel(description = "MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1MatchCondition { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("expression"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("expression", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("expression"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("expression", "name")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1MatchCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1MatchCondition is not found in the empty JSON string", V1beta1MatchCondition.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1MatchCondition is not found in the empty JSON string", V1beta1MatchCondition.openapiRequiredFields.toString())); } } @@ -178,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1MatchCondition.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1MatchCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1MatchCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1MatchCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -246,3 +245,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java index 5dc01e35d3..df37404cde 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * 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) */ @ApiModel(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)") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) @@ -252,15 +255,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("excludeResourceRules", "matchPolicy", "namespaceSelector", "objectSelector", "resourceRules")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -272,7 +270,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1MatchResources.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1MatchResources is not found in the empty JSON string", V1beta1MatchResources.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1MatchResources is not found in the empty JSON string", V1beta1MatchResources.openapiRequiredFields.toString())); } } @@ -280,7 +278,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1MatchResources.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1MatchResources` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1MatchResources` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -289,7 +287,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -299,7 +297,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -314,7 +312,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -374,3 +372,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java index 783a46b3d8..0f03c8b851 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain. */ @ApiModel(description = "MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1MutatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,14 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1MutatingAdmissionPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1MutatingAdmissionPolicy is not found in the empty JSON string", V1beta1MutatingAdmissionPolicy.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1MutatingAdmissionPolicy is not found in the empty JSON string", V1beta1MutatingAdmissionPolicy.openapiRequiredFields.toString())); } } @@ -234,15 +233,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1MutatingAdmissionPolicy.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1MutatingAdmissionPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1MutatingAdmissionPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -303,3 +302,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java index 94bbbb78a1..7ba971a4ca 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource 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. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. */ @ApiModel(description = "MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource 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. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1MutatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,14 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -226,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1MutatingAdmissionPolicyBinding.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1MutatingAdmissionPolicyBinding is not found in the empty JSON string", V1beta1MutatingAdmissionPolicyBinding.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1MutatingAdmissionPolicyBinding is not found in the empty JSON string", V1beta1MutatingAdmissionPolicyBinding.openapiRequiredFields.toString())); } } @@ -234,15 +233,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1MutatingAdmissionPolicyBinding.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1MutatingAdmissionPolicyBinding` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1MutatingAdmissionPolicyBinding` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -303,3 +302,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java index eb291e308c..b5021e78c3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. */ @ApiModel(description = "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1MutatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1MutatingAdmissionPolicyBindingList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1MutatingAdmissionPolicyBindingList is not found in the empty JSON string", V1beta1MutatingAdmissionPolicyBindingList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1MutatingAdmissionPolicyBindingList is not found in the empty JSON string", V1beta1MutatingAdmissionPolicyBindingList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1MutatingAdmissionPolicyBindingList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1MutatingAdmissionPolicyBindingList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1MutatingAdmissionPolicyBindingList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1MutatingAdmissionPolicyBindingList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta1MutatingAdmissionPolicyBinding.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java index 61675368ca..cda31857ab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding. */ @ApiModel(description = "MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1MutatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) @@ -180,13 +183,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("matchResources"); - openapiFields.add("paramRef"); - openapiFields.add("policyName"); + openapiFields = new HashSet(Arrays.asList("matchResources", "paramRef", "policyName")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -198,7 +198,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1MutatingAdmissionPolicyBindingSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1MutatingAdmissionPolicyBindingSpec is not found in the empty JSON string", V1beta1MutatingAdmissionPolicyBindingSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1MutatingAdmissionPolicyBindingSpec is not found in the empty JSON string", V1beta1MutatingAdmissionPolicyBindingSpec.openapiRequiredFields.toString())); } } @@ -206,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1MutatingAdmissionPolicyBindingSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1MutatingAdmissionPolicyBindingSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1MutatingAdmissionPolicyBindingSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -219,7 +219,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta1ParamRef.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `policyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("policyName").toString())); } } @@ -272,3 +272,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java index cc88b86a6a..59e463282d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. */ @ApiModel(description = "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1MutatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1MutatingAdmissionPolicyList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1MutatingAdmissionPolicyList is not found in the empty JSON string", V1beta1MutatingAdmissionPolicyList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1MutatingAdmissionPolicyList is not found in the empty JSON string", V1beta1MutatingAdmissionPolicyList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1MutatingAdmissionPolicyList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1MutatingAdmissionPolicyList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1MutatingAdmissionPolicyList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1MutatingAdmissionPolicyList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta1MutatingAdmissionPolicy.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java index 91f054c780..4ba43ad44d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -50,6 +52,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -57,7 +60,7 @@ * MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy. */ @ApiModel(description = "MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1MutatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) @@ -317,17 +320,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("failurePolicy"); - openapiFields.add("matchConditions"); - openapiFields.add("matchConstraints"); - openapiFields.add("mutations"); - openapiFields.add("paramKind"); - openapiFields.add("reinvocationPolicy"); - openapiFields.add("variables"); + openapiFields = new HashSet(Arrays.asList("failurePolicy", "matchConditions", "matchConstraints", "mutations", "paramKind", "reinvocationPolicy", "variables")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -339,7 +335,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1MutatingAdmissionPolicySpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1MutatingAdmissionPolicySpec is not found in the empty JSON string", V1beta1MutatingAdmissionPolicySpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1MutatingAdmissionPolicySpec is not found in the empty JSON string", V1beta1MutatingAdmissionPolicySpec.openapiRequiredFields.toString())); } } @@ -347,19 +343,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1MutatingAdmissionPolicySpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1MutatingAdmissionPolicySpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1MutatingAdmissionPolicySpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -377,7 +373,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraymutations != null) { // ensure the json data is an array if (!jsonObj.get("mutations").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `mutations` to be an array in the JSON string but got `%s`", jsonObj.get("mutations").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `mutations` to be an array in the JSON string but got `%s`", jsonObj.get("mutations").toString())); } // validate the optional field `mutations` (array) @@ -391,14 +387,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta1ParamKind.validateJsonElement(jsonObj.get("paramKind")); } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `reinvocationPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reinvocationPolicy").toString())); } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -458,3 +454,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java index e314366332..8e9994aaba 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * Mutation specifies the CEL expression which is used to apply the Mutation. */ @ApiModel(description = "Mutation specifies the CEL expression which is used to apply the Mutation.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1Mutation { public static final String SERIALIZED_NAME_APPLY_CONFIGURATION = "applyConfiguration"; @SerializedName(SERIALIZED_NAME_APPLY_CONFIGURATION) @@ -180,14 +183,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("applyConfiguration"); - openapiFields.add("jsonPatch"); - openapiFields.add("patchType"); + openapiFields = new HashSet(Arrays.asList("applyConfiguration", "jsonPatch", "patchType")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("patchType"); + openapiRequiredFields = new HashSet(Arrays.asList("patchType")); } /** @@ -199,7 +198,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1Mutation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1Mutation is not found in the empty JSON string", V1beta1Mutation.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1Mutation is not found in the empty JSON string", V1beta1Mutation.openapiRequiredFields.toString())); } } @@ -207,14 +206,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1Mutation.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1Mutation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1Mutation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1Mutation.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -227,7 +226,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta1JSONPatch.validateJsonElement(jsonObj.get("jsonPatch")); } if (!jsonObj.get("patchType").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `patchType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchType").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `patchType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchType").toString())); } } @@ -280,3 +279,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java index ad1861fdde..0da391c043 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. */ @ApiModel(description = "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1NamedRuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -301,16 +304,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiGroups", "apiVersions", "operations", "resourceNames", "resources", "scope")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -322,7 +319,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1NamedRuleWithOperations.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1NamedRuleWithOperations is not found in the empty JSON string", V1beta1NamedRuleWithOperations.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1NamedRuleWithOperations is not found in the empty JSON string", V1beta1NamedRuleWithOperations.openapiRequiredFields.toString())); } } @@ -330,32 +327,32 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1NamedRuleWithOperations.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1NamedRuleWithOperations` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1NamedRuleWithOperations` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("apiGroups") != null && !jsonObj.get("apiGroups").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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").isJsonNull() && !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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scope").toString())); } } @@ -408,3 +405,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java index 07ac1cf986..d2df3ebb82 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context. */ @ApiModel(description = "NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1NetworkDeviceData { public static final String SERIALIZED_NAME_HARDWARE_ADDRESS = "hardwareAddress"; @SerializedName(SERIALIZED_NAME_HARDWARE_ADDRESS) @@ -188,13 +191,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("hardwareAddress"); - openapiFields.add("interfaceName"); - openapiFields.add("ips"); + openapiFields = new HashSet(Arrays.asList("hardwareAddress", "interfaceName", "ips")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -206,7 +206,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1NetworkDeviceData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1NetworkDeviceData is not found in the empty JSON string", V1beta1NetworkDeviceData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1NetworkDeviceData is not found in the empty JSON string", V1beta1NetworkDeviceData.openapiRequiredFields.toString())); } } @@ -214,19 +214,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1NetworkDeviceData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1NetworkDeviceData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1NetworkDeviceData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("hardwareAddress") != null && !jsonObj.get("hardwareAddress").isJsonNull()) && !jsonObj.get("hardwareAddress").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `hardwareAddress` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hardwareAddress").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `hardwareAddress` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hardwareAddress").toString())); } if ((jsonObj.get("interfaceName") != null && !jsonObj.get("interfaceName").isJsonNull()) && !jsonObj.get("interfaceName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `interfaceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interfaceName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `interfaceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interfaceName").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("ips") != null && !jsonObj.get("ips").isJsonNull() && !jsonObj.get("ips").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `ips` to be an array in the JSON string but got `%s`", jsonObj.get("ips").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ips` to be an array in the JSON string but got `%s`", jsonObj.get("ips").toString())); } } @@ -279,3 +279,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java index d6b4f77533..23f60733fd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. */ @ApiModel(description = "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1OpaqueDeviceConfiguration { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("driver"); - openapiFields.add("parameters"); + openapiFields = new HashSet(Arrays.asList("driver", "parameters")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("driver"); - openapiRequiredFields.add("parameters"); + openapiRequiredFields = new HashSet(Arrays.asList("driver", "parameters")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1OpaqueDeviceConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1OpaqueDeviceConfiguration is not found in the empty JSON string", V1beta1OpaqueDeviceConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1OpaqueDeviceConfiguration is not found in the empty JSON string", V1beta1OpaqueDeviceConfiguration.openapiRequiredFields.toString())); } } @@ -178,19 +177,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1OpaqueDeviceConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1OpaqueDeviceConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1OpaqueDeviceConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1OpaqueDeviceConfiguration.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").toString())); } } @@ -243,3 +242,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java index db35c55be5..7be80f65d1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ParamKind is a tuple of Group Kind and Version. */ @ApiModel(description = "ParamKind is a tuple of Group Kind and Version.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ParamKind { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -151,12 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("apiVersion"); - openapiFields.add("kind"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -168,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ParamKind.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ParamKind is not found in the empty JSON string", V1beta1ParamKind.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ParamKind is not found in the empty JSON string", V1beta1ParamKind.openapiRequiredFields.toString())); } } @@ -176,15 +177,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ParamKind.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ParamKind` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ParamKind` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); } } @@ -237,3 +238,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java index 1036998688..3d4a35bee6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. */ @ApiModel(description = "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ParamRef { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -206,14 +209,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("name", "namespace", "parameterNotFoundAction", "selector")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -225,7 +224,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ParamRef.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ParamRef is not found in the empty JSON string", V1beta1ParamRef.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ParamRef is not found in the empty JSON string", V1beta1ParamRef.openapiRequiredFields.toString())); } } @@ -233,18 +232,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ParamRef.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ParamRef` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ParamRef` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -301,3 +300,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java index 0d6903c90a..95f4a02014 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ParentReference describes a reference to a parent object. */ @ApiModel(description = "ParentReference describes a reference to a parent object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ParentReference { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) @@ -205,16 +208,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("group", "name", "namespace", "resource")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("resource"); + openapiRequiredFields = new HashSet(Arrays.asList("name", "resource")); } /** @@ -226,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ParentReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ParentReference is not found in the empty JSON string", V1beta1ParentReference.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ParentReference is not found in the empty JSON string", V1beta1ParentReference.openapiRequiredFields.toString())); } } @@ -234,28 +231,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ParentReference.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ParentReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ParentReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1ParentReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `resource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource").toString())); } } @@ -308,3 +305,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaim.java index 5514178faf..053d850dda 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaim.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ResourceClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,16 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -256,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ResourceClaim is not found in the empty JSON string", V1beta1ResourceClaim.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ResourceClaim is not found in the empty JSON string", V1beta1ResourceClaim.openapiRequiredFields.toString())); } } @@ -264,22 +261,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ResourceClaim.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1ResourceClaim.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -342,3 +339,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java index ea174bbe1e..2f0056e8fb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * 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. */ @ApiModel(description = "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ResourceClaimConsumerReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) @@ -205,17 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiGroup", "name", "resource", "uid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("resource"); - openapiRequiredFields.add("uid"); + openapiRequiredFields = new HashSet(Arrays.asList("name", "resource", "uid")); } /** @@ -227,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ResourceClaimConsumerReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ResourceClaimConsumerReference is not found in the empty JSON string", V1beta1ResourceClaimConsumerReference.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ResourceClaimConsumerReference is not found in the empty JSON string", V1beta1ResourceClaimConsumerReference.openapiRequiredFields.toString())); } } @@ -235,28 +231,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ResourceClaimConsumerReference.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaimConsumerReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaimConsumerReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1ResourceClaimConsumerReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); } } @@ -309,3 +305,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimList.java index 5e271c9305..59823d505b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ResourceClaimList is a collection of claims. */ @ApiModel(description = "ResourceClaimList is a collection of claims.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ResourceClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ResourceClaimList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ResourceClaimList is not found in the empty JSON string", V1beta1ResourceClaimList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ResourceClaimList is not found in the empty JSON string", V1beta1ResourceClaimList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ResourceClaimList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaimList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaimList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1ResourceClaimList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta1ResourceClaim.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpec.java index 07a2b68156..96ed0ba4b3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. */ @ApiModel(description = "ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ResourceClaimSpec { public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("devices"); + openapiFields = new HashSet(Arrays.asList("devices")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ResourceClaimSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ResourceClaimSpec is not found in the empty JSON string", V1beta1ResourceClaimSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ResourceClaimSpec is not found in the empty JSON string", V1beta1ResourceClaimSpec.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ResourceClaimSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaimSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaimSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatus.java index cc1f519d78..89c55059c4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. */ @ApiModel(description = "ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ResourceClaimStatus { public static final String SERIALIZED_NAME_ALLOCATION = "allocation"; @SerializedName(SERIALIZED_NAME_ALLOCATION) @@ -199,13 +202,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allocation"); - openapiFields.add("devices"); - openapiFields.add("reservedFor"); + openapiFields = new HashSet(Arrays.asList("allocation", "devices", "reservedFor")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -217,7 +217,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ResourceClaimStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ResourceClaimStatus is not found in the empty JSON string", V1beta1ResourceClaimStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ResourceClaimStatus is not found in the empty JSON string", V1beta1ResourceClaimStatus.openapiRequiredFields.toString())); } } @@ -225,7 +225,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ResourceClaimStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -238,7 +238,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydevices != null) { // ensure the json data is an array if (!jsonObj.get("devices").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `devices` to be an array in the JSON string but got `%s`", jsonObj.get("devices").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `devices` to be an array in the JSON string but got `%s`", jsonObj.get("devices").toString())); } // validate the optional field `devices` (array) @@ -252,7 +252,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -312,3 +312,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplate.java index 66b0e70df1..be2157ef13 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplate.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ResourceClaimTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,15 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -227,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ResourceClaimTemplate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ResourceClaimTemplate is not found in the empty JSON string", V1beta1ResourceClaimTemplate.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ResourceClaimTemplate is not found in the empty JSON string", V1beta1ResourceClaimTemplate.openapiRequiredFields.toString())); } } @@ -235,22 +233,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ResourceClaimTemplate.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaimTemplate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaimTemplate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1ResourceClaimTemplate.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -309,3 +307,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateList.java index b717e2d9ea..0c17eab2b5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ResourceClaimTemplateList is a collection of claim templates. */ @ApiModel(description = "ResourceClaimTemplateList is a collection of claim templates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ResourceClaimTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ResourceClaimTemplateList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ResourceClaimTemplateList is not found in the empty JSON string", V1beta1ResourceClaimTemplateList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ResourceClaimTemplateList is not found in the empty JSON string", V1beta1ResourceClaimTemplateList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ResourceClaimTemplateList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaimTemplateList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaimTemplateList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1ResourceClaimTemplateList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta1ResourceClaimTemplate.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpec.java index edeee75fd5..b25196a7f8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. */ @ApiModel(description = "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ResourceClaimTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) @@ -153,13 +156,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("metadata"); - openapiFields.add("spec"); + openapiFields = new HashSet(Arrays.asList("metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -171,7 +171,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ResourceClaimTemplateSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ResourceClaimTemplateSpec is not found in the empty JSON string", V1beta1ResourceClaimTemplateSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ResourceClaimTemplateSpec is not found in the empty JSON string", V1beta1ResourceClaimTemplateSpec.openapiRequiredFields.toString())); } } @@ -179,14 +179,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ResourceClaimTemplateSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaimTemplateSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ResourceClaimTemplateSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1ResourceClaimTemplateSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -247,3 +247,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePool.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePool.java index 863e8756c8..010f9d330f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePool.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePool.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ResourcePool describes the pool that ResourceSlices belong to. */ @ApiModel(description = "ResourcePool describes the pool that ResourceSlices belong to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ResourcePool { public static final String SERIALIZED_NAME_GENERATION = "generation"; @SerializedName(SERIALIZED_NAME_GENERATION) @@ -178,16 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("generation"); - openapiFields.add("name"); - openapiFields.add("resourceSliceCount"); + openapiFields = new HashSet(Arrays.asList("generation", "name", "resourceSliceCount")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("generation"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("resourceSliceCount"); + openapiRequiredFields = new HashSet(Arrays.asList("generation", "name", "resourceSliceCount")); } /** @@ -199,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ResourcePool.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ResourcePool is not found in the empty JSON string", V1beta1ResourcePool.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ResourcePool is not found in the empty JSON string", V1beta1ResourcePool.openapiRequiredFields.toString())); } } @@ -207,19 +204,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ResourcePool.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ResourcePool` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ResourcePool` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1ResourcePool.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -272,3 +269,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSlice.java index 87242c53b6..a59631981d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSlice.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>. Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple , , . Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ResourceSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,15 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -227,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ResourceSlice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ResourceSlice is not found in the empty JSON string", V1beta1ResourceSlice.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ResourceSlice is not found in the empty JSON string", V1beta1ResourceSlice.openapiRequiredFields.toString())); } } @@ -235,22 +233,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ResourceSlice.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ResourceSlice` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ResourceSlice` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1ResourceSlice.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -309,3 +307,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceList.java index edd6928c1c..c3b6e4e746 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ResourceSliceList is a collection of ResourceSlices. */ @ApiModel(description = "ResourceSliceList is a collection of ResourceSlices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ResourceSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ResourceSliceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ResourceSliceList is not found in the empty JSON string", V1beta1ResourceSliceList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ResourceSliceList is not found in the empty JSON string", V1beta1ResourceSliceList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ResourceSliceList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ResourceSliceList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ResourceSliceList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1ResourceSliceList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta1ResourceSlice.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpec.java index 3083f9aca9..3a894dd223 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * ResourceSliceSpec contains the information published by the driver in one ResourceSlice. */ @ApiModel(description = "ResourceSliceSpec contains the information published by the driver in one ResourceSlice.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ResourceSliceSpec { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @@ -335,20 +338,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allNodes"); - openapiFields.add("devices"); - openapiFields.add("driver"); - openapiFields.add("nodeName"); - openapiFields.add("nodeSelector"); - openapiFields.add("perDeviceNodeSelection"); - openapiFields.add("pool"); - openapiFields.add("sharedCounters"); + openapiFields = new HashSet(Arrays.asList("allNodes", "devices", "driver", "nodeName", "nodeSelector", "perDeviceNodeSelection", "pool", "sharedCounters")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("driver"); - openapiRequiredFields.add("pool"); + openapiRequiredFields = new HashSet(Arrays.asList("driver", "pool")); } /** @@ -360,7 +353,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ResourceSliceSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ResourceSliceSpec is not found in the empty JSON string", V1beta1ResourceSliceSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ResourceSliceSpec is not found in the empty JSON string", V1beta1ResourceSliceSpec.openapiRequiredFields.toString())); } } @@ -368,14 +361,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ResourceSliceSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ResourceSliceSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ResourceSliceSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1ResourceSliceSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -384,7 +377,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydevices != null) { // ensure the json data is an array if (!jsonObj.get("devices").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `devices` to be an array in the JSON string but got `%s`", jsonObj.get("devices").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `devices` to be an array in the JSON string but got `%s`", jsonObj.get("devices").toString())); } // validate the optional field `devices` (array) @@ -394,10 +387,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); } // validate the optional field `nodeSelector` if (jsonObj.get("nodeSelector") != null && !jsonObj.get("nodeSelector").isJsonNull()) { @@ -410,7 +403,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraysharedCounters != null) { // ensure the json data is an array if (!jsonObj.get("sharedCounters").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sharedCounters` to be an array in the JSON string but got `%s`", jsonObj.get("sharedCounters").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sharedCounters` to be an array in the JSON string but got `%s`", jsonObj.get("sharedCounters").toString())); } // validate the optional field `sharedCounters` (array) @@ -470,3 +463,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java index 4fd9cf290f..59d854e75c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects. */ @ApiModel(description = "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ServiceCIDR implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ServiceCIDR.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ServiceCIDR is not found in the empty JSON string", V1beta1ServiceCIDR.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ServiceCIDR is not found in the empty JSON string", V1beta1ServiceCIDR.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ServiceCIDR.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ServiceCIDR` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ServiceCIDR` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java index 7767b0cb1b..fc9137ba18 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ServiceCIDRList contains a list of ServiceCIDR objects. */ @ApiModel(description = "ServiceCIDRList contains a list of ServiceCIDR objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ServiceCIDRList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ServiceCIDRList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ServiceCIDRList is not found in the empty JSON string", V1beta1ServiceCIDRList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ServiceCIDRList is not found in the empty JSON string", V1beta1ServiceCIDRList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ServiceCIDRList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ServiceCIDRList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ServiceCIDRList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1ServiceCIDRList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta1ServiceCIDR.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java index abd2616f90..bbb2d8699a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. */ @ApiModel(description = "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ServiceCIDRSpec { public static final String SERIALIZED_NAME_CIDRS = "cidrs"; @SerializedName(SERIALIZED_NAME_CIDRS) @@ -134,11 +137,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("cidrs"); + openapiFields = new HashSet(Arrays.asList("cidrs")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -150,7 +152,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ServiceCIDRSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ServiceCIDRSpec is not found in the empty JSON string", V1beta1ServiceCIDRSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ServiceCIDRSpec is not found in the empty JSON string", V1beta1ServiceCIDRSpec.openapiRequiredFields.toString())); } } @@ -158,13 +160,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ServiceCIDRSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ServiceCIDRSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ServiceCIDRSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("cidrs") != null && !jsonObj.get("cidrs").isJsonNull() && !jsonObj.get("cidrs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `cidrs` to be an array in the JSON string but got `%s`", jsonObj.get("cidrs").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `cidrs` to be an array in the JSON string but got `%s`", jsonObj.get("cidrs").toString())); } } @@ -217,3 +219,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java index a9616b3cd0..6e5a430378 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ServiceCIDRStatus describes the current state of the ServiceCIDR. */ @ApiModel(description = "ServiceCIDRStatus describes the current state of the ServiceCIDR.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1ServiceCIDRStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -135,11 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("conditions"); + openapiFields = new HashSet(Arrays.asList("conditions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -151,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1ServiceCIDRStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1ServiceCIDRStatus is not found in the empty JSON string", V1beta1ServiceCIDRStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1ServiceCIDRStatus is not found in the empty JSON string", V1beta1ServiceCIDRStatus.openapiRequiredFields.toString())); } } @@ -159,7 +161,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1ServiceCIDRStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1ServiceCIDRStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1ServiceCIDRStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -168,7 +170,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -228,3 +230,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java index 0aeffce844..8e720cf433 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Variable is the definition of a variable that is used for composition. A variable is defined as a named expression. */ @ApiModel(description = "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1Variable { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("expression"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("expression", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("expression"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("expression", "name")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1Variable.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1Variable is not found in the empty JSON string", V1beta1Variable.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1Variable is not found in the empty JSON string", V1beta1Variable.openapiRequiredFields.toString())); } } @@ -178,22 +177,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1Variable.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1Variable` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1Variable` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1Variable.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -246,3 +245,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java index 93515dd5cd..95ce539543 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning. */ @ApiModel(description = "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1VolumeAttributesClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -243,16 +246,10 @@ private String toIndentedString(Object o) { 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("parameters"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "driverName", "kind", "metadata", "parameters")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("driverName"); + openapiRequiredFields = new HashSet(Arrays.asList("driverName")); } /** @@ -264,7 +261,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1VolumeAttributesClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1VolumeAttributesClass is not found in the empty JSON string", V1beta1VolumeAttributesClass.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1VolumeAttributesClass is not found in the empty JSON string", V1beta1VolumeAttributesClass.openapiRequiredFields.toString())); } } @@ -272,25 +269,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1VolumeAttributesClass.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1VolumeAttributesClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1VolumeAttributesClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1VolumeAttributesClass.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -347,3 +344,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java index 1ca037af4a..b964106afa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * VolumeAttributesClassList is a collection of VolumeAttributesClass objects. */ @ApiModel(description = "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta1VolumeAttributesClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta1VolumeAttributesClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta1VolumeAttributesClassList is not found in the empty JSON string", V1beta1VolumeAttributesClassList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta1VolumeAttributesClassList is not found in the empty JSON string", V1beta1VolumeAttributesClassList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta1VolumeAttributesClassList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta1VolumeAttributesClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1VolumeAttributesClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta1VolumeAttributesClassList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta1VolumeAttributesClass.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java index 663ac3da82..d1e75f61df 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. */ @ApiModel(description = "AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2AllocatedDeviceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -298,20 +301,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("conditions"); - openapiFields.add("data"); - openapiFields.add("device"); - openapiFields.add("driver"); - openapiFields.add("networkData"); - openapiFields.add("pool"); - openapiFields.add("shareID"); + openapiFields = new HashSet(Arrays.asList("conditions", "data", "device", "driver", "networkData", "pool", "shareID")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("device"); - openapiRequiredFields.add("driver"); - openapiRequiredFields.add("pool"); + openapiRequiredFields = new HashSet(Arrays.asList("device", "driver", "pool")); } /** @@ -323,7 +316,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2AllocatedDeviceStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2AllocatedDeviceStatus is not found in the empty JSON string", V1beta2AllocatedDeviceStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2AllocatedDeviceStatus is not found in the empty JSON string", V1beta2AllocatedDeviceStatus.openapiRequiredFields.toString())); } } @@ -331,14 +324,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2AllocatedDeviceStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2AllocatedDeviceStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2AllocatedDeviceStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2AllocatedDeviceStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -347,7 +340,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -357,20 +350,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } if (!jsonObj.get("device").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").toString())); } // validate the optional field `networkData` if (jsonObj.get("networkData") != null && !jsonObj.get("networkData").isJsonNull()) { V1beta2NetworkDeviceData.validateJsonElement(jsonObj.get("networkData")); } if (!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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `pool` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pool").toString())); } if ((jsonObj.get("shareID") != null && !jsonObj.get("shareID").isJsonNull()) && !jsonObj.get("shareID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").toString())); } } @@ -423,3 +416,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java index 591cd3b5bd..b7f8fd255e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * AllocationResult contains attributes of an allocated resource. */ @ApiModel(description = "AllocationResult contains attributes of an allocated resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2AllocationResult { public static final String SERIALIZED_NAME_ALLOCATION_TIMESTAMP = "allocationTimestamp"; @SerializedName(SERIALIZED_NAME_ALLOCATION_TIMESTAMP) @@ -181,13 +184,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allocationTimestamp"); - openapiFields.add("devices"); - openapiFields.add("nodeSelector"); + openapiFields = new HashSet(Arrays.asList("allocationTimestamp", "devices", "nodeSelector")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -199,7 +199,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2AllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2AllocationResult is not found in the empty JSON string", V1beta2AllocationResult.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2AllocationResult is not found in the empty JSON string", V1beta2AllocationResult.openapiRequiredFields.toString())); } } @@ -207,7 +207,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2AllocationResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2AllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2AllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -270,3 +270,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java index 8cb11f0c7e..6a5d22a7ba 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * CELDeviceSelector contains a CEL expression for selecting a device. */ @ApiModel(description = "CELDeviceSelector contains a CEL expression for selecting a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2CELDeviceSelector { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -124,12 +127,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("expression"); + openapiFields = new HashSet(Arrays.asList("expression")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("expression"); + openapiRequiredFields = new HashSet(Arrays.asList("expression")); } /** @@ -141,7 +142,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2CELDeviceSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2CELDeviceSelector is not found in the empty JSON string", V1beta2CELDeviceSelector.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2CELDeviceSelector is not found in the empty JSON string", V1beta2CELDeviceSelector.openapiRequiredFields.toString())); } } @@ -149,19 +150,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2CELDeviceSelector.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2CELDeviceSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2CELDeviceSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2CELDeviceSelector.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); } } @@ -214,3 +215,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java index fa492c38e4..bd52fe4161 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. */ @ApiModel(description = "CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2CapacityRequestPolicy { public static final String SERIALIZED_NAME_DEFAULT = "default"; @SerializedName(SERIALIZED_NAME_DEFAULT) @@ -190,13 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("default"); - openapiFields.add("validRange"); - openapiFields.add("validValues"); + openapiFields = new HashSet(Arrays.asList("default", "validRange", "validValues")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -208,7 +208,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2CapacityRequestPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2CapacityRequestPolicy is not found in the empty JSON string", V1beta2CapacityRequestPolicy.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2CapacityRequestPolicy is not found in the empty JSON string", V1beta2CapacityRequestPolicy.openapiRequiredFields.toString())); } } @@ -216,12 +216,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2CapacityRequestPolicy.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2CapacityRequestPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2CapacityRequestPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("default") != null && !jsonObj.get("default").isJsonNull()) && !jsonObj.get("default").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `default` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `default` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default").toString())); } // validate the optional field `validRange` if (jsonObj.get("validRange") != null && !jsonObj.get("validRange").isJsonNull()) { @@ -229,7 +229,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("validValues") != null && !jsonObj.get("validValues").isJsonNull() && !jsonObj.get("validValues").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `validValues` to be an array in the JSON string but got `%s`", jsonObj.get("validValues").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `validValues` to be an array in the JSON string but got `%s`", jsonObj.get("validValues").toString())); } } @@ -282,3 +282,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java index 2c47561d8c..8e6fb4d3c7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. */ @ApiModel(description = "CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2CapacityRequestPolicyRange { public static final String SERIALIZED_NAME_MAX = "max"; @SerializedName(SERIALIZED_NAME_MAX) @@ -179,14 +182,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("max"); - openapiFields.add("min"); - openapiFields.add("step"); + openapiFields = new HashSet(Arrays.asList("max", "min", "step")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("min"); + openapiRequiredFields = new HashSet(Arrays.asList("min")); } /** @@ -198,7 +197,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2CapacityRequestPolicyRange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2CapacityRequestPolicyRange is not found in the empty JSON string", V1beta2CapacityRequestPolicyRange.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2CapacityRequestPolicyRange is not found in the empty JSON string", V1beta2CapacityRequestPolicyRange.openapiRequiredFields.toString())); } } @@ -206,25 +205,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2CapacityRequestPolicyRange.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2CapacityRequestPolicyRange` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2CapacityRequestPolicyRange` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2CapacityRequestPolicyRange.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("max") != null && !jsonObj.get("max").isJsonNull()) && !jsonObj.get("max").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `max` to be a primitive type in the JSON string but got `%s`", jsonObj.get("max").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `max` to be a primitive type in the JSON string but got `%s`", jsonObj.get("max").toString())); } if (!jsonObj.get("min").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `min` to be a primitive type in the JSON string but got `%s`", jsonObj.get("min").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `min` to be a primitive type in the JSON string but got `%s`", jsonObj.get("min").toString())); } if ((jsonObj.get("step") != null && !jsonObj.get("step").isJsonNull()) && !jsonObj.get("step").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `step` to be a primitive type in the JSON string but got `%s`", jsonObj.get("step").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `step` to be a primitive type in the JSON string but got `%s`", jsonObj.get("step").toString())); } } @@ -277,3 +276,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java index f62669d549..724ceed5f4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * CapacityRequirements defines the capacity requirements for a specific device request. */ @ApiModel(description = "CapacityRequirements defines the capacity requirements for a specific device request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2CapacityRequirements { public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) @@ -135,11 +138,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("requests"); + openapiFields = new HashSet(Arrays.asList("requests")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -151,7 +153,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2CapacityRequirements.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2CapacityRequirements is not found in the empty JSON string", V1beta2CapacityRequirements.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2CapacityRequirements is not found in the empty JSON string", V1beta2CapacityRequirements.openapiRequiredFields.toString())); } } @@ -159,7 +161,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2CapacityRequirements.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2CapacityRequirements` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2CapacityRequirements` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -214,3 +216,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java index 5b0480533b..de48ce2613 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * Counter describes a quantity associated with a device. */ @ApiModel(description = "Counter describes a quantity associated with a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2Counter { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -125,12 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("value")); } /** @@ -142,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2Counter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2Counter is not found in the empty JSON string", V1beta2Counter.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2Counter is not found in the empty JSON string", V1beta2Counter.openapiRequiredFields.toString())); } } @@ -150,19 +151,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2Counter.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2Counter` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2Counter` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2Counter.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -215,3 +216,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java index d806a47fd8..01ce38a7fa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. */ @ApiModel(description = "CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2CounterSet { public static final String SERIALIZED_NAME_COUNTERS = "counters"; @SerializedName(SERIALIZED_NAME_COUNTERS) @@ -162,14 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("counters"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("counters", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("counters"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("counters", "name")); } /** @@ -181,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2CounterSet.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2CounterSet is not found in the empty JSON string", V1beta2CounterSet.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2CounterSet is not found in the empty JSON string", V1beta2CounterSet.openapiRequiredFields.toString())); } } @@ -189,19 +188,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2CounterSet.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2CounterSet` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2CounterSet` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2CounterSet.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -254,3 +253,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java index 29f23b4b10..2932de003a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -52,6 +54,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -59,7 +62,7 @@ * Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. */ @ApiModel(description = "Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2Device { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @@ -478,23 +481,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allNodes"); - openapiFields.add("allowMultipleAllocations"); - openapiFields.add("attributes"); - openapiFields.add("bindingConditions"); - openapiFields.add("bindingFailureConditions"); - openapiFields.add("bindsToNode"); - openapiFields.add("capacity"); - openapiFields.add("consumesCounters"); - openapiFields.add("name"); - openapiFields.add("nodeName"); - openapiFields.add("nodeSelector"); - openapiFields.add("taints"); + openapiFields = new HashSet(Arrays.asList("allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "name", "nodeName", "nodeSelector", "taints")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -506,7 +496,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2Device.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2Device is not found in the empty JSON string", V1beta2Device.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2Device is not found in the empty JSON string", V1beta2Device.openapiRequiredFields.toString())); } } @@ -514,31 +504,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2Device.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2Device` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2Device` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2Device.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("bindingConditions") != null && !jsonObj.get("bindingConditions").isJsonNull() && !jsonObj.get("bindingConditions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `bindingConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingConditions").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `bindingConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingConditions").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("bindingFailureConditions") != null && !jsonObj.get("bindingFailureConditions").isJsonNull() && !jsonObj.get("bindingFailureConditions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `bindingFailureConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingFailureConditions").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `bindingFailureConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingFailureConditions").toString())); } if (jsonObj.get("consumesCounters") != null && !jsonObj.get("consumesCounters").isJsonNull()) { JsonArray jsonArrayconsumesCounters = jsonObj.getAsJsonArray("consumesCounters"); if (jsonArrayconsumesCounters != null) { // ensure the json data is an array if (!jsonObj.get("consumesCounters").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `consumesCounters` to be an array in the JSON string but got `%s`", jsonObj.get("consumesCounters").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `consumesCounters` to be an array in the JSON string but got `%s`", jsonObj.get("consumesCounters").toString())); } // validate the optional field `consumesCounters` (array) @@ -548,10 +538,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); } // validate the optional field `nodeSelector` if (jsonObj.get("nodeSelector") != null && !jsonObj.get("nodeSelector").isJsonNull()) { @@ -562,7 +552,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -622,3 +612,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfiguration.java index 50b2113921..60213fff5d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfiguration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * DeviceAllocationConfiguration gets embedded in an AllocationResult. */ @ApiModel(description = "DeviceAllocationConfiguration gets embedded in an AllocationResult.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2DeviceAllocationConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) @@ -189,14 +192,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("opaque"); - openapiFields.add("requests"); - openapiFields.add("source"); + openapiFields = new HashSet(Arrays.asList("opaque", "requests", "source")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("source"); + openapiRequiredFields = new HashSet(Arrays.asList("source")); } /** @@ -208,7 +207,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2DeviceAllocationConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2DeviceAllocationConfiguration is not found in the empty JSON string", V1beta2DeviceAllocationConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2DeviceAllocationConfiguration is not found in the empty JSON string", V1beta2DeviceAllocationConfiguration.openapiRequiredFields.toString())); } } @@ -216,14 +215,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2DeviceAllocationConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2DeviceAllocationConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceAllocationConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2DeviceAllocationConfiguration.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,10 +232,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("requests") != null && !jsonObj.get("requests").isJsonNull() && !jsonObj.get("requests").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); } if (!jsonObj.get("source").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source").toString())); } } @@ -289,3 +288,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResult.java index 128c2507f8..0a49186b62 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResult.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * DeviceAllocationResult is the result of allocating devices. */ @ApiModel(description = "DeviceAllocationResult is the result of allocating devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2DeviceAllocationResult { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -171,12 +174,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("config"); - openapiFields.add("results"); + openapiFields = new HashSet(Arrays.asList("config", "results")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -188,7 +189,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2DeviceAllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2DeviceAllocationResult is not found in the empty JSON string", V1beta2DeviceAllocationResult.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2DeviceAllocationResult is not found in the empty JSON string", V1beta2DeviceAllocationResult.openapiRequiredFields.toString())); } } @@ -196,7 +197,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2DeviceAllocationResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2DeviceAllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceAllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -205,7 +206,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayconfig != null) { // ensure the json data is an array if (!jsonObj.get("config").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `config` to be an array in the JSON string but got `%s`", jsonObj.get("config").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `config` to be an array in the JSON string but got `%s`", jsonObj.get("config").toString())); } // validate the optional field `config` (array) @@ -219,7 +220,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayresults != null) { // ensure the json data is an array if (!jsonObj.get("results").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `results` to be an array in the JSON string but got `%s`", jsonObj.get("results").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `results` to be an array in the JSON string but got `%s`", jsonObj.get("results").toString())); } // validate the optional field `results` (array) @@ -279,3 +280,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttribute.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttribute.java index bf2cb6ebc6..cb7e406df6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttribute.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttribute.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * DeviceAttribute must have exactly one field set. */ @ApiModel(description = "DeviceAttribute must have exactly one field set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2DeviceAttribute { public static final String SERIALIZED_NAME_BOOL = "bool"; @SerializedName(SERIALIZED_NAME_BOOL) @@ -205,14 +208,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("bool"); - openapiFields.add("int"); - openapiFields.add("string"); - openapiFields.add("version"); + openapiFields = new HashSet(Arrays.asList("bool", "int", "string", "version")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -224,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2DeviceAttribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2DeviceAttribute is not found in the empty JSON string", V1beta2DeviceAttribute.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2DeviceAttribute is not found in the empty JSON string", V1beta2DeviceAttribute.openapiRequiredFields.toString())); } } @@ -232,15 +231,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2DeviceAttribute.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2DeviceAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceAttribute` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("string") != null && !jsonObj.get("string").isJsonNull()) && !jsonObj.get("string").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `string` to be a primitive type in the JSON string but got `%s`", jsonObj.get("string").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `string` to be a primitive type in the JSON string but got `%s`", jsonObj.get("string").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } } @@ -293,3 +292,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacity.java index 314ab94e02..ad3bd888b4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacity.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * DeviceCapacity describes a quantity associated with a device. */ @ApiModel(description = "DeviceCapacity describes a quantity associated with a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2DeviceCapacity { public static final String SERIALIZED_NAME_REQUEST_POLICY = "requestPolicy"; @SerializedName(SERIALIZED_NAME_REQUEST_POLICY) @@ -153,13 +156,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("requestPolicy"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("requestPolicy", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("value")); } /** @@ -171,7 +171,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2DeviceCapacity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2DeviceCapacity is not found in the empty JSON string", V1beta2DeviceCapacity.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2DeviceCapacity is not found in the empty JSON string", V1beta2DeviceCapacity.openapiRequiredFields.toString())); } } @@ -179,14 +179,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2DeviceCapacity.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2DeviceCapacity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceCapacity` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2DeviceCapacity.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -195,7 +195,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta2CapacityRequestPolicy.validateJsonElement(jsonObj.get("requestPolicy")); } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -248,3 +248,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaim.java index 3802cd1152..059ab52e54 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaim.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * DeviceClaim defines how to request devices with a ResourceClaim. */ @ApiModel(description = "DeviceClaim defines how to request devices with a ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2DeviceClaim { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -207,13 +210,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("config"); - openapiFields.add("constraints"); - openapiFields.add("requests"); + openapiFields = new HashSet(Arrays.asList("config", "constraints", "requests")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -225,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2DeviceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2DeviceClaim is not found in the empty JSON string", V1beta2DeviceClaim.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2DeviceClaim is not found in the empty JSON string", V1beta2DeviceClaim.openapiRequiredFields.toString())); } } @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2DeviceClaim.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2DeviceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -242,7 +242,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayconfig != null) { // ensure the json data is an array if (!jsonObj.get("config").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `config` to be an array in the JSON string but got `%s`", jsonObj.get("config").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `config` to be an array in the JSON string but got `%s`", jsonObj.get("config").toString())); } // validate the optional field `config` (array) @@ -256,7 +256,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayconstraints != null) { // ensure the json data is an array if (!jsonObj.get("constraints").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `constraints` to be an array in the JSON string but got `%s`", jsonObj.get("constraints").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `constraints` to be an array in the JSON string but got `%s`", jsonObj.get("constraints").toString())); } // validate the optional field `constraints` (array) @@ -270,7 +270,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayrequests != null) { // ensure the json data is an array if (!jsonObj.get("requests").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); } // validate the optional field `requests` (array) @@ -330,3 +330,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfiguration.java index 9fe61497db..6e37804fd2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfiguration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. */ @ApiModel(description = "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2DeviceClaimConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) @@ -162,12 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("opaque"); - openapiFields.add("requests"); + openapiFields = new HashSet(Arrays.asList("opaque", "requests")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -179,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2DeviceClaimConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2DeviceClaimConfiguration is not found in the empty JSON string", V1beta2DeviceClaimConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2DeviceClaimConfiguration is not found in the empty JSON string", V1beta2DeviceClaimConfiguration.openapiRequiredFields.toString())); } } @@ -187,7 +188,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2DeviceClaimConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2DeviceClaimConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceClaimConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -197,7 +198,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } // ensure the optional json data is an array if present if (jsonObj.get("requests") != null && !jsonObj.get("requests").isJsonNull() && !jsonObj.get("requests").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); } } @@ -250,3 +251,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClass.java index bceee788b6..257a96154c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClass.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2DeviceClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,15 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -227,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2DeviceClass.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2DeviceClass is not found in the empty JSON string", V1beta2DeviceClass.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2DeviceClass is not found in the empty JSON string", V1beta2DeviceClass.openapiRequiredFields.toString())); } } @@ -235,22 +233,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2DeviceClass.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2DeviceClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2DeviceClass.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -309,3 +307,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java index bb5c8c6707..8bc3e9ad15 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * DeviceClassConfiguration is used in DeviceClass. */ @ApiModel(description = "DeviceClassConfiguration is used in DeviceClass.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2DeviceClassConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("opaque"); + openapiFields = new HashSet(Arrays.asList("opaque")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2DeviceClassConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2DeviceClassConfiguration is not found in the empty JSON string", V1beta2DeviceClassConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2DeviceClassConfiguration is not found in the empty JSON string", V1beta2DeviceClassConfiguration.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2DeviceClassConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2DeviceClassConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceClassConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassList.java index 29b32d1e0c..8d9580eabb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * DeviceClassList is a collection of classes. */ @ApiModel(description = "DeviceClassList is a collection of classes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2DeviceClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2DeviceClassList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2DeviceClassList is not found in the empty JSON string", V1beta2DeviceClassList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2DeviceClassList is not found in the empty JSON string", V1beta2DeviceClassList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2DeviceClassList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2DeviceClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceClassList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2DeviceClassList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta2DeviceClass.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpec.java index 41a7a1d845..77f2cde16b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. */ @ApiModel(description = "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2DeviceClassSpec { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -198,13 +201,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("config"); - openapiFields.add("extendedResourceName"); - openapiFields.add("selectors"); + openapiFields = new HashSet(Arrays.asList("config", "extendedResourceName", "selectors")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -216,7 +216,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2DeviceClassSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2DeviceClassSpec is not found in the empty JSON string", V1beta2DeviceClassSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2DeviceClassSpec is not found in the empty JSON string", V1beta2DeviceClassSpec.openapiRequiredFields.toString())); } } @@ -224,7 +224,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2DeviceClassSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2DeviceClassSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceClassSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -233,7 +233,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayconfig != null) { // ensure the json data is an array if (!jsonObj.get("config").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `config` to be an array in the JSON string but got `%s`", jsonObj.get("config").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `config` to be an array in the JSON string but got `%s`", jsonObj.get("config").toString())); } // validate the optional field `config` (array) @@ -243,14 +243,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } if ((jsonObj.get("extendedResourceName") != null && !jsonObj.get("extendedResourceName").isJsonNull()) && !jsonObj.get("extendedResourceName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `extendedResourceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("extendedResourceName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `extendedResourceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("extendedResourceName").toString())); } if (jsonObj.get("selectors") != null && !jsonObj.get("selectors").isJsonNull()) { JsonArray jsonArrayselectors = jsonObj.getAsJsonArray("selectors"); if (jsonArrayselectors != null) { // ensure the json data is an array if (!jsonObj.get("selectors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); } // validate the optional field `selectors` (array) @@ -310,3 +310,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraint.java index 152f89d49b..5a9843e972 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraint.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * DeviceConstraint must have exactly one field set besides Requests. */ @ApiModel(description = "DeviceConstraint must have exactly one field set besides Requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2DeviceConstraint { public static final String SERIALIZED_NAME_DISTINCT_ATTRIBUTE = "distinctAttribute"; @SerializedName(SERIALIZED_NAME_DISTINCT_ATTRIBUTE) @@ -188,13 +191,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("distinctAttribute"); - openapiFields.add("matchAttribute"); - openapiFields.add("requests"); + openapiFields = new HashSet(Arrays.asList("distinctAttribute", "matchAttribute", "requests")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -206,7 +206,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2DeviceConstraint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2DeviceConstraint is not found in the empty JSON string", V1beta2DeviceConstraint.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2DeviceConstraint is not found in the empty JSON string", V1beta2DeviceConstraint.openapiRequiredFields.toString())); } } @@ -214,19 +214,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2DeviceConstraint.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2DeviceConstraint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceConstraint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("distinctAttribute") != null && !jsonObj.get("distinctAttribute").isJsonNull()) && !jsonObj.get("distinctAttribute").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `distinctAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("distinctAttribute").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `distinctAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("distinctAttribute").toString())); } if ((jsonObj.get("matchAttribute") != null && !jsonObj.get("matchAttribute").isJsonNull()) && !jsonObj.get("matchAttribute").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `matchAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("matchAttribute").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `matchAttribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("matchAttribute").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("requests") != null && !jsonObj.get("requests").isJsonNull() && !jsonObj.get("requests").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `requests` to be an array in the JSON string but got `%s`", jsonObj.get("requests").toString())); } } @@ -279,3 +279,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumption.java index 22b7f8ba24..0fe29c8721 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumption.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. */ @ApiModel(description = "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2DeviceCounterConsumption { public static final String SERIALIZED_NAME_COUNTER_SET = "counterSet"; @SerializedName(SERIALIZED_NAME_COUNTER_SET) @@ -162,14 +165,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("counterSet"); - openapiFields.add("counters"); + openapiFields = new HashSet(Arrays.asList("counterSet", "counters")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("counterSet"); - openapiRequiredFields.add("counters"); + openapiRequiredFields = new HashSet(Arrays.asList("counterSet", "counters")); } /** @@ -181,7 +180,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2DeviceCounterConsumption.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2DeviceCounterConsumption is not found in the empty JSON string", V1beta2DeviceCounterConsumption.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2DeviceCounterConsumption is not found in the empty JSON string", V1beta2DeviceCounterConsumption.openapiRequiredFields.toString())); } } @@ -189,19 +188,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2DeviceCounterConsumption.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2DeviceCounterConsumption` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceCounterConsumption` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2DeviceCounterConsumption.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("counterSet").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `counterSet` to be a primitive type in the JSON string but got `%s`", jsonObj.get("counterSet").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `counterSet` to be a primitive type in the JSON string but got `%s`", jsonObj.get("counterSet").toString())); } } @@ -254,3 +253,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequest.java index 5b81e14042..bce4c3961a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequest.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. With FirstAvailable it is also possible to provide a prioritized list of requests. */ @ApiModel(description = "DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. With FirstAvailable it is also possible to provide a prioritized list of requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2DeviceRequest { public static final String SERIALIZED_NAME_EXACTLY = "exactly"; @SerializedName(SERIALIZED_NAME_EXACTLY) @@ -190,14 +193,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("exactly"); - openapiFields.add("firstAvailable"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("exactly", "firstAvailable", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -209,7 +208,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2DeviceRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2DeviceRequest is not found in the empty JSON string", V1beta2DeviceRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2DeviceRequest is not found in the empty JSON string", V1beta2DeviceRequest.openapiRequiredFields.toString())); } } @@ -217,14 +216,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2DeviceRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2DeviceRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2DeviceRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -237,7 +236,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArrayfirstAvailable != null) { // ensure the json data is an array if (!jsonObj.get("firstAvailable").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `firstAvailable` to be an array in the JSON string but got `%s`", jsonObj.get("firstAvailable").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `firstAvailable` to be an array in the JSON string but got `%s`", jsonObj.get("firstAvailable").toString())); } // validate the optional field `firstAvailable` (array) @@ -247,7 +246,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -300,3 +299,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResult.java index 7891245992..2dbce1e157 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResult.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * DeviceRequestAllocationResult contains the allocation result for one request. */ @ApiModel(description = "DeviceRequestAllocationResult contains the allocation result for one request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2DeviceRequestAllocationResult { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -405,24 +408,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("adminAccess"); - openapiFields.add("bindingConditions"); - openapiFields.add("bindingFailureConditions"); - openapiFields.add("consumedCapacity"); - openapiFields.add("device"); - openapiFields.add("driver"); - openapiFields.add("pool"); - openapiFields.add("request"); - openapiFields.add("shareID"); - openapiFields.add("tolerations"); + openapiFields = new HashSet(Arrays.asList("adminAccess", "bindingConditions", "bindingFailureConditions", "consumedCapacity", "device", "driver", "pool", "request", "shareID", "tolerations")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("device"); - openapiRequiredFields.add("driver"); - openapiRequiredFields.add("pool"); - openapiRequiredFields.add("request"); + openapiRequiredFields = new HashSet(Arrays.asList("device", "driver", "pool", "request")); } /** @@ -434,7 +423,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2DeviceRequestAllocationResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2DeviceRequestAllocationResult is not found in the empty JSON string", V1beta2DeviceRequestAllocationResult.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2DeviceRequestAllocationResult is not found in the empty JSON string", V1beta2DeviceRequestAllocationResult.openapiRequiredFields.toString())); } } @@ -442,46 +431,46 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2DeviceRequestAllocationResult.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2DeviceRequestAllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceRequestAllocationResult` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2DeviceRequestAllocationResult.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("bindingConditions") != null && !jsonObj.get("bindingConditions").isJsonNull() && !jsonObj.get("bindingConditions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `bindingConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingConditions").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `bindingConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingConditions").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("bindingFailureConditions") != null && !jsonObj.get("bindingFailureConditions").isJsonNull() && !jsonObj.get("bindingFailureConditions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `bindingFailureConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingFailureConditions").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `bindingFailureConditions` to be an array in the JSON string but got `%s`", jsonObj.get("bindingFailureConditions").toString())); } if (!jsonObj.get("device").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").toString())); } if (!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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `pool` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pool").toString())); } if (!jsonObj.get("request").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `request` to be a primitive type in the JSON string but got `%s`", jsonObj.get("request").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `request` to be a primitive type in the JSON string but got `%s`", jsonObj.get("request").toString())); } if ((jsonObj.get("shareID") != null && !jsonObj.get("shareID").isJsonNull()) && !jsonObj.get("shareID").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `shareID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("shareID").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -541,3 +530,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java index 4c6fef218e..a0180533d4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * DeviceSelector must have exactly one field set. */ @ApiModel(description = "DeviceSelector must have exactly one field set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2DeviceSelector { public static final String SERIALIZED_NAME_CEL = "cel"; @SerializedName(SERIALIZED_NAME_CEL) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("cel"); + openapiFields = new HashSet(Arrays.asList("cel")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2DeviceSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2DeviceSelector is not found in the empty JSON string", V1beta2DeviceSelector.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2DeviceSelector is not found in the empty JSON string", V1beta2DeviceSelector.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2DeviceSelector.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2DeviceSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java index 78836ca016..753ce03ed3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device. */ @ApiModel(description = "DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2DeviceSubRequest { public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) @@ -307,19 +310,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allocationMode"); - openapiFields.add("capacity"); - openapiFields.add("count"); - openapiFields.add("deviceClassName"); - openapiFields.add("name"); - openapiFields.add("selectors"); - openapiFields.add("tolerations"); + openapiFields = new HashSet(Arrays.asList("allocationMode", "capacity", "count", "deviceClassName", "name", "selectors", "tolerations")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("deviceClassName"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("deviceClassName", "name")); } /** @@ -331,7 +325,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2DeviceSubRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2DeviceSubRequest is not found in the empty JSON string", V1beta2DeviceSubRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2DeviceSubRequest is not found in the empty JSON string", V1beta2DeviceSubRequest.openapiRequiredFields.toString())); } } @@ -339,36 +333,36 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2DeviceSubRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2DeviceSubRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceSubRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2DeviceSubRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allocationMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMode").toString())); } // validate the optional field `capacity` if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { V1beta2CapacityRequirements.validateJsonElement(jsonObj.get("capacity")); } if (!jsonObj.get("deviceClassName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (jsonObj.get("selectors") != null && !jsonObj.get("selectors").isJsonNull()) { JsonArray jsonArrayselectors = jsonObj.getAsJsonArray("selectors"); if (jsonArrayselectors != null) { // ensure the json data is an array if (!jsonObj.get("selectors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); } // validate the optional field `selectors` (array) @@ -382,7 +376,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -442,3 +436,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java index a16545a047..aa8553689d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. */ @ApiModel(description = "The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2DeviceTaint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) @@ -206,16 +209,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("effect", "key", "timeAdded", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("effect"); - openapiRequiredFields.add("key"); + openapiRequiredFields = new HashSet(Arrays.asList("effect", "key")); } /** @@ -227,7 +224,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2DeviceTaint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2DeviceTaint is not found in the empty JSON string", V1beta2DeviceTaint.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2DeviceTaint is not found in the empty JSON string", V1beta2DeviceTaint.openapiRequiredFields.toString())); } } @@ -235,25 +232,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2DeviceTaint.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2DeviceTaint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceTaint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2DeviceTaint.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -306,3 +303,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java index 54e5d21b9b..8f12f030de 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. */ @ApiModel(description = "The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator .") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2DeviceToleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) @@ -232,15 +235,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("effect", "key", "operator", "tolerationSeconds", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -252,7 +250,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2DeviceToleration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2DeviceToleration is not found in the empty JSON string", V1beta2DeviceToleration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2DeviceToleration is not found in the empty JSON string", V1beta2DeviceToleration.openapiRequiredFields.toString())); } } @@ -260,21 +258,21 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2DeviceToleration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2DeviceToleration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceToleration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java index bc55e661a4..64a21e187c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * ExactDeviceRequest is a request for one or more identical devices. */ @ApiModel(description = "ExactDeviceRequest is a request for one or more identical devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2ExactDeviceRequest { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -307,18 +310,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("adminAccess"); - openapiFields.add("allocationMode"); - openapiFields.add("capacity"); - openapiFields.add("count"); - openapiFields.add("deviceClassName"); - openapiFields.add("selectors"); - openapiFields.add("tolerations"); + openapiFields = new HashSet(Arrays.asList("adminAccess", "allocationMode", "capacity", "count", "deviceClassName", "selectors", "tolerations")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("deviceClassName"); + openapiRequiredFields = new HashSet(Arrays.asList("deviceClassName")); } /** @@ -330,7 +325,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2ExactDeviceRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2ExactDeviceRequest is not found in the empty JSON string", V1beta2ExactDeviceRequest.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2ExactDeviceRequest is not found in the empty JSON string", V1beta2ExactDeviceRequest.openapiRequiredFields.toString())); } } @@ -338,33 +333,33 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2ExactDeviceRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2ExactDeviceRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2ExactDeviceRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2ExactDeviceRequest.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `allocationMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMode").toString())); } // validate the optional field `capacity` if (jsonObj.get("capacity") != null && !jsonObj.get("capacity").isJsonNull()) { V1beta2CapacityRequirements.validateJsonElement(jsonObj.get("capacity")); } if (!jsonObj.get("deviceClassName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `deviceClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("deviceClassName").toString())); } if (jsonObj.get("selectors") != null && !jsonObj.get("selectors").isJsonNull()) { JsonArray jsonArrayselectors = jsonObj.getAsJsonArray("selectors"); if (jsonArrayselectors != null) { // ensure the json data is an array if (!jsonObj.get("selectors").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `selectors` to be an array in the JSON string but got `%s`", jsonObj.get("selectors").toString())); } // validate the optional field `selectors` (array) @@ -378,7 +373,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -438,3 +433,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java index b3b2bcb395..689bb3c95e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context. */ @ApiModel(description = "NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2NetworkDeviceData { public static final String SERIALIZED_NAME_HARDWARE_ADDRESS = "hardwareAddress"; @SerializedName(SERIALIZED_NAME_HARDWARE_ADDRESS) @@ -188,13 +191,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("hardwareAddress"); - openapiFields.add("interfaceName"); - openapiFields.add("ips"); + openapiFields = new HashSet(Arrays.asList("hardwareAddress", "interfaceName", "ips")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -206,7 +206,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2NetworkDeviceData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2NetworkDeviceData is not found in the empty JSON string", V1beta2NetworkDeviceData.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2NetworkDeviceData is not found in the empty JSON string", V1beta2NetworkDeviceData.openapiRequiredFields.toString())); } } @@ -214,19 +214,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2NetworkDeviceData.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2NetworkDeviceData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2NetworkDeviceData` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("hardwareAddress") != null && !jsonObj.get("hardwareAddress").isJsonNull()) && !jsonObj.get("hardwareAddress").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `hardwareAddress` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hardwareAddress").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `hardwareAddress` to be a primitive type in the JSON string but got `%s`", jsonObj.get("hardwareAddress").toString())); } if ((jsonObj.get("interfaceName") != null && !jsonObj.get("interfaceName").isJsonNull()) && !jsonObj.get("interfaceName").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `interfaceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interfaceName").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `interfaceName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interfaceName").toString())); } // ensure the optional json data is an array if present if (jsonObj.get("ips") != null && !jsonObj.get("ips").isJsonNull() && !jsonObj.get("ips").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `ips` to be an array in the JSON string but got `%s`", jsonObj.get("ips").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ips` to be an array in the JSON string but got `%s`", jsonObj.get("ips").toString())); } } @@ -279,3 +279,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java index 226182b9f7..924e51b270 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. */ @ApiModel(description = "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2OpaqueDeviceConfiguration { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) @@ -151,14 +154,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("driver"); - openapiFields.add("parameters"); + openapiFields = new HashSet(Arrays.asList("driver", "parameters")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("driver"); - openapiRequiredFields.add("parameters"); + openapiRequiredFields = new HashSet(Arrays.asList("driver", "parameters")); } /** @@ -170,7 +169,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2OpaqueDeviceConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2OpaqueDeviceConfiguration is not found in the empty JSON string", V1beta2OpaqueDeviceConfiguration.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2OpaqueDeviceConfiguration is not found in the empty JSON string", V1beta2OpaqueDeviceConfiguration.openapiRequiredFields.toString())); } } @@ -178,19 +177,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2OpaqueDeviceConfiguration.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2OpaqueDeviceConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2OpaqueDeviceConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2OpaqueDeviceConfiguration.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").toString())); } } @@ -243,3 +242,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java index cff7730461..962e0b9c56 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2ResourceClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,16 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -256,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2ResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2ResourceClaim is not found in the empty JSON string", V1beta2ResourceClaim.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2ResourceClaim is not found in the empty JSON string", V1beta2ResourceClaim.openapiRequiredFields.toString())); } } @@ -264,22 +261,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2ResourceClaim.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2ResourceClaim.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -342,3 +339,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java index b5822b8ef1..9692bd134b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * 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. */ @ApiModel(description = "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2ResourceClaimConsumerReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) @@ -205,17 +208,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiGroup", "name", "resource", "uid")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("resource"); - openapiRequiredFields.add("uid"); + openapiRequiredFields = new HashSet(Arrays.asList("name", "resource", "uid")); } /** @@ -227,7 +223,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2ResourceClaimConsumerReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2ResourceClaimConsumerReference is not found in the empty JSON string", V1beta2ResourceClaimConsumerReference.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2ResourceClaimConsumerReference is not found in the empty JSON string", V1beta2ResourceClaimConsumerReference.openapiRequiredFields.toString())); } } @@ -235,28 +231,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2ResourceClaimConsumerReference.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaimConsumerReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaimConsumerReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2ResourceClaimConsumerReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `uid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uid").toString())); } } @@ -309,3 +305,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimList.java index d07df78113..af6c38a6a6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ResourceClaimList is a collection of claims. */ @ApiModel(description = "ResourceClaimList is a collection of claims.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2ResourceClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2ResourceClaimList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2ResourceClaimList is not found in the empty JSON string", V1beta2ResourceClaimList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2ResourceClaimList is not found in the empty JSON string", V1beta2ResourceClaimList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2ResourceClaimList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaimList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaimList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2ResourceClaimList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta2ResourceClaim.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpec.java index 34b09c4c23..e28668d112 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. */ @ApiModel(description = "ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2ResourceClaimSpec { public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) @@ -125,11 +128,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("devices"); + openapiFields = new HashSet(Arrays.asList("devices")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -141,7 +143,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2ResourceClaimSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2ResourceClaimSpec is not found in the empty JSON string", V1beta2ResourceClaimSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2ResourceClaimSpec is not found in the empty JSON string", V1beta2ResourceClaimSpec.openapiRequiredFields.toString())); } } @@ -149,7 +151,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2ResourceClaimSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaimSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaimSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,3 +210,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatus.java index f6b16ec28e..b86ce31a91 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatus.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. */ @ApiModel(description = "ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2ResourceClaimStatus { public static final String SERIALIZED_NAME_ALLOCATION = "allocation"; @SerializedName(SERIALIZED_NAME_ALLOCATION) @@ -199,13 +202,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allocation"); - openapiFields.add("devices"); - openapiFields.add("reservedFor"); + openapiFields = new HashSet(Arrays.asList("allocation", "devices", "reservedFor")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -217,7 +217,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2ResourceClaimStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2ResourceClaimStatus is not found in the empty JSON string", V1beta2ResourceClaimStatus.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2ResourceClaimStatus is not found in the empty JSON string", V1beta2ResourceClaimStatus.openapiRequiredFields.toString())); } } @@ -225,7 +225,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2ResourceClaimStatus.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -238,7 +238,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydevices != null) { // ensure the json data is an array if (!jsonObj.get("devices").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `devices` to be an array in the JSON string but got `%s`", jsonObj.get("devices").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `devices` to be an array in the JSON string but got `%s`", jsonObj.get("devices").toString())); } // validate the optional field `devices` (array) @@ -252,7 +252,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -312,3 +312,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplate.java index f0f7de19a4..0cda01612f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplate.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2ResourceClaimTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,15 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -227,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2ResourceClaimTemplate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2ResourceClaimTemplate is not found in the empty JSON string", V1beta2ResourceClaimTemplate.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2ResourceClaimTemplate is not found in the empty JSON string", V1beta2ResourceClaimTemplate.openapiRequiredFields.toString())); } } @@ -235,22 +233,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2ResourceClaimTemplate.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaimTemplate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaimTemplate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2ResourceClaimTemplate.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -309,3 +307,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java index d0cbb29ab7..adea09b940 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ResourceClaimTemplateList is a collection of claim templates. */ @ApiModel(description = "ResourceClaimTemplateList is a collection of claim templates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2ResourceClaimTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2ResourceClaimTemplateList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2ResourceClaimTemplateList is not found in the empty JSON string", V1beta2ResourceClaimTemplateList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2ResourceClaimTemplateList is not found in the empty JSON string", V1beta2ResourceClaimTemplateList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2ResourceClaimTemplateList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaimTemplateList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaimTemplateList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2ResourceClaimTemplateList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta2ResourceClaimTemplate.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpec.java index c9c77d1cce..50d854375c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. */ @ApiModel(description = "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2ResourceClaimTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) @@ -153,13 +156,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("metadata"); - openapiFields.add("spec"); + openapiFields = new HashSet(Arrays.asList("metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -171,7 +171,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2ResourceClaimTemplateSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2ResourceClaimTemplateSpec is not found in the empty JSON string", V1beta2ResourceClaimTemplateSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2ResourceClaimTemplateSpec is not found in the empty JSON string", V1beta2ResourceClaimTemplateSpec.openapiRequiredFields.toString())); } } @@ -179,14 +179,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2ResourceClaimTemplateSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaimTemplateSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2ResourceClaimTemplateSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2ResourceClaimTemplateSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -247,3 +247,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java index 910ab25316..1191901b3c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * ResourcePool describes the pool that ResourceSlices belong to. */ @ApiModel(description = "ResourcePool describes the pool that ResourceSlices belong to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2ResourcePool { public static final String SERIALIZED_NAME_GENERATION = "generation"; @SerializedName(SERIALIZED_NAME_GENERATION) @@ -178,16 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("generation"); - openapiFields.add("name"); - openapiFields.add("resourceSliceCount"); + openapiFields = new HashSet(Arrays.asList("generation", "name", "resourceSliceCount")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("generation"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("resourceSliceCount"); + openapiRequiredFields = new HashSet(Arrays.asList("generation", "name", "resourceSliceCount")); } /** @@ -199,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2ResourcePool.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2ResourcePool is not found in the empty JSON string", V1beta2ResourcePool.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2ResourcePool is not found in the empty JSON string", V1beta2ResourcePool.openapiRequiredFields.toString())); } } @@ -207,19 +204,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2ResourcePool.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2ResourcePool` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2ResourcePool` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2ResourcePool.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -272,3 +269,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java index 7b0e7047c2..febc62cfe5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>. Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple , , . Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2ResourceSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -207,15 +210,10 @@ private String toIndentedString(Object o) { 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 = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("spec"); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -227,7 +225,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2ResourceSlice.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2ResourceSlice is not found in the empty JSON string", V1beta2ResourceSlice.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2ResourceSlice is not found in the empty JSON string", V1beta2ResourceSlice.openapiRequiredFields.toString())); } } @@ -235,22 +233,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2ResourceSlice.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2ResourceSlice` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2ResourceSlice` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2ResourceSlice.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -309,3 +307,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java index 629fac25c8..364b6e6f84 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * ResourceSliceList is a collection of ResourceSlices. */ @ApiModel(description = "ResourceSliceList is a collection of ResourceSlices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2ResourceSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2ResourceSliceList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2ResourceSliceList is not found in the empty JSON string", V1beta2ResourceSliceList.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2ResourceSliceList is not found in the empty JSON string", V1beta2ResourceSliceList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2ResourceSliceList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2ResourceSliceList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2ResourceSliceList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2ResourceSliceList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1beta2ResourceSlice.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java index 6ffa1a46da..ceac2ce410 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -49,6 +51,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -56,7 +59,7 @@ * ResourceSliceSpec contains the information published by the driver in one ResourceSlice. */ @ApiModel(description = "ResourceSliceSpec contains the information published by the driver in one ResourceSlice.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V1beta2ResourceSliceSpec { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @@ -335,20 +338,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("allNodes"); - openapiFields.add("devices"); - openapiFields.add("driver"); - openapiFields.add("nodeName"); - openapiFields.add("nodeSelector"); - openapiFields.add("perDeviceNodeSelection"); - openapiFields.add("pool"); - openapiFields.add("sharedCounters"); + openapiFields = new HashSet(Arrays.asList("allNodes", "devices", "driver", "nodeName", "nodeSelector", "perDeviceNodeSelection", "pool", "sharedCounters")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("driver"); - openapiRequiredFields.add("pool"); + openapiRequiredFields = new HashSet(Arrays.asList("driver", "pool")); } /** @@ -360,7 +353,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V1beta2ResourceSliceSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format("The required field(s) %s in V1beta2ResourceSliceSpec is not found in the empty JSON string", V1beta2ResourceSliceSpec.openapiRequiredFields.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V1beta2ResourceSliceSpec is not found in the empty JSON string", V1beta2ResourceSliceSpec.openapiRequiredFields.toString())); } } @@ -368,14 +361,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { if (!V1beta2ResourceSliceSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `V1beta2ResourceSliceSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2ResourceSliceSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V1beta2ResourceSliceSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -384,7 +377,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraydevices != null) { // ensure the json data is an array if (!jsonObj.get("devices").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `devices` to be an array in the JSON string but got `%s`", jsonObj.get("devices").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `devices` to be an array in the JSON string but got `%s`", jsonObj.get("devices").toString())); } // validate the optional field `devices` (array) @@ -394,10 +387,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); } // validate the optional field `nodeSelector` if (jsonObj.get("nodeSelector") != null && !jsonObj.get("nodeSelector").isJsonNull()) { @@ -410,7 +403,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonArraysharedCounters != null) { // ensure the json data is an array if (!jsonObj.get("sharedCounters").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `sharedCounters` to be an array in the JSON string but got `%s`", jsonObj.get("sharedCounters").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `sharedCounters` to be an array in the JSON string but got `%s`", jsonObj.get("sharedCounters").toString())); } // validate the optional field `sharedCounters` (array) @@ -470,3 +463,4 @@ 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 1ee7bd7fab..df7ed54614 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2ContainerResourceMetricSource { public static final String SERIALIZED_NAME_CONTAINER = "container"; @SerializedName(SERIALIZED_NAME_CONTAINER) @@ -179,16 +182,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("container"); - openapiFields.add("name"); - openapiFields.add("target"); + openapiFields = new HashSet(Arrays.asList("container", "name", "target")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("container"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("target"); + openapiRequiredFields = new HashSet(Arrays.asList("container", "name", "target")); } /** @@ -200,7 +197,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2ContainerResourceMetricSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2ContainerResourceMetricSource is not found in the empty JSON string", V2ContainerResourceMetricSource.openapiRequiredFields.toString())); } } @@ -208,22 +205,22 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2ContainerResourceMetricSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2ContainerResourceMetricSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("target")); @@ -278,3 +275,4 @@ 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 d4c087f63b..7e0e429604 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2ContainerResourceMetricStatus { public static final String SERIALIZED_NAME_CONTAINER = "container"; @SerializedName(SERIALIZED_NAME_CONTAINER) @@ -179,16 +182,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("container"); - openapiFields.add("current"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("container", "current", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("container"); - openapiRequiredFields.add("current"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("container", "current", "name")); } /** @@ -200,7 +197,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2ContainerResourceMetricStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2ContainerResourceMetricStatus is not found in the empty JSON string", V2ContainerResourceMetricStatus.openapiRequiredFields.toString())); } } @@ -208,24 +205,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2ContainerResourceMetricStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2ContainerResourceMetricStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -278,3 +275,4 @@ 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 208821adf2..ac1dd504ff 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * CrossVersionObjectReference contains enough information to let you identify the referred resource. */ @ApiModel(description = "CrossVersionObjectReference contains enough information to let you identify the referred resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -178,15 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("apiVersion"); - openapiFields.add("kind"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("kind"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("kind", "name")); } /** @@ -198,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2CrossVersionObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2CrossVersionObjectReference is not found in the empty JSON string", V2CrossVersionObjectReference.openapiRequiredFields.toString())); } } @@ -206,25 +204,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2CrossVersionObjectReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2CrossVersionObjectReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -277,3 +275,4 @@ 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 e42cc83b74..1004decdad 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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). */ @ApiModel(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).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2ExternalMetricSource { public static final String SERIALIZED_NAME_METRIC = "metric"; @SerializedName(SERIALIZED_NAME_METRIC) @@ -153,14 +156,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("metric"); - openapiFields.add("target"); + openapiFields = new HashSet(Arrays.asList("metric", "target")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("metric"); - openapiRequiredFields.add("target"); + openapiRequiredFields = new HashSet(Arrays.asList("metric", "target")); } /** @@ -172,7 +171,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2ExternalMetricSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2ExternalMetricSource is not found in the empty JSON string", V2ExternalMetricSource.openapiRequiredFields.toString())); } } @@ -180,14 +179,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2ExternalMetricSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2ExternalMetricSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -246,3 +245,4 @@ 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 2379ed42a6..4020726f49 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object. */ @ApiModel(description = "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2ExternalMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; @SerializedName(SERIALIZED_NAME_CURRENT) @@ -153,14 +156,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("current"); - openapiFields.add("metric"); + openapiFields = new HashSet(Arrays.asList("current", "metric")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("current"); - openapiRequiredFields.add("metric"); + openapiRequiredFields = new HashSet(Arrays.asList("current", "metric")); } /** @@ -172,7 +171,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2ExternalMetricStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2ExternalMetricStatus is not found in the empty JSON string", V2ExternalMetricStatus.openapiRequiredFields.toString())); } } @@ -180,14 +179,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2ExternalMetricStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2ExternalMetricStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -246,3 +245,4 @@ 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 bd08fefb94..aa7bbc8b28 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * HPAScalingPolicy is a single policy which must hold true for a specified past interval. */ @ApiModel(description = "HPAScalingPolicy is a single policy which must hold true for a specified past interval.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2HPAScalingPolicy { public static final String SERIALIZED_NAME_PERIOD_SECONDS = "periodSeconds"; @SerializedName(SERIALIZED_NAME_PERIOD_SECONDS) @@ -178,16 +181,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("periodSeconds"); - openapiFields.add("type"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("periodSeconds", "type", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("periodSeconds"); - openapiRequiredFields.add("type"); - openapiRequiredFields.add("value"); + openapiRequiredFields = new HashSet(Arrays.asList("periodSeconds", "type", "value")); } /** @@ -199,7 +196,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2HPAScalingPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2HPAScalingPolicy is not found in the empty JSON string", V2HPAScalingPolicy.openapiRequiredFields.toString())); } } @@ -207,19 +204,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2HPAScalingPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2HPAScalingPolicy.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -272,3 +269,4 @@ 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 5083228db4..9abc607c7b 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance. Scaling Policy Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires enabling the alpha HPAConfigurableTolerance feature gate.) */ @ApiModel(description = "HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance. Scaling Policy Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires enabling the alpha HPAConfigurableTolerance feature gate.)") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2HPAScalingRules { public static final String SERIALIZED_NAME_POLICIES = "policies"; @SerializedName(SERIALIZED_NAME_POLICIES) @@ -217,14 +220,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("policies"); - openapiFields.add("selectPolicy"); - openapiFields.add("stabilizationWindowSeconds"); - openapiFields.add("tolerance"); + openapiFields = new HashSet(Arrays.asList("policies", "selectPolicy", "stabilizationWindowSeconds", "tolerance")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -236,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2HPAScalingRules.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2HPAScalingRules is not found in the empty JSON string", V2HPAScalingRules.openapiRequiredFields.toString())); } } @@ -244,7 +243,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2HPAScalingRules` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -253,7 +252,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -263,10 +262,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `selectPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("selectPolicy").toString())); } if ((jsonObj.get("tolerance") != null && !jsonObj.get("tolerance").isJsonNull()) && !jsonObj.get("tolerance").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `tolerance` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tolerance").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `tolerance` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tolerance").toString())); } } @@ -319,3 +318,4 @@ 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 d13e46ad00..858fd477ed 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -235,15 +238,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -255,7 +253,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2HorizontalPodAutoscaler.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2HorizontalPodAutoscaler is not found in the empty JSON string", V2HorizontalPodAutoscaler.openapiRequiredFields.toString())); } } @@ -263,15 +261,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2HorizontalPodAutoscaler` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -336,3 +334,4 @@ 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 a768373048..f46af5d332 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). */ @ApiModel(description = "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2HorizontalPodAutoscalerBehavior { public static final String SERIALIZED_NAME_SCALE_DOWN = "scaleDown"; @SerializedName(SERIALIZED_NAME_SCALE_DOWN) @@ -152,12 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("scaleDown"); - openapiFields.add("scaleUp"); + openapiFields = new HashSet(Arrays.asList("scaleDown", "scaleUp")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -169,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2HorizontalPodAutoscalerBehavior.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2HorizontalPodAutoscalerBehavior is not found in the empty JSON string", V2HorizontalPodAutoscalerBehavior.openapiRequiredFields.toString())); } } @@ -177,7 +178,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2HorizontalPodAutoscalerBehavior` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -240,3 +241,4 @@ 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 22f1ddd92b..fac353196d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point. */ @ApiModel(description = "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2HorizontalPodAutoscalerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -233,17 +236,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("lastTransitionTime", "message", "reason", "status", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("status"); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("status", "type")); } /** @@ -255,7 +251,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2HorizontalPodAutoscalerCondition.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2HorizontalPodAutoscalerCondition is not found in the empty JSON string", V2HorizontalPodAutoscalerCondition.openapiRequiredFields.toString())); } } @@ -263,28 +259,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2HorizontalPodAutoscalerCondition` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2HorizontalPodAutoscalerCondition.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -337,3 +333,4 @@ 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 300c53b4c0..db60d0baa9 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -47,6 +49,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -54,7 +57,7 @@ * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. */ @ApiModel(description = "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -217,15 +220,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("items"); + openapiRequiredFields = new HashSet(Arrays.asList("items")); } /** @@ -237,7 +235,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2HorizontalPodAutoscalerList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2HorizontalPodAutoscalerList is not found in the empty JSON string", V2HorizontalPodAutoscalerList.openapiRequiredFields.toString())); } } @@ -245,23 +243,23 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2HorizontalPodAutoscalerList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2HorizontalPodAutoscalerList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); @@ -270,7 +268,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V2HorizontalPodAutoscaler.validateJsonElement(jsonArrayitems.get(i)); }; 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -327,3 +325,4 @@ 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 3cb28fbe83..beabd3831d 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. */ @ApiModel(description = "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_BEHAVIOR = "behavior"; @SerializedName(SERIALIZED_NAME_BEHAVIOR) @@ -245,17 +248,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("behavior", "maxReplicas", "metrics", "minReplicas", "scaleTargetRef")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("maxReplicas"); - openapiRequiredFields.add("scaleTargetRef"); + openapiRequiredFields = new HashSet(Arrays.asList("maxReplicas", "scaleTargetRef")); } /** @@ -267,7 +263,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2HorizontalPodAutoscalerSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2HorizontalPodAutoscalerSpec is not found in the empty JSON string", V2HorizontalPodAutoscalerSpec.openapiRequiredFields.toString())); } } @@ -275,14 +271,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2HorizontalPodAutoscalerSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2HorizontalPodAutoscalerSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -295,7 +291,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -357,3 +353,4 @@ 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 c2d815d6ef..f0a31bfccc 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. */ @ApiModel(description = "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -280,17 +283,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("conditions", "currentMetrics", "currentReplicas", "desiredReplicas", "lastScaleTime", "observedGeneration")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("desiredReplicas"); + openapiRequiredFields = new HashSet(Arrays.asList("desiredReplicas")); } /** @@ -302,7 +298,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2HorizontalPodAutoscalerStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2HorizontalPodAutoscalerStatus is not found in the empty JSON string", V2HorizontalPodAutoscalerStatus.openapiRequiredFields.toString())); } } @@ -310,14 +306,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2HorizontalPodAutoscalerStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2HorizontalPodAutoscalerStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -326,7 +322,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -340,7 +336,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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) @@ -400,3 +396,4 @@ 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 00c5d8b174..e07a9cd72b 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * MetricIdentifier defines the name and optionally selector for a metric */ @ApiModel(description = "MetricIdentifier defines the name and optionally selector for a metric") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2MetricIdentifier { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -152,13 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("selector"); + openapiFields = new HashSet(Arrays.asList("name", "selector")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("name")); } /** @@ -170,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2MetricIdentifier.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2MetricIdentifier is not found in the empty JSON string", V2MetricIdentifier.openapiRequiredFields.toString())); } } @@ -178,19 +178,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2MetricIdentifier` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2MetricIdentifier.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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()) { @@ -247,3 +247,4 @@ 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 c1b2b6188e..8e957ed452 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). */ @ApiModel(description = "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2MetricSpec { public static final String SERIALIZED_NAME_CONTAINER_RESOURCE = "containerResource"; @SerializedName(SERIALIZED_NAME_CONTAINER_RESOURCE) @@ -264,17 +267,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("containerResource", "external", "object", "pods", "resource", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -286,7 +282,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2MetricSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2MetricSpec is not found in the empty JSON string", V2MetricSpec.openapiRequiredFields.toString())); } } @@ -294,14 +290,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2MetricSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2MetricSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -326,7 +322,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V2ResourceMetricSource.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -379,3 +375,4 @@ 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 6afe2a8d4f..786c7db3f2 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -48,6 +50,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -55,7 +58,7 @@ * MetricStatus describes the last-read state of a single metric. */ @ApiModel(description = "MetricStatus describes the last-read state of a single metric.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2MetricStatus { public static final String SERIALIZED_NAME_CONTAINER_RESOURCE = "containerResource"; @SerializedName(SERIALIZED_NAME_CONTAINER_RESOURCE) @@ -264,17 +267,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("containerResource", "external", "object", "pods", "resource", "type")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -286,7 +282,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2MetricStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2MetricStatus is not found in the empty JSON string", V2MetricStatus.openapiRequiredFields.toString())); } } @@ -294,14 +290,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2MetricStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2MetricStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -326,7 +322,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V2ResourceMetricStatus.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } } @@ -379,3 +375,4 @@ 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 a4a0a16ab4..5a5d2b6d5e 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * MetricTarget defines the target value, average value, or average utilization of a specific metric */ @ApiModel(description = "MetricTarget defines the target value, average value, or average utilization of a specific metric") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2MetricTarget { public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; @SerializedName(SERIALIZED_NAME_AVERAGE_UTILIZATION) @@ -206,15 +209,10 @@ private String toIndentedString(Object o) { 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"); + openapiFields = new HashSet(Arrays.asList("averageUtilization", "averageValue", "type", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("type"); + openapiRequiredFields = new HashSet(Arrays.asList("type")); } /** @@ -226,7 +224,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2MetricTarget.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2MetricTarget is not found in the empty JSON string", V2MetricTarget.openapiRequiredFields.toString())); } } @@ -234,25 +232,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2MetricTarget` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2MetricTarget.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -305,3 +303,4 @@ 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 af2a1a43f7..9efcde31b2 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * MetricValueStatus holds the current value for a metric */ @ApiModel(description = "MetricValueStatus holds the current value for a metric") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2MetricValueStatus { public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; @SerializedName(SERIALIZED_NAME_AVERAGE_UTILIZATION) @@ -179,13 +182,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("averageUtilization"); - openapiFields.add("averageValue"); - openapiFields.add("value"); + openapiFields = new HashSet(Arrays.asList("averageUtilization", "averageValue", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); + openapiRequiredFields = new HashSet(0); } /** @@ -197,7 +197,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2MetricValueStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2MetricValueStatus is not found in the empty JSON string", V2MetricValueStatus.openapiRequiredFields.toString())); } } @@ -205,15 +205,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2MetricValueStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -266,3 +266,4 @@ 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 272d7d074f..d1e11dd9e1 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). */ @ApiModel(description = "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2ObjectMetricSource { public static final String SERIALIZED_NAME_DESCRIBED_OBJECT = "describedObject"; @SerializedName(SERIALIZED_NAME_DESCRIBED_OBJECT) @@ -181,16 +184,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("describedObject"); - openapiFields.add("metric"); - openapiFields.add("target"); + openapiFields = new HashSet(Arrays.asList("describedObject", "metric", "target")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("describedObject"); - openapiRequiredFields.add("metric"); - openapiRequiredFields.add("target"); + openapiRequiredFields = new HashSet(Arrays.asList("describedObject", "metric", "target")); } /** @@ -202,7 +199,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2ObjectMetricSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2ObjectMetricSource is not found in the empty JSON string", V2ObjectMetricSource.openapiRequiredFields.toString())); } } @@ -210,14 +207,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2ObjectMetricSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2ObjectMetricSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -278,3 +275,4 @@ 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 231dc6cab7..8665176475 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,6 +48,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -53,7 +56,7 @@ * ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). */ @ApiModel(description = "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2ObjectMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; @SerializedName(SERIALIZED_NAME_CURRENT) @@ -181,16 +184,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("current"); - openapiFields.add("describedObject"); - openapiFields.add("metric"); + openapiFields = new HashSet(Arrays.asList("current", "describedObject", "metric")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("current"); - openapiRequiredFields.add("describedObject"); - openapiRequiredFields.add("metric"); + openapiRequiredFields = new HashSet(Arrays.asList("current", "describedObject", "metric")); } /** @@ -202,7 +199,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2ObjectMetricStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2ObjectMetricStatus is not found in the empty JSON string", V2ObjectMetricStatus.openapiRequiredFields.toString())); } } @@ -210,14 +207,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2ObjectMetricStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2ObjectMetricStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -278,3 +275,4 @@ 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 ad4e5d2519..d4e5d9ab43 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2PodsMetricSource { public static final String SERIALIZED_NAME_METRIC = "metric"; @SerializedName(SERIALIZED_NAME_METRIC) @@ -153,14 +156,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("metric"); - openapiFields.add("target"); + openapiFields = new HashSet(Arrays.asList("metric", "target")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("metric"); - openapiRequiredFields.add("target"); + openapiRequiredFields = new HashSet(Arrays.asList("metric", "target")); } /** @@ -172,7 +171,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2PodsMetricSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2PodsMetricSource is not found in the empty JSON string", V2PodsMetricSource.openapiRequiredFields.toString())); } } @@ -180,14 +179,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2PodsMetricSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2PodsMetricSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -246,3 +245,4 @@ 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 5bdd8253ea..ee47ee68e8 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,6 +47,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -52,7 +55,7 @@ * PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). */ @ApiModel(description = "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2PodsMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; @SerializedName(SERIALIZED_NAME_CURRENT) @@ -153,14 +156,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("current"); - openapiFields.add("metric"); + openapiFields = new HashSet(Arrays.asList("current", "metric")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("current"); - openapiRequiredFields.add("metric"); + openapiRequiredFields = new HashSet(Arrays.asList("current", "metric")); } /** @@ -172,7 +171,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2PodsMetricStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2PodsMetricStatus is not found in the empty JSON string", V2PodsMetricStatus.openapiRequiredFields.toString())); } } @@ -180,14 +179,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2PodsMetricStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2PodsMetricStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -246,3 +245,4 @@ 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 a76b09d3ad..2cf3930544 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2ResourceMetricSource { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -152,14 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("name"); - openapiFields.add("target"); + openapiFields = new HashSet(Arrays.asList("name", "target")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("target"); + openapiRequiredFields = new HashSet(Arrays.asList("name", "target")); } /** @@ -171,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2ResourceMetricSource.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2ResourceMetricSource is not found in the empty JSON string", V2ResourceMetricSource.openapiRequiredFields.toString())); } } @@ -179,19 +178,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2ResourceMetricSource` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2ResourceMetricSource.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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.validateJsonElement(jsonObj.get("target")); @@ -246,3 +245,4 @@ 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 7f35c22955..430d555b20 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -44,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -51,7 +54,7 @@ * 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. */ @ApiModel(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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class V2ResourceMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; @SerializedName(SERIALIZED_NAME_CURRENT) @@ -152,14 +155,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("current"); - openapiFields.add("name"); + openapiFields = new HashSet(Arrays.asList("current", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("current"); - openapiRequiredFields.add("name"); + openapiRequiredFields = new HashSet(Arrays.asList("current", "name")); } /** @@ -171,7 +170,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!V2ResourceMetricStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in V2ResourceMetricStatus is not found in the empty JSON string", V2ResourceMetricStatus.openapiRequiredFields.toString())); } } @@ -179,21 +178,21 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2ResourceMetricStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : V2ResourceMetricStatus.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the required field `current` V2MetricValueStatus.validateJsonElement(jsonObj.get("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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -246,3 +245,4 @@ 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 9a7a86a343..4972463472 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 @@ -1,18 +1,20 @@ /* -Copyright 2025 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. -*/ + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: release-1.34 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package io.kubernetes.client.openapi.models; import java.util.Objects; +import java.util.Locale; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.Locale; import io.kubernetes.client.openapi.JSON; @@ -50,7 +53,7 @@ * Info contains versioning information. how we'll want to distribute that information. */ @ApiModel(description = "Info contains versioning information. how we'll want to distribute that information.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-09-11T18:00:16.154662Z[Etc/UTC]", comments = "Generator version: 7.13.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") public class VersionInfo { public static final String SERIALIZED_NAME_BUILD_DATE = "buildDate"; @SerializedName(SERIALIZED_NAME_BUILD_DATE) @@ -448,32 +451,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("buildDate"); - openapiFields.add("compiler"); - openapiFields.add("emulationMajor"); - openapiFields.add("emulationMinor"); - openapiFields.add("gitCommit"); - openapiFields.add("gitTreeState"); - openapiFields.add("gitVersion"); - openapiFields.add("goVersion"); - openapiFields.add("major"); - openapiFields.add("minCompatibilityMajor"); - openapiFields.add("minCompatibilityMinor"); - openapiFields.add("minor"); - openapiFields.add("platform"); + openapiFields = new HashSet(Arrays.asList("buildDate", "compiler", "emulationMajor", "emulationMinor", "gitCommit", "gitTreeState", "gitVersion", "goVersion", "major", "minCompatibilityMajor", "minCompatibilityMinor", "minor", "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"); + openapiRequiredFields = new HashSet(Arrays.asList("buildDate", "compiler", "gitCommit", "gitTreeState", "gitVersion", "goVersion", "major", "minor", "platform")); } /** @@ -485,7 +466,7 @@ private String toIndentedString(Object o) { public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VersionInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field(s) %s in VersionInfo is not found in the empty JSON string", VersionInfo.openapiRequiredFields.toString())); } } @@ -493,55 +474,55 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // check to see if the JSON string contains additional fields for (Map.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(), jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The field `%s` in the JSON string is not defined in the `VersionInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : VersionInfo.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `compiler` to be a primitive type in the JSON string but got `%s`", jsonObj.get("compiler").toString())); } if ((jsonObj.get("emulationMajor") != null && !jsonObj.get("emulationMajor").isJsonNull()) && !jsonObj.get("emulationMajor").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `emulationMajor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("emulationMajor").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `emulationMajor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("emulationMajor").toString())); } if ((jsonObj.get("emulationMinor") != null && !jsonObj.get("emulationMinor").isJsonNull()) && !jsonObj.get("emulationMinor").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `emulationMinor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("emulationMinor").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `emulationMinor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("emulationMinor").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `major` to be a primitive type in the JSON string but got `%s`", jsonObj.get("major").toString())); } if ((jsonObj.get("minCompatibilityMajor") != null && !jsonObj.get("minCompatibilityMajor").isJsonNull()) && !jsonObj.get("minCompatibilityMajor").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minCompatibilityMajor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minCompatibilityMajor").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `minCompatibilityMajor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minCompatibilityMajor").toString())); } if ((jsonObj.get("minCompatibilityMinor") != null && !jsonObj.get("minCompatibilityMinor").isJsonNull()) && !jsonObj.get("minCompatibilityMinor").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `minCompatibilityMinor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minCompatibilityMinor").toString())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `minCompatibilityMinor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("minCompatibilityMinor").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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "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())); + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `platform` to be a primitive type in the JSON string but got `%s`", jsonObj.get("platform").toString())); } } @@ -594,3 +575,4 @@ public String toJson() { return JSON.getGson().toJson(this); } } + From 9f8f9032119d4ce4a875e6e6075d52da9160b4a6 Mon Sep 17 00:00:00 2001 From: Kubernetes Publisher Date: Fri, 21 Nov 2025 03:26:17 +0000 Subject: [PATCH 2/4] Automated proto generation from release-1.34 Signed-off-by: Kubernetes Publisher --- .../java/io/kubernetes/client/proto/V1.java | 1479 +++++++++++++---- 1 file changed, 1125 insertions(+), 354 deletions(-) diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1.java b/proto/src/main/java/io/kubernetes/client/proto/V1.java index 8d97d905af..4e92fa675c 100644 --- a/proto/src/main/java/io/kubernetes/client/proto/V1.java +++ b/proto/src/main/java/io/kubernetes/client/proto/V1.java @@ -261401,6 +261401,117 @@ io.kubernetes.client.proto.V1.PodResourceClaimStatusOrBuilder getResourceClaimSt * optional .k8s.io.api.core.v1.PodExtendedResourceClaimStatus extendedResourceClaimStatus = 18; */ io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatusOrBuilder getExtendedResourceClaimStatusOrBuilder(); + + /** + *
+     * AllocatedResources is the total requests allocated for this pod by the node.
+     * If pod-level requests are not set, this will be the total requests aggregated
+     * across containers in the pod.
+     * +featureGate=InPlacePodLevelResourcesVerticalScaling
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + int getAllocatedResourcesCount(); + /** + *
+     * AllocatedResources is the total requests allocated for this pod by the node.
+     * If pod-level requests are not set, this will be the total requests aggregated
+     * across containers in the pod.
+     * +featureGate=InPlacePodLevelResourcesVerticalScaling
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + boolean containsAllocatedResources( + java.lang.String key); + /** + * Use {@link #getAllocatedResourcesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAllocatedResources(); + /** + *
+     * AllocatedResources is the total requests allocated for this pod by the node.
+     * If pod-level requests are not set, this will be the total requests aggregated
+     * across containers in the pod.
+     * +featureGate=InPlacePodLevelResourcesVerticalScaling
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + java.util.Map + getAllocatedResourcesMap(); + /** + *
+     * AllocatedResources is the total requests allocated for this pod by the node.
+     * If pod-level requests are not set, this will be the total requests aggregated
+     * across containers in the pod.
+     * +featureGate=InPlacePodLevelResourcesVerticalScaling
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + + io.kubernetes.client.proto.Resource.Quantity getAllocatedResourcesOrDefault( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity defaultValue); + /** + *
+     * AllocatedResources is the total requests allocated for this pod by the node.
+     * If pod-level requests are not set, this will be the total requests aggregated
+     * across containers in the pod.
+     * +featureGate=InPlacePodLevelResourcesVerticalScaling
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + + io.kubernetes.client.proto.Resource.Quantity getAllocatedResourcesOrThrow( + java.lang.String key); + + /** + *
+     * Resources represents the compute resource requests and limits that have been
+     * applied at the pod level if pod-level requests or limits are set in
+     * PodSpec.Resources
+     * +featureGate=InPlacePodLevelResourcesVerticalScaling
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; + */ + boolean hasResources(); + /** + *
+     * Resources represents the compute resource requests and limits that have been
+     * applied at the pod level if pod-level requests or limits are set in
+     * PodSpec.Resources
+     * +featureGate=InPlacePodLevelResourcesVerticalScaling
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; + */ + io.kubernetes.client.proto.V1.ResourceRequirements getResources(); + /** + *
+     * Resources represents the compute resource requests and limits that have been
+     * applied at the pod level if pod-level requests or limits are set in
+     * PodSpec.Resources
+     * +featureGate=InPlacePodLevelResourcesVerticalScaling
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; + */ + io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder(); } /** *
@@ -261605,6 +261716,32 @@ private PodStatus(
               bitField0_ |= 0x00000400;
               break;
             }
+            case 154: {
+              if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) {
+                allocatedResources_ = com.google.protobuf.MapField.newMapField(
+                    AllocatedResourcesDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00040000;
+              }
+              com.google.protobuf.MapEntry
+              allocatedResources__ = input.readMessage(
+                  AllocatedResourcesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              allocatedResources_.getMutableMap().put(
+                  allocatedResources__.getKey(), allocatedResources__.getValue());
+              break;
+            }
+            case 162: {
+              io.kubernetes.client.proto.V1.ResourceRequirements.Builder subBuilder = null;
+              if (((bitField0_ & 0x00000800) == 0x00000800)) {
+                subBuilder = resources_.toBuilder();
+              }
+              resources_ = input.readMessage(io.kubernetes.client.proto.V1.ResourceRequirements.PARSER, extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(resources_);
+                resources_ = subBuilder.buildPartial();
+              }
+              bitField0_ |= 0x00000800;
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -261650,6 +261787,18 @@ private PodStatus(
       return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodStatus_descriptor;
     }
 
+    @SuppressWarnings({"rawtypes"})
+    @java.lang.Override
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
+      switch (number) {
+        case 19:
+          return internalGetAllocatedResources();
+        default:
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
+      }
+    }
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
@@ -262976,6 +263125,159 @@ public io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatusOrBuilder get
       return extendedResourceClaimStatus_ == null ? io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus.getDefaultInstance() : extendedResourceClaimStatus_;
     }
 
+    public static final int ALLOCATEDRESOURCES_FIELD_NUMBER = 19;
+    private static final class AllocatedResourcesDefaultEntryHolder {
+      static final com.google.protobuf.MapEntry<
+          java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry =
+              com.google.protobuf.MapEntry
+              .newDefaultInstance(
+                  io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodStatus_AllocatedResourcesEntry_descriptor, 
+                  com.google.protobuf.WireFormat.FieldType.STRING,
+                  "",
+                  com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                  io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance());
+    }
+    private com.google.protobuf.MapField<
+        java.lang.String, io.kubernetes.client.proto.Resource.Quantity> allocatedResources_;
+    private com.google.protobuf.MapField
+    internalGetAllocatedResources() {
+      if (allocatedResources_ == null) {
+        return com.google.protobuf.MapField.emptyMapField(
+            AllocatedResourcesDefaultEntryHolder.defaultEntry);
+      }
+      return allocatedResources_;
+    }
+
+    public int getAllocatedResourcesCount() {
+      return internalGetAllocatedResources().getMap().size();
+    }
+    /**
+     * 
+     * AllocatedResources is the total requests allocated for this pod by the node.
+     * If pod-level requests are not set, this will be the total requests aggregated
+     * across containers in the pod.
+     * +featureGate=InPlacePodLevelResourcesVerticalScaling
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + + public boolean containsAllocatedResources( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAllocatedResources().getMap().containsKey(key); + } + /** + * Use {@link #getAllocatedResourcesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAllocatedResources() { + return getAllocatedResourcesMap(); + } + /** + *
+     * AllocatedResources is the total requests allocated for this pod by the node.
+     * If pod-level requests are not set, this will be the total requests aggregated
+     * across containers in the pod.
+     * +featureGate=InPlacePodLevelResourcesVerticalScaling
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + + public java.util.Map getAllocatedResourcesMap() { + return internalGetAllocatedResources().getMap(); + } + /** + *
+     * AllocatedResources is the total requests allocated for this pod by the node.
+     * If pod-level requests are not set, this will be the total requests aggregated
+     * across containers in the pod.
+     * +featureGate=InPlacePodLevelResourcesVerticalScaling
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + + public io.kubernetes.client.proto.Resource.Quantity getAllocatedResourcesOrDefault( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAllocatedResources().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * AllocatedResources is the total requests allocated for this pod by the node.
+     * If pod-level requests are not set, this will be the total requests aggregated
+     * across containers in the pod.
+     * +featureGate=InPlacePodLevelResourcesVerticalScaling
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + + public io.kubernetes.client.proto.Resource.Quantity getAllocatedResourcesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAllocatedResources().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int RESOURCES_FIELD_NUMBER = 20; + private io.kubernetes.client.proto.V1.ResourceRequirements resources_; + /** + *
+     * Resources represents the compute resource requests and limits that have been
+     * applied at the pod level if pod-level requests or limits are set in
+     * PodSpec.Resources
+     * +featureGate=InPlacePodLevelResourcesVerticalScaling
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; + */ + public boolean hasResources() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + /** + *
+     * Resources represents the compute resource requests and limits that have been
+     * applied at the pod level if pod-level requests or limits are set in
+     * PodSpec.Resources
+     * +featureGate=InPlacePodLevelResourcesVerticalScaling
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; + */ + public io.kubernetes.client.proto.V1.ResourceRequirements getResources() { + return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; + } + /** + *
+     * Resources represents the compute resource requests and limits that have been
+     * applied at the pod level if pod-level requests or limits are set in
+     * PodSpec.Resources
+     * +featureGate=InPlacePodLevelResourcesVerticalScaling
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; + */ + public io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder() { + return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -263044,6 +263346,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeMessage(18, getExtendedResourceClaimStatus()); } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAllocatedResources(), + AllocatedResourcesDefaultEntryHolder.defaultEntry, + 19); + if (((bitField0_ & 0x00000800) == 0x00000800)) { + output.writeMessage(20, getResources()); + } unknownFields.writeTo(output); } @@ -263117,6 +263428,20 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, getExtendedResourceClaimStatus()); } + for (java.util.Map.Entry entry + : internalGetAllocatedResources().getMap().entrySet()) { + com.google.protobuf.MapEntry + allocatedResources__ = AllocatedResourcesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, allocatedResources__); + } + if (((bitField0_ & 0x00000800) == 0x00000800)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getResources()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -263202,6 +263527,13 @@ public boolean equals(final java.lang.Object obj) { result = result && getExtendedResourceClaimStatus() .equals(other.getExtendedResourceClaimStatus()); } + result = result && internalGetAllocatedResources().equals( + other.internalGetAllocatedResources()); + result = result && (hasResources() == other.hasResources()); + if (hasResources()) { + result = result && getResources() + .equals(other.getResources()); + } result = result && unknownFields.equals(other.unknownFields); return result; } @@ -263286,6 +263618,14 @@ public int hashCode() { hash = (37 * hash) + EXTENDEDRESOURCECLAIMSTATUS_FIELD_NUMBER; hash = (53 * hash) + getExtendedResourceClaimStatus().hashCode(); } + if (!internalGetAllocatedResources().getMap().isEmpty()) { + hash = (37 * hash) + ALLOCATEDRESOURCES_FIELD_NUMBER; + hash = (53 * hash) + internalGetAllocatedResources().hashCode(); + } + if (hasResources()) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResources().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -263399,6 +263739,28 @@ public static final class Builder extends return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodStatus_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 19: + return internalGetAllocatedResources(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 19: + return internalGetMutableAllocatedResources(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -263429,6 +263791,7 @@ private void maybeForceBuilderInitialization() { getEphemeralContainerStatusesFieldBuilder(); getResourceClaimStatusesFieldBuilder(); getExtendedResourceClaimStatusFieldBuilder(); + getResourcesFieldBuilder(); } } @java.lang.Override @@ -263506,6 +263869,13 @@ public Builder clear() { extendedResourceClaimStatusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00020000); + internalGetMutableAllocatedResources().clear(); + if (resourcesBuilder_ == null) { + resources_ = null; + } else { + resourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00080000); return this; } @@ -263649,6 +264019,16 @@ public io.kubernetes.client.proto.V1.PodStatus buildPartial() { } else { result.extendedResourceClaimStatus_ = extendedResourceClaimStatusBuilder_.build(); } + result.allocatedResources_ = internalGetAllocatedResources(); + result.allocatedResources_.makeImmutable(); + if (((from_bitField0_ & 0x00080000) == 0x00080000)) { + to_bitField0_ |= 0x00000800; + } + if (resourcesBuilder_ == null) { + result.resources_ = resources_; + } else { + result.resources_ = resourcesBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -263929,6 +264309,11 @@ public Builder mergeFrom(io.kubernetes.client.proto.V1.PodStatus other) { if (other.hasExtendedResourceClaimStatus()) { mergeExtendedResourceClaimStatus(other.getExtendedResourceClaimStatus()); } + internalGetMutableAllocatedResources().mergeFrom( + other.internalGetAllocatedResources()); + if (other.hasResources()) { + mergeResources(other.getResources()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -268564,6 +268949,375 @@ public io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatusOrBuilder get } return extendedResourceClaimStatusBuilder_; } + + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.Resource.Quantity> allocatedResources_; + private com.google.protobuf.MapField + internalGetAllocatedResources() { + if (allocatedResources_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AllocatedResourcesDefaultEntryHolder.defaultEntry); + } + return allocatedResources_; + } + private com.google.protobuf.MapField + internalGetMutableAllocatedResources() { + onChanged();; + if (allocatedResources_ == null) { + allocatedResources_ = com.google.protobuf.MapField.newMapField( + AllocatedResourcesDefaultEntryHolder.defaultEntry); + } + if (!allocatedResources_.isMutable()) { + allocatedResources_ = allocatedResources_.copy(); + } + return allocatedResources_; + } + + public int getAllocatedResourcesCount() { + return internalGetAllocatedResources().getMap().size(); + } + /** + *
+       * AllocatedResources is the total requests allocated for this pod by the node.
+       * If pod-level requests are not set, this will be the total requests aggregated
+       * across containers in the pod.
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + + public boolean containsAllocatedResources( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAllocatedResources().getMap().containsKey(key); + } + /** + * Use {@link #getAllocatedResourcesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAllocatedResources() { + return getAllocatedResourcesMap(); + } + /** + *
+       * AllocatedResources is the total requests allocated for this pod by the node.
+       * If pod-level requests are not set, this will be the total requests aggregated
+       * across containers in the pod.
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + + public java.util.Map getAllocatedResourcesMap() { + return internalGetAllocatedResources().getMap(); + } + /** + *
+       * AllocatedResources is the total requests allocated for this pod by the node.
+       * If pod-level requests are not set, this will be the total requests aggregated
+       * across containers in the pod.
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + + public io.kubernetes.client.proto.Resource.Quantity getAllocatedResourcesOrDefault( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAllocatedResources().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * AllocatedResources is the total requests allocated for this pod by the node.
+       * If pod-level requests are not set, this will be the total requests aggregated
+       * across containers in the pod.
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + + public io.kubernetes.client.proto.Resource.Quantity getAllocatedResourcesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAllocatedResources().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAllocatedResources() { + internalGetMutableAllocatedResources().getMutableMap() + .clear(); + return this; + } + /** + *
+       * AllocatedResources is the total requests allocated for this pod by the node.
+       * If pod-level requests are not set, this will be the total requests aggregated
+       * across containers in the pod.
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + + public Builder removeAllocatedResources( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAllocatedResources().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAllocatedResources() { + return internalGetMutableAllocatedResources().getMutableMap(); + } + /** + *
+       * AllocatedResources is the total requests allocated for this pod by the node.
+       * If pod-level requests are not set, this will be the total requests aggregated
+       * across containers in the pod.
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + public Builder putAllocatedResources( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAllocatedResources().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * AllocatedResources is the total requests allocated for this pod by the node.
+       * If pod-level requests are not set, this will be the total requests aggregated
+       * across containers in the pod.
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + + public Builder putAllAllocatedResources( + java.util.Map values) { + internalGetMutableAllocatedResources().getMutableMap() + .putAll(values); + return this; + } + + private io.kubernetes.client.proto.V1.ResourceRequirements resources_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder> resourcesBuilder_; + /** + *
+       * Resources represents the compute resource requests and limits that have been
+       * applied at the pod level if pod-level requests or limits are set in
+       * PodSpec.Resources
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; + */ + public boolean hasResources() { + return ((bitField0_ & 0x00080000) == 0x00080000); + } + /** + *
+       * Resources represents the compute resource requests and limits that have been
+       * applied at the pod level if pod-level requests or limits are set in
+       * PodSpec.Resources
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; + */ + public io.kubernetes.client.proto.V1.ResourceRequirements getResources() { + if (resourcesBuilder_ == null) { + return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; + } else { + return resourcesBuilder_.getMessage(); + } + } + /** + *
+       * Resources represents the compute resource requests and limits that have been
+       * applied at the pod level if pod-level requests or limits are set in
+       * PodSpec.Resources
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; + */ + public Builder setResources(io.kubernetes.client.proto.V1.ResourceRequirements value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resources_ = value; + onChanged(); + } else { + resourcesBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + return this; + } + /** + *
+       * Resources represents the compute resource requests and limits that have been
+       * applied at the pod level if pod-level requests or limits are set in
+       * PodSpec.Resources
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; + */ + public Builder setResources( + io.kubernetes.client.proto.V1.ResourceRequirements.Builder builderForValue) { + if (resourcesBuilder_ == null) { + resources_ = builderForValue.build(); + onChanged(); + } else { + resourcesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + return this; + } + /** + *
+       * Resources represents the compute resource requests and limits that have been
+       * applied at the pod level if pod-level requests or limits are set in
+       * PodSpec.Resources
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; + */ + public Builder mergeResources(io.kubernetes.client.proto.V1.ResourceRequirements value) { + if (resourcesBuilder_ == null) { + if (((bitField0_ & 0x00080000) == 0x00080000) && + resources_ != null && + resources_ != io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance()) { + resources_ = + io.kubernetes.client.proto.V1.ResourceRequirements.newBuilder(resources_).mergeFrom(value).buildPartial(); + } else { + resources_ = value; + } + onChanged(); + } else { + resourcesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00080000; + return this; + } + /** + *
+       * Resources represents the compute resource requests and limits that have been
+       * applied at the pod level if pod-level requests or limits are set in
+       * PodSpec.Resources
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; + */ + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = null; + onChanged(); + } else { + resourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00080000); + return this; + } + /** + *
+       * Resources represents the compute resource requests and limits that have been
+       * applied at the pod level if pod-level requests or limits are set in
+       * PodSpec.Resources
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; + */ + public io.kubernetes.client.proto.V1.ResourceRequirements.Builder getResourcesBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return getResourcesFieldBuilder().getBuilder(); + } + /** + *
+       * Resources represents the compute resource requests and limits that have been
+       * applied at the pod level if pod-level requests or limits are set in
+       * PodSpec.Resources
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; + */ + public io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilder(); + } else { + return resources_ == null ? + io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; + } + } + /** + *
+       * Resources represents the compute resource requests and limits that have been
+       * applied at the pod level if pod-level requests or limits are set in
+       * PodSpec.Resources
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder> + getResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder>( + getResources(), + getParentForChildren(), + isClean()); + resources_ = null; + } + return resourcesBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -391568,6 +392322,11 @@ public io.kubernetes.client.proto.V1.WorkloadReference getDefaultInstanceForType private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_core_v1_PodStatus_AllocatedResourcesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_core_v1_PodStatus_AllocatedResourcesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodStatusResult_descriptor; private static final @@ -392765,7 +393524,7 @@ public io.kubernetes.client.proto.V1.WorkloadReference getDefaultInstanceForType "ce\0323\n\021NodeSelectorEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + "value\030\002 \001(\t:\0028\001\032_\n\rOverheadEntry\022\013\n\003key\030" + "\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.apimachine" + - "ry.pkg.api.resource.Quantity:\0028\001\"\361\005\n\tPod" + + "ry.pkg.api.resource.Quantity:\0028\001\"\354\007\n\tPod" + "Status\022\032\n\022observedGeneration\030\021 \001(\003\022\r\n\005ph" + "ase\030\001 \001(\t\0224\n\nconditions\030\002 \003(\0132 .k8s.io.a" + "pi.core.v1.PodCondition\022\017\n\007message\030\003 \001(\t" + @@ -392784,362 +393543,368 @@ public io.kubernetes.client.proto.V1.WorkloadReference getDefaultInstanceForType "mStatuses\030\017 \003(\0132*.k8s.io.api.core.v1.Pod" + "ResourceClaimStatus\022W\n\033extendedResourceC" + "laimStatus\030\022 \001(\01322.k8s.io.api.core.v1.Po" + - "dExtendedResourceClaimStatus\"\204\001\n\017PodStat" + - "usResult\022B\n\010metadata\030\001 \001(\01320.k8s.io.apim" + - "achinery.pkg.apis.meta.v1.ObjectMeta\022-\n\006" + - "status\030\002 \001(\0132\035.k8s.io.api.core.v1.PodSta" + - "tus\"\210\001\n\013PodTemplate\022B\n\010metadata\030\001 \001(\01320." + + "dExtendedResourceClaimStatus\022Q\n\022allocate" + + "dResources\030\023 \003(\01325.k8s.io.api.core.v1.Po" + + "dStatus.AllocatedResourcesEntry\022;\n\tresou" + + "rces\030\024 \001(\0132(.k8s.io.api.core.v1.Resource" + + "Requirements\032i\n\027AllocatedResourcesEntry\022" + + "\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.api" + + "machinery.pkg.api.resource.Quantity:\0028\001\"" + + "\204\001\n\017PodStatusResult\022B\n\010metadata\030\001 \001(\01320." + "k8s.io.apimachinery.pkg.apis.meta.v1.Obj" + - "ectMeta\0225\n\010template\030\002 \001(\0132#.k8s.io.api.c" + - "ore.v1.PodTemplateSpec\"\203\001\n\017PodTemplateLi" + - "st\022@\n\010metadata\030\001 \001(\0132..k8s.io.apimachine" + - "ry.pkg.apis.meta.v1.ListMeta\022.\n\005items\030\002 " + - "\003(\0132\037.k8s.io.api.core.v1.PodTemplate\"\200\001\n" + - "\017PodTemplateSpec\022B\n\010metadata\030\001 \001(\01320.k8s" + - ".io.apimachinery.pkg.apis.meta.v1.Object" + - "Meta\022)\n\004spec\030\002 \001(\0132\033.k8s.io.api.core.v1." + - "PodSpec\";\n\nPortStatus\022\014\n\004port\030\001 \001(\005\022\020\n\010p" + - "rotocol\030\002 \001(\t\022\r\n\005error\030\003 \001(\t\"J\n\024Portworx" + - "VolumeSource\022\020\n\010volumeID\030\001 \001(\t\022\016\n\006fsType" + - "\030\002 \001(\t\022\020\n\010readOnly\030\003 \001(\010\"\034\n\rPrecondition" + - "s\022\013\n\003uid\030\001 \001(\t\"\261\001\n\024PreferAvoidPodsEntry\022" + - "6\n\014podSignature\030\001 \001(\0132 .k8s.io.api.core." + - "v1.PodSignature\022@\n\014evictionTime\030\002 \001(\0132*." + - "k8s.io.apimachinery.pkg.apis.meta.v1.Tim" + - "e\022\016\n\006reason\030\003 \001(\t\022\017\n\007message\030\004 \001(\t\"c\n\027Pr" + - "eferredSchedulingTerm\022\016\n\006weight\030\001 \001(\005\0228\n" + - "\npreference\030\002 \001(\0132$.k8s.io.api.core.v1.N" + - "odeSelectorTerm\"\341\001\n\005Probe\0221\n\007handler\030\001 \001" + - "(\0132 .k8s.io.api.core.v1.ProbeHandler\022\033\n\023" + - "initialDelaySeconds\030\002 \001(\005\022\026\n\016timeoutSeco" + - "nds\030\003 \001(\005\022\025\n\rperiodSeconds\030\004 \001(\005\022\030\n\020succ" + - "essThreshold\030\005 \001(\005\022\030\n\020failureThreshold\030\006" + - " \001(\005\022%\n\035terminationGracePeriodSeconds\030\007 " + - "\001(\003\"\326\001\n\014ProbeHandler\022,\n\004exec\030\001 \001(\0132\036.k8s" + - ".io.api.core.v1.ExecAction\0222\n\007httpGet\030\002 " + - "\001(\0132!.k8s.io.api.core.v1.HTTPGetAction\0226" + - "\n\ttcpSocket\030\003 \001(\0132#.k8s.io.api.core.v1.T" + - "CPSocketAction\022,\n\004grpc\030\004 \001(\0132\036.k8s.io.ap" + - "i.core.v1.GRPCAction\"c\n\025ProjectedVolumeS" + - "ource\0225\n\007sources\030\001 \003(\0132$.k8s.io.api.core" + - ".v1.VolumeProjection\022\023\n\013defaultMode\030\002 \001(" + - "\005\"v\n\023QuobyteVolumeSource\022\020\n\010registry\030\001 \001" + - "(\t\022\016\n\006volume\030\002 \001(\t\022\020\n\010readOnly\030\003 \001(\010\022\014\n\004" + - "user\030\004 \001(\t\022\r\n\005group\030\005 \001(\t\022\016\n\006tenant\030\006 \001(" + - "\t\"\303\001\n\031RBDPersistentVolumeSource\022\020\n\010monit", - "ors\030\001 \003(\t\022\r\n\005image\030\002 \001(\t\022\016\n\006fsType\030\003 \001(\t" + - "\022\014\n\004pool\030\004 \001(\t\022\014\n\004user\030\005 \001(\t\022\017\n\007keyring\030" + - "\006 \001(\t\0226\n\tsecretRef\030\007 \001(\0132#.k8s.io.api.co" + - "re.v1.SecretReference\022\020\n\010readOnly\030\010 \001(\010\"" + - "\276\001\n\017RBDVolumeSource\022\020\n\010monitors\030\001 \003(\t\022\r\n" + - "\005image\030\002 \001(\t\022\016\n\006fsType\030\003 \001(\t\022\014\n\004pool\030\004 \001" + - "(\t\022\014\n\004user\030\005 \001(\t\022\017\n\007keyring\030\006 \001(\t\022;\n\tsec" + - "retRef\030\007 \001(\0132(.k8s.io.api.core.v1.LocalO" + - "bjectReference\022\020\n\010readOnly\030\010 \001(\010\"r\n\017Rang" + - "eAllocation\022B\n\010metadata\030\001 \001(\01320.k8s.io.a" + - "pimachinery.pkg.apis.meta.v1.ObjectMeta\022" + - "\r\n\005range\030\002 \001(\t\022\014\n\004data\030\003 \001(\014\"\331\001\n\025Replica" + - "tionController\022B\n\010metadata\030\001 \001(\01320.k8s.i" + - "o.apimachinery.pkg.apis.meta.v1.ObjectMe" + - "ta\022;\n\004spec\030\002 \001(\0132-.k8s.io.api.core.v1.Re" + - "plicationControllerSpec\022?\n\006status\030\003 \001(\0132" + - "/.k8s.io.api.core.v1.ReplicationControll" + - "erStatus\"\247\001\n\036ReplicationControllerCondit" + - "ion\022\014\n\004type\030\001 \001(\t\022\016\n\006status\030\002 \001(\t\022F\n\022las" + - "tTransitionTime\030\003 \001(\0132*.k8s.io.apimachin" + - "ery.pkg.apis.meta.v1.Time\022\016\n\006reason\030\004 \001(" + - "\t\022\017\n\007message\030\005 \001(\t\"\227\001\n\031ReplicationContro" + - "llerList\022@\n\010metadata\030\001 \001(\0132..k8s.io.apim" + - "achinery.pkg.apis.meta.v1.ListMeta\0228\n\005it" + - "ems\030\002 \003(\0132).k8s.io.api.core.v1.Replicati" + - "onController\"\375\001\n\031ReplicationControllerSp" + - "ec\022\020\n\010replicas\030\001 \001(\005\022\027\n\017minReadySeconds\030" + - "\004 \001(\005\022M\n\010selector\030\002 \003(\0132;.k8s.io.api.cor" + - "e.v1.ReplicationControllerSpec.SelectorE" + - "ntry\0225\n\010template\030\003 \001(\0132#.k8s.io.api.core" + - ".v1.PodTemplateSpec\032/\n\rSelectorEntry\022\013\n\003" + - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\343\001\n\033Replica" + - "tionControllerStatus\022\020\n\010replicas\030\001 \001(\005\022\034" + - "\n\024fullyLabeledReplicas\030\002 \001(\005\022\025\n\rreadyRep" + - "licas\030\004 \001(\005\022\031\n\021availableReplicas\030\005 \001(\005\022\032" + - "\n\022observedGeneration\030\003 \001(\003\022F\n\nconditions" + - "\030\006 \003(\01322.k8s.io.api.core.v1.ReplicationC" + - "ontrollerCondition\".\n\rResourceClaim\022\014\n\004n" + - "ame\030\001 \001(\t\022\017\n\007request\030\002 \001(\t\"\201\001\n\025ResourceF" + - "ieldSelector\022\025\n\rcontainerName\030\001 \001(\t\022\020\n\010r" + - "esource\030\002 \001(\t\022?\n\007divisor\030\003 \001(\0132..k8s.io." + - "apimachinery.pkg.api.resource.Quantity\"4" + - "\n\016ResourceHealth\022\022\n\nresourceID\030\001 \001(\t\022\016\n\006" + - "health\030\002 \001(\t\"\301\001\n\rResourceQuota\022B\n\010metada" + + "ectMeta\022-\n\006status\030\002 \001(\0132\035.k8s.io.api.cor" + + "e.v1.PodStatus\"\210\001\n\013PodTemplate\022B\n\010metada" + "ta\030\001 \001(\01320.k8s.io.apimachinery.pkg.apis." + - "meta.v1.ObjectMeta\0223\n\004spec\030\002 \001(\0132%.k8s.i" + - "o.api.core.v1.ResourceQuotaSpec\0227\n\006statu" + - "s\030\003 \001(\0132\'.k8s.io.api.core.v1.ResourceQuo" + - "taStatus\"\207\001\n\021ResourceQuotaList\022@\n\010metada" + - "ta\030\001 \001(\0132..k8s.io.apimachinery.pkg.apis." + - "meta.v1.ListMeta\0220\n\005items\030\002 \003(\0132!.k8s.io" + - ".api.core.v1.ResourceQuota\"\371\001\n\021ResourceQ" + - "uotaSpec\022=\n\004hard\030\001 \003(\0132/.k8s.io.api.core" + - ".v1.ResourceQuotaSpec.HardEntry\022\016\n\006scope" + - "s\030\002 \003(\t\0228\n\rscopeSelector\030\003 \001(\0132!.k8s.io." + - "api.core.v1.ScopeSelector\032[\n\tHardEntry\022\013" + - "\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.apim" + - "achinery.pkg.api.resource.Quantity:\0028\001\"\321" + - "\002\n\023ResourceQuotaStatus\022?\n\004hard\030\001 \003(\01321.k" + - "8s.io.api.core.v1.ResourceQuotaStatus.Ha" + - "rdEntry\022?\n\004used\030\002 \003(\01321.k8s.io.api.core." + - "v1.ResourceQuotaStatus.UsedEntry\032[\n\tHard" + - "Entry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s." + - "io.apimachinery.pkg.api.resource.Quantit" + - "y:\0028\001\032[\n\tUsedEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value" + - "\030\002 \001(\0132..k8s.io.apimachinery.pkg.api.res" + - "ource.Quantity:\0028\001\"\231\003\n\024ResourceRequireme" + - "nts\022D\n\006limits\030\001 \003(\01324.k8s.io.api.core.v1" + - ".ResourceRequirements.LimitsEntry\022H\n\010req" + - "uests\030\002 \003(\01326.k8s.io.api.core.v1.Resourc" + - "eRequirements.RequestsEntry\0221\n\006claims\030\003 " + - "\003(\0132!.k8s.io.api.core.v1.ResourceClaim\032]" + - "\n\013LimitsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(" + + "meta.v1.ObjectMeta\0225\n\010template\030\002 \001(\0132#.k" + + "8s.io.api.core.v1.PodTemplateSpec\"\203\001\n\017Po" + + "dTemplateList\022@\n\010metadata\030\001 \001(\0132..k8s.io" + + ".apimachinery.pkg.apis.meta.v1.ListMeta\022" + + ".\n\005items\030\002 \003(\0132\037.k8s.io.api.core.v1.PodT" + + "emplate\"\200\001\n\017PodTemplateSpec\022B\n\010metadata\030" + + "\001 \001(\01320.k8s.io.apimachinery.pkg.apis.met" + + "a.v1.ObjectMeta\022)\n\004spec\030\002 \001(\0132\033.k8s.io.a" + + "pi.core.v1.PodSpec\";\n\nPortStatus\022\014\n\004port" + + "\030\001 \001(\005\022\020\n\010protocol\030\002 \001(\t\022\r\n\005error\030\003 \001(\t\"" + + "J\n\024PortworxVolumeSource\022\020\n\010volumeID\030\001 \001(" + + "\t\022\016\n\006fsType\030\002 \001(\t\022\020\n\010readOnly\030\003 \001(\010\"\034\n\rP" + + "reconditions\022\013\n\003uid\030\001 \001(\t\"\261\001\n\024PreferAvoi" + + "dPodsEntry\0226\n\014podSignature\030\001 \001(\0132 .k8s.i" + + "o.api.core.v1.PodSignature\022@\n\014evictionTi" + + "me\030\002 \001(\0132*.k8s.io.apimachinery.pkg.apis." + + "meta.v1.Time\022\016\n\006reason\030\003 \001(\t\022\017\n\007message\030" + + "\004 \001(\t\"c\n\027PreferredSchedulingTerm\022\016\n\006weig" + + "ht\030\001 \001(\005\0228\n\npreference\030\002 \001(\0132$.k8s.io.ap" + + "i.core.v1.NodeSelectorTerm\"\341\001\n\005Probe\0221\n\007" + + "handler\030\001 \001(\0132 .k8s.io.api.core.v1.Probe" + + "Handler\022\033\n\023initialDelaySeconds\030\002 \001(\005\022\026\n\016" + + "timeoutSeconds\030\003 \001(\005\022\025\n\rperiodSeconds\030\004 " + + "\001(\005\022\030\n\020successThreshold\030\005 \001(\005\022\030\n\020failure" + + "Threshold\030\006 \001(\005\022%\n\035terminationGracePerio" + + "dSeconds\030\007 \001(\003\"\326\001\n\014ProbeHandler\022,\n\004exec\030" + + "\001 \001(\0132\036.k8s.io.api.core.v1.ExecAction\0222\n" + + "\007httpGet\030\002 \001(\0132!.k8s.io.api.core.v1.HTTP" + + "GetAction\0226\n\ttcpSocket\030\003 \001(\0132#.k8s.io.ap" + + "i.core.v1.TCPSocketAction\022,\n\004grpc\030\004 \001(\0132" + + "\036.k8s.io.api.core.v1.GRPCAction\"c\n\025Proje", + "ctedVolumeSource\0225\n\007sources\030\001 \003(\0132$.k8s." + + "io.api.core.v1.VolumeProjection\022\023\n\013defau" + + "ltMode\030\002 \001(\005\"v\n\023QuobyteVolumeSource\022\020\n\010r" + + "egistry\030\001 \001(\t\022\016\n\006volume\030\002 \001(\t\022\020\n\010readOnl" + + "y\030\003 \001(\010\022\014\n\004user\030\004 \001(\t\022\r\n\005group\030\005 \001(\t\022\016\n\006" + + "tenant\030\006 \001(\t\"\303\001\n\031RBDPersistentVolumeSour" + + "ce\022\020\n\010monitors\030\001 \003(\t\022\r\n\005image\030\002 \001(\t\022\016\n\006f" + + "sType\030\003 \001(\t\022\014\n\004pool\030\004 \001(\t\022\014\n\004user\030\005 \001(\t\022" + + "\017\n\007keyring\030\006 \001(\t\0226\n\tsecretRef\030\007 \001(\0132#.k8" + + "s.io.api.core.v1.SecretReference\022\020\n\010read" + + "Only\030\010 \001(\010\"\276\001\n\017RBDVolumeSource\022\020\n\010monito" + + "rs\030\001 \003(\t\022\r\n\005image\030\002 \001(\t\022\016\n\006fsType\030\003 \001(\t\022" + + "\014\n\004pool\030\004 \001(\t\022\014\n\004user\030\005 \001(\t\022\017\n\007keyring\030\006" + + " \001(\t\022;\n\tsecretRef\030\007 \001(\0132(.k8s.io.api.cor" + + "e.v1.LocalObjectReference\022\020\n\010readOnly\030\010 " + + "\001(\010\"r\n\017RangeAllocation\022B\n\010metadata\030\001 \001(\013" + + "20.k8s.io.apimachinery.pkg.apis.meta.v1." + + "ObjectMeta\022\r\n\005range\030\002 \001(\t\022\014\n\004data\030\003 \001(\014\"" + + "\331\001\n\025ReplicationController\022B\n\010metadata\030\001 " + + "\001(\01320.k8s.io.apimachinery.pkg.apis.meta." + + "v1.ObjectMeta\022;\n\004spec\030\002 \001(\0132-.k8s.io.api" + + ".core.v1.ReplicationControllerSpec\022?\n\006st" + + "atus\030\003 \001(\0132/.k8s.io.api.core.v1.Replicat" + + "ionControllerStatus\"\247\001\n\036ReplicationContr" + + "ollerCondition\022\014\n\004type\030\001 \001(\t\022\016\n\006status\030\002" + + " \001(\t\022F\n\022lastTransitionTime\030\003 \001(\0132*.k8s.i" + + "o.apimachinery.pkg.apis.meta.v1.Time\022\016\n\006" + + "reason\030\004 \001(\t\022\017\n\007message\030\005 \001(\t\"\227\001\n\031Replic" + + "ationControllerList\022@\n\010metadata\030\001 \001(\0132.." + + "k8s.io.apimachinery.pkg.apis.meta.v1.Lis" + + "tMeta\0228\n\005items\030\002 \003(\0132).k8s.io.api.core.v" + + "1.ReplicationController\"\375\001\n\031ReplicationC" + + "ontrollerSpec\022\020\n\010replicas\030\001 \001(\005\022\027\n\017minRe" + + "adySeconds\030\004 \001(\005\022M\n\010selector\030\002 \003(\0132;.k8s" + + ".io.api.core.v1.ReplicationControllerSpe" + + "c.SelectorEntry\0225\n\010template\030\003 \001(\0132#.k8s." + + "io.api.core.v1.PodTemplateSpec\032/\n\rSelect" + + "orEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "\343\001\n\033ReplicationControllerStatus\022\020\n\010repli" + + "cas\030\001 \001(\005\022\034\n\024fullyLabeledReplicas\030\002 \001(\005\022" + + "\025\n\rreadyReplicas\030\004 \001(\005\022\031\n\021availableRepli" + + "cas\030\005 \001(\005\022\032\n\022observedGeneration\030\003 \001(\003\022F\n" + + "\nconditions\030\006 \003(\01322.k8s.io.api.core.v1.R" + + "eplicationControllerCondition\".\n\rResourc" + + "eClaim\022\014\n\004name\030\001 \001(\t\022\017\n\007request\030\002 \001(\t\"\201\001" + + "\n\025ResourceFieldSelector\022\025\n\rcontainerName" + + "\030\001 \001(\t\022\020\n\010resource\030\002 \001(\t\022?\n\007divisor\030\003 \001(" + "\0132..k8s.io.apimachinery.pkg.api.resource" + - ".Quantity:\0028\001\032_\n\rRequestsEntry\022\013\n\003key\030\001 " + - "\001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.apimachinery" + - ".pkg.api.resource.Quantity:\0028\001\"U\n\016Resour" + - "ceStatus\022\014\n\004name\030\001 \001(\t\0225\n\tresources\030\002 \003(" + - "\0132\".k8s.io.api.core.v1.ResourceHealth\"I\n" + - "\016SELinuxOptions\022\014\n\004user\030\001 \001(\t\022\014\n\004role\030\002 " + - "\001(\t\022\014\n\004type\030\003 \001(\t\022\r\n\005level\030\004 \001(\t\"\206\002\n\035Sca" + - "leIOPersistentVolumeSource\022\017\n\007gateway\030\001 " + - "\001(\t\022\016\n\006system\030\002 \001(\t\0226\n\tsecretRef\030\003 \001(\0132#" + - ".k8s.io.api.core.v1.SecretReference\022\022\n\ns" + - "slEnabled\030\004 \001(\010\022\030\n\020protectionDomain\030\005 \001(" + - "\t\022\023\n\013storagePool\030\006 \001(\t\022\023\n\013storageMode\030\007 " + - "\001(\t\022\022\n\nvolumeName\030\010 \001(\t\022\016\n\006fsType\030\t \001(\t\022" + - "\020\n\010readOnly\030\n \001(\010\"\201\002\n\023ScaleIOVolumeSourc" + - "e\022\017\n\007gateway\030\001 \001(\t\022\016\n\006system\030\002 \001(\t\022;\n\tse" + - "cretRef\030\003 \001(\0132(.k8s.io.api.core.v1.Local" + - "ObjectReference\022\022\n\nsslEnabled\030\004 \001(\010\022\030\n\020p" + - "rotectionDomain\030\005 \001(\t\022\023\n\013storagePool\030\006 \001" + - "(\t\022\023\n\013storageMode\030\007 \001(\t\022\022\n\nvolumeName\030\010 " + - "\001(\t\022\016\n\006fsType\030\t \001(\t\022\020\n\010readOnly\030\n \001(\010\"`\n" + - "\rScopeSelector\022O\n\020matchExpressions\030\001 \003(\013" + - "25.k8s.io.api.core.v1.ScopedResourceSele" + - "ctorRequirement\"X\n!ScopedResourceSelecto" + - "rRequirement\022\021\n\tscopeName\030\001 \001(\t\022\020\n\010opera" + - "tor\030\002 \001(\t\022\016\n\006values\030\003 \003(\t\"8\n\016SeccompProf" + - "ile\022\014\n\004type\030\001 \001(\t\022\030\n\020localhostProfile\030\002 " + - "\001(\t\"\301\002\n\006Secret\022B\n\010metadata\030\001 \001(\01320.k8s.i" + - "o.apimachinery.pkg.apis.meta.v1.ObjectMe" + - "ta\022\021\n\timmutable\030\005 \001(\010\0222\n\004data\030\002 \003(\0132$.k8" + - "s.io.api.core.v1.Secret.DataEntry\022>\n\nstr" + - "ingData\030\004 \003(\0132*.k8s.io.api.core.v1.Secre" + - "t.StringDataEntry\022\014\n\004type\030\003 \001(\t\032+\n\tDataE" + - "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\0321\n\017" + - "StringDataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001\"k\n\017SecretEnvSource\022F\n\024localObjec" + - "tReference\030\001 \001(\0132(.k8s.io.api.core.v1.Lo" + - "calObjectReference\022\020\n\010optional\030\002 \001(\010\"z\n\021" + - "SecretKeySelector\022F\n\024localObjectReferenc" + - "e\030\001 \001(\0132(.k8s.io.api.core.v1.LocalObject" + - "Reference\022\013\n\003key\030\002 \001(\t\022\020\n\010optional\030\003 \001(\010" + - "\"y\n\nSecretList\022@\n\010metadata\030\001 \001(\0132..k8s.i" + - "o.apimachinery.pkg.apis.meta.v1.ListMeta" + - "\022)\n\005items\030\002 \003(\0132\032.k8s.io.api.core.v1.Sec" + - "ret\"\232\001\n\020SecretProjection\022F\n\024localObjectR" + - "eference\030\001 \001(\0132(.k8s.io.api.core.v1.Loca" + - "lObjectReference\022,\n\005items\030\002 \003(\0132\035.k8s.io" + - ".api.core.v1.KeyToPath\022\020\n\010optional\030\004 \001(\010" + - "\"2\n\017SecretReference\022\014\n\004name\030\001 \001(\t\022\021\n\tnam" + - "espace\030\002 \001(\t\"}\n\022SecretVolumeSource\022\022\n\nse" + - "cretName\030\001 \001(\t\022,\n\005items\030\002 \003(\0132\035.k8s.io.a" + - "pi.core.v1.KeyToPath\022\023\n\013defaultMode\030\003 \001(" + - "\005\022\020\n\010optional\030\004 \001(\010\"\360\003\n\017SecurityContext\022" + - "6\n\014capabilities\030\001 \001(\0132 .k8s.io.api.core." + - "v1.Capabilities\022\022\n\nprivileged\030\002 \001(\010\022:\n\016s" + - "eLinuxOptions\030\003 \001(\0132\".k8s.io.api.core.v1" + - ".SELinuxOptions\022I\n\016windowsOptions\030\n \001(\0132" + - "1.k8s.io.api.core.v1.WindowsSecurityCont" + - "extOptions\022\021\n\trunAsUser\030\004 \001(\003\022\022\n\nrunAsGr" + - "oup\030\010 \001(\003\022\024\n\014runAsNonRoot\030\005 \001(\010\022\036\n\026readO" + - "nlyRootFilesystem\030\006 \001(\010\022 \n\030allowPrivileg" + - "eEscalation\030\007 \001(\010\022\021\n\tprocMount\030\t \001(\t\022:\n\016" + - "seccompProfile\030\013 \001(\0132\".k8s.io.api.core.v" + - "1.SeccompProfile\022<\n\017appArmorProfile\030\014 \001(" + - "\0132#.k8s.io.api.core.v1.AppArmorProfile\"M" + - "\n\023SerializedReference\0226\n\treference\030\001 \001(\013" + - "2#.k8s.io.api.core.v1.ObjectReference\"\257\001" + - "\n\007Service\022B\n\010metadata\030\001 \001(\01320.k8s.io.api" + - "machinery.pkg.apis.meta.v1.ObjectMeta\022-\n" + - "\004spec\030\002 \001(\0132\037.k8s.io.api.core.v1.Service" + - "Spec\0221\n\006status\030\003 \001(\0132!.k8s.io.api.core.v" + - "1.ServiceStatus\"\364\001\n\016ServiceAccount\022B\n\010me" + - "tadata\030\001 \001(\01320.k8s.io.apimachinery.pkg.a" + - "pis.meta.v1.ObjectMeta\0224\n\007secrets\030\002 \003(\0132" + - "#.k8s.io.api.core.v1.ObjectReference\022B\n\020" + - "imagePullSecrets\030\003 \003(\0132(.k8s.io.api.core" + - ".v1.LocalObjectReference\022$\n\034automountSer" + - "viceAccountToken\030\004 \001(\010\"\211\001\n\022ServiceAccoun" + - "tList\022@\n\010metadata\030\001 \001(\0132..k8s.io.apimach" + - "inery.pkg.apis.meta.v1.ListMeta\0221\n\005items" + - "\030\002 \003(\0132\".k8s.io.api.core.v1.ServiceAccou" + - "nt\"Z\n\035ServiceAccountTokenProjection\022\020\n\010a" + - "udience\030\001 \001(\t\022\031\n\021expirationSeconds\030\002 \001(\003" + - "\022\014\n\004path\030\003 \001(\t\"{\n\013ServiceList\022@\n\010metadat" + - "a\030\001 \001(\0132..k8s.io.apimachinery.pkg.apis.m" + - "eta.v1.ListMeta\022*\n\005items\030\002 \003(\0132\033.k8s.io." + - "api.core.v1.Service\"\250\001\n\013ServicePort\022\014\n\004n" + - "ame\030\001 \001(\t\022\020\n\010protocol\030\002 \001(\t\022\023\n\013appProtoc" + - "ol\030\006 \001(\t\022\014\n\004port\030\003 \001(\005\022D\n\ntargetPort\030\004 \001" + + ".Quantity\"4\n\016ResourceHealth\022\022\n\nresourceI" + + "D\030\001 \001(\t\022\016\n\006health\030\002 \001(\t\"\301\001\n\rResourceQuot" + + "a\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimachiner" + + "y.pkg.apis.meta.v1.ObjectMeta\0223\n\004spec\030\002 " + + "\001(\0132%.k8s.io.api.core.v1.ResourceQuotaSp" + + "ec\0227\n\006status\030\003 \001(\0132\'.k8s.io.api.core.v1." + + "ResourceQuotaStatus\"\207\001\n\021ResourceQuotaLis" + + "t\022@\n\010metadata\030\001 \001(\0132..k8s.io.apimachiner" + + "y.pkg.apis.meta.v1.ListMeta\0220\n\005items\030\002 \003" + + "(\0132!.k8s.io.api.core.v1.ResourceQuota\"\371\001" + + "\n\021ResourceQuotaSpec\022=\n\004hard\030\001 \003(\0132/.k8s." + + "io.api.core.v1.ResourceQuotaSpec.HardEnt" + + "ry\022\016\n\006scopes\030\002 \003(\t\0228\n\rscopeSelector\030\003 \001(" + + "\0132!.k8s.io.api.core.v1.ScopeSelector\032[\n\t" + + "HardEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132.." + + "k8s.io.apimachinery.pkg.api.resource.Qua" + + "ntity:\0028\001\"\321\002\n\023ResourceQuotaStatus\022?\n\004har" + + "d\030\001 \003(\01321.k8s.io.api.core.v1.ResourceQuo" + + "taStatus.HardEntry\022?\n\004used\030\002 \003(\01321.k8s.i" + + "o.api.core.v1.ResourceQuotaStatus.UsedEn" + + "try\032[\n\tHardEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002" + + " \001(\0132..k8s.io.apimachinery.pkg.api.resou" + + "rce.Quantity:\0028\001\032[\n\tUsedEntry\022\013\n\003key\030\001 \001" + + "(\t\022=\n\005value\030\002 \001(\0132..k8s.io.apimachinery." + + "pkg.api.resource.Quantity:\0028\001\"\231\003\n\024Resour" + + "ceRequirements\022D\n\006limits\030\001 \003(\01324.k8s.io." + + "api.core.v1.ResourceRequirements.LimitsE" + + "ntry\022H\n\010requests\030\002 \003(\01326.k8s.io.api.core" + + ".v1.ResourceRequirements.RequestsEntry\0221" + + "\n\006claims\030\003 \003(\0132!.k8s.io.api.core.v1.Reso" + + "urceClaim\032]\n\013LimitsEntry\022\013\n\003key\030\001 \001(\t\022=\n" + + "\005value\030\002 \001(\0132..k8s.io.apimachinery.pkg.a" + + "pi.resource.Quantity:\0028\001\032_\n\rRequestsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.a" + + "pimachinery.pkg.api.resource.Quantity:\0028" + + "\001\"U\n\016ResourceStatus\022\014\n\004name\030\001 \001(\t\0225\n\tres" + + "ources\030\002 \003(\0132\".k8s.io.api.core.v1.Resour" + + "ceHealth\"I\n\016SELinuxOptions\022\014\n\004user\030\001 \001(\t" + + "\022\014\n\004role\030\002 \001(\t\022\014\n\004type\030\003 \001(\t\022\r\n\005level\030\004 " + + "\001(\t\"\206\002\n\035ScaleIOPersistentVolumeSource\022\017\n" + + "\007gateway\030\001 \001(\t\022\016\n\006system\030\002 \001(\t\0226\n\tsecret" + + "Ref\030\003 \001(\0132#.k8s.io.api.core.v1.SecretRef" + + "erence\022\022\n\nsslEnabled\030\004 \001(\010\022\030\n\020protection" + + "Domain\030\005 \001(\t\022\023\n\013storagePool\030\006 \001(\t\022\023\n\013sto" + + "rageMode\030\007 \001(\t\022\022\n\nvolumeName\030\010 \001(\t\022\016\n\006fs" + + "Type\030\t \001(\t\022\020\n\010readOnly\030\n \001(\010\"\201\002\n\023ScaleIO" + + "VolumeSource\022\017\n\007gateway\030\001 \001(\t\022\016\n\006system\030" + + "\002 \001(\t\022;\n\tsecretRef\030\003 \001(\0132(.k8s.io.api.co" + + "re.v1.LocalObjectReference\022\022\n\nsslEnabled" + + "\030\004 \001(\010\022\030\n\020protectionDomain\030\005 \001(\t\022\023\n\013stor" + + "agePool\030\006 \001(\t\022\023\n\013storageMode\030\007 \001(\t\022\022\n\nvo" + + "lumeName\030\010 \001(\t\022\016\n\006fsType\030\t \001(\t\022\020\n\010readOn" + + "ly\030\n \001(\010\"`\n\rScopeSelector\022O\n\020matchExpres" + + "sions\030\001 \003(\01325.k8s.io.api.core.v1.ScopedR" + + "esourceSelectorRequirement\"X\n!ScopedReso" + + "urceSelectorRequirement\022\021\n\tscopeName\030\001 \001" + + "(\t\022\020\n\010operator\030\002 \001(\t\022\016\n\006values\030\003 \003(\t\"8\n\016" + + "SeccompProfile\022\014\n\004type\030\001 \001(\t\022\030\n\020localhos" + + "tProfile\030\002 \001(\t\"\301\002\n\006Secret\022B\n\010metadata\030\001 " + + "\001(\01320.k8s.io.apimachinery.pkg.apis.meta." + + "v1.ObjectMeta\022\021\n\timmutable\030\005 \001(\010\0222\n\004data" + + "\030\002 \003(\0132$.k8s.io.api.core.v1.Secret.DataE" + + "ntry\022>\n\nstringData\030\004 \003(\0132*.k8s.io.api.co" + + "re.v1.Secret.StringDataEntry\022\014\n\004type\030\003 \001" + + "(\t\032+\n\tDataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\014:\0028\001\0321\n\017StringDataEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\"k\n\017SecretEnvSource\022F\n" + + "\024localObjectReference\030\001 \001(\0132(.k8s.io.api" + + ".core.v1.LocalObjectReference\022\020\n\010optiona" + + "l\030\002 \001(\010\"z\n\021SecretKeySelector\022F\n\024localObj" + + "ectReference\030\001 \001(\0132(.k8s.io.api.core.v1." + + "LocalObjectReference\022\013\n\003key\030\002 \001(\t\022\020\n\010opt" + + "ional\030\003 \001(\010\"y\n\nSecretList\022@\n\010metadata\030\001 " + + "\001(\0132..k8s.io.apimachinery.pkg.apis.meta." + + "v1.ListMeta\022)\n\005items\030\002 \003(\0132\032.k8s.io.api." + + "core.v1.Secret\"\232\001\n\020SecretProjection\022F\n\024l" + + "ocalObjectReference\030\001 \001(\0132(.k8s.io.api.c" + + "ore.v1.LocalObjectReference\022,\n\005items\030\002 \003" + + "(\0132\035.k8s.io.api.core.v1.KeyToPath\022\020\n\010opt" + + "ional\030\004 \001(\010\"2\n\017SecretReference\022\014\n\004name\030\001" + + " \001(\t\022\021\n\tnamespace\030\002 \001(\t\"}\n\022SecretVolumeS" + + "ource\022\022\n\nsecretName\030\001 \001(\t\022,\n\005items\030\002 \003(\013" + + "2\035.k8s.io.api.core.v1.KeyToPath\022\023\n\013defau" + + "ltMode\030\003 \001(\005\022\020\n\010optional\030\004 \001(\010\"\360\003\n\017Secur" + + "ityContext\0226\n\014capabilities\030\001 \001(\0132 .k8s.i" + + "o.api.core.v1.Capabilities\022\022\n\nprivileged" + + "\030\002 \001(\010\022:\n\016seLinuxOptions\030\003 \001(\0132\".k8s.io." + + "api.core.v1.SELinuxOptions\022I\n\016windowsOpt" + + "ions\030\n \001(\01321.k8s.io.api.core.v1.WindowsS" + + "ecurityContextOptions\022\021\n\trunAsUser\030\004 \001(\003" + + "\022\022\n\nrunAsGroup\030\010 \001(\003\022\024\n\014runAsNonRoot\030\005 \001" + + "(\010\022\036\n\026readOnlyRootFilesystem\030\006 \001(\010\022 \n\030al" + + "lowPrivilegeEscalation\030\007 \001(\010\022\021\n\tprocMoun" + + "t\030\t \001(\t\022:\n\016seccompProfile\030\013 \001(\0132\".k8s.io" + + ".api.core.v1.SeccompProfile\022<\n\017appArmorP" + + "rofile\030\014 \001(\0132#.k8s.io.api.core.v1.AppArm" + + "orProfile\"M\n\023SerializedReference\0226\n\trefe" + + "rence\030\001 \001(\0132#.k8s.io.api.core.v1.ObjectR" + + "eference\"\257\001\n\007Service\022B\n\010metadata\030\001 \001(\01320" + + ".k8s.io.apimachinery.pkg.apis.meta.v1.Ob" + + "jectMeta\022-\n\004spec\030\002 \001(\0132\037.k8s.io.api.core" + + ".v1.ServiceSpec\0221\n\006status\030\003 \001(\0132!.k8s.io" + + ".api.core.v1.ServiceStatus\"\364\001\n\016ServiceAc" + + "count\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimach" + + "inery.pkg.apis.meta.v1.ObjectMeta\0224\n\007sec" + + "rets\030\002 \003(\0132#.k8s.io.api.core.v1.ObjectRe" + + "ference\022B\n\020imagePullSecrets\030\003 \003(\0132(.k8s." + + "io.api.core.v1.LocalObjectReference\022$\n\034a" + + "utomountServiceAccountToken\030\004 \001(\010\"\211\001\n\022Se" + + "rviceAccountList\022@\n\010metadata\030\001 \001(\0132..k8s" + + ".io.apimachinery.pkg.apis.meta.v1.ListMe" + + "ta\0221\n\005items\030\002 \003(\0132\".k8s.io.api.core.v1.S" + + "erviceAccount\"Z\n\035ServiceAccountTokenProj" + + "ection\022\020\n\010audience\030\001 \001(\t\022\031\n\021expirationSe" + + "conds\030\002 \001(\003\022\014\n\004path\030\003 \001(\t\"{\n\013ServiceList" + + "\022@\n\010metadata\030\001 \001(\0132..k8s.io.apimachinery" + + ".pkg.apis.meta.v1.ListMeta\022*\n\005items\030\002 \003(" + + "\0132\033.k8s.io.api.core.v1.Service\"\250\001\n\013Servi" + + "cePort\022\014\n\004name\030\001 \001(\t\022\020\n\010protocol\030\002 \001(\t\022\023" + + "\n\013appProtocol\030\006 \001(\t\022\014\n\004port\030\003 \001(\005\022D\n\ntar" + + "getPort\030\004 \001(\01320.k8s.io.apimachinery.pkg." + + "util.intstr.IntOrString\022\020\n\010nodePort\030\005 \001(" + + "\005\"#\n\023ServiceProxyOptions\022\014\n\004path\030\001 \001(\t\"\264" + + "\005\n\013ServiceSpec\022.\n\005ports\030\001 \003(\0132\037.k8s.io.a" + + "pi.core.v1.ServicePort\022?\n\010selector\030\002 \003(\013" + + "2-.k8s.io.api.core.v1.ServiceSpec.Select" + + "orEntry\022\021\n\tclusterIP\030\003 \001(\t\022\022\n\nclusterIPs" + + "\030\022 \003(\t\022\014\n\004type\030\004 \001(\t\022\023\n\013externalIPs\030\005 \003(" + + "\t\022\027\n\017sessionAffinity\030\007 \001(\t\022\026\n\016loadBalanc" + + "erIP\030\010 \001(\t\022 \n\030loadBalancerSourceRanges\030\t" + + " \003(\t\022\024\n\014externalName\030\n \001(\t\022\035\n\025externalTr" + + "afficPolicy\030\013 \001(\t\022\033\n\023healthCheckNodePort" + + "\030\014 \001(\005\022 \n\030publishNotReadyAddresses\030\r \001(\010" + + "\022H\n\025sessionAffinityConfig\030\016 \001(\0132).k8s.io" + + ".api.core.v1.SessionAffinityConfig\022\022\n\nip" + + "Families\030\023 \003(\t\022\026\n\016ipFamilyPolicy\030\021 \001(\t\022%" + + "\n\035allocateLoadBalancerNodePorts\030\024 \001(\010\022\031\n" + + "\021loadBalancerClass\030\025 \001(\t\022\035\n\025internalTraf" + + "ficPolicy\030\026 \001(\t\022\033\n\023trafficDistribution\030\027" + + " \001(\t\032/\n\rSelectorEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"\222\001\n\rServiceStatus\022<\n\014loadB" + + "alancer\030\001 \001(\0132&.k8s.io.api.core.v1.LoadB" + + "alancerStatus\022C\n\nconditions\030\002 \003(\0132/.k8s." + + "io.apimachinery.pkg.apis.meta.v1.Conditi" + + "on\"M\n\025SessionAffinityConfig\0224\n\010clientIP\030" + + "\001 \001(\0132\".k8s.io.api.core.v1.ClientIPConfi" + + "g\"\036\n\013SleepAction\022\017\n\007seconds\030\001 \001(\003\"\250\001\n\037St" + + "orageOSPersistentVolumeSource\022\022\n\nvolumeN" + + "ame\030\001 \001(\t\022\027\n\017volumeNamespace\030\002 \001(\t\022\016\n\006fs" + + "Type\030\003 \001(\t\022\020\n\010readOnly\030\004 \001(\010\0226\n\tsecretRe" + + "f\030\005 \001(\0132#.k8s.io.api.core.v1.ObjectRefer" + + "ence\"\243\001\n\025StorageOSVolumeSource\022\022\n\nvolume" + + "Name\030\001 \001(\t\022\027\n\017volumeNamespace\030\002 \001(\t\022\016\n\006f" + + "sType\030\003 \001(\t\022\020\n\010readOnly\030\004 \001(\010\022;\n\tsecretR" + + "ef\030\005 \001(\0132(.k8s.io.api.core.v1.LocalObjec" + + "tReference\"%\n\006Sysctl\022\014\n\004name\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t\"_\n\017TCPSocketAction\022>\n\004port\030\001 \001" + "(\01320.k8s.io.apimachinery.pkg.util.intstr" + - ".IntOrString\022\020\n\010nodePort\030\005 \001(\005\"#\n\023Servic" + - "eProxyOptions\022\014\n\004path\030\001 \001(\t\"\264\005\n\013ServiceS" + - "pec\022.\n\005ports\030\001 \003(\0132\037.k8s.io.api.core.v1." + - "ServicePort\022?\n\010selector\030\002 \003(\0132-.k8s.io.a" + - "pi.core.v1.ServiceSpec.SelectorEntry\022\021\n\t" + - "clusterIP\030\003 \001(\t\022\022\n\nclusterIPs\030\022 \003(\t\022\014\n\004t" + - "ype\030\004 \001(\t\022\023\n\013externalIPs\030\005 \003(\t\022\027\n\017sessio" + - "nAffinity\030\007 \001(\t\022\026\n\016loadBalancerIP\030\010 \001(\t\022" + - " \n\030loadBalancerSourceRanges\030\t \003(\t\022\024\n\014ext" + - "ernalName\030\n \001(\t\022\035\n\025externalTrafficPolicy" + - "\030\013 \001(\t\022\033\n\023healthCheckNodePort\030\014 \001(\005\022 \n\030p" + - "ublishNotReadyAddresses\030\r \001(\010\022H\n\025session" + - "AffinityConfig\030\016 \001(\0132).k8s.io.api.core.v" + - "1.SessionAffinityConfig\022\022\n\nipFamilies\030\023 " + - "\003(\t\022\026\n\016ipFamilyPolicy\030\021 \001(\t\022%\n\035allocateL" + - "oadBalancerNodePorts\030\024 \001(\010\022\031\n\021loadBalanc" + - "erClass\030\025 \001(\t\022\035\n\025internalTrafficPolicy\030\026" + - " \001(\t\022\033\n\023trafficDistribution\030\027 \001(\t\032/\n\rSel" + - "ectorEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + - "8\001\"\222\001\n\rServiceStatus\022<\n\014loadBalancer\030\001 \001" + - "(\0132&.k8s.io.api.core.v1.LoadBalancerStat" + - "us\022C\n\nconditions\030\002 \003(\0132/.k8s.io.apimachi" + - "nery.pkg.apis.meta.v1.Condition\"M\n\025Sessi" + - "onAffinityConfig\0224\n\010clientIP\030\001 \001(\0132\".k8s" + - ".io.api.core.v1.ClientIPConfig\"\036\n\013SleepA" + - "ction\022\017\n\007seconds\030\001 \001(\003\"\250\001\n\037StorageOSPers" + - "istentVolumeSource\022\022\n\nvolumeName\030\001 \001(\t\022\027" + - "\n\017volumeNamespace\030\002 \001(\t\022\016\n\006fsType\030\003 \001(\t\022" + - "\020\n\010readOnly\030\004 \001(\010\0226\n\tsecretRef\030\005 \001(\0132#.k" + - "8s.io.api.core.v1.ObjectReference\"\243\001\n\025St" + - "orageOSVolumeSource\022\022\n\nvolumeName\030\001 \001(\t\022" + - "\027\n\017volumeNamespace\030\002 \001(\t\022\016\n\006fsType\030\003 \001(\t" + - "\022\020\n\010readOnly\030\004 \001(\010\022;\n\tsecretRef\030\005 \001(\0132(." + - "k8s.io.api.core.v1.LocalObjectReference\"" + - "%\n\006Sysctl\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"_" + - "\n\017TCPSocketAction\022>\n\004port\030\001 \001(\01320.k8s.io" + - ".apimachinery.pkg.util.intstr.IntOrStrin" + - "g\022\014\n\004host\030\002 \001(\t\"r\n\005Taint\022\013\n\003key\030\001 \001(\t\022\r\n" + - "\005value\030\002 \001(\t\022\016\n\006effect\030\003 \001(\t\022=\n\ttimeAdde" + - "d\030\004 \001(\0132*.k8s.io.apimachinery.pkg.apis.m" + - "eta.v1.Time\"e\n\nToleration\022\013\n\003key\030\001 \001(\t\022\020" + - "\n\010operator\030\002 \001(\t\022\r\n\005value\030\003 \001(\t\022\016\n\006effec" + - "t\030\004 \001(\t\022\031\n\021tolerationSeconds\030\005 \001(\003\"?\n To" + - "pologySelectorLabelRequirement\022\013\n\003key\030\001 " + - "\001(\t\022\016\n\006values\030\002 \003(\t\"k\n\024TopologySelectorT" + - "erm\022S\n\025matchLabelExpressions\030\001 \003(\01324.k8s" + - ".io.api.core.v1.TopologySelectorLabelReq" + - "uirement\"\211\002\n\030TopologySpreadConstraint\022\017\n" + - "\007maxSkew\030\001 \001(\005\022\023\n\013topologyKey\030\002 \001(\t\022\031\n\021w" + - "henUnsatisfiable\030\003 \001(\t\022J\n\rlabelSelector\030" + - "\004 \001(\01323.k8s.io.apimachinery.pkg.apis.met" + - "a.v1.LabelSelector\022\022\n\nminDomains\030\005 \001(\005\022\032" + - "\n\022nodeAffinityPolicy\030\006 \001(\t\022\030\n\020nodeTaints" + - "Policy\030\007 \001(\t\022\026\n\016matchLabelKeys\030\010 \003(\t\"I\n\031" + - "TypedLocalObjectReference\022\020\n\010apiGroup\030\001 " + - "\001(\t\022\014\n\004kind\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\"W\n\024Typed" + - "ObjectReference\022\020\n\010apiGroup\030\001 \001(\t\022\014\n\004kin" + - "d\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\021\n\tnamespace\030\004 \001(\t" + - "\"N\n\006Volume\022\014\n\004name\030\001 \001(\t\0226\n\014volumeSource" + - "\030\002 \001(\0132 .k8s.io.api.core.v1.VolumeSource" + - "\"0\n\014VolumeDevice\022\014\n\004name\030\001 \001(\t\022\022\n\ndevice" + - "Path\030\002 \001(\t\"\233\001\n\013VolumeMount\022\014\n\004name\030\001 \001(\t" + - "\022\020\n\010readOnly\030\002 \001(\010\022\031\n\021recursiveReadOnly\030" + - "\007 \001(\t\022\021\n\tmountPath\030\003 \001(\t\022\017\n\007subPath\030\004 \001(" + - "\t\022\030\n\020mountPropagation\030\005 \001(\t\022\023\n\013subPathEx" + - "pr\030\006 \001(\t\"a\n\021VolumeMountStatus\022\014\n\004name\030\001 " + - "\001(\t\022\021\n\tmountPath\030\002 \001(\t\022\020\n\010readOnly\030\003 \001(\010" + - "\022\031\n\021recursiveReadOnly\030\004 \001(\t\"H\n\022VolumeNod" + - "eAffinity\0222\n\010required\030\001 \001(\0132 .k8s.io.api" + - ".core.v1.NodeSelector\"\250\003\n\020VolumeProjecti" + - "on\0224\n\006secret\030\001 \001(\0132$.k8s.io.api.core.v1." + - "SecretProjection\022>\n\013downwardAPI\030\002 \001(\0132)." + - "k8s.io.api.core.v1.DownwardAPIProjection" + - "\022:\n\tconfigMap\030\003 \001(\0132\'.k8s.io.api.core.v1" + - ".ConfigMapProjection\022N\n\023serviceAccountTo" + - "ken\030\004 \001(\01321.k8s.io.api.core.v1.ServiceAc" + - "countTokenProjection\022L\n\022clusterTrustBund" + - "le\030\005 \001(\01320.k8s.io.api.core.v1.ClusterTru" + - "stBundleProjection\022D\n\016podCertificate\030\006 \001" + - "(\0132,.k8s.io.api.core.v1.PodCertificatePr" + - "ojection\"\370\002\n\032VolumeResourceRequirements\022" + - "J\n\006limits\030\001 \003(\0132:.k8s.io.api.core.v1.Vol" + - "umeResourceRequirements.LimitsEntry\022N\n\010r" + - "equests\030\002 \003(\0132<.k8s.io.api.core.v1.Volum" + - "eResourceRequirements.RequestsEntry\032]\n\013L" + - "imitsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132." + - ".k8s.io.apimachinery.pkg.api.resource.Qu" + - "antity:\0028\001\032_\n\rRequestsEntry\022\013\n\003key\030\001 \001(\t" + - "\022=\n\005value\030\002 \001(\0132..k8s.io.apimachinery.pk" + - "g.api.resource.Quantity:\0028\001\"\317\016\n\014VolumeSo" + - "urce\022:\n\010hostPath\030\001 \001(\0132(.k8s.io.api.core" + - ".v1.HostPathVolumeSource\022:\n\010emptyDir\030\002 \001" + - "(\0132(.k8s.io.api.core.v1.EmptyDirVolumeSo" + - "urce\022L\n\021gcePersistentDisk\030\003 \001(\01321.k8s.io" + - ".api.core.v1.GCEPersistentDiskVolumeSour" + - "ce\022R\n\024awsElasticBlockStore\030\004 \001(\01324.k8s.i" + - "o.api.core.v1.AWSElasticBlockStoreVolume" + - "Source\0228\n\007gitRepo\030\005 \001(\0132\'.k8s.io.api.cor" + - "e.v1.GitRepoVolumeSource\0226\n\006secret\030\006 \001(\013" + - "2&.k8s.io.api.core.v1.SecretVolumeSource" + - "\0220\n\003nfs\030\007 \001(\0132#.k8s.io.api.core.v1.NFSVo" + - "lumeSource\0224\n\005iscsi\030\010 \001(\0132%.k8s.io.api.c" + - "ore.v1.ISCSIVolumeSource\022<\n\tglusterfs\030\t " + - "\001(\0132).k8s.io.api.core.v1.GlusterfsVolume" + - "Source\022T\n\025persistentVolumeClaim\030\n \001(\01325." + - "k8s.io.api.core.v1.PersistentVolumeClaim" + - "VolumeSource\0220\n\003rbd\030\013 \001(\0132#.k8s.io.api.c" + - "ore.v1.RBDVolumeSource\0228\n\nflexVolume\030\014 \001" + - "(\0132$.k8s.io.api.core.v1.FlexVolumeSource" + - "\0226\n\006cinder\030\r \001(\0132&.k8s.io.api.core.v1.Ci" + - "nderVolumeSource\0226\n\006cephfs\030\016 \001(\0132&.k8s.i" + - "o.api.core.v1.CephFSVolumeSource\0228\n\007floc" + - "ker\030\017 \001(\0132\'.k8s.io.api.core.v1.FlockerVo" + - "lumeSource\022@\n\013downwardAPI\030\020 \001(\0132+.k8s.io" + - ".api.core.v1.DownwardAPIVolumeSource\022.\n\002" + - "fc\030\021 \001(\0132\".k8s.io.api.core.v1.FCVolumeSo" + - "urce\022<\n\tazureFile\030\022 \001(\0132).k8s.io.api.cor" + - "e.v1.AzureFileVolumeSource\022<\n\tconfigMap\030" + - "\023 \001(\0132).k8s.io.api.core.v1.ConfigMapVolu" + - "meSource\022I\n\rvsphereVolume\030\024 \001(\01322.k8s.io" + - ".api.core.v1.VsphereVirtualDiskVolumeSou" + - "rce\0228\n\007quobyte\030\025 \001(\0132\'.k8s.io.api.core.v" + - "1.QuobyteVolumeSource\022<\n\tazureDisk\030\026 \001(\013" + - "2).k8s.io.api.core.v1.AzureDiskVolumeSou" + - "rce\022R\n\024photonPersistentDisk\030\027 \001(\01324.k8s." + - "io.api.core.v1.PhotonPersistentDiskVolum" + - "eSource\022<\n\tprojected\030\032 \001(\0132).k8s.io.api." + - "core.v1.ProjectedVolumeSource\022@\n\016portwor" + - "xVolume\030\030 \001(\0132(.k8s.io.api.core.v1.Portw" + - "orxVolumeSource\0228\n\007scaleIO\030\031 \001(\0132\'.k8s.i" + - "o.api.core.v1.ScaleIOVolumeSource\022<\n\tsto" + - "rageos\030\033 \001(\0132).k8s.io.api.core.v1.Storag" + - "eOSVolumeSource\0220\n\003csi\030\034 \001(\0132#.k8s.io.ap" + - "i.core.v1.CSIVolumeSource\022<\n\tephemeral\030\035" + - " \001(\0132).k8s.io.api.core.v1.EphemeralVolum" + - "eSource\0224\n\005image\030\036 \001(\0132%.k8s.io.api.core" + - ".v1.ImageVolumeSource\"x\n\036VsphereVirtualD" + - "iskVolumeSource\022\022\n\nvolumePath\030\001 \001(\t\022\016\n\006f" + - "sType\030\002 \001(\t\022\031\n\021storagePolicyName\030\003 \001(\t\022\027" + - "\n\017storagePolicyID\030\004 \001(\t\"g\n\027WeightedPodAf" + - "finityTerm\022\016\n\006weight\030\001 \001(\005\022<\n\017podAffinit" + - "yTerm\030\002 \001(\0132#.k8s.io.api.core.v1.PodAffi" + - "nityTerm\"\207\001\n\035WindowsSecurityContextOptio" + - "ns\022\036\n\026gmsaCredentialSpecName\030\001 \001(\t\022\032\n\022gm" + - "saCredentialSpec\030\002 \001(\t\022\025\n\rrunAsUserName\030" + - "\003 \001(\t\022\023\n\013hostProcess\030\004 \001(\010\"O\n\021WorkloadRe" + - "ference\022\014\n\004name\030\001 \001(\t\022\020\n\010podGroup\030\002 \001(\t\022" + - "\032\n\022podGroupReplicaKey\030\003 \001(\tB4\n\032io.kubern" + - "etes.client.protoB\002V1Z\022k8s.io/api/core/v" + - "1" + ".IntOrString\022\014\n\004host\030\002 \001(\t\"r\n\005Taint\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022\016\n\006effect\030\003 \001(\t\022" + + "=\n\ttimeAdded\030\004 \001(\0132*.k8s.io.apimachinery" + + ".pkg.apis.meta.v1.Time\"e\n\nToleration\022\013\n\003" + + "key\030\001 \001(\t\022\020\n\010operator\030\002 \001(\t\022\r\n\005value\030\003 \001" + + "(\t\022\016\n\006effect\030\004 \001(\t\022\031\n\021tolerationSeconds\030" + + "\005 \001(\003\"?\n TopologySelectorLabelRequiremen" + + "t\022\013\n\003key\030\001 \001(\t\022\016\n\006values\030\002 \003(\t\"k\n\024Topolo" + + "gySelectorTerm\022S\n\025matchLabelExpressions\030" + + "\001 \003(\01324.k8s.io.api.core.v1.TopologySelec" + + "torLabelRequirement\"\211\002\n\030TopologySpreadCo" + + "nstraint\022\017\n\007maxSkew\030\001 \001(\005\022\023\n\013topologyKey" + + "\030\002 \001(\t\022\031\n\021whenUnsatisfiable\030\003 \001(\t\022J\n\rlab" + + "elSelector\030\004 \001(\01323.k8s.io.apimachinery.p" + + "kg.apis.meta.v1.LabelSelector\022\022\n\nminDoma" + + "ins\030\005 \001(\005\022\032\n\022nodeAffinityPolicy\030\006 \001(\t\022\030\n" + + "\020nodeTaintsPolicy\030\007 \001(\t\022\026\n\016matchLabelKey" + + "s\030\010 \003(\t\"I\n\031TypedLocalObjectReference\022\020\n\010" + + "apiGroup\030\001 \001(\t\022\014\n\004kind\030\002 \001(\t\022\014\n\004name\030\003 \001" + + "(\t\"W\n\024TypedObjectReference\022\020\n\010apiGroup\030\001" + + " \001(\t\022\014\n\004kind\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\021\n\tname" + + "space\030\004 \001(\t\"N\n\006Volume\022\014\n\004name\030\001 \001(\t\0226\n\014v" + + "olumeSource\030\002 \001(\0132 .k8s.io.api.core.v1.V" + + "olumeSource\"0\n\014VolumeDevice\022\014\n\004name\030\001 \001(" + + "\t\022\022\n\ndevicePath\030\002 \001(\t\"\233\001\n\013VolumeMount\022\014\n" + + "\004name\030\001 \001(\t\022\020\n\010readOnly\030\002 \001(\010\022\031\n\021recursi" + + "veReadOnly\030\007 \001(\t\022\021\n\tmountPath\030\003 \001(\t\022\017\n\007s" + + "ubPath\030\004 \001(\t\022\030\n\020mountPropagation\030\005 \001(\t\022\023" + + "\n\013subPathExpr\030\006 \001(\t\"a\n\021VolumeMountStatus" + + "\022\014\n\004name\030\001 \001(\t\022\021\n\tmountPath\030\002 \001(\t\022\020\n\010rea" + + "dOnly\030\003 \001(\010\022\031\n\021recursiveReadOnly\030\004 \001(\t\"H" + + "\n\022VolumeNodeAffinity\0222\n\010required\030\001 \001(\0132 " + + ".k8s.io.api.core.v1.NodeSelector\"\250\003\n\020Vol" + + "umeProjection\0224\n\006secret\030\001 \001(\0132$.k8s.io.a" + + "pi.core.v1.SecretProjection\022>\n\013downwardA" + + "PI\030\002 \001(\0132).k8s.io.api.core.v1.DownwardAP" + + "IProjection\022:\n\tconfigMap\030\003 \001(\0132\'.k8s.io." + + "api.core.v1.ConfigMapProjection\022N\n\023servi" + + "ceAccountToken\030\004 \001(\01321.k8s.io.api.core.v" + + "1.ServiceAccountTokenProjection\022L\n\022clust" + + "erTrustBundle\030\005 \001(\01320.k8s.io.api.core.v1" + + ".ClusterTrustBundleProjection\022D\n\016podCert" + + "ificate\030\006 \001(\0132,.k8s.io.api.core.v1.PodCe" + + "rtificateProjection\"\370\002\n\032VolumeResourceRe" + + "quirements\022J\n\006limits\030\001 \003(\0132:.k8s.io.api." + + "core.v1.VolumeResourceRequirements.Limit" + + "sEntry\022N\n\010requests\030\002 \003(\0132<.k8s.io.api.co" + + "re.v1.VolumeResourceRequirements.Request" + + "sEntry\032]\n\013LimitsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005va" + + "lue\030\002 \001(\0132..k8s.io.apimachinery.pkg.api." + + "resource.Quantity:\0028\001\032_\n\rRequestsEntry\022\013" + + "\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.apim" + + "achinery.pkg.api.resource.Quantity:\0028\001\"\317" + + "\016\n\014VolumeSource\022:\n\010hostPath\030\001 \001(\0132(.k8s." + + "io.api.core.v1.HostPathVolumeSource\022:\n\010e" + + "mptyDir\030\002 \001(\0132(.k8s.io.api.core.v1.Empty" + + "DirVolumeSource\022L\n\021gcePersistentDisk\030\003 \001" + + "(\01321.k8s.io.api.core.v1.GCEPersistentDis" + + "kVolumeSource\022R\n\024awsElasticBlockStore\030\004 " + + "\001(\01324.k8s.io.api.core.v1.AWSElasticBlock" + + "StoreVolumeSource\0228\n\007gitRepo\030\005 \001(\0132\'.k8s" + + ".io.api.core.v1.GitRepoVolumeSource\0226\n\006s" + + "ecret\030\006 \001(\0132&.k8s.io.api.core.v1.SecretV" + + "olumeSource\0220\n\003nfs\030\007 \001(\0132#.k8s.io.api.co" + + "re.v1.NFSVolumeSource\0224\n\005iscsi\030\010 \001(\0132%.k" + + "8s.io.api.core.v1.ISCSIVolumeSource\022<\n\tg" + + "lusterfs\030\t \001(\0132).k8s.io.api.core.v1.Glus" + + "terfsVolumeSource\022T\n\025persistentVolumeCla" + + "im\030\n \001(\01325.k8s.io.api.core.v1.Persistent" + + "VolumeClaimVolumeSource\0220\n\003rbd\030\013 \001(\0132#.k" + + "8s.io.api.core.v1.RBDVolumeSource\0228\n\nfle" + + "xVolume\030\014 \001(\0132$.k8s.io.api.core.v1.FlexV" + + "olumeSource\0226\n\006cinder\030\r \001(\0132&.k8s.io.api" + + ".core.v1.CinderVolumeSource\0226\n\006cephfs\030\016 " + + "\001(\0132&.k8s.io.api.core.v1.CephFSVolumeSou" + + "rce\0228\n\007flocker\030\017 \001(\0132\'.k8s.io.api.core.v" + + "1.FlockerVolumeSource\022@\n\013downwardAPI\030\020 \001" + + "(\0132+.k8s.io.api.core.v1.DownwardAPIVolum" + + "eSource\022.\n\002fc\030\021 \001(\0132\".k8s.io.api.core.v1" + + ".FCVolumeSource\022<\n\tazureFile\030\022 \001(\0132).k8s" + + ".io.api.core.v1.AzureFileVolumeSource\022<\n" + + "\tconfigMap\030\023 \001(\0132).k8s.io.api.core.v1.Co" + + "nfigMapVolumeSource\022I\n\rvsphereVolume\030\024 \001" + + "(\01322.k8s.io.api.core.v1.VsphereVirtualDi" + + "skVolumeSource\0228\n\007quobyte\030\025 \001(\0132\'.k8s.io" + + ".api.core.v1.QuobyteVolumeSource\022<\n\tazur" + + "eDisk\030\026 \001(\0132).k8s.io.api.core.v1.AzureDi" + + "skVolumeSource\022R\n\024photonPersistentDisk\030\027" + + " \001(\01324.k8s.io.api.core.v1.PhotonPersiste" + + "ntDiskVolumeSource\022<\n\tprojected\030\032 \001(\0132)." + + "k8s.io.api.core.v1.ProjectedVolumeSource" + + "\022@\n\016portworxVolume\030\030 \001(\0132(.k8s.io.api.co" + + "re.v1.PortworxVolumeSource\0228\n\007scaleIO\030\031 " + + "\001(\0132\'.k8s.io.api.core.v1.ScaleIOVolumeSo" + + "urce\022<\n\tstorageos\030\033 \001(\0132).k8s.io.api.cor" + + "e.v1.StorageOSVolumeSource\0220\n\003csi\030\034 \001(\0132" + + "#.k8s.io.api.core.v1.CSIVolumeSource\022<\n\t" + + "ephemeral\030\035 \001(\0132).k8s.io.api.core.v1.Eph" + + "emeralVolumeSource\0224\n\005image\030\036 \001(\0132%.k8s." + + "io.api.core.v1.ImageVolumeSource\"x\n\036Vsph" + + "ereVirtualDiskVolumeSource\022\022\n\nvolumePath" + + "\030\001 \001(\t\022\016\n\006fsType\030\002 \001(\t\022\031\n\021storagePolicyN" + + "ame\030\003 \001(\t\022\027\n\017storagePolicyID\030\004 \001(\t\"g\n\027We" + + "ightedPodAffinityTerm\022\016\n\006weight\030\001 \001(\005\022<\n" + + "\017podAffinityTerm\030\002 \001(\0132#.k8s.io.api.core" + + ".v1.PodAffinityTerm\"\207\001\n\035WindowsSecurityC" + + "ontextOptions\022\036\n\026gmsaCredentialSpecName\030" + + "\001 \001(\t\022\032\n\022gmsaCredentialSpec\030\002 \001(\t\022\025\n\rrun" + + "AsUserName\030\003 \001(\t\022\023\n\013hostProcess\030\004 \001(\010\"O\n" + + "\021WorkloadReference\022\014\n\004name\030\001 \001(\t\022\020\n\010podG" + + "roup\030\002 \001(\t\022\032\n\022podGroupReplicaKey\030\003 \001(\tB4" + + "\n\032io.kubernetes.client.protoB\002V1Z\022k8s.io" + + "/api/core/v1" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -394237,7 +395002,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_k8s_io_api_core_v1_PodStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodStatus_descriptor, - new java.lang.String[] { "ObservedGeneration", "Phase", "Conditions", "Message", "Reason", "NominatedNodeName", "HostIP", "HostIPs", "PodIP", "PodIPs", "StartTime", "InitContainerStatuses", "ContainerStatuses", "QosClass", "EphemeralContainerStatuses", "Resize", "ResourceClaimStatuses", "ExtendedResourceClaimStatus", }); + new java.lang.String[] { "ObservedGeneration", "Phase", "Conditions", "Message", "Reason", "NominatedNodeName", "HostIP", "HostIPs", "PodIP", "PodIPs", "StartTime", "InitContainerStatuses", "ContainerStatuses", "QosClass", "EphemeralContainerStatuses", "Resize", "ResourceClaimStatuses", "ExtendedResourceClaimStatus", "AllocatedResources", "Resources", }); + internal_static_k8s_io_api_core_v1_PodStatus_AllocatedResourcesEntry_descriptor = + internal_static_k8s_io_api_core_v1_PodStatus_descriptor.getNestedTypes().get(0); + internal_static_k8s_io_api_core_v1_PodStatus_AllocatedResourcesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_core_v1_PodStatus_AllocatedResourcesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_PodStatusResult_descriptor = getDescriptor().getMessageTypes().get(159); internal_static_k8s_io_api_core_v1_PodStatusResult_fieldAccessorTable = new From 1d0cb54c2afbc570de9b354e8fae71131321c0ca Mon Sep 17 00:00:00 2001 From: Kubernetes Publisher Date: Fri, 21 Nov 2025 03:26:18 +0000 Subject: [PATCH 3/4] Applied patches under scripts/patches/*.diff Signed-off-by: Kubernetes Publisher --- .../io/kubernetes/client/openapi/JSON.java | 36 ++++++++++++++++--- .../client/openapi/models/V1ListMeta.java | 3 +- .../client/openapi/models/V1Secret.java | 3 +- .../client/openapi/models/V1Status.java | 3 +- 4 files changed, 38 insertions(+), 7 deletions(-) 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 f2536b2a9f..f132795f2f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java @@ -24,6 +24,9 @@ import io.gsonfire.GsonFireBuilder; import io.gsonfire.TypeSelector; +import io.kubernetes.client.gson.V1MetadataExclusionStrategy; +import io.kubernetes.client.gson.V1StatusPreProcessor; +import io.kubernetes.client.openapi.models.V1Status; import okio.ByteString; import java.io.IOException; @@ -38,6 +41,9 @@ 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; @@ -52,9 +58,20 @@ public class JSON { private static Gson gson; private static boolean isLenientOnJson = false; + + private static final DateTimeFormatter RFC3339MICRO_FORMATTER = + new DateTimeFormatterBuilder() + .parseDefaulting(ChronoField.OFFSET_SECONDS, 0) + .append(DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss")) + .optionalStart() + .appendFraction(ChronoField.NANO_OF_SECOND, 6, 6, true) + .optionalEnd() + .appendLiteral("Z") + .toFormatter(); + private static DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); private static SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); - private static OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(); + private static OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(RFC3339MICRO_FORMATTER); private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); @@ -62,8 +79,11 @@ public class JSON { public static GsonBuilder createGson() { GsonFireBuilder fireBuilder = new GsonFireBuilder() ; - GsonBuilder builder = fireBuilder.createGsonBuilder(); - return builder; + GsonBuilder builder = + fireBuilder + .registerPreProcessor(V1Status.class, new V1StatusPreProcessor()) + .createGsonBuilder(); + return builder.setExclusionStrategies(new V1MetadataExclusionStrategy()); } private static String getDiscriminatorValue(JsonElement readElement, String discriminatorField) { @@ -907,11 +927,14 @@ public static class ByteArrayAdapter extends TypeAdapter { @Override public void write(JsonWriter out, byte[] value) throws IOException { + boolean oldHtmlSafe = out.isHtmlSafe(); + out.setHtmlSafe(false); if (value == null) { out.nullValue(); } else { out.value(ByteString.of(value).base64()); } + out.setHtmlSafe(oldHtmlSafe); } @Override @@ -967,7 +990,12 @@ public OffsetDateTime read(JsonReader in) throws IOException { if (date.endsWith("+0000")) { date = date.substring(0, date.length()-5) + "Z"; } - return OffsetDateTime.parse(date, formatter); + try { + return OffsetDateTime.parse(date, formatter); + } catch (DateTimeParseException e) { + // backward-compatibility for ISO8601 timestamp format + return OffsetDateTime.parse(date, DateTimeFormatter.ISO_OFFSET_DATE_TIME); + } } } } 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 c005c5ba23..18066e25cf 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 @@ -267,7 +267,8 @@ public void write(JsonWriter out, V1ListMeta value) throws IOException { @Override public V1ListMeta read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); + // Disable validation so delete API can tolerate non-status return object (graceful deletion) + // validateJsonObject(jsonObj); return thisAdapter.fromJsonTree(jsonElement); } 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 de3b2f48a8..8a61dd97ad 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,6 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.MapUtils; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -263,7 +264,7 @@ public boolean equals(Object o) { } V1Secret v1Secret = (V1Secret) o; return Objects.equals(this.apiVersion, v1Secret.apiVersion) && - Objects.equals(this.data, v1Secret.data) && + MapUtils.equals(this.data, v1Secret.data) && Objects.equals(this.immutable, v1Secret.immutable) && Objects.equals(this.kind, v1Secret.kind) && Objects.equals(this.metadata, v1Secret.metadata) && 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 20f3ef32df..fa0aeaecce 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 @@ -391,7 +391,8 @@ public void write(JsonWriter out, V1Status value) throws IOException { @Override public V1Status read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); + // Disable validation so delete API can tolerate non-status return object (graceful deletion) + // validateJsonObject(jsonObj); return thisAdapter.fromJsonTree(jsonElement); } From 894789533d7e2daeb65e0b3f6e88feadc11417d5 Mon Sep 17 00:00:00 2001 From: Kubernetes Publisher Date: Fri, 21 Nov 2025 03:28:20 +0000 Subject: [PATCH 4/4] Format and fluent-gen from release-1.34 Signed-off-by: Kubernetes Publisher --- .../kubernetes/client/fluent/BaseFluent.java | 66 +- .../io/kubernetes/client/fluent/Builder.java | 3 +- .../client/fluent/DelegatingVisitor.java | 27 +- .../io/kubernetes/client/fluent/Editable.java | 3 +- .../io/kubernetes/client/fluent/Nested.java | 3 +- .../client/fluent/PathAwareTypedVisitor.java | 27 +- .../client/fluent/TypedVisitor.java | 3 +- .../kubernetes/client/fluent/Visitable.java | 27 +- .../client/fluent/VisitableBuilder.java | 3 +- .../client/fluent/VisitableMap.java | 27 +- .../io/kubernetes/client/fluent/Visitor.java | 73 +- .../client/fluent/VisitorListener.java | 38 +- .../client/fluent/VisitorWiretap.java | 41 +- .../io/kubernetes/client/fluent/Visitors.java | 102 +- .../models/AbstractOpenApiSchemaFluent.java | 69 +- ...registrationV1ServiceReferenceBuilder.java | 15 +- ...nregistrationV1ServiceReferenceFluent.java | 123 +- ...istrationV1WebhookClientConfigBuilder.java | 15 +- ...gistrationV1WebhookClientConfigFluent.java | 248 +- ...piextensionsV1ServiceReferenceBuilder.java | 15 +- ...ApiextensionsV1ServiceReferenceFluent.java | 123 +- ...xtensionsV1WebhookClientConfigBuilder.java | 15 +- ...extensionsV1WebhookClientConfigFluent.java | 248 +- ...registrationV1ServiceReferenceBuilder.java | 15 +- ...iregistrationV1ServiceReferenceFluent.java | 95 +- .../AuthenticationV1TokenRequestBuilder.java | 15 +- .../AuthenticationV1TokenRequestFluent.java | 276 +- .../models/CoreV1EndpointPortBuilder.java | 15 +- .../models/CoreV1EndpointPortFluent.java | 123 +- .../openapi/models/CoreV1EventBuilder.java | 15 +- .../openapi/models/CoreV1EventFluent.java | 674 +-- .../models/CoreV1EventListBuilder.java | 15 +- .../openapi/models/CoreV1EventListFluent.java | 413 +- .../models/CoreV1EventSeriesBuilder.java | 15 +- .../models/CoreV1EventSeriesFluent.java | 69 +- .../models/CoreV1ResourceClaimBuilder.java | 15 +- .../models/CoreV1ResourceClaimFluent.java | 67 +- .../DiscoveryV1EndpointPortBuilder.java | 15 +- .../models/DiscoveryV1EndpointPortFluent.java | 123 +- .../openapi/models/EventsV1EventBuilder.java | 15 +- .../openapi/models/EventsV1EventFluent.java | 674 +-- .../models/EventsV1EventListBuilder.java | 15 +- .../models/EventsV1EventListFluent.java | 413 +- .../models/EventsV1EventSeriesBuilder.java | 15 +- .../models/EventsV1EventSeriesFluent.java | 69 +- .../models/FlowcontrolV1SubjectBuilder.java | 15 +- .../models/FlowcontrolV1SubjectFluent.java | 248 +- .../openapi/models/RbacV1SubjectBuilder.java | 15 +- .../openapi/models/RbacV1SubjectFluent.java | 123 +- .../ResourceV1ResourceClaimBuilder.java | 15 +- .../models/ResourceV1ResourceClaimFluent.java | 276 +- .../models/StorageV1TokenRequestBuilder.java | 15 +- .../models/StorageV1TokenRequestFluent.java | 67 +- .../openapi/models/V1APIGroupBuilder.java | 15 +- .../openapi/models/V1APIGroupFluent.java | 778 +-- .../openapi/models/V1APIGroupListBuilder.java | 15 +- .../openapi/models/V1APIGroupListFluent.java | 352 +- .../openapi/models/V1APIResourceBuilder.java | 15 +- .../openapi/models/V1APIResourceFluent.java | 693 +-- .../models/V1APIResourceListBuilder.java | 15 +- .../models/V1APIResourceListFluent.java | 384 +- .../openapi/models/V1APIServiceBuilder.java | 15 +- .../models/V1APIServiceConditionBuilder.java | 15 +- .../models/V1APIServiceConditionFluent.java | 153 +- .../openapi/models/V1APIServiceFluent.java | 276 +- .../models/V1APIServiceListBuilder.java | 15 +- .../models/V1APIServiceListFluent.java | 413 +- .../models/V1APIServiceSpecBuilder.java | 15 +- .../models/V1APIServiceSpecFluent.java | 364 +- .../models/V1APIServiceStatusBuilder.java | 15 +- .../models/V1APIServiceStatusFluent.java | 280 +- .../openapi/models/V1APIVersionsBuilder.java | 15 +- .../openapi/models/V1APIVersionsFluent.java | 510 +- ...SElasticBlockStoreVolumeSourceBuilder.java | 15 +- ...WSElasticBlockStoreVolumeSourceFluent.java | 125 +- .../openapi/models/V1AffinityBuilder.java | 15 +- .../openapi/models/V1AffinityFluent.java | 220 +- .../models/V1AggregationRuleBuilder.java | 15 +- .../models/V1AggregationRuleFluent.java | 280 +- .../V1AllocatedDeviceStatusBuilder.java | 15 +- .../models/V1AllocatedDeviceStatusFluent.java | 485 +- .../models/V1AllocationResultBuilder.java | 15 +- .../models/V1AllocationResultFluent.java | 179 +- .../models/V1AppArmorProfileBuilder.java | 15 +- .../models/V1AppArmorProfileFluent.java | 67 +- .../models/V1AttachedVolumeBuilder.java | 15 +- .../models/V1AttachedVolumeFluent.java | 67 +- .../models/V1AuditAnnotationBuilder.java | 15 +- .../models/V1AuditAnnotationFluent.java | 67 +- .../V1AzureDiskVolumeSourceBuilder.java | 15 +- .../models/V1AzureDiskVolumeSourceFluent.java | 175 +- ...zureFilePersistentVolumeSourceBuilder.java | 15 +- ...AzureFilePersistentVolumeSourceFluent.java | 125 +- .../V1AzureFileVolumeSourceBuilder.java | 15 +- .../models/V1AzureFileVolumeSourceFluent.java | 97 +- .../openapi/models/V1BindingBuilder.java | 15 +- .../openapi/models/V1BindingFluent.java | 207 +- .../models/V1BoundObjectReferenceBuilder.java | 15 +- .../models/V1BoundObjectReferenceFluent.java | 123 +- .../models/V1CELDeviceSelectorBuilder.java | 15 +- .../models/V1CELDeviceSelectorFluent.java | 39 +- .../openapi/models/V1CSIDriverBuilder.java | 15 +- .../openapi/models/V1CSIDriverFluent.java | 207 +- .../models/V1CSIDriverListBuilder.java | 15 +- .../openapi/models/V1CSIDriverListFluent.java | 413 +- .../models/V1CSIDriverSpecBuilder.java | 15 +- .../openapi/models/V1CSIDriverSpecFluent.java | 714 +-- .../openapi/models/V1CSINodeBuilder.java | 15 +- .../models/V1CSINodeDriverBuilder.java | 15 +- .../openapi/models/V1CSINodeDriverFluent.java | 326 +- .../openapi/models/V1CSINodeFluent.java | 207 +- .../openapi/models/V1CSINodeListBuilder.java | 15 +- .../openapi/models/V1CSINodeListFluent.java | 413 +- .../openapi/models/V1CSINodeSpecBuilder.java | 15 +- .../openapi/models/V1CSINodeSpecFluent.java | 280 +- .../V1CSIPersistentVolumeSourceBuilder.java | 15 +- .../V1CSIPersistentVolumeSourceFluent.java | 600 +-- .../models/V1CSIStorageCapacityBuilder.java | 15 +- .../models/V1CSIStorageCapacityFluent.java | 307 +- .../V1CSIStorageCapacityListBuilder.java | 15 +- .../V1CSIStorageCapacityListFluent.java | 413 +- .../models/V1CSIVolumeSourceBuilder.java | 15 +- .../models/V1CSIVolumeSourceFluent.java | 270 +- .../openapi/models/V1CapabilitiesBuilder.java | 15 +- .../openapi/models/V1CapabilitiesFluent.java | 303 +- .../V1CapacityRequestPolicyBuilder.java | 15 +- .../models/V1CapacityRequestPolicyFluent.java | 308 +- .../V1CapacityRequestPolicyRangeBuilder.java | 15 +- .../V1CapacityRequestPolicyRangeFluent.java | 121 +- .../models/V1CapacityRequirementsBuilder.java | 15 +- .../models/V1CapacityRequirementsFluent.java | 113 +- ...V1CephFSPersistentVolumeSourceBuilder.java | 15 +- .../V1CephFSPersistentVolumeSourceFluent.java | 370 +- .../models/V1CephFSVolumeSourceBuilder.java | 15 +- .../models/V1CephFSVolumeSourceFluent.java | 370 +- .../V1CertificateSigningRequestBuilder.java | 15 +- ...ificateSigningRequestConditionBuilder.java | 15 +- ...tificateSigningRequestConditionFluent.java | 175 +- .../V1CertificateSigningRequestFluent.java | 276 +- ...1CertificateSigningRequestListBuilder.java | 15 +- ...V1CertificateSigningRequestListFluent.java | 413 +- ...1CertificateSigningRequestSpecBuilder.java | 15 +- ...V1CertificateSigningRequestSpecFluent.java | 663 +-- ...ertificateSigningRequestStatusBuilder.java | 15 +- ...CertificateSigningRequestStatusFluent.java | 418 +- ...V1CinderPersistentVolumeSourceBuilder.java | 15 +- .../V1CinderPersistentVolumeSourceFluent.java | 168 +- .../models/V1CinderVolumeSourceBuilder.java | 15 +- .../models/V1CinderVolumeSourceFluent.java | 168 +- .../models/V1ClientIPConfigBuilder.java | 15 +- .../models/V1ClientIPConfigFluent.java | 39 +- .../models/V1ClusterRoleBindingBuilder.java | 15 +- .../models/V1ClusterRoleBindingFluent.java | 528 +- .../V1ClusterRoleBindingListBuilder.java | 15 +- .../V1ClusterRoleBindingListFluent.java | 413 +- .../openapi/models/V1ClusterRoleBuilder.java | 15 +- .../openapi/models/V1ClusterRoleFluent.java | 526 +- .../models/V1ClusterRoleListBuilder.java | 15 +- .../models/V1ClusterRoleListFluent.java | 413 +- ...V1ClusterTrustBundleProjectionBuilder.java | 15 +- .../V1ClusterTrustBundleProjectionFluent.java | 192 +- .../models/V1ComponentConditionBuilder.java | 15 +- .../models/V1ComponentConditionFluent.java | 123 +- .../models/V1ComponentStatusBuilder.java | 15 +- .../models/V1ComponentStatusFluent.java | 401 +- .../models/V1ComponentStatusListBuilder.java | 15 +- .../models/V1ComponentStatusListFluent.java | 413 +- .../openapi/models/V1ConditionBuilder.java | 15 +- .../openapi/models/V1ConditionFluent.java | 175 +- .../openapi/models/V1ConfigMapBuilder.java | 15 +- .../models/V1ConfigMapEnvSourceBuilder.java | 15 +- .../models/V1ConfigMapEnvSourceFluent.java | 69 +- .../openapi/models/V1ConfigMapFluent.java | 358 +- .../models/V1ConfigMapKeySelectorBuilder.java | 15 +- .../models/V1ConfigMapKeySelectorFluent.java | 97 +- .../models/V1ConfigMapListBuilder.java | 15 +- .../openapi/models/V1ConfigMapListFluent.java | 413 +- .../V1ConfigMapNodeConfigSourceBuilder.java | 15 +- .../V1ConfigMapNodeConfigSourceFluent.java | 151 +- .../models/V1ConfigMapProjectionBuilder.java | 15 +- .../models/V1ConfigMapProjectionFluent.java | 354 +- .../V1ConfigMapVolumeSourceBuilder.java | 15 +- .../models/V1ConfigMapVolumeSourceFluent.java | 384 +- .../openapi/models/V1ContainerBuilder.java | 15 +- ...ntainerExtendedResourceRequestBuilder.java | 15 +- ...ontainerExtendedResourceRequestFluent.java | 95 +- .../openapi/models/V1ContainerFluent.java | 3228 ++++++------ .../models/V1ContainerImageBuilder.java | 15 +- .../models/V1ContainerImageFluent.java | 205 +- .../models/V1ContainerPortBuilder.java | 15 +- .../openapi/models/V1ContainerPortFluent.java | 151 +- .../V1ContainerResizePolicyBuilder.java | 15 +- .../models/V1ContainerResizePolicyFluent.java | 67 +- .../models/V1ContainerRestartRuleBuilder.java | 15 +- .../models/V1ContainerRestartRuleFluent.java | 106 +- ...ontainerRestartRuleOnExitCodesBuilder.java | 15 +- ...ContainerRestartRuleOnExitCodesFluent.java | 209 +- .../models/V1ContainerStateBuilder.java | 15 +- .../models/V1ContainerStateFluent.java | 224 +- .../V1ContainerStateRunningBuilder.java | 15 +- .../models/V1ContainerStateRunningFluent.java | 41 +- .../V1ContainerStateTerminatedBuilder.java | 15 +- .../V1ContainerStateTerminatedFluent.java | 199 +- .../V1ContainerStateWaitingBuilder.java | 15 +- .../models/V1ContainerStateWaitingFluent.java | 67 +- .../models/V1ContainerStatusBuilder.java | 15 +- .../models/V1ContainerStatusFluent.java | 1141 +++-- .../models/V1ContainerUserBuilder.java | 15 +- .../openapi/models/V1ContainerUserFluent.java | 78 +- .../models/V1ControllerRevisionBuilder.java | 15 +- .../models/V1ControllerRevisionFluent.java | 192 +- .../V1ControllerRevisionListBuilder.java | 15 +- .../V1ControllerRevisionListFluent.java | 413 +- .../openapi/models/V1CounterBuilder.java | 15 +- .../openapi/models/V1CounterFluent.java | 49 +- .../openapi/models/V1CounterSetBuilder.java | 15 +- .../openapi/models/V1CounterSetFluent.java | 145 +- .../openapi/models/V1CronJobBuilder.java | 15 +- .../openapi/models/V1CronJobFluent.java | 276 +- .../openapi/models/V1CronJobListBuilder.java | 15 +- .../openapi/models/V1CronJobListFluent.java | 413 +- .../openapi/models/V1CronJobSpecBuilder.java | 15 +- .../openapi/models/V1CronJobSpecFluent.java | 274 +- .../models/V1CronJobStatusBuilder.java | 15 +- .../openapi/models/V1CronJobStatusFluent.java | 338 +- .../V1CrossVersionObjectReferenceBuilder.java | 15 +- .../V1CrossVersionObjectReferenceFluent.java | 95 +- ...CustomResourceColumnDefinitionBuilder.java | 15 +- ...1CustomResourceColumnDefinitionFluent.java | 173 +- .../V1CustomResourceConversionBuilder.java | 15 +- .../V1CustomResourceConversionFluent.java | 114 +- .../V1CustomResourceDefinitionBuilder.java | 15 +- ...tomResourceDefinitionConditionBuilder.java | 15 +- ...stomResourceDefinitionConditionFluent.java | 153 +- .../V1CustomResourceDefinitionFluent.java | 276 +- ...V1CustomResourceDefinitionListBuilder.java | 15 +- .../V1CustomResourceDefinitionListFluent.java | 413 +- ...1CustomResourceDefinitionNamesBuilder.java | 15 +- ...V1CustomResourceDefinitionNamesFluent.java | 431 +- ...V1CustomResourceDefinitionSpecBuilder.java | 15 +- .../V1CustomResourceDefinitionSpecFluent.java | 554 +- ...CustomResourceDefinitionStatusBuilder.java | 15 +- ...1CustomResourceDefinitionStatusFluent.java | 519 +- ...ustomResourceDefinitionVersionBuilder.java | 15 +- ...CustomResourceDefinitionVersionFluent.java | 869 ++-- ...CustomResourceSubresourceScaleBuilder.java | 15 +- ...1CustomResourceSubresourceScaleFluent.java | 95 +- .../V1CustomResourceSubresourcesBuilder.java | 15 +- .../V1CustomResourceSubresourcesFluent.java | 110 +- .../V1CustomResourceValidationBuilder.java | 15 +- .../V1CustomResourceValidationFluent.java | 78 +- .../models/V1DaemonEndpointBuilder.java | 15 +- .../models/V1DaemonEndpointFluent.java | 39 +- .../openapi/models/V1DaemonSetBuilder.java | 15 +- .../models/V1DaemonSetConditionBuilder.java | 15 +- .../models/V1DaemonSetConditionFluent.java | 153 +- .../openapi/models/V1DaemonSetFluent.java | 276 +- .../models/V1DaemonSetListBuilder.java | 15 +- .../openapi/models/V1DaemonSetListFluent.java | 413 +- .../models/V1DaemonSetSpecBuilder.java | 15 +- .../openapi/models/V1DaemonSetSpecFluent.java | 282 +- .../models/V1DaemonSetStatusBuilder.java | 15 +- .../models/V1DaemonSetStatusFluent.java | 588 +-- .../V1DaemonSetUpdateStrategyBuilder.java | 15 +- .../V1DaemonSetUpdateStrategyFluent.java | 110 +- .../models/V1DeleteOptionsBuilder.java | 15 +- .../openapi/models/V1DeleteOptionsFluent.java | 422 +- .../openapi/models/V1DeploymentBuilder.java | 15 +- .../models/V1DeploymentConditionBuilder.java | 15 +- .../models/V1DeploymentConditionFluent.java | 175 +- .../openapi/models/V1DeploymentFluent.java | 276 +- .../models/V1DeploymentListBuilder.java | 15 +- .../models/V1DeploymentListFluent.java | 413 +- .../models/V1DeploymentSpecBuilder.java | 15 +- .../models/V1DeploymentSpecFluent.java | 362 +- .../models/V1DeploymentStatusBuilder.java | 15 +- .../models/V1DeploymentStatusFluent.java | 502 +- .../models/V1DeploymentStrategyBuilder.java | 15 +- .../models/V1DeploymentStrategyFluent.java | 110 +- ...1DeviceAllocationConfigurationBuilder.java | 15 +- ...V1DeviceAllocationConfigurationFluent.java | 294 +- .../V1DeviceAllocationResultBuilder.java | 15 +- .../V1DeviceAllocationResultFluent.java | 547 +- .../models/V1DeviceAttributeBuilder.java | 15 +- .../models/V1DeviceAttributeFluent.java | 125 +- .../openapi/models/V1DeviceBuilder.java | 15 +- .../models/V1DeviceCapacityBuilder.java | 15 +- .../models/V1DeviceCapacityFluent.java | 120 +- .../openapi/models/V1DeviceClaimBuilder.java | 15 +- .../V1DeviceClaimConfigurationBuilder.java | 15 +- .../V1DeviceClaimConfigurationFluent.java | 268 +- .../openapi/models/V1DeviceClaimFluent.java | 876 ++-- .../openapi/models/V1DeviceClassBuilder.java | 15 +- .../V1DeviceClassConfigurationBuilder.java | 15 +- .../V1DeviceClassConfigurationFluent.java | 78 +- .../openapi/models/V1DeviceClassFluent.java | 207 +- .../models/V1DeviceClassListBuilder.java | 15 +- .../models/V1DeviceClassListFluent.java | 413 +- .../models/V1DeviceClassSpecBuilder.java | 15 +- .../models/V1DeviceClassSpecFluent.java | 581 +-- .../models/V1DeviceConstraintBuilder.java | 15 +- .../models/V1DeviceConstraintFluent.java | 239 +- .../V1DeviceCounterConsumptionBuilder.java | 15 +- .../V1DeviceCounterConsumptionFluent.java | 135 +- .../client/openapi/models/V1DeviceFluent.java | 1390 ++--- ...1DeviceRequestAllocationResultBuilder.java | 15 +- ...V1DeviceRequestAllocationResultFluent.java | 928 ++-- .../models/V1DeviceRequestBuilder.java | 15 +- .../openapi/models/V1DeviceRequestFluent.java | 381 +- .../models/V1DeviceSelectorBuilder.java | 15 +- .../models/V1DeviceSelectorFluent.java | 78 +- .../models/V1DeviceSubRequestBuilder.java | 15 +- .../models/V1DeviceSubRequestFluent.java | 816 +-- .../openapi/models/V1DeviceTaintBuilder.java | 15 +- .../openapi/models/V1DeviceTaintFluent.java | 125 +- .../models/V1DeviceTolerationBuilder.java | 15 +- .../models/V1DeviceTolerationFluent.java | 151 +- .../V1DownwardAPIProjectionBuilder.java | 15 +- .../models/V1DownwardAPIProjectionFluent.java | 292 +- .../V1DownwardAPIVolumeFileBuilder.java | 15 +- .../models/V1DownwardAPIVolumeFileFluent.java | 209 +- .../V1DownwardAPIVolumeSourceBuilder.java | 15 +- .../V1DownwardAPIVolumeSourceFluent.java | 324 +- .../models/V1EmptyDirVolumeSourceBuilder.java | 15 +- .../models/V1EmptyDirVolumeSourceFluent.java | 77 +- .../models/V1EndpointAddressBuilder.java | 15 +- .../models/V1EndpointAddressFluent.java | 170 +- .../openapi/models/V1EndpointBuilder.java | 15 +- .../models/V1EndpointConditionsBuilder.java | 15 +- .../models/V1EndpointConditionsFluent.java | 97 +- .../openapi/models/V1EndpointFluent.java | 590 +-- .../models/V1EndpointHintsBuilder.java | 15 +- .../openapi/models/V1EndpointHintsFluent.java | 551 +- .../models/V1EndpointSliceBuilder.java | 15 +- .../openapi/models/V1EndpointSliceFluent.java | 728 +-- .../models/V1EndpointSliceListBuilder.java | 15 +- .../models/V1EndpointSliceListFluent.java | 413 +- .../models/V1EndpointSubsetBuilder.java | 15 +- .../models/V1EndpointSubsetFluent.java | 870 ++-- .../openapi/models/V1EndpointsBuilder.java | 15 +- .../openapi/models/V1EndpointsFluent.java | 441 +- .../models/V1EndpointsListBuilder.java | 15 +- .../openapi/models/V1EndpointsListFluent.java | 413 +- .../models/V1EnvFromSourceBuilder.java | 15 +- .../openapi/models/V1EnvFromSourceFluent.java | 179 +- .../openapi/models/V1EnvVarBuilder.java | 15 +- .../client/openapi/models/V1EnvVarFluent.java | 142 +- .../openapi/models/V1EnvVarSourceBuilder.java | 15 +- .../openapi/models/V1EnvVarSourceFluent.java | 362 +- .../models/V1EphemeralContainerBuilder.java | 15 +- .../models/V1EphemeralContainerFluent.java | 3250 ++++++------ .../V1EphemeralVolumeSourceBuilder.java | 15 +- .../models/V1EphemeralVolumeSourceFluent.java | 86 +- .../openapi/models/V1EventSourceBuilder.java | 15 +- .../openapi/models/V1EventSourceFluent.java | 67 +- .../openapi/models/V1EvictionBuilder.java | 15 +- .../openapi/models/V1EvictionFluent.java | 207 +- .../models/V1ExactDeviceRequestBuilder.java | 15 +- .../models/V1ExactDeviceRequestFluent.java | 818 +-- .../openapi/models/V1ExecActionBuilder.java | 15 +- .../openapi/models/V1ExecActionFluent.java | 153 +- ...emptPriorityLevelConfigurationBuilder.java | 15 +- ...xemptPriorityLevelConfigurationFluent.java | 67 +- .../models/V1ExpressionWarningBuilder.java | 15 +- .../models/V1ExpressionWarningFluent.java | 67 +- .../V1ExternalDocumentationBuilder.java | 15 +- .../models/V1ExternalDocumentationFluent.java | 67 +- .../models/V1FCVolumeSourceBuilder.java | 15 +- .../models/V1FCVolumeSourceFluent.java | 435 +- .../V1FieldSelectorAttributesBuilder.java | 15 +- .../V1FieldSelectorAttributesFluent.java | 326 +- .../V1FieldSelectorRequirementBuilder.java | 15 +- .../V1FieldSelectorRequirementFluent.java | 241 +- .../models/V1FileKeySelectorBuilder.java | 15 +- .../models/V1FileKeySelectorFluent.java | 125 +- .../V1FlexPersistentVolumeSourceBuilder.java | 15 +- .../V1FlexPersistentVolumeSourceFluent.java | 274 +- .../models/V1FlexVolumeSourceBuilder.java | 15 +- .../models/V1FlexVolumeSourceFluent.java | 274 +- .../models/V1FlockerVolumeSourceBuilder.java | 15 +- .../models/V1FlockerVolumeSourceFluent.java | 67 +- .../V1FlowDistinguisherMethodBuilder.java | 15 +- .../V1FlowDistinguisherMethodFluent.java | 39 +- .../openapi/models/V1FlowSchemaBuilder.java | 15 +- .../models/V1FlowSchemaConditionBuilder.java | 15 +- .../models/V1FlowSchemaConditionFluent.java | 153 +- .../openapi/models/V1FlowSchemaFluent.java | 276 +- .../models/V1FlowSchemaListBuilder.java | 15 +- .../models/V1FlowSchemaListFluent.java | 413 +- .../models/V1FlowSchemaSpecBuilder.java | 15 +- .../models/V1FlowSchemaSpecFluent.java | 498 +- .../models/V1FlowSchemaStatusBuilder.java | 15 +- .../models/V1FlowSchemaStatusFluent.java | 280 +- .../openapi/models/V1ForNodeBuilder.java | 15 +- .../openapi/models/V1ForNodeFluent.java | 39 +- .../openapi/models/V1ForZoneBuilder.java | 15 +- .../openapi/models/V1ForZoneFluent.java | 39 +- ...1GCEPersistentDiskVolumeSourceBuilder.java | 15 +- ...V1GCEPersistentDiskVolumeSourceFluent.java | 125 +- .../openapi/models/V1GRPCActionBuilder.java | 15 +- .../openapi/models/V1GRPCActionFluent.java | 67 +- .../models/V1GitRepoVolumeSourceBuilder.java | 15 +- .../models/V1GitRepoVolumeSourceFluent.java | 95 +- ...lusterfsPersistentVolumeSourceBuilder.java | 15 +- ...GlusterfsPersistentVolumeSourceFluent.java | 125 +- .../V1GlusterfsVolumeSourceBuilder.java | 15 +- .../models/V1GlusterfsVolumeSourceFluent.java | 97 +- .../openapi/models/V1GroupSubjectBuilder.java | 15 +- .../openapi/models/V1GroupSubjectFluent.java | 39 +- .../V1GroupVersionForDiscoveryBuilder.java | 15 +- .../V1GroupVersionForDiscoveryFluent.java | 67 +- .../models/V1HTTPGetActionBuilder.java | 15 +- .../openapi/models/V1HTTPGetActionFluent.java | 420 +- .../openapi/models/V1HTTPHeaderBuilder.java | 15 +- .../openapi/models/V1HTTPHeaderFluent.java | 67 +- .../models/V1HTTPIngressPathBuilder.java | 15 +- .../models/V1HTTPIngressPathFluent.java | 134 +- .../models/V1HTTPIngressRuleValueBuilder.java | 15 +- .../models/V1HTTPIngressRuleValueFluent.java | 296 +- .../V1HorizontalPodAutoscalerBuilder.java | 15 +- .../V1HorizontalPodAutoscalerFluent.java | 276 +- .../V1HorizontalPodAutoscalerListBuilder.java | 15 +- .../V1HorizontalPodAutoscalerListFluent.java | 413 +- .../V1HorizontalPodAutoscalerSpecBuilder.java | 15 +- .../V1HorizontalPodAutoscalerSpecFluent.java | 168 +- ...1HorizontalPodAutoscalerStatusBuilder.java | 15 +- ...V1HorizontalPodAutoscalerStatusFluent.java | 155 +- .../openapi/models/V1HostAliasBuilder.java | 15 +- .../openapi/models/V1HostAliasFluent.java | 197 +- .../openapi/models/V1HostIPBuilder.java | 15 +- .../client/openapi/models/V1HostIPFluent.java | 39 +- .../models/V1HostPathVolumeSourceBuilder.java | 15 +- .../models/V1HostPathVolumeSourceFluent.java | 67 +- .../openapi/models/V1IPAddressBuilder.java | 15 +- .../openapi/models/V1IPAddressFluent.java | 207 +- .../models/V1IPAddressListBuilder.java | 15 +- .../openapi/models/V1IPAddressListFluent.java | 413 +- .../models/V1IPAddressSpecBuilder.java | 15 +- .../openapi/models/V1IPAddressSpecFluent.java | 86 +- .../openapi/models/V1IPBlockBuilder.java | 15 +- .../openapi/models/V1IPBlockFluent.java | 191 +- .../V1ISCSIPersistentVolumeSourceBuilder.java | 15 +- .../V1ISCSIPersistentVolumeSourceFluent.java | 510 +- .../models/V1ISCSIVolumeSourceBuilder.java | 15 +- .../models/V1ISCSIVolumeSourceFluent.java | 510 +- .../models/V1ImageVolumeSourceBuilder.java | 15 +- .../models/V1ImageVolumeSourceFluent.java | 67 +- .../models/V1IngressBackendBuilder.java | 15 +- .../models/V1IngressBackendFluent.java | 155 +- .../openapi/models/V1IngressBuilder.java | 15 +- .../openapi/models/V1IngressClassBuilder.java | 15 +- .../openapi/models/V1IngressClassFluent.java | 207 +- .../models/V1IngressClassListBuilder.java | 15 +- .../models/V1IngressClassListFluent.java | 413 +- ...ngressClassParametersReferenceBuilder.java | 15 +- ...IngressClassParametersReferenceFluent.java | 151 +- .../models/V1IngressClassSpecBuilder.java | 15 +- .../models/V1IngressClassSpecFluent.java | 114 +- .../openapi/models/V1IngressFluent.java | 276 +- .../openapi/models/V1IngressListBuilder.java | 15 +- .../openapi/models/V1IngressListFluent.java | 413 +- .../V1IngressLoadBalancerIngressBuilder.java | 15 +- .../V1IngressLoadBalancerIngressFluent.java | 356 +- .../V1IngressLoadBalancerStatusBuilder.java | 15 +- .../V1IngressLoadBalancerStatusFluent.java | 288 +- .../models/V1IngressPortStatusBuilder.java | 15 +- .../models/V1IngressPortStatusFluent.java | 95 +- .../openapi/models/V1IngressRuleBuilder.java | 15 +- .../openapi/models/V1IngressRuleFluent.java | 106 +- .../V1IngressServiceBackendBuilder.java | 15 +- .../models/V1IngressServiceBackendFluent.java | 114 +- .../openapi/models/V1IngressSpecBuilder.java | 15 +- .../openapi/models/V1IngressSpecFluent.java | 704 +-- .../models/V1IngressStatusBuilder.java | 15 +- .../openapi/models/V1IngressStatusFluent.java | 78 +- .../openapi/models/V1IngressTLSBuilder.java | 15 +- .../openapi/models/V1IngressTLSFluent.java | 197 +- .../models/V1JSONSchemaPropsBuilder.java | 15 +- .../models/V1JSONSchemaPropsFluent.java | 2524 ++++----- .../client/openapi/models/V1JobBuilder.java | 15 +- .../openapi/models/V1JobConditionBuilder.java | 15 +- .../openapi/models/V1JobConditionFluent.java | 175 +- .../client/openapi/models/V1JobFluent.java | 276 +- .../openapi/models/V1JobListBuilder.java | 15 +- .../openapi/models/V1JobListFluent.java | 413 +- .../openapi/models/V1JobSpecBuilder.java | 15 +- .../openapi/models/V1JobSpecFluent.java | 631 +-- .../openapi/models/V1JobStatusBuilder.java | 15 +- .../openapi/models/V1JobStatusFluent.java | 605 +-- .../models/V1JobTemplateSpecBuilder.java | 15 +- .../models/V1JobTemplateSpecFluent.java | 151 +- .../openapi/models/V1KeyToPathBuilder.java | 15 +- .../openapi/models/V1KeyToPathFluent.java | 95 +- .../V1LabelSelectorAttributesBuilder.java | 15 +- .../V1LabelSelectorAttributesFluent.java | 326 +- .../models/V1LabelSelectorBuilder.java | 15 +- .../openapi/models/V1LabelSelectorFluent.java | 368 +- .../V1LabelSelectorRequirementBuilder.java | 15 +- .../V1LabelSelectorRequirementFluent.java | 241 +- .../client/openapi/models/V1LeaseBuilder.java | 15 +- .../client/openapi/models/V1LeaseFluent.java | 207 +- .../openapi/models/V1LeaseListBuilder.java | 15 +- .../openapi/models/V1LeaseListFluent.java | 413 +- .../openapi/models/V1LeaseSpecBuilder.java | 15 +- .../openapi/models/V1LeaseSpecFluent.java | 199 +- .../openapi/models/V1LifecycleBuilder.java | 15 +- .../openapi/models/V1LifecycleFluent.java | 179 +- .../models/V1LifecycleHandlerBuilder.java | 15 +- .../models/V1LifecycleHandlerFluent.java | 291 +- .../openapi/models/V1LimitRangeBuilder.java | 15 +- .../openapi/models/V1LimitRangeFluent.java | 207 +- .../models/V1LimitRangeItemBuilder.java | 15 +- .../models/V1LimitRangeItemFluent.java | 451 +- .../models/V1LimitRangeListBuilder.java | 15 +- .../models/V1LimitRangeListFluent.java | 413 +- .../models/V1LimitRangeSpecBuilder.java | 15 +- .../models/V1LimitRangeSpecFluent.java | 300 +- .../models/V1LimitResponseBuilder.java | 15 +- .../openapi/models/V1LimitResponseFluent.java | 110 +- ...itedPriorityLevelConfigurationBuilder.java | 15 +- ...mitedPriorityLevelConfigurationFluent.java | 164 +- .../models/V1LinuxContainerUserBuilder.java | 15 +- .../models/V1LinuxContainerUserFluent.java | 241 +- .../openapi/models/V1ListMetaBuilder.java | 15 +- .../openapi/models/V1ListMetaFluent.java | 123 +- .../models/V1LoadBalancerIngressBuilder.java | 15 +- .../models/V1LoadBalancerIngressFluent.java | 384 +- .../models/V1LoadBalancerStatusBuilder.java | 15 +- .../models/V1LoadBalancerStatusFluent.java | 288 +- .../models/V1LocalObjectReferenceBuilder.java | 15 +- .../models/V1LocalObjectReferenceFluent.java | 39 +- .../V1LocalSubjectAccessReviewBuilder.java | 15 +- .../V1LocalSubjectAccessReviewFluent.java | 276 +- .../models/V1LocalVolumeSourceBuilder.java | 15 +- .../models/V1LocalVolumeSourceFluent.java | 67 +- .../models/V1ManagedFieldsEntryBuilder.java | 15 +- .../models/V1ManagedFieldsEntryFluent.java | 199 +- .../models/V1MatchConditionBuilder.java | 15 +- .../models/V1MatchConditionFluent.java | 67 +- .../models/V1MatchResourcesBuilder.java | 15 +- .../models/V1MatchResourcesFluent.java | 719 +-- .../models/V1ModifyVolumeStatusBuilder.java | 15 +- .../models/V1ModifyVolumeStatusFluent.java | 67 +- .../models/V1MutatingWebhookBuilder.java | 15 +- ...V1MutatingWebhookConfigurationBuilder.java | 15 +- .../V1MutatingWebhookConfigurationFluent.java | 441 +- ...tatingWebhookConfigurationListBuilder.java | 15 +- ...utatingWebhookConfigurationListFluent.java | 413 +- .../models/V1MutatingWebhookFluent.java | 1226 ++--- .../models/V1NFSVolumeSourceBuilder.java | 15 +- .../models/V1NFSVolumeSourceFluent.java | 97 +- .../V1NamedRuleWithOperationsBuilder.java | 15 +- .../V1NamedRuleWithOperationsFluent.java | 859 ++-- .../openapi/models/V1NamespaceBuilder.java | 15 +- .../models/V1NamespaceConditionBuilder.java | 15 +- .../models/V1NamespaceConditionFluent.java | 153 +- .../openapi/models/V1NamespaceFluent.java | 276 +- .../models/V1NamespaceListBuilder.java | 15 +- .../openapi/models/V1NamespaceListFluent.java | 413 +- .../models/V1NamespaceSpecBuilder.java | 15 +- .../openapi/models/V1NamespaceSpecFluent.java | 161 +- .../models/V1NamespaceStatusBuilder.java | 15 +- .../models/V1NamespaceStatusFluent.java | 310 +- .../models/V1NetworkDeviceDataBuilder.java | 15 +- .../models/V1NetworkDeviceDataFluent.java | 235 +- .../models/V1NetworkPolicyBuilder.java | 15 +- .../V1NetworkPolicyEgressRuleBuilder.java | 15 +- .../V1NetworkPolicyEgressRuleFluent.java | 561 +- .../openapi/models/V1NetworkPolicyFluent.java | 207 +- .../V1NetworkPolicyIngressRuleBuilder.java | 15 +- .../V1NetworkPolicyIngressRuleFluent.java | 557 +- .../models/V1NetworkPolicyListBuilder.java | 15 +- .../models/V1NetworkPolicyListFluent.java | 413 +- .../models/V1NetworkPolicyPeerBuilder.java | 15 +- .../models/V1NetworkPolicyPeerFluent.java | 224 +- .../models/V1NetworkPolicyPortBuilder.java | 15 +- .../models/V1NetworkPolicyPortFluent.java | 113 +- .../models/V1NetworkPolicySpecBuilder.java | 15 +- .../models/V1NetworkPolicySpecFluent.java | 814 +-- .../openapi/models/V1NodeAddressBuilder.java | 15 +- .../openapi/models/V1NodeAddressFluent.java | 67 +- .../openapi/models/V1NodeAffinityBuilder.java | 15 +- .../openapi/models/V1NodeAffinityFluent.java | 363 +- .../client/openapi/models/V1NodeBuilder.java | 15 +- .../models/V1NodeConditionBuilder.java | 15 +- .../openapi/models/V1NodeConditionFluent.java | 175 +- .../models/V1NodeConfigSourceBuilder.java | 15 +- .../models/V1NodeConfigSourceFluent.java | 78 +- .../models/V1NodeConfigStatusBuilder.java | 15 +- .../models/V1NodeConfigStatusFluent.java | 248 +- .../models/V1NodeDaemonEndpointsBuilder.java | 15 +- .../models/V1NodeDaemonEndpointsFluent.java | 78 +- .../openapi/models/V1NodeFeaturesBuilder.java | 15 +- .../openapi/models/V1NodeFeaturesFluent.java | 41 +- .../client/openapi/models/V1NodeFluent.java | 276 +- .../openapi/models/V1NodeListBuilder.java | 15 +- .../openapi/models/V1NodeListFluent.java | 413 +- .../models/V1NodeRuntimeHandlerBuilder.java | 15 +- .../V1NodeRuntimeHandlerFeaturesBuilder.java | 15 +- .../V1NodeRuntimeHandlerFeaturesFluent.java | 69 +- .../models/V1NodeRuntimeHandlerFluent.java | 106 +- .../openapi/models/V1NodeSelectorBuilder.java | 15 +- .../openapi/models/V1NodeSelectorFluent.java | 296 +- .../V1NodeSelectorRequirementBuilder.java | 15 +- .../V1NodeSelectorRequirementFluent.java | 241 +- .../models/V1NodeSelectorTermBuilder.java | 15 +- .../models/V1NodeSelectorTermFluent.java | 557 +- .../openapi/models/V1NodeSpecBuilder.java | 15 +- .../openapi/models/V1NodeSpecFluent.java | 709 +-- .../openapi/models/V1NodeStatusBuilder.java | 15 +- .../openapi/models/V1NodeStatusFluent.java | 2242 ++++---- .../models/V1NodeSwapStatusBuilder.java | 15 +- .../models/V1NodeSwapStatusFluent.java | 39 +- .../models/V1NodeSystemInfoBuilder.java | 15 +- .../models/V1NodeSystemInfoFluent.java | 334 +- .../V1NonResourceAttributesBuilder.java | 15 +- .../models/V1NonResourceAttributesFluent.java | 67 +- .../V1NonResourcePolicyRuleBuilder.java | 15 +- .../models/V1NonResourcePolicyRuleFluent.java | 301 +- .../models/V1NonResourceRuleBuilder.java | 15 +- .../models/V1NonResourceRuleFluent.java | 301 +- .../models/V1ObjectFieldSelectorBuilder.java | 15 +- .../models/V1ObjectFieldSelectorFluent.java | 67 +- .../openapi/models/V1ObjectMetaBuilder.java | 15 +- .../openapi/models/V1ObjectMetaFluent.java | 1329 ++--- .../models/V1ObjectReferenceBuilder.java | 15 +- .../models/V1ObjectReferenceFluent.java | 197 +- .../V1OpaqueDeviceConfigurationBuilder.java | 15 +- .../V1OpaqueDeviceConfigurationFluent.java | 67 +- .../openapi/models/V1OverheadBuilder.java | 15 +- .../openapi/models/V1OverheadFluent.java | 113 +- .../models/V1OwnerReferenceBuilder.java | 15 +- .../models/V1OwnerReferenceFluent.java | 175 +- .../openapi/models/V1ParamKindBuilder.java | 15 +- .../openapi/models/V1ParamKindFluent.java | 67 +- .../openapi/models/V1ParamRefBuilder.java | 15 +- .../openapi/models/V1ParamRefFluent.java | 170 +- .../models/V1ParentReferenceBuilder.java | 15 +- .../models/V1ParentReferenceFluent.java | 123 +- .../models/V1PersistentVolumeBuilder.java | 15 +- .../V1PersistentVolumeClaimBuilder.java | 15 +- ...PersistentVolumeClaimConditionBuilder.java | 15 +- ...1PersistentVolumeClaimConditionFluent.java | 175 +- .../models/V1PersistentVolumeClaimFluent.java | 276 +- .../V1PersistentVolumeClaimListBuilder.java | 15 +- .../V1PersistentVolumeClaimListFluent.java | 413 +- .../V1PersistentVolumeClaimSpecBuilder.java | 15 +- .../V1PersistentVolumeClaimSpecFluent.java | 597 +-- .../V1PersistentVolumeClaimStatusBuilder.java | 15 +- .../V1PersistentVolumeClaimStatusFluent.java | 949 ++-- ...1PersistentVolumeClaimTemplateBuilder.java | 15 +- ...V1PersistentVolumeClaimTemplateFluent.java | 151 +- ...sistentVolumeClaimVolumeSourceBuilder.java | 15 +- ...rsistentVolumeClaimVolumeSourceFluent.java | 69 +- .../models/V1PersistentVolumeFluent.java | 276 +- .../models/V1PersistentVolumeListBuilder.java | 15 +- .../models/V1PersistentVolumeListFluent.java | 413 +- .../models/V1PersistentVolumeSpecBuilder.java | 15 +- .../models/V1PersistentVolumeSpecFluent.java | 2443 ++++----- .../V1PersistentVolumeStatusBuilder.java | 15 +- .../V1PersistentVolumeStatusFluent.java | 125 +- ...otonPersistentDiskVolumeSourceBuilder.java | 15 +- ...hotonPersistentDiskVolumeSourceFluent.java | 67 +- .../openapi/models/V1PodAffinityBuilder.java | 15 +- .../openapi/models/V1PodAffinityFluent.java | 561 +- .../models/V1PodAffinityTermBuilder.java | 15 +- .../models/V1PodAffinityTermFluent.java | 701 +-- .../models/V1PodAntiAffinityBuilder.java | 15 +- .../models/V1PodAntiAffinityFluent.java | 561 +- .../client/openapi/models/V1PodBuilder.java | 15 +- .../V1PodCertificateProjectionBuilder.java | 15 +- .../V1PodCertificateProjectionFluent.java | 173 +- .../openapi/models/V1PodConditionBuilder.java | 15 +- .../openapi/models/V1PodConditionFluent.java | 199 +- .../openapi/models/V1PodDNSConfigBuilder.java | 15 +- .../openapi/models/V1PodDNSConfigFluent.java | 646 +-- .../models/V1PodDNSConfigOptionBuilder.java | 15 +- .../models/V1PodDNSConfigOptionFluent.java | 67 +- .../models/V1PodDisruptionBudgetBuilder.java | 15 +- .../models/V1PodDisruptionBudgetFluent.java | 276 +- .../V1PodDisruptionBudgetListBuilder.java | 15 +- .../V1PodDisruptionBudgetListFluent.java | 413 +- .../V1PodDisruptionBudgetSpecBuilder.java | 15 +- .../V1PodDisruptionBudgetSpecFluent.java | 198 +- .../V1PodDisruptionBudgetStatusBuilder.java | 15 +- .../V1PodDisruptionBudgetStatusFluent.java | 496 +- ...PodExtendedResourceClaimStatusBuilder.java | 15 +- ...1PodExtendedResourceClaimStatusFluent.java | 322 +- .../models/V1PodFailurePolicyBuilder.java | 15 +- .../models/V1PodFailurePolicyFluent.java | 296 +- ...rePolicyOnExitCodesRequirementBuilder.java | 15 +- ...urePolicyOnExitCodesRequirementFluent.java | 241 +- ...rePolicyOnPodConditionsPatternBuilder.java | 15 +- ...urePolicyOnPodConditionsPatternFluent.java | 67 +- .../models/V1PodFailurePolicyRuleBuilder.java | 15 +- .../models/V1PodFailurePolicyRuleFluent.java | 413 +- .../client/openapi/models/V1PodFluent.java | 276 +- .../client/openapi/models/V1PodIPBuilder.java | 15 +- .../client/openapi/models/V1PodIPFluent.java | 39 +- .../openapi/models/V1PodListBuilder.java | 15 +- .../openapi/models/V1PodListFluent.java | 413 +- .../client/openapi/models/V1PodOSBuilder.java | 15 +- .../client/openapi/models/V1PodOSFluent.java | 39 +- .../models/V1PodReadinessGateBuilder.java | 15 +- .../models/V1PodReadinessGateFluent.java | 39 +- .../models/V1PodResourceClaimBuilder.java | 15 +- .../models/V1PodResourceClaimFluent.java | 95 +- .../V1PodResourceClaimStatusBuilder.java | 15 +- .../V1PodResourceClaimStatusFluent.java | 67 +- .../models/V1PodSchedulingGateBuilder.java | 15 +- .../models/V1PodSchedulingGateFluent.java | 39 +- .../models/V1PodSecurityContextBuilder.java | 15 +- .../models/V1PodSecurityContextFluent.java | 1018 ++-- .../openapi/models/V1PodSpecBuilder.java | 15 +- .../openapi/models/V1PodSpecFluent.java | 4553 +++++++++-------- .../openapi/models/V1PodStatusBuilder.java | 15 +- .../openapi/models/V1PodStatusFluent.java | 2591 +++++----- .../openapi/models/V1PodTemplateBuilder.java | 15 +- .../openapi/models/V1PodTemplateFluent.java | 207 +- .../models/V1PodTemplateListBuilder.java | 15 +- .../models/V1PodTemplateListFluent.java | 413 +- .../models/V1PodTemplateSpecBuilder.java | 15 +- .../models/V1PodTemplateSpecFluent.java | 151 +- .../openapi/models/V1PolicyRuleBuilder.java | 15 +- .../openapi/models/V1PolicyRuleFluent.java | 837 +-- .../V1PolicyRulesWithSubjectsBuilder.java | 15 +- .../V1PolicyRulesWithSubjectsFluent.java | 892 ++-- .../openapi/models/V1PortStatusBuilder.java | 15 +- .../openapi/models/V1PortStatusFluent.java | 95 +- .../models/V1PortworxVolumeSourceBuilder.java | 15 +- .../models/V1PortworxVolumeSourceFluent.java | 97 +- .../models/V1PreconditionsBuilder.java | 15 +- .../openapi/models/V1PreconditionsFluent.java | 67 +- .../V1PreferredSchedulingTermBuilder.java | 15 +- .../V1PreferredSchedulingTermFluent.java | 112 +- .../models/V1PriorityClassBuilder.java | 15 +- .../openapi/models/V1PriorityClassFluent.java | 248 +- .../models/V1PriorityClassListBuilder.java | 15 +- .../models/V1PriorityClassListFluent.java | 413 +- .../V1PriorityLevelConfigurationBuilder.java | 15 +- ...ityLevelConfigurationConditionBuilder.java | 15 +- ...rityLevelConfigurationConditionFluent.java | 153 +- .../V1PriorityLevelConfigurationFluent.java | 276 +- ...PriorityLevelConfigurationListBuilder.java | 15 +- ...1PriorityLevelConfigurationListFluent.java | 413 +- ...ityLevelConfigurationReferenceBuilder.java | 15 +- ...rityLevelConfigurationReferenceFluent.java | 39 +- ...PriorityLevelConfigurationSpecBuilder.java | 15 +- ...1PriorityLevelConfigurationSpecFluent.java | 179 +- ...iorityLevelConfigurationStatusBuilder.java | 15 +- ...riorityLevelConfigurationStatusFluent.java | 280 +- .../client/openapi/models/V1ProbeBuilder.java | 15 +- .../client/openapi/models/V1ProbeFluent.java | 451 +- .../V1ProjectedVolumeSourceBuilder.java | 15 +- .../models/V1ProjectedVolumeSourceFluent.java | 328 +- .../models/V1QueuingConfigurationBuilder.java | 15 +- .../models/V1QueuingConfigurationFluent.java | 95 +- .../models/V1QuobyteVolumeSourceBuilder.java | 15 +- .../models/V1QuobyteVolumeSourceFluent.java | 175 +- .../V1RBDPersistentVolumeSourceBuilder.java | 15 +- .../V1RBDPersistentVolumeSourceFluent.java | 436 +- .../models/V1RBDVolumeSourceBuilder.java | 15 +- .../models/V1RBDVolumeSourceFluent.java | 436 +- .../openapi/models/V1ReplicaSetBuilder.java | 15 +- .../models/V1ReplicaSetConditionBuilder.java | 15 +- .../models/V1ReplicaSetConditionFluent.java | 153 +- .../openapi/models/V1ReplicaSetFluent.java | 276 +- .../models/V1ReplicaSetListBuilder.java | 15 +- .../models/V1ReplicaSetListFluent.java | 413 +- .../models/V1ReplicaSetSpecBuilder.java | 15 +- .../models/V1ReplicaSetSpecFluent.java | 213 +- .../models/V1ReplicaSetStatusBuilder.java | 15 +- .../models/V1ReplicaSetStatusFluent.java | 446 +- .../V1ReplicationControllerBuilder.java | 15 +- ...ReplicationControllerConditionBuilder.java | 15 +- ...1ReplicationControllerConditionFluent.java | 153 +- .../models/V1ReplicationControllerFluent.java | 276 +- .../V1ReplicationControllerListBuilder.java | 15 +- .../V1ReplicationControllerListFluent.java | 413 +- .../V1ReplicationControllerSpecBuilder.java | 15 +- .../V1ReplicationControllerSpecFluent.java | 246 +- .../V1ReplicationControllerStatusBuilder.java | 15 +- .../V1ReplicationControllerStatusFluent.java | 424 +- .../models/V1ResourceAttributesBuilder.java | 15 +- .../models/V1ResourceAttributesFluent.java | 339 +- ...ResourceClaimConsumerReferenceBuilder.java | 15 +- ...1ResourceClaimConsumerReferenceFluent.java | 123 +- .../models/V1ResourceClaimListBuilder.java | 15 +- .../models/V1ResourceClaimListFluent.java | 413 +- .../models/V1ResourceClaimSpecBuilder.java | 15 +- .../models/V1ResourceClaimSpecFluent.java | 78 +- .../models/V1ResourceClaimStatusBuilder.java | 15 +- .../models/V1ResourceClaimStatusFluent.java | 642 +-- .../V1ResourceClaimTemplateBuilder.java | 15 +- .../models/V1ResourceClaimTemplateFluent.java | 207 +- .../V1ResourceClaimTemplateListBuilder.java | 15 +- .../V1ResourceClaimTemplateListFluent.java | 413 +- .../V1ResourceClaimTemplateSpecBuilder.java | 15 +- .../V1ResourceClaimTemplateSpecFluent.java | 151 +- .../V1ResourceFieldSelectorBuilder.java | 15 +- .../models/V1ResourceFieldSelectorFluent.java | 105 +- .../models/V1ResourceHealthBuilder.java | 15 +- .../models/V1ResourceHealthFluent.java | 67 +- .../models/V1ResourcePolicyRuleBuilder.java | 15 +- .../models/V1ResourcePolicyRuleFluent.java | 703 +-- .../openapi/models/V1ResourcePoolBuilder.java | 15 +- .../openapi/models/V1ResourcePoolFluent.java | 95 +- .../models/V1ResourceQuotaBuilder.java | 15 +- .../openapi/models/V1ResourceQuotaFluent.java | 276 +- .../models/V1ResourceQuotaListBuilder.java | 15 +- .../models/V1ResourceQuotaListFluent.java | 413 +- .../models/V1ResourceQuotaSpecBuilder.java | 15 +- .../models/V1ResourceQuotaSpecFluent.java | 354 +- .../models/V1ResourceQuotaStatusBuilder.java | 15 +- .../models/V1ResourceQuotaStatusFluent.java | 181 +- .../models/V1ResourceRequirementsBuilder.java | 15 +- .../models/V1ResourceRequirementsFluent.java | 424 +- .../openapi/models/V1ResourceRuleBuilder.java | 15 +- .../openapi/models/V1ResourceRuleFluent.java | 663 +-- .../models/V1ResourceSliceBuilder.java | 15 +- .../openapi/models/V1ResourceSliceFluent.java | 207 +- .../models/V1ResourceSliceListBuilder.java | 15 +- .../models/V1ResourceSliceListFluent.java | 413 +- .../models/V1ResourceSliceSpecBuilder.java | 15 +- .../models/V1ResourceSliceSpecFluent.java | 813 +-- .../models/V1ResourceStatusBuilder.java | 15 +- .../models/V1ResourceStatusFluent.java | 326 +- .../openapi/models/V1RoleBindingBuilder.java | 15 +- .../openapi/models/V1RoleBindingFluent.java | 528 +- .../models/V1RoleBindingListBuilder.java | 15 +- .../models/V1RoleBindingListFluent.java | 413 +- .../client/openapi/models/V1RoleBuilder.java | 15 +- .../client/openapi/models/V1RoleFluent.java | 441 +- .../openapi/models/V1RoleListBuilder.java | 15 +- .../openapi/models/V1RoleListFluent.java | 413 +- .../openapi/models/V1RoleRefBuilder.java | 15 +- .../openapi/models/V1RoleRefFluent.java | 95 +- .../V1RollingUpdateDaemonSetBuilder.java | 15 +- .../V1RollingUpdateDaemonSetFluent.java | 99 +- .../V1RollingUpdateDeploymentBuilder.java | 15 +- .../V1RollingUpdateDeploymentFluent.java | 99 +- ...llingUpdateStatefulSetStrategyBuilder.java | 15 +- ...ollingUpdateStatefulSetStrategyFluent.java | 85 +- .../models/V1RuleWithOperationsBuilder.java | 15 +- .../models/V1RuleWithOperationsFluent.java | 691 +-- .../openapi/models/V1RuntimeClassBuilder.java | 15 +- .../openapi/models/V1RuntimeClassFluent.java | 304 +- .../models/V1RuntimeClassListBuilder.java | 15 +- .../models/V1RuntimeClassListFluent.java | 413 +- .../models/V1SELinuxOptionsBuilder.java | 15 +- .../models/V1SELinuxOptionsFluent.java | 123 +- .../client/openapi/models/V1ScaleBuilder.java | 15 +- .../client/openapi/models/V1ScaleFluent.java | 276 +- ...1ScaleIOPersistentVolumeSourceBuilder.java | 15 +- ...V1ScaleIOPersistentVolumeSourceFluent.java | 316 +- .../models/V1ScaleIOVolumeSourceBuilder.java | 15 +- .../models/V1ScaleIOVolumeSourceFluent.java | 316 +- .../openapi/models/V1ScaleSpecBuilder.java | 15 +- .../openapi/models/V1ScaleSpecFluent.java | 39 +- .../openapi/models/V1ScaleStatusBuilder.java | 15 +- .../openapi/models/V1ScaleStatusFluent.java | 67 +- .../openapi/models/V1SchedulingBuilder.java | 15 +- .../openapi/models/V1SchedulingFluent.java | 402 +- .../models/V1ScopeSelectorBuilder.java | 15 +- .../openapi/models/V1ScopeSelectorFluent.java | 300 +- ...pedResourceSelectorRequirementBuilder.java | 15 +- ...opedResourceSelectorRequirementFluent.java | 237 +- .../models/V1SeccompProfileBuilder.java | 15 +- .../models/V1SeccompProfileFluent.java | 67 +- .../openapi/models/V1SecretBuilder.java | 15 +- .../models/V1SecretEnvSourceBuilder.java | 15 +- .../models/V1SecretEnvSourceFluent.java | 69 +- .../client/openapi/models/V1SecretFluent.java | 368 +- .../models/V1SecretKeySelectorBuilder.java | 15 +- .../models/V1SecretKeySelectorFluent.java | 97 +- .../openapi/models/V1SecretListBuilder.java | 15 +- .../openapi/models/V1SecretListFluent.java | 413 +- .../models/V1SecretProjectionBuilder.java | 15 +- .../models/V1SecretProjectionFluent.java | 354 +- .../models/V1SecretReferenceBuilder.java | 15 +- .../models/V1SecretReferenceFluent.java | 67 +- .../models/V1SecretVolumeSourceBuilder.java | 15 +- .../models/V1SecretVolumeSourceFluent.java | 384 +- .../models/V1SecurityContextBuilder.java | 15 +- .../models/V1SecurityContextFluent.java | 552 +- .../models/V1SelectableFieldBuilder.java | 15 +- .../models/V1SelectableFieldFluent.java | 39 +- .../V1SelfSubjectAccessReviewBuilder.java | 15 +- .../V1SelfSubjectAccessReviewFluent.java | 276 +- .../V1SelfSubjectAccessReviewSpecBuilder.java | 15 +- .../V1SelfSubjectAccessReviewSpecFluent.java | 151 +- .../models/V1SelfSubjectReviewBuilder.java | 15 +- .../models/V1SelfSubjectReviewFluent.java | 207 +- .../V1SelfSubjectReviewStatusBuilder.java | 15 +- .../V1SelfSubjectReviewStatusFluent.java | 86 +- .../V1SelfSubjectRulesReviewBuilder.java | 15 +- .../V1SelfSubjectRulesReviewFluent.java | 276 +- .../V1SelfSubjectRulesReviewSpecBuilder.java | 15 +- .../V1SelfSubjectRulesReviewSpecFluent.java | 39 +- .../V1ServerAddressByClientCIDRBuilder.java | 15 +- .../V1ServerAddressByClientCIDRFluent.java | 67 +- .../models/V1ServiceAccountBuilder.java | 15 +- .../models/V1ServiceAccountFluent.java | 740 +-- .../models/V1ServiceAccountListBuilder.java | 15 +- .../models/V1ServiceAccountListFluent.java | 413 +- .../V1ServiceAccountSubjectBuilder.java | 15 +- .../models/V1ServiceAccountSubjectFluent.java | 67 +- ...1ServiceAccountTokenProjectionBuilder.java | 15 +- ...V1ServiceAccountTokenProjectionFluent.java | 95 +- .../models/V1ServiceBackendPortBuilder.java | 15 +- .../models/V1ServiceBackendPortFluent.java | 67 +- .../openapi/models/V1ServiceBuilder.java | 15 +- .../openapi/models/V1ServiceCIDRBuilder.java | 15 +- .../openapi/models/V1ServiceCIDRFluent.java | 276 +- .../models/V1ServiceCIDRListBuilder.java | 15 +- .../models/V1ServiceCIDRListFluent.java | 413 +- .../models/V1ServiceCIDRSpecBuilder.java | 15 +- .../models/V1ServiceCIDRSpecFluent.java | 161 +- .../models/V1ServiceCIDRStatusBuilder.java | 15 +- .../models/V1ServiceCIDRStatusFluent.java | 280 +- .../openapi/models/V1ServiceFluent.java | 276 +- .../openapi/models/V1ServiceListBuilder.java | 15 +- .../openapi/models/V1ServiceListFluent.java | 413 +- .../openapi/models/V1ServicePortBuilder.java | 15 +- .../openapi/models/V1ServicePortFluent.java | 191 +- .../openapi/models/V1ServiceSpecBuilder.java | 15 +- .../openapi/models/V1ServiceSpecFluent.java | 1513 +++--- .../models/V1ServiceStatusBuilder.java | 15 +- .../openapi/models/V1ServiceStatusFluent.java | 355 +- .../V1SessionAffinityConfigBuilder.java | 15 +- .../models/V1SessionAffinityConfigFluent.java | 78 +- .../openapi/models/V1SleepActionBuilder.java | 15 +- .../openapi/models/V1SleepActionFluent.java | 39 +- .../openapi/models/V1StatefulSetBuilder.java | 15 +- .../models/V1StatefulSetConditionBuilder.java | 15 +- .../models/V1StatefulSetConditionFluent.java | 153 +- .../openapi/models/V1StatefulSetFluent.java | 276 +- .../models/V1StatefulSetListBuilder.java | 15 +- .../models/V1StatefulSetListFluent.java | 413 +- .../models/V1StatefulSetOrdinalsBuilder.java | 15 +- .../models/V1StatefulSetOrdinalsFluent.java | 39 +- ...tentVolumeClaimRetentionPolicyBuilder.java | 15 +- ...stentVolumeClaimRetentionPolicyFluent.java | 67 +- .../models/V1StatefulSetSpecBuilder.java | 15 +- .../models/V1StatefulSetSpecFluent.java | 905 ++-- .../models/V1StatefulSetStatusBuilder.java | 15 +- .../models/V1StatefulSetStatusFluent.java | 588 +-- .../V1StatefulSetUpdateStrategyBuilder.java | 15 +- .../V1StatefulSetUpdateStrategyFluent.java | 110 +- .../openapi/models/V1StatusBuilder.java | 15 +- .../openapi/models/V1StatusCauseBuilder.java | 15 +- .../openapi/models/V1StatusCauseFluent.java | 95 +- .../models/V1StatusDetailsBuilder.java | 15 +- .../openapi/models/V1StatusDetailsFluent.java | 420 +- .../client/openapi/models/V1StatusFluent.java | 317 +- .../openapi/models/V1StorageClassBuilder.java | 15 +- .../openapi/models/V1StorageClassFluent.java | 745 +-- .../models/V1StorageClassListBuilder.java | 15 +- .../models/V1StorageClassListFluent.java | 413 +- ...torageOSPersistentVolumeSourceBuilder.java | 15 +- ...StorageOSPersistentVolumeSourceFluent.java | 196 +- .../V1StorageOSVolumeSourceBuilder.java | 15 +- .../models/V1StorageOSVolumeSourceFluent.java | 196 +- .../models/V1SubjectAccessReviewBuilder.java | 15 +- .../models/V1SubjectAccessReviewFluent.java | 276 +- .../V1SubjectAccessReviewSpecBuilder.java | 15 +- .../V1SubjectAccessReviewSpecFluent.java | 497 +- .../V1SubjectAccessReviewStatusBuilder.java | 15 +- .../V1SubjectAccessReviewStatusFluent.java | 125 +- .../V1SubjectRulesReviewStatusBuilder.java | 15 +- .../V1SubjectRulesReviewStatusFluent.java | 653 +-- .../models/V1SuccessPolicyBuilder.java | 15 +- .../openapi/models/V1SuccessPolicyFluent.java | 296 +- .../models/V1SuccessPolicyRuleBuilder.java | 15 +- .../models/V1SuccessPolicyRuleFluent.java | 67 +- .../openapi/models/V1SysctlBuilder.java | 15 +- .../client/openapi/models/V1SysctlFluent.java | 67 +- .../models/V1TCPSocketActionBuilder.java | 15 +- .../models/V1TCPSocketActionFluent.java | 83 +- .../client/openapi/models/V1TaintBuilder.java | 15 +- .../client/openapi/models/V1TaintFluent.java | 125 +- .../models/V1TokenRequestSpecBuilder.java | 15 +- .../models/V1TokenRequestSpecFluent.java | 272 +- .../models/V1TokenRequestStatusBuilder.java | 15 +- .../models/V1TokenRequestStatusFluent.java | 69 +- .../openapi/models/V1TokenReviewBuilder.java | 15 +- .../openapi/models/V1TokenReviewFluent.java | 276 +- .../models/V1TokenReviewSpecBuilder.java | 15 +- .../models/V1TokenReviewSpecFluent.java | 197 +- .../models/V1TokenReviewStatusBuilder.java | 15 +- .../models/V1TokenReviewStatusFluent.java | 314 +- .../openapi/models/V1TolerationBuilder.java | 15 +- .../openapi/models/V1TolerationFluent.java | 151 +- ...pologySelectorLabelRequirementBuilder.java | 15 +- ...opologySelectorLabelRequirementFluent.java | 207 +- .../models/V1TopologySelectorTermBuilder.java | 15 +- .../models/V1TopologySelectorTermFluent.java | 300 +- .../V1TopologySpreadConstraintBuilder.java | 15 +- .../V1TopologySpreadConstraintFluent.java | 422 +- .../openapi/models/V1TypeCheckingBuilder.java | 15 +- .../openapi/models/V1TypeCheckingFluent.java | 280 +- .../V1TypedLocalObjectReferenceBuilder.java | 15 +- .../V1TypedLocalObjectReferenceFluent.java | 95 +- .../models/V1TypedObjectReferenceBuilder.java | 15 +- .../models/V1TypedObjectReferenceFluent.java | 123 +- .../V1UncountedTerminatedPodsBuilder.java | 15 +- .../V1UncountedTerminatedPodsFluent.java | 301 +- .../openapi/models/V1UserInfoBuilder.java | 15 +- .../openapi/models/V1UserInfoFluent.java | 319 +- .../openapi/models/V1UserSubjectBuilder.java | 15 +- .../openapi/models/V1UserSubjectFluent.java | 39 +- ...lidatingAdmissionPolicyBindingBuilder.java | 15 +- ...alidatingAdmissionPolicyBindingFluent.java | 207 +- ...tingAdmissionPolicyBindingListBuilder.java | 15 +- ...atingAdmissionPolicyBindingListFluent.java | 413 +- ...tingAdmissionPolicyBindingSpecBuilder.java | 15 +- ...atingAdmissionPolicyBindingSpecFluent.java | 361 +- .../V1ValidatingAdmissionPolicyBuilder.java | 15 +- .../V1ValidatingAdmissionPolicyFluent.java | 276 +- ...1ValidatingAdmissionPolicyListBuilder.java | 15 +- ...V1ValidatingAdmissionPolicyListFluent.java | 413 +- ...1ValidatingAdmissionPolicySpecBuilder.java | 15 +- ...V1ValidatingAdmissionPolicySpecFluent.java | 1405 ++--- ...alidatingAdmissionPolicyStatusBuilder.java | 15 +- ...ValidatingAdmissionPolicyStatusFluent.java | 383 +- .../models/V1ValidatingWebhookBuilder.java | 15 +- ...ValidatingWebhookConfigurationBuilder.java | 15 +- ...1ValidatingWebhookConfigurationFluent.java | 441 +- ...datingWebhookConfigurationListBuilder.java | 15 +- ...idatingWebhookConfigurationListFluent.java | 413 +- .../models/V1ValidatingWebhookFluent.java | 1196 ++--- .../openapi/models/V1ValidationBuilder.java | 15 +- .../openapi/models/V1ValidationFluent.java | 123 +- .../models/V1ValidationRuleBuilder.java | 15 +- .../models/V1ValidationRuleFluent.java | 175 +- .../openapi/models/V1VariableBuilder.java | 15 +- .../openapi/models/V1VariableFluent.java | 67 +- .../models/V1VolumeAttachmentBuilder.java | 15 +- .../models/V1VolumeAttachmentFluent.java | 276 +- .../models/V1VolumeAttachmentListBuilder.java | 15 +- .../models/V1VolumeAttachmentListFluent.java | 413 +- .../V1VolumeAttachmentSourceBuilder.java | 15 +- .../V1VolumeAttachmentSourceFluent.java | 106 +- .../models/V1VolumeAttachmentSpecBuilder.java | 15 +- .../models/V1VolumeAttachmentSpecFluent.java | 142 +- .../V1VolumeAttachmentStatusBuilder.java | 15 +- .../V1VolumeAttachmentStatusFluent.java | 287 +- .../V1VolumeAttributesClassBuilder.java | 15 +- .../models/V1VolumeAttributesClassFluent.java | 266 +- .../V1VolumeAttributesClassListBuilder.java | 15 +- .../V1VolumeAttributesClassListFluent.java | 413 +- .../openapi/models/V1VolumeBuilder.java | 15 +- .../openapi/models/V1VolumeDeviceBuilder.java | 15 +- .../openapi/models/V1VolumeDeviceFluent.java | 67 +- .../openapi/models/V1VolumeErrorBuilder.java | 15 +- .../openapi/models/V1VolumeErrorFluent.java | 97 +- .../client/openapi/models/V1VolumeFluent.java | 2311 ++++----- .../openapi/models/V1VolumeMountBuilder.java | 15 +- .../openapi/models/V1VolumeMountFluent.java | 199 +- .../models/V1VolumeMountStatusBuilder.java | 15 +- .../models/V1VolumeMountStatusFluent.java | 125 +- .../models/V1VolumeNodeAffinityBuilder.java | 15 +- .../models/V1VolumeNodeAffinityFluent.java | 86 +- .../models/V1VolumeNodeResourcesBuilder.java | 15 +- .../models/V1VolumeNodeResourcesFluent.java | 39 +- .../models/V1VolumeProjectionBuilder.java | 15 +- .../models/V1VolumeProjectionFluent.java | 429 +- .../V1VolumeResourceRequirementsBuilder.java | 15 +- .../V1VolumeResourceRequirementsFluent.java | 181 +- ...VsphereVirtualDiskVolumeSourceBuilder.java | 15 +- ...1VsphereVirtualDiskVolumeSourceFluent.java | 123 +- .../openapi/models/V1WatchEventBuilder.java | 15 +- .../openapi/models/V1WatchEventFluent.java | 67 +- .../models/V1WebhookConversionBuilder.java | 15 +- .../models/V1WebhookConversionFluent.java | 256 +- .../V1WeightedPodAffinityTermBuilder.java | 15 +- .../V1WeightedPodAffinityTermFluent.java | 112 +- ...1WindowsSecurityContextOptionsBuilder.java | 15 +- ...V1WindowsSecurityContextOptionsFluent.java | 125 +- .../V1alpha1ApplyConfigurationBuilder.java | 15 +- .../V1alpha1ApplyConfigurationFluent.java | 39 +- .../V1alpha1ClusterTrustBundleBuilder.java | 15 +- .../V1alpha1ClusterTrustBundleFluent.java | 207 +- ...V1alpha1ClusterTrustBundleListBuilder.java | 15 +- .../V1alpha1ClusterTrustBundleListFluent.java | 413 +- ...V1alpha1ClusterTrustBundleSpecBuilder.java | 15 +- .../V1alpha1ClusterTrustBundleSpecFluent.java | 67 +- .../V1alpha1GroupVersionResourceBuilder.java | 15 +- .../V1alpha1GroupVersionResourceFluent.java | 95 +- .../models/V1alpha1JSONPatchBuilder.java | 15 +- .../models/V1alpha1JSONPatchFluent.java | 39 +- .../models/V1alpha1MatchConditionBuilder.java | 15 +- .../models/V1alpha1MatchConditionFluent.java | 67 +- .../models/V1alpha1MatchResourcesBuilder.java | 15 +- .../models/V1alpha1MatchResourcesFluent.java | 719 +-- .../V1alpha1MigrationConditionBuilder.java | 15 +- .../V1alpha1MigrationConditionFluent.java | 153 +- ...MutatingAdmissionPolicyBindingBuilder.java | 15 +- ...1MutatingAdmissionPolicyBindingFluent.java | 207 +- ...tingAdmissionPolicyBindingListBuilder.java | 15 +- ...atingAdmissionPolicyBindingListFluent.java | 413 +- ...tingAdmissionPolicyBindingSpecBuilder.java | 15 +- ...atingAdmissionPolicyBindingSpecFluent.java | 175 +- ...1alpha1MutatingAdmissionPolicyBuilder.java | 15 +- ...V1alpha1MutatingAdmissionPolicyFluent.java | 207 +- ...ha1MutatingAdmissionPolicyListBuilder.java | 15 +- ...pha1MutatingAdmissionPolicyListFluent.java | 413 +- ...ha1MutatingAdmissionPolicySpecBuilder.java | 15 +- ...pha1MutatingAdmissionPolicySpecFluent.java | 1090 ++-- .../models/V1alpha1MutationBuilder.java | 15 +- .../models/V1alpha1MutationFluent.java | 179 +- ...1alpha1NamedRuleWithOperationsBuilder.java | 15 +- ...V1alpha1NamedRuleWithOperationsFluent.java | 859 ++-- .../models/V1alpha1ParamKindBuilder.java | 15 +- .../models/V1alpha1ParamKindFluent.java | 67 +- .../models/V1alpha1ParamRefBuilder.java | 15 +- .../models/V1alpha1ParamRefFluent.java | 170 +- .../V1alpha1PodCertificateRequestBuilder.java | 15 +- .../V1alpha1PodCertificateRequestFluent.java | 276 +- ...lpha1PodCertificateRequestListBuilder.java | 15 +- ...alpha1PodCertificateRequestListFluent.java | 413 +- ...lpha1PodCertificateRequestSpecBuilder.java | 15 +- ...alpha1PodCertificateRequestSpecFluent.java | 483 +- ...ha1PodCertificateRequestStatusBuilder.java | 15 +- ...pha1PodCertificateRequestStatusFluent.java | 398 +- .../V1alpha1ServerStorageVersionBuilder.java | 15 +- .../V1alpha1ServerStorageVersionFluent.java | 379 +- .../models/V1alpha1StorageVersionBuilder.java | 15 +- ...1alpha1StorageVersionConditionBuilder.java | 15 +- ...V1alpha1StorageVersionConditionFluent.java | 175 +- .../models/V1alpha1StorageVersionFluent.java | 235 +- .../V1alpha1StorageVersionListBuilder.java | 15 +- .../V1alpha1StorageVersionListFluent.java | 413 +- ...1alpha1StorageVersionMigrationBuilder.java | 15 +- ...V1alpha1StorageVersionMigrationFluent.java | 276 +- ...ha1StorageVersionMigrationListBuilder.java | 15 +- ...pha1StorageVersionMigrationListFluent.java | 413 +- ...ha1StorageVersionMigrationSpecBuilder.java | 15 +- ...pha1StorageVersionMigrationSpecFluent.java | 114 +- ...1StorageVersionMigrationStatusBuilder.java | 15 +- ...a1StorageVersionMigrationStatusFluent.java | 310 +- .../V1alpha1StorageVersionStatusBuilder.java | 15 +- .../V1alpha1StorageVersionStatusFluent.java | 593 +-- .../models/V1alpha1VariableBuilder.java | 15 +- .../models/V1alpha1VariableFluent.java | 67 +- .../V1alpha1VolumeAttributesClassBuilder.java | 15 +- .../V1alpha1VolumeAttributesClassFluent.java | 266 +- ...lpha1VolumeAttributesClassListBuilder.java | 15 +- ...alpha1VolumeAttributesClassListFluent.java | 413 +- .../models/V1alpha2LeaseCandidateBuilder.java | 15 +- .../models/V1alpha2LeaseCandidateFluent.java | 207 +- .../V1alpha2LeaseCandidateListBuilder.java | 15 +- .../V1alpha2LeaseCandidateListFluent.java | 413 +- .../V1alpha2LeaseCandidateSpecBuilder.java | 15 +- .../V1alpha2LeaseCandidateSpecFluent.java | 175 +- .../V1alpha3CELDeviceSelectorBuilder.java | 15 +- .../V1alpha3CELDeviceSelectorFluent.java | 39 +- .../models/V1alpha3DeviceSelectorBuilder.java | 15 +- .../models/V1alpha3DeviceSelectorFluent.java | 78 +- .../models/V1alpha3DeviceTaintBuilder.java | 15 +- .../models/V1alpha3DeviceTaintFluent.java | 125 +- .../V1alpha3DeviceTaintRuleBuilder.java | 15 +- .../models/V1alpha3DeviceTaintRuleFluent.java | 207 +- .../V1alpha3DeviceTaintRuleListBuilder.java | 15 +- .../V1alpha3DeviceTaintRuleListFluent.java | 413 +- .../V1alpha3DeviceTaintRuleSpecBuilder.java | 15 +- .../V1alpha3DeviceTaintRuleSpecFluent.java | 151 +- .../V1alpha3DeviceTaintSelectorBuilder.java | 15 +- .../V1alpha3DeviceTaintSelectorFluent.java | 412 +- .../V1beta1AllocatedDeviceStatusBuilder.java | 15 +- .../V1beta1AllocatedDeviceStatusFluent.java | 485 +- .../V1beta1AllocationResultBuilder.java | 15 +- .../models/V1beta1AllocationResultFluent.java | 179 +- .../V1beta1ApplyConfigurationBuilder.java | 15 +- .../V1beta1ApplyConfigurationFluent.java | 39 +- .../models/V1beta1BasicDeviceBuilder.java | 15 +- .../models/V1beta1BasicDeviceFluent.java | 1384 ++--- .../V1beta1CELDeviceSelectorBuilder.java | 15 +- .../V1beta1CELDeviceSelectorFluent.java | 39 +- .../V1beta1CapacityRequestPolicyBuilder.java | 15 +- .../V1beta1CapacityRequestPolicyFluent.java | 308 +- ...eta1CapacityRequestPolicyRangeBuilder.java | 15 +- ...beta1CapacityRequestPolicyRangeFluent.java | 121 +- .../V1beta1CapacityRequirementsBuilder.java | 15 +- .../V1beta1CapacityRequirementsFluent.java | 113 +- .../V1beta1ClusterTrustBundleBuilder.java | 15 +- .../V1beta1ClusterTrustBundleFluent.java | 207 +- .../V1beta1ClusterTrustBundleListBuilder.java | 15 +- .../V1beta1ClusterTrustBundleListFluent.java | 413 +- .../V1beta1ClusterTrustBundleSpecBuilder.java | 15 +- .../V1beta1ClusterTrustBundleSpecFluent.java | 67 +- .../openapi/models/V1beta1CounterBuilder.java | 15 +- .../openapi/models/V1beta1CounterFluent.java | 49 +- .../models/V1beta1CounterSetBuilder.java | 15 +- .../models/V1beta1CounterSetFluent.java | 145 +- ...1DeviceAllocationConfigurationBuilder.java | 15 +- ...a1DeviceAllocationConfigurationFluent.java | 294 +- .../V1beta1DeviceAllocationResultBuilder.java | 15 +- .../V1beta1DeviceAllocationResultFluent.java | 547 +- .../models/V1beta1DeviceAttributeBuilder.java | 15 +- .../models/V1beta1DeviceAttributeFluent.java | 125 +- .../openapi/models/V1beta1DeviceBuilder.java | 15 +- .../models/V1beta1DeviceCapacityBuilder.java | 15 +- .../models/V1beta1DeviceCapacityFluent.java | 120 +- .../models/V1beta1DeviceClaimBuilder.java | 15 +- ...1beta1DeviceClaimConfigurationBuilder.java | 15 +- ...V1beta1DeviceClaimConfigurationFluent.java | 268 +- .../models/V1beta1DeviceClaimFluent.java | 876 ++-- .../models/V1beta1DeviceClassBuilder.java | 15 +- ...1beta1DeviceClassConfigurationBuilder.java | 15 +- ...V1beta1DeviceClassConfigurationFluent.java | 78 +- .../models/V1beta1DeviceClassFluent.java | 207 +- .../models/V1beta1DeviceClassListBuilder.java | 15 +- .../models/V1beta1DeviceClassListFluent.java | 413 +- .../models/V1beta1DeviceClassSpecBuilder.java | 15 +- .../models/V1beta1DeviceClassSpecFluent.java | 581 +-- .../V1beta1DeviceConstraintBuilder.java | 15 +- .../models/V1beta1DeviceConstraintFluent.java | 239 +- ...1beta1DeviceCounterConsumptionBuilder.java | 15 +- ...V1beta1DeviceCounterConsumptionFluent.java | 135 +- .../openapi/models/V1beta1DeviceFluent.java | 106 +- ...1DeviceRequestAllocationResultBuilder.java | 15 +- ...a1DeviceRequestAllocationResultFluent.java | 928 ++-- .../models/V1beta1DeviceRequestBuilder.java | 15 +- .../models/V1beta1DeviceRequestFluent.java | 1093 ++-- .../models/V1beta1DeviceSelectorBuilder.java | 15 +- .../models/V1beta1DeviceSelectorFluent.java | 78 +- .../V1beta1DeviceSubRequestBuilder.java | 15 +- .../models/V1beta1DeviceSubRequestFluent.java | 816 +-- .../models/V1beta1DeviceTaintBuilder.java | 15 +- .../models/V1beta1DeviceTaintFluent.java | 125 +- .../V1beta1DeviceTolerationBuilder.java | 15 +- .../models/V1beta1DeviceTolerationFluent.java | 151 +- .../models/V1beta1IPAddressBuilder.java | 15 +- .../models/V1beta1IPAddressFluent.java | 207 +- .../models/V1beta1IPAddressListBuilder.java | 15 +- .../models/V1beta1IPAddressListFluent.java | 413 +- .../models/V1beta1IPAddressSpecBuilder.java | 15 +- .../models/V1beta1IPAddressSpecFluent.java | 86 +- .../models/V1beta1JSONPatchBuilder.java | 15 +- .../models/V1beta1JSONPatchFluent.java | 39 +- .../models/V1beta1LeaseCandidateBuilder.java | 15 +- .../models/V1beta1LeaseCandidateFluent.java | 207 +- .../V1beta1LeaseCandidateListBuilder.java | 15 +- .../V1beta1LeaseCandidateListFluent.java | 413 +- .../V1beta1LeaseCandidateSpecBuilder.java | 15 +- .../V1beta1LeaseCandidateSpecFluent.java | 175 +- .../models/V1beta1MatchConditionBuilder.java | 15 +- .../models/V1beta1MatchConditionFluent.java | 67 +- .../models/V1beta1MatchResourcesBuilder.java | 15 +- .../models/V1beta1MatchResourcesFluent.java | 719 +-- ...MutatingAdmissionPolicyBindingBuilder.java | 15 +- ...1MutatingAdmissionPolicyBindingFluent.java | 207 +- ...tingAdmissionPolicyBindingListBuilder.java | 15 +- ...atingAdmissionPolicyBindingListFluent.java | 413 +- ...tingAdmissionPolicyBindingSpecBuilder.java | 15 +- ...atingAdmissionPolicyBindingSpecFluent.java | 175 +- ...V1beta1MutatingAdmissionPolicyBuilder.java | 15 +- .../V1beta1MutatingAdmissionPolicyFluent.java | 207 +- ...ta1MutatingAdmissionPolicyListBuilder.java | 15 +- ...eta1MutatingAdmissionPolicyListFluent.java | 413 +- ...ta1MutatingAdmissionPolicySpecBuilder.java | 15 +- ...eta1MutatingAdmissionPolicySpecFluent.java | 1090 ++-- .../models/V1beta1MutationBuilder.java | 15 +- .../openapi/models/V1beta1MutationFluent.java | 179 +- ...V1beta1NamedRuleWithOperationsBuilder.java | 15 +- .../V1beta1NamedRuleWithOperationsFluent.java | 859 ++-- .../V1beta1NetworkDeviceDataBuilder.java | 15 +- .../V1beta1NetworkDeviceDataFluent.java | 235 +- ...beta1OpaqueDeviceConfigurationBuilder.java | 15 +- ...1beta1OpaqueDeviceConfigurationFluent.java | 67 +- .../models/V1beta1ParamKindBuilder.java | 15 +- .../models/V1beta1ParamKindFluent.java | 67 +- .../models/V1beta1ParamRefBuilder.java | 15 +- .../openapi/models/V1beta1ParamRefFluent.java | 170 +- .../models/V1beta1ParentReferenceBuilder.java | 15 +- .../models/V1beta1ParentReferenceFluent.java | 123 +- .../models/V1beta1ResourceClaimBuilder.java | 15 +- ...ResourceClaimConsumerReferenceBuilder.java | 15 +- ...1ResourceClaimConsumerReferenceFluent.java | 123 +- .../models/V1beta1ResourceClaimFluent.java | 276 +- .../V1beta1ResourceClaimListBuilder.java | 15 +- .../V1beta1ResourceClaimListFluent.java | 413 +- .../V1beta1ResourceClaimSpecBuilder.java | 15 +- .../V1beta1ResourceClaimSpecFluent.java | 78 +- .../V1beta1ResourceClaimStatusBuilder.java | 15 +- .../V1beta1ResourceClaimStatusFluent.java | 642 +-- .../V1beta1ResourceClaimTemplateBuilder.java | 15 +- .../V1beta1ResourceClaimTemplateFluent.java | 207 +- ...beta1ResourceClaimTemplateListBuilder.java | 15 +- ...1beta1ResourceClaimTemplateListFluent.java | 413 +- ...beta1ResourceClaimTemplateSpecBuilder.java | 15 +- ...1beta1ResourceClaimTemplateSpecFluent.java | 151 +- .../models/V1beta1ResourcePoolBuilder.java | 15 +- .../models/V1beta1ResourcePoolFluent.java | 95 +- .../models/V1beta1ResourceSliceBuilder.java | 15 +- .../models/V1beta1ResourceSliceFluent.java | 207 +- .../V1beta1ResourceSliceListBuilder.java | 15 +- .../V1beta1ResourceSliceListFluent.java | 413 +- .../V1beta1ResourceSliceSpecBuilder.java | 15 +- .../V1beta1ResourceSliceSpecFluent.java | 813 +-- .../models/V1beta1ServiceCIDRBuilder.java | 15 +- .../models/V1beta1ServiceCIDRFluent.java | 276 +- .../models/V1beta1ServiceCIDRListBuilder.java | 15 +- .../models/V1beta1ServiceCIDRListFluent.java | 413 +- .../models/V1beta1ServiceCIDRSpecBuilder.java | 15 +- .../models/V1beta1ServiceCIDRSpecFluent.java | 161 +- .../V1beta1ServiceCIDRStatusBuilder.java | 15 +- .../V1beta1ServiceCIDRStatusFluent.java | 280 +- .../models/V1beta1VariableBuilder.java | 15 +- .../openapi/models/V1beta1VariableFluent.java | 67 +- .../V1beta1VolumeAttributesClassBuilder.java | 15 +- .../V1beta1VolumeAttributesClassFluent.java | 266 +- ...beta1VolumeAttributesClassListBuilder.java | 15 +- ...1beta1VolumeAttributesClassListFluent.java | 413 +- .../V1beta2AllocatedDeviceStatusBuilder.java | 15 +- .../V1beta2AllocatedDeviceStatusFluent.java | 485 +- .../V1beta2AllocationResultBuilder.java | 15 +- .../models/V1beta2AllocationResultFluent.java | 179 +- .../V1beta2CELDeviceSelectorBuilder.java | 15 +- .../V1beta2CELDeviceSelectorFluent.java | 39 +- .../V1beta2CapacityRequestPolicyBuilder.java | 15 +- .../V1beta2CapacityRequestPolicyFluent.java | 308 +- ...eta2CapacityRequestPolicyRangeBuilder.java | 15 +- ...beta2CapacityRequestPolicyRangeFluent.java | 121 +- .../V1beta2CapacityRequirementsBuilder.java | 15 +- .../V1beta2CapacityRequirementsFluent.java | 113 +- .../openapi/models/V1beta2CounterBuilder.java | 15 +- .../openapi/models/V1beta2CounterFluent.java | 49 +- .../models/V1beta2CounterSetBuilder.java | 15 +- .../models/V1beta2CounterSetFluent.java | 145 +- ...2DeviceAllocationConfigurationBuilder.java | 15 +- ...a2DeviceAllocationConfigurationFluent.java | 294 +- .../V1beta2DeviceAllocationResultBuilder.java | 15 +- .../V1beta2DeviceAllocationResultFluent.java | 547 +- .../models/V1beta2DeviceAttributeBuilder.java | 15 +- .../models/V1beta2DeviceAttributeFluent.java | 125 +- .../openapi/models/V1beta2DeviceBuilder.java | 15 +- .../models/V1beta2DeviceCapacityBuilder.java | 15 +- .../models/V1beta2DeviceCapacityFluent.java | 120 +- .../models/V1beta2DeviceClaimBuilder.java | 15 +- ...1beta2DeviceClaimConfigurationBuilder.java | 15 +- ...V1beta2DeviceClaimConfigurationFluent.java | 268 +- .../models/V1beta2DeviceClaimFluent.java | 876 ++-- .../models/V1beta2DeviceClassBuilder.java | 15 +- ...1beta2DeviceClassConfigurationBuilder.java | 15 +- ...V1beta2DeviceClassConfigurationFluent.java | 78 +- .../models/V1beta2DeviceClassFluent.java | 207 +- .../models/V1beta2DeviceClassListBuilder.java | 15 +- .../models/V1beta2DeviceClassListFluent.java | 413 +- .../models/V1beta2DeviceClassSpecBuilder.java | 15 +- .../models/V1beta2DeviceClassSpecFluent.java | 581 +-- .../V1beta2DeviceConstraintBuilder.java | 15 +- .../models/V1beta2DeviceConstraintFluent.java | 239 +- ...1beta2DeviceCounterConsumptionBuilder.java | 15 +- ...V1beta2DeviceCounterConsumptionFluent.java | 135 +- .../openapi/models/V1beta2DeviceFluent.java | 1390 ++--- ...2DeviceRequestAllocationResultBuilder.java | 15 +- ...a2DeviceRequestAllocationResultFluent.java | 928 ++-- .../models/V1beta2DeviceRequestBuilder.java | 15 +- .../models/V1beta2DeviceRequestFluent.java | 381 +- .../models/V1beta2DeviceSelectorBuilder.java | 15 +- .../models/V1beta2DeviceSelectorFluent.java | 78 +- .../V1beta2DeviceSubRequestBuilder.java | 15 +- .../models/V1beta2DeviceSubRequestFluent.java | 816 +-- .../models/V1beta2DeviceTaintBuilder.java | 15 +- .../models/V1beta2DeviceTaintFluent.java | 125 +- .../V1beta2DeviceTolerationBuilder.java | 15 +- .../models/V1beta2DeviceTolerationFluent.java | 151 +- .../V1beta2ExactDeviceRequestBuilder.java | 15 +- .../V1beta2ExactDeviceRequestFluent.java | 818 +-- .../V1beta2NetworkDeviceDataBuilder.java | 15 +- .../V1beta2NetworkDeviceDataFluent.java | 235 +- ...beta2OpaqueDeviceConfigurationBuilder.java | 15 +- ...1beta2OpaqueDeviceConfigurationFluent.java | 67 +- .../models/V1beta2ResourceClaimBuilder.java | 15 +- ...ResourceClaimConsumerReferenceBuilder.java | 15 +- ...2ResourceClaimConsumerReferenceFluent.java | 123 +- .../models/V1beta2ResourceClaimFluent.java | 276 +- .../V1beta2ResourceClaimListBuilder.java | 15 +- .../V1beta2ResourceClaimListFluent.java | 413 +- .../V1beta2ResourceClaimSpecBuilder.java | 15 +- .../V1beta2ResourceClaimSpecFluent.java | 78 +- .../V1beta2ResourceClaimStatusBuilder.java | 15 +- .../V1beta2ResourceClaimStatusFluent.java | 642 +-- .../V1beta2ResourceClaimTemplateBuilder.java | 15 +- .../V1beta2ResourceClaimTemplateFluent.java | 207 +- ...beta2ResourceClaimTemplateListBuilder.java | 15 +- ...1beta2ResourceClaimTemplateListFluent.java | 413 +- ...beta2ResourceClaimTemplateSpecBuilder.java | 15 +- ...1beta2ResourceClaimTemplateSpecFluent.java | 151 +- .../models/V1beta2ResourcePoolBuilder.java | 15 +- .../models/V1beta2ResourcePoolFluent.java | 95 +- .../models/V1beta2ResourceSliceBuilder.java | 15 +- .../models/V1beta2ResourceSliceFluent.java | 207 +- .../V1beta2ResourceSliceListBuilder.java | 15 +- .../V1beta2ResourceSliceListFluent.java | 413 +- .../V1beta2ResourceSliceSpecBuilder.java | 15 +- .../V1beta2ResourceSliceSpecFluent.java | 813 +-- ...2ContainerResourceMetricSourceBuilder.java | 15 +- ...V2ContainerResourceMetricSourceFluent.java | 142 +- ...2ContainerResourceMetricStatusBuilder.java | 15 +- ...V2ContainerResourceMetricStatusFluent.java | 134 +- .../V2CrossVersionObjectReferenceBuilder.java | 15 +- .../V2CrossVersionObjectReferenceFluent.java | 95 +- .../models/V2ExternalMetricSourceBuilder.java | 15 +- .../models/V2ExternalMetricSourceFluent.java | 151 +- .../models/V2ExternalMetricStatusBuilder.java | 15 +- .../models/V2ExternalMetricStatusFluent.java | 151 +- .../models/V2HPAScalingPolicyBuilder.java | 15 +- .../models/V2HPAScalingPolicyFluent.java | 95 +- .../models/V2HPAScalingRulesBuilder.java | 15 +- .../models/V2HPAScalingRulesFluent.java | 390 +- ...orizontalPodAutoscalerBehaviorBuilder.java | 15 +- ...HorizontalPodAutoscalerBehaviorFluent.java | 155 +- .../V2HorizontalPodAutoscalerBuilder.java | 15 +- ...rizontalPodAutoscalerConditionBuilder.java | 15 +- ...orizontalPodAutoscalerConditionFluent.java | 153 +- .../V2HorizontalPodAutoscalerFluent.java | 276 +- .../V2HorizontalPodAutoscalerListBuilder.java | 15 +- .../V2HorizontalPodAutoscalerListFluent.java | 413 +- .../V2HorizontalPodAutoscalerSpecBuilder.java | 15 +- .../V2HorizontalPodAutoscalerSpecFluent.java | 496 +- ...2HorizontalPodAutoscalerStatusBuilder.java | 15 +- ...V2HorizontalPodAutoscalerStatusFluent.java | 695 +-- .../models/V2MetricIdentifierBuilder.java | 15 +- .../models/V2MetricIdentifierFluent.java | 114 +- .../openapi/models/V2MetricSpecBuilder.java | 15 +- .../openapi/models/V2MetricSpecFluent.java | 386 +- .../openapi/models/V2MetricStatusBuilder.java | 15 +- .../openapi/models/V2MetricStatusFluent.java | 386 +- .../openapi/models/V2MetricTargetBuilder.java | 15 +- .../openapi/models/V2MetricTargetFluent.java | 141 +- .../models/V2MetricValueStatusBuilder.java | 15 +- .../models/V2MetricValueStatusFluent.java | 113 +- .../models/V2ObjectMetricSourceBuilder.java | 15 +- .../models/V2ObjectMetricSourceFluent.java | 224 +- .../models/V2ObjectMetricStatusBuilder.java | 15 +- .../models/V2ObjectMetricStatusFluent.java | 220 +- .../models/V2PodsMetricSourceBuilder.java | 15 +- .../models/V2PodsMetricSourceFluent.java | 151 +- .../models/V2PodsMetricStatusBuilder.java | 15 +- .../models/V2PodsMetricStatusFluent.java | 151 +- .../models/V2ResourceMetricSourceBuilder.java | 15 +- .../models/V2ResourceMetricSourceFluent.java | 114 +- .../models/V2ResourceMetricStatusBuilder.java | 15 +- .../models/V2ResourceMetricStatusFluent.java | 106 +- .../openapi/models/VersionInfoBuilder.java | 15 +- .../openapi/models/VersionInfoFluent.java | 329 +- gen | 1 - .../client/openapi/ApiCallback.java | 23 +- .../kubernetes/client/openapi/ApiClient.java | 27 +- .../client/openapi/ApiException.java | 23 +- .../client/openapi/ApiResponse.java | 25 +- .../client/openapi/Configuration.java | 25 +- .../openapi/GzipRequestInterceptor.java | 23 +- .../io/kubernetes/client/openapi/JSON.java | 23 +- .../io/kubernetes/client/openapi/Pair.java | 23 +- .../client/openapi/ProgressRequestBody.java | 23 +- .../client/openapi/ProgressResponseBody.java | 23 +- .../client/openapi/ServerConfiguration.java | 23 +- .../client/openapi/ServerVariable.java | 23 +- .../kubernetes/client/openapi/StringUtil.java | 23 +- .../apis/AdmissionregistrationApi.java | 25 +- .../apis/AdmissionregistrationV1Api.java | 87 +- .../AdmissionregistrationV1alpha1Api.java | 53 +- .../apis/AdmissionregistrationV1beta1Api.java | 53 +- .../client/openapi/apis/ApiextensionsApi.java | 25 +- .../openapi/apis/ApiextensionsV1Api.java | 45 +- .../openapi/apis/ApiregistrationApi.java | 25 +- .../openapi/apis/ApiregistrationV1Api.java | 45 +- .../client/openapi/apis/ApisApi.java | 25 +- .../client/openapi/apis/AppsApi.java | 25 +- .../client/openapi/apis/AppsV1Api.java | 147 +- .../openapi/apis/AuthenticationApi.java | 25 +- .../openapi/apis/AuthenticationV1Api.java | 29 +- .../client/openapi/apis/AuthorizationApi.java | 25 +- .../openapi/apis/AuthorizationV1Api.java | 33 +- .../client/openapi/apis/AutoscalingApi.java | 25 +- .../client/openapi/apis/AutoscalingV1Api.java | 47 +- .../client/openapi/apis/AutoscalingV2Api.java | 47 +- .../client/openapi/apis/BatchApi.java | 25 +- .../client/openapi/apis/BatchV1Api.java | 69 +- .../client/openapi/apis/CertificatesApi.java | 25 +- .../openapi/apis/CertificatesV1Api.java | 51 +- .../openapi/apis/CertificatesV1alpha1Api.java | 61 +- .../openapi/apis/CertificatesV1beta1Api.java | 39 +- .../client/openapi/apis/CoordinationApi.java | 25 +- .../openapi/apis/CoordinationV1Api.java | 41 +- .../openapi/apis/CoordinationV1alpha2Api.java | 41 +- .../openapi/apis/CoordinationV1beta1Api.java | 41 +- .../client/openapi/apis/CoreApi.java | 25 +- .../client/openapi/apis/CoreV1Api.java | 435 +- .../client/openapi/apis/CustomObjectsApi.java | 79 +- .../client/openapi/apis/DiscoveryApi.java | 25 +- .../client/openapi/apis/DiscoveryV1Api.java | 41 +- .../client/openapi/apis/EventsApi.java | 25 +- .../client/openapi/apis/EventsV1Api.java | 41 +- .../openapi/apis/FlowcontrolApiserverApi.java | 25 +- .../apis/FlowcontrolApiserverV1Api.java | 65 +- .../openapi/apis/InternalApiserverApi.java | 25 +- .../apis/InternalApiserverV1alpha1Api.java | 45 +- .../client/openapi/apis/LogsApi.java | 31 +- .../client/openapi/apis/NetworkingApi.java | 25 +- .../client/openapi/apis/NetworkingV1Api.java | 111 +- .../openapi/apis/NetworkingV1beta1Api.java | 59 +- .../client/openapi/apis/NodeApi.java | 25 +- .../client/openapi/apis/NodeV1Api.java | 39 +- .../client/openapi/apis/OpenidApi.java | 25 +- .../client/openapi/apis/PolicyApi.java | 25 +- .../client/openapi/apis/PolicyV1Api.java | 47 +- .../openapi/apis/RbacAuthorizationApi.java | 25 +- .../openapi/apis/RbacAuthorizationV1Api.java | 85 +- .../client/openapi/apis/ResourceApi.java | 25 +- .../client/openapi/apis/ResourceV1Api.java | 91 +- .../openapi/apis/ResourceV1alpha3Api.java | 39 +- .../openapi/apis/ResourceV1beta1Api.java | 91 +- .../openapi/apis/ResourceV1beta2Api.java | 91 +- .../client/openapi/apis/SchedulingApi.java | 25 +- .../client/openapi/apis/SchedulingV1Api.java | 39 +- .../client/openapi/apis/StorageApi.java | 25 +- .../client/openapi/apis/StorageV1Api.java | 117 +- .../openapi/apis/StorageV1alpha1Api.java | 39 +- .../openapi/apis/StorageV1beta1Api.java | 39 +- .../openapi/apis/StoragemigrationApi.java | 25 +- .../apis/StoragemigrationV1alpha1Api.java | 45 +- .../client/openapi/apis/VersionApi.java | 25 +- .../client/openapi/apis/WellKnownApi.java | 25 +- .../client/openapi/auth/ApiKeyAuth.java | 23 +- .../client/openapi/auth/Authentication.java | 23 +- .../client/openapi/auth/HttpBasicAuth.java | 23 +- .../client/openapi/auth/HttpBearerAuth.java | 23 +- .../openapi/models/AbstractOpenApiSchema.java | 23 +- ...missionregistrationV1ServiceReference.java | 24 +- ...sionregistrationV1WebhookClientConfig.java | 24 +- .../ApiextensionsV1ServiceReference.java | 24 +- .../ApiextensionsV1WebhookClientConfig.java | 24 +- .../ApiregistrationV1ServiceReference.java | 24 +- .../models/AuthenticationV1TokenRequest.java | 24 +- .../openapi/models/CoreV1EndpointPort.java | 24 +- .../client/openapi/models/CoreV1Event.java | 24 +- .../openapi/models/CoreV1EventList.java | 24 +- .../openapi/models/CoreV1EventSeries.java | 24 +- .../openapi/models/CoreV1ResourceClaim.java | 24 +- .../models/DiscoveryV1EndpointPort.java | 24 +- .../client/openapi/models/EventsV1Event.java | 24 +- .../openapi/models/EventsV1EventList.java | 24 +- .../openapi/models/EventsV1EventSeries.java | 24 +- .../openapi/models/FlowcontrolV1Subject.java | 24 +- .../client/openapi/models/RbacV1Subject.java | 24 +- .../models/ResourceV1ResourceClaim.java | 24 +- .../openapi/models/StorageV1TokenRequest.java | 24 +- .../client/openapi/models/V1APIGroup.java | 24 +- .../client/openapi/models/V1APIGroupList.java | 24 +- .../client/openapi/models/V1APIResource.java | 24 +- .../openapi/models/V1APIResourceList.java | 24 +- .../client/openapi/models/V1APIService.java | 24 +- .../openapi/models/V1APIServiceCondition.java | 24 +- .../openapi/models/V1APIServiceList.java | 24 +- .../openapi/models/V1APIServiceSpec.java | 24 +- .../openapi/models/V1APIServiceStatus.java | 24 +- .../client/openapi/models/V1APIVersions.java | 24 +- .../V1AWSElasticBlockStoreVolumeSource.java | 24 +- .../client/openapi/models/V1Affinity.java | 24 +- .../openapi/models/V1AggregationRule.java | 24 +- .../models/V1AllocatedDeviceStatus.java | 24 +- .../openapi/models/V1AllocationResult.java | 24 +- .../openapi/models/V1AppArmorProfile.java | 24 +- .../openapi/models/V1AttachedVolume.java | 24 +- .../openapi/models/V1AuditAnnotation.java | 24 +- .../models/V1AzureDiskVolumeSource.java | 24 +- .../V1AzureFilePersistentVolumeSource.java | 24 +- .../models/V1AzureFileVolumeSource.java | 24 +- .../client/openapi/models/V1Binding.java | 24 +- .../models/V1BoundObjectReference.java | 24 +- .../openapi/models/V1CELDeviceSelector.java | 24 +- .../client/openapi/models/V1CSIDriver.java | 24 +- .../openapi/models/V1CSIDriverList.java | 24 +- .../openapi/models/V1CSIDriverSpec.java | 24 +- .../client/openapi/models/V1CSINode.java | 24 +- .../openapi/models/V1CSINodeDriver.java | 24 +- .../client/openapi/models/V1CSINodeList.java | 24 +- .../client/openapi/models/V1CSINodeSpec.java | 24 +- .../models/V1CSIPersistentVolumeSource.java | 24 +- .../openapi/models/V1CSIStorageCapacity.java | 24 +- .../models/V1CSIStorageCapacityList.java | 24 +- .../openapi/models/V1CSIVolumeSource.java | 24 +- .../client/openapi/models/V1Capabilities.java | 24 +- .../models/V1CapacityRequestPolicy.java | 24 +- .../models/V1CapacityRequestPolicyRange.java | 24 +- .../models/V1CapacityRequirements.java | 24 +- .../V1CephFSPersistentVolumeSource.java | 24 +- .../openapi/models/V1CephFSVolumeSource.java | 24 +- .../models/V1CertificateSigningRequest.java | 24 +- .../V1CertificateSigningRequestCondition.java | 24 +- .../V1CertificateSigningRequestList.java | 24 +- .../V1CertificateSigningRequestSpec.java | 24 +- .../V1CertificateSigningRequestStatus.java | 24 +- .../V1CinderPersistentVolumeSource.java | 24 +- .../openapi/models/V1CinderVolumeSource.java | 24 +- .../openapi/models/V1ClientIPConfig.java | 24 +- .../client/openapi/models/V1ClusterRole.java | 24 +- .../openapi/models/V1ClusterRoleBinding.java | 24 +- .../models/V1ClusterRoleBindingList.java | 24 +- .../openapi/models/V1ClusterRoleList.java | 24 +- .../V1ClusterTrustBundleProjection.java | 24 +- .../openapi/models/V1ComponentCondition.java | 24 +- .../openapi/models/V1ComponentStatus.java | 24 +- .../openapi/models/V1ComponentStatusList.java | 24 +- .../client/openapi/models/V1Condition.java | 24 +- .../client/openapi/models/V1ConfigMap.java | 24 +- .../openapi/models/V1ConfigMapEnvSource.java | 24 +- .../models/V1ConfigMapKeySelector.java | 24 +- .../openapi/models/V1ConfigMapList.java | 24 +- .../models/V1ConfigMapNodeConfigSource.java | 24 +- .../openapi/models/V1ConfigMapProjection.java | 24 +- .../models/V1ConfigMapVolumeSource.java | 24 +- .../client/openapi/models/V1Container.java | 24 +- .../V1ContainerExtendedResourceRequest.java | 24 +- .../openapi/models/V1ContainerImage.java | 24 +- .../openapi/models/V1ContainerPort.java | 24 +- .../models/V1ContainerResizePolicy.java | 24 +- .../models/V1ContainerRestartRule.java | 24 +- .../V1ContainerRestartRuleOnExitCodes.java | 24 +- .../openapi/models/V1ContainerState.java | 24 +- .../models/V1ContainerStateRunning.java | 24 +- .../models/V1ContainerStateTerminated.java | 24 +- .../models/V1ContainerStateWaiting.java | 24 +- .../openapi/models/V1ContainerStatus.java | 24 +- .../openapi/models/V1ContainerUser.java | 24 +- .../openapi/models/V1ControllerRevision.java | 24 +- .../models/V1ControllerRevisionList.java | 24 +- .../client/openapi/models/V1Counter.java | 24 +- .../client/openapi/models/V1CounterSet.java | 24 +- .../client/openapi/models/V1CronJob.java | 24 +- .../client/openapi/models/V1CronJobList.java | 24 +- .../client/openapi/models/V1CronJobSpec.java | 24 +- .../openapi/models/V1CronJobStatus.java | 24 +- .../models/V1CrossVersionObjectReference.java | 24 +- .../V1CustomResourceColumnDefinition.java | 24 +- .../models/V1CustomResourceConversion.java | 24 +- .../models/V1CustomResourceDefinition.java | 24 +- .../V1CustomResourceDefinitionCondition.java | 24 +- .../V1CustomResourceDefinitionList.java | 24 +- .../V1CustomResourceDefinitionNames.java | 24 +- .../V1CustomResourceDefinitionSpec.java | 24 +- .../V1CustomResourceDefinitionStatus.java | 24 +- .../V1CustomResourceDefinitionVersion.java | 24 +- .../V1CustomResourceSubresourceScale.java | 24 +- .../models/V1CustomResourceSubresources.java | 24 +- .../models/V1CustomResourceValidation.java | 24 +- .../openapi/models/V1DaemonEndpoint.java | 24 +- .../client/openapi/models/V1DaemonSet.java | 24 +- .../openapi/models/V1DaemonSetCondition.java | 24 +- .../openapi/models/V1DaemonSetList.java | 24 +- .../openapi/models/V1DaemonSetSpec.java | 24 +- .../openapi/models/V1DaemonSetStatus.java | 24 +- .../models/V1DaemonSetUpdateStrategy.java | 24 +- .../openapi/models/V1DeleteOptions.java | 24 +- .../client/openapi/models/V1Deployment.java | 24 +- .../openapi/models/V1DeploymentCondition.java | 24 +- .../openapi/models/V1DeploymentList.java | 24 +- .../openapi/models/V1DeploymentSpec.java | 24 +- .../openapi/models/V1DeploymentStatus.java | 24 +- .../openapi/models/V1DeploymentStrategy.java | 24 +- .../client/openapi/models/V1Device.java | 24 +- .../V1DeviceAllocationConfiguration.java | 24 +- .../models/V1DeviceAllocationResult.java | 24 +- .../openapi/models/V1DeviceAttribute.java | 24 +- .../openapi/models/V1DeviceCapacity.java | 24 +- .../client/openapi/models/V1DeviceClaim.java | 24 +- .../models/V1DeviceClaimConfiguration.java | 24 +- .../client/openapi/models/V1DeviceClass.java | 24 +- .../models/V1DeviceClassConfiguration.java | 24 +- .../openapi/models/V1DeviceClassList.java | 24 +- .../openapi/models/V1DeviceClassSpec.java | 24 +- .../openapi/models/V1DeviceConstraint.java | 24 +- .../models/V1DeviceCounterConsumption.java | 24 +- .../openapi/models/V1DeviceRequest.java | 24 +- .../V1DeviceRequestAllocationResult.java | 24 +- .../openapi/models/V1DeviceSelector.java | 24 +- .../openapi/models/V1DeviceSubRequest.java | 24 +- .../client/openapi/models/V1DeviceTaint.java | 24 +- .../openapi/models/V1DeviceToleration.java | 24 +- .../models/V1DownwardAPIProjection.java | 24 +- .../models/V1DownwardAPIVolumeFile.java | 24 +- .../models/V1DownwardAPIVolumeSource.java | 24 +- .../models/V1EmptyDirVolumeSource.java | 24 +- .../client/openapi/models/V1Endpoint.java | 24 +- .../openapi/models/V1EndpointAddress.java | 24 +- .../openapi/models/V1EndpointConditions.java | 24 +- .../openapi/models/V1EndpointHints.java | 24 +- .../openapi/models/V1EndpointSlice.java | 24 +- .../openapi/models/V1EndpointSliceList.java | 24 +- .../openapi/models/V1EndpointSubset.java | 24 +- .../client/openapi/models/V1Endpoints.java | 24 +- .../openapi/models/V1EndpointsList.java | 24 +- .../openapi/models/V1EnvFromSource.java | 24 +- .../client/openapi/models/V1EnvVar.java | 24 +- .../client/openapi/models/V1EnvVarSource.java | 24 +- .../openapi/models/V1EphemeralContainer.java | 24 +- .../models/V1EphemeralVolumeSource.java | 24 +- .../client/openapi/models/V1EventSource.java | 24 +- .../client/openapi/models/V1Eviction.java | 24 +- .../openapi/models/V1ExactDeviceRequest.java | 24 +- .../client/openapi/models/V1ExecAction.java | 24 +- .../V1ExemptPriorityLevelConfiguration.java | 24 +- .../openapi/models/V1ExpressionWarning.java | 24 +- .../models/V1ExternalDocumentation.java | 24 +- .../openapi/models/V1FCVolumeSource.java | 24 +- .../models/V1FieldSelectorAttributes.java | 24 +- .../models/V1FieldSelectorRequirement.java | 24 +- .../openapi/models/V1FileKeySelector.java | 24 +- .../models/V1FlexPersistentVolumeSource.java | 24 +- .../openapi/models/V1FlexVolumeSource.java | 24 +- .../openapi/models/V1FlockerVolumeSource.java | 24 +- .../models/V1FlowDistinguisherMethod.java | 24 +- .../client/openapi/models/V1FlowSchema.java | 24 +- .../openapi/models/V1FlowSchemaCondition.java | 24 +- .../openapi/models/V1FlowSchemaList.java | 24 +- .../openapi/models/V1FlowSchemaSpec.java | 24 +- .../openapi/models/V1FlowSchemaStatus.java | 24 +- .../client/openapi/models/V1ForNode.java | 24 +- .../client/openapi/models/V1ForZone.java | 24 +- .../V1GCEPersistentDiskVolumeSource.java | 24 +- .../client/openapi/models/V1GRPCAction.java | 24 +- .../openapi/models/V1GitRepoVolumeSource.java | 24 +- .../V1GlusterfsPersistentVolumeSource.java | 24 +- .../models/V1GlusterfsVolumeSource.java | 24 +- .../client/openapi/models/V1GroupSubject.java | 24 +- .../models/V1GroupVersionForDiscovery.java | 24 +- .../openapi/models/V1HTTPGetAction.java | 24 +- .../client/openapi/models/V1HTTPHeader.java | 24 +- .../openapi/models/V1HTTPIngressPath.java | 24 +- .../models/V1HTTPIngressRuleValue.java | 24 +- .../models/V1HorizontalPodAutoscaler.java | 24 +- .../models/V1HorizontalPodAutoscalerList.java | 24 +- .../models/V1HorizontalPodAutoscalerSpec.java | 24 +- .../V1HorizontalPodAutoscalerStatus.java | 24 +- .../client/openapi/models/V1HostAlias.java | 24 +- .../client/openapi/models/V1HostIP.java | 24 +- .../models/V1HostPathVolumeSource.java | 24 +- .../client/openapi/models/V1IPAddress.java | 24 +- .../openapi/models/V1IPAddressList.java | 24 +- .../openapi/models/V1IPAddressSpec.java | 24 +- .../client/openapi/models/V1IPBlock.java | 24 +- .../models/V1ISCSIPersistentVolumeSource.java | 24 +- .../openapi/models/V1ISCSIVolumeSource.java | 24 +- .../openapi/models/V1ImageVolumeSource.java | 24 +- .../client/openapi/models/V1Ingress.java | 24 +- .../openapi/models/V1IngressBackend.java | 24 +- .../client/openapi/models/V1IngressClass.java | 24 +- .../openapi/models/V1IngressClassList.java | 24 +- .../V1IngressClassParametersReference.java | 24 +- .../openapi/models/V1IngressClassSpec.java | 24 +- .../client/openapi/models/V1IngressList.java | 24 +- .../models/V1IngressLoadBalancerIngress.java | 24 +- .../models/V1IngressLoadBalancerStatus.java | 24 +- .../openapi/models/V1IngressPortStatus.java | 24 +- .../client/openapi/models/V1IngressRule.java | 24 +- .../models/V1IngressServiceBackend.java | 24 +- .../client/openapi/models/V1IngressSpec.java | 24 +- .../openapi/models/V1IngressStatus.java | 24 +- .../client/openapi/models/V1IngressTLS.java | 24 +- .../openapi/models/V1JSONSchemaProps.java | 24 +- .../client/openapi/models/V1Job.java | 24 +- .../client/openapi/models/V1JobCondition.java | 24 +- .../client/openapi/models/V1JobList.java | 24 +- .../client/openapi/models/V1JobSpec.java | 24 +- .../client/openapi/models/V1JobStatus.java | 24 +- .../openapi/models/V1JobTemplateSpec.java | 24 +- .../client/openapi/models/V1KeyToPath.java | 24 +- .../openapi/models/V1LabelSelector.java | 24 +- .../models/V1LabelSelectorAttributes.java | 24 +- .../models/V1LabelSelectorRequirement.java | 24 +- .../client/openapi/models/V1Lease.java | 24 +- .../client/openapi/models/V1LeaseList.java | 24 +- .../client/openapi/models/V1LeaseSpec.java | 24 +- .../client/openapi/models/V1Lifecycle.java | 24 +- .../openapi/models/V1LifecycleHandler.java | 24 +- .../client/openapi/models/V1LimitRange.java | 24 +- .../openapi/models/V1LimitRangeItem.java | 24 +- .../openapi/models/V1LimitRangeList.java | 24 +- .../openapi/models/V1LimitRangeSpec.java | 24 +- .../openapi/models/V1LimitResponse.java | 24 +- .../V1LimitedPriorityLevelConfiguration.java | 24 +- .../openapi/models/V1LinuxContainerUser.java | 24 +- .../client/openapi/models/V1ListMeta.java | 24 +- .../openapi/models/V1LoadBalancerIngress.java | 24 +- .../openapi/models/V1LoadBalancerStatus.java | 24 +- .../models/V1LocalObjectReference.java | 24 +- .../models/V1LocalSubjectAccessReview.java | 24 +- .../openapi/models/V1LocalVolumeSource.java | 24 +- .../openapi/models/V1ManagedFieldsEntry.java | 24 +- .../openapi/models/V1MatchCondition.java | 24 +- .../openapi/models/V1MatchResources.java | 24 +- .../openapi/models/V1ModifyVolumeStatus.java | 24 +- .../openapi/models/V1MutatingWebhook.java | 24 +- .../V1MutatingWebhookConfiguration.java | 24 +- .../V1MutatingWebhookConfigurationList.java | 24 +- .../openapi/models/V1NFSVolumeSource.java | 24 +- .../models/V1NamedRuleWithOperations.java | 24 +- .../client/openapi/models/V1Namespace.java | 24 +- .../openapi/models/V1NamespaceCondition.java | 24 +- .../openapi/models/V1NamespaceList.java | 24 +- .../openapi/models/V1NamespaceSpec.java | 24 +- .../openapi/models/V1NamespaceStatus.java | 24 +- .../openapi/models/V1NetworkDeviceData.java | 24 +- .../openapi/models/V1NetworkPolicy.java | 24 +- .../models/V1NetworkPolicyEgressRule.java | 24 +- .../models/V1NetworkPolicyIngressRule.java | 24 +- .../openapi/models/V1NetworkPolicyList.java | 24 +- .../openapi/models/V1NetworkPolicyPeer.java | 24 +- .../openapi/models/V1NetworkPolicyPort.java | 24 +- .../openapi/models/V1NetworkPolicySpec.java | 24 +- .../client/openapi/models/V1Node.java | 24 +- .../client/openapi/models/V1NodeAddress.java | 24 +- .../client/openapi/models/V1NodeAffinity.java | 24 +- .../openapi/models/V1NodeCondition.java | 24 +- .../openapi/models/V1NodeConfigSource.java | 24 +- .../openapi/models/V1NodeConfigStatus.java | 24 +- .../openapi/models/V1NodeDaemonEndpoints.java | 24 +- .../client/openapi/models/V1NodeFeatures.java | 24 +- .../client/openapi/models/V1NodeList.java | 24 +- .../openapi/models/V1NodeRuntimeHandler.java | 24 +- .../models/V1NodeRuntimeHandlerFeatures.java | 24 +- .../client/openapi/models/V1NodeSelector.java | 24 +- .../models/V1NodeSelectorRequirement.java | 24 +- .../openapi/models/V1NodeSelectorTerm.java | 24 +- .../client/openapi/models/V1NodeSpec.java | 24 +- .../client/openapi/models/V1NodeStatus.java | 24 +- .../openapi/models/V1NodeSwapStatus.java | 24 +- .../openapi/models/V1NodeSystemInfo.java | 24 +- .../models/V1NonResourceAttributes.java | 24 +- .../models/V1NonResourcePolicyRule.java | 24 +- .../openapi/models/V1NonResourceRule.java | 24 +- .../openapi/models/V1ObjectFieldSelector.java | 24 +- .../client/openapi/models/V1ObjectMeta.java | 24 +- .../openapi/models/V1ObjectReference.java | 24 +- .../models/V1OpaqueDeviceConfiguration.java | 24 +- .../client/openapi/models/V1Overhead.java | 24 +- .../openapi/models/V1OwnerReference.java | 24 +- .../client/openapi/models/V1ParamKind.java | 24 +- .../client/openapi/models/V1ParamRef.java | 24 +- .../openapi/models/V1ParentReference.java | 24 +- .../openapi/models/V1PersistentVolume.java | 24 +- .../models/V1PersistentVolumeClaim.java | 24 +- .../V1PersistentVolumeClaimCondition.java | 24 +- .../models/V1PersistentVolumeClaimList.java | 24 +- .../models/V1PersistentVolumeClaimSpec.java | 24 +- .../models/V1PersistentVolumeClaimStatus.java | 24 +- .../V1PersistentVolumeClaimTemplate.java | 24 +- .../V1PersistentVolumeClaimVolumeSource.java | 24 +- .../models/V1PersistentVolumeList.java | 24 +- .../models/V1PersistentVolumeSpec.java | 24 +- .../models/V1PersistentVolumeStatus.java | 24 +- .../V1PhotonPersistentDiskVolumeSource.java | 24 +- .../client/openapi/models/V1Pod.java | 24 +- .../client/openapi/models/V1PodAffinity.java | 24 +- .../openapi/models/V1PodAffinityTerm.java | 24 +- .../openapi/models/V1PodAntiAffinity.java | 24 +- .../models/V1PodCertificateProjection.java | 24 +- .../client/openapi/models/V1PodCondition.java | 24 +- .../client/openapi/models/V1PodDNSConfig.java | 24 +- .../openapi/models/V1PodDNSConfigOption.java | 24 +- .../openapi/models/V1PodDisruptionBudget.java | 24 +- .../models/V1PodDisruptionBudgetList.java | 24 +- .../models/V1PodDisruptionBudgetSpec.java | 24 +- .../models/V1PodDisruptionBudgetStatus.java | 24 +- .../V1PodExtendedResourceClaimStatus.java | 24 +- .../openapi/models/V1PodFailurePolicy.java | 24 +- ...odFailurePolicyOnExitCodesRequirement.java | 24 +- ...odFailurePolicyOnPodConditionsPattern.java | 24 +- .../models/V1PodFailurePolicyRule.java | 24 +- .../client/openapi/models/V1PodIP.java | 24 +- .../client/openapi/models/V1PodList.java | 24 +- .../client/openapi/models/V1PodOS.java | 24 +- .../openapi/models/V1PodReadinessGate.java | 24 +- .../openapi/models/V1PodResourceClaim.java | 24 +- .../models/V1PodResourceClaimStatus.java | 24 +- .../openapi/models/V1PodSchedulingGate.java | 24 +- .../openapi/models/V1PodSecurityContext.java | 24 +- .../client/openapi/models/V1PodSpec.java | 24 +- .../client/openapi/models/V1PodStatus.java | 24 +- .../client/openapi/models/V1PodTemplate.java | 24 +- .../openapi/models/V1PodTemplateList.java | 24 +- .../openapi/models/V1PodTemplateSpec.java | 24 +- .../client/openapi/models/V1PolicyRule.java | 24 +- .../models/V1PolicyRulesWithSubjects.java | 24 +- .../client/openapi/models/V1PortStatus.java | 24 +- .../models/V1PortworxVolumeSource.java | 24 +- .../openapi/models/V1Preconditions.java | 24 +- .../models/V1PreferredSchedulingTerm.java | 24 +- .../openapi/models/V1PriorityClass.java | 24 +- .../openapi/models/V1PriorityClassList.java | 24 +- .../models/V1PriorityLevelConfiguration.java | 24 +- ...V1PriorityLevelConfigurationCondition.java | 24 +- .../V1PriorityLevelConfigurationList.java | 24 +- ...V1PriorityLevelConfigurationReference.java | 24 +- .../V1PriorityLevelConfigurationSpec.java | 24 +- .../V1PriorityLevelConfigurationStatus.java | 24 +- .../client/openapi/models/V1Probe.java | 24 +- .../models/V1ProjectedVolumeSource.java | 24 +- .../models/V1QueuingConfiguration.java | 24 +- .../openapi/models/V1QuobyteVolumeSource.java | 24 +- .../models/V1RBDPersistentVolumeSource.java | 24 +- .../openapi/models/V1RBDVolumeSource.java | 24 +- .../client/openapi/models/V1ReplicaSet.java | 24 +- .../openapi/models/V1ReplicaSetCondition.java | 24 +- .../openapi/models/V1ReplicaSetList.java | 24 +- .../openapi/models/V1ReplicaSetSpec.java | 24 +- .../openapi/models/V1ReplicaSetStatus.java | 24 +- .../models/V1ReplicationController.java | 24 +- .../V1ReplicationControllerCondition.java | 24 +- .../models/V1ReplicationControllerList.java | 24 +- .../models/V1ReplicationControllerSpec.java | 24 +- .../models/V1ReplicationControllerStatus.java | 24 +- .../openapi/models/V1ResourceAttributes.java | 24 +- .../V1ResourceClaimConsumerReference.java | 24 +- .../openapi/models/V1ResourceClaimList.java | 24 +- .../openapi/models/V1ResourceClaimSpec.java | 24 +- .../openapi/models/V1ResourceClaimStatus.java | 24 +- .../models/V1ResourceClaimTemplate.java | 24 +- .../models/V1ResourceClaimTemplateList.java | 24 +- .../models/V1ResourceClaimTemplateSpec.java | 24 +- .../models/V1ResourceFieldSelector.java | 24 +- .../openapi/models/V1ResourceHealth.java | 24 +- .../openapi/models/V1ResourcePolicyRule.java | 24 +- .../client/openapi/models/V1ResourcePool.java | 24 +- .../openapi/models/V1ResourceQuota.java | 24 +- .../openapi/models/V1ResourceQuotaList.java | 24 +- .../openapi/models/V1ResourceQuotaSpec.java | 24 +- .../openapi/models/V1ResourceQuotaStatus.java | 24 +- .../models/V1ResourceRequirements.java | 24 +- .../client/openapi/models/V1ResourceRule.java | 24 +- .../openapi/models/V1ResourceSlice.java | 24 +- .../openapi/models/V1ResourceSliceList.java | 24 +- .../openapi/models/V1ResourceSliceSpec.java | 24 +- .../openapi/models/V1ResourceStatus.java | 24 +- .../client/openapi/models/V1Role.java | 24 +- .../client/openapi/models/V1RoleBinding.java | 24 +- .../openapi/models/V1RoleBindingList.java | 24 +- .../client/openapi/models/V1RoleList.java | 24 +- .../client/openapi/models/V1RoleRef.java | 24 +- .../models/V1RollingUpdateDaemonSet.java | 24 +- .../models/V1RollingUpdateDeployment.java | 24 +- .../V1RollingUpdateStatefulSetStrategy.java | 24 +- .../openapi/models/V1RuleWithOperations.java | 24 +- .../client/openapi/models/V1RuntimeClass.java | 24 +- .../openapi/models/V1RuntimeClassList.java | 24 +- .../openapi/models/V1SELinuxOptions.java | 24 +- .../client/openapi/models/V1Scale.java | 24 +- .../V1ScaleIOPersistentVolumeSource.java | 24 +- .../openapi/models/V1ScaleIOVolumeSource.java | 24 +- .../client/openapi/models/V1ScaleSpec.java | 24 +- .../client/openapi/models/V1ScaleStatus.java | 24 +- .../client/openapi/models/V1Scheduling.java | 24 +- .../openapi/models/V1ScopeSelector.java | 24 +- .../V1ScopedResourceSelectorRequirement.java | 24 +- .../openapi/models/V1SeccompProfile.java | 24 +- .../client/openapi/models/V1Secret.java | 24 +- .../openapi/models/V1SecretEnvSource.java | 24 +- .../openapi/models/V1SecretKeySelector.java | 24 +- .../client/openapi/models/V1SecretList.java | 24 +- .../openapi/models/V1SecretProjection.java | 24 +- .../openapi/models/V1SecretReference.java | 24 +- .../openapi/models/V1SecretVolumeSource.java | 24 +- .../openapi/models/V1SecurityContext.java | 24 +- .../openapi/models/V1SelectableField.java | 24 +- .../models/V1SelfSubjectAccessReview.java | 24 +- .../models/V1SelfSubjectAccessReviewSpec.java | 24 +- .../openapi/models/V1SelfSubjectReview.java | 24 +- .../models/V1SelfSubjectReviewStatus.java | 24 +- .../models/V1SelfSubjectRulesReview.java | 24 +- .../models/V1SelfSubjectRulesReviewSpec.java | 24 +- .../models/V1ServerAddressByClientCIDR.java | 24 +- .../client/openapi/models/V1Service.java | 24 +- .../openapi/models/V1ServiceAccount.java | 24 +- .../openapi/models/V1ServiceAccountList.java | 24 +- .../models/V1ServiceAccountSubject.java | 24 +- .../V1ServiceAccountTokenProjection.java | 24 +- .../openapi/models/V1ServiceBackendPort.java | 24 +- .../client/openapi/models/V1ServiceCIDR.java | 24 +- .../openapi/models/V1ServiceCIDRList.java | 24 +- .../openapi/models/V1ServiceCIDRSpec.java | 24 +- .../openapi/models/V1ServiceCIDRStatus.java | 24 +- .../client/openapi/models/V1ServiceList.java | 24 +- .../client/openapi/models/V1ServicePort.java | 24 +- .../client/openapi/models/V1ServiceSpec.java | 24 +- .../openapi/models/V1ServiceStatus.java | 24 +- .../models/V1SessionAffinityConfig.java | 24 +- .../client/openapi/models/V1SleepAction.java | 24 +- .../client/openapi/models/V1StatefulSet.java | 24 +- .../models/V1StatefulSetCondition.java | 24 +- .../openapi/models/V1StatefulSetList.java | 24 +- .../openapi/models/V1StatefulSetOrdinals.java | 24 +- ...tPersistentVolumeClaimRetentionPolicy.java | 24 +- .../openapi/models/V1StatefulSetSpec.java | 24 +- .../openapi/models/V1StatefulSetStatus.java | 24 +- .../models/V1StatefulSetUpdateStrategy.java | 24 +- .../client/openapi/models/V1Status.java | 24 +- .../client/openapi/models/V1StatusCause.java | 24 +- .../openapi/models/V1StatusDetails.java | 24 +- .../client/openapi/models/V1StorageClass.java | 24 +- .../openapi/models/V1StorageClassList.java | 24 +- .../V1StorageOSPersistentVolumeSource.java | 24 +- .../models/V1StorageOSVolumeSource.java | 24 +- .../openapi/models/V1SubjectAccessReview.java | 24 +- .../models/V1SubjectAccessReviewSpec.java | 24 +- .../models/V1SubjectAccessReviewStatus.java | 24 +- .../models/V1SubjectRulesReviewStatus.java | 24 +- .../openapi/models/V1SuccessPolicy.java | 24 +- .../openapi/models/V1SuccessPolicyRule.java | 24 +- .../client/openapi/models/V1Sysctl.java | 24 +- .../openapi/models/V1TCPSocketAction.java | 24 +- .../client/openapi/models/V1Taint.java | 24 +- .../openapi/models/V1TokenRequestSpec.java | 24 +- .../openapi/models/V1TokenRequestStatus.java | 24 +- .../client/openapi/models/V1TokenReview.java | 24 +- .../openapi/models/V1TokenReviewSpec.java | 24 +- .../openapi/models/V1TokenReviewStatus.java | 24 +- .../client/openapi/models/V1Toleration.java | 24 +- .../V1TopologySelectorLabelRequirement.java | 24 +- .../models/V1TopologySelectorTerm.java | 24 +- .../models/V1TopologySpreadConstraint.java | 24 +- .../client/openapi/models/V1TypeChecking.java | 24 +- .../models/V1TypedLocalObjectReference.java | 24 +- .../models/V1TypedObjectReference.java | 24 +- .../models/V1UncountedTerminatedPods.java | 24 +- .../client/openapi/models/V1UserInfo.java | 24 +- .../client/openapi/models/V1UserSubject.java | 24 +- .../models/V1ValidatingAdmissionPolicy.java | 24 +- .../V1ValidatingAdmissionPolicyBinding.java | 24 +- ...1ValidatingAdmissionPolicyBindingList.java | 24 +- ...1ValidatingAdmissionPolicyBindingSpec.java | 24 +- .../V1ValidatingAdmissionPolicyList.java | 24 +- .../V1ValidatingAdmissionPolicySpec.java | 24 +- .../V1ValidatingAdmissionPolicyStatus.java | 24 +- .../openapi/models/V1ValidatingWebhook.java | 24 +- .../V1ValidatingWebhookConfiguration.java | 24 +- .../V1ValidatingWebhookConfigurationList.java | 24 +- .../client/openapi/models/V1Validation.java | 24 +- .../openapi/models/V1ValidationRule.java | 24 +- .../client/openapi/models/V1Variable.java | 24 +- .../client/openapi/models/V1Volume.java | 24 +- .../openapi/models/V1VolumeAttachment.java | 24 +- .../models/V1VolumeAttachmentList.java | 24 +- .../models/V1VolumeAttachmentSource.java | 24 +- .../models/V1VolumeAttachmentSpec.java | 24 +- .../models/V1VolumeAttachmentStatus.java | 24 +- .../models/V1VolumeAttributesClass.java | 24 +- .../models/V1VolumeAttributesClassList.java | 24 +- .../client/openapi/models/V1VolumeDevice.java | 24 +- .../client/openapi/models/V1VolumeError.java | 24 +- .../client/openapi/models/V1VolumeMount.java | 24 +- .../openapi/models/V1VolumeMountStatus.java | 24 +- .../openapi/models/V1VolumeNodeAffinity.java | 24 +- .../openapi/models/V1VolumeNodeResources.java | 24 +- .../openapi/models/V1VolumeProjection.java | 24 +- .../models/V1VolumeResourceRequirements.java | 24 +- .../V1VsphereVirtualDiskVolumeSource.java | 24 +- .../client/openapi/models/V1WatchEvent.java | 24 +- .../openapi/models/V1WebhookConversion.java | 24 +- .../models/V1WeightedPodAffinityTerm.java | 24 +- .../V1WindowsSecurityContextOptions.java | 24 +- .../models/V1alpha1ApplyConfiguration.java | 24 +- .../models/V1alpha1ClusterTrustBundle.java | 24 +- .../V1alpha1ClusterTrustBundleList.java | 24 +- .../V1alpha1ClusterTrustBundleSpec.java | 24 +- .../models/V1alpha1GroupVersionResource.java | 24 +- .../openapi/models/V1alpha1JSONPatch.java | 24 +- .../models/V1alpha1MatchCondition.java | 24 +- .../models/V1alpha1MatchResources.java | 24 +- .../models/V1alpha1MigrationCondition.java | 24 +- .../V1alpha1MutatingAdmissionPolicy.java | 24 +- ...1alpha1MutatingAdmissionPolicyBinding.java | 24 +- ...ha1MutatingAdmissionPolicyBindingList.java | 24 +- ...ha1MutatingAdmissionPolicyBindingSpec.java | 24 +- .../V1alpha1MutatingAdmissionPolicyList.java | 24 +- .../V1alpha1MutatingAdmissionPolicySpec.java | 24 +- .../openapi/models/V1alpha1Mutation.java | 24 +- .../V1alpha1NamedRuleWithOperations.java | 24 +- .../openapi/models/V1alpha1ParamKind.java | 24 +- .../openapi/models/V1alpha1ParamRef.java | 24 +- .../models/V1alpha1PodCertificateRequest.java | 24 +- .../V1alpha1PodCertificateRequestList.java | 24 +- .../V1alpha1PodCertificateRequestSpec.java | 24 +- .../V1alpha1PodCertificateRequestStatus.java | 24 +- .../models/V1alpha1ServerStorageVersion.java | 24 +- .../models/V1alpha1StorageVersion.java | 24 +- .../V1alpha1StorageVersionCondition.java | 24 +- .../models/V1alpha1StorageVersionList.java | 24 +- .../V1alpha1StorageVersionMigration.java | 24 +- .../V1alpha1StorageVersionMigrationList.java | 24 +- .../V1alpha1StorageVersionMigrationSpec.java | 24 +- ...V1alpha1StorageVersionMigrationStatus.java | 24 +- .../models/V1alpha1StorageVersionStatus.java | 24 +- .../openapi/models/V1alpha1Variable.java | 24 +- .../models/V1alpha1VolumeAttributesClass.java | 24 +- .../V1alpha1VolumeAttributesClassList.java | 24 +- .../models/V1alpha2LeaseCandidate.java | 24 +- .../models/V1alpha2LeaseCandidateList.java | 24 +- .../models/V1alpha2LeaseCandidateSpec.java | 24 +- .../models/V1alpha3CELDeviceSelector.java | 24 +- .../models/V1alpha3DeviceSelector.java | 24 +- .../openapi/models/V1alpha3DeviceTaint.java | 24 +- .../models/V1alpha3DeviceTaintRule.java | 24 +- .../models/V1alpha3DeviceTaintRuleList.java | 24 +- .../models/V1alpha3DeviceTaintRuleSpec.java | 24 +- .../models/V1alpha3DeviceTaintSelector.java | 24 +- .../models/V1beta1AllocatedDeviceStatus.java | 24 +- .../models/V1beta1AllocationResult.java | 24 +- .../models/V1beta1ApplyConfiguration.java | 24 +- .../openapi/models/V1beta1BasicDevice.java | 24 +- .../models/V1beta1CELDeviceSelector.java | 24 +- .../models/V1beta1CapacityRequestPolicy.java | 24 +- .../V1beta1CapacityRequestPolicyRange.java | 24 +- .../models/V1beta1CapacityRequirements.java | 24 +- .../models/V1beta1ClusterTrustBundle.java | 24 +- .../models/V1beta1ClusterTrustBundleList.java | 24 +- .../models/V1beta1ClusterTrustBundleSpec.java | 24 +- .../client/openapi/models/V1beta1Counter.java | 24 +- .../openapi/models/V1beta1CounterSet.java | 24 +- .../client/openapi/models/V1beta1Device.java | 24 +- .../V1beta1DeviceAllocationConfiguration.java | 24 +- .../models/V1beta1DeviceAllocationResult.java | 24 +- .../models/V1beta1DeviceAttribute.java | 24 +- .../openapi/models/V1beta1DeviceCapacity.java | 24 +- .../openapi/models/V1beta1DeviceClaim.java | 24 +- .../V1beta1DeviceClaimConfiguration.java | 24 +- .../openapi/models/V1beta1DeviceClass.java | 24 +- .../V1beta1DeviceClassConfiguration.java | 24 +- .../models/V1beta1DeviceClassList.java | 24 +- .../models/V1beta1DeviceClassSpec.java | 24 +- .../models/V1beta1DeviceConstraint.java | 24 +- .../V1beta1DeviceCounterConsumption.java | 24 +- .../openapi/models/V1beta1DeviceRequest.java | 24 +- .../V1beta1DeviceRequestAllocationResult.java | 24 +- .../openapi/models/V1beta1DeviceSelector.java | 24 +- .../models/V1beta1DeviceSubRequest.java | 24 +- .../openapi/models/V1beta1DeviceTaint.java | 24 +- .../models/V1beta1DeviceToleration.java | 24 +- .../openapi/models/V1beta1IPAddress.java | 24 +- .../openapi/models/V1beta1IPAddressList.java | 24 +- .../openapi/models/V1beta1IPAddressSpec.java | 24 +- .../openapi/models/V1beta1JSONPatch.java | 24 +- .../openapi/models/V1beta1LeaseCandidate.java | 24 +- .../models/V1beta1LeaseCandidateList.java | 24 +- .../models/V1beta1LeaseCandidateSpec.java | 24 +- .../openapi/models/V1beta1MatchCondition.java | 24 +- .../openapi/models/V1beta1MatchResources.java | 24 +- .../V1beta1MutatingAdmissionPolicy.java | 24 +- ...V1beta1MutatingAdmissionPolicyBinding.java | 24 +- ...ta1MutatingAdmissionPolicyBindingList.java | 24 +- ...ta1MutatingAdmissionPolicyBindingSpec.java | 24 +- .../V1beta1MutatingAdmissionPolicyList.java | 24 +- .../V1beta1MutatingAdmissionPolicySpec.java | 24 +- .../openapi/models/V1beta1Mutation.java | 24 +- .../V1beta1NamedRuleWithOperations.java | 24 +- .../models/V1beta1NetworkDeviceData.java | 24 +- .../V1beta1OpaqueDeviceConfiguration.java | 24 +- .../openapi/models/V1beta1ParamKind.java | 24 +- .../openapi/models/V1beta1ParamRef.java | 24 +- .../models/V1beta1ParentReference.java | 24 +- .../openapi/models/V1beta1ResourceClaim.java | 24 +- ...V1beta1ResourceClaimConsumerReference.java | 24 +- .../models/V1beta1ResourceClaimList.java | 24 +- .../models/V1beta1ResourceClaimSpec.java | 24 +- .../models/V1beta1ResourceClaimStatus.java | 24 +- .../models/V1beta1ResourceClaimTemplate.java | 24 +- .../V1beta1ResourceClaimTemplateList.java | 24 +- .../V1beta1ResourceClaimTemplateSpec.java | 24 +- .../openapi/models/V1beta1ResourcePool.java | 24 +- .../openapi/models/V1beta1ResourceSlice.java | 24 +- .../models/V1beta1ResourceSliceList.java | 24 +- .../models/V1beta1ResourceSliceSpec.java | 24 +- .../openapi/models/V1beta1ServiceCIDR.java | 24 +- .../models/V1beta1ServiceCIDRList.java | 24 +- .../models/V1beta1ServiceCIDRSpec.java | 24 +- .../models/V1beta1ServiceCIDRStatus.java | 24 +- .../openapi/models/V1beta1Variable.java | 24 +- .../models/V1beta1VolumeAttributesClass.java | 24 +- .../V1beta1VolumeAttributesClassList.java | 24 +- .../models/V1beta2AllocatedDeviceStatus.java | 24 +- .../models/V1beta2AllocationResult.java | 24 +- .../models/V1beta2CELDeviceSelector.java | 24 +- .../models/V1beta2CapacityRequestPolicy.java | 24 +- .../V1beta2CapacityRequestPolicyRange.java | 24 +- .../models/V1beta2CapacityRequirements.java | 24 +- .../client/openapi/models/V1beta2Counter.java | 24 +- .../openapi/models/V1beta2CounterSet.java | 24 +- .../client/openapi/models/V1beta2Device.java | 24 +- .../V1beta2DeviceAllocationConfiguration.java | 24 +- .../models/V1beta2DeviceAllocationResult.java | 24 +- .../models/V1beta2DeviceAttribute.java | 24 +- .../openapi/models/V1beta2DeviceCapacity.java | 24 +- .../openapi/models/V1beta2DeviceClaim.java | 24 +- .../V1beta2DeviceClaimConfiguration.java | 24 +- .../openapi/models/V1beta2DeviceClass.java | 24 +- .../V1beta2DeviceClassConfiguration.java | 24 +- .../models/V1beta2DeviceClassList.java | 24 +- .../models/V1beta2DeviceClassSpec.java | 24 +- .../models/V1beta2DeviceConstraint.java | 24 +- .../V1beta2DeviceCounterConsumption.java | 24 +- .../openapi/models/V1beta2DeviceRequest.java | 24 +- .../V1beta2DeviceRequestAllocationResult.java | 24 +- .../openapi/models/V1beta2DeviceSelector.java | 24 +- .../models/V1beta2DeviceSubRequest.java | 24 +- .../openapi/models/V1beta2DeviceTaint.java | 24 +- .../models/V1beta2DeviceToleration.java | 24 +- .../models/V1beta2ExactDeviceRequest.java | 24 +- .../models/V1beta2NetworkDeviceData.java | 24 +- .../V1beta2OpaqueDeviceConfiguration.java | 24 +- .../openapi/models/V1beta2ResourceClaim.java | 24 +- ...V1beta2ResourceClaimConsumerReference.java | 24 +- .../models/V1beta2ResourceClaimList.java | 24 +- .../models/V1beta2ResourceClaimSpec.java | 24 +- .../models/V1beta2ResourceClaimStatus.java | 24 +- .../models/V1beta2ResourceClaimTemplate.java | 24 +- .../V1beta2ResourceClaimTemplateList.java | 24 +- .../V1beta2ResourceClaimTemplateSpec.java | 24 +- .../openapi/models/V1beta2ResourcePool.java | 24 +- .../openapi/models/V1beta2ResourceSlice.java | 24 +- .../models/V1beta2ResourceSliceList.java | 24 +- .../models/V1beta2ResourceSliceSpec.java | 24 +- .../V2ContainerResourceMetricSource.java | 24 +- .../V2ContainerResourceMetricStatus.java | 24 +- .../models/V2CrossVersionObjectReference.java | 24 +- .../models/V2ExternalMetricSource.java | 24 +- .../models/V2ExternalMetricStatus.java | 24 +- .../openapi/models/V2HPAScalingPolicy.java | 24 +- .../openapi/models/V2HPAScalingRules.java | 24 +- .../models/V2HorizontalPodAutoscaler.java | 24 +- .../V2HorizontalPodAutoscalerBehavior.java | 24 +- .../V2HorizontalPodAutoscalerCondition.java | 24 +- .../models/V2HorizontalPodAutoscalerList.java | 24 +- .../models/V2HorizontalPodAutoscalerSpec.java | 24 +- .../V2HorizontalPodAutoscalerStatus.java | 24 +- .../openapi/models/V2MetricIdentifier.java | 24 +- .../client/openapi/models/V2MetricSpec.java | 24 +- .../client/openapi/models/V2MetricStatus.java | 24 +- .../client/openapi/models/V2MetricTarget.java | 24 +- .../openapi/models/V2MetricValueStatus.java | 24 +- .../openapi/models/V2ObjectMetricSource.java | 24 +- .../openapi/models/V2ObjectMetricStatus.java | 24 +- .../openapi/models/V2PodsMetricSource.java | 24 +- .../openapi/models/V2PodsMetricStatus.java | 24 +- .../models/V2ResourceMetricSource.java | 24 +- .../models/V2ResourceMetricStatus.java | 24 +- .../client/openapi/models/VersionInfo.java | 24 +- 2250 files changed, 131121 insertions(+), 130202 deletions(-) delete mode 160000 gen diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java b/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java index bedf6ab2b0..d57bf4c22d 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java @@ -1,19 +1,36 @@ package io.kubernetes.client.fluent; -import java.util.LinkedHashSet; -import java.util.stream.Collectors; -import java.util.Set; -import java.util.Optional; -import java.util.ArrayList; -import java.util.Objects; import java.lang.Object; -import java.util.List; import java.lang.String; +import java.util.ArrayList; import java.util.Arrays; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.Set; +import java.util.stream.Collectors; public class BaseFluent{ - + public static final String VISIT = "visit"; public final VisitableMap _visitables = new VisitableMap(); + + + public static List aggregate(List... lists) { + return new ArrayList(Arrays.stream(lists).filter(Objects::nonNull).collect(Collectors.toList())); + } + + public static Set aggregate(Set... sets) { + return new LinkedHashSet(Arrays.stream(sets).filter(Objects::nonNull).collect(Collectors.toSet())); + } + + public static List build(List> list) { + return list == null ? null : list.stream().map(Builder::build).collect(Collectors.toList()); + } + + public static Set build(Set> set) { + return set == null ? null : new LinkedHashSet(set.stream().map(Builder::build).collect(Collectors.toSet())); + } public static VisitableBuilder builderOf(T item) { if (item instanceof Editable) { @@ -38,20 +55,14 @@ public static VisitableBuilder builderOf(T item) { } } - public static List build(List> list) { - return list == null ? null : list.stream().map(Builder::build).collect(Collectors.toList()); - } - - public static Set build(Set> set) { - return set == null ? null : new LinkedHashSet(set.stream().map(Builder::build).collect(Collectors.toSet())); - } - - public static List aggregate(List... lists) { - return new ArrayList(Arrays.stream(lists).filter(Objects::nonNull).collect(Collectors.toList())); - } - - public static Set aggregate(Set... sets) { - return new LinkedHashSet(Arrays.stream(sets).filter(Objects::nonNull).collect(Collectors.toSet())); + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + return true; } public Optional getVisitableMap() { @@ -65,15 +76,4 @@ public int hashCode() { return result; } - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - return true; - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Builder.java b/fluent/src/main/java/io/kubernetes/client/fluent/Builder.java index d9824c870e..e03d506017 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Builder.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Builder.java @@ -3,9 +3,8 @@ import java.lang.FunctionalInterface; @FunctionalInterface public interface Builder{ - + T build(); - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java index 2c1807446b..513865222c 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java @@ -1,38 +1,39 @@ package io.kubernetes.client.fluent; -import java.util.Map.Entry; import java.lang.Class; import java.lang.Object; -import java.util.List; import java.lang.String; +import java.util.List; +import java.util.Map.Entry; import java.util.function.Predicate; public class DelegatingVisitor implements Visitor{ + + private final Visitor delegate; + private final Class type; + DelegatingVisitor(Class type,Visitor delegate) { this.type = type; this.delegate = delegate; } - private final Class type; - private final Visitor delegate; + + public Predicate>> getRequirement() { + return delegate.getRequirement(); + } public Class getType() { return type; } - public void visit(T target) { - delegate.visit(target); - } - public int order() { return delegate.order(); } - public void visit(List> path,T target) { - delegate.visit(path, target); + public void visit(T target) { + delegate.visit(target); } - public Predicate>> getRequirement() { - return delegate.getRequirement(); + public void visit(List> path,T target) { + delegate.visit(path, target); } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Editable.java b/fluent/src/main/java/io/kubernetes/client/fluent/Editable.java index 5eb7423ea4..fd8ea0cb9e 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Editable.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Editable.java @@ -1,9 +1,8 @@ package io.kubernetes.client.fluent; public interface Editable{ - + T edit(); - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Nested.java b/fluent/src/main/java/io/kubernetes/client/fluent/Nested.java index fb100d52f0..160b185f55 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Nested.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Nested.java @@ -1,9 +1,8 @@ package io.kubernetes.client.fluent; public interface Nested{ - + F and(); - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java index 3a185e0881..987ea1ad77 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java @@ -1,12 +1,16 @@ package io.kubernetes.client.fluent; -import java.util.Map.Entry; import java.lang.Class; import java.lang.Object; -import java.util.List; import java.lang.String; import java.lang.reflect.Method; +import java.util.List; +import java.util.Map.Entry; public class PathAwareTypedVisitor extends TypedVisitor{ + + private final Class

parentType; + private final Class type; + PathAwareTypedVisitor() { List args = Visitors.getTypeArguments(PathAwareTypedVisitor.class, getClass()); if (args == null || args.isEmpty()) { @@ -15,8 +19,14 @@ public class PathAwareTypedVisitor extends TypedVisitor{ this.type = (Class) args.get(0); this.parentType = (Class

) args.get(1); } - private final Class type; - private final Class

parentType; + + public P getParent(List> path) { + return path.size() - 1 >= 0 ? (P) path.get(path.size() - 1) : null; + } + + public Class

getParentType() { + return parentType; + } public void visit(V element) { @@ -26,13 +36,4 @@ public void visit(List> path,V element) { visit(element); } - public P getParent(List> path) { - return path.size() - 1 >= 0 ? (P) path.get(path.size() - 1) : null; - } - - public Class

getParentType() { - return parentType; - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/TypedVisitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/TypedVisitor.java index aa6806d083..85b635bb44 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/TypedVisitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/TypedVisitor.java @@ -2,12 +2,11 @@ import java.lang.Class; public abstract class TypedVisitor implements Visitor{ - + public Class getType() { return (Class) Visitors.getTypeArguments(TypedVisitor.class, getClass()).get(0); } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java b/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java index c72cf60947..a233a03109 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java @@ -1,16 +1,24 @@ package io.kubernetes.client.fluent; -import java.util.AbstractMap; -import java.util.Map.Entry; -import java.util.Optional; -import java.util.ArrayList; import java.lang.Class; import java.lang.Object; -import java.util.List; import java.lang.String; +import java.util.AbstractMap; +import java.util.ArrayList; import java.util.Collections; +import java.util.List; +import java.util.Map.Entry; +import java.util.Optional; public interface Visitable{ + + default T accept(Visitor... visitors) { + return accept(Collections.emptyList(), visitors); + } + + default T accept(List> path,Visitor... visitors) { + return accept(path, "", visitors); + } default T accept(Class type,Visitor visitor) { return accept(Collections.emptyList(), new Visitor() { @@ -31,14 +39,6 @@ public void visit(V element) { }); } - default T accept(Visitor... visitors) { - return accept(Collections.emptyList(), visitors); - } - - default T accept(List> path,Visitor... visitors) { - return accept(path, "", visitors); - } - default T accept(List> path,String currentKey,Visitor... visitors) { List sortedVisitor = new ArrayList<>(); for (Visitor visitor : visitors) { @@ -88,5 +88,4 @@ default Optional getVisitableMap() { return Optional.empty(); } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitableBuilder.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitableBuilder.java index bca1a069e1..031137609c 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitableBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitableBuilder.java @@ -1,7 +1,8 @@ package io.kubernetes.client.fluent; public interface VisitableBuilder> extends Builder,Visitable{ + + - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java index 8cbaa1d798..f994faa6fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java @@ -1,18 +1,26 @@ package io.kubernetes.client.fluent; -import java.util.stream.Collectors; import java.lang.Iterable; -import java.util.function.Consumer; -import java.util.HashMap; +import java.lang.Object; +import java.lang.String; import java.util.ArrayList; +import java.util.HashMap; import java.util.Iterator; -import java.lang.Object; import java.util.List; -import java.lang.String; import java.util.Spliterator; +import java.util.function.Consumer; +import java.util.stream.Collectors; public class VisitableMap extends HashMap>> implements Iterable>{ + + public List> aggregate() { + return values().stream().flatMap(l -> l.stream()).collect(Collectors.toList()); + } + + public void forEach(Consumer> action) { + aggregate().forEach(action); + } public List> get(Object key) { if (!containsKey(key)) { @@ -21,21 +29,12 @@ public List> get(Object key) { return super.get(key); } - public List> aggregate() { - return values().stream().flatMap(l -> l.stream()).collect(Collectors.toList()); - } - public Iterator> iterator() { return aggregate().iterator(); } - public void forEach(Consumer> action) { - aggregate().forEach(action); - } - public Spliterator spliterator() { return aggregate().spliterator(); } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java index 3ccb13b5ee..260aab6201 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java @@ -1,33 +1,29 @@ package io.kubernetes.client.fluent; -import java.util.Map.Entry; +import java.lang.Boolean; import java.lang.Class; import java.lang.FunctionalInterface; import java.lang.Object; -import java.util.List; import java.lang.String; import java.lang.reflect.Method; -import java.lang.Boolean; +import java.util.List; +import java.util.Map.Entry; import java.util.function.Predicate; @FunctionalInterface public interface Visitor{ + - - default Class getType() { - List args = Visitors.getTypeArguments(Visitor.class, getClass()); - if (args == null || args.isEmpty()) { - return null; - } - return (Class) args.get(0); - } - - void visit(T element); - default int order() { - return 0; + default Visitor addRequirement(Predicate predicate) { + return new DelegatingVisitor(getType(), this) { + @Override + public Predicate> getRequirement() { + return Visitor.this.getRequirement().and(predicate); + } + }; } - default void visit(List> path,T element) { - visit(element); + default

Visitor addRequirement(Class

type,Predicate

predicate) { + return addRequirement(predicate); } default Boolean canVisit(List> path,F target) { @@ -50,6 +46,24 @@ default Boolean canVisit(List> path,F target) { } } + default Predicate>> getRequirement() { + return p -> true; + } + + default Class getType() { + List args = Visitors.getTypeArguments(Visitor.class, getClass()); + if (args == null || args.isEmpty()) { + return null; + } + return (Class) args.get(0); + } + + default Predicate>> hasItem(Class type,Predicate predicate) { + Predicate>> result = l -> l.stream().map(Entry::getValue).filter(i -> type.isInstance(i)) + .map(i -> type.cast(i)).anyMatch(predicate); + return result; + } + default Boolean hasVisitMethodMatching(F target) { for (Method method : getClass().getMethods()) { if (!method.getName().equals("visit") || method.getParameterTypes().length != 1) { @@ -65,28 +79,13 @@ default Boolean hasVisitMethodMatching(F target) { return false; } - default Predicate>> getRequirement() { - return p -> true; - } - - default Predicate>> hasItem(Class type,Predicate predicate) { - Predicate>> result = l -> l.stream().map(Entry::getValue).filter(i -> type.isInstance(i)) - .map(i -> type.cast(i)).anyMatch(predicate); - return result; - } - - default

Visitor addRequirement(Class

type,Predicate

predicate) { - return addRequirement(predicate); + default int order() { + return 0; } - default Visitor addRequirement(Predicate predicate) { - return new DelegatingVisitor(getType(), this) { - @Override - public Predicate> getRequirement() { - return Visitor.this.getRequirement().and(predicate); - } - }; + void visit(T element); + default void visit(List> path,T element) { + visit(element); } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java index 9060426abe..8129abf996 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java @@ -1,16 +1,25 @@ package io.kubernetes.client.fluent; -import java.util.Map.Entry; -import java.util.ServiceLoader; -import java.util.concurrent.atomic.AtomicBoolean; -import java.util.Set; import java.lang.Object; -import java.util.List; import java.lang.String; import java.util.HashSet; +import java.util.List; +import java.util.Map.Entry; +import java.util.ServiceLoader; +import java.util.Set; +import java.util.concurrent.atomic.AtomicBoolean; public interface VisitorListener{ - static AtomicBoolean loaded = new AtomicBoolean(); + static Set listeners = new HashSet<>(); + static AtomicBoolean loaded = new AtomicBoolean(); + + default void afterVisit(Visitor v,List> path,T target) { + + } + + default void beforeVisit(Visitor v,List> path,T target) { + + } public static Set getListeners() { if (loaded.get()) { @@ -34,8 +43,8 @@ public static Set getListeners() { return listeners; } - public static Visitor wrap(Visitor visitor) { - return VisitorWiretap.create(visitor, getListeners()); + default void onCheck(Visitor v,boolean canVisit,T target) { + } public static void register(VisitorListener listener) { @@ -46,17 +55,8 @@ public static void unregister(VisitorListener listener) { listeners.add(listener); } - default void beforeVisit(Visitor v,List> path,T target) { - - } - - default void afterVisit(Visitor v,List> path,T target) { - - } - - default void onCheck(Visitor v,boolean canVisit,T target) { - + public static Visitor wrap(Visitor visitor) { + return VisitorWiretap.create(visitor, getListeners()); } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java index d00e7725e4..9244050c9e 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java @@ -1,21 +1,32 @@ package io.kubernetes.client.fluent; -import java.util.Map.Entry; -import java.util.Collection; +import java.lang.Boolean; import java.lang.Class; import java.lang.Object; -import java.util.List; import java.lang.String; -import java.lang.Boolean; +import java.util.Collection; import java.util.Collections; +import java.util.List; +import java.util.Map.Entry; import java.util.function.Predicate; public final class VisitorWiretap implements Visitor{ + + private final Visitor delegate; + private final Collection listeners; + private VisitorWiretap(Visitor delegate,Collection listeners) { this.delegate = delegate; this.listeners = listeners; } - private final Collection listeners; - private final Visitor delegate; + + public Boolean canVisit(List> path,F target) { + boolean canVisit = delegate.canVisit(path, target); + for (VisitorListener l : listeners) { + l.onCheck(delegate, canVisit, target); + } + + return canVisit; + } public static VisitorWiretap create(Visitor visitor,Collection listeners) { if (visitor instanceof VisitorWiretap) { @@ -28,6 +39,10 @@ public Class getType() { return delegate.getType(); } + public int order() { + return delegate.order(); + } + public void visit(T target) { for (VisitorListener l : listeners) { l.beforeVisit(delegate, Collections.emptyList(), target); @@ -38,10 +53,6 @@ public void visit(T target) { } } - public int order() { - return delegate.order(); - } - public void visit(List> path,T target) { for (VisitorListener l : listeners) { l.beforeVisit(delegate, path, target); @@ -52,14 +63,4 @@ public void visit(List> path,T target) { } } - public Boolean canVisit(List> path,F target) { - boolean canVisit = delegate.canVisit(path, target); - for (VisitorListener l : listeners) { - l.onCheck(delegate, canVisit, target); - } - - return canVisit; - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java b/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java index 8e0b112e07..015a0d7a0f 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java @@ -1,26 +1,67 @@ package io.kubernetes.client.fluent; -import java.util.Optional; -import java.util.ArrayList; +import java.lang.Class; import java.lang.String; -import java.lang.reflect.GenericArrayType; -import java.util.LinkedHashMap; import java.lang.reflect.Array; +import java.lang.reflect.GenericArrayType; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.lang.reflect.TypeVariable; -import java.lang.Class; -import java.util.List; +import java.util.ArrayList; import java.util.Arrays; +import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; +import java.util.Optional; public final class Visitors{ + + private Visitors() { //Utility Class } + + private static Class getClass(Type type) { + if (type instanceof Class) { + return (Class) type; + } else if (type instanceof ParameterizedType) { + return getClass(((ParameterizedType) type).getRawType()); + } else if (type instanceof GenericArrayType) { + Type componentType = ((GenericArrayType) type).getGenericComponentType(); + Class componentClass = getClass(componentType); + if (componentClass != null) { + return Array.newInstance(componentClass, 0).getClass(); + } else { + return null; + } + } else { + return null; + } + } + private static Optional getMatchingInterface(Class targetInterface,Type... candidates) { + if (candidates == null || candidates.length == 0) { + return Optional.empty(); + } + Optional match = Arrays.stream(candidates).filter(c -> getRawName(c).equals(targetInterface.getTypeName())) + .findFirst(); + if (match.isPresent()) { + return match; + } else { + for (Type candidate : candidates) { + if (candidate instanceof Class) { + Class c = (Class) candidate; + Optional next = getMatchingInterface(targetInterface, c.getGenericInterfaces()); + if (next.isPresent()) { + return Optional.of(c); + } + } + } + return Optional.empty(); + } + } - public static Visitor newVisitor(Class type,Visitor visitor) { - return new DelegatingVisitor(type, visitor); + private static String getRawName(Type type) { + return type instanceof ParameterizedType ? ((ParameterizedType) type).getRawType().getTypeName() : type.getTypeName(); } protected static List getTypeArguments(Class baseClass,Class childClass) { @@ -79,49 +120,8 @@ protected static List getTypeArguments(Class baseClass,Class getClass(Type type) { - if (type instanceof Class) { - return (Class) type; - } else if (type instanceof ParameterizedType) { - return getClass(((ParameterizedType) type).getRawType()); - } else if (type instanceof GenericArrayType) { - Type componentType = ((GenericArrayType) type).getGenericComponentType(); - Class componentClass = getClass(componentType); - if (componentClass != null) { - return Array.newInstance(componentClass, 0).getClass(); - } else { - return null; - } - } else { - return null; - } - } - - private static Optional getMatchingInterface(Class targetInterface,Type... candidates) { - if (candidates == null || candidates.length == 0) { - return Optional.empty(); - } - Optional match = Arrays.stream(candidates).filter(c -> getRawName(c).equals(targetInterface.getTypeName())) - .findFirst(); - if (match.isPresent()) { - return match; - } else { - for (Type candidate : candidates) { - if (candidate instanceof Class) { - Class c = (Class) candidate; - Optional next = getMatchingInterface(targetInterface, c.getGenericInterfaces()); - if (next.isPresent()) { - return Optional.of(c); - } - } - } - return Optional.empty(); - } + public static Visitor newVisitor(Class type,Visitor visitor) { + return new DelegatingVisitor(type, visitor); } - } \ No newline at end of file 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 index 9cdf72e0a8..75268cdd98 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchemaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchemaFluent.java @@ -1,59 +1,35 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class AbstractOpenApiSchemaFluent> extends BaseFluent{ + + private Boolean isNullable; + private String schemaType; + 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; @@ -74,6 +50,22 @@ public boolean equals(Object o) { return true; } + public Boolean getIsNullable() { + return this.isNullable; + } + + public String getSchemaType() { + return this.schemaType; + } + + public boolean hasIsNullable() { + return this.isNullable != null; + } + + public boolean hasSchemaType() { + return this.schemaType != null; + } + public int hashCode() { return Objects.hash(isNullable, schemaType); } @@ -98,5 +90,14 @@ public A withIsNullable() { return withIsNullable(true); } - + public A withIsNullable(Boolean isNullable) { + this.isNullable = isNullable; + return (A) this; + } + + public A withSchemaType(String schemaType) { + this.schemaType = schemaType; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java index eca6dffc4a..dea31b7892 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class AdmissionregistrationV1ServiceReferenceBuilder extends AdmissionregistrationV1ServiceReferenceFluent implements VisitableBuilder{ + + AdmissionregistrationV1ServiceReferenceFluent fluent; + public AdmissionregistrationV1ServiceReferenceBuilder() { this(new AdmissionregistrationV1ServiceReference()); } @@ -11,17 +14,16 @@ public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1Ser this(fluent, new AdmissionregistrationV1ServiceReference()); } - public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1ServiceReferenceFluent fluent,AdmissionregistrationV1ServiceReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1ServiceReference instance) { this.fluent = this; this.copyInstance(instance); } - AdmissionregistrationV1ServiceReferenceFluent fluent; + public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1ServiceReferenceFluent fluent,AdmissionregistrationV1ServiceReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public AdmissionregistrationV1ServiceReference build() { AdmissionregistrationV1ServiceReference buildable = new AdmissionregistrationV1ServiceReference(); buildable.setName(fluent.getName()); @@ -31,5 +33,4 @@ public AdmissionregistrationV1ServiceReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java index 55c608ab91..1acf807561 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class AdmissionregistrationV1ServiceReferenceFluent> extends BaseFluent{ + + private String name; + private String namespace; + private String path; + private Integer port; + public AdmissionregistrationV1ServiceReferenceFluent() { } public AdmissionregistrationV1ServiceReferenceFluent(AdmissionregistrationV1ServiceReference instance) { this.copyInstance(instance); } - private String name; - private String namespace; - private String path; - private Integer port; - + protected void copyInstance(AdmissionregistrationV1ServiceReference instance) { instance = instance != null ? instance : new AdmissionregistrationV1ServiceReference(); if (instance != null) { @@ -34,58 +36,6 @@ protected void copyInstance(AdmissionregistrationV1ServiceReference instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - - public String getPath() { - return this.path; - } - - public A withPath(String path) { - this.path = path; - return (A) this; - } - - public boolean hasPath() { - return this.path != null; - } - - public Integer getPort() { - return this.port; - } - - public A withPort(Integer port) { - this.port = port; - return (A) this; - } - - public boolean hasPort() { - return this.port != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -112,6 +62,38 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; + } + + public String getPath() { + return this.path; + } + + public Integer getPort() { + return this.port; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public boolean hasPath() { + return this.path != null; + } + + public boolean hasPort() { + return this.port != null; + } + public int hashCode() { return Objects.hash(name, namespace, path, port); } @@ -142,5 +124,24 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java index 9194d78266..c40ef3494c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class AdmissionregistrationV1WebhookClientConfigBuilder extends AdmissionregistrationV1WebhookClientConfigFluent implements VisitableBuilder{ + + AdmissionregistrationV1WebhookClientConfigFluent fluent; + public AdmissionregistrationV1WebhookClientConfigBuilder() { this(new AdmissionregistrationV1WebhookClientConfig()); } @@ -11,17 +14,16 @@ public AdmissionregistrationV1WebhookClientConfigBuilder(AdmissionregistrationV1 this(fluent, new AdmissionregistrationV1WebhookClientConfig()); } - public AdmissionregistrationV1WebhookClientConfigBuilder(AdmissionregistrationV1WebhookClientConfigFluent fluent,AdmissionregistrationV1WebhookClientConfig instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public AdmissionregistrationV1WebhookClientConfigBuilder(AdmissionregistrationV1WebhookClientConfig instance) { this.fluent = this; this.copyInstance(instance); } - AdmissionregistrationV1WebhookClientConfigFluent fluent; + public AdmissionregistrationV1WebhookClientConfigBuilder(AdmissionregistrationV1WebhookClientConfigFluent fluent,AdmissionregistrationV1WebhookClientConfig instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public AdmissionregistrationV1WebhookClientConfig build() { AdmissionregistrationV1WebhookClientConfig buildable = new AdmissionregistrationV1WebhookClientConfig(); buildable.setCaBundle(fluent.getCaBundle()); @@ -30,5 +32,4 @@ public AdmissionregistrationV1WebhookClientConfig build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java index ec13e2a00f..acaaeeaabf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java @@ -1,85 +1,36 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Byte; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.lang.Byte; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class AdmissionregistrationV1WebhookClientConfigFluent> extends BaseFluent{ - public AdmissionregistrationV1WebhookClientConfigFluent() { - } - - public AdmissionregistrationV1WebhookClientConfigFluent(AdmissionregistrationV1WebhookClientConfig instance) { - this.copyInstance(instance); - } + private List caBundle; private AdmissionregistrationV1ServiceReferenceBuilder service; private String url; - - protected void copyInstance(AdmissionregistrationV1WebhookClientConfig instance) { - instance = instance != null ? instance : new AdmissionregistrationV1WebhookClientConfig(); - if (instance != null) { - this.withCaBundle(instance.getCaBundle()); - this.withService(instance.getService()); - this.withUrl(instance.getUrl()); - } - } - - public A withCaBundle(byte... caBundle) { - if (this.caBundle != null) { - this.caBundle.clear(); - _visitables.remove("caBundle"); - } - if (caBundle != null) { - for (byte item : caBundle) { - this.addToCaBundle(item); - } - } - return (A) this; - } - - public byte[] getCaBundle() { - int size = caBundle != null ? caBundle.size() : 0; - byte[] result = new byte[size]; - if (size == 0) { - return result; - } - int index = 0; - for (byte item : caBundle) { - result[index++] = item; - } - return result; - } - - public A addToCaBundle(int index,Byte item) { - if (this.caBundle == null) { - this.caBundle = new ArrayList(); - } - this.caBundle.add(index, item); - return (A) this; + + public AdmissionregistrationV1WebhookClientConfigFluent() { } - public A setToCaBundle(int index,Byte item) { - if (this.caBundle == null) { - this.caBundle = new ArrayList(); - } - this.caBundle.set(index, item); - return (A) this; + public AdmissionregistrationV1WebhookClientConfigFluent(AdmissionregistrationV1WebhookClientConfig instance) { + this.copyInstance(instance); } - - public A addToCaBundle(Byte... items) { + + public A addAllToCaBundle(Collection items) { if (this.caBundle == null) { this.caBundle = new ArrayList(); } @@ -89,7 +40,7 @@ public A addToCaBundle(Byte... items) { return (A) this; } - public A addAllToCaBundle(Collection items) { + public A addToCaBundle(Byte... items) { if (this.caBundle == null) { this.caBundle = new ArrayList(); } @@ -99,60 +50,25 @@ public A addAllToCaBundle(Collection items) { return (A) this; } - public A removeFromCaBundle(Byte... items) { - if (this.caBundle == null) { - return (A) this; - } - for (Byte item : items) { - this.caBundle.remove(item); - } - return (A) this; - } - - public A removeAllFromCaBundle(Collection items) { + public A addToCaBundle(int index,Byte item) { if (this.caBundle == null) { - return (A) this; - } - for (Byte item : items) { - this.caBundle.remove(item); + this.caBundle = new ArrayList(); } + this.caBundle.add(index, item); return (A) this; } - public boolean hasCaBundle() { - return this.caBundle != null && !(this.caBundle.isEmpty()); - } - public AdmissionregistrationV1ServiceReference buildService() { return this.service != null ? this.service.build() : null; } - public A withService(AdmissionregistrationV1ServiceReference service) { - this._visitables.remove("service"); - if (service != null) { - this.service = new AdmissionregistrationV1ServiceReferenceBuilder(service); - this._visitables.get("service").add(this.service); - } else { - this.service = null; - this._visitables.get("service").remove(this.service); + protected void copyInstance(AdmissionregistrationV1WebhookClientConfig instance) { + instance = instance != null ? instance : new AdmissionregistrationV1WebhookClientConfig(); + if (instance != null) { + this.withCaBundle(instance.getCaBundle()); + this.withService(instance.getService()); + this.withUrl(instance.getUrl()); } - return (A) this; - } - - public boolean hasService() { - return this.service != null; - } - - public ServiceNested withNewService() { - return new ServiceNested(null); - } - - public ServiceNested withNewServiceLike(AdmissionregistrationV1ServiceReference item) { - return new ServiceNested(item); - } - - public ServiceNested editService() { - return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(null)); } public ServiceNested editOrNewService() { @@ -163,17 +79,8 @@ public ServiceNested editOrNewServiceLike(AdmissionregistrationV1ServiceRefer return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(item)); } - public String getUrl() { - return this.url; - } - - public A withUrl(String url) { - this.url = url; - return (A) this; - } - - public boolean hasUrl() { - return this.url != null; + public ServiceNested editService() { + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(null)); } public boolean equals(Object o) { @@ -199,10 +106,67 @@ public boolean equals(Object o) { return true; } + public byte[] getCaBundle() { + int size = caBundle != null ? caBundle.size() : 0; + byte[] result = new byte[size]; + if (size == 0) { + return result; + } + int index = 0; + for (byte item : caBundle) { + result[index++] = item; + } + return result; + } + + public String getUrl() { + return this.url; + } + + public boolean hasCaBundle() { + return this.caBundle != null && !(this.caBundle.isEmpty()); + } + + public boolean hasService() { + return this.service != null; + } + + public boolean hasUrl() { + return this.url != null; + } + public int hashCode() { return Objects.hash(caBundle, service, url); } + public A removeAllFromCaBundle(Collection items) { + if (this.caBundle == null) { + return (A) this; + } + for (Byte item : items) { + this.caBundle.remove(item); + } + return (A) this; + } + + public A removeFromCaBundle(Byte... items) { + if (this.caBundle == null) { + return (A) this; + } + for (Byte item : items) { + this.caBundle.remove(item); + } + return (A) this; + } + + public A setToCaBundle(int index,Byte item) { + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + this.caBundle.set(index, item); + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -223,12 +187,52 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withCaBundle(byte... caBundle) { + if (this.caBundle != null) { + this.caBundle.clear(); + _visitables.remove("caBundle"); + } + if (caBundle != null) { + for (byte item : caBundle) { + this.addToCaBundle(item); + } + } + return (A) this; + } + + public ServiceNested withNewService() { + return new ServiceNested(null); + } + + public ServiceNested withNewServiceLike(AdmissionregistrationV1ServiceReference item) { + return new ServiceNested(item); + } + + public A withService(AdmissionregistrationV1ServiceReference service) { + this._visitables.remove("service"); + if (service != null) { + this.service = new AdmissionregistrationV1ServiceReferenceBuilder(service); + this._visitables.get("service").add(this.service); + } else { + this.service = null; + this._visitables.get("service").remove(this.service); + } + return (A) this; + } + + public A withUrl(String url) { + this.url = url; + return (A) this; + } public class ServiceNested extends AdmissionregistrationV1ServiceReferenceFluent> implements Nested{ + + AdmissionregistrationV1ServiceReferenceBuilder builder; + ServiceNested(AdmissionregistrationV1ServiceReference item) { this.builder = new AdmissionregistrationV1ServiceReferenceBuilder(this, item); } - AdmissionregistrationV1ServiceReferenceBuilder builder; - + public N and() { return (N) AdmissionregistrationV1WebhookClientConfigFluent.this.withService(builder.build()); } @@ -237,7 +241,5 @@ public N endService() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java index ec047f0367..ccd696e9f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class ApiextensionsV1ServiceReferenceBuilder extends ApiextensionsV1ServiceReferenceFluent implements VisitableBuilder{ + + ApiextensionsV1ServiceReferenceFluent fluent; + public ApiextensionsV1ServiceReferenceBuilder() { this(new ApiextensionsV1ServiceReference()); } @@ -11,17 +14,16 @@ public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReferenceFlu this(fluent, new ApiextensionsV1ServiceReference()); } - public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReferenceFluent fluent,ApiextensionsV1ServiceReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReference instance) { this.fluent = this; this.copyInstance(instance); } - ApiextensionsV1ServiceReferenceFluent fluent; + public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReferenceFluent fluent,ApiextensionsV1ServiceReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public ApiextensionsV1ServiceReference build() { ApiextensionsV1ServiceReference buildable = new ApiextensionsV1ServiceReference(); buildable.setName(fluent.getName()); @@ -31,5 +33,4 @@ public ApiextensionsV1ServiceReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java index 305d38937c..d181a6768c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class ApiextensionsV1ServiceReferenceFluent> extends BaseFluent{ + + private String name; + private String namespace; + private String path; + private Integer port; + public ApiextensionsV1ServiceReferenceFluent() { } public ApiextensionsV1ServiceReferenceFluent(ApiextensionsV1ServiceReference instance) { this.copyInstance(instance); } - private String name; - private String namespace; - private String path; - private Integer port; - + protected void copyInstance(ApiextensionsV1ServiceReference instance) { instance = instance != null ? instance : new ApiextensionsV1ServiceReference(); if (instance != null) { @@ -34,58 +36,6 @@ protected void copyInstance(ApiextensionsV1ServiceReference instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - - public String getPath() { - return this.path; - } - - public A withPath(String path) { - this.path = path; - return (A) this; - } - - public boolean hasPath() { - return this.path != null; - } - - public Integer getPort() { - return this.port; - } - - public A withPort(Integer port) { - this.port = port; - return (A) this; - } - - public boolean hasPort() { - return this.port != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -112,6 +62,38 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; + } + + public String getPath() { + return this.path; + } + + public Integer getPort() { + return this.port; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public boolean hasPath() { + return this.path != null; + } + + public boolean hasPort() { + return this.port != null; + } + public int hashCode() { return Objects.hash(name, namespace, path, port); } @@ -142,5 +124,24 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java index 5f95510b4b..2ffa741a61 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class ApiextensionsV1WebhookClientConfigBuilder extends ApiextensionsV1WebhookClientConfigFluent implements VisitableBuilder{ + + ApiextensionsV1WebhookClientConfigFluent fluent; + public ApiextensionsV1WebhookClientConfigBuilder() { this(new ApiextensionsV1WebhookClientConfig()); } @@ -11,17 +14,16 @@ public ApiextensionsV1WebhookClientConfigBuilder(ApiextensionsV1WebhookClientCon this(fluent, new ApiextensionsV1WebhookClientConfig()); } - public ApiextensionsV1WebhookClientConfigBuilder(ApiextensionsV1WebhookClientConfigFluent fluent,ApiextensionsV1WebhookClientConfig instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public ApiextensionsV1WebhookClientConfigBuilder(ApiextensionsV1WebhookClientConfig instance) { this.fluent = this; this.copyInstance(instance); } - ApiextensionsV1WebhookClientConfigFluent fluent; + public ApiextensionsV1WebhookClientConfigBuilder(ApiextensionsV1WebhookClientConfigFluent fluent,ApiextensionsV1WebhookClientConfig instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public ApiextensionsV1WebhookClientConfig build() { ApiextensionsV1WebhookClientConfig buildable = new ApiextensionsV1WebhookClientConfig(); buildable.setCaBundle(fluent.getCaBundle()); @@ -30,5 +32,4 @@ public ApiextensionsV1WebhookClientConfig build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java index 1b0f807827..fbff12bc7b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java @@ -1,85 +1,36 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Byte; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.lang.Byte; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class ApiextensionsV1WebhookClientConfigFluent> extends BaseFluent{ - public ApiextensionsV1WebhookClientConfigFluent() { - } - - public ApiextensionsV1WebhookClientConfigFluent(ApiextensionsV1WebhookClientConfig instance) { - this.copyInstance(instance); - } + private List caBundle; private ApiextensionsV1ServiceReferenceBuilder service; private String url; - - protected void copyInstance(ApiextensionsV1WebhookClientConfig instance) { - instance = instance != null ? instance : new ApiextensionsV1WebhookClientConfig(); - if (instance != null) { - this.withCaBundle(instance.getCaBundle()); - this.withService(instance.getService()); - this.withUrl(instance.getUrl()); - } - } - - public A withCaBundle(byte... caBundle) { - if (this.caBundle != null) { - this.caBundle.clear(); - _visitables.remove("caBundle"); - } - if (caBundle != null) { - for (byte item : caBundle) { - this.addToCaBundle(item); - } - } - return (A) this; - } - - public byte[] getCaBundle() { - int size = caBundle != null ? caBundle.size() : 0; - byte[] result = new byte[size]; - if (size == 0) { - return result; - } - int index = 0; - for (byte item : caBundle) { - result[index++] = item; - } - return result; - } - - public A addToCaBundle(int index,Byte item) { - if (this.caBundle == null) { - this.caBundle = new ArrayList(); - } - this.caBundle.add(index, item); - return (A) this; + + public ApiextensionsV1WebhookClientConfigFluent() { } - public A setToCaBundle(int index,Byte item) { - if (this.caBundle == null) { - this.caBundle = new ArrayList(); - } - this.caBundle.set(index, item); - return (A) this; + public ApiextensionsV1WebhookClientConfigFluent(ApiextensionsV1WebhookClientConfig instance) { + this.copyInstance(instance); } - - public A addToCaBundle(Byte... items) { + + public A addAllToCaBundle(Collection items) { if (this.caBundle == null) { this.caBundle = new ArrayList(); } @@ -89,7 +40,7 @@ public A addToCaBundle(Byte... items) { return (A) this; } - public A addAllToCaBundle(Collection items) { + public A addToCaBundle(Byte... items) { if (this.caBundle == null) { this.caBundle = new ArrayList(); } @@ -99,60 +50,25 @@ public A addAllToCaBundle(Collection items) { return (A) this; } - public A removeFromCaBundle(Byte... items) { - if (this.caBundle == null) { - return (A) this; - } - for (Byte item : items) { - this.caBundle.remove(item); - } - return (A) this; - } - - public A removeAllFromCaBundle(Collection items) { + public A addToCaBundle(int index,Byte item) { if (this.caBundle == null) { - return (A) this; - } - for (Byte item : items) { - this.caBundle.remove(item); + this.caBundle = new ArrayList(); } + this.caBundle.add(index, item); return (A) this; } - public boolean hasCaBundle() { - return this.caBundle != null && !(this.caBundle.isEmpty()); - } - public ApiextensionsV1ServiceReference buildService() { return this.service != null ? this.service.build() : null; } - public A withService(ApiextensionsV1ServiceReference service) { - this._visitables.remove("service"); - if (service != null) { - this.service = new ApiextensionsV1ServiceReferenceBuilder(service); - this._visitables.get("service").add(this.service); - } else { - this.service = null; - this._visitables.get("service").remove(this.service); + protected void copyInstance(ApiextensionsV1WebhookClientConfig instance) { + instance = instance != null ? instance : new ApiextensionsV1WebhookClientConfig(); + if (instance != null) { + this.withCaBundle(instance.getCaBundle()); + this.withService(instance.getService()); + this.withUrl(instance.getUrl()); } - return (A) this; - } - - public boolean hasService() { - return this.service != null; - } - - public ServiceNested withNewService() { - return new ServiceNested(null); - } - - public ServiceNested withNewServiceLike(ApiextensionsV1ServiceReference item) { - return new ServiceNested(item); - } - - public ServiceNested editService() { - return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(null)); } public ServiceNested editOrNewService() { @@ -163,17 +79,8 @@ public ServiceNested editOrNewServiceLike(ApiextensionsV1ServiceReference ite return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(item)); } - public String getUrl() { - return this.url; - } - - public A withUrl(String url) { - this.url = url; - return (A) this; - } - - public boolean hasUrl() { - return this.url != null; + public ServiceNested editService() { + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(null)); } public boolean equals(Object o) { @@ -199,10 +106,67 @@ public boolean equals(Object o) { return true; } + public byte[] getCaBundle() { + int size = caBundle != null ? caBundle.size() : 0; + byte[] result = new byte[size]; + if (size == 0) { + return result; + } + int index = 0; + for (byte item : caBundle) { + result[index++] = item; + } + return result; + } + + public String getUrl() { + return this.url; + } + + public boolean hasCaBundle() { + return this.caBundle != null && !(this.caBundle.isEmpty()); + } + + public boolean hasService() { + return this.service != null; + } + + public boolean hasUrl() { + return this.url != null; + } + public int hashCode() { return Objects.hash(caBundle, service, url); } + public A removeAllFromCaBundle(Collection items) { + if (this.caBundle == null) { + return (A) this; + } + for (Byte item : items) { + this.caBundle.remove(item); + } + return (A) this; + } + + public A removeFromCaBundle(Byte... items) { + if (this.caBundle == null) { + return (A) this; + } + for (Byte item : items) { + this.caBundle.remove(item); + } + return (A) this; + } + + public A setToCaBundle(int index,Byte item) { + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + this.caBundle.set(index, item); + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -223,12 +187,52 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withCaBundle(byte... caBundle) { + if (this.caBundle != null) { + this.caBundle.clear(); + _visitables.remove("caBundle"); + } + if (caBundle != null) { + for (byte item : caBundle) { + this.addToCaBundle(item); + } + } + return (A) this; + } + + public ServiceNested withNewService() { + return new ServiceNested(null); + } + + public ServiceNested withNewServiceLike(ApiextensionsV1ServiceReference item) { + return new ServiceNested(item); + } + + public A withService(ApiextensionsV1ServiceReference service) { + this._visitables.remove("service"); + if (service != null) { + this.service = new ApiextensionsV1ServiceReferenceBuilder(service); + this._visitables.get("service").add(this.service); + } else { + this.service = null; + this._visitables.get("service").remove(this.service); + } + return (A) this; + } + + public A withUrl(String url) { + this.url = url; + return (A) this; + } public class ServiceNested extends ApiextensionsV1ServiceReferenceFluent> implements Nested{ + + ApiextensionsV1ServiceReferenceBuilder builder; + ServiceNested(ApiextensionsV1ServiceReference item) { this.builder = new ApiextensionsV1ServiceReferenceBuilder(this, item); } - ApiextensionsV1ServiceReferenceBuilder builder; - + public N and() { return (N) ApiextensionsV1WebhookClientConfigFluent.this.withService(builder.build()); } @@ -237,7 +241,5 @@ public N endService() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java index 03726a0804..92d5e4eec7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class ApiregistrationV1ServiceReferenceBuilder extends ApiregistrationV1ServiceReferenceFluent implements VisitableBuilder{ + + ApiregistrationV1ServiceReferenceFluent fluent; + public ApiregistrationV1ServiceReferenceBuilder() { this(new ApiregistrationV1ServiceReference()); } @@ -11,17 +14,16 @@ public ApiregistrationV1ServiceReferenceBuilder(ApiregistrationV1ServiceReferenc this(fluent, new ApiregistrationV1ServiceReference()); } - public ApiregistrationV1ServiceReferenceBuilder(ApiregistrationV1ServiceReferenceFluent fluent,ApiregistrationV1ServiceReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public ApiregistrationV1ServiceReferenceBuilder(ApiregistrationV1ServiceReference instance) { this.fluent = this; this.copyInstance(instance); } - ApiregistrationV1ServiceReferenceFluent fluent; + public ApiregistrationV1ServiceReferenceBuilder(ApiregistrationV1ServiceReferenceFluent fluent,ApiregistrationV1ServiceReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public ApiregistrationV1ServiceReference build() { ApiregistrationV1ServiceReference buildable = new ApiregistrationV1ServiceReference(); buildable.setName(fluent.getName()); @@ -30,5 +32,4 @@ public ApiregistrationV1ServiceReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java index 31137c748b..ed484d9ee9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class ApiregistrationV1ServiceReferenceFluent> extends BaseFluent{ + + private String name; + private String namespace; + private Integer port; + public ApiregistrationV1ServiceReferenceFluent() { } public ApiregistrationV1ServiceReferenceFluent(ApiregistrationV1ServiceReference instance) { this.copyInstance(instance); } - private String name; - private String namespace; - private Integer port; - + protected void copyInstance(ApiregistrationV1ServiceReference instance) { instance = instance != null ? instance : new ApiregistrationV1ServiceReference(); if (instance != null) { @@ -32,45 +34,6 @@ protected void copyInstance(ApiregistrationV1ServiceReference instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - - public Integer getPort() { - return this.port; - } - - public A withPort(Integer port) { - this.port = port; - return (A) this; - } - - public boolean hasPort() { - return this.port != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -94,6 +57,30 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; + } + + public Integer getPort() { + return this.port; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public boolean hasPort() { + return this.port != null; + } + public int hashCode() { return Objects.hash(name, namespace, port); } @@ -119,5 +106,19 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java index 80d65770a5..c332a2cc19 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class AuthenticationV1TokenRequestBuilder extends AuthenticationV1TokenRequestFluent implements VisitableBuilder{ + + AuthenticationV1TokenRequestFluent fluent; + public AuthenticationV1TokenRequestBuilder() { this(new AuthenticationV1TokenRequest()); } @@ -11,17 +14,16 @@ public AuthenticationV1TokenRequestBuilder(AuthenticationV1TokenRequestFluent this(fluent, new AuthenticationV1TokenRequest()); } - public AuthenticationV1TokenRequestBuilder(AuthenticationV1TokenRequestFluent fluent,AuthenticationV1TokenRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public AuthenticationV1TokenRequestBuilder(AuthenticationV1TokenRequest instance) { this.fluent = this; this.copyInstance(instance); } - AuthenticationV1TokenRequestFluent fluent; + public AuthenticationV1TokenRequestBuilder(AuthenticationV1TokenRequestFluent fluent,AuthenticationV1TokenRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public AuthenticationV1TokenRequest build() { AuthenticationV1TokenRequest buildable = new AuthenticationV1TokenRequest(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public AuthenticationV1TokenRequest build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java index fb3cd7cac4..8a836d4b4d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class AuthenticationV1TokenRequestFluent> extends BaseFluent{ - public AuthenticationV1TokenRequestFluent() { - } - - public AuthenticationV1TokenRequestFluent(AuthenticationV1TokenRequest instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1TokenRequestSpecBuilder spec; private V1TokenRequestStatusBuilder status; - - protected void copyInstance(AuthenticationV1TokenRequest instance) { - instance = instance != null ? instance : new AuthenticationV1TokenRequest(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public AuthenticationV1TokenRequestFluent() { } - public boolean hasKind() { - return this.kind != null; + public AuthenticationV1TokenRequestFluent(AuthenticationV1TokenRequest instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1TokenRequestSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1TokenRequestStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(AuthenticationV1TokenRequest instance) { + instance = instance != null ? instance : new AuthenticationV1TokenRequest(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1TokenRequestSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1TokenRequestSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1TokenRequestSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1TokenRequestSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1TokenRequestSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1TokenRequestSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1TokenRequestStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1TokenRequestStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1TokenRequestStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1TokenRequestStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1TokenRequestStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1TokenRequestStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1TokenRequestStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1TokenRequestStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1TokenRequestSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1TokenRequestStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1TokenRequestSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1TokenRequestSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1TokenRequestStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1TokenRequestStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) AuthenticationV1TokenRequestFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1TokenRequestSpecFluent> implements Nested{ + + V1TokenRequestSpecBuilder builder; + SpecNested(V1TokenRequestSpec item) { this.builder = new V1TokenRequestSpecBuilder(this, item); } - V1TokenRequestSpecBuilder builder; - + public N and() { return (N) AuthenticationV1TokenRequestFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1TokenRequestStatusFluent> implements Nested{ + + V1TokenRequestStatusBuilder builder; + StatusNested(V1TokenRequestStatus item) { this.builder = new V1TokenRequestStatusBuilder(this, item); } - V1TokenRequestStatusBuilder builder; - + public N and() { return (N) AuthenticationV1TokenRequestFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java index 5c80fd4287..40d60af64b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class CoreV1EndpointPortBuilder extends CoreV1EndpointPortFluent implements VisitableBuilder{ + + CoreV1EndpointPortFluent fluent; + public CoreV1EndpointPortBuilder() { this(new CoreV1EndpointPort()); } @@ -11,17 +14,16 @@ public CoreV1EndpointPortBuilder(CoreV1EndpointPortFluent fluent) { this(fluent, new CoreV1EndpointPort()); } - public CoreV1EndpointPortBuilder(CoreV1EndpointPortFluent fluent,CoreV1EndpointPort instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public CoreV1EndpointPortBuilder(CoreV1EndpointPort instance) { this.fluent = this; this.copyInstance(instance); } - CoreV1EndpointPortFluent fluent; + public CoreV1EndpointPortBuilder(CoreV1EndpointPortFluent fluent,CoreV1EndpointPort instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public CoreV1EndpointPort build() { CoreV1EndpointPort buildable = new CoreV1EndpointPort(); buildable.setAppProtocol(fluent.getAppProtocol()); @@ -31,5 +33,4 @@ public CoreV1EndpointPort build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java index 8f63e16612..2ecbfd37e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class CoreV1EndpointPortFluent> extends BaseFluent{ + + private String appProtocol; + private String name; + private Integer port; + private String protocol; + public CoreV1EndpointPortFluent() { } public CoreV1EndpointPortFluent(CoreV1EndpointPort instance) { this.copyInstance(instance); } - private String appProtocol; - private String name; - private Integer port; - private String protocol; - + protected void copyInstance(CoreV1EndpointPort instance) { instance = instance != null ? instance : new CoreV1EndpointPort(); if (instance != null) { @@ -34,58 +36,6 @@ protected void copyInstance(CoreV1EndpointPort instance) { } } - public String getAppProtocol() { - return this.appProtocol; - } - - public A withAppProtocol(String appProtocol) { - this.appProtocol = appProtocol; - return (A) this; - } - - public boolean hasAppProtocol() { - return this.appProtocol != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public Integer getPort() { - return this.port; - } - - public A withPort(Integer port) { - this.port = port; - return (A) this; - } - - public boolean hasPort() { - return this.port != null; - } - - public String getProtocol() { - return this.protocol; - } - - public A withProtocol(String protocol) { - this.protocol = protocol; - return (A) this; - } - - public boolean hasProtocol() { - return this.protocol != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -112,6 +62,38 @@ public boolean equals(Object o) { return true; } + public String getAppProtocol() { + return this.appProtocol; + } + + public String getName() { + return this.name; + } + + public Integer getPort() { + return this.port; + } + + public String getProtocol() { + return this.protocol; + } + + public boolean hasAppProtocol() { + return this.appProtocol != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasPort() { + return this.port != null; + } + + public boolean hasProtocol() { + return this.protocol != null; + } + public int hashCode() { return Objects.hash(appProtocol, name, port, protocol); } @@ -142,5 +124,24 @@ public String toString() { return sb.toString(); } - + public A withAppProtocol(String appProtocol) { + this.appProtocol = appProtocol; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + + public A withProtocol(String protocol) { + this.protocol = protocol; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java index c54b36b1b7..5bc431e239 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class CoreV1EventBuilder extends CoreV1EventFluent implements VisitableBuilder{ + + CoreV1EventFluent fluent; + public CoreV1EventBuilder() { this(new CoreV1Event()); } @@ -11,17 +14,16 @@ public CoreV1EventBuilder(CoreV1EventFluent fluent) { this(fluent, new CoreV1Event()); } - public CoreV1EventBuilder(CoreV1EventFluent fluent,CoreV1Event instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public CoreV1EventBuilder(CoreV1Event instance) { this.fluent = this; this.copyInstance(instance); } - CoreV1EventFluent fluent; + public CoreV1EventBuilder(CoreV1EventFluent fluent,CoreV1Event instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public CoreV1Event build() { CoreV1Event buildable = new CoreV1Event(); buildable.setAction(fluent.getAction()); @@ -44,5 +46,4 @@ public CoreV1Event build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java index e3a41e7b5e..91a7ebda8c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java @@ -1,27 +1,22 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import io.kubernetes.client.fluent.Nested; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class CoreV1EventFluent> extends BaseFluent{ - public CoreV1EventFluent() { - } - - public CoreV1EventFluent(CoreV1Event instance) { - this.copyInstance(instance); - } + private String action; private String apiVersion; private Integer count; @@ -39,6 +34,33 @@ public CoreV1EventFluent(CoreV1Event instance) { private CoreV1EventSeriesBuilder series; private V1EventSourceBuilder source; private String type; + + public CoreV1EventFluent() { + } + + public CoreV1EventFluent(CoreV1Event instance) { + this.copyInstance(instance); + } + + public V1ObjectReference buildInvolvedObject() { + return this.involvedObject != null ? this.involvedObject.build() : null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ObjectReference buildRelated() { + return this.related != null ? this.related.build() : null; + } + + public CoreV1EventSeries buildSeries() { + return this.series != null ? this.series.build() : null; + } + + public V1EventSource buildSource() { + return this.source != null ? this.source.build() : null; + } protected void copyInstance(CoreV1Event instance) { instance = instance != null ? instance : new CoreV1Event(); @@ -63,103 +85,14 @@ protected void copyInstance(CoreV1Event instance) { } } - public String getAction() { - return this.action; - } - - public A withAction(String action) { - this.action = action; - return (A) this; - } - - public boolean hasAction() { - return this.action != null; - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public Integer getCount() { - return this.count; - } - - public A withCount(Integer count) { - this.count = count; - return (A) this; - } - - public boolean hasCount() { - return this.count != null; - } - - public OffsetDateTime getEventTime() { - return this.eventTime; - } - - public A withEventTime(OffsetDateTime eventTime) { - this.eventTime = eventTime; - return (A) this; - } - - public boolean hasEventTime() { - return this.eventTime != null; - } - - public OffsetDateTime getFirstTimestamp() { - return this.firstTimestamp; - } - - public A withFirstTimestamp(OffsetDateTime firstTimestamp) { - this.firstTimestamp = firstTimestamp; - return (A) this; - } - - public boolean hasFirstTimestamp() { - return this.firstTimestamp != null; - } - - public V1ObjectReference buildInvolvedObject() { - return this.involvedObject != null ? this.involvedObject.build() : null; - } - - public A withInvolvedObject(V1ObjectReference involvedObject) { - this._visitables.remove("involvedObject"); - if (involvedObject != null) { - this.involvedObject = new V1ObjectReferenceBuilder(involvedObject); - this._visitables.get("involvedObject").add(this.involvedObject); - } else { - this.involvedObject = null; - this._visitables.get("involvedObject").remove(this.involvedObject); - } - return (A) this; - } - - public boolean hasInvolvedObject() { - return this.involvedObject != null; - } - - public InvolvedObjectNested withNewInvolvedObject() { - return new InvolvedObjectNested(null); - } - - public InvolvedObjectNested withNewInvolvedObjectLike(V1ObjectReference item) { - return new InvolvedObjectNested(item); - } - public InvolvedObjectNested editInvolvedObject() { return this.withNewInvolvedObjectLike(Optional.ofNullable(this.buildInvolvedObject()).orElse(null)); } + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + public InvolvedObjectNested editOrNewInvolvedObject() { return this.withNewInvolvedObjectLike(Optional.ofNullable(this.buildInvolvedObject()).orElse(new V1ObjectReferenceBuilder().build())); } @@ -168,77 +101,6 @@ public InvolvedObjectNested editOrNewInvolvedObjectLike(V1ObjectReference ite return this.withNewInvolvedObjectLike(Optional.ofNullable(this.buildInvolvedObject()).orElse(item)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public OffsetDateTime getLastTimestamp() { - return this.lastTimestamp; - } - - public A withLastTimestamp(OffsetDateTime lastTimestamp) { - this.lastTimestamp = lastTimestamp; - return (A) this; - } - - public boolean hasLastTimestamp() { - return this.lastTimestamp != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); - } - public MetadataNested editOrNewMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } @@ -247,51 +109,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public V1ObjectReference buildRelated() { - return this.related != null ? this.related.build() : null; - } - - public A withRelated(V1ObjectReference related) { - this._visitables.remove("related"); - if (related != null) { - this.related = new V1ObjectReferenceBuilder(related); - this._visitables.get("related").add(this.related); - } else { - this.related = null; - this._visitables.get("related").remove(this.related); - } - return (A) this; - } - - public boolean hasRelated() { - return this.related != null; - } - - public RelatedNested withNewRelated() { - return new RelatedNested(null); - } - - public RelatedNested withNewRelatedLike(V1ObjectReference item) { - return new RelatedNested(item); - } - - public RelatedNested editRelated() { - return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(null)); - } - public RelatedNested editOrNewRelated() { return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(new V1ObjectReferenceBuilder().build())); } @@ -300,64 +117,6 @@ public RelatedNested editOrNewRelatedLike(V1ObjectReference item) { return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(item)); } - public String getReportingComponent() { - return this.reportingComponent; - } - - public A withReportingComponent(String reportingComponent) { - this.reportingComponent = reportingComponent; - return (A) this; - } - - public boolean hasReportingComponent() { - return this.reportingComponent != null; - } - - public String getReportingInstance() { - return this.reportingInstance; - } - - public A withReportingInstance(String reportingInstance) { - this.reportingInstance = reportingInstance; - return (A) this; - } - - public boolean hasReportingInstance() { - return this.reportingInstance != null; - } - - public CoreV1EventSeries buildSeries() { - return this.series != null ? this.series.build() : null; - } - - public A withSeries(CoreV1EventSeries series) { - this._visitables.remove("series"); - if (series != null) { - this.series = new CoreV1EventSeriesBuilder(series); - this._visitables.get("series").add(this.series); - } else { - this.series = null; - this._visitables.get("series").remove(this.series); - } - return (A) this; - } - - public boolean hasSeries() { - return this.series != null; - } - - public SeriesNested withNewSeries() { - return new SeriesNested(null); - } - - public SeriesNested withNewSeriesLike(CoreV1EventSeries item) { - return new SeriesNested(item); - } - - public SeriesNested editSeries() { - return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(null)); - } - public SeriesNested editOrNewSeries() { return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(new CoreV1EventSeriesBuilder().build())); } @@ -366,38 +125,6 @@ public SeriesNested editOrNewSeriesLike(CoreV1EventSeries item) { return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(item)); } - public V1EventSource buildSource() { - return this.source != null ? this.source.build() : null; - } - - public A withSource(V1EventSource source) { - this._visitables.remove("source"); - if (source != null) { - this.source = new V1EventSourceBuilder(source); - this._visitables.get("source").add(this.source); - } else { - this.source = null; - this._visitables.get("source").remove(this.source); - } - return (A) this; - } - - public boolean hasSource() { - return this.source != null; - } - - public SourceNested withNewSource() { - return new SourceNested(null); - } - - public SourceNested withNewSourceLike(V1EventSource item) { - return new SourceNested(item); - } - - public SourceNested editSource() { - return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(null)); - } - public SourceNested editOrNewSource() { return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(new V1EventSourceBuilder().build())); } @@ -406,17 +133,16 @@ public SourceNested editOrNewSourceLike(V1EventSource item) { return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(item)); } - public String getType() { - return this.type; + public RelatedNested editRelated() { + return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(null)); } - public A withType(String type) { - this.type = type; - return (A) this; + public SeriesNested editSeries() { + return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(null)); } - public boolean hasType() { - return this.type != null; + public SourceNested editSource() { + return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(null)); } public boolean equals(Object o) { @@ -484,6 +210,122 @@ public boolean equals(Object o) { return true; } + public String getAction() { + return this.action; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public Integer getCount() { + return this.count; + } + + public OffsetDateTime getEventTime() { + return this.eventTime; + } + + public OffsetDateTime getFirstTimestamp() { + return this.firstTimestamp; + } + + public String getKind() { + return this.kind; + } + + public OffsetDateTime getLastTimestamp() { + return this.lastTimestamp; + } + + public String getMessage() { + return this.message; + } + + public String getReason() { + return this.reason; + } + + public String getReportingComponent() { + return this.reportingComponent; + } + + public String getReportingInstance() { + return this.reportingInstance; + } + + public String getType() { + return this.type; + } + + public boolean hasAction() { + return this.action != null; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasCount() { + return this.count != null; + } + + public boolean hasEventTime() { + return this.eventTime != null; + } + + public boolean hasFirstTimestamp() { + return this.firstTimestamp != null; + } + + public boolean hasInvolvedObject() { + return this.involvedObject != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasLastTimestamp() { + return this.lastTimestamp != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasReason() { + return this.reason != null; + } + + public boolean hasRelated() { + return this.related != null; + } + + public boolean hasReportingComponent() { + return this.reportingComponent != null; + } + + public boolean hasReportingInstance() { + return this.reportingInstance != null; + } + + public boolean hasSeries() { + return this.series != null; + } + + public boolean hasSource() { + return this.source != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(action, apiVersion, count, eventTime, firstTimestamp, involvedObject, kind, lastTimestamp, message, metadata, reason, related, reportingComponent, reportingInstance, series, source, type); } @@ -578,12 +420,174 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAction(String action) { + this.action = action; + return (A) this; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withCount(Integer count) { + this.count = count; + return (A) this; + } + + public A withEventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; + return (A) this; + } + + public A withFirstTimestamp(OffsetDateTime firstTimestamp) { + this.firstTimestamp = firstTimestamp; + return (A) this; + } + + public A withInvolvedObject(V1ObjectReference involvedObject) { + this._visitables.remove("involvedObject"); + if (involvedObject != null) { + this.involvedObject = new V1ObjectReferenceBuilder(involvedObject); + this._visitables.get("involvedObject").add(this.involvedObject); + } else { + this.involvedObject = null; + this._visitables.get("involvedObject").remove(this.involvedObject); + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withLastTimestamp(OffsetDateTime lastTimestamp) { + this.lastTimestamp = lastTimestamp; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public InvolvedObjectNested withNewInvolvedObject() { + return new InvolvedObjectNested(null); + } + + public InvolvedObjectNested withNewInvolvedObjectLike(V1ObjectReference item) { + return new InvolvedObjectNested(item); + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public RelatedNested withNewRelated() { + return new RelatedNested(null); + } + + public RelatedNested withNewRelatedLike(V1ObjectReference item) { + return new RelatedNested(item); + } + + public SeriesNested withNewSeries() { + return new SeriesNested(null); + } + + public SeriesNested withNewSeriesLike(CoreV1EventSeries item) { + return new SeriesNested(item); + } + + public SourceNested withNewSource() { + return new SourceNested(null); + } + + public SourceNested withNewSourceLike(V1EventSource item) { + return new SourceNested(item); + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withRelated(V1ObjectReference related) { + this._visitables.remove("related"); + if (related != null) { + this.related = new V1ObjectReferenceBuilder(related); + this._visitables.get("related").add(this.related); + } else { + this.related = null; + this._visitables.get("related").remove(this.related); + } + return (A) this; + } + + public A withReportingComponent(String reportingComponent) { + this.reportingComponent = reportingComponent; + return (A) this; + } + + public A withReportingInstance(String reportingInstance) { + this.reportingInstance = reportingInstance; + return (A) this; + } + + public A withSeries(CoreV1EventSeries series) { + this._visitables.remove("series"); + if (series != null) { + this.series = new CoreV1EventSeriesBuilder(series); + this._visitables.get("series").add(this.series); + } else { + this.series = null; + this._visitables.get("series").remove(this.series); + } + return (A) this; + } + + public A withSource(V1EventSource source) { + this._visitables.remove("source"); + if (source != null) { + this.source = new V1EventSourceBuilder(source); + this._visitables.get("source").add(this.source); + } else { + this.source = null; + this._visitables.get("source").remove(this.source); + } + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } public class InvolvedObjectNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + InvolvedObjectNested(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - + public N and() { return (N) CoreV1EventFluent.this.withInvolvedObject(builder.build()); } @@ -592,14 +596,15 @@ public N endInvolvedObject() { return and(); } - } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) CoreV1EventFluent.this.withMetadata(builder.build()); } @@ -608,14 +613,15 @@ public N endMetadata() { return and(); } - } public class RelatedNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + RelatedNested(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - + public N and() { return (N) CoreV1EventFluent.this.withRelated(builder.build()); } @@ -624,14 +630,15 @@ public N endRelated() { return and(); } - } public class SeriesNested extends CoreV1EventSeriesFluent> implements Nested{ + + CoreV1EventSeriesBuilder builder; + SeriesNested(CoreV1EventSeries item) { this.builder = new CoreV1EventSeriesBuilder(this, item); } - CoreV1EventSeriesBuilder builder; - + public N and() { return (N) CoreV1EventFluent.this.withSeries(builder.build()); } @@ -640,14 +647,15 @@ public N endSeries() { return and(); } - } public class SourceNested extends V1EventSourceFluent> implements Nested{ + + V1EventSourceBuilder builder; + SourceNested(V1EventSource item) { this.builder = new V1EventSourceBuilder(this, item); } - V1EventSourceBuilder builder; - + public N and() { return (N) CoreV1EventFluent.this.withSource(builder.build()); } @@ -656,7 +664,5 @@ public N endSource() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java index 2130cae666..aa8b2b5cf2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class CoreV1EventListBuilder extends CoreV1EventListFluent implements VisitableBuilder{ + + CoreV1EventListFluent fluent; + public CoreV1EventListBuilder() { this(new CoreV1EventList()); } @@ -11,17 +14,16 @@ public CoreV1EventListBuilder(CoreV1EventListFluent fluent) { this(fluent, new CoreV1EventList()); } - public CoreV1EventListBuilder(CoreV1EventListFluent fluent,CoreV1EventList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public CoreV1EventListBuilder(CoreV1EventList instance) { this.fluent = this; this.copyInstance(instance); } - CoreV1EventListFluent fluent; + public CoreV1EventListBuilder(CoreV1EventListFluent fluent,CoreV1EventList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public CoreV1EventList build() { CoreV1EventList buildable = new CoreV1EventList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public CoreV1EventList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java index 9083064fa2..5879cf1ea1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class CoreV1EventListFluent> extends BaseFluent{ - public CoreV1EventListFluent() { - } - - public CoreV1EventListFluent(CoreV1EventList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(CoreV1EventList instance) { - instance = instance != null ? instance : new CoreV1EventList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public CoreV1EventListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public CoreV1EventListFluent(CoreV1EventList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,CoreV1Event item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - CoreV1EventBuilder builder = new CoreV1EventBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (CoreV1Event item : items) { + CoreV1EventBuilder builder = new CoreV1EventBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,CoreV1Event item) { - if (this.items == null) { - this.items = new ArrayList(); - } - CoreV1EventBuilder builder = new CoreV1EventBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(CoreV1Event item) { + return new ItemsNested(-1, item); } public A addToItems(CoreV1Event... items) { @@ -96,68 +65,31 @@ public A addToItems(CoreV1Event... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,CoreV1Event item) { if (this.items == null) { this.items = new ArrayList(); } - for (CoreV1Event item : items) { - CoreV1EventBuilder builder = new CoreV1EventBuilder(item); + CoreV1EventBuilder builder = new CoreV1EventBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(CoreV1Event... items) { - if (this.items == null) { - return (A) this; - } - for (CoreV1Event item : items) { - CoreV1EventBuilder builder = new CoreV1EventBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (CoreV1Event item : items) { - CoreV1EventBuilder builder = new CoreV1EventBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - CoreV1EventBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public CoreV1Event buildFirstItem() { + return this.items.get(0).build(); } public CoreV1Event buildItem(int index) { return this.items.get(index).build(); } - public CoreV1Event buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public CoreV1Event buildLastItem() { @@ -173,73 +105,34 @@ public CoreV1Event buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (CoreV1EventBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (CoreV1Event item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(CoreV1EventList instance) { + instance = instance != null ? instance : new CoreV1EventList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(CoreV1Event... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (CoreV1Event item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(CoreV1Event item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,CoreV1Event item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (CoreV1EventBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (CoreV1Event item : items) { + CoreV1EventBuilder builder = new CoreV1EventBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(CoreV1Event... items) { + if (this.items == null) { + return (A) this; + } + for (CoreV1Event item : items) { + CoreV1EventBuilder builder = new CoreV1EventBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + CoreV1EventBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,CoreV1Event item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,CoreV1Event item) { + if (this.items == null) { + this.items = new ArrayList(); + } + CoreV1EventBuilder builder = new CoreV1EventBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (CoreV1Event item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(CoreV1Event... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (CoreV1Event item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends CoreV1EventFluent> implements Nested{ + + CoreV1EventBuilder builder; + int index; + ItemsNested(int index,CoreV1Event item) { this.index = index; this.builder = new CoreV1EventBuilder(this, item); } - CoreV1EventBuilder builder; - int index; - + public N and() { return (N) CoreV1EventListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) CoreV1EventListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java index 124e6596d6..c776863407 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class CoreV1EventSeriesBuilder extends CoreV1EventSeriesFluent implements VisitableBuilder{ + + CoreV1EventSeriesFluent fluent; + public CoreV1EventSeriesBuilder() { this(new CoreV1EventSeries()); } @@ -11,17 +14,16 @@ public CoreV1EventSeriesBuilder(CoreV1EventSeriesFluent fluent) { this(fluent, new CoreV1EventSeries()); } - public CoreV1EventSeriesBuilder(CoreV1EventSeriesFluent fluent,CoreV1EventSeries instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public CoreV1EventSeriesBuilder(CoreV1EventSeries instance) { this.fluent = this; this.copyInstance(instance); } - CoreV1EventSeriesFluent fluent; + public CoreV1EventSeriesBuilder(CoreV1EventSeriesFluent fluent,CoreV1EventSeries instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public CoreV1EventSeries build() { CoreV1EventSeries buildable = new CoreV1EventSeries(); buildable.setCount(fluent.getCount()); @@ -29,5 +31,4 @@ public CoreV1EventSeries build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java index 80b09bef93..8077d3fde9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.time.OffsetDateTime; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; +import java.time.OffsetDateTime; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class CoreV1EventSeriesFluent> extends BaseFluent{ + + private Integer count; + private OffsetDateTime lastObservedTime; + public CoreV1EventSeriesFluent() { } public CoreV1EventSeriesFluent(CoreV1EventSeries instance) { this.copyInstance(instance); } - private Integer count; - private OffsetDateTime lastObservedTime; - + protected void copyInstance(CoreV1EventSeries instance) { instance = instance != null ? instance : new CoreV1EventSeries(); if (instance != null) { @@ -31,32 +33,6 @@ protected void copyInstance(CoreV1EventSeries instance) { } } - public Integer getCount() { - return this.count; - } - - public A withCount(Integer count) { - this.count = count; - return (A) this; - } - - public boolean hasCount() { - return this.count != null; - } - - public OffsetDateTime getLastObservedTime() { - return this.lastObservedTime; - } - - public A withLastObservedTime(OffsetDateTime lastObservedTime) { - this.lastObservedTime = lastObservedTime; - return (A) this; - } - - public boolean hasLastObservedTime() { - return this.lastObservedTime != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -77,6 +53,22 @@ public boolean equals(Object o) { return true; } + public Integer getCount() { + return this.count; + } + + public OffsetDateTime getLastObservedTime() { + return this.lastObservedTime; + } + + public boolean hasCount() { + return this.count != null; + } + + public boolean hasLastObservedTime() { + return this.lastObservedTime != null; + } + public int hashCode() { return Objects.hash(count, lastObservedTime); } @@ -97,5 +89,14 @@ public String toString() { return sb.toString(); } - + public A withCount(Integer count) { + this.count = count; + return (A) this; + } + + public A withLastObservedTime(OffsetDateTime lastObservedTime) { + this.lastObservedTime = lastObservedTime; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimBuilder.java index c245452fcf..fe2046092f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class CoreV1ResourceClaimBuilder extends CoreV1ResourceClaimFluent implements VisitableBuilder{ + + CoreV1ResourceClaimFluent fluent; + public CoreV1ResourceClaimBuilder() { this(new CoreV1ResourceClaim()); } @@ -11,17 +14,16 @@ public CoreV1ResourceClaimBuilder(CoreV1ResourceClaimFluent fluent) { this(fluent, new CoreV1ResourceClaim()); } - public CoreV1ResourceClaimBuilder(CoreV1ResourceClaimFluent fluent,CoreV1ResourceClaim instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public CoreV1ResourceClaimBuilder(CoreV1ResourceClaim instance) { this.fluent = this; this.copyInstance(instance); } - CoreV1ResourceClaimFluent fluent; + public CoreV1ResourceClaimBuilder(CoreV1ResourceClaimFluent fluent,CoreV1ResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public CoreV1ResourceClaim build() { CoreV1ResourceClaim buildable = new CoreV1ResourceClaim(); buildable.setName(fluent.getName()); @@ -29,5 +31,4 @@ public CoreV1ResourceClaim build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimFluent.java index c3e6dce459..653c931276 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class CoreV1ResourceClaimFluent> extends BaseFluent{ + + private String name; + private String request; + public CoreV1ResourceClaimFluent() { } public CoreV1ResourceClaimFluent(CoreV1ResourceClaim instance) { this.copyInstance(instance); } - private String name; - private String request; - + protected void copyInstance(CoreV1ResourceClaim instance) { instance = instance != null ? instance : new CoreV1ResourceClaim(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(CoreV1ResourceClaim instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getRequest() { - return this.request; - } - - public A withRequest(String request) { - this.request = request; - return (A) this; - } - - public boolean hasRequest() { - return this.request != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public String getRequest() { + return this.request; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasRequest() { + return this.request != null; + } + public int hashCode() { return Objects.hash(name, request); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withRequest(String request) { + this.request = request; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java index 4f64e879e0..18793253c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class DiscoveryV1EndpointPortBuilder extends DiscoveryV1EndpointPortFluent implements VisitableBuilder{ + + DiscoveryV1EndpointPortFluent fluent; + public DiscoveryV1EndpointPortBuilder() { this(new DiscoveryV1EndpointPort()); } @@ -11,17 +14,16 @@ public DiscoveryV1EndpointPortBuilder(DiscoveryV1EndpointPortFluent fluent) { this(fluent, new DiscoveryV1EndpointPort()); } - public DiscoveryV1EndpointPortBuilder(DiscoveryV1EndpointPortFluent fluent,DiscoveryV1EndpointPort instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public DiscoveryV1EndpointPortBuilder(DiscoveryV1EndpointPort instance) { this.fluent = this; this.copyInstance(instance); } - DiscoveryV1EndpointPortFluent fluent; + public DiscoveryV1EndpointPortBuilder(DiscoveryV1EndpointPortFluent fluent,DiscoveryV1EndpointPort instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public DiscoveryV1EndpointPort build() { DiscoveryV1EndpointPort buildable = new DiscoveryV1EndpointPort(); buildable.setAppProtocol(fluent.getAppProtocol()); @@ -31,5 +33,4 @@ public DiscoveryV1EndpointPort build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java index 092df72a6c..711de23b94 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class DiscoveryV1EndpointPortFluent> extends BaseFluent{ + + private String appProtocol; + private String name; + private Integer port; + private String protocol; + public DiscoveryV1EndpointPortFluent() { } public DiscoveryV1EndpointPortFluent(DiscoveryV1EndpointPort instance) { this.copyInstance(instance); } - private String appProtocol; - private String name; - private Integer port; - private String protocol; - + protected void copyInstance(DiscoveryV1EndpointPort instance) { instance = instance != null ? instance : new DiscoveryV1EndpointPort(); if (instance != null) { @@ -34,58 +36,6 @@ protected void copyInstance(DiscoveryV1EndpointPort instance) { } } - public String getAppProtocol() { - return this.appProtocol; - } - - public A withAppProtocol(String appProtocol) { - this.appProtocol = appProtocol; - return (A) this; - } - - public boolean hasAppProtocol() { - return this.appProtocol != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public Integer getPort() { - return this.port; - } - - public A withPort(Integer port) { - this.port = port; - return (A) this; - } - - public boolean hasPort() { - return this.port != null; - } - - public String getProtocol() { - return this.protocol; - } - - public A withProtocol(String protocol) { - this.protocol = protocol; - return (A) this; - } - - public boolean hasProtocol() { - return this.protocol != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -112,6 +62,38 @@ public boolean equals(Object o) { return true; } + public String getAppProtocol() { + return this.appProtocol; + } + + public String getName() { + return this.name; + } + + public Integer getPort() { + return this.port; + } + + public String getProtocol() { + return this.protocol; + } + + public boolean hasAppProtocol() { + return this.appProtocol != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasPort() { + return this.port != null; + } + + public boolean hasProtocol() { + return this.protocol != null; + } + public int hashCode() { return Objects.hash(appProtocol, name, port, protocol); } @@ -142,5 +124,24 @@ public String toString() { return sb.toString(); } - + public A withAppProtocol(String appProtocol) { + this.appProtocol = appProtocol; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + + public A withProtocol(String protocol) { + this.protocol = protocol; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java index 4f04f17d6d..19f7dc909c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class EventsV1EventBuilder extends EventsV1EventFluent implements VisitableBuilder{ + + EventsV1EventFluent fluent; + public EventsV1EventBuilder() { this(new EventsV1Event()); } @@ -11,17 +14,16 @@ public EventsV1EventBuilder(EventsV1EventFluent fluent) { this(fluent, new EventsV1Event()); } - public EventsV1EventBuilder(EventsV1EventFluent fluent,EventsV1Event instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public EventsV1EventBuilder(EventsV1Event instance) { this.fluent = this; this.copyInstance(instance); } - EventsV1EventFluent fluent; + public EventsV1EventBuilder(EventsV1EventFluent fluent,EventsV1Event instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public EventsV1Event build() { EventsV1Event buildable = new EventsV1Event(); buildable.setAction(fluent.getAction()); @@ -44,5 +46,4 @@ public EventsV1Event build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java index 2100fa9cc7..12ef2ccf40 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java @@ -1,27 +1,22 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import io.kubernetes.client.fluent.Nested; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class EventsV1EventFluent> extends BaseFluent{ - public EventsV1EventFluent() { - } - - public EventsV1EventFluent(EventsV1Event instance) { - this.copyInstance(instance); - } + private String action; private String apiVersion; private Integer deprecatedCount; @@ -39,6 +34,33 @@ public EventsV1EventFluent(EventsV1Event instance) { private String reportingInstance; private EventsV1EventSeriesBuilder series; private String type; + + public EventsV1EventFluent() { + } + + public EventsV1EventFluent(EventsV1Event instance) { + this.copyInstance(instance); + } + + public V1EventSource buildDeprecatedSource() { + return this.deprecatedSource != null ? this.deprecatedSource.build() : null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ObjectReference buildRegarding() { + return this.regarding != null ? this.regarding.build() : null; + } + + public V1ObjectReference buildRelated() { + return this.related != null ? this.related.build() : null; + } + + public EventsV1EventSeries buildSeries() { + return this.series != null ? this.series.build() : null; + } protected void copyInstance(EventsV1Event instance) { instance = instance != null ? instance : new EventsV1Event(); @@ -63,103 +85,14 @@ protected void copyInstance(EventsV1Event instance) { } } - public String getAction() { - return this.action; - } - - public A withAction(String action) { - this.action = action; - return (A) this; - } - - public boolean hasAction() { - return this.action != null; - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public Integer getDeprecatedCount() { - return this.deprecatedCount; - } - - public A withDeprecatedCount(Integer deprecatedCount) { - this.deprecatedCount = deprecatedCount; - return (A) this; - } - - public boolean hasDeprecatedCount() { - return this.deprecatedCount != null; - } - - public OffsetDateTime getDeprecatedFirstTimestamp() { - return this.deprecatedFirstTimestamp; - } - - public A withDeprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTimestamp) { - this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; - return (A) this; - } - - public boolean hasDeprecatedFirstTimestamp() { - return this.deprecatedFirstTimestamp != null; - } - - public OffsetDateTime getDeprecatedLastTimestamp() { - return this.deprecatedLastTimestamp; - } - - public A withDeprecatedLastTimestamp(OffsetDateTime deprecatedLastTimestamp) { - this.deprecatedLastTimestamp = deprecatedLastTimestamp; - return (A) this; - } - - public boolean hasDeprecatedLastTimestamp() { - return this.deprecatedLastTimestamp != null; - } - - public V1EventSource buildDeprecatedSource() { - return this.deprecatedSource != null ? this.deprecatedSource.build() : null; - } - - public A withDeprecatedSource(V1EventSource deprecatedSource) { - this._visitables.remove("deprecatedSource"); - if (deprecatedSource != null) { - this.deprecatedSource = new V1EventSourceBuilder(deprecatedSource); - this._visitables.get("deprecatedSource").add(this.deprecatedSource); - } else { - this.deprecatedSource = null; - this._visitables.get("deprecatedSource").remove(this.deprecatedSource); - } - return (A) this; - } - - public boolean hasDeprecatedSource() { - return this.deprecatedSource != null; - } - - public DeprecatedSourceNested withNewDeprecatedSource() { - return new DeprecatedSourceNested(null); - } - - public DeprecatedSourceNested withNewDeprecatedSourceLike(V1EventSource item) { - return new DeprecatedSourceNested(item); - } - public DeprecatedSourceNested editDeprecatedSource() { return this.withNewDeprecatedSourceLike(Optional.ofNullable(this.buildDeprecatedSource()).orElse(null)); } + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + public DeprecatedSourceNested editOrNewDeprecatedSource() { return this.withNewDeprecatedSourceLike(Optional.ofNullable(this.buildDeprecatedSource()).orElse(new V1EventSourceBuilder().build())); } @@ -168,64 +101,6 @@ public DeprecatedSourceNested editOrNewDeprecatedSourceLike(V1EventSource ite return this.withNewDeprecatedSourceLike(Optional.ofNullable(this.buildDeprecatedSource()).orElse(item)); } - public OffsetDateTime getEventTime() { - return this.eventTime; - } - - public A withEventTime(OffsetDateTime eventTime) { - this.eventTime = eventTime; - return (A) this; - } - - public boolean hasEventTime() { - return this.eventTime != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); - } - public MetadataNested editOrNewMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } @@ -234,64 +109,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public String getNote() { - return this.note; - } - - public A withNote(String note) { - this.note = note; - return (A) this; - } - - public boolean hasNote() { - return this.note != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public V1ObjectReference buildRegarding() { - return this.regarding != null ? this.regarding.build() : null; - } - - public A withRegarding(V1ObjectReference regarding) { - this._visitables.remove("regarding"); - if (regarding != null) { - this.regarding = new V1ObjectReferenceBuilder(regarding); - this._visitables.get("regarding").add(this.regarding); - } else { - this.regarding = null; - this._visitables.get("regarding").remove(this.regarding); - } - return (A) this; - } - - public boolean hasRegarding() { - return this.regarding != null; - } - - public RegardingNested withNewRegarding() { - return new RegardingNested(null); - } - - public RegardingNested withNewRegardingLike(V1ObjectReference item) { - return new RegardingNested(item); - } - - public RegardingNested editRegarding() { - return this.withNewRegardingLike(Optional.ofNullable(this.buildRegarding()).orElse(null)); - } - public RegardingNested editOrNewRegarding() { return this.withNewRegardingLike(Optional.ofNullable(this.buildRegarding()).orElse(new V1ObjectReferenceBuilder().build())); } @@ -300,38 +117,6 @@ public RegardingNested editOrNewRegardingLike(V1ObjectReference item) { return this.withNewRegardingLike(Optional.ofNullable(this.buildRegarding()).orElse(item)); } - public V1ObjectReference buildRelated() { - return this.related != null ? this.related.build() : null; - } - - public A withRelated(V1ObjectReference related) { - this._visitables.remove("related"); - if (related != null) { - this.related = new V1ObjectReferenceBuilder(related); - this._visitables.get("related").add(this.related); - } else { - this.related = null; - this._visitables.get("related").remove(this.related); - } - return (A) this; - } - - public boolean hasRelated() { - return this.related != null; - } - - public RelatedNested withNewRelated() { - return new RelatedNested(null); - } - - public RelatedNested withNewRelatedLike(V1ObjectReference item) { - return new RelatedNested(item); - } - - public RelatedNested editRelated() { - return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(null)); - } - public RelatedNested editOrNewRelated() { return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(new V1ObjectReferenceBuilder().build())); } @@ -340,64 +125,6 @@ public RelatedNested editOrNewRelatedLike(V1ObjectReference item) { return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(item)); } - public String getReportingController() { - return this.reportingController; - } - - public A withReportingController(String reportingController) { - this.reportingController = reportingController; - return (A) this; - } - - public boolean hasReportingController() { - return this.reportingController != null; - } - - public String getReportingInstance() { - return this.reportingInstance; - } - - public A withReportingInstance(String reportingInstance) { - this.reportingInstance = reportingInstance; - return (A) this; - } - - public boolean hasReportingInstance() { - return this.reportingInstance != null; - } - - public EventsV1EventSeries buildSeries() { - return this.series != null ? this.series.build() : null; - } - - public A withSeries(EventsV1EventSeries series) { - this._visitables.remove("series"); - if (series != null) { - this.series = new EventsV1EventSeriesBuilder(series); - this._visitables.get("series").add(this.series); - } else { - this.series = null; - this._visitables.get("series").remove(this.series); - } - return (A) this; - } - - public boolean hasSeries() { - return this.series != null; - } - - public SeriesNested withNewSeries() { - return new SeriesNested(null); - } - - public SeriesNested withNewSeriesLike(EventsV1EventSeries item) { - return new SeriesNested(item); - } - - public SeriesNested editSeries() { - return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(null)); - } - public SeriesNested editOrNewSeries() { return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(new EventsV1EventSeriesBuilder().build())); } @@ -406,17 +133,16 @@ public SeriesNested editOrNewSeriesLike(EventsV1EventSeries item) { return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(item)); } - public String getType() { - return this.type; + public RegardingNested editRegarding() { + return this.withNewRegardingLike(Optional.ofNullable(this.buildRegarding()).orElse(null)); } - public A withType(String type) { - this.type = type; - return (A) this; + public RelatedNested editRelated() { + return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(null)); } - public boolean hasType() { - return this.type != null; + public SeriesNested editSeries() { + return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(null)); } public boolean equals(Object o) { @@ -484,6 +210,122 @@ public boolean equals(Object o) { return true; } + public String getAction() { + return this.action; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public Integer getDeprecatedCount() { + return this.deprecatedCount; + } + + public OffsetDateTime getDeprecatedFirstTimestamp() { + return this.deprecatedFirstTimestamp; + } + + public OffsetDateTime getDeprecatedLastTimestamp() { + return this.deprecatedLastTimestamp; + } + + public OffsetDateTime getEventTime() { + return this.eventTime; + } + + public String getKind() { + return this.kind; + } + + public String getNote() { + return this.note; + } + + public String getReason() { + return this.reason; + } + + public String getReportingController() { + return this.reportingController; + } + + public String getReportingInstance() { + return this.reportingInstance; + } + + public String getType() { + return this.type; + } + + public boolean hasAction() { + return this.action != null; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasDeprecatedCount() { + return this.deprecatedCount != null; + } + + public boolean hasDeprecatedFirstTimestamp() { + return this.deprecatedFirstTimestamp != null; + } + + public boolean hasDeprecatedLastTimestamp() { + return this.deprecatedLastTimestamp != null; + } + + public boolean hasDeprecatedSource() { + return this.deprecatedSource != null; + } + + public boolean hasEventTime() { + return this.eventTime != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasNote() { + return this.note != null; + } + + public boolean hasReason() { + return this.reason != null; + } + + public boolean hasRegarding() { + return this.regarding != null; + } + + public boolean hasRelated() { + return this.related != null; + } + + public boolean hasReportingController() { + return this.reportingController != null; + } + + public boolean hasReportingInstance() { + return this.reportingInstance != null; + } + + public boolean hasSeries() { + return this.series != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(action, apiVersion, deprecatedCount, deprecatedFirstTimestamp, deprecatedLastTimestamp, deprecatedSource, eventTime, kind, metadata, note, reason, regarding, related, reportingController, reportingInstance, series, type); } @@ -578,12 +420,174 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAction(String action) { + this.action = action; + return (A) this; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withDeprecatedCount(Integer deprecatedCount) { + this.deprecatedCount = deprecatedCount; + return (A) this; + } + + public A withDeprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTimestamp) { + this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; + return (A) this; + } + + public A withDeprecatedLastTimestamp(OffsetDateTime deprecatedLastTimestamp) { + this.deprecatedLastTimestamp = deprecatedLastTimestamp; + return (A) this; + } + + public A withDeprecatedSource(V1EventSource deprecatedSource) { + this._visitables.remove("deprecatedSource"); + if (deprecatedSource != null) { + this.deprecatedSource = new V1EventSourceBuilder(deprecatedSource); + this._visitables.get("deprecatedSource").add(this.deprecatedSource); + } else { + this.deprecatedSource = null; + this._visitables.get("deprecatedSource").remove(this.deprecatedSource); + } + return (A) this; + } + + public A withEventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public DeprecatedSourceNested withNewDeprecatedSource() { + return new DeprecatedSourceNested(null); + } + + public DeprecatedSourceNested withNewDeprecatedSourceLike(V1EventSource item) { + return new DeprecatedSourceNested(item); + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public RegardingNested withNewRegarding() { + return new RegardingNested(null); + } + + public RegardingNested withNewRegardingLike(V1ObjectReference item) { + return new RegardingNested(item); + } + + public RelatedNested withNewRelated() { + return new RelatedNested(null); + } + + public RelatedNested withNewRelatedLike(V1ObjectReference item) { + return new RelatedNested(item); + } + + public SeriesNested withNewSeries() { + return new SeriesNested(null); + } + + public SeriesNested withNewSeriesLike(EventsV1EventSeries item) { + return new SeriesNested(item); + } + + public A withNote(String note) { + this.note = note; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withRegarding(V1ObjectReference regarding) { + this._visitables.remove("regarding"); + if (regarding != null) { + this.regarding = new V1ObjectReferenceBuilder(regarding); + this._visitables.get("regarding").add(this.regarding); + } else { + this.regarding = null; + this._visitables.get("regarding").remove(this.regarding); + } + return (A) this; + } + + public A withRelated(V1ObjectReference related) { + this._visitables.remove("related"); + if (related != null) { + this.related = new V1ObjectReferenceBuilder(related); + this._visitables.get("related").add(this.related); + } else { + this.related = null; + this._visitables.get("related").remove(this.related); + } + return (A) this; + } + + public A withReportingController(String reportingController) { + this.reportingController = reportingController; + return (A) this; + } + + public A withReportingInstance(String reportingInstance) { + this.reportingInstance = reportingInstance; + return (A) this; + } + + public A withSeries(EventsV1EventSeries series) { + this._visitables.remove("series"); + if (series != null) { + this.series = new EventsV1EventSeriesBuilder(series); + this._visitables.get("series").add(this.series); + } else { + this.series = null; + this._visitables.get("series").remove(this.series); + } + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } public class DeprecatedSourceNested extends V1EventSourceFluent> implements Nested{ + + V1EventSourceBuilder builder; + DeprecatedSourceNested(V1EventSource item) { this.builder = new V1EventSourceBuilder(this, item); } - V1EventSourceBuilder builder; - + public N and() { return (N) EventsV1EventFluent.this.withDeprecatedSource(builder.build()); } @@ -592,14 +596,15 @@ public N endDeprecatedSource() { return and(); } - } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) EventsV1EventFluent.this.withMetadata(builder.build()); } @@ -608,14 +613,15 @@ public N endMetadata() { return and(); } - } public class RegardingNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + RegardingNested(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - + public N and() { return (N) EventsV1EventFluent.this.withRegarding(builder.build()); } @@ -624,14 +630,15 @@ public N endRegarding() { return and(); } - } public class RelatedNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + RelatedNested(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - + public N and() { return (N) EventsV1EventFluent.this.withRelated(builder.build()); } @@ -640,14 +647,15 @@ public N endRelated() { return and(); } - } public class SeriesNested extends EventsV1EventSeriesFluent> implements Nested{ + + EventsV1EventSeriesBuilder builder; + SeriesNested(EventsV1EventSeries item) { this.builder = new EventsV1EventSeriesBuilder(this, item); } - EventsV1EventSeriesBuilder builder; - + public N and() { return (N) EventsV1EventFluent.this.withSeries(builder.build()); } @@ -656,7 +664,5 @@ public N endSeries() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java index 1daf62b8fb..7ea31e130a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class EventsV1EventListBuilder extends EventsV1EventListFluent implements VisitableBuilder{ + + EventsV1EventListFluent fluent; + public EventsV1EventListBuilder() { this(new EventsV1EventList()); } @@ -11,17 +14,16 @@ public EventsV1EventListBuilder(EventsV1EventListFluent fluent) { this(fluent, new EventsV1EventList()); } - public EventsV1EventListBuilder(EventsV1EventListFluent fluent,EventsV1EventList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public EventsV1EventListBuilder(EventsV1EventList instance) { this.fluent = this; this.copyInstance(instance); } - EventsV1EventListFluent fluent; + public EventsV1EventListBuilder(EventsV1EventListFluent fluent,EventsV1EventList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public EventsV1EventList build() { EventsV1EventList buildable = new EventsV1EventList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public EventsV1EventList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java index b5480d9d72..613fe765d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class EventsV1EventListFluent> extends BaseFluent{ - public EventsV1EventListFluent() { - } - - public EventsV1EventListFluent(EventsV1EventList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(EventsV1EventList instance) { - instance = instance != null ? instance : new EventsV1EventList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public EventsV1EventListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public EventsV1EventListFluent(EventsV1EventList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,EventsV1Event item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - EventsV1EventBuilder builder = new EventsV1EventBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (EventsV1Event item : items) { + EventsV1EventBuilder builder = new EventsV1EventBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,EventsV1Event item) { - if (this.items == null) { - this.items = new ArrayList(); - } - EventsV1EventBuilder builder = new EventsV1EventBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(EventsV1Event item) { + return new ItemsNested(-1, item); } public A addToItems(EventsV1Event... items) { @@ -96,68 +65,31 @@ public A addToItems(EventsV1Event... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,EventsV1Event item) { if (this.items == null) { this.items = new ArrayList(); } - for (EventsV1Event item : items) { - EventsV1EventBuilder builder = new EventsV1EventBuilder(item); + EventsV1EventBuilder builder = new EventsV1EventBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(EventsV1Event... items) { - if (this.items == null) { - return (A) this; - } - for (EventsV1Event item : items) { - EventsV1EventBuilder builder = new EventsV1EventBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (EventsV1Event item : items) { - EventsV1EventBuilder builder = new EventsV1EventBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - EventsV1EventBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public EventsV1Event buildFirstItem() { + return this.items.get(0).build(); } public EventsV1Event buildItem(int index) { return this.items.get(index).build(); } - public EventsV1Event buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public EventsV1Event buildLastItem() { @@ -173,73 +105,34 @@ public EventsV1Event buildMatchingItem(Predicate predicate return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (EventsV1EventBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (EventsV1Event item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(EventsV1EventList instance) { + instance = instance != null ? instance : new EventsV1EventList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(EventsV1Event... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (EventsV1Event item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(EventsV1Event item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,EventsV1Event item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (EventsV1EventBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (EventsV1Event item : items) { + EventsV1EventBuilder builder = new EventsV1EventBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(EventsV1Event... items) { + if (this.items == null) { + return (A) this; + } + for (EventsV1Event item : items) { + EventsV1EventBuilder builder = new EventsV1EventBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + EventsV1EventBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,EventsV1Event item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,EventsV1Event item) { + if (this.items == null) { + this.items = new ArrayList(); + } + EventsV1EventBuilder builder = new EventsV1EventBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (EventsV1Event item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(EventsV1Event... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (EventsV1Event item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends EventsV1EventFluent> implements Nested{ + + EventsV1EventBuilder builder; + int index; + ItemsNested(int index,EventsV1Event item) { this.index = index; this.builder = new EventsV1EventBuilder(this, item); } - EventsV1EventBuilder builder; - int index; - + public N and() { return (N) EventsV1EventListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) EventsV1EventListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java index e570d1382f..e1b90cad72 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class EventsV1EventSeriesBuilder extends EventsV1EventSeriesFluent implements VisitableBuilder{ + + EventsV1EventSeriesFluent fluent; + public EventsV1EventSeriesBuilder() { this(new EventsV1EventSeries()); } @@ -11,17 +14,16 @@ public EventsV1EventSeriesBuilder(EventsV1EventSeriesFluent fluent) { this(fluent, new EventsV1EventSeries()); } - public EventsV1EventSeriesBuilder(EventsV1EventSeriesFluent fluent,EventsV1EventSeries instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public EventsV1EventSeriesBuilder(EventsV1EventSeries instance) { this.fluent = this; this.copyInstance(instance); } - EventsV1EventSeriesFluent fluent; + public EventsV1EventSeriesBuilder(EventsV1EventSeriesFluent fluent,EventsV1EventSeries instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public EventsV1EventSeries build() { EventsV1EventSeries buildable = new EventsV1EventSeries(); buildable.setCount(fluent.getCount()); @@ -29,5 +31,4 @@ public EventsV1EventSeries build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java index ab6fefbf4e..2d74bf655b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.time.OffsetDateTime; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; +import java.time.OffsetDateTime; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class EventsV1EventSeriesFluent> extends BaseFluent{ + + private Integer count; + private OffsetDateTime lastObservedTime; + public EventsV1EventSeriesFluent() { } public EventsV1EventSeriesFluent(EventsV1EventSeries instance) { this.copyInstance(instance); } - private Integer count; - private OffsetDateTime lastObservedTime; - + protected void copyInstance(EventsV1EventSeries instance) { instance = instance != null ? instance : new EventsV1EventSeries(); if (instance != null) { @@ -31,32 +33,6 @@ protected void copyInstance(EventsV1EventSeries instance) { } } - public Integer getCount() { - return this.count; - } - - public A withCount(Integer count) { - this.count = count; - return (A) this; - } - - public boolean hasCount() { - return this.count != null; - } - - public OffsetDateTime getLastObservedTime() { - return this.lastObservedTime; - } - - public A withLastObservedTime(OffsetDateTime lastObservedTime) { - this.lastObservedTime = lastObservedTime; - return (A) this; - } - - public boolean hasLastObservedTime() { - return this.lastObservedTime != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -77,6 +53,22 @@ public boolean equals(Object o) { return true; } + public Integer getCount() { + return this.count; + } + + public OffsetDateTime getLastObservedTime() { + return this.lastObservedTime; + } + + public boolean hasCount() { + return this.count != null; + } + + public boolean hasLastObservedTime() { + return this.lastObservedTime != null; + } + public int hashCode() { return Objects.hash(count, lastObservedTime); } @@ -97,5 +89,14 @@ public String toString() { return sb.toString(); } - + public A withCount(Integer count) { + this.count = count; + return (A) this; + } + + public A withLastObservedTime(OffsetDateTime lastObservedTime) { + this.lastObservedTime = lastObservedTime; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectBuilder.java index 54f9d8ee85..f22a148eea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class FlowcontrolV1SubjectBuilder extends FlowcontrolV1SubjectFluent implements VisitableBuilder{ + + FlowcontrolV1SubjectFluent fluent; + public FlowcontrolV1SubjectBuilder() { this(new FlowcontrolV1Subject()); } @@ -11,17 +14,16 @@ public FlowcontrolV1SubjectBuilder(FlowcontrolV1SubjectFluent fluent) { this(fluent, new FlowcontrolV1Subject()); } - public FlowcontrolV1SubjectBuilder(FlowcontrolV1SubjectFluent fluent,FlowcontrolV1Subject instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public FlowcontrolV1SubjectBuilder(FlowcontrolV1Subject instance) { this.fluent = this; this.copyInstance(instance); } - FlowcontrolV1SubjectFluent fluent; + public FlowcontrolV1SubjectBuilder(FlowcontrolV1SubjectFluent fluent,FlowcontrolV1Subject instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public FlowcontrolV1Subject build() { FlowcontrolV1Subject buildable = new FlowcontrolV1Subject(); buildable.setGroup(fluent.buildGroup()); @@ -31,5 +33,4 @@ public FlowcontrolV1Subject build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectFluent.java index 6eb7271877..c65fffe098 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectFluent.java @@ -1,29 +1,43 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class FlowcontrolV1SubjectFluent> extends BaseFluent{ + + private V1GroupSubjectBuilder group; + private String kind; + private V1ServiceAccountSubjectBuilder serviceAccount; + private V1UserSubjectBuilder user; + public FlowcontrolV1SubjectFluent() { } public FlowcontrolV1SubjectFluent(FlowcontrolV1Subject instance) { this.copyInstance(instance); } - private V1GroupSubjectBuilder group; - private String kind; - private V1ServiceAccountSubjectBuilder serviceAccount; - private V1UserSubjectBuilder user; + + public V1GroupSubject buildGroup() { + return this.group != null ? this.group.build() : null; + } + + public V1ServiceAccountSubject buildServiceAccount() { + return this.serviceAccount != null ? this.serviceAccount.build() : null; + } + + public V1UserSubject buildUser() { + return this.user != null ? this.user.build() : null; + } protected void copyInstance(FlowcontrolV1Subject instance) { instance = instance != null ? instance : new FlowcontrolV1Subject(); @@ -35,34 +49,6 @@ protected void copyInstance(FlowcontrolV1Subject instance) { } } - public V1GroupSubject buildGroup() { - return this.group != null ? this.group.build() : null; - } - - public A withGroup(V1GroupSubject group) { - this._visitables.remove("group"); - if (group != null) { - this.group = new V1GroupSubjectBuilder(group); - this._visitables.get("group").add(this.group); - } else { - this.group = null; - this._visitables.get("group").remove(this.group); - } - return (A) this; - } - - public boolean hasGroup() { - return this.group != null; - } - - public GroupNested withNewGroup() { - return new GroupNested(null); - } - - public GroupNested withNewGroupLike(V1GroupSubject item) { - return new GroupNested(item); - } - public GroupNested editGroup() { return this.withNewGroupLike(Optional.ofNullable(this.buildGroup()).orElse(null)); } @@ -75,51 +61,6 @@ public GroupNested editOrNewGroupLike(V1GroupSubject item) { return this.withNewGroupLike(Optional.ofNullable(this.buildGroup()).orElse(item)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ServiceAccountSubject buildServiceAccount() { - return this.serviceAccount != null ? this.serviceAccount.build() : null; - } - - public A withServiceAccount(V1ServiceAccountSubject serviceAccount) { - this._visitables.remove("serviceAccount"); - if (serviceAccount != null) { - this.serviceAccount = new V1ServiceAccountSubjectBuilder(serviceAccount); - this._visitables.get("serviceAccount").add(this.serviceAccount); - } else { - this.serviceAccount = null; - this._visitables.get("serviceAccount").remove(this.serviceAccount); - } - return (A) this; - } - - public boolean hasServiceAccount() { - return this.serviceAccount != null; - } - - public ServiceAccountNested withNewServiceAccount() { - return new ServiceAccountNested(null); - } - - public ServiceAccountNested withNewServiceAccountLike(V1ServiceAccountSubject item) { - return new ServiceAccountNested(item); - } - - public ServiceAccountNested editServiceAccount() { - return this.withNewServiceAccountLike(Optional.ofNullable(this.buildServiceAccount()).orElse(null)); - } - public ServiceAccountNested editOrNewServiceAccount() { return this.withNewServiceAccountLike(Optional.ofNullable(this.buildServiceAccount()).orElse(new V1ServiceAccountSubjectBuilder().build())); } @@ -128,46 +69,22 @@ public ServiceAccountNested editOrNewServiceAccountLike(V1ServiceAccountSubje return this.withNewServiceAccountLike(Optional.ofNullable(this.buildServiceAccount()).orElse(item)); } - public V1UserSubject buildUser() { - return this.user != null ? this.user.build() : null; - } - - public A withUser(V1UserSubject user) { - this._visitables.remove("user"); - if (user != null) { - this.user = new V1UserSubjectBuilder(user); - this._visitables.get("user").add(this.user); - } else { - this.user = null; - this._visitables.get("user").remove(this.user); - } - return (A) this; - } - - public boolean hasUser() { - return this.user != null; + public UserNested editOrNewUser() { + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(new V1UserSubjectBuilder().build())); } - public UserNested withNewUser() { - return new UserNested(null); + public UserNested editOrNewUserLike(V1UserSubject item) { + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(item)); } - public UserNested withNewUserLike(V1UserSubject item) { - return new UserNested(item); + public ServiceAccountNested editServiceAccount() { + return this.withNewServiceAccountLike(Optional.ofNullable(this.buildServiceAccount()).orElse(null)); } public UserNested editUser() { return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(null)); } - public UserNested editOrNewUser() { - return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(new V1UserSubjectBuilder().build())); - } - - public UserNested editOrNewUserLike(V1UserSubject item) { - return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -194,6 +111,26 @@ public boolean equals(Object o) { return true; } + public String getKind() { + return this.kind; + } + + public boolean hasGroup() { + return this.group != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasServiceAccount() { + return this.serviceAccount != null; + } + + public boolean hasUser() { + return this.user != null; + } + public int hashCode() { return Objects.hash(group, kind, serviceAccount, user); } @@ -223,12 +160,79 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withGroup(V1GroupSubject group) { + this._visitables.remove("group"); + if (group != null) { + this.group = new V1GroupSubjectBuilder(group); + this._visitables.get("group").add(this.group); + } else { + this.group = null; + this._visitables.get("group").remove(this.group); + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public GroupNested withNewGroup() { + return new GroupNested(null); + } + + public GroupNested withNewGroupLike(V1GroupSubject item) { + return new GroupNested(item); + } + + public ServiceAccountNested withNewServiceAccount() { + return new ServiceAccountNested(null); + } + + public ServiceAccountNested withNewServiceAccountLike(V1ServiceAccountSubject item) { + return new ServiceAccountNested(item); + } + + public UserNested withNewUser() { + return new UserNested(null); + } + + public UserNested withNewUserLike(V1UserSubject item) { + return new UserNested(item); + } + + public A withServiceAccount(V1ServiceAccountSubject serviceAccount) { + this._visitables.remove("serviceAccount"); + if (serviceAccount != null) { + this.serviceAccount = new V1ServiceAccountSubjectBuilder(serviceAccount); + this._visitables.get("serviceAccount").add(this.serviceAccount); + } else { + this.serviceAccount = null; + this._visitables.get("serviceAccount").remove(this.serviceAccount); + } + return (A) this; + } + + public A withUser(V1UserSubject user) { + this._visitables.remove("user"); + if (user != null) { + this.user = new V1UserSubjectBuilder(user); + this._visitables.get("user").add(this.user); + } else { + this.user = null; + this._visitables.get("user").remove(this.user); + } + return (A) this; + } public class GroupNested extends V1GroupSubjectFluent> implements Nested{ + + V1GroupSubjectBuilder builder; + GroupNested(V1GroupSubject item) { this.builder = new V1GroupSubjectBuilder(this, item); } - V1GroupSubjectBuilder builder; - + public N and() { return (N) FlowcontrolV1SubjectFluent.this.withGroup(builder.build()); } @@ -237,14 +241,15 @@ public N endGroup() { return and(); } - } public class ServiceAccountNested extends V1ServiceAccountSubjectFluent> implements Nested{ + + V1ServiceAccountSubjectBuilder builder; + ServiceAccountNested(V1ServiceAccountSubject item) { this.builder = new V1ServiceAccountSubjectBuilder(this, item); } - V1ServiceAccountSubjectBuilder builder; - + public N and() { return (N) FlowcontrolV1SubjectFluent.this.withServiceAccount(builder.build()); } @@ -253,14 +258,15 @@ public N endServiceAccount() { return and(); } - } public class UserNested extends V1UserSubjectFluent> implements Nested{ + + V1UserSubjectBuilder builder; + UserNested(V1UserSubject item) { this.builder = new V1UserSubjectBuilder(this, item); } - V1UserSubjectBuilder builder; - + public N and() { return (N) FlowcontrolV1SubjectFluent.this.withUser(builder.build()); } @@ -269,7 +275,5 @@ public N endUser() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectBuilder.java index e28adbc080..2c1179beac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class RbacV1SubjectBuilder extends RbacV1SubjectFluent implements VisitableBuilder{ + + RbacV1SubjectFluent fluent; + public RbacV1SubjectBuilder() { this(new RbacV1Subject()); } @@ -11,17 +14,16 @@ public RbacV1SubjectBuilder(RbacV1SubjectFluent fluent) { this(fluent, new RbacV1Subject()); } - public RbacV1SubjectBuilder(RbacV1SubjectFluent fluent,RbacV1Subject instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public RbacV1SubjectBuilder(RbacV1Subject instance) { this.fluent = this; this.copyInstance(instance); } - RbacV1SubjectFluent fluent; + public RbacV1SubjectBuilder(RbacV1SubjectFluent fluent,RbacV1Subject instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public RbacV1Subject build() { RbacV1Subject buildable = new RbacV1Subject(); buildable.setApiGroup(fluent.getApiGroup()); @@ -31,5 +33,4 @@ public RbacV1Subject build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectFluent.java index 4755fd2e4b..f182562ff6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class RbacV1SubjectFluent> extends BaseFluent{ + + private String apiGroup; + private String kind; + private String name; + private String namespace; + public RbacV1SubjectFluent() { } public RbacV1SubjectFluent(RbacV1Subject instance) { this.copyInstance(instance); } - private String apiGroup; - private String kind; - private String name; - private String namespace; - + protected void copyInstance(RbacV1Subject instance) { instance = instance != null ? instance : new RbacV1Subject(); if (instance != null) { @@ -33,58 +35,6 @@ protected void copyInstance(RbacV1Subject instance) { } } - public String getApiGroup() { - return this.apiGroup; - } - - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; - } - - public boolean hasApiGroup() { - return this.apiGroup != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -111,6 +61,38 @@ public boolean equals(Object o) { return true; } + public String getApiGroup() { + return this.apiGroup; + } + + public String getKind() { + return this.kind; + } + + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + public int hashCode() { return Objects.hash(apiGroup, kind, name, namespace); } @@ -141,5 +123,24 @@ public String toString() { return sb.toString(); } - + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimBuilder.java index ea7d59f31a..c20c868540 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class ResourceV1ResourceClaimBuilder extends ResourceV1ResourceClaimFluent implements VisitableBuilder{ + + ResourceV1ResourceClaimFluent fluent; + public ResourceV1ResourceClaimBuilder() { this(new ResourceV1ResourceClaim()); } @@ -11,17 +14,16 @@ public ResourceV1ResourceClaimBuilder(ResourceV1ResourceClaimFluent fluent) { this(fluent, new ResourceV1ResourceClaim()); } - public ResourceV1ResourceClaimBuilder(ResourceV1ResourceClaimFluent fluent,ResourceV1ResourceClaim instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public ResourceV1ResourceClaimBuilder(ResourceV1ResourceClaim instance) { this.fluent = this; this.copyInstance(instance); } - ResourceV1ResourceClaimFluent fluent; + public ResourceV1ResourceClaimBuilder(ResourceV1ResourceClaimFluent fluent,ResourceV1ResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public ResourceV1ResourceClaim build() { ResourceV1ResourceClaim buildable = new ResourceV1ResourceClaim(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public ResourceV1ResourceClaim build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimFluent.java index 075e2a5de7..60e1291f27 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class ResourceV1ResourceClaimFluent> extends BaseFluent{ - public ResourceV1ResourceClaimFluent() { - } - - public ResourceV1ResourceClaimFluent(ResourceV1ResourceClaim instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1ResourceClaimSpecBuilder spec; private V1ResourceClaimStatusBuilder status; - - protected void copyInstance(ResourceV1ResourceClaim instance) { - instance = instance != null ? instance : new ResourceV1ResourceClaim(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public ResourceV1ResourceClaimFluent() { } - public boolean hasKind() { - return this.kind != null; + public ResourceV1ResourceClaimFluent(ResourceV1ResourceClaim instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1ResourceClaimStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(ResourceV1ResourceClaim instance) { + instance = instance != null ? instance : new ResourceV1ResourceClaim(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ResourceClaimSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1ResourceClaimSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1ResourceClaimSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1ResourceClaimSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ResourceClaimSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1ResourceClaimSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1ResourceClaimStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1ResourceClaimStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1ResourceClaimStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ResourceClaimStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1ResourceClaimStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1ResourceClaimStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ResourceClaimStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1ResourceClaimStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ResourceClaimSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1ResourceClaimStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1ResourceClaimSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ResourceClaimSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1ResourceClaimStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1ResourceClaimStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) ResourceV1ResourceClaimFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ResourceClaimSpecFluent> implements Nested{ + + V1ResourceClaimSpecBuilder builder; + SpecNested(V1ResourceClaimSpec item) { this.builder = new V1ResourceClaimSpecBuilder(this, item); } - V1ResourceClaimSpecBuilder builder; - + public N and() { return (N) ResourceV1ResourceClaimFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1ResourceClaimStatusFluent> implements Nested{ + + V1ResourceClaimStatusBuilder builder; + StatusNested(V1ResourceClaimStatus item) { this.builder = new V1ResourceClaimStatusBuilder(this, item); } - V1ResourceClaimStatusBuilder builder; - + public N and() { return (N) ResourceV1ResourceClaimFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java index 9c6ed3e196..fd39fb759c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class StorageV1TokenRequestBuilder extends StorageV1TokenRequestFluent implements VisitableBuilder{ + + StorageV1TokenRequestFluent fluent; + public StorageV1TokenRequestBuilder() { this(new StorageV1TokenRequest()); } @@ -11,17 +14,16 @@ public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent fluent) { this(fluent, new StorageV1TokenRequest()); } - public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent fluent,StorageV1TokenRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public StorageV1TokenRequestBuilder(StorageV1TokenRequest instance) { this.fluent = this; this.copyInstance(instance); } - StorageV1TokenRequestFluent fluent; + public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent fluent,StorageV1TokenRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public StorageV1TokenRequest build() { StorageV1TokenRequest buildable = new StorageV1TokenRequest(); buildable.setAudience(fluent.getAudience()); @@ -29,5 +31,4 @@ public StorageV1TokenRequest build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java index b709b00bd9..524c7eb13a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class StorageV1TokenRequestFluent> extends BaseFluent{ + + private String audience; + private Long expirationSeconds; + public StorageV1TokenRequestFluent() { } public StorageV1TokenRequestFluent(StorageV1TokenRequest instance) { this.copyInstance(instance); } - private String audience; - private Long expirationSeconds; - + protected void copyInstance(StorageV1TokenRequest instance) { instance = instance != null ? instance : new StorageV1TokenRequest(); if (instance != null) { @@ -30,32 +32,6 @@ protected void copyInstance(StorageV1TokenRequest instance) { } } - public String getAudience() { - return this.audience; - } - - public A withAudience(String audience) { - this.audience = audience; - return (A) this; - } - - public boolean hasAudience() { - return this.audience != null; - } - - public Long getExpirationSeconds() { - return this.expirationSeconds; - } - - public A withExpirationSeconds(Long expirationSeconds) { - this.expirationSeconds = expirationSeconds; - return (A) this; - } - - public boolean hasExpirationSeconds() { - return this.expirationSeconds != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -76,6 +52,22 @@ public boolean equals(Object o) { return true; } + public String getAudience() { + return this.audience; + } + + public Long getExpirationSeconds() { + return this.expirationSeconds; + } + + public boolean hasAudience() { + return this.audience != null; + } + + public boolean hasExpirationSeconds() { + return this.expirationSeconds != null; + } + public int hashCode() { return Objects.hash(audience, expirationSeconds); } @@ -96,5 +88,14 @@ public String toString() { return sb.toString(); } - + public A withAudience(String audience) { + this.audience = audience; + return (A) this; + } + + public A withExpirationSeconds(Long expirationSeconds) { + this.expirationSeconds = expirationSeconds; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java index 7510936aca..ca340adf62 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1APIGroupBuilder extends V1APIGroupFluent implements VisitableBuilder{ + + V1APIGroupFluent fluent; + public V1APIGroupBuilder() { this(new V1APIGroup()); } @@ -11,17 +14,16 @@ public V1APIGroupBuilder(V1APIGroupFluent fluent) { this(fluent, new V1APIGroup()); } - public V1APIGroupBuilder(V1APIGroupFluent fluent,V1APIGroup instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIGroupBuilder(V1APIGroup instance) { this.fluent = this; this.copyInstance(instance); } - V1APIGroupFluent fluent; + public V1APIGroupBuilder(V1APIGroupFluent fluent,V1APIGroup instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIGroup build() { V1APIGroup buildable = new V1APIGroup(); buildable.setApiVersion(fluent.getApiVersion()); @@ -33,5 +35,4 @@ public V1APIGroup build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java index 2f71510275..957eb12f0e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java @@ -1,145 +1,93 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1APIGroupFluent> extends BaseFluent{ - public V1APIGroupFluent() { - } - - public V1APIGroupFluent(V1APIGroup instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private String name; private V1GroupVersionForDiscoveryBuilder preferredVersion; private ArrayList serverAddressByClientCIDRs; private ArrayList versions; - - protected void copyInstance(V1APIGroup instance) { - instance = instance != null ? instance : new V1APIGroup(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withPreferredVersion(instance.getPreferredVersion()); - this.withServerAddressByClientCIDRs(instance.getServerAddressByClientCIDRs()); - this.withVersions(instance.getVersions()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; + + public V1APIGroupFluent() { } - public String getName() { - return this.name; + public V1APIGroupFluent(V1APIGroup instance) { + this.copyInstance(instance); } - - public A withName(String name) { - this.name = name; + + public A addAllToServerAddressByClientCIDRs(Collection items) { + if (this.serverAddressByClientCIDRs == null) { + this.serverAddressByClientCIDRs = new ArrayList(); + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").add(builder); + this.serverAddressByClientCIDRs.add(builder); + } return (A) this; } - public boolean hasName() { - return this.name != null; - } - - public V1GroupVersionForDiscovery buildPreferredVersion() { - return this.preferredVersion != null ? this.preferredVersion.build() : null; - } - - public A withPreferredVersion(V1GroupVersionForDiscovery preferredVersion) { - this._visitables.remove("preferredVersion"); - if (preferredVersion != null) { - this.preferredVersion = new V1GroupVersionForDiscoveryBuilder(preferredVersion); - this._visitables.get("preferredVersion").add(this.preferredVersion); - } else { - this.preferredVersion = null; - this._visitables.get("preferredVersion").remove(this.preferredVersion); + public A addAllToVersions(Collection items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (V1GroupVersionForDiscovery item : items) { + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); + _visitables.get("versions").add(builder); + this.versions.add(builder); } return (A) this; } - public boolean hasPreferredVersion() { - return this.preferredVersion != null; - } - - public PreferredVersionNested withNewPreferredVersion() { - return new PreferredVersionNested(null); - } - - public PreferredVersionNested withNewPreferredVersionLike(V1GroupVersionForDiscovery item) { - return new PreferredVersionNested(item); + public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDR() { + return new ServerAddressByClientCIDRsNested(-1, null); } - public PreferredVersionNested editPreferredVersion() { - return this.withNewPreferredVersionLike(Optional.ofNullable(this.buildPreferredVersion()).orElse(null)); + public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDRLike(V1ServerAddressByClientCIDR item) { + return new ServerAddressByClientCIDRsNested(-1, item); } - public PreferredVersionNested editOrNewPreferredVersion() { - return this.withNewPreferredVersionLike(Optional.ofNullable(this.buildPreferredVersion()).orElse(new V1GroupVersionForDiscoveryBuilder().build())); + public VersionsNested addNewVersion() { + return new VersionsNested(-1, null); } - public PreferredVersionNested editOrNewPreferredVersionLike(V1GroupVersionForDiscovery item) { - return this.withNewPreferredVersionLike(Optional.ofNullable(this.buildPreferredVersion()).orElse(item)); + public VersionsNested addNewVersionLike(V1GroupVersionForDiscovery item) { + return new VersionsNested(-1, item); } - public A addToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { + public A addToServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { if (this.serverAddressByClientCIDRs == null) { this.serverAddressByClientCIDRs = new ArrayList(); } - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - if (index < 0 || index >= serverAddressByClientCIDRs.size()) { - _visitables.get("serverAddressByClientCIDRs").add(builder); - serverAddressByClientCIDRs.add(builder); - } else { + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); _visitables.get("serverAddressByClientCIDRs").add(builder); - serverAddressByClientCIDRs.add(index, builder); + this.serverAddressByClientCIDRs.add(builder); } return (A) this; } - public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { + public A addToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { if (this.serverAddressByClientCIDRs == null) { this.serverAddressByClientCIDRs = new ArrayList(); } @@ -149,91 +97,54 @@ public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR i serverAddressByClientCIDRs.add(builder); } else { _visitables.get("serverAddressByClientCIDRs").add(builder); - serverAddressByClientCIDRs.set(index, builder); - } - return (A) this; - } - - public A addToServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { - if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); - } - for (V1ServerAddressByClientCIDR item : items) { - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - _visitables.get("serverAddressByClientCIDRs").add(builder); - this.serverAddressByClientCIDRs.add(builder); - } - return (A) this; - } - - public A addAllToServerAddressByClientCIDRs(Collection items) { - if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); - } - for (V1ServerAddressByClientCIDR item : items) { - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - _visitables.get("serverAddressByClientCIDRs").add(builder); - this.serverAddressByClientCIDRs.add(builder); - } - return (A) this; - } - - public A removeFromServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { - if (this.serverAddressByClientCIDRs == null) { - return (A) this; - } - for (V1ServerAddressByClientCIDR item : items) { - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - _visitables.get("serverAddressByClientCIDRs").remove(builder); - this.serverAddressByClientCIDRs.remove(builder); + serverAddressByClientCIDRs.add(index, builder); } return (A) this; } - public A removeAllFromServerAddressByClientCIDRs(Collection items) { - if (this.serverAddressByClientCIDRs == null) { - return (A) this; + public A addToVersions(V1GroupVersionForDiscovery... items) { + if (this.versions == null) { + this.versions = new ArrayList(); } - for (V1ServerAddressByClientCIDR item : items) { - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - _visitables.get("serverAddressByClientCIDRs").remove(builder); - this.serverAddressByClientCIDRs.remove(builder); + for (V1GroupVersionForDiscovery item : items) { + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); + _visitables.get("versions").add(builder); + this.versions.add(builder); } return (A) this; } - public A removeMatchingFromServerAddressByClientCIDRs(Predicate predicate) { - if (serverAddressByClientCIDRs == null) { - return (A) this; + public A addToVersions(int index,V1GroupVersionForDiscovery item) { + if (this.versions == null) { + this.versions = new ArrayList(); } - Iterator each = serverAddressByClientCIDRs.iterator(); - List visitables = _visitables.get("serverAddressByClientCIDRs"); - while (each.hasNext()) { - V1ServerAddressByClientCIDRBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); + if (index < 0 || index >= versions.size()) { + _visitables.get("versions").add(builder); + versions.add(builder); + } else { + _visitables.get("versions").add(builder); + versions.add(index, builder); } return (A) this; } - public List buildServerAddressByClientCIDRs() { - return this.serverAddressByClientCIDRs != null ? build(serverAddressByClientCIDRs) : null; - } - - public V1ServerAddressByClientCIDR buildServerAddressByClientCIDR(int index) { - return this.serverAddressByClientCIDRs.get(index).build(); - } - public V1ServerAddressByClientCIDR buildFirstServerAddressByClientCIDR() { return this.serverAddressByClientCIDRs.get(0).build(); } + public V1GroupVersionForDiscovery buildFirstVersion() { + return this.versions.get(0).build(); + } + public V1ServerAddressByClientCIDR buildLastServerAddressByClientCIDR() { return this.serverAddressByClientCIDRs.get(serverAddressByClientCIDRs.size() - 1).build(); } + public V1GroupVersionForDiscovery buildLastVersion() { + return this.versions.get(versions.size() - 1).build(); + } + public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR(Predicate predicate) { for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { if (predicate.test(item)) { @@ -243,64 +154,45 @@ public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR(Predic return null; } - public boolean hasMatchingServerAddressByClientCIDR(Predicate predicate) { - for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { + public V1GroupVersionForDiscovery buildMatchingVersion(Predicate predicate) { + for (V1GroupVersionForDiscoveryBuilder item : versions) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withServerAddressByClientCIDRs(List serverAddressByClientCIDRs) { - if (this.serverAddressByClientCIDRs != null) { - this._visitables.get("serverAddressByClientCIDRs").clear(); - } - if (serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs = new ArrayList(); - for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { - this.addToServerAddressByClientCIDRs(item); - } - } else { - this.serverAddressByClientCIDRs = null; - } - return (A) this; + public V1GroupVersionForDiscovery buildPreferredVersion() { + return this.preferredVersion != null ? this.preferredVersion.build() : null; } - public A withServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... serverAddressByClientCIDRs) { - if (this.serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs.clear(); - _visitables.remove("serverAddressByClientCIDRs"); - } - if (serverAddressByClientCIDRs != null) { - for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { - this.addToServerAddressByClientCIDRs(item); - } - } - return (A) this; - } - - public boolean hasServerAddressByClientCIDRs() { - return this.serverAddressByClientCIDRs != null && !(this.serverAddressByClientCIDRs.isEmpty()); + public V1ServerAddressByClientCIDR buildServerAddressByClientCIDR(int index) { + return this.serverAddressByClientCIDRs.get(index).build(); } - public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDR() { - return new ServerAddressByClientCIDRsNested(-1, null); + public List buildServerAddressByClientCIDRs() { + return this.serverAddressByClientCIDRs != null ? build(serverAddressByClientCIDRs) : null; } - public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDRLike(V1ServerAddressByClientCIDR item) { - return new ServerAddressByClientCIDRsNested(-1, item); + public V1GroupVersionForDiscovery buildVersion(int index) { + return this.versions.get(index).build(); } - public ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike(int index,V1ServerAddressByClientCIDR item) { - return new ServerAddressByClientCIDRsNested(index, item); + public List buildVersions() { + return this.versions != null ? build(versions) : null; } - public ServerAddressByClientCIDRsNested editServerAddressByClientCIDR(int index) { - if (index <= serverAddressByClientCIDRs.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "serverAddressByClientCIDRs")); + protected void copyInstance(V1APIGroup instance) { + instance = instance != null ? instance : new V1APIGroup(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withPreferredVersion(instance.getPreferredVersion()); + this.withServerAddressByClientCIDRs(instance.getServerAddressByClientCIDRs()); + this.withVersions(instance.getVersions()); } - return this.setNewServerAddressByClientCIDRLike(index, this.buildServerAddressByClientCIDR(index)); } public ServerAddressByClientCIDRsNested editFirstServerAddressByClientCIDR() { @@ -310,6 +202,13 @@ public ServerAddressByClientCIDRsNested editFirstServerAddressByClientCIDR() return this.setNewServerAddressByClientCIDRLike(0, this.buildServerAddressByClientCIDR(0)); } + public VersionsNested editFirstVersion() { + if (versions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "versions")); + } + return this.setNewVersionLike(0, this.buildVersion(0)); + } + public ServerAddressByClientCIDRsNested editLastServerAddressByClientCIDR() { int index = serverAddressByClientCIDRs.size() - 1; if (index < 0) { @@ -318,6 +217,14 @@ public ServerAddressByClientCIDRsNested editLastServerAddressByClientCIDR() { return this.setNewServerAddressByClientCIDRLike(index, this.buildServerAddressByClientCIDR(index)); } + public VersionsNested editLastVersion() { + int index = versions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "versions")); + } + return this.setNewVersionLike(index, this.buildVersion(index)); + } + public ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR(Predicate predicate) { int index = -1; for (int i = 0;i < serverAddressByClientCIDRs.size();i++) { @@ -332,123 +239,105 @@ public ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR return this.setNewServerAddressByClientCIDRLike(index, this.buildServerAddressByClientCIDR(index)); } - public A addToVersions(int index,V1GroupVersionForDiscovery item) { - if (this.versions == null) { - this.versions = new ArrayList(); + public VersionsNested editMatchingVersion(Predicate predicate) { + int index = -1; + for (int i = 0;i < versions.size();i++) { + if (predicate.test(versions.get(i))) { + index = i; + break; + } } - V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - if (index < 0 || index >= versions.size()) { - _visitables.get("versions").add(builder); - versions.add(builder); - } else { - _visitables.get("versions").add(builder); - versions.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "versions")); } - return (A) this; + return this.setNewVersionLike(index, this.buildVersion(index)); } - public A setToVersions(int index,V1GroupVersionForDiscovery item) { - if (this.versions == null) { - this.versions = new ArrayList(); - } - V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - if (index < 0 || index >= versions.size()) { - _visitables.get("versions").add(builder); - versions.add(builder); - } else { - _visitables.get("versions").add(builder); - versions.set(index, builder); - } - return (A) this; + public PreferredVersionNested editOrNewPreferredVersion() { + return this.withNewPreferredVersionLike(Optional.ofNullable(this.buildPreferredVersion()).orElse(new V1GroupVersionForDiscoveryBuilder().build())); } - public A addToVersions(V1GroupVersionForDiscovery... items) { - if (this.versions == null) { - this.versions = new ArrayList(); - } - for (V1GroupVersionForDiscovery item : items) { - V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - _visitables.get("versions").add(builder); - this.versions.add(builder); - } - return (A) this; + public PreferredVersionNested editOrNewPreferredVersionLike(V1GroupVersionForDiscovery item) { + return this.withNewPreferredVersionLike(Optional.ofNullable(this.buildPreferredVersion()).orElse(item)); } - public A addAllToVersions(Collection items) { - if (this.versions == null) { - this.versions = new ArrayList(); - } - for (V1GroupVersionForDiscovery item : items) { - V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - _visitables.get("versions").add(builder); - this.versions.add(builder); - } - return (A) this; + public PreferredVersionNested editPreferredVersion() { + return this.withNewPreferredVersionLike(Optional.ofNullable(this.buildPreferredVersion()).orElse(null)); } - public A removeFromVersions(V1GroupVersionForDiscovery... items) { - if (this.versions == null) { - return (A) this; - } - for (V1GroupVersionForDiscovery item : items) { - V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - _visitables.get("versions").remove(builder); - this.versions.remove(builder); + public ServerAddressByClientCIDRsNested editServerAddressByClientCIDR(int index) { + if (serverAddressByClientCIDRs.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "serverAddressByClientCIDRs")); } - return (A) this; + return this.setNewServerAddressByClientCIDRLike(index, this.buildServerAddressByClientCIDR(index)); } - public A removeAllFromVersions(Collection items) { - if (this.versions == null) { - return (A) this; - } - for (V1GroupVersionForDiscovery item : items) { - V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - _visitables.get("versions").remove(builder); - this.versions.remove(builder); + public VersionsNested editVersion(int index) { + if (versions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "versions")); } - return (A) this; + return this.setNewVersionLike(index, this.buildVersion(index)); } - public A removeMatchingFromVersions(Predicate predicate) { - if (versions == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - Iterator each = versions.iterator(); - List visitables = _visitables.get("versions"); - while (each.hasNext()) { - V1GroupVersionForDiscoveryBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1APIGroupFluent that = (V1APIGroupFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(preferredVersion, that.preferredVersion))) { + return false; + } + if (!(Objects.equals(serverAddressByClientCIDRs, that.serverAddressByClientCIDRs))) { + return false; + } + if (!(Objects.equals(versions, that.versions))) { + return false; + } + return true; } - public List buildVersions() { - return this.versions != null ? build(versions) : null; + public String getApiVersion() { + return this.apiVersion; } - public V1GroupVersionForDiscovery buildVersion(int index) { - return this.versions.get(index).build(); + public String getKind() { + return this.kind; } - public V1GroupVersionForDiscovery buildFirstVersion() { - return this.versions.get(0).build(); + public String getName() { + return this.name; } - public V1GroupVersionForDiscovery buildLastVersion() { - return this.versions.get(versions.size() - 1).build(); + public boolean hasApiVersion() { + return this.apiVersion != null; } - public V1GroupVersionForDiscovery buildMatchingVersion(Predicate predicate) { - for (V1GroupVersionForDiscoveryBuilder item : versions) { + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingServerAddressByClientCIDR(Predicate predicate) { + for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingVersion(Predicate predicate) { @@ -460,120 +349,142 @@ public boolean hasMatchingVersion(Predicate p return false; } - public A withVersions(List versions) { - if (this.versions != null) { - this._visitables.get("versions").clear(); + public boolean hasName() { + return this.name != null; + } + + public boolean hasPreferredVersion() { + return this.preferredVersion != null; + } + + public boolean hasServerAddressByClientCIDRs() { + return this.serverAddressByClientCIDRs != null && !(this.serverAddressByClientCIDRs.isEmpty()); + } + + public boolean hasVersions() { + return this.versions != null && !(this.versions.isEmpty()); + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, name, preferredVersion, serverAddressByClientCIDRs, versions); + } + + public A removeAllFromServerAddressByClientCIDRs(Collection items) { + if (this.serverAddressByClientCIDRs == null) { + return (A) this; } - if (versions != null) { - this.versions = new ArrayList(); - for (V1GroupVersionForDiscovery item : versions) { - this.addToVersions(item); - } - } else { - this.versions = null; + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").remove(builder); + this.serverAddressByClientCIDRs.remove(builder); + } + return (A) this; + } + + public A removeAllFromVersions(Collection items) { + if (this.versions == null) { + return (A) this; + } + for (V1GroupVersionForDiscovery item : items) { + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); + _visitables.get("versions").remove(builder); + this.versions.remove(builder); + } + return (A) this; + } + + public A removeFromServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { + if (this.serverAddressByClientCIDRs == null) { + return (A) this; + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").remove(builder); + this.serverAddressByClientCIDRs.remove(builder); } return (A) this; } - public A withVersions(V1GroupVersionForDiscovery... versions) { - if (this.versions != null) { - this.versions.clear(); - _visitables.remove("versions"); + public A removeFromVersions(V1GroupVersionForDiscovery... items) { + if (this.versions == null) { + return (A) this; } - if (versions != null) { - for (V1GroupVersionForDiscovery item : versions) { - this.addToVersions(item); - } + for (V1GroupVersionForDiscovery item : items) { + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); + _visitables.get("versions").remove(builder); + this.versions.remove(builder); } return (A) this; } - public boolean hasVersions() { - return this.versions != null && !(this.versions.isEmpty()); + public A removeMatchingFromServerAddressByClientCIDRs(Predicate predicate) { + if (serverAddressByClientCIDRs == null) { + return (A) this; + } + Iterator each = serverAddressByClientCIDRs.iterator(); + List visitables = _visitables.get("serverAddressByClientCIDRs"); + while (each.hasNext()) { + V1ServerAddressByClientCIDRBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public VersionsNested addNewVersion() { - return new VersionsNested(-1, null); + public A removeMatchingFromVersions(Predicate predicate) { + if (versions == null) { + return (A) this; + } + Iterator each = versions.iterator(); + List visitables = _visitables.get("versions"); + while (each.hasNext()) { + V1GroupVersionForDiscoveryBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public VersionsNested addNewVersionLike(V1GroupVersionForDiscovery item) { - return new VersionsNested(-1, item); + public ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike(int index,V1ServerAddressByClientCIDR item) { + return new ServerAddressByClientCIDRsNested(index, item); } public VersionsNested setNewVersionLike(int index,V1GroupVersionForDiscovery item) { return new VersionsNested(index, item); } - public VersionsNested editVersion(int index) { - if (index <= versions.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "versions")); - } - return this.setNewVersionLike(index, this.buildVersion(index)); - } - - public VersionsNested editFirstVersion() { - if (versions.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "versions")); - } - return this.setNewVersionLike(0, this.buildVersion(0)); - } - - public VersionsNested editLastVersion() { - int index = versions.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "versions")); - } - return this.setNewVersionLike(index, this.buildVersion(index)); - } - - public VersionsNested editMatchingVersion(Predicate predicate) { - int index = -1; - for (int i = 0;i < versions.size();i++) { - if (predicate.test(versions.get(i))) { - index = i; - break; - } + public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { + if (this.serverAddressByClientCIDRs == null) { + this.serverAddressByClientCIDRs = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "versions")); + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + if (index < 0 || index >= serverAddressByClientCIDRs.size()) { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.add(builder); + } else { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.set(index, builder); } - return this.setNewVersionLike(index, this.buildVersion(index)); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1APIGroupFluent that = (V1APIGroupFluent) o; - if (!(Objects.equals(apiVersion, that.apiVersion))) { - return false; - } - if (!(Objects.equals(kind, that.kind))) { - return false; - } - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(preferredVersion, that.preferredVersion))) { - return false; - } - if (!(Objects.equals(serverAddressByClientCIDRs, that.serverAddressByClientCIDRs))) { - return false; + public A setToVersions(int index,V1GroupVersionForDiscovery item) { + if (this.versions == null) { + this.versions = new ArrayList(); } - if (!(Objects.equals(versions, that.versions))) { - return false; + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); + if (index < 0 || index >= versions.size()) { + _visitables.get("versions").add(builder); + versions.add(builder); + } else { + _visitables.get("versions").add(builder); + versions.set(index, builder); } - return true; - } - - public int hashCode() { - return Objects.hash(apiVersion, kind, name, preferredVersion, serverAddressByClientCIDRs, versions); + return (A) this; } public String toString() { @@ -611,12 +522,105 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public PreferredVersionNested withNewPreferredVersion() { + return new PreferredVersionNested(null); + } + + public PreferredVersionNested withNewPreferredVersionLike(V1GroupVersionForDiscovery item) { + return new PreferredVersionNested(item); + } + + public A withPreferredVersion(V1GroupVersionForDiscovery preferredVersion) { + this._visitables.remove("preferredVersion"); + if (preferredVersion != null) { + this.preferredVersion = new V1GroupVersionForDiscoveryBuilder(preferredVersion); + this._visitables.get("preferredVersion").add(this.preferredVersion); + } else { + this.preferredVersion = null; + this._visitables.get("preferredVersion").remove(this.preferredVersion); + } + return (A) this; + } + + public A withServerAddressByClientCIDRs(List serverAddressByClientCIDRs) { + if (this.serverAddressByClientCIDRs != null) { + this._visitables.get("serverAddressByClientCIDRs").clear(); + } + if (serverAddressByClientCIDRs != null) { + this.serverAddressByClientCIDRs = new ArrayList(); + for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { + this.addToServerAddressByClientCIDRs(item); + } + } else { + this.serverAddressByClientCIDRs = null; + } + return (A) this; + } + + public A withServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... serverAddressByClientCIDRs) { + if (this.serverAddressByClientCIDRs != null) { + this.serverAddressByClientCIDRs.clear(); + _visitables.remove("serverAddressByClientCIDRs"); + } + if (serverAddressByClientCIDRs != null) { + for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { + this.addToServerAddressByClientCIDRs(item); + } + } + return (A) this; + } + + public A withVersions(List versions) { + if (this.versions != null) { + this._visitables.get("versions").clear(); + } + if (versions != null) { + this.versions = new ArrayList(); + for (V1GroupVersionForDiscovery item : versions) { + this.addToVersions(item); + } + } else { + this.versions = null; + } + return (A) this; + } + + public A withVersions(V1GroupVersionForDiscovery... versions) { + if (this.versions != null) { + this.versions.clear(); + _visitables.remove("versions"); + } + if (versions != null) { + for (V1GroupVersionForDiscovery item : versions) { + this.addToVersions(item); + } + } + return (A) this; + } public class PreferredVersionNested extends V1GroupVersionForDiscoveryFluent> implements Nested{ + + V1GroupVersionForDiscoveryBuilder builder; + PreferredVersionNested(V1GroupVersionForDiscovery item) { this.builder = new V1GroupVersionForDiscoveryBuilder(this, item); } - V1GroupVersionForDiscoveryBuilder builder; - + public N and() { return (N) V1APIGroupFluent.this.withPreferredVersion(builder.build()); } @@ -625,16 +629,17 @@ public N endPreferredVersion() { return and(); } - } public class ServerAddressByClientCIDRsNested extends V1ServerAddressByClientCIDRFluent> implements Nested{ + + V1ServerAddressByClientCIDRBuilder builder; + int index; + ServerAddressByClientCIDRsNested(int index,V1ServerAddressByClientCIDR item) { this.index = index; this.builder = new V1ServerAddressByClientCIDRBuilder(this, item); } - V1ServerAddressByClientCIDRBuilder builder; - int index; - + public N and() { return (N) V1APIGroupFluent.this.setToServerAddressByClientCIDRs(index, builder.build()); } @@ -643,16 +648,17 @@ public N endServerAddressByClientCIDR() { return and(); } - } public class VersionsNested extends V1GroupVersionForDiscoveryFluent> implements Nested{ + + V1GroupVersionForDiscoveryBuilder builder; + int index; + VersionsNested(int index,V1GroupVersionForDiscovery item) { this.index = index; this.builder = new V1GroupVersionForDiscoveryBuilder(this, item); } - V1GroupVersionForDiscoveryBuilder builder; - int index; - + public N and() { return (N) V1APIGroupFluent.this.setToVersions(index, builder.build()); } @@ -661,7 +667,5 @@ public N endVersion() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java index f308841ee3..3b7e9eff22 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1APIGroupListBuilder extends V1APIGroupListFluent implements VisitableBuilder{ + + V1APIGroupListFluent fluent; + public V1APIGroupListBuilder() { this(new V1APIGroupList()); } @@ -11,17 +14,16 @@ public V1APIGroupListBuilder(V1APIGroupListFluent fluent) { this(fluent, new V1APIGroupList()); } - public V1APIGroupListBuilder(V1APIGroupListFluent fluent,V1APIGroupList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIGroupListBuilder(V1APIGroupList instance) { this.fluent = this; this.copyInstance(instance); } - V1APIGroupListFluent fluent; + public V1APIGroupListBuilder(V1APIGroupListFluent fluent,V1APIGroupList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIGroupList build() { V1APIGroupList buildable = new V1APIGroupList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +32,4 @@ public V1APIGroupList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java index f60dde2542..6979ed4362 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java @@ -1,84 +1,54 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1APIGroupListFluent> extends BaseFluent{ - public V1APIGroupListFluent() { - } - - public V1APIGroupListFluent(V1APIGroupList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList groups; private String kind; - - protected void copyInstance(V1APIGroupList instance) { - instance = instance != null ? instance : new V1APIGroupList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withGroups(instance.getGroups()); - this.withKind(instance.getKind()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1APIGroupListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1APIGroupListFluent(V1APIGroupList instance) { + this.copyInstance(instance); } - - public A addToGroups(int index,V1APIGroup item) { + + public A addAllToGroups(Collection items) { if (this.groups == null) { this.groups = new ArrayList(); } - V1APIGroupBuilder builder = new V1APIGroupBuilder(item); - if (index < 0 || index >= groups.size()) { - _visitables.get("groups").add(builder); - groups.add(builder); - } else { + for (V1APIGroup item : items) { + V1APIGroupBuilder builder = new V1APIGroupBuilder(item); _visitables.get("groups").add(builder); - groups.add(index, builder); + this.groups.add(builder); } return (A) this; } - public A setToGroups(int index,V1APIGroup item) { - if (this.groups == null) { - this.groups = new ArrayList(); - } - V1APIGroupBuilder builder = new V1APIGroupBuilder(item); - if (index < 0 || index >= groups.size()) { - _visitables.get("groups").add(builder); - groups.add(builder); - } else { - _visitables.get("groups").add(builder); - groups.set(index, builder); - } - return (A) this; + public GroupsNested addNewGroup() { + return new GroupsNested(-1, null); + } + + public GroupsNested addNewGroupLike(V1APIGroup item) { + return new GroupsNested(-1, item); } public A addToGroups(V1APIGroup... items) { @@ -93,68 +63,31 @@ public A addToGroups(V1APIGroup... items) { return (A) this; } - public A addAllToGroups(Collection items) { + public A addToGroups(int index,V1APIGroup item) { if (this.groups == null) { this.groups = new ArrayList(); } - for (V1APIGroup item : items) { - V1APIGroupBuilder builder = new V1APIGroupBuilder(item); + V1APIGroupBuilder builder = new V1APIGroupBuilder(item); + if (index < 0 || index >= groups.size()) { _visitables.get("groups").add(builder); - this.groups.add(builder); - } - return (A) this; - } - - public A removeFromGroups(V1APIGroup... items) { - if (this.groups == null) { - return (A) this; - } - for (V1APIGroup item : items) { - V1APIGroupBuilder builder = new V1APIGroupBuilder(item); - _visitables.get("groups").remove(builder); - this.groups.remove(builder); - } - return (A) this; - } - - public A removeAllFromGroups(Collection items) { - if (this.groups == null) { - return (A) this; - } - for (V1APIGroup item : items) { - V1APIGroupBuilder builder = new V1APIGroupBuilder(item); - _visitables.get("groups").remove(builder); - this.groups.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromGroups(Predicate predicate) { - if (groups == null) { - return (A) this; - } - Iterator each = groups.iterator(); - List visitables = _visitables.get("groups"); - while (each.hasNext()) { - V1APIGroupBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + groups.add(builder); + } else { + _visitables.get("groups").add(builder); + groups.add(index, builder); } return (A) this; } - public List buildGroups() { - return this.groups != null ? build(groups) : null; + public V1APIGroup buildFirstGroup() { + return this.groups.get(0).build(); } public V1APIGroup buildGroup(int index) { return this.groups.get(index).build(); } - public V1APIGroup buildFirstGroup() { - return this.groups.get(0).build(); + public List buildGroups() { + return this.groups != null ? build(groups) : null; } public V1APIGroup buildLastGroup() { @@ -170,73 +103,29 @@ public V1APIGroup buildMatchingGroup(Predicate predicate) { return null; } - public boolean hasMatchingGroup(Predicate predicate) { - for (V1APIGroupBuilder item : groups) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withGroups(List groups) { - if (this.groups != null) { - this._visitables.get("groups").clear(); - } - if (groups != null) { - this.groups = new ArrayList(); - for (V1APIGroup item : groups) { - this.addToGroups(item); - } - } else { - this.groups = null; + protected void copyInstance(V1APIGroupList instance) { + instance = instance != null ? instance : new V1APIGroupList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withGroups(instance.getGroups()); + this.withKind(instance.getKind()); } - return (A) this; } - public A withGroups(V1APIGroup... groups) { - if (this.groups != null) { - this.groups.clear(); - _visitables.remove("groups"); - } - if (groups != null) { - for (V1APIGroup item : groups) { - this.addToGroups(item); - } + public GroupsNested editFirstGroup() { + if (groups.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "groups")); } - return (A) this; - } - - public boolean hasGroups() { - return this.groups != null && !(this.groups.isEmpty()); - } - - public GroupsNested addNewGroup() { - return new GroupsNested(-1, null); - } - - public GroupsNested addNewGroupLike(V1APIGroup item) { - return new GroupsNested(-1, item); - } - - public GroupsNested setNewGroupLike(int index,V1APIGroup item) { - return new GroupsNested(index, item); + return this.setNewGroupLike(0, this.buildGroup(0)); } public GroupsNested editGroup(int index) { - if (index <= groups.size()) { + if (groups.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "groups")); } return this.setNewGroupLike(index, this.buildGroup(index)); } - public GroupsNested editFirstGroup() { - if (groups.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "groups")); - } - return this.setNewGroupLike(0, this.buildGroup(0)); - } - public GroupsNested editLastGroup() { int index = groups.size() - 1; if (index < 0) { @@ -259,19 +148,6 @@ public GroupsNested editMatchingGroup(Predicate predicate) return this.setNewGroupLike(index, this.buildGroup(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -295,10 +171,98 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasGroups() { + return this.groups != null && !(this.groups.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingGroup(Predicate predicate) { + for (V1APIGroupBuilder item : groups) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(apiVersion, groups, kind); } + public A removeAllFromGroups(Collection items) { + if (this.groups == null) { + return (A) this; + } + for (V1APIGroup item : items) { + V1APIGroupBuilder builder = new V1APIGroupBuilder(item); + _visitables.get("groups").remove(builder); + this.groups.remove(builder); + } + return (A) this; + } + + public A removeFromGroups(V1APIGroup... items) { + if (this.groups == null) { + return (A) this; + } + for (V1APIGroup item : items) { + V1APIGroupBuilder builder = new V1APIGroupBuilder(item); + _visitables.get("groups").remove(builder); + this.groups.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromGroups(Predicate predicate) { + if (groups == null) { + return (A) this; + } + Iterator each = groups.iterator(); + List visitables = _visitables.get("groups"); + while (each.hasNext()) { + V1APIGroupBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public GroupsNested setNewGroupLike(int index,V1APIGroup item) { + return new GroupsNested(index, item); + } + + public A setToGroups(int index,V1APIGroup item) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + V1APIGroupBuilder builder = new V1APIGroupBuilder(item); + if (index < 0 || index >= groups.size()) { + _visitables.get("groups").add(builder); + groups.add(builder); + } else { + _visitables.get("groups").add(builder); + groups.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -319,14 +283,54 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withGroups(List groups) { + if (this.groups != null) { + this._visitables.get("groups").clear(); + } + if (groups != null) { + this.groups = new ArrayList(); + for (V1APIGroup item : groups) { + this.addToGroups(item); + } + } else { + this.groups = null; + } + return (A) this; + } + + public A withGroups(V1APIGroup... groups) { + if (this.groups != null) { + this.groups.clear(); + _visitables.remove("groups"); + } + if (groups != null) { + for (V1APIGroup item : groups) { + this.addToGroups(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } public class GroupsNested extends V1APIGroupFluent> implements Nested{ + + V1APIGroupBuilder builder; + int index; + GroupsNested(int index,V1APIGroup item) { this.index = index; this.builder = new V1APIGroupBuilder(this, item); } - V1APIGroupBuilder builder; - int index; - + public N and() { return (N) V1APIGroupListFluent.this.setToGroups(index, builder.build()); } @@ -335,7 +339,5 @@ public N endGroup() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java index bb8cabab61..1b7e109c92 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1APIResourceBuilder extends V1APIResourceFluent implements VisitableBuilder{ + + V1APIResourceFluent fluent; + public V1APIResourceBuilder() { this(new V1APIResource()); } @@ -11,17 +14,16 @@ public V1APIResourceBuilder(V1APIResourceFluent fluent) { this(fluent, new V1APIResource()); } - public V1APIResourceBuilder(V1APIResourceFluent fluent,V1APIResource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIResourceBuilder(V1APIResource instance) { this.fluent = this; this.copyInstance(instance); } - V1APIResourceFluent fluent; + public V1APIResourceBuilder(V1APIResourceFluent fluent,V1APIResource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIResource build() { V1APIResource buildable = new V1APIResource(); buildable.setCategories(fluent.getCategories()); @@ -37,5 +39,4 @@ public V1APIResource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java index ea5fd9798d..23db532936 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java @@ -1,28 +1,23 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1APIResourceFluent> extends BaseFluent{ - public V1APIResourceFluent() { - } - - public V1APIResourceFluent(V1APIResource instance) { - this.copyInstance(instance); - } + private List categories; private String group; private String kind; @@ -33,50 +28,45 @@ public V1APIResourceFluent(V1APIResource instance) { private String storageVersionHash; private List verbs; private String version; - - protected void copyInstance(V1APIResource instance) { - instance = instance != null ? instance : new V1APIResource(); - if (instance != null) { - this.withCategories(instance.getCategories()); - this.withGroup(instance.getGroup()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withNamespaced(instance.getNamespaced()); - this.withShortNames(instance.getShortNames()); - this.withSingularName(instance.getSingularName()); - this.withStorageVersionHash(instance.getStorageVersionHash()); - this.withVerbs(instance.getVerbs()); - this.withVersion(instance.getVersion()); - } + + public V1APIResourceFluent() { } - public A addToCategories(int index,String item) { + public V1APIResourceFluent(V1APIResource instance) { + this.copyInstance(instance); + } + + public A addAllToCategories(Collection items) { if (this.categories == null) { this.categories = new ArrayList(); } - this.categories.add(index, item); + for (String item : items) { + this.categories.add(item); + } return (A) this; } - public A setToCategories(int index,String item) { - if (this.categories == null) { - this.categories = new ArrayList(); + public A addAllToShortNames(Collection items) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + for (String item : items) { + this.shortNames.add(item); } - this.categories.set(index, item); return (A) this; } - public A addToCategories(String... items) { - if (this.categories == null) { - this.categories = new ArrayList(); + public A addAllToVerbs(Collection items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); } for (String item : items) { - this.categories.add(item); + this.verbs.add(item); } return (A) this; } - public A addAllToCategories(Collection items) { + public A addToCategories(String... items) { if (this.categories == null) { this.categories = new ArrayList(); } @@ -86,26 +76,110 @@ public A addAllToCategories(Collection items) { return (A) this; } - public A removeFromCategories(String... items) { + public A addToCategories(int index,String item) { if (this.categories == null) { - return (A) this; + this.categories = new ArrayList(); + } + this.categories.add(index, item); + return (A) this; + } + + public A addToShortNames(String... items) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); } for (String item : items) { - this.categories.remove(item); + this.shortNames.add(item); } return (A) this; } - public A removeAllFromCategories(Collection items) { - if (this.categories == null) { - return (A) this; + public A addToShortNames(int index,String item) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + this.shortNames.add(index, item); + return (A) this; + } + + public A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); } for (String item : items) { - this.categories.remove(item); + this.verbs.add(item); } return (A) this; } + public A addToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.add(index, item); + return (A) this; + } + + protected void copyInstance(V1APIResource instance) { + instance = instance != null ? instance : new V1APIResource(); + if (instance != null) { + this.withCategories(instance.getCategories()); + this.withGroup(instance.getGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withNamespaced(instance.getNamespaced()); + this.withShortNames(instance.getShortNames()); + this.withSingularName(instance.getSingularName()); + this.withStorageVersionHash(instance.getStorageVersionHash()); + this.withVerbs(instance.getVerbs()); + this.withVersion(instance.getVersion()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1APIResourceFluent that = (V1APIResourceFluent) o; + if (!(Objects.equals(categories, that.categories))) { + return false; + } + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespaced, that.namespaced))) { + return false; + } + if (!(Objects.equals(shortNames, that.shortNames))) { + return false; + } + if (!(Objects.equals(singularName, that.singularName))) { + return false; + } + if (!(Objects.equals(storageVersionHash, that.storageVersionHash))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } + if (!(Objects.equals(version, that.version))) { + return false; + } + return true; + } + public List getCategories() { return this.categories; } @@ -118,10 +192,34 @@ public String getFirstCategory() { return this.categories.get(0); } + public String getFirstShortName() { + return this.shortNames.get(0); + } + + public String getFirstVerb() { + return this.verbs.get(0); + } + + public String getGroup() { + return this.group; + } + + public String getKind() { + return this.kind; + } + public String getLastCategory() { return this.categories.get(categories.size() - 1); } + public String getLastShortName() { + return this.shortNames.get(shortNames.size() - 1); + } + + public String getLastVerb() { + return this.verbs.get(verbs.size() - 1); + } + public String getMatchingCategory(Predicate predicate) { for (String item : categories) { if (predicate.test(item)) { @@ -131,175 +229,79 @@ public String getMatchingCategory(Predicate predicate) { return null; } - public boolean hasMatchingCategory(Predicate predicate) { - for (String item : categories) { + public String getMatchingShortName(Predicate predicate) { + for (String item : shortNames) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withCategories(List categories) { - if (categories != null) { - this.categories = new ArrayList(); - for (String item : categories) { - this.addToCategories(item); + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return item; } - } else { - this.categories = null; - } - return (A) this; - } - - public A withCategories(String... categories) { - if (this.categories != null) { - this.categories.clear(); - _visitables.remove("categories"); - } - if (categories != null) { - for (String item : categories) { - this.addToCategories(item); } - } - return (A) this; + return null; } - public boolean hasCategories() { - return this.categories != null && !(this.categories.isEmpty()); + public String getName() { + return this.name; } - public String getGroup() { - return this.group; + public Boolean getNamespaced() { + return this.namespaced; } - public A withGroup(String group) { - this.group = group; - return (A) this; + public String getShortName(int index) { + return this.shortNames.get(index); } - public boolean hasGroup() { - return this.group != null; + public List getShortNames() { + return this.shortNames; } - public String getKind() { - return this.kind; + public String getSingularName() { + return this.singularName; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public String getStorageVersionHash() { + return this.storageVersionHash; } - public boolean hasKind() { - return this.kind != null; + public String getVerb(int index) { + return this.verbs.get(index); } - public String getName() { - return this.name; + public List getVerbs() { + return this.verbs; } - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public Boolean getNamespaced() { - return this.namespaced; - } - - public A withNamespaced(Boolean namespaced) { - this.namespaced = namespaced; - return (A) this; - } - - public boolean hasNamespaced() { - return this.namespaced != null; - } - - public A addToShortNames(int index,String item) { - if (this.shortNames == null) { - this.shortNames = new ArrayList(); - } - this.shortNames.add(index, item); - return (A) this; - } - - public A setToShortNames(int index,String item) { - if (this.shortNames == null) { - this.shortNames = new ArrayList(); - } - this.shortNames.set(index, item); - return (A) this; - } - - public A addToShortNames(String... items) { - if (this.shortNames == null) { - this.shortNames = new ArrayList(); - } - for (String item : items) { - this.shortNames.add(item); - } - return (A) this; - } - - public A addAllToShortNames(Collection items) { - if (this.shortNames == null) { - this.shortNames = new ArrayList(); - } - for (String item : items) { - this.shortNames.add(item); - } - return (A) this; - } - - public A removeFromShortNames(String... items) { - if (this.shortNames == null) { - return (A) this; - } - for (String item : items) { - this.shortNames.remove(item); - } - return (A) this; - } - - public A removeAllFromShortNames(Collection items) { - if (this.shortNames == null) { - return (A) this; - } - for (String item : items) { - this.shortNames.remove(item); - } - return (A) this; - } - - public List getShortNames() { - return this.shortNames; + public String getVersion() { + return this.version; } - public String getShortName(int index) { - return this.shortNames.get(index); + public boolean hasCategories() { + return this.categories != null && !(this.categories.isEmpty()); } - public String getFirstShortName() { - return this.shortNames.get(0); + public boolean hasGroup() { + return this.group != null; } - public String getLastShortName() { - return this.shortNames.get(shortNames.size() - 1); + public boolean hasKind() { + return this.kind != null; } - public String getMatchingShortName(Predicate predicate) { - for (String item : shortNames) { + public boolean hasMatchingCategory(Predicate predicate) { + for (String item : categories) { if (predicate.test(item)) { - return item; + return true; } } - return null; + return false; } public boolean hasMatchingShortName(Predicate predicate) { @@ -311,108 +313,98 @@ public boolean hasMatchingShortName(Predicate predicate) { return false; } - public A withShortNames(List shortNames) { - if (shortNames != null) { - this.shortNames = new ArrayList(); - for (String item : shortNames) { - this.addToShortNames(item); + public boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return true; } - } else { - this.shortNames = null; - } - return (A) this; - } - - public A withShortNames(String... shortNames) { - if (this.shortNames != null) { - this.shortNames.clear(); - _visitables.remove("shortNames"); - } - if (shortNames != null) { - for (String item : shortNames) { - this.addToShortNames(item); } - } - return (A) this; + return false; } - public boolean hasShortNames() { - return this.shortNames != null && !(this.shortNames.isEmpty()); + public boolean hasName() { + return this.name != null; } - public String getSingularName() { - return this.singularName; + public boolean hasNamespaced() { + return this.namespaced != null; } - public A withSingularName(String singularName) { - this.singularName = singularName; - return (A) this; + public boolean hasShortNames() { + return this.shortNames != null && !(this.shortNames.isEmpty()); } public boolean hasSingularName() { return this.singularName != null; } - public String getStorageVersionHash() { - return this.storageVersionHash; + public boolean hasStorageVersionHash() { + return this.storageVersionHash != null; } - public A withStorageVersionHash(String storageVersionHash) { - this.storageVersionHash = storageVersionHash; - return (A) this; + public boolean hasVerbs() { + return this.verbs != null && !(this.verbs.isEmpty()); } - public boolean hasStorageVersionHash() { - return this.storageVersionHash != null; + public boolean hasVersion() { + return this.version != null; } - public A addToVerbs(int index,String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); + public int hashCode() { + return Objects.hash(categories, group, kind, name, namespaced, shortNames, singularName, storageVersionHash, verbs, version); + } + + public A removeAllFromCategories(Collection items) { + if (this.categories == null) { + return (A) this; + } + for (String item : items) { + this.categories.remove(item); } - this.verbs.add(index, item); return (A) this; } - public A setToVerbs(int index,String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); + public A removeAllFromShortNames(Collection items) { + if (this.shortNames == null) { + return (A) this; + } + for (String item : items) { + this.shortNames.remove(item); } - this.verbs.set(index, item); return (A) this; } - public A addToVerbs(String... items) { + public A removeAllFromVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + return (A) this; } for (String item : items) { - this.verbs.add(item); + this.verbs.remove(item); } return (A) this; } - public A addAllToVerbs(Collection items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); + public A removeFromCategories(String... items) { + if (this.categories == null) { + return (A) this; } for (String item : items) { - this.verbs.add(item); + this.categories.remove(item); } return (A) this; } - public A removeFromVerbs(String... items) { - if (this.verbs == null) { + public A removeFromShortNames(String... items) { + if (this.shortNames == null) { return (A) this; } for (String item : items) { - this.verbs.remove(item); + this.shortNames.remove(item); } return (A) this; } - public A removeAllFromVerbs(Collection items) { + public A removeFromVerbs(String... items) { if (this.verbs == null) { return (A) this; } @@ -422,128 +414,28 @@ public A removeAllFromVerbs(Collection items) { return (A) this; } - public List getVerbs() { - return this.verbs; - } - - public String getVerb(int index) { - return this.verbs.get(index); - } - - public String getFirstVerb() { - return this.verbs.get(0); - } - - public String getLastVerb() { - return this.verbs.get(verbs.size() - 1); - } - - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withVerbs(List verbs) { - if (verbs != null) { - this.verbs = new ArrayList(); - for (String item : verbs) { - this.addToVerbs(item); - } - } else { - this.verbs = null; + public A setToCategories(int index,String item) { + if (this.categories == null) { + this.categories = new ArrayList(); } + this.categories.set(index, item); return (A) this; } - public A withVerbs(String... verbs) { - if (this.verbs != null) { - this.verbs.clear(); - _visitables.remove("verbs"); - } - if (verbs != null) { - for (String item : verbs) { - this.addToVerbs(item); - } + public A setToShortNames(int index,String item) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); } + this.shortNames.set(index, item); return (A) this; } - public boolean hasVerbs() { - return this.verbs != null && !(this.verbs.isEmpty()); - } - - public String getVersion() { - return this.version; - } - - public A withVersion(String version) { - this.version = version; - return (A) this; - } - - public boolean hasVersion() { - return this.version != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1APIResourceFluent that = (V1APIResourceFluent) o; - if (!(Objects.equals(categories, that.categories))) { - return false; - } - if (!(Objects.equals(group, that.group))) { - return false; - } - if (!(Objects.equals(kind, that.kind))) { - return false; - } - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(namespaced, that.namespaced))) { - return false; - } - if (!(Objects.equals(shortNames, that.shortNames))) { - return false; - } - if (!(Objects.equals(singularName, that.singularName))) { - return false; - } - if (!(Objects.equals(storageVersionHash, that.storageVersionHash))) { - return false; - } - if (!(Objects.equals(verbs, that.verbs))) { - return false; - } - if (!(Objects.equals(version, that.version))) { - return false; + public A setToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); } - return true; - } - - public int hashCode() { - return Objects.hash(categories, group, kind, name, namespaced, shortNames, singularName, storageVersionHash, verbs, version); + this.verbs.set(index, item); + return (A) this; } public String toString() { @@ -602,9 +494,118 @@ public String toString() { return sb.toString(); } + public A withCategories(List categories) { + if (categories != null) { + this.categories = new ArrayList(); + for (String item : categories) { + this.addToCategories(item); + } + } else { + this.categories = null; + } + return (A) this; + } + + public A withCategories(String... categories) { + if (this.categories != null) { + this.categories.clear(); + _visitables.remove("categories"); + } + if (categories != null) { + for (String item : categories) { + this.addToCategories(item); + } + } + return (A) this; + } + + public A withGroup(String group) { + this.group = group; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + public A withNamespaced() { return withNamespaced(true); } - + public A withNamespaced(Boolean namespaced) { + this.namespaced = namespaced; + return (A) this; + } + + public A withShortNames(List shortNames) { + if (shortNames != null) { + this.shortNames = new ArrayList(); + for (String item : shortNames) { + this.addToShortNames(item); + } + } else { + this.shortNames = null; + } + return (A) this; + } + + public A withShortNames(String... shortNames) { + if (this.shortNames != null) { + this.shortNames.clear(); + _visitables.remove("shortNames"); + } + if (shortNames != null) { + for (String item : shortNames) { + this.addToShortNames(item); + } + } + return (A) this; + } + + public A withSingularName(String singularName) { + this.singularName = singularName; + return (A) this; + } + + public A withStorageVersionHash(String storageVersionHash) { + this.storageVersionHash = storageVersionHash; + return (A) this; + } + + public A withVerbs(List verbs) { + if (verbs != null) { + this.verbs = new ArrayList(); + for (String item : verbs) { + this.addToVerbs(item); + } + } else { + this.verbs = null; + } + return (A) this; + } + + public A withVerbs(String... verbs) { + if (this.verbs != null) { + this.verbs.clear(); + _visitables.remove("verbs"); + } + if (verbs != null) { + for (String item : verbs) { + this.addToVerbs(item); + } + } + return (A) this; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java index 964d00b2fb..72a7a15093 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1APIResourceListBuilder extends V1APIResourceListFluent implements VisitableBuilder{ + + V1APIResourceListFluent fluent; + public V1APIResourceListBuilder() { this(new V1APIResourceList()); } @@ -11,17 +14,16 @@ public V1APIResourceListBuilder(V1APIResourceListFluent fluent) { this(fluent, new V1APIResourceList()); } - public V1APIResourceListBuilder(V1APIResourceListFluent fluent,V1APIResourceList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIResourceListBuilder(V1APIResourceList instance) { this.fluent = this; this.copyInstance(instance); } - V1APIResourceListFluent fluent; + public V1APIResourceListBuilder(V1APIResourceListFluent fluent,V1APIResourceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIResourceList build() { V1APIResourceList buildable = new V1APIResourceList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1APIResourceList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java index 619e433960..8b977894dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java @@ -1,112 +1,55 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1APIResourceListFluent> extends BaseFluent{ - public V1APIResourceListFluent() { - } - - public V1APIResourceListFluent(V1APIResourceList instance) { - this.copyInstance(instance); - } + private String apiVersion; private String groupVersion; private String kind; private ArrayList resources; - - protected void copyInstance(V1APIResourceList instance) { - instance = instance != null ? instance : new V1APIResourceList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withGroupVersion(instance.getGroupVersion()); - this.withKind(instance.getKind()); - this.withResources(instance.getResources()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getGroupVersion() { - return this.groupVersion; - } - - public A withGroupVersion(String groupVersion) { - this.groupVersion = groupVersion; - return (A) this; - } - - public boolean hasGroupVersion() { - return this.groupVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1APIResourceListFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1APIResourceListFluent(V1APIResourceList instance) { + this.copyInstance(instance); } - - public A addToResources(int index,V1APIResource item) { + + public A addAllToResources(Collection items) { if (this.resources == null) { this.resources = new ArrayList(); } - V1APIResourceBuilder builder = new V1APIResourceBuilder(item); - if (index < 0 || index >= resources.size()) { - _visitables.get("resources").add(builder); - resources.add(builder); - } else { + for (V1APIResource item : items) { + V1APIResourceBuilder builder = new V1APIResourceBuilder(item); _visitables.get("resources").add(builder); - resources.add(index, builder); + this.resources.add(builder); } return (A) this; } - public A setToResources(int index,V1APIResource item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - V1APIResourceBuilder builder = new V1APIResourceBuilder(item); - if (index < 0 || index >= resources.size()) { - _visitables.get("resources").add(builder); - resources.add(builder); - } else { - _visitables.get("resources").add(builder); - resources.set(index, builder); - } - return (A) this; + public ResourcesNested addNewResource() { + return new ResourcesNested(-1, null); + } + + public ResourcesNested addNewResourceLike(V1APIResource item) { + return new ResourcesNested(-1, item); } public A addToResources(V1APIResource... items) { @@ -121,66 +64,21 @@ public A addToResources(V1APIResource... items) { return (A) this; } - public A addAllToResources(Collection items) { + public A addToResources(int index,V1APIResource item) { if (this.resources == null) { this.resources = new ArrayList(); } - for (V1APIResource item : items) { - V1APIResourceBuilder builder = new V1APIResourceBuilder(item); + V1APIResourceBuilder builder = new V1APIResourceBuilder(item); + if (index < 0 || index >= resources.size()) { _visitables.get("resources").add(builder); - this.resources.add(builder); - } - return (A) this; - } - - public A removeFromResources(V1APIResource... items) { - if (this.resources == null) { - return (A) this; - } - for (V1APIResource item : items) { - V1APIResourceBuilder builder = new V1APIResourceBuilder(item); - _visitables.get("resources").remove(builder); - this.resources.remove(builder); - } - return (A) this; - } - - public A removeAllFromResources(Collection items) { - if (this.resources == null) { - return (A) this; - } - for (V1APIResource item : items) { - V1APIResourceBuilder builder = new V1APIResourceBuilder(item); - _visitables.get("resources").remove(builder); - this.resources.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromResources(Predicate predicate) { - if (resources == null) { - return (A) this; - } - Iterator each = resources.iterator(); - List visitables = _visitables.get("resources"); - while (each.hasNext()) { - V1APIResourceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + resources.add(builder); + } else { + _visitables.get("resources").add(builder); + resources.add(index, builder); } return (A) this; } - public List buildResources() { - return this.resources != null ? build(resources) : null; - } - - public V1APIResource buildResource(int index) { - return this.resources.get(index).build(); - } - public V1APIResource buildFirstResource() { return this.resources.get(0).build(); } @@ -198,64 +96,22 @@ public V1APIResource buildMatchingResource(Predicate predi return null; } - public boolean hasMatchingResource(Predicate predicate) { - for (V1APIResourceBuilder item : resources) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withResources(List resources) { - if (this.resources != null) { - this._visitables.get("resources").clear(); - } - if (resources != null) { - this.resources = new ArrayList(); - for (V1APIResource item : resources) { - this.addToResources(item); - } - } else { - this.resources = null; - } - return (A) this; - } - - public A withResources(V1APIResource... resources) { - if (this.resources != null) { - this.resources.clear(); - _visitables.remove("resources"); - } - if (resources != null) { - for (V1APIResource item : resources) { - this.addToResources(item); - } - } - return (A) this; - } - - public boolean hasResources() { - return this.resources != null && !(this.resources.isEmpty()); - } - - public ResourcesNested addNewResource() { - return new ResourcesNested(-1, null); - } - - public ResourcesNested addNewResourceLike(V1APIResource item) { - return new ResourcesNested(-1, item); + public V1APIResource buildResource(int index) { + return this.resources.get(index).build(); } - public ResourcesNested setNewResourceLike(int index,V1APIResource item) { - return new ResourcesNested(index, item); + public List buildResources() { + return this.resources != null ? build(resources) : null; } - public ResourcesNested editResource(int index) { - if (index <= resources.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resources")); + protected void copyInstance(V1APIResourceList instance) { + instance = instance != null ? instance : new V1APIResourceList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withGroupVersion(instance.getGroupVersion()); + this.withKind(instance.getKind()); + this.withResources(instance.getResources()); } - return this.setNewResourceLike(index, this.buildResource(index)); } public ResourcesNested editFirstResource() { @@ -287,6 +143,13 @@ public ResourcesNested editMatchingResource(Predicate p return this.setNewResourceLike(index, this.buildResource(index)); } + public ResourcesNested editResource(int index) { + if (resources.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resources")); + } + return this.setNewResourceLike(index, this.buildResource(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -313,10 +176,106 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getGroupVersion() { + return this.groupVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasGroupVersion() { + return this.groupVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingResource(Predicate predicate) { + for (V1APIResourceBuilder item : resources) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); + } + public int hashCode() { return Objects.hash(apiVersion, groupVersion, kind, resources); } + public A removeAllFromResources(Collection items) { + if (this.resources == null) { + return (A) this; + } + for (V1APIResource item : items) { + V1APIResourceBuilder builder = new V1APIResourceBuilder(item); + _visitables.get("resources").remove(builder); + this.resources.remove(builder); + } + return (A) this; + } + + public A removeFromResources(V1APIResource... items) { + if (this.resources == null) { + return (A) this; + } + for (V1APIResource item : items) { + V1APIResourceBuilder builder = new V1APIResourceBuilder(item); + _visitables.get("resources").remove(builder); + this.resources.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromResources(Predicate predicate) { + if (resources == null) { + return (A) this; + } + Iterator each = resources.iterator(); + List visitables = _visitables.get("resources"); + while (each.hasNext()) { + V1APIResourceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ResourcesNested setNewResourceLike(int index,V1APIResource item) { + return new ResourcesNested(index, item); + } + + public A setToResources(int index,V1APIResource item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + V1APIResourceBuilder builder = new V1APIResourceBuilder(item); + if (index < 0 || index >= resources.size()) { + _visitables.get("resources").add(builder); + resources.add(builder); + } else { + _visitables.get("resources").add(builder); + resources.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -342,14 +301,59 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withGroupVersion(String groupVersion) { + this.groupVersion = groupVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withResources(List resources) { + if (this.resources != null) { + this._visitables.get("resources").clear(); + } + if (resources != null) { + this.resources = new ArrayList(); + for (V1APIResource item : resources) { + this.addToResources(item); + } + } else { + this.resources = null; + } + return (A) this; + } + + public A withResources(V1APIResource... resources) { + if (this.resources != null) { + this.resources.clear(); + _visitables.remove("resources"); + } + if (resources != null) { + for (V1APIResource item : resources) { + this.addToResources(item); + } + } + return (A) this; + } public class ResourcesNested extends V1APIResourceFluent> implements Nested{ + + V1APIResourceBuilder builder; + int index; + ResourcesNested(int index,V1APIResource item) { this.index = index; this.builder = new V1APIResourceBuilder(this, item); } - V1APIResourceBuilder builder; - int index; - + public N and() { return (N) V1APIResourceListFluent.this.setToResources(index, builder.build()); } @@ -358,7 +362,5 @@ public N endResource() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java index a3ef5c3992..4f26143676 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1APIServiceBuilder extends V1APIServiceFluent implements VisitableBuilder{ + + V1APIServiceFluent fluent; + public V1APIServiceBuilder() { this(new V1APIService()); } @@ -11,17 +14,16 @@ public V1APIServiceBuilder(V1APIServiceFluent fluent) { this(fluent, new V1APIService()); } - public V1APIServiceBuilder(V1APIServiceFluent fluent,V1APIService instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIServiceBuilder(V1APIService instance) { this.fluent = this; this.copyInstance(instance); } - V1APIServiceFluent fluent; + public V1APIServiceBuilder(V1APIServiceFluent fluent,V1APIService instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIService build() { V1APIService buildable = new V1APIService(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1APIService build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java index 92904a9b40..d2417d21f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1APIServiceConditionBuilder extends V1APIServiceConditionFluent implements VisitableBuilder{ + + V1APIServiceConditionFluent fluent; + public V1APIServiceConditionBuilder() { this(new V1APIServiceCondition()); } @@ -11,17 +14,16 @@ public V1APIServiceConditionBuilder(V1APIServiceConditionFluent fluent) { this(fluent, new V1APIServiceCondition()); } - public V1APIServiceConditionBuilder(V1APIServiceConditionFluent fluent,V1APIServiceCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIServiceConditionBuilder(V1APIServiceCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1APIServiceConditionFluent fluent; + public V1APIServiceConditionBuilder(V1APIServiceConditionFluent fluent,V1APIServiceCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIServiceCondition build() { V1APIServiceCondition buildable = new V1APIServiceCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -32,5 +34,4 @@ public V1APIServiceCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java index 1d3278293e..a5712a656b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1APIServiceConditionFluent> extends BaseFluent{ - public V1APIServiceConditionFluent() { - } - - public V1APIServiceConditionFluent(V1APIServiceCondition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1APIServiceConditionFluent() { + } + public V1APIServiceConditionFluent(V1APIServiceCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1APIServiceCondition instance) { instance = instance != null ? instance : new V1APIServiceCondition(); if (instance != null) { @@ -36,71 +38,6 @@ protected void copyInstance(V1APIServiceCondition instance) { } } - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -130,6 +67,46 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; + } + + public String getMessage() { + return this.message; + } + + public String getReason() { + return this.reason; + } + + public String getStatus() { + return this.status; + } + + public String getType() { + return this.type; + } + + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasReason() { + return this.reason != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } @@ -165,5 +142,29 @@ public String toString() { return sb.toString(); } - + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java index a7fc4e595a..251e640f4f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1APIServiceFluent> extends BaseFluent{ - public V1APIServiceFluent() { - } - - public V1APIServiceFluent(V1APIService instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1APIServiceSpecBuilder spec; private V1APIServiceStatusBuilder status; - - protected void copyInstance(V1APIService instance) { - instance = instance != null ? instance : new V1APIService(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1APIServiceFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1APIServiceFluent(V1APIService instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1APIServiceSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1APIServiceStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1APIService instance) { + instance = instance != null ? instance : new V1APIService(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1APIServiceSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1APIServiceSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1APIServiceSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1APIServiceSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1APIServiceSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1APIServiceSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1APIServiceStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1APIServiceStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1APIServiceStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1APIServiceStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1APIServiceStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1APIServiceStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1APIServiceStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1APIServiceStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1APIServiceSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1APIServiceStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1APIServiceSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1APIServiceSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1APIServiceStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1APIServiceStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1APIServiceFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1APIServiceSpecFluent> implements Nested{ + + V1APIServiceSpecBuilder builder; + SpecNested(V1APIServiceSpec item) { this.builder = new V1APIServiceSpecBuilder(this, item); } - V1APIServiceSpecBuilder builder; - + public N and() { return (N) V1APIServiceFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1APIServiceStatusFluent> implements Nested{ + + V1APIServiceStatusBuilder builder; + StatusNested(V1APIServiceStatus item) { this.builder = new V1APIServiceStatusBuilder(this, item); } - V1APIServiceStatusBuilder builder; - + public N and() { return (N) V1APIServiceFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java index 12c5a3644b..4e67ddc127 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1APIServiceListBuilder extends V1APIServiceListFluent implements VisitableBuilder{ + + V1APIServiceListFluent fluent; + public V1APIServiceListBuilder() { this(new V1APIServiceList()); } @@ -11,17 +14,16 @@ public V1APIServiceListBuilder(V1APIServiceListFluent fluent) { this(fluent, new V1APIServiceList()); } - public V1APIServiceListBuilder(V1APIServiceListFluent fluent,V1APIServiceList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIServiceListBuilder(V1APIServiceList instance) { this.fluent = this; this.copyInstance(instance); } - V1APIServiceListFluent fluent; + public V1APIServiceListBuilder(V1APIServiceListFluent fluent,V1APIServiceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIServiceList build() { V1APIServiceList buildable = new V1APIServiceList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1APIServiceList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java index 6c470b092f..8b0e5bc312 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1APIServiceListFluent> extends BaseFluent{ - public V1APIServiceListFluent() { - } - - public V1APIServiceListFluent(V1APIServiceList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1APIServiceList instance) { - instance = instance != null ? instance : new V1APIServiceList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1APIServiceListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1APIServiceListFluent(V1APIServiceList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1APIService item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1APIServiceBuilder builder = new V1APIServiceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1APIService item : items) { + V1APIServiceBuilder builder = new V1APIServiceBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1APIService item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1APIServiceBuilder builder = new V1APIServiceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1APIService item) { + return new ItemsNested(-1, item); } public A addToItems(V1APIService... items) { @@ -96,68 +65,31 @@ public A addToItems(V1APIService... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1APIService item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1APIService item : items) { - V1APIServiceBuilder builder = new V1APIServiceBuilder(item); + V1APIServiceBuilder builder = new V1APIServiceBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1APIService... items) { - if (this.items == null) { - return (A) this; - } - for (V1APIService item : items) { - V1APIServiceBuilder builder = new V1APIServiceBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1APIService item : items) { - V1APIServiceBuilder builder = new V1APIServiceBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1APIServiceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1APIService buildFirstItem() { + return this.items.get(0).build(); } public V1APIService buildItem(int index) { return this.items.get(index).build(); } - public V1APIService buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1APIService buildLastItem() { @@ -173,73 +105,34 @@ public V1APIService buildMatchingItem(Predicate predicate) return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1APIServiceBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1APIService item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1APIServiceList instance) { + instance = instance != null ? instance : new V1APIServiceList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1APIService... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1APIService item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1APIService item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1APIService item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1APIServiceBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1APIService item : items) { + V1APIServiceBuilder builder = new V1APIServiceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1APIService... items) { + if (this.items == null) { + return (A) this; + } + for (V1APIService item : items) { + V1APIServiceBuilder builder = new V1APIServiceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1APIServiceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1APIService item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1APIService item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1APIServiceBuilder builder = new V1APIServiceBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1APIService item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1APIService... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1APIService item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1APIServiceFluent> implements Nested{ + + V1APIServiceBuilder builder; + int index; + ItemsNested(int index,V1APIService item) { this.index = index; this.builder = new V1APIServiceBuilder(this, item); } - V1APIServiceBuilder builder; - int index; - + public N and() { return (N) V1APIServiceListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1APIServiceListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java index 1445df3bdf..4e3a35b944 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1APIServiceSpecBuilder extends V1APIServiceSpecFluent implements VisitableBuilder{ + + V1APIServiceSpecFluent fluent; + public V1APIServiceSpecBuilder() { this(new V1APIServiceSpec()); } @@ -11,17 +14,16 @@ public V1APIServiceSpecBuilder(V1APIServiceSpecFluent fluent) { this(fluent, new V1APIServiceSpec()); } - public V1APIServiceSpecBuilder(V1APIServiceSpecFluent fluent,V1APIServiceSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIServiceSpecBuilder(V1APIServiceSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1APIServiceSpecFluent fluent; + public V1APIServiceSpecBuilder(V1APIServiceSpecFluent fluent,V1APIServiceSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIServiceSpec build() { V1APIServiceSpec buildable = new V1APIServiceSpec(); buildable.setCaBundle(fluent.getCaBundle()); @@ -34,5 +36,4 @@ public V1APIServiceSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java index fc6977f45a..0879dd71ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java @@ -1,31 +1,26 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Byte; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.lang.Integer; -import java.lang.Byte; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1APIServiceSpecFluent> extends BaseFluent{ - public V1APIServiceSpecFluent() { - } - - public V1APIServiceSpecFluent(V1APIServiceSpec instance) { - this.copyInstance(instance); - } + private List caBundle; private String group; private Integer groupPriorityMinimum; @@ -33,63 +28,15 @@ public V1APIServiceSpecFluent(V1APIServiceSpec instance) { private ApiregistrationV1ServiceReferenceBuilder service; private String version; private Integer versionPriority; - - protected void copyInstance(V1APIServiceSpec instance) { - instance = instance != null ? instance : new V1APIServiceSpec(); - if (instance != null) { - this.withCaBundle(instance.getCaBundle()); - this.withGroup(instance.getGroup()); - this.withGroupPriorityMinimum(instance.getGroupPriorityMinimum()); - this.withInsecureSkipTLSVerify(instance.getInsecureSkipTLSVerify()); - this.withService(instance.getService()); - this.withVersion(instance.getVersion()); - this.withVersionPriority(instance.getVersionPriority()); - } - } - - public A withCaBundle(byte... caBundle) { - if (this.caBundle != null) { - this.caBundle.clear(); - _visitables.remove("caBundle"); - } - if (caBundle != null) { - for (byte item : caBundle) { - this.addToCaBundle(item); - } - } - return (A) this; - } - - public byte[] getCaBundle() { - int size = caBundle != null ? caBundle.size() : 0; - byte[] result = new byte[size]; - if (size == 0) { - return result; - } - int index = 0; - for (byte item : caBundle) { - result[index++] = item; - } - return result; - } - - public A addToCaBundle(int index,Byte item) { - if (this.caBundle == null) { - this.caBundle = new ArrayList(); - } - this.caBundle.add(index, item); - return (A) this; + + public V1APIServiceSpecFluent() { } - public A setToCaBundle(int index,Byte item) { - if (this.caBundle == null) { - this.caBundle = new ArrayList(); - } - this.caBundle.set(index, item); - return (A) this; + public V1APIServiceSpecFluent(V1APIServiceSpec instance) { + this.copyInstance(instance); } - - public A addToCaBundle(Byte... items) { + + public A addAllToCaBundle(Collection items) { if (this.caBundle == null) { this.caBundle = new ArrayList(); } @@ -99,7 +46,7 @@ public A addToCaBundle(Byte... items) { return (A) this; } - public A addAllToCaBundle(Collection items) { + public A addToCaBundle(Byte... items) { if (this.caBundle == null) { this.caBundle = new ArrayList(); } @@ -109,99 +56,29 @@ public A addAllToCaBundle(Collection items) { return (A) this; } - public A removeFromCaBundle(Byte... items) { - if (this.caBundle == null) { - return (A) this; - } - for (Byte item : items) { - this.caBundle.remove(item); - } - return (A) this; - } - - public A removeAllFromCaBundle(Collection items) { + public A addToCaBundle(int index,Byte item) { if (this.caBundle == null) { - return (A) this; - } - for (Byte item : items) { - this.caBundle.remove(item); + this.caBundle = new ArrayList(); } + this.caBundle.add(index, item); return (A) this; } - public boolean hasCaBundle() { - return this.caBundle != null && !(this.caBundle.isEmpty()); - } - - public String getGroup() { - return this.group; - } - - public A withGroup(String group) { - this.group = group; - return (A) this; - } - - public boolean hasGroup() { - return this.group != null; - } - - public Integer getGroupPriorityMinimum() { - return this.groupPriorityMinimum; - } - - public A withGroupPriorityMinimum(Integer groupPriorityMinimum) { - this.groupPriorityMinimum = groupPriorityMinimum; - return (A) this; - } - - public boolean hasGroupPriorityMinimum() { - return this.groupPriorityMinimum != null; - } - - public Boolean getInsecureSkipTLSVerify() { - return this.insecureSkipTLSVerify; - } - - public A withInsecureSkipTLSVerify(Boolean insecureSkipTLSVerify) { - this.insecureSkipTLSVerify = insecureSkipTLSVerify; - return (A) this; - } - - public boolean hasInsecureSkipTLSVerify() { - return this.insecureSkipTLSVerify != null; - } - public ApiregistrationV1ServiceReference buildService() { return this.service != null ? this.service.build() : null; } - public A withService(ApiregistrationV1ServiceReference service) { - this._visitables.remove("service"); - if (service != null) { - this.service = new ApiregistrationV1ServiceReferenceBuilder(service); - this._visitables.get("service").add(this.service); - } else { - this.service = null; - this._visitables.get("service").remove(this.service); + protected void copyInstance(V1APIServiceSpec instance) { + instance = instance != null ? instance : new V1APIServiceSpec(); + if (instance != null) { + this.withCaBundle(instance.getCaBundle()); + this.withGroup(instance.getGroup()); + this.withGroupPriorityMinimum(instance.getGroupPriorityMinimum()); + this.withInsecureSkipTLSVerify(instance.getInsecureSkipTLSVerify()); + this.withService(instance.getService()); + this.withVersion(instance.getVersion()); + this.withVersionPriority(instance.getVersionPriority()); } - return (A) this; - } - - public boolean hasService() { - return this.service != null; - } - - public ServiceNested withNewService() { - return new ServiceNested(null); - } - - public ServiceNested withNewServiceLike(ApiregistrationV1ServiceReference item) { - return new ServiceNested(item); - } - - public ServiceNested editService() { - return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(null)); } public ServiceNested editOrNewService() { @@ -212,30 +89,8 @@ public ServiceNested editOrNewServiceLike(ApiregistrationV1ServiceReference i return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(item)); } - public String getVersion() { - return this.version; - } - - public A withVersion(String version) { - this.version = version; - return (A) this; - } - - public boolean hasVersion() { - return this.version != null; - } - - public Integer getVersionPriority() { - return this.versionPriority; - } - - public A withVersionPriority(Integer versionPriority) { - this.versionPriority = versionPriority; - return (A) this; - } - - public boolean hasVersionPriority() { - return this.versionPriority != null; + public ServiceNested editService() { + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(null)); } public boolean equals(Object o) { @@ -273,10 +128,99 @@ public boolean equals(Object o) { return true; } + public byte[] getCaBundle() { + int size = caBundle != null ? caBundle.size() : 0; + byte[] result = new byte[size]; + if (size == 0) { + return result; + } + int index = 0; + for (byte item : caBundle) { + result[index++] = item; + } + return result; + } + + public String getGroup() { + return this.group; + } + + public Integer getGroupPriorityMinimum() { + return this.groupPriorityMinimum; + } + + public Boolean getInsecureSkipTLSVerify() { + return this.insecureSkipTLSVerify; + } + + public String getVersion() { + return this.version; + } + + public Integer getVersionPriority() { + return this.versionPriority; + } + + public boolean hasCaBundle() { + return this.caBundle != null && !(this.caBundle.isEmpty()); + } + + public boolean hasGroup() { + return this.group != null; + } + + public boolean hasGroupPriorityMinimum() { + return this.groupPriorityMinimum != null; + } + + public boolean hasInsecureSkipTLSVerify() { + return this.insecureSkipTLSVerify != null; + } + + public boolean hasService() { + return this.service != null; + } + + public boolean hasVersion() { + return this.version != null; + } + + public boolean hasVersionPriority() { + return this.versionPriority != null; + } + public int hashCode() { return Objects.hash(caBundle, group, groupPriorityMinimum, insecureSkipTLSVerify, service, version, versionPriority); } + public A removeAllFromCaBundle(Collection items) { + if (this.caBundle == null) { + return (A) this; + } + for (Byte item : items) { + this.caBundle.remove(item); + } + return (A) this; + } + + public A removeFromCaBundle(Byte... items) { + if (this.caBundle == null) { + return (A) this; + } + for (Byte item : items) { + this.caBundle.remove(item); + } + return (A) this; + } + + public A setToCaBundle(int index,Byte item) { + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + this.caBundle.set(index, item); + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -318,15 +262,75 @@ public String toString() { return sb.toString(); } + public A withCaBundle(byte... caBundle) { + if (this.caBundle != null) { + this.caBundle.clear(); + _visitables.remove("caBundle"); + } + if (caBundle != null) { + for (byte item : caBundle) { + this.addToCaBundle(item); + } + } + return (A) this; + } + + public A withGroup(String group) { + this.group = group; + return (A) this; + } + + public A withGroupPriorityMinimum(Integer groupPriorityMinimum) { + this.groupPriorityMinimum = groupPriorityMinimum; + return (A) this; + } + public A withInsecureSkipTLSVerify() { return withInsecureSkipTLSVerify(true); } + + public A withInsecureSkipTLSVerify(Boolean insecureSkipTLSVerify) { + this.insecureSkipTLSVerify = insecureSkipTLSVerify; + return (A) this; + } + + public ServiceNested withNewService() { + return new ServiceNested(null); + } + + public ServiceNested withNewServiceLike(ApiregistrationV1ServiceReference item) { + return new ServiceNested(item); + } + + public A withService(ApiregistrationV1ServiceReference service) { + this._visitables.remove("service"); + if (service != null) { + this.service = new ApiregistrationV1ServiceReferenceBuilder(service); + this._visitables.get("service").add(this.service); + } else { + this.service = null; + this._visitables.get("service").remove(this.service); + } + return (A) this; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + + public A withVersionPriority(Integer versionPriority) { + this.versionPriority = versionPriority; + return (A) this; + } public class ServiceNested extends ApiregistrationV1ServiceReferenceFluent> implements Nested{ + + ApiregistrationV1ServiceReferenceBuilder builder; + ServiceNested(ApiregistrationV1ServiceReference item) { this.builder = new ApiregistrationV1ServiceReferenceBuilder(this, item); } - ApiregistrationV1ServiceReferenceBuilder builder; - + public N and() { return (N) V1APIServiceSpecFluent.this.withService(builder.build()); } @@ -335,7 +339,5 @@ public N endService() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java index 642a401cc2..e7478d0965 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1APIServiceStatusBuilder extends V1APIServiceStatusFluent implements VisitableBuilder{ + + V1APIServiceStatusFluent fluent; + public V1APIServiceStatusBuilder() { this(new V1APIServiceStatus()); } @@ -11,22 +14,20 @@ public V1APIServiceStatusBuilder(V1APIServiceStatusFluent fluent) { this(fluent, new V1APIServiceStatus()); } - public V1APIServiceStatusBuilder(V1APIServiceStatusFluent fluent,V1APIServiceStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIServiceStatusBuilder(V1APIServiceStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1APIServiceStatusFluent fluent; + public V1APIServiceStatusBuilder(V1APIServiceStatusFluent fluent,V1APIServiceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIServiceStatus build() { V1APIServiceStatus buildable = new V1APIServiceStatus(); buildable.setConditions(fluent.buildConditions()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java index d45ae1c6fb..5b0a3b6212 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java @@ -1,67 +1,52 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1APIServiceStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + public V1APIServiceStatusFluent() { } public V1APIServiceStatusFluent(V1APIServiceStatus instance) { this.copyInstance(instance); } - private ArrayList conditions; - - protected void copyInstance(V1APIServiceStatus instance) { - instance = instance != null ? instance : new V1APIServiceStatus(); - if (instance != null) { - this.withConditions(instance.getConditions()); - } - } - - public A addToConditions(int index,V1APIServiceCondition item) { + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1APIServiceCondition item : items) { + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1APIServiceCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1APIServiceCondition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1APIServiceCondition... items) { @@ -76,66 +61,29 @@ public A addToConditions(V1APIServiceCondition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1APIServiceCondition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1APIServiceCondition item : items) { - V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1APIServiceCondition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1APIServiceCondition item : items) { - V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1APIServiceCondition item : items) { - V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1APIServiceConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1APIServiceCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1APIServiceCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1APIServiceCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -153,61 +101,15 @@ public V1APIServiceCondition buildMatchingCondition(Predicate predicate) { - for (V1APIServiceConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1APIServiceCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(V1APIServiceCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1APIServiceCondition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1APIServiceStatus instance) { + instance = instance != null ? instance : new V1APIServiceStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1APIServiceCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1APIServiceCondition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -259,10 +161,82 @@ public boolean equals(Object o) { return true; } + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1APIServiceConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(conditions); } + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1APIServiceCondition item : items) { + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1APIServiceCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1APIServiceCondition item : items) { + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1APIServiceConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1APIServiceCondition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1APIServiceCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -273,14 +247,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1APIServiceCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1APIServiceCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1APIServiceCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } public class ConditionsNested extends V1APIServiceConditionFluent> implements Nested{ + + V1APIServiceConditionBuilder builder; + int index; + ConditionsNested(int index,V1APIServiceCondition item) { this.index = index; this.builder = new V1APIServiceConditionBuilder(this, item); } - V1APIServiceConditionBuilder builder; - int index; - + public N and() { return (N) V1APIServiceStatusFluent.this.setToConditions(index, builder.build()); } @@ -289,7 +293,5 @@ public N endCondition() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java index 11371455a7..7e08e7d053 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1APIVersionsBuilder extends V1APIVersionsFluent implements VisitableBuilder{ + + V1APIVersionsFluent fluent; + public V1APIVersionsBuilder() { this(new V1APIVersions()); } @@ -11,17 +14,16 @@ public V1APIVersionsBuilder(V1APIVersionsFluent fluent) { this(fluent, new V1APIVersions()); } - public V1APIVersionsBuilder(V1APIVersionsFluent fluent,V1APIVersions instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIVersionsBuilder(V1APIVersions instance) { this.fluent = this; this.copyInstance(instance); } - V1APIVersionsFluent fluent; + public V1APIVersionsBuilder(V1APIVersionsFluent fluent,V1APIVersions instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIVersions build() { V1APIVersions buildable = new V1APIVersions(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1APIVersions build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java index 7bd6c40690..08efe71bde 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java @@ -1,101 +1,67 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1APIVersionsFluent> extends BaseFluent{ - public V1APIVersionsFluent() { - } - - public V1APIVersionsFluent(V1APIVersions instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private ArrayList serverAddressByClientCIDRs; private List versions; - - protected void copyInstance(V1APIVersions instance) { - instance = instance != null ? instance : new V1APIVersions(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withServerAddressByClientCIDRs(instance.getServerAddressByClientCIDRs()); - this.withVersions(instance.getVersions()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1APIVersionsFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1APIVersionsFluent(V1APIVersions instance) { + this.copyInstance(instance); } - - public A addToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { + + public A addAllToServerAddressByClientCIDRs(Collection items) { if (this.serverAddressByClientCIDRs == null) { this.serverAddressByClientCIDRs = new ArrayList(); } - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - if (index < 0 || index >= serverAddressByClientCIDRs.size()) { - _visitables.get("serverAddressByClientCIDRs").add(builder); - serverAddressByClientCIDRs.add(builder); - } else { + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); _visitables.get("serverAddressByClientCIDRs").add(builder); - serverAddressByClientCIDRs.add(index, builder); + this.serverAddressByClientCIDRs.add(builder); } return (A) this; } - public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { - if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = new ArrayList(); + public A addAllToVersions(Collection items) { + if (this.versions == null) { + this.versions = new ArrayList(); } - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - if (index < 0 || index >= serverAddressByClientCIDRs.size()) { - _visitables.get("serverAddressByClientCIDRs").add(builder); - serverAddressByClientCIDRs.add(builder); - } else { - _visitables.get("serverAddressByClientCIDRs").add(builder); - serverAddressByClientCIDRs.set(index, builder); + for (String item : items) { + this.versions.add(item); } return (A) this; } + public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDR() { + return new ServerAddressByClientCIDRsNested(-1, null); + } + + public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDRLike(V1ServerAddressByClientCIDR item) { + return new ServerAddressByClientCIDRsNested(-1, item); + } + public A addToServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { if (this.serverAddressByClientCIDRs == null) { this.serverAddressByClientCIDRs = new ArrayList(); @@ -108,66 +74,39 @@ public A addToServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { return (A) this; } - public A addAllToServerAddressByClientCIDRs(Collection items) { + public A addToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { if (this.serverAddressByClientCIDRs == null) { this.serverAddressByClientCIDRs = new ArrayList(); } - for (V1ServerAddressByClientCIDR item : items) { - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + if (index < 0 || index >= serverAddressByClientCIDRs.size()) { _visitables.get("serverAddressByClientCIDRs").add(builder); - this.serverAddressByClientCIDRs.add(builder); - } - return (A) this; - } - - public A removeFromServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { - if (this.serverAddressByClientCIDRs == null) { - return (A) this; - } - for (V1ServerAddressByClientCIDR item : items) { - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - _visitables.get("serverAddressByClientCIDRs").remove(builder); - this.serverAddressByClientCIDRs.remove(builder); + serverAddressByClientCIDRs.add(builder); + } else { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.add(index, builder); } return (A) this; } - public A removeAllFromServerAddressByClientCIDRs(Collection items) { - if (this.serverAddressByClientCIDRs == null) { - return (A) this; + public A addToVersions(String... items) { + if (this.versions == null) { + this.versions = new ArrayList(); } - for (V1ServerAddressByClientCIDR item : items) { - V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - _visitables.get("serverAddressByClientCIDRs").remove(builder); - this.serverAddressByClientCIDRs.remove(builder); + for (String item : items) { + this.versions.add(item); } return (A) this; } - public A removeMatchingFromServerAddressByClientCIDRs(Predicate predicate) { - if (serverAddressByClientCIDRs == null) { - return (A) this; - } - Iterator each = serverAddressByClientCIDRs.iterator(); - List visitables = _visitables.get("serverAddressByClientCIDRs"); - while (each.hasNext()) { - V1ServerAddressByClientCIDRBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToVersions(int index,String item) { + if (this.versions == null) { + this.versions = new ArrayList(); } + this.versions.add(index, item); return (A) this; } - public List buildServerAddressByClientCIDRs() { - return this.serverAddressByClientCIDRs != null ? build(serverAddressByClientCIDRs) : null; - } - - public V1ServerAddressByClientCIDR buildServerAddressByClientCIDR(int index) { - return this.serverAddressByClientCIDRs.get(index).build(); - } - public V1ServerAddressByClientCIDR buildFirstServerAddressByClientCIDR() { return this.serverAddressByClientCIDRs.get(0).build(); } @@ -185,64 +124,22 @@ public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR(Predic return null; } - public boolean hasMatchingServerAddressByClientCIDR(Predicate predicate) { - for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withServerAddressByClientCIDRs(List serverAddressByClientCIDRs) { - if (this.serverAddressByClientCIDRs != null) { - this._visitables.get("serverAddressByClientCIDRs").clear(); - } - if (serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs = new ArrayList(); - for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { - this.addToServerAddressByClientCIDRs(item); - } - } else { - this.serverAddressByClientCIDRs = null; - } - return (A) this; - } - - public A withServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... serverAddressByClientCIDRs) { - if (this.serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs.clear(); - _visitables.remove("serverAddressByClientCIDRs"); - } - if (serverAddressByClientCIDRs != null) { - for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { - this.addToServerAddressByClientCIDRs(item); - } - } - return (A) this; - } - - public boolean hasServerAddressByClientCIDRs() { - return this.serverAddressByClientCIDRs != null && !(this.serverAddressByClientCIDRs.isEmpty()); - } - - public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDR() { - return new ServerAddressByClientCIDRsNested(-1, null); - } - - public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDRLike(V1ServerAddressByClientCIDR item) { - return new ServerAddressByClientCIDRsNested(-1, item); + public V1ServerAddressByClientCIDR buildServerAddressByClientCIDR(int index) { + return this.serverAddressByClientCIDRs.get(index).build(); } - public ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike(int index,V1ServerAddressByClientCIDR item) { - return new ServerAddressByClientCIDRsNested(index, item); + public List buildServerAddressByClientCIDRs() { + return this.serverAddressByClientCIDRs != null ? build(serverAddressByClientCIDRs) : null; } - public ServerAddressByClientCIDRsNested editServerAddressByClientCIDR(int index) { - if (index <= serverAddressByClientCIDRs.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "serverAddressByClientCIDRs")); + protected void copyInstance(V1APIVersions instance) { + instance = instance != null ? instance : new V1APIVersions(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withServerAddressByClientCIDRs(instance.getServerAddressByClientCIDRs()); + this.withVersions(instance.getVersions()); } - return this.setNewServerAddressByClientCIDRLike(index, this.buildServerAddressByClientCIDR(index)); } public ServerAddressByClientCIDRsNested editFirstServerAddressByClientCIDR() { @@ -274,74 +171,51 @@ public ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR return this.setNewServerAddressByClientCIDRLike(index, this.buildServerAddressByClientCIDR(index)); } - public A addToVersions(int index,String item) { - if (this.versions == null) { - this.versions = new ArrayList(); - } - this.versions.add(index, item); - return (A) this; - } - - public A setToVersions(int index,String item) { - if (this.versions == null) { - this.versions = new ArrayList(); + public ServerAddressByClientCIDRsNested editServerAddressByClientCIDR(int index) { + if (serverAddressByClientCIDRs.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "serverAddressByClientCIDRs")); } - this.versions.set(index, item); - return (A) this; + return this.setNewServerAddressByClientCIDRLike(index, this.buildServerAddressByClientCIDR(index)); } - public A addToVersions(String... items) { - if (this.versions == null) { - this.versions = new ArrayList(); - } - for (String item : items) { - this.versions.add(item); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; - } - - public A addAllToVersions(Collection items) { - if (this.versions == null) { - this.versions = new ArrayList(); + if (o == null || this.getClass() != o.getClass()) { + return false; } - for (String item : items) { - this.versions.add(item); + if (!(super.equals(o))) { + return false; } - return (A) this; - } - - public A removeFromVersions(String... items) { - if (this.versions == null) { - return (A) this; + V1APIVersionsFluent that = (V1APIVersionsFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; } - for (String item : items) { - this.versions.remove(item); + if (!(Objects.equals(kind, that.kind))) { + return false; } - return (A) this; - } - - public A removeAllFromVersions(Collection items) { - if (this.versions == null) { - return (A) this; + if (!(Objects.equals(serverAddressByClientCIDRs, that.serverAddressByClientCIDRs))) { + return false; } - for (String item : items) { - this.versions.remove(item); + if (!(Objects.equals(versions, that.versions))) { + return false; } - return (A) this; - } - - public List getVersions() { - return this.versions; + return true; } - public String getVersion(int index) { - return this.versions.get(index); + public String getApiVersion() { + return this.apiVersion; } public String getFirstVersion() { return this.versions.get(0); } + public String getKind() { + return this.kind; + } + public String getLastVersion() { return this.versions.get(versions.size() - 1); } @@ -355,6 +229,31 @@ public String getMatchingVersion(Predicate predicate) { return null; } + public String getVersion(int index) { + return this.versions.get(index); + } + + public List getVersions() { + return this.versions; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingServerAddressByClientCIDR(Predicate predicate) { + for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasMatchingVersion(Predicate predicate) { for (String item : versions) { if (predicate.test(item)) { @@ -364,63 +263,103 @@ public boolean hasMatchingVersion(Predicate predicate) { return false; } - public A withVersions(List versions) { - if (versions != null) { - this.versions = new ArrayList(); - for (String item : versions) { - this.addToVersions(item); - } - } else { - this.versions = null; + public boolean hasServerAddressByClientCIDRs() { + return this.serverAddressByClientCIDRs != null && !(this.serverAddressByClientCIDRs.isEmpty()); + } + + public boolean hasVersions() { + return this.versions != null && !(this.versions.isEmpty()); + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, serverAddressByClientCIDRs, versions); + } + + public A removeAllFromServerAddressByClientCIDRs(Collection items) { + if (this.serverAddressByClientCIDRs == null) { + return (A) this; + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").remove(builder); + this.serverAddressByClientCIDRs.remove(builder); } return (A) this; } - public A withVersions(String... versions) { - if (this.versions != null) { - this.versions.clear(); - _visitables.remove("versions"); + public A removeAllFromVersions(Collection items) { + if (this.versions == null) { + return (A) this; } - if (versions != null) { - for (String item : versions) { - this.addToVersions(item); - } + for (String item : items) { + this.versions.remove(item); } return (A) this; } - public boolean hasVersions() { - return this.versions != null && !(this.versions.isEmpty()); + public A removeFromServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { + if (this.serverAddressByClientCIDRs == null) { + return (A) this; + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").remove(builder); + this.serverAddressByClientCIDRs.remove(builder); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; + public A removeFromVersions(String... items) { + if (this.versions == null) { + return (A) this; } - if (!(super.equals(o))) { - return false; + for (String item : items) { + this.versions.remove(item); } - V1APIVersionsFluent that = (V1APIVersionsFluent) o; - if (!(Objects.equals(apiVersion, that.apiVersion))) { - return false; + return (A) this; + } + + public A removeMatchingFromServerAddressByClientCIDRs(Predicate predicate) { + if (serverAddressByClientCIDRs == null) { + return (A) this; } - if (!(Objects.equals(kind, that.kind))) { - return false; + Iterator each = serverAddressByClientCIDRs.iterator(); + List visitables = _visitables.get("serverAddressByClientCIDRs"); + while (each.hasNext()) { + V1ServerAddressByClientCIDRBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - if (!(Objects.equals(serverAddressByClientCIDRs, that.serverAddressByClientCIDRs))) { - return false; + return (A) this; + } + + public ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike(int index,V1ServerAddressByClientCIDR item) { + return new ServerAddressByClientCIDRsNested(index, item); + } + + public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR item) { + if (this.serverAddressByClientCIDRs == null) { + this.serverAddressByClientCIDRs = new ArrayList(); } - if (!(Objects.equals(versions, that.versions))) { - return false; + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + if (index < 0 || index >= serverAddressByClientCIDRs.size()) { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.add(builder); + } else { + _visitables.get("serverAddressByClientCIDRs").add(builder); + serverAddressByClientCIDRs.set(index, builder); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(apiVersion, kind, serverAddressByClientCIDRs, versions); + public A setToVersions(int index,String item) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + this.versions.set(index, item); + return (A) this; } public String toString() { @@ -448,14 +387,79 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withServerAddressByClientCIDRs(List serverAddressByClientCIDRs) { + if (this.serverAddressByClientCIDRs != null) { + this._visitables.get("serverAddressByClientCIDRs").clear(); + } + if (serverAddressByClientCIDRs != null) { + this.serverAddressByClientCIDRs = new ArrayList(); + for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { + this.addToServerAddressByClientCIDRs(item); + } + } else { + this.serverAddressByClientCIDRs = null; + } + return (A) this; + } + + public A withServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... serverAddressByClientCIDRs) { + if (this.serverAddressByClientCIDRs != null) { + this.serverAddressByClientCIDRs.clear(); + _visitables.remove("serverAddressByClientCIDRs"); + } + if (serverAddressByClientCIDRs != null) { + for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { + this.addToServerAddressByClientCIDRs(item); + } + } + return (A) this; + } + + public A withVersions(List versions) { + if (versions != null) { + this.versions = new ArrayList(); + for (String item : versions) { + this.addToVersions(item); + } + } else { + this.versions = null; + } + return (A) this; + } + + public A withVersions(String... versions) { + if (this.versions != null) { + this.versions.clear(); + _visitables.remove("versions"); + } + if (versions != null) { + for (String item : versions) { + this.addToVersions(item); + } + } + return (A) this; + } public class ServerAddressByClientCIDRsNested extends V1ServerAddressByClientCIDRFluent> implements Nested{ + + V1ServerAddressByClientCIDRBuilder builder; + int index; + ServerAddressByClientCIDRsNested(int index,V1ServerAddressByClientCIDR item) { this.index = index; this.builder = new V1ServerAddressByClientCIDRBuilder(this, item); } - V1ServerAddressByClientCIDRBuilder builder; - int index; - + public N and() { return (N) V1APIVersionsFluent.this.setToServerAddressByClientCIDRs(index, builder.build()); } @@ -464,7 +468,5 @@ public N endServerAddressByClientCIDR() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java index c5b1b123de..b76e9888d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1AWSElasticBlockStoreVolumeSourceBuilder extends V1AWSElasticBlockStoreVolumeSourceFluent implements VisitableBuilder{ + + V1AWSElasticBlockStoreVolumeSourceFluent fluent; + public V1AWSElasticBlockStoreVolumeSourceBuilder() { this(new V1AWSElasticBlockStoreVolumeSource()); } @@ -11,17 +14,16 @@ public V1AWSElasticBlockStoreVolumeSourceBuilder(V1AWSElasticBlockStoreVolumeSou this(fluent, new V1AWSElasticBlockStoreVolumeSource()); } - public V1AWSElasticBlockStoreVolumeSourceBuilder(V1AWSElasticBlockStoreVolumeSourceFluent fluent,V1AWSElasticBlockStoreVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1AWSElasticBlockStoreVolumeSourceBuilder(V1AWSElasticBlockStoreVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1AWSElasticBlockStoreVolumeSourceFluent fluent; + public V1AWSElasticBlockStoreVolumeSourceBuilder(V1AWSElasticBlockStoreVolumeSourceFluent fluent,V1AWSElasticBlockStoreVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1AWSElasticBlockStoreVolumeSource build() { V1AWSElasticBlockStoreVolumeSource buildable = new V1AWSElasticBlockStoreVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -31,5 +33,4 @@ public V1AWSElasticBlockStoreVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java index c4e3138a77..12a6fae13b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; -import java.lang.Boolean; /** * Generated */ @SuppressWarnings("unchecked") public class V1AWSElasticBlockStoreVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private Integer partition; + private Boolean readOnly; + private String volumeID; + public V1AWSElasticBlockStoreVolumeSourceFluent() { } public V1AWSElasticBlockStoreVolumeSourceFluent(V1AWSElasticBlockStoreVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private Integer partition; - private Boolean readOnly; - private String volumeID; - + protected void copyInstance(V1AWSElasticBlockStoreVolumeSource instance) { instance = instance != null ? instance : new V1AWSElasticBlockStoreVolumeSource(); if (instance != null) { @@ -35,58 +37,6 @@ protected void copyInstance(V1AWSElasticBlockStoreVolumeSource instance) { } } - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; - } - - public boolean hasFsType() { - return this.fsType != null; - } - - public Integer getPartition() { - return this.partition; - } - - public A withPartition(Integer partition) { - this.partition = partition; - return (A) this; - } - - public boolean hasPartition() { - return this.partition != null; - } - - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - - public String getVolumeID() { - return this.volumeID; - } - - public A withVolumeID(String volumeID) { - this.volumeID = volumeID; - return (A) this; - } - - public boolean hasVolumeID() { - return this.volumeID != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -113,6 +63,38 @@ public boolean equals(Object o) { return true; } + public String getFsType() { + return this.fsType; + } + + public Integer getPartition() { + return this.partition; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public String getVolumeID() { + return this.volumeID; + } + + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasPartition() { + return this.partition != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + + public boolean hasVolumeID() { + return this.volumeID != null; + } + public int hashCode() { return Objects.hash(fsType, partition, readOnly, volumeID); } @@ -143,9 +125,28 @@ public String toString() { return sb.toString(); } + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withPartition(Integer partition) { + this.partition = partition; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withVolumeID(String volumeID) { + this.volumeID = volumeID; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java index 4100bcce72..c6b824f49f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1AffinityBuilder extends V1AffinityFluent implements VisitableBuilder{ + + V1AffinityFluent fluent; + public V1AffinityBuilder() { this(new V1Affinity()); } @@ -11,17 +14,16 @@ public V1AffinityBuilder(V1AffinityFluent fluent) { this(fluent, new V1Affinity()); } - public V1AffinityBuilder(V1AffinityFluent fluent,V1Affinity instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1AffinityBuilder(V1Affinity instance) { this.fluent = this; this.copyInstance(instance); } - V1AffinityFluent fluent; + public V1AffinityBuilder(V1AffinityFluent fluent,V1Affinity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Affinity build() { V1Affinity buildable = new V1Affinity(); buildable.setNodeAffinity(fluent.buildNodeAffinity()); @@ -30,5 +32,4 @@ public V1Affinity build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java index fcd070a4ab..4062deaa91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java @@ -1,64 +1,50 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1AffinityFluent> extends BaseFluent{ + + private V1NodeAffinityBuilder nodeAffinity; + private V1PodAffinityBuilder podAffinity; + private V1PodAntiAffinityBuilder podAntiAffinity; + public V1AffinityFluent() { } public V1AffinityFluent(V1Affinity instance) { this.copyInstance(instance); } - private V1NodeAffinityBuilder nodeAffinity; - private V1PodAffinityBuilder podAffinity; - private V1PodAntiAffinityBuilder podAntiAffinity; - - protected void copyInstance(V1Affinity instance) { - instance = instance != null ? instance : new V1Affinity(); - if (instance != null) { - this.withNodeAffinity(instance.getNodeAffinity()); - this.withPodAffinity(instance.getPodAffinity()); - this.withPodAntiAffinity(instance.getPodAntiAffinity()); - } - } - + public V1NodeAffinity buildNodeAffinity() { return this.nodeAffinity != null ? this.nodeAffinity.build() : null; } - public A withNodeAffinity(V1NodeAffinity nodeAffinity) { - this._visitables.remove("nodeAffinity"); - if (nodeAffinity != null) { - this.nodeAffinity = new V1NodeAffinityBuilder(nodeAffinity); - this._visitables.get("nodeAffinity").add(this.nodeAffinity); - } else { - this.nodeAffinity = null; - this._visitables.get("nodeAffinity").remove(this.nodeAffinity); - } - return (A) this; - } - - public boolean hasNodeAffinity() { - return this.nodeAffinity != null; + public V1PodAffinity buildPodAffinity() { + return this.podAffinity != null ? this.podAffinity.build() : null; } - public NodeAffinityNested withNewNodeAffinity() { - return new NodeAffinityNested(null); + public V1PodAntiAffinity buildPodAntiAffinity() { + return this.podAntiAffinity != null ? this.podAntiAffinity.build() : null; } - public NodeAffinityNested withNewNodeAffinityLike(V1NodeAffinity item) { - return new NodeAffinityNested(item); + protected void copyInstance(V1Affinity instance) { + instance = instance != null ? instance : new V1Affinity(); + if (instance != null) { + this.withNodeAffinity(instance.getNodeAffinity()); + this.withPodAffinity(instance.getPodAffinity()); + this.withPodAntiAffinity(instance.getPodAntiAffinity()); + } } public NodeAffinityNested editNodeAffinity() { @@ -73,38 +59,6 @@ public NodeAffinityNested editOrNewNodeAffinityLike(V1NodeAffinity item) { return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(item)); } - public V1PodAffinity buildPodAffinity() { - return this.podAffinity != null ? this.podAffinity.build() : null; - } - - public A withPodAffinity(V1PodAffinity podAffinity) { - this._visitables.remove("podAffinity"); - if (podAffinity != null) { - this.podAffinity = new V1PodAffinityBuilder(podAffinity); - this._visitables.get("podAffinity").add(this.podAffinity); - } else { - this.podAffinity = null; - this._visitables.get("podAffinity").remove(this.podAffinity); - } - return (A) this; - } - - public boolean hasPodAffinity() { - return this.podAffinity != null; - } - - public PodAffinityNested withNewPodAffinity() { - return new PodAffinityNested(null); - } - - public PodAffinityNested withNewPodAffinityLike(V1PodAffinity item) { - return new PodAffinityNested(item); - } - - public PodAffinityNested editPodAffinity() { - return this.withNewPodAffinityLike(Optional.ofNullable(this.buildPodAffinity()).orElse(null)); - } - public PodAffinityNested editOrNewPodAffinity() { return this.withNewPodAffinityLike(Optional.ofNullable(this.buildPodAffinity()).orElse(new V1PodAffinityBuilder().build())); } @@ -113,46 +67,22 @@ public PodAffinityNested editOrNewPodAffinityLike(V1PodAffinity item) { return this.withNewPodAffinityLike(Optional.ofNullable(this.buildPodAffinity()).orElse(item)); } - public V1PodAntiAffinity buildPodAntiAffinity() { - return this.podAntiAffinity != null ? this.podAntiAffinity.build() : null; - } - - public A withPodAntiAffinity(V1PodAntiAffinity podAntiAffinity) { - this._visitables.remove("podAntiAffinity"); - if (podAntiAffinity != null) { - this.podAntiAffinity = new V1PodAntiAffinityBuilder(podAntiAffinity); - this._visitables.get("podAntiAffinity").add(this.podAntiAffinity); - } else { - this.podAntiAffinity = null; - this._visitables.get("podAntiAffinity").remove(this.podAntiAffinity); - } - return (A) this; - } - - public boolean hasPodAntiAffinity() { - return this.podAntiAffinity != null; + public PodAntiAffinityNested editOrNewPodAntiAffinity() { + return this.withNewPodAntiAffinityLike(Optional.ofNullable(this.buildPodAntiAffinity()).orElse(new V1PodAntiAffinityBuilder().build())); } - public PodAntiAffinityNested withNewPodAntiAffinity() { - return new PodAntiAffinityNested(null); + public PodAntiAffinityNested editOrNewPodAntiAffinityLike(V1PodAntiAffinity item) { + return this.withNewPodAntiAffinityLike(Optional.ofNullable(this.buildPodAntiAffinity()).orElse(item)); } - public PodAntiAffinityNested withNewPodAntiAffinityLike(V1PodAntiAffinity item) { - return new PodAntiAffinityNested(item); + public PodAffinityNested editPodAffinity() { + return this.withNewPodAffinityLike(Optional.ofNullable(this.buildPodAffinity()).orElse(null)); } public PodAntiAffinityNested editPodAntiAffinity() { return this.withNewPodAntiAffinityLike(Optional.ofNullable(this.buildPodAntiAffinity()).orElse(null)); } - public PodAntiAffinityNested editOrNewPodAntiAffinity() { - return this.withNewPodAntiAffinityLike(Optional.ofNullable(this.buildPodAntiAffinity()).orElse(new V1PodAntiAffinityBuilder().build())); - } - - public PodAntiAffinityNested editOrNewPodAntiAffinityLike(V1PodAntiAffinity item) { - return this.withNewPodAntiAffinityLike(Optional.ofNullable(this.buildPodAntiAffinity()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -176,6 +106,18 @@ public boolean equals(Object o) { return true; } + public boolean hasNodeAffinity() { + return this.nodeAffinity != null; + } + + public boolean hasPodAffinity() { + return this.podAffinity != null; + } + + public boolean hasPodAntiAffinity() { + return this.podAntiAffinity != null; + } + public int hashCode() { return Objects.hash(nodeAffinity, podAffinity, podAntiAffinity); } @@ -200,12 +142,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public NodeAffinityNested withNewNodeAffinity() { + return new NodeAffinityNested(null); + } + + public NodeAffinityNested withNewNodeAffinityLike(V1NodeAffinity item) { + return new NodeAffinityNested(item); + } + + public PodAffinityNested withNewPodAffinity() { + return new PodAffinityNested(null); + } + + public PodAffinityNested withNewPodAffinityLike(V1PodAffinity item) { + return new PodAffinityNested(item); + } + + public PodAntiAffinityNested withNewPodAntiAffinity() { + return new PodAntiAffinityNested(null); + } + + public PodAntiAffinityNested withNewPodAntiAffinityLike(V1PodAntiAffinity item) { + return new PodAntiAffinityNested(item); + } + + public A withNodeAffinity(V1NodeAffinity nodeAffinity) { + this._visitables.remove("nodeAffinity"); + if (nodeAffinity != null) { + this.nodeAffinity = new V1NodeAffinityBuilder(nodeAffinity); + this._visitables.get("nodeAffinity").add(this.nodeAffinity); + } else { + this.nodeAffinity = null; + this._visitables.get("nodeAffinity").remove(this.nodeAffinity); + } + return (A) this; + } + + public A withPodAffinity(V1PodAffinity podAffinity) { + this._visitables.remove("podAffinity"); + if (podAffinity != null) { + this.podAffinity = new V1PodAffinityBuilder(podAffinity); + this._visitables.get("podAffinity").add(this.podAffinity); + } else { + this.podAffinity = null; + this._visitables.get("podAffinity").remove(this.podAffinity); + } + return (A) this; + } + + public A withPodAntiAffinity(V1PodAntiAffinity podAntiAffinity) { + this._visitables.remove("podAntiAffinity"); + if (podAntiAffinity != null) { + this.podAntiAffinity = new V1PodAntiAffinityBuilder(podAntiAffinity); + this._visitables.get("podAntiAffinity").add(this.podAntiAffinity); + } else { + this.podAntiAffinity = null; + this._visitables.get("podAntiAffinity").remove(this.podAntiAffinity); + } + return (A) this; + } public class NodeAffinityNested extends V1NodeAffinityFluent> implements Nested{ + + V1NodeAffinityBuilder builder; + NodeAffinityNested(V1NodeAffinity item) { this.builder = new V1NodeAffinityBuilder(this, item); } - V1NodeAffinityBuilder builder; - + public N and() { return (N) V1AffinityFluent.this.withNodeAffinity(builder.build()); } @@ -214,14 +218,15 @@ public N endNodeAffinity() { return and(); } - } public class PodAffinityNested extends V1PodAffinityFluent> implements Nested{ + + V1PodAffinityBuilder builder; + PodAffinityNested(V1PodAffinity item) { this.builder = new V1PodAffinityBuilder(this, item); } - V1PodAffinityBuilder builder; - + public N and() { return (N) V1AffinityFluent.this.withPodAffinity(builder.build()); } @@ -230,14 +235,15 @@ public N endPodAffinity() { return and(); } - } public class PodAntiAffinityNested extends V1PodAntiAffinityFluent> implements Nested{ + + V1PodAntiAffinityBuilder builder; + PodAntiAffinityNested(V1PodAntiAffinity item) { this.builder = new V1PodAntiAffinityBuilder(this, item); } - V1PodAntiAffinityBuilder builder; - + public N and() { return (N) V1AffinityFluent.this.withPodAntiAffinity(builder.build()); } @@ -246,7 +252,5 @@ public N endPodAntiAffinity() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java index 49e562aee3..d2fb25e06e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1AggregationRuleBuilder extends V1AggregationRuleFluent implements VisitableBuilder{ + + V1AggregationRuleFluent fluent; + public V1AggregationRuleBuilder() { this(new V1AggregationRule()); } @@ -11,22 +14,20 @@ public V1AggregationRuleBuilder(V1AggregationRuleFluent fluent) { this(fluent, new V1AggregationRule()); } - public V1AggregationRuleBuilder(V1AggregationRuleFluent fluent,V1AggregationRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1AggregationRuleBuilder(V1AggregationRule instance) { this.fluent = this; this.copyInstance(instance); } - V1AggregationRuleFluent fluent; + public V1AggregationRuleBuilder(V1AggregationRuleFluent fluent,V1AggregationRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1AggregationRule build() { V1AggregationRule buildable = new V1AggregationRule(); buildable.setClusterRoleSelectors(fluent.buildClusterRoleSelectors()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java index af174b7461..745eb91914 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java @@ -1,67 +1,52 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1AggregationRuleFluent> extends BaseFluent{ + + private ArrayList clusterRoleSelectors; + public V1AggregationRuleFluent() { } public V1AggregationRuleFluent(V1AggregationRule instance) { this.copyInstance(instance); } - private ArrayList clusterRoleSelectors; - - protected void copyInstance(V1AggregationRule instance) { - instance = instance != null ? instance : new V1AggregationRule(); - if (instance != null) { - this.withClusterRoleSelectors(instance.getClusterRoleSelectors()); - } - } - - public A addToClusterRoleSelectors(int index,V1LabelSelector item) { + + public A addAllToClusterRoleSelectors(Collection items) { if (this.clusterRoleSelectors == null) { this.clusterRoleSelectors = new ArrayList(); } - V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); - if (index < 0 || index >= clusterRoleSelectors.size()) { - _visitables.get("clusterRoleSelectors").add(builder); - clusterRoleSelectors.add(builder); - } else { + for (V1LabelSelector item : items) { + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); _visitables.get("clusterRoleSelectors").add(builder); - clusterRoleSelectors.add(index, builder); + this.clusterRoleSelectors.add(builder); } return (A) this; } - public A setToClusterRoleSelectors(int index,V1LabelSelector item) { - if (this.clusterRoleSelectors == null) { - this.clusterRoleSelectors = new ArrayList(); - } - V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); - if (index < 0 || index >= clusterRoleSelectors.size()) { - _visitables.get("clusterRoleSelectors").add(builder); - clusterRoleSelectors.add(builder); - } else { - _visitables.get("clusterRoleSelectors").add(builder); - clusterRoleSelectors.set(index, builder); - } - return (A) this; + public ClusterRoleSelectorsNested addNewClusterRoleSelector() { + return new ClusterRoleSelectorsNested(-1, null); + } + + public ClusterRoleSelectorsNested addNewClusterRoleSelectorLike(V1LabelSelector item) { + return new ClusterRoleSelectorsNested(-1, item); } public A addToClusterRoleSelectors(V1LabelSelector... items) { @@ -76,66 +61,29 @@ public A addToClusterRoleSelectors(V1LabelSelector... items) { return (A) this; } - public A addAllToClusterRoleSelectors(Collection items) { + public A addToClusterRoleSelectors(int index,V1LabelSelector item) { if (this.clusterRoleSelectors == null) { this.clusterRoleSelectors = new ArrayList(); } - for (V1LabelSelector item : items) { - V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); + if (index < 0 || index >= clusterRoleSelectors.size()) { _visitables.get("clusterRoleSelectors").add(builder); - this.clusterRoleSelectors.add(builder); - } - return (A) this; - } - - public A removeFromClusterRoleSelectors(V1LabelSelector... items) { - if (this.clusterRoleSelectors == null) { - return (A) this; - } - for (V1LabelSelector item : items) { - V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); - _visitables.get("clusterRoleSelectors").remove(builder); - this.clusterRoleSelectors.remove(builder); - } - return (A) this; - } - - public A removeAllFromClusterRoleSelectors(Collection items) { - if (this.clusterRoleSelectors == null) { - return (A) this; - } - for (V1LabelSelector item : items) { - V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); - _visitables.get("clusterRoleSelectors").remove(builder); - this.clusterRoleSelectors.remove(builder); + clusterRoleSelectors.add(builder); + } else { + _visitables.get("clusterRoleSelectors").add(builder); + clusterRoleSelectors.add(index, builder); } return (A) this; } - public A removeMatchingFromClusterRoleSelectors(Predicate predicate) { - if (clusterRoleSelectors == null) { - return (A) this; - } - Iterator each = clusterRoleSelectors.iterator(); - List visitables = _visitables.get("clusterRoleSelectors"); - while (each.hasNext()) { - V1LabelSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1LabelSelector buildClusterRoleSelector(int index) { + return this.clusterRoleSelectors.get(index).build(); } public List buildClusterRoleSelectors() { return this.clusterRoleSelectors != null ? build(clusterRoleSelectors) : null; } - public V1LabelSelector buildClusterRoleSelector(int index) { - return this.clusterRoleSelectors.get(index).build(); - } - public V1LabelSelector buildFirstClusterRoleSelector() { return this.clusterRoleSelectors.get(0).build(); } @@ -153,61 +101,15 @@ public V1LabelSelector buildMatchingClusterRoleSelector(Predicate predicate) { - for (V1LabelSelectorBuilder item : clusterRoleSelectors) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withClusterRoleSelectors(List clusterRoleSelectors) { - if (this.clusterRoleSelectors != null) { - this._visitables.get("clusterRoleSelectors").clear(); - } - if (clusterRoleSelectors != null) { - this.clusterRoleSelectors = new ArrayList(); - for (V1LabelSelector item : clusterRoleSelectors) { - this.addToClusterRoleSelectors(item); - } - } else { - this.clusterRoleSelectors = null; - } - return (A) this; - } - - public A withClusterRoleSelectors(V1LabelSelector... clusterRoleSelectors) { - if (this.clusterRoleSelectors != null) { - this.clusterRoleSelectors.clear(); - _visitables.remove("clusterRoleSelectors"); - } - if (clusterRoleSelectors != null) { - for (V1LabelSelector item : clusterRoleSelectors) { - this.addToClusterRoleSelectors(item); - } + protected void copyInstance(V1AggregationRule instance) { + instance = instance != null ? instance : new V1AggregationRule(); + if (instance != null) { + this.withClusterRoleSelectors(instance.getClusterRoleSelectors()); } - return (A) this; - } - - public boolean hasClusterRoleSelectors() { - return this.clusterRoleSelectors != null && !(this.clusterRoleSelectors.isEmpty()); - } - - public ClusterRoleSelectorsNested addNewClusterRoleSelector() { - return new ClusterRoleSelectorsNested(-1, null); - } - - public ClusterRoleSelectorsNested addNewClusterRoleSelectorLike(V1LabelSelector item) { - return new ClusterRoleSelectorsNested(-1, item); - } - - public ClusterRoleSelectorsNested setNewClusterRoleSelectorLike(int index,V1LabelSelector item) { - return new ClusterRoleSelectorsNested(index, item); } public ClusterRoleSelectorsNested editClusterRoleSelector(int index) { - if (index <= clusterRoleSelectors.size()) { + if (clusterRoleSelectors.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "clusterRoleSelectors")); } return this.setNewClusterRoleSelectorLike(index, this.buildClusterRoleSelector(index)); @@ -259,10 +161,82 @@ public boolean equals(Object o) { return true; } + public boolean hasClusterRoleSelectors() { + return this.clusterRoleSelectors != null && !(this.clusterRoleSelectors.isEmpty()); + } + + public boolean hasMatchingClusterRoleSelector(Predicate predicate) { + for (V1LabelSelectorBuilder item : clusterRoleSelectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(clusterRoleSelectors); } + public A removeAllFromClusterRoleSelectors(Collection items) { + if (this.clusterRoleSelectors == null) { + return (A) this; + } + for (V1LabelSelector item : items) { + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); + _visitables.get("clusterRoleSelectors").remove(builder); + this.clusterRoleSelectors.remove(builder); + } + return (A) this; + } + + public A removeFromClusterRoleSelectors(V1LabelSelector... items) { + if (this.clusterRoleSelectors == null) { + return (A) this; + } + for (V1LabelSelector item : items) { + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); + _visitables.get("clusterRoleSelectors").remove(builder); + this.clusterRoleSelectors.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromClusterRoleSelectors(Predicate predicate) { + if (clusterRoleSelectors == null) { + return (A) this; + } + Iterator each = clusterRoleSelectors.iterator(); + List visitables = _visitables.get("clusterRoleSelectors"); + while (each.hasNext()) { + V1LabelSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ClusterRoleSelectorsNested setNewClusterRoleSelectorLike(int index,V1LabelSelector item) { + return new ClusterRoleSelectorsNested(index, item); + } + + public A setToClusterRoleSelectors(int index,V1LabelSelector item) { + if (this.clusterRoleSelectors == null) { + this.clusterRoleSelectors = new ArrayList(); + } + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); + if (index < 0 || index >= clusterRoleSelectors.size()) { + _visitables.get("clusterRoleSelectors").add(builder); + clusterRoleSelectors.add(builder); + } else { + _visitables.get("clusterRoleSelectors").add(builder); + clusterRoleSelectors.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -273,14 +247,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withClusterRoleSelectors(List clusterRoleSelectors) { + if (this.clusterRoleSelectors != null) { + this._visitables.get("clusterRoleSelectors").clear(); + } + if (clusterRoleSelectors != null) { + this.clusterRoleSelectors = new ArrayList(); + for (V1LabelSelector item : clusterRoleSelectors) { + this.addToClusterRoleSelectors(item); + } + } else { + this.clusterRoleSelectors = null; + } + return (A) this; + } + + public A withClusterRoleSelectors(V1LabelSelector... clusterRoleSelectors) { + if (this.clusterRoleSelectors != null) { + this.clusterRoleSelectors.clear(); + _visitables.remove("clusterRoleSelectors"); + } + if (clusterRoleSelectors != null) { + for (V1LabelSelector item : clusterRoleSelectors) { + this.addToClusterRoleSelectors(item); + } + } + return (A) this; + } public class ClusterRoleSelectorsNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + int index; + ClusterRoleSelectorsNested(int index,V1LabelSelector item) { this.index = index; this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - int index; - + public N and() { return (N) V1AggregationRuleFluent.this.setToClusterRoleSelectors(index, builder.build()); } @@ -289,7 +293,5 @@ public N endClusterRoleSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusBuilder.java index 8962dba651..a0d0947a3d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1AllocatedDeviceStatusBuilder extends V1AllocatedDeviceStatusFluent implements VisitableBuilder{ + + V1AllocatedDeviceStatusFluent fluent; + public V1AllocatedDeviceStatusBuilder() { this(new V1AllocatedDeviceStatus()); } @@ -11,17 +14,16 @@ public V1AllocatedDeviceStatusBuilder(V1AllocatedDeviceStatusFluent fluent) { this(fluent, new V1AllocatedDeviceStatus()); } - public V1AllocatedDeviceStatusBuilder(V1AllocatedDeviceStatusFluent fluent,V1AllocatedDeviceStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1AllocatedDeviceStatusBuilder(V1AllocatedDeviceStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1AllocatedDeviceStatusFluent fluent; + public V1AllocatedDeviceStatusBuilder(V1AllocatedDeviceStatusFluent fluent,V1AllocatedDeviceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1AllocatedDeviceStatus build() { V1AllocatedDeviceStatus buildable = new V1AllocatedDeviceStatus(); buildable.setConditions(fluent.buildConditions()); @@ -34,5 +36,4 @@ public V1AllocatedDeviceStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusFluent.java index 138caf9b6d..ef36b2b4cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusFluent.java @@ -1,31 +1,26 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1AllocatedDeviceStatusFluent> extends BaseFluent{ - public V1AllocatedDeviceStatusFluent() { - } - - public V1AllocatedDeviceStatusFluent(V1AllocatedDeviceStatus instance) { - this.copyInstance(instance); - } + private ArrayList conditions; private Object data; private String device; @@ -33,48 +28,32 @@ public V1AllocatedDeviceStatusFluent(V1AllocatedDeviceStatus instance) { private V1NetworkDeviceDataBuilder networkData; private String pool; private String shareID; - - protected void copyInstance(V1AllocatedDeviceStatus instance) { - instance = instance != null ? instance : new V1AllocatedDeviceStatus(); - if (instance != null) { - this.withConditions(instance.getConditions()); - this.withData(instance.getData()); - this.withDevice(instance.getDevice()); - this.withDriver(instance.getDriver()); - this.withNetworkData(instance.getNetworkData()); - this.withPool(instance.getPool()); - this.withShareID(instance.getShareID()); - } + + public V1AllocatedDeviceStatusFluent() { } - public A addToConditions(int index,V1Condition item) { + public V1AllocatedDeviceStatusFluent(V1AllocatedDeviceStatus instance) { + this.copyInstance(instance); + } + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1Condition... items) { @@ -89,66 +68,29 @@ public A addToConditions(V1Condition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1Condition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1Condition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -166,61 +108,25 @@ public V1Condition buildMatchingCondition(Predicate predicat return null; } - public boolean hasMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + public V1NetworkDeviceData buildNetworkData() { + return this.networkData != null ? this.networkData.build() : null; } - public A withConditions(V1Condition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1Condition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1AllocatedDeviceStatus instance) { + instance = instance != null ? instance : new V1AllocatedDeviceStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withData(instance.getData()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withNetworkData(instance.getNetworkData()); + this.withPool(instance.getPool()); + this.withShareID(instance.getShareID()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -255,148 +161,171 @@ public ConditionsNested editMatchingCondition(Predicate p return this.setNewConditionLike(index, this.buildCondition(index)); } - public Object getData() { - return this.data; + public NetworkDataNested editNetworkData() { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(null)); } - public A withData(Object data) { - this.data = data; - return (A) this; + public NetworkDataNested editOrNewNetworkData() { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(new V1NetworkDeviceDataBuilder().build())); } - public boolean hasData() { - return this.data != null; + public NetworkDataNested editOrNewNetworkDataLike(V1NetworkDeviceData item) { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(item)); } - public String getDevice() { - return this.device; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1AllocatedDeviceStatusFluent that = (V1AllocatedDeviceStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(data, that.data))) { + return false; + } + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(networkData, that.networkData))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(shareID, that.shareID))) { + return false; + } + return true; } - public A withDevice(String device) { - this.device = device; - return (A) this; + public Object getData() { + return this.data; } - public boolean hasDevice() { - return this.device != null; + public String getDevice() { + return this.device; } public String getDriver() { return this.driver; } - public A withDriver(String driver) { - this.driver = driver; - return (A) this; + public String getPool() { + return this.pool; } - public boolean hasDriver() { - return this.driver != null; + public String getShareID() { + return this.shareID; } - public V1NetworkDeviceData buildNetworkData() { - return this.networkData != null ? this.networkData.build() : null; + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); } - public A withNetworkData(V1NetworkDeviceData networkData) { - this._visitables.remove("networkData"); - if (networkData != null) { - this.networkData = new V1NetworkDeviceDataBuilder(networkData); - this._visitables.get("networkData").add(this.networkData); - } else { - this.networkData = null; - this._visitables.get("networkData").remove(this.networkData); - } - return (A) this; + public boolean hasData() { + return this.data != null; } - public boolean hasNetworkData() { - return this.networkData != null; + public boolean hasDevice() { + return this.device != null; } - public NetworkDataNested withNewNetworkData() { - return new NetworkDataNested(null); + public boolean hasDriver() { + return this.driver != null; } - public NetworkDataNested withNewNetworkDataLike(V1NetworkDeviceData item) { - return new NetworkDataNested(item); + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public NetworkDataNested editNetworkData() { - return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(null)); + public boolean hasNetworkData() { + return this.networkData != null; } - public NetworkDataNested editOrNewNetworkData() { - return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(new V1NetworkDeviceDataBuilder().build())); + public boolean hasPool() { + return this.pool != null; } - public NetworkDataNested editOrNewNetworkDataLike(V1NetworkDeviceData item) { - return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(item)); + public boolean hasShareID() { + return this.shareID != null; } - public String getPool() { - return this.pool; + public int hashCode() { + return Objects.hash(conditions, data, device, driver, networkData, pool, shareID); } - public A withPool(String pool) { - this.pool = pool; + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } return (A) this; } - public boolean hasPool() { - return this.pool != null; - } - - public String getShareID() { - return this.shareID; + public A removeFromConditions(V1Condition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } - public A withShareID(String shareID) { - this.shareID = shareID; + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } return (A) this; } - public boolean hasShareID() { - return this.shareID != null; + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1AllocatedDeviceStatusFluent that = (V1AllocatedDeviceStatusFluent) o; - if (!(Objects.equals(conditions, that.conditions))) { - return false; - } - if (!(Objects.equals(data, that.data))) { - return false; - } - if (!(Objects.equals(device, that.device))) { - return false; - } - if (!(Objects.equals(driver, that.driver))) { - return false; - } - if (!(Objects.equals(networkData, that.networkData))) { - return false; - } - if (!(Objects.equals(pool, that.pool))) { - return false; + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); } - if (!(Objects.equals(shareID, that.shareID))) { - return false; + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); } - return true; - } - - public int hashCode() { - return Objects.hash(conditions, data, device, driver, networkData, pool, shareID); + return (A) this; } public String toString() { @@ -439,14 +368,89 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withData(Object data) { + this.data = data; + return (A) this; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withNetworkData(V1NetworkDeviceData networkData) { + this._visitables.remove("networkData"); + if (networkData != null) { + this.networkData = new V1NetworkDeviceDataBuilder(networkData); + this._visitables.get("networkData").add(this.networkData); + } else { + this.networkData = null; + this._visitables.get("networkData").remove(this.networkData); + } + return (A) this; + } + + public NetworkDataNested withNewNetworkData() { + return new NetworkDataNested(null); + } + + public NetworkDataNested withNewNetworkDataLike(V1NetworkDeviceData item) { + return new NetworkDataNested(item); + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public A withShareID(String shareID) { + this.shareID = shareID; + return (A) this; + } public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + ConditionsNested(int index,V1Condition item) { this.index = index; this.builder = new V1ConditionBuilder(this, item); } - V1ConditionBuilder builder; - int index; - + public N and() { return (N) V1AllocatedDeviceStatusFluent.this.setToConditions(index, builder.build()); } @@ -455,14 +459,15 @@ public N endCondition() { return and(); } - } public class NetworkDataNested extends V1NetworkDeviceDataFluent> implements Nested{ + + V1NetworkDeviceDataBuilder builder; + NetworkDataNested(V1NetworkDeviceData item) { this.builder = new V1NetworkDeviceDataBuilder(this, item); } - V1NetworkDeviceDataBuilder builder; - + public N and() { return (N) V1AllocatedDeviceStatusFluent.this.withNetworkData(builder.build()); } @@ -471,7 +476,5 @@ public N endNetworkData() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultBuilder.java index fd86bf9d62..b5447404d4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1AllocationResultBuilder extends V1AllocationResultFluent implements VisitableBuilder{ + + V1AllocationResultFluent fluent; + public V1AllocationResultBuilder() { this(new V1AllocationResult()); } @@ -11,17 +14,16 @@ public V1AllocationResultBuilder(V1AllocationResultFluent fluent) { this(fluent, new V1AllocationResult()); } - public V1AllocationResultBuilder(V1AllocationResultFluent fluent,V1AllocationResult instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1AllocationResultBuilder(V1AllocationResult instance) { this.fluent = this; this.copyInstance(instance); } - V1AllocationResultFluent fluent; + public V1AllocationResultBuilder(V1AllocationResultFluent fluent,V1AllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1AllocationResult build() { V1AllocationResult buildable = new V1AllocationResult(); buildable.setAllocationTimestamp(fluent.getAllocationTimestamp()); @@ -30,5 +32,4 @@ public V1AllocationResult build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultFluent.java index 7c48bee93a..e25c7bdf86 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1AllocationResultFluent> extends BaseFluent{ + + private OffsetDateTime allocationTimestamp; + private V1DeviceAllocationResultBuilder devices; + private V1NodeSelectorBuilder nodeSelector; + public V1AllocationResultFluent() { } public V1AllocationResultFluent(V1AllocationResult instance) { this.copyInstance(instance); } - private OffsetDateTime allocationTimestamp; - private V1DeviceAllocationResultBuilder devices; - private V1NodeSelectorBuilder nodeSelector; + + public V1DeviceAllocationResult buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } protected void copyInstance(V1AllocationResult instance) { instance = instance != null ? instance : new V1AllocationResult(); @@ -34,51 +44,14 @@ protected void copyInstance(V1AllocationResult instance) { } } - public OffsetDateTime getAllocationTimestamp() { - return this.allocationTimestamp; - } - - public A withAllocationTimestamp(OffsetDateTime allocationTimestamp) { - this.allocationTimestamp = allocationTimestamp; - return (A) this; - } - - public boolean hasAllocationTimestamp() { - return this.allocationTimestamp != null; - } - - public V1DeviceAllocationResult buildDevices() { - return this.devices != null ? this.devices.build() : null; - } - - public A withDevices(V1DeviceAllocationResult devices) { - this._visitables.remove("devices"); - if (devices != null) { - this.devices = new V1DeviceAllocationResultBuilder(devices); - this._visitables.get("devices").add(this.devices); - } else { - this.devices = null; - this._visitables.get("devices").remove(this.devices); - } - return (A) this; - } - - public boolean hasDevices() { - return this.devices != null; - } - - public DevicesNested withNewDevices() { - return new DevicesNested(null); - } - - public DevicesNested withNewDevicesLike(V1DeviceAllocationResult item) { - return new DevicesNested(item); - } - public DevicesNested editDevices() { return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(null)); } + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + } + public DevicesNested editOrNewDevices() { return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(new V1DeviceAllocationResultBuilder().build())); } @@ -87,38 +60,6 @@ public DevicesNested editOrNewDevicesLike(V1DeviceAllocationResult item) { return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(item)); } - public V1NodeSelector buildNodeSelector() { - return this.nodeSelector != null ? this.nodeSelector.build() : null; - } - - public A withNodeSelector(V1NodeSelector nodeSelector) { - this._visitables.remove("nodeSelector"); - if (nodeSelector != null) { - this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); - this._visitables.get("nodeSelector").add(this.nodeSelector); - } else { - this.nodeSelector = null; - this._visitables.get("nodeSelector").remove(this.nodeSelector); - } - return (A) this; - } - - public boolean hasNodeSelector() { - return this.nodeSelector != null; - } - - public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); - } - - public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); - } - - public NodeSelectorNested editNodeSelector() { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); - } - public NodeSelectorNested editOrNewNodeSelector() { return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); } @@ -150,6 +91,22 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getAllocationTimestamp() { + return this.allocationTimestamp; + } + + public boolean hasAllocationTimestamp() { + return this.allocationTimestamp != null; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + public int hashCode() { return Objects.hash(allocationTimestamp, devices, nodeSelector); } @@ -174,12 +131,59 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAllocationTimestamp(OffsetDateTime allocationTimestamp) { + this.allocationTimestamp = allocationTimestamp; + return (A) this; + } + + public A withDevices(V1DeviceAllocationResult devices) { + this._visitables.remove("devices"); + if (devices != null) { + this.devices = new V1DeviceAllocationResultBuilder(devices); + this._visitables.get("devices").add(this.devices); + } else { + this.devices = null; + this._visitables.get("devices").remove(this.devices); + } + return (A) this; + } + + public DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1DeviceAllocationResult item) { + return new DevicesNested(item); + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public A withNodeSelector(V1NodeSelector nodeSelector) { + this._visitables.remove("nodeSelector"); + if (nodeSelector != null) { + this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); + this._visitables.get("nodeSelector").add(this.nodeSelector); + } else { + this.nodeSelector = null; + this._visitables.get("nodeSelector").remove(this.nodeSelector); + } + return (A) this; + } public class DevicesNested extends V1DeviceAllocationResultFluent> implements Nested{ + + V1DeviceAllocationResultBuilder builder; + DevicesNested(V1DeviceAllocationResult item) { this.builder = new V1DeviceAllocationResultBuilder(this, item); } - V1DeviceAllocationResultBuilder builder; - + public N and() { return (N) V1AllocationResultFluent.this.withDevices(builder.build()); } @@ -188,14 +192,15 @@ public N endDevices() { return and(); } - } public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + NodeSelectorNested(V1NodeSelector item) { this.builder = new V1NodeSelectorBuilder(this, item); } - V1NodeSelectorBuilder builder; - + public N and() { return (N) V1AllocationResultFluent.this.withNodeSelector(builder.build()); } @@ -204,7 +209,5 @@ public N endNodeSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java index 21cf409e42..3ff7978cc7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1AppArmorProfileBuilder extends V1AppArmorProfileFluent implements VisitableBuilder{ + + V1AppArmorProfileFluent fluent; + public V1AppArmorProfileBuilder() { this(new V1AppArmorProfile()); } @@ -11,17 +14,16 @@ public V1AppArmorProfileBuilder(V1AppArmorProfileFluent fluent) { this(fluent, new V1AppArmorProfile()); } - public V1AppArmorProfileBuilder(V1AppArmorProfileFluent fluent,V1AppArmorProfile instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1AppArmorProfileBuilder(V1AppArmorProfile instance) { this.fluent = this; this.copyInstance(instance); } - V1AppArmorProfileFluent fluent; + public V1AppArmorProfileBuilder(V1AppArmorProfileFluent fluent,V1AppArmorProfile instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1AppArmorProfile build() { V1AppArmorProfile buildable = new V1AppArmorProfile(); buildable.setLocalhostProfile(fluent.getLocalhostProfile()); @@ -29,5 +31,4 @@ public V1AppArmorProfile build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileFluent.java index 1d045e96b2..30320d40c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1AppArmorProfileFluent> extends BaseFluent{ + + private String localhostProfile; + private String type; + public V1AppArmorProfileFluent() { } public V1AppArmorProfileFluent(V1AppArmorProfile instance) { this.copyInstance(instance); } - private String localhostProfile; - private String type; - + protected void copyInstance(V1AppArmorProfile instance) { instance = instance != null ? instance : new V1AppArmorProfile(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1AppArmorProfile instance) { } } - public String getLocalhostProfile() { - return this.localhostProfile; - } - - public A withLocalhostProfile(String localhostProfile) { - this.localhostProfile = localhostProfile; - return (A) this; - } - - public boolean hasLocalhostProfile() { - return this.localhostProfile != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getLocalhostProfile() { + return this.localhostProfile; + } + + public String getType() { + return this.type; + } + + public boolean hasLocalhostProfile() { + return this.localhostProfile != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(localhostProfile, type); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withLocalhostProfile(String localhostProfile) { + this.localhostProfile = localhostProfile; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java index fc533773fd..416903fa54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1AttachedVolumeBuilder extends V1AttachedVolumeFluent implements VisitableBuilder{ + + V1AttachedVolumeFluent fluent; + public V1AttachedVolumeBuilder() { this(new V1AttachedVolume()); } @@ -11,17 +14,16 @@ public V1AttachedVolumeBuilder(V1AttachedVolumeFluent fluent) { this(fluent, new V1AttachedVolume()); } - public V1AttachedVolumeBuilder(V1AttachedVolumeFluent fluent,V1AttachedVolume instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1AttachedVolumeBuilder(V1AttachedVolume instance) { this.fluent = this; this.copyInstance(instance); } - V1AttachedVolumeFluent fluent; + public V1AttachedVolumeBuilder(V1AttachedVolumeFluent fluent,V1AttachedVolume instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1AttachedVolume build() { V1AttachedVolume buildable = new V1AttachedVolume(); buildable.setDevicePath(fluent.getDevicePath()); @@ -29,5 +31,4 @@ public V1AttachedVolume build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java index 6576fec652..a34c519c03 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1AttachedVolumeFluent> extends BaseFluent{ + + private String devicePath; + private String name; + public V1AttachedVolumeFluent() { } public V1AttachedVolumeFluent(V1AttachedVolume instance) { this.copyInstance(instance); } - private String devicePath; - private String name; - + protected void copyInstance(V1AttachedVolume instance) { instance = instance != null ? instance : new V1AttachedVolume(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1AttachedVolume instance) { } } - public String getDevicePath() { - return this.devicePath; - } - - public A withDevicePath(String devicePath) { - this.devicePath = devicePath; - return (A) this; - } - - public boolean hasDevicePath() { - return this.devicePath != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getDevicePath() { + return this.devicePath; + } + + public String getName() { + return this.name; + } + + public boolean hasDevicePath() { + return this.devicePath != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(devicePath, name); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withDevicePath(String devicePath) { + this.devicePath = devicePath; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationBuilder.java index 721cc796aa..d604c8ec0a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1AuditAnnotationBuilder extends V1AuditAnnotationFluent implements VisitableBuilder{ + + V1AuditAnnotationFluent fluent; + public V1AuditAnnotationBuilder() { this(new V1AuditAnnotation()); } @@ -11,17 +14,16 @@ public V1AuditAnnotationBuilder(V1AuditAnnotationFluent fluent) { this(fluent, new V1AuditAnnotation()); } - public V1AuditAnnotationBuilder(V1AuditAnnotationFluent fluent,V1AuditAnnotation instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1AuditAnnotationBuilder(V1AuditAnnotation instance) { this.fluent = this; this.copyInstance(instance); } - V1AuditAnnotationFluent fluent; + public V1AuditAnnotationBuilder(V1AuditAnnotationFluent fluent,V1AuditAnnotation instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1AuditAnnotation build() { V1AuditAnnotation buildable = new V1AuditAnnotation(); buildable.setKey(fluent.getKey()); @@ -29,5 +31,4 @@ public V1AuditAnnotation build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationFluent.java index c4f2f1959a..eb0858110c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1AuditAnnotationFluent> extends BaseFluent{ + + private String key; + private String valueExpression; + public V1AuditAnnotationFluent() { } public V1AuditAnnotationFluent(V1AuditAnnotation instance) { this.copyInstance(instance); } - private String key; - private String valueExpression; - + protected void copyInstance(V1AuditAnnotation instance) { instance = instance != null ? instance : new V1AuditAnnotation(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1AuditAnnotation instance) { } } - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public String getValueExpression() { - return this.valueExpression; - } - - public A withValueExpression(String valueExpression) { - this.valueExpression = valueExpression; - return (A) this; - } - - public boolean hasValueExpression() { - return this.valueExpression != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getKey() { + return this.key; + } + + public String getValueExpression() { + return this.valueExpression; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasValueExpression() { + return this.valueExpression != null; + } + public int hashCode() { return Objects.hash(key, valueExpression); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withValueExpression(String valueExpression) { + this.valueExpression = valueExpression; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java index 4b9a251373..9475995cd3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1AzureDiskVolumeSourceBuilder extends V1AzureDiskVolumeSourceFluent implements VisitableBuilder{ + + V1AzureDiskVolumeSourceFluent fluent; + public V1AzureDiskVolumeSourceBuilder() { this(new V1AzureDiskVolumeSource()); } @@ -11,17 +14,16 @@ public V1AzureDiskVolumeSourceBuilder(V1AzureDiskVolumeSourceFluent fluent) { this(fluent, new V1AzureDiskVolumeSource()); } - public V1AzureDiskVolumeSourceBuilder(V1AzureDiskVolumeSourceFluent fluent,V1AzureDiskVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1AzureDiskVolumeSourceBuilder(V1AzureDiskVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1AzureDiskVolumeSourceFluent fluent; + public V1AzureDiskVolumeSourceBuilder(V1AzureDiskVolumeSourceFluent fluent,V1AzureDiskVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1AzureDiskVolumeSource build() { V1AzureDiskVolumeSource buildable = new V1AzureDiskVolumeSource(); buildable.setCachingMode(fluent.getCachingMode()); @@ -33,5 +35,4 @@ public V1AzureDiskVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java index 68c7ae7931..4caca0be8a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java @@ -1,31 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1AzureDiskVolumeSourceFluent> extends BaseFluent{ - public V1AzureDiskVolumeSourceFluent() { - } - - public V1AzureDiskVolumeSourceFluent(V1AzureDiskVolumeSource instance) { - this.copyInstance(instance); - } + private String cachingMode; private String diskName; private String diskURI; private String fsType; private String kind; private Boolean readOnly; + + public V1AzureDiskVolumeSourceFluent() { + } + public V1AzureDiskVolumeSourceFluent(V1AzureDiskVolumeSource instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1AzureDiskVolumeSource instance) { instance = instance != null ? instance : new V1AzureDiskVolumeSource(); if (instance != null) { @@ -38,116 +40,86 @@ protected void copyInstance(V1AzureDiskVolumeSource instance) { } } - public String getCachingMode() { - return this.cachingMode; - } - - public A withCachingMode(String cachingMode) { - this.cachingMode = cachingMode; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1AzureDiskVolumeSourceFluent that = (V1AzureDiskVolumeSourceFluent) o; + if (!(Objects.equals(cachingMode, that.cachingMode))) { + return false; + } + if (!(Objects.equals(diskName, that.diskName))) { + return false; + } + if (!(Objects.equals(diskURI, that.diskURI))) { + return false; + } + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + return true; } - public boolean hasCachingMode() { - return this.cachingMode != null; + public String getCachingMode() { + return this.cachingMode; } public String getDiskName() { return this.diskName; } - public A withDiskName(String diskName) { - this.diskName = diskName; - return (A) this; - } - - public boolean hasDiskName() { - return this.diskName != null; - } - public String getDiskURI() { return this.diskURI; } - public A withDiskURI(String diskURI) { - this.diskURI = diskURI; - return (A) this; - } - - public boolean hasDiskURI() { - return this.diskURI != null; - } - public String getFsType() { return this.fsType; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public String getKind() { + return this.kind; } - public boolean hasFsType() { - return this.fsType != null; + public Boolean getReadOnly() { + return this.readOnly; } - public String getKind() { - return this.kind; + public boolean hasCachingMode() { + return this.cachingMode != null; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasDiskName() { + return this.diskName != null; } - public boolean hasKind() { - return this.kind != null; + public boolean hasDiskURI() { + return this.diskURI != null; } - public Boolean getReadOnly() { - return this.readOnly; + public boolean hasFsType() { + return this.fsType != null; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public boolean hasKind() { + return this.kind != null; } public boolean hasReadOnly() { return this.readOnly != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1AzureDiskVolumeSourceFluent that = (V1AzureDiskVolumeSourceFluent) o; - if (!(Objects.equals(cachingMode, that.cachingMode))) { - return false; - } - if (!(Objects.equals(diskName, that.diskName))) { - return false; - } - if (!(Objects.equals(diskURI, that.diskURI))) { - return false; - } - if (!(Objects.equals(fsType, that.fsType))) { - return false; - } - if (!(Objects.equals(kind, that.kind))) { - return false; - } - if (!(Objects.equals(readOnly, that.readOnly))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(cachingMode, diskName, diskURI, fsType, kind, readOnly); } @@ -188,9 +160,38 @@ public String toString() { return sb.toString(); } + public A withCachingMode(String cachingMode) { + this.cachingMode = cachingMode; + return (A) this; + } + + public A withDiskName(String diskName) { + this.diskName = diskName; + return (A) this; + } + + public A withDiskURI(String diskURI) { + this.diskURI = diskURI; + return (A) this; + } + + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java index 59edfe323e..e8d761cf77 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1AzureFilePersistentVolumeSourceBuilder extends V1AzureFilePersistentVolumeSourceFluent implements VisitableBuilder{ + + V1AzureFilePersistentVolumeSourceFluent fluent; + public V1AzureFilePersistentVolumeSourceBuilder() { this(new V1AzureFilePersistentVolumeSource()); } @@ -11,17 +14,16 @@ public V1AzureFilePersistentVolumeSourceBuilder(V1AzureFilePersistentVolumeSourc this(fluent, new V1AzureFilePersistentVolumeSource()); } - public V1AzureFilePersistentVolumeSourceBuilder(V1AzureFilePersistentVolumeSourceFluent fluent,V1AzureFilePersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1AzureFilePersistentVolumeSourceBuilder(V1AzureFilePersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1AzureFilePersistentVolumeSourceFluent fluent; + public V1AzureFilePersistentVolumeSourceBuilder(V1AzureFilePersistentVolumeSourceFluent fluent,V1AzureFilePersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1AzureFilePersistentVolumeSource build() { V1AzureFilePersistentVolumeSource buildable = new V1AzureFilePersistentVolumeSource(); buildable.setReadOnly(fluent.getReadOnly()); @@ -31,5 +33,4 @@ public V1AzureFilePersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java index d4510f7e9f..3ce370e241 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1AzureFilePersistentVolumeSourceFluent> extends BaseFluent{ + + private Boolean readOnly; + private String secretName; + private String secretNamespace; + private String shareName; + public V1AzureFilePersistentVolumeSourceFluent() { } public V1AzureFilePersistentVolumeSourceFluent(V1AzureFilePersistentVolumeSource instance) { this.copyInstance(instance); } - private Boolean readOnly; - private String secretName; - private String secretNamespace; - private String shareName; - + protected void copyInstance(V1AzureFilePersistentVolumeSource instance) { instance = instance != null ? instance : new V1AzureFilePersistentVolumeSource(); if (instance != null) { @@ -34,58 +36,6 @@ protected void copyInstance(V1AzureFilePersistentVolumeSource instance) { } } - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - - public String getSecretName() { - return this.secretName; - } - - public A withSecretName(String secretName) { - this.secretName = secretName; - return (A) this; - } - - public boolean hasSecretName() { - return this.secretName != null; - } - - public String getSecretNamespace() { - return this.secretNamespace; - } - - public A withSecretNamespace(String secretNamespace) { - this.secretNamespace = secretNamespace; - return (A) this; - } - - public boolean hasSecretNamespace() { - return this.secretNamespace != null; - } - - public String getShareName() { - return this.shareName; - } - - public A withShareName(String shareName) { - this.shareName = shareName; - return (A) this; - } - - public boolean hasShareName() { - return this.shareName != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -112,6 +62,38 @@ public boolean equals(Object o) { return true; } + public Boolean getReadOnly() { + return this.readOnly; + } + + public String getSecretName() { + return this.secretName; + } + + public String getSecretNamespace() { + return this.secretNamespace; + } + + public String getShareName() { + return this.shareName; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + + public boolean hasSecretName() { + return this.secretName != null; + } + + public boolean hasSecretNamespace() { + return this.secretNamespace != null; + } + + public boolean hasShareName() { + return this.shareName != null; + } + public int hashCode() { return Objects.hash(readOnly, secretName, secretNamespace, shareName); } @@ -146,5 +128,24 @@ public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretName(String secretName) { + this.secretName = secretName; + return (A) this; + } + + public A withSecretNamespace(String secretNamespace) { + this.secretNamespace = secretNamespace; + return (A) this; + } + + public A withShareName(String shareName) { + this.shareName = shareName; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java index 298a750db0..59c8712fc3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1AzureFileVolumeSourceBuilder extends V1AzureFileVolumeSourceFluent implements VisitableBuilder{ + + V1AzureFileVolumeSourceFluent fluent; + public V1AzureFileVolumeSourceBuilder() { this(new V1AzureFileVolumeSource()); } @@ -11,17 +14,16 @@ public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSourceFluent fluent) { this(fluent, new V1AzureFileVolumeSource()); } - public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSourceFluent fluent,V1AzureFileVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1AzureFileVolumeSourceFluent fluent; + public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSourceFluent fluent,V1AzureFileVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1AzureFileVolumeSource build() { V1AzureFileVolumeSource buildable = new V1AzureFileVolumeSource(); buildable.setReadOnly(fluent.getReadOnly()); @@ -30,5 +32,4 @@ public V1AzureFileVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java index d5f618dba7..f0daaa72bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1AzureFileVolumeSourceFluent> extends BaseFluent{ + + private Boolean readOnly; + private String secretName; + private String shareName; + public V1AzureFileVolumeSourceFluent() { } public V1AzureFileVolumeSourceFluent(V1AzureFileVolumeSource instance) { this.copyInstance(instance); } - private Boolean readOnly; - private String secretName; - private String shareName; - + protected void copyInstance(V1AzureFileVolumeSource instance) { instance = instance != null ? instance : new V1AzureFileVolumeSource(); if (instance != null) { @@ -32,45 +34,6 @@ protected void copyInstance(V1AzureFileVolumeSource instance) { } } - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - - public String getSecretName() { - return this.secretName; - } - - public A withSecretName(String secretName) { - this.secretName = secretName; - return (A) this; - } - - public boolean hasSecretName() { - return this.secretName != null; - } - - public String getShareName() { - return this.shareName; - } - - public A withShareName(String shareName) { - this.shareName = shareName; - return (A) this; - } - - public boolean hasShareName() { - return this.shareName != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -94,6 +57,30 @@ public boolean equals(Object o) { return true; } + public Boolean getReadOnly() { + return this.readOnly; + } + + public String getSecretName() { + return this.secretName; + } + + public String getShareName() { + return this.shareName; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + + public boolean hasSecretName() { + return this.secretName != null; + } + + public boolean hasShareName() { + return this.shareName != null; + } + public int hashCode() { return Objects.hash(readOnly, secretName, shareName); } @@ -123,5 +110,19 @@ public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretName(String secretName) { + this.secretName = secretName; + return (A) this; + } + + public A withShareName(String shareName) { + this.shareName = shareName; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java index 40c77bd878..26d7d3539c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1BindingBuilder extends V1BindingFluent implements VisitableBuilder{ + + V1BindingFluent fluent; + public V1BindingBuilder() { this(new V1Binding()); } @@ -11,17 +14,16 @@ public V1BindingBuilder(V1BindingFluent fluent) { this(fluent, new V1Binding()); } - public V1BindingBuilder(V1BindingFluent fluent,V1Binding instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1BindingBuilder(V1Binding instance) { this.fluent = this; this.copyInstance(instance); } - V1BindingFluent fluent; + public V1BindingBuilder(V1BindingFluent fluent,V1Binding instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Binding build() { V1Binding buildable = new V1Binding(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1Binding build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java index 04ed683afb..69dbeeaef6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1BindingFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ObjectReferenceBuilder target; + public V1BindingFluent() { } public V1BindingFluent(V1Binding instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1ObjectReferenceBuilder target; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ObjectReference buildTarget() { + return this.target != null ? this.target.build() : null; + } protected void copyInstance(V1Binding instance) { instance = instance != null ? instance : new V1Binding(); @@ -35,60 +45,6 @@ protected void copyInstance(V1Binding instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ObjectReference buildTarget() { - return this.target != null ? this.target.build() : null; - } - - public A withTarget(V1ObjectReference target) { - this._visitables.remove("target"); - if (target != null) { - this.target = new V1ObjectReferenceBuilder(target); - this._visitables.get("target").add(this.target); - } else { - this.target = null; - this._visitables.get("target").remove(this.target); - } - return (A) this; - } - - public boolean hasTarget() { - return this.target != null; - } - - public TargetNested withNewTarget() { - return new TargetNested(null); - } - - public TargetNested withNewTargetLike(V1ObjectReference item) { - return new TargetNested(item); - } - - public TargetNested editTarget() { - return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); - } - public TargetNested editOrNewTarget() { return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V1ObjectReferenceBuilder().build())); } @@ -141,6 +65,10 @@ public TargetNested editOrNewTargetLike(V1ObjectReference item) { return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); } + public TargetNested editTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasTarget() { + return this.target != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, target); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public TargetNested withNewTarget() { + return new TargetNested(null); + } + + public TargetNested withNewTargetLike(V1ObjectReference item) { + return new TargetNested(item); + } + + public A withTarget(V1ObjectReference target) { + this._visitables.remove("target"); + if (target != null) { + this.target = new V1ObjectReferenceBuilder(target); + this._visitables.get("target").add(this.target); + } else { + this.target = null; + this._visitables.get("target").remove(this.target); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1BindingFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class TargetNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + TargetNested(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - + public N and() { return (N) V1BindingFluent.this.withTarget(builder.build()); } @@ -226,7 +231,5 @@ public N endTarget() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java index fd298c0a03..f368e26feb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1BoundObjectReferenceBuilder extends V1BoundObjectReferenceFluent implements VisitableBuilder{ + + V1BoundObjectReferenceFluent fluent; + public V1BoundObjectReferenceBuilder() { this(new V1BoundObjectReference()); } @@ -11,17 +14,16 @@ public V1BoundObjectReferenceBuilder(V1BoundObjectReferenceFluent fluent) { this(fluent, new V1BoundObjectReference()); } - public V1BoundObjectReferenceBuilder(V1BoundObjectReferenceFluent fluent,V1BoundObjectReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1BoundObjectReferenceBuilder(V1BoundObjectReference instance) { this.fluent = this; this.copyInstance(instance); } - V1BoundObjectReferenceFluent fluent; + public V1BoundObjectReferenceBuilder(V1BoundObjectReferenceFluent fluent,V1BoundObjectReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1BoundObjectReference build() { V1BoundObjectReference buildable = new V1BoundObjectReference(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1BoundObjectReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java index a52d7acbb3..f31cb2bcce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1BoundObjectReferenceFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private String name; + private String uid; + public V1BoundObjectReferenceFluent() { } public V1BoundObjectReferenceFluent(V1BoundObjectReference instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private String name; - private String uid; - + protected void copyInstance(V1BoundObjectReference instance) { instance = instance != null ? instance : new V1BoundObjectReference(); if (instance != null) { @@ -33,58 +35,6 @@ protected void copyInstance(V1BoundObjectReference instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getUid() { - return this.uid; - } - - public A withUid(String uid) { - this.uid = uid; - return (A) this; - } - - public boolean hasUid() { - return this.uid != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -111,6 +61,38 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public String getName() { + return this.name; + } + + public String getUid() { + return this.uid; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasUid() { + return this.uid != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, name, uid); } @@ -141,5 +123,24 @@ public String toString() { return sb.toString(); } - + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorBuilder.java index 9b8f4cb99b..66c5bcc85f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CELDeviceSelectorBuilder extends V1CELDeviceSelectorFluent implements VisitableBuilder{ + + V1CELDeviceSelectorFluent fluent; + public V1CELDeviceSelectorBuilder() { this(new V1CELDeviceSelector()); } @@ -11,22 +14,20 @@ public V1CELDeviceSelectorBuilder(V1CELDeviceSelectorFluent fluent) { this(fluent, new V1CELDeviceSelector()); } - public V1CELDeviceSelectorBuilder(V1CELDeviceSelectorFluent fluent,V1CELDeviceSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CELDeviceSelectorBuilder(V1CELDeviceSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1CELDeviceSelectorFluent fluent; + public V1CELDeviceSelectorBuilder(V1CELDeviceSelectorFluent fluent,V1CELDeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CELDeviceSelector build() { V1CELDeviceSelector buildable = new V1CELDeviceSelector(); buildable.setExpression(fluent.getExpression()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorFluent.java index f142f5de6b..fa3b17b4d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1CELDeviceSelectorFluent> extends BaseFluent{ + + private String expression; + public V1CELDeviceSelectorFluent() { } public V1CELDeviceSelectorFluent(V1CELDeviceSelector instance) { this.copyInstance(instance); } - private String expression; - + protected void copyInstance(V1CELDeviceSelector instance) { instance = instance != null ? instance : new V1CELDeviceSelector(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1CELDeviceSelector instance) { } } - public String getExpression() { - return this.expression; - } - - public A withExpression(String expression) { - this.expression = expression; - return (A) this; - } - - public boolean hasExpression() { - return this.expression != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getExpression() { + return this.expression; + } + + public boolean hasExpression() { + return this.expression != null; + } + public int hashCode() { return Objects.hash(expression); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java index 88d759d051..b34a94f3ec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CSIDriverBuilder extends V1CSIDriverFluent implements VisitableBuilder{ + + V1CSIDriverFluent fluent; + public V1CSIDriverBuilder() { this(new V1CSIDriver()); } @@ -11,17 +14,16 @@ public V1CSIDriverBuilder(V1CSIDriverFluent fluent) { this(fluent, new V1CSIDriver()); } - public V1CSIDriverBuilder(V1CSIDriverFluent fluent,V1CSIDriver instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSIDriverBuilder(V1CSIDriver instance) { this.fluent = this; this.copyInstance(instance); } - V1CSIDriverFluent fluent; + public V1CSIDriverBuilder(V1CSIDriverFluent fluent,V1CSIDriver instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSIDriver build() { V1CSIDriver buildable = new V1CSIDriver(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1CSIDriver build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java index 85b612caa7..58defca4c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1CSIDriverFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1CSIDriverSpecBuilder spec; + public V1CSIDriverFluent() { } public V1CSIDriverFluent(V1CSIDriver instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1CSIDriverSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1CSIDriverSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1CSIDriver instance) { instance = instance != null ? instance : new V1CSIDriver(); @@ -35,60 +45,6 @@ protected void copyInstance(V1CSIDriver instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1CSIDriverSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1CSIDriverSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1CSIDriverSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1CSIDriverSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1CSIDriverSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1CSIDriverSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1CSIDriverSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1CSIDriverSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1CSIDriverSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1CSIDriverFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1CSIDriverSpecFluent> implements Nested{ + + V1CSIDriverSpecBuilder builder; + SpecNested(V1CSIDriverSpec item) { this.builder = new V1CSIDriverSpecBuilder(this, item); } - V1CSIDriverSpecBuilder builder; - + public N and() { return (N) V1CSIDriverFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java index 9204fd2cd1..98822c4557 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CSIDriverListBuilder extends V1CSIDriverListFluent implements VisitableBuilder{ + + V1CSIDriverListFluent fluent; + public V1CSIDriverListBuilder() { this(new V1CSIDriverList()); } @@ -11,17 +14,16 @@ public V1CSIDriverListBuilder(V1CSIDriverListFluent fluent) { this(fluent, new V1CSIDriverList()); } - public V1CSIDriverListBuilder(V1CSIDriverListFluent fluent,V1CSIDriverList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSIDriverListBuilder(V1CSIDriverList instance) { this.fluent = this; this.copyInstance(instance); } - V1CSIDriverListFluent fluent; + public V1CSIDriverListBuilder(V1CSIDriverListFluent fluent,V1CSIDriverList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSIDriverList build() { V1CSIDriverList buildable = new V1CSIDriverList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1CSIDriverList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java index 39d401c528..08e43b84a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1CSIDriverListFluent> extends BaseFluent{ - public V1CSIDriverListFluent() { - } - - public V1CSIDriverListFluent(V1CSIDriverList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1CSIDriverList instance) { - instance = instance != null ? instance : new V1CSIDriverList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1CSIDriverListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1CSIDriverListFluent(V1CSIDriverList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1CSIDriver item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1CSIDriver item : items) { + V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1CSIDriver item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1CSIDriver item) { + return new ItemsNested(-1, item); } public A addToItems(V1CSIDriver... items) { @@ -96,68 +65,31 @@ public A addToItems(V1CSIDriver... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1CSIDriver item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1CSIDriver item : items) { - V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); + V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1CSIDriver... items) { - if (this.items == null) { - return (A) this; - } - for (V1CSIDriver item : items) { - V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1CSIDriver item : items) { - V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1CSIDriverBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1CSIDriver buildFirstItem() { + return this.items.get(0).build(); } public V1CSIDriver buildItem(int index) { return this.items.get(index).build(); } - public V1CSIDriver buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1CSIDriver buildLastItem() { @@ -173,73 +105,34 @@ public V1CSIDriver buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1CSIDriverBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1CSIDriver item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1CSIDriverList instance) { + instance = instance != null ? instance : new V1CSIDriverList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1CSIDriver... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1CSIDriver item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1CSIDriver item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1CSIDriver item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1CSIDriverBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1CSIDriver item : items) { + V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1CSIDriver... items) { + if (this.items == null) { + return (A) this; + } + for (V1CSIDriver item : items) { + V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1CSIDriverBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1CSIDriver item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1CSIDriver item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1CSIDriver item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1CSIDriver... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1CSIDriver item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1CSIDriverFluent> implements Nested{ + + V1CSIDriverBuilder builder; + int index; + ItemsNested(int index,V1CSIDriver item) { this.index = index; this.builder = new V1CSIDriverBuilder(this, item); } - V1CSIDriverBuilder builder; - int index; - + public N and() { return (N) V1CSIDriverListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1CSIDriverListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java index 55988b8127..83af7f18e1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CSIDriverSpecBuilder extends V1CSIDriverSpecFluent implements VisitableBuilder{ + + V1CSIDriverSpecFluent fluent; + public V1CSIDriverSpecBuilder() { this(new V1CSIDriverSpec()); } @@ -11,17 +14,16 @@ public V1CSIDriverSpecBuilder(V1CSIDriverSpecFluent fluent) { this(fluent, new V1CSIDriverSpec()); } - public V1CSIDriverSpecBuilder(V1CSIDriverSpecFluent fluent,V1CSIDriverSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSIDriverSpecBuilder(V1CSIDriverSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1CSIDriverSpecFluent fluent; + public V1CSIDriverSpecBuilder(V1CSIDriverSpecFluent fluent,V1CSIDriverSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSIDriverSpec build() { V1CSIDriverSpec buildable = new V1CSIDriverSpec(); buildable.setAttachRequired(fluent.getAttachRequired()); @@ -36,5 +38,4 @@ public V1CSIDriverSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java index 75a3fe6ce2..55e1c8537d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Long; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1CSIDriverSpecFluent> extends BaseFluent{ - public V1CSIDriverSpecFluent() { - } - - public V1CSIDriverSpecFluent(V1CSIDriverSpec instance) { - this.copyInstance(instance); - } + private Boolean attachRequired; private String fsGroupPolicy; private Long nodeAllocatableUpdatePeriodSeconds; @@ -36,143 +31,44 @@ public V1CSIDriverSpecFluent(V1CSIDriverSpec instance) { private Boolean storageCapacity; private ArrayList tokenRequests; private List volumeLifecycleModes; - - protected void copyInstance(V1CSIDriverSpec instance) { - instance = instance != null ? instance : new V1CSIDriverSpec(); - if (instance != null) { - this.withAttachRequired(instance.getAttachRequired()); - this.withFsGroupPolicy(instance.getFsGroupPolicy()); - this.withNodeAllocatableUpdatePeriodSeconds(instance.getNodeAllocatableUpdatePeriodSeconds()); - this.withPodInfoOnMount(instance.getPodInfoOnMount()); - this.withRequiresRepublish(instance.getRequiresRepublish()); - this.withSeLinuxMount(instance.getSeLinuxMount()); - this.withStorageCapacity(instance.getStorageCapacity()); - this.withTokenRequests(instance.getTokenRequests()); - this.withVolumeLifecycleModes(instance.getVolumeLifecycleModes()); - } - } - - public Boolean getAttachRequired() { - return this.attachRequired; - } - - public A withAttachRequired(Boolean attachRequired) { - this.attachRequired = attachRequired; - return (A) this; - } - - public boolean hasAttachRequired() { - return this.attachRequired != null; - } - - public String getFsGroupPolicy() { - return this.fsGroupPolicy; - } - - public A withFsGroupPolicy(String fsGroupPolicy) { - this.fsGroupPolicy = fsGroupPolicy; - return (A) this; - } - - public boolean hasFsGroupPolicy() { - return this.fsGroupPolicy != null; - } - - public Long getNodeAllocatableUpdatePeriodSeconds() { - return this.nodeAllocatableUpdatePeriodSeconds; - } - - public A withNodeAllocatableUpdatePeriodSeconds(Long nodeAllocatableUpdatePeriodSeconds) { - this.nodeAllocatableUpdatePeriodSeconds = nodeAllocatableUpdatePeriodSeconds; - return (A) this; - } - - public boolean hasNodeAllocatableUpdatePeriodSeconds() { - return this.nodeAllocatableUpdatePeriodSeconds != null; - } - - public Boolean getPodInfoOnMount() { - return this.podInfoOnMount; - } - - public A withPodInfoOnMount(Boolean podInfoOnMount) { - this.podInfoOnMount = podInfoOnMount; - return (A) this; - } - - public boolean hasPodInfoOnMount() { - return this.podInfoOnMount != null; - } - - public Boolean getRequiresRepublish() { - return this.requiresRepublish; - } - - public A withRequiresRepublish(Boolean requiresRepublish) { - this.requiresRepublish = requiresRepublish; - return (A) this; - } - - public boolean hasRequiresRepublish() { - return this.requiresRepublish != null; - } - - public Boolean getSeLinuxMount() { - return this.seLinuxMount; - } - - public A withSeLinuxMount(Boolean seLinuxMount) { - this.seLinuxMount = seLinuxMount; - return (A) this; - } - - public boolean hasSeLinuxMount() { - return this.seLinuxMount != null; - } - - public Boolean getStorageCapacity() { - return this.storageCapacity; - } - - public A withStorageCapacity(Boolean storageCapacity) { - this.storageCapacity = storageCapacity; - return (A) this; + + public V1CSIDriverSpecFluent() { } - public boolean hasStorageCapacity() { - return this.storageCapacity != null; + public V1CSIDriverSpecFluent(V1CSIDriverSpec instance) { + this.copyInstance(instance); } - - public A addToTokenRequests(int index,StorageV1TokenRequest item) { + + public A addAllToTokenRequests(Collection items) { if (this.tokenRequests == null) { this.tokenRequests = new ArrayList(); } - StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); - if (index < 0 || index >= tokenRequests.size()) { - _visitables.get("tokenRequests").add(builder); - tokenRequests.add(builder); - } else { + for (StorageV1TokenRequest item : items) { + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); _visitables.get("tokenRequests").add(builder); - tokenRequests.add(index, builder); + this.tokenRequests.add(builder); } return (A) this; } - public A setToTokenRequests(int index,StorageV1TokenRequest item) { - if (this.tokenRequests == null) { - this.tokenRequests = new ArrayList(); + public A addAllToVolumeLifecycleModes(Collection items) { + if (this.volumeLifecycleModes == null) { + this.volumeLifecycleModes = new ArrayList(); } - StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); - if (index < 0 || index >= tokenRequests.size()) { - _visitables.get("tokenRequests").add(builder); - tokenRequests.add(builder); - } else { - _visitables.get("tokenRequests").add(builder); - tokenRequests.set(index, builder); + for (String item : items) { + this.volumeLifecycleModes.add(item); } return (A) this; } + public TokenRequestsNested addNewTokenRequest() { + return new TokenRequestsNested(-1, null); + } + + public TokenRequestsNested addNewTokenRequestLike(StorageV1TokenRequest item) { + return new TokenRequestsNested(-1, item); + } + public A addToTokenRequests(StorageV1TokenRequest... items) { if (this.tokenRequests == null) { this.tokenRequests = new ArrayList(); @@ -185,66 +81,39 @@ public A addToTokenRequests(StorageV1TokenRequest... items) { return (A) this; } - public A addAllToTokenRequests(Collection items) { + public A addToTokenRequests(int index,StorageV1TokenRequest item) { if (this.tokenRequests == null) { this.tokenRequests = new ArrayList(); } - for (StorageV1TokenRequest item : items) { - StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); + if (index < 0 || index >= tokenRequests.size()) { _visitables.get("tokenRequests").add(builder); - this.tokenRequests.add(builder); - } - return (A) this; - } - - public A removeFromTokenRequests(StorageV1TokenRequest... items) { - if (this.tokenRequests == null) { - return (A) this; - } - for (StorageV1TokenRequest item : items) { - StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); - _visitables.get("tokenRequests").remove(builder); - this.tokenRequests.remove(builder); + tokenRequests.add(builder); + } else { + _visitables.get("tokenRequests").add(builder); + tokenRequests.add(index, builder); } return (A) this; } - public A removeAllFromTokenRequests(Collection items) { - if (this.tokenRequests == null) { - return (A) this; + public A addToVolumeLifecycleModes(String... items) { + if (this.volumeLifecycleModes == null) { + this.volumeLifecycleModes = new ArrayList(); } - for (StorageV1TokenRequest item : items) { - StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); - _visitables.get("tokenRequests").remove(builder); - this.tokenRequests.remove(builder); + for (String item : items) { + this.volumeLifecycleModes.add(item); } return (A) this; } - public A removeMatchingFromTokenRequests(Predicate predicate) { - if (tokenRequests == null) { - return (A) this; - } - Iterator each = tokenRequests.iterator(); - List visitables = _visitables.get("tokenRequests"); - while (each.hasNext()) { - StorageV1TokenRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToVolumeLifecycleModes(int index,String item) { + if (this.volumeLifecycleModes == null) { + this.volumeLifecycleModes = new ArrayList(); } + this.volumeLifecycleModes.add(index, item); return (A) this; } - public List buildTokenRequests() { - return this.tokenRequests != null ? build(tokenRequests) : null; - } - - public StorageV1TokenRequest buildTokenRequest(int index) { - return this.tokenRequests.get(index).build(); - } - public StorageV1TokenRequest buildFirstTokenRequest() { return this.tokenRequests.get(0).build(); } @@ -262,64 +131,27 @@ public StorageV1TokenRequest buildMatchingTokenRequest(Predicate predicate) { - for (StorageV1TokenRequestBuilder item : tokenRequests) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withTokenRequests(List tokenRequests) { - if (this.tokenRequests != null) { - this._visitables.get("tokenRequests").clear(); - } - if (tokenRequests != null) { - this.tokenRequests = new ArrayList(); - for (StorageV1TokenRequest item : tokenRequests) { - this.addToTokenRequests(item); - } - } else { - this.tokenRequests = null; - } - return (A) this; - } - - public A withTokenRequests(StorageV1TokenRequest... tokenRequests) { - if (this.tokenRequests != null) { - this.tokenRequests.clear(); - _visitables.remove("tokenRequests"); - } - if (tokenRequests != null) { - for (StorageV1TokenRequest item : tokenRequests) { - this.addToTokenRequests(item); - } - } - return (A) this; - } - - public boolean hasTokenRequests() { - return this.tokenRequests != null && !(this.tokenRequests.isEmpty()); - } - - public TokenRequestsNested addNewTokenRequest() { - return new TokenRequestsNested(-1, null); - } - - public TokenRequestsNested addNewTokenRequestLike(StorageV1TokenRequest item) { - return new TokenRequestsNested(-1, item); + public StorageV1TokenRequest buildTokenRequest(int index) { + return this.tokenRequests.get(index).build(); } - public TokenRequestsNested setNewTokenRequestLike(int index,StorageV1TokenRequest item) { - return new TokenRequestsNested(index, item); + public List buildTokenRequests() { + return this.tokenRequests != null ? build(tokenRequests) : null; } - public TokenRequestsNested editTokenRequest(int index) { - if (index <= tokenRequests.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tokenRequests")); + protected void copyInstance(V1CSIDriverSpec instance) { + instance = instance != null ? instance : new V1CSIDriverSpec(); + if (instance != null) { + this.withAttachRequired(instance.getAttachRequired()); + this.withFsGroupPolicy(instance.getFsGroupPolicy()); + this.withNodeAllocatableUpdatePeriodSeconds(instance.getNodeAllocatableUpdatePeriodSeconds()); + this.withPodInfoOnMount(instance.getPodInfoOnMount()); + this.withRequiresRepublish(instance.getRequiresRepublish()); + this.withSeLinuxMount(instance.getSeLinuxMount()); + this.withStorageCapacity(instance.getStorageCapacity()); + this.withTokenRequests(instance.getTokenRequests()); + this.withVolumeLifecycleModes(instance.getVolumeLifecycleModes()); } - return this.setNewTokenRequestLike(index, this.buildTokenRequest(index)); } public TokenRequestsNested editFirstTokenRequest() { @@ -351,38 +183,195 @@ public TokenRequestsNested editMatchingTokenRequest(Predicate editTokenRequest(int index) { + if (tokenRequests.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tokenRequests")); } - this.volumeLifecycleModes.add(index, item); - return (A) this; + return this.setNewTokenRequestLike(index, this.buildTokenRequest(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CSIDriverSpecFluent that = (V1CSIDriverSpecFluent) o; + if (!(Objects.equals(attachRequired, that.attachRequired))) { + return false; + } + if (!(Objects.equals(fsGroupPolicy, that.fsGroupPolicy))) { + return false; + } + if (!(Objects.equals(nodeAllocatableUpdatePeriodSeconds, that.nodeAllocatableUpdatePeriodSeconds))) { + return false; + } + if (!(Objects.equals(podInfoOnMount, that.podInfoOnMount))) { + return false; + } + if (!(Objects.equals(requiresRepublish, that.requiresRepublish))) { + return false; + } + if (!(Objects.equals(seLinuxMount, that.seLinuxMount))) { + return false; + } + if (!(Objects.equals(storageCapacity, that.storageCapacity))) { + return false; + } + if (!(Objects.equals(tokenRequests, that.tokenRequests))) { + return false; + } + if (!(Objects.equals(volumeLifecycleModes, that.volumeLifecycleModes))) { + return false; + } + return true; + } + + public Boolean getAttachRequired() { + return this.attachRequired; + } + + public String getFirstVolumeLifecycleMode() { + return this.volumeLifecycleModes.get(0); + } + + public String getFsGroupPolicy() { + return this.fsGroupPolicy; + } + + public String getLastVolumeLifecycleMode() { + return this.volumeLifecycleModes.get(volumeLifecycleModes.size() - 1); + } + + public String getMatchingVolumeLifecycleMode(Predicate predicate) { + for (String item : volumeLifecycleModes) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public Long getNodeAllocatableUpdatePeriodSeconds() { + return this.nodeAllocatableUpdatePeriodSeconds; + } + + public Boolean getPodInfoOnMount() { + return this.podInfoOnMount; + } + + public Boolean getRequiresRepublish() { + return this.requiresRepublish; + } + + public Boolean getSeLinuxMount() { + return this.seLinuxMount; + } + + public Boolean getStorageCapacity() { + return this.storageCapacity; + } + + public String getVolumeLifecycleMode(int index) { + return this.volumeLifecycleModes.get(index); + } + + public List getVolumeLifecycleModes() { + return this.volumeLifecycleModes; + } + + public boolean hasAttachRequired() { + return this.attachRequired != null; + } + + public boolean hasFsGroupPolicy() { + return this.fsGroupPolicy != null; + } + + public boolean hasMatchingTokenRequest(Predicate predicate) { + for (StorageV1TokenRequestBuilder item : tokenRequests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingVolumeLifecycleMode(Predicate predicate) { + for (String item : volumeLifecycleModes) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNodeAllocatableUpdatePeriodSeconds() { + return this.nodeAllocatableUpdatePeriodSeconds != null; + } + + public boolean hasPodInfoOnMount() { + return this.podInfoOnMount != null; + } + + public boolean hasRequiresRepublish() { + return this.requiresRepublish != null; + } + + public boolean hasSeLinuxMount() { + return this.seLinuxMount != null; + } + + public boolean hasStorageCapacity() { + return this.storageCapacity != null; + } + + public boolean hasTokenRequests() { + return this.tokenRequests != null && !(this.tokenRequests.isEmpty()); + } + + public boolean hasVolumeLifecycleModes() { + return this.volumeLifecycleModes != null && !(this.volumeLifecycleModes.isEmpty()); + } + + public int hashCode() { + return Objects.hash(attachRequired, fsGroupPolicy, nodeAllocatableUpdatePeriodSeconds, podInfoOnMount, requiresRepublish, seLinuxMount, storageCapacity, tokenRequests, volumeLifecycleModes); } - public A setToVolumeLifecycleModes(int index,String item) { - if (this.volumeLifecycleModes == null) { - this.volumeLifecycleModes = new ArrayList(); + public A removeAllFromTokenRequests(Collection items) { + if (this.tokenRequests == null) { + return (A) this; + } + for (StorageV1TokenRequest item : items) { + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); + _visitables.get("tokenRequests").remove(builder); + this.tokenRequests.remove(builder); } - this.volumeLifecycleModes.set(index, item); return (A) this; } - public A addToVolumeLifecycleModes(String... items) { + public A removeAllFromVolumeLifecycleModes(Collection items) { if (this.volumeLifecycleModes == null) { - this.volumeLifecycleModes = new ArrayList(); + return (A) this; } for (String item : items) { - this.volumeLifecycleModes.add(item); + this.volumeLifecycleModes.remove(item); } return (A) this; } - public A addAllToVolumeLifecycleModes(Collection items) { - if (this.volumeLifecycleModes == null) { - this.volumeLifecycleModes = new ArrayList(); + public A removeFromTokenRequests(StorageV1TokenRequest... items) { + if (this.tokenRequests == null) { + return (A) this; } - for (String item : items) { - this.volumeLifecycleModes.add(item); + for (StorageV1TokenRequest item : items) { + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); + _visitables.get("tokenRequests").remove(builder); + this.tokenRequests.remove(builder); } return (A) this; } @@ -397,124 +386,49 @@ public A removeFromVolumeLifecycleModes(String... items) { return (A) this; } - public A removeAllFromVolumeLifecycleModes(Collection items) { - if (this.volumeLifecycleModes == null) { + public A removeMatchingFromTokenRequests(Predicate predicate) { + if (tokenRequests == null) { return (A) this; } - for (String item : items) { - this.volumeLifecycleModes.remove(item); + Iterator each = tokenRequests.iterator(); + List visitables = _visitables.get("tokenRequests"); + while (each.hasNext()) { + StorageV1TokenRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public List getVolumeLifecycleModes() { - return this.volumeLifecycleModes; - } - - public String getVolumeLifecycleMode(int index) { - return this.volumeLifecycleModes.get(index); - } - - public String getFirstVolumeLifecycleMode() { - return this.volumeLifecycleModes.get(0); - } - - public String getLastVolumeLifecycleMode() { - return this.volumeLifecycleModes.get(volumeLifecycleModes.size() - 1); - } - - public String getMatchingVolumeLifecycleMode(Predicate predicate) { - for (String item : volumeLifecycleModes) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingVolumeLifecycleMode(Predicate predicate) { - for (String item : volumeLifecycleModes) { - if (predicate.test(item)) { - return true; - } - } - return false; + public TokenRequestsNested setNewTokenRequestLike(int index,StorageV1TokenRequest item) { + return new TokenRequestsNested(index, item); } - public A withVolumeLifecycleModes(List volumeLifecycleModes) { - if (volumeLifecycleModes != null) { - this.volumeLifecycleModes = new ArrayList(); - for (String item : volumeLifecycleModes) { - this.addToVolumeLifecycleModes(item); - } + public A setToTokenRequests(int index,StorageV1TokenRequest item) { + if (this.tokenRequests == null) { + this.tokenRequests = new ArrayList(); + } + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); + if (index < 0 || index >= tokenRequests.size()) { + _visitables.get("tokenRequests").add(builder); + tokenRequests.add(builder); } else { - this.volumeLifecycleModes = null; + _visitables.get("tokenRequests").add(builder); + tokenRequests.set(index, builder); } return (A) this; } - public A withVolumeLifecycleModes(String... volumeLifecycleModes) { - if (this.volumeLifecycleModes != null) { - this.volumeLifecycleModes.clear(); - _visitables.remove("volumeLifecycleModes"); - } - if (volumeLifecycleModes != null) { - for (String item : volumeLifecycleModes) { - this.addToVolumeLifecycleModes(item); - } + public A setToVolumeLifecycleModes(int index,String item) { + if (this.volumeLifecycleModes == null) { + this.volumeLifecycleModes = new ArrayList(); } + this.volumeLifecycleModes.set(index, item); return (A) this; } - public boolean hasVolumeLifecycleModes() { - return this.volumeLifecycleModes != null && !(this.volumeLifecycleModes.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1CSIDriverSpecFluent that = (V1CSIDriverSpecFluent) o; - if (!(Objects.equals(attachRequired, that.attachRequired))) { - return false; - } - if (!(Objects.equals(fsGroupPolicy, that.fsGroupPolicy))) { - return false; - } - if (!(Objects.equals(nodeAllocatableUpdatePeriodSeconds, that.nodeAllocatableUpdatePeriodSeconds))) { - return false; - } - if (!(Objects.equals(podInfoOnMount, that.podInfoOnMount))) { - return false; - } - if (!(Objects.equals(requiresRepublish, that.requiresRepublish))) { - return false; - } - if (!(Objects.equals(seLinuxMount, that.seLinuxMount))) { - return false; - } - if (!(Objects.equals(storageCapacity, that.storageCapacity))) { - return false; - } - if (!(Objects.equals(tokenRequests, that.tokenRequests))) { - return false; - } - if (!(Objects.equals(volumeLifecycleModes, that.volumeLifecycleModes))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(attachRequired, fsGroupPolicy, nodeAllocatableUpdatePeriodSeconds, podInfoOnMount, requiresRepublish, seLinuxMount, storageCapacity, tokenRequests, volumeLifecycleModes); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -570,29 +484,119 @@ public A withAttachRequired() { return withAttachRequired(true); } + public A withAttachRequired(Boolean attachRequired) { + this.attachRequired = attachRequired; + return (A) this; + } + + public A withFsGroupPolicy(String fsGroupPolicy) { + this.fsGroupPolicy = fsGroupPolicy; + return (A) this; + } + + public A withNodeAllocatableUpdatePeriodSeconds(Long nodeAllocatableUpdatePeriodSeconds) { + this.nodeAllocatableUpdatePeriodSeconds = nodeAllocatableUpdatePeriodSeconds; + return (A) this; + } + public A withPodInfoOnMount() { return withPodInfoOnMount(true); } + public A withPodInfoOnMount(Boolean podInfoOnMount) { + this.podInfoOnMount = podInfoOnMount; + return (A) this; + } + public A withRequiresRepublish() { return withRequiresRepublish(true); } + public A withRequiresRepublish(Boolean requiresRepublish) { + this.requiresRepublish = requiresRepublish; + return (A) this; + } + public A withSeLinuxMount() { return withSeLinuxMount(true); } + public A withSeLinuxMount(Boolean seLinuxMount) { + this.seLinuxMount = seLinuxMount; + return (A) this; + } + public A withStorageCapacity() { return withStorageCapacity(true); } + + public A withStorageCapacity(Boolean storageCapacity) { + this.storageCapacity = storageCapacity; + return (A) this; + } + + public A withTokenRequests(List tokenRequests) { + if (this.tokenRequests != null) { + this._visitables.get("tokenRequests").clear(); + } + if (tokenRequests != null) { + this.tokenRequests = new ArrayList(); + for (StorageV1TokenRequest item : tokenRequests) { + this.addToTokenRequests(item); + } + } else { + this.tokenRequests = null; + } + return (A) this; + } + + public A withTokenRequests(StorageV1TokenRequest... tokenRequests) { + if (this.tokenRequests != null) { + this.tokenRequests.clear(); + _visitables.remove("tokenRequests"); + } + if (tokenRequests != null) { + for (StorageV1TokenRequest item : tokenRequests) { + this.addToTokenRequests(item); + } + } + return (A) this; + } + + public A withVolumeLifecycleModes(List volumeLifecycleModes) { + if (volumeLifecycleModes != null) { + this.volumeLifecycleModes = new ArrayList(); + for (String item : volumeLifecycleModes) { + this.addToVolumeLifecycleModes(item); + } + } else { + this.volumeLifecycleModes = null; + } + return (A) this; + } + + public A withVolumeLifecycleModes(String... volumeLifecycleModes) { + if (this.volumeLifecycleModes != null) { + this.volumeLifecycleModes.clear(); + _visitables.remove("volumeLifecycleModes"); + } + if (volumeLifecycleModes != null) { + for (String item : volumeLifecycleModes) { + this.addToVolumeLifecycleModes(item); + } + } + return (A) this; + } public class TokenRequestsNested extends StorageV1TokenRequestFluent> implements Nested{ + + StorageV1TokenRequestBuilder builder; + int index; + TokenRequestsNested(int index,StorageV1TokenRequest item) { this.index = index; this.builder = new StorageV1TokenRequestBuilder(this, item); } - StorageV1TokenRequestBuilder builder; - int index; - + public N and() { return (N) V1CSIDriverSpecFluent.this.setToTokenRequests(index, builder.build()); } @@ -601,7 +605,5 @@ public N endTokenRequest() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java index 8aa36c9e6f..f359663279 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CSINodeBuilder extends V1CSINodeFluent implements VisitableBuilder{ + + V1CSINodeFluent fluent; + public V1CSINodeBuilder() { this(new V1CSINode()); } @@ -11,17 +14,16 @@ public V1CSINodeBuilder(V1CSINodeFluent fluent) { this(fluent, new V1CSINode()); } - public V1CSINodeBuilder(V1CSINodeFluent fluent,V1CSINode instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSINodeBuilder(V1CSINode instance) { this.fluent = this; this.copyInstance(instance); } - V1CSINodeFluent fluent; + public V1CSINodeBuilder(V1CSINodeFluent fluent,V1CSINode instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSINode build() { V1CSINode buildable = new V1CSINode(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1CSINode build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java index 0d04509d94..1e9155b027 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CSINodeDriverBuilder extends V1CSINodeDriverFluent implements VisitableBuilder{ + + V1CSINodeDriverFluent fluent; + public V1CSINodeDriverBuilder() { this(new V1CSINodeDriver()); } @@ -11,17 +14,16 @@ public V1CSINodeDriverBuilder(V1CSINodeDriverFluent fluent) { this(fluent, new V1CSINodeDriver()); } - public V1CSINodeDriverBuilder(V1CSINodeDriverFluent fluent,V1CSINodeDriver instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSINodeDriverBuilder(V1CSINodeDriver instance) { this.fluent = this; this.copyInstance(instance); } - V1CSINodeDriverFluent fluent; + public V1CSINodeDriverBuilder(V1CSINodeDriverFluent fluent,V1CSINodeDriver instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSINodeDriver build() { V1CSINodeDriver buildable = new V1CSINodeDriver(); buildable.setAllocatable(fluent.buildAllocatable()); @@ -31,5 +33,4 @@ public V1CSINodeDriver build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java index d018802a76..54a8ee7884 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java @@ -1,70 +1,76 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1CSINodeDriverFluent> extends BaseFluent{ + + private V1VolumeNodeResourcesBuilder allocatable; + private String name; + private String nodeID; + private List topologyKeys; + public V1CSINodeDriverFluent() { } public V1CSINodeDriverFluent(V1CSINodeDriver instance) { this.copyInstance(instance); } - private V1VolumeNodeResourcesBuilder allocatable; - private String name; - private String nodeID; - private List topologyKeys; - - protected void copyInstance(V1CSINodeDriver instance) { - instance = instance != null ? instance : new V1CSINodeDriver(); - if (instance != null) { - this.withAllocatable(instance.getAllocatable()); - this.withName(instance.getName()); - this.withNodeID(instance.getNodeID()); - this.withTopologyKeys(instance.getTopologyKeys()); + + public A addAllToTopologyKeys(Collection items) { + if (this.topologyKeys == null) { + this.topologyKeys = new ArrayList(); } + for (String item : items) { + this.topologyKeys.add(item); + } + return (A) this; } - public V1VolumeNodeResources buildAllocatable() { - return this.allocatable != null ? this.allocatable.build() : null; - } - - public A withAllocatable(V1VolumeNodeResources allocatable) { - this._visitables.remove("allocatable"); - if (allocatable != null) { - this.allocatable = new V1VolumeNodeResourcesBuilder(allocatable); - this._visitables.get("allocatable").add(this.allocatable); - } else { - this.allocatable = null; - this._visitables.get("allocatable").remove(this.allocatable); + public A addToTopologyKeys(String... items) { + if (this.topologyKeys == null) { + this.topologyKeys = new ArrayList(); + } + for (String item : items) { + this.topologyKeys.add(item); } return (A) this; } - public boolean hasAllocatable() { - return this.allocatable != null; + public A addToTopologyKeys(int index,String item) { + if (this.topologyKeys == null) { + this.topologyKeys = new ArrayList(); + } + this.topologyKeys.add(index, item); + return (A) this; } - public AllocatableNested withNewAllocatable() { - return new AllocatableNested(null); + public V1VolumeNodeResources buildAllocatable() { + return this.allocatable != null ? this.allocatable.build() : null; } - public AllocatableNested withNewAllocatableLike(V1VolumeNodeResources item) { - return new AllocatableNested(item); + protected void copyInstance(V1CSINodeDriver instance) { + instance = instance != null ? instance : new V1CSINodeDriver(); + if (instance != null) { + this.withAllocatable(instance.getAllocatable()); + this.withName(instance.getName()); + this.withNodeID(instance.getNodeID()); + this.withTopologyKeys(instance.getTopologyKeys()); + } } public AllocatableNested editAllocatable() { @@ -79,64 +85,100 @@ public AllocatableNested editOrNewAllocatableLike(V1VolumeNodeResources item) return this.withNewAllocatableLike(Optional.ofNullable(this.buildAllocatable()).orElse(item)); } - public String getName() { - return this.name; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CSINodeDriverFluent that = (V1CSINodeDriverFluent) o; + if (!(Objects.equals(allocatable, that.allocatable))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(nodeID, that.nodeID))) { + return false; + } + if (!(Objects.equals(topologyKeys, that.topologyKeys))) { + return false; + } + return true; } - public A withName(String name) { - this.name = name; - return (A) this; + public String getFirstTopologyKey() { + return this.topologyKeys.get(0); } - public boolean hasName() { - return this.name != null; + public String getLastTopologyKey() { + return this.topologyKeys.get(topologyKeys.size() - 1); + } + + public String getMatchingTopologyKey(Predicate predicate) { + for (String item : topologyKeys) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getName() { + return this.name; } public String getNodeID() { return this.nodeID; } - public A withNodeID(String nodeID) { - this.nodeID = nodeID; - return (A) this; + public String getTopologyKey(int index) { + return this.topologyKeys.get(index); } - public boolean hasNodeID() { - return this.nodeID != null; + public List getTopologyKeys() { + return this.topologyKeys; } - public A addToTopologyKeys(int index,String item) { - if (this.topologyKeys == null) { - this.topologyKeys = new ArrayList(); - } - this.topologyKeys.add(index, item); - return (A) this; + public boolean hasAllocatable() { + return this.allocatable != null; } - public A setToTopologyKeys(int index,String item) { - if (this.topologyKeys == null) { - this.topologyKeys = new ArrayList(); - } - this.topologyKeys.set(index, item); - return (A) this; + public boolean hasMatchingTopologyKey(Predicate predicate) { + for (String item : topologyKeys) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addToTopologyKeys(String... items) { - if (this.topologyKeys == null) { - this.topologyKeys = new ArrayList(); - } - for (String item : items) { - this.topologyKeys.add(item); - } - return (A) this; + public boolean hasName() { + return this.name != null; } - public A addAllToTopologyKeys(Collection items) { + public boolean hasNodeID() { + return this.nodeID != null; + } + + public boolean hasTopologyKeys() { + return this.topologyKeys != null && !(this.topologyKeys.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allocatable, name, nodeID, topologyKeys); + } + + public A removeAllFromTopologyKeys(Collection items) { if (this.topologyKeys == null) { - this.topologyKeys = new ArrayList(); + return (A) this; } for (String item : items) { - this.topologyKeys.add(item); + this.topologyKeys.remove(item); } return (A) this; } @@ -151,48 +193,68 @@ public A removeFromTopologyKeys(String... items) { return (A) this; } - public A removeAllFromTopologyKeys(Collection items) { + public A setToTopologyKeys(int index,String item) { if (this.topologyKeys == null) { - return (A) this; - } - for (String item : items) { - this.topologyKeys.remove(item); + this.topologyKeys = new ArrayList(); } + this.topologyKeys.set(index, item); return (A) this; } - public List getTopologyKeys() { - return this.topologyKeys; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocatable == null)) { + sb.append("allocatable:"); + sb.append(allocatable); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(nodeID == null)) { + sb.append("nodeID:"); + sb.append(nodeID); + sb.append(","); + } + if (!(topologyKeys == null) && !(topologyKeys.isEmpty())) { + sb.append("topologyKeys:"); + sb.append(topologyKeys); + } + sb.append("}"); + return sb.toString(); } - public String getTopologyKey(int index) { - return this.topologyKeys.get(index); + public A withAllocatable(V1VolumeNodeResources allocatable) { + this._visitables.remove("allocatable"); + if (allocatable != null) { + this.allocatable = new V1VolumeNodeResourcesBuilder(allocatable); + this._visitables.get("allocatable").add(this.allocatable); + } else { + this.allocatable = null; + this._visitables.get("allocatable").remove(this.allocatable); + } + return (A) this; } - public String getFirstTopologyKey() { - return this.topologyKeys.get(0); + public A withName(String name) { + this.name = name; + return (A) this; } - public String getLastTopologyKey() { - return this.topologyKeys.get(topologyKeys.size() - 1); + public AllocatableNested withNewAllocatable() { + return new AllocatableNested(null); } - public String getMatchingTopologyKey(Predicate predicate) { - for (String item : topologyKeys) { - if (predicate.test(item)) { - return item; - } - } - return null; + public AllocatableNested withNewAllocatableLike(V1VolumeNodeResources item) { + return new AllocatableNested(item); } - public boolean hasMatchingTopologyKey(Predicate predicate) { - for (String item : topologyKeys) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withNodeID(String nodeID) { + this.nodeID = nodeID; + return (A) this; } public A withTopologyKeys(List topologyKeys) { @@ -219,72 +281,14 @@ public A withTopologyKeys(String... topologyKeys) { } return (A) this; } + public class AllocatableNested extends V1VolumeNodeResourcesFluent> implements Nested{ - public boolean hasTopologyKeys() { - return this.topologyKeys != null && !(this.topologyKeys.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1CSINodeDriverFluent that = (V1CSINodeDriverFluent) o; - if (!(Objects.equals(allocatable, that.allocatable))) { - return false; - } - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(nodeID, that.nodeID))) { - return false; - } - if (!(Objects.equals(topologyKeys, that.topologyKeys))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(allocatable, name, nodeID, topologyKeys); - } + V1VolumeNodeResourcesBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(allocatable == null)) { - sb.append("allocatable:"); - sb.append(allocatable); - sb.append(","); - } - if (!(name == null)) { - sb.append("name:"); - sb.append(name); - sb.append(","); - } - if (!(nodeID == null)) { - sb.append("nodeID:"); - sb.append(nodeID); - sb.append(","); - } - if (!(topologyKeys == null) && !(topologyKeys.isEmpty())) { - sb.append("topologyKeys:"); - sb.append(topologyKeys); - } - sb.append("}"); - return sb.toString(); - } - public class AllocatableNested extends V1VolumeNodeResourcesFluent> implements Nested{ AllocatableNested(V1VolumeNodeResources item) { this.builder = new V1VolumeNodeResourcesBuilder(this, item); } - V1VolumeNodeResourcesBuilder builder; - + public N and() { return (N) V1CSINodeDriverFluent.this.withAllocatable(builder.build()); } @@ -293,7 +297,5 @@ public N endAllocatable() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java index 9b065a3375..7f4ebeccb9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1CSINodeFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1CSINodeSpecBuilder spec; + public V1CSINodeFluent() { } public V1CSINodeFluent(V1CSINode instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1CSINodeSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1CSINodeSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1CSINode instance) { instance = instance != null ? instance : new V1CSINode(); @@ -35,60 +45,6 @@ protected void copyInstance(V1CSINode instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1CSINodeSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1CSINodeSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1CSINodeSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1CSINodeSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1CSINodeSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1CSINodeSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1CSINodeSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1CSINodeSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1CSINodeSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1CSINodeFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1CSINodeSpecFluent> implements Nested{ + + V1CSINodeSpecBuilder builder; + SpecNested(V1CSINodeSpec item) { this.builder = new V1CSINodeSpecBuilder(this, item); } - V1CSINodeSpecBuilder builder; - + public N and() { return (N) V1CSINodeFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java index 249ac599e2..c6d876b0b2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CSINodeListBuilder extends V1CSINodeListFluent implements VisitableBuilder{ + + V1CSINodeListFluent fluent; + public V1CSINodeListBuilder() { this(new V1CSINodeList()); } @@ -11,17 +14,16 @@ public V1CSINodeListBuilder(V1CSINodeListFluent fluent) { this(fluent, new V1CSINodeList()); } - public V1CSINodeListBuilder(V1CSINodeListFluent fluent,V1CSINodeList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSINodeListBuilder(V1CSINodeList instance) { this.fluent = this; this.copyInstance(instance); } - V1CSINodeListFluent fluent; + public V1CSINodeListBuilder(V1CSINodeListFluent fluent,V1CSINodeList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSINodeList build() { V1CSINodeList buildable = new V1CSINodeList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1CSINodeList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java index f380f840bd..fde2c9078a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1CSINodeListFluent> extends BaseFluent{ - public V1CSINodeListFluent() { - } - - public V1CSINodeListFluent(V1CSINodeList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1CSINodeList instance) { - instance = instance != null ? instance : new V1CSINodeList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1CSINodeListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1CSINodeListFluent(V1CSINodeList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1CSINode item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1CSINodeBuilder builder = new V1CSINodeBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1CSINode item : items) { + V1CSINodeBuilder builder = new V1CSINodeBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1CSINode item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1CSINodeBuilder builder = new V1CSINodeBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1CSINode item) { + return new ItemsNested(-1, item); } public A addToItems(V1CSINode... items) { @@ -96,68 +65,31 @@ public A addToItems(V1CSINode... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1CSINode item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1CSINode item : items) { - V1CSINodeBuilder builder = new V1CSINodeBuilder(item); + V1CSINodeBuilder builder = new V1CSINodeBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1CSINode... items) { - if (this.items == null) { - return (A) this; - } - for (V1CSINode item : items) { - V1CSINodeBuilder builder = new V1CSINodeBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1CSINode item : items) { - V1CSINodeBuilder builder = new V1CSINodeBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1CSINodeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1CSINode buildFirstItem() { + return this.items.get(0).build(); } public V1CSINode buildItem(int index) { return this.items.get(index).build(); } - public V1CSINode buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1CSINode buildLastItem() { @@ -173,73 +105,34 @@ public V1CSINode buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1CSINodeBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1CSINode item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1CSINodeList instance) { + instance = instance != null ? instance : new V1CSINodeList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1CSINode... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1CSINode item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1CSINode item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1CSINode item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) { return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1CSINodeBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1CSINode item : items) { + V1CSINodeBuilder builder = new V1CSINodeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1CSINode... items) { + if (this.items == null) { + return (A) this; + } + for (V1CSINode item : items) { + V1CSINodeBuilder builder = new V1CSINodeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1CSINodeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1CSINode item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1CSINode item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1CSINodeBuilder builder = new V1CSINodeBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1CSINode item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1CSINode... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1CSINode item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1CSINodeFluent> implements Nested{ + + V1CSINodeBuilder builder; + int index; + ItemsNested(int index,V1CSINode item) { this.index = index; this.builder = new V1CSINodeBuilder(this, item); } - V1CSINodeBuilder builder; - int index; - + public N and() { return (N) V1CSINodeListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1CSINodeListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java index a50d358421..6b22cf988e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CSINodeSpecBuilder extends V1CSINodeSpecFluent implements VisitableBuilder{ + + V1CSINodeSpecFluent fluent; + public V1CSINodeSpecBuilder() { this(new V1CSINodeSpec()); } @@ -11,22 +14,20 @@ public V1CSINodeSpecBuilder(V1CSINodeSpecFluent fluent) { this(fluent, new V1CSINodeSpec()); } - public V1CSINodeSpecBuilder(V1CSINodeSpecFluent fluent,V1CSINodeSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSINodeSpecBuilder(V1CSINodeSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1CSINodeSpecFluent fluent; + public V1CSINodeSpecBuilder(V1CSINodeSpecFluent fluent,V1CSINodeSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSINodeSpec build() { V1CSINodeSpec buildable = new V1CSINodeSpec(); buildable.setDrivers(fluent.buildDrivers()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java index 1b82c45a6f..7069268638 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java @@ -1,67 +1,52 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1CSINodeSpecFluent> extends BaseFluent{ + + private ArrayList drivers; + public V1CSINodeSpecFluent() { } public V1CSINodeSpecFluent(V1CSINodeSpec instance) { this.copyInstance(instance); } - private ArrayList drivers; - - protected void copyInstance(V1CSINodeSpec instance) { - instance = instance != null ? instance : new V1CSINodeSpec(); - if (instance != null) { - this.withDrivers(instance.getDrivers()); - } - } - - public A addToDrivers(int index,V1CSINodeDriver item) { + + public A addAllToDrivers(Collection items) { if (this.drivers == null) { this.drivers = new ArrayList(); } - V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); - if (index < 0 || index >= drivers.size()) { - _visitables.get("drivers").add(builder); - drivers.add(builder); - } else { + for (V1CSINodeDriver item : items) { + V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); _visitables.get("drivers").add(builder); - drivers.add(index, builder); + this.drivers.add(builder); } return (A) this; } - public A setToDrivers(int index,V1CSINodeDriver item) { - if (this.drivers == null) { - this.drivers = new ArrayList(); - } - V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); - if (index < 0 || index >= drivers.size()) { - _visitables.get("drivers").add(builder); - drivers.add(builder); - } else { - _visitables.get("drivers").add(builder); - drivers.set(index, builder); - } - return (A) this; + public DriversNested addNewDriver() { + return new DriversNested(-1, null); + } + + public DriversNested addNewDriverLike(V1CSINodeDriver item) { + return new DriversNested(-1, item); } public A addToDrivers(V1CSINodeDriver... items) { @@ -76,66 +61,29 @@ public A addToDrivers(V1CSINodeDriver... items) { return (A) this; } - public A addAllToDrivers(Collection items) { + public A addToDrivers(int index,V1CSINodeDriver item) { if (this.drivers == null) { this.drivers = new ArrayList(); } - for (V1CSINodeDriver item : items) { - V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); + V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); + if (index < 0 || index >= drivers.size()) { _visitables.get("drivers").add(builder); - this.drivers.add(builder); - } - return (A) this; - } - - public A removeFromDrivers(V1CSINodeDriver... items) { - if (this.drivers == null) { - return (A) this; - } - for (V1CSINodeDriver item : items) { - V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); - _visitables.get("drivers").remove(builder); - this.drivers.remove(builder); - } - return (A) this; - } - - public A removeAllFromDrivers(Collection items) { - if (this.drivers == null) { - return (A) this; - } - for (V1CSINodeDriver item : items) { - V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); - _visitables.get("drivers").remove(builder); - this.drivers.remove(builder); + drivers.add(builder); + } else { + _visitables.get("drivers").add(builder); + drivers.add(index, builder); } return (A) this; } - public A removeMatchingFromDrivers(Predicate predicate) { - if (drivers == null) { - return (A) this; - } - Iterator each = drivers.iterator(); - List visitables = _visitables.get("drivers"); - while (each.hasNext()) { - V1CSINodeDriverBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1CSINodeDriver buildDriver(int index) { + return this.drivers.get(index).build(); } public List buildDrivers() { return this.drivers != null ? build(drivers) : null; } - public V1CSINodeDriver buildDriver(int index) { - return this.drivers.get(index).build(); - } - public V1CSINodeDriver buildFirstDriver() { return this.drivers.get(0).build(); } @@ -153,61 +101,15 @@ public V1CSINodeDriver buildMatchingDriver(Predicate pre return null; } - public boolean hasMatchingDriver(Predicate predicate) { - for (V1CSINodeDriverBuilder item : drivers) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withDrivers(List drivers) { - if (this.drivers != null) { - this._visitables.get("drivers").clear(); - } - if (drivers != null) { - this.drivers = new ArrayList(); - for (V1CSINodeDriver item : drivers) { - this.addToDrivers(item); - } - } else { - this.drivers = null; - } - return (A) this; - } - - public A withDrivers(V1CSINodeDriver... drivers) { - if (this.drivers != null) { - this.drivers.clear(); - _visitables.remove("drivers"); - } - if (drivers != null) { - for (V1CSINodeDriver item : drivers) { - this.addToDrivers(item); - } + protected void copyInstance(V1CSINodeSpec instance) { + instance = instance != null ? instance : new V1CSINodeSpec(); + if (instance != null) { + this.withDrivers(instance.getDrivers()); } - return (A) this; - } - - public boolean hasDrivers() { - return this.drivers != null && !(this.drivers.isEmpty()); - } - - public DriversNested addNewDriver() { - return new DriversNested(-1, null); - } - - public DriversNested addNewDriverLike(V1CSINodeDriver item) { - return new DriversNested(-1, item); - } - - public DriversNested setNewDriverLike(int index,V1CSINodeDriver item) { - return new DriversNested(index, item); } public DriversNested editDriver(int index) { - if (index <= drivers.size()) { + if (drivers.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "drivers")); } return this.setNewDriverLike(index, this.buildDriver(index)); @@ -259,10 +161,82 @@ public boolean equals(Object o) { return true; } + public boolean hasDrivers() { + return this.drivers != null && !(this.drivers.isEmpty()); + } + + public boolean hasMatchingDriver(Predicate predicate) { + for (V1CSINodeDriverBuilder item : drivers) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(drivers); } + public A removeAllFromDrivers(Collection items) { + if (this.drivers == null) { + return (A) this; + } + for (V1CSINodeDriver item : items) { + V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); + _visitables.get("drivers").remove(builder); + this.drivers.remove(builder); + } + return (A) this; + } + + public A removeFromDrivers(V1CSINodeDriver... items) { + if (this.drivers == null) { + return (A) this; + } + for (V1CSINodeDriver item : items) { + V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); + _visitables.get("drivers").remove(builder); + this.drivers.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromDrivers(Predicate predicate) { + if (drivers == null) { + return (A) this; + } + Iterator each = drivers.iterator(); + List visitables = _visitables.get("drivers"); + while (each.hasNext()) { + V1CSINodeDriverBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public DriversNested setNewDriverLike(int index,V1CSINodeDriver item) { + return new DriversNested(index, item); + } + + public A setToDrivers(int index,V1CSINodeDriver item) { + if (this.drivers == null) { + this.drivers = new ArrayList(); + } + V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); + if (index < 0 || index >= drivers.size()) { + _visitables.get("drivers").add(builder); + drivers.add(builder); + } else { + _visitables.get("drivers").add(builder); + drivers.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -273,14 +247,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withDrivers(List drivers) { + if (this.drivers != null) { + this._visitables.get("drivers").clear(); + } + if (drivers != null) { + this.drivers = new ArrayList(); + for (V1CSINodeDriver item : drivers) { + this.addToDrivers(item); + } + } else { + this.drivers = null; + } + return (A) this; + } + + public A withDrivers(V1CSINodeDriver... drivers) { + if (this.drivers != null) { + this.drivers.clear(); + _visitables.remove("drivers"); + } + if (drivers != null) { + for (V1CSINodeDriver item : drivers) { + this.addToDrivers(item); + } + } + return (A) this; + } public class DriversNested extends V1CSINodeDriverFluent> implements Nested{ + + V1CSINodeDriverBuilder builder; + int index; + DriversNested(int index,V1CSINodeDriver item) { this.index = index; this.builder = new V1CSINodeDriverBuilder(this, item); } - V1CSINodeDriverBuilder builder; - int index; - + public N and() { return (N) V1CSINodeSpecFluent.this.setToDrivers(index, builder.build()); } @@ -289,7 +293,5 @@ public N endDriver() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java index 8a3b929a85..ddac693203 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CSIPersistentVolumeSourceBuilder extends V1CSIPersistentVolumeSourceFluent implements VisitableBuilder{ + + V1CSIPersistentVolumeSourceFluent fluent; + public V1CSIPersistentVolumeSourceBuilder() { this(new V1CSIPersistentVolumeSource()); } @@ -11,17 +14,16 @@ public V1CSIPersistentVolumeSourceBuilder(V1CSIPersistentVolumeSourceFluent f this(fluent, new V1CSIPersistentVolumeSource()); } - public V1CSIPersistentVolumeSourceBuilder(V1CSIPersistentVolumeSourceFluent fluent,V1CSIPersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSIPersistentVolumeSourceBuilder(V1CSIPersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1CSIPersistentVolumeSourceFluent fluent; + public V1CSIPersistentVolumeSourceBuilder(V1CSIPersistentVolumeSourceFluent fluent,V1CSIPersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSIPersistentVolumeSource build() { V1CSIPersistentVolumeSource buildable = new V1CSIPersistentVolumeSource(); buildable.setControllerExpandSecretRef(fluent.buildControllerExpandSecretRef()); @@ -37,5 +39,4 @@ public V1CSIPersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java index 3b4099690a..22868a7c75 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java @@ -1,28 +1,23 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import java.util.LinkedHashMap; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Boolean; -import java.util.Optional; -import java.util.Objects; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.LinkedHashMap; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1CSIPersistentVolumeSourceFluent> extends BaseFluent{ - public V1CSIPersistentVolumeSourceFluent() { - } - - public V1CSIPersistentVolumeSourceFluent(V1CSIPersistentVolumeSource instance) { - this.copyInstance(instance); - } + private V1SecretReferenceBuilder controllerExpandSecretRef; private V1SecretReferenceBuilder controllerPublishSecretRef; private String driver; @@ -33,6 +28,53 @@ public V1CSIPersistentVolumeSourceFluent(V1CSIPersistentVolumeSource instance) { private Boolean readOnly; private Map volumeAttributes; private String volumeHandle; + + public V1CSIPersistentVolumeSourceFluent() { + } + + public V1CSIPersistentVolumeSourceFluent(V1CSIPersistentVolumeSource instance) { + this.copyInstance(instance); + } + + public A addToVolumeAttributes(Map map) { + if (this.volumeAttributes == null && map != null) { + this.volumeAttributes = new LinkedHashMap(); + } + if (map != null) { + this.volumeAttributes.putAll(map); + } + return (A) this; + } + + public A addToVolumeAttributes(String key,String value) { + if (this.volumeAttributes == null && key != null && value != null) { + this.volumeAttributes = new LinkedHashMap(); + } + if (key != null && value != null) { + this.volumeAttributes.put(key, value); + } + return (A) this; + } + + public V1SecretReference buildControllerExpandSecretRef() { + return this.controllerExpandSecretRef != null ? this.controllerExpandSecretRef.build() : null; + } + + public V1SecretReference buildControllerPublishSecretRef() { + return this.controllerPublishSecretRef != null ? this.controllerPublishSecretRef.build() : null; + } + + public V1SecretReference buildNodeExpandSecretRef() { + return this.nodeExpandSecretRef != null ? this.nodeExpandSecretRef.build() : null; + } + + public V1SecretReference buildNodePublishSecretRef() { + return this.nodePublishSecretRef != null ? this.nodePublishSecretRef.build() : null; + } + + public V1SecretReference buildNodeStageSecretRef() { + return this.nodeStageSecretRef != null ? this.nodeStageSecretRef.build() : null; + } protected void copyInstance(V1CSIPersistentVolumeSource instance) { instance = instance != null ? instance : new V1CSIPersistentVolumeSource(); @@ -50,36 +92,24 @@ protected void copyInstance(V1CSIPersistentVolumeSource instance) { } } - public V1SecretReference buildControllerExpandSecretRef() { - return this.controllerExpandSecretRef != null ? this.controllerExpandSecretRef.build() : null; - } - - public A withControllerExpandSecretRef(V1SecretReference controllerExpandSecretRef) { - this._visitables.remove("controllerExpandSecretRef"); - if (controllerExpandSecretRef != null) { - this.controllerExpandSecretRef = new V1SecretReferenceBuilder(controllerExpandSecretRef); - this._visitables.get("controllerExpandSecretRef").add(this.controllerExpandSecretRef); - } else { - this.controllerExpandSecretRef = null; - this._visitables.get("controllerExpandSecretRef").remove(this.controllerExpandSecretRef); - } - return (A) this; + public ControllerExpandSecretRefNested editControllerExpandSecretRef() { + return this.withNewControllerExpandSecretRefLike(Optional.ofNullable(this.buildControllerExpandSecretRef()).orElse(null)); } - public boolean hasControllerExpandSecretRef() { - return this.controllerExpandSecretRef != null; + public ControllerPublishSecretRefNested editControllerPublishSecretRef() { + return this.withNewControllerPublishSecretRefLike(Optional.ofNullable(this.buildControllerPublishSecretRef()).orElse(null)); } - public ControllerExpandSecretRefNested withNewControllerExpandSecretRef() { - return new ControllerExpandSecretRefNested(null); + public NodeExpandSecretRefNested editNodeExpandSecretRef() { + return this.withNewNodeExpandSecretRefLike(Optional.ofNullable(this.buildNodeExpandSecretRef()).orElse(null)); } - public ControllerExpandSecretRefNested withNewControllerExpandSecretRefLike(V1SecretReference item) { - return new ControllerExpandSecretRefNested(item); + public NodePublishSecretRefNested editNodePublishSecretRef() { + return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(null)); } - public ControllerExpandSecretRefNested editControllerExpandSecretRef() { - return this.withNewControllerExpandSecretRefLike(Optional.ofNullable(this.buildControllerExpandSecretRef()).orElse(null)); + public NodeStageSecretRefNested editNodeStageSecretRef() { + return this.withNewNodeStageSecretRefLike(Optional.ofNullable(this.buildNodeStageSecretRef()).orElse(null)); } public ControllerExpandSecretRefNested editOrNewControllerExpandSecretRef() { @@ -90,38 +120,6 @@ public ControllerExpandSecretRefNested editOrNewControllerExpandSecretRefLike return this.withNewControllerExpandSecretRefLike(Optional.ofNullable(this.buildControllerExpandSecretRef()).orElse(item)); } - public V1SecretReference buildControllerPublishSecretRef() { - return this.controllerPublishSecretRef != null ? this.controllerPublishSecretRef.build() : null; - } - - public A withControllerPublishSecretRef(V1SecretReference controllerPublishSecretRef) { - this._visitables.remove("controllerPublishSecretRef"); - if (controllerPublishSecretRef != null) { - this.controllerPublishSecretRef = new V1SecretReferenceBuilder(controllerPublishSecretRef); - this._visitables.get("controllerPublishSecretRef").add(this.controllerPublishSecretRef); - } else { - this.controllerPublishSecretRef = null; - this._visitables.get("controllerPublishSecretRef").remove(this.controllerPublishSecretRef); - } - return (A) this; - } - - public boolean hasControllerPublishSecretRef() { - return this.controllerPublishSecretRef != null; - } - - public ControllerPublishSecretRefNested withNewControllerPublishSecretRef() { - return new ControllerPublishSecretRefNested(null); - } - - public ControllerPublishSecretRefNested withNewControllerPublishSecretRefLike(V1SecretReference item) { - return new ControllerPublishSecretRefNested(item); - } - - public ControllerPublishSecretRefNested editControllerPublishSecretRef() { - return this.withNewControllerPublishSecretRefLike(Optional.ofNullable(this.buildControllerPublishSecretRef()).orElse(null)); - } - public ControllerPublishSecretRefNested editOrNewControllerPublishSecretRef() { return this.withNewControllerPublishSecretRefLike(Optional.ofNullable(this.buildControllerPublishSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } @@ -130,64 +128,6 @@ public ControllerPublishSecretRefNested editOrNewControllerPublishSecretRefLi return this.withNewControllerPublishSecretRefLike(Optional.ofNullable(this.buildControllerPublishSecretRef()).orElse(item)); } - public String getDriver() { - return this.driver; - } - - public A withDriver(String driver) { - this.driver = driver; - return (A) this; - } - - public boolean hasDriver() { - return this.driver != null; - } - - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; - } - - public boolean hasFsType() { - return this.fsType != null; - } - - public V1SecretReference buildNodeExpandSecretRef() { - return this.nodeExpandSecretRef != null ? this.nodeExpandSecretRef.build() : null; - } - - public A withNodeExpandSecretRef(V1SecretReference nodeExpandSecretRef) { - this._visitables.remove("nodeExpandSecretRef"); - if (nodeExpandSecretRef != null) { - this.nodeExpandSecretRef = new V1SecretReferenceBuilder(nodeExpandSecretRef); - this._visitables.get("nodeExpandSecretRef").add(this.nodeExpandSecretRef); - } else { - this.nodeExpandSecretRef = null; - this._visitables.get("nodeExpandSecretRef").remove(this.nodeExpandSecretRef); - } - return (A) this; - } - - public boolean hasNodeExpandSecretRef() { - return this.nodeExpandSecretRef != null; - } - - public NodeExpandSecretRefNested withNewNodeExpandSecretRef() { - return new NodeExpandSecretRefNested(null); - } - - public NodeExpandSecretRefNested withNewNodeExpandSecretRefLike(V1SecretReference item) { - return new NodeExpandSecretRefNested(item); - } - - public NodeExpandSecretRefNested editNodeExpandSecretRef() { - return this.withNewNodeExpandSecretRefLike(Optional.ofNullable(this.buildNodeExpandSecretRef()).orElse(null)); - } - public NodeExpandSecretRefNested editOrNewNodeExpandSecretRef() { return this.withNewNodeExpandSecretRefLike(Optional.ofNullable(this.buildNodeExpandSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } @@ -196,38 +136,6 @@ public NodeExpandSecretRefNested editOrNewNodeExpandSecretRefLike(V1SecretRef return this.withNewNodeExpandSecretRefLike(Optional.ofNullable(this.buildNodeExpandSecretRef()).orElse(item)); } - public V1SecretReference buildNodePublishSecretRef() { - return this.nodePublishSecretRef != null ? this.nodePublishSecretRef.build() : null; - } - - public A withNodePublishSecretRef(V1SecretReference nodePublishSecretRef) { - this._visitables.remove("nodePublishSecretRef"); - if (nodePublishSecretRef != null) { - this.nodePublishSecretRef = new V1SecretReferenceBuilder(nodePublishSecretRef); - this._visitables.get("nodePublishSecretRef").add(this.nodePublishSecretRef); - } else { - this.nodePublishSecretRef = null; - this._visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); - } - return (A) this; - } - - public boolean hasNodePublishSecretRef() { - return this.nodePublishSecretRef != null; - } - - public NodePublishSecretRefNested withNewNodePublishSecretRef() { - return new NodePublishSecretRefNested(null); - } - - public NodePublishSecretRefNested withNewNodePublishSecretRefLike(V1SecretReference item) { - return new NodePublishSecretRefNested(item); - } - - public NodePublishSecretRefNested editNodePublishSecretRef() { - return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(null)); - } - public NodePublishSecretRefNested editOrNewNodePublishSecretRef() { return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } @@ -235,132 +143,13 @@ public NodePublishSecretRefNested editOrNewNodePublishSecretRef() { public NodePublishSecretRefNested editOrNewNodePublishSecretRefLike(V1SecretReference item) { return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(item)); } - - public V1SecretReference buildNodeStageSecretRef() { - return this.nodeStageSecretRef != null ? this.nodeStageSecretRef.build() : null; - } - - public A withNodeStageSecretRef(V1SecretReference nodeStageSecretRef) { - this._visitables.remove("nodeStageSecretRef"); - if (nodeStageSecretRef != null) { - this.nodeStageSecretRef = new V1SecretReferenceBuilder(nodeStageSecretRef); - this._visitables.get("nodeStageSecretRef").add(this.nodeStageSecretRef); - } else { - this.nodeStageSecretRef = null; - this._visitables.get("nodeStageSecretRef").remove(this.nodeStageSecretRef); - } - return (A) this; - } - - public boolean hasNodeStageSecretRef() { - return this.nodeStageSecretRef != null; - } - - public NodeStageSecretRefNested withNewNodeStageSecretRef() { - return new NodeStageSecretRefNested(null); - } - - public NodeStageSecretRefNested withNewNodeStageSecretRefLike(V1SecretReference item) { - return new NodeStageSecretRefNested(item); - } - - public NodeStageSecretRefNested editNodeStageSecretRef() { - return this.withNewNodeStageSecretRefLike(Optional.ofNullable(this.buildNodeStageSecretRef()).orElse(null)); - } - - public NodeStageSecretRefNested editOrNewNodeStageSecretRef() { - return this.withNewNodeStageSecretRefLike(Optional.ofNullable(this.buildNodeStageSecretRef()).orElse(new V1SecretReferenceBuilder().build())); - } - - public NodeStageSecretRefNested editOrNewNodeStageSecretRefLike(V1SecretReference item) { - return this.withNewNodeStageSecretRefLike(Optional.ofNullable(this.buildNodeStageSecretRef()).orElse(item)); - } - - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - - public A addToVolumeAttributes(String key,String value) { - if (this.volumeAttributes == null && key != null && value != null) { - this.volumeAttributes = new LinkedHashMap(); - } - if (key != null && value != null) { - this.volumeAttributes.put(key, value); - } - return (A) this; - } - - public A addToVolumeAttributes(Map map) { - if (this.volumeAttributes == null && map != null) { - this.volumeAttributes = new LinkedHashMap(); - } - if (map != null) { - this.volumeAttributes.putAll(map); - } - return (A) this; - } - - public A removeFromVolumeAttributes(String key) { - if (this.volumeAttributes == null) { - return (A) this; - } - if (key != null && this.volumeAttributes != null) { - this.volumeAttributes.remove(key); - } - return (A) this; - } - - public A removeFromVolumeAttributes(Map map) { - if (this.volumeAttributes == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.volumeAttributes != null) { - this.volumeAttributes.remove(key); - } - } - } - return (A) this; - } - - public Map getVolumeAttributes() { - return this.volumeAttributes; - } - - public A withVolumeAttributes(Map volumeAttributes) { - if (volumeAttributes == null) { - this.volumeAttributes = null; - } else { - this.volumeAttributes = new LinkedHashMap(volumeAttributes); - } - return (A) this; - } - - public boolean hasVolumeAttributes() { - return this.volumeAttributes != null; - } - - public String getVolumeHandle() { - return this.volumeHandle; - } - - public A withVolumeHandle(String volumeHandle) { - this.volumeHandle = volumeHandle; - return (A) this; + + public NodeStageSecretRefNested editOrNewNodeStageSecretRef() { + return this.withNewNodeStageSecretRefLike(Optional.ofNullable(this.buildNodeStageSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } - public boolean hasVolumeHandle() { - return this.volumeHandle != null; + public NodeStageSecretRefNested editOrNewNodeStageSecretRefLike(V1SecretReference item) { + return this.withNewNodeStageSecretRefLike(Optional.ofNullable(this.buildNodeStageSecretRef()).orElse(item)); } public boolean equals(Object o) { @@ -407,10 +196,94 @@ public boolean equals(Object o) { return true; } + public String getDriver() { + return this.driver; + } + + public String getFsType() { + return this.fsType; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public Map getVolumeAttributes() { + return this.volumeAttributes; + } + + public String getVolumeHandle() { + return this.volumeHandle; + } + + public boolean hasControllerExpandSecretRef() { + return this.controllerExpandSecretRef != null; + } + + public boolean hasControllerPublishSecretRef() { + return this.controllerPublishSecretRef != null; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasNodeExpandSecretRef() { + return this.nodeExpandSecretRef != null; + } + + public boolean hasNodePublishSecretRef() { + return this.nodePublishSecretRef != null; + } + + public boolean hasNodeStageSecretRef() { + return this.nodeStageSecretRef != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + + public boolean hasVolumeAttributes() { + return this.volumeAttributes != null; + } + + public boolean hasVolumeHandle() { + return this.volumeHandle != null; + } + public int hashCode() { return Objects.hash(controllerExpandSecretRef, controllerPublishSecretRef, driver, fsType, nodeExpandSecretRef, nodePublishSecretRef, nodeStageSecretRef, readOnly, volumeAttributes, volumeHandle); } + public A removeFromVolumeAttributes(String key) { + if (this.volumeAttributes == null) { + return (A) this; + } + if (key != null && this.volumeAttributes != null) { + this.volumeAttributes.remove(key); + } + return (A) this; + } + + public A removeFromVolumeAttributes(Map map) { + if (this.volumeAttributes == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.volumeAttributes != null) { + this.volumeAttributes.remove(key); + } + } + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -467,15 +340,146 @@ public String toString() { return sb.toString(); } + public A withControllerExpandSecretRef(V1SecretReference controllerExpandSecretRef) { + this._visitables.remove("controllerExpandSecretRef"); + if (controllerExpandSecretRef != null) { + this.controllerExpandSecretRef = new V1SecretReferenceBuilder(controllerExpandSecretRef); + this._visitables.get("controllerExpandSecretRef").add(this.controllerExpandSecretRef); + } else { + this.controllerExpandSecretRef = null; + this._visitables.get("controllerExpandSecretRef").remove(this.controllerExpandSecretRef); + } + return (A) this; + } + + public A withControllerPublishSecretRef(V1SecretReference controllerPublishSecretRef) { + this._visitables.remove("controllerPublishSecretRef"); + if (controllerPublishSecretRef != null) { + this.controllerPublishSecretRef = new V1SecretReferenceBuilder(controllerPublishSecretRef); + this._visitables.get("controllerPublishSecretRef").add(this.controllerPublishSecretRef); + } else { + this.controllerPublishSecretRef = null; + this._visitables.get("controllerPublishSecretRef").remove(this.controllerPublishSecretRef); + } + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public ControllerExpandSecretRefNested withNewControllerExpandSecretRef() { + return new ControllerExpandSecretRefNested(null); + } + + public ControllerExpandSecretRefNested withNewControllerExpandSecretRefLike(V1SecretReference item) { + return new ControllerExpandSecretRefNested(item); + } + + public ControllerPublishSecretRefNested withNewControllerPublishSecretRef() { + return new ControllerPublishSecretRefNested(null); + } + + public ControllerPublishSecretRefNested withNewControllerPublishSecretRefLike(V1SecretReference item) { + return new ControllerPublishSecretRefNested(item); + } + + public NodeExpandSecretRefNested withNewNodeExpandSecretRef() { + return new NodeExpandSecretRefNested(null); + } + + public NodeExpandSecretRefNested withNewNodeExpandSecretRefLike(V1SecretReference item) { + return new NodeExpandSecretRefNested(item); + } + + public NodePublishSecretRefNested withNewNodePublishSecretRef() { + return new NodePublishSecretRefNested(null); + } + + public NodePublishSecretRefNested withNewNodePublishSecretRefLike(V1SecretReference item) { + return new NodePublishSecretRefNested(item); + } + + public NodeStageSecretRefNested withNewNodeStageSecretRef() { + return new NodeStageSecretRefNested(null); + } + + public NodeStageSecretRefNested withNewNodeStageSecretRefLike(V1SecretReference item) { + return new NodeStageSecretRefNested(item); + } + + public A withNodeExpandSecretRef(V1SecretReference nodeExpandSecretRef) { + this._visitables.remove("nodeExpandSecretRef"); + if (nodeExpandSecretRef != null) { + this.nodeExpandSecretRef = new V1SecretReferenceBuilder(nodeExpandSecretRef); + this._visitables.get("nodeExpandSecretRef").add(this.nodeExpandSecretRef); + } else { + this.nodeExpandSecretRef = null; + this._visitables.get("nodeExpandSecretRef").remove(this.nodeExpandSecretRef); + } + return (A) this; + } + + public A withNodePublishSecretRef(V1SecretReference nodePublishSecretRef) { + this._visitables.remove("nodePublishSecretRef"); + if (nodePublishSecretRef != null) { + this.nodePublishSecretRef = new V1SecretReferenceBuilder(nodePublishSecretRef); + this._visitables.get("nodePublishSecretRef").add(this.nodePublishSecretRef); + } else { + this.nodePublishSecretRef = null; + this._visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); + } + return (A) this; + } + + public A withNodeStageSecretRef(V1SecretReference nodeStageSecretRef) { + this._visitables.remove("nodeStageSecretRef"); + if (nodeStageSecretRef != null) { + this.nodeStageSecretRef = new V1SecretReferenceBuilder(nodeStageSecretRef); + this._visitables.get("nodeStageSecretRef").add(this.nodeStageSecretRef); + } else { + this.nodeStageSecretRef = null; + this._visitables.get("nodeStageSecretRef").remove(this.nodeStageSecretRef); + } + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } + + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withVolumeAttributes(Map volumeAttributes) { + if (volumeAttributes == null) { + this.volumeAttributes = null; + } else { + this.volumeAttributes = new LinkedHashMap(volumeAttributes); + } + return (A) this; + } + + public A withVolumeHandle(String volumeHandle) { + this.volumeHandle = volumeHandle; + return (A) this; + } public class ControllerExpandSecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + ControllerExpandSecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1CSIPersistentVolumeSourceFluent.this.withControllerExpandSecretRef(builder.build()); } @@ -484,14 +488,15 @@ public N endControllerExpandSecretRef() { return and(); } - } public class ControllerPublishSecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + ControllerPublishSecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1CSIPersistentVolumeSourceFluent.this.withControllerPublishSecretRef(builder.build()); } @@ -500,14 +505,15 @@ public N endControllerPublishSecretRef() { return and(); } - } public class NodeExpandSecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + NodeExpandSecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1CSIPersistentVolumeSourceFluent.this.withNodeExpandSecretRef(builder.build()); } @@ -516,14 +522,15 @@ public N endNodeExpandSecretRef() { return and(); } - } public class NodePublishSecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + NodePublishSecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1CSIPersistentVolumeSourceFluent.this.withNodePublishSecretRef(builder.build()); } @@ -532,14 +539,15 @@ public N endNodePublishSecretRef() { return and(); } - } public class NodeStageSecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + NodeStageSecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1CSIPersistentVolumeSourceFluent.this.withNodeStageSecretRef(builder.build()); } @@ -548,7 +556,5 @@ public N endNodeStageSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java index 52a3c296d9..cd8f166db9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CSIStorageCapacityBuilder extends V1CSIStorageCapacityFluent implements VisitableBuilder{ + + V1CSIStorageCapacityFluent fluent; + public V1CSIStorageCapacityBuilder() { this(new V1CSIStorageCapacity()); } @@ -11,17 +14,16 @@ public V1CSIStorageCapacityBuilder(V1CSIStorageCapacityFluent fluent) { this(fluent, new V1CSIStorageCapacity()); } - public V1CSIStorageCapacityBuilder(V1CSIStorageCapacityFluent fluent,V1CSIStorageCapacity instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSIStorageCapacityBuilder(V1CSIStorageCapacity instance) { this.fluent = this; this.copyInstance(instance); } - V1CSIStorageCapacityFluent fluent; + public V1CSIStorageCapacityBuilder(V1CSIStorageCapacityFluent fluent,V1CSIStorageCapacity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSIStorageCapacity build() { V1CSIStorageCapacity buildable = new V1CSIStorageCapacity(); buildable.setApiVersion(fluent.getApiVersion()); @@ -34,5 +36,4 @@ public V1CSIStorageCapacity build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java index 5beafd1238..190ec9f0b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java @@ -1,26 +1,21 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import io.kubernetes.client.custom.Quantity; -import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1CSIStorageCapacityFluent> extends BaseFluent{ - public V1CSIStorageCapacityFluent() { - } - - public V1CSIStorageCapacityFluent(V1CSIStorageCapacity instance) { - this.copyInstance(instance); - } + private String apiVersion; private Quantity capacity; private String kind; @@ -28,6 +23,21 @@ public V1CSIStorageCapacityFluent(V1CSIStorageCapacity instance) { private V1ObjectMetaBuilder metadata; private V1LabelSelectorBuilder nodeTopology; private String storageClassName; + + public V1CSIStorageCapacityFluent() { + } + + public V1CSIStorageCapacityFluent(V1CSIStorageCapacity instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1LabelSelector buildNodeTopology() { + return this.nodeTopology != null ? this.nodeTopology.build() : null; + } protected void copyInstance(V1CSIStorageCapacity instance) { instance = instance != null ? instance : new V1CSIStorageCapacity(); @@ -42,98 +52,14 @@ protected void copyInstance(V1CSIStorageCapacity instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public Quantity getCapacity() { - return this.capacity; - } - - public A withCapacity(Quantity capacity) { - this.capacity = capacity; - return (A) this; - } - - public boolean hasCapacity() { - return this.capacity != null; - } - - public A withNewCapacity(String value) { - return (A) this.withCapacity(new Quantity(value)); - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public Quantity getMaximumVolumeSize() { - return this.maximumVolumeSize; - } - - public A withMaximumVolumeSize(Quantity maximumVolumeSize) { - this.maximumVolumeSize = maximumVolumeSize; - return (A) this; - } - - public boolean hasMaximumVolumeSize() { - return this.maximumVolumeSize != null; - } - - public A withNewMaximumVolumeSize(String value) { - return (A) this.withMaximumVolumeSize(new Quantity(value)); - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } + public NodeTopologyNested editNodeTopology() { + return this.withNewNodeTopologyLike(Optional.ofNullable(this.buildNodeTopology()).orElse(null)); + } + public MetadataNested editOrNewMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } @@ -142,38 +68,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1LabelSelector buildNodeTopology() { - return this.nodeTopology != null ? this.nodeTopology.build() : null; - } - - public A withNodeTopology(V1LabelSelector nodeTopology) { - this._visitables.remove("nodeTopology"); - if (nodeTopology != null) { - this.nodeTopology = new V1LabelSelectorBuilder(nodeTopology); - this._visitables.get("nodeTopology").add(this.nodeTopology); - } else { - this.nodeTopology = null; - this._visitables.get("nodeTopology").remove(this.nodeTopology); - } - return (A) this; - } - - public boolean hasNodeTopology() { - return this.nodeTopology != null; - } - - public NodeTopologyNested withNewNodeTopology() { - return new NodeTopologyNested(null); - } - - public NodeTopologyNested withNewNodeTopologyLike(V1LabelSelector item) { - return new NodeTopologyNested(item); - } - - public NodeTopologyNested editNodeTopology() { - return this.withNewNodeTopologyLike(Optional.ofNullable(this.buildNodeTopology()).orElse(null)); - } - public NodeTopologyNested editOrNewNodeTopology() { return this.withNewNodeTopologyLike(Optional.ofNullable(this.buildNodeTopology()).orElse(new V1LabelSelectorBuilder().build())); } @@ -182,19 +76,6 @@ public NodeTopologyNested editOrNewNodeTopologyLike(V1LabelSelector item) { return this.withNewNodeTopologyLike(Optional.ofNullable(this.buildNodeTopology()).orElse(item)); } - public String getStorageClassName() { - return this.storageClassName; - } - - public A withStorageClassName(String storageClassName) { - this.storageClassName = storageClassName; - return (A) this; - } - - public boolean hasStorageClassName() { - return this.storageClassName != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -230,6 +111,54 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public Quantity getCapacity() { + return this.capacity; + } + + public String getKind() { + return this.kind; + } + + public Quantity getMaximumVolumeSize() { + return this.maximumVolumeSize; + } + + public String getStorageClassName() { + return this.storageClassName; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMaximumVolumeSize() { + return this.maximumVolumeSize != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasNodeTopology() { + return this.nodeTopology != null; + } + + public boolean hasStorageClassName() { + return this.storageClassName != null; + } + public int hashCode() { return Objects.hash(apiVersion, capacity, kind, maximumVolumeSize, metadata, nodeTopology, storageClassName); } @@ -274,12 +203,87 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withCapacity(Quantity capacity) { + this.capacity = capacity; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMaximumVolumeSize(Quantity maximumVolumeSize) { + this.maximumVolumeSize = maximumVolumeSize; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public A withNewCapacity(String value) { + return (A) this.withCapacity(new Quantity(value)); + } + + public A withNewMaximumVolumeSize(String value) { + return (A) this.withMaximumVolumeSize(new Quantity(value)); + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public NodeTopologyNested withNewNodeTopology() { + return new NodeTopologyNested(null); + } + + public NodeTopologyNested withNewNodeTopologyLike(V1LabelSelector item) { + return new NodeTopologyNested(item); + } + + public A withNodeTopology(V1LabelSelector nodeTopology) { + this._visitables.remove("nodeTopology"); + if (nodeTopology != null) { + this.nodeTopology = new V1LabelSelectorBuilder(nodeTopology); + this._visitables.get("nodeTopology").add(this.nodeTopology); + } else { + this.nodeTopology = null; + this._visitables.get("nodeTopology").remove(this.nodeTopology); + } + return (A) this; + } + + public A withStorageClassName(String storageClassName) { + this.storageClassName = storageClassName; + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1CSIStorageCapacityFluent.this.withMetadata(builder.build()); } @@ -288,14 +292,15 @@ public N endMetadata() { return and(); } - } public class NodeTopologyNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + NodeTopologyNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1CSIStorageCapacityFluent.this.withNodeTopology(builder.build()); } @@ -304,7 +309,5 @@ public N endNodeTopology() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java index 8a4a27ad63..8b09cc112a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CSIStorageCapacityListBuilder extends V1CSIStorageCapacityListFluent implements VisitableBuilder{ + + V1CSIStorageCapacityListFluent fluent; + public V1CSIStorageCapacityListBuilder() { this(new V1CSIStorageCapacityList()); } @@ -11,17 +14,16 @@ public V1CSIStorageCapacityListBuilder(V1CSIStorageCapacityListFluent fluent) this(fluent, new V1CSIStorageCapacityList()); } - public V1CSIStorageCapacityListBuilder(V1CSIStorageCapacityListFluent fluent,V1CSIStorageCapacityList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSIStorageCapacityListBuilder(V1CSIStorageCapacityList instance) { this.fluent = this; this.copyInstance(instance); } - V1CSIStorageCapacityListFluent fluent; + public V1CSIStorageCapacityListBuilder(V1CSIStorageCapacityListFluent fluent,V1CSIStorageCapacityList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSIStorageCapacityList build() { V1CSIStorageCapacityList buildable = new V1CSIStorageCapacityList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1CSIStorageCapacityList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java index d422e34ccc..4a937c95e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1CSIStorageCapacityListFluent> extends BaseFluent{ - public V1CSIStorageCapacityListFluent() { - } - - public V1CSIStorageCapacityListFluent(V1CSIStorageCapacityList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1CSIStorageCapacityList instance) { - instance = instance != null ? instance : new V1CSIStorageCapacityList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1CSIStorageCapacityListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1CSIStorageCapacityListFluent(V1CSIStorageCapacityList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1CSIStorageCapacity item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1CSIStorageCapacity item : items) { + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1CSIStorageCapacity item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1CSIStorageCapacity item) { + return new ItemsNested(-1, item); } public A addToItems(V1CSIStorageCapacity... items) { @@ -96,68 +65,31 @@ public A addToItems(V1CSIStorageCapacity... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1CSIStorageCapacity item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1CSIStorageCapacity item : items) { - V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1CSIStorageCapacity... items) { - if (this.items == null) { - return (A) this; - } - for (V1CSIStorageCapacity item : items) { - V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1CSIStorageCapacity item : items) { - V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1CSIStorageCapacityBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1CSIStorageCapacity buildFirstItem() { + return this.items.get(0).build(); } public V1CSIStorageCapacity buildItem(int index) { return this.items.get(index).build(); } - public V1CSIStorageCapacity buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1CSIStorageCapacity buildLastItem() { @@ -173,73 +105,34 @@ public V1CSIStorageCapacity buildMatchingItem(Predicate predicate) { - for (V1CSIStorageCapacityBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1CSIStorageCapacity item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1CSIStorageCapacityList instance) { + instance = instance != null ? instance : new V1CSIStorageCapacityList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1CSIStorageCapacity... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1CSIStorageCapacity item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1CSIStorageCapacity item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1CSIStorageCapacity item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate pr return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1CSIStorageCapacityBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1CSIStorageCapacity item : items) { + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1CSIStorageCapacity... items) { + if (this.items == null) { + return (A) this; + } + for (V1CSIStorageCapacity item : items) { + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1CSIStorageCapacityBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1CSIStorageCapacity item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1CSIStorageCapacity item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1CSIStorageCapacity item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1CSIStorageCapacity... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1CSIStorageCapacity item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1CSIStorageCapacityFluent> implements Nested{ + + V1CSIStorageCapacityBuilder builder; + int index; + ItemsNested(int index,V1CSIStorageCapacity item) { this.index = index; this.builder = new V1CSIStorageCapacityBuilder(this, item); } - V1CSIStorageCapacityBuilder builder; - int index; - + public N and() { return (N) V1CSIStorageCapacityListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1CSIStorageCapacityListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java index eb7a12cd2a..b26e555fad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CSIVolumeSourceBuilder extends V1CSIVolumeSourceFluent implements VisitableBuilder{ + + V1CSIVolumeSourceFluent fluent; + public V1CSIVolumeSourceBuilder() { this(new V1CSIVolumeSource()); } @@ -11,17 +14,16 @@ public V1CSIVolumeSourceBuilder(V1CSIVolumeSourceFluent fluent) { this(fluent, new V1CSIVolumeSource()); } - public V1CSIVolumeSourceBuilder(V1CSIVolumeSourceFluent fluent,V1CSIVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSIVolumeSourceBuilder(V1CSIVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1CSIVolumeSourceFluent fluent; + public V1CSIVolumeSourceBuilder(V1CSIVolumeSourceFluent fluent,V1CSIVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSIVolumeSource build() { V1CSIVolumeSource buildable = new V1CSIVolumeSource(); buildable.setDriver(fluent.getDriver()); @@ -32,5 +34,4 @@ public V1CSIVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java index 60a4792b7b..119cf3b6e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java @@ -1,33 +1,59 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; -import java.lang.Object; -import java.lang.Boolean; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1CSIVolumeSourceFluent> extends BaseFluent{ + + private String driver; + private String fsType; + private V1LocalObjectReferenceBuilder nodePublishSecretRef; + private Boolean readOnly; + private Map volumeAttributes; + public V1CSIVolumeSourceFluent() { } public V1CSIVolumeSourceFluent(V1CSIVolumeSource instance) { this.copyInstance(instance); } - private String driver; - private String fsType; - private V1LocalObjectReferenceBuilder nodePublishSecretRef; - private Boolean readOnly; - private Map volumeAttributes; + + public A addToVolumeAttributes(Map map) { + if (this.volumeAttributes == null && map != null) { + this.volumeAttributes = new LinkedHashMap(); + } + if (map != null) { + this.volumeAttributes.putAll(map); + } + return (A) this; + } + + public A addToVolumeAttributes(String key,String value) { + if (this.volumeAttributes == null && key != null && value != null) { + this.volumeAttributes = new LinkedHashMap(); + } + if (key != null && value != null) { + this.volumeAttributes.put(key, value); + } + return (A) this; + } + + public V1LocalObjectReference buildNodePublishSecretRef() { + return this.nodePublishSecretRef != null ? this.nodePublishSecretRef.build() : null; + } protected void copyInstance(V1CSIVolumeSource instance) { instance = instance != null ? instance : new V1CSIVolumeSource(); @@ -40,103 +66,85 @@ protected void copyInstance(V1CSIVolumeSource instance) { } } - public String getDriver() { - return this.driver; - } - - public A withDriver(String driver) { - this.driver = driver; - return (A) this; - } - - public boolean hasDriver() { - return this.driver != null; - } - - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public NodePublishSecretRefNested editNodePublishSecretRef() { + return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(null)); } - public boolean hasFsType() { - return this.fsType != null; + public NodePublishSecretRefNested editOrNewNodePublishSecretRef() { + return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } - public V1LocalObjectReference buildNodePublishSecretRef() { - return this.nodePublishSecretRef != null ? this.nodePublishSecretRef.build() : null; + public NodePublishSecretRefNested editOrNewNodePublishSecretRefLike(V1LocalObjectReference item) { + return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(item)); } - public A withNodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef) { - this._visitables.remove("nodePublishSecretRef"); - if (nodePublishSecretRef != null) { - this.nodePublishSecretRef = new V1LocalObjectReferenceBuilder(nodePublishSecretRef); - this._visitables.get("nodePublishSecretRef").add(this.nodePublishSecretRef); - } else { - this.nodePublishSecretRef = null; - this._visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; - } - - public boolean hasNodePublishSecretRef() { - return this.nodePublishSecretRef != null; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CSIVolumeSourceFluent that = (V1CSIVolumeSourceFluent) o; + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(nodePublishSecretRef, that.nodePublishSecretRef))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(volumeAttributes, that.volumeAttributes))) { + return false; + } + return true; } - public NodePublishSecretRefNested withNewNodePublishSecretRef() { - return new NodePublishSecretRefNested(null); + public String getDriver() { + return this.driver; } - public NodePublishSecretRefNested withNewNodePublishSecretRefLike(V1LocalObjectReference item) { - return new NodePublishSecretRefNested(item); + public String getFsType() { + return this.fsType; } - public NodePublishSecretRefNested editNodePublishSecretRef() { - return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(null)); + public Boolean getReadOnly() { + return this.readOnly; } - public NodePublishSecretRefNested editOrNewNodePublishSecretRef() { - return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); + public Map getVolumeAttributes() { + return this.volumeAttributes; } - public NodePublishSecretRefNested editOrNewNodePublishSecretRefLike(V1LocalObjectReference item) { - return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(item)); + public boolean hasDriver() { + return this.driver != null; } - public Boolean getReadOnly() { - return this.readOnly; + public boolean hasFsType() { + return this.fsType != null; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public boolean hasNodePublishSecretRef() { + return this.nodePublishSecretRef != null; } public boolean hasReadOnly() { return this.readOnly != null; } - public A addToVolumeAttributes(String key,String value) { - if (this.volumeAttributes == null && key != null && value != null) { - this.volumeAttributes = new LinkedHashMap(); - } - if (key != null && value != null) { - this.volumeAttributes.put(key, value); - } - return (A) this; + public boolean hasVolumeAttributes() { + return this.volumeAttributes != null; } - public A addToVolumeAttributes(Map map) { - if (this.volumeAttributes == null && map != null) { - this.volumeAttributes = new LinkedHashMap(); - } - if (map != null) { - this.volumeAttributes.putAll(map); - } - return (A) this; + public int hashCode() { + return Objects.hash(driver, fsType, nodePublishSecretRef, readOnly, volumeAttributes); } public A removeFromVolumeAttributes(String key) { @@ -163,56 +171,6 @@ public A removeFromVolumeAttributes(Map map) { return (A) this; } - public Map getVolumeAttributes() { - return this.volumeAttributes; - } - - public A withVolumeAttributes(Map volumeAttributes) { - if (volumeAttributes == null) { - this.volumeAttributes = null; - } else { - this.volumeAttributes = new LinkedHashMap(volumeAttributes); - } - return (A) this; - } - - public boolean hasVolumeAttributes() { - return this.volumeAttributes != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1CSIVolumeSourceFluent that = (V1CSIVolumeSourceFluent) o; - if (!(Objects.equals(driver, that.driver))) { - return false; - } - if (!(Objects.equals(fsType, that.fsType))) { - return false; - } - if (!(Objects.equals(nodePublishSecretRef, that.nodePublishSecretRef))) { - return false; - } - if (!(Objects.equals(readOnly, that.readOnly))) { - return false; - } - if (!(Objects.equals(volumeAttributes, that.volumeAttributes))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(driver, fsType, nodePublishSecretRef, readOnly, volumeAttributes); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -244,15 +202,61 @@ public String toString() { return sb.toString(); } + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public NodePublishSecretRefNested withNewNodePublishSecretRef() { + return new NodePublishSecretRefNested(null); + } + + public NodePublishSecretRefNested withNewNodePublishSecretRefLike(V1LocalObjectReference item) { + return new NodePublishSecretRefNested(item); + } + + public A withNodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef) { + this._visitables.remove("nodePublishSecretRef"); + if (nodePublishSecretRef != null) { + this.nodePublishSecretRef = new V1LocalObjectReferenceBuilder(nodePublishSecretRef); + this._visitables.get("nodePublishSecretRef").add(this.nodePublishSecretRef); + } else { + this.nodePublishSecretRef = null; + this._visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); + } + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } + + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withVolumeAttributes(Map volumeAttributes) { + if (volumeAttributes == null) { + this.volumeAttributes = null; + } else { + this.volumeAttributes = new LinkedHashMap(volumeAttributes); + } + return (A) this; + } public class NodePublishSecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ + + V1LocalObjectReferenceBuilder builder; + NodePublishSecretRefNested(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - + public N and() { return (N) V1CSIVolumeSourceFluent.this.withNodePublishSecretRef(builder.build()); } @@ -261,7 +265,5 @@ public N endNodePublishSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java index 6f0899d880..a640146dcc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CapabilitiesBuilder extends V1CapabilitiesFluent implements VisitableBuilder{ + + V1CapabilitiesFluent fluent; + public V1CapabilitiesBuilder() { this(new V1Capabilities()); } @@ -11,17 +14,16 @@ public V1CapabilitiesBuilder(V1CapabilitiesFluent fluent) { this(fluent, new V1Capabilities()); } - public V1CapabilitiesBuilder(V1CapabilitiesFluent fluent,V1Capabilities instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CapabilitiesBuilder(V1Capabilities instance) { this.fluent = this; this.copyInstance(instance); } - V1CapabilitiesFluent fluent; + public V1CapabilitiesBuilder(V1CapabilitiesFluent fluent,V1Capabilities instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Capabilities build() { V1Capabilities buildable = new V1Capabilities(); buildable.setAdd(fluent.getAdd()); @@ -29,5 +31,4 @@ public V1Capabilities build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java index 4ea5672b4d..3fcbcdb6c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,36 +16,34 @@ */ @SuppressWarnings("unchecked") public class V1CapabilitiesFluent> extends BaseFluent{ + + private List add; + private List drop; + public V1CapabilitiesFluent() { } public V1CapabilitiesFluent(V1Capabilities instance) { this.copyInstance(instance); } - private List add; - private List drop; - - protected void copyInstance(V1Capabilities instance) { - instance = instance != null ? instance : new V1Capabilities(); - if (instance != null) { - this.withAdd(instance.getAdd()); - this.withDrop(instance.getDrop()); - } - } - - public A addToAdd(int index,String item) { + + public A addAllToAdd(Collection items) { if (this.add == null) { this.add = new ArrayList(); } - this.add.add(index, item); + for (String item : items) { + this.add.add(item); + } return (A) this; } - public A setToAdd(int index,String item) { - if (this.add == null) { - this.add = new ArrayList(); + public A addAllToDrop(Collection items) { + if (this.drop == null) { + this.drop = new ArrayList(); + } + for (String item : items) { + this.drop.add(item); } - this.add.set(index, item); return (A) this; } @@ -59,36 +57,60 @@ public A addToAdd(String... items) { return (A) this; } - public A addAllToAdd(Collection items) { + public A addToAdd(int index,String item) { if (this.add == null) { this.add = new ArrayList(); } - for (String item : items) { - this.add.add(item); - } + this.add.add(index, item); return (A) this; } - public A removeFromAdd(String... items) { - if (this.add == null) { - return (A) this; + public A addToDrop(String... items) { + if (this.drop == null) { + this.drop = new ArrayList(); } for (String item : items) { - this.add.remove(item); + this.drop.add(item); } return (A) this; } - public A removeAllFromAdd(Collection items) { - if (this.add == null) { - return (A) this; - } - for (String item : items) { - this.add.remove(item); + public A addToDrop(int index,String item) { + if (this.drop == null) { + this.drop = new ArrayList(); } + this.drop.add(index, item); return (A) this; } + protected void copyInstance(V1Capabilities instance) { + instance = instance != null ? instance : new V1Capabilities(); + if (instance != null) { + this.withAdd(instance.getAdd()); + this.withDrop(instance.getDrop()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CapabilitiesFluent that = (V1CapabilitiesFluent) o; + if (!(Objects.equals(add, that.add))) { + return false; + } + if (!(Objects.equals(drop, that.drop))) { + return false; + } + return true; + } + public List getAdd() { return this.add; } @@ -97,14 +119,30 @@ public String getAdd(int index) { return this.add.get(index); } + public List getDrop() { + return this.drop; + } + + public String getDrop(int index) { + return this.drop.get(index); + } + public String getFirstAdd() { return this.add.get(0); } + public String getFirstDrop() { + return this.drop.get(0); + } + public String getLastAdd() { return this.add.get(add.size() - 1); } + public String getLastDrop() { + return this.drop.get(drop.size() - 1); + } + public String getMatchingAdd(Predicate predicate) { for (String item : add) { if (predicate.test(item)) { @@ -114,6 +152,23 @@ public String getMatchingAdd(Predicate predicate) { return null; } + public String getMatchingDrop(Predicate predicate) { + for (String item : drop) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public boolean hasAdd() { + return this.add != null && !(this.add.isEmpty()); + } + + public boolean hasDrop() { + return this.drop != null && !(this.drop.isEmpty()); + } + public boolean hasMatchingAdd(Predicate predicate) { for (String item : add) { if (predicate.test(item)) { @@ -123,67 +178,45 @@ public boolean hasMatchingAdd(Predicate predicate) { return false; } - public A withAdd(List add) { - if (add != null) { - this.add = new ArrayList(); - for (String item : add) { - this.addToAdd(item); + public boolean hasMatchingDrop(Predicate predicate) { + for (String item : drop) { + if (predicate.test(item)) { + return true; } - } else { - this.add = null; - } - return (A) this; - } - - public A withAdd(String... add) { - if (this.add != null) { - this.add.clear(); - _visitables.remove("add"); - } - if (add != null) { - for (String item : add) { - this.addToAdd(item); } - } - return (A) this; + return false; } - public boolean hasAdd() { - return this.add != null && !(this.add.isEmpty()); + public int hashCode() { + return Objects.hash(add, drop); } - public A addToDrop(int index,String item) { - if (this.drop == null) { - this.drop = new ArrayList(); + public A removeAllFromAdd(Collection items) { + if (this.add == null) { + return (A) this; } - this.drop.add(index, item); - return (A) this; - } - - public A setToDrop(int index,String item) { - if (this.drop == null) { - this.drop = new ArrayList(); + for (String item : items) { + this.add.remove(item); } - this.drop.set(index, item); return (A) this; } - public A addToDrop(String... items) { + public A removeAllFromDrop(Collection items) { if (this.drop == null) { - this.drop = new ArrayList(); + return (A) this; } for (String item : items) { - this.drop.add(item); + this.drop.remove(item); } return (A) this; } - public A addAllToDrop(Collection items) { - if (this.drop == null) { - this.drop = new ArrayList(); + public A removeFromAdd(String... items) { + if (this.add == null) { + return (A) this; } for (String item : items) { - this.drop.add(item); + this.add.remove(item); } return (A) this; } @@ -198,48 +231,61 @@ public A removeFromDrop(String... items) { return (A) this; } - public A removeAllFromDrop(Collection items) { - if (this.drop == null) { - return (A) this; - } - for (String item : items) { - this.drop.remove(item); + public A setToAdd(int index,String item) { + if (this.add == null) { + this.add = new ArrayList(); } + this.add.set(index, item); return (A) this; } - public List getDrop() { - return this.drop; - } - - public String getDrop(int index) { - return this.drop.get(index); - } - - public String getFirstDrop() { - return this.drop.get(0); + public A setToDrop(int index,String item) { + if (this.drop == null) { + this.drop = new ArrayList(); + } + this.drop.set(index, item); + return (A) this; } - public String getLastDrop() { - return this.drop.get(drop.size() - 1); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(add == null) && !(add.isEmpty())) { + sb.append("add:"); + sb.append(add); + sb.append(","); + } + if (!(drop == null) && !(drop.isEmpty())) { + sb.append("drop:"); + sb.append(drop); + } + sb.append("}"); + return sb.toString(); } - public String getMatchingDrop(Predicate predicate) { - for (String item : drop) { - if (predicate.test(item)) { - return item; + public A withAdd(List add) { + if (add != null) { + this.add = new ArrayList(); + for (String item : add) { + this.addToAdd(item); } - } - return null; + } else { + this.add = null; + } + return (A) this; } - public boolean hasMatchingDrop(Predicate predicate) { - for (String item : drop) { - if (predicate.test(item)) { - return true; - } + public A withAdd(String... add) { + if (this.add != null) { + this.add.clear(); + _visitables.remove("add"); + } + if (add != null) { + for (String item : add) { + this.addToAdd(item); } - return false; + } + return (A) this; } public A withDrop(List drop) { @@ -267,49 +313,4 @@ public A withDrop(String... drop) { return (A) this; } - public boolean hasDrop() { - return this.drop != null && !(this.drop.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1CapabilitiesFluent that = (V1CapabilitiesFluent) o; - if (!(Objects.equals(add, that.add))) { - return false; - } - if (!(Objects.equals(drop, that.drop))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(add, drop); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(add == null) && !(add.isEmpty())) { - sb.append("add:"); - sb.append(add); - sb.append(","); - } - if (!(drop == null) && !(drop.isEmpty())) { - sb.append("drop:"); - sb.append(drop); - } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyBuilder.java index 081988b8d6..8ef748f5ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CapacityRequestPolicyBuilder extends V1CapacityRequestPolicyFluent implements VisitableBuilder{ + + V1CapacityRequestPolicyFluent fluent; + public V1CapacityRequestPolicyBuilder() { this(new V1CapacityRequestPolicy()); } @@ -11,17 +14,16 @@ public V1CapacityRequestPolicyBuilder(V1CapacityRequestPolicyFluent fluent) { this(fluent, new V1CapacityRequestPolicy()); } - public V1CapacityRequestPolicyBuilder(V1CapacityRequestPolicyFluent fluent,V1CapacityRequestPolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CapacityRequestPolicyBuilder(V1CapacityRequestPolicy instance) { this.fluent = this; this.copyInstance(instance); } - V1CapacityRequestPolicyFluent fluent; + public V1CapacityRequestPolicyBuilder(V1CapacityRequestPolicyFluent fluent,V1CapacityRequestPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CapacityRequestPolicy build() { V1CapacityRequestPolicy buildable = new V1CapacityRequestPolicy(); buildable.setDefault(fluent.getDefault()); @@ -30,5 +32,4 @@ public V1CapacityRequestPolicy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyFluent.java index 2cbd30ce0f..8981172f1e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyFluent.java @@ -1,90 +1,79 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import io.kubernetes.client.custom.Quantity; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1CapacityRequestPolicyFluent> extends BaseFluent{ + + private Quantity _default; + private V1CapacityRequestPolicyRangeBuilder validRange; + private List validValues; + public V1CapacityRequestPolicyFluent() { } public V1CapacityRequestPolicyFluent(V1CapacityRequestPolicy instance) { this.copyInstance(instance); } - private Quantity _default; - private V1CapacityRequestPolicyRangeBuilder validRange; - private List validValues; - - protected void copyInstance(V1CapacityRequestPolicy instance) { - instance = instance != null ? instance : new V1CapacityRequestPolicy(); - if (instance != null) { - this.withDefault(instance.getDefault()); - this.withValidRange(instance.getValidRange()); - this.withValidValues(instance.getValidValues()); + + public A addAllToValidValues(Collection items) { + if (this.validValues == null) { + this.validValues = new ArrayList(); } + for (Quantity item : items) { + this.validValues.add(item); + } + return (A) this; } - public Quantity getDefault() { - return this._default; + public A addNewValidValue(String value) { + return (A) this.addToValidValues(new Quantity(value)); } - public A withDefault(Quantity _default) { - this._default = _default; + public A addToValidValues(Quantity... items) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + for (Quantity item : items) { + this.validValues.add(item); + } return (A) this; } - public boolean hasDefault() { - return this._default != null; - } - - public A withNewDefault(String value) { - return (A) this.withDefault(new Quantity(value)); + public A addToValidValues(int index,Quantity item) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + this.validValues.add(index, item); + return (A) this; } public V1CapacityRequestPolicyRange buildValidRange() { return this.validRange != null ? this.validRange.build() : null; } - public A withValidRange(V1CapacityRequestPolicyRange validRange) { - this._visitables.remove("validRange"); - if (validRange != null) { - this.validRange = new V1CapacityRequestPolicyRangeBuilder(validRange); - this._visitables.get("validRange").add(this.validRange); - } else { - this.validRange = null; - this._visitables.get("validRange").remove(this.validRange); + protected void copyInstance(V1CapacityRequestPolicy instance) { + instance = instance != null ? instance : new V1CapacityRequestPolicy(); + if (instance != null) { + this.withDefault(instance.getDefault()); + this.withValidRange(instance.getValidRange()); + this.withValidValues(instance.getValidValues()); } - return (A) this; - } - - public boolean hasValidRange() { - return this.validRange != null; - } - - public ValidRangeNested withNewValidRange() { - return new ValidRangeNested(null); - } - - public ValidRangeNested withNewValidRangeLike(V1CapacityRequestPolicyRange item) { - return new ValidRangeNested(item); - } - - public ValidRangeNested editValidRange() { - return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(null)); } public ValidRangeNested editOrNewValidRange() { @@ -95,68 +84,35 @@ public ValidRangeNested editOrNewValidRangeLike(V1CapacityRequestPolicyRange return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(item)); } - public A addToValidValues(int index,Quantity item) { - if (this.validValues == null) { - this.validValues = new ArrayList(); - } - this.validValues.add(index, item); - return (A) this; - } - - public A setToValidValues(int index,Quantity item) { - if (this.validValues == null) { - this.validValues = new ArrayList(); - } - this.validValues.set(index, item); - return (A) this; - } - - public A addToValidValues(Quantity... items) { - if (this.validValues == null) { - this.validValues = new ArrayList(); - } - for (Quantity item : items) { - this.validValues.add(item); - } - return (A) this; + public ValidRangeNested editValidRange() { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(null)); } - public A addAllToValidValues(Collection items) { - if (this.validValues == null) { - this.validValues = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - for (Quantity item : items) { - this.validValues.add(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A removeFromValidValues(Quantity... items) { - if (this.validValues == null) { - return (A) this; + if (!(super.equals(o))) { + return false; } - for (Quantity item : items) { - this.validValues.remove(item); + V1CapacityRequestPolicyFluent that = (V1CapacityRequestPolicyFluent) o; + if (!(Objects.equals(_default, that._default))) { + return false; } - return (A) this; - } - - public A removeAllFromValidValues(Collection items) { - if (this.validValues == null) { - return (A) this; + if (!(Objects.equals(validRange, that.validRange))) { + return false; } - for (Quantity item : items) { - this.validValues.remove(item); + if (!(Objects.equals(validValues, that.validValues))) { + return false; } - return (A) this; - } - - public List getValidValues() { - return this.validValues; + return true; } - public Quantity getValidValue(int index) { - return this.validValues.get(index); + public Quantity getDefault() { + return this._default; } public Quantity getFirstValidValue() { @@ -176,6 +132,18 @@ public Quantity getMatchingValidValue(Predicate predicate) { return null; } + public Quantity getValidValue(int index) { + return this.validValues.get(index); + } + + public List getValidValues() { + return this.validValues; + } + + public boolean hasDefault() { + return this._default != null; + } + public boolean hasMatchingValidValue(Predicate predicate) { for (Quantity item : validValues) { if (predicate.test(item)) { @@ -185,64 +153,44 @@ public boolean hasMatchingValidValue(Predicate predicate) { return false; } - public A withValidValues(List validValues) { - if (validValues != null) { - this.validValues = new ArrayList(); - for (Quantity item : validValues) { - this.addToValidValues(item); - } - } else { - this.validValues = null; - } - return (A) this; - } - - public A withValidValues(Quantity... validValues) { - if (this.validValues != null) { - this.validValues.clear(); - _visitables.remove("validValues"); - } - if (validValues != null) { - for (Quantity item : validValues) { - this.addToValidValues(item); - } - } - return (A) this; + public boolean hasValidRange() { + return this.validRange != null; } public boolean hasValidValues() { return this.validValues != null && !(this.validValues.isEmpty()); } - public A addNewValidValue(String value) { - return (A) this.addToValidValues(new Quantity(value)); + public int hashCode() { + return Objects.hash(_default, validRange, validValues); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; + public A removeAllFromValidValues(Collection items) { + if (this.validValues == null) { + return (A) this; } - V1CapacityRequestPolicyFluent that = (V1CapacityRequestPolicyFluent) o; - if (!(Objects.equals(_default, that._default))) { - return false; + for (Quantity item : items) { + this.validValues.remove(item); } - if (!(Objects.equals(validRange, that.validRange))) { - return false; + return (A) this; + } + + public A removeFromValidValues(Quantity... items) { + if (this.validValues == null) { + return (A) this; } - if (!(Objects.equals(validValues, that.validValues))) { - return false; + for (Quantity item : items) { + this.validValues.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(_default, validRange, validValues); + public A setToValidValues(int index,Quantity item) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + this.validValues.set(index, item); + return (A) this; } public String toString() { @@ -265,12 +213,68 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withDefault(Quantity _default) { + this._default = _default; + return (A) this; + } + + public A withNewDefault(String value) { + return (A) this.withDefault(new Quantity(value)); + } + + public ValidRangeNested withNewValidRange() { + return new ValidRangeNested(null); + } + + public ValidRangeNested withNewValidRangeLike(V1CapacityRequestPolicyRange item) { + return new ValidRangeNested(item); + } + + public A withValidRange(V1CapacityRequestPolicyRange validRange) { + this._visitables.remove("validRange"); + if (validRange != null) { + this.validRange = new V1CapacityRequestPolicyRangeBuilder(validRange); + this._visitables.get("validRange").add(this.validRange); + } else { + this.validRange = null; + this._visitables.get("validRange").remove(this.validRange); + } + return (A) this; + } + + public A withValidValues(List validValues) { + if (validValues != null) { + this.validValues = new ArrayList(); + for (Quantity item : validValues) { + this.addToValidValues(item); + } + } else { + this.validValues = null; + } + return (A) this; + } + + public A withValidValues(Quantity... validValues) { + if (this.validValues != null) { + this.validValues.clear(); + _visitables.remove("validValues"); + } + if (validValues != null) { + for (Quantity item : validValues) { + this.addToValidValues(item); + } + } + return (A) this; + } public class ValidRangeNested extends V1CapacityRequestPolicyRangeFluent> implements Nested{ + + V1CapacityRequestPolicyRangeBuilder builder; + ValidRangeNested(V1CapacityRequestPolicyRange item) { this.builder = new V1CapacityRequestPolicyRangeBuilder(this, item); } - V1CapacityRequestPolicyRangeBuilder builder; - + public N and() { return (N) V1CapacityRequestPolicyFluent.this.withValidRange(builder.build()); } @@ -279,7 +283,5 @@ public N endValidRange() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeBuilder.java index 5c3774ba0c..8771041aff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CapacityRequestPolicyRangeBuilder extends V1CapacityRequestPolicyRangeFluent implements VisitableBuilder{ + + V1CapacityRequestPolicyRangeFluent fluent; + public V1CapacityRequestPolicyRangeBuilder() { this(new V1CapacityRequestPolicyRange()); } @@ -11,17 +14,16 @@ public V1CapacityRequestPolicyRangeBuilder(V1CapacityRequestPolicyRangeFluent this(fluent, new V1CapacityRequestPolicyRange()); } - public V1CapacityRequestPolicyRangeBuilder(V1CapacityRequestPolicyRangeFluent fluent,V1CapacityRequestPolicyRange instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CapacityRequestPolicyRangeBuilder(V1CapacityRequestPolicyRange instance) { this.fluent = this; this.copyInstance(instance); } - V1CapacityRequestPolicyRangeFluent fluent; + public V1CapacityRequestPolicyRangeBuilder(V1CapacityRequestPolicyRangeFluent fluent,V1CapacityRequestPolicyRange instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CapacityRequestPolicyRange build() { V1CapacityRequestPolicyRange buildable = new V1CapacityRequestPolicyRange(); buildable.setMax(fluent.getMax()); @@ -30,5 +32,4 @@ public V1CapacityRequestPolicyRange build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeFluent.java index 109909f7ae..ff228192e5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1CapacityRequestPolicyRangeFluent> extends BaseFluent{ + + private Quantity max; + private Quantity min; + private Quantity step; + public V1CapacityRequestPolicyRangeFluent() { } public V1CapacityRequestPolicyRangeFluent(V1CapacityRequestPolicyRange instance) { this.copyInstance(instance); } - private Quantity max; - private Quantity min; - private Quantity step; - + protected void copyInstance(V1CapacityRequestPolicyRange instance) { instance = instance != null ? instance : new V1CapacityRequestPolicyRange(); if (instance != null) { @@ -32,57 +34,6 @@ protected void copyInstance(V1CapacityRequestPolicyRange instance) { } } - public Quantity getMax() { - return this.max; - } - - public A withMax(Quantity max) { - this.max = max; - return (A) this; - } - - public boolean hasMax() { - return this.max != null; - } - - public A withNewMax(String value) { - return (A) this.withMax(new Quantity(value)); - } - - public Quantity getMin() { - return this.min; - } - - public A withMin(Quantity min) { - this.min = min; - return (A) this; - } - - public boolean hasMin() { - return this.min != null; - } - - public A withNewMin(String value) { - return (A) this.withMin(new Quantity(value)); - } - - public Quantity getStep() { - return this.step; - } - - public A withStep(Quantity step) { - this.step = step; - return (A) this; - } - - public boolean hasStep() { - return this.step != null; - } - - public A withNewStep(String value) { - return (A) this.withStep(new Quantity(value)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -106,6 +57,30 @@ public boolean equals(Object o) { return true; } + public Quantity getMax() { + return this.max; + } + + public Quantity getMin() { + return this.min; + } + + public Quantity getStep() { + return this.step; + } + + public boolean hasMax() { + return this.max != null; + } + + public boolean hasMin() { + return this.min != null; + } + + public boolean hasStep() { + return this.step != null; + } + public int hashCode() { return Objects.hash(max, min, step); } @@ -131,5 +106,31 @@ public String toString() { return sb.toString(); } - + public A withMax(Quantity max) { + this.max = max; + return (A) this; + } + + public A withMin(Quantity min) { + this.min = min; + return (A) this; + } + + public A withNewMax(String value) { + return (A) this.withMax(new Quantity(value)); + } + + public A withNewMin(String value) { + return (A) this.withMin(new Quantity(value)); + } + + public A withNewStep(String value) { + return (A) this.withStep(new Quantity(value)); + } + + public A withStep(Quantity step) { + this.step = step; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsBuilder.java index d577ceb525..799c18a51b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CapacityRequirementsBuilder extends V1CapacityRequirementsFluent implements VisitableBuilder{ + + V1CapacityRequirementsFluent fluent; + public V1CapacityRequirementsBuilder() { this(new V1CapacityRequirements()); } @@ -11,22 +14,20 @@ public V1CapacityRequirementsBuilder(V1CapacityRequirementsFluent fluent) { this(fluent, new V1CapacityRequirements()); } - public V1CapacityRequirementsBuilder(V1CapacityRequirementsFluent fluent,V1CapacityRequirements instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CapacityRequirementsBuilder(V1CapacityRequirements instance) { this.fluent = this; this.copyInstance(instance); } - V1CapacityRequirementsFluent fluent; + public V1CapacityRequirementsBuilder(V1CapacityRequirementsFluent fluent,V1CapacityRequirements instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CapacityRequirements build() { V1CapacityRequirements buildable = new V1CapacityRequirements(); buildable.setRequests(fluent.getRequests()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsFluent.java index ae146751e7..e325b0f2af 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsFluent.java @@ -1,33 +1,38 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; -import java.util.Map; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1CapacityRequirementsFluent> extends BaseFluent{ + + private Map requests; + public V1CapacityRequirementsFluent() { } public V1CapacityRequirementsFluent(V1CapacityRequirements instance) { this.copyInstance(instance); } - private Map requests; - - protected void copyInstance(V1CapacityRequirements instance) { - instance = instance != null ? instance : new V1CapacityRequirements(); - if (instance != null) { - this.withRequests(instance.getRequests()); + + public A addToRequests(Map map) { + if (this.requests == null && map != null) { + this.requests = new LinkedHashMap(); + } + if (map != null) { + this.requests.putAll(map); } + return (A) this; } public A addToRequests(String key,Quantity value) { @@ -40,14 +45,40 @@ public A addToRequests(String key,Quantity value) { return (A) this; } - public A addToRequests(Map map) { - if (this.requests == null && map != null) { - this.requests = new LinkedHashMap(); + protected void copyInstance(V1CapacityRequirements instance) { + instance = instance != null ? instance : new V1CapacityRequirements(); + if (instance != null) { + this.withRequests(instance.getRequests()); } - if (map != null) { - this.requests.putAll(map); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CapacityRequirementsFluent that = (V1CapacityRequirementsFluent) o; + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public Map getRequests() { + return this.requests; + } + + public boolean hasRequests() { + return this.requests != null; + } + + public int hashCode() { + return Objects.hash(requests); } public A removeFromRequests(String key) { @@ -74,44 +105,6 @@ public A removeFromRequests(Map map) { return (A) this; } - public Map getRequests() { - return this.requests; - } - - public A withRequests(Map requests) { - if (requests == null) { - this.requests = null; - } else { - this.requests = new LinkedHashMap(requests); - } - return (A) this; - } - - public boolean hasRequests() { - return this.requests != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1CapacityRequirementsFluent that = (V1CapacityRequirementsFluent) o; - if (!(Objects.equals(requests, that.requests))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(requests); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -123,5 +116,13 @@ public String toString() { return sb.toString(); } - + public A withRequests(Map requests) { + if (requests == null) { + this.requests = null; + } else { + this.requests = new LinkedHashMap(requests); + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java index 42e60a1e99..784929f1c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CephFSPersistentVolumeSourceBuilder extends V1CephFSPersistentVolumeSourceFluent implements VisitableBuilder{ + + V1CephFSPersistentVolumeSourceFluent fluent; + public V1CephFSPersistentVolumeSourceBuilder() { this(new V1CephFSPersistentVolumeSource()); } @@ -11,17 +14,16 @@ public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluen this(fluent, new V1CephFSPersistentVolumeSource()); } - public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluent fluent,V1CephFSPersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1CephFSPersistentVolumeSourceFluent fluent; + public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluent fluent,V1CephFSPersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CephFSPersistentVolumeSource build() { V1CephFSPersistentVolumeSource buildable = new V1CephFSPersistentVolumeSource(); buildable.setMonitors(fluent.getMonitors()); @@ -33,5 +35,4 @@ public V1CephFSPersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java index 4a371c6bd6..e3d2ee25a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java @@ -1,62 +1,46 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1CephFSPersistentVolumeSourceFluent> extends BaseFluent{ - public V1CephFSPersistentVolumeSourceFluent() { - } - - public V1CephFSPersistentVolumeSourceFluent(V1CephFSPersistentVolumeSource instance) { - this.copyInstance(instance); - } + private List monitors; private String path; private Boolean readOnly; private String secretFile; private V1SecretReferenceBuilder secretRef; private String user; - - protected void copyInstance(V1CephFSPersistentVolumeSource instance) { - instance = instance != null ? instance : new V1CephFSPersistentVolumeSource(); - if (instance != null) { - this.withMonitors(instance.getMonitors()); - this.withPath(instance.getPath()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretFile(instance.getSecretFile()); - this.withSecretRef(instance.getSecretRef()); - this.withUser(instance.getUser()); - } + + public V1CephFSPersistentVolumeSourceFluent() { } - public A addToMonitors(int index,String item) { - if (this.monitors == null) { - this.monitors = new ArrayList(); - } - this.monitors.add(index, item); - return (A) this; + public V1CephFSPersistentVolumeSourceFluent(V1CephFSPersistentVolumeSource instance) { + this.copyInstance(instance); } - - public A setToMonitors(int index,String item) { + + public A addAllToMonitors(Collection items) { if (this.monitors == null) { this.monitors = new ArrayList(); } - this.monitors.set(index, item); + for (String item : items) { + this.monitors.add(item); + } return (A) this; } @@ -70,42 +54,72 @@ public A addToMonitors(String... items) { return (A) this; } - public A addAllToMonitors(Collection items) { + public A addToMonitors(int index,String item) { if (this.monitors == null) { this.monitors = new ArrayList(); } - for (String item : items) { - this.monitors.add(item); - } + this.monitors.add(index, item); return (A) this; } - public A removeFromMonitors(String... items) { - if (this.monitors == null) { - return (A) this; - } - for (String item : items) { - this.monitors.remove(item); - } - return (A) this; + public V1SecretReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; } - public A removeAllFromMonitors(Collection items) { - if (this.monitors == null) { - return (A) this; - } - for (String item : items) { - this.monitors.remove(item); + protected void copyInstance(V1CephFSPersistentVolumeSource instance) { + instance = instance != null ? instance : new V1CephFSPersistentVolumeSource(); + if (instance != null) { + this.withMonitors(instance.getMonitors()); + this.withPath(instance.getPath()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretFile(instance.getSecretFile()); + this.withSecretRef(instance.getSecretRef()); + this.withUser(instance.getUser()); } - return (A) this; } - public List getMonitors() { - return this.monitors; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } - public String getMonitor(int index) { - return this.monitors.get(index); + public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); + } + + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CephFSPersistentVolumeSourceFluent that = (V1CephFSPersistentVolumeSourceFluent) o; + if (!(Objects.equals(monitors, that.monitors))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretFile, that.secretFile))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + return true; } public String getFirstMonitor() { @@ -125,170 +139,93 @@ public String getMatchingMonitor(Predicate predicate) { return null; } - public boolean hasMatchingMonitor(Predicate predicate) { - for (String item : monitors) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withMonitors(List monitors) { - if (monitors != null) { - this.monitors = new ArrayList(); - for (String item : monitors) { - this.addToMonitors(item); - } - } else { - this.monitors = null; - } - return (A) this; - } - - public A withMonitors(String... monitors) { - if (this.monitors != null) { - this.monitors.clear(); - _visitables.remove("monitors"); - } - if (monitors != null) { - for (String item : monitors) { - this.addToMonitors(item); - } - } - return (A) this; + public String getMonitor(int index) { + return this.monitors.get(index); } - public boolean hasMonitors() { - return this.monitors != null && !(this.monitors.isEmpty()); + public List getMonitors() { + return this.monitors; } public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; - } - - public boolean hasPath() { - return this.path != null; - } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - public String getSecretFile() { return this.secretFile; } - public A withSecretFile(String secretFile) { - this.secretFile = secretFile; - return (A) this; - } - - public boolean hasSecretFile() { - return this.secretFile != null; - } - - public V1SecretReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + public String getUser() { + return this.user; } - public A withSecretRef(V1SecretReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1SecretReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + public boolean hasMatchingMonitor(Predicate predicate) { + for (String item : monitors) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public boolean hasSecretRef() { - return this.secretRef != null; + public boolean hasMonitors() { + return this.monitors != null && !(this.monitors.isEmpty()); } - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + public boolean hasPath() { + return this.path != null; } - public SecretRefNested withNewSecretRefLike(V1SecretReference item) { - return new SecretRefNested(item); + public boolean hasReadOnly() { + return this.readOnly != null; } - public SecretRefNested editSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); + public boolean hasSecretFile() { + return this.secretFile != null; } - public SecretRefNested editOrNewSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + public boolean hasSecretRef() { + return this.secretRef != null; } - public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); + public boolean hasUser() { + return this.user != null; } - public String getUser() { - return this.user; + public int hashCode() { + return Objects.hash(monitors, path, readOnly, secretFile, secretRef, user); } - public A withUser(String user) { - this.user = user; + public A removeAllFromMonitors(Collection items) { + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } return (A) this; } - public boolean hasUser() { - return this.user != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1CephFSPersistentVolumeSourceFluent that = (V1CephFSPersistentVolumeSourceFluent) o; - if (!(Objects.equals(monitors, that.monitors))) { - return false; - } - if (!(Objects.equals(path, that.path))) { - return false; - } - if (!(Objects.equals(readOnly, that.readOnly))) { - return false; - } - if (!(Objects.equals(secretFile, that.secretFile))) { - return false; - } - if (!(Objects.equals(secretRef, that.secretRef))) { - return false; + public A removeFromMonitors(String... items) { + if (this.monitors == null) { + return (A) this; } - if (!(Objects.equals(user, that.user))) { - return false; + for (String item : items) { + this.monitors.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(monitors, path, readOnly, secretFile, secretRef, user); + public A setToMonitors(int index,String item) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + this.monitors.set(index, item); + return (A) this; } public String toString() { @@ -327,15 +264,82 @@ public String toString() { return sb.toString(); } + public A withMonitors(List monitors) { + if (monitors != null) { + this.monitors = new ArrayList(); + for (String item : monitors) { + this.addToMonitors(item); + } + } else { + this.monitors = null; + } + return (A) this; + } + + public A withMonitors(String... monitors) { + if (this.monitors != null) { + this.monitors.clear(); + _visitables.remove("monitors"); + } + if (monitors != null) { + for (String item : monitors) { + this.addToMonitors(item); + } + } + return (A) this; + } + + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); + } + + public SecretRefNested withNewSecretRefLike(V1SecretReference item) { + return new SecretRefNested(item); + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } + + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretFile(String secretFile) { + this.secretFile = secretFile; + return (A) this; + } + + public A withSecretRef(V1SecretReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1SecretReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; + } + + public A withUser(String user) { + this.user = user; + return (A) this; + } public class SecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + SecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1CephFSPersistentVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -344,7 +348,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java index d82ca41679..074efbc3d9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CephFSVolumeSourceBuilder extends V1CephFSVolumeSourceFluent implements VisitableBuilder{ + + V1CephFSVolumeSourceFluent fluent; + public V1CephFSVolumeSourceBuilder() { this(new V1CephFSVolumeSource()); } @@ -11,17 +14,16 @@ public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSourceFluent fluent) { this(fluent, new V1CephFSVolumeSource()); } - public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSourceFluent fluent,V1CephFSVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1CephFSVolumeSourceFluent fluent; + public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSourceFluent fluent,V1CephFSVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CephFSVolumeSource build() { V1CephFSVolumeSource buildable = new V1CephFSVolumeSource(); buildable.setMonitors(fluent.getMonitors()); @@ -33,5 +35,4 @@ public V1CephFSVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java index 706d48b4e6..ad94014462 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java @@ -1,62 +1,46 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1CephFSVolumeSourceFluent> extends BaseFluent{ - public V1CephFSVolumeSourceFluent() { - } - - public V1CephFSVolumeSourceFluent(V1CephFSVolumeSource instance) { - this.copyInstance(instance); - } + private List monitors; private String path; private Boolean readOnly; private String secretFile; private V1LocalObjectReferenceBuilder secretRef; private String user; - - protected void copyInstance(V1CephFSVolumeSource instance) { - instance = instance != null ? instance : new V1CephFSVolumeSource(); - if (instance != null) { - this.withMonitors(instance.getMonitors()); - this.withPath(instance.getPath()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretFile(instance.getSecretFile()); - this.withSecretRef(instance.getSecretRef()); - this.withUser(instance.getUser()); - } + + public V1CephFSVolumeSourceFluent() { } - public A addToMonitors(int index,String item) { - if (this.monitors == null) { - this.monitors = new ArrayList(); - } - this.monitors.add(index, item); - return (A) this; + public V1CephFSVolumeSourceFluent(V1CephFSVolumeSource instance) { + this.copyInstance(instance); } - - public A setToMonitors(int index,String item) { + + public A addAllToMonitors(Collection items) { if (this.monitors == null) { this.monitors = new ArrayList(); } - this.monitors.set(index, item); + for (String item : items) { + this.monitors.add(item); + } return (A) this; } @@ -70,42 +54,72 @@ public A addToMonitors(String... items) { return (A) this; } - public A addAllToMonitors(Collection items) { + public A addToMonitors(int index,String item) { if (this.monitors == null) { this.monitors = new ArrayList(); } - for (String item : items) { - this.monitors.add(item); - } + this.monitors.add(index, item); return (A) this; } - public A removeFromMonitors(String... items) { - if (this.monitors == null) { - return (A) this; - } - for (String item : items) { - this.monitors.remove(item); - } - return (A) this; + public V1LocalObjectReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; } - public A removeAllFromMonitors(Collection items) { - if (this.monitors == null) { - return (A) this; - } - for (String item : items) { - this.monitors.remove(item); + protected void copyInstance(V1CephFSVolumeSource instance) { + instance = instance != null ? instance : new V1CephFSVolumeSource(); + if (instance != null) { + this.withMonitors(instance.getMonitors()); + this.withPath(instance.getPath()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretFile(instance.getSecretFile()); + this.withSecretRef(instance.getSecretRef()); + this.withUser(instance.getUser()); } - return (A) this; } - public List getMonitors() { - return this.monitors; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } - public String getMonitor(int index) { - return this.monitors.get(index); + public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); + } + + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CephFSVolumeSourceFluent that = (V1CephFSVolumeSourceFluent) o; + if (!(Objects.equals(monitors, that.monitors))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretFile, that.secretFile))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + return true; } public String getFirstMonitor() { @@ -125,170 +139,93 @@ public String getMatchingMonitor(Predicate predicate) { return null; } - public boolean hasMatchingMonitor(Predicate predicate) { - for (String item : monitors) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withMonitors(List monitors) { - if (monitors != null) { - this.monitors = new ArrayList(); - for (String item : monitors) { - this.addToMonitors(item); - } - } else { - this.monitors = null; - } - return (A) this; - } - - public A withMonitors(String... monitors) { - if (this.monitors != null) { - this.monitors.clear(); - _visitables.remove("monitors"); - } - if (monitors != null) { - for (String item : monitors) { - this.addToMonitors(item); - } - } - return (A) this; + public String getMonitor(int index) { + return this.monitors.get(index); } - public boolean hasMonitors() { - return this.monitors != null && !(this.monitors.isEmpty()); + public List getMonitors() { + return this.monitors; } public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; - } - - public boolean hasPath() { - return this.path != null; - } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - public String getSecretFile() { return this.secretFile; } - public A withSecretFile(String secretFile) { - this.secretFile = secretFile; - return (A) this; - } - - public boolean hasSecretFile() { - return this.secretFile != null; - } - - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + public String getUser() { + return this.user; } - public A withSecretRef(V1LocalObjectReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + public boolean hasMatchingMonitor(Predicate predicate) { + for (String item : monitors) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public boolean hasSecretRef() { - return this.secretRef != null; + public boolean hasMonitors() { + return this.monitors != null && !(this.monitors.isEmpty()); } - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + public boolean hasPath() { + return this.path != null; } - public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); + public boolean hasReadOnly() { + return this.readOnly != null; } - public SecretRefNested editSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); + public boolean hasSecretFile() { + return this.secretFile != null; } - public SecretRefNested editOrNewSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); + public boolean hasSecretRef() { + return this.secretRef != null; } - public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); + public boolean hasUser() { + return this.user != null; } - public String getUser() { - return this.user; + public int hashCode() { + return Objects.hash(monitors, path, readOnly, secretFile, secretRef, user); } - public A withUser(String user) { - this.user = user; + public A removeAllFromMonitors(Collection items) { + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } return (A) this; } - public boolean hasUser() { - return this.user != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1CephFSVolumeSourceFluent that = (V1CephFSVolumeSourceFluent) o; - if (!(Objects.equals(monitors, that.monitors))) { - return false; - } - if (!(Objects.equals(path, that.path))) { - return false; - } - if (!(Objects.equals(readOnly, that.readOnly))) { - return false; - } - if (!(Objects.equals(secretFile, that.secretFile))) { - return false; - } - if (!(Objects.equals(secretRef, that.secretRef))) { - return false; + public A removeFromMonitors(String... items) { + if (this.monitors == null) { + return (A) this; } - if (!(Objects.equals(user, that.user))) { - return false; + for (String item : items) { + this.monitors.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(monitors, path, readOnly, secretFile, secretRef, user); + public A setToMonitors(int index,String item) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + this.monitors.set(index, item); + return (A) this; } public String toString() { @@ -327,15 +264,82 @@ public String toString() { return sb.toString(); } + public A withMonitors(List monitors) { + if (monitors != null) { + this.monitors = new ArrayList(); + for (String item : monitors) { + this.addToMonitors(item); + } + } else { + this.monitors = null; + } + return (A) this; + } + + public A withMonitors(String... monitors) { + if (this.monitors != null) { + this.monitors.clear(); + _visitables.remove("monitors"); + } + if (monitors != null) { + for (String item : monitors) { + this.addToMonitors(item); + } + } + return (A) this; + } + + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); + } + + public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { + return new SecretRefNested(item); + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } + + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretFile(String secretFile) { + this.secretFile = secretFile; + return (A) this; + } + + public A withSecretRef(V1LocalObjectReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; + } + + public A withUser(String user) { + this.user = user; + return (A) this; + } public class SecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ + + V1LocalObjectReferenceBuilder builder; + SecretRefNested(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - + public N and() { return (N) V1CephFSVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -344,7 +348,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java index a1d983461c..c83b787f99 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CertificateSigningRequestBuilder extends V1CertificateSigningRequestFluent implements VisitableBuilder{ + + V1CertificateSigningRequestFluent fluent; + public V1CertificateSigningRequestBuilder() { this(new V1CertificateSigningRequest()); } @@ -11,17 +14,16 @@ public V1CertificateSigningRequestBuilder(V1CertificateSigningRequestFluent f this(fluent, new V1CertificateSigningRequest()); } - public V1CertificateSigningRequestBuilder(V1CertificateSigningRequestFluent fluent,V1CertificateSigningRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CertificateSigningRequestBuilder(V1CertificateSigningRequest instance) { this.fluent = this; this.copyInstance(instance); } - V1CertificateSigningRequestFluent fluent; + public V1CertificateSigningRequestBuilder(V1CertificateSigningRequestFluent fluent,V1CertificateSigningRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CertificateSigningRequest build() { V1CertificateSigningRequest buildable = new V1CertificateSigningRequest(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1CertificateSigningRequest build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java index c96aa3df54..7a336eb793 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CertificateSigningRequestConditionBuilder extends V1CertificateSigningRequestConditionFluent implements VisitableBuilder{ + + V1CertificateSigningRequestConditionFluent fluent; + public V1CertificateSigningRequestConditionBuilder() { this(new V1CertificateSigningRequestCondition()); } @@ -11,17 +14,16 @@ public V1CertificateSigningRequestConditionBuilder(V1CertificateSigningRequestCo this(fluent, new V1CertificateSigningRequestCondition()); } - public V1CertificateSigningRequestConditionBuilder(V1CertificateSigningRequestConditionFluent fluent,V1CertificateSigningRequestCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CertificateSigningRequestConditionBuilder(V1CertificateSigningRequestCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1CertificateSigningRequestConditionFluent fluent; + public V1CertificateSigningRequestConditionBuilder(V1CertificateSigningRequestConditionFluent fluent,V1CertificateSigningRequestCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CertificateSigningRequestCondition build() { V1CertificateSigningRequestCondition buildable = new V1CertificateSigningRequestCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -33,5 +35,4 @@ public V1CertificateSigningRequestCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java index a89fed8255..a650e6c2a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java @@ -1,31 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1CertificateSigningRequestConditionFluent> extends BaseFluent{ - public V1CertificateSigningRequestConditionFluent() { - } - - public V1CertificateSigningRequestConditionFluent(V1CertificateSigningRequestCondition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastTransitionTime; private OffsetDateTime lastUpdateTime; private String message; private String reason; private String status; private String type; + + public V1CertificateSigningRequestConditionFluent() { + } + public V1CertificateSigningRequestConditionFluent(V1CertificateSigningRequestCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1CertificateSigningRequestCondition instance) { instance = instance != null ? instance : new V1CertificateSigningRequestCondition(); if (instance != null) { @@ -38,116 +40,86 @@ protected void copyInstance(V1CertificateSigningRequestCondition instance) { } } - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CertificateSigningRequestConditionFluent that = (V1CertificateSigningRequestConditionFluent) o; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(lastUpdateTime, that.lastUpdateTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } public OffsetDateTime getLastUpdateTime() { return this.lastUpdateTime; } - public A withLastUpdateTime(OffsetDateTime lastUpdateTime) { - this.lastUpdateTime = lastUpdateTime; - return (A) this; - } - - public boolean hasLastUpdateTime() { - return this.lastUpdateTime != null; - } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public String getStatus() { + return this.status; } - public boolean hasReason() { - return this.reason != null; + public String getType() { + return this.type; } - public String getStatus() { - return this.status; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasLastUpdateTime() { + return this.lastUpdateTime != null; } - public boolean hasStatus() { - return this.status != null; + public boolean hasMessage() { + return this.message != null; } - public String getType() { - return this.type; + public boolean hasReason() { + return this.reason != null; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasStatus() { + return this.status != null; } public boolean hasType() { return this.type != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1CertificateSigningRequestConditionFluent that = (V1CertificateSigningRequestConditionFluent) o; - if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { - return false; - } - if (!(Objects.equals(lastUpdateTime, that.lastUpdateTime))) { - return false; - } - if (!(Objects.equals(message, that.message))) { - return false; - } - if (!(Objects.equals(reason, that.reason))) { - return false; - } - if (!(Objects.equals(status, that.status))) { - return false; - } - if (!(Objects.equals(type, that.type))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(lastTransitionTime, lastUpdateTime, message, reason, status, type); } @@ -188,5 +160,34 @@ public String toString() { return sb.toString(); } - + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withLastUpdateTime(OffsetDateTime lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java index fe73d15192..5806cace0d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1CertificateSigningRequestFluent> extends BaseFluent{ - public V1CertificateSigningRequestFluent() { - } - - public V1CertificateSigningRequestFluent(V1CertificateSigningRequest instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1CertificateSigningRequestSpecBuilder spec; private V1CertificateSigningRequestStatusBuilder status; - - protected void copyInstance(V1CertificateSigningRequest instance) { - instance = instance != null ? instance : new V1CertificateSigningRequest(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1CertificateSigningRequestFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1CertificateSigningRequestFluent(V1CertificateSigningRequest instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1CertificateSigningRequestSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1CertificateSigningRequestStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1CertificateSigningRequest instance) { + instance = instance != null ? instance : new V1CertificateSigningRequest(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1CertificateSigningRequestSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1CertificateSigningRequestSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1CertificateSigningRequestSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1CertificateSigningRequestSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1CertificateSigningRequestSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1CertificateSigningRequestSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1CertificateSigningRequestStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1CertificateSigningRequestStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1CertificateSigningRequestStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1CertificateSigningRequestStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1CertificateSigningRequestStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1CertificateSigningRequestStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1CertificateSigningRequestStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1CertificateSigningRequestStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1CertificateSigningRequestSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1CertificateSigningRequestStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1CertificateSigningRequestSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1CertificateSigningRequestSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1CertificateSigningRequestStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1CertificateSigningRequestStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1CertificateSigningRequestFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1CertificateSigningRequestSpecFluent> implements Nested{ + + V1CertificateSigningRequestSpecBuilder builder; + SpecNested(V1CertificateSigningRequestSpec item) { this.builder = new V1CertificateSigningRequestSpecBuilder(this, item); } - V1CertificateSigningRequestSpecBuilder builder; - + public N and() { return (N) V1CertificateSigningRequestFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1CertificateSigningRequestStatusFluent> implements Nested{ + + V1CertificateSigningRequestStatusBuilder builder; + StatusNested(V1CertificateSigningRequestStatus item) { this.builder = new V1CertificateSigningRequestStatusBuilder(this, item); } - V1CertificateSigningRequestStatusBuilder builder; - + public N and() { return (N) V1CertificateSigningRequestFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java index 44591df5d2..e2e47614f1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CertificateSigningRequestListBuilder extends V1CertificateSigningRequestListFluent implements VisitableBuilder{ + + V1CertificateSigningRequestListFluent fluent; + public V1CertificateSigningRequestListBuilder() { this(new V1CertificateSigningRequestList()); } @@ -11,17 +14,16 @@ public V1CertificateSigningRequestListBuilder(V1CertificateSigningRequestListFlu this(fluent, new V1CertificateSigningRequestList()); } - public V1CertificateSigningRequestListBuilder(V1CertificateSigningRequestListFluent fluent,V1CertificateSigningRequestList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CertificateSigningRequestListBuilder(V1CertificateSigningRequestList instance) { this.fluent = this; this.copyInstance(instance); } - V1CertificateSigningRequestListFluent fluent; + public V1CertificateSigningRequestListBuilder(V1CertificateSigningRequestListFluent fluent,V1CertificateSigningRequestList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CertificateSigningRequestList build() { V1CertificateSigningRequestList buildable = new V1CertificateSigningRequestList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1CertificateSigningRequestList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java index 6080e1f05d..227a6382e1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1CertificateSigningRequestListFluent> extends BaseFluent{ - public V1CertificateSigningRequestListFluent() { - } - - public V1CertificateSigningRequestListFluent(V1CertificateSigningRequestList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1CertificateSigningRequestList instance) { - instance = instance != null ? instance : new V1CertificateSigningRequestList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1CertificateSigningRequestListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1CertificateSigningRequestListFluent(V1CertificateSigningRequestList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1CertificateSigningRequest item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1CertificateSigningRequest item : items) { + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1CertificateSigningRequest item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1CertificateSigningRequest item) { + return new ItemsNested(-1, item); } public A addToItems(V1CertificateSigningRequest... items) { @@ -96,68 +65,31 @@ public A addToItems(V1CertificateSigningRequest... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1CertificateSigningRequest item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1CertificateSigningRequest item : items) { - V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1CertificateSigningRequest... items) { - if (this.items == null) { - return (A) this; - } - for (V1CertificateSigningRequest item : items) { - V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1CertificateSigningRequest item : items) { - V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1CertificateSigningRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1CertificateSigningRequest buildFirstItem() { + return this.items.get(0).build(); } public V1CertificateSigningRequest buildItem(int index) { return this.items.get(index).build(); } - public V1CertificateSigningRequest buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1CertificateSigningRequest buildLastItem() { @@ -173,73 +105,34 @@ public V1CertificateSigningRequest buildMatchingItem(Predicate predicate) { - for (V1CertificateSigningRequestBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1CertificateSigningRequest item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1CertificateSigningRequestList instance) { + instance = instance != null ? instance : new V1CertificateSigningRequestList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1CertificateSigningRequest... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1CertificateSigningRequest item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1CertificateSigningRequest item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1CertificateSigningRequest item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1CertificateSigningRequestBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1CertificateSigningRequest item : items) { + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1CertificateSigningRequest... items) { + if (this.items == null) { + return (A) this; + } + for (V1CertificateSigningRequest item : items) { + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1CertificateSigningRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1CertificateSigningRequest item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1CertificateSigningRequest item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1CertificateSigningRequest item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1CertificateSigningRequest... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1CertificateSigningRequest item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1CertificateSigningRequestFluent> implements Nested{ + + V1CertificateSigningRequestBuilder builder; + int index; + ItemsNested(int index,V1CertificateSigningRequest item) { this.index = index; this.builder = new V1CertificateSigningRequestBuilder(this, item); } - V1CertificateSigningRequestBuilder builder; - int index; - + public N and() { return (N) V1CertificateSigningRequestListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1CertificateSigningRequestListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java index 6e19967218..47fea27289 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CertificateSigningRequestSpecBuilder extends V1CertificateSigningRequestSpecFluent implements VisitableBuilder{ + + V1CertificateSigningRequestSpecFluent fluent; + public V1CertificateSigningRequestSpecBuilder() { this(new V1CertificateSigningRequestSpec()); } @@ -11,17 +14,16 @@ public V1CertificateSigningRequestSpecBuilder(V1CertificateSigningRequestSpecFlu this(fluent, new V1CertificateSigningRequestSpec()); } - public V1CertificateSigningRequestSpecBuilder(V1CertificateSigningRequestSpecFluent fluent,V1CertificateSigningRequestSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CertificateSigningRequestSpecBuilder(V1CertificateSigningRequestSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1CertificateSigningRequestSpecFluent fluent; + public V1CertificateSigningRequestSpecBuilder(V1CertificateSigningRequestSpecFluent fluent,V1CertificateSigningRequestSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CertificateSigningRequestSpec build() { V1CertificateSigningRequestSpec buildable = new V1CertificateSigningRequestSpec(); buildable.setExpirationSeconds(fluent.getExpirationSeconds()); @@ -35,5 +37,4 @@ public V1CertificateSigningRequestSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java index b17f3747f3..c880628b2d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java @@ -1,31 +1,26 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Byte; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import java.lang.Integer; -import java.lang.Byte; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1CertificateSigningRequestSpecFluent> extends BaseFluent{ - public V1CertificateSigningRequestSpecFluent() { - } - - public V1CertificateSigningRequestSpecFluent(V1CertificateSigningRequestSpec instance) { - this.copyInstance(instance); - } + private Integer expirationSeconds; private Map> extra; private List groups; @@ -34,40 +29,40 @@ public V1CertificateSigningRequestSpecFluent(V1CertificateSigningRequestSpec ins private String uid; private List usages; private String username; - - protected void copyInstance(V1CertificateSigningRequestSpec instance) { - instance = instance != null ? instance : new V1CertificateSigningRequestSpec(); - if (instance != null) { - this.withExpirationSeconds(instance.getExpirationSeconds()); - this.withExtra(instance.getExtra()); - this.withGroups(instance.getGroups()); - this.withRequest(instance.getRequest()); - this.withSignerName(instance.getSignerName()); - this.withUid(instance.getUid()); - this.withUsages(instance.getUsages()); - this.withUsername(instance.getUsername()); - } + + public V1CertificateSigningRequestSpecFluent() { } - public Integer getExpirationSeconds() { - return this.expirationSeconds; + public V1CertificateSigningRequestSpecFluent(V1CertificateSigningRequestSpec instance) { + this.copyInstance(instance); } - - public A withExpirationSeconds(Integer expirationSeconds) { - this.expirationSeconds = expirationSeconds; + + public A addAllToGroups(Collection items) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + for (String item : items) { + this.groups.add(item); + } return (A) this; } - public boolean hasExpirationSeconds() { - return this.expirationSeconds != null; + public A addAllToRequest(Collection items) { + if (this.request == null) { + this.request = new ArrayList(); + } + for (Byte item : items) { + this.request.add(item); + } + return (A) this; } - public A addToExtra(String key,List value) { - if (this.extra == null && key != null && value != null) { - this.extra = new LinkedHashMap(); + public A addAllToUsages(Collection items) { + if (this.usages == null) { + this.usages = new ArrayList(); } - if (key != null && value != null) { - this.extra.put(key, value); + for (String item : items) { + this.usages.add(item); } return (A) this; } @@ -82,47 +77,26 @@ public A addToExtra(Map> map) { return (A) this; } - public A removeFromExtra(String key) { - if (this.extra == null) { - return (A) this; + public A addToExtra(String key,List value) { + if (this.extra == null && key != null && value != null) { + this.extra = new LinkedHashMap(); } - if (key != null && this.extra != null) { - this.extra.remove(key); + if (key != null && value != null) { + this.extra.put(key, value); } return (A) this; } - public A removeFromExtra(Map> map) { - if (this.extra == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.extra != null) { - this.extra.remove(key); - } - } + public A addToGroups(String... items) { + if (this.groups == null) { + this.groups = new ArrayList(); } - return (A) this; - } - - public Map> getExtra() { - return this.extra; - } - - public A withExtra(Map> extra) { - if (extra == null) { - this.extra = null; - } else { - this.extra = new LinkedHashMap(extra); + for (String item : items) { + this.groups.add(item); } return (A) this; } - public boolean hasExtra() { - return this.extra != null; - } - public A addToGroups(int index,String item) { if (this.groups == null) { this.groups = new ArrayList(); @@ -131,70 +105,126 @@ public A addToGroups(int index,String item) { return (A) this; } - public A setToGroups(int index,String item) { - if (this.groups == null) { - this.groups = new ArrayList(); + public A addToRequest(Byte... items) { + if (this.request == null) { + this.request = new ArrayList(); + } + for (Byte item : items) { + this.request.add(item); } - this.groups.set(index, item); return (A) this; } - public A addToGroups(String... items) { - if (this.groups == null) { - this.groups = new ArrayList(); - } - for (String item : items) { - this.groups.add(item); + public A addToRequest(int index,Byte item) { + if (this.request == null) { + this.request = new ArrayList(); } + this.request.add(index, item); return (A) this; } - public A addAllToGroups(Collection items) { - if (this.groups == null) { - this.groups = new ArrayList(); + public A addToUsages(String... items) { + if (this.usages == null) { + this.usages = new ArrayList(); } for (String item : items) { - this.groups.add(item); + this.usages.add(item); } return (A) this; } - public A removeFromGroups(String... items) { - if (this.groups == null) { - return (A) this; - } - for (String item : items) { - this.groups.remove(item); + public A addToUsages(int index,String item) { + if (this.usages == null) { + this.usages = new ArrayList(); } + this.usages.add(index, item); return (A) this; } - public A removeAllFromGroups(Collection items) { - if (this.groups == null) { - return (A) this; + protected void copyInstance(V1CertificateSigningRequestSpec instance) { + instance = instance != null ? instance : new V1CertificateSigningRequestSpec(); + if (instance != null) { + this.withExpirationSeconds(instance.getExpirationSeconds()); + this.withExtra(instance.getExtra()); + this.withGroups(instance.getGroups()); + this.withRequest(instance.getRequest()); + this.withSignerName(instance.getSignerName()); + this.withUid(instance.getUid()); + this.withUsages(instance.getUsages()); + this.withUsername(instance.getUsername()); } - for (String item : items) { - this.groups.remove(item); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CertificateSigningRequestSpecFluent that = (V1CertificateSigningRequestSpecFluent) o; + if (!(Objects.equals(expirationSeconds, that.expirationSeconds))) { + return false; + } + if (!(Objects.equals(extra, that.extra))) { + return false; + } + if (!(Objects.equals(groups, that.groups))) { + return false; + } + if (!(Objects.equals(request, that.request))) { + return false; + } + if (!(Objects.equals(signerName, that.signerName))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + if (!(Objects.equals(usages, that.usages))) { + return false; + } + if (!(Objects.equals(username, that.username))) { + return false; + } + return true; } - public List getGroups() { - return this.groups; + public Integer getExpirationSeconds() { + return this.expirationSeconds; } - public String getGroup(int index) { - return this.groups.get(index); + public Map> getExtra() { + return this.extra; } public String getFirstGroup() { return this.groups.get(0); } + public String getFirstUsage() { + return this.usages.get(0); + } + + public String getGroup(int index) { + return this.groups.get(index); + } + + public List getGroups() { + return this.groups; + } + public String getLastGroup() { return this.groups.get(groups.size() - 1); } + public String getLastUsage() { + return this.usages.get(usages.size() - 1); + } + public String getMatchingGroup(Predicate predicate) { for (String item : groups) { if (predicate.test(item)) { @@ -204,62 +234,20 @@ public String getMatchingGroup(Predicate predicate) { return null; } - public boolean hasMatchingGroup(Predicate predicate) { - for (String item : groups) { + public String getMatchingUsage(Predicate predicate) { + for (String item : usages) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withGroups(List groups) { - if (groups != null) { - this.groups = new ArrayList(); - for (String item : groups) { - this.addToGroups(item); - } - } else { - this.groups = null; - } - return (A) this; - } - - public A withGroups(String... groups) { - if (this.groups != null) { - this.groups.clear(); - _visitables.remove("groups"); - } - if (groups != null) { - for (String item : groups) { - this.addToGroups(item); - } - } - return (A) this; - } - - public boolean hasGroups() { - return this.groups != null && !(this.groups.isEmpty()); - } - - public A withRequest(byte... request) { - if (this.request != null) { - this.request.clear(); - _visitables.remove("request"); - } - if (request != null) { - for (byte item : request) { - this.addToRequest(item); - } - } - return (A) this; - } - - public byte[] getRequest() { - int size = request != null ? request.size() : 0; - byte[] result = new byte[size]; - if (size == 0) { - return result; + public byte[] getRequest() { + int size = request != null ? request.size() : 0; + byte[] result = new byte[size]; + if (size == 0) { + return result; } int index = 0; for (byte item : request) { @@ -268,134 +256,96 @@ public byte[] getRequest() { return result; } - public A addToRequest(int index,Byte item) { - if (this.request == null) { - this.request = new ArrayList(); - } - this.request.add(index, item); - return (A) this; + public String getSignerName() { + return this.signerName; } - public A setToRequest(int index,Byte item) { - if (this.request == null) { - this.request = new ArrayList(); - } - this.request.set(index, item); - return (A) this; + public String getUid() { + return this.uid; } - public A addToRequest(Byte... items) { - if (this.request == null) { - this.request = new ArrayList(); - } - for (Byte item : items) { - this.request.add(item); - } - return (A) this; + public String getUsage(int index) { + return this.usages.get(index); } - public A addAllToRequest(Collection items) { - if (this.request == null) { - this.request = new ArrayList(); - } - for (Byte item : items) { - this.request.add(item); - } - return (A) this; + public List getUsages() { + return this.usages; } - public A removeFromRequest(Byte... items) { - if (this.request == null) { - return (A) this; - } - for (Byte item : items) { - this.request.remove(item); - } - return (A) this; + public String getUsername() { + return this.username; } - public A removeAllFromRequest(Collection items) { - if (this.request == null) { - return (A) this; - } - for (Byte item : items) { - this.request.remove(item); - } - return (A) this; + public boolean hasExpirationSeconds() { + return this.expirationSeconds != null; } - public boolean hasRequest() { - return this.request != null && !(this.request.isEmpty()); + public boolean hasExtra() { + return this.extra != null; } - public String getSignerName() { - return this.signerName; + public boolean hasGroups() { + return this.groups != null && !(this.groups.isEmpty()); } - public A withSignerName(String signerName) { - this.signerName = signerName; - return (A) this; + public boolean hasMatchingGroup(Predicate predicate) { + for (String item : groups) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public boolean hasSignerName() { - return this.signerName != null; + public boolean hasMatchingUsage(Predicate predicate) { + for (String item : usages) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getUid() { - return this.uid; + public boolean hasRequest() { + return this.request != null && !(this.request.isEmpty()); } - public A withUid(String uid) { - this.uid = uid; - return (A) this; + public boolean hasSignerName() { + return this.signerName != null; } public boolean hasUid() { return this.uid != null; } - public A addToUsages(int index,String item) { - if (this.usages == null) { - this.usages = new ArrayList(); - } - this.usages.add(index, item); - return (A) this; + public boolean hasUsages() { + return this.usages != null && !(this.usages.isEmpty()); } - public A setToUsages(int index,String item) { - if (this.usages == null) { - this.usages = new ArrayList(); - } - this.usages.set(index, item); - return (A) this; + public boolean hasUsername() { + return this.username != null; } - public A addToUsages(String... items) { - if (this.usages == null) { - this.usages = new ArrayList(); - } - for (String item : items) { - this.usages.add(item); - } - return (A) this; + public int hashCode() { + return Objects.hash(expirationSeconds, extra, groups, request, signerName, uid, usages, username); } - public A addAllToUsages(Collection items) { - if (this.usages == null) { - this.usages = new ArrayList(); + public A removeAllFromGroups(Collection items) { + if (this.groups == null) { + return (A) this; } for (String item : items) { - this.usages.add(item); + this.groups.remove(item); } return (A) this; } - public A removeFromUsages(String... items) { - if (this.usages == null) { + public A removeAllFromRequest(Collection items) { + if (this.request == null) { return (A) this; } - for (String item : items) { - this.usages.remove(item); + for (Byte item : items) { + this.request.remove(item); } return (A) this; } @@ -410,122 +360,82 @@ public A removeAllFromUsages(Collection items) { return (A) this; } - public List getUsages() { - return this.usages; - } - - public String getUsage(int index) { - return this.usages.get(index); - } - - public String getFirstUsage() { - return this.usages.get(0); - } - - public String getLastUsage() { - return this.usages.get(usages.size() - 1); - } - - public String getMatchingUsage(Predicate predicate) { - for (String item : usages) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A removeFromExtra(String key) { + if (this.extra == null) { + return (A) this; + } + if (key != null && this.extra != null) { + this.extra.remove(key); + } + return (A) this; } - public boolean hasMatchingUsage(Predicate predicate) { - for (String item : usages) { - if (predicate.test(item)) { - return true; + public A removeFromExtra(Map> map) { + if (this.extra == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.extra != null) { + this.extra.remove(key); } } - return false; - } - - public A withUsages(List usages) { - if (usages != null) { - this.usages = new ArrayList(); - for (String item : usages) { - this.addToUsages(item); - } - } else { - this.usages = null; } return (A) this; } - public A withUsages(String... usages) { - if (this.usages != null) { - this.usages.clear(); - _visitables.remove("usages"); + public A removeFromGroups(String... items) { + if (this.groups == null) { + return (A) this; } - if (usages != null) { - for (String item : usages) { - this.addToUsages(item); - } + for (String item : items) { + this.groups.remove(item); } return (A) this; } - public boolean hasUsages() { - return this.usages != null && !(this.usages.isEmpty()); - } - - public String getUsername() { - return this.username; + public A removeFromRequest(Byte... items) { + if (this.request == null) { + return (A) this; + } + for (Byte item : items) { + this.request.remove(item); + } + return (A) this; } - public A withUsername(String username) { - this.username = username; + public A removeFromUsages(String... items) { + if (this.usages == null) { + return (A) this; + } + for (String item : items) { + this.usages.remove(item); + } return (A) this; } - public boolean hasUsername() { - return this.username != null; + public A setToGroups(int index,String item) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + this.groups.set(index, item); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1CertificateSigningRequestSpecFluent that = (V1CertificateSigningRequestSpecFluent) o; - if (!(Objects.equals(expirationSeconds, that.expirationSeconds))) { - return false; - } - if (!(Objects.equals(extra, that.extra))) { - return false; - } - if (!(Objects.equals(groups, that.groups))) { - return false; - } - if (!(Objects.equals(request, that.request))) { - return false; - } - if (!(Objects.equals(signerName, that.signerName))) { - return false; - } - if (!(Objects.equals(uid, that.uid))) { - return false; - } - if (!(Objects.equals(usages, that.usages))) { - return false; - } - if (!(Objects.equals(username, that.username))) { - return false; + public A setToRequest(int index,Byte item) { + if (this.request == null) { + this.request = new ArrayList(); } - return true; + this.request.set(index, item); + return (A) this; } - public int hashCode() { - return Objects.hash(expirationSeconds, extra, groups, request, signerName, uid, usages, username); + public A setToUsages(int index,String item) { + if (this.usages == null) { + this.usages = new ArrayList(); + } + this.usages.set(index, item); + return (A) this; } public String toString() { @@ -574,5 +484,96 @@ public String toString() { return sb.toString(); } - + public A withExpirationSeconds(Integer expirationSeconds) { + this.expirationSeconds = expirationSeconds; + return (A) this; + } + + public A withExtra(Map> extra) { + if (extra == null) { + this.extra = null; + } else { + this.extra = new LinkedHashMap(extra); + } + return (A) this; + } + + public A withGroups(List groups) { + if (groups != null) { + this.groups = new ArrayList(); + for (String item : groups) { + this.addToGroups(item); + } + } else { + this.groups = null; + } + return (A) this; + } + + public A withGroups(String... groups) { + if (this.groups != null) { + this.groups.clear(); + _visitables.remove("groups"); + } + if (groups != null) { + for (String item : groups) { + this.addToGroups(item); + } + } + return (A) this; + } + + public A withRequest(byte... request) { + if (this.request != null) { + this.request.clear(); + _visitables.remove("request"); + } + if (request != null) { + for (byte item : request) { + this.addToRequest(item); + } + } + return (A) this; + } + + public A withSignerName(String signerName) { + this.signerName = signerName; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + + public A withUsages(List usages) { + if (usages != null) { + this.usages = new ArrayList(); + for (String item : usages) { + this.addToUsages(item); + } + } else { + this.usages = null; + } + return (A) this; + } + + public A withUsages(String... usages) { + if (this.usages != null) { + this.usages.clear(); + _visitables.remove("usages"); + } + if (usages != null) { + for (String item : usages) { + this.addToUsages(item); + } + } + return (A) this; + } + + public A withUsername(String username) { + this.username = username; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java index e061a17b08..093932a6ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CertificateSigningRequestStatusBuilder extends V1CertificateSigningRequestStatusFluent implements VisitableBuilder{ + + V1CertificateSigningRequestStatusFluent fluent; + public V1CertificateSigningRequestStatusBuilder() { this(new V1CertificateSigningRequestStatus()); } @@ -11,17 +14,16 @@ public V1CertificateSigningRequestStatusBuilder(V1CertificateSigningRequestStatu this(fluent, new V1CertificateSigningRequestStatus()); } - public V1CertificateSigningRequestStatusBuilder(V1CertificateSigningRequestStatusFluent fluent,V1CertificateSigningRequestStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CertificateSigningRequestStatusBuilder(V1CertificateSigningRequestStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1CertificateSigningRequestStatusFluent fluent; + public V1CertificateSigningRequestStatusBuilder(V1CertificateSigningRequestStatusFluent fluent,V1CertificateSigningRequestStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CertificateSigningRequestStatus build() { V1CertificateSigningRequestStatus buildable = new V1CertificateSigningRequestStatus(); buildable.setCertificate(fluent.getCertificate()); @@ -29,5 +31,4 @@ public V1CertificateSigningRequestStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java index 1118398996..1d7e1ed3bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java @@ -1,82 +1,64 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Byte; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import java.lang.Byte; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1CertificateSigningRequestStatusFluent> extends BaseFluent{ + + private List certificate; + private ArrayList conditions; + public V1CertificateSigningRequestStatusFluent() { } public V1CertificateSigningRequestStatusFluent(V1CertificateSigningRequestStatus instance) { this.copyInstance(instance); } - private List certificate; - private ArrayList conditions; - - protected void copyInstance(V1CertificateSigningRequestStatus instance) { - instance = instance != null ? instance : new V1CertificateSigningRequestStatus(); - if (instance != null) { - this.withCertificate(instance.getCertificate()); - this.withConditions(instance.getConditions()); - } - } - - public A withCertificate(byte... certificate) { - if (this.certificate != null) { - this.certificate.clear(); - _visitables.remove("certificate"); + + public A addAllToCertificate(Collection items) { + if (this.certificate == null) { + this.certificate = new ArrayList(); } - if (certificate != null) { - for (byte item : certificate) { - this.addToCertificate(item); - } + for (Byte item : items) { + this.certificate.add(item); } return (A) this; } - public byte[] getCertificate() { - int size = certificate != null ? certificate.size() : 0; - byte[] result = new byte[size]; - if (size == 0) { - return result; + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); } - int index = 0; - for (byte item : certificate) { - result[index++] = item; + for (V1CertificateSigningRequestCondition item : items) { + V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); } - return result; + return (A) this; } - public A addToCertificate(int index,Byte item) { - if (this.certificate == null) { - this.certificate = new ArrayList(); - } - this.certificate.add(index, item); - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - public A setToCertificate(int index,Byte item) { - if (this.certificate == null) { - this.certificate = new ArrayList(); - } - this.certificate.set(index, item); - return (A) this; + public ConditionsNested addNewConditionLike(V1CertificateSigningRequestCondition item) { + return new ConditionsNested(-1, item); } public A addToCertificate(Byte... items) { @@ -89,56 +71,27 @@ public A addToCertificate(Byte... items) { return (A) this; } - public A addAllToCertificate(Collection items) { + public A addToCertificate(int index,Byte item) { if (this.certificate == null) { this.certificate = new ArrayList(); } - for (Byte item : items) { - this.certificate.add(item); - } - return (A) this; - } - - public A removeFromCertificate(Byte... items) { - if (this.certificate == null) { - return (A) this; - } - for (Byte item : items) { - this.certificate.remove(item); - } - return (A) this; - } - - public A removeAllFromCertificate(Collection items) { - if (this.certificate == null) { - return (A) this; - } - for (Byte item : items) { - this.certificate.remove(item); - } + this.certificate.add(index, item); return (A) this; } - public boolean hasCertificate() { - return this.certificate != null && !(this.certificate.isEmpty()); - } - - public A addToConditions(int index,V1CertificateSigningRequestCondition item) { + public A addToConditions(V1CertificateSigningRequestCondition... items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1CertificateSigningRequestCondition item : items) { + V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1CertificateSigningRequestCondition item) { + public A addToConditions(int index,V1CertificateSigningRequestCondition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } @@ -148,83 +101,19 @@ public A setToConditions(int index,V1CertificateSigningRequestCondition item) { conditions.add(builder); } else { _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; - } - - public A addToConditions(V1CertificateSigningRequestCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1CertificateSigningRequestCondition item : items) { - V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A addAllToConditions(Collection items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1CertificateSigningRequestCondition item : items) { - V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1CertificateSigningRequestCondition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1CertificateSigningRequestCondition item : items) { - V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1CertificateSigningRequestCondition item : items) { - V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1CertificateSigningRequestConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1CertificateSigningRequestCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1CertificateSigningRequestCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1CertificateSigningRequestCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -242,61 +131,16 @@ public V1CertificateSigningRequestCondition buildMatchingCondition(Predicate predicate) { - for (V1CertificateSigningRequestConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1CertificateSigningRequestCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(V1CertificateSigningRequestCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1CertificateSigningRequestCondition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1CertificateSigningRequestStatus instance) { + instance = instance != null ? instance : new V1CertificateSigningRequestStatus(); + if (instance != null) { + this.withCertificate(instance.getCertificate()); + this.withConditions(instance.getConditions()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1CertificateSigningRequestCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1CertificateSigningRequestCondition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -351,10 +195,127 @@ public boolean equals(Object o) { return true; } + public byte[] getCertificate() { + int size = certificate != null ? certificate.size() : 0; + byte[] result = new byte[size]; + if (size == 0) { + return result; + } + int index = 0; + for (byte item : certificate) { + result[index++] = item; + } + return result; + } + + public boolean hasCertificate() { + return this.certificate != null && !(this.certificate.isEmpty()); + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1CertificateSigningRequestConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(certificate, conditions); } + public A removeAllFromCertificate(Collection items) { + if (this.certificate == null) { + return (A) this; + } + for (Byte item : items) { + this.certificate.remove(item); + } + return (A) this; + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1CertificateSigningRequestCondition item : items) { + V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromCertificate(Byte... items) { + if (this.certificate == null) { + return (A) this; + } + for (Byte item : items) { + this.certificate.remove(item); + } + return (A) this; + } + + public A removeFromConditions(V1CertificateSigningRequestCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1CertificateSigningRequestCondition item : items) { + V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1CertificateSigningRequestConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1CertificateSigningRequestCondition item) { + return new ConditionsNested(index, item); + } + + public A setToCertificate(int index,Byte item) { + if (this.certificate == null) { + this.certificate = new ArrayList(); + } + this.certificate.set(index, item); + return (A) this; + } + + public A setToConditions(int index,V1CertificateSigningRequestCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +331,57 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withCertificate(byte... certificate) { + if (this.certificate != null) { + this.certificate.clear(); + _visitables.remove("certificate"); + } + if (certificate != null) { + for (byte item : certificate) { + this.addToCertificate(item); + } + } + return (A) this; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1CertificateSigningRequestCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1CertificateSigningRequestCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1CertificateSigningRequestCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } public class ConditionsNested extends V1CertificateSigningRequestConditionFluent> implements Nested{ + + V1CertificateSigningRequestConditionBuilder builder; + int index; + ConditionsNested(int index,V1CertificateSigningRequestCondition item) { this.index = index; this.builder = new V1CertificateSigningRequestConditionBuilder(this, item); } - V1CertificateSigningRequestConditionBuilder builder; - int index; - + public N and() { return (N) V1CertificateSigningRequestStatusFluent.this.setToConditions(index, builder.build()); } @@ -386,7 +390,5 @@ public N endCondition() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java index 16685ab82b..ed5a6d26ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CinderPersistentVolumeSourceBuilder extends V1CinderPersistentVolumeSourceFluent implements VisitableBuilder{ + + V1CinderPersistentVolumeSourceFluent fluent; + public V1CinderPersistentVolumeSourceBuilder() { this(new V1CinderPersistentVolumeSource()); } @@ -11,17 +14,16 @@ public V1CinderPersistentVolumeSourceBuilder(V1CinderPersistentVolumeSourceFluen this(fluent, new V1CinderPersistentVolumeSource()); } - public V1CinderPersistentVolumeSourceBuilder(V1CinderPersistentVolumeSourceFluent fluent,V1CinderPersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CinderPersistentVolumeSourceBuilder(V1CinderPersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1CinderPersistentVolumeSourceFluent fluent; + public V1CinderPersistentVolumeSourceBuilder(V1CinderPersistentVolumeSourceFluent fluent,V1CinderPersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CinderPersistentVolumeSource build() { V1CinderPersistentVolumeSource buildable = new V1CinderPersistentVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -31,5 +33,4 @@ public V1CinderPersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java index d79b8dd1b9..aa89db5c43 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java @@ -1,30 +1,36 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; -import java.lang.Boolean; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1CinderPersistentVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private Boolean readOnly; + private V1SecretReferenceBuilder secretRef; + private String volumeID; + public V1CinderPersistentVolumeSourceFluent() { } public V1CinderPersistentVolumeSourceFluent(V1CinderPersistentVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private Boolean readOnly; - private V1SecretReferenceBuilder secretRef; - private String volumeID; + + public V1SecretReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; + } protected void copyInstance(V1CinderPersistentVolumeSource instance) { instance = instance != null ? instance : new V1CinderPersistentVolumeSource(); @@ -36,64 +42,6 @@ protected void copyInstance(V1CinderPersistentVolumeSource instance) { } } - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; - } - - public boolean hasFsType() { - return this.fsType != null; - } - - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - - public V1SecretReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; - } - - public A withSecretRef(V1SecretReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1SecretReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; - } - - public boolean hasSecretRef() { - return this.secretRef != null; - } - - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); - } - - public SecretRefNested withNewSecretRefLike(V1SecretReference item) { - return new SecretRefNested(item); - } - - public SecretRefNested editSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); - } - public SecretRefNested editOrNewSecretRef() { return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } @@ -102,17 +50,8 @@ public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public String getVolumeID() { - return this.volumeID; - } - - public A withVolumeID(String volumeID) { - this.volumeID = volumeID; - return (A) this; - } - - public boolean hasVolumeID() { - return this.volumeID != null; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public boolean equals(Object o) { @@ -141,6 +80,34 @@ public boolean equals(Object o) { return true; } + public String getFsType() { + return this.fsType; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public String getVolumeID() { + return this.volumeID; + } + + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + + public boolean hasSecretRef() { + return this.secretRef != null; + } + + public boolean hasVolumeID() { + return this.volumeID != null; + } + public int hashCode() { return Objects.hash(fsType, readOnly, secretRef, volumeID); } @@ -171,15 +138,52 @@ public String toString() { return sb.toString(); } + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); + } + + public SecretRefNested withNewSecretRefLike(V1SecretReference item) { + return new SecretRefNested(item); + } + public A withReadOnly() { return withReadOnly(true); } + + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretRef(V1SecretReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1SecretReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; + } + + public A withVolumeID(String volumeID) { + this.volumeID = volumeID; + return (A) this; + } public class SecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + SecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1CinderPersistentVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -188,7 +192,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java index 30d8ab339b..19deb1f22e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CinderVolumeSourceBuilder extends V1CinderVolumeSourceFluent implements VisitableBuilder{ + + V1CinderVolumeSourceFluent fluent; + public V1CinderVolumeSourceBuilder() { this(new V1CinderVolumeSource()); } @@ -11,17 +14,16 @@ public V1CinderVolumeSourceBuilder(V1CinderVolumeSourceFluent fluent) { this(fluent, new V1CinderVolumeSource()); } - public V1CinderVolumeSourceBuilder(V1CinderVolumeSourceFluent fluent,V1CinderVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CinderVolumeSourceBuilder(V1CinderVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1CinderVolumeSourceFluent fluent; + public V1CinderVolumeSourceBuilder(V1CinderVolumeSourceFluent fluent,V1CinderVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CinderVolumeSource build() { V1CinderVolumeSource buildable = new V1CinderVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -31,5 +33,4 @@ public V1CinderVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java index 8bff787f8c..3dd213efce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java @@ -1,30 +1,36 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; -import java.lang.Boolean; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1CinderVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private Boolean readOnly; + private V1LocalObjectReferenceBuilder secretRef; + private String volumeID; + public V1CinderVolumeSourceFluent() { } public V1CinderVolumeSourceFluent(V1CinderVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private Boolean readOnly; - private V1LocalObjectReferenceBuilder secretRef; - private String volumeID; + + public V1LocalObjectReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; + } protected void copyInstance(V1CinderVolumeSource instance) { instance = instance != null ? instance : new V1CinderVolumeSource(); @@ -36,64 +42,6 @@ protected void copyInstance(V1CinderVolumeSource instance) { } } - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; - } - - public boolean hasFsType() { - return this.fsType != null; - } - - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; - } - - public A withSecretRef(V1LocalObjectReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; - } - - public boolean hasSecretRef() { - return this.secretRef != null; - } - - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); - } - - public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); - } - - public SecretRefNested editSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); - } - public SecretRefNested editOrNewSecretRef() { return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } @@ -102,17 +50,8 @@ public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public String getVolumeID() { - return this.volumeID; - } - - public A withVolumeID(String volumeID) { - this.volumeID = volumeID; - return (A) this; - } - - public boolean hasVolumeID() { - return this.volumeID != null; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public boolean equals(Object o) { @@ -141,6 +80,34 @@ public boolean equals(Object o) { return true; } + public String getFsType() { + return this.fsType; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public String getVolumeID() { + return this.volumeID; + } + + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + + public boolean hasSecretRef() { + return this.secretRef != null; + } + + public boolean hasVolumeID() { + return this.volumeID != null; + } + public int hashCode() { return Objects.hash(fsType, readOnly, secretRef, volumeID); } @@ -171,15 +138,52 @@ public String toString() { return sb.toString(); } + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); + } + + public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { + return new SecretRefNested(item); + } + public A withReadOnly() { return withReadOnly(true); } + + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretRef(V1LocalObjectReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; + } + + public A withVolumeID(String volumeID) { + this.volumeID = volumeID; + return (A) this; + } public class SecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ + + V1LocalObjectReferenceBuilder builder; + SecretRefNested(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - + public N and() { return (N) V1CinderVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -188,7 +192,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java index b825446a34..a80298a348 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ClientIPConfigBuilder extends V1ClientIPConfigFluent implements VisitableBuilder{ + + V1ClientIPConfigFluent fluent; + public V1ClientIPConfigBuilder() { this(new V1ClientIPConfig()); } @@ -11,22 +14,20 @@ public V1ClientIPConfigBuilder(V1ClientIPConfigFluent fluent) { this(fluent, new V1ClientIPConfig()); } - public V1ClientIPConfigBuilder(V1ClientIPConfigFluent fluent,V1ClientIPConfig instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ClientIPConfigBuilder(V1ClientIPConfig instance) { this.fluent = this; this.copyInstance(instance); } - V1ClientIPConfigFluent fluent; + public V1ClientIPConfigBuilder(V1ClientIPConfigFluent fluent,V1ClientIPConfig instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ClientIPConfig build() { V1ClientIPConfig buildable = new V1ClientIPConfig(); buildable.setTimeoutSeconds(fluent.getTimeoutSeconds()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java index 945245f2b6..8a5f4beb96 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1ClientIPConfigFluent> extends BaseFluent{ + + private Integer timeoutSeconds; + public V1ClientIPConfigFluent() { } public V1ClientIPConfigFluent(V1ClientIPConfig instance) { this.copyInstance(instance); } - private Integer timeoutSeconds; - + protected void copyInstance(V1ClientIPConfig instance) { instance = instance != null ? instance : new V1ClientIPConfig(); if (instance != null) { @@ -28,19 +30,6 @@ protected void copyInstance(V1ClientIPConfig instance) { } } - public Integer getTimeoutSeconds() { - return this.timeoutSeconds; - } - - public A withTimeoutSeconds(Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return (A) this; - } - - public boolean hasTimeoutSeconds() { - return this.timeoutSeconds != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -58,6 +47,14 @@ public boolean equals(Object o) { return true; } + public Integer getTimeoutSeconds() { + return this.timeoutSeconds; + } + + public boolean hasTimeoutSeconds() { + return this.timeoutSeconds != null; + } + public int hashCode() { return Objects.hash(timeoutSeconds); } @@ -73,5 +70,9 @@ public String toString() { return sb.toString(); } - + public A withTimeoutSeconds(Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java index 4dca02b4eb..a64c98e5cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ClusterRoleBindingBuilder extends V1ClusterRoleBindingFluent implements VisitableBuilder{ + + V1ClusterRoleBindingFluent fluent; + public V1ClusterRoleBindingBuilder() { this(new V1ClusterRoleBinding()); } @@ -11,17 +14,16 @@ public V1ClusterRoleBindingBuilder(V1ClusterRoleBindingFluent fluent) { this(fluent, new V1ClusterRoleBinding()); } - public V1ClusterRoleBindingBuilder(V1ClusterRoleBindingFluent fluent,V1ClusterRoleBinding instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ClusterRoleBindingBuilder(V1ClusterRoleBinding instance) { this.fluent = this; this.copyInstance(instance); } - V1ClusterRoleBindingFluent fluent; + public V1ClusterRoleBindingBuilder(V1ClusterRoleBindingFluent fluent,V1ClusterRoleBinding instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ClusterRoleBinding build() { V1ClusterRoleBinding buildable = new V1ClusterRoleBinding(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1ClusterRoleBinding build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java index 3f3b3b30f5..342477ac2c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java @@ -1,182 +1,57 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ClusterRoleBindingFluent> extends BaseFluent{ - public V1ClusterRoleBindingFluent() { - } - - public V1ClusterRoleBindingFluent(V1ClusterRoleBinding instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1RoleRefBuilder roleRef; private ArrayList subjects; - - protected void copyInstance(V1ClusterRoleBinding instance) { - instance = instance != null ? instance : new V1ClusterRoleBinding(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withRoleRef(instance.getRoleRef()); - this.withSubjects(instance.getSubjects()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); - } - - public V1RoleRef buildRoleRef() { - return this.roleRef != null ? this.roleRef.build() : null; - } - - public A withRoleRef(V1RoleRef roleRef) { - this._visitables.remove("roleRef"); - if (roleRef != null) { - this.roleRef = new V1RoleRefBuilder(roleRef); - this._visitables.get("roleRef").add(this.roleRef); - } else { - this.roleRef = null; - this._visitables.get("roleRef").remove(this.roleRef); - } - return (A) this; - } - - public boolean hasRoleRef() { - return this.roleRef != null; - } - - public RoleRefNested withNewRoleRef() { - return new RoleRefNested(null); - } - - public RoleRefNested withNewRoleRefLike(V1RoleRef item) { - return new RoleRefNested(item); - } - - public RoleRefNested editRoleRef() { - return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(null)); - } - - public RoleRefNested editOrNewRoleRef() { - return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(new V1RoleRefBuilder().build())); + + public V1ClusterRoleBindingFluent() { } - public RoleRefNested editOrNewRoleRefLike(V1RoleRef item) { - return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(item)); + public V1ClusterRoleBindingFluent(V1ClusterRoleBinding instance) { + this.copyInstance(instance); } - - public A addToSubjects(int index,RbacV1Subject item) { + + public A addAllToSubjects(Collection items) { if (this.subjects == null) { this.subjects = new ArrayList(); } - RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { - _visitables.get("subjects").add(builder); - subjects.add(builder); - } else { + for (RbacV1Subject item : items) { + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); _visitables.get("subjects").add(builder); - subjects.add(index, builder); + this.subjects.add(builder); } return (A) this; } - public A setToSubjects(int index,RbacV1Subject item) { - if (this.subjects == null) { - this.subjects = new ArrayList(); - } - RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { - _visitables.get("subjects").add(builder); - subjects.add(builder); - } else { - _visitables.get("subjects").add(builder); - subjects.set(index, builder); - } - return (A) this; + public SubjectsNested addNewSubject() { + return new SubjectsNested(-1, null); + } + + public SubjectsNested addNewSubjectLike(RbacV1Subject item) { + return new SubjectsNested(-1, item); } public A addToSubjects(RbacV1Subject... items) { @@ -191,66 +66,21 @@ public A addToSubjects(RbacV1Subject... items) { return (A) this; } - public A addAllToSubjects(Collection items) { + public A addToSubjects(int index,RbacV1Subject item) { if (this.subjects == null) { this.subjects = new ArrayList(); } - for (RbacV1Subject item : items) { - RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); - this.subjects.add(builder); - } - return (A) this; - } - - public A removeFromSubjects(RbacV1Subject... items) { - if (this.subjects == null) { - return (A) this; - } - for (RbacV1Subject item : items) { - RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - _visitables.get("subjects").remove(builder); - this.subjects.remove(builder); - } - return (A) this; - } - - public A removeAllFromSubjects(Collection items) { - if (this.subjects == null) { - return (A) this; - } - for (RbacV1Subject item : items) { - RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - _visitables.get("subjects").remove(builder); - this.subjects.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromSubjects(Predicate predicate) { - if (subjects == null) { - return (A) this; - } - Iterator each = subjects.iterator(); - List visitables = _visitables.get("subjects"); - while (each.hasNext()) { - RbacV1SubjectBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + subjects.add(builder); + } else { + _visitables.get("subjects").add(builder); + subjects.add(index, builder); } return (A) this; } - public List buildSubjects() { - return this.subjects != null ? build(subjects) : null; - } - - public RbacV1Subject buildSubject(int index) { - return this.subjects.get(index).build(); - } - public RbacV1Subject buildFirstSubject() { return this.subjects.get(0).build(); } @@ -265,67 +95,34 @@ public RbacV1Subject buildMatchingSubject(Predicate predic return item.build(); } } - return null; - } - - public boolean hasMatchingSubject(Predicate predicate) { - for (RbacV1SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withSubjects(List subjects) { - if (this.subjects != null) { - this._visitables.get("subjects").clear(); - } - if (subjects != null) { - this.subjects = new ArrayList(); - for (RbacV1Subject item : subjects) { - this.addToSubjects(item); - } - } else { - this.subjects = null; - } - return (A) this; - } - - public A withSubjects(RbacV1Subject... subjects) { - if (this.subjects != null) { - this.subjects.clear(); - _visitables.remove("subjects"); - } - if (subjects != null) { - for (RbacV1Subject item : subjects) { - this.addToSubjects(item); - } - } - return (A) this; + return null; } - public boolean hasSubjects() { - return this.subjects != null && !(this.subjects.isEmpty()); + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public SubjectsNested addNewSubject() { - return new SubjectsNested(-1, null); + public V1RoleRef buildRoleRef() { + return this.roleRef != null ? this.roleRef.build() : null; } - public SubjectsNested addNewSubjectLike(RbacV1Subject item) { - return new SubjectsNested(-1, item); + public RbacV1Subject buildSubject(int index) { + return this.subjects.get(index).build(); } - public SubjectsNested setNewSubjectLike(int index,RbacV1Subject item) { - return new SubjectsNested(index, item); + public List buildSubjects() { + return this.subjects != null ? build(subjects) : null; } - public SubjectsNested editSubject(int index) { - if (index <= subjects.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "subjects")); + protected void copyInstance(V1ClusterRoleBinding instance) { + instance = instance != null ? instance : new V1ClusterRoleBinding(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withRoleRef(instance.getRoleRef()); + this.withSubjects(instance.getSubjects()); } - return this.setNewSubjectLike(index, this.buildSubject(index)); } public SubjectsNested editFirstSubject() { @@ -357,6 +154,37 @@ public SubjectsNested editMatchingSubject(Predicate pre return this.setNewSubjectLike(index, this.buildSubject(index)); } + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public RoleRefNested editOrNewRoleRef() { + return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(new V1RoleRefBuilder().build())); + } + + public RoleRefNested editOrNewRoleRefLike(V1RoleRef item) { + return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(item)); + } + + public RoleRefNested editRoleRef() { + return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(null)); + } + + public SubjectsNested editSubject(int index) { + if (subjects.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -386,10 +214,106 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingSubject(Predicate predicate) { + for (RbacV1SubjectBuilder item : subjects) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasRoleRef() { + return this.roleRef != null; + } + + public boolean hasSubjects() { + return this.subjects != null && !(this.subjects.isEmpty()); + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, roleRef, subjects); } + public A removeAllFromSubjects(Collection items) { + if (this.subjects == null) { + return (A) this; + } + for (RbacV1Subject item : items) { + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + _visitables.get("subjects").remove(builder); + this.subjects.remove(builder); + } + return (A) this; + } + + public A removeFromSubjects(RbacV1Subject... items) { + if (this.subjects == null) { + return (A) this; + } + for (RbacV1Subject item : items) { + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + _visitables.get("subjects").remove(builder); + this.subjects.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromSubjects(Predicate predicate) { + if (subjects == null) { + return (A) this; + } + Iterator each = subjects.iterator(); + List visitables = _visitables.get("subjects"); + while (each.hasNext()) { + RbacV1SubjectBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public SubjectsNested setNewSubjectLike(int index,RbacV1Subject item) { + return new SubjectsNested(index, item); + } + + public A setToSubjects(int index,RbacV1Subject item) { + if (this.subjects == null) { + this.subjects = new ArrayList(); + } + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + if (index < 0 || index >= subjects.size()) { + _visitables.get("subjects").add(builder); + subjects.add(builder); + } else { + _visitables.get("subjects").add(builder); + subjects.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -420,12 +344,92 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public RoleRefNested withNewRoleRef() { + return new RoleRefNested(null); + } + + public RoleRefNested withNewRoleRefLike(V1RoleRef item) { + return new RoleRefNested(item); + } + + public A withRoleRef(V1RoleRef roleRef) { + this._visitables.remove("roleRef"); + if (roleRef != null) { + this.roleRef = new V1RoleRefBuilder(roleRef); + this._visitables.get("roleRef").add(this.roleRef); + } else { + this.roleRef = null; + this._visitables.get("roleRef").remove(this.roleRef); + } + return (A) this; + } + + public A withSubjects(List subjects) { + if (this.subjects != null) { + this._visitables.get("subjects").clear(); + } + if (subjects != null) { + this.subjects = new ArrayList(); + for (RbacV1Subject item : subjects) { + this.addToSubjects(item); + } + } else { + this.subjects = null; + } + return (A) this; + } + + public A withSubjects(RbacV1Subject... subjects) { + if (this.subjects != null) { + this.subjects.clear(); + _visitables.remove("subjects"); + } + if (subjects != null) { + for (RbacV1Subject item : subjects) { + this.addToSubjects(item); + } + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ClusterRoleBindingFluent.this.withMetadata(builder.build()); } @@ -434,14 +438,15 @@ public N endMetadata() { return and(); } - } public class RoleRefNested extends V1RoleRefFluent> implements Nested{ + + V1RoleRefBuilder builder; + RoleRefNested(V1RoleRef item) { this.builder = new V1RoleRefBuilder(this, item); } - V1RoleRefBuilder builder; - + public N and() { return (N) V1ClusterRoleBindingFluent.this.withRoleRef(builder.build()); } @@ -450,16 +455,17 @@ public N endRoleRef() { return and(); } - } public class SubjectsNested extends RbacV1SubjectFluent> implements Nested{ + + RbacV1SubjectBuilder builder; + int index; + SubjectsNested(int index,RbacV1Subject item) { this.index = index; this.builder = new RbacV1SubjectBuilder(this, item); } - RbacV1SubjectBuilder builder; - int index; - + public N and() { return (N) V1ClusterRoleBindingFluent.this.setToSubjects(index, builder.build()); } @@ -468,7 +474,5 @@ public N endSubject() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java index 560331ebb5..c85b099956 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ClusterRoleBindingListBuilder extends V1ClusterRoleBindingListFluent implements VisitableBuilder{ + + V1ClusterRoleBindingListFluent fluent; + public V1ClusterRoleBindingListBuilder() { this(new V1ClusterRoleBindingList()); } @@ -11,17 +14,16 @@ public V1ClusterRoleBindingListBuilder(V1ClusterRoleBindingListFluent fluent) this(fluent, new V1ClusterRoleBindingList()); } - public V1ClusterRoleBindingListBuilder(V1ClusterRoleBindingListFluent fluent,V1ClusterRoleBindingList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ClusterRoleBindingListBuilder(V1ClusterRoleBindingList instance) { this.fluent = this; this.copyInstance(instance); } - V1ClusterRoleBindingListFluent fluent; + public V1ClusterRoleBindingListBuilder(V1ClusterRoleBindingListFluent fluent,V1ClusterRoleBindingList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ClusterRoleBindingList build() { V1ClusterRoleBindingList buildable = new V1ClusterRoleBindingList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ClusterRoleBindingList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java index 90bad118ae..1265baed39 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ClusterRoleBindingListFluent> extends BaseFluent{ - public V1ClusterRoleBindingListFluent() { - } - - public V1ClusterRoleBindingListFluent(V1ClusterRoleBindingList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ClusterRoleBindingList instance) { - instance = instance != null ? instance : new V1ClusterRoleBindingList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1ClusterRoleBindingListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1ClusterRoleBindingListFluent(V1ClusterRoleBindingList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1ClusterRoleBinding item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1ClusterRoleBinding item : items) { + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1ClusterRoleBinding item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ClusterRoleBinding item) { + return new ItemsNested(-1, item); } public A addToItems(V1ClusterRoleBinding... items) { @@ -96,68 +65,31 @@ public A addToItems(V1ClusterRoleBinding... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1ClusterRoleBinding item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1ClusterRoleBinding item : items) { - V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1ClusterRoleBinding... items) { - if (this.items == null) { - return (A) this; - } - for (V1ClusterRoleBinding item : items) { - V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1ClusterRoleBinding item : items) { - V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1ClusterRoleBindingBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1ClusterRoleBinding buildFirstItem() { + return this.items.get(0).build(); } public V1ClusterRoleBinding buildItem(int index) { return this.items.get(index).build(); } - public V1ClusterRoleBinding buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1ClusterRoleBinding buildLastItem() { @@ -173,73 +105,34 @@ public V1ClusterRoleBinding buildMatchingItem(Predicate predicate) { - for (V1ClusterRoleBindingBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ClusterRoleBinding item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ClusterRoleBindingList instance) { + instance = instance != null ? instance : new V1ClusterRoleBindingList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1ClusterRoleBinding... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1ClusterRoleBinding item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ClusterRoleBinding item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ClusterRoleBinding item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate pr return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ClusterRoleBindingBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ClusterRoleBinding item : items) { + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ClusterRoleBinding... items) { + if (this.items == null) { + return (A) this; + } + for (V1ClusterRoleBinding item : items) { + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ClusterRoleBindingBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ClusterRoleBinding item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1ClusterRoleBinding item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ClusterRoleBinding item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ClusterRoleBinding... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ClusterRoleBinding item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1ClusterRoleBindingFluent> implements Nested{ + + V1ClusterRoleBindingBuilder builder; + int index; + ItemsNested(int index,V1ClusterRoleBinding item) { this.index = index; this.builder = new V1ClusterRoleBindingBuilder(this, item); } - V1ClusterRoleBindingBuilder builder; - int index; - + public N and() { return (N) V1ClusterRoleBindingListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ClusterRoleBindingListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java index 735902cc02..bb2dc084d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ClusterRoleBuilder extends V1ClusterRoleFluent implements VisitableBuilder{ + + V1ClusterRoleFluent fluent; + public V1ClusterRoleBuilder() { this(new V1ClusterRole()); } @@ -11,17 +14,16 @@ public V1ClusterRoleBuilder(V1ClusterRoleFluent fluent) { this(fluent, new V1ClusterRole()); } - public V1ClusterRoleBuilder(V1ClusterRoleFluent fluent,V1ClusterRole instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ClusterRoleBuilder(V1ClusterRole instance) { this.fluent = this; this.copyInstance(instance); } - V1ClusterRoleFluent fluent; + public V1ClusterRoleBuilder(V1ClusterRoleFluent fluent,V1ClusterRole instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ClusterRole build() { V1ClusterRole buildable = new V1ClusterRole(); buildable.setAggregationRule(fluent.buildAggregationRule()); @@ -32,5 +34,4 @@ public V1ClusterRole build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java index 33bdbc12c1..8f8f55384f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java @@ -1,182 +1,57 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ClusterRoleFluent> extends BaseFluent{ - public V1ClusterRoleFluent() { - } - - public V1ClusterRoleFluent(V1ClusterRole instance) { - this.copyInstance(instance); - } + private V1AggregationRuleBuilder aggregationRule; private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private ArrayList rules; - - protected void copyInstance(V1ClusterRole instance) { - instance = instance != null ? instance : new V1ClusterRole(); - if (instance != null) { - this.withAggregationRule(instance.getAggregationRule()); - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withRules(instance.getRules()); - } - } - - public V1AggregationRule buildAggregationRule() { - return this.aggregationRule != null ? this.aggregationRule.build() : null; - } - - public A withAggregationRule(V1AggregationRule aggregationRule) { - this._visitables.remove("aggregationRule"); - if (aggregationRule != null) { - this.aggregationRule = new V1AggregationRuleBuilder(aggregationRule); - this._visitables.get("aggregationRule").add(this.aggregationRule); - } else { - this.aggregationRule = null; - this._visitables.get("aggregationRule").remove(this.aggregationRule); - } - return (A) this; - } - - public boolean hasAggregationRule() { - return this.aggregationRule != null; - } - - public AggregationRuleNested withNewAggregationRule() { - return new AggregationRuleNested(null); - } - - public AggregationRuleNested withNewAggregationRuleLike(V1AggregationRule item) { - return new AggregationRuleNested(item); - } - - public AggregationRuleNested editAggregationRule() { - return this.withNewAggregationRuleLike(Optional.ofNullable(this.buildAggregationRule()).orElse(null)); - } - - public AggregationRuleNested editOrNewAggregationRule() { - return this.withNewAggregationRuleLike(Optional.ofNullable(this.buildAggregationRule()).orElse(new V1AggregationRuleBuilder().build())); - } - - public AggregationRuleNested editOrNewAggregationRuleLike(V1AggregationRule item) { - return this.withNewAggregationRuleLike(Optional.ofNullable(this.buildAggregationRule()).orElse(item)); - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + + public V1ClusterRoleFluent() { } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + public V1ClusterRoleFluent(V1ClusterRole instance) { + this.copyInstance(instance); } - - public A addToRules(int index,V1PolicyRule item) { + + public A addAllToRules(Collection items) { if (this.rules == null) { this.rules = new ArrayList(); } - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); - } else { + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); _visitables.get("rules").add(builder); - rules.add(index, builder); + this.rules.add(builder); } return (A) this; } - public A setToRules(int index,V1PolicyRule item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); - } else { - _visitables.get("rules").add(builder); - rules.set(index, builder); - } - return (A) this; + public RulesNested addNewRule() { + return new RulesNested(-1, null); + } + + public RulesNested addNewRuleLike(V1PolicyRule item) { + return new RulesNested(-1, item); } public A addToRules(V1PolicyRule... items) { @@ -191,64 +66,23 @@ public A addToRules(V1PolicyRule... items) { return (A) this; } - public A addAllToRules(Collection items) { + public A addToRules(int index,V1PolicyRule item) { if (this.rules == null) { this.rules = new ArrayList(); } - for (V1PolicyRule item : items) { - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; - } - - public A removeFromRules(V1PolicyRule... items) { - if (this.rules == null) { - return (A) this; - } - for (V1PolicyRule item : items) { - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - _visitables.get("rules").remove(builder); - this.rules.remove(builder); - } - return (A) this; - } - - public A removeAllFromRules(Collection items) { - if (this.rules == null) { - return (A) this; - } - for (V1PolicyRule item : items) { - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - _visitables.get("rules").remove(builder); - this.rules.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromRules(Predicate predicate) { - if (rules == null) { - return (A) this; - } - Iterator each = rules.iterator(); - List visitables = _visitables.get("rules"); - while (each.hasNext()) { - V1PolicyRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); } return (A) this; } - public List buildRules() { - return this.rules != null ? build(rules) : null; - } - - public V1PolicyRule buildRule(int index) { - return this.rules.get(index).build(); + public V1AggregationRule buildAggregationRule() { + return this.aggregationRule != null ? this.aggregationRule.build() : null; } public V1PolicyRule buildFirstRule() { @@ -265,67 +99,34 @@ public V1PolicyRule buildMatchingRule(Predicate predicate) return item.build(); } } - return null; - } - - public boolean hasMatchingRule(Predicate predicate) { - for (V1PolicyRuleBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRules(List rules) { - if (this.rules != null) { - this._visitables.get("rules").clear(); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1PolicyRule item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; - } - return (A) this; - } - - public A withRules(V1PolicyRule... rules) { - if (this.rules != null) { - this.rules.clear(); - _visitables.remove("rules"); - } - if (rules != null) { - for (V1PolicyRule item : rules) { - this.addToRules(item); - } - } - return (A) this; + return null; } - public boolean hasRules() { - return this.rules != null && !(this.rules.isEmpty()); + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public RulesNested addNewRule() { - return new RulesNested(-1, null); + public V1PolicyRule buildRule(int index) { + return this.rules.get(index).build(); } - public RulesNested addNewRuleLike(V1PolicyRule item) { - return new RulesNested(-1, item); + public List buildRules() { + return this.rules != null ? build(rules) : null; } - public RulesNested setNewRuleLike(int index,V1PolicyRule item) { - return new RulesNested(index, item); + protected void copyInstance(V1ClusterRole instance) { + instance = instance != null ? instance : new V1ClusterRole(); + if (instance != null) { + this.withAggregationRule(instance.getAggregationRule()); + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withRules(instance.getRules()); + } } - public RulesNested editRule(int index) { - if (index <= rules.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); - } - return this.setNewRuleLike(index, this.buildRule(index)); + public AggregationRuleNested editAggregationRule() { + return this.withNewAggregationRuleLike(Optional.ofNullable(this.buildAggregationRule()).orElse(null)); } public RulesNested editFirstRule() { @@ -357,6 +158,33 @@ public RulesNested editMatchingRule(Predicate predicate) return this.setNewRuleLike(index, this.buildRule(index)); } + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public AggregationRuleNested editOrNewAggregationRule() { + return this.withNewAggregationRuleLike(Optional.ofNullable(this.buildAggregationRule()).orElse(new V1AggregationRuleBuilder().build())); + } + + public AggregationRuleNested editOrNewAggregationRuleLike(V1AggregationRule item) { + return this.withNewAggregationRuleLike(Optional.ofNullable(this.buildAggregationRule()).orElse(item)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public RulesNested editRule(int index) { + if (rules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -386,10 +214,106 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasAggregationRule() { + return this.aggregationRule != null; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingRule(Predicate predicate) { + for (V1PolicyRuleBuilder item : rules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasRules() { + return this.rules != null && !(this.rules.isEmpty()); + } + public int hashCode() { return Objects.hash(aggregationRule, apiVersion, kind, metadata, rules); } + public A removeAllFromRules(Collection items) { + if (this.rules == null) { + return (A) this; + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; + } + + public A removeFromRules(V1PolicyRule... items) { + if (this.rules == null) { + return (A) this; + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromRules(Predicate predicate) { + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); + while (each.hasNext()) { + V1PolicyRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public RulesNested setNewRuleLike(int index,V1PolicyRule item) { + return new RulesNested(index, item); + } + + public A setToRules(int index,V1PolicyRule item) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -420,12 +344,92 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAggregationRule(V1AggregationRule aggregationRule) { + this._visitables.remove("aggregationRule"); + if (aggregationRule != null) { + this.aggregationRule = new V1AggregationRuleBuilder(aggregationRule); + this._visitables.get("aggregationRule").add(this.aggregationRule); + } else { + this.aggregationRule = null; + this._visitables.get("aggregationRule").remove(this.aggregationRule); + } + return (A) this; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public AggregationRuleNested withNewAggregationRule() { + return new AggregationRuleNested(null); + } + + public AggregationRuleNested withNewAggregationRuleLike(V1AggregationRule item) { + return new AggregationRuleNested(item); + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public A withRules(List rules) { + if (this.rules != null) { + this._visitables.get("rules").clear(); + } + if (rules != null) { + this.rules = new ArrayList(); + for (V1PolicyRule item : rules) { + this.addToRules(item); + } + } else { + this.rules = null; + } + return (A) this; + } + + public A withRules(V1PolicyRule... rules) { + if (this.rules != null) { + this.rules.clear(); + _visitables.remove("rules"); + } + if (rules != null) { + for (V1PolicyRule item : rules) { + this.addToRules(item); + } + } + return (A) this; + } public class AggregationRuleNested extends V1AggregationRuleFluent> implements Nested{ + + V1AggregationRuleBuilder builder; + AggregationRuleNested(V1AggregationRule item) { this.builder = new V1AggregationRuleBuilder(this, item); } - V1AggregationRuleBuilder builder; - + public N and() { return (N) V1ClusterRoleFluent.this.withAggregationRule(builder.build()); } @@ -434,14 +438,15 @@ public N endAggregationRule() { return and(); } - } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ClusterRoleFluent.this.withMetadata(builder.build()); } @@ -450,16 +455,17 @@ public N endMetadata() { return and(); } - } public class RulesNested extends V1PolicyRuleFluent> implements Nested{ + + V1PolicyRuleBuilder builder; + int index; + RulesNested(int index,V1PolicyRule item) { this.index = index; this.builder = new V1PolicyRuleBuilder(this, item); } - V1PolicyRuleBuilder builder; - int index; - + public N and() { return (N) V1ClusterRoleFluent.this.setToRules(index, builder.build()); } @@ -468,7 +474,5 @@ public N endRule() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java index 8cbadf2e39..c7d9d8853f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ClusterRoleListBuilder extends V1ClusterRoleListFluent implements VisitableBuilder{ + + V1ClusterRoleListFluent fluent; + public V1ClusterRoleListBuilder() { this(new V1ClusterRoleList()); } @@ -11,17 +14,16 @@ public V1ClusterRoleListBuilder(V1ClusterRoleListFluent fluent) { this(fluent, new V1ClusterRoleList()); } - public V1ClusterRoleListBuilder(V1ClusterRoleListFluent fluent,V1ClusterRoleList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ClusterRoleListBuilder(V1ClusterRoleList instance) { this.fluent = this; this.copyInstance(instance); } - V1ClusterRoleListFluent fluent; + public V1ClusterRoleListBuilder(V1ClusterRoleListFluent fluent,V1ClusterRoleList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ClusterRoleList build() { V1ClusterRoleList buildable = new V1ClusterRoleList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ClusterRoleList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java index 22a450b697..93ce666db9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ClusterRoleListFluent> extends BaseFluent{ - public V1ClusterRoleListFluent() { - } - - public V1ClusterRoleListFluent(V1ClusterRoleList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ClusterRoleList instance) { - instance = instance != null ? instance : new V1ClusterRoleList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1ClusterRoleListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1ClusterRoleListFluent(V1ClusterRoleList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1ClusterRole item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1ClusterRole item : items) { + V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1ClusterRole item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ClusterRole item) { + return new ItemsNested(-1, item); } public A addToItems(V1ClusterRole... items) { @@ -96,68 +65,31 @@ public A addToItems(V1ClusterRole... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1ClusterRole item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1ClusterRole item : items) { - V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); + V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1ClusterRole... items) { - if (this.items == null) { - return (A) this; - } - for (V1ClusterRole item : items) { - V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1ClusterRole item : items) { - V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1ClusterRoleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1ClusterRole buildFirstItem() { + return this.items.get(0).build(); } public V1ClusterRole buildItem(int index) { return this.items.get(index).build(); } - public V1ClusterRole buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1ClusterRole buildLastItem() { @@ -173,73 +105,34 @@ public V1ClusterRole buildMatchingItem(Predicate predicate return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1ClusterRoleBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ClusterRole item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ClusterRoleList instance) { + instance = instance != null ? instance : new V1ClusterRoleList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1ClusterRole... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1ClusterRole item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ClusterRole item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ClusterRole item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ClusterRoleBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ClusterRole item : items) { + V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ClusterRole... items) { + if (this.items == null) { + return (A) this; + } + for (V1ClusterRole item : items) { + V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ClusterRoleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ClusterRole item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1ClusterRole item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ClusterRole item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ClusterRole... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ClusterRole item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1ClusterRoleFluent> implements Nested{ + + V1ClusterRoleBuilder builder; + int index; + ItemsNested(int index,V1ClusterRole item) { this.index = index; this.builder = new V1ClusterRoleBuilder(this, item); } - V1ClusterRoleBuilder builder; - int index; - + public N and() { return (N) V1ClusterRoleListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ClusterRoleListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionBuilder.java index ace91ef70c..0ba27a6a1a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ClusterTrustBundleProjectionBuilder extends V1ClusterTrustBundleProjectionFluent implements VisitableBuilder{ + + V1ClusterTrustBundleProjectionFluent fluent; + public V1ClusterTrustBundleProjectionBuilder() { this(new V1ClusterTrustBundleProjection()); } @@ -11,17 +14,16 @@ public V1ClusterTrustBundleProjectionBuilder(V1ClusterTrustBundleProjectionFluen this(fluent, new V1ClusterTrustBundleProjection()); } - public V1ClusterTrustBundleProjectionBuilder(V1ClusterTrustBundleProjectionFluent fluent,V1ClusterTrustBundleProjection instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ClusterTrustBundleProjectionBuilder(V1ClusterTrustBundleProjection instance) { this.fluent = this; this.copyInstance(instance); } - V1ClusterTrustBundleProjectionFluent fluent; + public V1ClusterTrustBundleProjectionBuilder(V1ClusterTrustBundleProjectionFluent fluent,V1ClusterTrustBundleProjection instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ClusterTrustBundleProjection build() { V1ClusterTrustBundleProjection buildable = new V1ClusterTrustBundleProjection(); buildable.setLabelSelector(fluent.buildLabelSelector()); @@ -32,5 +34,4 @@ public V1ClusterTrustBundleProjection build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionFluent.java index dd1813ab82..c0885d7c51 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionFluent.java @@ -1,31 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; -import java.lang.Boolean; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ClusterTrustBundleProjectionFluent> extends BaseFluent{ + + private V1LabelSelectorBuilder labelSelector; + private String name; + private Boolean optional; + private String path; + private String signerName; + public V1ClusterTrustBundleProjectionFluent() { } public V1ClusterTrustBundleProjectionFluent(V1ClusterTrustBundleProjection instance) { this.copyInstance(instance); } - private V1LabelSelectorBuilder labelSelector; - private String name; - private Boolean optional; - private String path; - private String signerName; + + public V1LabelSelector buildLabelSelector() { + return this.labelSelector != null ? this.labelSelector.build() : null; + } protected void copyInstance(V1ClusterTrustBundleProjection instance) { instance = instance != null ? instance : new V1ClusterTrustBundleProjection(); @@ -38,34 +44,6 @@ protected void copyInstance(V1ClusterTrustBundleProjection instance) { } } - public V1LabelSelector buildLabelSelector() { - return this.labelSelector != null ? this.labelSelector.build() : null; - } - - public A withLabelSelector(V1LabelSelector labelSelector) { - this._visitables.remove("labelSelector"); - if (labelSelector != null) { - this.labelSelector = new V1LabelSelectorBuilder(labelSelector); - this._visitables.get("labelSelector").add(this.labelSelector); - } else { - this.labelSelector = null; - this._visitables.get("labelSelector").remove(this.labelSelector); - } - return (A) this; - } - - public boolean hasLabelSelector() { - return this.labelSelector != null; - } - - public LabelSelectorNested withNewLabelSelector() { - return new LabelSelectorNested(null); - } - - public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { - return new LabelSelectorNested(item); - } - public LabelSelectorNested editLabelSelector() { return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(null)); } @@ -78,58 +56,6 @@ public LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelector item) { return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(item)); } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public Boolean getOptional() { - return this.optional; - } - - public A withOptional(Boolean optional) { - this.optional = optional; - return (A) this; - } - - public boolean hasOptional() { - return this.optional != null; - } - - public String getPath() { - return this.path; - } - - public A withPath(String path) { - this.path = path; - return (A) this; - } - - public boolean hasPath() { - return this.path != null; - } - - public String getSignerName() { - return this.signerName; - } - - public A withSignerName(String signerName) { - this.signerName = signerName; - return (A) this; - } - - public boolean hasSignerName() { - return this.signerName != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -159,6 +85,42 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public Boolean getOptional() { + return this.optional; + } + + public String getPath() { + return this.path; + } + + public String getSignerName() { + return this.signerName; + } + + public boolean hasLabelSelector() { + return this.labelSelector != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasOptional() { + return this.optional != null; + } + + public boolean hasPath() { + return this.path != null; + } + + public boolean hasSignerName() { + return this.signerName != null; + } + public int hashCode() { return Objects.hash(labelSelector, name, optional, path, signerName); } @@ -194,15 +156,57 @@ public String toString() { return sb.toString(); } + public A withLabelSelector(V1LabelSelector labelSelector) { + this._visitables.remove("labelSelector"); + if (labelSelector != null) { + this.labelSelector = new V1LabelSelectorBuilder(labelSelector); + this._visitables.get("labelSelector").add(this.labelSelector); + } else { + this.labelSelector = null; + this._visitables.get("labelSelector").remove(this.labelSelector); + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public LabelSelectorNested withNewLabelSelector() { + return new LabelSelectorNested(null); + } + + public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { + return new LabelSelectorNested(item); + } + public A withOptional() { return withOptional(true); } + + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public A withSignerName(String signerName) { + this.signerName = signerName; + return (A) this; + } public class LabelSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + LabelSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1ClusterTrustBundleProjectionFluent.this.withLabelSelector(builder.build()); } @@ -211,7 +215,5 @@ public N endLabelSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java index c42c0de336..3dc5cd8f8e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ComponentConditionBuilder extends V1ComponentConditionFluent implements VisitableBuilder{ + + V1ComponentConditionFluent fluent; + public V1ComponentConditionBuilder() { this(new V1ComponentCondition()); } @@ -11,17 +14,16 @@ public V1ComponentConditionBuilder(V1ComponentConditionFluent fluent) { this(fluent, new V1ComponentCondition()); } - public V1ComponentConditionBuilder(V1ComponentConditionFluent fluent,V1ComponentCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ComponentConditionBuilder(V1ComponentCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1ComponentConditionFluent fluent; + public V1ComponentConditionBuilder(V1ComponentConditionFluent fluent,V1ComponentCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ComponentCondition build() { V1ComponentCondition buildable = new V1ComponentCondition(); buildable.setError(fluent.getError()); @@ -31,5 +33,4 @@ public V1ComponentCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java index 3180682ba7..c7dee02114 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ComponentConditionFluent> extends BaseFluent{ + + private String error; + private String message; + private String status; + private String type; + public V1ComponentConditionFluent() { } public V1ComponentConditionFluent(V1ComponentCondition instance) { this.copyInstance(instance); } - private String error; - private String message; - private String status; - private String type; - + protected void copyInstance(V1ComponentCondition instance) { instance = instance != null ? instance : new V1ComponentCondition(); if (instance != null) { @@ -33,58 +35,6 @@ protected void copyInstance(V1ComponentCondition instance) { } } - public String getError() { - return this.error; - } - - public A withError(String error) { - this.error = error; - return (A) this; - } - - public boolean hasError() { - return this.error != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -111,6 +61,38 @@ public boolean equals(Object o) { return true; } + public String getError() { + return this.error; + } + + public String getMessage() { + return this.message; + } + + public String getStatus() { + return this.status; + } + + public String getType() { + return this.type; + } + + public boolean hasError() { + return this.error != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(error, message, status, type); } @@ -141,5 +123,24 @@ public String toString() { return sb.toString(); } - + public A withError(String error) { + this.error = error; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java index 65bfd14ad4..e605420e23 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ComponentStatusBuilder extends V1ComponentStatusFluent implements VisitableBuilder{ + + V1ComponentStatusFluent fluent; + public V1ComponentStatusBuilder() { this(new V1ComponentStatus()); } @@ -11,17 +14,16 @@ public V1ComponentStatusBuilder(V1ComponentStatusFluent fluent) { this(fluent, new V1ComponentStatus()); } - public V1ComponentStatusBuilder(V1ComponentStatusFluent fluent,V1ComponentStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ComponentStatusBuilder(V1ComponentStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ComponentStatusFluent fluent; + public V1ComponentStatusBuilder(V1ComponentStatusFluent fluent,V1ComponentStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ComponentStatus build() { V1ComponentStatus buildable = new V1ComponentStatus(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ComponentStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java index bde5958c11..05816e308a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ComponentStatusFluent> extends BaseFluent{ - public V1ComponentStatusFluent() { - } - - public V1ComponentStatusFluent(V1ComponentStatus instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList conditions; private String kind; private V1ObjectMetaBuilder metadata; - - protected void copyInstance(V1ComponentStatus instance) { - instance = instance != null ? instance : new V1ComponentStatus(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withConditions(instance.getConditions()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1ComponentStatusFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1ComponentStatusFluent(V1ComponentStatus instance) { + this.copyInstance(instance); } - - public A addToConditions(int index,V1ComponentCondition item) { + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1ComponentCondition item : items) { + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1ComponentCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1ComponentCondition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1ComponentCondition... items) { @@ -96,66 +65,29 @@ public A addToConditions(V1ComponentCondition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1ComponentCondition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1ComponentCondition item : items) { - V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1ComponentCondition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1ComponentCondition item : items) { - V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1ComponentCondition item : items) { - V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1ComponentConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1ComponentCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1ComponentCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1ComponentCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -173,61 +105,22 @@ public V1ComponentCondition buildMatchingCondition(Predicate predicate) { - for (V1ComponentConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1ComponentCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withConditions(V1ComponentCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1ComponentCondition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1ComponentStatus instance) { + instance = instance != null ? instance : new V1ComponentStatus(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withConditions(instance.getConditions()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1ComponentCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1ComponentCondition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -262,47 +155,6 @@ public ConditionsNested editMatchingCondition(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ComponentConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, conditions, kind, metadata); } + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1ComponentCondition item : items) { + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1ComponentCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1ComponentCondition item : items) { + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ComponentConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1ComponentCondition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1ComponentCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1ComponentCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1ComponentCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1ComponentCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } public class ConditionsNested extends V1ComponentConditionFluent> implements Nested{ + + V1ComponentConditionBuilder builder; + int index; + ConditionsNested(int index,V1ComponentCondition item) { this.index = index; this.builder = new V1ComponentConditionBuilder(this, item); } - V1ComponentConditionBuilder builder; - int index; - + public N and() { return (N) V1ComponentStatusFluent.this.setToConditions(index, builder.build()); } @@ -386,14 +390,15 @@ public N endCondition() { return and(); } - } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ComponentStatusFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java index db284df3b9..b47bbd3ca0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ComponentStatusListBuilder extends V1ComponentStatusListFluent implements VisitableBuilder{ + + V1ComponentStatusListFluent fluent; + public V1ComponentStatusListBuilder() { this(new V1ComponentStatusList()); } @@ -11,17 +14,16 @@ public V1ComponentStatusListBuilder(V1ComponentStatusListFluent fluent) { this(fluent, new V1ComponentStatusList()); } - public V1ComponentStatusListBuilder(V1ComponentStatusListFluent fluent,V1ComponentStatusList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ComponentStatusListBuilder(V1ComponentStatusList instance) { this.fluent = this; this.copyInstance(instance); } - V1ComponentStatusListFluent fluent; + public V1ComponentStatusListBuilder(V1ComponentStatusListFluent fluent,V1ComponentStatusList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ComponentStatusList build() { V1ComponentStatusList buildable = new V1ComponentStatusList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ComponentStatusList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java index 4e18625e3f..cc5d056556 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ComponentStatusListFluent> extends BaseFluent{ - public V1ComponentStatusListFluent() { - } - - public V1ComponentStatusListFluent(V1ComponentStatusList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ComponentStatusList instance) { - instance = instance != null ? instance : new V1ComponentStatusList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1ComponentStatusListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1ComponentStatusListFluent(V1ComponentStatusList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1ComponentStatus item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1ComponentStatus item : items) { + V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1ComponentStatus item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ComponentStatus item) { + return new ItemsNested(-1, item); } public A addToItems(V1ComponentStatus... items) { @@ -96,68 +65,31 @@ public A addToItems(V1ComponentStatus... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1ComponentStatus item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1ComponentStatus item : items) { - V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); + V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1ComponentStatus... items) { - if (this.items == null) { - return (A) this; - } - for (V1ComponentStatus item : items) { - V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1ComponentStatus item : items) { - V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1ComponentStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1ComponentStatus buildFirstItem() { + return this.items.get(0).build(); } public V1ComponentStatus buildItem(int index) { return this.items.get(index).build(); } - public V1ComponentStatus buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1ComponentStatus buildLastItem() { @@ -173,73 +105,34 @@ public V1ComponentStatus buildMatchingItem(Predicate p return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1ComponentStatusBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ComponentStatus item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ComponentStatusList instance) { + instance = instance != null ? instance : new V1ComponentStatusList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1ComponentStatus... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1ComponentStatus item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ComponentStatus item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ComponentStatus item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predi return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ComponentStatusBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ComponentStatus item : items) { + V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ComponentStatus... items) { + if (this.items == null) { + return (A) this; + } + for (V1ComponentStatus item : items) { + V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ComponentStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ComponentStatus item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1ComponentStatus item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ComponentStatus item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ComponentStatus... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ComponentStatus item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1ComponentStatusFluent> implements Nested{ + + V1ComponentStatusBuilder builder; + int index; + ItemsNested(int index,V1ComponentStatus item) { this.index = index; this.builder = new V1ComponentStatusBuilder(this, item); } - V1ComponentStatusBuilder builder; - int index; - + public N and() { return (N) V1ComponentStatusListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ComponentStatusListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java index eade4d2599..00054f30f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ConditionBuilder extends V1ConditionFluent implements VisitableBuilder{ + + V1ConditionFluent fluent; + public V1ConditionBuilder() { this(new V1Condition()); } @@ -11,17 +14,16 @@ public V1ConditionBuilder(V1ConditionFluent fluent) { this(fluent, new V1Condition()); } - public V1ConditionBuilder(V1ConditionFluent fluent,V1Condition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ConditionBuilder(V1Condition instance) { this.fluent = this; this.copyInstance(instance); } - V1ConditionFluent fluent; + public V1ConditionBuilder(V1ConditionFluent fluent,V1Condition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Condition build() { V1Condition buildable = new V1Condition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -33,5 +35,4 @@ public V1Condition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java index d873266cfa..97cffc6b7d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java @@ -1,32 +1,34 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ConditionFluent> extends BaseFluent{ - public V1ConditionFluent() { - } - - public V1ConditionFluent(V1Condition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastTransitionTime; private String message; private Long observedGeneration; private String reason; private String status; private String type; + + public V1ConditionFluent() { + } + public V1ConditionFluent(V1Condition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1Condition instance) { instance = instance != null ? instance : new V1Condition(); if (instance != null) { @@ -39,116 +41,86 @@ protected void copyInstance(V1Condition instance) { } } - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ConditionFluent that = (V1ConditionFluent) o; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - public Long getObservedGeneration() { return this.observedGeneration; } - public A withObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - return (A) this; - } - - public boolean hasObservedGeneration() { - return this.observedGeneration != null; - } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public String getStatus() { + return this.status; } - public boolean hasReason() { - return this.reason != null; + public String getType() { + return this.type; } - public String getStatus() { - return this.status; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasMessage() { + return this.message != null; } - public boolean hasStatus() { - return this.status != null; + public boolean hasObservedGeneration() { + return this.observedGeneration != null; } - public String getType() { - return this.type; + public boolean hasReason() { + return this.reason != null; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasStatus() { + return this.status != null; } public boolean hasType() { return this.type != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ConditionFluent that = (V1ConditionFluent) o; - if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { - return false; - } - if (!(Objects.equals(message, that.message))) { - return false; - } - if (!(Objects.equals(observedGeneration, that.observedGeneration))) { - return false; - } - if (!(Objects.equals(reason, that.reason))) { - return false; - } - if (!(Objects.equals(status, that.status))) { - return false; - } - if (!(Objects.equals(type, that.type))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type); } @@ -189,5 +161,34 @@ public String toString() { return sb.toString(); } - + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java index fe5d3c9057..e01d63a163 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ConfigMapBuilder extends V1ConfigMapFluent implements VisitableBuilder{ + + V1ConfigMapFluent fluent; + public V1ConfigMapBuilder() { this(new V1ConfigMap()); } @@ -11,17 +14,16 @@ public V1ConfigMapBuilder(V1ConfigMapFluent fluent) { this(fluent, new V1ConfigMap()); } - public V1ConfigMapBuilder(V1ConfigMapFluent fluent,V1ConfigMap instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ConfigMapBuilder(V1ConfigMap instance) { this.fluent = this; this.copyInstance(instance); } - V1ConfigMapFluent fluent; + public V1ConfigMapBuilder(V1ConfigMapFluent fluent,V1ConfigMap instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ConfigMap build() { V1ConfigMap buildable = new V1ConfigMap(); buildable.setApiVersion(fluent.getApiVersion()); @@ -33,5 +35,4 @@ public V1ConfigMap build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java index ec213315d6..7eedb14c21 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ConfigMapEnvSourceBuilder extends V1ConfigMapEnvSourceFluent implements VisitableBuilder{ + + V1ConfigMapEnvSourceFluent fluent; + public V1ConfigMapEnvSourceBuilder() { this(new V1ConfigMapEnvSource()); } @@ -11,17 +14,16 @@ public V1ConfigMapEnvSourceBuilder(V1ConfigMapEnvSourceFluent fluent) { this(fluent, new V1ConfigMapEnvSource()); } - public V1ConfigMapEnvSourceBuilder(V1ConfigMapEnvSourceFluent fluent,V1ConfigMapEnvSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ConfigMapEnvSourceBuilder(V1ConfigMapEnvSource instance) { this.fluent = this; this.copyInstance(instance); } - V1ConfigMapEnvSourceFluent fluent; + public V1ConfigMapEnvSourceBuilder(V1ConfigMapEnvSourceFluent fluent,V1ConfigMapEnvSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ConfigMapEnvSource build() { V1ConfigMapEnvSource buildable = new V1ConfigMapEnvSource(); buildable.setName(fluent.getName()); @@ -29,5 +31,4 @@ public V1ConfigMapEnvSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java index 38ee0d5da9..9bb682d1f0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ConfigMapEnvSourceFluent> extends BaseFluent{ + + private String name; + private Boolean optional; + public V1ConfigMapEnvSourceFluent() { } public V1ConfigMapEnvSourceFluent(V1ConfigMapEnvSource instance) { this.copyInstance(instance); } - private String name; - private Boolean optional; - + protected void copyInstance(V1ConfigMapEnvSource instance) { instance = instance != null ? instance : new V1ConfigMapEnvSource(); if (instance != null) { @@ -30,32 +32,6 @@ protected void copyInstance(V1ConfigMapEnvSource instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public Boolean getOptional() { - return this.optional; - } - - public A withOptional(Boolean optional) { - this.optional = optional; - return (A) this; - } - - public boolean hasOptional() { - return this.optional != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -76,6 +52,22 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public Boolean getOptional() { + return this.optional; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasOptional() { + return this.optional != null; + } + public int hashCode() { return Objects.hash(name, optional); } @@ -96,9 +88,18 @@ public String toString() { return sb.toString(); } + public A withName(String name) { + this.name = name; + return (A) this; + } + public A withOptional() { return withOptional(true); } - + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java index 18b883c189..3a8cf5c4ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java @@ -1,70 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; -import java.lang.Object; -import java.lang.Boolean; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ConfigMapFluent> extends BaseFluent{ - public V1ConfigMapFluent() { - } - - public V1ConfigMapFluent(V1ConfigMap instance) { - this.copyInstance(instance); - } + private String apiVersion; private Map binaryData; private Map data; private Boolean immutable; private String kind; private V1ObjectMetaBuilder metadata; - - protected void copyInstance(V1ConfigMap instance) { - instance = instance != null ? instance : new V1ConfigMap(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withBinaryData(instance.getBinaryData()); - this.withData(instance.getData()); - this.withImmutable(instance.getImmutable()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; + + public V1ConfigMapFluent() { } - public A addToBinaryData(String key,byte[] value) { - if (this.binaryData == null && key != null && value != null) { - this.binaryData = new LinkedHashMap(); - } - if (key != null && value != null) { - this.binaryData.put(key, value); - } - return (A) this; + public V1ConfigMapFluent(V1ConfigMap instance) { + this.copyInstance(instance); } - + public A addToBinaryData(Map map) { if (this.binaryData == null && map != null) { this.binaryData = new LinkedHashMap(); @@ -75,53 +42,12 @@ public A addToBinaryData(Map map) { return (A) this; } - public A removeFromBinaryData(String key) { - if (this.binaryData == null) { - return (A) this; - } - if (key != null && this.binaryData != null) { - this.binaryData.remove(key); - } - return (A) this; - } - - public A removeFromBinaryData(Map map) { - if (this.binaryData == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.binaryData != null) { - this.binaryData.remove(key); - } - } - } - return (A) this; - } - - public Map getBinaryData() { - return this.binaryData; - } - - public A withBinaryData(Map binaryData) { - if (binaryData == null) { - this.binaryData = null; - } else { - this.binaryData = new LinkedHashMap(binaryData); - } - return (A) this; - } - - public boolean hasBinaryData() { - return this.binaryData != null; - } - - public A addToData(String key,String value) { - if (this.data == null && key != null && value != null) { - this.data = new LinkedHashMap(); + public A addToBinaryData(String key,byte[] value) { + if (this.binaryData == null && key != null && value != null) { + this.binaryData = new LinkedHashMap(); } if (key != null && value != null) { - this.data.put(key, value); + this.binaryData.put(key, value); } return (A) this; } @@ -136,99 +62,30 @@ public A addToData(Map map) { return (A) this; } - public A removeFromData(String key) { - if (this.data == null) { - return (A) this; - } - if (key != null && this.data != null) { - this.data.remove(key); - } - return (A) this; - } - - public A removeFromData(Map map) { - if (this.data == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.data != null) { - this.data.remove(key); - } - } + public A addToData(String key,String value) { + if (this.data == null && key != null && value != null) { + this.data = new LinkedHashMap(); } - return (A) this; - } - - public Map getData() { - return this.data; - } - - public A withData(Map data) { - if (data == null) { - this.data = null; - } else { - this.data = new LinkedHashMap(data); + if (key != null && value != null) { + this.data.put(key, value); } return (A) this; } - public boolean hasData() { - return this.data != null; - } - - public Boolean getImmutable() { - return this.immutable; - } - - public A withImmutable(Boolean immutable) { - this.immutable = immutable; - return (A) this; - } - - public boolean hasImmutable() { - return this.immutable != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); + protected void copyInstance(V1ConfigMap instance) { + instance = instance != null ? instance : new V1ConfigMap(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withBinaryData(instance.getBinaryData()); + this.withData(instance.getData()); + this.withImmutable(instance.getImmutable()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); } public MetadataNested editMetadata() { @@ -275,10 +132,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public Map getBinaryData() { + return this.binaryData; + } + + public Map getData() { + return this.data; + } + + public Boolean getImmutable() { + return this.immutable; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasBinaryData() { + return this.binaryData != null; + } + + public boolean hasData() { + return this.data != null; + } + + public boolean hasImmutable() { + return this.immutable != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, binaryData, data, immutable, kind, metadata); } + public A removeFromBinaryData(String key) { + if (this.binaryData == null) { + return (A) this; + } + if (key != null && this.binaryData != null) { + this.binaryData.remove(key); + } + return (A) this; + } + + public A removeFromBinaryData(Map map) { + if (this.binaryData == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.binaryData != null) { + this.binaryData.remove(key); + } + } + } + return (A) this; + } + + public A removeFromData(String key) { + if (this.data == null) { + return (A) this; + } + if (key != null && this.data != null) { + this.data.remove(key); + } + return (A) this; + } + + public A removeFromData(Map map) { + if (this.data == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.data != null) { + this.data.remove(key); + } + } + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -315,15 +264,70 @@ public String toString() { return sb.toString(); } + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withBinaryData(Map binaryData) { + if (binaryData == null) { + this.binaryData = null; + } else { + this.binaryData = new LinkedHashMap(binaryData); + } + return (A) this; + } + + public A withData(Map data) { + if (data == null) { + this.data = null; + } else { + this.data = new LinkedHashMap(data); + } + return (A) this; + } + public A withImmutable() { return withImmutable(true); } + + public A withImmutable(Boolean immutable) { + this.immutable = immutable; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ConfigMapFluent.this.withMetadata(builder.build()); } @@ -332,7 +336,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java index be1f035c29..386abf2662 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ConfigMapKeySelectorBuilder extends V1ConfigMapKeySelectorFluent implements VisitableBuilder{ + + V1ConfigMapKeySelectorFluent fluent; + public V1ConfigMapKeySelectorBuilder() { this(new V1ConfigMapKeySelector()); } @@ -11,17 +14,16 @@ public V1ConfigMapKeySelectorBuilder(V1ConfigMapKeySelectorFluent fluent) { this(fluent, new V1ConfigMapKeySelector()); } - public V1ConfigMapKeySelectorBuilder(V1ConfigMapKeySelectorFluent fluent,V1ConfigMapKeySelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ConfigMapKeySelectorBuilder(V1ConfigMapKeySelector instance) { this.fluent = this; this.copyInstance(instance); } - V1ConfigMapKeySelectorFluent fluent; + public V1ConfigMapKeySelectorBuilder(V1ConfigMapKeySelectorFluent fluent,V1ConfigMapKeySelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ConfigMapKeySelector build() { V1ConfigMapKeySelector buildable = new V1ConfigMapKeySelector(); buildable.setKey(fluent.getKey()); @@ -30,5 +32,4 @@ public V1ConfigMapKeySelector build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java index b0f0fb5a7d..19ecd5c42e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ConfigMapKeySelectorFluent> extends BaseFluent{ + + private String key; + private String name; + private Boolean optional; + public V1ConfigMapKeySelectorFluent() { } public V1ConfigMapKeySelectorFluent(V1ConfigMapKeySelector instance) { this.copyInstance(instance); } - private String key; - private String name; - private Boolean optional; - + protected void copyInstance(V1ConfigMapKeySelector instance) { instance = instance != null ? instance : new V1ConfigMapKeySelector(); if (instance != null) { @@ -32,45 +34,6 @@ protected void copyInstance(V1ConfigMapKeySelector instance) { } } - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public Boolean getOptional() { - return this.optional; - } - - public A withOptional(Boolean optional) { - this.optional = optional; - return (A) this; - } - - public boolean hasOptional() { - return this.optional != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -94,6 +57,30 @@ public boolean equals(Object o) { return true; } + public String getKey() { + return this.key; + } + + public String getName() { + return this.name; + } + + public Boolean getOptional() { + return this.optional; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasOptional() { + return this.optional != null; + } + public int hashCode() { return Objects.hash(key, name, optional); } @@ -119,9 +106,23 @@ public String toString() { return sb.toString(); } + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + public A withOptional() { return withOptional(true); } - + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java index 9657aaae33..1f684213a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ConfigMapListBuilder extends V1ConfigMapListFluent implements VisitableBuilder{ + + V1ConfigMapListFluent fluent; + public V1ConfigMapListBuilder() { this(new V1ConfigMapList()); } @@ -11,17 +14,16 @@ public V1ConfigMapListBuilder(V1ConfigMapListFluent fluent) { this(fluent, new V1ConfigMapList()); } - public V1ConfigMapListBuilder(V1ConfigMapListFluent fluent,V1ConfigMapList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ConfigMapListBuilder(V1ConfigMapList instance) { this.fluent = this; this.copyInstance(instance); } - V1ConfigMapListFluent fluent; + public V1ConfigMapListBuilder(V1ConfigMapListFluent fluent,V1ConfigMapList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ConfigMapList build() { V1ConfigMapList buildable = new V1ConfigMapList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ConfigMapList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java index aa25b9b822..5c15a7b0c9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ConfigMapListFluent> extends BaseFluent{ - public V1ConfigMapListFluent() { - } - - public V1ConfigMapListFluent(V1ConfigMapList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ConfigMapList instance) { - instance = instance != null ? instance : new V1ConfigMapList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1ConfigMapListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1ConfigMapListFluent(V1ConfigMapList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1ConfigMap item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1ConfigMap item : items) { + V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1ConfigMap item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ConfigMap item) { + return new ItemsNested(-1, item); } public A addToItems(V1ConfigMap... items) { @@ -96,68 +65,31 @@ public A addToItems(V1ConfigMap... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1ConfigMap item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1ConfigMap item : items) { - V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); + V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1ConfigMap... items) { - if (this.items == null) { - return (A) this; - } - for (V1ConfigMap item : items) { - V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1ConfigMap item : items) { - V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1ConfigMapBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1ConfigMap buildFirstItem() { + return this.items.get(0).build(); } public V1ConfigMap buildItem(int index) { return this.items.get(index).build(); } - public V1ConfigMap buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1ConfigMap buildLastItem() { @@ -173,73 +105,34 @@ public V1ConfigMap buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1ConfigMapBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ConfigMap item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ConfigMapList instance) { + instance = instance != null ? instance : new V1ConfigMapList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1ConfigMap... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1ConfigMap item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ConfigMap item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ConfigMap item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ConfigMapBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ConfigMap item : items) { + V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ConfigMap... items) { + if (this.items == null) { + return (A) this; + } + for (V1ConfigMap item : items) { + V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ConfigMapBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ConfigMap item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1ConfigMap item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ConfigMap item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ConfigMap... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ConfigMap item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1ConfigMapFluent> implements Nested{ + + V1ConfigMapBuilder builder; + int index; + ItemsNested(int index,V1ConfigMap item) { this.index = index; this.builder = new V1ConfigMapBuilder(this, item); } - V1ConfigMapBuilder builder; - int index; - + public N and() { return (N) V1ConfigMapListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ConfigMapListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java index a729cb548d..3531cb4a2a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ConfigMapNodeConfigSourceBuilder extends V1ConfigMapNodeConfigSourceFluent implements VisitableBuilder{ + + V1ConfigMapNodeConfigSourceFluent fluent; + public V1ConfigMapNodeConfigSourceBuilder() { this(new V1ConfigMapNodeConfigSource()); } @@ -11,17 +14,16 @@ public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSourceFluent f this(fluent, new V1ConfigMapNodeConfigSource()); } - public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSourceFluent fluent,V1ConfigMapNodeConfigSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSource instance) { this.fluent = this; this.copyInstance(instance); } - V1ConfigMapNodeConfigSourceFluent fluent; + public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSourceFluent fluent,V1ConfigMapNodeConfigSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ConfigMapNodeConfigSource build() { V1ConfigMapNodeConfigSource buildable = new V1ConfigMapNodeConfigSource(); buildable.setKubeletConfigKey(fluent.getKubeletConfigKey()); @@ -32,5 +34,4 @@ public V1ConfigMapNodeConfigSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java index 669ebe904e..ee4a49f9f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ConfigMapNodeConfigSourceFluent> extends BaseFluent{ - public V1ConfigMapNodeConfigSourceFluent() { - } - - public V1ConfigMapNodeConfigSourceFluent(V1ConfigMapNodeConfigSource instance) { - this.copyInstance(instance); - } + private String kubeletConfigKey; private String name; private String namespace; private String resourceVersion; private String uid; + + public V1ConfigMapNodeConfigSourceFluent() { + } + public V1ConfigMapNodeConfigSourceFluent(V1ConfigMapNodeConfigSource instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1ConfigMapNodeConfigSource instance) { instance = instance != null ? instance : new V1ConfigMapNodeConfigSource(); if (instance != null) { @@ -35,71 +37,6 @@ protected void copyInstance(V1ConfigMapNodeConfigSource instance) { } } - public String getKubeletConfigKey() { - return this.kubeletConfigKey; - } - - public A withKubeletConfigKey(String kubeletConfigKey) { - this.kubeletConfigKey = kubeletConfigKey; - return (A) this; - } - - public boolean hasKubeletConfigKey() { - return this.kubeletConfigKey != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - - public String getResourceVersion() { - return this.resourceVersion; - } - - public A withResourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; - return (A) this; - } - - public boolean hasResourceVersion() { - return this.resourceVersion != null; - } - - public String getUid() { - return this.uid; - } - - public A withUid(String uid) { - this.uid = uid; - return (A) this; - } - - public boolean hasUid() { - return this.uid != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -129,6 +66,46 @@ public boolean equals(Object o) { return true; } + public String getKubeletConfigKey() { + return this.kubeletConfigKey; + } + + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; + } + + public String getResourceVersion() { + return this.resourceVersion; + } + + public String getUid() { + return this.uid; + } + + public boolean hasKubeletConfigKey() { + return this.kubeletConfigKey != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public boolean hasResourceVersion() { + return this.resourceVersion != null; + } + + public boolean hasUid() { + return this.uid != null; + } + public int hashCode() { return Objects.hash(kubeletConfigKey, name, namespace, resourceVersion, uid); } @@ -164,5 +141,29 @@ public String toString() { return sb.toString(); } - + public A withKubeletConfigKey(String kubeletConfigKey) { + this.kubeletConfigKey = kubeletConfigKey; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public A withResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java index 0f90a4c3e5..dd090688b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ConfigMapProjectionBuilder extends V1ConfigMapProjectionFluent implements VisitableBuilder{ + + V1ConfigMapProjectionFluent fluent; + public V1ConfigMapProjectionBuilder() { this(new V1ConfigMapProjection()); } @@ -11,17 +14,16 @@ public V1ConfigMapProjectionBuilder(V1ConfigMapProjectionFluent fluent) { this(fluent, new V1ConfigMapProjection()); } - public V1ConfigMapProjectionBuilder(V1ConfigMapProjectionFluent fluent,V1ConfigMapProjection instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ConfigMapProjectionBuilder(V1ConfigMapProjection instance) { this.fluent = this; this.copyInstance(instance); } - V1ConfigMapProjectionFluent fluent; + public V1ConfigMapProjectionBuilder(V1ConfigMapProjectionFluent fluent,V1ConfigMapProjection instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ConfigMapProjection build() { V1ConfigMapProjection buildable = new V1ConfigMapProjection(); buildable.setItems(fluent.buildItems()); @@ -30,5 +32,4 @@ public V1ConfigMapProjection build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java index a1f459884f..c35a64ebc8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java @@ -1,72 +1,55 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ConfigMapProjectionFluent> extends BaseFluent{ + + private ArrayList items; + private String name; + private Boolean optional; + public V1ConfigMapProjectionFluent() { } public V1ConfigMapProjectionFluent(V1ConfigMapProjection instance) { this.copyInstance(instance); } - private ArrayList items; - private String name; - private Boolean optional; - - protected void copyInstance(V1ConfigMapProjection instance) { - instance = instance != null ? instance : new V1ConfigMapProjection(); - if (instance != null) { - this.withItems(instance.getItems()); - this.withName(instance.getName()); - this.withOptional(instance.getOptional()); - } - } - - public A addToItems(int index,V1KeyToPath item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1KeyToPath item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1KeyToPath item) { + return new ItemsNested(-1, item); } public A addToItems(V1KeyToPath... items) { @@ -81,68 +64,31 @@ public A addToItems(V1KeyToPath... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1KeyToPath item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1KeyToPath... items) { - if (this.items == null) { - return (A) this; - } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1KeyToPathBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1KeyToPath buildFirstItem() { + return this.items.get(0).build(); } public V1KeyToPath buildItem(int index) { return this.items.get(index).build(); } - public V1KeyToPath buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1KeyToPath buildLastItem() { @@ -158,73 +104,29 @@ public V1KeyToPath buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1KeyToPathBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1KeyToPath item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ConfigMapProjection instance) { + instance = instance != null ? instance : new V1ConfigMapProjection(); + if (instance != null) { + this.withItems(instance.getItems()); + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); } - return (A) this; } - public A withItems(V1KeyToPath... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1KeyToPath item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1KeyToPath item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1KeyToPath item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -247,32 +149,6 @@ public ItemsNested editMatchingItem(Predicate predicate) return this.setNewItemLike(index, this.buildItem(index)); } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public Boolean getOptional() { - return this.optional; - } - - public A withOptional(Boolean optional) { - this.optional = optional; - return (A) this; - } - - public boolean hasOptional() { - return this.optional != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -296,10 +172,98 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public Boolean getOptional() { + return this.optional; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1KeyToPathBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasOptional() { + return this.optional != null; + } + public int hashCode() { return Objects.hash(items, name, optional); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1KeyToPath... items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1KeyToPathBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1KeyToPath item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1KeyToPath item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -321,17 +285,57 @@ public String toString() { return sb.toString(); } + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1KeyToPath item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1KeyToPath... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1KeyToPath item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + public A withOptional() { return withOptional(true); } + + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } public class ItemsNested extends V1KeyToPathFluent> implements Nested{ + + V1KeyToPathBuilder builder; + int index; + ItemsNested(int index,V1KeyToPath item) { this.index = index; this.builder = new V1KeyToPathBuilder(this, item); } - V1KeyToPathBuilder builder; - int index; - + public N and() { return (N) V1ConfigMapProjectionFluent.this.setToItems(index, builder.build()); } @@ -340,7 +344,5 @@ public N endItem() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java index e06b351ca3..749e9b07b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ConfigMapVolumeSourceBuilder extends V1ConfigMapVolumeSourceFluent implements VisitableBuilder{ + + V1ConfigMapVolumeSourceFluent fluent; + public V1ConfigMapVolumeSourceBuilder() { this(new V1ConfigMapVolumeSource()); } @@ -11,17 +14,16 @@ public V1ConfigMapVolumeSourceBuilder(V1ConfigMapVolumeSourceFluent fluent) { this(fluent, new V1ConfigMapVolumeSource()); } - public V1ConfigMapVolumeSourceBuilder(V1ConfigMapVolumeSourceFluent fluent,V1ConfigMapVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ConfigMapVolumeSourceBuilder(V1ConfigMapVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1ConfigMapVolumeSourceFluent fluent; + public V1ConfigMapVolumeSourceBuilder(V1ConfigMapVolumeSourceFluent fluent,V1ConfigMapVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ConfigMapVolumeSource build() { V1ConfigMapVolumeSource buildable = new V1ConfigMapVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); @@ -31,5 +33,4 @@ public V1ConfigMapVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java index 8c519e0377..9c123d7f76 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java @@ -1,88 +1,57 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; +import java.lang.Boolean; import java.lang.Integer; +import java.lang.Object; import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ConfigMapVolumeSourceFluent> extends BaseFluent{ - public V1ConfigMapVolumeSourceFluent() { - } - - public V1ConfigMapVolumeSourceFluent(V1ConfigMapVolumeSource instance) { - this.copyInstance(instance); - } + private Integer defaultMode; private ArrayList items; private String name; private Boolean optional; - - protected void copyInstance(V1ConfigMapVolumeSource instance) { - instance = instance != null ? instance : new V1ConfigMapVolumeSource(); - if (instance != null) { - this.withDefaultMode(instance.getDefaultMode()); - this.withItems(instance.getItems()); - this.withName(instance.getName()); - this.withOptional(instance.getOptional()); - } - } - - public Integer getDefaultMode() { - return this.defaultMode; - } - - public A withDefaultMode(Integer defaultMode) { - this.defaultMode = defaultMode; - return (A) this; + + public V1ConfigMapVolumeSourceFluent() { } - public boolean hasDefaultMode() { - return this.defaultMode != null; + public V1ConfigMapVolumeSourceFluent(V1ConfigMapVolumeSource instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1KeyToPath item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1KeyToPath item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1KeyToPath item) { + return new ItemsNested(-1, item); } public A addToItems(V1KeyToPath... items) { @@ -97,68 +66,31 @@ public A addToItems(V1KeyToPath... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1KeyToPath item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1KeyToPath... items) { - if (this.items == null) { - return (A) this; - } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1KeyToPathBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1KeyToPath buildFirstItem() { + return this.items.get(0).build(); } public V1KeyToPath buildItem(int index) { return this.items.get(index).build(); } - public V1KeyToPath buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1KeyToPath buildLastItem() { @@ -174,73 +106,30 @@ public V1KeyToPath buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1KeyToPathBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1KeyToPath item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ConfigMapVolumeSource instance) { + instance = instance != null ? instance : new V1ConfigMapVolumeSource(); + if (instance != null) { + this.withDefaultMode(instance.getDefaultMode()); + this.withItems(instance.getItems()); + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); } - return (A) this; } - public A withItems(V1KeyToPath... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1KeyToPath item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1KeyToPath item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1KeyToPath item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -263,32 +152,6 @@ public ItemsNested editMatchingItem(Predicate predicate) return this.setNewItemLike(index, this.buildItem(index)); } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public Boolean getOptional() { - return this.optional; - } - - public A withOptional(Boolean optional) { - this.optional = optional; - return (A) this; - } - - public boolean hasOptional() { - return this.optional != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -315,10 +178,106 @@ public boolean equals(Object o) { return true; } + public Integer getDefaultMode() { + return this.defaultMode; + } + + public String getName() { + return this.name; + } + + public Boolean getOptional() { + return this.optional; + } + + public boolean hasDefaultMode() { + return this.defaultMode != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1KeyToPathBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasOptional() { + return this.optional != null; + } + public int hashCode() { return Objects.hash(defaultMode, items, name, optional); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1KeyToPath... items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1KeyToPathBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1KeyToPath item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1KeyToPath item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -345,17 +304,62 @@ public String toString() { return sb.toString(); } + public A withDefaultMode(Integer defaultMode) { + this.defaultMode = defaultMode; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1KeyToPath item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1KeyToPath... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1KeyToPath item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + public A withOptional() { return withOptional(true); } + + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } public class ItemsNested extends V1KeyToPathFluent> implements Nested{ + + V1KeyToPathBuilder builder; + int index; + ItemsNested(int index,V1KeyToPath item) { this.index = index; this.builder = new V1KeyToPathBuilder(this, item); } - V1KeyToPathBuilder builder; - int index; - + public N and() { return (N) V1ConfigMapVolumeSourceFluent.this.setToItems(index, builder.build()); } @@ -364,7 +368,5 @@ public N endItem() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java index 55d53b2d97..33c392ad7c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ContainerBuilder extends V1ContainerFluent implements VisitableBuilder{ + + V1ContainerFluent fluent; + public V1ContainerBuilder() { this(new V1Container()); } @@ -11,17 +14,16 @@ public V1ContainerBuilder(V1ContainerFluent fluent) { this(fluent, new V1Container()); } - public V1ContainerBuilder(V1ContainerFluent fluent,V1Container instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerBuilder(V1Container instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerFluent fluent; + public V1ContainerBuilder(V1ContainerFluent fluent,V1Container instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Container build() { V1Container buildable = new V1Container(); buildable.setArgs(fluent.getArgs()); @@ -52,5 +54,4 @@ public V1Container build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestBuilder.java index 45474bdee3..c8b84dc627 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ContainerExtendedResourceRequestBuilder extends V1ContainerExtendedResourceRequestFluent implements VisitableBuilder{ + + V1ContainerExtendedResourceRequestFluent fluent; + public V1ContainerExtendedResourceRequestBuilder() { this(new V1ContainerExtendedResourceRequest()); } @@ -11,17 +14,16 @@ public V1ContainerExtendedResourceRequestBuilder(V1ContainerExtendedResourceRequ this(fluent, new V1ContainerExtendedResourceRequest()); } - public V1ContainerExtendedResourceRequestBuilder(V1ContainerExtendedResourceRequestFluent fluent,V1ContainerExtendedResourceRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerExtendedResourceRequestBuilder(V1ContainerExtendedResourceRequest instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerExtendedResourceRequestFluent fluent; + public V1ContainerExtendedResourceRequestBuilder(V1ContainerExtendedResourceRequestFluent fluent,V1ContainerExtendedResourceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerExtendedResourceRequest build() { V1ContainerExtendedResourceRequest buildable = new V1ContainerExtendedResourceRequest(); buildable.setContainerName(fluent.getContainerName()); @@ -30,5 +32,4 @@ public V1ContainerExtendedResourceRequest build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestFluent.java index ede0897290..a622020da3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ContainerExtendedResourceRequestFluent> extends BaseFluent{ + + private String containerName; + private String requestName; + private String resourceName; + public V1ContainerExtendedResourceRequestFluent() { } public V1ContainerExtendedResourceRequestFluent(V1ContainerExtendedResourceRequest instance) { this.copyInstance(instance); } - private String containerName; - private String requestName; - private String resourceName; - + protected void copyInstance(V1ContainerExtendedResourceRequest instance) { instance = instance != null ? instance : new V1ContainerExtendedResourceRequest(); if (instance != null) { @@ -31,45 +33,6 @@ protected void copyInstance(V1ContainerExtendedResourceRequest instance) { } } - public String getContainerName() { - return this.containerName; - } - - public A withContainerName(String containerName) { - this.containerName = containerName; - return (A) this; - } - - public boolean hasContainerName() { - return this.containerName != null; - } - - public String getRequestName() { - return this.requestName; - } - - public A withRequestName(String requestName) { - this.requestName = requestName; - return (A) this; - } - - public boolean hasRequestName() { - return this.requestName != null; - } - - public String getResourceName() { - return this.resourceName; - } - - public A withResourceName(String resourceName) { - this.resourceName = resourceName; - return (A) this; - } - - public boolean hasResourceName() { - return this.resourceName != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -93,6 +56,30 @@ public boolean equals(Object o) { return true; } + public String getContainerName() { + return this.containerName; + } + + public String getRequestName() { + return this.requestName; + } + + public String getResourceName() { + return this.resourceName; + } + + public boolean hasContainerName() { + return this.containerName != null; + } + + public boolean hasRequestName() { + return this.requestName != null; + } + + public boolean hasResourceName() { + return this.resourceName != null; + } + public int hashCode() { return Objects.hash(containerName, requestName, resourceName); } @@ -118,5 +105,19 @@ public String toString() { return sb.toString(); } - + public A withContainerName(String containerName) { + this.containerName = containerName; + return (A) this; + } + + public A withRequestName(String requestName) { + this.requestName = requestName; + return (A) this; + } + + public A withResourceName(String resourceName) { + this.resourceName = resourceName; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java index e01127f070..3599049c24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; -import java.util.List; +import io.kubernetes.client.fluent.Nested; import java.lang.Boolean; -import java.util.Optional; -import java.util.Objects; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.RuntimeException; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ContainerFluent> extends BaseFluent{ - public V1ContainerFluent() { - } - - public V1ContainerFluent(V1Container instance) { - this.copyInstance(instance); - } + private List args; private List command; private ArrayList env; @@ -52,55 +47,15 @@ public V1ContainerFluent(V1Container instance) { private ArrayList volumeDevices; private ArrayList volumeMounts; private String workingDir; - - protected void copyInstance(V1Container instance) { - instance = instance != null ? instance : new V1Container(); - if (instance != null) { - this.withArgs(instance.getArgs()); - this.withCommand(instance.getCommand()); - this.withEnv(instance.getEnv()); - this.withEnvFrom(instance.getEnvFrom()); - this.withImage(instance.getImage()); - this.withImagePullPolicy(instance.getImagePullPolicy()); - this.withLifecycle(instance.getLifecycle()); - this.withLivenessProbe(instance.getLivenessProbe()); - this.withName(instance.getName()); - this.withPorts(instance.getPorts()); - this.withReadinessProbe(instance.getReadinessProbe()); - this.withResizePolicy(instance.getResizePolicy()); - this.withResources(instance.getResources()); - this.withRestartPolicy(instance.getRestartPolicy()); - this.withRestartPolicyRules(instance.getRestartPolicyRules()); - this.withSecurityContext(instance.getSecurityContext()); - this.withStartupProbe(instance.getStartupProbe()); - this.withStdin(instance.getStdin()); - this.withStdinOnce(instance.getStdinOnce()); - this.withTerminationMessagePath(instance.getTerminationMessagePath()); - this.withTerminationMessagePolicy(instance.getTerminationMessagePolicy()); - this.withTty(instance.getTty()); - this.withVolumeDevices(instance.getVolumeDevices()); - this.withVolumeMounts(instance.getVolumeMounts()); - this.withWorkingDir(instance.getWorkingDir()); - } - } - - public A addToArgs(int index,String item) { - if (this.args == null) { - this.args = new ArrayList(); - } - this.args.add(index, item); - return (A) this; + + public V1ContainerFluent() { } - public A setToArgs(int index,String item) { - if (this.args == null) { - this.args = new ArrayList(); - } - this.args.set(index, item); - return (A) this; + public V1ContainerFluent(V1Container instance) { + this.copyInstance(instance); } - - public A addToArgs(String... items) { + + public A addAllToArgs(Collection items) { if (this.args == null) { this.args = new ArrayList(); } @@ -110,245 +65,189 @@ public A addToArgs(String... items) { return (A) this; } - public A addAllToArgs(Collection items) { - if (this.args == null) { - this.args = new ArrayList(); + public A addAllToCommand(Collection items) { + if (this.command == null) { + this.command = new ArrayList(); } for (String item : items) { - this.args.add(item); + this.command.add(item); } return (A) this; } - public A removeFromArgs(String... items) { - if (this.args == null) { - return (A) this; + public A addAllToEnv(Collection items) { + if (this.env == null) { + this.env = new ArrayList(); } - for (String item : items) { - this.args.remove(item); + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").add(builder); + this.env.add(builder); } return (A) this; } - public A removeAllFromArgs(Collection items) { - if (this.args == null) { - return (A) this; + public A addAllToEnvFrom(Collection items) { + if (this.envFrom == null) { + this.envFrom = new ArrayList(); } - for (String item : items) { - this.args.remove(item); + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").add(builder); + this.envFrom.add(builder); } return (A) this; } - public List getArgs() { - return this.args; - } - - public String getArg(int index) { - return this.args.get(index); - } - - public String getFirstArg() { - return this.args.get(0); - } - - public String getLastArg() { - return this.args.get(args.size() - 1); - } - - public String getMatchingArg(Predicate predicate) { - for (String item : args) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingArg(Predicate predicate) { - for (String item : args) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withArgs(List args) { - if (args != null) { - this.args = new ArrayList(); - for (String item : args) { - this.addToArgs(item); - } - } else { - this.args = null; + public A addAllToPorts(Collection items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); } return (A) this; } - public A withArgs(String... args) { - if (this.args != null) { - this.args.clear(); - _visitables.remove("args"); + public A addAllToResizePolicy(Collection items) { + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); } - if (args != null) { - for (String item : args) { - this.addToArgs(item); - } + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").add(builder); + this.resizePolicy.add(builder); } return (A) this; } - public boolean hasArgs() { - return this.args != null && !(this.args.isEmpty()); - } - - public A addToCommand(int index,String item) { - if (this.command == null) { - this.command = new ArrayList(); + public A addAllToRestartPolicyRules(Collection items) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); } - this.command.add(index, item); - return (A) this; - } - - public A setToCommand(int index,String item) { - if (this.command == null) { - this.command = new ArrayList(); + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.add(builder); } - this.command.set(index, item); return (A) this; } - public A addToCommand(String... items) { - if (this.command == null) { - this.command = new ArrayList(); + public A addAllToVolumeDevices(Collection items) { + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); } - for (String item : items) { - this.command.add(item); + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").add(builder); + this.volumeDevices.add(builder); } return (A) this; } - public A addAllToCommand(Collection items) { - if (this.command == null) { - this.command = new ArrayList(); + public A addAllToVolumeMounts(Collection items) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); } - for (String item : items) { - this.command.add(item); + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); } return (A) this; } - public A removeFromCommand(String... items) { - if (this.command == null) { - return (A) this; - } - for (String item : items) { - this.command.remove(item); - } - return (A) this; + public EnvNested addNewEnv() { + return new EnvNested(-1, null); } - public A removeAllFromCommand(Collection items) { - if (this.command == null) { - return (A) this; - } - for (String item : items) { - this.command.remove(item); - } - return (A) this; + public EnvFromNested addNewEnvFrom() { + return new EnvFromNested(-1, null); } - public List getCommand() { - return this.command; + public EnvFromNested addNewEnvFromLike(V1EnvFromSource item) { + return new EnvFromNested(-1, item); } - public String getCommand(int index) { - return this.command.get(index); + public EnvNested addNewEnvLike(V1EnvVar item) { + return new EnvNested(-1, item); } - public String getFirstCommand() { - return this.command.get(0); + public PortsNested addNewPort() { + return new PortsNested(-1, null); } - public String getLastCommand() { - return this.command.get(command.size() - 1); + public PortsNested addNewPortLike(V1ContainerPort item) { + return new PortsNested(-1, item); } - public String getMatchingCommand(Predicate predicate) { - for (String item : command) { - if (predicate.test(item)) { - return item; - } - } - return null; + public ResizePolicyNested addNewResizePolicy() { + return new ResizePolicyNested(-1, null); } - public boolean hasMatchingCommand(Predicate predicate) { - for (String item : command) { - if (predicate.test(item)) { - return true; - } - } - return false; + public ResizePolicyNested addNewResizePolicyLike(V1ContainerResizePolicy item) { + return new ResizePolicyNested(-1, item); } - public A withCommand(List command) { - if (command != null) { - this.command = new ArrayList(); - for (String item : command) { - this.addToCommand(item); - } - } else { - this.command = null; - } - return (A) this; + public RestartPolicyRulesNested addNewRestartPolicyRule() { + return new RestartPolicyRulesNested(-1, null); } - public A withCommand(String... command) { - if (this.command != null) { - this.command.clear(); - _visitables.remove("command"); + public RestartPolicyRulesNested addNewRestartPolicyRuleLike(V1ContainerRestartRule item) { + return new RestartPolicyRulesNested(-1, item); + } + + public VolumeDevicesNested addNewVolumeDevice() { + return new VolumeDevicesNested(-1, null); + } + + public VolumeDevicesNested addNewVolumeDeviceLike(V1VolumeDevice item) { + return new VolumeDevicesNested(-1, item); + } + + public VolumeMountsNested addNewVolumeMount() { + return new VolumeMountsNested(-1, null); + } + + public VolumeMountsNested addNewVolumeMountLike(V1VolumeMount item) { + return new VolumeMountsNested(-1, item); + } + + public A addToArgs(String... items) { + if (this.args == null) { + this.args = new ArrayList(); } - if (command != null) { - for (String item : command) { - this.addToCommand(item); - } + for (String item : items) { + this.args.add(item); } return (A) this; } - public boolean hasCommand() { - return this.command != null && !(this.command.isEmpty()); + public A addToArgs(int index,String item) { + if (this.args == null) { + this.args = new ArrayList(); + } + this.args.add(index, item); + return (A) this; } - public A addToEnv(int index,V1EnvVar item) { - if (this.env == null) { - this.env = new ArrayList(); + public A addToCommand(String... items) { + if (this.command == null) { + this.command = new ArrayList(); } - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - if (index < 0 || index >= env.size()) { - _visitables.get("env").add(builder); - env.add(builder); - } else { - _visitables.get("env").add(builder); - env.add(index, builder); + for (String item : items) { + this.command.add(item); } return (A) this; } - public A setToEnv(int index,V1EnvVar item) { - if (this.env == null) { - this.env = new ArrayList(); - } - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - if (index < 0 || index >= env.size()) { - _visitables.get("env").add(builder); - env.add(builder); - } else { - _visitables.get("env").add(builder); - env.set(index, builder); + public A addToCommand(int index,String item) { + if (this.command == null) { + this.command = new ArrayList(); } + this.command.add(index, item); return (A) this; } @@ -364,264 +263,189 @@ public A addToEnv(V1EnvVar... items) { return (A) this; } - public A addAllToEnv(Collection items) { + public A addToEnv(int index,V1EnvVar item) { if (this.env == null) { this.env = new ArrayList(); } - for (V1EnvVar item : items) { - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + if (index < 0 || index >= env.size()) { _visitables.get("env").add(builder); - this.env.add(builder); + env.add(builder); + } else { + _visitables.get("env").add(builder); + env.add(index, builder); } return (A) this; } - public A removeFromEnv(V1EnvVar... items) { - if (this.env == null) { - return (A) this; + public A addToEnvFrom(V1EnvFromSource... items) { + if (this.envFrom == null) { + this.envFrom = new ArrayList(); } - for (V1EnvVar item : items) { - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - _visitables.get("env").remove(builder); - this.env.remove(builder); + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").add(builder); + this.envFrom.add(builder); } return (A) this; } - public A removeAllFromEnv(Collection items) { - if (this.env == null) { - return (A) this; + public A addToEnvFrom(int index,V1EnvFromSource item) { + if (this.envFrom == null) { + this.envFrom = new ArrayList(); } - for (V1EnvVar item : items) { - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - _visitables.get("env").remove(builder); - this.env.remove(builder); + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + if (index < 0 || index >= envFrom.size()) { + _visitables.get("envFrom").add(builder); + envFrom.add(builder); + } else { + _visitables.get("envFrom").add(builder); + envFrom.add(index, builder); } return (A) this; } - public A removeMatchingFromEnv(Predicate predicate) { - if (env == null) { - return (A) this; + public A addToPorts(V1ContainerPort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); } - Iterator each = env.iterator(); - List visitables = _visitables.get("env"); - while (each.hasNext()) { - V1EnvVarBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); } return (A) this; } - public List buildEnv() { - return this.env != null ? build(env) : null; - } - - public V1EnvVar buildEnv(int index) { - return this.env.get(index).build(); - } - - public V1EnvVar buildFirstEnv() { - return this.env.get(0).build(); - } - - public V1EnvVar buildLastEnv() { - return this.env.get(env.size() - 1).build(); - } - - public V1EnvVar buildMatchingEnv(Predicate predicate) { - for (V1EnvVarBuilder item : env) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingEnv(Predicate predicate) { - for (V1EnvVarBuilder item : env) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withEnv(List env) { - if (this.env != null) { - this._visitables.get("env").clear(); + public A addToPorts(int index,V1ContainerPort item) { + if (this.ports == null) { + this.ports = new ArrayList(); } - if (env != null) { - this.env = new ArrayList(); - for (V1EnvVar item : env) { - this.addToEnv(item); - } + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); } else { - this.env = null; + _visitables.get("ports").add(builder); + ports.add(index, builder); } return (A) this; } - public A withEnv(V1EnvVar... env) { - if (this.env != null) { - this.env.clear(); - _visitables.remove("env"); + public A addToResizePolicy(V1ContainerResizePolicy... items) { + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); } - if (env != null) { - for (V1EnvVar item : env) { - this.addToEnv(item); - } + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").add(builder); + this.resizePolicy.add(builder); } return (A) this; } - public boolean hasEnv() { - return this.env != null && !(this.env.isEmpty()); + public A addToResizePolicy(int index,V1ContainerResizePolicy item) { + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); + } + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + if (index < 0 || index >= resizePolicy.size()) { + _visitables.get("resizePolicy").add(builder); + resizePolicy.add(builder); + } else { + _visitables.get("resizePolicy").add(builder); + resizePolicy.add(index, builder); + } + return (A) this; } - public EnvNested addNewEnv() { - return new EnvNested(-1, null); + public A addToRestartPolicyRules(V1ContainerRestartRule... items) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.add(builder); + } + return (A) this; } - public EnvNested addNewEnvLike(V1EnvVar item) { - return new EnvNested(-1, item); - } - - public EnvNested setNewEnvLike(int index,V1EnvVar item) { - return new EnvNested(index, item); - } - - public EnvNested editEnv(int index) { - if (index <= env.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "env")); - } - return this.setNewEnvLike(index, this.buildEnv(index)); - } - - public EnvNested editFirstEnv() { - if (env.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "env")); - } - return this.setNewEnvLike(0, this.buildEnv(0)); - } - - public EnvNested editLastEnv() { - int index = env.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "env")); - } - return this.setNewEnvLike(index, this.buildEnv(index)); - } - - public EnvNested editMatchingEnv(Predicate predicate) { - int index = -1; - for (int i = 0;i < env.size();i++) { - if (predicate.test(env.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "env")); - } - return this.setNewEnvLike(index, this.buildEnv(index)); - } - - public A addToEnvFrom(int index,V1EnvFromSource item) { - if (this.envFrom == null) { - this.envFrom = new ArrayList(); + public A addToRestartPolicyRules(int index,V1ContainerRestartRule item) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); } - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - if (index < 0 || index >= envFrom.size()) { - _visitables.get("envFrom").add(builder); - envFrom.add(builder); + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + if (index < 0 || index >= restartPolicyRules.size()) { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.add(builder); } else { - _visitables.get("envFrom").add(builder); - envFrom.add(index, builder); + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.add(index, builder); } return (A) this; } - public A setToEnvFrom(int index,V1EnvFromSource item) { - if (this.envFrom == null) { - this.envFrom = new ArrayList(); + public A addToVolumeDevices(V1VolumeDevice... items) { + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); } - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - if (index < 0 || index >= envFrom.size()) { - _visitables.get("envFrom").add(builder); - envFrom.add(builder); - } else { - _visitables.get("envFrom").add(builder); - envFrom.set(index, builder); + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").add(builder); + this.volumeDevices.add(builder); } return (A) this; } - public A addToEnvFrom(V1EnvFromSource... items) { - if (this.envFrom == null) { - this.envFrom = new ArrayList(); + public A addToVolumeDevices(int index,V1VolumeDevice item) { + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); } - for (V1EnvFromSource item : items) { - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").add(builder); - this.envFrom.add(builder); + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + if (index < 0 || index >= volumeDevices.size()) { + _visitables.get("volumeDevices").add(builder); + volumeDevices.add(builder); + } else { + _visitables.get("volumeDevices").add(builder); + volumeDevices.add(index, builder); } return (A) this; } - public A addAllToEnvFrom(Collection items) { - if (this.envFrom == null) { - this.envFrom = new ArrayList(); + public A addToVolumeMounts(V1VolumeMount... items) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); } - for (V1EnvFromSource item : items) { - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").add(builder); - this.envFrom.add(builder); + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); } return (A) this; } - public A removeFromEnvFrom(V1EnvFromSource... items) { - if (this.envFrom == null) { - return (A) this; + public A addToVolumeMounts(int index,V1VolumeMount item) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); } - for (V1EnvFromSource item : items) { - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").remove(builder); - this.envFrom.remove(builder); + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + if (index < 0 || index >= volumeMounts.size()) { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(builder); + } else { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(index, builder); } return (A) this; } - public A removeAllFromEnvFrom(Collection items) { - if (this.envFrom == null) { - return (A) this; - } - for (V1EnvFromSource item : items) { - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").remove(builder); - this.envFrom.remove(builder); - } - return (A) this; + public List buildEnv() { + return this.env != null ? build(env) : null; } - public A removeMatchingFromEnvFrom(Predicate predicate) { - if (envFrom == null) { - return (A) this; - } - Iterator each = envFrom.iterator(); - List visitables = _visitables.get("envFrom"); - while (each.hasNext()) { - V1EnvFromSourceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1EnvVar buildEnv(int index) { + return this.env.get(index).build(); } public List buildEnvFrom() { @@ -632,423 +456,373 @@ public V1EnvFromSource buildEnvFrom(int index) { return this.envFrom.get(index).build(); } + public V1EnvVar buildFirstEnv() { + return this.env.get(0).build(); + } + public V1EnvFromSource buildFirstEnvFrom() { return this.envFrom.get(0).build(); } - public V1EnvFromSource buildLastEnvFrom() { - return this.envFrom.get(envFrom.size() - 1).build(); + public V1ContainerPort buildFirstPort() { + return this.ports.get(0).build(); } - public V1EnvFromSource buildMatchingEnvFrom(Predicate predicate) { - for (V1EnvFromSourceBuilder item : envFrom) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1ContainerResizePolicy buildFirstResizePolicy() { + return this.resizePolicy.get(0).build(); } - public boolean hasMatchingEnvFrom(Predicate predicate) { - for (V1EnvFromSourceBuilder item : envFrom) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ContainerRestartRule buildFirstRestartPolicyRule() { + return this.restartPolicyRules.get(0).build(); } - public A withEnvFrom(List envFrom) { - if (this.envFrom != null) { - this._visitables.get("envFrom").clear(); - } - if (envFrom != null) { - this.envFrom = new ArrayList(); - for (V1EnvFromSource item : envFrom) { - this.addToEnvFrom(item); - } - } else { - this.envFrom = null; - } - return (A) this; + public V1VolumeDevice buildFirstVolumeDevice() { + return this.volumeDevices.get(0).build(); } - public A withEnvFrom(V1EnvFromSource... envFrom) { - if (this.envFrom != null) { - this.envFrom.clear(); - _visitables.remove("envFrom"); - } - if (envFrom != null) { - for (V1EnvFromSource item : envFrom) { - this.addToEnvFrom(item); - } - } - return (A) this; + public V1VolumeMount buildFirstVolumeMount() { + return this.volumeMounts.get(0).build(); } - public boolean hasEnvFrom() { - return this.envFrom != null && !(this.envFrom.isEmpty()); + public V1EnvVar buildLastEnv() { + return this.env.get(env.size() - 1).build(); } - public EnvFromNested addNewEnvFrom() { - return new EnvFromNested(-1, null); + public V1EnvFromSource buildLastEnvFrom() { + return this.envFrom.get(envFrom.size() - 1).build(); } - public EnvFromNested addNewEnvFromLike(V1EnvFromSource item) { - return new EnvFromNested(-1, item); + public V1ContainerPort buildLastPort() { + return this.ports.get(ports.size() - 1).build(); } - public EnvFromNested setNewEnvFromLike(int index,V1EnvFromSource item) { - return new EnvFromNested(index, item); + public V1ContainerResizePolicy buildLastResizePolicy() { + return this.resizePolicy.get(resizePolicy.size() - 1).build(); } - public EnvFromNested editEnvFrom(int index) { - if (index <= envFrom.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "envFrom")); - } - return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); + public V1ContainerRestartRule buildLastRestartPolicyRule() { + return this.restartPolicyRules.get(restartPolicyRules.size() - 1).build(); } - public EnvFromNested editFirstEnvFrom() { - if (envFrom.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "envFrom")); - } - return this.setNewEnvFromLike(0, this.buildEnvFrom(0)); + public V1VolumeDevice buildLastVolumeDevice() { + return this.volumeDevices.get(volumeDevices.size() - 1).build(); } - public EnvFromNested editLastEnvFrom() { - int index = envFrom.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "envFrom")); - } - return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); + public V1VolumeMount buildLastVolumeMount() { + return this.volumeMounts.get(volumeMounts.size() - 1).build(); } - public EnvFromNested editMatchingEnvFrom(Predicate predicate) { - int index = -1; - for (int i = 0;i < envFrom.size();i++) { - if (predicate.test(envFrom.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "envFrom")); - } - return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); + public V1Lifecycle buildLifecycle() { + return this.lifecycle != null ? this.lifecycle.build() : null; } - public String getImage() { - return this.image; + public V1Probe buildLivenessProbe() { + return this.livenessProbe != null ? this.livenessProbe.build() : null; } - public A withImage(String image) { - this.image = image; - return (A) this; + public V1EnvVar buildMatchingEnv(Predicate predicate) { + for (V1EnvVarBuilder item : env) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public boolean hasImage() { - return this.image != null; + public V1EnvFromSource buildMatchingEnvFrom(Predicate predicate) { + for (V1EnvFromSourceBuilder item : envFrom) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public String getImagePullPolicy() { - return this.imagePullPolicy; + public V1ContainerPort buildMatchingPort(Predicate predicate) { + for (V1ContainerPortBuilder item : ports) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public A withImagePullPolicy(String imagePullPolicy) { - this.imagePullPolicy = imagePullPolicy; - return (A) this; + public V1ContainerResizePolicy buildMatchingResizePolicy(Predicate predicate) { + for (V1ContainerResizePolicyBuilder item : resizePolicy) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public boolean hasImagePullPolicy() { - return this.imagePullPolicy != null; + public V1ContainerRestartRule buildMatchingRestartPolicyRule(Predicate predicate) { + for (V1ContainerRestartRuleBuilder item : restartPolicyRules) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public V1Lifecycle buildLifecycle() { - return this.lifecycle != null ? this.lifecycle.build() : null; + public V1VolumeDevice buildMatchingVolumeDevice(Predicate predicate) { + for (V1VolumeDeviceBuilder item : volumeDevices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public A withLifecycle(V1Lifecycle lifecycle) { - this._visitables.remove("lifecycle"); - if (lifecycle != null) { - this.lifecycle = new V1LifecycleBuilder(lifecycle); - this._visitables.get("lifecycle").add(this.lifecycle); - } else { - this.lifecycle = null; - this._visitables.get("lifecycle").remove(this.lifecycle); - } - return (A) this; + public V1VolumeMount buildMatchingVolumeMount(Predicate predicate) { + for (V1VolumeMountBuilder item : volumeMounts) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public boolean hasLifecycle() { - return this.lifecycle != null; + public V1ContainerPort buildPort(int index) { + return this.ports.get(index).build(); } - public LifecycleNested withNewLifecycle() { - return new LifecycleNested(null); + public List buildPorts() { + return this.ports != null ? build(ports) : null; } - public LifecycleNested withNewLifecycleLike(V1Lifecycle item) { - return new LifecycleNested(item); + public V1Probe buildReadinessProbe() { + return this.readinessProbe != null ? this.readinessProbe.build() : null; } - public LifecycleNested editLifecycle() { - return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(null)); + public List buildResizePolicy() { + return this.resizePolicy != null ? build(resizePolicy) : null; } - public LifecycleNested editOrNewLifecycle() { - return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(new V1LifecycleBuilder().build())); + public V1ContainerResizePolicy buildResizePolicy(int index) { + return this.resizePolicy.get(index).build(); } - public LifecycleNested editOrNewLifecycleLike(V1Lifecycle item) { - return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(item)); + public V1ResourceRequirements buildResources() { + return this.resources != null ? this.resources.build() : null; } - public V1Probe buildLivenessProbe() { - return this.livenessProbe != null ? this.livenessProbe.build() : null; + public V1ContainerRestartRule buildRestartPolicyRule(int index) { + return this.restartPolicyRules.get(index).build(); } - public A withLivenessProbe(V1Probe livenessProbe) { - this._visitables.remove("livenessProbe"); - if (livenessProbe != null) { - this.livenessProbe = new V1ProbeBuilder(livenessProbe); - this._visitables.get("livenessProbe").add(this.livenessProbe); - } else { - this.livenessProbe = null; - this._visitables.get("livenessProbe").remove(this.livenessProbe); - } - return (A) this; + public List buildRestartPolicyRules() { + return this.restartPolicyRules != null ? build(restartPolicyRules) : null; } - public boolean hasLivenessProbe() { - return this.livenessProbe != null; + public V1SecurityContext buildSecurityContext() { + return this.securityContext != null ? this.securityContext.build() : null; } - public LivenessProbeNested withNewLivenessProbe() { - return new LivenessProbeNested(null); + public V1Probe buildStartupProbe() { + return this.startupProbe != null ? this.startupProbe.build() : null; } - public LivenessProbeNested withNewLivenessProbeLike(V1Probe item) { - return new LivenessProbeNested(item); + public V1VolumeDevice buildVolumeDevice(int index) { + return this.volumeDevices.get(index).build(); } - public LivenessProbeNested editLivenessProbe() { - return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(null)); + public List buildVolumeDevices() { + return this.volumeDevices != null ? build(volumeDevices) : null; } - public LivenessProbeNested editOrNewLivenessProbe() { - return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(new V1ProbeBuilder().build())); + public V1VolumeMount buildVolumeMount(int index) { + return this.volumeMounts.get(index).build(); } - public LivenessProbeNested editOrNewLivenessProbeLike(V1Probe item) { - return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(item)); + public List buildVolumeMounts() { + return this.volumeMounts != null ? build(volumeMounts) : null; } - public String getName() { - return this.name; + protected void copyInstance(V1Container instance) { + instance = instance != null ? instance : new V1Container(); + if (instance != null) { + this.withArgs(instance.getArgs()); + this.withCommand(instance.getCommand()); + this.withEnv(instance.getEnv()); + this.withEnvFrom(instance.getEnvFrom()); + this.withImage(instance.getImage()); + this.withImagePullPolicy(instance.getImagePullPolicy()); + this.withLifecycle(instance.getLifecycle()); + this.withLivenessProbe(instance.getLivenessProbe()); + this.withName(instance.getName()); + this.withPorts(instance.getPorts()); + this.withReadinessProbe(instance.getReadinessProbe()); + this.withResizePolicy(instance.getResizePolicy()); + this.withResources(instance.getResources()); + this.withRestartPolicy(instance.getRestartPolicy()); + this.withRestartPolicyRules(instance.getRestartPolicyRules()); + this.withSecurityContext(instance.getSecurityContext()); + this.withStartupProbe(instance.getStartupProbe()); + this.withStdin(instance.getStdin()); + this.withStdinOnce(instance.getStdinOnce()); + this.withTerminationMessagePath(instance.getTerminationMessagePath()); + this.withTerminationMessagePolicy(instance.getTerminationMessagePolicy()); + this.withTty(instance.getTty()); + this.withVolumeDevices(instance.getVolumeDevices()); + this.withVolumeMounts(instance.getVolumeMounts()); + this.withWorkingDir(instance.getWorkingDir()); + } } - public A withName(String name) { - this.name = name; - return (A) this; + public EnvNested editEnv(int index) { + if (env.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "env")); + } + return this.setNewEnvLike(index, this.buildEnv(index)); } - public boolean hasName() { - return this.name != null; + public EnvFromNested editEnvFrom(int index) { + if (envFrom.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "envFrom")); + } + return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); } - public A addToPorts(int index,V1ContainerPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); - } else { - _visitables.get("ports").add(builder); - ports.add(index, builder); + public EnvNested editFirstEnv() { + if (env.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "env")); } - return (A) this; + return this.setNewEnvLike(0, this.buildEnv(0)); } - public A setToPorts(int index,V1ContainerPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); - } else { - _visitables.get("ports").add(builder); - ports.set(index, builder); + public EnvFromNested editFirstEnvFrom() { + if (envFrom.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "envFrom")); } - return (A) this; + return this.setNewEnvFromLike(0, this.buildEnvFrom(0)); } - public A addToPorts(V1ContainerPort... items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (V1ContainerPort item : items) { - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); + public PortsNested editFirstPort() { + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); } - return (A) this; + return this.setNewPortLike(0, this.buildPort(0)); } - public A addAllToPorts(Collection items) { - if (this.ports == null) { - this.ports = new ArrayList(); + public ResizePolicyNested editFirstResizePolicy() { + if (resizePolicy.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resizePolicy")); } - for (V1ContainerPort item : items) { - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); + return this.setNewResizePolicyLike(0, this.buildResizePolicy(0)); + } + + public RestartPolicyRulesNested editFirstRestartPolicyRule() { + if (restartPolicyRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "restartPolicyRules")); } - return (A) this; + return this.setNewRestartPolicyRuleLike(0, this.buildRestartPolicyRule(0)); } - public A removeFromPorts(V1ContainerPort... items) { - if (this.ports == null) { - return (A) this; + public VolumeDevicesNested editFirstVolumeDevice() { + if (volumeDevices.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeDevices")); } - for (V1ContainerPort item : items) { - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").remove(builder); - this.ports.remove(builder); - } - return (A) this; + return this.setNewVolumeDeviceLike(0, this.buildVolumeDevice(0)); } - public A removeAllFromPorts(Collection items) { - if (this.ports == null) { - return (A) this; - } - for (V1ContainerPort item : items) { - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").remove(builder); - this.ports.remove(builder); + public VolumeMountsNested editFirstVolumeMount() { + if (volumeMounts.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeMounts")); } - return (A) this; + return this.setNewVolumeMountLike(0, this.buildVolumeMount(0)); } - public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) { - return (A) this; - } - Iterator each = ports.iterator(); - List visitables = _visitables.get("ports"); - while (each.hasNext()) { - V1ContainerPortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public EnvNested editLastEnv() { + int index = env.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "env")); } - return (A) this; - } - - public List buildPorts() { - return this.ports != null ? build(ports) : null; - } - - public V1ContainerPort buildPort(int index) { - return this.ports.get(index).build(); - } - - public V1ContainerPort buildFirstPort() { - return this.ports.get(0).build(); - } - - public V1ContainerPort buildLastPort() { - return this.ports.get(ports.size() - 1).build(); + return this.setNewEnvLike(index, this.buildEnv(index)); } - public V1ContainerPort buildMatchingPort(Predicate predicate) { - for (V1ContainerPortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public EnvFromNested editLastEnvFrom() { + int index = envFrom.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "envFrom")); + } + return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); } - public boolean hasMatchingPort(Predicate predicate) { - for (V1ContainerPortBuilder item : ports) { - if (predicate.test(item)) { - return true; - } - } - return false; + public PortsNested editLastPort() { + int index = ports.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public A withPorts(List ports) { - if (this.ports != null) { - this._visitables.get("ports").clear(); - } - if (ports != null) { - this.ports = new ArrayList(); - for (V1ContainerPort item : ports) { - this.addToPorts(item); - } - } else { - this.ports = null; + public ResizePolicyNested editLastResizePolicy() { + int index = resizePolicy.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resizePolicy")); } - return (A) this; + return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); } - public A withPorts(V1ContainerPort... ports) { - if (this.ports != null) { - this.ports.clear(); - _visitables.remove("ports"); - } - if (ports != null) { - for (V1ContainerPort item : ports) { - this.addToPorts(item); - } + public RestartPolicyRulesNested editLastRestartPolicyRule() { + int index = restartPolicyRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "restartPolicyRules")); } - return (A) this; + return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); } - public boolean hasPorts() { - return this.ports != null && !(this.ports.isEmpty()); + public VolumeDevicesNested editLastVolumeDevice() { + int index = volumeDevices.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeDevices")); + } + return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); } - public PortsNested addNewPort() { - return new PortsNested(-1, null); + public VolumeMountsNested editLastVolumeMount() { + int index = volumeMounts.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } - public PortsNested addNewPortLike(V1ContainerPort item) { - return new PortsNested(-1, item); + public LifecycleNested editLifecycle() { + return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(null)); } - public PortsNested setNewPortLike(int index,V1ContainerPort item) { - return new PortsNested(index, item); + public LivenessProbeNested editLivenessProbe() { + return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(null)); } - public PortsNested editPort(int index) { - if (index <= ports.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + public EnvNested editMatchingEnv(Predicate predicate) { + int index = -1; + for (int i = 0;i < env.size();i++) { + if (predicate.test(env.get(i))) { + index = i; + break; + } } - return this.setNewPortLike(index, this.buildPort(index)); - } - - public PortsNested editFirstPort() { - if (ports.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "env")); } - return this.setNewPortLike(0, this.buildPort(0)); + return this.setNewEnvLike(index, this.buildEnv(index)); } - public PortsNested editLastPort() { - int index = ports.size() - 1; + public EnvFromNested editMatchingEnvFrom(Predicate predicate) { + int index = -1; + for (int i = 0;i < envFrom.size();i++) { + if (predicate.test(envFrom.get(i))) { + index = i; + break; + } + } if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "envFrom")); } - return this.setNewPortLike(index, this.buildPort(index)); + return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); } public PortsNested editMatchingPort(Predicate predicate) { @@ -1065,36 +839,76 @@ public PortsNested editMatchingPort(Predicate predica return this.setNewPortLike(index, this.buildPort(index)); } - public V1Probe buildReadinessProbe() { - return this.readinessProbe != null ? this.readinessProbe.build() : null; + public ResizePolicyNested editMatchingResizePolicy(Predicate predicate) { + int index = -1; + for (int i = 0;i < resizePolicy.size();i++) { + if (predicate.test(resizePolicy.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resizePolicy")); + } + return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); } - public A withReadinessProbe(V1Probe readinessProbe) { - this._visitables.remove("readinessProbe"); - if (readinessProbe != null) { - this.readinessProbe = new V1ProbeBuilder(readinessProbe); - this._visitables.get("readinessProbe").add(this.readinessProbe); - } else { - this.readinessProbe = null; - this._visitables.get("readinessProbe").remove(this.readinessProbe); + public RestartPolicyRulesNested editMatchingRestartPolicyRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < restartPolicyRules.size();i++) { + if (predicate.test(restartPolicyRules.get(i))) { + index = i; + break; + } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "restartPolicyRules")); + } + return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); } - public boolean hasReadinessProbe() { - return this.readinessProbe != null; + public VolumeDevicesNested editMatchingVolumeDevice(Predicate predicate) { + int index = -1; + for (int i = 0;i < volumeDevices.size();i++) { + if (predicate.test(volumeDevices.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumeDevices")); + } + return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); } - public ReadinessProbeNested withNewReadinessProbe() { - return new ReadinessProbeNested(null); + public VolumeMountsNested editMatchingVolumeMount(Predicate predicate) { + int index = -1; + for (int i = 0;i < volumeMounts.size();i++) { + if (predicate.test(volumeMounts.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } - public ReadinessProbeNested withNewReadinessProbeLike(V1Probe item) { - return new ReadinessProbeNested(item); + public LifecycleNested editOrNewLifecycle() { + return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(new V1LifecycleBuilder().build())); } - public ReadinessProbeNested editReadinessProbe() { - return this.withNewReadinessProbeLike(Optional.ofNullable(this.buildReadinessProbe()).orElse(null)); + public LifecycleNested editOrNewLifecycleLike(V1Lifecycle item) { + return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(item)); + } + + public LivenessProbeNested editOrNewLivenessProbe() { + return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(new V1ProbeBuilder().build())); + } + + public LivenessProbeNested editOrNewLivenessProbeLike(V1Probe item) { + return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(item)); } public ReadinessProbeNested editOrNewReadinessProbe() { @@ -1105,388 +919,312 @@ public ReadinessProbeNested editOrNewReadinessProbeLike(V1Probe item) { return this.withNewReadinessProbeLike(Optional.ofNullable(this.buildReadinessProbe()).orElse(item)); } - public A addToResizePolicy(int index,V1ContainerResizePolicy item) { - if (this.resizePolicy == null) { - this.resizePolicy = new ArrayList(); - } - V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - if (index < 0 || index >= resizePolicy.size()) { - _visitables.get("resizePolicy").add(builder); - resizePolicy.add(builder); - } else { - _visitables.get("resizePolicy").add(builder); - resizePolicy.add(index, builder); - } - return (A) this; + public ResourcesNested editOrNewResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); } - public A setToResizePolicy(int index,V1ContainerResizePolicy item) { - if (this.resizePolicy == null) { - this.resizePolicy = new ArrayList(); - } - V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - if (index < 0 || index >= resizePolicy.size()) { - _visitables.get("resizePolicy").add(builder); - resizePolicy.add(builder); - } else { - _visitables.get("resizePolicy").add(builder); - resizePolicy.set(index, builder); - } - return (A) this; + public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); } - public A addToResizePolicy(V1ContainerResizePolicy... items) { - if (this.resizePolicy == null) { - this.resizePolicy = new ArrayList(); - } - for (V1ContainerResizePolicy item : items) { - V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - _visitables.get("resizePolicy").add(builder); - this.resizePolicy.add(builder); - } - return (A) this; + public SecurityContextNested editOrNewSecurityContext() { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(new V1SecurityContextBuilder().build())); } - public A addAllToResizePolicy(Collection items) { - if (this.resizePolicy == null) { - this.resizePolicy = new ArrayList(); - } - for (V1ContainerResizePolicy item : items) { - V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - _visitables.get("resizePolicy").add(builder); - this.resizePolicy.add(builder); - } - return (A) this; + public SecurityContextNested editOrNewSecurityContextLike(V1SecurityContext item) { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(item)); } - public A removeFromResizePolicy(V1ContainerResizePolicy... items) { - if (this.resizePolicy == null) { - return (A) this; - } - for (V1ContainerResizePolicy item : items) { - V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - _visitables.get("resizePolicy").remove(builder); - this.resizePolicy.remove(builder); - } - return (A) this; + public StartupProbeNested editOrNewStartupProbe() { + return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(new V1ProbeBuilder().build())); } - public A removeAllFromResizePolicy(Collection items) { - if (this.resizePolicy == null) { - return (A) this; - } - for (V1ContainerResizePolicy item : items) { - V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - _visitables.get("resizePolicy").remove(builder); - this.resizePolicy.remove(builder); - } - return (A) this; + public StartupProbeNested editOrNewStartupProbeLike(V1Probe item) { + return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(item)); } - public A removeMatchingFromResizePolicy(Predicate predicate) { - if (resizePolicy == null) { - return (A) this; - } - Iterator each = resizePolicy.iterator(); - List visitables = _visitables.get("resizePolicy"); - while (each.hasNext()) { - V1ContainerResizePolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public PortsNested editPort(int index) { + if (ports.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); } - return (A) this; + return this.setNewPortLike(index, this.buildPort(index)); } - public List buildResizePolicy() { - return this.resizePolicy != null ? build(resizePolicy) : null; + public ReadinessProbeNested editReadinessProbe() { + return this.withNewReadinessProbeLike(Optional.ofNullable(this.buildReadinessProbe()).orElse(null)); } - public V1ContainerResizePolicy buildResizePolicy(int index) { - return this.resizePolicy.get(index).build(); + public ResizePolicyNested editResizePolicy(int index) { + if (resizePolicy.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resizePolicy")); + } + return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); } - public V1ContainerResizePolicy buildFirstResizePolicy() { - return this.resizePolicy.get(0).build(); + public ResourcesNested editResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); } - public V1ContainerResizePolicy buildLastResizePolicy() { - return this.resizePolicy.get(resizePolicy.size() - 1).build(); + public RestartPolicyRulesNested editRestartPolicyRule(int index) { + if (restartPolicyRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "restartPolicyRules")); + } + return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); } - public V1ContainerResizePolicy buildMatchingResizePolicy(Predicate predicate) { - for (V1ContainerResizePolicyBuilder item : resizePolicy) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public SecurityContextNested editSecurityContext() { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(null)); } - public boolean hasMatchingResizePolicy(Predicate predicate) { - for (V1ContainerResizePolicyBuilder item : resizePolicy) { - if (predicate.test(item)) { - return true; - } - } - return false; + public StartupProbeNested editStartupProbe() { + return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(null)); } - public A withResizePolicy(List resizePolicy) { - if (this.resizePolicy != null) { - this._visitables.get("resizePolicy").clear(); + public VolumeDevicesNested editVolumeDevice(int index) { + if (volumeDevices.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeDevices")); } - if (resizePolicy != null) { - this.resizePolicy = new ArrayList(); - for (V1ContainerResizePolicy item : resizePolicy) { - this.addToResizePolicy(item); - } - } else { - this.resizePolicy = null; + return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); + } + + public VolumeMountsNested editVolumeMount(int index) { + if (volumeMounts.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeMounts")); } - return (A) this; + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } - public A withResizePolicy(V1ContainerResizePolicy... resizePolicy) { - if (this.resizePolicy != null) { - this.resizePolicy.clear(); - _visitables.remove("resizePolicy"); + public boolean equals(Object o) { + if (this == o) { + return true; } - if (resizePolicy != null) { - for (V1ContainerResizePolicy item : resizePolicy) { - this.addToResizePolicy(item); - } + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1ContainerFluent that = (V1ContainerFluent) o; + if (!(Objects.equals(args, that.args))) { + return false; + } + if (!(Objects.equals(command, that.command))) { + return false; + } + if (!(Objects.equals(env, that.env))) { + return false; + } + if (!(Objects.equals(envFrom, that.envFrom))) { + return false; + } + if (!(Objects.equals(image, that.image))) { + return false; + } + if (!(Objects.equals(imagePullPolicy, that.imagePullPolicy))) { + return false; + } + if (!(Objects.equals(lifecycle, that.lifecycle))) { + return false; + } + if (!(Objects.equals(livenessProbe, that.livenessProbe))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(ports, that.ports))) { + return false; + } + if (!(Objects.equals(readinessProbe, that.readinessProbe))) { + return false; + } + if (!(Objects.equals(resizePolicy, that.resizePolicy))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(restartPolicy, that.restartPolicy))) { + return false; + } + if (!(Objects.equals(restartPolicyRules, that.restartPolicyRules))) { + return false; + } + if (!(Objects.equals(securityContext, that.securityContext))) { + return false; + } + if (!(Objects.equals(startupProbe, that.startupProbe))) { + return false; + } + if (!(Objects.equals(stdin, that.stdin))) { + return false; + } + if (!(Objects.equals(stdinOnce, that.stdinOnce))) { + return false; + } + if (!(Objects.equals(terminationMessagePath, that.terminationMessagePath))) { + return false; + } + if (!(Objects.equals(terminationMessagePolicy, that.terminationMessagePolicy))) { + return false; + } + if (!(Objects.equals(tty, that.tty))) { + return false; + } + if (!(Objects.equals(volumeDevices, that.volumeDevices))) { + return false; + } + if (!(Objects.equals(volumeMounts, that.volumeMounts))) { + return false; + } + if (!(Objects.equals(workingDir, that.workingDir))) { + return false; + } + return true; } - public boolean hasResizePolicy() { - return this.resizePolicy != null && !(this.resizePolicy.isEmpty()); + public String getArg(int index) { + return this.args.get(index); } - public ResizePolicyNested addNewResizePolicy() { - return new ResizePolicyNested(-1, null); + public List getArgs() { + return this.args; } - public ResizePolicyNested addNewResizePolicyLike(V1ContainerResizePolicy item) { - return new ResizePolicyNested(-1, item); + public List getCommand() { + return this.command; } - public ResizePolicyNested setNewResizePolicyLike(int index,V1ContainerResizePolicy item) { - return new ResizePolicyNested(index, item); + public String getCommand(int index) { + return this.command.get(index); } - public ResizePolicyNested editResizePolicy(int index) { - if (index <= resizePolicy.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resizePolicy")); - } - return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); - } - - public ResizePolicyNested editFirstResizePolicy() { - if (resizePolicy.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resizePolicy")); - } - return this.setNewResizePolicyLike(0, this.buildResizePolicy(0)); + public String getFirstArg() { + return this.args.get(0); } - public ResizePolicyNested editLastResizePolicy() { - int index = resizePolicy.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resizePolicy")); - } - return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); + public String getFirstCommand() { + return this.command.get(0); } - public ResizePolicyNested editMatchingResizePolicy(Predicate predicate) { - int index = -1; - for (int i = 0;i < resizePolicy.size();i++) { - if (predicate.test(resizePolicy.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resizePolicy")); - } - return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); + public String getImage() { + return this.image; } - public V1ResourceRequirements buildResources() { - return this.resources != null ? this.resources.build() : null; + public String getImagePullPolicy() { + return this.imagePullPolicy; } - public A withResources(V1ResourceRequirements resources) { - this._visitables.remove("resources"); - if (resources != null) { - this.resources = new V1ResourceRequirementsBuilder(resources); - this._visitables.get("resources").add(this.resources); - } else { - this.resources = null; - this._visitables.get("resources").remove(this.resources); - } - return (A) this; + public String getLastArg() { + return this.args.get(args.size() - 1); } - public boolean hasResources() { - return this.resources != null; + public String getLastCommand() { + return this.command.get(command.size() - 1); } - public ResourcesNested withNewResources() { - return new ResourcesNested(null); + public String getMatchingArg(Predicate predicate) { + for (String item : args) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { - return new ResourcesNested(item); + public String getMatchingCommand(Predicate predicate) { + for (String item : command) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public ResourcesNested editResources() { - return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); + public String getName() { + return this.name; } - public ResourcesNested editOrNewResources() { - return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); + public String getRestartPolicy() { + return this.restartPolicy; } - public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { - return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); + public Boolean getStdin() { + return this.stdin; } - public String getRestartPolicy() { - return this.restartPolicy; + public Boolean getStdinOnce() { + return this.stdinOnce; } - public A withRestartPolicy(String restartPolicy) { - this.restartPolicy = restartPolicy; - return (A) this; + public String getTerminationMessagePath() { + return this.terminationMessagePath; } - public boolean hasRestartPolicy() { - return this.restartPolicy != null; + public String getTerminationMessagePolicy() { + return this.terminationMessagePolicy; } - public A addToRestartPolicyRules(int index,V1ContainerRestartRule item) { - if (this.restartPolicyRules == null) { - this.restartPolicyRules = new ArrayList(); - } - V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - if (index < 0 || index >= restartPolicyRules.size()) { - _visitables.get("restartPolicyRules").add(builder); - restartPolicyRules.add(builder); - } else { - _visitables.get("restartPolicyRules").add(builder); - restartPolicyRules.add(index, builder); - } - return (A) this; + public Boolean getTty() { + return this.tty; } - public A setToRestartPolicyRules(int index,V1ContainerRestartRule item) { - if (this.restartPolicyRules == null) { - this.restartPolicyRules = new ArrayList(); - } - V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - if (index < 0 || index >= restartPolicyRules.size()) { - _visitables.get("restartPolicyRules").add(builder); - restartPolicyRules.add(builder); - } else { - _visitables.get("restartPolicyRules").add(builder); - restartPolicyRules.set(index, builder); - } - return (A) this; + public String getWorkingDir() { + return this.workingDir; } - public A addToRestartPolicyRules(V1ContainerRestartRule... items) { - if (this.restartPolicyRules == null) { - this.restartPolicyRules = new ArrayList(); - } - for (V1ContainerRestartRule item : items) { - V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - _visitables.get("restartPolicyRules").add(builder); - this.restartPolicyRules.add(builder); - } - return (A) this; + public boolean hasArgs() { + return this.args != null && !(this.args.isEmpty()); } - public A addAllToRestartPolicyRules(Collection items) { - if (this.restartPolicyRules == null) { - this.restartPolicyRules = new ArrayList(); - } - for (V1ContainerRestartRule item : items) { - V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - _visitables.get("restartPolicyRules").add(builder); - this.restartPolicyRules.add(builder); - } - return (A) this; + public boolean hasCommand() { + return this.command != null && !(this.command.isEmpty()); } - public A removeFromRestartPolicyRules(V1ContainerRestartRule... items) { - if (this.restartPolicyRules == null) { - return (A) this; - } - for (V1ContainerRestartRule item : items) { - V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - _visitables.get("restartPolicyRules").remove(builder); - this.restartPolicyRules.remove(builder); - } - return (A) this; + public boolean hasEnv() { + return this.env != null && !(this.env.isEmpty()); } - public A removeAllFromRestartPolicyRules(Collection items) { - if (this.restartPolicyRules == null) { - return (A) this; - } - for (V1ContainerRestartRule item : items) { - V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - _visitables.get("restartPolicyRules").remove(builder); - this.restartPolicyRules.remove(builder); - } - return (A) this; + public boolean hasEnvFrom() { + return this.envFrom != null && !(this.envFrom.isEmpty()); } - public A removeMatchingFromRestartPolicyRules(Predicate predicate) { - if (restartPolicyRules == null) { - return (A) this; - } - Iterator each = restartPolicyRules.iterator(); - List visitables = _visitables.get("restartPolicyRules"); - while (each.hasNext()) { - V1ContainerRestartRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public boolean hasImage() { + return this.image != null; } - public List buildRestartPolicyRules() { - return this.restartPolicyRules != null ? build(restartPolicyRules) : null; + public boolean hasImagePullPolicy() { + return this.imagePullPolicy != null; } - public V1ContainerRestartRule buildRestartPolicyRule(int index) { - return this.restartPolicyRules.get(index).build(); + public boolean hasLifecycle() { + return this.lifecycle != null; } - public V1ContainerRestartRule buildFirstRestartPolicyRule() { - return this.restartPolicyRules.get(0).build(); + public boolean hasLivenessProbe() { + return this.livenessProbe != null; } - public V1ContainerRestartRule buildLastRestartPolicyRule() { - return this.restartPolicyRules.get(restartPolicyRules.size() - 1).build(); + public boolean hasMatchingArg(Predicate predicate) { + for (String item : args) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public V1ContainerRestartRule buildMatchingRestartPolicyRule(Predicate predicate) { - for (V1ContainerRestartRuleBuilder item : restartPolicyRules) { + public boolean hasMatchingCommand(Predicate predicate) { + for (String item : command) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } - public boolean hasMatchingRestartPolicyRule(Predicate predicate) { - for (V1ContainerRestartRuleBuilder item : restartPolicyRules) { + public boolean hasMatchingEnv(Predicate predicate) { + for (V1EnvVarBuilder item : env) { if (predicate.test(item)) { return true; } @@ -1494,506 +1232,329 @@ public boolean hasMatchingRestartPolicyRule(Predicate restartPolicyRules) { - if (this.restartPolicyRules != null) { - this._visitables.get("restartPolicyRules").clear(); - } - if (restartPolicyRules != null) { - this.restartPolicyRules = new ArrayList(); - for (V1ContainerRestartRule item : restartPolicyRules) { - this.addToRestartPolicyRules(item); + public boolean hasMatchingEnvFrom(Predicate predicate) { + for (V1EnvFromSourceBuilder item : envFrom) { + if (predicate.test(item)) { + return true; } - } else { - this.restartPolicyRules = null; - } - return (A) this; + } + return false; } - public A withRestartPolicyRules(V1ContainerRestartRule... restartPolicyRules) { - if (this.restartPolicyRules != null) { - this.restartPolicyRules.clear(); - _visitables.remove("restartPolicyRules"); - } - if (restartPolicyRules != null) { - for (V1ContainerRestartRule item : restartPolicyRules) { - this.addToRestartPolicyRules(item); + public boolean hasMatchingPort(Predicate predicate) { + for (V1ContainerPortBuilder item : ports) { + if (predicate.test(item)) { + return true; + } } - } - return (A) this; + return false; } - public boolean hasRestartPolicyRules() { - return this.restartPolicyRules != null && !(this.restartPolicyRules.isEmpty()); - } - - public RestartPolicyRulesNested addNewRestartPolicyRule() { - return new RestartPolicyRulesNested(-1, null); - } - - public RestartPolicyRulesNested addNewRestartPolicyRuleLike(V1ContainerRestartRule item) { - return new RestartPolicyRulesNested(-1, item); - } - - public RestartPolicyRulesNested setNewRestartPolicyRuleLike(int index,V1ContainerRestartRule item) { - return new RestartPolicyRulesNested(index, item); - } - - public RestartPolicyRulesNested editRestartPolicyRule(int index) { - if (index <= restartPolicyRules.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "restartPolicyRules")); - } - return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); - } - - public RestartPolicyRulesNested editFirstRestartPolicyRule() { - if (restartPolicyRules.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "restartPolicyRules")); - } - return this.setNewRestartPolicyRuleLike(0, this.buildRestartPolicyRule(0)); - } - - public RestartPolicyRulesNested editLastRestartPolicyRule() { - int index = restartPolicyRules.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "restartPolicyRules")); - } - return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); + public boolean hasMatchingResizePolicy(Predicate predicate) { + for (V1ContainerResizePolicyBuilder item : resizePolicy) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public RestartPolicyRulesNested editMatchingRestartPolicyRule(Predicate predicate) { - int index = -1; - for (int i = 0;i < restartPolicyRules.size();i++) { - if (predicate.test(restartPolicyRules.get(i))) { - index = i; - break; + public boolean hasMatchingRestartPolicyRule(Predicate predicate) { + for (V1ContainerRestartRuleBuilder item : restartPolicyRules) { + if (predicate.test(item)) { + return true; + } } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "restartPolicyRules")); - } - return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); + return false; } - public V1SecurityContext buildSecurityContext() { - return this.securityContext != null ? this.securityContext.build() : null; + public boolean hasMatchingVolumeDevice(Predicate predicate) { + for (V1VolumeDeviceBuilder item : volumeDevices) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A withSecurityContext(V1SecurityContext securityContext) { - this._visitables.remove("securityContext"); - if (securityContext != null) { - this.securityContext = new V1SecurityContextBuilder(securityContext); - this._visitables.get("securityContext").add(this.securityContext); - } else { - this.securityContext = null; - this._visitables.get("securityContext").remove(this.securityContext); - } - return (A) this; + public boolean hasMatchingVolumeMount(Predicate predicate) { + for (V1VolumeMountBuilder item : volumeMounts) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public boolean hasSecurityContext() { - return this.securityContext != null; + public boolean hasName() { + return this.name != null; } - public SecurityContextNested withNewSecurityContext() { - return new SecurityContextNested(null); + public boolean hasPorts() { + return this.ports != null && !(this.ports.isEmpty()); } - public SecurityContextNested withNewSecurityContextLike(V1SecurityContext item) { - return new SecurityContextNested(item); + public boolean hasReadinessProbe() { + return this.readinessProbe != null; } - public SecurityContextNested editSecurityContext() { - return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(null)); + public boolean hasResizePolicy() { + return this.resizePolicy != null && !(this.resizePolicy.isEmpty()); } - public SecurityContextNested editOrNewSecurityContext() { - return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(new V1SecurityContextBuilder().build())); + public boolean hasResources() { + return this.resources != null; } - public SecurityContextNested editOrNewSecurityContextLike(V1SecurityContext item) { - return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(item)); + public boolean hasRestartPolicy() { + return this.restartPolicy != null; } - public V1Probe buildStartupProbe() { - return this.startupProbe != null ? this.startupProbe.build() : null; + public boolean hasRestartPolicyRules() { + return this.restartPolicyRules != null && !(this.restartPolicyRules.isEmpty()); } - public A withStartupProbe(V1Probe startupProbe) { - this._visitables.remove("startupProbe"); - if (startupProbe != null) { - this.startupProbe = new V1ProbeBuilder(startupProbe); - this._visitables.get("startupProbe").add(this.startupProbe); - } else { - this.startupProbe = null; - this._visitables.get("startupProbe").remove(this.startupProbe); - } - return (A) this; + public boolean hasSecurityContext() { + return this.securityContext != null; } public boolean hasStartupProbe() { return this.startupProbe != null; } - public StartupProbeNested withNewStartupProbe() { - return new StartupProbeNested(null); - } - - public StartupProbeNested withNewStartupProbeLike(V1Probe item) { - return new StartupProbeNested(item); - } - - public StartupProbeNested editStartupProbe() { - return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(null)); - } - - public StartupProbeNested editOrNewStartupProbe() { - return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(new V1ProbeBuilder().build())); - } - - public StartupProbeNested editOrNewStartupProbeLike(V1Probe item) { - return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(item)); - } - - public Boolean getStdin() { - return this.stdin; - } - - public A withStdin(Boolean stdin) { - this.stdin = stdin; - return (A) this; - } - public boolean hasStdin() { return this.stdin != null; } - public Boolean getStdinOnce() { - return this.stdinOnce; - } - - public A withStdinOnce(Boolean stdinOnce) { - this.stdinOnce = stdinOnce; - return (A) this; - } - public boolean hasStdinOnce() { return this.stdinOnce != null; } - public String getTerminationMessagePath() { - return this.terminationMessagePath; - } - - public A withTerminationMessagePath(String terminationMessagePath) { - this.terminationMessagePath = terminationMessagePath; - return (A) this; - } - public boolean hasTerminationMessagePath() { return this.terminationMessagePath != null; } - public String getTerminationMessagePolicy() { - return this.terminationMessagePolicy; + public boolean hasTerminationMessagePolicy() { + return this.terminationMessagePolicy != null; } - public A withTerminationMessagePolicy(String terminationMessagePolicy) { - this.terminationMessagePolicy = terminationMessagePolicy; - return (A) this; + public boolean hasTty() { + return this.tty != null; } - public boolean hasTerminationMessagePolicy() { - return this.terminationMessagePolicy != null; + public boolean hasVolumeDevices() { + return this.volumeDevices != null && !(this.volumeDevices.isEmpty()); } - public Boolean getTty() { - return this.tty; + public boolean hasVolumeMounts() { + return this.volumeMounts != null && !(this.volumeMounts.isEmpty()); } - public A withTty(Boolean tty) { - this.tty = tty; - return (A) this; + public boolean hasWorkingDir() { + return this.workingDir != null; } - public boolean hasTty() { - return this.tty != null; + public int hashCode() { + return Objects.hash(args, command, env, envFrom, image, imagePullPolicy, lifecycle, livenessProbe, name, ports, readinessProbe, resizePolicy, resources, restartPolicy, restartPolicyRules, securityContext, startupProbe, stdin, stdinOnce, terminationMessagePath, terminationMessagePolicy, tty, volumeDevices, volumeMounts, workingDir); } - public A addToVolumeDevices(int index,V1VolumeDevice item) { - if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); + public A removeAllFromArgs(Collection items) { + if (this.args == null) { + return (A) this; } - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - if (index < 0 || index >= volumeDevices.size()) { - _visitables.get("volumeDevices").add(builder); - volumeDevices.add(builder); - } else { - _visitables.get("volumeDevices").add(builder); - volumeDevices.add(index, builder); + for (String item : items) { + this.args.remove(item); } return (A) this; } - public A setToVolumeDevices(int index,V1VolumeDevice item) { - if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); + public A removeAllFromCommand(Collection items) { + if (this.command == null) { + return (A) this; } - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - if (index < 0 || index >= volumeDevices.size()) { - _visitables.get("volumeDevices").add(builder); - volumeDevices.add(builder); - } else { - _visitables.get("volumeDevices").add(builder); - volumeDevices.set(index, builder); + for (String item : items) { + this.command.remove(item); } return (A) this; } - public A addToVolumeDevices(V1VolumeDevice... items) { - if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); + public A removeAllFromEnv(Collection items) { + if (this.env == null) { + return (A) this; } - for (V1VolumeDevice item : items) { - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").add(builder); - this.volumeDevices.add(builder); + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").remove(builder); + this.env.remove(builder); } return (A) this; } - public A addAllToVolumeDevices(Collection items) { - if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); + public A removeAllFromEnvFrom(Collection items) { + if (this.envFrom == null) { + return (A) this; } - for (V1VolumeDevice item : items) { - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").add(builder); - this.volumeDevices.add(builder); + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").remove(builder); + this.envFrom.remove(builder); } return (A) this; } - public A removeFromVolumeDevices(V1VolumeDevice... items) { - if (this.volumeDevices == null) { + public A removeAllFromPorts(Collection items) { + if (this.ports == null) { return (A) this; } - for (V1VolumeDevice item : items) { - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").remove(builder); - this.volumeDevices.remove(builder); + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); } return (A) this; } - public A removeAllFromVolumeDevices(Collection items) { - if (this.volumeDevices == null) { + public A removeAllFromResizePolicy(Collection items) { + if (this.resizePolicy == null) { return (A) this; } - for (V1VolumeDevice item : items) { - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").remove(builder); - this.volumeDevices.remove(builder); + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").remove(builder); + this.resizePolicy.remove(builder); } return (A) this; } - public A removeMatchingFromVolumeDevices(Predicate predicate) { - if (volumeDevices == null) { + public A removeAllFromRestartPolicyRules(Collection items) { + if (this.restartPolicyRules == null) { return (A) this; } - Iterator each = volumeDevices.iterator(); - List visitables = _visitables.get("volumeDevices"); - while (each.hasNext()) { - V1VolumeDeviceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").remove(builder); + this.restartPolicyRules.remove(builder); } return (A) this; } - public List buildVolumeDevices() { - return this.volumeDevices != null ? build(volumeDevices) : null; - } - - public V1VolumeDevice buildVolumeDevice(int index) { - return this.volumeDevices.get(index).build(); - } - - public V1VolumeDevice buildFirstVolumeDevice() { - return this.volumeDevices.get(0).build(); - } - - public V1VolumeDevice buildLastVolumeDevice() { - return this.volumeDevices.get(volumeDevices.size() - 1).build(); - } - - public V1VolumeDevice buildMatchingVolumeDevice(Predicate predicate) { - for (V1VolumeDeviceBuilder item : volumeDevices) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingVolumeDevice(Predicate predicate) { - for (V1VolumeDeviceBuilder item : volumeDevices) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withVolumeDevices(List volumeDevices) { - if (this.volumeDevices != null) { - this._visitables.get("volumeDevices").clear(); + public A removeAllFromVolumeDevices(Collection items) { + if (this.volumeDevices == null) { + return (A) this; } - if (volumeDevices != null) { - this.volumeDevices = new ArrayList(); - for (V1VolumeDevice item : volumeDevices) { - this.addToVolumeDevices(item); - } - } else { - this.volumeDevices = null; + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").remove(builder); + this.volumeDevices.remove(builder); } return (A) this; } - public A withVolumeDevices(V1VolumeDevice... volumeDevices) { - if (this.volumeDevices != null) { - this.volumeDevices.clear(); - _visitables.remove("volumeDevices"); + public A removeAllFromVolumeMounts(Collection items) { + if (this.volumeMounts == null) { + return (A) this; } - if (volumeDevices != null) { - for (V1VolumeDevice item : volumeDevices) { - this.addToVolumeDevices(item); - } + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").remove(builder); + this.volumeMounts.remove(builder); } return (A) this; } - public boolean hasVolumeDevices() { - return this.volumeDevices != null && !(this.volumeDevices.isEmpty()); - } - - public VolumeDevicesNested addNewVolumeDevice() { - return new VolumeDevicesNested(-1, null); - } - - public VolumeDevicesNested addNewVolumeDeviceLike(V1VolumeDevice item) { - return new VolumeDevicesNested(-1, item); - } - - public VolumeDevicesNested setNewVolumeDeviceLike(int index,V1VolumeDevice item) { - return new VolumeDevicesNested(index, item); - } - - public VolumeDevicesNested editVolumeDevice(int index) { - if (index <= volumeDevices.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeDevices")); + public A removeFromArgs(String... items) { + if (this.args == null) { + return (A) this; } - return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); - } - - public VolumeDevicesNested editFirstVolumeDevice() { - if (volumeDevices.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeDevices")); + for (String item : items) { + this.args.remove(item); } - return this.setNewVolumeDeviceLike(0, this.buildVolumeDevice(0)); + return (A) this; } - public VolumeDevicesNested editLastVolumeDevice() { - int index = volumeDevices.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeDevices")); + public A removeFromCommand(String... items) { + if (this.command == null) { + return (A) this; } - return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); + for (String item : items) { + this.command.remove(item); + } + return (A) this; } - public VolumeDevicesNested editMatchingVolumeDevice(Predicate predicate) { - int index = -1; - for (int i = 0;i < volumeDevices.size();i++) { - if (predicate.test(volumeDevices.get(i))) { - index = i; - break; - } + public A removeFromEnv(V1EnvVar... items) { + if (this.env == null) { + return (A) this; } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumeDevices")); + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").remove(builder); + this.env.remove(builder); } - return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); + return (A) this; } - public A addToVolumeMounts(int index,V1VolumeMount item) { - if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + public A removeFromEnvFrom(V1EnvFromSource... items) { + if (this.envFrom == null) { + return (A) this; } - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { - _visitables.get("volumeMounts").add(builder); - volumeMounts.add(builder); - } else { - _visitables.get("volumeMounts").add(builder); - volumeMounts.add(index, builder); + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").remove(builder); + this.envFrom.remove(builder); } return (A) this; } - public A setToVolumeMounts(int index,V1VolumeMount item) { - if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + public A removeFromPorts(V1ContainerPort... items) { + if (this.ports == null) { + return (A) this; } - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { - _visitables.get("volumeMounts").add(builder); - volumeMounts.add(builder); - } else { - _visitables.get("volumeMounts").add(builder); - volumeMounts.set(index, builder); + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); } return (A) this; } - public A addToVolumeMounts(V1VolumeMount... items) { - if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + public A removeFromResizePolicy(V1ContainerResizePolicy... items) { + if (this.resizePolicy == null) { + return (A) this; } - for (V1VolumeMount item : items) { - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables.get("volumeMounts").add(builder); - this.volumeMounts.add(builder); + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").remove(builder); + this.resizePolicy.remove(builder); } return (A) this; } - public A addAllToVolumeMounts(Collection items) { - if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + public A removeFromRestartPolicyRules(V1ContainerRestartRule... items) { + if (this.restartPolicyRules == null) { + return (A) this; } - for (V1VolumeMount item : items) { - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables.get("volumeMounts").add(builder); - this.volumeMounts.add(builder); + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").remove(builder); + this.restartPolicyRules.remove(builder); } return (A) this; } - public A removeFromVolumeMounts(V1VolumeMount... items) { - if (this.volumeMounts == null) { + public A removeFromVolumeDevices(V1VolumeDevice... items) { + if (this.volumeDevices == null) { return (A) this; } - for (V1VolumeMount item : items) { - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables.get("volumeMounts").remove(builder); - this.volumeMounts.remove(builder); + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").remove(builder); + this.volumeDevices.remove(builder); } return (A) this; } - public A removeAllFromVolumeMounts(Collection items) { + public A removeFromVolumeMounts(V1VolumeMount... items) { if (this.volumeMounts == null) { return (A) this; } @@ -2005,14 +1566,14 @@ public A removeAllFromVolumeMounts(Collection items) { return (A) this; } - public A removeMatchingFromVolumeMounts(Predicate predicate) { - if (volumeMounts == null) { + public A removeMatchingFromEnv(Predicate predicate) { + if (env == null) { return (A) this; } - Iterator each = volumeMounts.iterator(); - List visitables = _visitables.get("volumeMounts"); + Iterator each = env.iterator(); + List visitables = _visitables.get("env"); while (each.hasNext()) { - V1VolumeMountBuilder builder = each.next(); + V1EnvVarBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -2021,224 +1582,249 @@ public A removeMatchingFromVolumeMounts(Predicate predicat return (A) this; } - public List buildVolumeMounts() { - return this.volumeMounts != null ? build(volumeMounts) : null; - } - - public V1VolumeMount buildVolumeMount(int index) { - return this.volumeMounts.get(index).build(); - } - - public V1VolumeMount buildFirstVolumeMount() { - return this.volumeMounts.get(0).build(); + public A removeMatchingFromEnvFrom(Predicate predicate) { + if (envFrom == null) { + return (A) this; + } + Iterator each = envFrom.iterator(); + List visitables = _visitables.get("envFrom"); + while (each.hasNext()) { + V1EnvFromSourceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public V1VolumeMount buildLastVolumeMount() { - return this.volumeMounts.get(volumeMounts.size() - 1).build(); + public A removeMatchingFromPorts(Predicate predicate) { + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); + while (each.hasNext()) { + V1ContainerPortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public V1VolumeMount buildMatchingVolumeMount(Predicate predicate) { - for (V1VolumeMountBuilder item : volumeMounts) { - if (predicate.test(item)) { - return item.build(); + public A removeMatchingFromResizePolicy(Predicate predicate) { + if (resizePolicy == null) { + return (A) this; + } + Iterator each = resizePolicy.iterator(); + List visitables = _visitables.get("resizePolicy"); + while (each.hasNext()) { + V1ContainerResizePolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } - return null; + } + return (A) this; } - public boolean hasMatchingVolumeMount(Predicate predicate) { - for (V1VolumeMountBuilder item : volumeMounts) { - if (predicate.test(item)) { - return true; + public A removeMatchingFromRestartPolicyRules(Predicate predicate) { + if (restartPolicyRules == null) { + return (A) this; + } + Iterator each = restartPolicyRules.iterator(); + List visitables = _visitables.get("restartPolicyRules"); + while (each.hasNext()) { + V1ContainerRestartRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } - return false; + } + return (A) this; } - public A withVolumeMounts(List volumeMounts) { - if (this.volumeMounts != null) { - this._visitables.get("volumeMounts").clear(); + public A removeMatchingFromVolumeDevices(Predicate predicate) { + if (volumeDevices == null) { + return (A) this; } - if (volumeMounts != null) { - this.volumeMounts = new ArrayList(); - for (V1VolumeMount item : volumeMounts) { - this.addToVolumeMounts(item); + Iterator each = volumeDevices.iterator(); + List visitables = _visitables.get("volumeDevices"); + while (each.hasNext()) { + V1VolumeDeviceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } else { - this.volumeMounts = null; } return (A) this; } - public A withVolumeMounts(V1VolumeMount... volumeMounts) { - if (this.volumeMounts != null) { - this.volumeMounts.clear(); - _visitables.remove("volumeMounts"); + public A removeMatchingFromVolumeMounts(Predicate predicate) { + if (volumeMounts == null) { + return (A) this; } - if (volumeMounts != null) { - for (V1VolumeMount item : volumeMounts) { - this.addToVolumeMounts(item); - } + Iterator each = volumeMounts.iterator(); + List visitables = _visitables.get("volumeMounts"); + while (each.hasNext()) { + V1VolumeMountBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasVolumeMounts() { - return this.volumeMounts != null && !(this.volumeMounts.isEmpty()); + public EnvFromNested setNewEnvFromLike(int index,V1EnvFromSource item) { + return new EnvFromNested(index, item); } - public VolumeMountsNested addNewVolumeMount() { - return new VolumeMountsNested(-1, null); + public EnvNested setNewEnvLike(int index,V1EnvVar item) { + return new EnvNested(index, item); } - public VolumeMountsNested addNewVolumeMountLike(V1VolumeMount item) { - return new VolumeMountsNested(-1, item); + public PortsNested setNewPortLike(int index,V1ContainerPort item) { + return new PortsNested(index, item); + } + + public ResizePolicyNested setNewResizePolicyLike(int index,V1ContainerResizePolicy item) { + return new ResizePolicyNested(index, item); + } + + public RestartPolicyRulesNested setNewRestartPolicyRuleLike(int index,V1ContainerRestartRule item) { + return new RestartPolicyRulesNested(index, item); + } + + public VolumeDevicesNested setNewVolumeDeviceLike(int index,V1VolumeDevice item) { + return new VolumeDevicesNested(index, item); } public VolumeMountsNested setNewVolumeMountLike(int index,V1VolumeMount item) { return new VolumeMountsNested(index, item); } - public VolumeMountsNested editVolumeMount(int index) { - if (index <= volumeMounts.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeMounts")); + public A setToArgs(int index,String item) { + if (this.args == null) { + this.args = new ArrayList(); } - return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); + this.args.set(index, item); + return (A) this; } - public VolumeMountsNested editFirstVolumeMount() { - if (volumeMounts.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeMounts")); + public A setToCommand(int index,String item) { + if (this.command == null) { + this.command = new ArrayList(); } - return this.setNewVolumeMountLike(0, this.buildVolumeMount(0)); + this.command.set(index, item); + return (A) this; } - public VolumeMountsNested editLastVolumeMount() { - int index = volumeMounts.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeMounts")); + public A setToEnv(int index,V1EnvVar item) { + if (this.env == null) { + this.env = new ArrayList(); } - return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + if (index < 0 || index >= env.size()) { + _visitables.get("env").add(builder); + env.add(builder); + } else { + _visitables.get("env").add(builder); + env.set(index, builder); + } + return (A) this; } - public VolumeMountsNested editMatchingVolumeMount(Predicate predicate) { - int index = -1; - for (int i = 0;i < volumeMounts.size();i++) { - if (predicate.test(volumeMounts.get(i))) { - index = i; - break; - } + public A setToEnvFrom(int index,V1EnvFromSource item) { + if (this.envFrom == null) { + this.envFrom = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumeMounts")); + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + if (index < 0 || index >= envFrom.size()) { + _visitables.get("envFrom").add(builder); + envFrom.add(builder); + } else { + _visitables.get("envFrom").add(builder); + envFrom.set(index, builder); } - return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); + return (A) this; } - public String getWorkingDir() { - return this.workingDir; + public A setToPorts(int index,V1ContainerPort item) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } + return (A) this; } - public A withWorkingDir(String workingDir) { - this.workingDir = workingDir; + public A setToResizePolicy(int index,V1ContainerResizePolicy item) { + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); + } + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + if (index < 0 || index >= resizePolicy.size()) { + _visitables.get("resizePolicy").add(builder); + resizePolicy.add(builder); + } else { + _visitables.get("resizePolicy").add(builder); + resizePolicy.set(index, builder); + } return (A) this; } - public boolean hasWorkingDir() { - return this.workingDir != null; + public A setToRestartPolicyRules(int index,V1ContainerRestartRule item) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + if (index < 0 || index >= restartPolicyRules.size()) { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.add(builder); + } else { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.set(index, builder); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; + public A setToVolumeDevices(int index,V1VolumeDevice item) { + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); } - if (!(super.equals(o))) { - return false; + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + if (index < 0 || index >= volumeDevices.size()) { + _visitables.get("volumeDevices").add(builder); + volumeDevices.add(builder); + } else { + _visitables.get("volumeDevices").add(builder); + volumeDevices.set(index, builder); } - V1ContainerFluent that = (V1ContainerFluent) o; - if (!(Objects.equals(args, that.args))) { - return false; - } - if (!(Objects.equals(command, that.command))) { - return false; - } - if (!(Objects.equals(env, that.env))) { - return false; - } - if (!(Objects.equals(envFrom, that.envFrom))) { - return false; - } - if (!(Objects.equals(image, that.image))) { - return false; - } - if (!(Objects.equals(imagePullPolicy, that.imagePullPolicy))) { - return false; - } - if (!(Objects.equals(lifecycle, that.lifecycle))) { - return false; - } - if (!(Objects.equals(livenessProbe, that.livenessProbe))) { - return false; - } - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(ports, that.ports))) { - return false; - } - if (!(Objects.equals(readinessProbe, that.readinessProbe))) { - return false; - } - if (!(Objects.equals(resizePolicy, that.resizePolicy))) { - return false; - } - if (!(Objects.equals(resources, that.resources))) { - return false; - } - if (!(Objects.equals(restartPolicy, that.restartPolicy))) { - return false; - } - if (!(Objects.equals(restartPolicyRules, that.restartPolicyRules))) { - return false; - } - if (!(Objects.equals(securityContext, that.securityContext))) { - return false; - } - if (!(Objects.equals(startupProbe, that.startupProbe))) { - return false; - } - if (!(Objects.equals(stdin, that.stdin))) { - return false; - } - if (!(Objects.equals(stdinOnce, that.stdinOnce))) { - return false; - } - if (!(Objects.equals(terminationMessagePath, that.terminationMessagePath))) { - return false; - } - if (!(Objects.equals(terminationMessagePolicy, that.terminationMessagePolicy))) { - return false; - } - if (!(Objects.equals(tty, that.tty))) { - return false; - } - if (!(Objects.equals(volumeDevices, that.volumeDevices))) { - return false; - } - if (!(Objects.equals(volumeMounts, that.volumeMounts))) { - return false; - } - if (!(Objects.equals(workingDir, that.workingDir))) { - return false; - } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(args, command, env, envFrom, image, imagePullPolicy, lifecycle, livenessProbe, name, ports, readinessProbe, resizePolicy, resources, restartPolicy, restartPolicyRules, securityContext, startupProbe, stdin, stdinOnce, terminationMessagePath, terminationMessagePolicy, tty, volumeDevices, volumeMounts, workingDir); + public A setToVolumeMounts(int index,V1VolumeMount item) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); + } + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + if (index < 0 || index >= volumeMounts.size()) { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(builder); + } else { + _visitables.get("volumeMounts").add(builder); + volumeMounts.set(index, builder); + } + return (A) this; } public String toString() { @@ -2354,61 +1940,461 @@ public String toString() { sb.append(tty); sb.append(","); } - if (!(volumeDevices == null) && !(volumeDevices.isEmpty())) { - sb.append("volumeDevices:"); - sb.append(volumeDevices); - sb.append(","); + if (!(volumeDevices == null) && !(volumeDevices.isEmpty())) { + sb.append("volumeDevices:"); + sb.append(volumeDevices); + sb.append(","); + } + if (!(volumeMounts == null) && !(volumeMounts.isEmpty())) { + sb.append("volumeMounts:"); + sb.append(volumeMounts); + sb.append(","); + } + if (!(workingDir == null)) { + sb.append("workingDir:"); + sb.append(workingDir); + } + sb.append("}"); + return sb.toString(); + } + + public A withArgs(List args) { + if (args != null) { + this.args = new ArrayList(); + for (String item : args) { + this.addToArgs(item); + } + } else { + this.args = null; + } + return (A) this; + } + + public A withArgs(String... args) { + if (this.args != null) { + this.args.clear(); + _visitables.remove("args"); + } + if (args != null) { + for (String item : args) { + this.addToArgs(item); + } + } + return (A) this; + } + + public A withCommand(List command) { + if (command != null) { + this.command = new ArrayList(); + for (String item : command) { + this.addToCommand(item); + } + } else { + this.command = null; + } + return (A) this; + } + + public A withCommand(String... command) { + if (this.command != null) { + this.command.clear(); + _visitables.remove("command"); + } + if (command != null) { + for (String item : command) { + this.addToCommand(item); + } + } + return (A) this; + } + + public A withEnv(List env) { + if (this.env != null) { + this._visitables.get("env").clear(); + } + if (env != null) { + this.env = new ArrayList(); + for (V1EnvVar item : env) { + this.addToEnv(item); + } + } else { + this.env = null; + } + return (A) this; + } + + public A withEnv(V1EnvVar... env) { + if (this.env != null) { + this.env.clear(); + _visitables.remove("env"); + } + if (env != null) { + for (V1EnvVar item : env) { + this.addToEnv(item); + } + } + return (A) this; + } + + public A withEnvFrom(List envFrom) { + if (this.envFrom != null) { + this._visitables.get("envFrom").clear(); + } + if (envFrom != null) { + this.envFrom = new ArrayList(); + for (V1EnvFromSource item : envFrom) { + this.addToEnvFrom(item); + } + } else { + this.envFrom = null; + } + return (A) this; + } + + public A withEnvFrom(V1EnvFromSource... envFrom) { + if (this.envFrom != null) { + this.envFrom.clear(); + _visitables.remove("envFrom"); + } + if (envFrom != null) { + for (V1EnvFromSource item : envFrom) { + this.addToEnvFrom(item); + } + } + return (A) this; + } + + public A withImage(String image) { + this.image = image; + return (A) this; + } + + public A withImagePullPolicy(String imagePullPolicy) { + this.imagePullPolicy = imagePullPolicy; + return (A) this; + } + + public A withLifecycle(V1Lifecycle lifecycle) { + this._visitables.remove("lifecycle"); + if (lifecycle != null) { + this.lifecycle = new V1LifecycleBuilder(lifecycle); + this._visitables.get("lifecycle").add(this.lifecycle); + } else { + this.lifecycle = null; + this._visitables.get("lifecycle").remove(this.lifecycle); + } + return (A) this; + } + + public A withLivenessProbe(V1Probe livenessProbe) { + this._visitables.remove("livenessProbe"); + if (livenessProbe != null) { + this.livenessProbe = new V1ProbeBuilder(livenessProbe); + this._visitables.get("livenessProbe").add(this.livenessProbe); + } else { + this.livenessProbe = null; + this._visitables.get("livenessProbe").remove(this.livenessProbe); + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public LifecycleNested withNewLifecycle() { + return new LifecycleNested(null); + } + + public LifecycleNested withNewLifecycleLike(V1Lifecycle item) { + return new LifecycleNested(item); + } + + public LivenessProbeNested withNewLivenessProbe() { + return new LivenessProbeNested(null); + } + + public LivenessProbeNested withNewLivenessProbeLike(V1Probe item) { + return new LivenessProbeNested(item); + } + + public ReadinessProbeNested withNewReadinessProbe() { + return new ReadinessProbeNested(null); + } + + public ReadinessProbeNested withNewReadinessProbeLike(V1Probe item) { + return new ReadinessProbeNested(item); + } + + public ResourcesNested withNewResources() { + return new ResourcesNested(null); + } + + public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { + return new ResourcesNested(item); + } + + public SecurityContextNested withNewSecurityContext() { + return new SecurityContextNested(null); + } + + public SecurityContextNested withNewSecurityContextLike(V1SecurityContext item) { + return new SecurityContextNested(item); + } + + public StartupProbeNested withNewStartupProbe() { + return new StartupProbeNested(null); + } + + public StartupProbeNested withNewStartupProbeLike(V1Probe item) { + return new StartupProbeNested(item); + } + + public A withPorts(List ports) { + if (this.ports != null) { + this._visitables.get("ports").clear(); + } + if (ports != null) { + this.ports = new ArrayList(); + for (V1ContainerPort item : ports) { + this.addToPorts(item); + } + } else { + this.ports = null; + } + return (A) this; + } + + public A withPorts(V1ContainerPort... ports) { + if (this.ports != null) { + this.ports.clear(); + _visitables.remove("ports"); + } + if (ports != null) { + for (V1ContainerPort item : ports) { + this.addToPorts(item); + } + } + return (A) this; + } + + public A withReadinessProbe(V1Probe readinessProbe) { + this._visitables.remove("readinessProbe"); + if (readinessProbe != null) { + this.readinessProbe = new V1ProbeBuilder(readinessProbe); + this._visitables.get("readinessProbe").add(this.readinessProbe); + } else { + this.readinessProbe = null; + this._visitables.get("readinessProbe").remove(this.readinessProbe); + } + return (A) this; + } + + public A withResizePolicy(List resizePolicy) { + if (this.resizePolicy != null) { + this._visitables.get("resizePolicy").clear(); + } + if (resizePolicy != null) { + this.resizePolicy = new ArrayList(); + for (V1ContainerResizePolicy item : resizePolicy) { + this.addToResizePolicy(item); + } + } else { + this.resizePolicy = null; + } + return (A) this; + } + + public A withResizePolicy(V1ContainerResizePolicy... resizePolicy) { + if (this.resizePolicy != null) { + this.resizePolicy.clear(); + _visitables.remove("resizePolicy"); + } + if (resizePolicy != null) { + for (V1ContainerResizePolicy item : resizePolicy) { + this.addToResizePolicy(item); + } + } + return (A) this; + } + + public A withResources(V1ResourceRequirements resources) { + this._visitables.remove("resources"); + if (resources != null) { + this.resources = new V1ResourceRequirementsBuilder(resources); + this._visitables.get("resources").add(this.resources); + } else { + this.resources = null; + this._visitables.get("resources").remove(this.resources); + } + return (A) this; + } + + public A withRestartPolicy(String restartPolicy) { + this.restartPolicy = restartPolicy; + return (A) this; + } + + public A withRestartPolicyRules(List restartPolicyRules) { + if (this.restartPolicyRules != null) { + this._visitables.get("restartPolicyRules").clear(); + } + if (restartPolicyRules != null) { + this.restartPolicyRules = new ArrayList(); + for (V1ContainerRestartRule item : restartPolicyRules) { + this.addToRestartPolicyRules(item); + } + } else { + this.restartPolicyRules = null; + } + return (A) this; + } + + public A withRestartPolicyRules(V1ContainerRestartRule... restartPolicyRules) { + if (this.restartPolicyRules != null) { + this.restartPolicyRules.clear(); + _visitables.remove("restartPolicyRules"); } - if (!(volumeMounts == null) && !(volumeMounts.isEmpty())) { - sb.append("volumeMounts:"); - sb.append(volumeMounts); - sb.append(","); + if (restartPolicyRules != null) { + for (V1ContainerRestartRule item : restartPolicyRules) { + this.addToRestartPolicyRules(item); + } } - if (!(workingDir == null)) { - sb.append("workingDir:"); - sb.append(workingDir); + return (A) this; + } + + public A withSecurityContext(V1SecurityContext securityContext) { + this._visitables.remove("securityContext"); + if (securityContext != null) { + this.securityContext = new V1SecurityContextBuilder(securityContext); + this._visitables.get("securityContext").add(this.securityContext); + } else { + this.securityContext = null; + this._visitables.get("securityContext").remove(this.securityContext); } - sb.append("}"); - return sb.toString(); + return (A) this; + } + + public A withStartupProbe(V1Probe startupProbe) { + this._visitables.remove("startupProbe"); + if (startupProbe != null) { + this.startupProbe = new V1ProbeBuilder(startupProbe); + this._visitables.get("startupProbe").add(this.startupProbe); + } else { + this.startupProbe = null; + this._visitables.get("startupProbe").remove(this.startupProbe); + } + return (A) this; } public A withStdin() { return withStdin(true); } + public A withStdin(Boolean stdin) { + this.stdin = stdin; + return (A) this; + } + public A withStdinOnce() { return withStdinOnce(true); } + public A withStdinOnce(Boolean stdinOnce) { + this.stdinOnce = stdinOnce; + return (A) this; + } + + public A withTerminationMessagePath(String terminationMessagePath) { + this.terminationMessagePath = terminationMessagePath; + return (A) this; + } + + public A withTerminationMessagePolicy(String terminationMessagePolicy) { + this.terminationMessagePolicy = terminationMessagePolicy; + return (A) this; + } + public A withTty() { return withTty(true); } - public class EnvNested extends V1EnvVarFluent> implements Nested{ - EnvNested(int index,V1EnvVar item) { - this.index = index; - this.builder = new V1EnvVarBuilder(this, item); + + public A withTty(Boolean tty) { + this.tty = tty; + return (A) this; + } + + public A withVolumeDevices(List volumeDevices) { + if (this.volumeDevices != null) { + this._visitables.get("volumeDevices").clear(); } - V1EnvVarBuilder builder; - int index; - - public N and() { - return (N) V1ContainerFluent.this.setToEnv(index, builder.build()); + if (volumeDevices != null) { + this.volumeDevices = new ArrayList(); + for (V1VolumeDevice item : volumeDevices) { + this.addToVolumeDevices(item); + } + } else { + this.volumeDevices = null; } - - public N endEnv() { - return and(); + return (A) this; + } + + public A withVolumeDevices(V1VolumeDevice... volumeDevices) { + if (this.volumeDevices != null) { + this.volumeDevices.clear(); + _visitables.remove("volumeDevices"); } - + if (volumeDevices != null) { + for (V1VolumeDevice item : volumeDevices) { + this.addToVolumeDevices(item); + } + } + return (A) this; + } + + public A withVolumeMounts(List volumeMounts) { + if (this.volumeMounts != null) { + this._visitables.get("volumeMounts").clear(); + } + if (volumeMounts != null) { + this.volumeMounts = new ArrayList(); + for (V1VolumeMount item : volumeMounts) { + this.addToVolumeMounts(item); + } + } else { + this.volumeMounts = null; + } + return (A) this; + } + + public A withVolumeMounts(V1VolumeMount... volumeMounts) { + if (this.volumeMounts != null) { + this.volumeMounts.clear(); + _visitables.remove("volumeMounts"); + } + if (volumeMounts != null) { + for (V1VolumeMount item : volumeMounts) { + this.addToVolumeMounts(item); + } + } + return (A) this; + } + public A withWorkingDir(String workingDir) { + this.workingDir = workingDir; + return (A) this; } public class EnvFromNested extends V1EnvFromSourceFluent> implements Nested{ + + V1EnvFromSourceBuilder builder; + int index; + EnvFromNested(int index,V1EnvFromSource item) { this.index = index; this.builder = new V1EnvFromSourceBuilder(this, item); } - V1EnvFromSourceBuilder builder; - int index; - + public N and() { return (N) V1ContainerFluent.this.setToEnvFrom(index, builder.build()); } @@ -2417,14 +2403,34 @@ public N endEnvFrom() { return and(); } + } + public class EnvNested extends V1EnvVarFluent> implements Nested{ + + V1EnvVarBuilder builder; + int index; + + EnvNested(int index,V1EnvVar item) { + this.index = index; + this.builder = new V1EnvVarBuilder(this, item); + } + public N and() { + return (N) V1ContainerFluent.this.setToEnv(index, builder.build()); + } + + public N endEnv() { + return and(); + } + } public class LifecycleNested extends V1LifecycleFluent> implements Nested{ + + V1LifecycleBuilder builder; + LifecycleNested(V1Lifecycle item) { this.builder = new V1LifecycleBuilder(this, item); } - V1LifecycleBuilder builder; - + public N and() { return (N) V1ContainerFluent.this.withLifecycle(builder.build()); } @@ -2433,14 +2439,15 @@ public N endLifecycle() { return and(); } - } public class LivenessProbeNested extends V1ProbeFluent> implements Nested{ + + V1ProbeBuilder builder; + LivenessProbeNested(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } - V1ProbeBuilder builder; - + public N and() { return (N) V1ContainerFluent.this.withLivenessProbe(builder.build()); } @@ -2449,16 +2456,17 @@ public N endLivenessProbe() { return and(); } - } public class PortsNested extends V1ContainerPortFluent> implements Nested{ + + V1ContainerPortBuilder builder; + int index; + PortsNested(int index,V1ContainerPort item) { this.index = index; this.builder = new V1ContainerPortBuilder(this, item); } - V1ContainerPortBuilder builder; - int index; - + public N and() { return (N) V1ContainerFluent.this.setToPorts(index, builder.build()); } @@ -2467,14 +2475,15 @@ public N endPort() { return and(); } - } public class ReadinessProbeNested extends V1ProbeFluent> implements Nested{ + + V1ProbeBuilder builder; + ReadinessProbeNested(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } - V1ProbeBuilder builder; - + public N and() { return (N) V1ContainerFluent.this.withReadinessProbe(builder.build()); } @@ -2483,16 +2492,17 @@ public N endReadinessProbe() { return and(); } - } public class ResizePolicyNested extends V1ContainerResizePolicyFluent> implements Nested{ + + V1ContainerResizePolicyBuilder builder; + int index; + ResizePolicyNested(int index,V1ContainerResizePolicy item) { this.index = index; this.builder = new V1ContainerResizePolicyBuilder(this, item); } - V1ContainerResizePolicyBuilder builder; - int index; - + public N and() { return (N) V1ContainerFluent.this.setToResizePolicy(index, builder.build()); } @@ -2501,14 +2511,15 @@ public N endResizePolicy() { return and(); } - } public class ResourcesNested extends V1ResourceRequirementsFluent> implements Nested{ + + V1ResourceRequirementsBuilder builder; + ResourcesNested(V1ResourceRequirements item) { this.builder = new V1ResourceRequirementsBuilder(this, item); } - V1ResourceRequirementsBuilder builder; - + public N and() { return (N) V1ContainerFluent.this.withResources(builder.build()); } @@ -2517,16 +2528,17 @@ public N endResources() { return and(); } - } public class RestartPolicyRulesNested extends V1ContainerRestartRuleFluent> implements Nested{ + + V1ContainerRestartRuleBuilder builder; + int index; + RestartPolicyRulesNested(int index,V1ContainerRestartRule item) { this.index = index; this.builder = new V1ContainerRestartRuleBuilder(this, item); } - V1ContainerRestartRuleBuilder builder; - int index; - + public N and() { return (N) V1ContainerFluent.this.setToRestartPolicyRules(index, builder.build()); } @@ -2535,14 +2547,15 @@ public N endRestartPolicyRule() { return and(); } - } public class SecurityContextNested extends V1SecurityContextFluent> implements Nested{ + + V1SecurityContextBuilder builder; + SecurityContextNested(V1SecurityContext item) { this.builder = new V1SecurityContextBuilder(this, item); } - V1SecurityContextBuilder builder; - + public N and() { return (N) V1ContainerFluent.this.withSecurityContext(builder.build()); } @@ -2551,14 +2564,15 @@ public N endSecurityContext() { return and(); } - } public class StartupProbeNested extends V1ProbeFluent> implements Nested{ + + V1ProbeBuilder builder; + StartupProbeNested(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } - V1ProbeBuilder builder; - + public N and() { return (N) V1ContainerFluent.this.withStartupProbe(builder.build()); } @@ -2567,16 +2581,17 @@ public N endStartupProbe() { return and(); } - } public class VolumeDevicesNested extends V1VolumeDeviceFluent> implements Nested{ + + V1VolumeDeviceBuilder builder; + int index; + VolumeDevicesNested(int index,V1VolumeDevice item) { this.index = index; this.builder = new V1VolumeDeviceBuilder(this, item); } - V1VolumeDeviceBuilder builder; - int index; - + public N and() { return (N) V1ContainerFluent.this.setToVolumeDevices(index, builder.build()); } @@ -2585,16 +2600,17 @@ public N endVolumeDevice() { return and(); } - } public class VolumeMountsNested extends V1VolumeMountFluent> implements Nested{ + + V1VolumeMountBuilder builder; + int index; + VolumeMountsNested(int index,V1VolumeMount item) { this.index = index; this.builder = new V1VolumeMountBuilder(this, item); } - V1VolumeMountBuilder builder; - int index; - + public N and() { return (N) V1ContainerFluent.this.setToVolumeMounts(index, builder.build()); } @@ -2603,7 +2619,5 @@ public N endVolumeMount() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java index badb8ab63f..68c8280070 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ContainerImageBuilder extends V1ContainerImageFluent implements VisitableBuilder{ + + V1ContainerImageFluent fluent; + public V1ContainerImageBuilder() { this(new V1ContainerImage()); } @@ -11,17 +14,16 @@ public V1ContainerImageBuilder(V1ContainerImageFluent fluent) { this(fluent, new V1ContainerImage()); } - public V1ContainerImageBuilder(V1ContainerImageFluent fluent,V1ContainerImage instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerImageBuilder(V1ContainerImage instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerImageFluent fluent; + public V1ContainerImageBuilder(V1ContainerImageFluent fluent,V1ContainerImage instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerImage build() { V1ContainerImage buildable = new V1ContainerImage(); buildable.setNames(fluent.getNames()); @@ -29,5 +31,4 @@ public V1ContainerImage build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java index 88219f8993..99502c43d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java @@ -1,52 +1,40 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Long; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ContainerImageFluent> extends BaseFluent{ + + private List names; + private Long sizeBytes; + public V1ContainerImageFluent() { } public V1ContainerImageFluent(V1ContainerImage instance) { this.copyInstance(instance); } - private List names; - private Long sizeBytes; - - protected void copyInstance(V1ContainerImage instance) { - instance = instance != null ? instance : new V1ContainerImage(); - if (instance != null) { - this.withNames(instance.getNames()); - this.withSizeBytes(instance.getSizeBytes()); - } - } - - public A addToNames(int index,String item) { + + public A addAllToNames(Collection items) { if (this.names == null) { this.names = new ArrayList(); } - this.names.add(index, item); - return (A) this; - } - - public A setToNames(int index,String item) { - if (this.names == null) { - this.names = new ArrayList(); + for (String item : items) { + this.names.add(item); } - this.names.set(index, item); return (A) this; } @@ -60,42 +48,40 @@ public A addToNames(String... items) { return (A) this; } - public A addAllToNames(Collection items) { + public A addToNames(int index,String item) { if (this.names == null) { this.names = new ArrayList(); } - for (String item : items) { - this.names.add(item); - } + this.names.add(index, item); return (A) this; } - public A removeFromNames(String... items) { - if (this.names == null) { - return (A) this; - } - for (String item : items) { - this.names.remove(item); + protected void copyInstance(V1ContainerImage instance) { + instance = instance != null ? instance : new V1ContainerImage(); + if (instance != null) { + this.withNames(instance.getNames()); + this.withSizeBytes(instance.getSizeBytes()); } - return (A) this; } - public A removeAllFromNames(Collection items) { - if (this.names == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.names.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public List getNames() { - return this.names; - } - - public String getName(int index) { - return this.names.get(index); + if (!(super.equals(o))) { + return false; + } + V1ContainerImageFluent that = (V1ContainerImageFluent) o; + if (!(Objects.equals(names, that.names))) { + return false; + } + if (!(Objects.equals(sizeBytes, that.sizeBytes))) { + return false; + } + return true; } public String getFirstName() { @@ -115,6 +101,18 @@ public String getMatchingName(Predicate predicate) { return null; } + public String getName(int index) { + return this.names.get(index); + } + + public List getNames() { + return this.names; + } + + public Long getSizeBytes() { + return this.sizeBytes; + } + public boolean hasMatchingName(Predicate predicate) { for (String item : names) { if (predicate.test(item)) { @@ -124,70 +122,44 @@ public boolean hasMatchingName(Predicate predicate) { return false; } - public A withNames(List names) { - if (names != null) { - this.names = new ArrayList(); - for (String item : names) { - this.addToNames(item); - } - } else { - this.names = null; - } - return (A) this; - } - - public A withNames(String... names) { - if (this.names != null) { - this.names.clear(); - _visitables.remove("names"); - } - if (names != null) { - for (String item : names) { - this.addToNames(item); - } - } - return (A) this; - } - public boolean hasNames() { return this.names != null && !(this.names.isEmpty()); } - public Long getSizeBytes() { - return this.sizeBytes; - } - - public A withSizeBytes(Long sizeBytes) { - this.sizeBytes = sizeBytes; - return (A) this; - } - public boolean hasSizeBytes() { return this.sizeBytes != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; + public int hashCode() { + return Objects.hash(names, sizeBytes); + } + + public A removeAllFromNames(Collection items) { + if (this.names == null) { + return (A) this; } - if (!(super.equals(o))) { - return false; + for (String item : items) { + this.names.remove(item); } - V1ContainerImageFluent that = (V1ContainerImageFluent) o; - if (!(Objects.equals(names, that.names))) { - return false; + return (A) this; + } + + public A removeFromNames(String... items) { + if (this.names == null) { + return (A) this; } - if (!(Objects.equals(sizeBytes, that.sizeBytes))) { - return false; + for (String item : items) { + this.names.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(names, sizeBytes); + public A setToNames(int index,String item) { + if (this.names == null) { + this.names = new ArrayList(); + } + this.names.set(index, item); + return (A) this; } public String toString() { @@ -206,5 +178,34 @@ public String toString() { return sb.toString(); } - + public A withNames(List names) { + if (names != null) { + this.names = new ArrayList(); + for (String item : names) { + this.addToNames(item); + } + } else { + this.names = null; + } + return (A) this; + } + + public A withNames(String... names) { + if (this.names != null) { + this.names.clear(); + _visitables.remove("names"); + } + if (names != null) { + for (String item : names) { + this.addToNames(item); + } + } + return (A) this; + } + + public A withSizeBytes(Long sizeBytes) { + this.sizeBytes = sizeBytes; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java index bdcc978c2f..b30a6f2d50 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ContainerPortBuilder extends V1ContainerPortFluent implements VisitableBuilder{ + + V1ContainerPortFluent fluent; + public V1ContainerPortBuilder() { this(new V1ContainerPort()); } @@ -11,17 +14,16 @@ public V1ContainerPortBuilder(V1ContainerPortFluent fluent) { this(fluent, new V1ContainerPort()); } - public V1ContainerPortBuilder(V1ContainerPortFluent fluent,V1ContainerPort instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerPortBuilder(V1ContainerPort instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerPortFluent fluent; + public V1ContainerPortBuilder(V1ContainerPortFluent fluent,V1ContainerPort instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerPort build() { V1ContainerPort buildable = new V1ContainerPort(); buildable.setContainerPort(fluent.getContainerPort()); @@ -32,5 +34,4 @@ public V1ContainerPort build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java index 1e0506e7aa..2436b55391 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1ContainerPortFluent> extends BaseFluent{ - public V1ContainerPortFluent() { - } - - public V1ContainerPortFluent(V1ContainerPort instance) { - this.copyInstance(instance); - } + private Integer containerPort; private String hostIP; private Integer hostPort; private String name; private String protocol; + + public V1ContainerPortFluent() { + } + public V1ContainerPortFluent(V1ContainerPort instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1ContainerPort instance) { instance = instance != null ? instance : new V1ContainerPort(); if (instance != null) { @@ -36,71 +38,6 @@ protected void copyInstance(V1ContainerPort instance) { } } - public Integer getContainerPort() { - return this.containerPort; - } - - public A withContainerPort(Integer containerPort) { - this.containerPort = containerPort; - return (A) this; - } - - public boolean hasContainerPort() { - return this.containerPort != null; - } - - public String getHostIP() { - return this.hostIP; - } - - public A withHostIP(String hostIP) { - this.hostIP = hostIP; - return (A) this; - } - - public boolean hasHostIP() { - return this.hostIP != null; - } - - public Integer getHostPort() { - return this.hostPort; - } - - public A withHostPort(Integer hostPort) { - this.hostPort = hostPort; - return (A) this; - } - - public boolean hasHostPort() { - return this.hostPort != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getProtocol() { - return this.protocol; - } - - public A withProtocol(String protocol) { - this.protocol = protocol; - return (A) this; - } - - public boolean hasProtocol() { - return this.protocol != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -130,6 +67,46 @@ public boolean equals(Object o) { return true; } + public Integer getContainerPort() { + return this.containerPort; + } + + public String getHostIP() { + return this.hostIP; + } + + public Integer getHostPort() { + return this.hostPort; + } + + public String getName() { + return this.name; + } + + public String getProtocol() { + return this.protocol; + } + + public boolean hasContainerPort() { + return this.containerPort != null; + } + + public boolean hasHostIP() { + return this.hostIP != null; + } + + public boolean hasHostPort() { + return this.hostPort != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasProtocol() { + return this.protocol != null; + } + public int hashCode() { return Objects.hash(containerPort, hostIP, hostPort, name, protocol); } @@ -165,5 +142,29 @@ public String toString() { return sb.toString(); } - + public A withContainerPort(Integer containerPort) { + this.containerPort = containerPort; + return (A) this; + } + + public A withHostIP(String hostIP) { + this.hostIP = hostIP; + return (A) this; + } + + public A withHostPort(Integer hostPort) { + this.hostPort = hostPort; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withProtocol(String protocol) { + this.protocol = protocol; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyBuilder.java index 78ac453a42..237f648b62 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ContainerResizePolicyBuilder extends V1ContainerResizePolicyFluent implements VisitableBuilder{ + + V1ContainerResizePolicyFluent fluent; + public V1ContainerResizePolicyBuilder() { this(new V1ContainerResizePolicy()); } @@ -11,17 +14,16 @@ public V1ContainerResizePolicyBuilder(V1ContainerResizePolicyFluent fluent) { this(fluent, new V1ContainerResizePolicy()); } - public V1ContainerResizePolicyBuilder(V1ContainerResizePolicyFluent fluent,V1ContainerResizePolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerResizePolicyBuilder(V1ContainerResizePolicy instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerResizePolicyFluent fluent; + public V1ContainerResizePolicyBuilder(V1ContainerResizePolicyFluent fluent,V1ContainerResizePolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerResizePolicy build() { V1ContainerResizePolicy buildable = new V1ContainerResizePolicy(); buildable.setResourceName(fluent.getResourceName()); @@ -29,5 +31,4 @@ public V1ContainerResizePolicy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyFluent.java index bf4ab81265..49951099f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ContainerResizePolicyFluent> extends BaseFluent{ + + private String resourceName; + private String restartPolicy; + public V1ContainerResizePolicyFluent() { } public V1ContainerResizePolicyFluent(V1ContainerResizePolicy instance) { this.copyInstance(instance); } - private String resourceName; - private String restartPolicy; - + protected void copyInstance(V1ContainerResizePolicy instance) { instance = instance != null ? instance : new V1ContainerResizePolicy(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1ContainerResizePolicy instance) { } } - public String getResourceName() { - return this.resourceName; - } - - public A withResourceName(String resourceName) { - this.resourceName = resourceName; - return (A) this; - } - - public boolean hasResourceName() { - return this.resourceName != null; - } - - public String getRestartPolicy() { - return this.restartPolicy; - } - - public A withRestartPolicy(String restartPolicy) { - this.restartPolicy = restartPolicy; - return (A) this; - } - - public boolean hasRestartPolicy() { - return this.restartPolicy != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getResourceName() { + return this.resourceName; + } + + public String getRestartPolicy() { + return this.restartPolicy; + } + + public boolean hasResourceName() { + return this.resourceName != null; + } + + public boolean hasRestartPolicy() { + return this.restartPolicy != null; + } + public int hashCode() { return Objects.hash(resourceName, restartPolicy); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withResourceName(String resourceName) { + this.resourceName = resourceName; + return (A) this; + } + + public A withRestartPolicy(String restartPolicy) { + this.restartPolicy = restartPolicy; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleBuilder.java index c30e1d57f0..6a9b2332d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ContainerRestartRuleBuilder extends V1ContainerRestartRuleFluent implements VisitableBuilder{ + + V1ContainerRestartRuleFluent fluent; + public V1ContainerRestartRuleBuilder() { this(new V1ContainerRestartRule()); } @@ -11,17 +14,16 @@ public V1ContainerRestartRuleBuilder(V1ContainerRestartRuleFluent fluent) { this(fluent, new V1ContainerRestartRule()); } - public V1ContainerRestartRuleBuilder(V1ContainerRestartRuleFluent fluent,V1ContainerRestartRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerRestartRuleBuilder(V1ContainerRestartRule instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerRestartRuleFluent fluent; + public V1ContainerRestartRuleBuilder(V1ContainerRestartRuleFluent fluent,V1ContainerRestartRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerRestartRule build() { V1ContainerRestartRule buildable = new V1ContainerRestartRule(); buildable.setAction(fluent.getAction()); @@ -29,5 +31,4 @@ public V1ContainerRestartRule build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleFluent.java index 00766f0eb7..eb111858ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleFluent.java @@ -1,27 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ContainerRestartRuleFluent> extends BaseFluent{ + + private String action; + private V1ContainerRestartRuleOnExitCodesBuilder exitCodes; + public V1ContainerRestartRuleFluent() { } public V1ContainerRestartRuleFluent(V1ContainerRestartRule instance) { this.copyInstance(instance); } - private String action; - private V1ContainerRestartRuleOnExitCodesBuilder exitCodes; + + public V1ContainerRestartRuleOnExitCodes buildExitCodes() { + return this.exitCodes != null ? this.exitCodes.build() : null; + } protected void copyInstance(V1ContainerRestartRule instance) { instance = instance != null ? instance : new V1ContainerRestartRule(); @@ -31,47 +37,6 @@ protected void copyInstance(V1ContainerRestartRule instance) { } } - public String getAction() { - return this.action; - } - - public A withAction(String action) { - this.action = action; - return (A) this; - } - - public boolean hasAction() { - return this.action != null; - } - - public V1ContainerRestartRuleOnExitCodes buildExitCodes() { - return this.exitCodes != null ? this.exitCodes.build() : null; - } - - public A withExitCodes(V1ContainerRestartRuleOnExitCodes exitCodes) { - this._visitables.remove("exitCodes"); - if (exitCodes != null) { - this.exitCodes = new V1ContainerRestartRuleOnExitCodesBuilder(exitCodes); - this._visitables.get("exitCodes").add(this.exitCodes); - } else { - this.exitCodes = null; - this._visitables.get("exitCodes").remove(this.exitCodes); - } - return (A) this; - } - - public boolean hasExitCodes() { - return this.exitCodes != null; - } - - public ExitCodesNested withNewExitCodes() { - return new ExitCodesNested(null); - } - - public ExitCodesNested withNewExitCodesLike(V1ContainerRestartRuleOnExitCodes item) { - return new ExitCodesNested(item); - } - public ExitCodesNested editExitCodes() { return this.withNewExitCodesLike(Optional.ofNullable(this.buildExitCodes()).orElse(null)); } @@ -104,6 +69,18 @@ public boolean equals(Object o) { return true; } + public String getAction() { + return this.action; + } + + public boolean hasAction() { + return this.action != null; + } + + public boolean hasExitCodes() { + return this.exitCodes != null; + } + public int hashCode() { return Objects.hash(action, exitCodes); } @@ -123,12 +100,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAction(String action) { + this.action = action; + return (A) this; + } + + public A withExitCodes(V1ContainerRestartRuleOnExitCodes exitCodes) { + this._visitables.remove("exitCodes"); + if (exitCodes != null) { + this.exitCodes = new V1ContainerRestartRuleOnExitCodesBuilder(exitCodes); + this._visitables.get("exitCodes").add(this.exitCodes); + } else { + this.exitCodes = null; + this._visitables.get("exitCodes").remove(this.exitCodes); + } + return (A) this; + } + + public ExitCodesNested withNewExitCodes() { + return new ExitCodesNested(null); + } + + public ExitCodesNested withNewExitCodesLike(V1ContainerRestartRuleOnExitCodes item) { + return new ExitCodesNested(item); + } public class ExitCodesNested extends V1ContainerRestartRuleOnExitCodesFluent> implements Nested{ + + V1ContainerRestartRuleOnExitCodesBuilder builder; + ExitCodesNested(V1ContainerRestartRuleOnExitCodes item) { this.builder = new V1ContainerRestartRuleOnExitCodesBuilder(this, item); } - V1ContainerRestartRuleOnExitCodesBuilder builder; - + public N and() { return (N) V1ContainerRestartRuleFluent.this.withExitCodes(builder.build()); } @@ -137,7 +141,5 @@ public N endExitCodes() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesBuilder.java index 23aa669175..3b44e8fa81 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ContainerRestartRuleOnExitCodesBuilder extends V1ContainerRestartRuleOnExitCodesFluent implements VisitableBuilder{ + + V1ContainerRestartRuleOnExitCodesFluent fluent; + public V1ContainerRestartRuleOnExitCodesBuilder() { this(new V1ContainerRestartRuleOnExitCodes()); } @@ -11,17 +14,16 @@ public V1ContainerRestartRuleOnExitCodesBuilder(V1ContainerRestartRuleOnExitCode this(fluent, new V1ContainerRestartRuleOnExitCodes()); } - public V1ContainerRestartRuleOnExitCodesBuilder(V1ContainerRestartRuleOnExitCodesFluent fluent,V1ContainerRestartRuleOnExitCodes instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerRestartRuleOnExitCodesBuilder(V1ContainerRestartRuleOnExitCodes instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerRestartRuleOnExitCodesFluent fluent; + public V1ContainerRestartRuleOnExitCodesBuilder(V1ContainerRestartRuleOnExitCodesFluent fluent,V1ContainerRestartRuleOnExitCodes instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerRestartRuleOnExitCodes build() { V1ContainerRestartRuleOnExitCodes buildable = new V1ContainerRestartRuleOnExitCodes(); buildable.setOperator(fluent.getOperator()); @@ -29,5 +31,4 @@ public V1ContainerRestartRuleOnExitCodes build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesFluent.java index 345286b978..6763648c6c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesFluent.java @@ -1,65 +1,40 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ContainerRestartRuleOnExitCodesFluent> extends BaseFluent{ + + private String operator; + private List values; + public V1ContainerRestartRuleOnExitCodesFluent() { } public V1ContainerRestartRuleOnExitCodesFluent(V1ContainerRestartRuleOnExitCodes instance) { this.copyInstance(instance); } - private String operator; - private List values; - - protected void copyInstance(V1ContainerRestartRuleOnExitCodes instance) { - instance = instance != null ? instance : new V1ContainerRestartRuleOnExitCodes(); - if (instance != null) { - this.withOperator(instance.getOperator()); - this.withValues(instance.getValues()); - } - } - - public String getOperator() { - return this.operator; - } - - public A withOperator(String operator) { - this.operator = operator; - return (A) this; - } - - public boolean hasOperator() { - return this.operator != null; - } - - public A addToValues(int index,Integer item) { + + public A addAllToValues(Collection items) { if (this.values == null) { this.values = new ArrayList(); } - this.values.add(index, item); - return (A) this; - } - - public A setToValues(int index,Integer item) { - if (this.values == null) { - this.values = new ArrayList(); + for (Integer item : items) { + this.values.add(item); } - this.values.set(index, item); return (A) this; } @@ -73,42 +48,40 @@ public A addToValues(Integer... items) { return (A) this; } - public A addAllToValues(Collection items) { + public A addToValues(int index,Integer item) { if (this.values == null) { this.values = new ArrayList(); } - for (Integer item : items) { - this.values.add(item); - } + this.values.add(index, item); return (A) this; } - public A removeFromValues(Integer... items) { - if (this.values == null) { - return (A) this; - } - for (Integer item : items) { - this.values.remove(item); + protected void copyInstance(V1ContainerRestartRuleOnExitCodes instance) { + instance = instance != null ? instance : new V1ContainerRestartRuleOnExitCodes(); + if (instance != null) { + this.withOperator(instance.getOperator()); + this.withValues(instance.getValues()); } - return (A) this; } - public A removeAllFromValues(Collection items) { - if (this.values == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (Integer item : items) { - this.values.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public List getValues() { - return this.values; - } - - public Integer getValue(int index) { - return this.values.get(index); + if (!(super.equals(o))) { + return false; + } + V1ContainerRestartRuleOnExitCodesFluent that = (V1ContainerRestartRuleOnExitCodesFluent) o; + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } + return true; } public Integer getFirstValue() { @@ -128,6 +101,18 @@ public Integer getMatchingValue(Predicate predicate) { return null; } + public String getOperator() { + return this.operator; + } + + public Integer getValue(int index) { + return this.values.get(index); + } + + public List getValues() { + return this.values; + } + public boolean hasMatchingValue(Predicate predicate) { for (Integer item : values) { if (predicate.test(item)) { @@ -137,57 +122,44 @@ public boolean hasMatchingValue(Predicate predicate) { return false; } - public A withValues(List values) { - if (values != null) { - this.values = new ArrayList(); - for (Integer item : values) { - this.addToValues(item); - } - } else { - this.values = null; - } - return (A) this; - } - - public A withValues(Integer... values) { - if (this.values != null) { - this.values.clear(); - _visitables.remove("values"); - } - if (values != null) { - for (Integer item : values) { - this.addToValues(item); - } - } - return (A) this; + public boolean hasOperator() { + return this.operator != null; } public boolean hasValues() { return this.values != null && !(this.values.isEmpty()); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; + public int hashCode() { + return Objects.hash(operator, values); + } + + public A removeAllFromValues(Collection items) { + if (this.values == null) { + return (A) this; } - if (!(super.equals(o))) { - return false; + for (Integer item : items) { + this.values.remove(item); } - V1ContainerRestartRuleOnExitCodesFluent that = (V1ContainerRestartRuleOnExitCodesFluent) o; - if (!(Objects.equals(operator, that.operator))) { - return false; + return (A) this; + } + + public A removeFromValues(Integer... items) { + if (this.values == null) { + return (A) this; } - if (!(Objects.equals(values, that.values))) { - return false; + for (Integer item : items) { + this.values.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(operator, values); + public A setToValues(int index,Integer item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; } public String toString() { @@ -206,5 +178,34 @@ public String toString() { return sb.toString(); } - + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public A withValues(List values) { + if (values != null) { + this.values = new ArrayList(); + for (Integer item : values) { + this.addToValues(item); + } + } else { + this.values = null; + } + return (A) this; + } + + public A withValues(Integer... values) { + if (this.values != null) { + this.values.clear(); + _visitables.remove("values"); + } + if (values != null) { + for (Integer item : values) { + this.addToValues(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java index 285786f7c5..79825a4d8f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ContainerStateBuilder extends V1ContainerStateFluent implements VisitableBuilder{ + + V1ContainerStateFluent fluent; + public V1ContainerStateBuilder() { this(new V1ContainerState()); } @@ -11,17 +14,16 @@ public V1ContainerStateBuilder(V1ContainerStateFluent fluent) { this(fluent, new V1ContainerState()); } - public V1ContainerStateBuilder(V1ContainerStateFluent fluent,V1ContainerState instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerStateBuilder(V1ContainerState instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerStateFluent fluent; + public V1ContainerStateBuilder(V1ContainerStateFluent fluent,V1ContainerState instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerState build() { V1ContainerState buildable = new V1ContainerState(); buildable.setRunning(fluent.buildRunning()); @@ -30,5 +32,4 @@ public V1ContainerState build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java index 0fa3e92414..fe4194d7ba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java @@ -1,68 +1,50 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ContainerStateFluent> extends BaseFluent{ + + private V1ContainerStateRunningBuilder running; + private V1ContainerStateTerminatedBuilder terminated; + private V1ContainerStateWaitingBuilder waiting; + public V1ContainerStateFluent() { } public V1ContainerStateFluent(V1ContainerState instance) { this.copyInstance(instance); } - private V1ContainerStateRunningBuilder running; - private V1ContainerStateTerminatedBuilder terminated; - private V1ContainerStateWaitingBuilder waiting; - - protected void copyInstance(V1ContainerState instance) { - instance = instance != null ? instance : new V1ContainerState(); - if (instance != null) { - this.withRunning(instance.getRunning()); - this.withTerminated(instance.getTerminated()); - this.withWaiting(instance.getWaiting()); - } - } - + public V1ContainerStateRunning buildRunning() { return this.running != null ? this.running.build() : null; } - public A withRunning(V1ContainerStateRunning running) { - this._visitables.remove("running"); - if (running != null) { - this.running = new V1ContainerStateRunningBuilder(running); - this._visitables.get("running").add(this.running); - } else { - this.running = null; - this._visitables.get("running").remove(this.running); - } - return (A) this; - } - - public boolean hasRunning() { - return this.running != null; - } - - public RunningNested withNewRunning() { - return new RunningNested(null); + public V1ContainerStateTerminated buildTerminated() { + return this.terminated != null ? this.terminated.build() : null; } - public RunningNested withNewRunningLike(V1ContainerStateRunning item) { - return new RunningNested(item); + public V1ContainerStateWaiting buildWaiting() { + return this.waiting != null ? this.waiting.build() : null; } - public RunningNested editRunning() { - return this.withNewRunningLike(Optional.ofNullable(this.buildRunning()).orElse(null)); + protected void copyInstance(V1ContainerState instance) { + instance = instance != null ? instance : new V1ContainerState(); + if (instance != null) { + this.withRunning(instance.getRunning()); + this.withTerminated(instance.getTerminated()); + this.withWaiting(instance.getWaiting()); + } } public RunningNested editOrNewRunning() { @@ -73,38 +55,6 @@ public RunningNested editOrNewRunningLike(V1ContainerStateRunning item) { return this.withNewRunningLike(Optional.ofNullable(this.buildRunning()).orElse(item)); } - public V1ContainerStateTerminated buildTerminated() { - return this.terminated != null ? this.terminated.build() : null; - } - - public A withTerminated(V1ContainerStateTerminated terminated) { - this._visitables.remove("terminated"); - if (terminated != null) { - this.terminated = new V1ContainerStateTerminatedBuilder(terminated); - this._visitables.get("terminated").add(this.terminated); - } else { - this.terminated = null; - this._visitables.get("terminated").remove(this.terminated); - } - return (A) this; - } - - public boolean hasTerminated() { - return this.terminated != null; - } - - public TerminatedNested withNewTerminated() { - return new TerminatedNested(null); - } - - public TerminatedNested withNewTerminatedLike(V1ContainerStateTerminated item) { - return new TerminatedNested(item); - } - - public TerminatedNested editTerminated() { - return this.withNewTerminatedLike(Optional.ofNullable(this.buildTerminated()).orElse(null)); - } - public TerminatedNested editOrNewTerminated() { return this.withNewTerminatedLike(Optional.ofNullable(this.buildTerminated()).orElse(new V1ContainerStateTerminatedBuilder().build())); } @@ -113,46 +63,26 @@ public TerminatedNested editOrNewTerminatedLike(V1ContainerStateTerminated it return this.withNewTerminatedLike(Optional.ofNullable(this.buildTerminated()).orElse(item)); } - public V1ContainerStateWaiting buildWaiting() { - return this.waiting != null ? this.waiting.build() : null; - } - - public A withWaiting(V1ContainerStateWaiting waiting) { - this._visitables.remove("waiting"); - if (waiting != null) { - this.waiting = new V1ContainerStateWaitingBuilder(waiting); - this._visitables.get("waiting").add(this.waiting); - } else { - this.waiting = null; - this._visitables.get("waiting").remove(this.waiting); - } - return (A) this; + public WaitingNested editOrNewWaiting() { + return this.withNewWaitingLike(Optional.ofNullable(this.buildWaiting()).orElse(new V1ContainerStateWaitingBuilder().build())); } - public boolean hasWaiting() { - return this.waiting != null; + public WaitingNested editOrNewWaitingLike(V1ContainerStateWaiting item) { + return this.withNewWaitingLike(Optional.ofNullable(this.buildWaiting()).orElse(item)); } - public WaitingNested withNewWaiting() { - return new WaitingNested(null); + public RunningNested editRunning() { + return this.withNewRunningLike(Optional.ofNullable(this.buildRunning()).orElse(null)); } - public WaitingNested withNewWaitingLike(V1ContainerStateWaiting item) { - return new WaitingNested(item); + public TerminatedNested editTerminated() { + return this.withNewTerminatedLike(Optional.ofNullable(this.buildTerminated()).orElse(null)); } public WaitingNested editWaiting() { return this.withNewWaitingLike(Optional.ofNullable(this.buildWaiting()).orElse(null)); } - public WaitingNested editOrNewWaiting() { - return this.withNewWaitingLike(Optional.ofNullable(this.buildWaiting()).orElse(new V1ContainerStateWaitingBuilder().build())); - } - - public WaitingNested editOrNewWaitingLike(V1ContainerStateWaiting item) { - return this.withNewWaitingLike(Optional.ofNullable(this.buildWaiting()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -176,6 +106,18 @@ public boolean equals(Object o) { return true; } + public boolean hasRunning() { + return this.running != null; + } + + public boolean hasTerminated() { + return this.terminated != null; + } + + public boolean hasWaiting() { + return this.waiting != null; + } + public int hashCode() { return Objects.hash(running, terminated, waiting); } @@ -200,12 +142,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public RunningNested withNewRunning() { + return new RunningNested(null); + } + + public RunningNested withNewRunningLike(V1ContainerStateRunning item) { + return new RunningNested(item); + } + + public TerminatedNested withNewTerminated() { + return new TerminatedNested(null); + } + + public TerminatedNested withNewTerminatedLike(V1ContainerStateTerminated item) { + return new TerminatedNested(item); + } + + public WaitingNested withNewWaiting() { + return new WaitingNested(null); + } + + public WaitingNested withNewWaitingLike(V1ContainerStateWaiting item) { + return new WaitingNested(item); + } + + public A withRunning(V1ContainerStateRunning running) { + this._visitables.remove("running"); + if (running != null) { + this.running = new V1ContainerStateRunningBuilder(running); + this._visitables.get("running").add(this.running); + } else { + this.running = null; + this._visitables.get("running").remove(this.running); + } + return (A) this; + } + + public A withTerminated(V1ContainerStateTerminated terminated) { + this._visitables.remove("terminated"); + if (terminated != null) { + this.terminated = new V1ContainerStateTerminatedBuilder(terminated); + this._visitables.get("terminated").add(this.terminated); + } else { + this.terminated = null; + this._visitables.get("terminated").remove(this.terminated); + } + return (A) this; + } + + public A withWaiting(V1ContainerStateWaiting waiting) { + this._visitables.remove("waiting"); + if (waiting != null) { + this.waiting = new V1ContainerStateWaitingBuilder(waiting); + this._visitables.get("waiting").add(this.waiting); + } else { + this.waiting = null; + this._visitables.get("waiting").remove(this.waiting); + } + return (A) this; + } public class RunningNested extends V1ContainerStateRunningFluent> implements Nested{ + + V1ContainerStateRunningBuilder builder; + RunningNested(V1ContainerStateRunning item) { this.builder = new V1ContainerStateRunningBuilder(this, item); } - V1ContainerStateRunningBuilder builder; - + public N and() { return (N) V1ContainerStateFluent.this.withRunning(builder.build()); } @@ -214,14 +218,15 @@ public N endRunning() { return and(); } - } public class TerminatedNested extends V1ContainerStateTerminatedFluent> implements Nested{ + + V1ContainerStateTerminatedBuilder builder; + TerminatedNested(V1ContainerStateTerminated item) { this.builder = new V1ContainerStateTerminatedBuilder(this, item); } - V1ContainerStateTerminatedBuilder builder; - + public N and() { return (N) V1ContainerStateFluent.this.withTerminated(builder.build()); } @@ -230,14 +235,15 @@ public N endTerminated() { return and(); } - } public class WaitingNested extends V1ContainerStateWaitingFluent> implements Nested{ + + V1ContainerStateWaitingBuilder builder; + WaitingNested(V1ContainerStateWaiting item) { this.builder = new V1ContainerStateWaitingBuilder(this, item); } - V1ContainerStateWaitingBuilder builder; - + public N and() { return (N) V1ContainerStateFluent.this.withWaiting(builder.build()); } @@ -246,7 +252,5 @@ public N endWaiting() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java index 752dcaade2..2feeee8cbe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ContainerStateRunningBuilder extends V1ContainerStateRunningFluent implements VisitableBuilder{ + + V1ContainerStateRunningFluent fluent; + public V1ContainerStateRunningBuilder() { this(new V1ContainerStateRunning()); } @@ -11,22 +14,20 @@ public V1ContainerStateRunningBuilder(V1ContainerStateRunningFluent fluent) { this(fluent, new V1ContainerStateRunning()); } - public V1ContainerStateRunningBuilder(V1ContainerStateRunningFluent fluent,V1ContainerStateRunning instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerStateRunningBuilder(V1ContainerStateRunning instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerStateRunningFluent fluent; + public V1ContainerStateRunningBuilder(V1ContainerStateRunningFluent fluent,V1ContainerStateRunning instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerStateRunning build() { V1ContainerStateRunning buildable = new V1ContainerStateRunning(); buildable.setStartedAt(fluent.getStartedAt()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java index a4178b68e1..5ce85a5c75 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ContainerStateRunningFluent> extends BaseFluent{ + + private OffsetDateTime startedAt; + public V1ContainerStateRunningFluent() { } public V1ContainerStateRunningFluent(V1ContainerStateRunning instance) { this.copyInstance(instance); } - private OffsetDateTime startedAt; - + protected void copyInstance(V1ContainerStateRunning instance) { instance = instance != null ? instance : new V1ContainerStateRunning(); if (instance != null) { @@ -28,19 +30,6 @@ protected void copyInstance(V1ContainerStateRunning instance) { } } - public OffsetDateTime getStartedAt() { - return this.startedAt; - } - - public A withStartedAt(OffsetDateTime startedAt) { - this.startedAt = startedAt; - return (A) this; - } - - public boolean hasStartedAt() { - return this.startedAt != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -58,6 +47,14 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getStartedAt() { + return this.startedAt; + } + + public boolean hasStartedAt() { + return this.startedAt != null; + } + public int hashCode() { return Objects.hash(startedAt); } @@ -73,5 +70,9 @@ public String toString() { return sb.toString(); } - + public A withStartedAt(OffsetDateTime startedAt) { + this.startedAt = startedAt; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java index 3de3f860e6..27d8957960 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ContainerStateTerminatedBuilder extends V1ContainerStateTerminatedFluent implements VisitableBuilder{ + + V1ContainerStateTerminatedFluent fluent; + public V1ContainerStateTerminatedBuilder() { this(new V1ContainerStateTerminated()); } @@ -11,17 +14,16 @@ public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminatedFluent flu this(fluent, new V1ContainerStateTerminated()); } - public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminatedFluent fluent,V1ContainerStateTerminated instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminated instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerStateTerminatedFluent fluent; + public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminatedFluent fluent,V1ContainerStateTerminated instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerStateTerminated build() { V1ContainerStateTerminated buildable = new V1ContainerStateTerminated(); buildable.setContainerID(fluent.getContainerID()); @@ -34,5 +36,4 @@ public V1ContainerStateTerminated build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java index 70df01fd82..a4b6ed7c4b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java @@ -1,25 +1,20 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.time.OffsetDateTime; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; +import java.time.OffsetDateTime; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1ContainerStateTerminatedFluent> extends BaseFluent{ - public V1ContainerStateTerminatedFluent() { - } - - public V1ContainerStateTerminatedFluent(V1ContainerStateTerminated instance) { - this.copyInstance(instance); - } + private String containerID; private Integer exitCode; private OffsetDateTime finishedAt; @@ -27,7 +22,14 @@ public V1ContainerStateTerminatedFluent(V1ContainerStateTerminated instance) { private String reason; private Integer signal; private OffsetDateTime startedAt; + + public V1ContainerStateTerminatedFluent() { + } + public V1ContainerStateTerminatedFluent(V1ContainerStateTerminated instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1ContainerStateTerminated instance) { instance = instance != null ? instance : new V1ContainerStateTerminated(); if (instance != null) { @@ -41,130 +43,95 @@ protected void copyInstance(V1ContainerStateTerminated instance) { } } - public String getContainerID() { - return this.containerID; - } - - public A withContainerID(String containerID) { - this.containerID = containerID; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ContainerStateTerminatedFluent that = (V1ContainerStateTerminatedFluent) o; + if (!(Objects.equals(containerID, that.containerID))) { + return false; + } + if (!(Objects.equals(exitCode, that.exitCode))) { + return false; + } + if (!(Objects.equals(finishedAt, that.finishedAt))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(signal, that.signal))) { + return false; + } + if (!(Objects.equals(startedAt, that.startedAt))) { + return false; + } + return true; } - public boolean hasContainerID() { - return this.containerID != null; + public String getContainerID() { + return this.containerID; } public Integer getExitCode() { return this.exitCode; } - public A withExitCode(Integer exitCode) { - this.exitCode = exitCode; - return (A) this; - } - - public boolean hasExitCode() { - return this.exitCode != null; - } - public OffsetDateTime getFinishedAt() { return this.finishedAt; } - public A withFinishedAt(OffsetDateTime finishedAt) { - this.finishedAt = finishedAt; - return (A) this; - } - - public boolean hasFinishedAt() { - return this.finishedAt != null; - } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public Integer getSignal() { + return this.signal; } - public boolean hasReason() { - return this.reason != null; + public OffsetDateTime getStartedAt() { + return this.startedAt; } - public Integer getSignal() { - return this.signal; + public boolean hasContainerID() { + return this.containerID != null; } - public A withSignal(Integer signal) { - this.signal = signal; - return (A) this; + public boolean hasExitCode() { + return this.exitCode != null; } - public boolean hasSignal() { - return this.signal != null; + public boolean hasFinishedAt() { + return this.finishedAt != null; } - public OffsetDateTime getStartedAt() { - return this.startedAt; + public boolean hasMessage() { + return this.message != null; } - public A withStartedAt(OffsetDateTime startedAt) { - this.startedAt = startedAt; - return (A) this; + public boolean hasReason() { + return this.reason != null; } - public boolean hasStartedAt() { - return this.startedAt != null; + public boolean hasSignal() { + return this.signal != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ContainerStateTerminatedFluent that = (V1ContainerStateTerminatedFluent) o; - if (!(Objects.equals(containerID, that.containerID))) { - return false; - } - if (!(Objects.equals(exitCode, that.exitCode))) { - return false; - } - if (!(Objects.equals(finishedAt, that.finishedAt))) { - return false; - } - if (!(Objects.equals(message, that.message))) { - return false; - } - if (!(Objects.equals(reason, that.reason))) { - return false; - } - if (!(Objects.equals(signal, that.signal))) { - return false; - } - if (!(Objects.equals(startedAt, that.startedAt))) { - return false; - } - return true; + public boolean hasStartedAt() { + return this.startedAt != null; } public int hashCode() { @@ -212,5 +179,39 @@ public String toString() { return sb.toString(); } - + public A withContainerID(String containerID) { + this.containerID = containerID; + return (A) this; + } + + public A withExitCode(Integer exitCode) { + this.exitCode = exitCode; + return (A) this; + } + + public A withFinishedAt(OffsetDateTime finishedAt) { + this.finishedAt = finishedAt; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withSignal(Integer signal) { + this.signal = signal; + return (A) this; + } + + public A withStartedAt(OffsetDateTime startedAt) { + this.startedAt = startedAt; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java index 1f543054cd..eb955e8730 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ContainerStateWaitingBuilder extends V1ContainerStateWaitingFluent implements VisitableBuilder{ + + V1ContainerStateWaitingFluent fluent; + public V1ContainerStateWaitingBuilder() { this(new V1ContainerStateWaiting()); } @@ -11,17 +14,16 @@ public V1ContainerStateWaitingBuilder(V1ContainerStateWaitingFluent fluent) { this(fluent, new V1ContainerStateWaiting()); } - public V1ContainerStateWaitingBuilder(V1ContainerStateWaitingFluent fluent,V1ContainerStateWaiting instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerStateWaitingBuilder(V1ContainerStateWaiting instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerStateWaitingFluent fluent; + public V1ContainerStateWaitingBuilder(V1ContainerStateWaitingFluent fluent,V1ContainerStateWaiting instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerStateWaiting build() { V1ContainerStateWaiting buildable = new V1ContainerStateWaiting(); buildable.setMessage(fluent.getMessage()); @@ -29,5 +31,4 @@ public V1ContainerStateWaiting build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java index 5c0e60cb88..94109ca87c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ContainerStateWaitingFluent> extends BaseFluent{ + + private String message; + private String reason; + public V1ContainerStateWaitingFluent() { } public V1ContainerStateWaitingFluent(V1ContainerStateWaiting instance) { this.copyInstance(instance); } - private String message; - private String reason; - + protected void copyInstance(V1ContainerStateWaiting instance) { instance = instance != null ? instance : new V1ContainerStateWaiting(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1ContainerStateWaiting instance) { } } - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getMessage() { + return this.message; + } + + public String getReason() { + return this.reason; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasReason() { + return this.reason != null; + } + public int hashCode() { return Objects.hash(message, reason); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java index d78236fe3b..2deb2d05f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ContainerStatusBuilder extends V1ContainerStatusFluent implements VisitableBuilder{ + + V1ContainerStatusFluent fluent; + public V1ContainerStatusBuilder() { this(new V1ContainerStatus()); } @@ -11,17 +14,16 @@ public V1ContainerStatusBuilder(V1ContainerStatusFluent fluent) { this(fluent, new V1ContainerStatus()); } - public V1ContainerStatusBuilder(V1ContainerStatusFluent fluent,V1ContainerStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerStatusBuilder(V1ContainerStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerStatusFluent fluent; + public V1ContainerStatusBuilder(V1ContainerStatusFluent fluent,V1ContainerStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerStatus build() { V1ContainerStatus buildable = new V1ContainerStatus(); buildable.setAllocatedResources(fluent.getAllocatedResources()); @@ -42,5 +44,4 @@ public V1ContainerStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java index 7e36af15a6..82c356ff66 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java @@ -1,36 +1,31 @@ package io.kubernetes.client.openapi.models; -import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; +import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.fluent.BaseFluent; -import java.util.List; +import io.kubernetes.client.fluent.Nested; import java.lang.Boolean; -import java.util.Optional; -import java.util.Objects; -import java.util.Collection; +import java.lang.Integer; import java.lang.Object; -import java.util.Map; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.RuntimeException; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; -import io.kubernetes.client.custom.Quantity; -import java.lang.Integer; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ContainerStatusFluent> extends BaseFluent{ - public V1ContainerStatusFluent() { - } - - public V1ContainerStatusFluent(V1ContainerStatus instance) { - this.copyInstance(instance); - } + private Map allocatedResources; private ArrayList allocatedResourcesStatus; private String containerID; @@ -46,115 +41,70 @@ public V1ContainerStatusFluent(V1ContainerStatus instance) { private String stopSignal; private V1ContainerUserBuilder user; private ArrayList volumeMounts; - - protected void copyInstance(V1ContainerStatus instance) { - instance = instance != null ? instance : new V1ContainerStatus(); - if (instance != null) { - this.withAllocatedResources(instance.getAllocatedResources()); - this.withAllocatedResourcesStatus(instance.getAllocatedResourcesStatus()); - this.withContainerID(instance.getContainerID()); - this.withImage(instance.getImage()); - this.withImageID(instance.getImageID()); - this.withLastState(instance.getLastState()); - this.withName(instance.getName()); - this.withReady(instance.getReady()); - this.withResources(instance.getResources()); - this.withRestartCount(instance.getRestartCount()); - this.withStarted(instance.getStarted()); - this.withState(instance.getState()); - this.withStopSignal(instance.getStopSignal()); - this.withUser(instance.getUser()); - this.withVolumeMounts(instance.getVolumeMounts()); - } + + public V1ContainerStatusFluent() { } - public A addToAllocatedResources(String key,Quantity value) { - if (this.allocatedResources == null && key != null && value != null) { - this.allocatedResources = new LinkedHashMap(); - } - if (key != null && value != null) { - this.allocatedResources.put(key, value); - } - return (A) this; + public V1ContainerStatusFluent(V1ContainerStatus instance) { + this.copyInstance(instance); } - - public A addToAllocatedResources(Map map) { - if (this.allocatedResources == null && map != null) { - this.allocatedResources = new LinkedHashMap(); + + public A addAllToAllocatedResourcesStatus(Collection items) { + if (this.allocatedResourcesStatus == null) { + this.allocatedResourcesStatus = new ArrayList(); } - if (map != null) { - this.allocatedResources.putAll(map); + for (V1ResourceStatus item : items) { + V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); + _visitables.get("allocatedResourcesStatus").add(builder); + this.allocatedResourcesStatus.add(builder); } return (A) this; } - public A removeFromAllocatedResources(String key) { - if (this.allocatedResources == null) { - return (A) this; + public A addAllToVolumeMounts(Collection items) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); } - if (key != null && this.allocatedResources != null) { - this.allocatedResources.remove(key); + for (V1VolumeMountStatus item : items) { + V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); + _visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); } return (A) this; } - public A removeFromAllocatedResources(Map map) { - if (this.allocatedResources == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.allocatedResources != null) { - this.allocatedResources.remove(key); - } - } - } - return (A) this; + public AllocatedResourcesStatusNested addNewAllocatedResourcesStatus() { + return new AllocatedResourcesStatusNested(-1, null); } - public Map getAllocatedResources() { - return this.allocatedResources; + public AllocatedResourcesStatusNested addNewAllocatedResourcesStatusLike(V1ResourceStatus item) { + return new AllocatedResourcesStatusNested(-1, item); } - public A withAllocatedResources(Map allocatedResources) { - if (allocatedResources == null) { - this.allocatedResources = null; - } else { - this.allocatedResources = new LinkedHashMap(allocatedResources); - } - return (A) this; + public VolumeMountsNested addNewVolumeMount() { + return new VolumeMountsNested(-1, null); } - public boolean hasAllocatedResources() { - return this.allocatedResources != null; + public VolumeMountsNested addNewVolumeMountLike(V1VolumeMountStatus item) { + return new VolumeMountsNested(-1, item); } - public A addToAllocatedResourcesStatus(int index,V1ResourceStatus item) { - if (this.allocatedResourcesStatus == null) { - this.allocatedResourcesStatus = new ArrayList(); + public A addToAllocatedResources(Map map) { + if (this.allocatedResources == null && map != null) { + this.allocatedResources = new LinkedHashMap(); } - V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); - if (index < 0 || index >= allocatedResourcesStatus.size()) { - _visitables.get("allocatedResourcesStatus").add(builder); - allocatedResourcesStatus.add(builder); - } else { - _visitables.get("allocatedResourcesStatus").add(builder); - allocatedResourcesStatus.add(index, builder); + if (map != null) { + this.allocatedResources.putAll(map); } return (A) this; } - public A setToAllocatedResourcesStatus(int index,V1ResourceStatus item) { - if (this.allocatedResourcesStatus == null) { - this.allocatedResourcesStatus = new ArrayList(); + public A addToAllocatedResources(String key,Quantity value) { + if (this.allocatedResources == null && key != null && value != null) { + this.allocatedResources = new LinkedHashMap(); } - V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); - if (index < 0 || index >= allocatedResourcesStatus.size()) { - _visitables.get("allocatedResourcesStatus").add(builder); - allocatedResourcesStatus.add(builder); - } else { - _visitables.get("allocatedResourcesStatus").add(builder); - allocatedResourcesStatus.set(index, builder); + if (key != null && value != null) { + this.allocatedResources.put(key, value); } return (A) this; } @@ -171,54 +121,44 @@ public A addToAllocatedResourcesStatus(V1ResourceStatus... items) { return (A) this; } - public A addAllToAllocatedResourcesStatus(Collection items) { + public A addToAllocatedResourcesStatus(int index,V1ResourceStatus item) { if (this.allocatedResourcesStatus == null) { this.allocatedResourcesStatus = new ArrayList(); } - for (V1ResourceStatus item : items) { - V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); + V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); + if (index < 0 || index >= allocatedResourcesStatus.size()) { _visitables.get("allocatedResourcesStatus").add(builder); - this.allocatedResourcesStatus.add(builder); - } - return (A) this; - } - - public A removeFromAllocatedResourcesStatus(V1ResourceStatus... items) { - if (this.allocatedResourcesStatus == null) { - return (A) this; - } - for (V1ResourceStatus item : items) { - V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); - _visitables.get("allocatedResourcesStatus").remove(builder); - this.allocatedResourcesStatus.remove(builder); + allocatedResourcesStatus.add(builder); + } else { + _visitables.get("allocatedResourcesStatus").add(builder); + allocatedResourcesStatus.add(index, builder); } return (A) this; } - public A removeAllFromAllocatedResourcesStatus(Collection items) { - if (this.allocatedResourcesStatus == null) { - return (A) this; + public A addToVolumeMounts(V1VolumeMountStatus... items) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); } - for (V1ResourceStatus item : items) { - V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); - _visitables.get("allocatedResourcesStatus").remove(builder); - this.allocatedResourcesStatus.remove(builder); + for (V1VolumeMountStatus item : items) { + V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); + _visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); } return (A) this; } - public A removeMatchingFromAllocatedResourcesStatus(Predicate predicate) { - if (allocatedResourcesStatus == null) { - return (A) this; + public A addToVolumeMounts(int index,V1VolumeMountStatus item) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); } - Iterator each = allocatedResourcesStatus.iterator(); - List visitables = _visitables.get("allocatedResourcesStatus"); - while (each.hasNext()) { - V1ResourceStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); + if (index < 0 || index >= volumeMounts.size()) { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(builder); + } else { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(index, builder); } return (A) this; } @@ -235,10 +175,22 @@ public V1ResourceStatus buildFirstAllocatedResourcesStatus() { return this.allocatedResourcesStatus.get(0).build(); } + public V1VolumeMountStatus buildFirstVolumeMount() { + return this.volumeMounts.get(0).build(); + } + public V1ResourceStatus buildLastAllocatedResourcesStatus() { return this.allocatedResourcesStatus.get(allocatedResourcesStatus.size() - 1).build(); } + public V1ContainerState buildLastState() { + return this.lastState != null ? this.lastState.build() : null; + } + + public V1VolumeMountStatus buildLastVolumeMount() { + return this.volumeMounts.get(volumeMounts.size() - 1).build(); + } + public V1ResourceStatus buildMatchingAllocatedResourcesStatus(Predicate predicate) { for (V1ResourceStatusBuilder item : allocatedResourcesStatus) { if (predicate.test(item)) { @@ -248,61 +200,58 @@ public V1ResourceStatus buildMatchingAllocatedResourcesStatus(Predicate predicate) { - for (V1ResourceStatusBuilder item : allocatedResourcesStatus) { + public V1VolumeMountStatus buildMatchingVolumeMount(Predicate predicate) { + for (V1VolumeMountStatusBuilder item : volumeMounts) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withAllocatedResourcesStatus(List allocatedResourcesStatus) { - if (this.allocatedResourcesStatus != null) { - this._visitables.get("allocatedResourcesStatus").clear(); - } - if (allocatedResourcesStatus != null) { - this.allocatedResourcesStatus = new ArrayList(); - for (V1ResourceStatus item : allocatedResourcesStatus) { - this.addToAllocatedResourcesStatus(item); - } - } else { - this.allocatedResourcesStatus = null; - } - return (A) this; + public V1ResourceRequirements buildResources() { + return this.resources != null ? this.resources.build() : null; } - public A withAllocatedResourcesStatus(V1ResourceStatus... allocatedResourcesStatus) { - if (this.allocatedResourcesStatus != null) { - this.allocatedResourcesStatus.clear(); - _visitables.remove("allocatedResourcesStatus"); - } - if (allocatedResourcesStatus != null) { - for (V1ResourceStatus item : allocatedResourcesStatus) { - this.addToAllocatedResourcesStatus(item); - } - } - return (A) this; + public V1ContainerState buildState() { + return this.state != null ? this.state.build() : null; } - public boolean hasAllocatedResourcesStatus() { - return this.allocatedResourcesStatus != null && !(this.allocatedResourcesStatus.isEmpty()); + public V1ContainerUser buildUser() { + return this.user != null ? this.user.build() : null; } - public AllocatedResourcesStatusNested addNewAllocatedResourcesStatus() { - return new AllocatedResourcesStatusNested(-1, null); + public V1VolumeMountStatus buildVolumeMount(int index) { + return this.volumeMounts.get(index).build(); } - public AllocatedResourcesStatusNested addNewAllocatedResourcesStatusLike(V1ResourceStatus item) { - return new AllocatedResourcesStatusNested(-1, item); + public List buildVolumeMounts() { + return this.volumeMounts != null ? build(volumeMounts) : null; } - public AllocatedResourcesStatusNested setNewAllocatedResourcesStatusLike(int index,V1ResourceStatus item) { - return new AllocatedResourcesStatusNested(index, item); + protected void copyInstance(V1ContainerStatus instance) { + instance = instance != null ? instance : new V1ContainerStatus(); + if (instance != null) { + this.withAllocatedResources(instance.getAllocatedResources()); + this.withAllocatedResourcesStatus(instance.getAllocatedResourcesStatus()); + this.withContainerID(instance.getContainerID()); + this.withImage(instance.getImage()); + this.withImageID(instance.getImageID()); + this.withLastState(instance.getLastState()); + this.withName(instance.getName()); + this.withReady(instance.getReady()); + this.withResources(instance.getResources()); + this.withRestartCount(instance.getRestartCount()); + this.withStarted(instance.getStarted()); + this.withState(instance.getState()); + this.withStopSignal(instance.getStopSignal()); + this.withUser(instance.getUser()); + this.withVolumeMounts(instance.getVolumeMounts()); + } } public AllocatedResourcesStatusNested editAllocatedResourcesStatus(int index) { - if (index <= allocatedResourcesStatus.size()) { + if (allocatedResourcesStatus.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "allocatedResourcesStatus")); } return this.setNewAllocatedResourcesStatusLike(index, this.buildAllocatedResourcesStatus(index)); @@ -315,6 +264,13 @@ public AllocatedResourcesStatusNested editFirstAllocatedResourcesStatus() { return this.setNewAllocatedResourcesStatusLike(0, this.buildAllocatedResourcesStatus(0)); } + public VolumeMountsNested editFirstVolumeMount() { + if (volumeMounts.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeMounts")); + } + return this.setNewVolumeMountLike(0, this.buildVolumeMount(0)); + } + public AllocatedResourcesStatusNested editLastAllocatedResourcesStatus() { int index = allocatedResourcesStatus.size() - 1; if (index < 0) { @@ -323,6 +279,18 @@ public AllocatedResourcesStatusNested editLastAllocatedResourcesStatus() { return this.setNewAllocatedResourcesStatusLike(index, this.buildAllocatedResourcesStatus(index)); } + public LastStateNested editLastState() { + return this.withNewLastStateLike(Optional.ofNullable(this.buildLastState()).orElse(null)); + } + + public VolumeMountsNested editLastVolumeMount() { + int index = volumeMounts.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); + } + public AllocatedResourcesStatusNested editMatchingAllocatedResourcesStatus(Predicate predicate) { int index = -1; for (int i = 0;i < allocatedResourcesStatus.size();i++) { @@ -337,320 +305,304 @@ public AllocatedResourcesStatusNested editMatchingAllocatedResourcesStatus(Pr return this.setNewAllocatedResourcesStatusLike(index, this.buildAllocatedResourcesStatus(index)); } - public String getContainerID() { - return this.containerID; - } - - public A withContainerID(String containerID) { - this.containerID = containerID; - return (A) this; + public VolumeMountsNested editMatchingVolumeMount(Predicate predicate) { + int index = -1; + for (int i = 0;i < volumeMounts.size();i++) { + if (predicate.test(volumeMounts.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } - public boolean hasContainerID() { - return this.containerID != null; + public LastStateNested editOrNewLastState() { + return this.withNewLastStateLike(Optional.ofNullable(this.buildLastState()).orElse(new V1ContainerStateBuilder().build())); } - public String getImage() { - return this.image; + public LastStateNested editOrNewLastStateLike(V1ContainerState item) { + return this.withNewLastStateLike(Optional.ofNullable(this.buildLastState()).orElse(item)); } - public A withImage(String image) { - this.image = image; - return (A) this; + public ResourcesNested editOrNewResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); } - public boolean hasImage() { - return this.image != null; + public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); } - public String getImageID() { - return this.imageID; + public StateNested editOrNewState() { + return this.withNewStateLike(Optional.ofNullable(this.buildState()).orElse(new V1ContainerStateBuilder().build())); } - public A withImageID(String imageID) { - this.imageID = imageID; - return (A) this; + public StateNested editOrNewStateLike(V1ContainerState item) { + return this.withNewStateLike(Optional.ofNullable(this.buildState()).orElse(item)); } - public boolean hasImageID() { - return this.imageID != null; + public UserNested editOrNewUser() { + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(new V1ContainerUserBuilder().build())); } - public V1ContainerState buildLastState() { - return this.lastState != null ? this.lastState.build() : null; + public UserNested editOrNewUserLike(V1ContainerUser item) { + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(item)); } - public A withLastState(V1ContainerState lastState) { - this._visitables.remove("lastState"); - if (lastState != null) { - this.lastState = new V1ContainerStateBuilder(lastState); - this._visitables.get("lastState").add(this.lastState); - } else { - this.lastState = null; - this._visitables.get("lastState").remove(this.lastState); - } - return (A) this; + public ResourcesNested editResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); } - public boolean hasLastState() { - return this.lastState != null; + public StateNested editState() { + return this.withNewStateLike(Optional.ofNullable(this.buildState()).orElse(null)); } - public LastStateNested withNewLastState() { - return new LastStateNested(null); + public UserNested editUser() { + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(null)); } - public LastStateNested withNewLastStateLike(V1ContainerState item) { - return new LastStateNested(item); + public VolumeMountsNested editVolumeMount(int index) { + if (volumeMounts.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } - public LastStateNested editLastState() { - return this.withNewLastStateLike(Optional.ofNullable(this.buildLastState()).orElse(null)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ContainerStatusFluent that = (V1ContainerStatusFluent) o; + if (!(Objects.equals(allocatedResources, that.allocatedResources))) { + return false; + } + if (!(Objects.equals(allocatedResourcesStatus, that.allocatedResourcesStatus))) { + return false; + } + if (!(Objects.equals(containerID, that.containerID))) { + return false; + } + if (!(Objects.equals(image, that.image))) { + return false; + } + if (!(Objects.equals(imageID, that.imageID))) { + return false; + } + if (!(Objects.equals(lastState, that.lastState))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(ready, that.ready))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(restartCount, that.restartCount))) { + return false; + } + if (!(Objects.equals(started, that.started))) { + return false; + } + if (!(Objects.equals(state, that.state))) { + return false; + } + if (!(Objects.equals(stopSignal, that.stopSignal))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + if (!(Objects.equals(volumeMounts, that.volumeMounts))) { + return false; + } + return true; } - public LastStateNested editOrNewLastState() { - return this.withNewLastStateLike(Optional.ofNullable(this.buildLastState()).orElse(new V1ContainerStateBuilder().build())); + public Map getAllocatedResources() { + return this.allocatedResources; } - public LastStateNested editOrNewLastStateLike(V1ContainerState item) { - return this.withNewLastStateLike(Optional.ofNullable(this.buildLastState()).orElse(item)); + public String getContainerID() { + return this.containerID; } - public String getName() { - return this.name; + public String getImage() { + return this.image; } - public A withName(String name) { - this.name = name; - return (A) this; + public String getImageID() { + return this.imageID; } - public boolean hasName() { - return this.name != null; + public String getName() { + return this.name; } public Boolean getReady() { return this.ready; } - public A withReady(Boolean ready) { - this.ready = ready; - return (A) this; + public Integer getRestartCount() { + return this.restartCount; } - public boolean hasReady() { - return this.ready != null; + public Boolean getStarted() { + return this.started; } - public V1ResourceRequirements buildResources() { - return this.resources != null ? this.resources.build() : null; + public String getStopSignal() { + return this.stopSignal; } - public A withResources(V1ResourceRequirements resources) { - this._visitables.remove("resources"); - if (resources != null) { - this.resources = new V1ResourceRequirementsBuilder(resources); - this._visitables.get("resources").add(this.resources); - } else { - this.resources = null; - this._visitables.get("resources").remove(this.resources); - } - return (A) this; + public boolean hasAllocatedResources() { + return this.allocatedResources != null; } - public boolean hasResources() { - return this.resources != null; + public boolean hasAllocatedResourcesStatus() { + return this.allocatedResourcesStatus != null && !(this.allocatedResourcesStatus.isEmpty()); } - public ResourcesNested withNewResources() { - return new ResourcesNested(null); + public boolean hasContainerID() { + return this.containerID != null; } - public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { - return new ResourcesNested(item); + public boolean hasImage() { + return this.image != null; } - public ResourcesNested editResources() { - return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); + public boolean hasImageID() { + return this.imageID != null; } - public ResourcesNested editOrNewResources() { - return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); + public boolean hasLastState() { + return this.lastState != null; } - public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { - return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); + public boolean hasMatchingAllocatedResourcesStatus(Predicate predicate) { + for (V1ResourceStatusBuilder item : allocatedResourcesStatus) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public Integer getRestartCount() { - return this.restartCount; + public boolean hasMatchingVolumeMount(Predicate predicate) { + for (V1VolumeMountStatusBuilder item : volumeMounts) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A withRestartCount(Integer restartCount) { - this.restartCount = restartCount; - return (A) this; + public boolean hasName() { + return this.name != null; } - public boolean hasRestartCount() { - return this.restartCount != null; + public boolean hasReady() { + return this.ready != null; } - public Boolean getStarted() { - return this.started; + public boolean hasResources() { + return this.resources != null; } - public A withStarted(Boolean started) { - this.started = started; - return (A) this; + public boolean hasRestartCount() { + return this.restartCount != null; } public boolean hasStarted() { return this.started != null; } - public V1ContainerState buildState() { - return this.state != null ? this.state.build() : null; - } - - public A withState(V1ContainerState state) { - this._visitables.remove("state"); - if (state != null) { - this.state = new V1ContainerStateBuilder(state); - this._visitables.get("state").add(this.state); - } else { - this.state = null; - this._visitables.get("state").remove(this.state); - } - return (A) this; - } - public boolean hasState() { return this.state != null; } - public StateNested withNewState() { - return new StateNested(null); - } - - public StateNested withNewStateLike(V1ContainerState item) { - return new StateNested(item); - } - - public StateNested editState() { - return this.withNewStateLike(Optional.ofNullable(this.buildState()).orElse(null)); - } - - public StateNested editOrNewState() { - return this.withNewStateLike(Optional.ofNullable(this.buildState()).orElse(new V1ContainerStateBuilder().build())); - } - - public StateNested editOrNewStateLike(V1ContainerState item) { - return this.withNewStateLike(Optional.ofNullable(this.buildState()).orElse(item)); - } - - public String getStopSignal() { - return this.stopSignal; - } - - public A withStopSignal(String stopSignal) { - this.stopSignal = stopSignal; - return (A) this; - } - public boolean hasStopSignal() { return this.stopSignal != null; } - public V1ContainerUser buildUser() { - return this.user != null ? this.user.build() : null; - } - - public A withUser(V1ContainerUser user) { - this._visitables.remove("user"); - if (user != null) { - this.user = new V1ContainerUserBuilder(user); - this._visitables.get("user").add(this.user); - } else { - this.user = null; - this._visitables.get("user").remove(this.user); - } - return (A) this; - } - public boolean hasUser() { return this.user != null; } - public UserNested withNewUser() { - return new UserNested(null); - } - - public UserNested withNewUserLike(V1ContainerUser item) { - return new UserNested(item); - } - - public UserNested editUser() { - return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(null)); + public boolean hasVolumeMounts() { + return this.volumeMounts != null && !(this.volumeMounts.isEmpty()); } - public UserNested editOrNewUser() { - return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(new V1ContainerUserBuilder().build())); + public int hashCode() { + return Objects.hash(allocatedResources, allocatedResourcesStatus, containerID, image, imageID, lastState, name, ready, resources, restartCount, started, state, stopSignal, user, volumeMounts); } - public UserNested editOrNewUserLike(V1ContainerUser item) { - return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(item)); + public A removeAllFromAllocatedResourcesStatus(Collection items) { + if (this.allocatedResourcesStatus == null) { + return (A) this; + } + for (V1ResourceStatus item : items) { + V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); + _visitables.get("allocatedResourcesStatus").remove(builder); + this.allocatedResourcesStatus.remove(builder); + } + return (A) this; } - public A addToVolumeMounts(int index,V1VolumeMountStatus item) { + public A removeAllFromVolumeMounts(Collection items) { if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + return (A) this; } - V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { - _visitables.get("volumeMounts").add(builder); - volumeMounts.add(builder); - } else { - _visitables.get("volumeMounts").add(builder); - volumeMounts.add(index, builder); + for (V1VolumeMountStatus item : items) { + V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); + _visitables.get("volumeMounts").remove(builder); + this.volumeMounts.remove(builder); } return (A) this; } - public A setToVolumeMounts(int index,V1VolumeMountStatus item) { - if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + public A removeFromAllocatedResources(String key) { + if (this.allocatedResources == null) { + return (A) this; } - V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { - _visitables.get("volumeMounts").add(builder); - volumeMounts.add(builder); - } else { - _visitables.get("volumeMounts").add(builder); - volumeMounts.set(index, builder); + if (key != null && this.allocatedResources != null) { + this.allocatedResources.remove(key); } return (A) this; } - public A addToVolumeMounts(V1VolumeMountStatus... items) { - if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + public A removeFromAllocatedResources(Map map) { + if (this.allocatedResources == null) { + return (A) this; } - for (V1VolumeMountStatus item : items) { - V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); - _visitables.get("volumeMounts").add(builder); - this.volumeMounts.add(builder); + if (map != null) { + for (Object key : map.keySet()) { + if (this.allocatedResources != null) { + this.allocatedResources.remove(key); + } + } } return (A) this; } - public A addAllToVolumeMounts(Collection items) { - if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + public A removeFromAllocatedResourcesStatus(V1ResourceStatus... items) { + if (this.allocatedResourcesStatus == null) { + return (A) this; } - for (V1VolumeMountStatus item : items) { - V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); - _visitables.get("volumeMounts").add(builder); - this.volumeMounts.add(builder); + for (V1ResourceStatus item : items) { + V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); + _visitables.get("allocatedResourcesStatus").remove(builder); + this.allocatedResourcesStatus.remove(builder); } return (A) this; } @@ -667,14 +619,18 @@ public A removeFromVolumeMounts(V1VolumeMountStatus... items) { return (A) this; } - public A removeAllFromVolumeMounts(Collection items) { - if (this.volumeMounts == null) { + public A removeMatchingFromAllocatedResourcesStatus(Predicate predicate) { + if (allocatedResourcesStatus == null) { return (A) this; } - for (V1VolumeMountStatus item : items) { - V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); - _visitables.get("volumeMounts").remove(builder); - this.volumeMounts.remove(builder); + Iterator each = allocatedResourcesStatus.iterator(); + List visitables = _visitables.get("allocatedResourcesStatus"); + while (each.hasNext()) { + V1ResourceStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -695,181 +651,42 @@ public A removeMatchingFromVolumeMounts(Predicate pr return (A) this; } - public List buildVolumeMounts() { - return this.volumeMounts != null ? build(volumeMounts) : null; - } - - public V1VolumeMountStatus buildVolumeMount(int index) { - return this.volumeMounts.get(index).build(); - } - - public V1VolumeMountStatus buildFirstVolumeMount() { - return this.volumeMounts.get(0).build(); - } - - public V1VolumeMountStatus buildLastVolumeMount() { - return this.volumeMounts.get(volumeMounts.size() - 1).build(); - } - - public V1VolumeMountStatus buildMatchingVolumeMount(Predicate predicate) { - for (V1VolumeMountStatusBuilder item : volumeMounts) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingVolumeMount(Predicate predicate) { - for (V1VolumeMountStatusBuilder item : volumeMounts) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withVolumeMounts(List volumeMounts) { - if (this.volumeMounts != null) { - this._visitables.get("volumeMounts").clear(); - } - if (volumeMounts != null) { - this.volumeMounts = new ArrayList(); - for (V1VolumeMountStatus item : volumeMounts) { - this.addToVolumeMounts(item); - } - } else { - this.volumeMounts = null; - } - return (A) this; - } - - public A withVolumeMounts(V1VolumeMountStatus... volumeMounts) { - if (this.volumeMounts != null) { - this.volumeMounts.clear(); - _visitables.remove("volumeMounts"); - } - if (volumeMounts != null) { - for (V1VolumeMountStatus item : volumeMounts) { - this.addToVolumeMounts(item); - } - } - return (A) this; - } - - public boolean hasVolumeMounts() { - return this.volumeMounts != null && !(this.volumeMounts.isEmpty()); - } - - public VolumeMountsNested addNewVolumeMount() { - return new VolumeMountsNested(-1, null); - } - - public VolumeMountsNested addNewVolumeMountLike(V1VolumeMountStatus item) { - return new VolumeMountsNested(-1, item); + public AllocatedResourcesStatusNested setNewAllocatedResourcesStatusLike(int index,V1ResourceStatus item) { + return new AllocatedResourcesStatusNested(index, item); } public VolumeMountsNested setNewVolumeMountLike(int index,V1VolumeMountStatus item) { return new VolumeMountsNested(index, item); } - public VolumeMountsNested editVolumeMount(int index) { - if (index <= volumeMounts.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeMounts")); - } - return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); - } - - public VolumeMountsNested editFirstVolumeMount() { - if (volumeMounts.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeMounts")); - } - return this.setNewVolumeMountLike(0, this.buildVolumeMount(0)); - } - - public VolumeMountsNested editLastVolumeMount() { - int index = volumeMounts.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeMounts")); - } - return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); - } - - public VolumeMountsNested editMatchingVolumeMount(Predicate predicate) { - int index = -1; - for (int i = 0;i < volumeMounts.size();i++) { - if (predicate.test(volumeMounts.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumeMounts")); - } - return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ContainerStatusFluent that = (V1ContainerStatusFluent) o; - if (!(Objects.equals(allocatedResources, that.allocatedResources))) { - return false; - } - if (!(Objects.equals(allocatedResourcesStatus, that.allocatedResourcesStatus))) { - return false; - } - if (!(Objects.equals(containerID, that.containerID))) { - return false; - } - if (!(Objects.equals(image, that.image))) { - return false; - } - if (!(Objects.equals(imageID, that.imageID))) { - return false; - } - if (!(Objects.equals(lastState, that.lastState))) { - return false; - } - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(ready, that.ready))) { - return false; - } - if (!(Objects.equals(resources, that.resources))) { - return false; - } - if (!(Objects.equals(restartCount, that.restartCount))) { - return false; - } - if (!(Objects.equals(started, that.started))) { - return false; - } - if (!(Objects.equals(state, that.state))) { - return false; - } - if (!(Objects.equals(stopSignal, that.stopSignal))) { - return false; - } - if (!(Objects.equals(user, that.user))) { - return false; + public A setToAllocatedResourcesStatus(int index,V1ResourceStatus item) { + if (this.allocatedResourcesStatus == null) { + this.allocatedResourcesStatus = new ArrayList(); } - if (!(Objects.equals(volumeMounts, that.volumeMounts))) { - return false; + V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); + if (index < 0 || index >= allocatedResourcesStatus.size()) { + _visitables.get("allocatedResourcesStatus").add(builder); + allocatedResourcesStatus.add(builder); + } else { + _visitables.get("allocatedResourcesStatus").add(builder); + allocatedResourcesStatus.set(index, builder); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(allocatedResources, allocatedResourcesStatus, containerID, image, imageID, lastState, name, ready, resources, restartCount, started, state, stopSignal, user, volumeMounts); + public A setToVolumeMounts(int index,V1VolumeMountStatus item) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); + } + V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); + if (index < 0 || index >= volumeMounts.size()) { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(builder); + } else { + _visitables.get("volumeMounts").add(builder); + volumeMounts.set(index, builder); + } + return (A) this; } public String toString() { @@ -953,21 +770,208 @@ public String toString() { return sb.toString(); } + public A withAllocatedResources(Map allocatedResources) { + if (allocatedResources == null) { + this.allocatedResources = null; + } else { + this.allocatedResources = new LinkedHashMap(allocatedResources); + } + return (A) this; + } + + public A withAllocatedResourcesStatus(List allocatedResourcesStatus) { + if (this.allocatedResourcesStatus != null) { + this._visitables.get("allocatedResourcesStatus").clear(); + } + if (allocatedResourcesStatus != null) { + this.allocatedResourcesStatus = new ArrayList(); + for (V1ResourceStatus item : allocatedResourcesStatus) { + this.addToAllocatedResourcesStatus(item); + } + } else { + this.allocatedResourcesStatus = null; + } + return (A) this; + } + + public A withAllocatedResourcesStatus(V1ResourceStatus... allocatedResourcesStatus) { + if (this.allocatedResourcesStatus != null) { + this.allocatedResourcesStatus.clear(); + _visitables.remove("allocatedResourcesStatus"); + } + if (allocatedResourcesStatus != null) { + for (V1ResourceStatus item : allocatedResourcesStatus) { + this.addToAllocatedResourcesStatus(item); + } + } + return (A) this; + } + + public A withContainerID(String containerID) { + this.containerID = containerID; + return (A) this; + } + + public A withImage(String image) { + this.image = image; + return (A) this; + } + + public A withImageID(String imageID) { + this.imageID = imageID; + return (A) this; + } + + public A withLastState(V1ContainerState lastState) { + this._visitables.remove("lastState"); + if (lastState != null) { + this.lastState = new V1ContainerStateBuilder(lastState); + this._visitables.get("lastState").add(this.lastState); + } else { + this.lastState = null; + this._visitables.get("lastState").remove(this.lastState); + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public LastStateNested withNewLastState() { + return new LastStateNested(null); + } + + public LastStateNested withNewLastStateLike(V1ContainerState item) { + return new LastStateNested(item); + } + + public ResourcesNested withNewResources() { + return new ResourcesNested(null); + } + + public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { + return new ResourcesNested(item); + } + + public StateNested withNewState() { + return new StateNested(null); + } + + public StateNested withNewStateLike(V1ContainerState item) { + return new StateNested(item); + } + + public UserNested withNewUser() { + return new UserNested(null); + } + + public UserNested withNewUserLike(V1ContainerUser item) { + return new UserNested(item); + } + public A withReady() { return withReady(true); } + public A withReady(Boolean ready) { + this.ready = ready; + return (A) this; + } + + public A withResources(V1ResourceRequirements resources) { + this._visitables.remove("resources"); + if (resources != null) { + this.resources = new V1ResourceRequirementsBuilder(resources); + this._visitables.get("resources").add(this.resources); + } else { + this.resources = null; + this._visitables.get("resources").remove(this.resources); + } + return (A) this; + } + + public A withRestartCount(Integer restartCount) { + this.restartCount = restartCount; + return (A) this; + } + public A withStarted() { return withStarted(true); } + + public A withStarted(Boolean started) { + this.started = started; + return (A) this; + } + + public A withState(V1ContainerState state) { + this._visitables.remove("state"); + if (state != null) { + this.state = new V1ContainerStateBuilder(state); + this._visitables.get("state").add(this.state); + } else { + this.state = null; + this._visitables.get("state").remove(this.state); + } + return (A) this; + } + + public A withStopSignal(String stopSignal) { + this.stopSignal = stopSignal; + return (A) this; + } + + public A withUser(V1ContainerUser user) { + this._visitables.remove("user"); + if (user != null) { + this.user = new V1ContainerUserBuilder(user); + this._visitables.get("user").add(this.user); + } else { + this.user = null; + this._visitables.get("user").remove(this.user); + } + return (A) this; + } + + public A withVolumeMounts(List volumeMounts) { + if (this.volumeMounts != null) { + this._visitables.get("volumeMounts").clear(); + } + if (volumeMounts != null) { + this.volumeMounts = new ArrayList(); + for (V1VolumeMountStatus item : volumeMounts) { + this.addToVolumeMounts(item); + } + } else { + this.volumeMounts = null; + } + return (A) this; + } + + public A withVolumeMounts(V1VolumeMountStatus... volumeMounts) { + if (this.volumeMounts != null) { + this.volumeMounts.clear(); + _visitables.remove("volumeMounts"); + } + if (volumeMounts != null) { + for (V1VolumeMountStatus item : volumeMounts) { + this.addToVolumeMounts(item); + } + } + return (A) this; + } public class AllocatedResourcesStatusNested extends V1ResourceStatusFluent> implements Nested{ + + V1ResourceStatusBuilder builder; + int index; + AllocatedResourcesStatusNested(int index,V1ResourceStatus item) { this.index = index; this.builder = new V1ResourceStatusBuilder(this, item); } - V1ResourceStatusBuilder builder; - int index; - + public N and() { return (N) V1ContainerStatusFluent.this.setToAllocatedResourcesStatus(index, builder.build()); } @@ -976,14 +980,15 @@ public N endAllocatedResourcesStatus() { return and(); } - } public class LastStateNested extends V1ContainerStateFluent> implements Nested{ + + V1ContainerStateBuilder builder; + LastStateNested(V1ContainerState item) { this.builder = new V1ContainerStateBuilder(this, item); } - V1ContainerStateBuilder builder; - + public N and() { return (N) V1ContainerStatusFluent.this.withLastState(builder.build()); } @@ -992,14 +997,15 @@ public N endLastState() { return and(); } - } public class ResourcesNested extends V1ResourceRequirementsFluent> implements Nested{ + + V1ResourceRequirementsBuilder builder; + ResourcesNested(V1ResourceRequirements item) { this.builder = new V1ResourceRequirementsBuilder(this, item); } - V1ResourceRequirementsBuilder builder; - + public N and() { return (N) V1ContainerStatusFluent.this.withResources(builder.build()); } @@ -1008,14 +1014,15 @@ public N endResources() { return and(); } - } public class StateNested extends V1ContainerStateFluent> implements Nested{ + + V1ContainerStateBuilder builder; + StateNested(V1ContainerState item) { this.builder = new V1ContainerStateBuilder(this, item); } - V1ContainerStateBuilder builder; - + public N and() { return (N) V1ContainerStatusFluent.this.withState(builder.build()); } @@ -1024,14 +1031,15 @@ public N endState() { return and(); } - } public class UserNested extends V1ContainerUserFluent> implements Nested{ + + V1ContainerUserBuilder builder; + UserNested(V1ContainerUser item) { this.builder = new V1ContainerUserBuilder(this, item); } - V1ContainerUserBuilder builder; - + public N and() { return (N) V1ContainerStatusFluent.this.withUser(builder.build()); } @@ -1040,16 +1048,17 @@ public N endUser() { return and(); } - } public class VolumeMountsNested extends V1VolumeMountStatusFluent> implements Nested{ + + V1VolumeMountStatusBuilder builder; + int index; + VolumeMountsNested(int index,V1VolumeMountStatus item) { this.index = index; this.builder = new V1VolumeMountStatusBuilder(this, item); } - V1VolumeMountStatusBuilder builder; - int index; - + public N and() { return (N) V1ContainerStatusFluent.this.setToVolumeMounts(index, builder.build()); } @@ -1058,7 +1067,5 @@ public N endVolumeMount() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserBuilder.java index d57bf9487b..9789100d93 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ContainerUserBuilder extends V1ContainerUserFluent implements VisitableBuilder{ + + V1ContainerUserFluent fluent; + public V1ContainerUserBuilder() { this(new V1ContainerUser()); } @@ -11,22 +14,20 @@ public V1ContainerUserBuilder(V1ContainerUserFluent fluent) { this(fluent, new V1ContainerUser()); } - public V1ContainerUserBuilder(V1ContainerUserFluent fluent,V1ContainerUser instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerUserBuilder(V1ContainerUser instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerUserFluent fluent; + public V1ContainerUserBuilder(V1ContainerUserFluent fluent,V1ContainerUser instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerUser build() { V1ContainerUser buildable = new V1ContainerUser(); buildable.setLinux(fluent.buildLinux()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserFluent.java index 70ad48e0be..a337caedd7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ContainerUserFluent> extends BaseFluent{ + + private V1LinuxContainerUserBuilder linux; + public V1ContainerUserFluent() { } public V1ContainerUserFluent(V1ContainerUser instance) { this.copyInstance(instance); } - private V1LinuxContainerUserBuilder linux; + + public V1LinuxContainerUser buildLinux() { + return this.linux != null ? this.linux.build() : null; + } protected void copyInstance(V1ContainerUser instance) { instance = instance != null ? instance : new V1ContainerUser(); @@ -29,34 +35,6 @@ protected void copyInstance(V1ContainerUser instance) { } } - public V1LinuxContainerUser buildLinux() { - return this.linux != null ? this.linux.build() : null; - } - - public A withLinux(V1LinuxContainerUser linux) { - this._visitables.remove("linux"); - if (linux != null) { - this.linux = new V1LinuxContainerUserBuilder(linux); - this._visitables.get("linux").add(this.linux); - } else { - this.linux = null; - this._visitables.get("linux").remove(this.linux); - } - return (A) this; - } - - public boolean hasLinux() { - return this.linux != null; - } - - public LinuxNested withNewLinux() { - return new LinuxNested(null); - } - - public LinuxNested withNewLinuxLike(V1LinuxContainerUser item) { - return new LinuxNested(item); - } - public LinuxNested editLinux() { return this.withNewLinuxLike(Optional.ofNullable(this.buildLinux()).orElse(null)); } @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasLinux() { + return this.linux != null; + } + public int hashCode() { return Objects.hash(linux); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withLinux(V1LinuxContainerUser linux) { + this._visitables.remove("linux"); + if (linux != null) { + this.linux = new V1LinuxContainerUserBuilder(linux); + this._visitables.get("linux").add(this.linux); + } else { + this.linux = null; + this._visitables.get("linux").remove(this.linux); + } + return (A) this; + } + + public LinuxNested withNewLinux() { + return new LinuxNested(null); + } + + public LinuxNested withNewLinuxLike(V1LinuxContainerUser item) { + return new LinuxNested(item); + } public class LinuxNested extends V1LinuxContainerUserFluent> implements Nested{ + + V1LinuxContainerUserBuilder builder; + LinuxNested(V1LinuxContainerUser item) { this.builder = new V1LinuxContainerUserBuilder(this, item); } - V1LinuxContainerUserBuilder builder; - + public N and() { return (N) V1ContainerUserFluent.this.withLinux(builder.build()); } @@ -114,7 +118,5 @@ public N endLinux() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java index 0e64e2eb04..e44da50c4b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ControllerRevisionBuilder extends V1ControllerRevisionFluent implements VisitableBuilder{ + + V1ControllerRevisionFluent fluent; + public V1ControllerRevisionBuilder() { this(new V1ControllerRevision()); } @@ -11,17 +14,16 @@ public V1ControllerRevisionBuilder(V1ControllerRevisionFluent fluent) { this(fluent, new V1ControllerRevision()); } - public V1ControllerRevisionBuilder(V1ControllerRevisionFluent fluent,V1ControllerRevision instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ControllerRevisionBuilder(V1ControllerRevision instance) { this.fluent = this; this.copyInstance(instance); } - V1ControllerRevisionFluent fluent; + public V1ControllerRevisionBuilder(V1ControllerRevisionFluent fluent,V1ControllerRevision instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ControllerRevision build() { V1ControllerRevision buildable = new V1ControllerRevision(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1ControllerRevision build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java index b3c4fcf2e9..0da5e71da9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java @@ -1,31 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Long; -import java.util.Objects; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ControllerRevisionFluent> extends BaseFluent{ + + private String apiVersion; + private Object data; + private String kind; + private V1ObjectMetaBuilder metadata; + private Long revision; + public V1ControllerRevisionFluent() { } public V1ControllerRevisionFluent(V1ControllerRevision instance) { this.copyInstance(instance); } - private String apiVersion; - private Object data; - private String kind; - private V1ObjectMetaBuilder metadata; - private Long revision; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } protected void copyInstance(V1ControllerRevision instance) { instance = instance != null ? instance : new V1ControllerRevision(); @@ -38,73 +44,6 @@ protected void copyInstance(V1ControllerRevision instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public Object getData() { - return this.data; - } - - public A withData(Object data) { - this.data = data; - return (A) this; - } - - public boolean hasData() { - return this.data != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -117,19 +56,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public Long getRevision() { - return this.revision; - } - - public A withRevision(Long revision) { - this.revision = revision; - return (A) this; - } - - public boolean hasRevision() { - return this.revision != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -159,6 +85,42 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public Object getData() { + return this.data; + } + + public String getKind() { + return this.kind; + } + + public Long getRevision() { + return this.revision; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasData() { + return this.data != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasRevision() { + return this.revision != null; + } + public int hashCode() { return Objects.hash(apiVersion, data, kind, metadata, revision); } @@ -193,12 +155,54 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withData(Object data) { + this.data = data; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public A withRevision(Long revision) { + this.revision = revision; + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ControllerRevisionFluent.this.withMetadata(builder.build()); } @@ -207,7 +211,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java index 83b76525c3..28d27a525d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ControllerRevisionListBuilder extends V1ControllerRevisionListFluent implements VisitableBuilder{ + + V1ControllerRevisionListFluent fluent; + public V1ControllerRevisionListBuilder() { this(new V1ControllerRevisionList()); } @@ -11,17 +14,16 @@ public V1ControllerRevisionListBuilder(V1ControllerRevisionListFluent fluent) this(fluent, new V1ControllerRevisionList()); } - public V1ControllerRevisionListBuilder(V1ControllerRevisionListFluent fluent,V1ControllerRevisionList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ControllerRevisionListBuilder(V1ControllerRevisionList instance) { this.fluent = this; this.copyInstance(instance); } - V1ControllerRevisionListFluent fluent; + public V1ControllerRevisionListBuilder(V1ControllerRevisionListFluent fluent,V1ControllerRevisionList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ControllerRevisionList build() { V1ControllerRevisionList buildable = new V1ControllerRevisionList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ControllerRevisionList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java index 841b90997a..f66d4b0a05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ControllerRevisionListFluent> extends BaseFluent{ - public V1ControllerRevisionListFluent() { - } - - public V1ControllerRevisionListFluent(V1ControllerRevisionList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ControllerRevisionList instance) { - instance = instance != null ? instance : new V1ControllerRevisionList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1ControllerRevisionListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1ControllerRevisionListFluent(V1ControllerRevisionList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1ControllerRevision item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1ControllerRevision item : items) { + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1ControllerRevision item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ControllerRevision item) { + return new ItemsNested(-1, item); } public A addToItems(V1ControllerRevision... items) { @@ -96,68 +65,31 @@ public A addToItems(V1ControllerRevision... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1ControllerRevision item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1ControllerRevision item : items) { - V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1ControllerRevision... items) { - if (this.items == null) { - return (A) this; - } - for (V1ControllerRevision item : items) { - V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1ControllerRevision item : items) { - V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1ControllerRevisionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1ControllerRevision buildFirstItem() { + return this.items.get(0).build(); } public V1ControllerRevision buildItem(int index) { return this.items.get(index).build(); } - public V1ControllerRevision buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1ControllerRevision buildLastItem() { @@ -173,73 +105,34 @@ public V1ControllerRevision buildMatchingItem(Predicate predicate) { - for (V1ControllerRevisionBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ControllerRevision item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ControllerRevisionList instance) { + instance = instance != null ? instance : new V1ControllerRevisionList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1ControllerRevision... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1ControllerRevision item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ControllerRevision item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ControllerRevision item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate pr return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ControllerRevisionBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ControllerRevision item : items) { + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ControllerRevision... items) { + if (this.items == null) { + return (A) this; + } + for (V1ControllerRevision item : items) { + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ControllerRevisionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ControllerRevision item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1ControllerRevision item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ControllerRevision item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ControllerRevision... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ControllerRevision item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1ControllerRevisionFluent> implements Nested{ + + V1ControllerRevisionBuilder builder; + int index; + ItemsNested(int index,V1ControllerRevision item) { this.index = index; this.builder = new V1ControllerRevisionBuilder(this, item); } - V1ControllerRevisionBuilder builder; - int index; - + public N and() { return (N) V1ControllerRevisionListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ControllerRevisionListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterBuilder.java index 6a5bbad809..0cc6cf8c03 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CounterBuilder extends V1CounterFluent implements VisitableBuilder{ + + V1CounterFluent fluent; + public V1CounterBuilder() { this(new V1Counter()); } @@ -11,22 +14,20 @@ public V1CounterBuilder(V1CounterFluent fluent) { this(fluent, new V1Counter()); } - public V1CounterBuilder(V1CounterFluent fluent,V1Counter instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CounterBuilder(V1Counter instance) { this.fluent = this; this.copyInstance(instance); } - V1CounterFluent fluent; + public V1CounterBuilder(V1CounterFluent fluent,V1Counter instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Counter build() { V1Counter buildable = new V1Counter(); buildable.setValue(fluent.getValue()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterFluent.java index bae3d97b7d..ee3cc6ef5d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1CounterFluent> extends BaseFluent{ + + private Quantity value; + public V1CounterFluent() { } public V1CounterFluent(V1Counter instance) { this.copyInstance(instance); } - private Quantity value; - + protected void copyInstance(V1Counter instance) { instance = instance != null ? instance : new V1Counter(); if (instance != null) { @@ -28,23 +30,6 @@ protected void copyInstance(V1Counter instance) { } } - public Quantity getValue() { - return this.value; - } - - public A withValue(Quantity value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - - public A withNewValue(String value) { - return (A) this.withValue(new Quantity(value)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -62,6 +47,14 @@ public boolean equals(Object o) { return true; } + public Quantity getValue() { + return this.value; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(value); } @@ -77,5 +70,13 @@ public String toString() { return sb.toString(); } - + public A withNewValue(String value) { + return (A) this.withValue(new Quantity(value)); + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetBuilder.java index a2c723c8e5..12b42b7e07 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CounterSetBuilder extends V1CounterSetFluent implements VisitableBuilder{ + + V1CounterSetFluent fluent; + public V1CounterSetBuilder() { this(new V1CounterSet()); } @@ -11,17 +14,16 @@ public V1CounterSetBuilder(V1CounterSetFluent fluent) { this(fluent, new V1CounterSet()); } - public V1CounterSetBuilder(V1CounterSetFluent fluent,V1CounterSet instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CounterSetBuilder(V1CounterSet instance) { this.fluent = this; this.copyInstance(instance); } - V1CounterSetFluent fluent; + public V1CounterSetBuilder(V1CounterSetFluent fluent,V1CounterSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CounterSet build() { V1CounterSet buildable = new V1CounterSet(); buildable.setCounters(fluent.getCounters()); @@ -29,5 +31,4 @@ public V1CounterSet build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetFluent.java index 45d9190aa0..ea05e0d294 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetFluent.java @@ -1,46 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; -import java.util.Map; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1CounterSetFluent> extends BaseFluent{ + + private Map counters; + private String name; + public V1CounterSetFluent() { } public V1CounterSetFluent(V1CounterSet instance) { this.copyInstance(instance); } - private Map counters; - private String name; - - protected void copyInstance(V1CounterSet instance) { - instance = instance != null ? instance : new V1CounterSet(); - if (instance != null) { - this.withCounters(instance.getCounters()); - this.withName(instance.getName()); - } - } - - public A addToCounters(String key,V1Counter value) { - if (this.counters == null && key != null && value != null) { - this.counters = new LinkedHashMap(); - } - if (key != null && value != null) { - this.counters.put(key, value); - } - return (A) this; - } - + public A addToCounters(Map map) { if (this.counters == null && map != null) { this.counters = new LinkedHashMap(); @@ -51,58 +35,22 @@ public A addToCounters(Map map) { return (A) this; } - public A removeFromCounters(String key) { - if (this.counters == null) { - return (A) this; - } - if (key != null && this.counters != null) { - this.counters.remove(key); - } - return (A) this; - } - - public A removeFromCounters(Map map) { - if (this.counters == null) { - return (A) this; + public A addToCounters(String key,V1Counter value) { + if (this.counters == null && key != null && value != null) { + this.counters = new LinkedHashMap(); } - if (map != null) { - for (Object key : map.keySet()) { - if (this.counters != null) { - this.counters.remove(key); - } - } + if (key != null && value != null) { + this.counters.put(key, value); } return (A) this; } - public Map getCounters() { - return this.counters; - } - - public A withCounters(Map counters) { - if (counters == null) { - this.counters = null; - } else { - this.counters = new LinkedHashMap(counters); + protected void copyInstance(V1CounterSet instance) { + instance = instance != null ? instance : new V1CounterSet(); + if (instance != null) { + this.withCounters(instance.getCounters()); + this.withName(instance.getName()); } - return (A) this; - } - - public boolean hasCounters() { - return this.counters != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; } public boolean equals(Object o) { @@ -125,10 +73,50 @@ public boolean equals(Object o) { return true; } + public Map getCounters() { + return this.counters; + } + + public String getName() { + return this.name; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(counters, name); } + public A removeFromCounters(String key) { + if (this.counters == null) { + return (A) this; + } + if (key != null && this.counters != null) { + this.counters.remove(key); + } + return (A) this; + } + + public A removeFromCounters(Map map) { + if (this.counters == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.counters != null) { + this.counters.remove(key); + } + } + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -145,5 +133,18 @@ public String toString() { return sb.toString(); } - + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java index 6421dab9cb..be6b1f6760 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CronJobBuilder extends V1CronJobFluent implements VisitableBuilder{ + + V1CronJobFluent fluent; + public V1CronJobBuilder() { this(new V1CronJob()); } @@ -11,17 +14,16 @@ public V1CronJobBuilder(V1CronJobFluent fluent) { this(fluent, new V1CronJob()); } - public V1CronJobBuilder(V1CronJobFluent fluent,V1CronJob instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CronJobBuilder(V1CronJob instance) { this.fluent = this; this.copyInstance(instance); } - V1CronJobFluent fluent; + public V1CronJobBuilder(V1CronJobFluent fluent,V1CronJob instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CronJob build() { V1CronJob buildable = new V1CronJob(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1CronJob build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java index 8ff1fe54a7..a056f442ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1CronJobFluent> extends BaseFluent{ - public V1CronJobFluent() { - } - - public V1CronJobFluent(V1CronJob instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1CronJobSpecBuilder spec; private V1CronJobStatusBuilder status; - - protected void copyInstance(V1CronJob instance) { - instance = instance != null ? instance : new V1CronJob(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1CronJobFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1CronJobFluent(V1CronJob instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1CronJobSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1CronJobStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1CronJob instance) { + instance = instance != null ? instance : new V1CronJob(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1CronJobSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1CronJobSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1CronJobSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1CronJobSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1CronJobSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1CronJobSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1CronJobStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1CronJobStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1CronJobStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1CronJobStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1CronJobStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1CronJobStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1CronJobStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1CronJobStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1CronJobSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1CronJobStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1CronJobSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1CronJobSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1CronJobStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1CronJobStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1CronJobFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1CronJobSpecFluent> implements Nested{ + + V1CronJobSpecBuilder builder; + SpecNested(V1CronJobSpec item) { this.builder = new V1CronJobSpecBuilder(this, item); } - V1CronJobSpecBuilder builder; - + public N and() { return (N) V1CronJobFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1CronJobStatusFluent> implements Nested{ + + V1CronJobStatusBuilder builder; + StatusNested(V1CronJobStatus item) { this.builder = new V1CronJobStatusBuilder(this, item); } - V1CronJobStatusBuilder builder; - + public N and() { return (N) V1CronJobFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java index 64a6a016d8..cf6329c00e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CronJobListBuilder extends V1CronJobListFluent implements VisitableBuilder{ + + V1CronJobListFluent fluent; + public V1CronJobListBuilder() { this(new V1CronJobList()); } @@ -11,17 +14,16 @@ public V1CronJobListBuilder(V1CronJobListFluent fluent) { this(fluent, new V1CronJobList()); } - public V1CronJobListBuilder(V1CronJobListFluent fluent,V1CronJobList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CronJobListBuilder(V1CronJobList instance) { this.fluent = this; this.copyInstance(instance); } - V1CronJobListFluent fluent; + public V1CronJobListBuilder(V1CronJobListFluent fluent,V1CronJobList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CronJobList build() { V1CronJobList buildable = new V1CronJobList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1CronJobList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java index ee7f8efc55..50e585a776 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1CronJobListFluent> extends BaseFluent{ - public V1CronJobListFluent() { - } - - public V1CronJobListFluent(V1CronJobList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1CronJobList instance) { - instance = instance != null ? instance : new V1CronJobList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1CronJobListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1CronJobListFluent(V1CronJobList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1CronJob item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1CronJobBuilder builder = new V1CronJobBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1CronJob item : items) { + V1CronJobBuilder builder = new V1CronJobBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1CronJob item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1CronJobBuilder builder = new V1CronJobBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1CronJob item) { + return new ItemsNested(-1, item); } public A addToItems(V1CronJob... items) { @@ -96,68 +65,31 @@ public A addToItems(V1CronJob... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1CronJob item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1CronJob item : items) { - V1CronJobBuilder builder = new V1CronJobBuilder(item); + V1CronJobBuilder builder = new V1CronJobBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1CronJob... items) { - if (this.items == null) { - return (A) this; - } - for (V1CronJob item : items) { - V1CronJobBuilder builder = new V1CronJobBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1CronJob item : items) { - V1CronJobBuilder builder = new V1CronJobBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1CronJobBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1CronJob buildFirstItem() { + return this.items.get(0).build(); } public V1CronJob buildItem(int index) { return this.items.get(index).build(); } - public V1CronJob buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1CronJob buildLastItem() { @@ -173,73 +105,34 @@ public V1CronJob buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1CronJobBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1CronJob item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1CronJobList instance) { + instance = instance != null ? instance : new V1CronJobList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1CronJob... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1CronJob item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1CronJob item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1CronJob item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) { return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1CronJobBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1CronJob item : items) { + V1CronJobBuilder builder = new V1CronJobBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1CronJob... items) { + if (this.items == null) { + return (A) this; + } + for (V1CronJob item : items) { + V1CronJobBuilder builder = new V1CronJobBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1CronJobBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1CronJob item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1CronJob item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1CronJobBuilder builder = new V1CronJobBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1CronJob item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1CronJob... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1CronJob item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1CronJobFluent> implements Nested{ + + V1CronJobBuilder builder; + int index; + ItemsNested(int index,V1CronJob item) { this.index = index; this.builder = new V1CronJobBuilder(this, item); } - V1CronJobBuilder builder; - int index; - + public N and() { return (N) V1CronJobListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1CronJobListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java index 6104ae9eb8..ff9b72ac89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CronJobSpecBuilder extends V1CronJobSpecFluent implements VisitableBuilder{ + + V1CronJobSpecFluent fluent; + public V1CronJobSpecBuilder() { this(new V1CronJobSpec()); } @@ -11,17 +14,16 @@ public V1CronJobSpecBuilder(V1CronJobSpecFluent fluent) { this(fluent, new V1CronJobSpec()); } - public V1CronJobSpecBuilder(V1CronJobSpecFluent fluent,V1CronJobSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CronJobSpecBuilder(V1CronJobSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1CronJobSpecFluent fluent; + public V1CronJobSpecBuilder(V1CronJobSpecFluent fluent,V1CronJobSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CronJobSpec build() { V1CronJobSpec buildable = new V1CronJobSpec(); buildable.setConcurrencyPolicy(fluent.getConcurrencyPolicy()); @@ -35,5 +37,4 @@ public V1CronJobSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java index e949237292..3c1b22fc3a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java @@ -1,28 +1,23 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.String; +import java.lang.Boolean; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Objects; import java.lang.Object; -import java.lang.Boolean; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1CronJobSpecFluent> extends BaseFluent{ - public V1CronJobSpecFluent() { - } - - public V1CronJobSpecFluent(V1CronJobSpec instance) { - this.copyInstance(instance); - } + private String concurrencyPolicy; private Integer failedJobsHistoryLimit; private V1JobTemplateSpecBuilder jobTemplate; @@ -31,6 +26,17 @@ public V1CronJobSpecFluent(V1CronJobSpec instance) { private Integer successfulJobsHistoryLimit; private Boolean suspend; private String timeZone; + + public V1CronJobSpecFluent() { + } + + public V1CronJobSpecFluent(V1CronJobSpec instance) { + this.copyInstance(instance); + } + + public V1JobTemplateSpec buildJobTemplate() { + return this.jobTemplate != null ? this.jobTemplate.build() : null; + } protected void copyInstance(V1CronJobSpec instance) { instance = instance != null ? instance : new V1CronJobSpec(); @@ -46,60 +52,6 @@ protected void copyInstance(V1CronJobSpec instance) { } } - public String getConcurrencyPolicy() { - return this.concurrencyPolicy; - } - - public A withConcurrencyPolicy(String concurrencyPolicy) { - this.concurrencyPolicy = concurrencyPolicy; - return (A) this; - } - - public boolean hasConcurrencyPolicy() { - return this.concurrencyPolicy != null; - } - - public Integer getFailedJobsHistoryLimit() { - return this.failedJobsHistoryLimit; - } - - public A withFailedJobsHistoryLimit(Integer failedJobsHistoryLimit) { - this.failedJobsHistoryLimit = failedJobsHistoryLimit; - return (A) this; - } - - public boolean hasFailedJobsHistoryLimit() { - return this.failedJobsHistoryLimit != null; - } - - public V1JobTemplateSpec buildJobTemplate() { - return this.jobTemplate != null ? this.jobTemplate.build() : null; - } - - public A withJobTemplate(V1JobTemplateSpec jobTemplate) { - this._visitables.remove("jobTemplate"); - if (jobTemplate != null) { - this.jobTemplate = new V1JobTemplateSpecBuilder(jobTemplate); - this._visitables.get("jobTemplate").add(this.jobTemplate); - } else { - this.jobTemplate = null; - this._visitables.get("jobTemplate").remove(this.jobTemplate); - } - return (A) this; - } - - public boolean hasJobTemplate() { - return this.jobTemplate != null; - } - - public JobTemplateNested withNewJobTemplate() { - return new JobTemplateNested(null); - } - - public JobTemplateNested withNewJobTemplateLike(V1JobTemplateSpec item) { - return new JobTemplateNested(item); - } - public JobTemplateNested editJobTemplate() { return this.withNewJobTemplateLike(Optional.ofNullable(this.buildJobTemplate()).orElse(null)); } @@ -112,71 +64,6 @@ public JobTemplateNested editOrNewJobTemplateLike(V1JobTemplateSpec item) { return this.withNewJobTemplateLike(Optional.ofNullable(this.buildJobTemplate()).orElse(item)); } - public String getSchedule() { - return this.schedule; - } - - public A withSchedule(String schedule) { - this.schedule = schedule; - return (A) this; - } - - public boolean hasSchedule() { - return this.schedule != null; - } - - public Long getStartingDeadlineSeconds() { - return this.startingDeadlineSeconds; - } - - public A withStartingDeadlineSeconds(Long startingDeadlineSeconds) { - this.startingDeadlineSeconds = startingDeadlineSeconds; - return (A) this; - } - - public boolean hasStartingDeadlineSeconds() { - return this.startingDeadlineSeconds != null; - } - - public Integer getSuccessfulJobsHistoryLimit() { - return this.successfulJobsHistoryLimit; - } - - public A withSuccessfulJobsHistoryLimit(Integer successfulJobsHistoryLimit) { - this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; - return (A) this; - } - - public boolean hasSuccessfulJobsHistoryLimit() { - return this.successfulJobsHistoryLimit != null; - } - - public Boolean getSuspend() { - return this.suspend; - } - - public A withSuspend(Boolean suspend) { - this.suspend = suspend; - return (A) this; - } - - public boolean hasSuspend() { - return this.suspend != null; - } - - public String getTimeZone() { - return this.timeZone; - } - - public A withTimeZone(String timeZone) { - this.timeZone = timeZone; - return (A) this; - } - - public boolean hasTimeZone() { - return this.timeZone != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -215,6 +102,66 @@ public boolean equals(Object o) { return true; } + public String getConcurrencyPolicy() { + return this.concurrencyPolicy; + } + + public Integer getFailedJobsHistoryLimit() { + return this.failedJobsHistoryLimit; + } + + public String getSchedule() { + return this.schedule; + } + + public Long getStartingDeadlineSeconds() { + return this.startingDeadlineSeconds; + } + + public Integer getSuccessfulJobsHistoryLimit() { + return this.successfulJobsHistoryLimit; + } + + public Boolean getSuspend() { + return this.suspend; + } + + public String getTimeZone() { + return this.timeZone; + } + + public boolean hasConcurrencyPolicy() { + return this.concurrencyPolicy != null; + } + + public boolean hasFailedJobsHistoryLimit() { + return this.failedJobsHistoryLimit != null; + } + + public boolean hasJobTemplate() { + return this.jobTemplate != null; + } + + public boolean hasSchedule() { + return this.schedule != null; + } + + public boolean hasStartingDeadlineSeconds() { + return this.startingDeadlineSeconds != null; + } + + public boolean hasSuccessfulJobsHistoryLimit() { + return this.successfulJobsHistoryLimit != null; + } + + public boolean hasSuspend() { + return this.suspend != null; + } + + public boolean hasTimeZone() { + return this.timeZone != null; + } + public int hashCode() { return Objects.hash(concurrencyPolicy, failedJobsHistoryLimit, jobTemplate, schedule, startingDeadlineSeconds, successfulJobsHistoryLimit, suspend, timeZone); } @@ -265,15 +212,72 @@ public String toString() { return sb.toString(); } + public A withConcurrencyPolicy(String concurrencyPolicy) { + this.concurrencyPolicy = concurrencyPolicy; + return (A) this; + } + + public A withFailedJobsHistoryLimit(Integer failedJobsHistoryLimit) { + this.failedJobsHistoryLimit = failedJobsHistoryLimit; + return (A) this; + } + + public A withJobTemplate(V1JobTemplateSpec jobTemplate) { + this._visitables.remove("jobTemplate"); + if (jobTemplate != null) { + this.jobTemplate = new V1JobTemplateSpecBuilder(jobTemplate); + this._visitables.get("jobTemplate").add(this.jobTemplate); + } else { + this.jobTemplate = null; + this._visitables.get("jobTemplate").remove(this.jobTemplate); + } + return (A) this; + } + + public JobTemplateNested withNewJobTemplate() { + return new JobTemplateNested(null); + } + + public JobTemplateNested withNewJobTemplateLike(V1JobTemplateSpec item) { + return new JobTemplateNested(item); + } + + public A withSchedule(String schedule) { + this.schedule = schedule; + return (A) this; + } + + public A withStartingDeadlineSeconds(Long startingDeadlineSeconds) { + this.startingDeadlineSeconds = startingDeadlineSeconds; + return (A) this; + } + + public A withSuccessfulJobsHistoryLimit(Integer successfulJobsHistoryLimit) { + this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; + return (A) this; + } + public A withSuspend() { return withSuspend(true); } + + public A withSuspend(Boolean suspend) { + this.suspend = suspend; + return (A) this; + } + + public A withTimeZone(String timeZone) { + this.timeZone = timeZone; + return (A) this; + } public class JobTemplateNested extends V1JobTemplateSpecFluent> implements Nested{ + + V1JobTemplateSpecBuilder builder; + JobTemplateNested(V1JobTemplateSpec item) { this.builder = new V1JobTemplateSpecBuilder(this, item); } - V1JobTemplateSpecBuilder builder; - + public N and() { return (N) V1CronJobSpecFluent.this.withJobTemplate(builder.build()); } @@ -282,7 +286,5 @@ public N endJobTemplate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java index cef93bf350..abd0610aa0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CronJobStatusBuilder extends V1CronJobStatusFluent implements VisitableBuilder{ + + V1CronJobStatusFluent fluent; + public V1CronJobStatusBuilder() { this(new V1CronJobStatus()); } @@ -11,17 +14,16 @@ public V1CronJobStatusBuilder(V1CronJobStatusFluent fluent) { this(fluent, new V1CronJobStatus()); } - public V1CronJobStatusBuilder(V1CronJobStatusFluent fluent,V1CronJobStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CronJobStatusBuilder(V1CronJobStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1CronJobStatusFluent fluent; + public V1CronJobStatusBuilder(V1CronJobStatusFluent fluent,V1CronJobStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CronJobStatus build() { V1CronJobStatus buildable = new V1CronJobStatus(); buildable.setActive(fluent.buildActive()); @@ -30,5 +32,4 @@ public V1CronJobStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java index 3df3b4d7b1..becebeefa6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java @@ -1,72 +1,55 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; +import java.lang.Object; import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1CronJobStatusFluent> extends BaseFluent{ + + private ArrayList active; + private OffsetDateTime lastScheduleTime; + private OffsetDateTime lastSuccessfulTime; + public V1CronJobStatusFluent() { } public V1CronJobStatusFluent(V1CronJobStatus instance) { this.copyInstance(instance); } - private ArrayList active; - private OffsetDateTime lastScheduleTime; - private OffsetDateTime lastSuccessfulTime; - - protected void copyInstance(V1CronJobStatus instance) { - instance = instance != null ? instance : new V1CronJobStatus(); - if (instance != null) { - this.withActive(instance.getActive()); - this.withLastScheduleTime(instance.getLastScheduleTime()); - this.withLastSuccessfulTime(instance.getLastSuccessfulTime()); - } - } - - public A addToActive(int index,V1ObjectReference item) { + + public A addAllToActive(Collection items) { if (this.active == null) { this.active = new ArrayList(); } - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - if (index < 0 || index >= active.size()) { - _visitables.get("active").add(builder); - active.add(builder); - } else { + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); _visitables.get("active").add(builder); - active.add(index, builder); + this.active.add(builder); } return (A) this; } - public A setToActive(int index,V1ObjectReference item) { - if (this.active == null) { - this.active = new ArrayList(); - } - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - if (index < 0 || index >= active.size()) { - _visitables.get("active").add(builder); - active.add(builder); - } else { - _visitables.get("active").add(builder); - active.set(index, builder); - } - return (A) this; + public ActiveNested addNewActive() { + return new ActiveNested(-1, null); + } + + public ActiveNested addNewActiveLike(V1ObjectReference item) { + return new ActiveNested(-1, item); } public A addToActive(V1ObjectReference... items) { @@ -81,54 +64,17 @@ public A addToActive(V1ObjectReference... items) { return (A) this; } - public A addAllToActive(Collection items) { + public A addToActive(int index,V1ObjectReference item) { if (this.active == null) { this.active = new ArrayList(); } - for (V1ObjectReference item : items) { - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + if (index < 0 || index >= active.size()) { _visitables.get("active").add(builder); - this.active.add(builder); - } - return (A) this; - } - - public A removeFromActive(V1ObjectReference... items) { - if (this.active == null) { - return (A) this; - } - for (V1ObjectReference item : items) { - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("active").remove(builder); - this.active.remove(builder); - } - return (A) this; - } - - public A removeAllFromActive(Collection items) { - if (this.active == null) { - return (A) this; - } - for (V1ObjectReference item : items) { - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("active").remove(builder); - this.active.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromActive(Predicate predicate) { - if (active == null) { - return (A) this; - } - Iterator each = active.iterator(); - List visitables = _visitables.get("active"); - while (each.hasNext()) { - V1ObjectReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + active.add(builder); + } else { + _visitables.get("active").add(builder); + active.add(index, builder); } return (A) this; } @@ -158,61 +104,17 @@ public V1ObjectReference buildMatchingActive(Predicate return null; } - public boolean hasMatchingActive(Predicate predicate) { - for (V1ObjectReferenceBuilder item : active) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withActive(List active) { - if (this.active != null) { - this._visitables.get("active").clear(); - } - if (active != null) { - this.active = new ArrayList(); - for (V1ObjectReference item : active) { - this.addToActive(item); - } - } else { - this.active = null; - } - return (A) this; - } - - public A withActive(V1ObjectReference... active) { - if (this.active != null) { - this.active.clear(); - _visitables.remove("active"); - } - if (active != null) { - for (V1ObjectReference item : active) { - this.addToActive(item); - } + protected void copyInstance(V1CronJobStatus instance) { + instance = instance != null ? instance : new V1CronJobStatus(); + if (instance != null) { + this.withActive(instance.getActive()); + this.withLastScheduleTime(instance.getLastScheduleTime()); + this.withLastSuccessfulTime(instance.getLastSuccessfulTime()); } - return (A) this; - } - - public boolean hasActive() { - return this.active != null && !(this.active.isEmpty()); - } - - public ActiveNested addNewActive() { - return new ActiveNested(-1, null); - } - - public ActiveNested addNewActiveLike(V1ObjectReference item) { - return new ActiveNested(-1, item); - } - - public ActiveNested setNewActiveLike(int index,V1ObjectReference item) { - return new ActiveNested(index, item); } public ActiveNested editActive(int index) { - if (index <= active.size()) { + if (active.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "active")); } return this.setNewActiveLike(index, this.buildActive(index)); @@ -247,32 +149,6 @@ public ActiveNested editMatchingActive(Predicate pr return this.setNewActiveLike(index, this.buildActive(index)); } - public OffsetDateTime getLastScheduleTime() { - return this.lastScheduleTime; - } - - public A withLastScheduleTime(OffsetDateTime lastScheduleTime) { - this.lastScheduleTime = lastScheduleTime; - return (A) this; - } - - public boolean hasLastScheduleTime() { - return this.lastScheduleTime != null; - } - - public OffsetDateTime getLastSuccessfulTime() { - return this.lastSuccessfulTime; - } - - public A withLastSuccessfulTime(OffsetDateTime lastSuccessfulTime) { - this.lastSuccessfulTime = lastSuccessfulTime; - return (A) this; - } - - public boolean hasLastSuccessfulTime() { - return this.lastSuccessfulTime != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -296,10 +172,98 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getLastScheduleTime() { + return this.lastScheduleTime; + } + + public OffsetDateTime getLastSuccessfulTime() { + return this.lastSuccessfulTime; + } + + public boolean hasActive() { + return this.active != null && !(this.active.isEmpty()); + } + + public boolean hasLastScheduleTime() { + return this.lastScheduleTime != null; + } + + public boolean hasLastSuccessfulTime() { + return this.lastSuccessfulTime != null; + } + + public boolean hasMatchingActive(Predicate predicate) { + for (V1ObjectReferenceBuilder item : active) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(active, lastScheduleTime, lastSuccessfulTime); } + public A removeAllFromActive(Collection items) { + if (this.active == null) { + return (A) this; + } + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("active").remove(builder); + this.active.remove(builder); + } + return (A) this; + } + + public A removeFromActive(V1ObjectReference... items) { + if (this.active == null) { + return (A) this; + } + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("active").remove(builder); + this.active.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromActive(Predicate predicate) { + if (active == null) { + return (A) this; + } + Iterator each = active.iterator(); + List visitables = _visitables.get("active"); + while (each.hasNext()) { + V1ObjectReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ActiveNested setNewActiveLike(int index,V1ObjectReference item) { + return new ActiveNested(index, item); + } + + public A setToActive(int index,V1ObjectReference item) { + if (this.active == null) { + this.active = new ArrayList(); + } + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + if (index < 0 || index >= active.size()) { + _visitables.get("active").add(builder); + active.add(builder); + } else { + _visitables.get("active").add(builder); + active.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -320,14 +284,54 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withActive(List active) { + if (this.active != null) { + this._visitables.get("active").clear(); + } + if (active != null) { + this.active = new ArrayList(); + for (V1ObjectReference item : active) { + this.addToActive(item); + } + } else { + this.active = null; + } + return (A) this; + } + + public A withActive(V1ObjectReference... active) { + if (this.active != null) { + this.active.clear(); + _visitables.remove("active"); + } + if (active != null) { + for (V1ObjectReference item : active) { + this.addToActive(item); + } + } + return (A) this; + } + + public A withLastScheduleTime(OffsetDateTime lastScheduleTime) { + this.lastScheduleTime = lastScheduleTime; + return (A) this; + } + + public A withLastSuccessfulTime(OffsetDateTime lastSuccessfulTime) { + this.lastSuccessfulTime = lastSuccessfulTime; + return (A) this; + } public class ActiveNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + int index; + ActiveNested(int index,V1ObjectReference item) { this.index = index; this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - int index; - + public N and() { return (N) V1CronJobStatusFluent.this.setToActive(index, builder.build()); } @@ -336,7 +340,5 @@ public N endActive() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java index 9564fb5f33..4f65ebe0d3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CrossVersionObjectReferenceBuilder extends V1CrossVersionObjectReferenceFluent implements VisitableBuilder{ + + V1CrossVersionObjectReferenceFluent fluent; + public V1CrossVersionObjectReferenceBuilder() { this(new V1CrossVersionObjectReference()); } @@ -11,17 +14,16 @@ public V1CrossVersionObjectReferenceBuilder(V1CrossVersionObjectReferenceFluent< this(fluent, new V1CrossVersionObjectReference()); } - public V1CrossVersionObjectReferenceBuilder(V1CrossVersionObjectReferenceFluent fluent,V1CrossVersionObjectReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CrossVersionObjectReferenceBuilder(V1CrossVersionObjectReference instance) { this.fluent = this; this.copyInstance(instance); } - V1CrossVersionObjectReferenceFluent fluent; + public V1CrossVersionObjectReferenceBuilder(V1CrossVersionObjectReferenceFluent fluent,V1CrossVersionObjectReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CrossVersionObjectReference build() { V1CrossVersionObjectReference buildable = new V1CrossVersionObjectReference(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +32,4 @@ public V1CrossVersionObjectReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java index 0b3f4bc8b8..2bfb0a703e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1CrossVersionObjectReferenceFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private String name; + public V1CrossVersionObjectReferenceFluent() { } public V1CrossVersionObjectReferenceFluent(V1CrossVersionObjectReference instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private String name; - + protected void copyInstance(V1CrossVersionObjectReference instance) { instance = instance != null ? instance : new V1CrossVersionObjectReference(); if (instance != null) { @@ -31,45 +33,6 @@ protected void copyInstance(V1CrossVersionObjectReference instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -93,6 +56,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public String getName() { + return this.name; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, name); } @@ -118,5 +105,19 @@ public String toString() { return sb.toString(); } - + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java index 5440cd2615..6a4933ae5d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CustomResourceColumnDefinitionBuilder extends V1CustomResourceColumnDefinitionFluent implements VisitableBuilder{ + + V1CustomResourceColumnDefinitionFluent fluent; + public V1CustomResourceColumnDefinitionBuilder() { this(new V1CustomResourceColumnDefinition()); } @@ -11,17 +14,16 @@ public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinitionF this(fluent, new V1CustomResourceColumnDefinition()); } - public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinitionFluent fluent,V1CustomResourceColumnDefinition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinition instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceColumnDefinitionFluent fluent; + public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinitionFluent fluent,V1CustomResourceColumnDefinition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceColumnDefinition build() { V1CustomResourceColumnDefinition buildable = new V1CustomResourceColumnDefinition(); buildable.setDescription(fluent.getDescription()); @@ -33,5 +35,4 @@ public V1CustomResourceColumnDefinition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java index 97c4c14611..96e514d8cf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java @@ -1,31 +1,33 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1CustomResourceColumnDefinitionFluent> extends BaseFluent{ - public V1CustomResourceColumnDefinitionFluent() { - } - - public V1CustomResourceColumnDefinitionFluent(V1CustomResourceColumnDefinition instance) { - this.copyInstance(instance); - } + private String description; private String format; private String jsonPath; private String name; private Integer priority; private String type; + + public V1CustomResourceColumnDefinitionFluent() { + } + public V1CustomResourceColumnDefinitionFluent(V1CustomResourceColumnDefinition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1CustomResourceColumnDefinition instance) { instance = instance != null ? instance : new V1CustomResourceColumnDefinition(); if (instance != null) { @@ -38,116 +40,86 @@ protected void copyInstance(V1CustomResourceColumnDefinition instance) { } } - public String getDescription() { - return this.description; - } - - public A withDescription(String description) { - this.description = description; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CustomResourceColumnDefinitionFluent that = (V1CustomResourceColumnDefinitionFluent) o; + if (!(Objects.equals(description, that.description))) { + return false; + } + if (!(Objects.equals(format, that.format))) { + return false; + } + if (!(Objects.equals(jsonPath, that.jsonPath))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(priority, that.priority))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasDescription() { - return this.description != null; + public String getDescription() { + return this.description; } public String getFormat() { return this.format; } - public A withFormat(String format) { - this.format = format; - return (A) this; - } - - public boolean hasFormat() { - return this.format != null; - } - public String getJsonPath() { return this.jsonPath; } - public A withJsonPath(String jsonPath) { - this.jsonPath = jsonPath; - return (A) this; - } - - public boolean hasJsonPath() { - return this.jsonPath != null; - } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + public Integer getPriority() { + return this.priority; } - public boolean hasName() { - return this.name != null; + public String getType() { + return this.type; } - public Integer getPriority() { - return this.priority; + public boolean hasDescription() { + return this.description != null; } - public A withPriority(Integer priority) { - this.priority = priority; - return (A) this; + public boolean hasFormat() { + return this.format != null; } - public boolean hasPriority() { - return this.priority != null; + public boolean hasJsonPath() { + return this.jsonPath != null; } - public String getType() { - return this.type; + public boolean hasName() { + return this.name != null; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasPriority() { + return this.priority != null; } public boolean hasType() { return this.type != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1CustomResourceColumnDefinitionFluent that = (V1CustomResourceColumnDefinitionFluent) o; - if (!(Objects.equals(description, that.description))) { - return false; - } - if (!(Objects.equals(format, that.format))) { - return false; - } - if (!(Objects.equals(jsonPath, that.jsonPath))) { - return false; - } - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(priority, that.priority))) { - return false; - } - if (!(Objects.equals(type, that.type))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(description, format, jsonPath, name, priority, type); } @@ -188,5 +160,34 @@ public String toString() { return sb.toString(); } - + public A withDescription(String description) { + this.description = description; + return (A) this; + } + + public A withFormat(String format) { + this.format = format; + return (A) this; + } + + public A withJsonPath(String jsonPath) { + this.jsonPath = jsonPath; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withPriority(Integer priority) { + this.priority = priority; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java index 761173ddf4..1b3aecfc86 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CustomResourceConversionBuilder extends V1CustomResourceConversionFluent implements VisitableBuilder{ + + V1CustomResourceConversionFluent fluent; + public V1CustomResourceConversionBuilder() { this(new V1CustomResourceConversion()); } @@ -11,17 +14,16 @@ public V1CustomResourceConversionBuilder(V1CustomResourceConversionFluent flu this(fluent, new V1CustomResourceConversion()); } - public V1CustomResourceConversionBuilder(V1CustomResourceConversionFluent fluent,V1CustomResourceConversion instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceConversionBuilder(V1CustomResourceConversion instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceConversionFluent fluent; + public V1CustomResourceConversionBuilder(V1CustomResourceConversionFluent fluent,V1CustomResourceConversion instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceConversion build() { V1CustomResourceConversion buildable = new V1CustomResourceConversion(); buildable.setStrategy(fluent.getStrategy()); @@ -29,5 +31,4 @@ public V1CustomResourceConversion build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java index f0f9b4efee..d5c06e1541 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java @@ -1,27 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1CustomResourceConversionFluent> extends BaseFluent{ + + private String strategy; + private V1WebhookConversionBuilder webhook; + public V1CustomResourceConversionFluent() { } public V1CustomResourceConversionFluent(V1CustomResourceConversion instance) { this.copyInstance(instance); } - private String strategy; - private V1WebhookConversionBuilder webhook; + + public V1WebhookConversion buildWebhook() { + return this.webhook != null ? this.webhook.build() : null; + } protected void copyInstance(V1CustomResourceConversion instance) { instance = instance != null ? instance : new V1CustomResourceConversion(); @@ -31,51 +37,6 @@ protected void copyInstance(V1CustomResourceConversion instance) { } } - public String getStrategy() { - return this.strategy; - } - - public A withStrategy(String strategy) { - this.strategy = strategy; - return (A) this; - } - - public boolean hasStrategy() { - return this.strategy != null; - } - - public V1WebhookConversion buildWebhook() { - return this.webhook != null ? this.webhook.build() : null; - } - - public A withWebhook(V1WebhookConversion webhook) { - this._visitables.remove("webhook"); - if (webhook != null) { - this.webhook = new V1WebhookConversionBuilder(webhook); - this._visitables.get("webhook").add(this.webhook); - } else { - this.webhook = null; - this._visitables.get("webhook").remove(this.webhook); - } - return (A) this; - } - - public boolean hasWebhook() { - return this.webhook != null; - } - - public WebhookNested withNewWebhook() { - return new WebhookNested(null); - } - - public WebhookNested withNewWebhookLike(V1WebhookConversion item) { - return new WebhookNested(item); - } - - public WebhookNested editWebhook() { - return this.withNewWebhookLike(Optional.ofNullable(this.buildWebhook()).orElse(null)); - } - public WebhookNested editOrNewWebhook() { return this.withNewWebhookLike(Optional.ofNullable(this.buildWebhook()).orElse(new V1WebhookConversionBuilder().build())); } @@ -84,6 +45,10 @@ public WebhookNested editOrNewWebhookLike(V1WebhookConversion item) { return this.withNewWebhookLike(Optional.ofNullable(this.buildWebhook()).orElse(item)); } + public WebhookNested editWebhook() { + return this.withNewWebhookLike(Optional.ofNullable(this.buildWebhook()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -104,6 +69,18 @@ public boolean equals(Object o) { return true; } + public String getStrategy() { + return this.strategy; + } + + public boolean hasStrategy() { + return this.strategy != null; + } + + public boolean hasWebhook() { + return this.webhook != null; + } + public int hashCode() { return Objects.hash(strategy, webhook); } @@ -123,12 +100,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public WebhookNested withNewWebhook() { + return new WebhookNested(null); + } + + public WebhookNested withNewWebhookLike(V1WebhookConversion item) { + return new WebhookNested(item); + } + + public A withStrategy(String strategy) { + this.strategy = strategy; + return (A) this; + } + + public A withWebhook(V1WebhookConversion webhook) { + this._visitables.remove("webhook"); + if (webhook != null) { + this.webhook = new V1WebhookConversionBuilder(webhook); + this._visitables.get("webhook").add(this.webhook); + } else { + this.webhook = null; + this._visitables.get("webhook").remove(this.webhook); + } + return (A) this; + } public class WebhookNested extends V1WebhookConversionFluent> implements Nested{ + + V1WebhookConversionBuilder builder; + WebhookNested(V1WebhookConversion item) { this.builder = new V1WebhookConversionBuilder(this, item); } - V1WebhookConversionBuilder builder; - + public N and() { return (N) V1CustomResourceConversionFluent.this.withWebhook(builder.build()); } @@ -137,7 +141,5 @@ public N endWebhook() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java index 195e3e7683..cf2df5a5e2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CustomResourceDefinitionBuilder extends V1CustomResourceDefinitionFluent implements VisitableBuilder{ + + V1CustomResourceDefinitionFluent fluent; + public V1CustomResourceDefinitionBuilder() { this(new V1CustomResourceDefinition()); } @@ -11,17 +14,16 @@ public V1CustomResourceDefinitionBuilder(V1CustomResourceDefinitionFluent flu this(fluent, new V1CustomResourceDefinition()); } - public V1CustomResourceDefinitionBuilder(V1CustomResourceDefinitionFluent fluent,V1CustomResourceDefinition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceDefinitionBuilder(V1CustomResourceDefinition instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceDefinitionFluent fluent; + public V1CustomResourceDefinitionBuilder(V1CustomResourceDefinitionFluent fluent,V1CustomResourceDefinition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceDefinition build() { V1CustomResourceDefinition buildable = new V1CustomResourceDefinition(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1CustomResourceDefinition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java index 5a94c3c7a5..c87ddafe9e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CustomResourceDefinitionConditionBuilder extends V1CustomResourceDefinitionConditionFluent implements VisitableBuilder{ + + V1CustomResourceDefinitionConditionFluent fluent; + public V1CustomResourceDefinitionConditionBuilder() { this(new V1CustomResourceDefinitionCondition()); } @@ -11,17 +14,16 @@ public V1CustomResourceDefinitionConditionBuilder(V1CustomResourceDefinitionCond this(fluent, new V1CustomResourceDefinitionCondition()); } - public V1CustomResourceDefinitionConditionBuilder(V1CustomResourceDefinitionConditionFluent fluent,V1CustomResourceDefinitionCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceDefinitionConditionBuilder(V1CustomResourceDefinitionCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceDefinitionConditionFluent fluent; + public V1CustomResourceDefinitionConditionBuilder(V1CustomResourceDefinitionConditionFluent fluent,V1CustomResourceDefinitionCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceDefinitionCondition build() { V1CustomResourceDefinitionCondition buildable = new V1CustomResourceDefinitionCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -32,5 +34,4 @@ public V1CustomResourceDefinitionCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java index af7ee391b0..8fed777bf1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1CustomResourceDefinitionConditionFluent> extends BaseFluent{ - public V1CustomResourceDefinitionConditionFluent() { - } - - public V1CustomResourceDefinitionConditionFluent(V1CustomResourceDefinitionCondition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1CustomResourceDefinitionConditionFluent() { + } + public V1CustomResourceDefinitionConditionFluent(V1CustomResourceDefinitionCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1CustomResourceDefinitionCondition instance) { instance = instance != null ? instance : new V1CustomResourceDefinitionCondition(); if (instance != null) { @@ -36,71 +38,6 @@ protected void copyInstance(V1CustomResourceDefinitionCondition instance) { } } - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -130,6 +67,46 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; + } + + public String getMessage() { + return this.message; + } + + public String getReason() { + return this.reason; + } + + public String getStatus() { + return this.status; + } + + public String getType() { + return this.type; + } + + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasReason() { + return this.reason != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } @@ -165,5 +142,29 @@ public String toString() { return sb.toString(); } - + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java index 2ae66cf1cb..440edef71c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1CustomResourceDefinitionFluent> extends BaseFluent{ - public V1CustomResourceDefinitionFluent() { - } - - public V1CustomResourceDefinitionFluent(V1CustomResourceDefinition instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1CustomResourceDefinitionSpecBuilder spec; private V1CustomResourceDefinitionStatusBuilder status; - - protected void copyInstance(V1CustomResourceDefinition instance) { - instance = instance != null ? instance : new V1CustomResourceDefinition(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1CustomResourceDefinitionFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1CustomResourceDefinitionFluent(V1CustomResourceDefinition instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1CustomResourceDefinitionSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1CustomResourceDefinitionStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1CustomResourceDefinition instance) { + instance = instance != null ? instance : new V1CustomResourceDefinition(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1CustomResourceDefinitionSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1CustomResourceDefinitionSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1CustomResourceDefinitionSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1CustomResourceDefinitionSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1CustomResourceDefinitionSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1CustomResourceDefinitionSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1CustomResourceDefinitionStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1CustomResourceDefinitionStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1CustomResourceDefinitionStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1CustomResourceDefinitionStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1CustomResourceDefinitionStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1CustomResourceDefinitionStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1CustomResourceDefinitionStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1CustomResourceDefinitionStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1CustomResourceDefinitionSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1CustomResourceDefinitionStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1CustomResourceDefinitionSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1CustomResourceDefinitionSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1CustomResourceDefinitionStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1CustomResourceDefinitionStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1CustomResourceDefinitionFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1CustomResourceDefinitionSpecFluent> implements Nested{ + + V1CustomResourceDefinitionSpecBuilder builder; + SpecNested(V1CustomResourceDefinitionSpec item) { this.builder = new V1CustomResourceDefinitionSpecBuilder(this, item); } - V1CustomResourceDefinitionSpecBuilder builder; - + public N and() { return (N) V1CustomResourceDefinitionFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1CustomResourceDefinitionStatusFluent> implements Nested{ + + V1CustomResourceDefinitionStatusBuilder builder; + StatusNested(V1CustomResourceDefinitionStatus item) { this.builder = new V1CustomResourceDefinitionStatusBuilder(this, item); } - V1CustomResourceDefinitionStatusBuilder builder; - + public N and() { return (N) V1CustomResourceDefinitionFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java index e44ce0214d..70012a3dfa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CustomResourceDefinitionListBuilder extends V1CustomResourceDefinitionListFluent implements VisitableBuilder{ + + V1CustomResourceDefinitionListFluent fluent; + public V1CustomResourceDefinitionListBuilder() { this(new V1CustomResourceDefinitionList()); } @@ -11,17 +14,16 @@ public V1CustomResourceDefinitionListBuilder(V1CustomResourceDefinitionListFluen this(fluent, new V1CustomResourceDefinitionList()); } - public V1CustomResourceDefinitionListBuilder(V1CustomResourceDefinitionListFluent fluent,V1CustomResourceDefinitionList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceDefinitionListBuilder(V1CustomResourceDefinitionList instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceDefinitionListFluent fluent; + public V1CustomResourceDefinitionListBuilder(V1CustomResourceDefinitionListFluent fluent,V1CustomResourceDefinitionList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceDefinitionList build() { V1CustomResourceDefinitionList buildable = new V1CustomResourceDefinitionList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1CustomResourceDefinitionList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java index 6367823765..dec57b4d8d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1CustomResourceDefinitionListFluent> extends BaseFluent{ - public V1CustomResourceDefinitionListFluent() { - } - - public V1CustomResourceDefinitionListFluent(V1CustomResourceDefinitionList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1CustomResourceDefinitionList instance) { - instance = instance != null ? instance : new V1CustomResourceDefinitionList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1CustomResourceDefinitionListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1CustomResourceDefinitionListFluent(V1CustomResourceDefinitionList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1CustomResourceDefinition item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1CustomResourceDefinition item : items) { + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1CustomResourceDefinition item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1CustomResourceDefinition item) { + return new ItemsNested(-1, item); } public A addToItems(V1CustomResourceDefinition... items) { @@ -96,68 +65,31 @@ public A addToItems(V1CustomResourceDefinition... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1CustomResourceDefinition item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1CustomResourceDefinition item : items) { - V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1CustomResourceDefinition... items) { - if (this.items == null) { - return (A) this; - } - for (V1CustomResourceDefinition item : items) { - V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1CustomResourceDefinition item : items) { - V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1CustomResourceDefinitionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1CustomResourceDefinition buildFirstItem() { + return this.items.get(0).build(); } public V1CustomResourceDefinition buildItem(int index) { return this.items.get(index).build(); } - public V1CustomResourceDefinition buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1CustomResourceDefinition buildLastItem() { @@ -173,73 +105,34 @@ public V1CustomResourceDefinition buildMatchingItem(Predicate predicate) { - for (V1CustomResourceDefinitionBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1CustomResourceDefinition item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1CustomResourceDefinitionList instance) { + instance = instance != null ? instance : new V1CustomResourceDefinitionList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1CustomResourceDefinition... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1CustomResourceDefinition item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1CustomResourceDefinition item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1CustomResourceDefinition item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1CustomResourceDefinitionBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1CustomResourceDefinition item : items) { + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1CustomResourceDefinition... items) { + if (this.items == null) { + return (A) this; + } + for (V1CustomResourceDefinition item : items) { + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1CustomResourceDefinitionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1CustomResourceDefinition item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1CustomResourceDefinition item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1CustomResourceDefinition item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1CustomResourceDefinition... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1CustomResourceDefinition item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1CustomResourceDefinitionFluent> implements Nested{ + + V1CustomResourceDefinitionBuilder builder; + int index; + ItemsNested(int index,V1CustomResourceDefinition item) { this.index = index; this.builder = new V1CustomResourceDefinitionBuilder(this, item); } - V1CustomResourceDefinitionBuilder builder; - int index; - + public N and() { return (N) V1CustomResourceDefinitionListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1CustomResourceDefinitionListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java index 9666341fe7..184d7754a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CustomResourceDefinitionNamesBuilder extends V1CustomResourceDefinitionNamesFluent implements VisitableBuilder{ + + V1CustomResourceDefinitionNamesFluent fluent; + public V1CustomResourceDefinitionNamesBuilder() { this(new V1CustomResourceDefinitionNames()); } @@ -11,17 +14,16 @@ public V1CustomResourceDefinitionNamesBuilder(V1CustomResourceDefinitionNamesFlu this(fluent, new V1CustomResourceDefinitionNames()); } - public V1CustomResourceDefinitionNamesBuilder(V1CustomResourceDefinitionNamesFluent fluent,V1CustomResourceDefinitionNames instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceDefinitionNamesBuilder(V1CustomResourceDefinitionNames instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceDefinitionNamesFluent fluent; + public V1CustomResourceDefinitionNamesBuilder(V1CustomResourceDefinitionNamesFluent fluent,V1CustomResourceDefinitionNames instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceDefinitionNames build() { V1CustomResourceDefinitionNames buildable = new V1CustomResourceDefinitionNames(); buildable.setCategories(fluent.getCategories()); @@ -33,5 +35,4 @@ public V1CustomResourceDefinitionNames build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java index 0d74b645fb..590eec4652 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,44 +16,38 @@ */ @SuppressWarnings("unchecked") public class V1CustomResourceDefinitionNamesFluent> extends BaseFluent{ - public V1CustomResourceDefinitionNamesFluent() { - } - - public V1CustomResourceDefinitionNamesFluent(V1CustomResourceDefinitionNames instance) { - this.copyInstance(instance); - } + private List categories; private String kind; private String listKind; private String plural; private List shortNames; private String singular; - - protected void copyInstance(V1CustomResourceDefinitionNames instance) { - instance = instance != null ? instance : new V1CustomResourceDefinitionNames(); - if (instance != null) { - this.withCategories(instance.getCategories()); - this.withKind(instance.getKind()); - this.withListKind(instance.getListKind()); - this.withPlural(instance.getPlural()); - this.withShortNames(instance.getShortNames()); - this.withSingular(instance.getSingular()); - } + + public V1CustomResourceDefinitionNamesFluent() { } - public A addToCategories(int index,String item) { + public V1CustomResourceDefinitionNamesFluent(V1CustomResourceDefinitionNames instance) { + this.copyInstance(instance); + } + + public A addAllToCategories(Collection items) { if (this.categories == null) { this.categories = new ArrayList(); } - this.categories.add(index, item); + for (String item : items) { + this.categories.add(item); + } return (A) this; } - public A setToCategories(int index,String item) { - if (this.categories == null) { - this.categories = new ArrayList(); + public A addAllToShortNames(Collection items) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + for (String item : items) { + this.shortNames.add(item); } - this.categories.set(index, item); return (A) this; } @@ -67,36 +61,76 @@ public A addToCategories(String... items) { return (A) this; } - public A addAllToCategories(Collection items) { + public A addToCategories(int index,String item) { if (this.categories == null) { this.categories = new ArrayList(); } - for (String item : items) { - this.categories.add(item); - } + this.categories.add(index, item); return (A) this; } - public A removeFromCategories(String... items) { - if (this.categories == null) { - return (A) this; + public A addToShortNames(String... items) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); } for (String item : items) { - this.categories.remove(item); + this.shortNames.add(item); } return (A) this; } - public A removeAllFromCategories(Collection items) { - if (this.categories == null) { - return (A) this; - } - for (String item : items) { - this.categories.remove(item); + public A addToShortNames(int index,String item) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); } + this.shortNames.add(index, item); return (A) this; } + protected void copyInstance(V1CustomResourceDefinitionNames instance) { + instance = instance != null ? instance : new V1CustomResourceDefinitionNames(); + if (instance != null) { + this.withCategories(instance.getCategories()); + this.withKind(instance.getKind()); + this.withListKind(instance.getListKind()); + this.withPlural(instance.getPlural()); + this.withShortNames(instance.getShortNames()); + this.withSingular(instance.getSingular()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CustomResourceDefinitionNamesFluent that = (V1CustomResourceDefinitionNamesFluent) o; + if (!(Objects.equals(categories, that.categories))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(listKind, that.listKind))) { + return false; + } + if (!(Objects.equals(plural, that.plural))) { + return false; + } + if (!(Objects.equals(shortNames, that.shortNames))) { + return false; + } + if (!(Objects.equals(singular, that.singular))) { + return false; + } + return true; + } + public List getCategories() { return this.categories; } @@ -109,10 +143,26 @@ public String getFirstCategory() { return this.categories.get(0); } + public String getFirstShortName() { + return this.shortNames.get(0); + } + + public String getKind() { + return this.kind; + } + public String getLastCategory() { return this.categories.get(categories.size() - 1); } + public String getLastShortName() { + return this.shortNames.get(shortNames.size() - 1); + } + + public String getListKind() { + return this.listKind; + } + public String getMatchingCategory(Predicate predicate) { for (String item : categories) { if (predicate.test(item)) { @@ -122,130 +172,108 @@ public String getMatchingCategory(Predicate predicate) { return null; } - public boolean hasMatchingCategory(Predicate predicate) { - for (String item : categories) { + public String getMatchingShortName(Predicate predicate) { + for (String item : shortNames) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withCategories(List categories) { - if (categories != null) { - this.categories = new ArrayList(); - for (String item : categories) { - this.addToCategories(item); - } - } else { - this.categories = null; - } - return (A) this; + public String getPlural() { + return this.plural; } - public A withCategories(String... categories) { - if (this.categories != null) { - this.categories.clear(); - _visitables.remove("categories"); - } - if (categories != null) { - for (String item : categories) { - this.addToCategories(item); - } - } - return (A) this; + public String getShortName(int index) { + return this.shortNames.get(index); } - public boolean hasCategories() { - return this.categories != null && !(this.categories.isEmpty()); + public List getShortNames() { + return this.shortNames; } - public String getKind() { - return this.kind; + public String getSingular() { + return this.singular; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasCategories() { + return this.categories != null && !(this.categories.isEmpty()); } public boolean hasKind() { return this.kind != null; } - public String getListKind() { - return this.listKind; - } - - public A withListKind(String listKind) { - this.listKind = listKind; - return (A) this; - } - public boolean hasListKind() { return this.listKind != null; } - public String getPlural() { - return this.plural; + public boolean hasMatchingCategory(Predicate predicate) { + for (String item : categories) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A withPlural(String plural) { - this.plural = plural; - return (A) this; + public boolean hasMatchingShortName(Predicate predicate) { + for (String item : shortNames) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasPlural() { return this.plural != null; } - public A addToShortNames(int index,String item) { - if (this.shortNames == null) { - this.shortNames = new ArrayList(); - } - this.shortNames.add(index, item); - return (A) this; + public boolean hasShortNames() { + return this.shortNames != null && !(this.shortNames.isEmpty()); } - public A setToShortNames(int index,String item) { - if (this.shortNames == null) { - this.shortNames = new ArrayList(); - } - this.shortNames.set(index, item); - return (A) this; + public boolean hasSingular() { + return this.singular != null; } - public A addToShortNames(String... items) { - if (this.shortNames == null) { - this.shortNames = new ArrayList(); + public int hashCode() { + return Objects.hash(categories, kind, listKind, plural, shortNames, singular); + } + + public A removeAllFromCategories(Collection items) { + if (this.categories == null) { + return (A) this; } for (String item : items) { - this.shortNames.add(item); + this.categories.remove(item); } return (A) this; } - public A addAllToShortNames(Collection items) { + public A removeAllFromShortNames(Collection items) { if (this.shortNames == null) { - this.shortNames = new ArrayList(); + return (A) this; } for (String item : items) { - this.shortNames.add(item); + this.shortNames.remove(item); } return (A) this; } - public A removeFromShortNames(String... items) { - if (this.shortNames == null) { + public A removeFromCategories(String... items) { + if (this.categories == null) { return (A) this; } for (String item : items) { - this.shortNames.remove(item); + this.categories.remove(item); } return (A) this; } - public A removeAllFromShortNames(Collection items) { + public A removeFromShortNames(String... items) { if (this.shortNames == null) { return (A) this; } @@ -255,118 +283,22 @@ public A removeAllFromShortNames(Collection items) { return (A) this; } - public List getShortNames() { - return this.shortNames; - } - - public String getShortName(int index) { - return this.shortNames.get(index); - } - - public String getFirstShortName() { - return this.shortNames.get(0); - } - - public String getLastShortName() { - return this.shortNames.get(shortNames.size() - 1); - } - - public String getMatchingShortName(Predicate predicate) { - for (String item : shortNames) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingShortName(Predicate predicate) { - for (String item : shortNames) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withShortNames(List shortNames) { - if (shortNames != null) { - this.shortNames = new ArrayList(); - for (String item : shortNames) { - this.addToShortNames(item); - } - } else { - this.shortNames = null; + public A setToCategories(int index,String item) { + if (this.categories == null) { + this.categories = new ArrayList(); } + this.categories.set(index, item); return (A) this; } - public A withShortNames(String... shortNames) { - if (this.shortNames != null) { - this.shortNames.clear(); - _visitables.remove("shortNames"); - } - if (shortNames != null) { - for (String item : shortNames) { - this.addToShortNames(item); - } + public A setToShortNames(int index,String item) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); } + this.shortNames.set(index, item); return (A) this; } - public boolean hasShortNames() { - return this.shortNames != null && !(this.shortNames.isEmpty()); - } - - public String getSingular() { - return this.singular; - } - - public A withSingular(String singular) { - this.singular = singular; - return (A) this; - } - - public boolean hasSingular() { - return this.singular != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1CustomResourceDefinitionNamesFluent that = (V1CustomResourceDefinitionNamesFluent) o; - if (!(Objects.equals(categories, that.categories))) { - return false; - } - if (!(Objects.equals(kind, that.kind))) { - return false; - } - if (!(Objects.equals(listKind, that.listKind))) { - return false; - } - if (!(Objects.equals(plural, that.plural))) { - return false; - } - if (!(Objects.equals(shortNames, that.shortNames))) { - return false; - } - if (!(Objects.equals(singular, that.singular))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(categories, kind, listKind, plural, shortNames, singular); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -403,5 +335,74 @@ public String toString() { return sb.toString(); } - + public A withCategories(List categories) { + if (categories != null) { + this.categories = new ArrayList(); + for (String item : categories) { + this.addToCategories(item); + } + } else { + this.categories = null; + } + return (A) this; + } + + public A withCategories(String... categories) { + if (this.categories != null) { + this.categories.clear(); + _visitables.remove("categories"); + } + if (categories != null) { + for (String item : categories) { + this.addToCategories(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withListKind(String listKind) { + this.listKind = listKind; + return (A) this; + } + + public A withPlural(String plural) { + this.plural = plural; + return (A) this; + } + + public A withShortNames(List shortNames) { + if (shortNames != null) { + this.shortNames = new ArrayList(); + for (String item : shortNames) { + this.addToShortNames(item); + } + } else { + this.shortNames = null; + } + return (A) this; + } + + public A withShortNames(String... shortNames) { + if (this.shortNames != null) { + this.shortNames.clear(); + _visitables.remove("shortNames"); + } + if (shortNames != null) { + for (String item : shortNames) { + this.addToShortNames(item); + } + } + return (A) this; + } + + public A withSingular(String singular) { + this.singular = singular; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java index 689f48c10b..ab80861a88 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CustomResourceDefinitionSpecBuilder extends V1CustomResourceDefinitionSpecFluent implements VisitableBuilder{ + + V1CustomResourceDefinitionSpecFluent fluent; + public V1CustomResourceDefinitionSpecBuilder() { this(new V1CustomResourceDefinitionSpec()); } @@ -11,17 +14,16 @@ public V1CustomResourceDefinitionSpecBuilder(V1CustomResourceDefinitionSpecFluen this(fluent, new V1CustomResourceDefinitionSpec()); } - public V1CustomResourceDefinitionSpecBuilder(V1CustomResourceDefinitionSpecFluent fluent,V1CustomResourceDefinitionSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceDefinitionSpecBuilder(V1CustomResourceDefinitionSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceDefinitionSpecFluent fluent; + public V1CustomResourceDefinitionSpecBuilder(V1CustomResourceDefinitionSpecFluent fluent,V1CustomResourceDefinitionSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceDefinitionSpec build() { V1CustomResourceDefinitionSpec buildable = new V1CustomResourceDefinitionSpec(); buildable.setConversion(fluent.buildConversion()); @@ -33,5 +35,4 @@ public V1CustomResourceDefinitionSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java index 5d603390c8..a60451a0bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java @@ -1,198 +1,59 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Boolean; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1CustomResourceDefinitionSpecFluent> extends BaseFluent{ - public V1CustomResourceDefinitionSpecFluent() { - } - - public V1CustomResourceDefinitionSpecFluent(V1CustomResourceDefinitionSpec instance) { - this.copyInstance(instance); - } + private V1CustomResourceConversionBuilder conversion; private String group; private V1CustomResourceDefinitionNamesBuilder names; private Boolean preserveUnknownFields; private String scope; private ArrayList versions; - - protected void copyInstance(V1CustomResourceDefinitionSpec instance) { - instance = instance != null ? instance : new V1CustomResourceDefinitionSpec(); - if (instance != null) { - this.withConversion(instance.getConversion()); - this.withGroup(instance.getGroup()); - this.withNames(instance.getNames()); - this.withPreserveUnknownFields(instance.getPreserveUnknownFields()); - this.withScope(instance.getScope()); - this.withVersions(instance.getVersions()); - } - } - - public V1CustomResourceConversion buildConversion() { - return this.conversion != null ? this.conversion.build() : null; - } - - public A withConversion(V1CustomResourceConversion conversion) { - this._visitables.remove("conversion"); - if (conversion != null) { - this.conversion = new V1CustomResourceConversionBuilder(conversion); - this._visitables.get("conversion").add(this.conversion); - } else { - this.conversion = null; - this._visitables.get("conversion").remove(this.conversion); - } - return (A) this; - } - - public boolean hasConversion() { - return this.conversion != null; - } - - public ConversionNested withNewConversion() { - return new ConversionNested(null); - } - - public ConversionNested withNewConversionLike(V1CustomResourceConversion item) { - return new ConversionNested(item); - } - - public ConversionNested editConversion() { - return this.withNewConversionLike(Optional.ofNullable(this.buildConversion()).orElse(null)); - } - - public ConversionNested editOrNewConversion() { - return this.withNewConversionLike(Optional.ofNullable(this.buildConversion()).orElse(new V1CustomResourceConversionBuilder().build())); - } - - public ConversionNested editOrNewConversionLike(V1CustomResourceConversion item) { - return this.withNewConversionLike(Optional.ofNullable(this.buildConversion()).orElse(item)); - } - - public String getGroup() { - return this.group; - } - - public A withGroup(String group) { - this.group = group; - return (A) this; - } - - public boolean hasGroup() { - return this.group != null; - } - - public V1CustomResourceDefinitionNames buildNames() { - return this.names != null ? this.names.build() : null; - } - - public A withNames(V1CustomResourceDefinitionNames names) { - this._visitables.remove("names"); - if (names != null) { - this.names = new V1CustomResourceDefinitionNamesBuilder(names); - this._visitables.get("names").add(this.names); - } else { - this.names = null; - this._visitables.get("names").remove(this.names); - } - return (A) this; - } - - public boolean hasNames() { - return this.names != null; - } - - public NamesNested withNewNames() { - return new NamesNested(null); - } - - public NamesNested withNewNamesLike(V1CustomResourceDefinitionNames item) { - return new NamesNested(item); - } - - public NamesNested editNames() { - return this.withNewNamesLike(Optional.ofNullable(this.buildNames()).orElse(null)); - } - - public NamesNested editOrNewNames() { - return this.withNewNamesLike(Optional.ofNullable(this.buildNames()).orElse(new V1CustomResourceDefinitionNamesBuilder().build())); - } - - public NamesNested editOrNewNamesLike(V1CustomResourceDefinitionNames item) { - return this.withNewNamesLike(Optional.ofNullable(this.buildNames()).orElse(item)); - } - - public Boolean getPreserveUnknownFields() { - return this.preserveUnknownFields; - } - - public A withPreserveUnknownFields(Boolean preserveUnknownFields) { - this.preserveUnknownFields = preserveUnknownFields; - return (A) this; - } - - public boolean hasPreserveUnknownFields() { - return this.preserveUnknownFields != null; - } - - public String getScope() { - return this.scope; - } - - public A withScope(String scope) { - this.scope = scope; - return (A) this; + + public V1CustomResourceDefinitionSpecFluent() { } - public boolean hasScope() { - return this.scope != null; + public V1CustomResourceDefinitionSpecFluent(V1CustomResourceDefinitionSpec instance) { + this.copyInstance(instance); } - - public A addToVersions(int index,V1CustomResourceDefinitionVersion item) { + + public A addAllToVersions(Collection items) { if (this.versions == null) { this.versions = new ArrayList(); } - V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); - if (index < 0 || index >= versions.size()) { - _visitables.get("versions").add(builder); - versions.add(builder); - } else { + for (V1CustomResourceDefinitionVersion item : items) { + V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); _visitables.get("versions").add(builder); - versions.add(index, builder); + this.versions.add(builder); } return (A) this; } - public A setToVersions(int index,V1CustomResourceDefinitionVersion item) { - if (this.versions == null) { - this.versions = new ArrayList(); - } - V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); - if (index < 0 || index >= versions.size()) { - _visitables.get("versions").add(builder); - versions.add(builder); - } else { - _visitables.get("versions").add(builder); - versions.set(index, builder); - } - return (A) this; + public VersionsNested addNewVersion() { + return new VersionsNested(-1, null); + } + + public VersionsNested addNewVersionLike(V1CustomResourceDefinitionVersion item) { + return new VersionsNested(-1, item); } public A addToVersions(V1CustomResourceDefinitionVersion... items) { @@ -207,64 +68,23 @@ public A addToVersions(V1CustomResourceDefinitionVersion... items) { return (A) this; } - public A addAllToVersions(Collection items) { + public A addToVersions(int index,V1CustomResourceDefinitionVersion item) { if (this.versions == null) { this.versions = new ArrayList(); } - for (V1CustomResourceDefinitionVersion item : items) { - V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); + V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); + if (index < 0 || index >= versions.size()) { _visitables.get("versions").add(builder); - this.versions.add(builder); - } - return (A) this; - } - - public A removeFromVersions(V1CustomResourceDefinitionVersion... items) { - if (this.versions == null) { - return (A) this; - } - for (V1CustomResourceDefinitionVersion item : items) { - V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); - _visitables.get("versions").remove(builder); - this.versions.remove(builder); - } - return (A) this; - } - - public A removeAllFromVersions(Collection items) { - if (this.versions == null) { - return (A) this; - } - for (V1CustomResourceDefinitionVersion item : items) { - V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); - _visitables.get("versions").remove(builder); - this.versions.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromVersions(Predicate predicate) { - if (versions == null) { - return (A) this; - } - Iterator each = versions.iterator(); - List visitables = _visitables.get("versions"); - while (each.hasNext()) { - V1CustomResourceDefinitionVersionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + versions.add(builder); + } else { + _visitables.get("versions").add(builder); + versions.add(index, builder); } return (A) this; } - public List buildVersions() { - return this.versions != null ? build(versions) : null; - } - - public V1CustomResourceDefinitionVersion buildVersion(int index) { - return this.versions.get(index).build(); + public V1CustomResourceConversion buildConversion() { + return this.conversion != null ? this.conversion.build() : null; } public V1CustomResourceDefinitionVersion buildFirstVersion() { @@ -284,64 +104,32 @@ public V1CustomResourceDefinitionVersion buildMatchingVersion(Predicate predicate) { - for (V1CustomResourceDefinitionVersionBuilder item : versions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withVersions(List versions) { - if (this.versions != null) { - this._visitables.get("versions").clear(); - } - if (versions != null) { - this.versions = new ArrayList(); - for (V1CustomResourceDefinitionVersion item : versions) { - this.addToVersions(item); - } - } else { - this.versions = null; - } - return (A) this; - } - - public A withVersions(V1CustomResourceDefinitionVersion... versions) { - if (this.versions != null) { - this.versions.clear(); - _visitables.remove("versions"); - } - if (versions != null) { - for (V1CustomResourceDefinitionVersion item : versions) { - this.addToVersions(item); - } - } - return (A) this; - } - - public boolean hasVersions() { - return this.versions != null && !(this.versions.isEmpty()); + public V1CustomResourceDefinitionNames buildNames() { + return this.names != null ? this.names.build() : null; } - public VersionsNested addNewVersion() { - return new VersionsNested(-1, null); + public V1CustomResourceDefinitionVersion buildVersion(int index) { + return this.versions.get(index).build(); } - public VersionsNested addNewVersionLike(V1CustomResourceDefinitionVersion item) { - return new VersionsNested(-1, item); + public List buildVersions() { + return this.versions != null ? build(versions) : null; } - public VersionsNested setNewVersionLike(int index,V1CustomResourceDefinitionVersion item) { - return new VersionsNested(index, item); + protected void copyInstance(V1CustomResourceDefinitionSpec instance) { + instance = instance != null ? instance : new V1CustomResourceDefinitionSpec(); + if (instance != null) { + this.withConversion(instance.getConversion()); + this.withGroup(instance.getGroup()); + this.withNames(instance.getNames()); + this.withPreserveUnknownFields(instance.getPreserveUnknownFields()); + this.withScope(instance.getScope()); + this.withVersions(instance.getVersions()); + } } - public VersionsNested editVersion(int index) { - if (index <= versions.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "versions")); - } - return this.setNewVersionLike(index, this.buildVersion(index)); + public ConversionNested editConversion() { + return this.withNewConversionLike(Optional.ofNullable(this.buildConversion()).orElse(null)); } public VersionsNested editFirstVersion() { @@ -373,6 +161,33 @@ public VersionsNested editMatchingVersion(Predicate editNames() { + return this.withNewNamesLike(Optional.ofNullable(this.buildNames()).orElse(null)); + } + + public ConversionNested editOrNewConversion() { + return this.withNewConversionLike(Optional.ofNullable(this.buildConversion()).orElse(new V1CustomResourceConversionBuilder().build())); + } + + public ConversionNested editOrNewConversionLike(V1CustomResourceConversion item) { + return this.withNewConversionLike(Optional.ofNullable(this.buildConversion()).orElse(item)); + } + + public NamesNested editOrNewNames() { + return this.withNewNamesLike(Optional.ofNullable(this.buildNames()).orElse(new V1CustomResourceDefinitionNamesBuilder().build())); + } + + public NamesNested editOrNewNamesLike(V1CustomResourceDefinitionNames item) { + return this.withNewNamesLike(Optional.ofNullable(this.buildNames()).orElse(item)); + } + + public VersionsNested editVersion(int index) { + if (versions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "versions")); + } + return this.setNewVersionLike(index, this.buildVersion(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -405,10 +220,114 @@ public boolean equals(Object o) { return true; } + public String getGroup() { + return this.group; + } + + public Boolean getPreserveUnknownFields() { + return this.preserveUnknownFields; + } + + public String getScope() { + return this.scope; + } + + public boolean hasConversion() { + return this.conversion != null; + } + + public boolean hasGroup() { + return this.group != null; + } + + public boolean hasMatchingVersion(Predicate predicate) { + for (V1CustomResourceDefinitionVersionBuilder item : versions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNames() { + return this.names != null; + } + + public boolean hasPreserveUnknownFields() { + return this.preserveUnknownFields != null; + } + + public boolean hasScope() { + return this.scope != null; + } + + public boolean hasVersions() { + return this.versions != null && !(this.versions.isEmpty()); + } + public int hashCode() { return Objects.hash(conversion, group, names, preserveUnknownFields, scope, versions); } + public A removeAllFromVersions(Collection items) { + if (this.versions == null) { + return (A) this; + } + for (V1CustomResourceDefinitionVersion item : items) { + V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); + _visitables.get("versions").remove(builder); + this.versions.remove(builder); + } + return (A) this; + } + + public A removeFromVersions(V1CustomResourceDefinitionVersion... items) { + if (this.versions == null) { + return (A) this; + } + for (V1CustomResourceDefinitionVersion item : items) { + V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); + _visitables.get("versions").remove(builder); + this.versions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromVersions(Predicate predicate) { + if (versions == null) { + return (A) this; + } + Iterator each = versions.iterator(); + List visitables = _visitables.get("versions"); + while (each.hasNext()) { + V1CustomResourceDefinitionVersionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public VersionsNested setNewVersionLike(int index,V1CustomResourceDefinitionVersion item) { + return new VersionsNested(index, item); + } + + public A setToVersions(int index,V1CustomResourceDefinitionVersion item) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); + if (index < 0 || index >= versions.size()) { + _visitables.get("versions").add(builder); + versions.add(builder); + } else { + _visitables.get("versions").add(builder); + versions.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -445,15 +364,100 @@ public String toString() { return sb.toString(); } + public A withConversion(V1CustomResourceConversion conversion) { + this._visitables.remove("conversion"); + if (conversion != null) { + this.conversion = new V1CustomResourceConversionBuilder(conversion); + this._visitables.get("conversion").add(this.conversion); + } else { + this.conversion = null; + this._visitables.get("conversion").remove(this.conversion); + } + return (A) this; + } + + public A withGroup(String group) { + this.group = group; + return (A) this; + } + + public A withNames(V1CustomResourceDefinitionNames names) { + this._visitables.remove("names"); + if (names != null) { + this.names = new V1CustomResourceDefinitionNamesBuilder(names); + this._visitables.get("names").add(this.names); + } else { + this.names = null; + this._visitables.get("names").remove(this.names); + } + return (A) this; + } + + public ConversionNested withNewConversion() { + return new ConversionNested(null); + } + + public ConversionNested withNewConversionLike(V1CustomResourceConversion item) { + return new ConversionNested(item); + } + + public NamesNested withNewNames() { + return new NamesNested(null); + } + + public NamesNested withNewNamesLike(V1CustomResourceDefinitionNames item) { + return new NamesNested(item); + } + public A withPreserveUnknownFields() { return withPreserveUnknownFields(true); } + + public A withPreserveUnknownFields(Boolean preserveUnknownFields) { + this.preserveUnknownFields = preserveUnknownFields; + return (A) this; + } + + public A withScope(String scope) { + this.scope = scope; + return (A) this; + } + + public A withVersions(List versions) { + if (this.versions != null) { + this._visitables.get("versions").clear(); + } + if (versions != null) { + this.versions = new ArrayList(); + for (V1CustomResourceDefinitionVersion item : versions) { + this.addToVersions(item); + } + } else { + this.versions = null; + } + return (A) this; + } + + public A withVersions(V1CustomResourceDefinitionVersion... versions) { + if (this.versions != null) { + this.versions.clear(); + _visitables.remove("versions"); + } + if (versions != null) { + for (V1CustomResourceDefinitionVersion item : versions) { + this.addToVersions(item); + } + } + return (A) this; + } public class ConversionNested extends V1CustomResourceConversionFluent> implements Nested{ + + V1CustomResourceConversionBuilder builder; + ConversionNested(V1CustomResourceConversion item) { this.builder = new V1CustomResourceConversionBuilder(this, item); } - V1CustomResourceConversionBuilder builder; - + public N and() { return (N) V1CustomResourceDefinitionSpecFluent.this.withConversion(builder.build()); } @@ -462,14 +466,15 @@ public N endConversion() { return and(); } - } public class NamesNested extends V1CustomResourceDefinitionNamesFluent> implements Nested{ + + V1CustomResourceDefinitionNamesBuilder builder; + NamesNested(V1CustomResourceDefinitionNames item) { this.builder = new V1CustomResourceDefinitionNamesBuilder(this, item); } - V1CustomResourceDefinitionNamesBuilder builder; - + public N and() { return (N) V1CustomResourceDefinitionSpecFluent.this.withNames(builder.build()); } @@ -478,16 +483,17 @@ public N endNames() { return and(); } - } public class VersionsNested extends V1CustomResourceDefinitionVersionFluent> implements Nested{ + + V1CustomResourceDefinitionVersionBuilder builder; + int index; + VersionsNested(int index,V1CustomResourceDefinitionVersion item) { this.index = index; this.builder = new V1CustomResourceDefinitionVersionBuilder(this, item); } - V1CustomResourceDefinitionVersionBuilder builder; - int index; - + public N and() { return (N) V1CustomResourceDefinitionSpecFluent.this.setToVersions(index, builder.build()); } @@ -496,7 +502,5 @@ public N endVersion() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java index 7d5bfe5895..a64ad8d93d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CustomResourceDefinitionStatusBuilder extends V1CustomResourceDefinitionStatusFluent implements VisitableBuilder{ + + V1CustomResourceDefinitionStatusFluent fluent; + public V1CustomResourceDefinitionStatusBuilder() { this(new V1CustomResourceDefinitionStatus()); } @@ -11,17 +14,16 @@ public V1CustomResourceDefinitionStatusBuilder(V1CustomResourceDefinitionStatusF this(fluent, new V1CustomResourceDefinitionStatus()); } - public V1CustomResourceDefinitionStatusBuilder(V1CustomResourceDefinitionStatusFluent fluent,V1CustomResourceDefinitionStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceDefinitionStatusBuilder(V1CustomResourceDefinitionStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceDefinitionStatusFluent fluent; + public V1CustomResourceDefinitionStatusBuilder(V1CustomResourceDefinitionStatusFluent fluent,V1CustomResourceDefinitionStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceDefinitionStatus build() { V1CustomResourceDefinitionStatus buildable = new V1CustomResourceDefinitionStatus(); buildable.setAcceptedNames(fluent.buildAcceptedNames()); @@ -30,5 +32,4 @@ public V1CustomResourceDefinitionStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java index 2b31ea9467..c2b3a55d63 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java @@ -1,100 +1,80 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1CustomResourceDefinitionStatusFluent> extends BaseFluent{ + + private V1CustomResourceDefinitionNamesBuilder acceptedNames; + private ArrayList conditions; + private List storedVersions; + public V1CustomResourceDefinitionStatusFluent() { } public V1CustomResourceDefinitionStatusFluent(V1CustomResourceDefinitionStatus instance) { this.copyInstance(instance); } - private V1CustomResourceDefinitionNamesBuilder acceptedNames; - private ArrayList conditions; - private List storedVersions; - - protected void copyInstance(V1CustomResourceDefinitionStatus instance) { - instance = instance != null ? instance : new V1CustomResourceDefinitionStatus(); - if (instance != null) { - this.withAcceptedNames(instance.getAcceptedNames()); - this.withConditions(instance.getConditions()); - this.withStoredVersions(instance.getStoredVersions()); + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); } - } - - public V1CustomResourceDefinitionNames buildAcceptedNames() { - return this.acceptedNames != null ? this.acceptedNames.build() : null; - } - - public A withAcceptedNames(V1CustomResourceDefinitionNames acceptedNames) { - this._visitables.remove("acceptedNames"); - if (acceptedNames != null) { - this.acceptedNames = new V1CustomResourceDefinitionNamesBuilder(acceptedNames); - this._visitables.get("acceptedNames").add(this.acceptedNames); - } else { - this.acceptedNames = null; - this._visitables.get("acceptedNames").remove(this.acceptedNames); + for (V1CustomResourceDefinitionCondition item : items) { + V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); } return (A) this; } - public boolean hasAcceptedNames() { - return this.acceptedNames != null; - } - - public AcceptedNamesNested withNewAcceptedNames() { - return new AcceptedNamesNested(null); - } - - public AcceptedNamesNested withNewAcceptedNamesLike(V1CustomResourceDefinitionNames item) { - return new AcceptedNamesNested(item); - } - - public AcceptedNamesNested editAcceptedNames() { - return this.withNewAcceptedNamesLike(Optional.ofNullable(this.buildAcceptedNames()).orElse(null)); + public A addAllToStoredVersions(Collection items) { + if (this.storedVersions == null) { + this.storedVersions = new ArrayList(); + } + for (String item : items) { + this.storedVersions.add(item); + } + return (A) this; } - public AcceptedNamesNested editOrNewAcceptedNames() { - return this.withNewAcceptedNamesLike(Optional.ofNullable(this.buildAcceptedNames()).orElse(new V1CustomResourceDefinitionNamesBuilder().build())); + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - public AcceptedNamesNested editOrNewAcceptedNamesLike(V1CustomResourceDefinitionNames item) { - return this.withNewAcceptedNamesLike(Optional.ofNullable(this.buildAcceptedNames()).orElse(item)); + public ConditionsNested addNewConditionLike(V1CustomResourceDefinitionCondition item) { + return new ConditionsNested(-1, item); } - public A addToConditions(int index,V1CustomResourceDefinitionCondition item) { + public A addToConditions(V1CustomResourceDefinitionCondition... items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1CustomResourceDefinitionCondition item : items) { + V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1CustomResourceDefinitionCondition item) { + public A addToConditions(int index,V1CustomResourceDefinitionCondition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } @@ -104,83 +84,41 @@ public A setToConditions(int index,V1CustomResourceDefinitionCondition item) { conditions.add(builder); } else { _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; - } - - public A addToConditions(V1CustomResourceDefinitionCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1CustomResourceDefinitionCondition item : items) { - V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); + conditions.add(index, builder); } return (A) this; } - public A addAllToConditions(Collection items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); + public A addToStoredVersions(String... items) { + if (this.storedVersions == null) { + this.storedVersions = new ArrayList(); } - for (V1CustomResourceDefinitionCondition item : items) { - V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); + for (String item : items) { + this.storedVersions.add(item); } return (A) this; } - public A removeFromConditions(V1CustomResourceDefinitionCondition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1CustomResourceDefinitionCondition item : items) { - V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + public A addToStoredVersions(int index,String item) { + if (this.storedVersions == null) { + this.storedVersions = new ArrayList(); } + this.storedVersions.add(index, item); return (A) this; } - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1CustomResourceDefinitionCondition item : items) { - V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; + public V1CustomResourceDefinitionNames buildAcceptedNames() { + return this.acceptedNames != null ? this.acceptedNames.build() : null; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1CustomResourceDefinitionConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1CustomResourceDefinitionCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1CustomResourceDefinitionCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1CustomResourceDefinitionCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -198,61 +136,21 @@ public V1CustomResourceDefinitionCondition buildMatchingCondition(Predicate predicate) { - for (V1CustomResourceDefinitionConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1CustomResourceDefinitionCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(V1CustomResourceDefinitionCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1CustomResourceDefinitionCondition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1CustomResourceDefinitionStatus instance) { + instance = instance != null ? instance : new V1CustomResourceDefinitionStatus(); + if (instance != null) { + this.withAcceptedNames(instance.getAcceptedNames()); + this.withConditions(instance.getConditions()); + this.withStoredVersions(instance.getStoredVersions()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1CustomResourceDefinitionCondition item) { - return new ConditionsNested(-1, item); } - public ConditionsNested setNewConditionLike(int index,V1CustomResourceDefinitionCondition item) { - return new ConditionsNested(index, item); + public AcceptedNamesNested editAcceptedNames() { + return this.withNewAcceptedNamesLike(Optional.ofNullable(this.buildAcceptedNames()).orElse(null)); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -287,68 +185,35 @@ public ConditionsNested editMatchingCondition(Predicate editOrNewAcceptedNames() { + return this.withNewAcceptedNamesLike(Optional.ofNullable(this.buildAcceptedNames()).orElse(new V1CustomResourceDefinitionNamesBuilder().build())); } - public A setToStoredVersions(int index,String item) { - if (this.storedVersions == null) { - this.storedVersions = new ArrayList(); - } - this.storedVersions.set(index, item); - return (A) this; + public AcceptedNamesNested editOrNewAcceptedNamesLike(V1CustomResourceDefinitionNames item) { + return this.withNewAcceptedNamesLike(Optional.ofNullable(this.buildAcceptedNames()).orElse(item)); } - public A addToStoredVersions(String... items) { - if (this.storedVersions == null) { - this.storedVersions = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.storedVersions.add(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A addAllToStoredVersions(Collection items) { - if (this.storedVersions == null) { - this.storedVersions = new ArrayList(); + if (!(super.equals(o))) { + return false; } - for (String item : items) { - this.storedVersions.add(item); - } - return (A) this; - } - - public A removeFromStoredVersions(String... items) { - if (this.storedVersions == null) { - return (A) this; - } - for (String item : items) { - this.storedVersions.remove(item); + V1CustomResourceDefinitionStatusFluent that = (V1CustomResourceDefinitionStatusFluent) o; + if (!(Objects.equals(acceptedNames, that.acceptedNames))) { + return false; } - return (A) this; - } - - public A removeAllFromStoredVersions(Collection items) { - if (this.storedVersions == null) { - return (A) this; + if (!(Objects.equals(conditions, that.conditions))) { + return false; } - for (String item : items) { - this.storedVersions.remove(item); + if (!(Objects.equals(storedVersions, that.storedVersions))) { + return false; } - return (A) this; - } - - public List getStoredVersions() { - return this.storedVersions; - } - - public String getStoredVersion(int index) { - return this.storedVersions.get(index); + return true; } public String getFirstStoredVersion() { @@ -368,6 +233,31 @@ public String getMatchingStoredVersion(Predicate predicate) { return null; } + public String getStoredVersion(int index) { + return this.storedVersions.get(index); + } + + public List getStoredVersions() { + return this.storedVersions; + } + + public boolean hasAcceptedNames() { + return this.acceptedNames != null; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1CustomResourceDefinitionConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasMatchingStoredVersion(Predicate predicate) { for (String item : storedVersions) { if (predicate.test(item)) { @@ -377,60 +267,99 @@ public boolean hasMatchingStoredVersion(Predicate predicate) { return false; } - public A withStoredVersions(List storedVersions) { - if (storedVersions != null) { - this.storedVersions = new ArrayList(); - for (String item : storedVersions) { - this.addToStoredVersions(item); - } - } else { - this.storedVersions = null; + public boolean hasStoredVersions() { + return this.storedVersions != null && !(this.storedVersions.isEmpty()); + } + + public int hashCode() { + return Objects.hash(acceptedNames, conditions, storedVersions); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1CustomResourceDefinitionCondition item : items) { + V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } return (A) this; } - public A withStoredVersions(String... storedVersions) { - if (this.storedVersions != null) { - this.storedVersions.clear(); - _visitables.remove("storedVersions"); + public A removeAllFromStoredVersions(Collection items) { + if (this.storedVersions == null) { + return (A) this; } - if (storedVersions != null) { - for (String item : storedVersions) { - this.addToStoredVersions(item); - } + for (String item : items) { + this.storedVersions.remove(item); } return (A) this; } - public boolean hasStoredVersions() { - return this.storedVersions != null && !(this.storedVersions.isEmpty()); + public A removeFromConditions(V1CustomResourceDefinitionCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1CustomResourceDefinitionCondition item : items) { + V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; + public A removeFromStoredVersions(String... items) { + if (this.storedVersions == null) { + return (A) this; } - if (o == null || this.getClass() != o.getClass()) { - return false; + for (String item : items) { + this.storedVersions.remove(item); } - if (!(super.equals(o))) { - return false; + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; } - V1CustomResourceDefinitionStatusFluent that = (V1CustomResourceDefinitionStatusFluent) o; - if (!(Objects.equals(acceptedNames, that.acceptedNames))) { - return false; + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1CustomResourceDefinitionConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - if (!(Objects.equals(conditions, that.conditions))) { - return false; + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1CustomResourceDefinitionCondition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1CustomResourceDefinitionCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); } - if (!(Objects.equals(storedVersions, that.storedVersions))) { - return false; + V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(acceptedNames, conditions, storedVersions); + public A setToStoredVersions(int index,String item) { + if (this.storedVersions == null) { + this.storedVersions = new ArrayList(); + } + this.storedVersions.set(index, item); + return (A) this; } public String toString() { @@ -453,12 +382,87 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAcceptedNames(V1CustomResourceDefinitionNames acceptedNames) { + this._visitables.remove("acceptedNames"); + if (acceptedNames != null) { + this.acceptedNames = new V1CustomResourceDefinitionNamesBuilder(acceptedNames); + this._visitables.get("acceptedNames").add(this.acceptedNames); + } else { + this.acceptedNames = null; + this._visitables.get("acceptedNames").remove(this.acceptedNames); + } + return (A) this; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1CustomResourceDefinitionCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1CustomResourceDefinitionCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1CustomResourceDefinitionCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public AcceptedNamesNested withNewAcceptedNames() { + return new AcceptedNamesNested(null); + } + + public AcceptedNamesNested withNewAcceptedNamesLike(V1CustomResourceDefinitionNames item) { + return new AcceptedNamesNested(item); + } + + public A withStoredVersions(List storedVersions) { + if (storedVersions != null) { + this.storedVersions = new ArrayList(); + for (String item : storedVersions) { + this.addToStoredVersions(item); + } + } else { + this.storedVersions = null; + } + return (A) this; + } + + public A withStoredVersions(String... storedVersions) { + if (this.storedVersions != null) { + this.storedVersions.clear(); + _visitables.remove("storedVersions"); + } + if (storedVersions != null) { + for (String item : storedVersions) { + this.addToStoredVersions(item); + } + } + return (A) this; + } public class AcceptedNamesNested extends V1CustomResourceDefinitionNamesFluent> implements Nested{ + + V1CustomResourceDefinitionNamesBuilder builder; + AcceptedNamesNested(V1CustomResourceDefinitionNames item) { this.builder = new V1CustomResourceDefinitionNamesBuilder(this, item); } - V1CustomResourceDefinitionNamesBuilder builder; - + public N and() { return (N) V1CustomResourceDefinitionStatusFluent.this.withAcceptedNames(builder.build()); } @@ -467,16 +471,17 @@ public N endAcceptedNames() { return and(); } - } public class ConditionsNested extends V1CustomResourceDefinitionConditionFluent> implements Nested{ + + V1CustomResourceDefinitionConditionBuilder builder; + int index; + ConditionsNested(int index,V1CustomResourceDefinitionCondition item) { this.index = index; this.builder = new V1CustomResourceDefinitionConditionBuilder(this, item); } - V1CustomResourceDefinitionConditionBuilder builder; - int index; - + public N and() { return (N) V1CustomResourceDefinitionStatusFluent.this.setToConditions(index, builder.build()); } @@ -485,7 +490,5 @@ public N endCondition() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java index da72d64ed7..396a0a42a3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CustomResourceDefinitionVersionBuilder extends V1CustomResourceDefinitionVersionFluent implements VisitableBuilder{ + + V1CustomResourceDefinitionVersionFluent fluent; + public V1CustomResourceDefinitionVersionBuilder() { this(new V1CustomResourceDefinitionVersion()); } @@ -11,17 +14,16 @@ public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersio this(fluent, new V1CustomResourceDefinitionVersion()); } - public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersionFluent fluent,V1CustomResourceDefinitionVersion instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersion instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceDefinitionVersionFluent fluent; + public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersionFluent fluent,V1CustomResourceDefinitionVersion instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceDefinitionVersion build() { V1CustomResourceDefinitionVersion buildable = new V1CustomResourceDefinitionVersion(); buildable.setAdditionalPrinterColumns(fluent.buildAdditionalPrinterColumns()); @@ -36,5 +38,4 @@ public V1CustomResourceDefinitionVersion build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java index 52de66e600..59cb89f700 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Boolean; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1CustomResourceDefinitionVersionFluent> extends BaseFluent{ - public V1CustomResourceDefinitionVersionFluent() { - } - - public V1CustomResourceDefinitionVersionFluent(V1CustomResourceDefinitionVersion instance) { - this.copyInstance(instance); - } + private ArrayList additionalPrinterColumns; private Boolean deprecated; private String deprecationWarning; @@ -36,52 +31,54 @@ public V1CustomResourceDefinitionVersionFluent(V1CustomResourceDefinitionVersion private Boolean served; private Boolean storage; private V1CustomResourceSubresourcesBuilder subresources; - - protected void copyInstance(V1CustomResourceDefinitionVersion instance) { - instance = instance != null ? instance : new V1CustomResourceDefinitionVersion(); - if (instance != null) { - this.withAdditionalPrinterColumns(instance.getAdditionalPrinterColumns()); - this.withDeprecated(instance.getDeprecated()); - this.withDeprecationWarning(instance.getDeprecationWarning()); - this.withName(instance.getName()); - this.withSchema(instance.getSchema()); - this.withSelectableFields(instance.getSelectableFields()); - this.withServed(instance.getServed()); - this.withStorage(instance.getStorage()); - this.withSubresources(instance.getSubresources()); - } + + public V1CustomResourceDefinitionVersionFluent() { } - public A addToAdditionalPrinterColumns(int index,V1CustomResourceColumnDefinition item) { + public V1CustomResourceDefinitionVersionFluent(V1CustomResourceDefinitionVersion instance) { + this.copyInstance(instance); + } + + public A addAllToAdditionalPrinterColumns(Collection items) { if (this.additionalPrinterColumns == null) { this.additionalPrinterColumns = new ArrayList(); } - V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); - if (index < 0 || index >= additionalPrinterColumns.size()) { - _visitables.get("additionalPrinterColumns").add(builder); - additionalPrinterColumns.add(builder); - } else { + for (V1CustomResourceColumnDefinition item : items) { + V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); _visitables.get("additionalPrinterColumns").add(builder); - additionalPrinterColumns.add(index, builder); + this.additionalPrinterColumns.add(builder); } return (A) this; } - public A setToAdditionalPrinterColumns(int index,V1CustomResourceColumnDefinition item) { - if (this.additionalPrinterColumns == null) { - this.additionalPrinterColumns = new ArrayList(); + public A addAllToSelectableFields(Collection items) { + if (this.selectableFields == null) { + this.selectableFields = new ArrayList(); } - V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); - if (index < 0 || index >= additionalPrinterColumns.size()) { - _visitables.get("additionalPrinterColumns").add(builder); - additionalPrinterColumns.add(builder); - } else { - _visitables.get("additionalPrinterColumns").add(builder); - additionalPrinterColumns.set(index, builder); + for (V1SelectableField item : items) { + V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); + _visitables.get("selectableFields").add(builder); + this.selectableFields.add(builder); } return (A) this; } + public AdditionalPrinterColumnsNested addNewAdditionalPrinterColumn() { + return new AdditionalPrinterColumnsNested(-1, null); + } + + public AdditionalPrinterColumnsNested addNewAdditionalPrinterColumnLike(V1CustomResourceColumnDefinition item) { + return new AdditionalPrinterColumnsNested(-1, item); + } + + public SelectableFieldsNested addNewSelectableField() { + return new SelectableFieldsNested(-1, null); + } + + public SelectableFieldsNested addNewSelectableFieldLike(V1SelectableField item) { + return new SelectableFieldsNested(-1, item); + } + public A addToAdditionalPrinterColumns(V1CustomResourceColumnDefinition... items) { if (this.additionalPrinterColumns == null) { this.additionalPrinterColumns = new ArrayList(); @@ -94,74 +91,72 @@ public A addToAdditionalPrinterColumns(V1CustomResourceColumnDefinition... items return (A) this; } - public A addAllToAdditionalPrinterColumns(Collection items) { + public A addToAdditionalPrinterColumns(int index,V1CustomResourceColumnDefinition item) { if (this.additionalPrinterColumns == null) { this.additionalPrinterColumns = new ArrayList(); } - for (V1CustomResourceColumnDefinition item : items) { - V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); + V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); + if (index < 0 || index >= additionalPrinterColumns.size()) { _visitables.get("additionalPrinterColumns").add(builder); - this.additionalPrinterColumns.add(builder); + additionalPrinterColumns.add(builder); + } else { + _visitables.get("additionalPrinterColumns").add(builder); + additionalPrinterColumns.add(index, builder); } return (A) this; } - public A removeFromAdditionalPrinterColumns(V1CustomResourceColumnDefinition... items) { - if (this.additionalPrinterColumns == null) { - return (A) this; + public A addToSelectableFields(V1SelectableField... items) { + if (this.selectableFields == null) { + this.selectableFields = new ArrayList(); } - for (V1CustomResourceColumnDefinition item : items) { - V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); - _visitables.get("additionalPrinterColumns").remove(builder); - this.additionalPrinterColumns.remove(builder); + for (V1SelectableField item : items) { + V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); + _visitables.get("selectableFields").add(builder); + this.selectableFields.add(builder); } return (A) this; } - public A removeAllFromAdditionalPrinterColumns(Collection items) { - if (this.additionalPrinterColumns == null) { - return (A) this; + public A addToSelectableFields(int index,V1SelectableField item) { + if (this.selectableFields == null) { + this.selectableFields = new ArrayList(); } - for (V1CustomResourceColumnDefinition item : items) { - V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); - _visitables.get("additionalPrinterColumns").remove(builder); - this.additionalPrinterColumns.remove(builder); + V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); + if (index < 0 || index >= selectableFields.size()) { + _visitables.get("selectableFields").add(builder); + selectableFields.add(builder); + } else { + _visitables.get("selectableFields").add(builder); + selectableFields.add(index, builder); } return (A) this; } - public A removeMatchingFromAdditionalPrinterColumns(Predicate predicate) { - if (additionalPrinterColumns == null) { - return (A) this; - } - Iterator each = additionalPrinterColumns.iterator(); - List visitables = _visitables.get("additionalPrinterColumns"); - while (each.hasNext()) { - V1CustomResourceColumnDefinitionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1CustomResourceColumnDefinition buildAdditionalPrinterColumn(int index) { + return this.additionalPrinterColumns.get(index).build(); } public List buildAdditionalPrinterColumns() { return this.additionalPrinterColumns != null ? build(additionalPrinterColumns) : null; } - public V1CustomResourceColumnDefinition buildAdditionalPrinterColumn(int index) { - return this.additionalPrinterColumns.get(index).build(); - } - public V1CustomResourceColumnDefinition buildFirstAdditionalPrinterColumn() { return this.additionalPrinterColumns.get(0).build(); } + public V1SelectableField buildFirstSelectableField() { + return this.selectableFields.get(0).build(); + } + public V1CustomResourceColumnDefinition buildLastAdditionalPrinterColumn() { return this.additionalPrinterColumns.get(additionalPrinterColumns.size() - 1).build(); } + public V1SelectableField buildLastSelectableField() { + return this.selectableFields.get(selectableFields.size() - 1).build(); + } + public V1CustomResourceColumnDefinition buildMatchingAdditionalPrinterColumn(Predicate predicate) { for (V1CustomResourceColumnDefinitionBuilder item : additionalPrinterColumns) { if (predicate.test(item)) { @@ -171,61 +166,48 @@ public V1CustomResourceColumnDefinition buildMatchingAdditionalPrinterColumn(Pre return null; } - public boolean hasMatchingAdditionalPrinterColumn(Predicate predicate) { - for (V1CustomResourceColumnDefinitionBuilder item : additionalPrinterColumns) { + public V1SelectableField buildMatchingSelectableField(Predicate predicate) { + for (V1SelectableFieldBuilder item : selectableFields) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; - } - - public A withAdditionalPrinterColumns(List additionalPrinterColumns) { - if (this.additionalPrinterColumns != null) { - this._visitables.get("additionalPrinterColumns").clear(); - } - if (additionalPrinterColumns != null) { - this.additionalPrinterColumns = new ArrayList(); - for (V1CustomResourceColumnDefinition item : additionalPrinterColumns) { - this.addToAdditionalPrinterColumns(item); - } - } else { - this.additionalPrinterColumns = null; - } - return (A) this; + return null; } - public A withAdditionalPrinterColumns(V1CustomResourceColumnDefinition... additionalPrinterColumns) { - if (this.additionalPrinterColumns != null) { - this.additionalPrinterColumns.clear(); - _visitables.remove("additionalPrinterColumns"); - } - if (additionalPrinterColumns != null) { - for (V1CustomResourceColumnDefinition item : additionalPrinterColumns) { - this.addToAdditionalPrinterColumns(item); - } - } - return (A) this; + public V1CustomResourceValidation buildSchema() { + return this.schema != null ? this.schema.build() : null; } - public boolean hasAdditionalPrinterColumns() { - return this.additionalPrinterColumns != null && !(this.additionalPrinterColumns.isEmpty()); + public V1SelectableField buildSelectableField(int index) { + return this.selectableFields.get(index).build(); } - public AdditionalPrinterColumnsNested addNewAdditionalPrinterColumn() { - return new AdditionalPrinterColumnsNested(-1, null); + public List buildSelectableFields() { + return this.selectableFields != null ? build(selectableFields) : null; } - public AdditionalPrinterColumnsNested addNewAdditionalPrinterColumnLike(V1CustomResourceColumnDefinition item) { - return new AdditionalPrinterColumnsNested(-1, item); + public V1CustomResourceSubresources buildSubresources() { + return this.subresources != null ? this.subresources.build() : null; } - public AdditionalPrinterColumnsNested setNewAdditionalPrinterColumnLike(int index,V1CustomResourceColumnDefinition item) { - return new AdditionalPrinterColumnsNested(index, item); + protected void copyInstance(V1CustomResourceDefinitionVersion instance) { + instance = instance != null ? instance : new V1CustomResourceDefinitionVersion(); + if (instance != null) { + this.withAdditionalPrinterColumns(instance.getAdditionalPrinterColumns()); + this.withDeprecated(instance.getDeprecated()); + this.withDeprecationWarning(instance.getDeprecationWarning()); + this.withName(instance.getName()); + this.withSchema(instance.getSchema()); + this.withSelectableFields(instance.getSelectableFields()); + this.withServed(instance.getServed()); + this.withStorage(instance.getStorage()); + this.withSubresources(instance.getSubresources()); + } } public AdditionalPrinterColumnsNested editAdditionalPrinterColumn(int index) { - if (index <= additionalPrinterColumns.size()) { + if (additionalPrinterColumns.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "additionalPrinterColumns")); } return this.setNewAdditionalPrinterColumnLike(index, this.buildAdditionalPrinterColumn(index)); @@ -238,6 +220,13 @@ public AdditionalPrinterColumnsNested editFirstAdditionalPrinterColumn() { return this.setNewAdditionalPrinterColumnLike(0, this.buildAdditionalPrinterColumn(0)); } + public SelectableFieldsNested editFirstSelectableField() { + if (selectableFields.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectableFields")); + } + return this.setNewSelectableFieldLike(0, this.buildSelectableField(0)); + } + public AdditionalPrinterColumnsNested editLastAdditionalPrinterColumn() { int index = additionalPrinterColumns.size() - 1; if (index < 0) { @@ -246,6 +235,14 @@ public AdditionalPrinterColumnsNested editLastAdditionalPrinterColumn() { return this.setNewAdditionalPrinterColumnLike(index, this.buildAdditionalPrinterColumn(index)); } + public SelectableFieldsNested editLastSelectableField() { + int index = selectableFields.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectableFields")); + } + return this.setNewSelectableFieldLike(index, this.buildSelectableField(index)); + } + public AdditionalPrinterColumnsNested editMatchingAdditionalPrinterColumn(Predicate predicate) { int index = -1; for (int i = 0;i < additionalPrinterColumns.size();i++) { @@ -260,202 +257,131 @@ public AdditionalPrinterColumnsNested editMatchingAdditionalPrinterColumn(Pre return this.setNewAdditionalPrinterColumnLike(index, this.buildAdditionalPrinterColumn(index)); } - public Boolean getDeprecated() { - return this.deprecated; + public SelectableFieldsNested editMatchingSelectableField(Predicate predicate) { + int index = -1; + for (int i = 0;i < selectableFields.size();i++) { + if (predicate.test(selectableFields.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectableFields")); + } + return this.setNewSelectableFieldLike(index, this.buildSelectableField(index)); } - public A withDeprecated(Boolean deprecated) { - this.deprecated = deprecated; - return (A) this; + public SchemaNested editOrNewSchema() { + return this.withNewSchemaLike(Optional.ofNullable(this.buildSchema()).orElse(new V1CustomResourceValidationBuilder().build())); } - public boolean hasDeprecated() { - return this.deprecated != null; - } - - public String getDeprecationWarning() { - return this.deprecationWarning; - } - - public A withDeprecationWarning(String deprecationWarning) { - this.deprecationWarning = deprecationWarning; - return (A) this; - } - - public boolean hasDeprecationWarning() { - return this.deprecationWarning != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public V1CustomResourceValidation buildSchema() { - return this.schema != null ? this.schema.build() : null; - } - - public A withSchema(V1CustomResourceValidation schema) { - this._visitables.remove("schema"); - if (schema != null) { - this.schema = new V1CustomResourceValidationBuilder(schema); - this._visitables.get("schema").add(this.schema); - } else { - this.schema = null; - this._visitables.get("schema").remove(this.schema); - } - return (A) this; - } - - public boolean hasSchema() { - return this.schema != null; + public SchemaNested editOrNewSchemaLike(V1CustomResourceValidation item) { + return this.withNewSchemaLike(Optional.ofNullable(this.buildSchema()).orElse(item)); } - public SchemaNested withNewSchema() { - return new SchemaNested(null); + public SubresourcesNested editOrNewSubresources() { + return this.withNewSubresourcesLike(Optional.ofNullable(this.buildSubresources()).orElse(new V1CustomResourceSubresourcesBuilder().build())); } - public SchemaNested withNewSchemaLike(V1CustomResourceValidation item) { - return new SchemaNested(item); + public SubresourcesNested editOrNewSubresourcesLike(V1CustomResourceSubresources item) { + return this.withNewSubresourcesLike(Optional.ofNullable(this.buildSubresources()).orElse(item)); } public SchemaNested editSchema() { return this.withNewSchemaLike(Optional.ofNullable(this.buildSchema()).orElse(null)); } - public SchemaNested editOrNewSchema() { - return this.withNewSchemaLike(Optional.ofNullable(this.buildSchema()).orElse(new V1CustomResourceValidationBuilder().build())); + public SelectableFieldsNested editSelectableField(int index) { + if (selectableFields.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectableFields")); + } + return this.setNewSelectableFieldLike(index, this.buildSelectableField(index)); } - public SchemaNested editOrNewSchemaLike(V1CustomResourceValidation item) { - return this.withNewSchemaLike(Optional.ofNullable(this.buildSchema()).orElse(item)); + public SubresourcesNested editSubresources() { + return this.withNewSubresourcesLike(Optional.ofNullable(this.buildSubresources()).orElse(null)); } - public A addToSelectableFields(int index,V1SelectableField item) { - if (this.selectableFields == null) { - this.selectableFields = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); - if (index < 0 || index >= selectableFields.size()) { - _visitables.get("selectableFields").add(builder); - selectableFields.add(builder); - } else { - _visitables.get("selectableFields").add(builder); - selectableFields.add(index, builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A setToSelectableFields(int index,V1SelectableField item) { - if (this.selectableFields == null) { - this.selectableFields = new ArrayList(); + if (!(super.equals(o))) { + return false; } - V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); - if (index < 0 || index >= selectableFields.size()) { - _visitables.get("selectableFields").add(builder); - selectableFields.add(builder); - } else { - _visitables.get("selectableFields").add(builder); - selectableFields.set(index, builder); + V1CustomResourceDefinitionVersionFluent that = (V1CustomResourceDefinitionVersionFluent) o; + if (!(Objects.equals(additionalPrinterColumns, that.additionalPrinterColumns))) { + return false; } - return (A) this; - } - - public A addToSelectableFields(V1SelectableField... items) { - if (this.selectableFields == null) { - this.selectableFields = new ArrayList(); + if (!(Objects.equals(deprecated, that.deprecated))) { + return false; } - for (V1SelectableField item : items) { - V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); - _visitables.get("selectableFields").add(builder); - this.selectableFields.add(builder); + if (!(Objects.equals(deprecationWarning, that.deprecationWarning))) { + return false; } - return (A) this; - } - - public A addAllToSelectableFields(Collection items) { - if (this.selectableFields == null) { - this.selectableFields = new ArrayList(); + if (!(Objects.equals(name, that.name))) { + return false; } - for (V1SelectableField item : items) { - V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); - _visitables.get("selectableFields").add(builder); - this.selectableFields.add(builder); + if (!(Objects.equals(schema, that.schema))) { + return false; } - return (A) this; - } - - public A removeFromSelectableFields(V1SelectableField... items) { - if (this.selectableFields == null) { - return (A) this; + if (!(Objects.equals(selectableFields, that.selectableFields))) { + return false; } - for (V1SelectableField item : items) { - V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); - _visitables.get("selectableFields").remove(builder); - this.selectableFields.remove(builder); + if (!(Objects.equals(served, that.served))) { + return false; } - return (A) this; - } - - public A removeAllFromSelectableFields(Collection items) { - if (this.selectableFields == null) { - return (A) this; + if (!(Objects.equals(storage, that.storage))) { + return false; } - for (V1SelectableField item : items) { - V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); - _visitables.get("selectableFields").remove(builder); - this.selectableFields.remove(builder); + if (!(Objects.equals(subresources, that.subresources))) { + return false; } - return (A) this; + return true; } - public A removeMatchingFromSelectableFields(Predicate predicate) { - if (selectableFields == null) { - return (A) this; - } - Iterator each = selectableFields.iterator(); - List visitables = _visitables.get("selectableFields"); - while (each.hasNext()) { - V1SelectableFieldBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public Boolean getDeprecated() { + return this.deprecated; } - public List buildSelectableFields() { - return this.selectableFields != null ? build(selectableFields) : null; + public String getDeprecationWarning() { + return this.deprecationWarning; } - public V1SelectableField buildSelectableField(int index) { - return this.selectableFields.get(index).build(); + public String getName() { + return this.name; } - public V1SelectableField buildFirstSelectableField() { - return this.selectableFields.get(0).build(); + public Boolean getServed() { + return this.served; } - public V1SelectableField buildLastSelectableField() { - return this.selectableFields.get(selectableFields.size() - 1).build(); + public Boolean getStorage() { + return this.storage; } - public V1SelectableField buildMatchingSelectableField(Predicate predicate) { - for (V1SelectableFieldBuilder item : selectableFields) { + public boolean hasAdditionalPrinterColumns() { + return this.additionalPrinterColumns != null && !(this.additionalPrinterColumns.isEmpty()); + } + + public boolean hasDeprecated() { + return this.deprecated != null; + } + + public boolean hasDeprecationWarning() { + return this.deprecationWarning != null; + } + + public boolean hasMatchingAdditionalPrinterColumn(Predicate predicate) { + for (V1CustomResourceColumnDefinitionBuilder item : additionalPrinterColumns) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingSelectableField(Predicate predicate) { @@ -467,195 +393,150 @@ public boolean hasMatchingSelectableField(Predicate pr return false; } - public A withSelectableFields(List selectableFields) { - if (this.selectableFields != null) { - this._visitables.get("selectableFields").clear(); - } - if (selectableFields != null) { - this.selectableFields = new ArrayList(); - for (V1SelectableField item : selectableFields) { - this.addToSelectableFields(item); - } - } else { - this.selectableFields = null; - } - return (A) this; + public boolean hasName() { + return this.name != null; } - public A withSelectableFields(V1SelectableField... selectableFields) { - if (this.selectableFields != null) { - this.selectableFields.clear(); - _visitables.remove("selectableFields"); - } - if (selectableFields != null) { - for (V1SelectableField item : selectableFields) { - this.addToSelectableFields(item); - } - } - return (A) this; + public boolean hasSchema() { + return this.schema != null; } public boolean hasSelectableFields() { return this.selectableFields != null && !(this.selectableFields.isEmpty()); } - public SelectableFieldsNested addNewSelectableField() { - return new SelectableFieldsNested(-1, null); + public boolean hasServed() { + return this.served != null; } - public SelectableFieldsNested addNewSelectableFieldLike(V1SelectableField item) { - return new SelectableFieldsNested(-1, item); + public boolean hasStorage() { + return this.storage != null; } - public SelectableFieldsNested setNewSelectableFieldLike(int index,V1SelectableField item) { - return new SelectableFieldsNested(index, item); + public boolean hasSubresources() { + return this.subresources != null; } - public SelectableFieldsNested editSelectableField(int index) { - if (index <= selectableFields.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectableFields")); - } - return this.setNewSelectableFieldLike(index, this.buildSelectableField(index)); + public int hashCode() { + return Objects.hash(additionalPrinterColumns, deprecated, deprecationWarning, name, schema, selectableFields, served, storage, subresources); } - public SelectableFieldsNested editFirstSelectableField() { - if (selectableFields.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectableFields")); + public A removeAllFromAdditionalPrinterColumns(Collection items) { + if (this.additionalPrinterColumns == null) { + return (A) this; } - return this.setNewSelectableFieldLike(0, this.buildSelectableField(0)); - } - - public SelectableFieldsNested editLastSelectableField() { - int index = selectableFields.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectableFields")); + for (V1CustomResourceColumnDefinition item : items) { + V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); + _visitables.get("additionalPrinterColumns").remove(builder); + this.additionalPrinterColumns.remove(builder); } - return this.setNewSelectableFieldLike(index, this.buildSelectableField(index)); + return (A) this; } - public SelectableFieldsNested editMatchingSelectableField(Predicate predicate) { - int index = -1; - for (int i = 0;i < selectableFields.size();i++) { - if (predicate.test(selectableFields.get(i))) { - index = i; - break; - } + public A removeAllFromSelectableFields(Collection items) { + if (this.selectableFields == null) { + return (A) this; } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectableFields")); + for (V1SelectableField item : items) { + V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); + _visitables.get("selectableFields").remove(builder); + this.selectableFields.remove(builder); } - return this.setNewSelectableFieldLike(index, this.buildSelectableField(index)); - } - - public Boolean getServed() { - return this.served; - } - - public A withServed(Boolean served) { - this.served = served; return (A) this; } - public boolean hasServed() { - return this.served != null; - } - - public Boolean getStorage() { - return this.storage; - } - - public A withStorage(Boolean storage) { - this.storage = storage; + public A removeFromAdditionalPrinterColumns(V1CustomResourceColumnDefinition... items) { + if (this.additionalPrinterColumns == null) { + return (A) this; + } + for (V1CustomResourceColumnDefinition item : items) { + V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); + _visitables.get("additionalPrinterColumns").remove(builder); + this.additionalPrinterColumns.remove(builder); + } return (A) this; } - public boolean hasStorage() { - return this.storage != null; - } - - public V1CustomResourceSubresources buildSubresources() { - return this.subresources != null ? this.subresources.build() : null; + public A removeFromSelectableFields(V1SelectableField... items) { + if (this.selectableFields == null) { + return (A) this; + } + for (V1SelectableField item : items) { + V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); + _visitables.get("selectableFields").remove(builder); + this.selectableFields.remove(builder); + } + return (A) this; } - public A withSubresources(V1CustomResourceSubresources subresources) { - this._visitables.remove("subresources"); - if (subresources != null) { - this.subresources = new V1CustomResourceSubresourcesBuilder(subresources); - this._visitables.get("subresources").add(this.subresources); - } else { - this.subresources = null; - this._visitables.get("subresources").remove(this.subresources); + public A removeMatchingFromAdditionalPrinterColumns(Predicate predicate) { + if (additionalPrinterColumns == null) { + return (A) this; + } + Iterator each = additionalPrinterColumns.iterator(); + List visitables = _visitables.get("additionalPrinterColumns"); + while (each.hasNext()) { + V1CustomResourceColumnDefinitionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasSubresources() { - return this.subresources != null; - } - - public SubresourcesNested withNewSubresources() { - return new SubresourcesNested(null); - } - - public SubresourcesNested withNewSubresourcesLike(V1CustomResourceSubresources item) { - return new SubresourcesNested(item); - } - - public SubresourcesNested editSubresources() { - return this.withNewSubresourcesLike(Optional.ofNullable(this.buildSubresources()).orElse(null)); + public A removeMatchingFromSelectableFields(Predicate predicate) { + if (selectableFields == null) { + return (A) this; + } + Iterator each = selectableFields.iterator(); + List visitables = _visitables.get("selectableFields"); + while (each.hasNext()) { + V1SelectableFieldBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public SubresourcesNested editOrNewSubresources() { - return this.withNewSubresourcesLike(Optional.ofNullable(this.buildSubresources()).orElse(new V1CustomResourceSubresourcesBuilder().build())); + public AdditionalPrinterColumnsNested setNewAdditionalPrinterColumnLike(int index,V1CustomResourceColumnDefinition item) { + return new AdditionalPrinterColumnsNested(index, item); } - public SubresourcesNested editOrNewSubresourcesLike(V1CustomResourceSubresources item) { - return this.withNewSubresourcesLike(Optional.ofNullable(this.buildSubresources()).orElse(item)); + public SelectableFieldsNested setNewSelectableFieldLike(int index,V1SelectableField item) { + return new SelectableFieldsNested(index, item); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1CustomResourceDefinitionVersionFluent that = (V1CustomResourceDefinitionVersionFluent) o; - if (!(Objects.equals(additionalPrinterColumns, that.additionalPrinterColumns))) { - return false; - } - if (!(Objects.equals(deprecated, that.deprecated))) { - return false; - } - if (!(Objects.equals(deprecationWarning, that.deprecationWarning))) { - return false; - } - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(schema, that.schema))) { - return false; - } - if (!(Objects.equals(selectableFields, that.selectableFields))) { - return false; - } - if (!(Objects.equals(served, that.served))) { - return false; - } - if (!(Objects.equals(storage, that.storage))) { - return false; + public A setToAdditionalPrinterColumns(int index,V1CustomResourceColumnDefinition item) { + if (this.additionalPrinterColumns == null) { + this.additionalPrinterColumns = new ArrayList(); } - if (!(Objects.equals(subresources, that.subresources))) { - return false; + V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); + if (index < 0 || index >= additionalPrinterColumns.size()) { + _visitables.get("additionalPrinterColumns").add(builder); + additionalPrinterColumns.add(builder); + } else { + _visitables.get("additionalPrinterColumns").add(builder); + additionalPrinterColumns.set(index, builder); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(additionalPrinterColumns, deprecated, deprecationWarning, name, schema, selectableFields, served, storage, subresources); + public A setToSelectableFields(int index,V1SelectableField item) { + if (this.selectableFields == null) { + this.selectableFields = new ArrayList(); + } + V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); + if (index < 0 || index >= selectableFields.size()) { + _visitables.get("selectableFields").add(builder); + selectableFields.add(builder); + } else { + _visitables.get("selectableFields").add(builder); + selectableFields.set(index, builder); + } + return (A) this; } public String toString() { @@ -709,25 +590,148 @@ public String toString() { return sb.toString(); } + public A withAdditionalPrinterColumns(List additionalPrinterColumns) { + if (this.additionalPrinterColumns != null) { + this._visitables.get("additionalPrinterColumns").clear(); + } + if (additionalPrinterColumns != null) { + this.additionalPrinterColumns = new ArrayList(); + for (V1CustomResourceColumnDefinition item : additionalPrinterColumns) { + this.addToAdditionalPrinterColumns(item); + } + } else { + this.additionalPrinterColumns = null; + } + return (A) this; + } + + public A withAdditionalPrinterColumns(V1CustomResourceColumnDefinition... additionalPrinterColumns) { + if (this.additionalPrinterColumns != null) { + this.additionalPrinterColumns.clear(); + _visitables.remove("additionalPrinterColumns"); + } + if (additionalPrinterColumns != null) { + for (V1CustomResourceColumnDefinition item : additionalPrinterColumns) { + this.addToAdditionalPrinterColumns(item); + } + } + return (A) this; + } + public A withDeprecated() { return withDeprecated(true); } + public A withDeprecated(Boolean deprecated) { + this.deprecated = deprecated; + return (A) this; + } + + public A withDeprecationWarning(String deprecationWarning) { + this.deprecationWarning = deprecationWarning; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public SchemaNested withNewSchema() { + return new SchemaNested(null); + } + + public SchemaNested withNewSchemaLike(V1CustomResourceValidation item) { + return new SchemaNested(item); + } + + public SubresourcesNested withNewSubresources() { + return new SubresourcesNested(null); + } + + public SubresourcesNested withNewSubresourcesLike(V1CustomResourceSubresources item) { + return new SubresourcesNested(item); + } + + public A withSchema(V1CustomResourceValidation schema) { + this._visitables.remove("schema"); + if (schema != null) { + this.schema = new V1CustomResourceValidationBuilder(schema); + this._visitables.get("schema").add(this.schema); + } else { + this.schema = null; + this._visitables.get("schema").remove(this.schema); + } + return (A) this; + } + + public A withSelectableFields(List selectableFields) { + if (this.selectableFields != null) { + this._visitables.get("selectableFields").clear(); + } + if (selectableFields != null) { + this.selectableFields = new ArrayList(); + for (V1SelectableField item : selectableFields) { + this.addToSelectableFields(item); + } + } else { + this.selectableFields = null; + } + return (A) this; + } + + public A withSelectableFields(V1SelectableField... selectableFields) { + if (this.selectableFields != null) { + this.selectableFields.clear(); + _visitables.remove("selectableFields"); + } + if (selectableFields != null) { + for (V1SelectableField item : selectableFields) { + this.addToSelectableFields(item); + } + } + return (A) this; + } + public A withServed() { return withServed(true); } + public A withServed(Boolean served) { + this.served = served; + return (A) this; + } + public A withStorage() { return withStorage(true); } + + public A withStorage(Boolean storage) { + this.storage = storage; + return (A) this; + } + + public A withSubresources(V1CustomResourceSubresources subresources) { + this._visitables.remove("subresources"); + if (subresources != null) { + this.subresources = new V1CustomResourceSubresourcesBuilder(subresources); + this._visitables.get("subresources").add(this.subresources); + } else { + this.subresources = null; + this._visitables.get("subresources").remove(this.subresources); + } + return (A) this; + } public class AdditionalPrinterColumnsNested extends V1CustomResourceColumnDefinitionFluent> implements Nested{ + + V1CustomResourceColumnDefinitionBuilder builder; + int index; + AdditionalPrinterColumnsNested(int index,V1CustomResourceColumnDefinition item) { this.index = index; this.builder = new V1CustomResourceColumnDefinitionBuilder(this, item); } - V1CustomResourceColumnDefinitionBuilder builder; - int index; - + public N and() { return (N) V1CustomResourceDefinitionVersionFluent.this.setToAdditionalPrinterColumns(index, builder.build()); } @@ -736,14 +740,15 @@ public N endAdditionalPrinterColumn() { return and(); } - } public class SchemaNested extends V1CustomResourceValidationFluent> implements Nested{ + + V1CustomResourceValidationBuilder builder; + SchemaNested(V1CustomResourceValidation item) { this.builder = new V1CustomResourceValidationBuilder(this, item); } - V1CustomResourceValidationBuilder builder; - + public N and() { return (N) V1CustomResourceDefinitionVersionFluent.this.withSchema(builder.build()); } @@ -752,16 +757,17 @@ public N endSchema() { return and(); } - } public class SelectableFieldsNested extends V1SelectableFieldFluent> implements Nested{ + + V1SelectableFieldBuilder builder; + int index; + SelectableFieldsNested(int index,V1SelectableField item) { this.index = index; this.builder = new V1SelectableFieldBuilder(this, item); } - V1SelectableFieldBuilder builder; - int index; - + public N and() { return (N) V1CustomResourceDefinitionVersionFluent.this.setToSelectableFields(index, builder.build()); } @@ -770,14 +776,15 @@ public N endSelectableField() { return and(); } - } public class SubresourcesNested extends V1CustomResourceSubresourcesFluent> implements Nested{ + + V1CustomResourceSubresourcesBuilder builder; + SubresourcesNested(V1CustomResourceSubresources item) { this.builder = new V1CustomResourceSubresourcesBuilder(this, item); } - V1CustomResourceSubresourcesBuilder builder; - + public N and() { return (N) V1CustomResourceDefinitionVersionFluent.this.withSubresources(builder.build()); } @@ -786,7 +793,5 @@ public N endSubresources() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java index faae397dff..b521d2bd7f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CustomResourceSubresourceScaleBuilder extends V1CustomResourceSubresourceScaleFluent implements VisitableBuilder{ + + V1CustomResourceSubresourceScaleFluent fluent; + public V1CustomResourceSubresourceScaleBuilder() { this(new V1CustomResourceSubresourceScale()); } @@ -11,17 +14,16 @@ public V1CustomResourceSubresourceScaleBuilder(V1CustomResourceSubresourceScaleF this(fluent, new V1CustomResourceSubresourceScale()); } - public V1CustomResourceSubresourceScaleBuilder(V1CustomResourceSubresourceScaleFluent fluent,V1CustomResourceSubresourceScale instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceSubresourceScaleBuilder(V1CustomResourceSubresourceScale instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceSubresourceScaleFluent fluent; + public V1CustomResourceSubresourceScaleBuilder(V1CustomResourceSubresourceScaleFluent fluent,V1CustomResourceSubresourceScale instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceSubresourceScale build() { V1CustomResourceSubresourceScale buildable = new V1CustomResourceSubresourceScale(); buildable.setLabelSelectorPath(fluent.getLabelSelectorPath()); @@ -30,5 +32,4 @@ public V1CustomResourceSubresourceScale build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java index 03c256c85a..c39848eabe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1CustomResourceSubresourceScaleFluent> extends BaseFluent{ + + private String labelSelectorPath; + private String specReplicasPath; + private String statusReplicasPath; + public V1CustomResourceSubresourceScaleFluent() { } public V1CustomResourceSubresourceScaleFluent(V1CustomResourceSubresourceScale instance) { this.copyInstance(instance); } - private String labelSelectorPath; - private String specReplicasPath; - private String statusReplicasPath; - + protected void copyInstance(V1CustomResourceSubresourceScale instance) { instance = instance != null ? instance : new V1CustomResourceSubresourceScale(); if (instance != null) { @@ -31,45 +33,6 @@ protected void copyInstance(V1CustomResourceSubresourceScale instance) { } } - public String getLabelSelectorPath() { - return this.labelSelectorPath; - } - - public A withLabelSelectorPath(String labelSelectorPath) { - this.labelSelectorPath = labelSelectorPath; - return (A) this; - } - - public boolean hasLabelSelectorPath() { - return this.labelSelectorPath != null; - } - - public String getSpecReplicasPath() { - return this.specReplicasPath; - } - - public A withSpecReplicasPath(String specReplicasPath) { - this.specReplicasPath = specReplicasPath; - return (A) this; - } - - public boolean hasSpecReplicasPath() { - return this.specReplicasPath != null; - } - - public String getStatusReplicasPath() { - return this.statusReplicasPath; - } - - public A withStatusReplicasPath(String statusReplicasPath) { - this.statusReplicasPath = statusReplicasPath; - return (A) this; - } - - public boolean hasStatusReplicasPath() { - return this.statusReplicasPath != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -93,6 +56,30 @@ public boolean equals(Object o) { return true; } + public String getLabelSelectorPath() { + return this.labelSelectorPath; + } + + public String getSpecReplicasPath() { + return this.specReplicasPath; + } + + public String getStatusReplicasPath() { + return this.statusReplicasPath; + } + + public boolean hasLabelSelectorPath() { + return this.labelSelectorPath != null; + } + + public boolean hasSpecReplicasPath() { + return this.specReplicasPath != null; + } + + public boolean hasStatusReplicasPath() { + return this.statusReplicasPath != null; + } + public int hashCode() { return Objects.hash(labelSelectorPath, specReplicasPath, statusReplicasPath); } @@ -118,5 +105,19 @@ public String toString() { return sb.toString(); } - + public A withLabelSelectorPath(String labelSelectorPath) { + this.labelSelectorPath = labelSelectorPath; + return (A) this; + } + + public A withSpecReplicasPath(String specReplicasPath) { + this.specReplicasPath = specReplicasPath; + return (A) this; + } + + public A withStatusReplicasPath(String statusReplicasPath) { + this.statusReplicasPath = statusReplicasPath; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java index eeddec1cd1..019e6cd75c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CustomResourceSubresourcesBuilder extends V1CustomResourceSubresourcesFluent implements VisitableBuilder{ + + V1CustomResourceSubresourcesFluent fluent; + public V1CustomResourceSubresourcesBuilder() { this(new V1CustomResourceSubresources()); } @@ -11,17 +14,16 @@ public V1CustomResourceSubresourcesBuilder(V1CustomResourceSubresourcesFluent this(fluent, new V1CustomResourceSubresources()); } - public V1CustomResourceSubresourcesBuilder(V1CustomResourceSubresourcesFluent fluent,V1CustomResourceSubresources instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceSubresourcesBuilder(V1CustomResourceSubresources instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceSubresourcesFluent fluent; + public V1CustomResourceSubresourcesBuilder(V1CustomResourceSubresourcesFluent fluent,V1CustomResourceSubresources instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceSubresources build() { V1CustomResourceSubresources buildable = new V1CustomResourceSubresources(); buildable.setScale(fluent.buildScale()); @@ -29,5 +31,4 @@ public V1CustomResourceSubresources build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java index 491e5515f7..8ac9ecbd5c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java @@ -1,27 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1CustomResourceSubresourcesFluent> extends BaseFluent{ + + private V1CustomResourceSubresourceScaleBuilder scale; + private Object status; + public V1CustomResourceSubresourcesFluent() { } public V1CustomResourceSubresourcesFluent(V1CustomResourceSubresources instance) { this.copyInstance(instance); } - private V1CustomResourceSubresourceScaleBuilder scale; - private Object status; + + public V1CustomResourceSubresourceScale buildScale() { + return this.scale != null ? this.scale.build() : null; + } protected void copyInstance(V1CustomResourceSubresources instance) { instance = instance != null ? instance : new V1CustomResourceSubresources(); @@ -31,38 +37,6 @@ protected void copyInstance(V1CustomResourceSubresources instance) { } } - public V1CustomResourceSubresourceScale buildScale() { - return this.scale != null ? this.scale.build() : null; - } - - public A withScale(V1CustomResourceSubresourceScale scale) { - this._visitables.remove("scale"); - if (scale != null) { - this.scale = new V1CustomResourceSubresourceScaleBuilder(scale); - this._visitables.get("scale").add(this.scale); - } else { - this.scale = null; - this._visitables.get("scale").remove(this.scale); - } - return (A) this; - } - - public boolean hasScale() { - return this.scale != null; - } - - public ScaleNested withNewScale() { - return new ScaleNested(null); - } - - public ScaleNested withNewScaleLike(V1CustomResourceSubresourceScale item) { - return new ScaleNested(item); - } - - public ScaleNested editScale() { - return this.withNewScaleLike(Optional.ofNullable(this.buildScale()).orElse(null)); - } - public ScaleNested editOrNewScale() { return this.withNewScaleLike(Optional.ofNullable(this.buildScale()).orElse(new V1CustomResourceSubresourceScaleBuilder().build())); } @@ -71,17 +45,8 @@ public ScaleNested editOrNewScaleLike(V1CustomResourceSubresourceScale item) return this.withNewScaleLike(Optional.ofNullable(this.buildScale()).orElse(item)); } - public Object getStatus() { - return this.status; - } - - public A withStatus(Object status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public ScaleNested editScale() { + return this.withNewScaleLike(Optional.ofNullable(this.buildScale()).orElse(null)); } public boolean equals(Object o) { @@ -104,6 +69,18 @@ public boolean equals(Object o) { return true; } + public Object getStatus() { + return this.status; + } + + public boolean hasScale() { + return this.scale != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(scale, status); } @@ -123,12 +100,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public ScaleNested withNewScale() { + return new ScaleNested(null); + } + + public ScaleNested withNewScaleLike(V1CustomResourceSubresourceScale item) { + return new ScaleNested(item); + } + + public A withScale(V1CustomResourceSubresourceScale scale) { + this._visitables.remove("scale"); + if (scale != null) { + this.scale = new V1CustomResourceSubresourceScaleBuilder(scale); + this._visitables.get("scale").add(this.scale); + } else { + this.scale = null; + this._visitables.get("scale").remove(this.scale); + } + return (A) this; + } + + public A withStatus(Object status) { + this.status = status; + return (A) this; + } public class ScaleNested extends V1CustomResourceSubresourceScaleFluent> implements Nested{ + + V1CustomResourceSubresourceScaleBuilder builder; + ScaleNested(V1CustomResourceSubresourceScale item) { this.builder = new V1CustomResourceSubresourceScaleBuilder(this, item); } - V1CustomResourceSubresourceScaleBuilder builder; - + public N and() { return (N) V1CustomResourceSubresourcesFluent.this.withScale(builder.build()); } @@ -137,7 +141,5 @@ public N endScale() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java index 185b570953..7f2275395e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1CustomResourceValidationBuilder extends V1CustomResourceValidationFluent implements VisitableBuilder{ + + V1CustomResourceValidationFluent fluent; + public V1CustomResourceValidationBuilder() { this(new V1CustomResourceValidation()); } @@ -11,22 +14,20 @@ public V1CustomResourceValidationBuilder(V1CustomResourceValidationFluent flu this(fluent, new V1CustomResourceValidation()); } - public V1CustomResourceValidationBuilder(V1CustomResourceValidationFluent fluent,V1CustomResourceValidation instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceValidationBuilder(V1CustomResourceValidation instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceValidationFluent fluent; + public V1CustomResourceValidationBuilder(V1CustomResourceValidationFluent fluent,V1CustomResourceValidation instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceValidation build() { V1CustomResourceValidation buildable = new V1CustomResourceValidation(); buildable.setOpenAPIV3Schema(fluent.buildOpenAPIV3Schema()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java index 7efe75475f..7e23a22265 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1CustomResourceValidationFluent> extends BaseFluent{ + + private V1JSONSchemaPropsBuilder openAPIV3Schema; + public V1CustomResourceValidationFluent() { } public V1CustomResourceValidationFluent(V1CustomResourceValidation instance) { this.copyInstance(instance); } - private V1JSONSchemaPropsBuilder openAPIV3Schema; + + public V1JSONSchemaProps buildOpenAPIV3Schema() { + return this.openAPIV3Schema != null ? this.openAPIV3Schema.build() : null; + } protected void copyInstance(V1CustomResourceValidation instance) { instance = instance != null ? instance : new V1CustomResourceValidation(); @@ -29,34 +35,6 @@ protected void copyInstance(V1CustomResourceValidation instance) { } } - public V1JSONSchemaProps buildOpenAPIV3Schema() { - return this.openAPIV3Schema != null ? this.openAPIV3Schema.build() : null; - } - - public A withOpenAPIV3Schema(V1JSONSchemaProps openAPIV3Schema) { - this._visitables.remove("openAPIV3Schema"); - if (openAPIV3Schema != null) { - this.openAPIV3Schema = new V1JSONSchemaPropsBuilder(openAPIV3Schema); - this._visitables.get("openAPIV3Schema").add(this.openAPIV3Schema); - } else { - this.openAPIV3Schema = null; - this._visitables.get("openAPIV3Schema").remove(this.openAPIV3Schema); - } - return (A) this; - } - - public boolean hasOpenAPIV3Schema() { - return this.openAPIV3Schema != null; - } - - public OpenAPIV3SchemaNested withNewOpenAPIV3Schema() { - return new OpenAPIV3SchemaNested(null); - } - - public OpenAPIV3SchemaNested withNewOpenAPIV3SchemaLike(V1JSONSchemaProps item) { - return new OpenAPIV3SchemaNested(item); - } - public OpenAPIV3SchemaNested editOpenAPIV3Schema() { return this.withNewOpenAPIV3SchemaLike(Optional.ofNullable(this.buildOpenAPIV3Schema()).orElse(null)); } @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasOpenAPIV3Schema() { + return this.openAPIV3Schema != null; + } + public int hashCode() { return Objects.hash(openAPIV3Schema); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public OpenAPIV3SchemaNested withNewOpenAPIV3Schema() { + return new OpenAPIV3SchemaNested(null); + } + + public OpenAPIV3SchemaNested withNewOpenAPIV3SchemaLike(V1JSONSchemaProps item) { + return new OpenAPIV3SchemaNested(item); + } + + public A withOpenAPIV3Schema(V1JSONSchemaProps openAPIV3Schema) { + this._visitables.remove("openAPIV3Schema"); + if (openAPIV3Schema != null) { + this.openAPIV3Schema = new V1JSONSchemaPropsBuilder(openAPIV3Schema); + this._visitables.get("openAPIV3Schema").add(this.openAPIV3Schema); + } else { + this.openAPIV3Schema = null; + this._visitables.get("openAPIV3Schema").remove(this.openAPIV3Schema); + } + return (A) this; + } public class OpenAPIV3SchemaNested extends V1JSONSchemaPropsFluent> implements Nested{ + + V1JSONSchemaPropsBuilder builder; + OpenAPIV3SchemaNested(V1JSONSchemaProps item) { this.builder = new V1JSONSchemaPropsBuilder(this, item); } - V1JSONSchemaPropsBuilder builder; - + public N and() { return (N) V1CustomResourceValidationFluent.this.withOpenAPIV3Schema(builder.build()); } @@ -114,7 +118,5 @@ public N endOpenAPIV3Schema() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java index f4dfa66ea2..86816175d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DaemonEndpointBuilder extends V1DaemonEndpointFluent implements VisitableBuilder{ + + V1DaemonEndpointFluent fluent; + public V1DaemonEndpointBuilder() { this(new V1DaemonEndpoint()); } @@ -11,22 +14,20 @@ public V1DaemonEndpointBuilder(V1DaemonEndpointFluent fluent) { this(fluent, new V1DaemonEndpoint()); } - public V1DaemonEndpointBuilder(V1DaemonEndpointFluent fluent,V1DaemonEndpoint instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DaemonEndpointBuilder(V1DaemonEndpoint instance) { this.fluent = this; this.copyInstance(instance); } - V1DaemonEndpointFluent fluent; + public V1DaemonEndpointBuilder(V1DaemonEndpointFluent fluent,V1DaemonEndpoint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DaemonEndpoint build() { V1DaemonEndpoint buildable = new V1DaemonEndpoint(); buildable.setPort(fluent.getPort()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java index d28aef6af1..d3ee2ba289 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1DaemonEndpointFluent> extends BaseFluent{ + + private Integer port; + public V1DaemonEndpointFluent() { } public V1DaemonEndpointFluent(V1DaemonEndpoint instance) { this.copyInstance(instance); } - private Integer port; - + protected void copyInstance(V1DaemonEndpoint instance) { instance = instance != null ? instance : new V1DaemonEndpoint(); if (instance != null) { @@ -28,19 +30,6 @@ protected void copyInstance(V1DaemonEndpoint instance) { } } - public Integer getPort() { - return this.port; - } - - public A withPort(Integer port) { - this.port = port; - return (A) this; - } - - public boolean hasPort() { - return this.port != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -58,6 +47,14 @@ public boolean equals(Object o) { return true; } + public Integer getPort() { + return this.port; + } + + public boolean hasPort() { + return this.port != null; + } + public int hashCode() { return Objects.hash(port); } @@ -73,5 +70,9 @@ public String toString() { return sb.toString(); } - + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java index 81100fffde..e93e57150d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DaemonSetBuilder extends V1DaemonSetFluent implements VisitableBuilder{ + + V1DaemonSetFluent fluent; + public V1DaemonSetBuilder() { this(new V1DaemonSet()); } @@ -11,17 +14,16 @@ public V1DaemonSetBuilder(V1DaemonSetFluent fluent) { this(fluent, new V1DaemonSet()); } - public V1DaemonSetBuilder(V1DaemonSetFluent fluent,V1DaemonSet instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DaemonSetBuilder(V1DaemonSet instance) { this.fluent = this; this.copyInstance(instance); } - V1DaemonSetFluent fluent; + public V1DaemonSetBuilder(V1DaemonSetFluent fluent,V1DaemonSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DaemonSet build() { V1DaemonSet buildable = new V1DaemonSet(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1DaemonSet build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java index 9af3a5ca65..de4dc384e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DaemonSetConditionBuilder extends V1DaemonSetConditionFluent implements VisitableBuilder{ + + V1DaemonSetConditionFluent fluent; + public V1DaemonSetConditionBuilder() { this(new V1DaemonSetCondition()); } @@ -11,17 +14,16 @@ public V1DaemonSetConditionBuilder(V1DaemonSetConditionFluent fluent) { this(fluent, new V1DaemonSetCondition()); } - public V1DaemonSetConditionBuilder(V1DaemonSetConditionFluent fluent,V1DaemonSetCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DaemonSetConditionBuilder(V1DaemonSetCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1DaemonSetConditionFluent fluent; + public V1DaemonSetConditionBuilder(V1DaemonSetConditionFluent fluent,V1DaemonSetCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DaemonSetCondition build() { V1DaemonSetCondition buildable = new V1DaemonSetCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -32,5 +34,4 @@ public V1DaemonSetCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java index 9d55361373..791e7e5d02 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1DaemonSetConditionFluent> extends BaseFluent{ - public V1DaemonSetConditionFluent() { - } - - public V1DaemonSetConditionFluent(V1DaemonSetCondition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1DaemonSetConditionFluent() { + } + public V1DaemonSetConditionFluent(V1DaemonSetCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1DaemonSetCondition instance) { instance = instance != null ? instance : new V1DaemonSetCondition(); if (instance != null) { @@ -36,71 +38,6 @@ protected void copyInstance(V1DaemonSetCondition instance) { } } - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -130,6 +67,46 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; + } + + public String getMessage() { + return this.message; + } + + public String getReason() { + return this.reason; + } + + public String getStatus() { + return this.status; + } + + public String getType() { + return this.type; + } + + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasReason() { + return this.reason != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } @@ -165,5 +142,29 @@ public String toString() { return sb.toString(); } - + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java index dbde410f9d..df6b53ac94 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1DaemonSetFluent> extends BaseFluent{ - public V1DaemonSetFluent() { - } - - public V1DaemonSetFluent(V1DaemonSet instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1DaemonSetSpecBuilder spec; private V1DaemonSetStatusBuilder status; - - protected void copyInstance(V1DaemonSet instance) { - instance = instance != null ? instance : new V1DaemonSet(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1DaemonSetFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1DaemonSetFluent(V1DaemonSet instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1DaemonSetSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1DaemonSetStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1DaemonSet instance) { + instance = instance != null ? instance : new V1DaemonSet(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1DaemonSetSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1DaemonSetSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1DaemonSetSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1DaemonSetSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1DaemonSetSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1DaemonSetSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1DaemonSetStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1DaemonSetStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1DaemonSetStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1DaemonSetStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1DaemonSetStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1DaemonSetStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1DaemonSetStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1DaemonSetStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1DaemonSetSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1DaemonSetStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1DaemonSetSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1DaemonSetSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1DaemonSetStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1DaemonSetStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1DaemonSetFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1DaemonSetSpecFluent> implements Nested{ + + V1DaemonSetSpecBuilder builder; + SpecNested(V1DaemonSetSpec item) { this.builder = new V1DaemonSetSpecBuilder(this, item); } - V1DaemonSetSpecBuilder builder; - + public N and() { return (N) V1DaemonSetFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1DaemonSetStatusFluent> implements Nested{ + + V1DaemonSetStatusBuilder builder; + StatusNested(V1DaemonSetStatus item) { this.builder = new V1DaemonSetStatusBuilder(this, item); } - V1DaemonSetStatusBuilder builder; - + public N and() { return (N) V1DaemonSetFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java index cabb8bce83..10a72258e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DaemonSetListBuilder extends V1DaemonSetListFluent implements VisitableBuilder{ + + V1DaemonSetListFluent fluent; + public V1DaemonSetListBuilder() { this(new V1DaemonSetList()); } @@ -11,17 +14,16 @@ public V1DaemonSetListBuilder(V1DaemonSetListFluent fluent) { this(fluent, new V1DaemonSetList()); } - public V1DaemonSetListBuilder(V1DaemonSetListFluent fluent,V1DaemonSetList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DaemonSetListBuilder(V1DaemonSetList instance) { this.fluent = this; this.copyInstance(instance); } - V1DaemonSetListFluent fluent; + public V1DaemonSetListBuilder(V1DaemonSetListFluent fluent,V1DaemonSetList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DaemonSetList build() { V1DaemonSetList buildable = new V1DaemonSetList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1DaemonSetList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java index 58e12487dc..3d71a306dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1DaemonSetListFluent> extends BaseFluent{ - public V1DaemonSetListFluent() { - } - - public V1DaemonSetListFluent(V1DaemonSetList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1DaemonSetList instance) { - instance = instance != null ? instance : new V1DaemonSetList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1DaemonSetListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1DaemonSetListFluent(V1DaemonSetList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1DaemonSet item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1DaemonSet item : items) { + V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1DaemonSet item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1DaemonSet item) { + return new ItemsNested(-1, item); } public A addToItems(V1DaemonSet... items) { @@ -96,68 +65,31 @@ public A addToItems(V1DaemonSet... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1DaemonSet item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1DaemonSet item : items) { - V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); + V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1DaemonSet... items) { - if (this.items == null) { - return (A) this; - } - for (V1DaemonSet item : items) { - V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1DaemonSet item : items) { - V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1DaemonSetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1DaemonSet buildFirstItem() { + return this.items.get(0).build(); } public V1DaemonSet buildItem(int index) { return this.items.get(index).build(); } - public V1DaemonSet buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1DaemonSet buildLastItem() { @@ -173,73 +105,34 @@ public V1DaemonSet buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1DaemonSetBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1DaemonSet item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1DaemonSetList instance) { + instance = instance != null ? instance : new V1DaemonSetList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1DaemonSet... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1DaemonSet item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1DaemonSet item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1DaemonSet item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1DaemonSetBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1DaemonSet item : items) { + V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1DaemonSet... items) { + if (this.items == null) { + return (A) this; + } + for (V1DaemonSet item : items) { + V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1DaemonSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1DaemonSet item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1DaemonSet item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1DaemonSet item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1DaemonSet... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1DaemonSet item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1DaemonSetFluent> implements Nested{ + + V1DaemonSetBuilder builder; + int index; + ItemsNested(int index,V1DaemonSet item) { this.index = index; this.builder = new V1DaemonSetBuilder(this, item); } - V1DaemonSetBuilder builder; - int index; - + public N and() { return (N) V1DaemonSetListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1DaemonSetListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java index cd13759a35..a7de42c4c3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DaemonSetSpecBuilder extends V1DaemonSetSpecFluent implements VisitableBuilder{ + + V1DaemonSetSpecFluent fluent; + public V1DaemonSetSpecBuilder() { this(new V1DaemonSetSpec()); } @@ -11,17 +14,16 @@ public V1DaemonSetSpecBuilder(V1DaemonSetSpecFluent fluent) { this(fluent, new V1DaemonSetSpec()); } - public V1DaemonSetSpecBuilder(V1DaemonSetSpecFluent fluent,V1DaemonSetSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DaemonSetSpecBuilder(V1DaemonSetSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1DaemonSetSpecFluent fluent; + public V1DaemonSetSpecBuilder(V1DaemonSetSpecFluent fluent,V1DaemonSetSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DaemonSetSpec build() { V1DaemonSetSpec buildable = new V1DaemonSetSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); @@ -32,5 +34,4 @@ public V1DaemonSetSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java index ca856a5865..47097c1bd5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java @@ -1,99 +1,55 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import io.kubernetes.client.fluent.Nested; import java.lang.Integer; -import java.util.Objects; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1DaemonSetSpecFluent> extends BaseFluent{ - public V1DaemonSetSpecFluent() { - } - - public V1DaemonSetSpecFluent(V1DaemonSetSpec instance) { - this.copyInstance(instance); - } + private Integer minReadySeconds; private Integer revisionHistoryLimit; private V1LabelSelectorBuilder selector; private V1PodTemplateSpecBuilder template; private V1DaemonSetUpdateStrategyBuilder updateStrategy; - - protected void copyInstance(V1DaemonSetSpec instance) { - instance = instance != null ? instance : new V1DaemonSetSpec(); - if (instance != null) { - this.withMinReadySeconds(instance.getMinReadySeconds()); - this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); - this.withSelector(instance.getSelector()); - this.withTemplate(instance.getTemplate()); - this.withUpdateStrategy(instance.getUpdateStrategy()); - } - } - - public Integer getMinReadySeconds() { - return this.minReadySeconds; - } - - public A withMinReadySeconds(Integer minReadySeconds) { - this.minReadySeconds = minReadySeconds; - return (A) this; - } - - public boolean hasMinReadySeconds() { - return this.minReadySeconds != null; - } - - public Integer getRevisionHistoryLimit() { - return this.revisionHistoryLimit; - } - - public A withRevisionHistoryLimit(Integer revisionHistoryLimit) { - this.revisionHistoryLimit = revisionHistoryLimit; - return (A) this; + + public V1DaemonSetSpecFluent() { } - public boolean hasRevisionHistoryLimit() { - return this.revisionHistoryLimit != null; + public V1DaemonSetSpecFluent(V1DaemonSetSpec instance) { + this.copyInstance(instance); } - + public V1LabelSelector buildSelector() { return this.selector != null ? this.selector.build() : null; } - public A withSelector(V1LabelSelector selector) { - this._visitables.remove("selector"); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - this._visitables.get("selector").add(this.selector); - } else { - this.selector = null; - this._visitables.get("selector").remove(this.selector); - } - return (A) this; - } - - public boolean hasSelector() { - return this.selector != null; - } - - public SelectorNested withNewSelector() { - return new SelectorNested(null); + public V1PodTemplateSpec buildTemplate() { + return this.template != null ? this.template.build() : null; } - public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); + public V1DaemonSetUpdateStrategy buildUpdateStrategy() { + return this.updateStrategy != null ? this.updateStrategy.build() : null; } - public SelectorNested editSelector() { - return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); + protected void copyInstance(V1DaemonSetSpec instance) { + instance = instance != null ? instance : new V1DaemonSetSpec(); + if (instance != null) { + this.withMinReadySeconds(instance.getMinReadySeconds()); + this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); + this.withSelector(instance.getSelector()); + this.withTemplate(instance.getTemplate()); + this.withUpdateStrategy(instance.getUpdateStrategy()); + } } public SelectorNested editOrNewSelector() { @@ -104,38 +60,6 @@ public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; - } - - public A withTemplate(V1PodTemplateSpec template) { - this._visitables.remove("template"); - if (template != null) { - this.template = new V1PodTemplateSpecBuilder(template); - this._visitables.get("template").add(this.template); - } else { - this.template = null; - this._visitables.get("template").remove(this.template); - } - return (A) this; - } - - public boolean hasTemplate() { - return this.template != null; - } - - public TemplateNested withNewTemplate() { - return new TemplateNested(null); - } - - public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); - } - - public TemplateNested editTemplate() { - return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); - } - public TemplateNested editOrNewTemplate() { return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); } @@ -144,46 +68,26 @@ public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); } - public V1DaemonSetUpdateStrategy buildUpdateStrategy() { - return this.updateStrategy != null ? this.updateStrategy.build() : null; - } - - public A withUpdateStrategy(V1DaemonSetUpdateStrategy updateStrategy) { - this._visitables.remove("updateStrategy"); - if (updateStrategy != null) { - this.updateStrategy = new V1DaemonSetUpdateStrategyBuilder(updateStrategy); - this._visitables.get("updateStrategy").add(this.updateStrategy); - } else { - this.updateStrategy = null; - this._visitables.get("updateStrategy").remove(this.updateStrategy); - } - return (A) this; + public UpdateStrategyNested editOrNewUpdateStrategy() { + return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(new V1DaemonSetUpdateStrategyBuilder().build())); } - public boolean hasUpdateStrategy() { - return this.updateStrategy != null; + public UpdateStrategyNested editOrNewUpdateStrategyLike(V1DaemonSetUpdateStrategy item) { + return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(item)); } - public UpdateStrategyNested withNewUpdateStrategy() { - return new UpdateStrategyNested(null); + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } - public UpdateStrategyNested withNewUpdateStrategyLike(V1DaemonSetUpdateStrategy item) { - return new UpdateStrategyNested(item); + public TemplateNested editTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); } public UpdateStrategyNested editUpdateStrategy() { return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(null)); } - public UpdateStrategyNested editOrNewUpdateStrategy() { - return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(new V1DaemonSetUpdateStrategyBuilder().build())); - } - - public UpdateStrategyNested editOrNewUpdateStrategyLike(V1DaemonSetUpdateStrategy item) { - return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -213,6 +117,34 @@ public boolean equals(Object o) { return true; } + public Integer getMinReadySeconds() { + return this.minReadySeconds; + } + + public Integer getRevisionHistoryLimit() { + return this.revisionHistoryLimit; + } + + public boolean hasMinReadySeconds() { + return this.minReadySeconds != null; + } + + public boolean hasRevisionHistoryLimit() { + return this.revisionHistoryLimit != null; + } + + public boolean hasSelector() { + return this.selector != null; + } + + public boolean hasTemplate() { + return this.template != null; + } + + public boolean hasUpdateStrategy() { + return this.updateStrategy != null; + } + public int hashCode() { return Objects.hash(minReadySeconds, revisionHistoryLimit, selector, template, updateStrategy); } @@ -247,12 +179,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMinReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; + return (A) this; + } + + public SelectorNested withNewSelector() { + return new SelectorNested(null); + } + + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); + } + + public TemplateNested withNewTemplate() { + return new TemplateNested(null); + } + + public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { + return new TemplateNested(item); + } + + public UpdateStrategyNested withNewUpdateStrategy() { + return new UpdateStrategyNested(null); + } + + public UpdateStrategyNested withNewUpdateStrategyLike(V1DaemonSetUpdateStrategy item) { + return new UpdateStrategyNested(item); + } + + public A withRevisionHistoryLimit(Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; + return (A) this; + } + + public A withSelector(V1LabelSelector selector) { + this._visitables.remove("selector"); + if (selector != null) { + this.selector = new V1LabelSelectorBuilder(selector); + this._visitables.get("selector").add(this.selector); + } else { + this.selector = null; + this._visitables.get("selector").remove(this.selector); + } + return (A) this; + } + + public A withTemplate(V1PodTemplateSpec template) { + this._visitables.remove("template"); + if (template != null) { + this.template = new V1PodTemplateSpecBuilder(template); + this._visitables.get("template").add(this.template); + } else { + this.template = null; + this._visitables.get("template").remove(this.template); + } + return (A) this; + } + + public A withUpdateStrategy(V1DaemonSetUpdateStrategy updateStrategy) { + this._visitables.remove("updateStrategy"); + if (updateStrategy != null) { + this.updateStrategy = new V1DaemonSetUpdateStrategyBuilder(updateStrategy); + this._visitables.get("updateStrategy").add(this.updateStrategy); + } else { + this.updateStrategy = null; + this._visitables.get("updateStrategy").remove(this.updateStrategy); + } + return (A) this; + } public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + SelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1DaemonSetSpecFluent.this.withSelector(builder.build()); } @@ -261,14 +265,15 @@ public N endSelector() { return and(); } - } public class TemplateNested extends V1PodTemplateSpecFluent> implements Nested{ + + V1PodTemplateSpecBuilder builder; + TemplateNested(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - V1PodTemplateSpecBuilder builder; - + public N and() { return (N) V1DaemonSetSpecFluent.this.withTemplate(builder.build()); } @@ -277,14 +282,15 @@ public N endTemplate() { return and(); } - } public class UpdateStrategyNested extends V1DaemonSetUpdateStrategyFluent> implements Nested{ + + V1DaemonSetUpdateStrategyBuilder builder; + UpdateStrategyNested(V1DaemonSetUpdateStrategy item) { this.builder = new V1DaemonSetUpdateStrategyBuilder(this, item); } - V1DaemonSetUpdateStrategyBuilder builder; - + public N and() { return (N) V1DaemonSetSpecFluent.this.withUpdateStrategy(builder.build()); } @@ -293,7 +299,5 @@ public N endUpdateStrategy() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java index dbbe7cd06d..8245af3d7d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DaemonSetStatusBuilder extends V1DaemonSetStatusFluent implements VisitableBuilder{ + + V1DaemonSetStatusFluent fluent; + public V1DaemonSetStatusBuilder() { this(new V1DaemonSetStatus()); } @@ -11,17 +14,16 @@ public V1DaemonSetStatusBuilder(V1DaemonSetStatusFluent fluent) { this(fluent, new V1DaemonSetStatus()); } - public V1DaemonSetStatusBuilder(V1DaemonSetStatusFluent fluent,V1DaemonSetStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DaemonSetStatusBuilder(V1DaemonSetStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1DaemonSetStatusFluent fluent; + public V1DaemonSetStatusBuilder(V1DaemonSetStatusFluent fluent,V1DaemonSetStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DaemonSetStatus build() { V1DaemonSetStatus buildable = new V1DaemonSetStatus(); buildable.setCollisionCount(fluent.getCollisionCount()); @@ -37,5 +39,4 @@ public V1DaemonSetStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java index 7ef93f0f81..2bff459aea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Integer; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Iterator; -import java.util.Objects; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1DaemonSetStatusFluent> extends BaseFluent{ - public V1DaemonSetStatusFluent() { - } - - public V1DaemonSetStatusFluent(V1DaemonSetStatus instance) { - this.copyInstance(instance); - } + private Integer collisionCount; private ArrayList conditions; private Integer currentNumberScheduled; @@ -37,64 +32,32 @@ public V1DaemonSetStatusFluent(V1DaemonSetStatus instance) { private Integer numberUnavailable; private Long observedGeneration; private Integer updatedNumberScheduled; - - protected void copyInstance(V1DaemonSetStatus instance) { - instance = instance != null ? instance : new V1DaemonSetStatus(); - if (instance != null) { - this.withCollisionCount(instance.getCollisionCount()); - this.withConditions(instance.getConditions()); - this.withCurrentNumberScheduled(instance.getCurrentNumberScheduled()); - this.withDesiredNumberScheduled(instance.getDesiredNumberScheduled()); - this.withNumberAvailable(instance.getNumberAvailable()); - this.withNumberMisscheduled(instance.getNumberMisscheduled()); - this.withNumberReady(instance.getNumberReady()); - this.withNumberUnavailable(instance.getNumberUnavailable()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withUpdatedNumberScheduled(instance.getUpdatedNumberScheduled()); - } - } - - public Integer getCollisionCount() { - return this.collisionCount; - } - - public A withCollisionCount(Integer collisionCount) { - this.collisionCount = collisionCount; - return (A) this; + + public V1DaemonSetStatusFluent() { } - public boolean hasCollisionCount() { - return this.collisionCount != null; + public V1DaemonSetStatusFluent(V1DaemonSetStatus instance) { + this.copyInstance(instance); } - - public A addToConditions(int index,V1DaemonSetCondition item) { + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1DaemonSetCondition item : items) { + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1DaemonSetCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1DaemonSetCondition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1DaemonSetCondition... items) { @@ -109,66 +72,29 @@ public A addToConditions(V1DaemonSetCondition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1DaemonSetCondition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1DaemonSetCondition item : items) { - V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1DaemonSetCondition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1DaemonSetCondition item : items) { - V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1DaemonSetCondition item : items) { - V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1DaemonSetConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1DaemonSetCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1DaemonSetCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1DaemonSetCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -186,197 +112,56 @@ public V1DaemonSetCondition buildMatchingCondition(Predicate predicate) { - for (V1DaemonSetConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1DaemonSetCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(V1DaemonSetCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1DaemonSetCondition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1DaemonSetStatus instance) { + instance = instance != null ? instance : new V1DaemonSetStatus(); + if (instance != null) { + this.withCollisionCount(instance.getCollisionCount()); + this.withConditions(instance.getConditions()); + this.withCurrentNumberScheduled(instance.getCurrentNumberScheduled()); + this.withDesiredNumberScheduled(instance.getDesiredNumberScheduled()); + this.withNumberAvailable(instance.getNumberAvailable()); + this.withNumberMisscheduled(instance.getNumberMisscheduled()); + this.withNumberReady(instance.getNumberReady()); + this.withNumberUnavailable(instance.getNumberUnavailable()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withUpdatedNumberScheduled(instance.getUpdatedNumberScheduled()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1DaemonSetCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1DaemonSetCondition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); } - - public ConditionsNested editFirstCondition() { - if (conditions.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); - } - return this.setNewConditionLike(0, this.buildCondition(0)); - } - - public ConditionsNested editLastCondition() { - int index = conditions.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); - } - return this.setNewConditionLike(index, this.buildCondition(index)); - } - - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i = 0;i < conditions.size();i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); - } - return this.setNewConditionLike(index, this.buildCondition(index)); - } - - public Integer getCurrentNumberScheduled() { - return this.currentNumberScheduled; - } - - public A withCurrentNumberScheduled(Integer currentNumberScheduled) { - this.currentNumberScheduled = currentNumberScheduled; - return (A) this; - } - - public boolean hasCurrentNumberScheduled() { - return this.currentNumberScheduled != null; - } - - public Integer getDesiredNumberScheduled() { - return this.desiredNumberScheduled; - } - - public A withDesiredNumberScheduled(Integer desiredNumberScheduled) { - this.desiredNumberScheduled = desiredNumberScheduled; - return (A) this; - } - - public boolean hasDesiredNumberScheduled() { - return this.desiredNumberScheduled != null; - } - - public Integer getNumberAvailable() { - return this.numberAvailable; - } - - public A withNumberAvailable(Integer numberAvailable) { - this.numberAvailable = numberAvailable; - return (A) this; - } - - public boolean hasNumberAvailable() { - return this.numberAvailable != null; - } - - public Integer getNumberMisscheduled() { - return this.numberMisscheduled; - } - - public A withNumberMisscheduled(Integer numberMisscheduled) { - this.numberMisscheduled = numberMisscheduled; - return (A) this; - } - - public boolean hasNumberMisscheduled() { - return this.numberMisscheduled != null; - } - - public Integer getNumberReady() { - return this.numberReady; - } - - public A withNumberReady(Integer numberReady) { - this.numberReady = numberReady; - return (A) this; - } - - public boolean hasNumberReady() { - return this.numberReady != null; - } - - public Integer getNumberUnavailable() { - return this.numberUnavailable; - } - - public A withNumberUnavailable(Integer numberUnavailable) { - this.numberUnavailable = numberUnavailable; - return (A) this; - } - - public boolean hasNumberUnavailable() { - return this.numberUnavailable != null; - } - - public Long getObservedGeneration() { - return this.observedGeneration; - } - - public A withObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - return (A) this; - } - - public boolean hasObservedGeneration() { - return this.observedGeneration != null; - } - - public Integer getUpdatedNumberScheduled() { - return this.updatedNumberScheduled; + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); } - public A withUpdatedNumberScheduled(Integer updatedNumberScheduled) { - this.updatedNumberScheduled = updatedNumberScheduled; - return (A) this; + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public boolean hasUpdatedNumberScheduled() { - return this.updatedNumberScheduled != null; + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } public boolean equals(Object o) { @@ -423,10 +208,154 @@ public boolean equals(Object o) { return true; } + public Integer getCollisionCount() { + return this.collisionCount; + } + + public Integer getCurrentNumberScheduled() { + return this.currentNumberScheduled; + } + + public Integer getDesiredNumberScheduled() { + return this.desiredNumberScheduled; + } + + public Integer getNumberAvailable() { + return this.numberAvailable; + } + + public Integer getNumberMisscheduled() { + return this.numberMisscheduled; + } + + public Integer getNumberReady() { + return this.numberReady; + } + + public Integer getNumberUnavailable() { + return this.numberUnavailable; + } + + public Long getObservedGeneration() { + return this.observedGeneration; + } + + public Integer getUpdatedNumberScheduled() { + return this.updatedNumberScheduled; + } + + public boolean hasCollisionCount() { + return this.collisionCount != null; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasCurrentNumberScheduled() { + return this.currentNumberScheduled != null; + } + + public boolean hasDesiredNumberScheduled() { + return this.desiredNumberScheduled != null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1DaemonSetConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNumberAvailable() { + return this.numberAvailable != null; + } + + public boolean hasNumberMisscheduled() { + return this.numberMisscheduled != null; + } + + public boolean hasNumberReady() { + return this.numberReady != null; + } + + public boolean hasNumberUnavailable() { + return this.numberUnavailable != null; + } + + public boolean hasObservedGeneration() { + return this.observedGeneration != null; + } + + public boolean hasUpdatedNumberScheduled() { + return this.updatedNumberScheduled != null; + } + public int hashCode() { return Objects.hash(collisionCount, conditions, currentNumberScheduled, desiredNumberScheduled, numberAvailable, numberMisscheduled, numberReady, numberUnavailable, observedGeneration, updatedNumberScheduled); } + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1DaemonSetCondition item : items) { + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1DaemonSetCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1DaemonSetCondition item : items) { + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1DaemonSetConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1DaemonSetCondition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1DaemonSetCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -482,14 +411,89 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withCollisionCount(Integer collisionCount) { + this.collisionCount = collisionCount; + return (A) this; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1DaemonSetCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1DaemonSetCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1DaemonSetCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withCurrentNumberScheduled(Integer currentNumberScheduled) { + this.currentNumberScheduled = currentNumberScheduled; + return (A) this; + } + + public A withDesiredNumberScheduled(Integer desiredNumberScheduled) { + this.desiredNumberScheduled = desiredNumberScheduled; + return (A) this; + } + + public A withNumberAvailable(Integer numberAvailable) { + this.numberAvailable = numberAvailable; + return (A) this; + } + + public A withNumberMisscheduled(Integer numberMisscheduled) { + this.numberMisscheduled = numberMisscheduled; + return (A) this; + } + + public A withNumberReady(Integer numberReady) { + this.numberReady = numberReady; + return (A) this; + } + + public A withNumberUnavailable(Integer numberUnavailable) { + this.numberUnavailable = numberUnavailable; + return (A) this; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public A withUpdatedNumberScheduled(Integer updatedNumberScheduled) { + this.updatedNumberScheduled = updatedNumberScheduled; + return (A) this; + } public class ConditionsNested extends V1DaemonSetConditionFluent> implements Nested{ + + V1DaemonSetConditionBuilder builder; + int index; + ConditionsNested(int index,V1DaemonSetCondition item) { this.index = index; this.builder = new V1DaemonSetConditionBuilder(this, item); } - V1DaemonSetConditionBuilder builder; - int index; - + public N and() { return (N) V1DaemonSetStatusFluent.this.setToConditions(index, builder.build()); } @@ -498,7 +502,5 @@ public N endCondition() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java index a9b7351346..37a5d737ba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DaemonSetUpdateStrategyBuilder extends V1DaemonSetUpdateStrategyFluent implements VisitableBuilder{ + + V1DaemonSetUpdateStrategyFluent fluent; + public V1DaemonSetUpdateStrategyBuilder() { this(new V1DaemonSetUpdateStrategy()); } @@ -11,17 +14,16 @@ public V1DaemonSetUpdateStrategyBuilder(V1DaemonSetUpdateStrategyFluent fluen this(fluent, new V1DaemonSetUpdateStrategy()); } - public V1DaemonSetUpdateStrategyBuilder(V1DaemonSetUpdateStrategyFluent fluent,V1DaemonSetUpdateStrategy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DaemonSetUpdateStrategyBuilder(V1DaemonSetUpdateStrategy instance) { this.fluent = this; this.copyInstance(instance); } - V1DaemonSetUpdateStrategyFluent fluent; + public V1DaemonSetUpdateStrategyBuilder(V1DaemonSetUpdateStrategyFluent fluent,V1DaemonSetUpdateStrategy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DaemonSetUpdateStrategy build() { V1DaemonSetUpdateStrategy buildable = new V1DaemonSetUpdateStrategy(); buildable.setRollingUpdate(fluent.buildRollingUpdate()); @@ -29,5 +31,4 @@ public V1DaemonSetUpdateStrategy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java index e6e4db3bda..be23558ba0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java @@ -1,27 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1DaemonSetUpdateStrategyFluent> extends BaseFluent{ + + private V1RollingUpdateDaemonSetBuilder rollingUpdate; + private String type; + public V1DaemonSetUpdateStrategyFluent() { } public V1DaemonSetUpdateStrategyFluent(V1DaemonSetUpdateStrategy instance) { this.copyInstance(instance); } - private V1RollingUpdateDaemonSetBuilder rollingUpdate; - private String type; + + public V1RollingUpdateDaemonSet buildRollingUpdate() { + return this.rollingUpdate != null ? this.rollingUpdate.build() : null; + } protected void copyInstance(V1DaemonSetUpdateStrategy instance) { instance = instance != null ? instance : new V1DaemonSetUpdateStrategy(); @@ -31,38 +37,6 @@ protected void copyInstance(V1DaemonSetUpdateStrategy instance) { } } - public V1RollingUpdateDaemonSet buildRollingUpdate() { - return this.rollingUpdate != null ? this.rollingUpdate.build() : null; - } - - public A withRollingUpdate(V1RollingUpdateDaemonSet rollingUpdate) { - this._visitables.remove("rollingUpdate"); - if (rollingUpdate != null) { - this.rollingUpdate = new V1RollingUpdateDaemonSetBuilder(rollingUpdate); - this._visitables.get("rollingUpdate").add(this.rollingUpdate); - } else { - this.rollingUpdate = null; - this._visitables.get("rollingUpdate").remove(this.rollingUpdate); - } - return (A) this; - } - - public boolean hasRollingUpdate() { - return this.rollingUpdate != null; - } - - public RollingUpdateNested withNewRollingUpdate() { - return new RollingUpdateNested(null); - } - - public RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateDaemonSet item) { - return new RollingUpdateNested(item); - } - - public RollingUpdateNested editRollingUpdate() { - return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(null)); - } - public RollingUpdateNested editOrNewRollingUpdate() { return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(new V1RollingUpdateDaemonSetBuilder().build())); } @@ -71,17 +45,8 @@ public RollingUpdateNested editOrNewRollingUpdateLike(V1RollingUpdateDaemonSe return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(item)); } - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; + public RollingUpdateNested editRollingUpdate() { + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(null)); } public boolean equals(Object o) { @@ -104,6 +69,18 @@ public boolean equals(Object o) { return true; } + public String getType() { + return this.type; + } + + public boolean hasRollingUpdate() { + return this.rollingUpdate != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(rollingUpdate, type); } @@ -123,12 +100,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public RollingUpdateNested withNewRollingUpdate() { + return new RollingUpdateNested(null); + } + + public RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateDaemonSet item) { + return new RollingUpdateNested(item); + } + + public A withRollingUpdate(V1RollingUpdateDaemonSet rollingUpdate) { + this._visitables.remove("rollingUpdate"); + if (rollingUpdate != null) { + this.rollingUpdate = new V1RollingUpdateDaemonSetBuilder(rollingUpdate); + this._visitables.get("rollingUpdate").add(this.rollingUpdate); + } else { + this.rollingUpdate = null; + this._visitables.get("rollingUpdate").remove(this.rollingUpdate); + } + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } public class RollingUpdateNested extends V1RollingUpdateDaemonSetFluent> implements Nested{ + + V1RollingUpdateDaemonSetBuilder builder; + RollingUpdateNested(V1RollingUpdateDaemonSet item) { this.builder = new V1RollingUpdateDaemonSetBuilder(this, item); } - V1RollingUpdateDaemonSetBuilder builder; - + public N and() { return (N) V1DaemonSetUpdateStrategyFluent.this.withRollingUpdate(builder.build()); } @@ -137,7 +141,5 @@ public N endRollingUpdate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java index fc51475f26..46a5ab6cc8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeleteOptionsBuilder extends V1DeleteOptionsFluent implements VisitableBuilder{ + + V1DeleteOptionsFluent fluent; + public V1DeleteOptionsBuilder() { this(new V1DeleteOptions()); } @@ -11,17 +14,16 @@ public V1DeleteOptionsBuilder(V1DeleteOptionsFluent fluent) { this(fluent, new V1DeleteOptions()); } - public V1DeleteOptionsBuilder(V1DeleteOptionsFluent fluent,V1DeleteOptions instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeleteOptionsBuilder(V1DeleteOptions instance) { this.fluent = this; this.copyInstance(instance); } - V1DeleteOptionsFluent fluent; + public V1DeleteOptionsBuilder(V1DeleteOptionsFluent fluent,V1DeleteOptions instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeleteOptions build() { V1DeleteOptions buildable = new V1DeleteOptions(); buildable.setApiVersion(fluent.getApiVersion()); @@ -35,5 +37,4 @@ public V1DeleteOptions build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java index 43ce8d24dd..404b8f8da9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java @@ -1,31 +1,26 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Long; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeleteOptionsFluent> extends BaseFluent{ - public V1DeleteOptionsFluent() { - } - - public V1DeleteOptionsFluent(V1DeleteOptions instance) { - this.copyInstance(instance); - } + private String apiVersion; private List dryRun; private Long gracePeriodSeconds; @@ -34,47 +29,21 @@ public V1DeleteOptionsFluent(V1DeleteOptions instance) { private Boolean orphanDependents; private V1PreconditionsBuilder preconditions; private String propagationPolicy; - - protected void copyInstance(V1DeleteOptions instance) { - instance = instance != null ? instance : new V1DeleteOptions(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withDryRun(instance.getDryRun()); - this.withGracePeriodSeconds(instance.getGracePeriodSeconds()); - this.withIgnoreStoreReadErrorWithClusterBreakingPotential(instance.getIgnoreStoreReadErrorWithClusterBreakingPotential()); - this.withKind(instance.getKind()); - this.withOrphanDependents(instance.getOrphanDependents()); - this.withPreconditions(instance.getPreconditions()); - this.withPropagationPolicy(instance.getPropagationPolicy()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1DeleteOptionsFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1DeleteOptionsFluent(V1DeleteOptions instance) { + this.copyInstance(instance); } - - public A addToDryRun(int index,String item) { + + public A addAllToDryRun(Collection items) { if (this.dryRun == null) { this.dryRun = new ArrayList(); } - this.dryRun.add(index, item); - return (A) this; - } - - public A setToDryRun(int index,String item) { - if (this.dryRun == null) { - this.dryRun = new ArrayList(); + for (String item : items) { + this.dryRun.add(item); } - this.dryRun.set(index, item); return (A) this; } @@ -88,34 +57,84 @@ public A addToDryRun(String... items) { return (A) this; } - public A addAllToDryRun(Collection items) { + public A addToDryRun(int index,String item) { if (this.dryRun == null) { this.dryRun = new ArrayList(); } - for (String item : items) { - this.dryRun.add(item); - } + this.dryRun.add(index, item); return (A) this; } - public A removeFromDryRun(String... items) { - if (this.dryRun == null) { - return (A) this; - } - for (String item : items) { - this.dryRun.remove(item); + public V1Preconditions buildPreconditions() { + return this.preconditions != null ? this.preconditions.build() : null; + } + + protected void copyInstance(V1DeleteOptions instance) { + instance = instance != null ? instance : new V1DeleteOptions(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withDryRun(instance.getDryRun()); + this.withGracePeriodSeconds(instance.getGracePeriodSeconds()); + this.withIgnoreStoreReadErrorWithClusterBreakingPotential(instance.getIgnoreStoreReadErrorWithClusterBreakingPotential()); + this.withKind(instance.getKind()); + this.withOrphanDependents(instance.getOrphanDependents()); + this.withPreconditions(instance.getPreconditions()); + this.withPropagationPolicy(instance.getPropagationPolicy()); } - return (A) this; } - public A removeAllFromDryRun(Collection items) { - if (this.dryRun == null) { - return (A) this; + public PreconditionsNested editOrNewPreconditions() { + return this.withNewPreconditionsLike(Optional.ofNullable(this.buildPreconditions()).orElse(new V1PreconditionsBuilder().build())); + } + + public PreconditionsNested editOrNewPreconditionsLike(V1Preconditions item) { + return this.withNewPreconditionsLike(Optional.ofNullable(this.buildPreconditions()).orElse(item)); + } + + public PreconditionsNested editPreconditions() { + return this.withNewPreconditionsLike(Optional.ofNullable(this.buildPreconditions()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.dryRun.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1DeleteOptionsFluent that = (V1DeleteOptionsFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(dryRun, that.dryRun))) { + return false; + } + if (!(Objects.equals(gracePeriodSeconds, that.gracePeriodSeconds))) { + return false; + } + if (!(Objects.equals(ignoreStoreReadErrorWithClusterBreakingPotential, that.ignoreStoreReadErrorWithClusterBreakingPotential))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(orphanDependents, that.orphanDependents))) { + return false; + } + if (!(Objects.equals(preconditions, that.preconditions))) { + return false; + } + if (!(Objects.equals(propagationPolicy, that.propagationPolicy))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public List getDryRun() { @@ -130,6 +149,18 @@ public String getFirstDryRun() { return this.dryRun.get(0); } + public Long getGracePeriodSeconds() { + return this.gracePeriodSeconds; + } + + public Boolean getIgnoreStoreReadErrorWithClusterBreakingPotential() { + return this.ignoreStoreReadErrorWithClusterBreakingPotential; + } + + public String getKind() { + return this.kind; + } + public String getLastDryRun() { return this.dryRun.get(dryRun.size() - 1); } @@ -143,189 +174,85 @@ public String getMatchingDryRun(Predicate predicate) { return null; } - public boolean hasMatchingDryRun(Predicate predicate) { - for (String item : dryRun) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean getOrphanDependents() { + return this.orphanDependents; } - public A withDryRun(List dryRun) { - if (dryRun != null) { - this.dryRun = new ArrayList(); - for (String item : dryRun) { - this.addToDryRun(item); - } - } else { - this.dryRun = null; - } - return (A) this; + public String getPropagationPolicy() { + return this.propagationPolicy; } - public A withDryRun(String... dryRun) { - if (this.dryRun != null) { - this.dryRun.clear(); - _visitables.remove("dryRun"); - } - if (dryRun != null) { - for (String item : dryRun) { - this.addToDryRun(item); - } - } - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasDryRun() { return this.dryRun != null && !(this.dryRun.isEmpty()); } - public Long getGracePeriodSeconds() { - return this.gracePeriodSeconds; - } - - public A withGracePeriodSeconds(Long gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; - return (A) this; - } - public boolean hasGracePeriodSeconds() { return this.gracePeriodSeconds != null; } - public Boolean getIgnoreStoreReadErrorWithClusterBreakingPotential() { - return this.ignoreStoreReadErrorWithClusterBreakingPotential; - } - - public A withIgnoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; - return (A) this; - } - public boolean hasIgnoreStoreReadErrorWithClusterBreakingPotential() { return this.ignoreStoreReadErrorWithClusterBreakingPotential != null; } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - public boolean hasKind() { return this.kind != null; } - public Boolean getOrphanDependents() { - return this.orphanDependents; - } - - public A withOrphanDependents(Boolean orphanDependents) { - this.orphanDependents = orphanDependents; - return (A) this; + public boolean hasMatchingDryRun(Predicate predicate) { + for (String item : dryRun) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasOrphanDependents() { return this.orphanDependents != null; } - public V1Preconditions buildPreconditions() { - return this.preconditions != null ? this.preconditions.build() : null; - } - - public A withPreconditions(V1Preconditions preconditions) { - this._visitables.remove("preconditions"); - if (preconditions != null) { - this.preconditions = new V1PreconditionsBuilder(preconditions); - this._visitables.get("preconditions").add(this.preconditions); - } else { - this.preconditions = null; - this._visitables.get("preconditions").remove(this.preconditions); - } - return (A) this; - } - public boolean hasPreconditions() { return this.preconditions != null; } - public PreconditionsNested withNewPreconditions() { - return new PreconditionsNested(null); - } - - public PreconditionsNested withNewPreconditionsLike(V1Preconditions item) { - return new PreconditionsNested(item); - } - - public PreconditionsNested editPreconditions() { - return this.withNewPreconditionsLike(Optional.ofNullable(this.buildPreconditions()).orElse(null)); - } - - public PreconditionsNested editOrNewPreconditions() { - return this.withNewPreconditionsLike(Optional.ofNullable(this.buildPreconditions()).orElse(new V1PreconditionsBuilder().build())); - } - - public PreconditionsNested editOrNewPreconditionsLike(V1Preconditions item) { - return this.withNewPreconditionsLike(Optional.ofNullable(this.buildPreconditions()).orElse(item)); + public boolean hasPropagationPolicy() { + return this.propagationPolicy != null; } - public String getPropagationPolicy() { - return this.propagationPolicy; + public int hashCode() { + return Objects.hash(apiVersion, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, kind, orphanDependents, preconditions, propagationPolicy); } - public A withPropagationPolicy(String propagationPolicy) { - this.propagationPolicy = propagationPolicy; + public A removeAllFromDryRun(Collection items) { + if (this.dryRun == null) { + return (A) this; + } + for (String item : items) { + this.dryRun.remove(item); + } return (A) this; } - public boolean hasPropagationPolicy() { - return this.propagationPolicy != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1DeleteOptionsFluent that = (V1DeleteOptionsFluent) o; - if (!(Objects.equals(apiVersion, that.apiVersion))) { - return false; - } - if (!(Objects.equals(dryRun, that.dryRun))) { - return false; - } - if (!(Objects.equals(gracePeriodSeconds, that.gracePeriodSeconds))) { - return false; - } - if (!(Objects.equals(ignoreStoreReadErrorWithClusterBreakingPotential, that.ignoreStoreReadErrorWithClusterBreakingPotential))) { - return false; - } - if (!(Objects.equals(kind, that.kind))) { - return false; - } - if (!(Objects.equals(orphanDependents, that.orphanDependents))) { - return false; - } - if (!(Objects.equals(preconditions, that.preconditions))) { - return false; + public A removeFromDryRun(String... items) { + if (this.dryRun == null) { + return (A) this; } - if (!(Objects.equals(propagationPolicy, that.propagationPolicy))) { - return false; + for (String item : items) { + this.dryRun.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(apiVersion, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, kind, orphanDependents, preconditions, propagationPolicy); + public A setToDryRun(int index,String item) { + if (this.dryRun == null) { + this.dryRun = new ArrayList(); + } + this.dryRun.set(index, item); + return (A) this; } public String toString() { @@ -374,19 +301,96 @@ public String toString() { return sb.toString(); } + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withDryRun(List dryRun) { + if (dryRun != null) { + this.dryRun = new ArrayList(); + for (String item : dryRun) { + this.addToDryRun(item); + } + } else { + this.dryRun = null; + } + return (A) this; + } + + public A withDryRun(String... dryRun) { + if (this.dryRun != null) { + this.dryRun.clear(); + _visitables.remove("dryRun"); + } + if (dryRun != null) { + for (String item : dryRun) { + this.addToDryRun(item); + } + } + return (A) this; + } + + public A withGracePeriodSeconds(Long gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return (A) this; + } + public A withIgnoreStoreReadErrorWithClusterBreakingPotential() { return withIgnoreStoreReadErrorWithClusterBreakingPotential(true); } + public A withIgnoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public PreconditionsNested withNewPreconditions() { + return new PreconditionsNested(null); + } + + public PreconditionsNested withNewPreconditionsLike(V1Preconditions item) { + return new PreconditionsNested(item); + } + public A withOrphanDependents() { return withOrphanDependents(true); } + + public A withOrphanDependents(Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return (A) this; + } + + public A withPreconditions(V1Preconditions preconditions) { + this._visitables.remove("preconditions"); + if (preconditions != null) { + this.preconditions = new V1PreconditionsBuilder(preconditions); + this._visitables.get("preconditions").add(this.preconditions); + } else { + this.preconditions = null; + this._visitables.get("preconditions").remove(this.preconditions); + } + return (A) this; + } + + public A withPropagationPolicy(String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return (A) this; + } public class PreconditionsNested extends V1PreconditionsFluent> implements Nested{ + + V1PreconditionsBuilder builder; + PreconditionsNested(V1Preconditions item) { this.builder = new V1PreconditionsBuilder(this, item); } - V1PreconditionsBuilder builder; - + public N and() { return (N) V1DeleteOptionsFluent.this.withPreconditions(builder.build()); } @@ -395,7 +399,5 @@ public N endPreconditions() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java index 4e638f925e..79ac40abba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeploymentBuilder extends V1DeploymentFluent implements VisitableBuilder{ + + V1DeploymentFluent fluent; + public V1DeploymentBuilder() { this(new V1Deployment()); } @@ -11,17 +14,16 @@ public V1DeploymentBuilder(V1DeploymentFluent fluent) { this(fluent, new V1Deployment()); } - public V1DeploymentBuilder(V1DeploymentFluent fluent,V1Deployment instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeploymentBuilder(V1Deployment instance) { this.fluent = this; this.copyInstance(instance); } - V1DeploymentFluent fluent; + public V1DeploymentBuilder(V1DeploymentFluent fluent,V1Deployment instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Deployment build() { V1Deployment buildable = new V1Deployment(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1Deployment build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java index 2a84cd9a6e..587c4aff8b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeploymentConditionBuilder extends V1DeploymentConditionFluent implements VisitableBuilder{ + + V1DeploymentConditionFluent fluent; + public V1DeploymentConditionBuilder() { this(new V1DeploymentCondition()); } @@ -11,17 +14,16 @@ public V1DeploymentConditionBuilder(V1DeploymentConditionFluent fluent) { this(fluent, new V1DeploymentCondition()); } - public V1DeploymentConditionBuilder(V1DeploymentConditionFluent fluent,V1DeploymentCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeploymentConditionBuilder(V1DeploymentCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1DeploymentConditionFluent fluent; + public V1DeploymentConditionBuilder(V1DeploymentConditionFluent fluent,V1DeploymentCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeploymentCondition build() { V1DeploymentCondition buildable = new V1DeploymentCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -33,5 +35,4 @@ public V1DeploymentCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java index c3953c3d4f..b076cfd1fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java @@ -1,31 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeploymentConditionFluent> extends BaseFluent{ - public V1DeploymentConditionFluent() { - } - - public V1DeploymentConditionFluent(V1DeploymentCondition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastTransitionTime; private OffsetDateTime lastUpdateTime; private String message; private String reason; private String status; private String type; + + public V1DeploymentConditionFluent() { + } + public V1DeploymentConditionFluent(V1DeploymentCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1DeploymentCondition instance) { instance = instance != null ? instance : new V1DeploymentCondition(); if (instance != null) { @@ -38,116 +40,86 @@ protected void copyInstance(V1DeploymentCondition instance) { } } - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeploymentConditionFluent that = (V1DeploymentConditionFluent) o; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(lastUpdateTime, that.lastUpdateTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } public OffsetDateTime getLastUpdateTime() { return this.lastUpdateTime; } - public A withLastUpdateTime(OffsetDateTime lastUpdateTime) { - this.lastUpdateTime = lastUpdateTime; - return (A) this; - } - - public boolean hasLastUpdateTime() { - return this.lastUpdateTime != null; - } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public String getStatus() { + return this.status; } - public boolean hasReason() { - return this.reason != null; + public String getType() { + return this.type; } - public String getStatus() { - return this.status; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasLastUpdateTime() { + return this.lastUpdateTime != null; } - public boolean hasStatus() { - return this.status != null; + public boolean hasMessage() { + return this.message != null; } - public String getType() { - return this.type; + public boolean hasReason() { + return this.reason != null; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasStatus() { + return this.status != null; } public boolean hasType() { return this.type != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1DeploymentConditionFluent that = (V1DeploymentConditionFluent) o; - if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { - return false; - } - if (!(Objects.equals(lastUpdateTime, that.lastUpdateTime))) { - return false; - } - if (!(Objects.equals(message, that.message))) { - return false; - } - if (!(Objects.equals(reason, that.reason))) { - return false; - } - if (!(Objects.equals(status, that.status))) { - return false; - } - if (!(Objects.equals(type, that.type))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(lastTransitionTime, lastUpdateTime, message, reason, status, type); } @@ -188,5 +160,34 @@ public String toString() { return sb.toString(); } - + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withLastUpdateTime(OffsetDateTime lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java index bd137b399c..fc63fb1f42 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeploymentFluent> extends BaseFluent{ - public V1DeploymentFluent() { - } - - public V1DeploymentFluent(V1Deployment instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1DeploymentSpecBuilder spec; private V1DeploymentStatusBuilder status; - - protected void copyInstance(V1Deployment instance) { - instance = instance != null ? instance : new V1Deployment(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1DeploymentFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1DeploymentFluent(V1Deployment instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1DeploymentSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1DeploymentStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1Deployment instance) { + instance = instance != null ? instance : new V1Deployment(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1DeploymentSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1DeploymentSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1DeploymentSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1DeploymentSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1DeploymentSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1DeploymentSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1DeploymentStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1DeploymentStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1DeploymentStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1DeploymentStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1DeploymentStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1DeploymentStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1DeploymentStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1DeploymentStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1DeploymentSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1DeploymentStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1DeploymentSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1DeploymentSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1DeploymentStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1DeploymentStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1DeploymentFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1DeploymentSpecFluent> implements Nested{ + + V1DeploymentSpecBuilder builder; + SpecNested(V1DeploymentSpec item) { this.builder = new V1DeploymentSpecBuilder(this, item); } - V1DeploymentSpecBuilder builder; - + public N and() { return (N) V1DeploymentFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1DeploymentStatusFluent> implements Nested{ + + V1DeploymentStatusBuilder builder; + StatusNested(V1DeploymentStatus item) { this.builder = new V1DeploymentStatusBuilder(this, item); } - V1DeploymentStatusBuilder builder; - + public N and() { return (N) V1DeploymentFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java index d20cd554d7..09bb02cbcf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeploymentListBuilder extends V1DeploymentListFluent implements VisitableBuilder{ + + V1DeploymentListFluent fluent; + public V1DeploymentListBuilder() { this(new V1DeploymentList()); } @@ -11,17 +14,16 @@ public V1DeploymentListBuilder(V1DeploymentListFluent fluent) { this(fluent, new V1DeploymentList()); } - public V1DeploymentListBuilder(V1DeploymentListFluent fluent,V1DeploymentList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeploymentListBuilder(V1DeploymentList instance) { this.fluent = this; this.copyInstance(instance); } - V1DeploymentListFluent fluent; + public V1DeploymentListBuilder(V1DeploymentListFluent fluent,V1DeploymentList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeploymentList build() { V1DeploymentList buildable = new V1DeploymentList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1DeploymentList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java index da241c3057..4ef7afab8f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeploymentListFluent> extends BaseFluent{ - public V1DeploymentListFluent() { - } - - public V1DeploymentListFluent(V1DeploymentList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1DeploymentList instance) { - instance = instance != null ? instance : new V1DeploymentList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1DeploymentListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1DeploymentListFluent(V1DeploymentList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1Deployment item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1DeploymentBuilder builder = new V1DeploymentBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1Deployment item : items) { + V1DeploymentBuilder builder = new V1DeploymentBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1Deployment item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1DeploymentBuilder builder = new V1DeploymentBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1Deployment item) { + return new ItemsNested(-1, item); } public A addToItems(V1Deployment... items) { @@ -96,68 +65,31 @@ public A addToItems(V1Deployment... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1Deployment item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1Deployment item : items) { - V1DeploymentBuilder builder = new V1DeploymentBuilder(item); + V1DeploymentBuilder builder = new V1DeploymentBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1Deployment... items) { - if (this.items == null) { - return (A) this; - } - for (V1Deployment item : items) { - V1DeploymentBuilder builder = new V1DeploymentBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1Deployment item : items) { - V1DeploymentBuilder builder = new V1DeploymentBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1DeploymentBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1Deployment buildFirstItem() { + return this.items.get(0).build(); } public V1Deployment buildItem(int index) { return this.items.get(index).build(); } - public V1Deployment buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1Deployment buildLastItem() { @@ -173,73 +105,34 @@ public V1Deployment buildMatchingItem(Predicate predicate) return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1DeploymentBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Deployment item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1DeploymentList instance) { + instance = instance != null ? instance : new V1DeploymentList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1Deployment... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1Deployment item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Deployment item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Deployment item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1DeploymentBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Deployment item : items) { + V1DeploymentBuilder builder = new V1DeploymentBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Deployment... items) { + if (this.items == null) { + return (A) this; + } + for (V1Deployment item : items) { + V1DeploymentBuilder builder = new V1DeploymentBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1DeploymentBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Deployment item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1Deployment item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1DeploymentBuilder builder = new V1DeploymentBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1Deployment item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1Deployment... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1Deployment item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1DeploymentFluent> implements Nested{ + + V1DeploymentBuilder builder; + int index; + ItemsNested(int index,V1Deployment item) { this.index = index; this.builder = new V1DeploymentBuilder(this, item); } - V1DeploymentBuilder builder; - int index; - + public N and() { return (N) V1DeploymentListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1DeploymentListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java index 8f9591fc74..69f43e0af0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeploymentSpecBuilder extends V1DeploymentSpecFluent implements VisitableBuilder{ + + V1DeploymentSpecFluent fluent; + public V1DeploymentSpecBuilder() { this(new V1DeploymentSpec()); } @@ -11,17 +14,16 @@ public V1DeploymentSpecBuilder(V1DeploymentSpecFluent fluent) { this(fluent, new V1DeploymentSpec()); } - public V1DeploymentSpecBuilder(V1DeploymentSpecFluent fluent,V1DeploymentSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeploymentSpecBuilder(V1DeploymentSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1DeploymentSpecFluent fluent; + public V1DeploymentSpecBuilder(V1DeploymentSpecFluent fluent,V1DeploymentSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeploymentSpec build() { V1DeploymentSpec buildable = new V1DeploymentSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); @@ -35,5 +37,4 @@ public V1DeploymentSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java index 4cccc59c7c..4407dc4ecd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java @@ -1,27 +1,22 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Boolean; -import java.util.Optional; import java.lang.Integer; -import java.util.Objects; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeploymentSpecFluent> extends BaseFluent{ - public V1DeploymentSpecFluent() { - } - - public V1DeploymentSpecFluent(V1DeploymentSpec instance) { - this.copyInstance(instance); - } + private Integer minReadySeconds; private Boolean paused; private Integer progressDeadlineSeconds; @@ -30,6 +25,25 @@ public V1DeploymentSpecFluent(V1DeploymentSpec instance) { private V1LabelSelectorBuilder selector; private V1DeploymentStrategyBuilder strategy; private V1PodTemplateSpecBuilder template; + + public V1DeploymentSpecFluent() { + } + + public V1DeploymentSpecFluent(V1DeploymentSpec instance) { + this.copyInstance(instance); + } + + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; + } + + public V1DeploymentStrategy buildStrategy() { + return this.strategy != null ? this.strategy.build() : null; + } + + public V1PodTemplateSpec buildTemplate() { + return this.template != null ? this.template.build() : null; + } protected void copyInstance(V1DeploymentSpec instance) { instance = instance != null ? instance : new V1DeploymentSpec(); @@ -45,103 +59,6 @@ protected void copyInstance(V1DeploymentSpec instance) { } } - public Integer getMinReadySeconds() { - return this.minReadySeconds; - } - - public A withMinReadySeconds(Integer minReadySeconds) { - this.minReadySeconds = minReadySeconds; - return (A) this; - } - - public boolean hasMinReadySeconds() { - return this.minReadySeconds != null; - } - - public Boolean getPaused() { - return this.paused; - } - - public A withPaused(Boolean paused) { - this.paused = paused; - return (A) this; - } - - public boolean hasPaused() { - return this.paused != null; - } - - public Integer getProgressDeadlineSeconds() { - return this.progressDeadlineSeconds; - } - - public A withProgressDeadlineSeconds(Integer progressDeadlineSeconds) { - this.progressDeadlineSeconds = progressDeadlineSeconds; - return (A) this; - } - - public boolean hasProgressDeadlineSeconds() { - return this.progressDeadlineSeconds != null; - } - - public Integer getReplicas() { - return this.replicas; - } - - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; - } - - public boolean hasReplicas() { - return this.replicas != null; - } - - public Integer getRevisionHistoryLimit() { - return this.revisionHistoryLimit; - } - - public A withRevisionHistoryLimit(Integer revisionHistoryLimit) { - this.revisionHistoryLimit = revisionHistoryLimit; - return (A) this; - } - - public boolean hasRevisionHistoryLimit() { - return this.revisionHistoryLimit != null; - } - - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public A withSelector(V1LabelSelector selector) { - this._visitables.remove("selector"); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - this._visitables.get("selector").add(this.selector); - } else { - this.selector = null; - this._visitables.get("selector").remove(this.selector); - } - return (A) this; - } - - public boolean hasSelector() { - return this.selector != null; - } - - public SelectorNested withNewSelector() { - return new SelectorNested(null); - } - - public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); - } - - public SelectorNested editSelector() { - return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); - } - public SelectorNested editOrNewSelector() { return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } @@ -150,38 +67,6 @@ public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } - public V1DeploymentStrategy buildStrategy() { - return this.strategy != null ? this.strategy.build() : null; - } - - public A withStrategy(V1DeploymentStrategy strategy) { - this._visitables.remove("strategy"); - if (strategy != null) { - this.strategy = new V1DeploymentStrategyBuilder(strategy); - this._visitables.get("strategy").add(this.strategy); - } else { - this.strategy = null; - this._visitables.get("strategy").remove(this.strategy); - } - return (A) this; - } - - public boolean hasStrategy() { - return this.strategy != null; - } - - public StrategyNested withNewStrategy() { - return new StrategyNested(null); - } - - public StrategyNested withNewStrategyLike(V1DeploymentStrategy item) { - return new StrategyNested(item); - } - - public StrategyNested editStrategy() { - return this.withNewStrategyLike(Optional.ofNullable(this.buildStrategy()).orElse(null)); - } - public StrategyNested editOrNewStrategy() { return this.withNewStrategyLike(Optional.ofNullable(this.buildStrategy()).orElse(new V1DeploymentStrategyBuilder().build())); } @@ -190,46 +75,26 @@ public StrategyNested editOrNewStrategyLike(V1DeploymentStrategy item) { return this.withNewStrategyLike(Optional.ofNullable(this.buildStrategy()).orElse(item)); } - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; - } - - public A withTemplate(V1PodTemplateSpec template) { - this._visitables.remove("template"); - if (template != null) { - this.template = new V1PodTemplateSpecBuilder(template); - this._visitables.get("template").add(this.template); - } else { - this.template = null; - this._visitables.get("template").remove(this.template); - } - return (A) this; + public TemplateNested editOrNewTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); } - public boolean hasTemplate() { - return this.template != null; + public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); } - public TemplateNested withNewTemplate() { - return new TemplateNested(null); + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } - public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); + public StrategyNested editStrategy() { + return this.withNewStrategyLike(Optional.ofNullable(this.buildStrategy()).orElse(null)); } public TemplateNested editTemplate() { return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); } - public TemplateNested editOrNewTemplate() { - return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); - } - - public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -268,6 +133,58 @@ public boolean equals(Object o) { return true; } + public Integer getMinReadySeconds() { + return this.minReadySeconds; + } + + public Boolean getPaused() { + return this.paused; + } + + public Integer getProgressDeadlineSeconds() { + return this.progressDeadlineSeconds; + } + + public Integer getReplicas() { + return this.replicas; + } + + public Integer getRevisionHistoryLimit() { + return this.revisionHistoryLimit; + } + + public boolean hasMinReadySeconds() { + return this.minReadySeconds != null; + } + + public boolean hasPaused() { + return this.paused != null; + } + + public boolean hasProgressDeadlineSeconds() { + return this.progressDeadlineSeconds != null; + } + + public boolean hasReplicas() { + return this.replicas != null; + } + + public boolean hasRevisionHistoryLimit() { + return this.revisionHistoryLimit != null; + } + + public boolean hasSelector() { + return this.selector != null; + } + + public boolean hasStrategy() { + return this.strategy != null; + } + + public boolean hasTemplate() { + return this.template != null; + } + public int hashCode() { return Objects.hash(minReadySeconds, paused, progressDeadlineSeconds, replicas, revisionHistoryLimit, selector, strategy, template); } @@ -318,15 +235,102 @@ public String toString() { return sb.toString(); } + public A withMinReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; + return (A) this; + } + + public SelectorNested withNewSelector() { + return new SelectorNested(null); + } + + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); + } + + public StrategyNested withNewStrategy() { + return new StrategyNested(null); + } + + public StrategyNested withNewStrategyLike(V1DeploymentStrategy item) { + return new StrategyNested(item); + } + + public TemplateNested withNewTemplate() { + return new TemplateNested(null); + } + + public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { + return new TemplateNested(item); + } + public A withPaused() { return withPaused(true); } + + public A withPaused(Boolean paused) { + this.paused = paused; + return (A) this; + } + + public A withProgressDeadlineSeconds(Integer progressDeadlineSeconds) { + this.progressDeadlineSeconds = progressDeadlineSeconds; + return (A) this; + } + + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; + } + + public A withRevisionHistoryLimit(Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; + return (A) this; + } + + public A withSelector(V1LabelSelector selector) { + this._visitables.remove("selector"); + if (selector != null) { + this.selector = new V1LabelSelectorBuilder(selector); + this._visitables.get("selector").add(this.selector); + } else { + this.selector = null; + this._visitables.get("selector").remove(this.selector); + } + return (A) this; + } + + public A withStrategy(V1DeploymentStrategy strategy) { + this._visitables.remove("strategy"); + if (strategy != null) { + this.strategy = new V1DeploymentStrategyBuilder(strategy); + this._visitables.get("strategy").add(this.strategy); + } else { + this.strategy = null; + this._visitables.get("strategy").remove(this.strategy); + } + return (A) this; + } + + public A withTemplate(V1PodTemplateSpec template) { + this._visitables.remove("template"); + if (template != null) { + this.template = new V1PodTemplateSpecBuilder(template); + this._visitables.get("template").add(this.template); + } else { + this.template = null; + this._visitables.get("template").remove(this.template); + } + return (A) this; + } public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + SelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1DeploymentSpecFluent.this.withSelector(builder.build()); } @@ -335,14 +339,15 @@ public N endSelector() { return and(); } - } public class StrategyNested extends V1DeploymentStrategyFluent> implements Nested{ + + V1DeploymentStrategyBuilder builder; + StrategyNested(V1DeploymentStrategy item) { this.builder = new V1DeploymentStrategyBuilder(this, item); } - V1DeploymentStrategyBuilder builder; - + public N and() { return (N) V1DeploymentSpecFluent.this.withStrategy(builder.build()); } @@ -351,14 +356,15 @@ public N endStrategy() { return and(); } - } public class TemplateNested extends V1PodTemplateSpecFluent> implements Nested{ + + V1PodTemplateSpecBuilder builder; + TemplateNested(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - V1PodTemplateSpecBuilder builder; - + public N and() { return (N) V1DeploymentSpecFluent.this.withTemplate(builder.build()); } @@ -367,7 +373,5 @@ public N endTemplate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java index 5bc656dc1b..aa6aa71023 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeploymentStatusBuilder extends V1DeploymentStatusFluent implements VisitableBuilder{ + + V1DeploymentStatusFluent fluent; + public V1DeploymentStatusBuilder() { this(new V1DeploymentStatus()); } @@ -11,17 +14,16 @@ public V1DeploymentStatusBuilder(V1DeploymentStatusFluent fluent) { this(fluent, new V1DeploymentStatus()); } - public V1DeploymentStatusBuilder(V1DeploymentStatusFluent fluent,V1DeploymentStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeploymentStatusBuilder(V1DeploymentStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1DeploymentStatusFluent fluent; + public V1DeploymentStatusBuilder(V1DeploymentStatusFluent fluent,V1DeploymentStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeploymentStatus build() { V1DeploymentStatus buildable = new V1DeploymentStatus(); buildable.setAvailableReplicas(fluent.getAvailableReplicas()); @@ -36,5 +38,4 @@ public V1DeploymentStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java index 3343a3573c..b92f388894 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Integer; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Iterator; -import java.util.Objects; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeploymentStatusFluent> extends BaseFluent{ - public V1DeploymentStatusFluent() { - } - - public V1DeploymentStatusFluent(V1DeploymentStatus instance) { - this.copyInstance(instance); - } + private Integer availableReplicas; private Integer collisionCount; private ArrayList conditions; @@ -36,76 +31,32 @@ public V1DeploymentStatusFluent(V1DeploymentStatus instance) { private Integer terminatingReplicas; private Integer unavailableReplicas; private Integer updatedReplicas; - - protected void copyInstance(V1DeploymentStatus instance) { - instance = instance != null ? instance : new V1DeploymentStatus(); - if (instance != null) { - this.withAvailableReplicas(instance.getAvailableReplicas()); - this.withCollisionCount(instance.getCollisionCount()); - this.withConditions(instance.getConditions()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withReadyReplicas(instance.getReadyReplicas()); - this.withReplicas(instance.getReplicas()); - this.withTerminatingReplicas(instance.getTerminatingReplicas()); - this.withUnavailableReplicas(instance.getUnavailableReplicas()); - this.withUpdatedReplicas(instance.getUpdatedReplicas()); - } - } - - public Integer getAvailableReplicas() { - return this.availableReplicas; - } - - public A withAvailableReplicas(Integer availableReplicas) { - this.availableReplicas = availableReplicas; - return (A) this; - } - - public boolean hasAvailableReplicas() { - return this.availableReplicas != null; - } - - public Integer getCollisionCount() { - return this.collisionCount; - } - - public A withCollisionCount(Integer collisionCount) { - this.collisionCount = collisionCount; - return (A) this; + + public V1DeploymentStatusFluent() { } - public boolean hasCollisionCount() { - return this.collisionCount != null; + public V1DeploymentStatusFluent(V1DeploymentStatus instance) { + this.copyInstance(instance); } - - public A addToConditions(int index,V1DeploymentCondition item) { + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1DeploymentCondition item : items) { + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1DeploymentCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1DeploymentCondition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1DeploymentCondition... items) { @@ -120,66 +71,29 @@ public A addToConditions(V1DeploymentCondition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1DeploymentCondition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1DeploymentCondition item : items) { - V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1DeploymentCondition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1DeploymentCondition item : items) { - V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1DeploymentCondition item : items) { - V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1DeploymentConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1DeploymentCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1DeploymentCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1DeploymentCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -197,61 +111,23 @@ public V1DeploymentCondition buildMatchingCondition(Predicate predicate) { - for (V1DeploymentConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1DeploymentCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(V1DeploymentCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1DeploymentCondition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1DeploymentStatus instance) { + instance = instance != null ? instance : new V1DeploymentStatus(); + if (instance != null) { + this.withAvailableReplicas(instance.getAvailableReplicas()); + this.withCollisionCount(instance.getCollisionCount()); + this.withConditions(instance.getConditions()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withReadyReplicas(instance.getReadyReplicas()); + this.withReplicas(instance.getReplicas()); + this.withTerminatingReplicas(instance.getTerminatingReplicas()); + this.withUnavailableReplicas(instance.getUnavailableReplicas()); + this.withUpdatedReplicas(instance.getUpdatedReplicas()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1DeploymentCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1DeploymentCondition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -286,127 +162,185 @@ public ConditionsNested editMatchingCondition(Predicate predicate) { + for (V1DeploymentConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public Integer getUnavailableReplicas() { - return this.unavailableReplicas; + public boolean hasObservedGeneration() { + return this.observedGeneration != null; } - public A withUnavailableReplicas(Integer unavailableReplicas) { - this.unavailableReplicas = unavailableReplicas; - return (A) this; + public boolean hasReadyReplicas() { + return this.readyReplicas != null; } - public boolean hasUnavailableReplicas() { - return this.unavailableReplicas != null; + public boolean hasReplicas() { + return this.replicas != null; } - public Integer getUpdatedReplicas() { - return this.updatedReplicas; + public boolean hasTerminatingReplicas() { + return this.terminatingReplicas != null; } - public A withUpdatedReplicas(Integer updatedReplicas) { - this.updatedReplicas = updatedReplicas; - return (A) this; + public boolean hasUnavailableReplicas() { + return this.unavailableReplicas != null; } public boolean hasUpdatedReplicas() { return this.updatedReplicas != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1DeploymentStatusFluent that = (V1DeploymentStatusFluent) o; - if (!(Objects.equals(availableReplicas, that.availableReplicas))) { - return false; - } - if (!(Objects.equals(collisionCount, that.collisionCount))) { - return false; - } - if (!(Objects.equals(conditions, that.conditions))) { - return false; - } - if (!(Objects.equals(observedGeneration, that.observedGeneration))) { - return false; + public int hashCode() { + return Objects.hash(availableReplicas, collisionCount, conditions, observedGeneration, readyReplicas, replicas, terminatingReplicas, unavailableReplicas, updatedReplicas); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; } - if (!(Objects.equals(readyReplicas, that.readyReplicas))) { - return false; + for (V1DeploymentCondition item : items) { + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } - if (!(Objects.equals(replicas, that.replicas))) { - return false; + return (A) this; + } + + public A removeFromConditions(V1DeploymentCondition... items) { + if (this.conditions == null) { + return (A) this; } - if (!(Objects.equals(terminatingReplicas, that.terminatingReplicas))) { - return false; + for (V1DeploymentCondition item : items) { + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } - if (!(Objects.equals(unavailableReplicas, that.unavailableReplicas))) { - return false; + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; } - if (!(Objects.equals(updatedReplicas, that.updatedReplicas))) { - return false; + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1DeploymentConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(availableReplicas, collisionCount, conditions, observedGeneration, readyReplicas, replicas, terminatingReplicas, unavailableReplicas, updatedReplicas); + public ConditionsNested setNewConditionLike(int index,V1DeploymentCondition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1DeploymentCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; } public String toString() { @@ -459,14 +393,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAvailableReplicas(Integer availableReplicas) { + this.availableReplicas = availableReplicas; + return (A) this; + } + + public A withCollisionCount(Integer collisionCount) { + this.collisionCount = collisionCount; + return (A) this; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1DeploymentCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1DeploymentCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1DeploymentCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public A withReadyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; + return (A) this; + } + + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; + } + + public A withTerminatingReplicas(Integer terminatingReplicas) { + this.terminatingReplicas = terminatingReplicas; + return (A) this; + } + + public A withUnavailableReplicas(Integer unavailableReplicas) { + this.unavailableReplicas = unavailableReplicas; + return (A) this; + } + + public A withUpdatedReplicas(Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; + return (A) this; + } public class ConditionsNested extends V1DeploymentConditionFluent> implements Nested{ + + V1DeploymentConditionBuilder builder; + int index; + ConditionsNested(int index,V1DeploymentCondition item) { this.index = index; this.builder = new V1DeploymentConditionBuilder(this, item); } - V1DeploymentConditionBuilder builder; - int index; - + public N and() { return (N) V1DeploymentStatusFluent.this.setToConditions(index, builder.build()); } @@ -475,7 +479,5 @@ public N endCondition() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java index 2b42864bee..27dfc97a4c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeploymentStrategyBuilder extends V1DeploymentStrategyFluent implements VisitableBuilder{ + + V1DeploymentStrategyFluent fluent; + public V1DeploymentStrategyBuilder() { this(new V1DeploymentStrategy()); } @@ -11,17 +14,16 @@ public V1DeploymentStrategyBuilder(V1DeploymentStrategyFluent fluent) { this(fluent, new V1DeploymentStrategy()); } - public V1DeploymentStrategyBuilder(V1DeploymentStrategyFluent fluent,V1DeploymentStrategy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeploymentStrategyBuilder(V1DeploymentStrategy instance) { this.fluent = this; this.copyInstance(instance); } - V1DeploymentStrategyFluent fluent; + public V1DeploymentStrategyBuilder(V1DeploymentStrategyFluent fluent,V1DeploymentStrategy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeploymentStrategy build() { V1DeploymentStrategy buildable = new V1DeploymentStrategy(); buildable.setRollingUpdate(fluent.buildRollingUpdate()); @@ -29,5 +31,4 @@ public V1DeploymentStrategy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java index 7d03192e4b..f86690de9a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java @@ -1,27 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeploymentStrategyFluent> extends BaseFluent{ + + private V1RollingUpdateDeploymentBuilder rollingUpdate; + private String type; + public V1DeploymentStrategyFluent() { } public V1DeploymentStrategyFluent(V1DeploymentStrategy instance) { this.copyInstance(instance); } - private V1RollingUpdateDeploymentBuilder rollingUpdate; - private String type; + + public V1RollingUpdateDeployment buildRollingUpdate() { + return this.rollingUpdate != null ? this.rollingUpdate.build() : null; + } protected void copyInstance(V1DeploymentStrategy instance) { instance = instance != null ? instance : new V1DeploymentStrategy(); @@ -31,38 +37,6 @@ protected void copyInstance(V1DeploymentStrategy instance) { } } - public V1RollingUpdateDeployment buildRollingUpdate() { - return this.rollingUpdate != null ? this.rollingUpdate.build() : null; - } - - public A withRollingUpdate(V1RollingUpdateDeployment rollingUpdate) { - this._visitables.remove("rollingUpdate"); - if (rollingUpdate != null) { - this.rollingUpdate = new V1RollingUpdateDeploymentBuilder(rollingUpdate); - this._visitables.get("rollingUpdate").add(this.rollingUpdate); - } else { - this.rollingUpdate = null; - this._visitables.get("rollingUpdate").remove(this.rollingUpdate); - } - return (A) this; - } - - public boolean hasRollingUpdate() { - return this.rollingUpdate != null; - } - - public RollingUpdateNested withNewRollingUpdate() { - return new RollingUpdateNested(null); - } - - public RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateDeployment item) { - return new RollingUpdateNested(item); - } - - public RollingUpdateNested editRollingUpdate() { - return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(null)); - } - public RollingUpdateNested editOrNewRollingUpdate() { return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(new V1RollingUpdateDeploymentBuilder().build())); } @@ -71,17 +45,8 @@ public RollingUpdateNested editOrNewRollingUpdateLike(V1RollingUpdateDeployme return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(item)); } - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; + public RollingUpdateNested editRollingUpdate() { + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(null)); } public boolean equals(Object o) { @@ -104,6 +69,18 @@ public boolean equals(Object o) { return true; } + public String getType() { + return this.type; + } + + public boolean hasRollingUpdate() { + return this.rollingUpdate != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(rollingUpdate, type); } @@ -123,12 +100,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public RollingUpdateNested withNewRollingUpdate() { + return new RollingUpdateNested(null); + } + + public RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateDeployment item) { + return new RollingUpdateNested(item); + } + + public A withRollingUpdate(V1RollingUpdateDeployment rollingUpdate) { + this._visitables.remove("rollingUpdate"); + if (rollingUpdate != null) { + this.rollingUpdate = new V1RollingUpdateDeploymentBuilder(rollingUpdate); + this._visitables.get("rollingUpdate").add(this.rollingUpdate); + } else { + this.rollingUpdate = null; + this._visitables.get("rollingUpdate").remove(this.rollingUpdate); + } + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } public class RollingUpdateNested extends V1RollingUpdateDeploymentFluent> implements Nested{ + + V1RollingUpdateDeploymentBuilder builder; + RollingUpdateNested(V1RollingUpdateDeployment item) { this.builder = new V1RollingUpdateDeploymentBuilder(this, item); } - V1RollingUpdateDeploymentBuilder builder; - + public N and() { return (N) V1DeploymentStrategyFluent.this.withRollingUpdate(builder.build()); } @@ -137,7 +141,5 @@ public N endRollingUpdate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationBuilder.java index 71f1d58258..d59f69ac46 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceAllocationConfigurationBuilder extends V1DeviceAllocationConfigurationFluent implements VisitableBuilder{ + + V1DeviceAllocationConfigurationFluent fluent; + public V1DeviceAllocationConfigurationBuilder() { this(new V1DeviceAllocationConfiguration()); } @@ -11,17 +14,16 @@ public V1DeviceAllocationConfigurationBuilder(V1DeviceAllocationConfigurationFlu this(fluent, new V1DeviceAllocationConfiguration()); } - public V1DeviceAllocationConfigurationBuilder(V1DeviceAllocationConfigurationFluent fluent,V1DeviceAllocationConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceAllocationConfigurationBuilder(V1DeviceAllocationConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceAllocationConfigurationFluent fluent; + public V1DeviceAllocationConfigurationBuilder(V1DeviceAllocationConfigurationFluent fluent,V1DeviceAllocationConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeviceAllocationConfiguration build() { V1DeviceAllocationConfiguration buildable = new V1DeviceAllocationConfiguration(); buildable.setOpaque(fluent.buildOpaque()); @@ -30,5 +32,4 @@ public V1DeviceAllocationConfiguration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationFluent.java index 6691b0b032..38ff1b8f51 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationFluent.java @@ -1,68 +1,74 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeviceAllocationConfigurationFluent> extends BaseFluent{ + + private V1OpaqueDeviceConfigurationBuilder opaque; + private List requests; + private String source; + public V1DeviceAllocationConfigurationFluent() { } public V1DeviceAllocationConfigurationFluent(V1DeviceAllocationConfiguration instance) { this.copyInstance(instance); } - private V1OpaqueDeviceConfigurationBuilder opaque; - private List requests; - private String source; - - protected void copyInstance(V1DeviceAllocationConfiguration instance) { - instance = instance != null ? instance : new V1DeviceAllocationConfiguration(); - if (instance != null) { - this.withOpaque(instance.getOpaque()); - this.withRequests(instance.getRequests()); - this.withSource(instance.getSource()); + + public A addAllToRequests(Collection items) { + if (this.requests == null) { + this.requests = new ArrayList(); } + for (String item : items) { + this.requests.add(item); + } + return (A) this; } - public V1OpaqueDeviceConfiguration buildOpaque() { - return this.opaque != null ? this.opaque.build() : null; - } - - public A withOpaque(V1OpaqueDeviceConfiguration opaque) { - this._visitables.remove("opaque"); - if (opaque != null) { - this.opaque = new V1OpaqueDeviceConfigurationBuilder(opaque); - this._visitables.get("opaque").add(this.opaque); - } else { - this.opaque = null; - this._visitables.get("opaque").remove(this.opaque); + public A addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); } return (A) this; } - public boolean hasOpaque() { - return this.opaque != null; + public A addToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.add(index, item); + return (A) this; } - public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); + public V1OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; } - public OpaqueNested withNewOpaqueLike(V1OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); + protected void copyInstance(V1DeviceAllocationConfiguration instance) { + instance = instance != null ? instance : new V1DeviceAllocationConfiguration(); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + this.withSource(instance.getSource()); + } } public OpaqueNested editOpaque() { @@ -77,68 +83,27 @@ public OpaqueNested editOrNewOpaqueLike(V1OpaqueDeviceConfiguration item) { return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); } - public A addToRequests(int index,String item) { - if (this.requests == null) { - this.requests = new ArrayList(); - } - this.requests.add(index, item); - return (A) this; - } - - public A setToRequests(int index,String item) { - if (this.requests == null) { - this.requests = new ArrayList(); - } - this.requests.set(index, item); - return (A) this; - } - - public A addToRequests(String... items) { - if (this.requests == null) { - this.requests = new ArrayList(); - } - for (String item : items) { - this.requests.add(item); - } - return (A) this; - } - - public A addAllToRequests(Collection items) { - if (this.requests == null) { - this.requests = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.requests.add(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A removeFromRequests(String... items) { - if (this.requests == null) { - return (A) this; + if (!(super.equals(o))) { + return false; } - for (String item : items) { - this.requests.remove(item); + V1DeviceAllocationConfigurationFluent that = (V1DeviceAllocationConfigurationFluent) o; + if (!(Objects.equals(opaque, that.opaque))) { + return false; } - return (A) this; - } - - public A removeAllFromRequests(Collection items) { - if (this.requests == null) { - return (A) this; + if (!(Objects.equals(requests, that.requests))) { + return false; } - for (String item : items) { - this.requests.remove(item); + if (!(Objects.equals(source, that.source))) { + return false; } - return (A) this; - } - - public List getRequests() { - return this.requests; - } - - public String getRequest(int index) { - return this.requests.get(index); + return true; } public String getFirstRequest() { @@ -158,6 +123,18 @@ public String getMatchingRequest(Predicate predicate) { return null; } + public String getRequest(int index) { + return this.requests.get(index); + } + + public List getRequests() { + return this.requests; + } + + public String getSource() { + return this.source; + } + public boolean hasMatchingRequest(Predicate predicate) { for (String item : requests) { if (predicate.test(item)) { @@ -167,73 +144,48 @@ public boolean hasMatchingRequest(Predicate predicate) { return false; } - public A withRequests(List requests) { - if (requests != null) { - this.requests = new ArrayList(); - for (String item : requests) { - this.addToRequests(item); - } - } else { - this.requests = null; - } - return (A) this; - } - - public A withRequests(String... requests) { - if (this.requests != null) { - this.requests.clear(); - _visitables.remove("requests"); - } - if (requests != null) { - for (String item : requests) { - this.addToRequests(item); - } - } - return (A) this; + public boolean hasOpaque() { + return this.opaque != null; } public boolean hasRequests() { return this.requests != null && !(this.requests.isEmpty()); } - public String getSource() { - return this.source; - } - - public A withSource(String source) { - this.source = source; - return (A) this; - } - public boolean hasSource() { return this.source != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; + public int hashCode() { + return Objects.hash(opaque, requests, source); + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; } - V1DeviceAllocationConfigurationFluent that = (V1DeviceAllocationConfigurationFluent) o; - if (!(Objects.equals(opaque, that.opaque))) { - return false; + for (String item : items) { + this.requests.remove(item); } - if (!(Objects.equals(requests, that.requests))) { - return false; + return (A) this; + } + + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; } - if (!(Objects.equals(source, that.source))) { - return false; + for (String item : items) { + this.requests.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(opaque, requests, source); + public A setToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.set(index, item); + return (A) this; } public String toString() { @@ -256,12 +208,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public A withOpaque(V1OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public A withSource(String source) { + this.source = source; + return (A) this; + } public class OpaqueNested extends V1OpaqueDeviceConfigurationFluent> implements Nested{ + + V1OpaqueDeviceConfigurationBuilder builder; + OpaqueNested(V1OpaqueDeviceConfiguration item) { this.builder = new V1OpaqueDeviceConfigurationBuilder(this, item); } - V1OpaqueDeviceConfigurationBuilder builder; - + public N and() { return (N) V1DeviceAllocationConfigurationFluent.this.withOpaque(builder.build()); } @@ -270,7 +274,5 @@ public N endOpaque() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultBuilder.java index cf035a9344..74001702bf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceAllocationResultBuilder extends V1DeviceAllocationResultFluent implements VisitableBuilder{ + + V1DeviceAllocationResultFluent fluent; + public V1DeviceAllocationResultBuilder() { this(new V1DeviceAllocationResult()); } @@ -11,17 +14,16 @@ public V1DeviceAllocationResultBuilder(V1DeviceAllocationResultFluent fluent) this(fluent, new V1DeviceAllocationResult()); } - public V1DeviceAllocationResultBuilder(V1DeviceAllocationResultFluent fluent,V1DeviceAllocationResult instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceAllocationResultBuilder(V1DeviceAllocationResult instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceAllocationResultFluent fluent; + public V1DeviceAllocationResultBuilder(V1DeviceAllocationResultFluent fluent,V1DeviceAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeviceAllocationResult build() { V1DeviceAllocationResult buildable = new V1DeviceAllocationResult(); buildable.setConfig(fluent.buildConfig()); @@ -29,5 +31,4 @@ public V1DeviceAllocationResult build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultFluent.java index 4fe89db1e0..8bda7081dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultFluent.java @@ -1,71 +1,75 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeviceAllocationResultFluent> extends BaseFluent{ + + private ArrayList config; + private ArrayList results; + public V1DeviceAllocationResultFluent() { } public V1DeviceAllocationResultFluent(V1DeviceAllocationResult instance) { this.copyInstance(instance); } - private ArrayList config; - private ArrayList results; - - protected void copyInstance(V1DeviceAllocationResult instance) { - instance = instance != null ? instance : new V1DeviceAllocationResult(); - if (instance != null) { - this.withConfig(instance.getConfig()); - this.withResults(instance.getResults()); - } - } - - public A addToConfig(int index,V1DeviceAllocationConfiguration item) { + + public A addAllToConfig(Collection items) { if (this.config == null) { this.config = new ArrayList(); } - V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { + for (V1DeviceAllocationConfiguration item : items) { + V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); _visitables.get("config").add(builder); - config.add(index, builder); + this.config.add(builder); } return (A) this; } - public A setToConfig(int index,V1DeviceAllocationConfiguration item) { - if (this.config == null) { - this.config = new ArrayList(); + public A addAllToResults(Collection items) { + if (this.results == null) { + this.results = new ArrayList(); } - V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { - _visitables.get("config").add(builder); - config.set(index, builder); + for (V1DeviceRequestAllocationResult item : items) { + V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").add(builder); + this.results.add(builder); } return (A) this; } + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1DeviceAllocationConfiguration item) { + return new ConfigNested(-1, item); + } + + public ResultsNested addNewResult() { + return new ResultsNested(-1, null); + } + + public ResultsNested addNewResultLike(V1DeviceRequestAllocationResult item) { + return new ResultsNested(-1, item); + } + public A addToConfig(V1DeviceAllocationConfiguration... items) { if (this.config == null) { this.config = new ArrayList(); @@ -78,54 +82,44 @@ public A addToConfig(V1DeviceAllocationConfiguration... items) { return (A) this; } - public A addAllToConfig(Collection items) { + public A addToConfig(int index,V1DeviceAllocationConfiguration item) { if (this.config == null) { this.config = new ArrayList(); } - for (V1DeviceAllocationConfiguration item : items) { - V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); + V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); - this.config.add(builder); - } - return (A) this; - } - - public A removeFromConfig(V1DeviceAllocationConfiguration... items) { - if (this.config == null) { - return (A) this; - } - for (V1DeviceAllocationConfiguration item : items) { - V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); - _visitables.get("config").remove(builder); - this.config.remove(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); } return (A) this; } - public A removeAllFromConfig(Collection items) { - if (this.config == null) { - return (A) this; + public A addToResults(V1DeviceRequestAllocationResult... items) { + if (this.results == null) { + this.results = new ArrayList(); } - for (V1DeviceAllocationConfiguration item : items) { - V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); - _visitables.get("config").remove(builder); - this.config.remove(builder); + for (V1DeviceRequestAllocationResult item : items) { + V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").add(builder); + this.results.add(builder); } return (A) this; } - public A removeMatchingFromConfig(Predicate predicate) { - if (config == null) { - return (A) this; + public A addToResults(int index,V1DeviceRequestAllocationResult item) { + if (this.results == null) { + this.results = new ArrayList(); } - Iterator each = config.iterator(); - List visitables = _visitables.get("config"); - while (each.hasNext()) { - V1DeviceAllocationConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.add(index, builder); } return (A) this; } @@ -142,10 +136,18 @@ public V1DeviceAllocationConfiguration buildFirstConfig() { return this.config.get(0).build(); } + public V1DeviceRequestAllocationResult buildFirstResult() { + return this.results.get(0).build(); + } + public V1DeviceAllocationConfiguration buildLastConfig() { return this.config.get(config.size() - 1).build(); } + public V1DeviceRequestAllocationResult buildLastResult() { + return this.results.get(results.size() - 1).build(); + } + public V1DeviceAllocationConfiguration buildMatchingConfig(Predicate predicate) { for (V1DeviceAllocationConfigurationBuilder item : config) { if (predicate.test(item)) { @@ -155,61 +157,33 @@ public V1DeviceAllocationConfiguration buildMatchingConfig(Predicate predicate) { - for (V1DeviceAllocationConfigurationBuilder item : config) { + public V1DeviceRequestAllocationResult buildMatchingResult(Predicate predicate) { + for (V1DeviceRequestAllocationResultBuilder item : results) { if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConfig(List config) { - if (this.config != null) { - this._visitables.get("config").clear(); - } - if (config != null) { - this.config = new ArrayList(); - for (V1DeviceAllocationConfiguration item : config) { - this.addToConfig(item); + return item.build(); } - } else { - this.config = null; - } - return (A) this; - } - - public A withConfig(V1DeviceAllocationConfiguration... config) { - if (this.config != null) { - this.config.clear(); - _visitables.remove("config"); - } - if (config != null) { - for (V1DeviceAllocationConfiguration item : config) { - this.addToConfig(item); } - } - return (A) this; - } - - public boolean hasConfig() { - return this.config != null && !(this.config.isEmpty()); + return null; } - public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); + public V1DeviceRequestAllocationResult buildResult(int index) { + return this.results.get(index).build(); } - public ConfigNested addNewConfigLike(V1DeviceAllocationConfiguration item) { - return new ConfigNested(-1, item); + public List buildResults() { + return this.results != null ? build(results) : null; } - public ConfigNested setNewConfigLike(int index,V1DeviceAllocationConfiguration item) { - return new ConfigNested(index, item); + protected void copyInstance(V1DeviceAllocationResult instance) { + instance = instance != null ? instance : new V1DeviceAllocationResult(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withResults(instance.getResults()); + } } public ConfigNested editConfig(int index) { - if (index <= config.size()) { + if (config.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); } return this.setNewConfigLike(index, this.buildConfig(index)); @@ -222,6 +196,13 @@ public ConfigNested editFirstConfig() { return this.setNewConfigLike(0, this.buildConfig(0)); } + public ResultsNested editFirstResult() { + if (results.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "results")); + } + return this.setNewResultLike(0, this.buildResult(0)); + } + public ConfigNested editLastConfig() { int index = config.size() - 1; if (index < 0) { @@ -230,6 +211,14 @@ public ConfigNested editLastConfig() { return this.setNewConfigLike(index, this.buildConfig(index)); } + public ResultsNested editLastResult() { + int index = results.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "results")); + } + return this.setNewResultLike(index, this.buildResult(index)); + } + public ConfigNested editMatchingConfig(Predicate predicate) { int index = -1; for (int i = 0;i < config.size();i++) { @@ -244,61 +233,90 @@ public ConfigNested editMatchingConfig(Predicate editMatchingResult(Predicate predicate) { + int index = -1; + for (int i = 0;i < results.size();i++) { + if (predicate.test(results.get(i))) { + index = i; + break; + } } - V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { - _visitables.get("results").add(builder); - results.add(builder); - } else { - _visitables.get("results").add(builder); - results.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "results")); } - return (A) this; + return this.setNewResultLike(index, this.buildResult(index)); } - public A setToResults(int index,V1DeviceRequestAllocationResult item) { - if (this.results == null) { - this.results = new ArrayList(); - } - V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { - _visitables.get("results").add(builder); - results.add(builder); - } else { - _visitables.get("results").add(builder); - results.set(index, builder); + public ResultsNested editResult(int index) { + if (results.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "results")); } - return (A) this; + return this.setNewResultLike(index, this.buildResult(index)); } - public A addToResults(V1DeviceRequestAllocationResult... items) { - if (this.results == null) { - this.results = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - for (V1DeviceRequestAllocationResult item : items) { - V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); - _visitables.get("results").add(builder); - this.results.add(builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1DeviceAllocationResultFluent that = (V1DeviceAllocationResultFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(results, that.results))) { + return false; + } + return true; } - public A addAllToResults(Collection items) { - if (this.results == null) { - this.results = new ArrayList(); + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResult(Predicate predicate) { + for (V1DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResults() { + return this.results != null && !(this.results.isEmpty()); + } + + public int hashCode() { + return Objects.hash(config, results); + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) { + return (A) this; } - for (V1DeviceRequestAllocationResult item : items) { - V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); - _visitables.get("results").add(builder); - this.results.add(builder); + for (V1DeviceAllocationConfiguration item : items) { + V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); } return (A) this; } - public A removeFromResults(V1DeviceRequestAllocationResult... items) { + public A removeAllFromResults(Collection items) { if (this.results == null) { return (A) this; } @@ -310,7 +328,19 @@ public A removeFromResults(V1DeviceRequestAllocationResult... items) { return (A) this; } - public A removeAllFromResults(Collection items) { + public A removeFromConfig(V1DeviceAllocationConfiguration... items) { + if (this.config == null) { + return (A) this; + } + for (V1DeviceAllocationConfiguration item : items) { + V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; + } + + public A removeFromResults(V1DeviceRequestAllocationResult... items) { if (this.results == null) { return (A) this; } @@ -322,6 +352,22 @@ public A removeAllFromResults(Collection items) return (A) this; } + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1DeviceAllocationConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + public A removeMatchingFromResults(Predicate predicate) { if (results == null) { return (A) this; @@ -338,38 +384,86 @@ public A removeMatchingFromResults(Predicate buildResults() { - return this.results != null ? build(results) : null; + public ConfigNested setNewConfigLike(int index,V1DeviceAllocationConfiguration item) { + return new ConfigNested(index, item); } - public V1DeviceRequestAllocationResult buildResult(int index) { - return this.results.get(index).build(); + public ResultsNested setNewResultLike(int index,V1DeviceRequestAllocationResult item) { + return new ResultsNested(index, item); } - public V1DeviceRequestAllocationResult buildFirstResult() { - return this.results.get(0).build(); + public A setToConfig(int index,V1DeviceAllocationConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); + } + V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A) this; } - public V1DeviceRequestAllocationResult buildLastResult() { - return this.results.get(results.size() - 1).build(); + public A setToResults(int index,V1DeviceRequestAllocationResult item) { + if (this.results == null) { + this.results = new ArrayList(); + } + V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.set(index, builder); + } + return (A) this; } - public V1DeviceRequestAllocationResult buildMatchingResult(Predicate predicate) { - for (V1DeviceRequestAllocationResultBuilder item : results) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(results == null) && !(results.isEmpty())) { + sb.append("results:"); + sb.append(results); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingResult(Predicate predicate) { - for (V1DeviceRequestAllocationResultBuilder item : results) { - if (predicate.test(item)) { - return true; + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1DeviceAllocationConfiguration item : config) { + this.addToConfig(item); } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(V1DeviceAllocationConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1DeviceAllocationConfiguration item : config) { + this.addToConfig(item); } - return false; + } + return (A) this; } public A withResults(List results) { @@ -399,106 +493,16 @@ public A withResults(V1DeviceRequestAllocationResult... results) { } return (A) this; } + public class ConfigNested extends V1DeviceAllocationConfigurationFluent> implements Nested{ - public boolean hasResults() { - return this.results != null && !(this.results.isEmpty()); - } - - public ResultsNested addNewResult() { - return new ResultsNested(-1, null); - } - - public ResultsNested addNewResultLike(V1DeviceRequestAllocationResult item) { - return new ResultsNested(-1, item); - } - - public ResultsNested setNewResultLike(int index,V1DeviceRequestAllocationResult item) { - return new ResultsNested(index, item); - } - - public ResultsNested editResult(int index) { - if (index <= results.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "results")); - } - return this.setNewResultLike(index, this.buildResult(index)); - } - - public ResultsNested editFirstResult() { - if (results.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "results")); - } - return this.setNewResultLike(0, this.buildResult(0)); - } - - public ResultsNested editLastResult() { - int index = results.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "results")); - } - return this.setNewResultLike(index, this.buildResult(index)); - } - - public ResultsNested editMatchingResult(Predicate predicate) { - int index = -1; - for (int i = 0;i < results.size();i++) { - if (predicate.test(results.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "results")); - } - return this.setNewResultLike(index, this.buildResult(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1DeviceAllocationResultFluent that = (V1DeviceAllocationResultFluent) o; - if (!(Objects.equals(config, that.config))) { - return false; - } - if (!(Objects.equals(results, that.results))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(config, results); - } + V1DeviceAllocationConfigurationBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(config == null) && !(config.isEmpty())) { - sb.append("config:"); - sb.append(config); - sb.append(","); - } - if (!(results == null) && !(results.isEmpty())) { - sb.append("results:"); - sb.append(results); - } - sb.append("}"); - return sb.toString(); - } - public class ConfigNested extends V1DeviceAllocationConfigurationFluent> implements Nested{ ConfigNested(int index,V1DeviceAllocationConfiguration item) { this.index = index; this.builder = new V1DeviceAllocationConfigurationBuilder(this, item); } - V1DeviceAllocationConfigurationBuilder builder; - int index; - + public N and() { return (N) V1DeviceAllocationResultFluent.this.setToConfig(index, builder.build()); } @@ -507,16 +511,17 @@ public N endConfig() { return and(); } - } public class ResultsNested extends V1DeviceRequestAllocationResultFluent> implements Nested{ + + V1DeviceRequestAllocationResultBuilder builder; + int index; + ResultsNested(int index,V1DeviceRequestAllocationResult item) { this.index = index; this.builder = new V1DeviceRequestAllocationResultBuilder(this, item); } - V1DeviceRequestAllocationResultBuilder builder; - int index; - + public N and() { return (N) V1DeviceAllocationResultFluent.this.setToResults(index, builder.build()); } @@ -525,7 +530,5 @@ public N endResult() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeBuilder.java index 308e61c005..251182d6a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceAttributeBuilder extends V1DeviceAttributeFluent implements VisitableBuilder{ + + V1DeviceAttributeFluent fluent; + public V1DeviceAttributeBuilder() { this(new V1DeviceAttribute()); } @@ -11,17 +14,16 @@ public V1DeviceAttributeBuilder(V1DeviceAttributeFluent fluent) { this(fluent, new V1DeviceAttribute()); } - public V1DeviceAttributeBuilder(V1DeviceAttributeFluent fluent,V1DeviceAttribute instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceAttributeBuilder(V1DeviceAttribute instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceAttributeFluent fluent; + public V1DeviceAttributeBuilder(V1DeviceAttributeFluent fluent,V1DeviceAttribute instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeviceAttribute build() { V1DeviceAttribute buildable = new V1DeviceAttribute(); buildable.setBool(fluent.getBool()); @@ -31,5 +33,4 @@ public V1DeviceAttribute build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeFluent.java index f8742c2db8..bf8f932561 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeviceAttributeFluent> extends BaseFluent{ + + private Long _int; + private Boolean bool; + private String string; + private String version; + public V1DeviceAttributeFluent() { } public V1DeviceAttributeFluent(V1DeviceAttribute instance) { this.copyInstance(instance); } - private Boolean bool; - private Long _int; - private String string; - private String version; - + protected void copyInstance(V1DeviceAttribute instance) { instance = instance != null ? instance : new V1DeviceAttribute(); if (instance != null) { @@ -35,58 +37,6 @@ protected void copyInstance(V1DeviceAttribute instance) { } } - public Boolean getBool() { - return this.bool; - } - - public A withBool(Boolean bool) { - this.bool = bool; - return (A) this; - } - - public boolean hasBool() { - return this.bool != null; - } - - public Long getInt() { - return this._int; - } - - public A withInt(Long _int) { - this._int = _int; - return (A) this; - } - - public boolean hasInt() { - return this._int != null; - } - - public String getString() { - return this.string; - } - - public A withString(String string) { - this.string = string; - return (A) this; - } - - public boolean hasString() { - return this.string != null; - } - - public String getVersion() { - return this.version; - } - - public A withVersion(String version) { - this.version = version; - return (A) this; - } - - public boolean hasVersion() { - return this.version != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -113,6 +63,38 @@ public boolean equals(Object o) { return true; } + public Boolean getBool() { + return this.bool; + } + + public Long getInt() { + return this._int; + } + + public String getString() { + return this.string; + } + + public String getVersion() { + return this.version; + } + + public boolean hasBool() { + return this.bool != null; + } + + public boolean hasInt() { + return this._int != null; + } + + public boolean hasString() { + return this.string != null; + } + + public boolean hasVersion() { + return this.version != null; + } + public int hashCode() { return Objects.hash(bool, _int, string, version); } @@ -147,5 +129,24 @@ public A withBool() { return withBool(true); } - + public A withBool(Boolean bool) { + this.bool = bool; + return (A) this; + } + + public A withInt(Long _int) { + this._int = _int; + return (A) this; + } + + public A withString(String string) { + this.string = string; + return (A) this; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceBuilder.java index 229f34bdbc..004fff2e93 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceBuilder extends V1DeviceFluent implements VisitableBuilder{ + + V1DeviceFluent fluent; + public V1DeviceBuilder() { this(new V1Device()); } @@ -11,17 +14,16 @@ public V1DeviceBuilder(V1DeviceFluent fluent) { this(fluent, new V1Device()); } - public V1DeviceBuilder(V1DeviceFluent fluent,V1Device instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceBuilder(V1Device instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceFluent fluent; + public V1DeviceBuilder(V1DeviceFluent fluent,V1Device instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Device build() { V1Device buildable = new V1Device(); buildable.setAllNodes(fluent.getAllNodes()); @@ -39,5 +41,4 @@ public V1Device build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityBuilder.java index ea92be48f1..3a6cebf65e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceCapacityBuilder extends V1DeviceCapacityFluent implements VisitableBuilder{ + + V1DeviceCapacityFluent fluent; + public V1DeviceCapacityBuilder() { this(new V1DeviceCapacity()); } @@ -11,17 +14,16 @@ public V1DeviceCapacityBuilder(V1DeviceCapacityFluent fluent) { this(fluent, new V1DeviceCapacity()); } - public V1DeviceCapacityBuilder(V1DeviceCapacityFluent fluent,V1DeviceCapacity instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceCapacityBuilder(V1DeviceCapacity instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceCapacityFluent fluent; + public V1DeviceCapacityBuilder(V1DeviceCapacityFluent fluent,V1DeviceCapacity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeviceCapacity build() { V1DeviceCapacity buildable = new V1DeviceCapacity(); buildable.setRequestPolicy(fluent.buildRequestPolicy()); @@ -29,5 +31,4 @@ public V1DeviceCapacity build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityFluent.java index 3a2c7db360..8d9c2d49fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityFluent.java @@ -1,28 +1,34 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import io.kubernetes.client.custom.Quantity; -import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeviceCapacityFluent> extends BaseFluent{ + + private V1CapacityRequestPolicyBuilder requestPolicy; + private Quantity value; + public V1DeviceCapacityFluent() { } public V1DeviceCapacityFluent(V1DeviceCapacity instance) { this.copyInstance(instance); } - private V1CapacityRequestPolicyBuilder requestPolicy; - private Quantity value; + + public V1CapacityRequestPolicy buildRequestPolicy() { + return this.requestPolicy != null ? this.requestPolicy.build() : null; + } protected void copyInstance(V1DeviceCapacity instance) { instance = instance != null ? instance : new V1DeviceCapacity(); @@ -32,38 +38,6 @@ protected void copyInstance(V1DeviceCapacity instance) { } } - public V1CapacityRequestPolicy buildRequestPolicy() { - return this.requestPolicy != null ? this.requestPolicy.build() : null; - } - - public A withRequestPolicy(V1CapacityRequestPolicy requestPolicy) { - this._visitables.remove("requestPolicy"); - if (requestPolicy != null) { - this.requestPolicy = new V1CapacityRequestPolicyBuilder(requestPolicy); - this._visitables.get("requestPolicy").add(this.requestPolicy); - } else { - this.requestPolicy = null; - this._visitables.get("requestPolicy").remove(this.requestPolicy); - } - return (A) this; - } - - public boolean hasRequestPolicy() { - return this.requestPolicy != null; - } - - public RequestPolicyNested withNewRequestPolicy() { - return new RequestPolicyNested(null); - } - - public RequestPolicyNested withNewRequestPolicyLike(V1CapacityRequestPolicy item) { - return new RequestPolicyNested(item); - } - - public RequestPolicyNested editRequestPolicy() { - return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(null)); - } - public RequestPolicyNested editOrNewRequestPolicy() { return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(new V1CapacityRequestPolicyBuilder().build())); } @@ -72,21 +46,8 @@ public RequestPolicyNested editOrNewRequestPolicyLike(V1CapacityRequestPolicy return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(item)); } - public Quantity getValue() { - return this.value; - } - - public A withValue(Quantity value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - - public A withNewValue(String value) { - return (A) this.withValue(new Quantity(value)); + public RequestPolicyNested editRequestPolicy() { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(null)); } public boolean equals(Object o) { @@ -109,6 +70,18 @@ public boolean equals(Object o) { return true; } + public Quantity getValue() { + return this.value; + } + + public boolean hasRequestPolicy() { + return this.requestPolicy != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(requestPolicy, value); } @@ -128,12 +101,43 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public RequestPolicyNested withNewRequestPolicy() { + return new RequestPolicyNested(null); + } + + public RequestPolicyNested withNewRequestPolicyLike(V1CapacityRequestPolicy item) { + return new RequestPolicyNested(item); + } + + public A withNewValue(String value) { + return (A) this.withValue(new Quantity(value)); + } + + public A withRequestPolicy(V1CapacityRequestPolicy requestPolicy) { + this._visitables.remove("requestPolicy"); + if (requestPolicy != null) { + this.requestPolicy = new V1CapacityRequestPolicyBuilder(requestPolicy); + this._visitables.get("requestPolicy").add(this.requestPolicy); + } else { + this.requestPolicy = null; + this._visitables.get("requestPolicy").remove(this.requestPolicy); + } + return (A) this; + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } public class RequestPolicyNested extends V1CapacityRequestPolicyFluent> implements Nested{ + + V1CapacityRequestPolicyBuilder builder; + RequestPolicyNested(V1CapacityRequestPolicy item) { this.builder = new V1CapacityRequestPolicyBuilder(this, item); } - V1CapacityRequestPolicyBuilder builder; - + public N and() { return (N) V1DeviceCapacityFluent.this.withRequestPolicy(builder.build()); } @@ -142,7 +146,5 @@ public N endRequestPolicy() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimBuilder.java index 5f7cfdbb23..aecbb42190 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceClaimBuilder extends V1DeviceClaimFluent implements VisitableBuilder{ + + V1DeviceClaimFluent fluent; + public V1DeviceClaimBuilder() { this(new V1DeviceClaim()); } @@ -11,17 +14,16 @@ public V1DeviceClaimBuilder(V1DeviceClaimFluent fluent) { this(fluent, new V1DeviceClaim()); } - public V1DeviceClaimBuilder(V1DeviceClaimFluent fluent,V1DeviceClaim instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceClaimBuilder(V1DeviceClaim instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceClaimFluent fluent; + public V1DeviceClaimBuilder(V1DeviceClaimFluent fluent,V1DeviceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeviceClaim build() { V1DeviceClaim buildable = new V1DeviceClaim(); buildable.setConfig(fluent.buildConfig()); @@ -30,5 +32,4 @@ public V1DeviceClaim build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationBuilder.java index 00cdab0bd3..9b9a976e76 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceClaimConfigurationBuilder extends V1DeviceClaimConfigurationFluent implements VisitableBuilder{ + + V1DeviceClaimConfigurationFluent fluent; + public V1DeviceClaimConfigurationBuilder() { this(new V1DeviceClaimConfiguration()); } @@ -11,17 +14,16 @@ public V1DeviceClaimConfigurationBuilder(V1DeviceClaimConfigurationFluent flu this(fluent, new V1DeviceClaimConfiguration()); } - public V1DeviceClaimConfigurationBuilder(V1DeviceClaimConfigurationFluent fluent,V1DeviceClaimConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceClaimConfigurationBuilder(V1DeviceClaimConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceClaimConfigurationFluent fluent; + public V1DeviceClaimConfigurationBuilder(V1DeviceClaimConfigurationFluent fluent,V1DeviceClaimConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeviceClaimConfiguration build() { V1DeviceClaimConfiguration buildable = new V1DeviceClaimConfiguration(); buildable.setOpaque(fluent.buildOpaque()); @@ -29,5 +31,4 @@ public V1DeviceClaimConfiguration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationFluent.java index 403c0f0b4f..d867b4fbce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationFluent.java @@ -1,93 +1,41 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeviceClaimConfigurationFluent> extends BaseFluent{ + + private V1OpaqueDeviceConfigurationBuilder opaque; + private List requests; + public V1DeviceClaimConfigurationFluent() { } public V1DeviceClaimConfigurationFluent(V1DeviceClaimConfiguration instance) { this.copyInstance(instance); } - private V1OpaqueDeviceConfigurationBuilder opaque; - private List requests; - - protected void copyInstance(V1DeviceClaimConfiguration instance) { - instance = instance != null ? instance : new V1DeviceClaimConfiguration(); - if (instance != null) { - this.withOpaque(instance.getOpaque()); - this.withRequests(instance.getRequests()); - } - } - - public V1OpaqueDeviceConfiguration buildOpaque() { - return this.opaque != null ? this.opaque.build() : null; - } - - public A withOpaque(V1OpaqueDeviceConfiguration opaque) { - this._visitables.remove("opaque"); - if (opaque != null) { - this.opaque = new V1OpaqueDeviceConfigurationBuilder(opaque); - this._visitables.get("opaque").add(this.opaque); - } else { - this.opaque = null; - this._visitables.get("opaque").remove(this.opaque); - } - return (A) this; - } - - public boolean hasOpaque() { - return this.opaque != null; - } - - public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); - } - - public OpaqueNested withNewOpaqueLike(V1OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); - } - - public OpaqueNested editOpaque() { - return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); - } - - public OpaqueNested editOrNewOpaque() { - return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1OpaqueDeviceConfigurationBuilder().build())); - } - - public OpaqueNested editOrNewOpaqueLike(V1OpaqueDeviceConfiguration item) { - return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); - } - - public A addToRequests(int index,String item) { + + public A addAllToRequests(Collection items) { if (this.requests == null) { this.requests = new ArrayList(); } - this.requests.add(index, item); - return (A) this; - } - - public A setToRequests(int index,String item) { - if (this.requests == null) { - this.requests = new ArrayList(); + for (String item : items) { + this.requests.add(item); } - this.requests.set(index, item); return (A) this; } @@ -101,42 +49,56 @@ public A addToRequests(String... items) { return (A) this; } - public A addAllToRequests(Collection items) { + public A addToRequests(int index,String item) { if (this.requests == null) { this.requests = new ArrayList(); } - for (String item : items) { - this.requests.add(item); - } + this.requests.add(index, item); return (A) this; } - public A removeFromRequests(String... items) { - if (this.requests == null) { - return (A) this; - } - for (String item : items) { - this.requests.remove(item); - } - return (A) this; + public V1OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; } - public A removeAllFromRequests(Collection items) { - if (this.requests == null) { - return (A) this; - } - for (String item : items) { - this.requests.remove(item); + protected void copyInstance(V1DeviceClaimConfiguration instance) { + instance = instance != null ? instance : new V1DeviceClaimConfiguration(); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); } - return (A) this; } - public List getRequests() { - return this.requests; + public OpaqueNested editOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); } - public String getRequest(int index) { - return this.requests.get(index); + public OpaqueNested editOrNewOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1OpaqueDeviceConfiguration item) { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceClaimConfigurationFluent that = (V1DeviceClaimConfigurationFluent) o; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; } public String getFirstRequest() { @@ -156,6 +118,14 @@ public String getMatchingRequest(Predicate predicate) { return null; } + public String getRequest(int index) { + return this.requests.get(index); + } + + public List getRequests() { + return this.requests; + } + public boolean hasMatchingRequest(Predicate predicate) { for (String item : requests) { if (predicate.test(item)) { @@ -165,57 +135,44 @@ public boolean hasMatchingRequest(Predicate predicate) { return false; } - public A withRequests(List requests) { - if (requests != null) { - this.requests = new ArrayList(); - for (String item : requests) { - this.addToRequests(item); - } - } else { - this.requests = null; - } - return (A) this; - } - - public A withRequests(String... requests) { - if (this.requests != null) { - this.requests.clear(); - _visitables.remove("requests"); - } - if (requests != null) { - for (String item : requests) { - this.addToRequests(item); - } - } - return (A) this; + public boolean hasOpaque() { + return this.opaque != null; } public boolean hasRequests() { return this.requests != null && !(this.requests.isEmpty()); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; + public int hashCode() { + return Objects.hash(opaque, requests); + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; } - if (!(super.equals(o))) { - return false; + for (String item : items) { + this.requests.remove(item); } - V1DeviceClaimConfigurationFluent that = (V1DeviceClaimConfigurationFluent) o; - if (!(Objects.equals(opaque, that.opaque))) { - return false; + return (A) this; + } + + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; } - if (!(Objects.equals(requests, that.requests))) { - return false; + for (String item : items) { + this.requests.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(opaque, requests); + public A setToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.set(index, item); + return (A) this; } public String toString() { @@ -233,12 +190,59 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public A withOpaque(V1OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } public class OpaqueNested extends V1OpaqueDeviceConfigurationFluent> implements Nested{ + + V1OpaqueDeviceConfigurationBuilder builder; + OpaqueNested(V1OpaqueDeviceConfiguration item) { this.builder = new V1OpaqueDeviceConfigurationBuilder(this, item); } - V1OpaqueDeviceConfigurationBuilder builder; - + public N and() { return (N) V1DeviceClaimConfigurationFluent.this.withOpaque(builder.build()); } @@ -247,7 +251,5 @@ public N endOpaque() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimFluent.java index dc2472670d..c7b83cba05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimFluent.java @@ -1,73 +1,96 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeviceClaimFluent> extends BaseFluent{ + + private ArrayList config; + private ArrayList constraints; + private ArrayList requests; + public V1DeviceClaimFluent() { } public V1DeviceClaimFluent(V1DeviceClaim instance) { this.copyInstance(instance); } - private ArrayList config; - private ArrayList constraints; - private ArrayList requests; - - protected void copyInstance(V1DeviceClaim instance) { - instance = instance != null ? instance : new V1DeviceClaim(); - if (instance != null) { - this.withConfig(instance.getConfig()); - this.withConstraints(instance.getConstraints()); - this.withRequests(instance.getRequests()); - } - } - - public A addToConfig(int index,V1DeviceClaimConfiguration item) { + + public A addAllToConfig(Collection items) { if (this.config == null) { this.config = new ArrayList(); } - V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { + for (V1DeviceClaimConfiguration item : items) { + V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); _visitables.get("config").add(builder); - config.add(index, builder); + this.config.add(builder); } return (A) this; } - public A setToConfig(int index,V1DeviceClaimConfiguration item) { - if (this.config == null) { - this.config = new ArrayList(); + public A addAllToConstraints(Collection items) { + if (this.constraints == null) { + this.constraints = new ArrayList(); } - V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { - _visitables.get("config").add(builder); - config.set(index, builder); + for (V1DeviceConstraint item : items) { + V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); + _visitables.get("constraints").add(builder); + this.constraints.add(builder); + } + return (A) this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (V1DeviceRequest item : items) { + V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); + _visitables.get("requests").add(builder); + this.requests.add(builder); } return (A) this; } + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1DeviceClaimConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConstraintsNested addNewConstraint() { + return new ConstraintsNested(-1, null); + } + + public ConstraintsNested addNewConstraintLike(V1DeviceConstraint item) { + return new ConstraintsNested(-1, item); + } + + public RequestsNested addNewRequest() { + return new RequestsNested(-1, null); + } + + public RequestsNested addNewRequestLike(V1DeviceRequest item) { + return new RequestsNested(-1, item); + } + public A addToConfig(V1DeviceClaimConfiguration... items) { if (this.config == null) { this.config = new ArrayList(); @@ -80,54 +103,71 @@ public A addToConfig(V1DeviceClaimConfiguration... items) { return (A) this; } - public A addAllToConfig(Collection items) { + public A addToConfig(int index,V1DeviceClaimConfiguration item) { if (this.config == null) { this.config = new ArrayList(); } - for (V1DeviceClaimConfiguration item : items) { - V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); + V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); - this.config.add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); } return (A) this; } - public A removeFromConfig(V1DeviceClaimConfiguration... items) { - if (this.config == null) { - return (A) this; + public A addToConstraints(V1DeviceConstraint... items) { + if (this.constraints == null) { + this.constraints = new ArrayList(); } - for (V1DeviceClaimConfiguration item : items) { - V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); - _visitables.get("config").remove(builder); - this.config.remove(builder); + for (V1DeviceConstraint item : items) { + V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); + _visitables.get("constraints").add(builder); + this.constraints.add(builder); } return (A) this; } - public A removeAllFromConfig(Collection items) { - if (this.config == null) { - return (A) this; + public A addToConstraints(int index,V1DeviceConstraint item) { + if (this.constraints == null) { + this.constraints = new ArrayList(); } - for (V1DeviceClaimConfiguration item : items) { - V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); - _visitables.get("config").remove(builder); - this.config.remove(builder); + V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); + } else { + _visitables.get("constraints").add(builder); + constraints.add(index, builder); } return (A) this; } - public A removeMatchingFromConfig(Predicate predicate) { - if (config == null) { - return (A) this; + public A addToRequests(V1DeviceRequest... items) { + if (this.requests == null) { + this.requests = new ArrayList(); } - Iterator each = config.iterator(); - List visitables = _visitables.get("config"); - while (each.hasNext()) { - V1DeviceClaimConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (V1DeviceRequest item : items) { + V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); + _visitables.get("requests").add(builder); + this.requests.add(builder); + } + return (A) this; + } + + public A addToRequests(int index,V1DeviceRequest item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); + if (index < 0 || index >= requests.size()) { + _visitables.get("requests").add(builder); + requests.add(builder); + } else { + _visitables.get("requests").add(builder); + requests.add(index, builder); } return (A) this; } @@ -140,14 +180,38 @@ public V1DeviceClaimConfiguration buildConfig(int index) { return this.config.get(index).build(); } + public V1DeviceConstraint buildConstraint(int index) { + return this.constraints.get(index).build(); + } + + public List buildConstraints() { + return this.constraints != null ? build(constraints) : null; + } + public V1DeviceClaimConfiguration buildFirstConfig() { return this.config.get(0).build(); } + public V1DeviceConstraint buildFirstConstraint() { + return this.constraints.get(0).build(); + } + + public V1DeviceRequest buildFirstRequest() { + return this.requests.get(0).build(); + } + public V1DeviceClaimConfiguration buildLastConfig() { return this.config.get(config.size() - 1).build(); } + public V1DeviceConstraint buildLastConstraint() { + return this.constraints.get(constraints.size() - 1).build(); + } + + public V1DeviceRequest buildLastRequest() { + return this.requests.get(requests.size() - 1).build(); + } + public V1DeviceClaimConfiguration buildMatchingConfig(Predicate predicate) { for (V1DeviceClaimConfigurationBuilder item : config) { if (predicate.test(item)) { @@ -157,73 +221,76 @@ public V1DeviceClaimConfiguration buildMatchingConfig(Predicate predicate) { - for (V1DeviceClaimConfigurationBuilder item : config) { + public V1DeviceConstraint buildMatchingConstraint(Predicate predicate) { + for (V1DeviceConstraintBuilder item : constraints) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withConfig(List config) { - if (this.config != null) { - this._visitables.get("config").clear(); - } - if (config != null) { - this.config = new ArrayList(); - for (V1DeviceClaimConfiguration item : config) { - this.addToConfig(item); + public V1DeviceRequest buildMatchingRequest(Predicate predicate) { + for (V1DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return item.build(); } - } else { - this.config = null; - } - return (A) this; - } - - public A withConfig(V1DeviceClaimConfiguration... config) { - if (this.config != null) { - this.config.clear(); - _visitables.remove("config"); - } - if (config != null) { - for (V1DeviceClaimConfiguration item : config) { - this.addToConfig(item); } - } - return (A) this; - } - - public boolean hasConfig() { - return this.config != null && !(this.config.isEmpty()); + return null; } - public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); + public V1DeviceRequest buildRequest(int index) { + return this.requests.get(index).build(); } - public ConfigNested addNewConfigLike(V1DeviceClaimConfiguration item) { - return new ConfigNested(-1, item); + public List buildRequests() { + return this.requests != null ? build(requests) : null; } - public ConfigNested setNewConfigLike(int index,V1DeviceClaimConfiguration item) { - return new ConfigNested(index, item); + protected void copyInstance(V1DeviceClaim instance) { + instance = instance != null ? instance : new V1DeviceClaim(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withConstraints(instance.getConstraints()); + this.withRequests(instance.getRequests()); + } } public ConfigNested editConfig(int index) { - if (index <= config.size()) { + if (config.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); } return this.setNewConfigLike(index, this.buildConfig(index)); } - public ConfigNested editFirstConfig() { - if (config.size() == 0) { + public ConstraintsNested editConstraint(int index) { + if (constraints.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) { throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); } return this.setNewConfigLike(0, this.buildConfig(0)); } + public ConstraintsNested editFirstConstraint() { + if (constraints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "constraints")); + } + return this.setNewConstraintLike(0, this.buildConstraint(0)); + } + + public RequestsNested editFirstRequest() { + if (requests.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requests")); + } + return this.setNewRequestLike(0, this.buildRequest(0)); + } + public ConfigNested editLastConfig() { int index = config.size() - 1; if (index < 0) { @@ -232,6 +299,22 @@ public ConfigNested editLastConfig() { return this.setNewConfigLike(index, this.buildConfig(index)); } + public ConstraintsNested editLastConstraint() { + int index = constraints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); + } + + public RequestsNested editLastRequest() { + int index = requests.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + public ConfigNested editMatchingConfig(Predicate predicate) { int index = -1; for (int i = 0;i < config.size();i++) { @@ -246,56 +329,151 @@ public ConfigNested editMatchingConfig(Predicate editMatchingConstraint(Predicate predicate) { + int index = -1; + for (int i = 0;i < constraints.size();i++) { + if (predicate.test(constraints.get(i))) { + index = i; + break; + } } - V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); - if (index < 0 || index >= constraints.size()) { - _visitables.get("constraints").add(builder); - constraints.add(builder); - } else { - _visitables.get("constraints").add(builder); - constraints.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "constraints")); } - return (A) this; + return this.setNewConstraintLike(index, this.buildConstraint(index)); } - public A setToConstraints(int index,V1DeviceConstraint item) { - if (this.constraints == null) { - this.constraints = new ArrayList(); + public RequestsNested editMatchingRequest(Predicate predicate) { + int index = -1; + for (int i = 0;i < requests.size();i++) { + if (predicate.test(requests.get(i))) { + index = i; + break; + } } - V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); - if (index < 0 || index >= constraints.size()) { - _visitables.get("constraints").add(builder); - constraints.add(builder); - } else { - _visitables.get("constraints").add(builder); - constraints.set(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + + public RequestsNested editRequest(int index) { + if (requests.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceClaimFluent that = (V1DeviceClaimFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(constraints, that.constraints))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public boolean hasConstraints() { + return this.constraints != null && !(this.constraints.isEmpty()); + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingConstraint(Predicate predicate) { + for (V1DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (V1DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public int hashCode() { + return Objects.hash(config, constraints, requests); + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) { + return (A) this; + } + for (V1DeviceClaimConfiguration item : items) { + V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); } return (A) this; } - public A addToConstraints(V1DeviceConstraint... items) { + public A removeAllFromConstraints(Collection items) { if (this.constraints == null) { - this.constraints = new ArrayList(); + return (A) this; } for (V1DeviceConstraint item : items) { V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); - _visitables.get("constraints").add(builder); - this.constraints.add(builder); + _visitables.get("constraints").remove(builder); + this.constraints.remove(builder); } return (A) this; } - public A addAllToConstraints(Collection items) { - if (this.constraints == null) { - this.constraints = new ArrayList(); + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; } - for (V1DeviceConstraint item : items) { - V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); - _visitables.get("constraints").add(builder); - this.constraints.add(builder); + for (V1DeviceRequest item : items) { + V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); + _visitables.get("requests").remove(builder); + this.requests.remove(builder); + } + return (A) this; + } + + public A removeFromConfig(V1DeviceClaimConfiguration... items) { + if (this.config == null) { + return (A) this; + } + for (V1DeviceClaimConfiguration item : items) { + V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); } return (A) this; } @@ -312,26 +490,26 @@ public A removeFromConstraints(V1DeviceConstraint... items) { return (A) this; } - public A removeAllFromConstraints(Collection items) { - if (this.constraints == null) { + public A removeFromRequests(V1DeviceRequest... items) { + if (this.requests == null) { return (A) this; } - for (V1DeviceConstraint item : items) { - V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); - _visitables.get("constraints").remove(builder); - this.constraints.remove(builder); + for (V1DeviceRequest item : items) { + V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); + _visitables.get("requests").remove(builder); + this.requests.remove(builder); } return (A) this; } - public A removeMatchingFromConstraints(Predicate predicate) { - if (constraints == null) { + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) { return (A) this; } - Iterator each = constraints.iterator(); - List visitables = _visitables.get("constraints"); + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); while (each.hasNext()) { - V1DeviceConstraintBuilder builder = each.next(); + V1DeviceClaimConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -340,131 +518,76 @@ public A removeMatchingFromConstraints(Predicate pred return (A) this; } - public List buildConstraints() { - return this.constraints != null ? build(constraints) : null; - } - - public V1DeviceConstraint buildConstraint(int index) { - return this.constraints.get(index).build(); - } - - public V1DeviceConstraint buildFirstConstraint() { - return this.constraints.get(0).build(); - } - - public V1DeviceConstraint buildLastConstraint() { - return this.constraints.get(constraints.size() - 1).build(); - } - - public V1DeviceConstraint buildMatchingConstraint(Predicate predicate) { - for (V1DeviceConstraintBuilder item : constraints) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingConstraint(Predicate predicate) { - for (V1DeviceConstraintBuilder item : constraints) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConstraints(List constraints) { - if (this.constraints != null) { - this._visitables.get("constraints").clear(); + public A removeMatchingFromConstraints(Predicate predicate) { + if (constraints == null) { + return (A) this; } - if (constraints != null) { - this.constraints = new ArrayList(); - for (V1DeviceConstraint item : constraints) { - this.addToConstraints(item); + Iterator each = constraints.iterator(); + List visitables = _visitables.get("constraints"); + while (each.hasNext()) { + V1DeviceConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } else { - this.constraints = null; } return (A) this; } - public A withConstraints(V1DeviceConstraint... constraints) { - if (this.constraints != null) { - this.constraints.clear(); - _visitables.remove("constraints"); + public A removeMatchingFromRequests(Predicate predicate) { + if (requests == null) { + return (A) this; } - if (constraints != null) { - for (V1DeviceConstraint item : constraints) { - this.addToConstraints(item); - } + Iterator each = requests.iterator(); + List visitables = _visitables.get("requests"); + while (each.hasNext()) { + V1DeviceRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasConstraints() { - return this.constraints != null && !(this.constraints.isEmpty()); - } - - public ConstraintsNested addNewConstraint() { - return new ConstraintsNested(-1, null); - } - - public ConstraintsNested addNewConstraintLike(V1DeviceConstraint item) { - return new ConstraintsNested(-1, item); + public ConfigNested setNewConfigLike(int index,V1DeviceClaimConfiguration item) { + return new ConfigNested(index, item); } public ConstraintsNested setNewConstraintLike(int index,V1DeviceConstraint item) { return new ConstraintsNested(index, item); } - public ConstraintsNested editConstraint(int index) { - if (index <= constraints.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "constraints")); - } - return this.setNewConstraintLike(index, this.buildConstraint(index)); - } - - public ConstraintsNested editFirstConstraint() { - if (constraints.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "constraints")); - } - return this.setNewConstraintLike(0, this.buildConstraint(0)); - } - - public ConstraintsNested editLastConstraint() { - int index = constraints.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "constraints")); - } - return this.setNewConstraintLike(index, this.buildConstraint(index)); + public RequestsNested setNewRequestLike(int index,V1DeviceRequest item) { + return new RequestsNested(index, item); } - public ConstraintsNested editMatchingConstraint(Predicate predicate) { - int index = -1; - for (int i = 0;i < constraints.size();i++) { - if (predicate.test(constraints.get(i))) { - index = i; - break; - } + public A setToConfig(int index,V1DeviceClaimConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "constraints")); + V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); } - return this.setNewConstraintLike(index, this.buildConstraint(index)); + return (A) this; } - public A addToRequests(int index,V1DeviceRequest item) { - if (this.requests == null) { - this.requests = new ArrayList(); + public A setToConstraints(int index,V1DeviceConstraint item) { + if (this.constraints == null) { + this.constraints = new ArrayList(); } - V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); - if (index < 0 || index >= requests.size()) { - _visitables.get("requests").add(builder); - requests.add(builder); + V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); } else { - _visitables.get("requests").add(builder); - requests.add(index, builder); + _visitables.get("constraints").add(builder); + constraints.set(index, builder); } return (A) this; } @@ -484,102 +607,81 @@ public A setToRequests(int index,V1DeviceRequest item) { return (A) this; } - public A addToRequests(V1DeviceRequest... items) { - if (this.requests == null) { - this.requests = new ArrayList(); - } - for (V1DeviceRequest item : items) { - V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); - _visitables.get("requests").add(builder); - this.requests.add(builder); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); } - return (A) this; - } - - public A addAllToRequests(Collection items) { - if (this.requests == null) { - this.requests = new ArrayList(); + if (!(constraints == null) && !(constraints.isEmpty())) { + sb.append("constraints:"); + sb.append(constraints); + sb.append(","); } - for (V1DeviceRequest item : items) { - V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); - _visitables.get("requests").add(builder); - this.requests.add(builder); + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); } - return (A) this; + sb.append("}"); + return sb.toString(); } - public A removeFromRequests(V1DeviceRequest... items) { - if (this.requests == null) { - return (A) this; + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); } - for (V1DeviceRequest item : items) { - V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); - _visitables.get("requests").remove(builder); - this.requests.remove(builder); + if (config != null) { + this.config = new ArrayList(); + for (V1DeviceClaimConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; } return (A) this; } - public A removeAllFromRequests(Collection items) { - if (this.requests == null) { - return (A) this; + public A withConfig(V1DeviceClaimConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); } - for (V1DeviceRequest item : items) { - V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); - _visitables.get("requests").remove(builder); - this.requests.remove(builder); + if (config != null) { + for (V1DeviceClaimConfiguration item : config) { + this.addToConfig(item); + } } return (A) this; } - public A removeMatchingFromRequests(Predicate predicate) { - if (requests == null) { - return (A) this; + public A withConstraints(List constraints) { + if (this.constraints != null) { + this._visitables.get("constraints").clear(); } - Iterator each = requests.iterator(); - List visitables = _visitables.get("requests"); - while (each.hasNext()) { - V1DeviceRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + if (constraints != null) { + this.constraints = new ArrayList(); + for (V1DeviceConstraint item : constraints) { + this.addToConstraints(item); } + } else { + this.constraints = null; } return (A) this; } - public List buildRequests() { - return this.requests != null ? build(requests) : null; - } - - public V1DeviceRequest buildRequest(int index) { - return this.requests.get(index).build(); - } - - public V1DeviceRequest buildFirstRequest() { - return this.requests.get(0).build(); - } - - public V1DeviceRequest buildLastRequest() { - return this.requests.get(requests.size() - 1).build(); - } - - public V1DeviceRequest buildMatchingRequest(Predicate predicate) { - for (V1DeviceRequestBuilder item : requests) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingRequest(Predicate predicate) { - for (V1DeviceRequestBuilder item : requests) { - if (predicate.test(item)) { - return true; - } + public A withConstraints(V1DeviceConstraint... constraints) { + if (this.constraints != null) { + this.constraints.clear(); + _visitables.remove("constraints"); + } + if (constraints != null) { + for (V1DeviceConstraint item : constraints) { + this.addToConstraints(item); } - return false; + } + return (A) this; } public A withRequests(List requests) { @@ -609,114 +711,16 @@ public A withRequests(V1DeviceRequest... requests) { } return (A) this; } + public class ConfigNested extends V1DeviceClaimConfigurationFluent> implements Nested{ - public boolean hasRequests() { - return this.requests != null && !(this.requests.isEmpty()); - } - - public RequestsNested addNewRequest() { - return new RequestsNested(-1, null); - } - - public RequestsNested addNewRequestLike(V1DeviceRequest item) { - return new RequestsNested(-1, item); - } - - public RequestsNested setNewRequestLike(int index,V1DeviceRequest item) { - return new RequestsNested(index, item); - } - - public RequestsNested editRequest(int index) { - if (index <= requests.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requests")); - } - return this.setNewRequestLike(index, this.buildRequest(index)); - } - - public RequestsNested editFirstRequest() { - if (requests.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requests")); - } - return this.setNewRequestLike(0, this.buildRequest(0)); - } - - public RequestsNested editLastRequest() { - int index = requests.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requests")); - } - return this.setNewRequestLike(index, this.buildRequest(index)); - } - - public RequestsNested editMatchingRequest(Predicate predicate) { - int index = -1; - for (int i = 0;i < requests.size();i++) { - if (predicate.test(requests.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requests")); - } - return this.setNewRequestLike(index, this.buildRequest(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1DeviceClaimFluent that = (V1DeviceClaimFluent) o; - if (!(Objects.equals(config, that.config))) { - return false; - } - if (!(Objects.equals(constraints, that.constraints))) { - return false; - } - if (!(Objects.equals(requests, that.requests))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(config, constraints, requests); - } + V1DeviceClaimConfigurationBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(config == null) && !(config.isEmpty())) { - sb.append("config:"); - sb.append(config); - sb.append(","); - } - if (!(constraints == null) && !(constraints.isEmpty())) { - sb.append("constraints:"); - sb.append(constraints); - sb.append(","); - } - if (!(requests == null) && !(requests.isEmpty())) { - sb.append("requests:"); - sb.append(requests); - } - sb.append("}"); - return sb.toString(); - } - public class ConfigNested extends V1DeviceClaimConfigurationFluent> implements Nested{ ConfigNested(int index,V1DeviceClaimConfiguration item) { this.index = index; this.builder = new V1DeviceClaimConfigurationBuilder(this, item); } - V1DeviceClaimConfigurationBuilder builder; - int index; - + public N and() { return (N) V1DeviceClaimFluent.this.setToConfig(index, builder.build()); } @@ -725,16 +729,17 @@ public N endConfig() { return and(); } - } public class ConstraintsNested extends V1DeviceConstraintFluent> implements Nested{ + + V1DeviceConstraintBuilder builder; + int index; + ConstraintsNested(int index,V1DeviceConstraint item) { this.index = index; this.builder = new V1DeviceConstraintBuilder(this, item); } - V1DeviceConstraintBuilder builder; - int index; - + public N and() { return (N) V1DeviceClaimFluent.this.setToConstraints(index, builder.build()); } @@ -743,16 +748,17 @@ public N endConstraint() { return and(); } - } public class RequestsNested extends V1DeviceRequestFluent> implements Nested{ + + V1DeviceRequestBuilder builder; + int index; + RequestsNested(int index,V1DeviceRequest item) { this.index = index; this.builder = new V1DeviceRequestBuilder(this, item); } - V1DeviceRequestBuilder builder; - int index; - + public N and() { return (N) V1DeviceClaimFluent.this.setToRequests(index, builder.build()); } @@ -761,7 +767,5 @@ public N endRequest() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassBuilder.java index d1a6e7689f..dae2e97247 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceClassBuilder extends V1DeviceClassFluent implements VisitableBuilder{ + + V1DeviceClassFluent fluent; + public V1DeviceClassBuilder() { this(new V1DeviceClass()); } @@ -11,17 +14,16 @@ public V1DeviceClassBuilder(V1DeviceClassFluent fluent) { this(fluent, new V1DeviceClass()); } - public V1DeviceClassBuilder(V1DeviceClassFluent fluent,V1DeviceClass instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceClassBuilder(V1DeviceClass instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceClassFluent fluent; + public V1DeviceClassBuilder(V1DeviceClassFluent fluent,V1DeviceClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeviceClass build() { V1DeviceClass buildable = new V1DeviceClass(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1DeviceClass build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationBuilder.java index 63a9cb9929..e6781fc0eb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceClassConfigurationBuilder extends V1DeviceClassConfigurationFluent implements VisitableBuilder{ + + V1DeviceClassConfigurationFluent fluent; + public V1DeviceClassConfigurationBuilder() { this(new V1DeviceClassConfiguration()); } @@ -11,22 +14,20 @@ public V1DeviceClassConfigurationBuilder(V1DeviceClassConfigurationFluent flu this(fluent, new V1DeviceClassConfiguration()); } - public V1DeviceClassConfigurationBuilder(V1DeviceClassConfigurationFluent fluent,V1DeviceClassConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceClassConfigurationBuilder(V1DeviceClassConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceClassConfigurationFluent fluent; + public V1DeviceClassConfigurationBuilder(V1DeviceClassConfigurationFluent fluent,V1DeviceClassConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeviceClassConfiguration build() { V1DeviceClassConfiguration buildable = new V1DeviceClassConfiguration(); buildable.setOpaque(fluent.buildOpaque()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationFluent.java index 6454b70682..e65259c3ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeviceClassConfigurationFluent> extends BaseFluent{ + + private V1OpaqueDeviceConfigurationBuilder opaque; + public V1DeviceClassConfigurationFluent() { } public V1DeviceClassConfigurationFluent(V1DeviceClassConfiguration instance) { this.copyInstance(instance); } - private V1OpaqueDeviceConfigurationBuilder opaque; + + public V1OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } protected void copyInstance(V1DeviceClassConfiguration instance) { instance = instance != null ? instance : new V1DeviceClassConfiguration(); @@ -29,34 +35,6 @@ protected void copyInstance(V1DeviceClassConfiguration instance) { } } - public V1OpaqueDeviceConfiguration buildOpaque() { - return this.opaque != null ? this.opaque.build() : null; - } - - public A withOpaque(V1OpaqueDeviceConfiguration opaque) { - this._visitables.remove("opaque"); - if (opaque != null) { - this.opaque = new V1OpaqueDeviceConfigurationBuilder(opaque); - this._visitables.get("opaque").add(this.opaque); - } else { - this.opaque = null; - this._visitables.get("opaque").remove(this.opaque); - } - return (A) this; - } - - public boolean hasOpaque() { - return this.opaque != null; - } - - public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); - } - - public OpaqueNested withNewOpaqueLike(V1OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); - } - public OpaqueNested editOpaque() { return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); } @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasOpaque() { + return this.opaque != null; + } + public int hashCode() { return Objects.hash(opaque); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public A withOpaque(V1OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } public class OpaqueNested extends V1OpaqueDeviceConfigurationFluent> implements Nested{ + + V1OpaqueDeviceConfigurationBuilder builder; + OpaqueNested(V1OpaqueDeviceConfiguration item) { this.builder = new V1OpaqueDeviceConfigurationBuilder(this, item); } - V1OpaqueDeviceConfigurationBuilder builder; - + public N and() { return (N) V1DeviceClassConfigurationFluent.this.withOpaque(builder.build()); } @@ -114,7 +118,5 @@ public N endOpaque() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassFluent.java index 28ca48e148..bb21b85d89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeviceClassFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1DeviceClassSpecBuilder spec; + public V1DeviceClassFluent() { } public V1DeviceClassFluent(V1DeviceClass instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1DeviceClassSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1DeviceClassSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1DeviceClass instance) { instance = instance != null ? instance : new V1DeviceClass(); @@ -35,60 +45,6 @@ protected void copyInstance(V1DeviceClass instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1DeviceClassSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1DeviceClassSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1DeviceClassSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1DeviceClassSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1DeviceClassSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1DeviceClassSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1DeviceClassSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1DeviceClassSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1DeviceClassSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1DeviceClassFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1DeviceClassSpecFluent> implements Nested{ + + V1DeviceClassSpecBuilder builder; + SpecNested(V1DeviceClassSpec item) { this.builder = new V1DeviceClassSpecBuilder(this, item); } - V1DeviceClassSpecBuilder builder; - + public N and() { return (N) V1DeviceClassFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListBuilder.java index 0e3dcc7545..7a2991d066 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceClassListBuilder extends V1DeviceClassListFluent implements VisitableBuilder{ + + V1DeviceClassListFluent fluent; + public V1DeviceClassListBuilder() { this(new V1DeviceClassList()); } @@ -11,17 +14,16 @@ public V1DeviceClassListBuilder(V1DeviceClassListFluent fluent) { this(fluent, new V1DeviceClassList()); } - public V1DeviceClassListBuilder(V1DeviceClassListFluent fluent,V1DeviceClassList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceClassListBuilder(V1DeviceClassList instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceClassListFluent fluent; + public V1DeviceClassListBuilder(V1DeviceClassListFluent fluent,V1DeviceClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeviceClassList build() { V1DeviceClassList buildable = new V1DeviceClassList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1DeviceClassList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListFluent.java index 5cb7a6da6d..219cfdad02 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeviceClassListFluent> extends BaseFluent{ - public V1DeviceClassListFluent() { - } - - public V1DeviceClassListFluent(V1DeviceClassList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1DeviceClassList instance) { - instance = instance != null ? instance : new V1DeviceClassList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1DeviceClassListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1DeviceClassListFluent(V1DeviceClassList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1DeviceClass item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1DeviceClass item : items) { + V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1DeviceClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1DeviceClass item) { + return new ItemsNested(-1, item); } public A addToItems(V1DeviceClass... items) { @@ -96,68 +65,31 @@ public A addToItems(V1DeviceClass... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1DeviceClass item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1DeviceClass item : items) { - V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); + V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1DeviceClass... items) { - if (this.items == null) { - return (A) this; - } - for (V1DeviceClass item : items) { - V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1DeviceClass item : items) { - V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1DeviceClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1DeviceClass buildFirstItem() { + return this.items.get(0).build(); } public V1DeviceClass buildItem(int index) { return this.items.get(index).build(); } - public V1DeviceClass buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1DeviceClass buildLastItem() { @@ -173,73 +105,34 @@ public V1DeviceClass buildMatchingItem(Predicate predicate return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1DeviceClassBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1DeviceClass item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1DeviceClassList instance) { + instance = instance != null ? instance : new V1DeviceClassList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1DeviceClass... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1DeviceClass item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1DeviceClass item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1DeviceClass item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1DeviceClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1DeviceClass item : items) { + V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1DeviceClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1DeviceClass item : items) { + V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1DeviceClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1DeviceClass item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1DeviceClass item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1DeviceClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1DeviceClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1DeviceClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1DeviceClassFluent> implements Nested{ + + V1DeviceClassBuilder builder; + int index; + ItemsNested(int index,V1DeviceClass item) { this.index = index; this.builder = new V1DeviceClassBuilder(this, item); } - V1DeviceClassBuilder builder; - int index; - + public N and() { return (N) V1DeviceClassListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1DeviceClassListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecBuilder.java index e6c4c8297f..23e5f732d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceClassSpecBuilder extends V1DeviceClassSpecFluent implements VisitableBuilder{ + + V1DeviceClassSpecFluent fluent; + public V1DeviceClassSpecBuilder() { this(new V1DeviceClassSpec()); } @@ -11,17 +14,16 @@ public V1DeviceClassSpecBuilder(V1DeviceClassSpecFluent fluent) { this(fluent, new V1DeviceClassSpec()); } - public V1DeviceClassSpecBuilder(V1DeviceClassSpecFluent fluent,V1DeviceClassSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceClassSpecBuilder(V1DeviceClassSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceClassSpecFluent fluent; + public V1DeviceClassSpecBuilder(V1DeviceClassSpecFluent fluent,V1DeviceClassSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeviceClassSpec build() { V1DeviceClassSpec buildable = new V1DeviceClassSpec(); buildable.setConfig(fluent.buildConfig()); @@ -30,5 +32,4 @@ public V1DeviceClassSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecFluent.java index d2879758dd..611db21c53 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecFluent.java @@ -1,73 +1,76 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeviceClassSpecFluent> extends BaseFluent{ + + private ArrayList config; + private String extendedResourceName; + private ArrayList selectors; + public V1DeviceClassSpecFluent() { } public V1DeviceClassSpecFluent(V1DeviceClassSpec instance) { this.copyInstance(instance); } - private ArrayList config; - private String extendedResourceName; - private ArrayList selectors; - - protected void copyInstance(V1DeviceClassSpec instance) { - instance = instance != null ? instance : new V1DeviceClassSpec(); - if (instance != null) { - this.withConfig(instance.getConfig()); - this.withExtendedResourceName(instance.getExtendedResourceName()); - this.withSelectors(instance.getSelectors()); - } - } - - public A addToConfig(int index,V1DeviceClassConfiguration item) { + + public A addAllToConfig(Collection items) { if (this.config == null) { this.config = new ArrayList(); } - V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { + for (V1DeviceClassConfiguration item : items) { + V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); _visitables.get("config").add(builder); - config.add(index, builder); + this.config.add(builder); } return (A) this; } - public A setToConfig(int index,V1DeviceClassConfiguration item) { - if (this.config == null) { - this.config = new ArrayList(); + public A addAllToSelectors(Collection items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); } - V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { - _visitables.get("config").add(builder); - config.set(index, builder); + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); } return (A) this; } + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1DeviceClassConfiguration item) { + return new ConfigNested(-1, item); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1DeviceSelector item) { + return new SelectorsNested(-1, item); + } + public A addToConfig(V1DeviceClassConfiguration... items) { if (this.config == null) { this.config = new ArrayList(); @@ -80,54 +83,44 @@ public A addToConfig(V1DeviceClassConfiguration... items) { return (A) this; } - public A addAllToConfig(Collection items) { + public A addToConfig(int index,V1DeviceClassConfiguration item) { if (this.config == null) { this.config = new ArrayList(); } - for (V1DeviceClassConfiguration item : items) { - V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); + V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); - this.config.add(builder); - } - return (A) this; - } - - public A removeFromConfig(V1DeviceClassConfiguration... items) { - if (this.config == null) { - return (A) this; - } - for (V1DeviceClassConfiguration item : items) { - V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); - _visitables.get("config").remove(builder); - this.config.remove(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); } return (A) this; } - public A removeAllFromConfig(Collection items) { - if (this.config == null) { - return (A) this; + public A addToSelectors(V1DeviceSelector... items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); } - for (V1DeviceClassConfiguration item : items) { - V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); - _visitables.get("config").remove(builder); - this.config.remove(builder); + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); } return (A) this; } - public A removeMatchingFromConfig(Predicate predicate) { - if (config == null) { - return (A) this; + public A addToSelectors(int index,V1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); } - Iterator each = config.iterator(); - List visitables = _visitables.get("config"); - while (each.hasNext()) { - V1DeviceClassConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); } return (A) this; } @@ -144,10 +137,18 @@ public V1DeviceClassConfiguration buildFirstConfig() { return this.config.get(0).build(); } + public V1DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + public V1DeviceClassConfiguration buildLastConfig() { return this.config.get(config.size() - 1).build(); } + public V1DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + public V1DeviceClassConfiguration buildMatchingConfig(Predicate predicate) { for (V1DeviceClassConfigurationBuilder item : config) { if (predicate.test(item)) { @@ -157,61 +158,34 @@ public V1DeviceClassConfiguration buildMatchingConfig(Predicate predicate) { - for (V1DeviceClassConfigurationBuilder item : config) { + public V1DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConfig(List config) { - if (this.config != null) { - this._visitables.get("config").clear(); - } - if (config != null) { - this.config = new ArrayList(); - for (V1DeviceClassConfiguration item : config) { - this.addToConfig(item); + return item.build(); } - } else { - this.config = null; - } - return (A) this; - } - - public A withConfig(V1DeviceClassConfiguration... config) { - if (this.config != null) { - this.config.clear(); - _visitables.remove("config"); - } - if (config != null) { - for (V1DeviceClassConfiguration item : config) { - this.addToConfig(item); } - } - return (A) this; - } - - public boolean hasConfig() { - return this.config != null && !(this.config.isEmpty()); + return null; } - public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); + public V1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); } - public ConfigNested addNewConfigLike(V1DeviceClassConfiguration item) { - return new ConfigNested(-1, item); + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; } - public ConfigNested setNewConfigLike(int index,V1DeviceClassConfiguration item) { - return new ConfigNested(index, item); + protected void copyInstance(V1DeviceClassSpec instance) { + instance = instance != null ? instance : new V1DeviceClassSpec(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withExtendedResourceName(instance.getExtendedResourceName()); + this.withSelectors(instance.getSelectors()); + } } public ConfigNested editConfig(int index) { - if (index <= config.size()) { + if (config.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); } return this.setNewConfigLike(index, this.buildConfig(index)); @@ -224,6 +198,13 @@ public ConfigNested editFirstConfig() { return this.setNewConfigLike(0, this.buildConfig(0)); } + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); + } + public ConfigNested editLastConfig() { int index = config.size() - 1; if (index < 0) { @@ -232,6 +213,14 @@ public ConfigNested editLastConfig() { return this.setNewConfigLike(index, this.buildConfig(index)); } + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + public ConfigNested editMatchingConfig(Predicate predicate) { int index = -1; for (int i = 0;i < config.size();i++) { @@ -246,69 +235,120 @@ public ConfigNested editMatchingConfig(Predicate editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i = 0;i < selectors.size();i++) { + if (predicate.test(selectors.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } - public boolean hasExtendedResourceName() { - return this.extendedResourceName != null; + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } - public A addToSelectors(int index,V1DeviceSelector item) { - if (this.selectors == null) { - this.selectors = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { - _visitables.get("selectors").add(builder); - selectors.add(index, builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1DeviceClassSpecFluent that = (V1DeviceClassSpecFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(extendedResourceName, that.extendedResourceName))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + return true; } - public A setToSelectors(int index,V1DeviceSelector item) { - if (this.selectors == null) { - this.selectors = new ArrayList(); + public String getExtendedResourceName() { + return this.extendedResourceName; + } + + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public boolean hasExtendedResourceName() { + return this.extendedResourceName != null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public int hashCode() { + return Objects.hash(config, extendedResourceName, selectors); + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) { + return (A) this; } - V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { - _visitables.get("selectors").add(builder); - selectors.set(index, builder); + for (V1DeviceClassConfiguration item : items) { + V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); } return (A) this; } - public A addToSelectors(V1DeviceSelector... items) { + public A removeAllFromSelectors(Collection items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + return (A) this; } for (V1DeviceSelector item : items) { V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); - this.selectors.add(builder); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); } return (A) this; } - public A addAllToSelectors(Collection items) { - if (this.selectors == null) { - this.selectors = new ArrayList(); + public A removeFromConfig(V1DeviceClassConfiguration... items) { + if (this.config == null) { + return (A) this; } - for (V1DeviceSelector item : items) { - V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); - this.selectors.add(builder); + for (V1DeviceClassConfiguration item : items) { + V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); } return (A) this; } @@ -325,14 +365,18 @@ public A removeFromSelectors(V1DeviceSelector... items) { return (A) this; } - public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) { + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) { return (A) this; } - for (V1DeviceSelector item : items) { - V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - _visitables.get("selectors").remove(builder); - this.selectors.remove(builder); + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1DeviceClassConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -353,38 +397,96 @@ public A removeMatchingFromSelectors(Predicate predicat return (A) this; } - public List buildSelectors() { - return this.selectors != null ? build(selectors) : null; + public ConfigNested setNewConfigLike(int index,V1DeviceClassConfiguration item) { + return new ConfigNested(index, item); } - public V1DeviceSelector buildSelector(int index) { - return this.selectors.get(index).build(); + public SelectorsNested setNewSelectorLike(int index,V1DeviceSelector item) { + return new SelectorsNested(index, item); } - public V1DeviceSelector buildFirstSelector() { - return this.selectors.get(0).build(); + public A setToConfig(int index,V1DeviceClassConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); + } + V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A) this; } - public V1DeviceSelector buildLastSelector() { - return this.selectors.get(selectors.size() - 1).build(); + public A setToSelectors(int index,V1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A) this; } - public V1DeviceSelector buildMatchingSelector(Predicate predicate) { - for (V1DeviceSelectorBuilder item : selectors) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(extendedResourceName == null)) { + sb.append("extendedResourceName:"); + sb.append(extendedResourceName); + sb.append(","); + } + if (!(selectors == null) && !(selectors.isEmpty())) { + sb.append("selectors:"); + sb.append(selectors); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingSelector(Predicate predicate) { - for (V1DeviceSelectorBuilder item : selectors) { - if (predicate.test(item)) { - return true; + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1DeviceClassConfiguration item : config) { + this.addToConfig(item); } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(V1DeviceClassConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1DeviceClassConfiguration item : config) { + this.addToConfig(item); } - return false; + } + return (A) this; + } + + public A withExtendedResourceName(String extendedResourceName) { + this.extendedResourceName = extendedResourceName; + return (A) this; } public A withSelectors(List selectors) { @@ -414,114 +516,16 @@ public A withSelectors(V1DeviceSelector... selectors) { } return (A) this; } + public class ConfigNested extends V1DeviceClassConfigurationFluent> implements Nested{ - public boolean hasSelectors() { - return this.selectors != null && !(this.selectors.isEmpty()); - } - - public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); - } - - public SelectorsNested addNewSelectorLike(V1DeviceSelector item) { - return new SelectorsNested(-1, item); - } - - public SelectorsNested setNewSelectorLike(int index,V1DeviceSelector item) { - return new SelectorsNested(index, item); - } - - public SelectorsNested editSelector(int index) { - if (index <= selectors.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); - } - return this.setNewSelectorLike(index, this.buildSelector(index)); - } - - public SelectorsNested editFirstSelector() { - if (selectors.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); - } - return this.setNewSelectorLike(0, this.buildSelector(0)); - } - - public SelectorsNested editLastSelector() { - int index = selectors.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); - } - return this.setNewSelectorLike(index, this.buildSelector(index)); - } - - public SelectorsNested editMatchingSelector(Predicate predicate) { - int index = -1; - for (int i = 0;i < selectors.size();i++) { - if (predicate.test(selectors.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); - } - return this.setNewSelectorLike(index, this.buildSelector(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1DeviceClassSpecFluent that = (V1DeviceClassSpecFluent) o; - if (!(Objects.equals(config, that.config))) { - return false; - } - if (!(Objects.equals(extendedResourceName, that.extendedResourceName))) { - return false; - } - if (!(Objects.equals(selectors, that.selectors))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(config, extendedResourceName, selectors); - } + V1DeviceClassConfigurationBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(config == null) && !(config.isEmpty())) { - sb.append("config:"); - sb.append(config); - sb.append(","); - } - if (!(extendedResourceName == null)) { - sb.append("extendedResourceName:"); - sb.append(extendedResourceName); - sb.append(","); - } - if (!(selectors == null) && !(selectors.isEmpty())) { - sb.append("selectors:"); - sb.append(selectors); - } - sb.append("}"); - return sb.toString(); - } - public class ConfigNested extends V1DeviceClassConfigurationFluent> implements Nested{ ConfigNested(int index,V1DeviceClassConfiguration item) { this.index = index; this.builder = new V1DeviceClassConfigurationBuilder(this, item); } - V1DeviceClassConfigurationBuilder builder; - int index; - + public N and() { return (N) V1DeviceClassSpecFluent.this.setToConfig(index, builder.build()); } @@ -530,16 +534,17 @@ public N endConfig() { return and(); } - } public class SelectorsNested extends V1DeviceSelectorFluent> implements Nested{ + + V1DeviceSelectorBuilder builder; + int index; + SelectorsNested(int index,V1DeviceSelector item) { this.index = index; this.builder = new V1DeviceSelectorBuilder(this, item); } - V1DeviceSelectorBuilder builder; - int index; - + public N and() { return (N) V1DeviceClassSpecFluent.this.setToSelectors(index, builder.build()); } @@ -548,7 +553,5 @@ public N endSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintBuilder.java index 93a9ad57b5..4f847cd9cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceConstraintBuilder extends V1DeviceConstraintFluent implements VisitableBuilder{ + + V1DeviceConstraintFluent fluent; + public V1DeviceConstraintBuilder() { this(new V1DeviceConstraint()); } @@ -11,17 +14,16 @@ public V1DeviceConstraintBuilder(V1DeviceConstraintFluent fluent) { this(fluent, new V1DeviceConstraint()); } - public V1DeviceConstraintBuilder(V1DeviceConstraintFluent fluent,V1DeviceConstraint instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceConstraintBuilder(V1DeviceConstraint instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceConstraintFluent fluent; + public V1DeviceConstraintBuilder(V1DeviceConstraintFluent fluent,V1DeviceConstraint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeviceConstraint build() { V1DeviceConstraint buildable = new V1DeviceConstraint(); buildable.setDistinctAttribute(fluent.getDistinctAttribute()); @@ -30,5 +32,4 @@ public V1DeviceConstraint build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintFluent.java index 39482ff115..164ccdb1cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,64 +16,25 @@ */ @SuppressWarnings("unchecked") public class V1DeviceConstraintFluent> extends BaseFluent{ - public V1DeviceConstraintFluent() { - } - - public V1DeviceConstraintFluent(V1DeviceConstraint instance) { - this.copyInstance(instance); - } + private String distinctAttribute; private String matchAttribute; private List requests; - - protected void copyInstance(V1DeviceConstraint instance) { - instance = instance != null ? instance : new V1DeviceConstraint(); - if (instance != null) { - this.withDistinctAttribute(instance.getDistinctAttribute()); - this.withMatchAttribute(instance.getMatchAttribute()); - this.withRequests(instance.getRequests()); - } - } - - public String getDistinctAttribute() { - return this.distinctAttribute; - } - - public A withDistinctAttribute(String distinctAttribute) { - this.distinctAttribute = distinctAttribute; - return (A) this; - } - - public boolean hasDistinctAttribute() { - return this.distinctAttribute != null; - } - - public String getMatchAttribute() { - return this.matchAttribute; - } - - public A withMatchAttribute(String matchAttribute) { - this.matchAttribute = matchAttribute; - return (A) this; + + public V1DeviceConstraintFluent() { } - public boolean hasMatchAttribute() { - return this.matchAttribute != null; + public V1DeviceConstraintFluent(V1DeviceConstraint instance) { + this.copyInstance(instance); } - - public A addToRequests(int index,String item) { + + public A addAllToRequests(Collection items) { if (this.requests == null) { this.requests = new ArrayList(); } - this.requests.add(index, item); - return (A) this; - } - - public A setToRequests(int index,String item) { - if (this.requests == null) { - this.requests = new ArrayList(); + for (String item : items) { + this.requests.add(item); } - this.requests.set(index, item); return (A) this; } @@ -87,42 +48,48 @@ public A addToRequests(String... items) { return (A) this; } - public A addAllToRequests(Collection items) { + public A addToRequests(int index,String item) { if (this.requests == null) { this.requests = new ArrayList(); } - for (String item : items) { - this.requests.add(item); - } + this.requests.add(index, item); return (A) this; } - public A removeFromRequests(String... items) { - if (this.requests == null) { - return (A) this; - } - for (String item : items) { - this.requests.remove(item); + protected void copyInstance(V1DeviceConstraint instance) { + instance = instance != null ? instance : new V1DeviceConstraint(); + if (instance != null) { + this.withDistinctAttribute(instance.getDistinctAttribute()); + this.withMatchAttribute(instance.getMatchAttribute()); + this.withRequests(instance.getRequests()); } - return (A) this; } - public A removeAllFromRequests(Collection items) { - if (this.requests == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.requests.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public List getRequests() { - return this.requests; + if (!(super.equals(o))) { + return false; + } + V1DeviceConstraintFluent that = (V1DeviceConstraintFluent) o; + if (!(Objects.equals(distinctAttribute, that.distinctAttribute))) { + return false; + } + if (!(Objects.equals(matchAttribute, that.matchAttribute))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; } - public String getRequest(int index) { - return this.requests.get(index); + public String getDistinctAttribute() { + return this.distinctAttribute; } public String getFirstRequest() { @@ -133,6 +100,10 @@ public String getLastRequest() { return this.requests.get(requests.size() - 1); } + public String getMatchAttribute() { + return this.matchAttribute; + } + public String getMatchingRequest(Predicate predicate) { for (String item : requests) { if (predicate.test(item)) { @@ -142,6 +113,22 @@ public String getMatchingRequest(Predicate predicate) { return null; } + public String getRequest(int index) { + return this.requests.get(index); + } + + public List getRequests() { + return this.requests; + } + + public boolean hasDistinctAttribute() { + return this.distinctAttribute != null; + } + + public boolean hasMatchAttribute() { + return this.matchAttribute != null; + } + public boolean hasMatchingRequest(Predicate predicate) { for (String item : requests) { if (predicate.test(item)) { @@ -151,60 +138,40 @@ public boolean hasMatchingRequest(Predicate predicate) { return false; } - public A withRequests(List requests) { - if (requests != null) { - this.requests = new ArrayList(); - for (String item : requests) { - this.addToRequests(item); - } - } else { - this.requests = null; - } - return (A) this; + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); } - public A withRequests(String... requests) { - if (this.requests != null) { - this.requests.clear(); - _visitables.remove("requests"); + public int hashCode() { + return Objects.hash(distinctAttribute, matchAttribute, requests); + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; } - if (requests != null) { - for (String item : requests) { - this.addToRequests(item); - } + for (String item : items) { + this.requests.remove(item); } return (A) this; } - public boolean hasRequests() { - return this.requests != null && !(this.requests.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1DeviceConstraintFluent that = (V1DeviceConstraintFluent) o; - if (!(Objects.equals(distinctAttribute, that.distinctAttribute))) { - return false; - } - if (!(Objects.equals(matchAttribute, that.matchAttribute))) { - return false; + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; } - if (!(Objects.equals(requests, that.requests))) { - return false; + for (String item : items) { + this.requests.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(distinctAttribute, matchAttribute, requests); + public A setToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.set(index, item); + return (A) this; } public String toString() { @@ -228,5 +195,39 @@ public String toString() { return sb.toString(); } - + public A withDistinctAttribute(String distinctAttribute) { + this.distinctAttribute = distinctAttribute; + return (A) this; + } + + public A withMatchAttribute(String matchAttribute) { + this.matchAttribute = matchAttribute; + return (A) this; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionBuilder.java index 96e3866229..4ee96aeb17 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceCounterConsumptionBuilder extends V1DeviceCounterConsumptionFluent implements VisitableBuilder{ + + V1DeviceCounterConsumptionFluent fluent; + public V1DeviceCounterConsumptionBuilder() { this(new V1DeviceCounterConsumption()); } @@ -11,17 +14,16 @@ public V1DeviceCounterConsumptionBuilder(V1DeviceCounterConsumptionFluent flu this(fluent, new V1DeviceCounterConsumption()); } - public V1DeviceCounterConsumptionBuilder(V1DeviceCounterConsumptionFluent fluent,V1DeviceCounterConsumption instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceCounterConsumptionBuilder(V1DeviceCounterConsumption instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceCounterConsumptionFluent fluent; + public V1DeviceCounterConsumptionBuilder(V1DeviceCounterConsumptionFluent fluent,V1DeviceCounterConsumption instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeviceCounterConsumption build() { V1DeviceCounterConsumption buildable = new V1DeviceCounterConsumption(); buildable.setCounterSet(fluent.getCounterSet()); @@ -29,5 +31,4 @@ public V1DeviceCounterConsumption build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionFluent.java index fe6ecc29af..5069e72320 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionFluent.java @@ -1,27 +1,49 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; -import java.util.Map; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeviceCounterConsumptionFluent> extends BaseFluent{ + + private String counterSet; + private Map counters; + public V1DeviceCounterConsumptionFluent() { } public V1DeviceCounterConsumptionFluent(V1DeviceCounterConsumption instance) { this.copyInstance(instance); } - private String counterSet; - private Map counters; + + public A addToCounters(Map map) { + if (this.counters == null && map != null) { + this.counters = new LinkedHashMap(); + } + if (map != null) { + this.counters.putAll(map); + } + return (A) this; + } + + public A addToCounters(String key,V1Counter value) { + if (this.counters == null && key != null && value != null) { + this.counters = new LinkedHashMap(); + } + if (key != null && value != null) { + this.counters.put(key, value); + } + return (A) this; + } protected void copyInstance(V1DeviceCounterConsumption instance) { instance = instance != null ? instance : new V1DeviceCounterConsumption(); @@ -31,37 +53,44 @@ protected void copyInstance(V1DeviceCounterConsumption instance) { } } + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceCounterConsumptionFluent that = (V1DeviceCounterConsumptionFluent) o; + if (!(Objects.equals(counterSet, that.counterSet))) { + return false; + } + if (!(Objects.equals(counters, that.counters))) { + return false; + } + return true; + } + public String getCounterSet() { return this.counterSet; } - public A withCounterSet(String counterSet) { - this.counterSet = counterSet; - return (A) this; + public Map getCounters() { + return this.counters; } public boolean hasCounterSet() { return this.counterSet != null; } - public A addToCounters(String key,V1Counter value) { - if (this.counters == null && key != null && value != null) { - this.counters = new LinkedHashMap(); - } - if (key != null && value != null) { - this.counters.put(key, value); - } - return (A) this; + public boolean hasCounters() { + return this.counters != null; } - public A addToCounters(Map map) { - if (this.counters == null && map != null) { - this.counters = new LinkedHashMap(); - } - if (map != null) { - this.counters.putAll(map); - } - return (A) this; + public int hashCode() { + return Objects.hash(counterSet, counters); } public A removeFromCounters(String key) { @@ -88,47 +117,6 @@ public A removeFromCounters(Map map) { return (A) this; } - public Map getCounters() { - return this.counters; - } - - public A withCounters(Map counters) { - if (counters == null) { - this.counters = null; - } else { - this.counters = new LinkedHashMap(counters); - } - return (A) this; - } - - public boolean hasCounters() { - return this.counters != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1DeviceCounterConsumptionFluent that = (V1DeviceCounterConsumptionFluent) o; - if (!(Objects.equals(counterSet, that.counterSet))) { - return false; - } - if (!(Objects.equals(counters, that.counters))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(counterSet, counters); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -145,5 +133,18 @@ public String toString() { return sb.toString(); } - + public A withCounterSet(String counterSet) { + this.counterSet = counterSet; + return (A) this; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceFluent.java index 4d8ce904b4..c76f3614b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceFluent.java @@ -1,34 +1,29 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; -import java.lang.Boolean; -import java.util.Optional; -import java.util.Objects; -import java.util.Collection; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeviceFluent> extends BaseFluent{ - public V1DeviceFluent() { - } - - public V1DeviceFluent(V1Device instance) { - this.copyInstance(instance); - } + private Boolean allNodes; private Boolean allowMultipleAllocations; private Map attributes; @@ -41,59 +36,72 @@ public V1DeviceFluent(V1Device instance) { private String nodeName; private V1NodeSelectorBuilder nodeSelector; private ArrayList taints; + + public V1DeviceFluent() { + } - protected void copyInstance(V1Device instance) { - instance = instance != null ? instance : new V1Device(); - if (instance != null) { - this.withAllNodes(instance.getAllNodes()); - this.withAllowMultipleAllocations(instance.getAllowMultipleAllocations()); - this.withAttributes(instance.getAttributes()); - this.withBindingConditions(instance.getBindingConditions()); - this.withBindingFailureConditions(instance.getBindingFailureConditions()); - this.withBindsToNode(instance.getBindsToNode()); - this.withCapacity(instance.getCapacity()); - this.withConsumesCounters(instance.getConsumesCounters()); - this.withName(instance.getName()); - this.withNodeName(instance.getNodeName()); - this.withNodeSelector(instance.getNodeSelector()); - this.withTaints(instance.getTaints()); + public V1DeviceFluent(V1Device instance) { + this.copyInstance(instance); + } + + public A addAllToBindingConditions(Collection items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); } + return (A) this; } - public Boolean getAllNodes() { - return this.allNodes; + public A addAllToBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; } - public A withAllNodes(Boolean allNodes) { - this.allNodes = allNodes; + public A addAllToConsumesCounters(Collection items) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } + for (V1DeviceCounterConsumption item : items) { + V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); + } return (A) this; } - public boolean hasAllNodes() { - return this.allNodes != null; + public A addAllToTaints(Collection items) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + for (V1DeviceTaint item : items) { + V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); + } + return (A) this; } - public Boolean getAllowMultipleAllocations() { - return this.allowMultipleAllocations; + public ConsumesCountersNested addNewConsumesCounter() { + return new ConsumesCountersNested(-1, null); } - public A withAllowMultipleAllocations(Boolean allowMultipleAllocations) { - this.allowMultipleAllocations = allowMultipleAllocations; - return (A) this; + public ConsumesCountersNested addNewConsumesCounterLike(V1DeviceCounterConsumption item) { + return new ConsumesCountersNested(-1, item); } - public boolean hasAllowMultipleAllocations() { - return this.allowMultipleAllocations != null; + public TaintsNested addNewTaint() { + return new TaintsNested(-1, null); } - public A addToAttributes(String key,V1DeviceAttribute value) { - if (this.attributes == null && key != null && value != null) { - this.attributes = new LinkedHashMap(); - } - if (key != null && value != null) { - this.attributes.put(key, value); - } - return (A) this; + public TaintsNested addNewTaintLike(V1DeviceTaint item) { + return new TaintsNested(-1, item); } public A addToAttributes(Map map) { @@ -106,695 +114,526 @@ public A addToAttributes(Map map) { return (A) this; } - public A removeFromAttributes(String key) { - if (this.attributes == null) { - return (A) this; + public A addToAttributes(String key,V1DeviceAttribute value) { + if (this.attributes == null && key != null && value != null) { + this.attributes = new LinkedHashMap(); } - if (key != null && this.attributes != null) { - this.attributes.remove(key); + if (key != null && value != null) { + this.attributes.put(key, value); } return (A) this; } - public A removeFromAttributes(Map map) { - if (this.attributes == null) { - return (A) this; + public A addToBindingConditions(String... items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); } - if (map != null) { - for (Object key : map.keySet()) { - if (this.attributes != null) { - this.attributes.remove(key); - } - } + for (String item : items) { + this.bindingConditions.add(item); } return (A) this; } - public Map getAttributes() { - return this.attributes; + public A addToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.add(index, item); + return (A) this; } - public A withAttributes(Map attributes) { - if (attributes == null) { - this.attributes = null; - } else { - this.attributes = new LinkedHashMap(attributes); + public A addToBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); } return (A) this; } - public boolean hasAttributes() { - return this.attributes != null; + public A addToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.add(index, item); + return (A) this; } - public A addToBindingConditions(int index,String item) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + public A addToCapacity(Map map) { + if (this.capacity == null && map != null) { + this.capacity = new LinkedHashMap(); + } + if (map != null) { + this.capacity.putAll(map); } - this.bindingConditions.add(index, item); return (A) this; } - public A setToBindingConditions(int index,String item) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + public A addToCapacity(String key,V1DeviceCapacity value) { + if (this.capacity == null && key != null && value != null) { + this.capacity = new LinkedHashMap(); + } + if (key != null && value != null) { + this.capacity.put(key, value); } - this.bindingConditions.set(index, item); return (A) this; } - public A addToBindingConditions(String... items) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + public A addToConsumesCounters(V1DeviceCounterConsumption... items) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); } - for (String item : items) { - this.bindingConditions.add(item); + for (V1DeviceCounterConsumption item : items) { + V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); } return (A) this; } - public A addAllToBindingConditions(Collection items) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + public A addToConsumesCounters(int index,V1DeviceCounterConsumption item) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); } - for (String item : items) { - this.bindingConditions.add(item); + V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(index, builder); } return (A) this; } - public A removeFromBindingConditions(String... items) { - if (this.bindingConditions == null) { - return (A) this; + public A addToTaints(V1DeviceTaint... items) { + if (this.taints == null) { + this.taints = new ArrayList(); } - for (String item : items) { - this.bindingConditions.remove(item); + for (V1DeviceTaint item : items) { + V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); } return (A) this; } - public A removeAllFromBindingConditions(Collection items) { - if (this.bindingConditions == null) { - return (A) this; + public A addToTaints(int index,V1DeviceTaint item) { + if (this.taints == null) { + this.taints = new ArrayList(); } - for (String item : items) { - this.bindingConditions.remove(item); + V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.add(index, builder); } return (A) this; } - public List getBindingConditions() { - return this.bindingConditions; + public V1DeviceCounterConsumption buildConsumesCounter(int index) { + return this.consumesCounters.get(index).build(); } - public String getBindingCondition(int index) { - return this.bindingConditions.get(index); + public List buildConsumesCounters() { + return this.consumesCounters != null ? build(consumesCounters) : null; } - public String getFirstBindingCondition() { - return this.bindingConditions.get(0); + public V1DeviceCounterConsumption buildFirstConsumesCounter() { + return this.consumesCounters.get(0).build(); } - public String getLastBindingCondition() { - return this.bindingConditions.get(bindingConditions.size() - 1); + public V1DeviceTaint buildFirstTaint() { + return this.taints.get(0).build(); } - public String getMatchingBindingCondition(Predicate predicate) { - for (String item : bindingConditions) { + public V1DeviceCounterConsumption buildLastConsumesCounter() { + return this.consumesCounters.get(consumesCounters.size() - 1).build(); + } + + public V1DeviceTaint buildLastTaint() { + return this.taints.get(taints.size() - 1).build(); + } + + public V1DeviceCounterConsumption buildMatchingConsumesCounter(Predicate predicate) { + for (V1DeviceCounterConsumptionBuilder item : consumesCounters) { if (predicate.test(item)) { - return item; + return item.build(); } } return null; } - public boolean hasMatchingBindingCondition(Predicate predicate) { - for (String item : bindingConditions) { + public V1DeviceTaint buildMatchingTaint(Predicate predicate) { + for (V1DeviceTaintBuilder item : taints) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; - } - - public A withBindingConditions(List bindingConditions) { - if (bindingConditions != null) { - this.bindingConditions = new ArrayList(); - for (String item : bindingConditions) { - this.addToBindingConditions(item); - } - } else { - this.bindingConditions = null; - } - return (A) this; + return null; } - public A withBindingConditions(String... bindingConditions) { - if (this.bindingConditions != null) { - this.bindingConditions.clear(); - _visitables.remove("bindingConditions"); - } - if (bindingConditions != null) { - for (String item : bindingConditions) { - this.addToBindingConditions(item); - } - } - return (A) this; + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; } - public boolean hasBindingConditions() { - return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); + public V1DeviceTaint buildTaint(int index) { + return this.taints.get(index).build(); } - public A addToBindingFailureConditions(int index,String item) { - if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); - } - this.bindingFailureConditions.add(index, item); - return (A) this; + public List buildTaints() { + return this.taints != null ? build(taints) : null; } - public A setToBindingFailureConditions(int index,String item) { - if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + protected void copyInstance(V1Device instance) { + instance = instance != null ? instance : new V1Device(); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withAllowMultipleAllocations(instance.getAllowMultipleAllocations()); + this.withAttributes(instance.getAttributes()); + this.withBindingConditions(instance.getBindingConditions()); + this.withBindingFailureConditions(instance.getBindingFailureConditions()); + this.withBindsToNode(instance.getBindsToNode()); + this.withCapacity(instance.getCapacity()); + this.withConsumesCounters(instance.getConsumesCounters()); + this.withName(instance.getName()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withTaints(instance.getTaints()); } - this.bindingFailureConditions.set(index, item); - return (A) this; } - public A addToBindingFailureConditions(String... items) { - if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); - } - for (String item : items) { - this.bindingFailureConditions.add(item); + public ConsumesCountersNested editConsumesCounter(int index) { + if (consumesCounters.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "consumesCounters")); } - return (A) this; + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); } - public A addAllToBindingFailureConditions(Collection items) { - if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); - } - for (String item : items) { - this.bindingFailureConditions.add(item); + public ConsumesCountersNested editFirstConsumesCounter() { + if (consumesCounters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "consumesCounters")); } - return (A) this; + return this.setNewConsumesCounterLike(0, this.buildConsumesCounter(0)); } - public A removeFromBindingFailureConditions(String... items) { - if (this.bindingFailureConditions == null) { - return (A) this; - } - for (String item : items) { - this.bindingFailureConditions.remove(item); + public TaintsNested editFirstTaint() { + if (taints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "taints")); } - return (A) this; + return this.setNewTaintLike(0, this.buildTaint(0)); } - public A removeAllFromBindingFailureConditions(Collection items) { - if (this.bindingFailureConditions == null) { - return (A) this; - } - for (String item : items) { - this.bindingFailureConditions.remove(item); + public ConsumesCountersNested editLastConsumesCounter() { + int index = consumesCounters.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "consumesCounters")); } - return (A) this; - } - - public List getBindingFailureConditions() { - return this.bindingFailureConditions; - } - - public String getBindingFailureCondition(int index) { - return this.bindingFailureConditions.get(index); - } - - public String getFirstBindingFailureCondition() { - return this.bindingFailureConditions.get(0); - } - - public String getLastBindingFailureCondition() { - return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); - } - - public String getMatchingBindingFailureCondition(Predicate predicate) { - for (String item : bindingFailureConditions) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingBindingFailureCondition(Predicate predicate) { - for (String item : bindingFailureConditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); } - public A withBindingFailureConditions(List bindingFailureConditions) { - if (bindingFailureConditions != null) { - this.bindingFailureConditions = new ArrayList(); - for (String item : bindingFailureConditions) { - this.addToBindingFailureConditions(item); - } - } else { - this.bindingFailureConditions = null; + public TaintsNested editLastTaint() { + int index = taints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "taints")); } - return (A) this; + return this.setNewTaintLike(index, this.buildTaint(index)); } - public A withBindingFailureConditions(String... bindingFailureConditions) { - if (this.bindingFailureConditions != null) { - this.bindingFailureConditions.clear(); - _visitables.remove("bindingFailureConditions"); - } - if (bindingFailureConditions != null) { - for (String item : bindingFailureConditions) { - this.addToBindingFailureConditions(item); + public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { + int index = -1; + for (int i = 0;i < consumesCounters.size();i++) { + if (predicate.test(consumesCounters.get(i))) { + index = i; + break; } } - return (A) this; - } - - public boolean hasBindingFailureConditions() { - return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); - } - - public Boolean getBindsToNode() { - return this.bindsToNode; - } - - public A withBindsToNode(Boolean bindsToNode) { - this.bindsToNode = bindsToNode; - return (A) this; - } - - public boolean hasBindsToNode() { - return this.bindsToNode != null; - } - - public A addToCapacity(String key,V1DeviceCapacity value) { - if (this.capacity == null && key != null && value != null) { - this.capacity = new LinkedHashMap(); - } - if (key != null && value != null) { - this.capacity.put(key, value); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "consumesCounters")); } - return (A) this; + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); } - public A addToCapacity(Map map) { - if (this.capacity == null && map != null) { - this.capacity = new LinkedHashMap(); + public TaintsNested editMatchingTaint(Predicate predicate) { + int index = -1; + for (int i = 0;i < taints.size();i++) { + if (predicate.test(taints.get(i))) { + index = i; + break; + } } - if (map != null) { - this.capacity.putAll(map); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "taints")); } - return (A) this; + return this.setNewTaintLike(index, this.buildTaint(index)); } - public A removeFromCapacity(String key) { - if (this.capacity == null) { - return (A) this; - } - if (key != null && this.capacity != null) { - this.capacity.remove(key); - } - return (A) this; + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); } - public A removeFromCapacity(Map map) { - if (this.capacity == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.capacity != null) { - this.capacity.remove(key); - } - } - } - return (A) this; + public NodeSelectorNested editOrNewNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); } - public Map getCapacity() { - return this.capacity; + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); } - public A withCapacity(Map capacity) { - if (capacity == null) { - this.capacity = null; - } else { - this.capacity = new LinkedHashMap(capacity); + public TaintsNested editTaint(int index) { + if (taints.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "taints")); } - return (A) this; - } - - public boolean hasCapacity() { - return this.capacity != null; + return this.setNewTaintLike(index, this.buildTaint(index)); } - public A addToConsumesCounters(int index,V1DeviceCounterConsumption item) { - if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); - if (index < 0 || index >= consumesCounters.size()) { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(builder); - } else { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(index, builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A setToConsumesCounters(int index,V1DeviceCounterConsumption item) { - if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + if (!(super.equals(o))) { + return false; } - V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); - if (index < 0 || index >= consumesCounters.size()) { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(builder); - } else { - _visitables.get("consumesCounters").add(builder); - consumesCounters.set(index, builder); + V1DeviceFluent that = (V1DeviceFluent) o; + if (!(Objects.equals(allNodes, that.allNodes))) { + return false; } - return (A) this; - } - - public A addToConsumesCounters(V1DeviceCounterConsumption... items) { - if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + if (!(Objects.equals(allowMultipleAllocations, that.allowMultipleAllocations))) { + return false; } - for (V1DeviceCounterConsumption item : items) { - V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); - _visitables.get("consumesCounters").add(builder); - this.consumesCounters.add(builder); + if (!(Objects.equals(attributes, that.attributes))) { + return false; } - return (A) this; - } - - public A addAllToConsumesCounters(Collection items) { - if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + if (!(Objects.equals(bindingConditions, that.bindingConditions))) { + return false; } - for (V1DeviceCounterConsumption item : items) { - V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); - _visitables.get("consumesCounters").add(builder); - this.consumesCounters.add(builder); + if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { + return false; } - return (A) this; - } - - public A removeFromConsumesCounters(V1DeviceCounterConsumption... items) { - if (this.consumesCounters == null) { - return (A) this; + if (!(Objects.equals(bindsToNode, that.bindsToNode))) { + return false; } - for (V1DeviceCounterConsumption item : items) { - V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); - _visitables.get("consumesCounters").remove(builder); - this.consumesCounters.remove(builder); + if (!(Objects.equals(capacity, that.capacity))) { + return false; } - return (A) this; - } - - public A removeAllFromConsumesCounters(Collection items) { - if (this.consumesCounters == null) { - return (A) this; + if (!(Objects.equals(consumesCounters, that.consumesCounters))) { + return false; } - for (V1DeviceCounterConsumption item : items) { - V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); - _visitables.get("consumesCounters").remove(builder); - this.consumesCounters.remove(builder); + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; } - return (A) this; - } - - public A removeMatchingFromConsumesCounters(Predicate predicate) { - if (consumesCounters == null) { - return (A) this; + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; } - Iterator each = consumesCounters.iterator(); - List visitables = _visitables.get("consumesCounters"); - while (each.hasNext()) { - V1DeviceCounterConsumptionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (!(Objects.equals(taints, that.taints))) { + return false; } - return (A) this; - } - - public List buildConsumesCounters() { - return this.consumesCounters != null ? build(consumesCounters) : null; + return true; } - public V1DeviceCounterConsumption buildConsumesCounter(int index) { - return this.consumesCounters.get(index).build(); + public Boolean getAllNodes() { + return this.allNodes; } - public V1DeviceCounterConsumption buildFirstConsumesCounter() { - return this.consumesCounters.get(0).build(); + public Boolean getAllowMultipleAllocations() { + return this.allowMultipleAllocations; } - public V1DeviceCounterConsumption buildLastConsumesCounter() { - return this.consumesCounters.get(consumesCounters.size() - 1).build(); + public Map getAttributes() { + return this.attributes; } - public V1DeviceCounterConsumption buildMatchingConsumesCounter(Predicate predicate) { - for (V1DeviceCounterConsumptionBuilder item : consumesCounters) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getBindingCondition(int index) { + return this.bindingConditions.get(index); } - public boolean hasMatchingConsumesCounter(Predicate predicate) { - for (V1DeviceCounterConsumptionBuilder item : consumesCounters) { - if (predicate.test(item)) { - return true; - } - } - return false; + public List getBindingConditions() { + return this.bindingConditions; } - public A withConsumesCounters(List consumesCounters) { - if (this.consumesCounters != null) { - this._visitables.get("consumesCounters").clear(); - } - if (consumesCounters != null) { - this.consumesCounters = new ArrayList(); - for (V1DeviceCounterConsumption item : consumesCounters) { - this.addToConsumesCounters(item); - } - } else { - this.consumesCounters = null; - } - return (A) this; + public String getBindingFailureCondition(int index) { + return this.bindingFailureConditions.get(index); } - public A withConsumesCounters(V1DeviceCounterConsumption... consumesCounters) { - if (this.consumesCounters != null) { - this.consumesCounters.clear(); - _visitables.remove("consumesCounters"); - } - if (consumesCounters != null) { - for (V1DeviceCounterConsumption item : consumesCounters) { - this.addToConsumesCounters(item); - } - } - return (A) this; + public List getBindingFailureConditions() { + return this.bindingFailureConditions; } - public boolean hasConsumesCounters() { - return this.consumesCounters != null && !(this.consumesCounters.isEmpty()); + public Boolean getBindsToNode() { + return this.bindsToNode; } - public ConsumesCountersNested addNewConsumesCounter() { - return new ConsumesCountersNested(-1, null); + public Map getCapacity() { + return this.capacity; } - public ConsumesCountersNested addNewConsumesCounterLike(V1DeviceCounterConsumption item) { - return new ConsumesCountersNested(-1, item); + public String getFirstBindingCondition() { + return this.bindingConditions.get(0); } - public ConsumesCountersNested setNewConsumesCounterLike(int index,V1DeviceCounterConsumption item) { - return new ConsumesCountersNested(index, item); + public String getFirstBindingFailureCondition() { + return this.bindingFailureConditions.get(0); } - public ConsumesCountersNested editConsumesCounter(int index) { - if (index <= consumesCounters.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "consumesCounters")); - } - return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + public String getLastBindingCondition() { + return this.bindingConditions.get(bindingConditions.size() - 1); } - public ConsumesCountersNested editFirstConsumesCounter() { - if (consumesCounters.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "consumesCounters")); - } - return this.setNewConsumesCounterLike(0, this.buildConsumesCounter(0)); + public String getLastBindingFailureCondition() { + return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); } - public ConsumesCountersNested editLastConsumesCounter() { - int index = consumesCounters.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "consumesCounters")); - } - return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + public String getMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { - int index = -1; - for (int i = 0;i < consumesCounters.size();i++) { - if (predicate.test(consumesCounters.get(i))) { - index = i; - break; + public String getMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return item; + } } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "consumesCounters")); - } - return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + return null; } public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + public String getNodeName() { + return this.nodeName; } - public boolean hasName() { - return this.name != null; + public boolean hasAllNodes() { + return this.allNodes != null; } - public String getNodeName() { - return this.nodeName; + public boolean hasAllowMultipleAllocations() { + return this.allowMultipleAllocations != null; } - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; + public boolean hasAttributes() { + return this.attributes != null; } - public boolean hasNodeName() { - return this.nodeName != null; + public boolean hasBindingConditions() { + return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); } - public V1NodeSelector buildNodeSelector() { - return this.nodeSelector != null ? this.nodeSelector.build() : null; + public boolean hasBindingFailureConditions() { + return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); } - public A withNodeSelector(V1NodeSelector nodeSelector) { - this._visitables.remove("nodeSelector"); - if (nodeSelector != null) { - this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); - this._visitables.get("nodeSelector").add(this.nodeSelector); - } else { - this.nodeSelector = null; - this._visitables.get("nodeSelector").remove(this.nodeSelector); - } - return (A) this; + public boolean hasBindsToNode() { + return this.bindsToNode != null; } - public boolean hasNodeSelector() { - return this.nodeSelector != null; + public boolean hasCapacity() { + return this.capacity != null; } - public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); + public boolean hasConsumesCounters() { + return this.consumesCounters != null && !(this.consumesCounters.isEmpty()); } - public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); + public boolean hasMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public NodeSelectorNested editNodeSelector() { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public NodeSelectorNested editOrNewNodeSelector() { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + public boolean hasMatchingConsumesCounter(Predicate predicate) { + for (V1DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); + public boolean hasMatchingTaint(Predicate predicate) { + for (V1DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addToTaints(int index,V1DeviceTaint item) { - if (this.taints == null) { - this.taints = new ArrayList(); - } - V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); - if (index < 0 || index >= taints.size()) { - _visitables.get("taints").add(builder); - taints.add(builder); - } else { - _visitables.get("taints").add(builder); - taints.add(index, builder); - } - return (A) this; + public boolean hasName() { + return this.name != null; } - public A setToTaints(int index,V1DeviceTaint item) { - if (this.taints == null) { - this.taints = new ArrayList(); - } - V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); - if (index < 0 || index >= taints.size()) { - _visitables.get("taints").add(builder); - taints.add(builder); - } else { - _visitables.get("taints").add(builder); - taints.set(index, builder); - } - return (A) this; + public boolean hasNodeName() { + return this.nodeName != null; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; } - public A addToTaints(V1DeviceTaint... items) { - if (this.taints == null) { - this.taints = new ArrayList(); + public boolean hasTaints() { + return this.taints != null && !(this.taints.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeName, nodeSelector, taints); + } + + public A removeAllFromBindingConditions(Collection items) { + if (this.bindingConditions == null) { + return (A) this; } - for (V1DeviceTaint item : items) { - V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); - _visitables.get("taints").add(builder); - this.taints.add(builder); + for (String item : items) { + this.bindingConditions.remove(item); } return (A) this; } - public A addAllToTaints(Collection items) { - if (this.taints == null) { - this.taints = new ArrayList(); + public A removeAllFromBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + return (A) this; } - for (V1DeviceTaint item : items) { - V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); - _visitables.get("taints").add(builder); - this.taints.add(builder); + for (String item : items) { + this.bindingFailureConditions.remove(item); } return (A) this; } - public A removeFromTaints(V1DeviceTaint... items) { - if (this.taints == null) { + public A removeAllFromConsumesCounters(Collection items) { + if (this.consumesCounters == null) { return (A) this; } - for (V1DeviceTaint item : items) { - V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); - _visitables.get("taints").remove(builder); - this.taints.remove(builder); + for (V1DeviceCounterConsumption item : items) { + V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").remove(builder); + this.consumesCounters.remove(builder); } return (A) this; } @@ -811,188 +650,182 @@ public A removeAllFromTaints(Collection items) { return (A) this; } - public A removeMatchingFromTaints(Predicate predicate) { - if (taints == null) { + public A removeFromAttributes(String key) { + if (this.attributes == null) { return (A) this; } - Iterator each = taints.iterator(); - List visitables = _visitables.get("taints"); - while (each.hasNext()) { - V1DeviceTaintBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (key != null && this.attributes != null) { + this.attributes.remove(key); } return (A) this; } - public List buildTaints() { - return this.taints != null ? build(taints) : null; - } - - public V1DeviceTaint buildTaint(int index) { - return this.taints.get(index).build(); - } - - public V1DeviceTaint buildFirstTaint() { - return this.taints.get(0).build(); - } - - public V1DeviceTaint buildLastTaint() { - return this.taints.get(taints.size() - 1).build(); - } - - public V1DeviceTaint buildMatchingTaint(Predicate predicate) { - for (V1DeviceTaintBuilder item : taints) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingTaint(Predicate predicate) { - for (V1DeviceTaintBuilder item : taints) { - if (predicate.test(item)) { - return true; + public A removeFromAttributes(Map map) { + if (this.attributes == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.attributes != null) { + this.attributes.remove(key); } } - return false; + } + return (A) this; } - public A withTaints(List taints) { - if (this.taints != null) { - this._visitables.get("taints").clear(); + public A removeFromBindingConditions(String... items) { + if (this.bindingConditions == null) { + return (A) this; } - if (taints != null) { - this.taints = new ArrayList(); - for (V1DeviceTaint item : taints) { - this.addToTaints(item); - } - } else { - this.taints = null; + for (String item : items) { + this.bindingConditions.remove(item); } return (A) this; } - public A withTaints(V1DeviceTaint... taints) { - if (this.taints != null) { - this.taints.clear(); - _visitables.remove("taints"); + public A removeFromBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + return (A) this; } - if (taints != null) { - for (V1DeviceTaint item : taints) { - this.addToTaints(item); - } + for (String item : items) { + this.bindingFailureConditions.remove(item); } return (A) this; } - public boolean hasTaints() { - return this.taints != null && !(this.taints.isEmpty()); - } - - public TaintsNested addNewTaint() { - return new TaintsNested(-1, null); - } - - public TaintsNested addNewTaintLike(V1DeviceTaint item) { - return new TaintsNested(-1, item); - } - - public TaintsNested setNewTaintLike(int index,V1DeviceTaint item) { - return new TaintsNested(index, item); - } - - public TaintsNested editTaint(int index) { - if (index <= taints.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "taints")); + public A removeFromCapacity(String key) { + if (this.capacity == null) { + return (A) this; } - return this.setNewTaintLike(index, this.buildTaint(index)); - } - - public TaintsNested editFirstTaint() { - if (taints.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "taints")); + if (key != null && this.capacity != null) { + this.capacity.remove(key); } - return this.setNewTaintLike(0, this.buildTaint(0)); + return (A) this; } - public TaintsNested editLastTaint() { - int index = taints.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "taints")); + public A removeFromCapacity(Map map) { + if (this.capacity == null) { + return (A) this; } - return this.setNewTaintLike(index, this.buildTaint(index)); - } - - public TaintsNested editMatchingTaint(Predicate predicate) { - int index = -1; - for (int i = 0;i < taints.size();i++) { - if (predicate.test(taints.get(i))) { - index = i; - break; + if (map != null) { + for (Object key : map.keySet()) { + if (this.capacity != null) { + this.capacity.remove(key); + } } } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "taints")); - } - return this.setNewTaintLike(index, this.buildTaint(index)); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1DeviceFluent that = (V1DeviceFluent) o; - if (!(Objects.equals(allNodes, that.allNodes))) { - return false; + public A removeFromConsumesCounters(V1DeviceCounterConsumption... items) { + if (this.consumesCounters == null) { + return (A) this; } - if (!(Objects.equals(allowMultipleAllocations, that.allowMultipleAllocations))) { - return false; + for (V1DeviceCounterConsumption item : items) { + V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").remove(builder); + this.consumesCounters.remove(builder); } - if (!(Objects.equals(attributes, that.attributes))) { - return false; + return (A) this; + } + + public A removeFromTaints(V1DeviceTaint... items) { + if (this.taints == null) { + return (A) this; } - if (!(Objects.equals(bindingConditions, that.bindingConditions))) { - return false; + for (V1DeviceTaint item : items) { + V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); + _visitables.get("taints").remove(builder); + this.taints.remove(builder); } - if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { - return false; + return (A) this; + } + + public A removeMatchingFromConsumesCounters(Predicate predicate) { + if (consumesCounters == null) { + return (A) this; } - if (!(Objects.equals(bindsToNode, that.bindsToNode))) { - return false; + Iterator each = consumesCounters.iterator(); + List visitables = _visitables.get("consumesCounters"); + while (each.hasNext()) { + V1DeviceCounterConsumptionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - if (!(Objects.equals(capacity, that.capacity))) { - return false; + return (A) this; + } + + public A removeMatchingFromTaints(Predicate predicate) { + if (taints == null) { + return (A) this; } - if (!(Objects.equals(consumesCounters, that.consumesCounters))) { - return false; + Iterator each = taints.iterator(); + List visitables = _visitables.get("taints"); + while (each.hasNext()) { + V1DeviceTaintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - if (!(Objects.equals(name, that.name))) { - return false; + return (A) this; + } + + public ConsumesCountersNested setNewConsumesCounterLike(int index,V1DeviceCounterConsumption item) { + return new ConsumesCountersNested(index, item); + } + + public TaintsNested setNewTaintLike(int index,V1DeviceTaint item) { + return new TaintsNested(index, item); + } + + public A setToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); } - if (!(Objects.equals(nodeName, that.nodeName))) { - return false; + this.bindingConditions.set(index, item); + return (A) this; + } + + public A setToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); } - if (!(Objects.equals(nodeSelector, that.nodeSelector))) { - return false; + this.bindingFailureConditions.set(index, item); + return (A) this; + } + + public A setToConsumesCounters(int index,V1DeviceCounterConsumption item) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); } - if (!(Objects.equals(taints, that.taints))) { - return false; + V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.set(index, builder); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeName, nodeSelector, taints); + public A setToTaints(int index,V1DeviceTaint item) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.set(index, builder); + } + return (A) this; } public String toString() { @@ -1065,21 +898,192 @@ public A withAllNodes() { return withAllNodes(true); } + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + public A withAllowMultipleAllocations() { return withAllowMultipleAllocations(true); } + public A withAllowMultipleAllocations(Boolean allowMultipleAllocations) { + this.allowMultipleAllocations = allowMultipleAllocations; + return (A) this; + } + + public A withAttributes(Map attributes) { + if (attributes == null) { + this.attributes = null; + } else { + this.attributes = new LinkedHashMap(attributes); + } + return (A) this; + } + + public A withBindingConditions(List bindingConditions) { + if (bindingConditions != null) { + this.bindingConditions = new ArrayList(); + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } else { + this.bindingConditions = null; + } + return (A) this; + } + + public A withBindingConditions(String... bindingConditions) { + if (this.bindingConditions != null) { + this.bindingConditions.clear(); + _visitables.remove("bindingConditions"); + } + if (bindingConditions != null) { + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } + return (A) this; + } + + public A withBindingFailureConditions(List bindingFailureConditions) { + if (bindingFailureConditions != null) { + this.bindingFailureConditions = new ArrayList(); + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } else { + this.bindingFailureConditions = null; + } + return (A) this; + } + + public A withBindingFailureConditions(String... bindingFailureConditions) { + if (this.bindingFailureConditions != null) { + this.bindingFailureConditions.clear(); + _visitables.remove("bindingFailureConditions"); + } + if (bindingFailureConditions != null) { + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } + return (A) this; + } + public A withBindsToNode() { return withBindsToNode(true); } + + public A withBindsToNode(Boolean bindsToNode) { + this.bindsToNode = bindsToNode; + return (A) this; + } + + public A withCapacity(Map capacity) { + if (capacity == null) { + this.capacity = null; + } else { + this.capacity = new LinkedHashMap(capacity); + } + return (A) this; + } + + public A withConsumesCounters(List consumesCounters) { + if (this.consumesCounters != null) { + this._visitables.get("consumesCounters").clear(); + } + if (consumesCounters != null) { + this.consumesCounters = new ArrayList(); + for (V1DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } else { + this.consumesCounters = null; + } + return (A) this; + } + + public A withConsumesCounters(V1DeviceCounterConsumption... consumesCounters) { + if (this.consumesCounters != null) { + this.consumesCounters.clear(); + _visitables.remove("consumesCounters"); + } + if (consumesCounters != null) { + for (V1DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + public A withNodeSelector(V1NodeSelector nodeSelector) { + this._visitables.remove("nodeSelector"); + if (nodeSelector != null) { + this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); + this._visitables.get("nodeSelector").add(this.nodeSelector); + } else { + this.nodeSelector = null; + this._visitables.get("nodeSelector").remove(this.nodeSelector); + } + return (A) this; + } + + public A withTaints(List taints) { + if (this.taints != null) { + this._visitables.get("taints").clear(); + } + if (taints != null) { + this.taints = new ArrayList(); + for (V1DeviceTaint item : taints) { + this.addToTaints(item); + } + } else { + this.taints = null; + } + return (A) this; + } + + public A withTaints(V1DeviceTaint... taints) { + if (this.taints != null) { + this.taints.clear(); + _visitables.remove("taints"); + } + if (taints != null) { + for (V1DeviceTaint item : taints) { + this.addToTaints(item); + } + } + return (A) this; + } public class ConsumesCountersNested extends V1DeviceCounterConsumptionFluent> implements Nested{ + + V1DeviceCounterConsumptionBuilder builder; + int index; + ConsumesCountersNested(int index,V1DeviceCounterConsumption item) { this.index = index; this.builder = new V1DeviceCounterConsumptionBuilder(this, item); } - V1DeviceCounterConsumptionBuilder builder; - int index; - + public N and() { return (N) V1DeviceFluent.this.setToConsumesCounters(index, builder.build()); } @@ -1088,14 +1092,15 @@ public N endConsumesCounter() { return and(); } - } public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + NodeSelectorNested(V1NodeSelector item) { this.builder = new V1NodeSelectorBuilder(this, item); } - V1NodeSelectorBuilder builder; - + public N and() { return (N) V1DeviceFluent.this.withNodeSelector(builder.build()); } @@ -1104,16 +1109,17 @@ public N endNodeSelector() { return and(); } - } public class TaintsNested extends V1DeviceTaintFluent> implements Nested{ + + V1DeviceTaintBuilder builder; + int index; + TaintsNested(int index,V1DeviceTaint item) { this.index = index; this.builder = new V1DeviceTaintBuilder(this, item); } - V1DeviceTaintBuilder builder; - int index; - + public N and() { return (N) V1DeviceFluent.this.setToTaints(index, builder.build()); } @@ -1122,7 +1128,5 @@ public N endTaint() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultBuilder.java index cc85bc59a0..2ac69b176b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceRequestAllocationResultBuilder extends V1DeviceRequestAllocationResultFluent implements VisitableBuilder{ + + V1DeviceRequestAllocationResultFluent fluent; + public V1DeviceRequestAllocationResultBuilder() { this(new V1DeviceRequestAllocationResult()); } @@ -11,17 +14,16 @@ public V1DeviceRequestAllocationResultBuilder(V1DeviceRequestAllocationResultFlu this(fluent, new V1DeviceRequestAllocationResult()); } - public V1DeviceRequestAllocationResultBuilder(V1DeviceRequestAllocationResultFluent fluent,V1DeviceRequestAllocationResult instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceRequestAllocationResultBuilder(V1DeviceRequestAllocationResult instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceRequestAllocationResultFluent fluent; + public V1DeviceRequestAllocationResultBuilder(V1DeviceRequestAllocationResultFluent fluent,V1DeviceRequestAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeviceRequestAllocationResult build() { V1DeviceRequestAllocationResult buildable = new V1DeviceRequestAllocationResult(); buildable.setAdminAccess(fluent.getAdminAccess()); @@ -37,5 +39,4 @@ public V1DeviceRequestAllocationResult build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultFluent.java index 78ef520924..e321b21478 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultFluent.java @@ -1,34 +1,29 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; -import java.lang.Boolean; -import io.kubernetes.client.custom.Quantity; -import java.util.Objects; -import java.util.Collection; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeviceRequestAllocationResultFluent> extends BaseFluent{ - public V1DeviceRequestAllocationResultFluent() { - } - - public V1DeviceRequestAllocationResultFluent(V1DeviceRequestAllocationResult instance) { - this.copyInstance(instance); - } + private Boolean adminAccess; private List bindingConditions; private List bindingFailureConditions; @@ -39,62 +34,14 @@ public V1DeviceRequestAllocationResultFluent(V1DeviceRequestAllocationResult ins private String request; private String shareID; private ArrayList tolerations; - - protected void copyInstance(V1DeviceRequestAllocationResult instance) { - instance = instance != null ? instance : new V1DeviceRequestAllocationResult(); - if (instance != null) { - this.withAdminAccess(instance.getAdminAccess()); - this.withBindingConditions(instance.getBindingConditions()); - this.withBindingFailureConditions(instance.getBindingFailureConditions()); - this.withConsumedCapacity(instance.getConsumedCapacity()); - this.withDevice(instance.getDevice()); - this.withDriver(instance.getDriver()); - this.withPool(instance.getPool()); - this.withRequest(instance.getRequest()); - this.withShareID(instance.getShareID()); - this.withTolerations(instance.getTolerations()); - } - } - - public Boolean getAdminAccess() { - return this.adminAccess; - } - - public A withAdminAccess(Boolean adminAccess) { - this.adminAccess = adminAccess; - return (A) this; - } - - public boolean hasAdminAccess() { - return this.adminAccess != null; - } - - public A addToBindingConditions(int index,String item) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); - } - this.bindingConditions.add(index, item); - return (A) this; - } - - public A setToBindingConditions(int index,String item) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); - } - this.bindingConditions.set(index, item); - return (A) this; + + public V1DeviceRequestAllocationResultFluent() { } - public A addToBindingConditions(String... items) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); - } - for (String item : items) { - this.bindingConditions.add(item); - } - return (A) this; + public V1DeviceRequestAllocationResultFluent(V1DeviceRequestAllocationResult instance) { + this.copyInstance(instance); } - + public A addAllToBindingConditions(Collection items) { if (this.bindingConditions == null) { this.bindingConditions = new ArrayList(); @@ -105,389 +52,410 @@ public A addAllToBindingConditions(Collection items) { return (A) this; } - public A removeFromBindingConditions(String... items) { - if (this.bindingConditions == null) { - return (A) this; + public A addAllToBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); } for (String item : items) { - this.bindingConditions.remove(item); + this.bindingFailureConditions.add(item); } return (A) this; } - public A removeAllFromBindingConditions(Collection items) { - if (this.bindingConditions == null) { - return (A) this; + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - for (String item : items) { - this.bindingConditions.remove(item); + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } return (A) this; } - public List getBindingConditions() { - return this.bindingConditions; - } - - public String getBindingCondition(int index) { - return this.bindingConditions.get(index); - } - - public String getFirstBindingCondition() { - return this.bindingConditions.get(0); - } - - public String getLastBindingCondition() { - return this.bindingConditions.get(bindingConditions.size() - 1); - } - - public String getMatchingBindingCondition(Predicate predicate) { - for (String item : bindingConditions) { - if (predicate.test(item)) { - return item; - } - } - return null; + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); } - public boolean hasMatchingBindingCondition(Predicate predicate) { - for (String item : bindingConditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public TolerationsNested addNewTolerationLike(V1DeviceToleration item) { + return new TolerationsNested(-1, item); } - public A withBindingConditions(List bindingConditions) { - if (bindingConditions != null) { - this.bindingConditions = new ArrayList(); - for (String item : bindingConditions) { - this.addToBindingConditions(item); - } - } else { - this.bindingConditions = null; + public A addToBindingConditions(String... items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); } return (A) this; } - public A withBindingConditions(String... bindingConditions) { - if (this.bindingConditions != null) { - this.bindingConditions.clear(); - _visitables.remove("bindingConditions"); - } - if (bindingConditions != null) { - for (String item : bindingConditions) { - this.addToBindingConditions(item); - } + public A addToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); } + this.bindingConditions.add(index, item); return (A) this; } - public boolean hasBindingConditions() { - return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); - } - - public A addToBindingFailureConditions(int index,String item) { + public A addToBindingFailureConditions(String... items) { if (this.bindingFailureConditions == null) { this.bindingFailureConditions = new ArrayList(); } - this.bindingFailureConditions.add(index, item); + for (String item : items) { + this.bindingFailureConditions.add(item); + } return (A) this; } - public A setToBindingFailureConditions(int index,String item) { + public A addToBindingFailureConditions(int index,String item) { if (this.bindingFailureConditions == null) { this.bindingFailureConditions = new ArrayList(); } - this.bindingFailureConditions.set(index, item); + this.bindingFailureConditions.add(index, item); return (A) this; } - public A addToBindingFailureConditions(String... items) { - if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + public A addToConsumedCapacity(Map map) { + if (this.consumedCapacity == null && map != null) { + this.consumedCapacity = new LinkedHashMap(); } - for (String item : items) { - this.bindingFailureConditions.add(item); + if (map != null) { + this.consumedCapacity.putAll(map); } return (A) this; } - public A addAllToBindingFailureConditions(Collection items) { - if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + public A addToConsumedCapacity(String key,Quantity value) { + if (this.consumedCapacity == null && key != null && value != null) { + this.consumedCapacity = new LinkedHashMap(); } - for (String item : items) { - this.bindingFailureConditions.add(item); + if (key != null && value != null) { + this.consumedCapacity.put(key, value); } return (A) this; } - public A removeFromBindingFailureConditions(String... items) { - if (this.bindingFailureConditions == null) { - return (A) this; + public A addToTolerations(V1DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - for (String item : items) { - this.bindingFailureConditions.remove(item); + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } return (A) this; } - public A removeAllFromBindingFailureConditions(Collection items) { - if (this.bindingFailureConditions == null) { - return (A) this; + public A addToTolerations(int index,V1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - for (String item : items) { - this.bindingFailureConditions.remove(item); + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); } return (A) this; } - public List getBindingFailureConditions() { - return this.bindingFailureConditions; - } - - public String getBindingFailureCondition(int index) { - return this.bindingFailureConditions.get(index); - } - - public String getFirstBindingFailureCondition() { - return this.bindingFailureConditions.get(0); + public V1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); } - public String getLastBindingFailureCondition() { - return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); + public V1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); } - public String getMatchingBindingFailureCondition(Predicate predicate) { - for (String item : bindingFailureConditions) { + public V1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1DeviceTolerationBuilder item : tolerations) { if (predicate.test(item)) { - return item; + return item.build(); } } return null; } - public boolean hasMatchingBindingFailureCondition(Predicate predicate) { - for (String item : bindingFailureConditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); } - public A withBindingFailureConditions(List bindingFailureConditions) { - if (bindingFailureConditions != null) { - this.bindingFailureConditions = new ArrayList(); - for (String item : bindingFailureConditions) { - this.addToBindingFailureConditions(item); - } - } else { - this.bindingFailureConditions = null; - } - return (A) this; + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; } - public A withBindingFailureConditions(String... bindingFailureConditions) { - if (this.bindingFailureConditions != null) { - this.bindingFailureConditions.clear(); - _visitables.remove("bindingFailureConditions"); - } - if (bindingFailureConditions != null) { - for (String item : bindingFailureConditions) { - this.addToBindingFailureConditions(item); - } + protected void copyInstance(V1DeviceRequestAllocationResult instance) { + instance = instance != null ? instance : new V1DeviceRequestAllocationResult(); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withBindingConditions(instance.getBindingConditions()); + this.withBindingFailureConditions(instance.getBindingFailureConditions()); + this.withConsumedCapacity(instance.getConsumedCapacity()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + this.withRequest(instance.getRequest()); + this.withShareID(instance.getShareID()); + this.withTolerations(instance.getTolerations()); } - return (A) this; } - public boolean hasBindingFailureConditions() { - return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); } - public A addToConsumedCapacity(String key,Quantity value) { - if (this.consumedCapacity == null && key != null && value != null) { - this.consumedCapacity = new LinkedHashMap(); - } - if (key != null && value != null) { - this.consumedCapacity.put(key, value); + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A addToConsumedCapacity(Map map) { - if (this.consumedCapacity == null && map != null) { - this.consumedCapacity = new LinkedHashMap(); + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } } - if (map != null) { - this.consumedCapacity.putAll(map); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A removeFromConsumedCapacity(String key) { - if (this.consumedCapacity == null) { - return (A) this; - } - if (key != null && this.consumedCapacity != null) { - this.consumedCapacity.remove(key); + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A removeFromConsumedCapacity(Map map) { - if (this.consumedCapacity == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - if (map != null) { - for (Object key : map.keySet()) { - if (this.consumedCapacity != null) { - this.consumedCapacity.remove(key); - } - } + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1DeviceRequestAllocationResultFluent that = (V1DeviceRequestAllocationResultFluent) o; + if (!(Objects.equals(adminAccess, that.adminAccess))) { + return false; + } + if (!(Objects.equals(bindingConditions, that.bindingConditions))) { + return false; + } + if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { + return false; + } + if (!(Objects.equals(consumedCapacity, that.consumedCapacity))) { + return false; + } + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(request, that.request))) { + return false; + } + if (!(Objects.equals(shareID, that.shareID))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; } - public Map getConsumedCapacity() { - return this.consumedCapacity; + public Boolean getAdminAccess() { + return this.adminAccess; } - public A withConsumedCapacity(Map consumedCapacity) { - if (consumedCapacity == null) { - this.consumedCapacity = null; - } else { - this.consumedCapacity = new LinkedHashMap(consumedCapacity); - } - return (A) this; + public String getBindingCondition(int index) { + return this.bindingConditions.get(index); } - public boolean hasConsumedCapacity() { - return this.consumedCapacity != null; + public List getBindingConditions() { + return this.bindingConditions; } - public String getDevice() { - return this.device; + public String getBindingFailureCondition(int index) { + return this.bindingFailureConditions.get(index); } - public A withDevice(String device) { - this.device = device; - return (A) this; + public List getBindingFailureConditions() { + return this.bindingFailureConditions; } - public boolean hasDevice() { - return this.device != null; + public Map getConsumedCapacity() { + return this.consumedCapacity; + } + + public String getDevice() { + return this.device; } public String getDriver() { return this.driver; } - public A withDriver(String driver) { - this.driver = driver; - return (A) this; + public String getFirstBindingCondition() { + return this.bindingConditions.get(0); } - public boolean hasDriver() { - return this.driver != null; + public String getFirstBindingFailureCondition() { + return this.bindingFailureConditions.get(0); } - public String getPool() { - return this.pool; + public String getLastBindingCondition() { + return this.bindingConditions.get(bindingConditions.size() - 1); } - public A withPool(String pool) { - this.pool = pool; - return (A) this; + public String getLastBindingFailureCondition() { + return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); } - public boolean hasPool() { - return this.pool != null; + public String getMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public String getRequest() { - return this.request; + public String getMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A withRequest(String request) { - this.request = request; - return (A) this; + public String getPool() { + return this.pool; } - public boolean hasRequest() { - return this.request != null; + public String getRequest() { + return this.request; } public String getShareID() { return this.shareID; } - public A withShareID(String shareID) { - this.shareID = shareID; - return (A) this; + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public boolean hasBindingConditions() { + return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); + } + + public boolean hasBindingFailureConditions() { + return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); + } + + public boolean hasConsumedCapacity() { + return this.consumedCapacity != null; + } + + public boolean hasDevice() { + return this.device != null; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean hasRequest() { + return this.request != null; } public boolean hasShareID() { return this.shareID != null; } - public A addToTolerations(int index,V1DeviceToleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); - } - return (A) this; + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); } - public A setToTolerations(int index,V1DeviceToleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); - } - return (A) this; + public int hashCode() { + return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); } - public A addToTolerations(V1DeviceToleration... items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); + public A removeAllFromBindingConditions(Collection items) { + if (this.bindingConditions == null) { + return (A) this; } - for (V1DeviceToleration item : items) { - V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); + for (String item : items) { + this.bindingConditions.remove(item); } return (A) this; } - public A addAllToTolerations(Collection items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); + public A removeAllFromBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + return (A) this; } - for (V1DeviceToleration item : items) { - V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); + for (String item : items) { + this.bindingFailureConditions.remove(item); } return (A) this; } - public A removeFromTolerations(V1DeviceToleration... items) { + public A removeAllFromTolerations(Collection items) { if (this.tolerations == null) { return (A) this; } @@ -499,194 +467,111 @@ public A removeFromTolerations(V1DeviceToleration... items) { return (A) this; } - public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) { + public A removeFromBindingConditions(String... items) { + if (this.bindingConditions == null) { return (A) this; } - for (V1DeviceToleration item : items) { - V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - this.tolerations.remove(builder); + for (String item : items) { + this.bindingConditions.remove(item); } return (A) this; } - public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) { + public A removeFromBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { return (A) this; } - Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); - while (each.hasNext()) { - V1DeviceTolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (String item : items) { + this.bindingFailureConditions.remove(item); } return (A) this; } - public List buildTolerations() { - return this.tolerations != null ? build(tolerations) : null; - } - - public V1DeviceToleration buildToleration(int index) { - return this.tolerations.get(index).build(); - } - - public V1DeviceToleration buildFirstToleration() { - return this.tolerations.get(0).build(); - } - - public V1DeviceToleration buildLastToleration() { - return this.tolerations.get(tolerations.size() - 1).build(); - } - - public V1DeviceToleration buildMatchingToleration(Predicate predicate) { - for (V1DeviceTolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingToleration(Predicate predicate) { - for (V1DeviceTolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withTolerations(List tolerations) { - if (this.tolerations != null) { - this._visitables.get("tolerations").clear(); + public A removeFromConsumedCapacity(String key) { + if (this.consumedCapacity == null) { + return (A) this; } - if (tolerations != null) { - this.tolerations = new ArrayList(); - for (V1DeviceToleration item : tolerations) { - this.addToTolerations(item); - } - } else { - this.tolerations = null; + if (key != null && this.consumedCapacity != null) { + this.consumedCapacity.remove(key); } return (A) this; } - public A withTolerations(V1DeviceToleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - _visitables.remove("tolerations"); + public A removeFromConsumedCapacity(Map map) { + if (this.consumedCapacity == null) { + return (A) this; } - if (tolerations != null) { - for (V1DeviceToleration item : tolerations) { - this.addToTolerations(item); + if (map != null) { + for (Object key : map.keySet()) { + if (this.consumedCapacity != null) { + this.consumedCapacity.remove(key); + } } } return (A) this; } - public boolean hasTolerations() { - return this.tolerations != null && !(this.tolerations.isEmpty()); - } - - public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + public A removeFromTolerations(V1DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } - public TolerationsNested addNewTolerationLike(V1DeviceToleration item) { - return new TolerationsNested(-1, item); + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } public TolerationsNested setNewTolerationLike(int index,V1DeviceToleration item) { return new TolerationsNested(index, item); } - public TolerationsNested editToleration(int index) { - if (index <= tolerations.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); - } - return this.setNewTolerationLike(index, this.buildToleration(index)); - } - - public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); - } - return this.setNewTolerationLike(0, this.buildToleration(0)); - } - - public TolerationsNested editLastToleration() { - int index = tolerations.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + public A setToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); } - return this.setNewTolerationLike(index, this.buildToleration(index)); + this.bindingConditions.set(index, item); + return (A) this; } - public TolerationsNested editMatchingToleration(Predicate predicate) { - int index = -1; - for (int i = 0;i < tolerations.size();i++) { - if (predicate.test(tolerations.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + public A setToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); } - return this.setNewTolerationLike(index, this.buildToleration(index)); + this.bindingFailureConditions.set(index, item); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1DeviceRequestAllocationResultFluent that = (V1DeviceRequestAllocationResultFluent) o; - if (!(Objects.equals(adminAccess, that.adminAccess))) { - return false; - } - if (!(Objects.equals(bindingConditions, that.bindingConditions))) { - return false; - } - if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { - return false; - } - if (!(Objects.equals(consumedCapacity, that.consumedCapacity))) { - return false; - } - if (!(Objects.equals(device, that.device))) { - return false; - } - if (!(Objects.equals(driver, that.driver))) { - return false; - } - if (!(Objects.equals(pool, that.pool))) { - return false; - } - if (!(Objects.equals(request, that.request))) { - return false; - } - if (!(Objects.equals(shareID, that.shareID))) { - return false; + public A setToTolerations(int index,V1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - if (!(Objects.equals(tolerations, that.tolerations))) { - return false; + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); } - return true; - } - - public int hashCode() { - return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); + return (A) this; } public String toString() { @@ -748,14 +633,133 @@ public String toString() { public A withAdminAccess() { return withAdminAccess(true); } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public A withBindingConditions(List bindingConditions) { + if (bindingConditions != null) { + this.bindingConditions = new ArrayList(); + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } else { + this.bindingConditions = null; + } + return (A) this; + } + + public A withBindingConditions(String... bindingConditions) { + if (this.bindingConditions != null) { + this.bindingConditions.clear(); + _visitables.remove("bindingConditions"); + } + if (bindingConditions != null) { + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } + return (A) this; + } + + public A withBindingFailureConditions(List bindingFailureConditions) { + if (bindingFailureConditions != null) { + this.bindingFailureConditions = new ArrayList(); + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } else { + this.bindingFailureConditions = null; + } + return (A) this; + } + + public A withBindingFailureConditions(String... bindingFailureConditions) { + if (this.bindingFailureConditions != null) { + this.bindingFailureConditions.clear(); + _visitables.remove("bindingFailureConditions"); + } + if (bindingFailureConditions != null) { + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } + return (A) this; + } + + public A withConsumedCapacity(Map consumedCapacity) { + if (consumedCapacity == null) { + this.consumedCapacity = null; + } else { + this.consumedCapacity = new LinkedHashMap(consumedCapacity); + } + return (A) this; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public A withRequest(String request) { + this.request = request; + return (A) this; + } + + public A withShareID(String shareID) { + this.shareID = shareID; + return (A) this; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(V1DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } public class TolerationsNested extends V1DeviceTolerationFluent> implements Nested{ + + V1DeviceTolerationBuilder builder; + int index; + TolerationsNested(int index,V1DeviceToleration item) { this.index = index; this.builder = new V1DeviceTolerationBuilder(this, item); } - V1DeviceTolerationBuilder builder; - int index; - + public N and() { return (N) V1DeviceRequestAllocationResultFluent.this.setToTolerations(index, builder.build()); } @@ -764,7 +768,5 @@ public N endToleration() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestBuilder.java index d74f8a1cf4..f1b0ed783e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceRequestBuilder extends V1DeviceRequestFluent implements VisitableBuilder{ + + V1DeviceRequestFluent fluent; + public V1DeviceRequestBuilder() { this(new V1DeviceRequest()); } @@ -11,17 +14,16 @@ public V1DeviceRequestBuilder(V1DeviceRequestFluent fluent) { this(fluent, new V1DeviceRequest()); } - public V1DeviceRequestBuilder(V1DeviceRequestFluent fluent,V1DeviceRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceRequestBuilder(V1DeviceRequest instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceRequestFluent fluent; + public V1DeviceRequestBuilder(V1DeviceRequestFluent fluent,V1DeviceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeviceRequest build() { V1DeviceRequest buildable = new V1DeviceRequest(); buildable.setExactly(fluent.buildExactly()); @@ -30,5 +32,4 @@ public V1DeviceRequest build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestFluent.java index 514a60103c..ee1201b158 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestFluent.java @@ -1,112 +1,55 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeviceRequestFluent> extends BaseFluent{ - public V1DeviceRequestFluent() { - } - - public V1DeviceRequestFluent(V1DeviceRequest instance) { - this.copyInstance(instance); - } + private V1ExactDeviceRequestBuilder exactly; private ArrayList firstAvailable; private String name; - - protected void copyInstance(V1DeviceRequest instance) { - instance = instance != null ? instance : new V1DeviceRequest(); - if (instance != null) { - this.withExactly(instance.getExactly()); - this.withFirstAvailable(instance.getFirstAvailable()); - this.withName(instance.getName()); - } - } - - public V1ExactDeviceRequest buildExactly() { - return this.exactly != null ? this.exactly.build() : null; - } - - public A withExactly(V1ExactDeviceRequest exactly) { - this._visitables.remove("exactly"); - if (exactly != null) { - this.exactly = new V1ExactDeviceRequestBuilder(exactly); - this._visitables.get("exactly").add(this.exactly); - } else { - this.exactly = null; - this._visitables.get("exactly").remove(this.exactly); - } - return (A) this; - } - - public boolean hasExactly() { - return this.exactly != null; - } - - public ExactlyNested withNewExactly() { - return new ExactlyNested(null); - } - - public ExactlyNested withNewExactlyLike(V1ExactDeviceRequest item) { - return new ExactlyNested(item); - } - - public ExactlyNested editExactly() { - return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(null)); - } - - public ExactlyNested editOrNewExactly() { - return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(new V1ExactDeviceRequestBuilder().build())); + + public V1DeviceRequestFluent() { } - public ExactlyNested editOrNewExactlyLike(V1ExactDeviceRequest item) { - return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(item)); + public V1DeviceRequestFluent(V1DeviceRequest instance) { + this.copyInstance(instance); } - - public A addToFirstAvailable(int index,V1DeviceSubRequest item) { + + public A addAllToFirstAvailable(Collection items) { if (this.firstAvailable == null) { this.firstAvailable = new ArrayList(); } - V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); - if (index < 0 || index >= firstAvailable.size()) { - _visitables.get("firstAvailable").add(builder); - firstAvailable.add(builder); - } else { + for (V1DeviceSubRequest item : items) { + V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); _visitables.get("firstAvailable").add(builder); - firstAvailable.add(index, builder); + this.firstAvailable.add(builder); } return (A) this; } - public A setToFirstAvailable(int index,V1DeviceSubRequest item) { - if (this.firstAvailable == null) { - this.firstAvailable = new ArrayList(); - } - V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); - if (index < 0 || index >= firstAvailable.size()) { - _visitables.get("firstAvailable").add(builder); - firstAvailable.add(builder); - } else { - _visitables.get("firstAvailable").add(builder); - firstAvailable.set(index, builder); - } - return (A) this; + public FirstAvailableNested addNewFirstAvailable() { + return new FirstAvailableNested(-1, null); + } + + public FirstAvailableNested addNewFirstAvailableLike(V1DeviceSubRequest item) { + return new FirstAvailableNested(-1, item); } public A addToFirstAvailable(V1DeviceSubRequest... items) { @@ -121,56 +64,23 @@ public A addToFirstAvailable(V1DeviceSubRequest... items) { return (A) this; } - public A addAllToFirstAvailable(Collection items) { + public A addToFirstAvailable(int index,V1DeviceSubRequest item) { if (this.firstAvailable == null) { this.firstAvailable = new ArrayList(); } - for (V1DeviceSubRequest item : items) { - V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); + V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { _visitables.get("firstAvailable").add(builder); - this.firstAvailable.add(builder); - } - return (A) this; - } - - public A removeFromFirstAvailable(V1DeviceSubRequest... items) { - if (this.firstAvailable == null) { - return (A) this; - } - for (V1DeviceSubRequest item : items) { - V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); - _visitables.get("firstAvailable").remove(builder); - this.firstAvailable.remove(builder); - } - return (A) this; - } - - public A removeAllFromFirstAvailable(Collection items) { - if (this.firstAvailable == null) { - return (A) this; - } - for (V1DeviceSubRequest item : items) { - V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); - _visitables.get("firstAvailable").remove(builder); - this.firstAvailable.remove(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(index, builder); } return (A) this; } - public A removeMatchingFromFirstAvailable(Predicate predicate) { - if (firstAvailable == null) { - return (A) this; - } - Iterator each = firstAvailable.iterator(); - List visitables = _visitables.get("firstAvailable"); - while (each.hasNext()) { - V1DeviceSubRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1ExactDeviceRequest buildExactly() { + return this.exactly != null ? this.exactly.build() : null; } public List buildFirstAvailable() { @@ -198,61 +108,21 @@ public V1DeviceSubRequest buildMatchingFirstAvailable(Predicate predicate) { - for (V1DeviceSubRequestBuilder item : firstAvailable) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withFirstAvailable(List firstAvailable) { - if (this.firstAvailable != null) { - this._visitables.get("firstAvailable").clear(); - } - if (firstAvailable != null) { - this.firstAvailable = new ArrayList(); - for (V1DeviceSubRequest item : firstAvailable) { - this.addToFirstAvailable(item); - } - } else { - this.firstAvailable = null; - } - return (A) this; - } - - public A withFirstAvailable(V1DeviceSubRequest... firstAvailable) { - if (this.firstAvailable != null) { - this.firstAvailable.clear(); - _visitables.remove("firstAvailable"); - } - if (firstAvailable != null) { - for (V1DeviceSubRequest item : firstAvailable) { - this.addToFirstAvailable(item); - } + protected void copyInstance(V1DeviceRequest instance) { + instance = instance != null ? instance : new V1DeviceRequest(); + if (instance != null) { + this.withExactly(instance.getExactly()); + this.withFirstAvailable(instance.getFirstAvailable()); + this.withName(instance.getName()); } - return (A) this; - } - - public boolean hasFirstAvailable() { - return this.firstAvailable != null && !(this.firstAvailable.isEmpty()); - } - - public FirstAvailableNested addNewFirstAvailable() { - return new FirstAvailableNested(-1, null); - } - - public FirstAvailableNested addNewFirstAvailableLike(V1DeviceSubRequest item) { - return new FirstAvailableNested(-1, item); } - public FirstAvailableNested setNewFirstAvailableLike(int index,V1DeviceSubRequest item) { - return new FirstAvailableNested(index, item); + public ExactlyNested editExactly() { + return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(null)); } public FirstAvailableNested editFirstAvailable(int index) { - if (index <= firstAvailable.size()) { + if (firstAvailable.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "firstAvailable")); } return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); @@ -287,17 +157,12 @@ public FirstAvailableNested editMatchingFirstAvailable(Predicate editOrNewExactly() { + return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(new V1ExactDeviceRequestBuilder().build())); } - public boolean hasName() { - return this.name != null; + public ExactlyNested editOrNewExactlyLike(V1ExactDeviceRequest item) { + return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(item)); } public boolean equals(Object o) { @@ -323,10 +188,94 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public boolean hasExactly() { + return this.exactly != null; + } + + public boolean hasFirstAvailable() { + return this.firstAvailable != null && !(this.firstAvailable.isEmpty()); + } + + public boolean hasMatchingFirstAvailable(Predicate predicate) { + for (V1DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(exactly, firstAvailable, name); } + public A removeAllFromFirstAvailable(Collection items) { + if (this.firstAvailable == null) { + return (A) this; + } + for (V1DeviceSubRequest item : items) { + V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").remove(builder); + this.firstAvailable.remove(builder); + } + return (A) this; + } + + public A removeFromFirstAvailable(V1DeviceSubRequest... items) { + if (this.firstAvailable == null) { + return (A) this; + } + for (V1DeviceSubRequest item : items) { + V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").remove(builder); + this.firstAvailable.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromFirstAvailable(Predicate predicate) { + if (firstAvailable == null) { + return (A) this; + } + Iterator each = firstAvailable.iterator(); + List visitables = _visitables.get("firstAvailable"); + while (each.hasNext()) { + V1DeviceSubRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public FirstAvailableNested setNewFirstAvailableLike(int index,V1DeviceSubRequest item) { + return new FirstAvailableNested(index, item); + } + + public A setToFirstAvailable(int index,V1DeviceSubRequest item) { + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } + V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -347,12 +296,67 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withExactly(V1ExactDeviceRequest exactly) { + this._visitables.remove("exactly"); + if (exactly != null) { + this.exactly = new V1ExactDeviceRequestBuilder(exactly); + this._visitables.get("exactly").add(this.exactly); + } else { + this.exactly = null; + this._visitables.get("exactly").remove(this.exactly); + } + return (A) this; + } + + public A withFirstAvailable(List firstAvailable) { + if (this.firstAvailable != null) { + this._visitables.get("firstAvailable").clear(); + } + if (firstAvailable != null) { + this.firstAvailable = new ArrayList(); + for (V1DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } else { + this.firstAvailable = null; + } + return (A) this; + } + + public A withFirstAvailable(V1DeviceSubRequest... firstAvailable) { + if (this.firstAvailable != null) { + this.firstAvailable.clear(); + _visitables.remove("firstAvailable"); + } + if (firstAvailable != null) { + for (V1DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public ExactlyNested withNewExactly() { + return new ExactlyNested(null); + } + + public ExactlyNested withNewExactlyLike(V1ExactDeviceRequest item) { + return new ExactlyNested(item); + } public class ExactlyNested extends V1ExactDeviceRequestFluent> implements Nested{ + + V1ExactDeviceRequestBuilder builder; + ExactlyNested(V1ExactDeviceRequest item) { this.builder = new V1ExactDeviceRequestBuilder(this, item); } - V1ExactDeviceRequestBuilder builder; - + public N and() { return (N) V1DeviceRequestFluent.this.withExactly(builder.build()); } @@ -361,16 +365,17 @@ public N endExactly() { return and(); } - } public class FirstAvailableNested extends V1DeviceSubRequestFluent> implements Nested{ + + V1DeviceSubRequestBuilder builder; + int index; + FirstAvailableNested(int index,V1DeviceSubRequest item) { this.index = index; this.builder = new V1DeviceSubRequestBuilder(this, item); } - V1DeviceSubRequestBuilder builder; - int index; - + public N and() { return (N) V1DeviceRequestFluent.this.setToFirstAvailable(index, builder.build()); } @@ -379,7 +384,5 @@ public N endFirstAvailable() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorBuilder.java index 560595bfb6..9ad4765978 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceSelectorBuilder extends V1DeviceSelectorFluent implements VisitableBuilder{ + + V1DeviceSelectorFluent fluent; + public V1DeviceSelectorBuilder() { this(new V1DeviceSelector()); } @@ -11,22 +14,20 @@ public V1DeviceSelectorBuilder(V1DeviceSelectorFluent fluent) { this(fluent, new V1DeviceSelector()); } - public V1DeviceSelectorBuilder(V1DeviceSelectorFluent fluent,V1DeviceSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceSelectorBuilder(V1DeviceSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceSelectorFluent fluent; + public V1DeviceSelectorBuilder(V1DeviceSelectorFluent fluent,V1DeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeviceSelector build() { V1DeviceSelector buildable = new V1DeviceSelector(); buildable.setCel(fluent.buildCel()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorFluent.java index ae134da03a..1ae971783d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeviceSelectorFluent> extends BaseFluent{ + + private V1CELDeviceSelectorBuilder cel; + public V1DeviceSelectorFluent() { } public V1DeviceSelectorFluent(V1DeviceSelector instance) { this.copyInstance(instance); } - private V1CELDeviceSelectorBuilder cel; + + public V1CELDeviceSelector buildCel() { + return this.cel != null ? this.cel.build() : null; + } protected void copyInstance(V1DeviceSelector instance) { instance = instance != null ? instance : new V1DeviceSelector(); @@ -29,34 +35,6 @@ protected void copyInstance(V1DeviceSelector instance) { } } - public V1CELDeviceSelector buildCel() { - return this.cel != null ? this.cel.build() : null; - } - - public A withCel(V1CELDeviceSelector cel) { - this._visitables.remove("cel"); - if (cel != null) { - this.cel = new V1CELDeviceSelectorBuilder(cel); - this._visitables.get("cel").add(this.cel); - } else { - this.cel = null; - this._visitables.get("cel").remove(this.cel); - } - return (A) this; - } - - public boolean hasCel() { - return this.cel != null; - } - - public CelNested withNewCel() { - return new CelNested(null); - } - - public CelNested withNewCelLike(V1CELDeviceSelector item) { - return new CelNested(item); - } - public CelNested editCel() { return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(null)); } @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasCel() { + return this.cel != null; + } + public int hashCode() { return Objects.hash(cel); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withCel(V1CELDeviceSelector cel) { + this._visitables.remove("cel"); + if (cel != null) { + this.cel = new V1CELDeviceSelectorBuilder(cel); + this._visitables.get("cel").add(this.cel); + } else { + this.cel = null; + this._visitables.get("cel").remove(this.cel); + } + return (A) this; + } + + public CelNested withNewCel() { + return new CelNested(null); + } + + public CelNested withNewCelLike(V1CELDeviceSelector item) { + return new CelNested(item); + } public class CelNested extends V1CELDeviceSelectorFluent> implements Nested{ + + V1CELDeviceSelectorBuilder builder; + CelNested(V1CELDeviceSelector item) { this.builder = new V1CELDeviceSelectorBuilder(this, item); } - V1CELDeviceSelectorBuilder builder; - + public N and() { return (N) V1DeviceSelectorFluent.this.withCel(builder.build()); } @@ -114,7 +118,5 @@ public N endCel() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestBuilder.java index 12a9f15527..d3493dd0ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceSubRequestBuilder extends V1DeviceSubRequestFluent implements VisitableBuilder{ + + V1DeviceSubRequestFluent fluent; + public V1DeviceSubRequestBuilder() { this(new V1DeviceSubRequest()); } @@ -11,17 +14,16 @@ public V1DeviceSubRequestBuilder(V1DeviceSubRequestFluent fluent) { this(fluent, new V1DeviceSubRequest()); } - public V1DeviceSubRequestBuilder(V1DeviceSubRequestFluent fluent,V1DeviceSubRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceSubRequestBuilder(V1DeviceSubRequest instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceSubRequestFluent fluent; + public V1DeviceSubRequestBuilder(V1DeviceSubRequestFluent fluent,V1DeviceSubRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeviceSubRequest build() { V1DeviceSubRequest buildable = new V1DeviceSubRequest(); buildable.setAllocationMode(fluent.getAllocationMode()); @@ -34,5 +36,4 @@ public V1DeviceSubRequest build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestFluent.java index 493efe1c5f..74e7b11037 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; -import java.lang.Long; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeviceSubRequestFluent> extends BaseFluent{ - public V1DeviceSubRequestFluent() { - } - - public V1DeviceSubRequestFluent(V1DeviceSubRequest instance) { - this.copyInstance(instance); - } + private String allocationMode; private V1CapacityRequirementsBuilder capacity; private Long count; @@ -34,128 +29,67 @@ public V1DeviceSubRequestFluent(V1DeviceSubRequest instance) { private String name; private ArrayList selectors; private ArrayList tolerations; - - protected void copyInstance(V1DeviceSubRequest instance) { - instance = instance != null ? instance : new V1DeviceSubRequest(); - if (instance != null) { - this.withAllocationMode(instance.getAllocationMode()); - this.withCapacity(instance.getCapacity()); - this.withCount(instance.getCount()); - this.withDeviceClassName(instance.getDeviceClassName()); - this.withName(instance.getName()); - this.withSelectors(instance.getSelectors()); - this.withTolerations(instance.getTolerations()); - } - } - - public String getAllocationMode() { - return this.allocationMode; - } - - public A withAllocationMode(String allocationMode) { - this.allocationMode = allocationMode; - return (A) this; - } - - public boolean hasAllocationMode() { - return this.allocationMode != null; + + public V1DeviceSubRequestFluent() { } - public V1CapacityRequirements buildCapacity() { - return this.capacity != null ? this.capacity.build() : null; + public V1DeviceSubRequestFluent(V1DeviceSubRequest instance) { + this.copyInstance(instance); } - - public A withCapacity(V1CapacityRequirements capacity) { - this._visitables.remove("capacity"); - if (capacity != null) { - this.capacity = new V1CapacityRequirementsBuilder(capacity); - this._visitables.get("capacity").add(this.capacity); - } else { - this.capacity = null; - this._visitables.get("capacity").remove(this.capacity); + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); } return (A) this; } - public boolean hasCapacity() { - return this.capacity != null; - } - - public CapacityNested withNewCapacity() { - return new CapacityNested(null); - } - - public CapacityNested withNewCapacityLike(V1CapacityRequirements item) { - return new CapacityNested(item); - } - - public CapacityNested editCapacity() { - return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); - } - - public CapacityNested editOrNewCapacity() { - return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1CapacityRequirementsBuilder().build())); - } - - public CapacityNested editOrNewCapacityLike(V1CapacityRequirements item) { - return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); - } - - public Long getCount() { - return this.count; - } - - public A withCount(Long count) { - this.count = count; - return (A) this; - } - - public boolean hasCount() { - return this.count != null; - } - - public String getDeviceClassName() { - return this.deviceClassName; - } - - public A withDeviceClassName(String deviceClassName) { - this.deviceClassName = deviceClassName; + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } return (A) this; } - public boolean hasDeviceClassName() { - return this.deviceClassName != null; + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); } - public String getName() { - return this.name; + public SelectorsNested addNewSelectorLike(V1DeviceSelector item) { + return new SelectorsNested(-1, item); } - public A withName(String name) { - this.name = name; - return (A) this; + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); } - public boolean hasName() { - return this.name != null; + public TolerationsNested addNewTolerationLike(V1DeviceToleration item) { + return new TolerationsNested(-1, item); } - public A addToSelectors(int index,V1DeviceSelector item) { + public A addToSelectors(V1DeviceSelector... items) { if (this.selectors == null) { this.selectors = new ArrayList(); } - V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); _visitables.get("selectors").add(builder); - selectors.add(index, builder); + this.selectors.add(builder); } return (A) this; } - public A setToSelectors(int index,V1DeviceSelector item) { + public A addToSelectors(int index,V1DeviceSelector item) { if (this.selectors == null) { this.selectors = new ArrayList(); } @@ -165,91 +99,58 @@ public A setToSelectors(int index,V1DeviceSelector item) { selectors.add(builder); } else { _visitables.get("selectors").add(builder); - selectors.set(index, builder); - } - return (A) this; - } - - public A addToSelectors(V1DeviceSelector... items) { - if (this.selectors == null) { - this.selectors = new ArrayList(); - } - for (V1DeviceSelector item : items) { - V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); - this.selectors.add(builder); - } - return (A) this; - } - - public A addAllToSelectors(Collection items) { - if (this.selectors == null) { - this.selectors = new ArrayList(); - } - for (V1DeviceSelector item : items) { - V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); - this.selectors.add(builder); - } - return (A) this; - } - - public A removeFromSelectors(V1DeviceSelector... items) { - if (this.selectors == null) { - return (A) this; - } - for (V1DeviceSelector item : items) { - V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - _visitables.get("selectors").remove(builder); - this.selectors.remove(builder); + selectors.add(index, builder); } return (A) this; } - public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) { - return (A) this; + public A addToTolerations(V1DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - for (V1DeviceSelector item : items) { - V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - _visitables.get("selectors").remove(builder); - this.selectors.remove(builder); + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } return (A) this; } - public A removeMatchingFromSelectors(Predicate predicate) { - if (selectors == null) { - return (A) this; + public A addToTolerations(int index,V1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - Iterator each = selectors.iterator(); - List visitables = _visitables.get("selectors"); - while (each.hasNext()) { - V1DeviceSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); } return (A) this; } - public List buildSelectors() { - return this.selectors != null ? build(selectors) : null; - } - - public V1DeviceSelector buildSelector(int index) { - return this.selectors.get(index).build(); + public V1CapacityRequirements buildCapacity() { + return this.capacity != null ? this.capacity.build() : null; } public V1DeviceSelector buildFirstSelector() { return this.selectors.get(0).build(); } + public V1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + public V1DeviceSelector buildLastSelector() { return this.selectors.get(selectors.size() - 1).build(); } + public V1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + public V1DeviceSelector buildMatchingSelector(Predicate predicate) { for (V1DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { @@ -259,64 +160,46 @@ public V1DeviceSelector buildMatchingSelector(Predicate return null; } - public boolean hasMatchingSelector(Predicate predicate) { - for (V1DeviceSelectorBuilder item : selectors) { + public V1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1DeviceTolerationBuilder item : tolerations) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withSelectors(List selectors) { - if (this.selectors != null) { - this._visitables.get("selectors").clear(); - } - if (selectors != null) { - this.selectors = new ArrayList(); - for (V1DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } else { - this.selectors = null; - } - return (A) this; - } - - public A withSelectors(V1DeviceSelector... selectors) { - if (this.selectors != null) { - this.selectors.clear(); - _visitables.remove("selectors"); - } - if (selectors != null) { - for (V1DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } - return (A) this; + public V1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); } - public boolean hasSelectors() { - return this.selectors != null && !(this.selectors.isEmpty()); + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; } - public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); + public V1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); } - public SelectorsNested addNewSelectorLike(V1DeviceSelector item) { - return new SelectorsNested(-1, item); + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; } - public SelectorsNested setNewSelectorLike(int index,V1DeviceSelector item) { - return new SelectorsNested(index, item); + protected void copyInstance(V1DeviceSubRequest instance) { + instance = instance != null ? instance : new V1DeviceSubRequest(); + if (instance != null) { + this.withAllocationMode(instance.getAllocationMode()); + this.withCapacity(instance.getCapacity()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } } - public SelectorsNested editSelector(int index) { - if (index <= selectors.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); - } - return this.setNewSelectorLike(index, this.buildSelector(index)); + public CapacityNested editCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); } public SelectorsNested editFirstSelector() { @@ -326,6 +209,13 @@ public SelectorsNested editFirstSelector() { return this.setNewSelectorLike(0, this.buildSelector(0)); } + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); + } + public SelectorsNested editLastSelector() { int index = selectors.size() - 1; if (index < 0) { @@ -334,6 +224,14 @@ public SelectorsNested editLastSelector() { return this.setNewSelectorLike(index, this.buildSelector(index)); } + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + public SelectorsNested editMatchingSelector(Predicate predicate) { int index = -1; for (int i = 0;i < selectors.size();i++) { @@ -348,123 +246,116 @@ public SelectorsNested editMatchingSelector(Predicate editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } } - V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A setToTolerations(int index,V1DeviceToleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); - } - return (A) this; + public CapacityNested editOrNewCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1CapacityRequirementsBuilder().build())); } - public A addToTolerations(V1DeviceToleration... items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - for (V1DeviceToleration item : items) { - V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); - } - return (A) this; + public CapacityNested editOrNewCapacityLike(V1CapacityRequirements item) { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); } - public A addAllToTolerations(Collection items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - for (V1DeviceToleration item : items) { - V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); } - return (A) this; + return this.setNewSelectorLike(index, this.buildSelector(index)); } - public A removeFromTolerations(V1DeviceToleration... items) { - if (this.tolerations == null) { - return (A) this; - } - for (V1DeviceToleration item : items) { - V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - this.tolerations.remove(builder); + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (V1DeviceToleration item : items) { - V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - this.tolerations.remove(builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) { - return (A) this; + if (!(super.equals(o))) { + return false; } - Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); - while (each.hasNext()) { - V1DeviceTolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1DeviceSubRequestFluent that = (V1DeviceSubRequestFluent) o; + if (!(Objects.equals(allocationMode, that.allocationMode))) { + return false; } - return (A) this; + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(deviceClassName, that.deviceClassName))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; } - public List buildTolerations() { - return this.tolerations != null ? build(tolerations) : null; + public String getAllocationMode() { + return this.allocationMode; } - public V1DeviceToleration buildToleration(int index) { - return this.tolerations.get(index).build(); + public Long getCount() { + return this.count; } - public V1DeviceToleration buildFirstToleration() { - return this.tolerations.get(0).build(); + public String getDeviceClassName() { + return this.deviceClassName; } - public V1DeviceToleration buildLastToleration() { - return this.tolerations.get(tolerations.size() - 1).build(); + public String getName() { + return this.name; } - public V1DeviceToleration buildMatchingToleration(Predicate predicate) { - for (V1DeviceTolerationBuilder item : tolerations) { + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean hasCount() { + return this.count != null; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingToleration(Predicate predicate) { @@ -476,123 +367,138 @@ public boolean hasMatchingToleration(Predicate predic return false; } - public A withTolerations(List tolerations) { - if (this.tolerations != null) { - this._visitables.get("tolerations").clear(); + public boolean hasName() { + return this.name != null; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) { + return (A) this; } - if (tolerations != null) { - this.tolerations = new ArrayList(); - for (V1DeviceToleration item : tolerations) { - this.addToTolerations(item); - } - } else { - this.tolerations = null; + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeFromSelectors(V1DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeFromTolerations(V1DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); } return (A) this; } - public A withTolerations(V1DeviceToleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - _visitables.remove("tolerations"); + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; } - if (tolerations != null) { - for (V1DeviceToleration item : tolerations) { - this.addToTolerations(item); - } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasTolerations() { - return this.tolerations != null && !(this.tolerations.isEmpty()); - } - - public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public TolerationsNested addNewTolerationLike(V1DeviceToleration item) { - return new TolerationsNested(-1, item); + public SelectorsNested setNewSelectorLike(int index,V1DeviceSelector item) { + return new SelectorsNested(index, item); } public TolerationsNested setNewTolerationLike(int index,V1DeviceToleration item) { return new TolerationsNested(index, item); } - public TolerationsNested editToleration(int index) { - if (index <= tolerations.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); - } - return this.setNewTolerationLike(index, this.buildToleration(index)); - } - - public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); - } - return this.setNewTolerationLike(0, this.buildToleration(0)); - } - - public TolerationsNested editLastToleration() { - int index = tolerations.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); - } - return this.setNewTolerationLike(index, this.buildToleration(index)); - } - - public TolerationsNested editMatchingToleration(Predicate predicate) { - int index = -1; - for (int i = 0;i < tolerations.size();i++) { - if (predicate.test(tolerations.get(i))) { - index = i; - break; - } + public A setToSelectors(int index,V1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); } - return this.setNewTolerationLike(index, this.buildToleration(index)); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1DeviceSubRequestFluent that = (V1DeviceSubRequestFluent) o; - if (!(Objects.equals(allocationMode, that.allocationMode))) { - return false; - } - if (!(Objects.equals(capacity, that.capacity))) { - return false; - } - if (!(Objects.equals(count, that.count))) { - return false; - } - if (!(Objects.equals(deviceClassName, that.deviceClassName))) { - return false; - } - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(selectors, that.selectors))) { - return false; + public A setToTolerations(int index,V1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - if (!(Objects.equals(tolerations, that.tolerations))) { - return false; + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); } - return true; - } - - public int hashCode() { - return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); + return (A) this; } public String toString() { @@ -635,12 +541,110 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public A withCapacity(V1CapacityRequirements capacity) { + this._visitables.remove("capacity"); + if (capacity != null) { + this.capacity = new V1CapacityRequirementsBuilder(capacity); + this._visitables.get("capacity").add(this.capacity); + } else { + this.capacity = null; + this._visitables.get("capacity").remove(this.capacity); + } + return (A) this; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public CapacityNested withNewCapacity() { + return new CapacityNested(null); + } + + public CapacityNested withNewCapacityLike(V1CapacityRequirements item) { + return new CapacityNested(item); + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(V1DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(V1DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } public class CapacityNested extends V1CapacityRequirementsFluent> implements Nested{ + + V1CapacityRequirementsBuilder builder; + CapacityNested(V1CapacityRequirements item) { this.builder = new V1CapacityRequirementsBuilder(this, item); } - V1CapacityRequirementsBuilder builder; - + public N and() { return (N) V1DeviceSubRequestFluent.this.withCapacity(builder.build()); } @@ -649,16 +653,17 @@ public N endCapacity() { return and(); } - } public class SelectorsNested extends V1DeviceSelectorFluent> implements Nested{ + + V1DeviceSelectorBuilder builder; + int index; + SelectorsNested(int index,V1DeviceSelector item) { this.index = index; this.builder = new V1DeviceSelectorBuilder(this, item); } - V1DeviceSelectorBuilder builder; - int index; - + public N and() { return (N) V1DeviceSubRequestFluent.this.setToSelectors(index, builder.build()); } @@ -667,16 +672,17 @@ public N endSelector() { return and(); } - } public class TolerationsNested extends V1DeviceTolerationFluent> implements Nested{ + + V1DeviceTolerationBuilder builder; + int index; + TolerationsNested(int index,V1DeviceToleration item) { this.index = index; this.builder = new V1DeviceTolerationBuilder(this, item); } - V1DeviceTolerationBuilder builder; - int index; - + public N and() { return (N) V1DeviceSubRequestFluent.this.setToTolerations(index, builder.build()); } @@ -685,7 +691,5 @@ public N endToleration() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintBuilder.java index 68f6103939..5f7a712efe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceTaintBuilder extends V1DeviceTaintFluent implements VisitableBuilder{ + + V1DeviceTaintFluent fluent; + public V1DeviceTaintBuilder() { this(new V1DeviceTaint()); } @@ -11,17 +14,16 @@ public V1DeviceTaintBuilder(V1DeviceTaintFluent fluent) { this(fluent, new V1DeviceTaint()); } - public V1DeviceTaintBuilder(V1DeviceTaintFluent fluent,V1DeviceTaint instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceTaintBuilder(V1DeviceTaint instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceTaintFluent fluent; + public V1DeviceTaintBuilder(V1DeviceTaintFluent fluent,V1DeviceTaint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeviceTaint build() { V1DeviceTaint buildable = new V1DeviceTaint(); buildable.setEffect(fluent.getEffect()); @@ -31,5 +33,4 @@ public V1DeviceTaint build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintFluent.java index 9fa0e98f64..1be1ff4574 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeviceTaintFluent> extends BaseFluent{ + + private String effect; + private String key; + private OffsetDateTime timeAdded; + private String value; + public V1DeviceTaintFluent() { } public V1DeviceTaintFluent(V1DeviceTaint instance) { this.copyInstance(instance); } - private String effect; - private String key; - private OffsetDateTime timeAdded; - private String value; - + protected void copyInstance(V1DeviceTaint instance) { instance = instance != null ? instance : new V1DeviceTaint(); if (instance != null) { @@ -34,58 +36,6 @@ protected void copyInstance(V1DeviceTaint instance) { } } - public String getEffect() { - return this.effect; - } - - public A withEffect(String effect) { - this.effect = effect; - return (A) this; - } - - public boolean hasEffect() { - return this.effect != null; - } - - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public OffsetDateTime getTimeAdded() { - return this.timeAdded; - } - - public A withTimeAdded(OffsetDateTime timeAdded) { - this.timeAdded = timeAdded; - return (A) this; - } - - public boolean hasTimeAdded() { - return this.timeAdded != null; - } - - public String getValue() { - return this.value; - } - - public A withValue(String value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -112,6 +62,38 @@ public boolean equals(Object o) { return true; } + public String getEffect() { + return this.effect; + } + + public String getKey() { + return this.key; + } + + public OffsetDateTime getTimeAdded() { + return this.timeAdded; + } + + public String getValue() { + return this.value; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasTimeAdded() { + return this.timeAdded != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(effect, key, timeAdded, value); } @@ -142,5 +124,24 @@ public String toString() { return sb.toString(); } - + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withTimeAdded(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationBuilder.java index b3cd2966d6..2421c6a5e0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DeviceTolerationBuilder extends V1DeviceTolerationFluent implements VisitableBuilder{ + + V1DeviceTolerationFluent fluent; + public V1DeviceTolerationBuilder() { this(new V1DeviceToleration()); } @@ -11,17 +14,16 @@ public V1DeviceTolerationBuilder(V1DeviceTolerationFluent fluent) { this(fluent, new V1DeviceToleration()); } - public V1DeviceTolerationBuilder(V1DeviceTolerationFluent fluent,V1DeviceToleration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeviceTolerationBuilder(V1DeviceToleration instance) { this.fluent = this; this.copyInstance(instance); } - V1DeviceTolerationFluent fluent; + public V1DeviceTolerationBuilder(V1DeviceTolerationFluent fluent,V1DeviceToleration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeviceToleration build() { V1DeviceToleration buildable = new V1DeviceToleration(); buildable.setEffect(fluent.getEffect()); @@ -32,5 +34,4 @@ public V1DeviceToleration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationFluent.java index 2c94ac2304..97169ceb6d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1DeviceTolerationFluent> extends BaseFluent{ - public V1DeviceTolerationFluent() { - } - - public V1DeviceTolerationFluent(V1DeviceToleration instance) { - this.copyInstance(instance); - } + private String effect; private String key; private String operator; private Long tolerationSeconds; private String value; + + public V1DeviceTolerationFluent() { + } + public V1DeviceTolerationFluent(V1DeviceToleration instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1DeviceToleration instance) { instance = instance != null ? instance : new V1DeviceToleration(); if (instance != null) { @@ -36,71 +38,6 @@ protected void copyInstance(V1DeviceToleration instance) { } } - public String getEffect() { - return this.effect; - } - - public A withEffect(String effect) { - this.effect = effect; - return (A) this; - } - - public boolean hasEffect() { - return this.effect != null; - } - - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public String getOperator() { - return this.operator; - } - - public A withOperator(String operator) { - this.operator = operator; - return (A) this; - } - - public boolean hasOperator() { - return this.operator != null; - } - - public Long getTolerationSeconds() { - return this.tolerationSeconds; - } - - public A withTolerationSeconds(Long tolerationSeconds) { - this.tolerationSeconds = tolerationSeconds; - return (A) this; - } - - public boolean hasTolerationSeconds() { - return this.tolerationSeconds != null; - } - - public String getValue() { - return this.value; - } - - public A withValue(String value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -130,6 +67,46 @@ public boolean equals(Object o) { return true; } + public String getEffect() { + return this.effect; + } + + public String getKey() { + return this.key; + } + + public String getOperator() { + return this.operator; + } + + public Long getTolerationSeconds() { + return this.tolerationSeconds; + } + + public String getValue() { + return this.value; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasOperator() { + return this.operator != null; + } + + public boolean hasTolerationSeconds() { + return this.tolerationSeconds != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(effect, key, operator, tolerationSeconds, value); } @@ -165,5 +142,29 @@ public String toString() { return sb.toString(); } - + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public A withTolerationSeconds(Long tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java index 29eaaacec1..e9b75b40ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DownwardAPIProjectionBuilder extends V1DownwardAPIProjectionFluent implements VisitableBuilder{ + + V1DownwardAPIProjectionFluent fluent; + public V1DownwardAPIProjectionBuilder() { this(new V1DownwardAPIProjection()); } @@ -11,22 +14,20 @@ public V1DownwardAPIProjectionBuilder(V1DownwardAPIProjectionFluent fluent) { this(fluent, new V1DownwardAPIProjection()); } - public V1DownwardAPIProjectionBuilder(V1DownwardAPIProjectionFluent fluent,V1DownwardAPIProjection instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DownwardAPIProjectionBuilder(V1DownwardAPIProjection instance) { this.fluent = this; this.copyInstance(instance); } - V1DownwardAPIProjectionFluent fluent; + public V1DownwardAPIProjectionBuilder(V1DownwardAPIProjectionFluent fluent,V1DownwardAPIProjection instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DownwardAPIProjection build() { V1DownwardAPIProjection buildable = new V1DownwardAPIProjection(); buildable.setItems(fluent.buildItems()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java index 29dd105794..686ad0d3a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java @@ -1,67 +1,52 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1DownwardAPIProjectionFluent> extends BaseFluent{ + + private ArrayList items; + public V1DownwardAPIProjectionFluent() { } public V1DownwardAPIProjectionFluent(V1DownwardAPIProjection instance) { this.copyInstance(instance); } - private ArrayList items; - - protected void copyInstance(V1DownwardAPIProjection instance) { - instance = instance != null ? instance : new V1DownwardAPIProjection(); - if (instance != null) { - this.withItems(instance.getItems()); - } - } - - public A addToItems(int index,V1DownwardAPIVolumeFile item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1DownwardAPIVolumeFile item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1DownwardAPIVolumeFile item) { + return new ItemsNested(-1, item); } public A addToItems(V1DownwardAPIVolumeFile... items) { @@ -76,68 +61,31 @@ public A addToItems(V1DownwardAPIVolumeFile... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1DownwardAPIVolumeFile item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1DownwardAPIVolumeFile item : items) { - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1DownwardAPIVolumeFile... items) { - if (this.items == null) { - return (A) this; - } - for (V1DownwardAPIVolumeFile item : items) { - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1DownwardAPIVolumeFile item : items) { - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1DownwardAPIVolumeFileBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1DownwardAPIVolumeFile buildFirstItem() { + return this.items.get(0).build(); } public V1DownwardAPIVolumeFile buildItem(int index) { return this.items.get(index).build(); } - public V1DownwardAPIVolumeFile buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1DownwardAPIVolumeFile buildLastItem() { @@ -153,73 +101,27 @@ public V1DownwardAPIVolumeFile buildMatchingItem(Predicate predicate) { - for (V1DownwardAPIVolumeFileBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1DownwardAPIVolumeFile item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1DownwardAPIProjection instance) { + instance = instance != null ? instance : new V1DownwardAPIProjection(); + if (instance != null) { + this.withItems(instance.getItems()); } - return (A) this; } - public A withItems(V1DownwardAPIVolumeFile... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1DownwardAPIVolumeFile item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1DownwardAPIVolumeFile item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1DownwardAPIVolumeFile item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -259,10 +161,82 @@ public boolean equals(Object o) { return true; } + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1DownwardAPIVolumeFileBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(items); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1DownwardAPIVolumeFile... items) { + if (this.items == null) { + return (A) this; + } + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1DownwardAPIVolumeFileBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1DownwardAPIVolumeFile item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1DownwardAPIVolumeFile item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -273,14 +247,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1DownwardAPIVolumeFile item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1DownwardAPIVolumeFile... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1DownwardAPIVolumeFile item : items) { + this.addToItems(item); + } + } + return (A) this; + } public class ItemsNested extends V1DownwardAPIVolumeFileFluent> implements Nested{ + + V1DownwardAPIVolumeFileBuilder builder; + int index; + ItemsNested(int index,V1DownwardAPIVolumeFile item) { this.index = index; this.builder = new V1DownwardAPIVolumeFileBuilder(this, item); } - V1DownwardAPIVolumeFileBuilder builder; - int index; - + public N and() { return (N) V1DownwardAPIProjectionFluent.this.setToItems(index, builder.build()); } @@ -289,7 +293,5 @@ public N endItem() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java index a77f97b553..fd0629a898 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DownwardAPIVolumeFileBuilder extends V1DownwardAPIVolumeFileFluent implements VisitableBuilder{ + + V1DownwardAPIVolumeFileFluent fluent; + public V1DownwardAPIVolumeFileBuilder() { this(new V1DownwardAPIVolumeFile()); } @@ -11,17 +14,16 @@ public V1DownwardAPIVolumeFileBuilder(V1DownwardAPIVolumeFileFluent fluent) { this(fluent, new V1DownwardAPIVolumeFile()); } - public V1DownwardAPIVolumeFileBuilder(V1DownwardAPIVolumeFileFluent fluent,V1DownwardAPIVolumeFile instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DownwardAPIVolumeFileBuilder(V1DownwardAPIVolumeFile instance) { this.fluent = this; this.copyInstance(instance); } - V1DownwardAPIVolumeFileFluent fluent; + public V1DownwardAPIVolumeFileBuilder(V1DownwardAPIVolumeFileFluent fluent,V1DownwardAPIVolumeFile instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DownwardAPIVolumeFile build() { V1DownwardAPIVolumeFile buildable = new V1DownwardAPIVolumeFile(); buildable.setFieldRef(fluent.buildFieldRef()); @@ -31,5 +33,4 @@ public V1DownwardAPIVolumeFile build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java index 78e04c0c68..c9c591875b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java @@ -1,30 +1,40 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.String; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1DownwardAPIVolumeFileFluent> extends BaseFluent{ + + private V1ObjectFieldSelectorBuilder fieldRef; + private Integer mode; + private String path; + private V1ResourceFieldSelectorBuilder resourceFieldRef; + public V1DownwardAPIVolumeFileFluent() { } public V1DownwardAPIVolumeFileFluent(V1DownwardAPIVolumeFile instance) { this.copyInstance(instance); } - private V1ObjectFieldSelectorBuilder fieldRef; - private Integer mode; - private String path; - private V1ResourceFieldSelectorBuilder resourceFieldRef; + + public V1ObjectFieldSelector buildFieldRef() { + return this.fieldRef != null ? this.fieldRef.build() : null; + } + + public V1ResourceFieldSelector buildResourceFieldRef() { + return this.resourceFieldRef != null ? this.resourceFieldRef.build() : null; + } protected void copyInstance(V1DownwardAPIVolumeFile instance) { instance = instance != null ? instance : new V1DownwardAPIVolumeFile(); @@ -36,34 +46,6 @@ protected void copyInstance(V1DownwardAPIVolumeFile instance) { } } - public V1ObjectFieldSelector buildFieldRef() { - return this.fieldRef != null ? this.fieldRef.build() : null; - } - - public A withFieldRef(V1ObjectFieldSelector fieldRef) { - this._visitables.remove("fieldRef"); - if (fieldRef != null) { - this.fieldRef = new V1ObjectFieldSelectorBuilder(fieldRef); - this._visitables.get("fieldRef").add(this.fieldRef); - } else { - this.fieldRef = null; - this._visitables.get("fieldRef").remove(this.fieldRef); - } - return (A) this; - } - - public boolean hasFieldRef() { - return this.fieldRef != null; - } - - public FieldRefNested withNewFieldRef() { - return new FieldRefNested(null); - } - - public FieldRefNested withNewFieldRefLike(V1ObjectFieldSelector item) { - return new FieldRefNested(item); - } - public FieldRefNested editFieldRef() { return this.withNewFieldRefLike(Optional.ofNullable(this.buildFieldRef()).orElse(null)); } @@ -76,64 +58,6 @@ public FieldRefNested editOrNewFieldRefLike(V1ObjectFieldSelector item) { return this.withNewFieldRefLike(Optional.ofNullable(this.buildFieldRef()).orElse(item)); } - public Integer getMode() { - return this.mode; - } - - public A withMode(Integer mode) { - this.mode = mode; - return (A) this; - } - - public boolean hasMode() { - return this.mode != null; - } - - public String getPath() { - return this.path; - } - - public A withPath(String path) { - this.path = path; - return (A) this; - } - - public boolean hasPath() { - return this.path != null; - } - - public V1ResourceFieldSelector buildResourceFieldRef() { - return this.resourceFieldRef != null ? this.resourceFieldRef.build() : null; - } - - public A withResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { - this._visitables.remove("resourceFieldRef"); - if (resourceFieldRef != null) { - this.resourceFieldRef = new V1ResourceFieldSelectorBuilder(resourceFieldRef); - this._visitables.get("resourceFieldRef").add(this.resourceFieldRef); - } else { - this.resourceFieldRef = null; - this._visitables.get("resourceFieldRef").remove(this.resourceFieldRef); - } - return (A) this; - } - - public boolean hasResourceFieldRef() { - return this.resourceFieldRef != null; - } - - public ResourceFieldRefNested withNewResourceFieldRef() { - return new ResourceFieldRefNested(null); - } - - public ResourceFieldRefNested withNewResourceFieldRefLike(V1ResourceFieldSelector item) { - return new ResourceFieldRefNested(item); - } - - public ResourceFieldRefNested editResourceFieldRef() { - return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(null)); - } - public ResourceFieldRefNested editOrNewResourceFieldRef() { return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(new V1ResourceFieldSelectorBuilder().build())); } @@ -142,6 +66,10 @@ public ResourceFieldRefNested editOrNewResourceFieldRefLike(V1ResourceFieldSe return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(item)); } + public ResourceFieldRefNested editResourceFieldRef() { + return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -168,6 +96,30 @@ public boolean equals(Object o) { return true; } + public Integer getMode() { + return this.mode; + } + + public String getPath() { + return this.path; + } + + public boolean hasFieldRef() { + return this.fieldRef != null; + } + + public boolean hasMode() { + return this.mode != null; + } + + public boolean hasPath() { + return this.path != null; + } + + public boolean hasResourceFieldRef() { + return this.resourceFieldRef != null; + } + public int hashCode() { return Objects.hash(fieldRef, mode, path, resourceFieldRef); } @@ -197,12 +149,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withFieldRef(V1ObjectFieldSelector fieldRef) { + this._visitables.remove("fieldRef"); + if (fieldRef != null) { + this.fieldRef = new V1ObjectFieldSelectorBuilder(fieldRef); + this._visitables.get("fieldRef").add(this.fieldRef); + } else { + this.fieldRef = null; + this._visitables.get("fieldRef").remove(this.fieldRef); + } + return (A) this; + } + + public A withMode(Integer mode) { + this.mode = mode; + return (A) this; + } + + public FieldRefNested withNewFieldRef() { + return new FieldRefNested(null); + } + + public FieldRefNested withNewFieldRefLike(V1ObjectFieldSelector item) { + return new FieldRefNested(item); + } + + public ResourceFieldRefNested withNewResourceFieldRef() { + return new ResourceFieldRefNested(null); + } + + public ResourceFieldRefNested withNewResourceFieldRefLike(V1ResourceFieldSelector item) { + return new ResourceFieldRefNested(item); + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public A withResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { + this._visitables.remove("resourceFieldRef"); + if (resourceFieldRef != null) { + this.resourceFieldRef = new V1ResourceFieldSelectorBuilder(resourceFieldRef); + this._visitables.get("resourceFieldRef").add(this.resourceFieldRef); + } else { + this.resourceFieldRef = null; + this._visitables.get("resourceFieldRef").remove(this.resourceFieldRef); + } + return (A) this; + } public class FieldRefNested extends V1ObjectFieldSelectorFluent> implements Nested{ + + V1ObjectFieldSelectorBuilder builder; + FieldRefNested(V1ObjectFieldSelector item) { this.builder = new V1ObjectFieldSelectorBuilder(this, item); } - V1ObjectFieldSelectorBuilder builder; - + public N and() { return (N) V1DownwardAPIVolumeFileFluent.this.withFieldRef(builder.build()); } @@ -211,14 +215,15 @@ public N endFieldRef() { return and(); } - } public class ResourceFieldRefNested extends V1ResourceFieldSelectorFluent> implements Nested{ + + V1ResourceFieldSelectorBuilder builder; + ResourceFieldRefNested(V1ResourceFieldSelector item) { this.builder = new V1ResourceFieldSelectorBuilder(this, item); } - V1ResourceFieldSelectorBuilder builder; - + public N and() { return (N) V1DownwardAPIVolumeFileFluent.this.withResourceFieldRef(builder.build()); } @@ -227,7 +232,5 @@ public N endResourceFieldRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java index 401c6634c6..7a3f944179 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1DownwardAPIVolumeSourceBuilder extends V1DownwardAPIVolumeSourceFluent implements VisitableBuilder{ + + V1DownwardAPIVolumeSourceFluent fluent; + public V1DownwardAPIVolumeSourceBuilder() { this(new V1DownwardAPIVolumeSource()); } @@ -11,17 +14,16 @@ public V1DownwardAPIVolumeSourceBuilder(V1DownwardAPIVolumeSourceFluent fluen this(fluent, new V1DownwardAPIVolumeSource()); } - public V1DownwardAPIVolumeSourceBuilder(V1DownwardAPIVolumeSourceFluent fluent,V1DownwardAPIVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DownwardAPIVolumeSourceBuilder(V1DownwardAPIVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1DownwardAPIVolumeSourceFluent fluent; + public V1DownwardAPIVolumeSourceBuilder(V1DownwardAPIVolumeSourceFluent fluent,V1DownwardAPIVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DownwardAPIVolumeSource build() { V1DownwardAPIVolumeSource buildable = new V1DownwardAPIVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); @@ -29,5 +31,4 @@ public V1DownwardAPIVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java index a3dc08d1a9..db91657e55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java @@ -1,83 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Integer; +import java.lang.Object; import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1DownwardAPIVolumeSourceFluent> extends BaseFluent{ + + private Integer defaultMode; + private ArrayList items; + public V1DownwardAPIVolumeSourceFluent() { } public V1DownwardAPIVolumeSourceFluent(V1DownwardAPIVolumeSource instance) { this.copyInstance(instance); } - private Integer defaultMode; - private ArrayList items; - - protected void copyInstance(V1DownwardAPIVolumeSource instance) { - instance = instance != null ? instance : new V1DownwardAPIVolumeSource(); - if (instance != null) { - this.withDefaultMode(instance.getDefaultMode()); - this.withItems(instance.getItems()); - } - } - - public Integer getDefaultMode() { - return this.defaultMode; - } - - public A withDefaultMode(Integer defaultMode) { - this.defaultMode = defaultMode; - return (A) this; - } - - public boolean hasDefaultMode() { - return this.defaultMode != null; - } - - public A addToItems(int index,V1DownwardAPIVolumeFile item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1DownwardAPIVolumeFile item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1DownwardAPIVolumeFile item) { + return new ItemsNested(-1, item); } public A addToItems(V1DownwardAPIVolumeFile... items) { @@ -92,68 +63,31 @@ public A addToItems(V1DownwardAPIVolumeFile... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1DownwardAPIVolumeFile item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1DownwardAPIVolumeFile item : items) { - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1DownwardAPIVolumeFile... items) { - if (this.items == null) { - return (A) this; - } - for (V1DownwardAPIVolumeFile item : items) { - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1DownwardAPIVolumeFile item : items) { - V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1DownwardAPIVolumeFileBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1DownwardAPIVolumeFile buildFirstItem() { + return this.items.get(0).build(); } public V1DownwardAPIVolumeFile buildItem(int index) { return this.items.get(index).build(); } - public V1DownwardAPIVolumeFile buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1DownwardAPIVolumeFile buildLastItem() { @@ -169,73 +103,28 @@ public V1DownwardAPIVolumeFile buildMatchingItem(Predicate predicate) { - for (V1DownwardAPIVolumeFileBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1DownwardAPIVolumeFile item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1DownwardAPIVolumeSource instance) { + instance = instance != null ? instance : new V1DownwardAPIVolumeSource(); + if (instance != null) { + this.withDefaultMode(instance.getDefaultMode()); + this.withItems(instance.getItems()); } - return (A) this; } - public A withItems(V1DownwardAPIVolumeFile... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1DownwardAPIVolumeFile item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1DownwardAPIVolumeFile item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1DownwardAPIVolumeFile item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -278,10 +167,90 @@ public boolean equals(Object o) { return true; } + public Integer getDefaultMode() { + return this.defaultMode; + } + + public boolean hasDefaultMode() { + return this.defaultMode != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1DownwardAPIVolumeFileBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(defaultMode, items); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1DownwardAPIVolumeFile... items) { + if (this.items == null) { + return (A) this; + } + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1DownwardAPIVolumeFileBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1DownwardAPIVolumeFile item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1DownwardAPIVolumeFile item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -297,14 +266,49 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withDefaultMode(Integer defaultMode) { + this.defaultMode = defaultMode; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1DownwardAPIVolumeFile item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1DownwardAPIVolumeFile... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1DownwardAPIVolumeFile item : items) { + this.addToItems(item); + } + } + return (A) this; + } public class ItemsNested extends V1DownwardAPIVolumeFileFluent> implements Nested{ + + V1DownwardAPIVolumeFileBuilder builder; + int index; + ItemsNested(int index,V1DownwardAPIVolumeFile item) { this.index = index; this.builder = new V1DownwardAPIVolumeFileBuilder(this, item); } - V1DownwardAPIVolumeFileBuilder builder; - int index; - + public N and() { return (N) V1DownwardAPIVolumeSourceFluent.this.setToItems(index, builder.build()); } @@ -313,7 +317,5 @@ public N endItem() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java index db597a7c5d..c938c24926 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1EmptyDirVolumeSourceBuilder extends V1EmptyDirVolumeSourceFluent implements VisitableBuilder{ + + V1EmptyDirVolumeSourceFluent fluent; + public V1EmptyDirVolumeSourceBuilder() { this(new V1EmptyDirVolumeSource()); } @@ -11,17 +14,16 @@ public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSourceFluent fluent) { this(fluent, new V1EmptyDirVolumeSource()); } - public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSourceFluent fluent,V1EmptyDirVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1EmptyDirVolumeSourceFluent fluent; + public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSourceFluent fluent,V1EmptyDirVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EmptyDirVolumeSource build() { V1EmptyDirVolumeSource buildable = new V1EmptyDirVolumeSource(); buildable.setMedium(fluent.getMedium()); @@ -29,5 +31,4 @@ public V1EmptyDirVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java index 5e2e407f05..5ce9ab9c62 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1EmptyDirVolumeSourceFluent> extends BaseFluent{ + + private String medium; + private Quantity sizeLimit; + public V1EmptyDirVolumeSourceFluent() { } public V1EmptyDirVolumeSourceFluent(V1EmptyDirVolumeSource instance) { this.copyInstance(instance); } - private String medium; - private Quantity sizeLimit; - + protected void copyInstance(V1EmptyDirVolumeSource instance) { instance = instance != null ? instance : new V1EmptyDirVolumeSource(); if (instance != null) { @@ -30,36 +32,6 @@ protected void copyInstance(V1EmptyDirVolumeSource instance) { } } - public String getMedium() { - return this.medium; - } - - public A withMedium(String medium) { - this.medium = medium; - return (A) this; - } - - public boolean hasMedium() { - return this.medium != null; - } - - public Quantity getSizeLimit() { - return this.sizeLimit; - } - - public A withSizeLimit(Quantity sizeLimit) { - this.sizeLimit = sizeLimit; - return (A) this; - } - - public boolean hasSizeLimit() { - return this.sizeLimit != null; - } - - public A withNewSizeLimit(String value) { - return (A) this.withSizeLimit(new Quantity(value)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -80,6 +52,22 @@ public boolean equals(Object o) { return true; } + public String getMedium() { + return this.medium; + } + + public Quantity getSizeLimit() { + return this.sizeLimit; + } + + public boolean hasMedium() { + return this.medium != null; + } + + public boolean hasSizeLimit() { + return this.sizeLimit != null; + } + public int hashCode() { return Objects.hash(medium, sizeLimit); } @@ -100,5 +88,18 @@ public String toString() { return sb.toString(); } - + public A withMedium(String medium) { + this.medium = medium; + return (A) this; + } + + public A withNewSizeLimit(String value) { + return (A) this.withSizeLimit(new Quantity(value)); + } + + public A withSizeLimit(Quantity sizeLimit) { + this.sizeLimit = sizeLimit; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java index 1a03af84e2..5c8d3b1c1c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1EndpointAddressBuilder extends V1EndpointAddressFluent implements VisitableBuilder{ + + V1EndpointAddressFluent fluent; + public V1EndpointAddressBuilder() { this(new V1EndpointAddress()); } @@ -11,17 +14,16 @@ public V1EndpointAddressBuilder(V1EndpointAddressFluent fluent) { this(fluent, new V1EndpointAddress()); } - public V1EndpointAddressBuilder(V1EndpointAddressFluent fluent,V1EndpointAddress instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EndpointAddressBuilder(V1EndpointAddress instance) { this.fluent = this; this.copyInstance(instance); } - V1EndpointAddressFluent fluent; + public V1EndpointAddressBuilder(V1EndpointAddressFluent fluent,V1EndpointAddress instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EndpointAddress build() { V1EndpointAddress buildable = new V1EndpointAddress(); buildable.setHostname(fluent.getHostname()); @@ -31,5 +33,4 @@ public V1EndpointAddress build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java index 44d6c4329c..613c0f1f64 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java @@ -1,29 +1,35 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1EndpointAddressFluent> extends BaseFluent{ + + private String hostname; + private String ip; + private String nodeName; + private V1ObjectReferenceBuilder targetRef; + public V1EndpointAddressFluent() { } public V1EndpointAddressFluent(V1EndpointAddress instance) { this.copyInstance(instance); } - private String hostname; - private String ip; - private String nodeName; - private V1ObjectReferenceBuilder targetRef; + + public V1ObjectReference buildTargetRef() { + return this.targetRef != null ? this.targetRef.build() : null; + } protected void copyInstance(V1EndpointAddress instance) { instance = instance != null ? instance : new V1EndpointAddress(); @@ -35,77 +41,6 @@ protected void copyInstance(V1EndpointAddress instance) { } } - public String getHostname() { - return this.hostname; - } - - public A withHostname(String hostname) { - this.hostname = hostname; - return (A) this; - } - - public boolean hasHostname() { - return this.hostname != null; - } - - public String getIp() { - return this.ip; - } - - public A withIp(String ip) { - this.ip = ip; - return (A) this; - } - - public boolean hasIp() { - return this.ip != null; - } - - public String getNodeName() { - return this.nodeName; - } - - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; - } - - public boolean hasNodeName() { - return this.nodeName != null; - } - - public V1ObjectReference buildTargetRef() { - return this.targetRef != null ? this.targetRef.build() : null; - } - - public A withTargetRef(V1ObjectReference targetRef) { - this._visitables.remove("targetRef"); - if (targetRef != null) { - this.targetRef = new V1ObjectReferenceBuilder(targetRef); - this._visitables.get("targetRef").add(this.targetRef); - } else { - this.targetRef = null; - this._visitables.get("targetRef").remove(this.targetRef); - } - return (A) this; - } - - public boolean hasTargetRef() { - return this.targetRef != null; - } - - public TargetRefNested withNewTargetRef() { - return new TargetRefNested(null); - } - - public TargetRefNested withNewTargetRefLike(V1ObjectReference item) { - return new TargetRefNested(item); - } - - public TargetRefNested editTargetRef() { - return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(null)); - } - public TargetRefNested editOrNewTargetRef() { return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(new V1ObjectReferenceBuilder().build())); } @@ -114,6 +49,10 @@ public TargetRefNested editOrNewTargetRefLike(V1ObjectReference item) { return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(item)); } + public TargetRefNested editTargetRef() { + return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -140,6 +79,34 @@ public boolean equals(Object o) { return true; } + public String getHostname() { + return this.hostname; + } + + public String getIp() { + return this.ip; + } + + public String getNodeName() { + return this.nodeName; + } + + public boolean hasHostname() { + return this.hostname != null; + } + + public boolean hasIp() { + return this.ip != null; + } + + public boolean hasNodeName() { + return this.nodeName != null; + } + + public boolean hasTargetRef() { + return this.targetRef != null; + } + public int hashCode() { return Objects.hash(hostname, ip, nodeName, targetRef); } @@ -169,12 +136,49 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withHostname(String hostname) { + this.hostname = hostname; + return (A) this; + } + + public A withIp(String ip) { + this.ip = ip; + return (A) this; + } + + public TargetRefNested withNewTargetRef() { + return new TargetRefNested(null); + } + + public TargetRefNested withNewTargetRefLike(V1ObjectReference item) { + return new TargetRefNested(item); + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + public A withTargetRef(V1ObjectReference targetRef) { + this._visitables.remove("targetRef"); + if (targetRef != null) { + this.targetRef = new V1ObjectReferenceBuilder(targetRef); + this._visitables.get("targetRef").add(this.targetRef); + } else { + this.targetRef = null; + this._visitables.get("targetRef").remove(this.targetRef); + } + return (A) this; + } public class TargetRefNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + TargetRefNested(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - + public N and() { return (N) V1EndpointAddressFluent.this.withTargetRef(builder.build()); } @@ -183,7 +187,5 @@ public N endTargetRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java index c94aca47df..c4ea50ad2f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1EndpointBuilder extends V1EndpointFluent implements VisitableBuilder{ + + V1EndpointFluent fluent; + public V1EndpointBuilder() { this(new V1Endpoint()); } @@ -11,17 +14,16 @@ public V1EndpointBuilder(V1EndpointFluent fluent) { this(fluent, new V1Endpoint()); } - public V1EndpointBuilder(V1EndpointFluent fluent,V1Endpoint instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EndpointBuilder(V1Endpoint instance) { this.fluent = this; this.copyInstance(instance); } - V1EndpointFluent fluent; + public V1EndpointBuilder(V1EndpointFluent fluent,V1Endpoint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Endpoint build() { V1Endpoint buildable = new V1Endpoint(); buildable.setAddresses(fluent.getAddresses()); @@ -35,5 +37,4 @@ public V1Endpoint build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java index 092bfce42a..40787b2ffc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1EndpointConditionsBuilder extends V1EndpointConditionsFluent implements VisitableBuilder{ + + V1EndpointConditionsFluent fluent; + public V1EndpointConditionsBuilder() { this(new V1EndpointConditions()); } @@ -11,17 +14,16 @@ public V1EndpointConditionsBuilder(V1EndpointConditionsFluent fluent) { this(fluent, new V1EndpointConditions()); } - public V1EndpointConditionsBuilder(V1EndpointConditionsFluent fluent,V1EndpointConditions instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EndpointConditionsBuilder(V1EndpointConditions instance) { this.fluent = this; this.copyInstance(instance); } - V1EndpointConditionsFluent fluent; + public V1EndpointConditionsBuilder(V1EndpointConditionsFluent fluent,V1EndpointConditions instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EndpointConditions build() { V1EndpointConditions buildable = new V1EndpointConditions(); buildable.setReady(fluent.getReady()); @@ -30,5 +32,4 @@ public V1EndpointConditions build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java index 6c9534df1b..88f84a89a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1EndpointConditionsFluent> extends BaseFluent{ + + private Boolean ready; + private Boolean serving; + private Boolean terminating; + public V1EndpointConditionsFluent() { } public V1EndpointConditionsFluent(V1EndpointConditions instance) { this.copyInstance(instance); } - private Boolean ready; - private Boolean serving; - private Boolean terminating; - + protected void copyInstance(V1EndpointConditions instance) { instance = instance != null ? instance : new V1EndpointConditions(); if (instance != null) { @@ -32,45 +34,6 @@ protected void copyInstance(V1EndpointConditions instance) { } } - public Boolean getReady() { - return this.ready; - } - - public A withReady(Boolean ready) { - this.ready = ready; - return (A) this; - } - - public boolean hasReady() { - return this.ready != null; - } - - public Boolean getServing() { - return this.serving; - } - - public A withServing(Boolean serving) { - this.serving = serving; - return (A) this; - } - - public boolean hasServing() { - return this.serving != null; - } - - public Boolean getTerminating() { - return this.terminating; - } - - public A withTerminating(Boolean terminating) { - this.terminating = terminating; - return (A) this; - } - - public boolean hasTerminating() { - return this.terminating != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -94,6 +57,30 @@ public boolean equals(Object o) { return true; } + public Boolean getReady() { + return this.ready; + } + + public Boolean getServing() { + return this.serving; + } + + public Boolean getTerminating() { + return this.terminating; + } + + public boolean hasReady() { + return this.ready != null; + } + + public boolean hasServing() { + return this.serving != null; + } + + public boolean hasTerminating() { + return this.terminating != null; + } + public int hashCode() { return Objects.hash(ready, serving, terminating); } @@ -123,13 +110,27 @@ public A withReady() { return withReady(true); } + public A withReady(Boolean ready) { + this.ready = ready; + return (A) this; + } + public A withServing() { return withServing(true); } + public A withServing(Boolean serving) { + this.serving = serving; + return (A) this; + } + public A withTerminating() { return withTerminating(true); } - + public A withTerminating(Boolean terminating) { + this.terminating = terminating; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java index 7ef30c0f89..4ff354053d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java @@ -1,31 +1,26 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; +import java.util.Collection; import java.util.LinkedHashMap; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; import java.util.List; -import java.util.Optional; -import java.util.Objects; -import java.util.Collection; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1EndpointFluent> extends BaseFluent{ - public V1EndpointFluent() { - } - - public V1EndpointFluent(V1Endpoint instance) { - this.copyInstance(instance); - } + private List addresses; private V1EndpointConditionsBuilder conditions; private Map deprecatedTopology; @@ -34,34 +29,21 @@ public V1EndpointFluent(V1Endpoint instance) { private String nodeName; private V1ObjectReferenceBuilder targetRef; private String zone; - - protected void copyInstance(V1Endpoint instance) { - instance = instance != null ? instance : new V1Endpoint(); - if (instance != null) { - this.withAddresses(instance.getAddresses()); - this.withConditions(instance.getConditions()); - this.withDeprecatedTopology(instance.getDeprecatedTopology()); - this.withHints(instance.getHints()); - this.withHostname(instance.getHostname()); - this.withNodeName(instance.getNodeName()); - this.withTargetRef(instance.getTargetRef()); - this.withZone(instance.getZone()); - } + + public V1EndpointFluent() { } - public A addToAddresses(int index,String item) { - if (this.addresses == null) { - this.addresses = new ArrayList(); - } - this.addresses.add(index, item); - return (A) this; + public V1EndpointFluent(V1Endpoint instance) { + this.copyInstance(instance); } - - public A setToAddresses(int index,String item) { + + public A addAllToAddresses(Collection items) { if (this.addresses == null) { this.addresses = new ArrayList(); } - this.addresses.set(index, item); + for (String item : items) { + this.addresses.add(item); + } return (A) this; } @@ -75,359 +57,270 @@ public A addToAddresses(String... items) { return (A) this; } - public A addAllToAddresses(Collection items) { + public A addToAddresses(int index,String item) { if (this.addresses == null) { this.addresses = new ArrayList(); } - for (String item : items) { - this.addresses.add(item); - } + this.addresses.add(index, item); return (A) this; } - public A removeFromAddresses(String... items) { - if (this.addresses == null) { - return (A) this; + public A addToDeprecatedTopology(Map map) { + if (this.deprecatedTopology == null && map != null) { + this.deprecatedTopology = new LinkedHashMap(); } - for (String item : items) { - this.addresses.remove(item); + if (map != null) { + this.deprecatedTopology.putAll(map); } return (A) this; } - public A removeAllFromAddresses(Collection items) { - if (this.addresses == null) { - return (A) this; + public A addToDeprecatedTopology(String key,String value) { + if (this.deprecatedTopology == null && key != null && value != null) { + this.deprecatedTopology = new LinkedHashMap(); } - for (String item : items) { - this.addresses.remove(item); + if (key != null && value != null) { + this.deprecatedTopology.put(key, value); } return (A) this; } - public List getAddresses() { - return this.addresses; - } - - public String getAddress(int index) { - return this.addresses.get(index); - } - - public String getFirstAddress() { - return this.addresses.get(0); - } - - public String getLastAddress() { - return this.addresses.get(addresses.size() - 1); - } - - public String getMatchingAddress(Predicate predicate) { - for (String item : addresses) { - if (predicate.test(item)) { - return item; - } - } - return null; + public V1EndpointConditions buildConditions() { + return this.conditions != null ? this.conditions.build() : null; } - public boolean hasMatchingAddress(Predicate predicate) { - for (String item : addresses) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1EndpointHints buildHints() { + return this.hints != null ? this.hints.build() : null; } - public A withAddresses(List addresses) { - if (addresses != null) { - this.addresses = new ArrayList(); - for (String item : addresses) { - this.addToAddresses(item); - } - } else { - this.addresses = null; - } - return (A) this; + public V1ObjectReference buildTargetRef() { + return this.targetRef != null ? this.targetRef.build() : null; } - public A withAddresses(String... addresses) { - if (this.addresses != null) { - this.addresses.clear(); - _visitables.remove("addresses"); - } - if (addresses != null) { - for (String item : addresses) { - this.addToAddresses(item); - } + protected void copyInstance(V1Endpoint instance) { + instance = instance != null ? instance : new V1Endpoint(); + if (instance != null) { + this.withAddresses(instance.getAddresses()); + this.withConditions(instance.getConditions()); + this.withDeprecatedTopology(instance.getDeprecatedTopology()); + this.withHints(instance.getHints()); + this.withHostname(instance.getHostname()); + this.withNodeName(instance.getNodeName()); + this.withTargetRef(instance.getTargetRef()); + this.withZone(instance.getZone()); } - return (A) this; } - public boolean hasAddresses() { - return this.addresses != null && !(this.addresses.isEmpty()); + public ConditionsNested editConditions() { + return this.withNewConditionsLike(Optional.ofNullable(this.buildConditions()).orElse(null)); } - public V1EndpointConditions buildConditions() { - return this.conditions != null ? this.conditions.build() : null; + public HintsNested editHints() { + return this.withNewHintsLike(Optional.ofNullable(this.buildHints()).orElse(null)); } - public A withConditions(V1EndpointConditions conditions) { - this._visitables.remove("conditions"); - if (conditions != null) { - this.conditions = new V1EndpointConditionsBuilder(conditions); - this._visitables.get("conditions").add(this.conditions); - } else { - this.conditions = null; - this._visitables.get("conditions").remove(this.conditions); - } - return (A) this; + public ConditionsNested editOrNewConditions() { + return this.withNewConditionsLike(Optional.ofNullable(this.buildConditions()).orElse(new V1EndpointConditionsBuilder().build())); } - public boolean hasConditions() { - return this.conditions != null; + public ConditionsNested editOrNewConditionsLike(V1EndpointConditions item) { + return this.withNewConditionsLike(Optional.ofNullable(this.buildConditions()).orElse(item)); } - public ConditionsNested withNewConditions() { - return new ConditionsNested(null); + public HintsNested editOrNewHints() { + return this.withNewHintsLike(Optional.ofNullable(this.buildHints()).orElse(new V1EndpointHintsBuilder().build())); } - public ConditionsNested withNewConditionsLike(V1EndpointConditions item) { - return new ConditionsNested(item); + public HintsNested editOrNewHintsLike(V1EndpointHints item) { + return this.withNewHintsLike(Optional.ofNullable(this.buildHints()).orElse(item)); } - public ConditionsNested editConditions() { - return this.withNewConditionsLike(Optional.ofNullable(this.buildConditions()).orElse(null)); + public TargetRefNested editOrNewTargetRef() { + return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(new V1ObjectReferenceBuilder().build())); } - public ConditionsNested editOrNewConditions() { - return this.withNewConditionsLike(Optional.ofNullable(this.buildConditions()).orElse(new V1EndpointConditionsBuilder().build())); + public TargetRefNested editOrNewTargetRefLike(V1ObjectReference item) { + return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(item)); } - public ConditionsNested editOrNewConditionsLike(V1EndpointConditions item) { - return this.withNewConditionsLike(Optional.ofNullable(this.buildConditions()).orElse(item)); + public TargetRefNested editTargetRef() { + return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(null)); } - public A addToDeprecatedTopology(String key,String value) { - if (this.deprecatedTopology == null && key != null && value != null) { - this.deprecatedTopology = new LinkedHashMap(); + public boolean equals(Object o) { + if (this == o) { + return true; } - if (key != null && value != null) { - this.deprecatedTopology.put(key, value); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A addToDeprecatedTopology(Map map) { - if (this.deprecatedTopology == null && map != null) { - this.deprecatedTopology = new LinkedHashMap(); + if (!(super.equals(o))) { + return false; } - if (map != null) { - this.deprecatedTopology.putAll(map); + V1EndpointFluent that = (V1EndpointFluent) o; + if (!(Objects.equals(addresses, that.addresses))) { + return false; } - return (A) this; - } - - public A removeFromDeprecatedTopology(String key) { - if (this.deprecatedTopology == null) { - return (A) this; + if (!(Objects.equals(conditions, that.conditions))) { + return false; } - if (key != null && this.deprecatedTopology != null) { - this.deprecatedTopology.remove(key); + if (!(Objects.equals(deprecatedTopology, that.deprecatedTopology))) { + return false; } - return (A) this; - } - - public A removeFromDeprecatedTopology(Map map) { - if (this.deprecatedTopology == null) { - return (A) this; + if (!(Objects.equals(hints, that.hints))) { + return false; } - if (map != null) { - for (Object key : map.keySet()) { - if (this.deprecatedTopology != null) { - this.deprecatedTopology.remove(key); - } - } + if (!(Objects.equals(hostname, that.hostname))) { + return false; } - return (A) this; - } - - public Map getDeprecatedTopology() { - return this.deprecatedTopology; - } - - public A withDeprecatedTopology(Map deprecatedTopology) { - if (deprecatedTopology == null) { - this.deprecatedTopology = null; - } else { - this.deprecatedTopology = new LinkedHashMap(deprecatedTopology); + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; } - return (A) this; - } - - public boolean hasDeprecatedTopology() { - return this.deprecatedTopology != null; - } - - public V1EndpointHints buildHints() { - return this.hints != null ? this.hints.build() : null; - } - - public A withHints(V1EndpointHints hints) { - this._visitables.remove("hints"); - if (hints != null) { - this.hints = new V1EndpointHintsBuilder(hints); - this._visitables.get("hints").add(this.hints); - } else { - this.hints = null; - this._visitables.get("hints").remove(this.hints); + if (!(Objects.equals(targetRef, that.targetRef))) { + return false; } - return (A) this; - } - - public boolean hasHints() { - return this.hints != null; - } - - public HintsNested withNewHints() { - return new HintsNested(null); + if (!(Objects.equals(zone, that.zone))) { + return false; + } + return true; } - public HintsNested withNewHintsLike(V1EndpointHints item) { - return new HintsNested(item); + public String getAddress(int index) { + return this.addresses.get(index); } - public HintsNested editHints() { - return this.withNewHintsLike(Optional.ofNullable(this.buildHints()).orElse(null)); + public List getAddresses() { + return this.addresses; } - public HintsNested editOrNewHints() { - return this.withNewHintsLike(Optional.ofNullable(this.buildHints()).orElse(new V1EndpointHintsBuilder().build())); + public Map getDeprecatedTopology() { + return this.deprecatedTopology; } - public HintsNested editOrNewHintsLike(V1EndpointHints item) { - return this.withNewHintsLike(Optional.ofNullable(this.buildHints()).orElse(item)); + public String getFirstAddress() { + return this.addresses.get(0); } public String getHostname() { return this.hostname; } - public A withHostname(String hostname) { - this.hostname = hostname; - return (A) this; + public String getLastAddress() { + return this.addresses.get(addresses.size() - 1); } - public boolean hasHostname() { - return this.hostname != null; + public String getMatchingAddress(Predicate predicate) { + for (String item : addresses) { + if (predicate.test(item)) { + return item; + } + } + return null; } public String getNodeName() { - return this.nodeName; - } - - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; - } - - public boolean hasNodeName() { - return this.nodeName != null; - } - - public V1ObjectReference buildTargetRef() { - return this.targetRef != null ? this.targetRef.build() : null; + return this.nodeName; } - public A withTargetRef(V1ObjectReference targetRef) { - this._visitables.remove("targetRef"); - if (targetRef != null) { - this.targetRef = new V1ObjectReferenceBuilder(targetRef); - this._visitables.get("targetRef").add(this.targetRef); - } else { - this.targetRef = null; - this._visitables.get("targetRef").remove(this.targetRef); - } - return (A) this; + public String getZone() { + return this.zone; } - public boolean hasTargetRef() { - return this.targetRef != null; + public boolean hasAddresses() { + return this.addresses != null && !(this.addresses.isEmpty()); } - public TargetRefNested withNewTargetRef() { - return new TargetRefNested(null); + public boolean hasConditions() { + return this.conditions != null; } - public TargetRefNested withNewTargetRefLike(V1ObjectReference item) { - return new TargetRefNested(item); + public boolean hasDeprecatedTopology() { + return this.deprecatedTopology != null; } - public TargetRefNested editTargetRef() { - return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(null)); + public boolean hasHints() { + return this.hints != null; } - public TargetRefNested editOrNewTargetRef() { - return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(new V1ObjectReferenceBuilder().build())); + public boolean hasHostname() { + return this.hostname != null; } - public TargetRefNested editOrNewTargetRefLike(V1ObjectReference item) { - return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(item)); + public boolean hasMatchingAddress(Predicate predicate) { + for (String item : addresses) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getZone() { - return this.zone; + public boolean hasNodeName() { + return this.nodeName != null; } - public A withZone(String zone) { - this.zone = zone; - return (A) this; + public boolean hasTargetRef() { + return this.targetRef != null; } public boolean hasZone() { return this.zone != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1EndpointFluent that = (V1EndpointFluent) o; - if (!(Objects.equals(addresses, that.addresses))) { - return false; + public int hashCode() { + return Objects.hash(addresses, conditions, deprecatedTopology, hints, hostname, nodeName, targetRef, zone); + } + + public A removeAllFromAddresses(Collection items) { + if (this.addresses == null) { + return (A) this; } - if (!(Objects.equals(conditions, that.conditions))) { - return false; + for (String item : items) { + this.addresses.remove(item); } - if (!(Objects.equals(deprecatedTopology, that.deprecatedTopology))) { - return false; + return (A) this; + } + + public A removeFromAddresses(String... items) { + if (this.addresses == null) { + return (A) this; } - if (!(Objects.equals(hints, that.hints))) { - return false; + for (String item : items) { + this.addresses.remove(item); } - if (!(Objects.equals(hostname, that.hostname))) { - return false; + return (A) this; + } + + public A removeFromDeprecatedTopology(String key) { + if (this.deprecatedTopology == null) { + return (A) this; } - if (!(Objects.equals(nodeName, that.nodeName))) { - return false; + if (key != null && this.deprecatedTopology != null) { + this.deprecatedTopology.remove(key); } - if (!(Objects.equals(targetRef, that.targetRef))) { - return false; + return (A) this; + } + + public A removeFromDeprecatedTopology(Map map) { + if (this.deprecatedTopology == null) { + return (A) this; } - if (!(Objects.equals(zone, that.zone))) { - return false; + if (map != null) { + for (Object key : map.keySet()) { + if (this.deprecatedTopology != null) { + this.deprecatedTopology.remove(key); + } + } } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(addresses, conditions, deprecatedTopology, hints, hostname, nodeName, targetRef, zone); + public A setToAddresses(int index,String item) { + if (this.addresses == null) { + this.addresses = new ArrayList(); + } + this.addresses.set(index, item); + return (A) this; } public String toString() { @@ -475,12 +368,123 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAddresses(List addresses) { + if (addresses != null) { + this.addresses = new ArrayList(); + for (String item : addresses) { + this.addToAddresses(item); + } + } else { + this.addresses = null; + } + return (A) this; + } + + public A withAddresses(String... addresses) { + if (this.addresses != null) { + this.addresses.clear(); + _visitables.remove("addresses"); + } + if (addresses != null) { + for (String item : addresses) { + this.addToAddresses(item); + } + } + return (A) this; + } + + public A withConditions(V1EndpointConditions conditions) { + this._visitables.remove("conditions"); + if (conditions != null) { + this.conditions = new V1EndpointConditionsBuilder(conditions); + this._visitables.get("conditions").add(this.conditions); + } else { + this.conditions = null; + this._visitables.get("conditions").remove(this.conditions); + } + return (A) this; + } + + public A withDeprecatedTopology(Map deprecatedTopology) { + if (deprecatedTopology == null) { + this.deprecatedTopology = null; + } else { + this.deprecatedTopology = new LinkedHashMap(deprecatedTopology); + } + return (A) this; + } + + public A withHints(V1EndpointHints hints) { + this._visitables.remove("hints"); + if (hints != null) { + this.hints = new V1EndpointHintsBuilder(hints); + this._visitables.get("hints").add(this.hints); + } else { + this.hints = null; + this._visitables.get("hints").remove(this.hints); + } + return (A) this; + } + + public A withHostname(String hostname) { + this.hostname = hostname; + return (A) this; + } + + public ConditionsNested withNewConditions() { + return new ConditionsNested(null); + } + + public ConditionsNested withNewConditionsLike(V1EndpointConditions item) { + return new ConditionsNested(item); + } + + public HintsNested withNewHints() { + return new HintsNested(null); + } + + public HintsNested withNewHintsLike(V1EndpointHints item) { + return new HintsNested(item); + } + + public TargetRefNested withNewTargetRef() { + return new TargetRefNested(null); + } + + public TargetRefNested withNewTargetRefLike(V1ObjectReference item) { + return new TargetRefNested(item); + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + public A withTargetRef(V1ObjectReference targetRef) { + this._visitables.remove("targetRef"); + if (targetRef != null) { + this.targetRef = new V1ObjectReferenceBuilder(targetRef); + this._visitables.get("targetRef").add(this.targetRef); + } else { + this.targetRef = null; + this._visitables.get("targetRef").remove(this.targetRef); + } + return (A) this; + } + + public A withZone(String zone) { + this.zone = zone; + return (A) this; + } public class ConditionsNested extends V1EndpointConditionsFluent> implements Nested{ + + V1EndpointConditionsBuilder builder; + ConditionsNested(V1EndpointConditions item) { this.builder = new V1EndpointConditionsBuilder(this, item); } - V1EndpointConditionsBuilder builder; - + public N and() { return (N) V1EndpointFluent.this.withConditions(builder.build()); } @@ -489,14 +493,15 @@ public N endConditions() { return and(); } - } public class HintsNested extends V1EndpointHintsFluent> implements Nested{ + + V1EndpointHintsBuilder builder; + HintsNested(V1EndpointHints item) { this.builder = new V1EndpointHintsBuilder(this, item); } - V1EndpointHintsBuilder builder; - + public N and() { return (N) V1EndpointFluent.this.withHints(builder.build()); } @@ -505,14 +510,15 @@ public N endHints() { return and(); } - } public class TargetRefNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + TargetRefNested(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - + public N and() { return (N) V1EndpointFluent.this.withTargetRef(builder.build()); } @@ -521,7 +527,5 @@ public N endTargetRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java index de931f41c8..8130af5f7f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1EndpointHintsBuilder extends V1EndpointHintsFluent implements VisitableBuilder{ + + V1EndpointHintsFluent fluent; + public V1EndpointHintsBuilder() { this(new V1EndpointHints()); } @@ -11,17 +14,16 @@ public V1EndpointHintsBuilder(V1EndpointHintsFluent fluent) { this(fluent, new V1EndpointHints()); } - public V1EndpointHintsBuilder(V1EndpointHintsFluent fluent,V1EndpointHints instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EndpointHintsBuilder(V1EndpointHints instance) { this.fluent = this; this.copyInstance(instance); } - V1EndpointHintsFluent fluent; + public V1EndpointHintsBuilder(V1EndpointHintsFluent fluent,V1EndpointHints instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EndpointHints build() { V1EndpointHints buildable = new V1EndpointHints(); buildable.setForNodes(fluent.buildForNodes()); @@ -29,5 +31,4 @@ public V1EndpointHints build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java index df27cfc8c5..c91a38b87b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java @@ -1,71 +1,75 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1EndpointHintsFluent> extends BaseFluent{ + + private ArrayList forNodes; + private ArrayList forZones; + public V1EndpointHintsFluent() { } public V1EndpointHintsFluent(V1EndpointHints instance) { this.copyInstance(instance); } - private ArrayList forNodes; - private ArrayList forZones; - - protected void copyInstance(V1EndpointHints instance) { - instance = instance != null ? instance : new V1EndpointHints(); - if (instance != null) { - this.withForNodes(instance.getForNodes()); - this.withForZones(instance.getForZones()); - } - } - - public A addToForNodes(int index,V1ForNode item) { + + public A addAllToForNodes(Collection items) { if (this.forNodes == null) { this.forNodes = new ArrayList(); } - V1ForNodeBuilder builder = new V1ForNodeBuilder(item); - if (index < 0 || index >= forNodes.size()) { - _visitables.get("forNodes").add(builder); - forNodes.add(builder); - } else { + for (V1ForNode item : items) { + V1ForNodeBuilder builder = new V1ForNodeBuilder(item); _visitables.get("forNodes").add(builder); - forNodes.add(index, builder); + this.forNodes.add(builder); } return (A) this; } - public A setToForNodes(int index,V1ForNode item) { - if (this.forNodes == null) { - this.forNodes = new ArrayList(); + public A addAllToForZones(Collection items) { + if (this.forZones == null) { + this.forZones = new ArrayList(); } - V1ForNodeBuilder builder = new V1ForNodeBuilder(item); - if (index < 0 || index >= forNodes.size()) { - _visitables.get("forNodes").add(builder); - forNodes.add(builder); - } else { - _visitables.get("forNodes").add(builder); - forNodes.set(index, builder); + for (V1ForZone item : items) { + V1ForZoneBuilder builder = new V1ForZoneBuilder(item); + _visitables.get("forZones").add(builder); + this.forZones.add(builder); } return (A) this; } + public ForNodesNested addNewForNode() { + return new ForNodesNested(-1, null); + } + + public ForNodesNested addNewForNodeLike(V1ForNode item) { + return new ForNodesNested(-1, item); + } + + public ForZonesNested addNewForZone() { + return new ForZonesNested(-1, null); + } + + public ForZonesNested addNewForZoneLike(V1ForZone item) { + return new ForZonesNested(-1, item); + } + public A addToForNodes(V1ForNode... items) { if (this.forNodes == null) { this.forNodes = new ArrayList(); @@ -78,74 +82,80 @@ public A addToForNodes(V1ForNode... items) { return (A) this; } - public A addAllToForNodes(Collection items) { + public A addToForNodes(int index,V1ForNode item) { if (this.forNodes == null) { this.forNodes = new ArrayList(); } - for (V1ForNode item : items) { - V1ForNodeBuilder builder = new V1ForNodeBuilder(item); + V1ForNodeBuilder builder = new V1ForNodeBuilder(item); + if (index < 0 || index >= forNodes.size()) { _visitables.get("forNodes").add(builder); - this.forNodes.add(builder); + forNodes.add(builder); + } else { + _visitables.get("forNodes").add(builder); + forNodes.add(index, builder); } return (A) this; } - public A removeFromForNodes(V1ForNode... items) { - if (this.forNodes == null) { - return (A) this; + public A addToForZones(V1ForZone... items) { + if (this.forZones == null) { + this.forZones = new ArrayList(); } - for (V1ForNode item : items) { - V1ForNodeBuilder builder = new V1ForNodeBuilder(item); - _visitables.get("forNodes").remove(builder); - this.forNodes.remove(builder); + for (V1ForZone item : items) { + V1ForZoneBuilder builder = new V1ForZoneBuilder(item); + _visitables.get("forZones").add(builder); + this.forZones.add(builder); } return (A) this; } - public A removeAllFromForNodes(Collection items) { - if (this.forNodes == null) { - return (A) this; + public A addToForZones(int index,V1ForZone item) { + if (this.forZones == null) { + this.forZones = new ArrayList(); } - for (V1ForNode item : items) { - V1ForNodeBuilder builder = new V1ForNodeBuilder(item); - _visitables.get("forNodes").remove(builder); - this.forNodes.remove(builder); + V1ForZoneBuilder builder = new V1ForZoneBuilder(item); + if (index < 0 || index >= forZones.size()) { + _visitables.get("forZones").add(builder); + forZones.add(builder); + } else { + _visitables.get("forZones").add(builder); + forZones.add(index, builder); } return (A) this; } - public A removeMatchingFromForNodes(Predicate predicate) { - if (forNodes == null) { - return (A) this; - } - Iterator each = forNodes.iterator(); - List visitables = _visitables.get("forNodes"); - while (each.hasNext()) { - V1ForNodeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1ForNode buildFirstForNode() { + return this.forNodes.get(0).build(); } - public List buildForNodes() { - return this.forNodes != null ? build(forNodes) : null; + public V1ForZone buildFirstForZone() { + return this.forZones.get(0).build(); } public V1ForNode buildForNode(int index) { return this.forNodes.get(index).build(); } - public V1ForNode buildFirstForNode() { - return this.forNodes.get(0).build(); + public List buildForNodes() { + return this.forNodes != null ? build(forNodes) : null; + } + + public V1ForZone buildForZone(int index) { + return this.forZones.get(index).build(); + } + + public List buildForZones() { + return this.forZones != null ? build(forZones) : null; } public V1ForNode buildLastForNode() { return this.forNodes.get(forNodes.size() - 1).build(); } + public V1ForZone buildLastForZone() { + return this.forZones.get(forZones.size() - 1).build(); + } + public V1ForNode buildMatchingForNode(Predicate predicate) { for (V1ForNodeBuilder item : forNodes) { if (predicate.test(item)) { @@ -155,71 +165,49 @@ public V1ForNode buildMatchingForNode(Predicate predicate) { return null; } - public boolean hasMatchingForNode(Predicate predicate) { - for (V1ForNodeBuilder item : forNodes) { + public V1ForZone buildMatchingForZone(Predicate predicate) { + for (V1ForZoneBuilder item : forZones) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withForNodes(List forNodes) { - if (this.forNodes != null) { - this._visitables.get("forNodes").clear(); - } - if (forNodes != null) { - this.forNodes = new ArrayList(); - for (V1ForNode item : forNodes) { - this.addToForNodes(item); - } - } else { - this.forNodes = null; + protected void copyInstance(V1EndpointHints instance) { + instance = instance != null ? instance : new V1EndpointHints(); + if (instance != null) { + this.withForNodes(instance.getForNodes()); + this.withForZones(instance.getForZones()); } - return (A) this; } - public A withForNodes(V1ForNode... forNodes) { - if (this.forNodes != null) { - this.forNodes.clear(); - _visitables.remove("forNodes"); - } - if (forNodes != null) { - for (V1ForNode item : forNodes) { - this.addToForNodes(item); - } + public ForNodesNested editFirstForNode() { + if (forNodes.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "forNodes")); } - return (A) this; - } - - public boolean hasForNodes() { - return this.forNodes != null && !(this.forNodes.isEmpty()); - } - - public ForNodesNested addNewForNode() { - return new ForNodesNested(-1, null); - } - - public ForNodesNested addNewForNodeLike(V1ForNode item) { - return new ForNodesNested(-1, item); + return this.setNewForNodeLike(0, this.buildForNode(0)); } - public ForNodesNested setNewForNodeLike(int index,V1ForNode item) { - return new ForNodesNested(index, item); + public ForZonesNested editFirstForZone() { + if (forZones.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "forZones")); + } + return this.setNewForZoneLike(0, this.buildForZone(0)); } public ForNodesNested editForNode(int index) { - if (index <= forNodes.size()) { + if (forNodes.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "forNodes")); } return this.setNewForNodeLike(index, this.buildForNode(index)); } - public ForNodesNested editFirstForNode() { - if (forNodes.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "forNodes")); + public ForZonesNested editForZone(int index) { + if (forZones.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "forZones")); } - return this.setNewForNodeLike(0, this.buildForNode(0)); + return this.setNewForZoneLike(index, this.buildForZone(index)); } public ForNodesNested editLastForNode() { @@ -230,6 +218,14 @@ public ForNodesNested editLastForNode() { return this.setNewForNodeLike(index, this.buildForNode(index)); } + public ForZonesNested editLastForZone() { + int index = forZones.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "forZones")); + } + return this.setNewForZoneLike(index, this.buildForZone(index)); + } + public ForNodesNested editMatchingForNode(Predicate predicate) { int index = -1; for (int i = 0;i < forNodes.size();i++) { @@ -244,56 +240,102 @@ public ForNodesNested editMatchingForNode(Predicate predica return this.setNewForNodeLike(index, this.buildForNode(index)); } - public A addToForZones(int index,V1ForZone item) { - if (this.forZones == null) { - this.forZones = new ArrayList(); + public ForZonesNested editMatchingForZone(Predicate predicate) { + int index = -1; + for (int i = 0;i < forZones.size();i++) { + if (predicate.test(forZones.get(i))) { + index = i; + break; + } } - V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - if (index < 0 || index >= forZones.size()) { - _visitables.get("forZones").add(builder); - forZones.add(builder); - } else { - _visitables.get("forZones").add(builder); - forZones.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "forZones")); } - return (A) this; + return this.setNewForZoneLike(index, this.buildForZone(index)); } - public A setToForZones(int index,V1ForZone item) { - if (this.forZones == null) { - this.forZones = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - if (index < 0 || index >= forZones.size()) { - _visitables.get("forZones").add(builder); - forZones.add(builder); - } else { - _visitables.get("forZones").add(builder); - forZones.set(index, builder); + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EndpointHintsFluent that = (V1EndpointHintsFluent) o; + if (!(Objects.equals(forNodes, that.forNodes))) { + return false; + } + if (!(Objects.equals(forZones, that.forZones))) { + return false; + } + return true; + } + + public boolean hasForNodes() { + return this.forNodes != null && !(this.forNodes.isEmpty()); + } + + public boolean hasForZones() { + return this.forZones != null && !(this.forZones.isEmpty()); + } + + public boolean hasMatchingForNode(Predicate predicate) { + for (V1ForNodeBuilder item : forNodes) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingForZone(Predicate predicate) { + for (V1ForZoneBuilder item : forZones) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public int hashCode() { + return Objects.hash(forNodes, forZones); + } + + public A removeAllFromForNodes(Collection items) { + if (this.forNodes == null) { + return (A) this; + } + for (V1ForNode item : items) { + V1ForNodeBuilder builder = new V1ForNodeBuilder(item); + _visitables.get("forNodes").remove(builder); + this.forNodes.remove(builder); } return (A) this; } - public A addToForZones(V1ForZone... items) { + public A removeAllFromForZones(Collection items) { if (this.forZones == null) { - this.forZones = new ArrayList(); + return (A) this; } for (V1ForZone item : items) { V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - _visitables.get("forZones").add(builder); - this.forZones.add(builder); + _visitables.get("forZones").remove(builder); + this.forZones.remove(builder); } return (A) this; } - public A addAllToForZones(Collection items) { - if (this.forZones == null) { - this.forZones = new ArrayList(); + public A removeFromForNodes(V1ForNode... items) { + if (this.forNodes == null) { + return (A) this; } - for (V1ForZone item : items) { - V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - _visitables.get("forZones").add(builder); - this.forZones.add(builder); + for (V1ForNode item : items) { + V1ForNodeBuilder builder = new V1ForNodeBuilder(item); + _visitables.get("forNodes").remove(builder); + this.forNodes.remove(builder); } return (A) this; } @@ -310,14 +352,18 @@ public A removeFromForZones(V1ForZone... items) { return (A) this; } - public A removeAllFromForZones(Collection items) { - if (this.forZones == null) { + public A removeMatchingFromForNodes(Predicate predicate) { + if (forNodes == null) { return (A) this; } - for (V1ForZone item : items) { - V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - _visitables.get("forZones").remove(builder); - this.forZones.remove(builder); + Iterator each = forNodes.iterator(); + List visitables = _visitables.get("forNodes"); + while (each.hasNext()) { + V1ForNodeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -338,38 +384,86 @@ public A removeMatchingFromForZones(Predicate predicate) { return (A) this; } - public List buildForZones() { - return this.forZones != null ? build(forZones) : null; + public ForNodesNested setNewForNodeLike(int index,V1ForNode item) { + return new ForNodesNested(index, item); } - public V1ForZone buildForZone(int index) { - return this.forZones.get(index).build(); + public ForZonesNested setNewForZoneLike(int index,V1ForZone item) { + return new ForZonesNested(index, item); } - public V1ForZone buildFirstForZone() { - return this.forZones.get(0).build(); + public A setToForNodes(int index,V1ForNode item) { + if (this.forNodes == null) { + this.forNodes = new ArrayList(); + } + V1ForNodeBuilder builder = new V1ForNodeBuilder(item); + if (index < 0 || index >= forNodes.size()) { + _visitables.get("forNodes").add(builder); + forNodes.add(builder); + } else { + _visitables.get("forNodes").add(builder); + forNodes.set(index, builder); + } + return (A) this; } - public V1ForZone buildLastForZone() { - return this.forZones.get(forZones.size() - 1).build(); + public A setToForZones(int index,V1ForZone item) { + if (this.forZones == null) { + this.forZones = new ArrayList(); + } + V1ForZoneBuilder builder = new V1ForZoneBuilder(item); + if (index < 0 || index >= forZones.size()) { + _visitables.get("forZones").add(builder); + forZones.add(builder); + } else { + _visitables.get("forZones").add(builder); + forZones.set(index, builder); + } + return (A) this; } - public V1ForZone buildMatchingForZone(Predicate predicate) { - for (V1ForZoneBuilder item : forZones) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(forNodes == null) && !(forNodes.isEmpty())) { + sb.append("forNodes:"); + sb.append(forNodes); + sb.append(","); + } + if (!(forZones == null) && !(forZones.isEmpty())) { + sb.append("forZones:"); + sb.append(forZones); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingForZone(Predicate predicate) { - for (V1ForZoneBuilder item : forZones) { - if (predicate.test(item)) { - return true; + public A withForNodes(List forNodes) { + if (this.forNodes != null) { + this._visitables.get("forNodes").clear(); + } + if (forNodes != null) { + this.forNodes = new ArrayList(); + for (V1ForNode item : forNodes) { + this.addToForNodes(item); } + } else { + this.forNodes = null; + } + return (A) this; + } + + public A withForNodes(V1ForNode... forNodes) { + if (this.forNodes != null) { + this.forNodes.clear(); + _visitables.remove("forNodes"); + } + if (forNodes != null) { + for (V1ForNode item : forNodes) { + this.addToForNodes(item); } - return false; + } + return (A) this; } public A withForZones(List forZones) { @@ -399,106 +493,16 @@ public A withForZones(V1ForZone... forZones) { } return (A) this; } + public class ForNodesNested extends V1ForNodeFluent> implements Nested{ - public boolean hasForZones() { - return this.forZones != null && !(this.forZones.isEmpty()); - } - - public ForZonesNested addNewForZone() { - return new ForZonesNested(-1, null); - } - - public ForZonesNested addNewForZoneLike(V1ForZone item) { - return new ForZonesNested(-1, item); - } - - public ForZonesNested setNewForZoneLike(int index,V1ForZone item) { - return new ForZonesNested(index, item); - } - - public ForZonesNested editForZone(int index) { - if (index <= forZones.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "forZones")); - } - return this.setNewForZoneLike(index, this.buildForZone(index)); - } - - public ForZonesNested editFirstForZone() { - if (forZones.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "forZones")); - } - return this.setNewForZoneLike(0, this.buildForZone(0)); - } - - public ForZonesNested editLastForZone() { - int index = forZones.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "forZones")); - } - return this.setNewForZoneLike(index, this.buildForZone(index)); - } - - public ForZonesNested editMatchingForZone(Predicate predicate) { - int index = -1; - for (int i = 0;i < forZones.size();i++) { - if (predicate.test(forZones.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "forZones")); - } - return this.setNewForZoneLike(index, this.buildForZone(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1EndpointHintsFluent that = (V1EndpointHintsFluent) o; - if (!(Objects.equals(forNodes, that.forNodes))) { - return false; - } - if (!(Objects.equals(forZones, that.forZones))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(forNodes, forZones); - } + V1ForNodeBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(forNodes == null) && !(forNodes.isEmpty())) { - sb.append("forNodes:"); - sb.append(forNodes); - sb.append(","); - } - if (!(forZones == null) && !(forZones.isEmpty())) { - sb.append("forZones:"); - sb.append(forZones); - } - sb.append("}"); - return sb.toString(); - } - public class ForNodesNested extends V1ForNodeFluent> implements Nested{ ForNodesNested(int index,V1ForNode item) { this.index = index; this.builder = new V1ForNodeBuilder(this, item); } - V1ForNodeBuilder builder; - int index; - + public N and() { return (N) V1EndpointHintsFluent.this.setToForNodes(index, builder.build()); } @@ -507,16 +511,17 @@ public N endForNode() { return and(); } - } public class ForZonesNested extends V1ForZoneFluent> implements Nested{ + + V1ForZoneBuilder builder; + int index; + ForZonesNested(int index,V1ForZone item) { this.index = index; this.builder = new V1ForZoneBuilder(this, item); } - V1ForZoneBuilder builder; - int index; - + public N and() { return (N) V1EndpointHintsFluent.this.setToForZones(index, builder.build()); } @@ -525,7 +530,5 @@ public N endForZone() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java index fb177fcacc..2837a5386b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1EndpointSliceBuilder extends V1EndpointSliceFluent implements VisitableBuilder{ + + V1EndpointSliceFluent fluent; + public V1EndpointSliceBuilder() { this(new V1EndpointSlice()); } @@ -11,17 +14,16 @@ public V1EndpointSliceBuilder(V1EndpointSliceFluent fluent) { this(fluent, new V1EndpointSlice()); } - public V1EndpointSliceBuilder(V1EndpointSliceFluent fluent,V1EndpointSlice instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EndpointSliceBuilder(V1EndpointSlice instance) { this.fluent = this; this.copyInstance(instance); } - V1EndpointSliceFluent fluent; + public V1EndpointSliceBuilder(V1EndpointSliceFluent fluent,V1EndpointSlice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EndpointSlice build() { V1EndpointSlice buildable = new V1EndpointSlice(); buildable.setAddressType(fluent.getAddressType()); @@ -33,5 +35,4 @@ public V1EndpointSlice build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java index efcfc3bd9d..6e9d220457 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java @@ -1,106 +1,80 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1EndpointSliceFluent> extends BaseFluent{ - public V1EndpointSliceFluent() { - } - - public V1EndpointSliceFluent(V1EndpointSlice instance) { - this.copyInstance(instance); - } + private String addressType; private String apiVersion; private ArrayList endpoints; private String kind; private V1ObjectMetaBuilder metadata; private ArrayList ports; - - protected void copyInstance(V1EndpointSlice instance) { - instance = instance != null ? instance : new V1EndpointSlice(); - if (instance != null) { - this.withAddressType(instance.getAddressType()); - this.withApiVersion(instance.getApiVersion()); - this.withEndpoints(instance.getEndpoints()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withPorts(instance.getPorts()); - } - } - - public String getAddressType() { - return this.addressType; - } - - public A withAddressType(String addressType) { - this.addressType = addressType; - return (A) this; - } - - public boolean hasAddressType() { - return this.addressType != null; - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1EndpointSliceFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1EndpointSliceFluent(V1EndpointSlice instance) { + this.copyInstance(instance); } - - public A addToEndpoints(int index,V1Endpoint item) { + + public A addAllToEndpoints(Collection items) { if (this.endpoints == null) { this.endpoints = new ArrayList(); } - V1EndpointBuilder builder = new V1EndpointBuilder(item); - if (index < 0 || index >= endpoints.size()) { - _visitables.get("endpoints").add(builder); - endpoints.add(builder); - } else { + for (V1Endpoint item : items) { + V1EndpointBuilder builder = new V1EndpointBuilder(item); _visitables.get("endpoints").add(builder); - endpoints.add(index, builder); + this.endpoints.add(builder); } return (A) this; } - public A setToEndpoints(int index,V1Endpoint item) { - if (this.endpoints == null) { - this.endpoints = new ArrayList(); + public A addAllToPorts(Collection items) { + if (this.ports == null) { + this.ports = new ArrayList(); } - V1EndpointBuilder builder = new V1EndpointBuilder(item); - if (index < 0 || index >= endpoints.size()) { - _visitables.get("endpoints").add(builder); - endpoints.add(builder); - } else { - _visitables.get("endpoints").add(builder); - endpoints.set(index, builder); + for (DiscoveryV1EndpointPort item : items) { + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); } return (A) this; } + public EndpointsNested addNewEndpoint() { + return new EndpointsNested(-1, null); + } + + public EndpointsNested addNewEndpointLike(V1Endpoint item) { + return new EndpointsNested(-1, item); + } + + public PortsNested addNewPort() { + return new PortsNested(-1, null); + } + + public PortsNested addNewPortLike(DiscoveryV1EndpointPort item) { + return new PortsNested(-1, item); + } + public A addToEndpoints(V1Endpoint... items) { if (this.endpoints == null) { this.endpoints = new ArrayList(); @@ -113,74 +87,72 @@ public A addToEndpoints(V1Endpoint... items) { return (A) this; } - public A addAllToEndpoints(Collection items) { + public A addToEndpoints(int index,V1Endpoint item) { if (this.endpoints == null) { this.endpoints = new ArrayList(); } - for (V1Endpoint item : items) { - V1EndpointBuilder builder = new V1EndpointBuilder(item); + V1EndpointBuilder builder = new V1EndpointBuilder(item); + if (index < 0 || index >= endpoints.size()) { _visitables.get("endpoints").add(builder); - this.endpoints.add(builder); + endpoints.add(builder); + } else { + _visitables.get("endpoints").add(builder); + endpoints.add(index, builder); } return (A) this; } - public A removeFromEndpoints(V1Endpoint... items) { - if (this.endpoints == null) { - return (A) this; + public A addToPorts(DiscoveryV1EndpointPort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); } - for (V1Endpoint item : items) { - V1EndpointBuilder builder = new V1EndpointBuilder(item); - _visitables.get("endpoints").remove(builder); - this.endpoints.remove(builder); + for (DiscoveryV1EndpointPort item : items) { + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); } return (A) this; } - public A removeAllFromEndpoints(Collection items) { - if (this.endpoints == null) { - return (A) this; + public A addToPorts(int index,DiscoveryV1EndpointPort item) { + if (this.ports == null) { + this.ports = new ArrayList(); } - for (V1Endpoint item : items) { - V1EndpointBuilder builder = new V1EndpointBuilder(item); - _visitables.get("endpoints").remove(builder); - this.endpoints.remove(builder); + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); } return (A) this; } - public A removeMatchingFromEndpoints(Predicate predicate) { - if (endpoints == null) { - return (A) this; - } - Iterator each = endpoints.iterator(); - List visitables = _visitables.get("endpoints"); - while (each.hasNext()) { - V1EndpointBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1Endpoint buildEndpoint(int index) { + return this.endpoints.get(index).build(); } public List buildEndpoints() { return this.endpoints != null ? build(endpoints) : null; } - public V1Endpoint buildEndpoint(int index) { - return this.endpoints.get(index).build(); - } - public V1Endpoint buildFirstEndpoint() { return this.endpoints.get(0).build(); } + public DiscoveryV1EndpointPort buildFirstPort() { + return this.ports.get(0).build(); + } + public V1Endpoint buildLastEndpoint() { return this.endpoints.get(endpoints.size() - 1).build(); } + public DiscoveryV1EndpointPort buildLastPort() { + return this.ports.get(ports.size() - 1).build(); + } + public V1Endpoint buildMatchingEndpoint(Predicate predicate) { for (V1EndpointBuilder item : endpoints) { if (predicate.test(item)) { @@ -190,61 +162,41 @@ public V1Endpoint buildMatchingEndpoint(Predicate predicate) return null; } - public boolean hasMatchingEndpoint(Predicate predicate) { - for (V1EndpointBuilder item : endpoints) { + public DiscoveryV1EndpointPort buildMatchingPort(Predicate predicate) { + for (DiscoveryV1EndpointPortBuilder item : ports) { if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withEndpoints(List endpoints) { - if (this.endpoints != null) { - this._visitables.get("endpoints").clear(); - } - if (endpoints != null) { - this.endpoints = new ArrayList(); - for (V1Endpoint item : endpoints) { - this.addToEndpoints(item); + return item.build(); } - } else { - this.endpoints = null; - } - return (A) this; - } - - public A withEndpoints(V1Endpoint... endpoints) { - if (this.endpoints != null) { - this.endpoints.clear(); - _visitables.remove("endpoints"); - } - if (endpoints != null) { - for (V1Endpoint item : endpoints) { - this.addToEndpoints(item); } - } - return (A) this; + return null; } - public boolean hasEndpoints() { - return this.endpoints != null && !(this.endpoints.isEmpty()); + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public EndpointsNested addNewEndpoint() { - return new EndpointsNested(-1, null); + public DiscoveryV1EndpointPort buildPort(int index) { + return this.ports.get(index).build(); } - public EndpointsNested addNewEndpointLike(V1Endpoint item) { - return new EndpointsNested(-1, item); + public List buildPorts() { + return this.ports != null ? build(ports) : null; } - public EndpointsNested setNewEndpointLike(int index,V1Endpoint item) { - return new EndpointsNested(index, item); + protected void copyInstance(V1EndpointSlice instance) { + instance = instance != null ? instance : new V1EndpointSlice(); + if (instance != null) { + this.withAddressType(instance.getAddressType()); + this.withApiVersion(instance.getApiVersion()); + this.withEndpoints(instance.getEndpoints()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withPorts(instance.getPorts()); + } } public EndpointsNested editEndpoint(int index) { - if (index <= endpoints.size()) { + if (endpoints.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "endpoints")); } return this.setNewEndpointLike(index, this.buildEndpoint(index)); @@ -257,6 +209,13 @@ public EndpointsNested editFirstEndpoint() { return this.setNewEndpointLike(0, this.buildEndpoint(0)); } + public PortsNested editFirstPort() { + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); + } + public EndpointsNested editLastEndpoint() { int index = endpoints.size() - 1; if (index < 0) { @@ -265,6 +224,14 @@ public EndpointsNested editLastEndpoint() { return this.setNewEndpointLike(index, this.buildEndpoint(index)); } + public PortsNested editLastPort() { + int index = ports.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); + } + public EndpointsNested editMatchingEndpoint(Predicate predicate) { int index = -1; for (int i = 0;i < endpoints.size();i++) { @@ -279,109 +246,161 @@ public EndpointsNested editMatchingEndpoint(Predicate pred return this.setNewEndpointLike(index, this.buildEndpoint(index)); } - public String getKind() { - return this.kind; - } + public PortsNested editMatchingPort(Predicate predicate) { + int index = -1; + for (int i = 0;i < ports.size();i++) { + if (predicate.test(ports.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); + } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public boolean hasKind() { - return this.kind != null; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); + public PortsNested editPort(int index) { + if (ports.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); } - return (A) this; + return this.setNewPortLike(index, this.buildPort(index)); } - public boolean hasMetadata() { - return this.metadata != null; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EndpointSliceFluent that = (V1EndpointSliceFluent) o; + if (!(Objects.equals(addressType, that.addressType))) { + return false; + } + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(endpoints, that.endpoints))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(ports, that.ports))) { + return false; + } + return true; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public String getAddressType() { + return this.addressType; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + public String getApiVersion() { + return this.apiVersion; } - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + public String getKind() { + return this.kind; } - public MetadataNested editOrNewMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public boolean hasAddressType() { + return this.addressType != null; } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + public boolean hasApiVersion() { + return this.apiVersion != null; } - public A addToPorts(int index,DiscoveryV1EndpointPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); - } else { - _visitables.get("ports").add(builder); - ports.add(index, builder); - } - return (A) this; + public boolean hasEndpoints() { + return this.endpoints != null && !(this.endpoints.isEmpty()); } - public A setToPorts(int index,DiscoveryV1EndpointPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingEndpoint(Predicate predicate) { + for (V1EndpointBuilder item : endpoints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingPort(Predicate predicate) { + for (DiscoveryV1EndpointPortBuilder item : ports) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasPorts() { + return this.ports != null && !(this.ports.isEmpty()); + } + + public int hashCode() { + return Objects.hash(addressType, apiVersion, endpoints, kind, metadata, ports); + } + + public A removeAllFromEndpoints(Collection items) { + if (this.endpoints == null) { + return (A) this; } - DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); - } else { - _visitables.get("ports").add(builder); - ports.set(index, builder); + for (V1Endpoint item : items) { + V1EndpointBuilder builder = new V1EndpointBuilder(item); + _visitables.get("endpoints").remove(builder); + this.endpoints.remove(builder); } return (A) this; } - public A addToPorts(DiscoveryV1EndpointPort... items) { + public A removeAllFromPorts(Collection items) { if (this.ports == null) { - this.ports = new ArrayList(); + return (A) this; } for (DiscoveryV1EndpointPort item : items) { DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); } return (A) this; } - public A addAllToPorts(Collection items) { - if (this.ports == null) { - this.ports = new ArrayList(); + public A removeFromEndpoints(V1Endpoint... items) { + if (this.endpoints == null) { + return (A) this; } - for (DiscoveryV1EndpointPort item : items) { - DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); + for (V1Endpoint item : items) { + V1EndpointBuilder builder = new V1EndpointBuilder(item); + _visitables.get("endpoints").remove(builder); + this.endpoints.remove(builder); } return (A) this; } @@ -398,14 +417,18 @@ public A removeFromPorts(DiscoveryV1EndpointPort... items) { return (A) this; } - public A removeAllFromPorts(Collection items) { - if (this.ports == null) { + public A removeMatchingFromEndpoints(Predicate predicate) { + if (endpoints == null) { return (A) this; } - for (DiscoveryV1EndpointPort item : items) { - DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - _visitables.get("ports").remove(builder); - this.ports.remove(builder); + Iterator each = endpoints.iterator(); + List visitables = _visitables.get("endpoints"); + while (each.hasNext()) { + V1EndpointBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -426,156 +449,44 @@ public A removeMatchingFromPorts(Predicate predi return (A) this; } - public List buildPorts() { - return this.ports != null ? build(ports) : null; - } - - public DiscoveryV1EndpointPort buildPort(int index) { - return this.ports.get(index).build(); - } - - public DiscoveryV1EndpointPort buildFirstPort() { - return this.ports.get(0).build(); - } - - public DiscoveryV1EndpointPort buildLastPort() { - return this.ports.get(ports.size() - 1).build(); - } - - public DiscoveryV1EndpointPort buildMatchingPort(Predicate predicate) { - for (DiscoveryV1EndpointPortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public EndpointsNested setNewEndpointLike(int index,V1Endpoint item) { + return new EndpointsNested(index, item); } - public boolean hasMatchingPort(Predicate predicate) { - for (DiscoveryV1EndpointPortBuilder item : ports) { - if (predicate.test(item)) { - return true; - } - } - return false; + public PortsNested setNewPortLike(int index,DiscoveryV1EndpointPort item) { + return new PortsNested(index, item); } - public A withPorts(List ports) { - if (this.ports != null) { - this._visitables.get("ports").clear(); + public A setToEndpoints(int index,V1Endpoint item) { + if (this.endpoints == null) { + this.endpoints = new ArrayList(); } - if (ports != null) { - this.ports = new ArrayList(); - for (DiscoveryV1EndpointPort item : ports) { - this.addToPorts(item); - } + V1EndpointBuilder builder = new V1EndpointBuilder(item); + if (index < 0 || index >= endpoints.size()) { + _visitables.get("endpoints").add(builder); + endpoints.add(builder); } else { - this.ports = null; + _visitables.get("endpoints").add(builder); + endpoints.set(index, builder); } return (A) this; } - public A withPorts(DiscoveryV1EndpointPort... ports) { - if (this.ports != null) { - this.ports.clear(); - _visitables.remove("ports"); + public A setToPorts(int index,DiscoveryV1EndpointPort item) { + if (this.ports == null) { + this.ports = new ArrayList(); } - if (ports != null) { - for (DiscoveryV1EndpointPort item : ports) { - this.addToPorts(item); - } + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); } return (A) this; } - public boolean hasPorts() { - return this.ports != null && !(this.ports.isEmpty()); - } - - public PortsNested addNewPort() { - return new PortsNested(-1, null); - } - - public PortsNested addNewPortLike(DiscoveryV1EndpointPort item) { - return new PortsNested(-1, item); - } - - public PortsNested setNewPortLike(int index,DiscoveryV1EndpointPort item) { - return new PortsNested(index, item); - } - - public PortsNested editPort(int index) { - if (index <= ports.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); - } - return this.setNewPortLike(index, this.buildPort(index)); - } - - public PortsNested editFirstPort() { - if (ports.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); - } - return this.setNewPortLike(0, this.buildPort(0)); - } - - public PortsNested editLastPort() { - int index = ports.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); - } - return this.setNewPortLike(index, this.buildPort(index)); - } - - public PortsNested editMatchingPort(Predicate predicate) { - int index = -1; - for (int i = 0;i < ports.size();i++) { - if (predicate.test(ports.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ports")); - } - return this.setNewPortLike(index, this.buildPort(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1EndpointSliceFluent that = (V1EndpointSliceFluent) o; - if (!(Objects.equals(addressType, that.addressType))) { - return false; - } - if (!(Objects.equals(apiVersion, that.apiVersion))) { - return false; - } - if (!(Objects.equals(endpoints, that.endpoints))) { - return false; - } - if (!(Objects.equals(kind, that.kind))) { - return false; - } - if (!(Objects.equals(metadata, that.metadata))) { - return false; - } - if (!(Objects.equals(ports, that.ports))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(addressType, apiVersion, endpoints, kind, metadata, ports); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -611,14 +522,107 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAddressType(String addressType) { + this.addressType = addressType; + return (A) this; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withEndpoints(List endpoints) { + if (this.endpoints != null) { + this._visitables.get("endpoints").clear(); + } + if (endpoints != null) { + this.endpoints = new ArrayList(); + for (V1Endpoint item : endpoints) { + this.addToEndpoints(item); + } + } else { + this.endpoints = null; + } + return (A) this; + } + + public A withEndpoints(V1Endpoint... endpoints) { + if (this.endpoints != null) { + this.endpoints.clear(); + _visitables.remove("endpoints"); + } + if (endpoints != null) { + for (V1Endpoint item : endpoints) { + this.addToEndpoints(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public A withPorts(List ports) { + if (this.ports != null) { + this._visitables.get("ports").clear(); + } + if (ports != null) { + this.ports = new ArrayList(); + for (DiscoveryV1EndpointPort item : ports) { + this.addToPorts(item); + } + } else { + this.ports = null; + } + return (A) this; + } + + public A withPorts(DiscoveryV1EndpointPort... ports) { + if (this.ports != null) { + this.ports.clear(); + _visitables.remove("ports"); + } + if (ports != null) { + for (DiscoveryV1EndpointPort item : ports) { + this.addToPorts(item); + } + } + return (A) this; + } public class EndpointsNested extends V1EndpointFluent> implements Nested{ + + V1EndpointBuilder builder; + int index; + EndpointsNested(int index,V1Endpoint item) { this.index = index; this.builder = new V1EndpointBuilder(this, item); } - V1EndpointBuilder builder; - int index; - + public N and() { return (N) V1EndpointSliceFluent.this.setToEndpoints(index, builder.build()); } @@ -627,14 +631,15 @@ public N endEndpoint() { return and(); } - } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1EndpointSliceFluent.this.withMetadata(builder.build()); } @@ -643,16 +648,17 @@ public N endMetadata() { return and(); } - } public class PortsNested extends DiscoveryV1EndpointPortFluent> implements Nested{ + + DiscoveryV1EndpointPortBuilder builder; + int index; + PortsNested(int index,DiscoveryV1EndpointPort item) { this.index = index; this.builder = new DiscoveryV1EndpointPortBuilder(this, item); } - DiscoveryV1EndpointPortBuilder builder; - int index; - + public N and() { return (N) V1EndpointSliceFluent.this.setToPorts(index, builder.build()); } @@ -661,7 +667,5 @@ public N endPort() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java index e438476d3f..1637aab82c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1EndpointSliceListBuilder extends V1EndpointSliceListFluent implements VisitableBuilder{ + + V1EndpointSliceListFluent fluent; + public V1EndpointSliceListBuilder() { this(new V1EndpointSliceList()); } @@ -11,17 +14,16 @@ public V1EndpointSliceListBuilder(V1EndpointSliceListFluent fluent) { this(fluent, new V1EndpointSliceList()); } - public V1EndpointSliceListBuilder(V1EndpointSliceListFluent fluent,V1EndpointSliceList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EndpointSliceListBuilder(V1EndpointSliceList instance) { this.fluent = this; this.copyInstance(instance); } - V1EndpointSliceListFluent fluent; + public V1EndpointSliceListBuilder(V1EndpointSliceListFluent fluent,V1EndpointSliceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EndpointSliceList build() { V1EndpointSliceList buildable = new V1EndpointSliceList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1EndpointSliceList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java index f45dfc9362..f22b4b3e2c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1EndpointSliceListFluent> extends BaseFluent{ - public V1EndpointSliceListFluent() { - } - - public V1EndpointSliceListFluent(V1EndpointSliceList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1EndpointSliceList instance) { - instance = instance != null ? instance : new V1EndpointSliceList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1EndpointSliceListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1EndpointSliceListFluent(V1EndpointSliceList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1EndpointSlice item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1EndpointSlice item : items) { + V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1EndpointSlice item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1EndpointSlice item) { + return new ItemsNested(-1, item); } public A addToItems(V1EndpointSlice... items) { @@ -96,68 +65,31 @@ public A addToItems(V1EndpointSlice... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1EndpointSlice item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1EndpointSlice item : items) { - V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); + V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1EndpointSlice... items) { - if (this.items == null) { - return (A) this; - } - for (V1EndpointSlice item : items) { - V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1EndpointSlice item : items) { - V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1EndpointSliceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1EndpointSlice buildFirstItem() { + return this.items.get(0).build(); } public V1EndpointSlice buildItem(int index) { return this.items.get(index).build(); } - public V1EndpointSlice buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1EndpointSlice buildLastItem() { @@ -173,73 +105,34 @@ public V1EndpointSlice buildMatchingItem(Predicate predi return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1EndpointSliceBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1EndpointSlice item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1EndpointSliceList instance) { + instance = instance != null ? instance : new V1EndpointSliceList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1EndpointSlice... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1EndpointSlice item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1EndpointSlice item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1EndpointSlice item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predica return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1EndpointSliceBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1EndpointSlice item : items) { + V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1EndpointSlice... items) { + if (this.items == null) { + return (A) this; + } + for (V1EndpointSlice item : items) { + V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1EndpointSliceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1EndpointSlice item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1EndpointSlice item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1EndpointSlice item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1EndpointSlice... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1EndpointSlice item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1EndpointSliceFluent> implements Nested{ + + V1EndpointSliceBuilder builder; + int index; + ItemsNested(int index,V1EndpointSlice item) { this.index = index; this.builder = new V1EndpointSliceBuilder(this, item); } - V1EndpointSliceBuilder builder; - int index; - + public N and() { return (N) V1EndpointSliceListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1EndpointSliceListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java index 939fa0e0f3..3e37984d4e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1EndpointSubsetBuilder extends V1EndpointSubsetFluent implements VisitableBuilder{ + + V1EndpointSubsetFluent fluent; + public V1EndpointSubsetBuilder() { this(new V1EndpointSubset()); } @@ -11,17 +14,16 @@ public V1EndpointSubsetBuilder(V1EndpointSubsetFluent fluent) { this(fluent, new V1EndpointSubset()); } - public V1EndpointSubsetBuilder(V1EndpointSubsetFluent fluent,V1EndpointSubset instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EndpointSubsetBuilder(V1EndpointSubset instance) { this.fluent = this; this.copyInstance(instance); } - V1EndpointSubsetFluent fluent; + public V1EndpointSubsetBuilder(V1EndpointSubsetFluent fluent,V1EndpointSubset instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EndpointSubset build() { V1EndpointSubset buildable = new V1EndpointSubset(); buildable.setAddresses(fluent.buildAddresses()); @@ -30,5 +32,4 @@ public V1EndpointSubset build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java index 90825de178..166cf180a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java @@ -1,73 +1,96 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1EndpointSubsetFluent> extends BaseFluent{ + + private ArrayList addresses; + private ArrayList notReadyAddresses; + private ArrayList ports; + public V1EndpointSubsetFluent() { } public V1EndpointSubsetFluent(V1EndpointSubset instance) { this.copyInstance(instance); } - private ArrayList addresses; - private ArrayList notReadyAddresses; - private ArrayList ports; - - protected void copyInstance(V1EndpointSubset instance) { - instance = instance != null ? instance : new V1EndpointSubset(); - if (instance != null) { - this.withAddresses(instance.getAddresses()); - this.withNotReadyAddresses(instance.getNotReadyAddresses()); - this.withPorts(instance.getPorts()); - } - } - - public A addToAddresses(int index,V1EndpointAddress item) { + + public A addAllToAddresses(Collection items) { if (this.addresses == null) { this.addresses = new ArrayList(); } - V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - if (index < 0 || index >= addresses.size()) { - _visitables.get("addresses").add(builder); - addresses.add(builder); - } else { + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); _visitables.get("addresses").add(builder); - addresses.add(index, builder); + this.addresses.add(builder); } return (A) this; } - public A setToAddresses(int index,V1EndpointAddress item) { - if (this.addresses == null) { - this.addresses = new ArrayList(); + public A addAllToNotReadyAddresses(Collection items) { + if (this.notReadyAddresses == null) { + this.notReadyAddresses = new ArrayList(); } - V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - if (index < 0 || index >= addresses.size()) { - _visitables.get("addresses").add(builder); - addresses.add(builder); - } else { - _visitables.get("addresses").add(builder); - addresses.set(index, builder); + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + _visitables.get("notReadyAddresses").add(builder); + this.notReadyAddresses.add(builder); + } + return (A) this; + } + + public A addAllToPorts(Collection items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (CoreV1EndpointPort item : items) { + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); } return (A) this; } + public AddressesNested addNewAddress() { + return new AddressesNested(-1, null); + } + + public AddressesNested addNewAddressLike(V1EndpointAddress item) { + return new AddressesNested(-1, item); + } + + public NotReadyAddressesNested addNewNotReadyAddress() { + return new NotReadyAddressesNested(-1, null); + } + + public NotReadyAddressesNested addNewNotReadyAddressLike(V1EndpointAddress item) { + return new NotReadyAddressesNested(-1, item); + } + + public PortsNested addNewPort() { + return new PortsNested(-1, null); + } + + public PortsNested addNewPortLike(CoreV1EndpointPort item) { + return new PortsNested(-1, item); + } + public A addToAddresses(V1EndpointAddress... items) { if (this.addresses == null) { this.addresses = new ArrayList(); @@ -80,74 +103,107 @@ public A addToAddresses(V1EndpointAddress... items) { return (A) this; } - public A addAllToAddresses(Collection items) { + public A addToAddresses(int index,V1EndpointAddress item) { if (this.addresses == null) { this.addresses = new ArrayList(); } - for (V1EndpointAddress item : items) { - V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + if (index < 0 || index >= addresses.size()) { _visitables.get("addresses").add(builder); - this.addresses.add(builder); + addresses.add(builder); + } else { + _visitables.get("addresses").add(builder); + addresses.add(index, builder); } return (A) this; } - public A removeFromAddresses(V1EndpointAddress... items) { - if (this.addresses == null) { - return (A) this; + public A addToNotReadyAddresses(V1EndpointAddress... items) { + if (this.notReadyAddresses == null) { + this.notReadyAddresses = new ArrayList(); } for (V1EndpointAddress item : items) { V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables.get("addresses").remove(builder); - this.addresses.remove(builder); + _visitables.get("notReadyAddresses").add(builder); + this.notReadyAddresses.add(builder); } return (A) this; } - public A removeAllFromAddresses(Collection items) { - if (this.addresses == null) { - return (A) this; + public A addToNotReadyAddresses(int index,V1EndpointAddress item) { + if (this.notReadyAddresses == null) { + this.notReadyAddresses = new ArrayList(); } - for (V1EndpointAddress item : items) { - V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables.get("addresses").remove(builder); - this.addresses.remove(builder); + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + if (index < 0 || index >= notReadyAddresses.size()) { + _visitables.get("notReadyAddresses").add(builder); + notReadyAddresses.add(builder); + } else { + _visitables.get("notReadyAddresses").add(builder); + notReadyAddresses.add(index, builder); } return (A) this; } - public A removeMatchingFromAddresses(Predicate predicate) { - if (addresses == null) { - return (A) this; + public A addToPorts(CoreV1EndpointPort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); } - Iterator each = addresses.iterator(); - List visitables = _visitables.get("addresses"); - while (each.hasNext()) { - V1EndpointAddressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (CoreV1EndpointPort item : items) { + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); } return (A) this; } - public List buildAddresses() { - return this.addresses != null ? build(addresses) : null; + public A addToPorts(int index,CoreV1EndpointPort item) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } + return (A) this; } public V1EndpointAddress buildAddress(int index) { return this.addresses.get(index).build(); } + public List buildAddresses() { + return this.addresses != null ? build(addresses) : null; + } + public V1EndpointAddress buildFirstAddress() { return this.addresses.get(0).build(); } + public V1EndpointAddress buildFirstNotReadyAddress() { + return this.notReadyAddresses.get(0).build(); + } + + public CoreV1EndpointPort buildFirstPort() { + return this.ports.get(0).build(); + } + public V1EndpointAddress buildLastAddress() { return this.addresses.get(addresses.size() - 1).build(); } + public V1EndpointAddress buildLastNotReadyAddress() { + return this.notReadyAddresses.get(notReadyAddresses.size() - 1).build(); + } + + public CoreV1EndpointPort buildLastPort() { + return this.ports.get(ports.size() - 1).build(); + } + public V1EndpointAddress buildMatchingAddress(Predicate predicate) { for (V1EndpointAddressBuilder item : addresses) { if (predicate.test(item)) { @@ -157,61 +213,51 @@ public V1EndpointAddress buildMatchingAddress(Predicate predicate) { - for (V1EndpointAddressBuilder item : addresses) { + public V1EndpointAddress buildMatchingNotReadyAddress(Predicate predicate) { + for (V1EndpointAddressBuilder item : notReadyAddresses) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withAddresses(List addresses) { - if (this.addresses != null) { - this._visitables.get("addresses").clear(); - } - if (addresses != null) { - this.addresses = new ArrayList(); - for (V1EndpointAddress item : addresses) { - this.addToAddresses(item); + public CoreV1EndpointPort buildMatchingPort(Predicate predicate) { + for (CoreV1EndpointPortBuilder item : ports) { + if (predicate.test(item)) { + return item.build(); } - } else { - this.addresses = null; - } - return (A) this; + } + return null; } - public A withAddresses(V1EndpointAddress... addresses) { - if (this.addresses != null) { - this.addresses.clear(); - _visitables.remove("addresses"); - } - if (addresses != null) { - for (V1EndpointAddress item : addresses) { - this.addToAddresses(item); - } - } - return (A) this; + public V1EndpointAddress buildNotReadyAddress(int index) { + return this.notReadyAddresses.get(index).build(); } - public boolean hasAddresses() { - return this.addresses != null && !(this.addresses.isEmpty()); + public List buildNotReadyAddresses() { + return this.notReadyAddresses != null ? build(notReadyAddresses) : null; } - public AddressesNested addNewAddress() { - return new AddressesNested(-1, null); + public CoreV1EndpointPort buildPort(int index) { + return this.ports.get(index).build(); } - public AddressesNested addNewAddressLike(V1EndpointAddress item) { - return new AddressesNested(-1, item); + public List buildPorts() { + return this.ports != null ? build(ports) : null; } - public AddressesNested setNewAddressLike(int index,V1EndpointAddress item) { - return new AddressesNested(index, item); + protected void copyInstance(V1EndpointSubset instance) { + instance = instance != null ? instance : new V1EndpointSubset(); + if (instance != null) { + this.withAddresses(instance.getAddresses()); + this.withNotReadyAddresses(instance.getNotReadyAddresses()); + this.withPorts(instance.getPorts()); + } } public AddressesNested editAddress(int index) { - if (index <= addresses.size()) { + if (addresses.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "addresses")); } return this.setNewAddressLike(index, this.buildAddress(index)); @@ -224,12 +270,42 @@ public AddressesNested editFirstAddress() { return this.setNewAddressLike(0, this.buildAddress(0)); } - public AddressesNested editLastAddress() { - int index = addresses.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "addresses")); + public NotReadyAddressesNested editFirstNotReadyAddress() { + if (notReadyAddresses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "notReadyAddresses")); } - return this.setNewAddressLike(index, this.buildAddress(index)); + return this.setNewNotReadyAddressLike(0, this.buildNotReadyAddress(0)); + } + + public PortsNested editFirstPort() { + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); + } + + public AddressesNested editLastAddress() { + int index = addresses.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "addresses")); + } + return this.setNewAddressLike(index, this.buildAddress(index)); + } + + public NotReadyAddressesNested editLastNotReadyAddress() { + int index = notReadyAddresses.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "notReadyAddresses")); + } + return this.setNewNotReadyAddressLike(index, this.buildNotReadyAddress(index)); + } + + public PortsNested editLastPort() { + int index = ports.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } public AddressesNested editMatchingAddress(Predicate predicate) { @@ -246,73 +322,163 @@ public AddressesNested editMatchingAddress(Predicate editMatchingNotReadyAddress(Predicate predicate) { + int index = -1; + for (int i = 0;i < notReadyAddresses.size();i++) { + if (predicate.test(notReadyAddresses.get(i))) { + index = i; + break; + } } - V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - if (index < 0 || index >= notReadyAddresses.size()) { - _visitables.get("notReadyAddresses").add(builder); - notReadyAddresses.add(builder); - } else { - _visitables.get("notReadyAddresses").add(builder); - notReadyAddresses.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "notReadyAddresses")); } - return (A) this; + return this.setNewNotReadyAddressLike(index, this.buildNotReadyAddress(index)); } - public A setToNotReadyAddresses(int index,V1EndpointAddress item) { - if (this.notReadyAddresses == null) { - this.notReadyAddresses = new ArrayList(); + public PortsNested editMatchingPort(Predicate predicate) { + int index = -1; + for (int i = 0;i < ports.size();i++) { + if (predicate.test(ports.get(i))) { + index = i; + break; + } } - V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - if (index < 0 || index >= notReadyAddresses.size()) { - _visitables.get("notReadyAddresses").add(builder); - notReadyAddresses.add(builder); - } else { - _visitables.get("notReadyAddresses").add(builder); - notReadyAddresses.set(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ports")); } - return (A) this; + return this.setNewPortLike(index, this.buildPort(index)); } - public A addToNotReadyAddresses(V1EndpointAddress... items) { - if (this.notReadyAddresses == null) { - this.notReadyAddresses = new ArrayList(); + public NotReadyAddressesNested editNotReadyAddress(int index) { + if (notReadyAddresses.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "notReadyAddresses")); + } + return this.setNewNotReadyAddressLike(index, this.buildNotReadyAddress(index)); + } + + public PortsNested editPort(int index) { + if (ports.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EndpointSubsetFluent that = (V1EndpointSubsetFluent) o; + if (!(Objects.equals(addresses, that.addresses))) { + return false; + } + if (!(Objects.equals(notReadyAddresses, that.notReadyAddresses))) { + return false; + } + if (!(Objects.equals(ports, that.ports))) { + return false; + } + return true; + } + + public boolean hasAddresses() { + return this.addresses != null && !(this.addresses.isEmpty()); + } + + public boolean hasMatchingAddress(Predicate predicate) { + for (V1EndpointAddressBuilder item : addresses) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingNotReadyAddress(Predicate predicate) { + for (V1EndpointAddressBuilder item : notReadyAddresses) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingPort(Predicate predicate) { + for (CoreV1EndpointPortBuilder item : ports) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNotReadyAddresses() { + return this.notReadyAddresses != null && !(this.notReadyAddresses.isEmpty()); + } + + public boolean hasPorts() { + return this.ports != null && !(this.ports.isEmpty()); + } + + public int hashCode() { + return Objects.hash(addresses, notReadyAddresses, ports); + } + + public A removeAllFromAddresses(Collection items) { + if (this.addresses == null) { + return (A) this; } for (V1EndpointAddress item : items) { V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables.get("notReadyAddresses").add(builder); - this.notReadyAddresses.add(builder); + _visitables.get("addresses").remove(builder); + this.addresses.remove(builder); } return (A) this; } - public A addAllToNotReadyAddresses(Collection items) { + public A removeAllFromNotReadyAddresses(Collection items) { if (this.notReadyAddresses == null) { - this.notReadyAddresses = new ArrayList(); + return (A) this; } for (V1EndpointAddress item : items) { V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables.get("notReadyAddresses").add(builder); - this.notReadyAddresses.add(builder); + _visitables.get("notReadyAddresses").remove(builder); + this.notReadyAddresses.remove(builder); } return (A) this; } - public A removeFromNotReadyAddresses(V1EndpointAddress... items) { - if (this.notReadyAddresses == null) { + public A removeAllFromPorts(Collection items) { + if (this.ports == null) { + return (A) this; + } + for (CoreV1EndpointPort item : items) { + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; + } + + public A removeFromAddresses(V1EndpointAddress... items) { + if (this.addresses == null) { return (A) this; } for (V1EndpointAddress item : items) { V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables.get("notReadyAddresses").remove(builder); - this.notReadyAddresses.remove(builder); + _visitables.get("addresses").remove(builder); + this.addresses.remove(builder); } return (A) this; } - public A removeAllFromNotReadyAddresses(Collection items) { + public A removeFromNotReadyAddresses(V1EndpointAddress... items) { if (this.notReadyAddresses == null) { return (A) this; } @@ -324,12 +490,24 @@ public A removeAllFromNotReadyAddresses(Collection items) { return (A) this; } - public A removeMatchingFromNotReadyAddresses(Predicate predicate) { - if (notReadyAddresses == null) { + public A removeFromPorts(CoreV1EndpointPort... items) { + if (this.ports == null) { return (A) this; } - Iterator each = notReadyAddresses.iterator(); - List visitables = _visitables.get("notReadyAddresses"); + for (CoreV1EndpointPort item : items) { + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromAddresses(Predicate predicate) { + if (addresses == null) { + return (A) this; + } + Iterator each = addresses.iterator(); + List visitables = _visitables.get("addresses"); while (each.hasNext()) { V1EndpointAddressBuilder builder = each.next(); if (predicate.test(builder)) { @@ -340,131 +518,76 @@ public A removeMatchingFromNotReadyAddresses(Predicate return (A) this; } - public List buildNotReadyAddresses() { - return this.notReadyAddresses != null ? build(notReadyAddresses) : null; - } - - public V1EndpointAddress buildNotReadyAddress(int index) { - return this.notReadyAddresses.get(index).build(); - } - - public V1EndpointAddress buildFirstNotReadyAddress() { - return this.notReadyAddresses.get(0).build(); - } - - public V1EndpointAddress buildLastNotReadyAddress() { - return this.notReadyAddresses.get(notReadyAddresses.size() - 1).build(); - } - - public V1EndpointAddress buildMatchingNotReadyAddress(Predicate predicate) { - for (V1EndpointAddressBuilder item : notReadyAddresses) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingNotReadyAddress(Predicate predicate) { - for (V1EndpointAddressBuilder item : notReadyAddresses) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withNotReadyAddresses(List notReadyAddresses) { - if (this.notReadyAddresses != null) { - this._visitables.get("notReadyAddresses").clear(); + public A removeMatchingFromNotReadyAddresses(Predicate predicate) { + if (notReadyAddresses == null) { + return (A) this; } - if (notReadyAddresses != null) { - this.notReadyAddresses = new ArrayList(); - for (V1EndpointAddress item : notReadyAddresses) { - this.addToNotReadyAddresses(item); + Iterator each = notReadyAddresses.iterator(); + List visitables = _visitables.get("notReadyAddresses"); + while (each.hasNext()) { + V1EndpointAddressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } else { - this.notReadyAddresses = null; } return (A) this; } - public A withNotReadyAddresses(V1EndpointAddress... notReadyAddresses) { - if (this.notReadyAddresses != null) { - this.notReadyAddresses.clear(); - _visitables.remove("notReadyAddresses"); + public A removeMatchingFromPorts(Predicate predicate) { + if (ports == null) { + return (A) this; } - if (notReadyAddresses != null) { - for (V1EndpointAddress item : notReadyAddresses) { - this.addToNotReadyAddresses(item); - } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); + while (each.hasNext()) { + CoreV1EndpointPortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasNotReadyAddresses() { - return this.notReadyAddresses != null && !(this.notReadyAddresses.isEmpty()); - } - - public NotReadyAddressesNested addNewNotReadyAddress() { - return new NotReadyAddressesNested(-1, null); - } - - public NotReadyAddressesNested addNewNotReadyAddressLike(V1EndpointAddress item) { - return new NotReadyAddressesNested(-1, item); + public AddressesNested setNewAddressLike(int index,V1EndpointAddress item) { + return new AddressesNested(index, item); } public NotReadyAddressesNested setNewNotReadyAddressLike(int index,V1EndpointAddress item) { return new NotReadyAddressesNested(index, item); } - public NotReadyAddressesNested editNotReadyAddress(int index) { - if (index <= notReadyAddresses.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "notReadyAddresses")); - } - return this.setNewNotReadyAddressLike(index, this.buildNotReadyAddress(index)); - } - - public NotReadyAddressesNested editFirstNotReadyAddress() { - if (notReadyAddresses.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "notReadyAddresses")); - } - return this.setNewNotReadyAddressLike(0, this.buildNotReadyAddress(0)); - } - - public NotReadyAddressesNested editLastNotReadyAddress() { - int index = notReadyAddresses.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "notReadyAddresses")); - } - return this.setNewNotReadyAddressLike(index, this.buildNotReadyAddress(index)); + public PortsNested setNewPortLike(int index,CoreV1EndpointPort item) { + return new PortsNested(index, item); } - public NotReadyAddressesNested editMatchingNotReadyAddress(Predicate predicate) { - int index = -1; - for (int i = 0;i < notReadyAddresses.size();i++) { - if (predicate.test(notReadyAddresses.get(i))) { - index = i; - break; - } + public A setToAddresses(int index,V1EndpointAddress item) { + if (this.addresses == null) { + this.addresses = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "notReadyAddresses")); + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + if (index < 0 || index >= addresses.size()) { + _visitables.get("addresses").add(builder); + addresses.add(builder); + } else { + _visitables.get("addresses").add(builder); + addresses.set(index, builder); } - return this.setNewNotReadyAddressLike(index, this.buildNotReadyAddress(index)); + return (A) this; } - public A addToPorts(int index,CoreV1EndpointPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); + public A setToNotReadyAddresses(int index,V1EndpointAddress item) { + if (this.notReadyAddresses == null) { + this.notReadyAddresses = new ArrayList(); } - CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + if (index < 0 || index >= notReadyAddresses.size()) { + _visitables.get("notReadyAddresses").add(builder); + notReadyAddresses.add(builder); } else { - _visitables.get("ports").add(builder); - ports.add(index, builder); + _visitables.get("notReadyAddresses").add(builder); + notReadyAddresses.set(index, builder); } return (A) this; } @@ -484,102 +607,81 @@ public A setToPorts(int index,CoreV1EndpointPort item) { return (A) this; } - public A addToPorts(CoreV1EndpointPort... items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (CoreV1EndpointPort item : items) { - CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(addresses == null) && !(addresses.isEmpty())) { + sb.append("addresses:"); + sb.append(addresses); + sb.append(","); } - return (A) this; - } - - public A addAllToPorts(Collection items) { - if (this.ports == null) { - this.ports = new ArrayList(); + if (!(notReadyAddresses == null) && !(notReadyAddresses.isEmpty())) { + sb.append("notReadyAddresses:"); + sb.append(notReadyAddresses); + sb.append(","); } - for (CoreV1EndpointPort item : items) { - CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); + if (!(ports == null) && !(ports.isEmpty())) { + sb.append("ports:"); + sb.append(ports); } - return (A) this; + sb.append("}"); + return sb.toString(); } - public A removeFromPorts(CoreV1EndpointPort... items) { - if (this.ports == null) { - return (A) this; + public A withAddresses(List addresses) { + if (this.addresses != null) { + this._visitables.get("addresses").clear(); } - for (CoreV1EndpointPort item : items) { - CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - _visitables.get("ports").remove(builder); - this.ports.remove(builder); + if (addresses != null) { + this.addresses = new ArrayList(); + for (V1EndpointAddress item : addresses) { + this.addToAddresses(item); + } + } else { + this.addresses = null; } return (A) this; } - public A removeAllFromPorts(Collection items) { - if (this.ports == null) { - return (A) this; + public A withAddresses(V1EndpointAddress... addresses) { + if (this.addresses != null) { + this.addresses.clear(); + _visitables.remove("addresses"); } - for (CoreV1EndpointPort item : items) { - CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - _visitables.get("ports").remove(builder); - this.ports.remove(builder); + if (addresses != null) { + for (V1EndpointAddress item : addresses) { + this.addToAddresses(item); + } } return (A) this; } - public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) { - return (A) this; + public A withNotReadyAddresses(List notReadyAddresses) { + if (this.notReadyAddresses != null) { + this._visitables.get("notReadyAddresses").clear(); } - Iterator each = ports.iterator(); - List visitables = _visitables.get("ports"); - while (each.hasNext()) { - CoreV1EndpointPortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + if (notReadyAddresses != null) { + this.notReadyAddresses = new ArrayList(); + for (V1EndpointAddress item : notReadyAddresses) { + this.addToNotReadyAddresses(item); } + } else { + this.notReadyAddresses = null; } return (A) this; } - public List buildPorts() { - return this.ports != null ? build(ports) : null; - } - - public CoreV1EndpointPort buildPort(int index) { - return this.ports.get(index).build(); - } - - public CoreV1EndpointPort buildFirstPort() { - return this.ports.get(0).build(); - } - - public CoreV1EndpointPort buildLastPort() { - return this.ports.get(ports.size() - 1).build(); - } - - public CoreV1EndpointPort buildMatchingPort(Predicate predicate) { - for (CoreV1EndpointPortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingPort(Predicate predicate) { - for (CoreV1EndpointPortBuilder item : ports) { - if (predicate.test(item)) { - return true; - } + public A withNotReadyAddresses(V1EndpointAddress... notReadyAddresses) { + if (this.notReadyAddresses != null) { + this.notReadyAddresses.clear(); + _visitables.remove("notReadyAddresses"); + } + if (notReadyAddresses != null) { + for (V1EndpointAddress item : notReadyAddresses) { + this.addToNotReadyAddresses(item); } - return false; + } + return (A) this; } public A withPorts(List ports) { @@ -609,114 +711,16 @@ public A withPorts(CoreV1EndpointPort... ports) { } return (A) this; } + public class AddressesNested extends V1EndpointAddressFluent> implements Nested{ - public boolean hasPorts() { - return this.ports != null && !(this.ports.isEmpty()); - } - - public PortsNested addNewPort() { - return new PortsNested(-1, null); - } - - public PortsNested addNewPortLike(CoreV1EndpointPort item) { - return new PortsNested(-1, item); - } - - public PortsNested setNewPortLike(int index,CoreV1EndpointPort item) { - return new PortsNested(index, item); - } - - public PortsNested editPort(int index) { - if (index <= ports.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); - } - return this.setNewPortLike(index, this.buildPort(index)); - } - - public PortsNested editFirstPort() { - if (ports.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); - } - return this.setNewPortLike(0, this.buildPort(0)); - } - - public PortsNested editLastPort() { - int index = ports.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); - } - return this.setNewPortLike(index, this.buildPort(index)); - } - - public PortsNested editMatchingPort(Predicate predicate) { - int index = -1; - for (int i = 0;i < ports.size();i++) { - if (predicate.test(ports.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ports")); - } - return this.setNewPortLike(index, this.buildPort(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1EndpointSubsetFluent that = (V1EndpointSubsetFluent) o; - if (!(Objects.equals(addresses, that.addresses))) { - return false; - } - if (!(Objects.equals(notReadyAddresses, that.notReadyAddresses))) { - return false; - } - if (!(Objects.equals(ports, that.ports))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(addresses, notReadyAddresses, ports); - } + V1EndpointAddressBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(addresses == null) && !(addresses.isEmpty())) { - sb.append("addresses:"); - sb.append(addresses); - sb.append(","); - } - if (!(notReadyAddresses == null) && !(notReadyAddresses.isEmpty())) { - sb.append("notReadyAddresses:"); - sb.append(notReadyAddresses); - sb.append(","); - } - if (!(ports == null) && !(ports.isEmpty())) { - sb.append("ports:"); - sb.append(ports); - } - sb.append("}"); - return sb.toString(); - } - public class AddressesNested extends V1EndpointAddressFluent> implements Nested{ AddressesNested(int index,V1EndpointAddress item) { this.index = index; this.builder = new V1EndpointAddressBuilder(this, item); } - V1EndpointAddressBuilder builder; - int index; - + public N and() { return (N) V1EndpointSubsetFluent.this.setToAddresses(index, builder.build()); } @@ -725,16 +729,17 @@ public N endAddress() { return and(); } - } public class NotReadyAddressesNested extends V1EndpointAddressFluent> implements Nested{ + + V1EndpointAddressBuilder builder; + int index; + NotReadyAddressesNested(int index,V1EndpointAddress item) { this.index = index; this.builder = new V1EndpointAddressBuilder(this, item); } - V1EndpointAddressBuilder builder; - int index; - + public N and() { return (N) V1EndpointSubsetFluent.this.setToNotReadyAddresses(index, builder.build()); } @@ -743,16 +748,17 @@ public N endNotReadyAddress() { return and(); } - } public class PortsNested extends CoreV1EndpointPortFluent> implements Nested{ + + CoreV1EndpointPortBuilder builder; + int index; + PortsNested(int index,CoreV1EndpointPort item) { this.index = index; this.builder = new CoreV1EndpointPortBuilder(this, item); } - CoreV1EndpointPortBuilder builder; - int index; - + public N and() { return (N) V1EndpointSubsetFluent.this.setToPorts(index, builder.build()); } @@ -761,7 +767,5 @@ public N endPort() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java index 6ce37f19a2..26b3e2c814 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1EndpointsBuilder extends V1EndpointsFluent implements VisitableBuilder{ + + V1EndpointsFluent fluent; + public V1EndpointsBuilder() { this(new V1Endpoints()); } @@ -11,17 +14,16 @@ public V1EndpointsBuilder(V1EndpointsFluent fluent) { this(fluent, new V1Endpoints()); } - public V1EndpointsBuilder(V1EndpointsFluent fluent,V1Endpoints instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EndpointsBuilder(V1Endpoints instance) { this.fluent = this; this.copyInstance(instance); } - V1EndpointsFluent fluent; + public V1EndpointsBuilder(V1EndpointsFluent fluent,V1Endpoints instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Endpoints build() { V1Endpoints buildable = new V1Endpoints(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1Endpoints build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java index c657fd7895..e56277fa43 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java @@ -1,140 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1EndpointsFluent> extends BaseFluent{ - public V1EndpointsFluent() { - } - - public V1EndpointsFluent(V1Endpoints instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private ArrayList subsets; - - protected void copyInstance(V1Endpoints instance) { - instance = instance != null ? instance : new V1Endpoints(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSubsets(instance.getSubsets()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + + public V1EndpointsFluent() { } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + public V1EndpointsFluent(V1Endpoints instance) { + this.copyInstance(instance); } - - public A addToSubsets(int index,V1EndpointSubset item) { + + public A addAllToSubsets(Collection items) { if (this.subsets == null) { this.subsets = new ArrayList(); } - V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); - if (index < 0 || index >= subsets.size()) { - _visitables.get("subsets").add(builder); - subsets.add(builder); - } else { + for (V1EndpointSubset item : items) { + V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); _visitables.get("subsets").add(builder); - subsets.add(index, builder); + this.subsets.add(builder); } return (A) this; } - public A setToSubsets(int index,V1EndpointSubset item) { - if (this.subsets == null) { - this.subsets = new ArrayList(); - } - V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); - if (index < 0 || index >= subsets.size()) { - _visitables.get("subsets").add(builder); - subsets.add(builder); - } else { - _visitables.get("subsets").add(builder); - subsets.set(index, builder); - } - return (A) this; + public SubsetsNested addNewSubset() { + return new SubsetsNested(-1, null); + } + + public SubsetsNested addNewSubsetLike(V1EndpointSubset item) { + return new SubsetsNested(-1, item); } public A addToSubsets(V1EndpointSubset... items) { @@ -149,66 +65,21 @@ public A addToSubsets(V1EndpointSubset... items) { return (A) this; } - public A addAllToSubsets(Collection items) { + public A addToSubsets(int index,V1EndpointSubset item) { if (this.subsets == null) { this.subsets = new ArrayList(); } - for (V1EndpointSubset item : items) { - V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); + V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); + if (index < 0 || index >= subsets.size()) { _visitables.get("subsets").add(builder); - this.subsets.add(builder); - } - return (A) this; - } - - public A removeFromSubsets(V1EndpointSubset... items) { - if (this.subsets == null) { - return (A) this; - } - for (V1EndpointSubset item : items) { - V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); - _visitables.get("subsets").remove(builder); - this.subsets.remove(builder); - } - return (A) this; - } - - public A removeAllFromSubsets(Collection items) { - if (this.subsets == null) { - return (A) this; - } - for (V1EndpointSubset item : items) { - V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); - _visitables.get("subsets").remove(builder); - this.subsets.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromSubsets(Predicate predicate) { - if (subsets == null) { - return (A) this; - } - Iterator each = subsets.iterator(); - List visitables = _visitables.get("subsets"); - while (each.hasNext()) { - V1EndpointSubsetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + subsets.add(builder); + } else { + _visitables.get("subsets").add(builder); + subsets.add(index, builder); } return (A) this; } - public List buildSubsets() { - return this.subsets != null ? build(subsets) : null; - } - - public V1EndpointSubset buildSubset(int index) { - return this.subsets.get(index).build(); - } - public V1EndpointSubset buildFirstSubset() { return this.subsets.get(0).build(); } @@ -226,64 +97,26 @@ public V1EndpointSubset buildMatchingSubset(Predicate p return null; } - public boolean hasMatchingSubset(Predicate predicate) { - for (V1EndpointSubsetBuilder item : subsets) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withSubsets(List subsets) { - if (this.subsets != null) { - this._visitables.get("subsets").clear(); - } - if (subsets != null) { - this.subsets = new ArrayList(); - for (V1EndpointSubset item : subsets) { - this.addToSubsets(item); - } - } else { - this.subsets = null; - } - return (A) this; - } - - public A withSubsets(V1EndpointSubset... subsets) { - if (this.subsets != null) { - this.subsets.clear(); - _visitables.remove("subsets"); - } - if (subsets != null) { - for (V1EndpointSubset item : subsets) { - this.addToSubsets(item); - } - } - return (A) this; - } - - public boolean hasSubsets() { - return this.subsets != null && !(this.subsets.isEmpty()); - } - - public SubsetsNested addNewSubset() { - return new SubsetsNested(-1, null); + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public SubsetsNested addNewSubsetLike(V1EndpointSubset item) { - return new SubsetsNested(-1, item); + public V1EndpointSubset buildSubset(int index) { + return this.subsets.get(index).build(); } - public SubsetsNested setNewSubsetLike(int index,V1EndpointSubset item) { - return new SubsetsNested(index, item); + public List buildSubsets() { + return this.subsets != null ? build(subsets) : null; } - public SubsetsNested editSubset(int index) { - if (index <= subsets.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "subsets")); + protected void copyInstance(V1Endpoints instance) { + instance = instance != null ? instance : new V1Endpoints(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSubsets(instance.getSubsets()); } - return this.setNewSubsetLike(index, this.buildSubset(index)); } public SubsetsNested editFirstSubset() { @@ -315,6 +148,25 @@ public SubsetsNested editMatchingSubset(Predicate pr return this.setNewSubsetLike(index, this.buildSubset(index)); } + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SubsetsNested editSubset(int index) { + if (subsets.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "subsets")); + } + return this.setNewSubsetLike(index, this.buildSubset(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingSubset(Predicate predicate) { + for (V1EndpointSubsetBuilder item : subsets) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSubsets() { + return this.subsets != null && !(this.subsets.isEmpty()); + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, subsets); } + public A removeAllFromSubsets(Collection items) { + if (this.subsets == null) { + return (A) this; + } + for (V1EndpointSubset item : items) { + V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); + _visitables.get("subsets").remove(builder); + this.subsets.remove(builder); + } + return (A) this; + } + + public A removeFromSubsets(V1EndpointSubset... items) { + if (this.subsets == null) { + return (A) this; + } + for (V1EndpointSubset item : items) { + V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); + _visitables.get("subsets").remove(builder); + this.subsets.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromSubsets(Predicate predicate) { + if (subsets == null) { + return (A) this; + } + Iterator each = subsets.iterator(); + List visitables = _visitables.get("subsets"); + while (each.hasNext()) { + V1EndpointSubsetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public SubsetsNested setNewSubsetLike(int index,V1EndpointSubset item) { + return new SubsetsNested(index, item); + } + + public A setToSubsets(int index,V1EndpointSubset item) { + if (this.subsets == null) { + this.subsets = new ArrayList(); + } + V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); + if (index < 0 || index >= subsets.size()) { + _visitables.get("subsets").add(builder); + subsets.add(builder); + } else { + _visitables.get("subsets").add(builder); + subsets.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,12 +314,72 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public A withSubsets(List subsets) { + if (this.subsets != null) { + this._visitables.get("subsets").clear(); + } + if (subsets != null) { + this.subsets = new ArrayList(); + for (V1EndpointSubset item : subsets) { + this.addToSubsets(item); + } + } else { + this.subsets = null; + } + return (A) this; + } + + public A withSubsets(V1EndpointSubset... subsets) { + if (this.subsets != null) { + this.subsets.clear(); + _visitables.remove("subsets"); + } + if (subsets != null) { + for (V1EndpointSubset item : subsets) { + this.addToSubsets(item); + } + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1EndpointsFluent.this.withMetadata(builder.build()); } @@ -384,16 +388,17 @@ public N endMetadata() { return and(); } - } public class SubsetsNested extends V1EndpointSubsetFluent> implements Nested{ + + V1EndpointSubsetBuilder builder; + int index; + SubsetsNested(int index,V1EndpointSubset item) { this.index = index; this.builder = new V1EndpointSubsetBuilder(this, item); } - V1EndpointSubsetBuilder builder; - int index; - + public N and() { return (N) V1EndpointsFluent.this.setToSubsets(index, builder.build()); } @@ -402,7 +407,5 @@ public N endSubset() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java index b5eb916b57..132616c2d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1EndpointsListBuilder extends V1EndpointsListFluent implements VisitableBuilder{ + + V1EndpointsListFluent fluent; + public V1EndpointsListBuilder() { this(new V1EndpointsList()); } @@ -11,17 +14,16 @@ public V1EndpointsListBuilder(V1EndpointsListFluent fluent) { this(fluent, new V1EndpointsList()); } - public V1EndpointsListBuilder(V1EndpointsListFluent fluent,V1EndpointsList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EndpointsListBuilder(V1EndpointsList instance) { this.fluent = this; this.copyInstance(instance); } - V1EndpointsListFluent fluent; + public V1EndpointsListBuilder(V1EndpointsListFluent fluent,V1EndpointsList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EndpointsList build() { V1EndpointsList buildable = new V1EndpointsList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1EndpointsList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java index a9246d8691..ea31573149 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1EndpointsListFluent> extends BaseFluent{ - public V1EndpointsListFluent() { - } - - public V1EndpointsListFluent(V1EndpointsList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1EndpointsList instance) { - instance = instance != null ? instance : new V1EndpointsList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1EndpointsListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1EndpointsListFluent(V1EndpointsList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1Endpoints item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1EndpointsBuilder builder = new V1EndpointsBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1Endpoints item : items) { + V1EndpointsBuilder builder = new V1EndpointsBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1Endpoints item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1EndpointsBuilder builder = new V1EndpointsBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1Endpoints item) { + return new ItemsNested(-1, item); } public A addToItems(V1Endpoints... items) { @@ -96,68 +65,31 @@ public A addToItems(V1Endpoints... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1Endpoints item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1Endpoints item : items) { - V1EndpointsBuilder builder = new V1EndpointsBuilder(item); + V1EndpointsBuilder builder = new V1EndpointsBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1Endpoints... items) { - if (this.items == null) { - return (A) this; - } - for (V1Endpoints item : items) { - V1EndpointsBuilder builder = new V1EndpointsBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1Endpoints item : items) { - V1EndpointsBuilder builder = new V1EndpointsBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1EndpointsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1Endpoints buildFirstItem() { + return this.items.get(0).build(); } public V1Endpoints buildItem(int index) { return this.items.get(index).build(); } - public V1Endpoints buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1Endpoints buildLastItem() { @@ -173,73 +105,34 @@ public V1Endpoints buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1EndpointsBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Endpoints item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1EndpointsList instance) { + instance = instance != null ? instance : new V1EndpointsList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1Endpoints... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1Endpoints item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Endpoints item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Endpoints item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1EndpointsBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Endpoints item : items) { + V1EndpointsBuilder builder = new V1EndpointsBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Endpoints... items) { + if (this.items == null) { + return (A) this; + } + for (V1Endpoints item : items) { + V1EndpointsBuilder builder = new V1EndpointsBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1EndpointsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Endpoints item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1Endpoints item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1EndpointsBuilder builder = new V1EndpointsBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1Endpoints item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1Endpoints... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1Endpoints item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1EndpointsFluent> implements Nested{ + + V1EndpointsBuilder builder; + int index; + ItemsNested(int index,V1Endpoints item) { this.index = index; this.builder = new V1EndpointsBuilder(this, item); } - V1EndpointsBuilder builder; - int index; - + public N and() { return (N) V1EndpointsListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1EndpointsListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java index 5324432a8d..aed9afb0cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1EnvFromSourceBuilder extends V1EnvFromSourceFluent implements VisitableBuilder{ + + V1EnvFromSourceFluent fluent; + public V1EnvFromSourceBuilder() { this(new V1EnvFromSource()); } @@ -11,17 +14,16 @@ public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent) { this(fluent, new V1EnvFromSource()); } - public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent,V1EnvFromSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EnvFromSourceBuilder(V1EnvFromSource instance) { this.fluent = this; this.copyInstance(instance); } - V1EnvFromSourceFluent fluent; + public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent,V1EnvFromSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EnvFromSource build() { V1EnvFromSource buildable = new V1EnvFromSource(); buildable.setConfigMapRef(fluent.buildConfigMapRef()); @@ -30,5 +32,4 @@ public V1EnvFromSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java index 8cecc5e915..ce16b02dd0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java @@ -1,28 +1,38 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1EnvFromSourceFluent> extends BaseFluent{ + + private V1ConfigMapEnvSourceBuilder configMapRef; + private String prefix; + private V1SecretEnvSourceBuilder secretRef; + public V1EnvFromSourceFluent() { } public V1EnvFromSourceFluent(V1EnvFromSource instance) { this.copyInstance(instance); } - private V1ConfigMapEnvSourceBuilder configMapRef; - private String prefix; - private V1SecretEnvSourceBuilder secretRef; + + public V1ConfigMapEnvSource buildConfigMapRef() { + return this.configMapRef != null ? this.configMapRef.build() : null; + } + + public V1SecretEnvSource buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; + } protected void copyInstance(V1EnvFromSource instance) { instance = instance != null ? instance : new V1EnvFromSource(); @@ -33,34 +43,6 @@ protected void copyInstance(V1EnvFromSource instance) { } } - public V1ConfigMapEnvSource buildConfigMapRef() { - return this.configMapRef != null ? this.configMapRef.build() : null; - } - - public A withConfigMapRef(V1ConfigMapEnvSource configMapRef) { - this._visitables.remove("configMapRef"); - if (configMapRef != null) { - this.configMapRef = new V1ConfigMapEnvSourceBuilder(configMapRef); - this._visitables.get("configMapRef").add(this.configMapRef); - } else { - this.configMapRef = null; - this._visitables.get("configMapRef").remove(this.configMapRef); - } - return (A) this; - } - - public boolean hasConfigMapRef() { - return this.configMapRef != null; - } - - public ConfigMapRefNested withNewConfigMapRef() { - return new ConfigMapRefNested(null); - } - - public ConfigMapRefNested withNewConfigMapRefLike(V1ConfigMapEnvSource item) { - return new ConfigMapRefNested(item); - } - public ConfigMapRefNested editConfigMapRef() { return this.withNewConfigMapRefLike(Optional.ofNullable(this.buildConfigMapRef()).orElse(null)); } @@ -73,51 +55,6 @@ public ConfigMapRefNested editOrNewConfigMapRefLike(V1ConfigMapEnvSource item return this.withNewConfigMapRefLike(Optional.ofNullable(this.buildConfigMapRef()).orElse(item)); } - public String getPrefix() { - return this.prefix; - } - - public A withPrefix(String prefix) { - this.prefix = prefix; - return (A) this; - } - - public boolean hasPrefix() { - return this.prefix != null; - } - - public V1SecretEnvSource buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; - } - - public A withSecretRef(V1SecretEnvSource secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1SecretEnvSourceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; - } - - public boolean hasSecretRef() { - return this.secretRef != null; - } - - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); - } - - public SecretRefNested withNewSecretRefLike(V1SecretEnvSource item) { - return new SecretRefNested(item); - } - - public SecretRefNested editSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); - } - public SecretRefNested editOrNewSecretRef() { return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretEnvSourceBuilder().build())); } @@ -126,6 +63,10 @@ public SecretRefNested editOrNewSecretRefLike(V1SecretEnvSource item) { return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -149,6 +90,22 @@ public boolean equals(Object o) { return true; } + public String getPrefix() { + return this.prefix; + } + + public boolean hasConfigMapRef() { + return this.configMapRef != null; + } + + public boolean hasPrefix() { + return this.prefix != null; + } + + public boolean hasSecretRef() { + return this.secretRef != null; + } + public int hashCode() { return Objects.hash(configMapRef, prefix, secretRef); } @@ -173,12 +130,59 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withConfigMapRef(V1ConfigMapEnvSource configMapRef) { + this._visitables.remove("configMapRef"); + if (configMapRef != null) { + this.configMapRef = new V1ConfigMapEnvSourceBuilder(configMapRef); + this._visitables.get("configMapRef").add(this.configMapRef); + } else { + this.configMapRef = null; + this._visitables.get("configMapRef").remove(this.configMapRef); + } + return (A) this; + } + + public ConfigMapRefNested withNewConfigMapRef() { + return new ConfigMapRefNested(null); + } + + public ConfigMapRefNested withNewConfigMapRefLike(V1ConfigMapEnvSource item) { + return new ConfigMapRefNested(item); + } + + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); + } + + public SecretRefNested withNewSecretRefLike(V1SecretEnvSource item) { + return new SecretRefNested(item); + } + + public A withPrefix(String prefix) { + this.prefix = prefix; + return (A) this; + } + + public A withSecretRef(V1SecretEnvSource secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1SecretEnvSourceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; + } public class ConfigMapRefNested extends V1ConfigMapEnvSourceFluent> implements Nested{ + + V1ConfigMapEnvSourceBuilder builder; + ConfigMapRefNested(V1ConfigMapEnvSource item) { this.builder = new V1ConfigMapEnvSourceBuilder(this, item); } - V1ConfigMapEnvSourceBuilder builder; - + public N and() { return (N) V1EnvFromSourceFluent.this.withConfigMapRef(builder.build()); } @@ -187,14 +191,15 @@ public N endConfigMapRef() { return and(); } - } public class SecretRefNested extends V1SecretEnvSourceFluent> implements Nested{ + + V1SecretEnvSourceBuilder builder; + SecretRefNested(V1SecretEnvSource item) { this.builder = new V1SecretEnvSourceBuilder(this, item); } - V1SecretEnvSourceBuilder builder; - + public N and() { return (N) V1EnvFromSourceFluent.this.withSecretRef(builder.build()); } @@ -203,7 +208,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java index ef5b29c857..c57b2710d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1EnvVarBuilder extends V1EnvVarFluent implements VisitableBuilder{ + + V1EnvVarFluent fluent; + public V1EnvVarBuilder() { this(new V1EnvVar()); } @@ -11,17 +14,16 @@ public V1EnvVarBuilder(V1EnvVarFluent fluent) { this(fluent, new V1EnvVar()); } - public V1EnvVarBuilder(V1EnvVarFluent fluent,V1EnvVar instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EnvVarBuilder(V1EnvVar instance) { this.fluent = this; this.copyInstance(instance); } - V1EnvVarFluent fluent; + public V1EnvVarBuilder(V1EnvVarFluent fluent,V1EnvVar instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EnvVar build() { V1EnvVar buildable = new V1EnvVar(); buildable.setName(fluent.getName()); @@ -30,5 +32,4 @@ public V1EnvVar build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java index 3ee723e4b7..87bb3e97fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java @@ -1,28 +1,34 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1EnvVarFluent> extends BaseFluent{ + + private String name; + private String value; + private V1EnvVarSourceBuilder valueFrom; + public V1EnvVarFluent() { } public V1EnvVarFluent(V1EnvVar instance) { this.copyInstance(instance); } - private String name; - private String value; - private V1EnvVarSourceBuilder valueFrom; + + public V1EnvVarSource buildValueFrom() { + return this.valueFrom != null ? this.valueFrom.build() : null; + } protected void copyInstance(V1EnvVar instance) { instance = instance != null ? instance : new V1EnvVar(); @@ -33,64 +39,6 @@ protected void copyInstance(V1EnvVar instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getValue() { - return this.value; - } - - public A withValue(String value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - - public V1EnvVarSource buildValueFrom() { - return this.valueFrom != null ? this.valueFrom.build() : null; - } - - public A withValueFrom(V1EnvVarSource valueFrom) { - this._visitables.remove("valueFrom"); - if (valueFrom != null) { - this.valueFrom = new V1EnvVarSourceBuilder(valueFrom); - this._visitables.get("valueFrom").add(this.valueFrom); - } else { - this.valueFrom = null; - this._visitables.get("valueFrom").remove(this.valueFrom); - } - return (A) this; - } - - public boolean hasValueFrom() { - return this.valueFrom != null; - } - - public ValueFromNested withNewValueFrom() { - return new ValueFromNested(null); - } - - public ValueFromNested withNewValueFromLike(V1EnvVarSource item) { - return new ValueFromNested(item); - } - - public ValueFromNested editValueFrom() { - return this.withNewValueFromLike(Optional.ofNullable(this.buildValueFrom()).orElse(null)); - } - public ValueFromNested editOrNewValueFrom() { return this.withNewValueFromLike(Optional.ofNullable(this.buildValueFrom()).orElse(new V1EnvVarSourceBuilder().build())); } @@ -99,6 +47,10 @@ public ValueFromNested editOrNewValueFromLike(V1EnvVarSource item) { return this.withNewValueFromLike(Optional.ofNullable(this.buildValueFrom()).orElse(item)); } + public ValueFromNested editValueFrom() { + return this.withNewValueFromLike(Optional.ofNullable(this.buildValueFrom()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -122,6 +74,26 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public String getValue() { + return this.value; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasValue() { + return this.value != null; + } + + public boolean hasValueFrom() { + return this.valueFrom != null; + } + public int hashCode() { return Objects.hash(name, value, valueFrom); } @@ -146,12 +118,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public ValueFromNested withNewValueFrom() { + return new ValueFromNested(null); + } + + public ValueFromNested withNewValueFromLike(V1EnvVarSource item) { + return new ValueFromNested(item); + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + + public A withValueFrom(V1EnvVarSource valueFrom) { + this._visitables.remove("valueFrom"); + if (valueFrom != null) { + this.valueFrom = new V1EnvVarSourceBuilder(valueFrom); + this._visitables.get("valueFrom").add(this.valueFrom); + } else { + this.valueFrom = null; + this._visitables.get("valueFrom").remove(this.valueFrom); + } + return (A) this; + } public class ValueFromNested extends V1EnvVarSourceFluent> implements Nested{ + + V1EnvVarSourceBuilder builder; + ValueFromNested(V1EnvVarSource item) { this.builder = new V1EnvVarSourceBuilder(this, item); } - V1EnvVarSourceBuilder builder; - + public N and() { return (N) V1EnvVarFluent.this.withValueFrom(builder.build()); } @@ -160,7 +164,5 @@ public N endValueFrom() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java index c853066051..a66071e828 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1EnvVarSourceBuilder extends V1EnvVarSourceFluent implements VisitableBuilder{ + + V1EnvVarSourceFluent fluent; + public V1EnvVarSourceBuilder() { this(new V1EnvVarSource()); } @@ -11,17 +14,16 @@ public V1EnvVarSourceBuilder(V1EnvVarSourceFluent fluent) { this(fluent, new V1EnvVarSource()); } - public V1EnvVarSourceBuilder(V1EnvVarSourceFluent fluent,V1EnvVarSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EnvVarSourceBuilder(V1EnvVarSource instance) { this.fluent = this; this.copyInstance(instance); } - V1EnvVarSourceFluent fluent; + public V1EnvVarSourceBuilder(V1EnvVarSourceFluent fluent,V1EnvVarSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EnvVarSource build() { V1EnvVarSource buildable = new V1EnvVarSource(); buildable.setConfigMapKeyRef(fluent.buildConfigMapKeyRef()); @@ -32,5 +34,4 @@ public V1EnvVarSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java index 2b6f100c0b..f4e6c4a50a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java @@ -1,30 +1,52 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1EnvVarSourceFluent> extends BaseFluent{ + + private V1ConfigMapKeySelectorBuilder configMapKeyRef; + private V1ObjectFieldSelectorBuilder fieldRef; + private V1FileKeySelectorBuilder fileKeyRef; + private V1ResourceFieldSelectorBuilder resourceFieldRef; + private V1SecretKeySelectorBuilder secretKeyRef; + public V1EnvVarSourceFluent() { } public V1EnvVarSourceFluent(V1EnvVarSource instance) { this.copyInstance(instance); } - private V1ConfigMapKeySelectorBuilder configMapKeyRef; - private V1ObjectFieldSelectorBuilder fieldRef; - private V1FileKeySelectorBuilder fileKeyRef; - private V1ResourceFieldSelectorBuilder resourceFieldRef; - private V1SecretKeySelectorBuilder secretKeyRef; + + public V1ConfigMapKeySelector buildConfigMapKeyRef() { + return this.configMapKeyRef != null ? this.configMapKeyRef.build() : null; + } + + public V1ObjectFieldSelector buildFieldRef() { + return this.fieldRef != null ? this.fieldRef.build() : null; + } + + public V1FileKeySelector buildFileKeyRef() { + return this.fileKeyRef != null ? this.fileKeyRef.build() : null; + } + + public V1ResourceFieldSelector buildResourceFieldRef() { + return this.resourceFieldRef != null ? this.resourceFieldRef.build() : null; + } + + public V1SecretKeySelector buildSecretKeyRef() { + return this.secretKeyRef != null ? this.secretKeyRef.build() : null; + } protected void copyInstance(V1EnvVarSource instance) { instance = instance != null ? instance : new V1EnvVarSource(); @@ -37,36 +59,16 @@ protected void copyInstance(V1EnvVarSource instance) { } } - public V1ConfigMapKeySelector buildConfigMapKeyRef() { - return this.configMapKeyRef != null ? this.configMapKeyRef.build() : null; - } - - public A withConfigMapKeyRef(V1ConfigMapKeySelector configMapKeyRef) { - this._visitables.remove("configMapKeyRef"); - if (configMapKeyRef != null) { - this.configMapKeyRef = new V1ConfigMapKeySelectorBuilder(configMapKeyRef); - this._visitables.get("configMapKeyRef").add(this.configMapKeyRef); - } else { - this.configMapKeyRef = null; - this._visitables.get("configMapKeyRef").remove(this.configMapKeyRef); - } - return (A) this; - } - - public boolean hasConfigMapKeyRef() { - return this.configMapKeyRef != null; - } - - public ConfigMapKeyRefNested withNewConfigMapKeyRef() { - return new ConfigMapKeyRefNested(null); + public ConfigMapKeyRefNested editConfigMapKeyRef() { + return this.withNewConfigMapKeyRefLike(Optional.ofNullable(this.buildConfigMapKeyRef()).orElse(null)); } - public ConfigMapKeyRefNested withNewConfigMapKeyRefLike(V1ConfigMapKeySelector item) { - return new ConfigMapKeyRefNested(item); + public FieldRefNested editFieldRef() { + return this.withNewFieldRefLike(Optional.ofNullable(this.buildFieldRef()).orElse(null)); } - public ConfigMapKeyRefNested editConfigMapKeyRef() { - return this.withNewConfigMapKeyRefLike(Optional.ofNullable(this.buildConfigMapKeyRef()).orElse(null)); + public FileKeyRefNested editFileKeyRef() { + return this.withNewFileKeyRefLike(Optional.ofNullable(this.buildFileKeyRef()).orElse(null)); } public ConfigMapKeyRefNested editOrNewConfigMapKeyRef() { @@ -77,38 +79,6 @@ public ConfigMapKeyRefNested editOrNewConfigMapKeyRefLike(V1ConfigMapKeySelec return this.withNewConfigMapKeyRefLike(Optional.ofNullable(this.buildConfigMapKeyRef()).orElse(item)); } - public V1ObjectFieldSelector buildFieldRef() { - return this.fieldRef != null ? this.fieldRef.build() : null; - } - - public A withFieldRef(V1ObjectFieldSelector fieldRef) { - this._visitables.remove("fieldRef"); - if (fieldRef != null) { - this.fieldRef = new V1ObjectFieldSelectorBuilder(fieldRef); - this._visitables.get("fieldRef").add(this.fieldRef); - } else { - this.fieldRef = null; - this._visitables.get("fieldRef").remove(this.fieldRef); - } - return (A) this; - } - - public boolean hasFieldRef() { - return this.fieldRef != null; - } - - public FieldRefNested withNewFieldRef() { - return new FieldRefNested(null); - } - - public FieldRefNested withNewFieldRefLike(V1ObjectFieldSelector item) { - return new FieldRefNested(item); - } - - public FieldRefNested editFieldRef() { - return this.withNewFieldRefLike(Optional.ofNullable(this.buildFieldRef()).orElse(null)); - } - public FieldRefNested editOrNewFieldRef() { return this.withNewFieldRefLike(Optional.ofNullable(this.buildFieldRef()).orElse(new V1ObjectFieldSelectorBuilder().build())); } @@ -117,38 +87,6 @@ public FieldRefNested editOrNewFieldRefLike(V1ObjectFieldSelector item) { return this.withNewFieldRefLike(Optional.ofNullable(this.buildFieldRef()).orElse(item)); } - public V1FileKeySelector buildFileKeyRef() { - return this.fileKeyRef != null ? this.fileKeyRef.build() : null; - } - - public A withFileKeyRef(V1FileKeySelector fileKeyRef) { - this._visitables.remove("fileKeyRef"); - if (fileKeyRef != null) { - this.fileKeyRef = new V1FileKeySelectorBuilder(fileKeyRef); - this._visitables.get("fileKeyRef").add(this.fileKeyRef); - } else { - this.fileKeyRef = null; - this._visitables.get("fileKeyRef").remove(this.fileKeyRef); - } - return (A) this; - } - - public boolean hasFileKeyRef() { - return this.fileKeyRef != null; - } - - public FileKeyRefNested withNewFileKeyRef() { - return new FileKeyRefNested(null); - } - - public FileKeyRefNested withNewFileKeyRefLike(V1FileKeySelector item) { - return new FileKeyRefNested(item); - } - - public FileKeyRefNested editFileKeyRef() { - return this.withNewFileKeyRefLike(Optional.ofNullable(this.buildFileKeyRef()).orElse(null)); - } - public FileKeyRefNested editOrNewFileKeyRef() { return this.withNewFileKeyRefLike(Optional.ofNullable(this.buildFileKeyRef()).orElse(new V1FileKeySelectorBuilder().build())); } @@ -157,38 +95,6 @@ public FileKeyRefNested editOrNewFileKeyRefLike(V1FileKeySelector item) { return this.withNewFileKeyRefLike(Optional.ofNullable(this.buildFileKeyRef()).orElse(item)); } - public V1ResourceFieldSelector buildResourceFieldRef() { - return this.resourceFieldRef != null ? this.resourceFieldRef.build() : null; - } - - public A withResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { - this._visitables.remove("resourceFieldRef"); - if (resourceFieldRef != null) { - this.resourceFieldRef = new V1ResourceFieldSelectorBuilder(resourceFieldRef); - this._visitables.get("resourceFieldRef").add(this.resourceFieldRef); - } else { - this.resourceFieldRef = null; - this._visitables.get("resourceFieldRef").remove(this.resourceFieldRef); - } - return (A) this; - } - - public boolean hasResourceFieldRef() { - return this.resourceFieldRef != null; - } - - public ResourceFieldRefNested withNewResourceFieldRef() { - return new ResourceFieldRefNested(null); - } - - public ResourceFieldRefNested withNewResourceFieldRefLike(V1ResourceFieldSelector item) { - return new ResourceFieldRefNested(item); - } - - public ResourceFieldRefNested editResourceFieldRef() { - return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(null)); - } - public ResourceFieldRefNested editOrNewResourceFieldRef() { return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(new V1ResourceFieldSelectorBuilder().build())); } @@ -197,46 +103,22 @@ public ResourceFieldRefNested editOrNewResourceFieldRefLike(V1ResourceFieldSe return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(item)); } - public V1SecretKeySelector buildSecretKeyRef() { - return this.secretKeyRef != null ? this.secretKeyRef.build() : null; - } - - public A withSecretKeyRef(V1SecretKeySelector secretKeyRef) { - this._visitables.remove("secretKeyRef"); - if (secretKeyRef != null) { - this.secretKeyRef = new V1SecretKeySelectorBuilder(secretKeyRef); - this._visitables.get("secretKeyRef").add(this.secretKeyRef); - } else { - this.secretKeyRef = null; - this._visitables.get("secretKeyRef").remove(this.secretKeyRef); - } - return (A) this; - } - - public boolean hasSecretKeyRef() { - return this.secretKeyRef != null; + public SecretKeyRefNested editOrNewSecretKeyRef() { + return this.withNewSecretKeyRefLike(Optional.ofNullable(this.buildSecretKeyRef()).orElse(new V1SecretKeySelectorBuilder().build())); } - public SecretKeyRefNested withNewSecretKeyRef() { - return new SecretKeyRefNested(null); + public SecretKeyRefNested editOrNewSecretKeyRefLike(V1SecretKeySelector item) { + return this.withNewSecretKeyRefLike(Optional.ofNullable(this.buildSecretKeyRef()).orElse(item)); } - public SecretKeyRefNested withNewSecretKeyRefLike(V1SecretKeySelector item) { - return new SecretKeyRefNested(item); + public ResourceFieldRefNested editResourceFieldRef() { + return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(null)); } public SecretKeyRefNested editSecretKeyRef() { return this.withNewSecretKeyRefLike(Optional.ofNullable(this.buildSecretKeyRef()).orElse(null)); } - public SecretKeyRefNested editOrNewSecretKeyRef() { - return this.withNewSecretKeyRefLike(Optional.ofNullable(this.buildSecretKeyRef()).orElse(new V1SecretKeySelectorBuilder().build())); - } - - public SecretKeyRefNested editOrNewSecretKeyRefLike(V1SecretKeySelector item) { - return this.withNewSecretKeyRefLike(Optional.ofNullable(this.buildSecretKeyRef()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -266,6 +148,26 @@ public boolean equals(Object o) { return true; } + public boolean hasConfigMapKeyRef() { + return this.configMapKeyRef != null; + } + + public boolean hasFieldRef() { + return this.fieldRef != null; + } + + public boolean hasFileKeyRef() { + return this.fileKeyRef != null; + } + + public boolean hasResourceFieldRef() { + return this.resourceFieldRef != null; + } + + public boolean hasSecretKeyRef() { + return this.secretKeyRef != null; + } + public int hashCode() { return Objects.hash(configMapKeyRef, fieldRef, fileKeyRef, resourceFieldRef, secretKeyRef); } @@ -300,12 +202,114 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withConfigMapKeyRef(V1ConfigMapKeySelector configMapKeyRef) { + this._visitables.remove("configMapKeyRef"); + if (configMapKeyRef != null) { + this.configMapKeyRef = new V1ConfigMapKeySelectorBuilder(configMapKeyRef); + this._visitables.get("configMapKeyRef").add(this.configMapKeyRef); + } else { + this.configMapKeyRef = null; + this._visitables.get("configMapKeyRef").remove(this.configMapKeyRef); + } + return (A) this; + } + + public A withFieldRef(V1ObjectFieldSelector fieldRef) { + this._visitables.remove("fieldRef"); + if (fieldRef != null) { + this.fieldRef = new V1ObjectFieldSelectorBuilder(fieldRef); + this._visitables.get("fieldRef").add(this.fieldRef); + } else { + this.fieldRef = null; + this._visitables.get("fieldRef").remove(this.fieldRef); + } + return (A) this; + } + + public A withFileKeyRef(V1FileKeySelector fileKeyRef) { + this._visitables.remove("fileKeyRef"); + if (fileKeyRef != null) { + this.fileKeyRef = new V1FileKeySelectorBuilder(fileKeyRef); + this._visitables.get("fileKeyRef").add(this.fileKeyRef); + } else { + this.fileKeyRef = null; + this._visitables.get("fileKeyRef").remove(this.fileKeyRef); + } + return (A) this; + } + + public ConfigMapKeyRefNested withNewConfigMapKeyRef() { + return new ConfigMapKeyRefNested(null); + } + + public ConfigMapKeyRefNested withNewConfigMapKeyRefLike(V1ConfigMapKeySelector item) { + return new ConfigMapKeyRefNested(item); + } + + public FieldRefNested withNewFieldRef() { + return new FieldRefNested(null); + } + + public FieldRefNested withNewFieldRefLike(V1ObjectFieldSelector item) { + return new FieldRefNested(item); + } + + public FileKeyRefNested withNewFileKeyRef() { + return new FileKeyRefNested(null); + } + + public FileKeyRefNested withNewFileKeyRefLike(V1FileKeySelector item) { + return new FileKeyRefNested(item); + } + + public ResourceFieldRefNested withNewResourceFieldRef() { + return new ResourceFieldRefNested(null); + } + + public ResourceFieldRefNested withNewResourceFieldRefLike(V1ResourceFieldSelector item) { + return new ResourceFieldRefNested(item); + } + + public SecretKeyRefNested withNewSecretKeyRef() { + return new SecretKeyRefNested(null); + } + + public SecretKeyRefNested withNewSecretKeyRefLike(V1SecretKeySelector item) { + return new SecretKeyRefNested(item); + } + + public A withResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { + this._visitables.remove("resourceFieldRef"); + if (resourceFieldRef != null) { + this.resourceFieldRef = new V1ResourceFieldSelectorBuilder(resourceFieldRef); + this._visitables.get("resourceFieldRef").add(this.resourceFieldRef); + } else { + this.resourceFieldRef = null; + this._visitables.get("resourceFieldRef").remove(this.resourceFieldRef); + } + return (A) this; + } + + public A withSecretKeyRef(V1SecretKeySelector secretKeyRef) { + this._visitables.remove("secretKeyRef"); + if (secretKeyRef != null) { + this.secretKeyRef = new V1SecretKeySelectorBuilder(secretKeyRef); + this._visitables.get("secretKeyRef").add(this.secretKeyRef); + } else { + this.secretKeyRef = null; + this._visitables.get("secretKeyRef").remove(this.secretKeyRef); + } + return (A) this; + } public class ConfigMapKeyRefNested extends V1ConfigMapKeySelectorFluent> implements Nested{ + + V1ConfigMapKeySelectorBuilder builder; + ConfigMapKeyRefNested(V1ConfigMapKeySelector item) { this.builder = new V1ConfigMapKeySelectorBuilder(this, item); } - V1ConfigMapKeySelectorBuilder builder; - + public N and() { return (N) V1EnvVarSourceFluent.this.withConfigMapKeyRef(builder.build()); } @@ -314,14 +318,15 @@ public N endConfigMapKeyRef() { return and(); } - } public class FieldRefNested extends V1ObjectFieldSelectorFluent> implements Nested{ + + V1ObjectFieldSelectorBuilder builder; + FieldRefNested(V1ObjectFieldSelector item) { this.builder = new V1ObjectFieldSelectorBuilder(this, item); } - V1ObjectFieldSelectorBuilder builder; - + public N and() { return (N) V1EnvVarSourceFluent.this.withFieldRef(builder.build()); } @@ -330,14 +335,15 @@ public N endFieldRef() { return and(); } - } public class FileKeyRefNested extends V1FileKeySelectorFluent> implements Nested{ + + V1FileKeySelectorBuilder builder; + FileKeyRefNested(V1FileKeySelector item) { this.builder = new V1FileKeySelectorBuilder(this, item); } - V1FileKeySelectorBuilder builder; - + public N and() { return (N) V1EnvVarSourceFluent.this.withFileKeyRef(builder.build()); } @@ -346,14 +352,15 @@ public N endFileKeyRef() { return and(); } - } public class ResourceFieldRefNested extends V1ResourceFieldSelectorFluent> implements Nested{ + + V1ResourceFieldSelectorBuilder builder; + ResourceFieldRefNested(V1ResourceFieldSelector item) { this.builder = new V1ResourceFieldSelectorBuilder(this, item); } - V1ResourceFieldSelectorBuilder builder; - + public N and() { return (N) V1EnvVarSourceFluent.this.withResourceFieldRef(builder.build()); } @@ -362,14 +369,15 @@ public N endResourceFieldRef() { return and(); } - } public class SecretKeyRefNested extends V1SecretKeySelectorFluent> implements Nested{ + + V1SecretKeySelectorBuilder builder; + SecretKeyRefNested(V1SecretKeySelector item) { this.builder = new V1SecretKeySelectorBuilder(this, item); } - V1SecretKeySelectorBuilder builder; - + public N and() { return (N) V1EnvVarSourceFluent.this.withSecretKeyRef(builder.build()); } @@ -378,7 +386,5 @@ public N endSecretKeyRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java index ac9ca40e8d..a5d767ccda 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1EphemeralContainerBuilder extends V1EphemeralContainerFluent implements VisitableBuilder{ + + V1EphemeralContainerFluent fluent; + public V1EphemeralContainerBuilder() { this(new V1EphemeralContainer()); } @@ -11,17 +14,16 @@ public V1EphemeralContainerBuilder(V1EphemeralContainerFluent fluent) { this(fluent, new V1EphemeralContainer()); } - public V1EphemeralContainerBuilder(V1EphemeralContainerFluent fluent,V1EphemeralContainer instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EphemeralContainerBuilder(V1EphemeralContainer instance) { this.fluent = this; this.copyInstance(instance); } - V1EphemeralContainerFluent fluent; + public V1EphemeralContainerBuilder(V1EphemeralContainerFluent fluent,V1EphemeralContainer instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EphemeralContainer build() { V1EphemeralContainer buildable = new V1EphemeralContainer(); buildable.setArgs(fluent.getArgs()); @@ -53,5 +55,4 @@ public V1EphemeralContainer build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java index 2c268fe980..6679035464 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; -import java.util.List; +import io.kubernetes.client.fluent.Nested; import java.lang.Boolean; -import java.util.Optional; -import java.util.Objects; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.RuntimeException; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1EphemeralContainerFluent> extends BaseFluent{ - public V1EphemeralContainerFluent() { - } - - public V1EphemeralContainerFluent(V1EphemeralContainer instance) { - this.copyInstance(instance); - } + private List args; private List command; private ArrayList env; @@ -53,65 +48,14 @@ public V1EphemeralContainerFluent(V1EphemeralContainer instance) { private ArrayList volumeDevices; private ArrayList volumeMounts; private String workingDir; - - protected void copyInstance(V1EphemeralContainer instance) { - instance = instance != null ? instance : new V1EphemeralContainer(); - if (instance != null) { - this.withArgs(instance.getArgs()); - this.withCommand(instance.getCommand()); - this.withEnv(instance.getEnv()); - this.withEnvFrom(instance.getEnvFrom()); - this.withImage(instance.getImage()); - this.withImagePullPolicy(instance.getImagePullPolicy()); - this.withLifecycle(instance.getLifecycle()); - this.withLivenessProbe(instance.getLivenessProbe()); - this.withName(instance.getName()); - this.withPorts(instance.getPorts()); - this.withReadinessProbe(instance.getReadinessProbe()); - this.withResizePolicy(instance.getResizePolicy()); - this.withResources(instance.getResources()); - this.withRestartPolicy(instance.getRestartPolicy()); - this.withRestartPolicyRules(instance.getRestartPolicyRules()); - this.withSecurityContext(instance.getSecurityContext()); - this.withStartupProbe(instance.getStartupProbe()); - this.withStdin(instance.getStdin()); - this.withStdinOnce(instance.getStdinOnce()); - this.withTargetContainerName(instance.getTargetContainerName()); - this.withTerminationMessagePath(instance.getTerminationMessagePath()); - this.withTerminationMessagePolicy(instance.getTerminationMessagePolicy()); - this.withTty(instance.getTty()); - this.withVolumeDevices(instance.getVolumeDevices()); - this.withVolumeMounts(instance.getVolumeMounts()); - this.withWorkingDir(instance.getWorkingDir()); - } - } - - public A addToArgs(int index,String item) { - if (this.args == null) { - this.args = new ArrayList(); - } - this.args.add(index, item); - return (A) this; - } - - public A setToArgs(int index,String item) { - if (this.args == null) { - this.args = new ArrayList(); - } - this.args.set(index, item); - return (A) this; + + public V1EphemeralContainerFluent() { } - public A addToArgs(String... items) { - if (this.args == null) { - this.args = new ArrayList(); - } - for (String item : items) { - this.args.add(item); - } - return (A) this; + public V1EphemeralContainerFluent(V1EphemeralContainer instance) { + this.copyInstance(instance); } - + public A addAllToArgs(Collection items) { if (this.args == null) { this.args = new ArrayList(); @@ -122,235 +66,189 @@ public A addAllToArgs(Collection items) { return (A) this; } - public A removeFromArgs(String... items) { - if (this.args == null) { - return (A) this; + public A addAllToCommand(Collection items) { + if (this.command == null) { + this.command = new ArrayList(); } for (String item : items) { - this.args.remove(item); + this.command.add(item); } return (A) this; } - public A removeAllFromArgs(Collection items) { - if (this.args == null) { - return (A) this; + public A addAllToEnv(Collection items) { + if (this.env == null) { + this.env = new ArrayList(); } - for (String item : items) { - this.args.remove(item); + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").add(builder); + this.env.add(builder); } return (A) this; } - public List getArgs() { - return this.args; - } - - public String getArg(int index) { - return this.args.get(index); - } - - public String getFirstArg() { - return this.args.get(0); - } - - public String getLastArg() { - return this.args.get(args.size() - 1); - } - - public String getMatchingArg(Predicate predicate) { - for (String item : args) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingArg(Predicate predicate) { - for (String item : args) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withArgs(List args) { - if (args != null) { - this.args = new ArrayList(); - for (String item : args) { - this.addToArgs(item); - } - } else { - this.args = null; + public A addAllToEnvFrom(Collection items) { + if (this.envFrom == null) { + this.envFrom = new ArrayList(); + } + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").add(builder); + this.envFrom.add(builder); } return (A) this; } - public A withArgs(String... args) { - if (this.args != null) { - this.args.clear(); - _visitables.remove("args"); + public A addAllToPorts(Collection items) { + if (this.ports == null) { + this.ports = new ArrayList(); } - if (args != null) { - for (String item : args) { - this.addToArgs(item); - } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); } return (A) this; } - public boolean hasArgs() { - return this.args != null && !(this.args.isEmpty()); - } - - public A addToCommand(int index,String item) { - if (this.command == null) { - this.command = new ArrayList(); + public A addAllToResizePolicy(Collection items) { + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); } - this.command.add(index, item); - return (A) this; - } - - public A setToCommand(int index,String item) { - if (this.command == null) { - this.command = new ArrayList(); + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").add(builder); + this.resizePolicy.add(builder); } - this.command.set(index, item); return (A) this; } - public A addToCommand(String... items) { - if (this.command == null) { - this.command = new ArrayList(); + public A addAllToRestartPolicyRules(Collection items) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); } - for (String item : items) { - this.command.add(item); + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.add(builder); } return (A) this; } - public A addAllToCommand(Collection items) { - if (this.command == null) { - this.command = new ArrayList(); + public A addAllToVolumeDevices(Collection items) { + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); } - for (String item : items) { - this.command.add(item); + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").add(builder); + this.volumeDevices.add(builder); } return (A) this; } - public A removeFromCommand(String... items) { - if (this.command == null) { - return (A) this; + public A addAllToVolumeMounts(Collection items) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); } - for (String item : items) { - this.command.remove(item); + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); } return (A) this; } - public A removeAllFromCommand(Collection items) { - if (this.command == null) { - return (A) this; - } - for (String item : items) { - this.command.remove(item); - } - return (A) this; + public EnvNested addNewEnv() { + return new EnvNested(-1, null); } - public List getCommand() { - return this.command; + public EnvFromNested addNewEnvFrom() { + return new EnvFromNested(-1, null); } - public String getCommand(int index) { - return this.command.get(index); + public EnvFromNested addNewEnvFromLike(V1EnvFromSource item) { + return new EnvFromNested(-1, item); } - public String getFirstCommand() { - return this.command.get(0); + public EnvNested addNewEnvLike(V1EnvVar item) { + return new EnvNested(-1, item); } - public String getLastCommand() { - return this.command.get(command.size() - 1); + public PortsNested addNewPort() { + return new PortsNested(-1, null); } - public String getMatchingCommand(Predicate predicate) { - for (String item : command) { - if (predicate.test(item)) { - return item; - } - } - return null; + public PortsNested addNewPortLike(V1ContainerPort item) { + return new PortsNested(-1, item); } - public boolean hasMatchingCommand(Predicate predicate) { - for (String item : command) { - if (predicate.test(item)) { - return true; - } - } - return false; + public ResizePolicyNested addNewResizePolicy() { + return new ResizePolicyNested(-1, null); } - public A withCommand(List command) { - if (command != null) { - this.command = new ArrayList(); - for (String item : command) { - this.addToCommand(item); - } - } else { - this.command = null; - } - return (A) this; + public ResizePolicyNested addNewResizePolicyLike(V1ContainerResizePolicy item) { + return new ResizePolicyNested(-1, item); } - public A withCommand(String... command) { - if (this.command != null) { - this.command.clear(); - _visitables.remove("command"); + public RestartPolicyRulesNested addNewRestartPolicyRule() { + return new RestartPolicyRulesNested(-1, null); + } + + public RestartPolicyRulesNested addNewRestartPolicyRuleLike(V1ContainerRestartRule item) { + return new RestartPolicyRulesNested(-1, item); + } + + public VolumeDevicesNested addNewVolumeDevice() { + return new VolumeDevicesNested(-1, null); + } + + public VolumeDevicesNested addNewVolumeDeviceLike(V1VolumeDevice item) { + return new VolumeDevicesNested(-1, item); + } + + public VolumeMountsNested addNewVolumeMount() { + return new VolumeMountsNested(-1, null); + } + + public VolumeMountsNested addNewVolumeMountLike(V1VolumeMount item) { + return new VolumeMountsNested(-1, item); + } + + public A addToArgs(String... items) { + if (this.args == null) { + this.args = new ArrayList(); } - if (command != null) { - for (String item : command) { - this.addToCommand(item); - } + for (String item : items) { + this.args.add(item); } return (A) this; } - public boolean hasCommand() { - return this.command != null && !(this.command.isEmpty()); + public A addToArgs(int index,String item) { + if (this.args == null) { + this.args = new ArrayList(); + } + this.args.add(index, item); + return (A) this; } - public A addToEnv(int index,V1EnvVar item) { - if (this.env == null) { - this.env = new ArrayList(); + public A addToCommand(String... items) { + if (this.command == null) { + this.command = new ArrayList(); } - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - if (index < 0 || index >= env.size()) { - _visitables.get("env").add(builder); - env.add(builder); - } else { - _visitables.get("env").add(builder); - env.add(index, builder); + for (String item : items) { + this.command.add(item); } return (A) this; } - public A setToEnv(int index,V1EnvVar item) { - if (this.env == null) { - this.env = new ArrayList(); - } - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - if (index < 0 || index >= env.size()) { - _visitables.get("env").add(builder); - env.add(builder); - } else { - _visitables.get("env").add(builder); - env.set(index, builder); + public A addToCommand(int index,String item) { + if (this.command == null) { + this.command = new ArrayList(); } + this.command.add(index, item); return (A) this; } @@ -366,264 +264,189 @@ public A addToEnv(V1EnvVar... items) { return (A) this; } - public A addAllToEnv(Collection items) { + public A addToEnv(int index,V1EnvVar item) { if (this.env == null) { this.env = new ArrayList(); } - for (V1EnvVar item : items) { - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + if (index < 0 || index >= env.size()) { _visitables.get("env").add(builder); - this.env.add(builder); + env.add(builder); + } else { + _visitables.get("env").add(builder); + env.add(index, builder); } return (A) this; } - public A removeFromEnv(V1EnvVar... items) { - if (this.env == null) { - return (A) this; + public A addToEnvFrom(V1EnvFromSource... items) { + if (this.envFrom == null) { + this.envFrom = new ArrayList(); } - for (V1EnvVar item : items) { - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - _visitables.get("env").remove(builder); - this.env.remove(builder); + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").add(builder); + this.envFrom.add(builder); } return (A) this; } - public A removeAllFromEnv(Collection items) { - if (this.env == null) { - return (A) this; + public A addToEnvFrom(int index,V1EnvFromSource item) { + if (this.envFrom == null) { + this.envFrom = new ArrayList(); } - for (V1EnvVar item : items) { - V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - _visitables.get("env").remove(builder); - this.env.remove(builder); + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + if (index < 0 || index >= envFrom.size()) { + _visitables.get("envFrom").add(builder); + envFrom.add(builder); + } else { + _visitables.get("envFrom").add(builder); + envFrom.add(index, builder); } return (A) this; } - public A removeMatchingFromEnv(Predicate predicate) { - if (env == null) { - return (A) this; + public A addToPorts(V1ContainerPort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); } - Iterator each = env.iterator(); - List visitables = _visitables.get("env"); - while (each.hasNext()) { - V1EnvVarBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); } return (A) this; } - public List buildEnv() { - return this.env != null ? build(env) : null; - } - - public V1EnvVar buildEnv(int index) { - return this.env.get(index).build(); - } - - public V1EnvVar buildFirstEnv() { - return this.env.get(0).build(); - } - - public V1EnvVar buildLastEnv() { - return this.env.get(env.size() - 1).build(); - } - - public V1EnvVar buildMatchingEnv(Predicate predicate) { - for (V1EnvVarBuilder item : env) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A addToPorts(int index,V1ContainerPort item) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); + } + return (A) this; } - public boolean hasMatchingEnv(Predicate predicate) { - for (V1EnvVarBuilder item : env) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A addToResizePolicy(V1ContainerResizePolicy... items) { + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); + } + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").add(builder); + this.resizePolicy.add(builder); + } + return (A) this; } - public A withEnv(List env) { - if (this.env != null) { - this._visitables.get("env").clear(); + public A addToResizePolicy(int index,V1ContainerResizePolicy item) { + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); } - if (env != null) { - this.env = new ArrayList(); - for (V1EnvVar item : env) { - this.addToEnv(item); - } + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + if (index < 0 || index >= resizePolicy.size()) { + _visitables.get("resizePolicy").add(builder); + resizePolicy.add(builder); } else { - this.env = null; + _visitables.get("resizePolicy").add(builder); + resizePolicy.add(index, builder); } return (A) this; } - public A withEnv(V1EnvVar... env) { - if (this.env != null) { - this.env.clear(); - _visitables.remove("env"); + public A addToRestartPolicyRules(V1ContainerRestartRule... items) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); } - if (env != null) { - for (V1EnvVar item : env) { - this.addToEnv(item); - } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.add(builder); } return (A) this; } - public boolean hasEnv() { - return this.env != null && !(this.env.isEmpty()); - } - - public EnvNested addNewEnv() { - return new EnvNested(-1, null); - } - - public EnvNested addNewEnvLike(V1EnvVar item) { - return new EnvNested(-1, item); - } - - public EnvNested setNewEnvLike(int index,V1EnvVar item) { - return new EnvNested(index, item); - } - - public EnvNested editEnv(int index) { - if (index <= env.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "env")); - } - return this.setNewEnvLike(index, this.buildEnv(index)); - } - - public EnvNested editFirstEnv() { - if (env.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "env")); - } - return this.setNewEnvLike(0, this.buildEnv(0)); - } - - public EnvNested editLastEnv() { - int index = env.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "env")); - } - return this.setNewEnvLike(index, this.buildEnv(index)); - } - - public EnvNested editMatchingEnv(Predicate predicate) { - int index = -1; - for (int i = 0;i < env.size();i++) { - if (predicate.test(env.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "env")); - } - return this.setNewEnvLike(index, this.buildEnv(index)); - } - - public A addToEnvFrom(int index,V1EnvFromSource item) { - if (this.envFrom == null) { - this.envFrom = new ArrayList(); + public A addToRestartPolicyRules(int index,V1ContainerRestartRule item) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); } - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - if (index < 0 || index >= envFrom.size()) { - _visitables.get("envFrom").add(builder); - envFrom.add(builder); + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + if (index < 0 || index >= restartPolicyRules.size()) { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.add(builder); } else { - _visitables.get("envFrom").add(builder); - envFrom.add(index, builder); + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.add(index, builder); } return (A) this; } - public A setToEnvFrom(int index,V1EnvFromSource item) { - if (this.envFrom == null) { - this.envFrom = new ArrayList(); + public A addToVolumeDevices(V1VolumeDevice... items) { + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); } - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - if (index < 0 || index >= envFrom.size()) { - _visitables.get("envFrom").add(builder); - envFrom.add(builder); - } else { - _visitables.get("envFrom").add(builder); - envFrom.set(index, builder); + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").add(builder); + this.volumeDevices.add(builder); } return (A) this; } - public A addToEnvFrom(V1EnvFromSource... items) { - if (this.envFrom == null) { - this.envFrom = new ArrayList(); + public A addToVolumeDevices(int index,V1VolumeDevice item) { + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); } - for (V1EnvFromSource item : items) { - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").add(builder); - this.envFrom.add(builder); + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + if (index < 0 || index >= volumeDevices.size()) { + _visitables.get("volumeDevices").add(builder); + volumeDevices.add(builder); + } else { + _visitables.get("volumeDevices").add(builder); + volumeDevices.add(index, builder); } return (A) this; } - public A addAllToEnvFrom(Collection items) { - if (this.envFrom == null) { - this.envFrom = new ArrayList(); + public A addToVolumeMounts(V1VolumeMount... items) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); } - for (V1EnvFromSource item : items) { - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").add(builder); - this.envFrom.add(builder); + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); } return (A) this; } - public A removeFromEnvFrom(V1EnvFromSource... items) { - if (this.envFrom == null) { - return (A) this; + public A addToVolumeMounts(int index,V1VolumeMount item) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); } - for (V1EnvFromSource item : items) { - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").remove(builder); - this.envFrom.remove(builder); + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + if (index < 0 || index >= volumeMounts.size()) { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(builder); + } else { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(index, builder); } return (A) this; } - public A removeAllFromEnvFrom(Collection items) { - if (this.envFrom == null) { - return (A) this; - } - for (V1EnvFromSource item : items) { - V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").remove(builder); - this.envFrom.remove(builder); - } - return (A) this; + public List buildEnv() { + return this.env != null ? build(env) : null; } - public A removeMatchingFromEnvFrom(Predicate predicate) { - if (envFrom == null) { - return (A) this; - } - Iterator each = envFrom.iterator(); - List visitables = _visitables.get("envFrom"); - while (each.hasNext()) { - V1EnvFromSourceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1EnvVar buildEnv(int index) { + return this.env.get(index).build(); } public List buildEnvFrom() { @@ -634,423 +457,374 @@ public V1EnvFromSource buildEnvFrom(int index) { return this.envFrom.get(index).build(); } + public V1EnvVar buildFirstEnv() { + return this.env.get(0).build(); + } + public V1EnvFromSource buildFirstEnvFrom() { return this.envFrom.get(0).build(); } - public V1EnvFromSource buildLastEnvFrom() { - return this.envFrom.get(envFrom.size() - 1).build(); + public V1ContainerPort buildFirstPort() { + return this.ports.get(0).build(); } - public V1EnvFromSource buildMatchingEnvFrom(Predicate predicate) { - for (V1EnvFromSourceBuilder item : envFrom) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1ContainerResizePolicy buildFirstResizePolicy() { + return this.resizePolicy.get(0).build(); } - public boolean hasMatchingEnvFrom(Predicate predicate) { - for (V1EnvFromSourceBuilder item : envFrom) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ContainerRestartRule buildFirstRestartPolicyRule() { + return this.restartPolicyRules.get(0).build(); } - public A withEnvFrom(List envFrom) { - if (this.envFrom != null) { - this._visitables.get("envFrom").clear(); - } - if (envFrom != null) { - this.envFrom = new ArrayList(); - for (V1EnvFromSource item : envFrom) { - this.addToEnvFrom(item); - } - } else { - this.envFrom = null; - } - return (A) this; + public V1VolumeDevice buildFirstVolumeDevice() { + return this.volumeDevices.get(0).build(); } - public A withEnvFrom(V1EnvFromSource... envFrom) { - if (this.envFrom != null) { - this.envFrom.clear(); - _visitables.remove("envFrom"); - } - if (envFrom != null) { - for (V1EnvFromSource item : envFrom) { - this.addToEnvFrom(item); - } - } - return (A) this; + public V1VolumeMount buildFirstVolumeMount() { + return this.volumeMounts.get(0).build(); } - public boolean hasEnvFrom() { - return this.envFrom != null && !(this.envFrom.isEmpty()); + public V1EnvVar buildLastEnv() { + return this.env.get(env.size() - 1).build(); } - public EnvFromNested addNewEnvFrom() { - return new EnvFromNested(-1, null); + public V1EnvFromSource buildLastEnvFrom() { + return this.envFrom.get(envFrom.size() - 1).build(); } - public EnvFromNested addNewEnvFromLike(V1EnvFromSource item) { - return new EnvFromNested(-1, item); + public V1ContainerPort buildLastPort() { + return this.ports.get(ports.size() - 1).build(); } - public EnvFromNested setNewEnvFromLike(int index,V1EnvFromSource item) { - return new EnvFromNested(index, item); + public V1ContainerResizePolicy buildLastResizePolicy() { + return this.resizePolicy.get(resizePolicy.size() - 1).build(); } - public EnvFromNested editEnvFrom(int index) { - if (index <= envFrom.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "envFrom")); - } - return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); + public V1ContainerRestartRule buildLastRestartPolicyRule() { + return this.restartPolicyRules.get(restartPolicyRules.size() - 1).build(); } - public EnvFromNested editFirstEnvFrom() { - if (envFrom.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "envFrom")); - } - return this.setNewEnvFromLike(0, this.buildEnvFrom(0)); + public V1VolumeDevice buildLastVolumeDevice() { + return this.volumeDevices.get(volumeDevices.size() - 1).build(); } - public EnvFromNested editLastEnvFrom() { - int index = envFrom.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "envFrom")); - } - return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); + public V1VolumeMount buildLastVolumeMount() { + return this.volumeMounts.get(volumeMounts.size() - 1).build(); } - public EnvFromNested editMatchingEnvFrom(Predicate predicate) { - int index = -1; - for (int i = 0;i < envFrom.size();i++) { - if (predicate.test(envFrom.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "envFrom")); - } - return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); + public V1Lifecycle buildLifecycle() { + return this.lifecycle != null ? this.lifecycle.build() : null; } - public String getImage() { - return this.image; + public V1Probe buildLivenessProbe() { + return this.livenessProbe != null ? this.livenessProbe.build() : null; } - public A withImage(String image) { - this.image = image; - return (A) this; + public V1EnvVar buildMatchingEnv(Predicate predicate) { + for (V1EnvVarBuilder item : env) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public boolean hasImage() { - return this.image != null; + public V1EnvFromSource buildMatchingEnvFrom(Predicate predicate) { + for (V1EnvFromSourceBuilder item : envFrom) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public String getImagePullPolicy() { - return this.imagePullPolicy; + public V1ContainerPort buildMatchingPort(Predicate predicate) { + for (V1ContainerPortBuilder item : ports) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public A withImagePullPolicy(String imagePullPolicy) { - this.imagePullPolicy = imagePullPolicy; - return (A) this; + public V1ContainerResizePolicy buildMatchingResizePolicy(Predicate predicate) { + for (V1ContainerResizePolicyBuilder item : resizePolicy) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public boolean hasImagePullPolicy() { - return this.imagePullPolicy != null; + public V1ContainerRestartRule buildMatchingRestartPolicyRule(Predicate predicate) { + for (V1ContainerRestartRuleBuilder item : restartPolicyRules) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public V1Lifecycle buildLifecycle() { - return this.lifecycle != null ? this.lifecycle.build() : null; + public V1VolumeDevice buildMatchingVolumeDevice(Predicate predicate) { + for (V1VolumeDeviceBuilder item : volumeDevices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public A withLifecycle(V1Lifecycle lifecycle) { - this._visitables.remove("lifecycle"); - if (lifecycle != null) { - this.lifecycle = new V1LifecycleBuilder(lifecycle); - this._visitables.get("lifecycle").add(this.lifecycle); - } else { - this.lifecycle = null; - this._visitables.get("lifecycle").remove(this.lifecycle); - } - return (A) this; + public V1VolumeMount buildMatchingVolumeMount(Predicate predicate) { + for (V1VolumeMountBuilder item : volumeMounts) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public boolean hasLifecycle() { - return this.lifecycle != null; + public V1ContainerPort buildPort(int index) { + return this.ports.get(index).build(); } - public LifecycleNested withNewLifecycle() { - return new LifecycleNested(null); + public List buildPorts() { + return this.ports != null ? build(ports) : null; } - public LifecycleNested withNewLifecycleLike(V1Lifecycle item) { - return new LifecycleNested(item); + public V1Probe buildReadinessProbe() { + return this.readinessProbe != null ? this.readinessProbe.build() : null; } - public LifecycleNested editLifecycle() { - return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(null)); + public List buildResizePolicy() { + return this.resizePolicy != null ? build(resizePolicy) : null; } - public LifecycleNested editOrNewLifecycle() { - return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(new V1LifecycleBuilder().build())); + public V1ContainerResizePolicy buildResizePolicy(int index) { + return this.resizePolicy.get(index).build(); } - public LifecycleNested editOrNewLifecycleLike(V1Lifecycle item) { - return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(item)); + public V1ResourceRequirements buildResources() { + return this.resources != null ? this.resources.build() : null; } - public V1Probe buildLivenessProbe() { - return this.livenessProbe != null ? this.livenessProbe.build() : null; + public V1ContainerRestartRule buildRestartPolicyRule(int index) { + return this.restartPolicyRules.get(index).build(); } - public A withLivenessProbe(V1Probe livenessProbe) { - this._visitables.remove("livenessProbe"); - if (livenessProbe != null) { - this.livenessProbe = new V1ProbeBuilder(livenessProbe); - this._visitables.get("livenessProbe").add(this.livenessProbe); - } else { - this.livenessProbe = null; - this._visitables.get("livenessProbe").remove(this.livenessProbe); - } - return (A) this; + public List buildRestartPolicyRules() { + return this.restartPolicyRules != null ? build(restartPolicyRules) : null; } - public boolean hasLivenessProbe() { - return this.livenessProbe != null; + public V1SecurityContext buildSecurityContext() { + return this.securityContext != null ? this.securityContext.build() : null; } - public LivenessProbeNested withNewLivenessProbe() { - return new LivenessProbeNested(null); + public V1Probe buildStartupProbe() { + return this.startupProbe != null ? this.startupProbe.build() : null; } - public LivenessProbeNested withNewLivenessProbeLike(V1Probe item) { - return new LivenessProbeNested(item); + public V1VolumeDevice buildVolumeDevice(int index) { + return this.volumeDevices.get(index).build(); } - public LivenessProbeNested editLivenessProbe() { - return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(null)); + public List buildVolumeDevices() { + return this.volumeDevices != null ? build(volumeDevices) : null; } - public LivenessProbeNested editOrNewLivenessProbe() { - return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(new V1ProbeBuilder().build())); + public V1VolumeMount buildVolumeMount(int index) { + return this.volumeMounts.get(index).build(); } - public LivenessProbeNested editOrNewLivenessProbeLike(V1Probe item) { - return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(item)); + public List buildVolumeMounts() { + return this.volumeMounts != null ? build(volumeMounts) : null; } - public String getName() { - return this.name; + protected void copyInstance(V1EphemeralContainer instance) { + instance = instance != null ? instance : new V1EphemeralContainer(); + if (instance != null) { + this.withArgs(instance.getArgs()); + this.withCommand(instance.getCommand()); + this.withEnv(instance.getEnv()); + this.withEnvFrom(instance.getEnvFrom()); + this.withImage(instance.getImage()); + this.withImagePullPolicy(instance.getImagePullPolicy()); + this.withLifecycle(instance.getLifecycle()); + this.withLivenessProbe(instance.getLivenessProbe()); + this.withName(instance.getName()); + this.withPorts(instance.getPorts()); + this.withReadinessProbe(instance.getReadinessProbe()); + this.withResizePolicy(instance.getResizePolicy()); + this.withResources(instance.getResources()); + this.withRestartPolicy(instance.getRestartPolicy()); + this.withRestartPolicyRules(instance.getRestartPolicyRules()); + this.withSecurityContext(instance.getSecurityContext()); + this.withStartupProbe(instance.getStartupProbe()); + this.withStdin(instance.getStdin()); + this.withStdinOnce(instance.getStdinOnce()); + this.withTargetContainerName(instance.getTargetContainerName()); + this.withTerminationMessagePath(instance.getTerminationMessagePath()); + this.withTerminationMessagePolicy(instance.getTerminationMessagePolicy()); + this.withTty(instance.getTty()); + this.withVolumeDevices(instance.getVolumeDevices()); + this.withVolumeMounts(instance.getVolumeMounts()); + this.withWorkingDir(instance.getWorkingDir()); + } } - public A withName(String name) { - this.name = name; - return (A) this; + public EnvNested editEnv(int index) { + if (env.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "env")); + } + return this.setNewEnvLike(index, this.buildEnv(index)); } - public boolean hasName() { - return this.name != null; + public EnvFromNested editEnvFrom(int index) { + if (envFrom.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "envFrom")); + } + return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); } - public A addToPorts(int index,V1ContainerPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); - } else { - _visitables.get("ports").add(builder); - ports.add(index, builder); + public EnvNested editFirstEnv() { + if (env.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "env")); } - return (A) this; + return this.setNewEnvLike(0, this.buildEnv(0)); } - public A setToPorts(int index,V1ContainerPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); - } else { - _visitables.get("ports").add(builder); - ports.set(index, builder); + public EnvFromNested editFirstEnvFrom() { + if (envFrom.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "envFrom")); } - return (A) this; + return this.setNewEnvFromLike(0, this.buildEnvFrom(0)); } - public A addToPorts(V1ContainerPort... items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (V1ContainerPort item : items) { - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); + public PortsNested editFirstPort() { + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); } - return (A) this; + return this.setNewPortLike(0, this.buildPort(0)); } - public A addAllToPorts(Collection items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (V1ContainerPort item : items) { - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); + public ResizePolicyNested editFirstResizePolicy() { + if (resizePolicy.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resizePolicy")); } - return (A) this; + return this.setNewResizePolicyLike(0, this.buildResizePolicy(0)); } - public A removeFromPorts(V1ContainerPort... items) { - if (this.ports == null) { - return (A) this; + public RestartPolicyRulesNested editFirstRestartPolicyRule() { + if (restartPolicyRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "restartPolicyRules")); } - for (V1ContainerPort item : items) { - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").remove(builder); - this.ports.remove(builder); - } - return (A) this; + return this.setNewRestartPolicyRuleLike(0, this.buildRestartPolicyRule(0)); } - public A removeAllFromPorts(Collection items) { - if (this.ports == null) { - return (A) this; - } - for (V1ContainerPort item : items) { - V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").remove(builder); - this.ports.remove(builder); + public VolumeDevicesNested editFirstVolumeDevice() { + if (volumeDevices.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeDevices")); } - return (A) this; + return this.setNewVolumeDeviceLike(0, this.buildVolumeDevice(0)); } - public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) { - return (A) this; - } - Iterator each = ports.iterator(); - List visitables = _visitables.get("ports"); - while (each.hasNext()) { - V1ContainerPortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public VolumeMountsNested editFirstVolumeMount() { + if (volumeMounts.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeMounts")); } - return (A) this; - } - - public List buildPorts() { - return this.ports != null ? build(ports) : null; - } - - public V1ContainerPort buildPort(int index) { - return this.ports.get(index).build(); - } - - public V1ContainerPort buildFirstPort() { - return this.ports.get(0).build(); + return this.setNewVolumeMountLike(0, this.buildVolumeMount(0)); } - public V1ContainerPort buildLastPort() { - return this.ports.get(ports.size() - 1).build(); + public EnvNested editLastEnv() { + int index = env.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "env")); + } + return this.setNewEnvLike(index, this.buildEnv(index)); } - public V1ContainerPort buildMatchingPort(Predicate predicate) { - for (V1ContainerPortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public EnvFromNested editLastEnvFrom() { + int index = envFrom.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "envFrom")); + } + return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); } - public boolean hasMatchingPort(Predicate predicate) { - for (V1ContainerPortBuilder item : ports) { - if (predicate.test(item)) { - return true; - } - } - return false; + public PortsNested editLastPort() { + int index = ports.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public A withPorts(List ports) { - if (this.ports != null) { - this._visitables.get("ports").clear(); - } - if (ports != null) { - this.ports = new ArrayList(); - for (V1ContainerPort item : ports) { - this.addToPorts(item); - } - } else { - this.ports = null; + public ResizePolicyNested editLastResizePolicy() { + int index = resizePolicy.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resizePolicy")); } - return (A) this; + return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); } - public A withPorts(V1ContainerPort... ports) { - if (this.ports != null) { - this.ports.clear(); - _visitables.remove("ports"); - } - if (ports != null) { - for (V1ContainerPort item : ports) { - this.addToPorts(item); - } + public RestartPolicyRulesNested editLastRestartPolicyRule() { + int index = restartPolicyRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "restartPolicyRules")); } - return (A) this; + return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); } - public boolean hasPorts() { - return this.ports != null && !(this.ports.isEmpty()); + public VolumeDevicesNested editLastVolumeDevice() { + int index = volumeDevices.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeDevices")); + } + return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); } - public PortsNested addNewPort() { - return new PortsNested(-1, null); + public VolumeMountsNested editLastVolumeMount() { + int index = volumeMounts.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } - public PortsNested addNewPortLike(V1ContainerPort item) { - return new PortsNested(-1, item); + public LifecycleNested editLifecycle() { + return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(null)); } - public PortsNested setNewPortLike(int index,V1ContainerPort item) { - return new PortsNested(index, item); + public LivenessProbeNested editLivenessProbe() { + return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(null)); } - public PortsNested editPort(int index) { - if (index <= ports.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + public EnvNested editMatchingEnv(Predicate predicate) { + int index = -1; + for (int i = 0;i < env.size();i++) { + if (predicate.test(env.get(i))) { + index = i; + break; + } } - return this.setNewPortLike(index, this.buildPort(index)); - } - - public PortsNested editFirstPort() { - if (ports.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "env")); } - return this.setNewPortLike(0, this.buildPort(0)); + return this.setNewEnvLike(index, this.buildEnv(index)); } - public PortsNested editLastPort() { - int index = ports.size() - 1; + public EnvFromNested editMatchingEnvFrom(Predicate predicate) { + int index = -1; + for (int i = 0;i < envFrom.size();i++) { + if (predicate.test(envFrom.get(i))) { + index = i; + break; + } + } if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "envFrom")); } - return this.setNewPortLike(index, this.buildPort(index)); + return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); } public PortsNested editMatchingPort(Predicate predicate) { @@ -1067,36 +841,76 @@ public PortsNested editMatchingPort(Predicate predica return this.setNewPortLike(index, this.buildPort(index)); } - public V1Probe buildReadinessProbe() { - return this.readinessProbe != null ? this.readinessProbe.build() : null; + public ResizePolicyNested editMatchingResizePolicy(Predicate predicate) { + int index = -1; + for (int i = 0;i < resizePolicy.size();i++) { + if (predicate.test(resizePolicy.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resizePolicy")); + } + return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); } - public A withReadinessProbe(V1Probe readinessProbe) { - this._visitables.remove("readinessProbe"); - if (readinessProbe != null) { - this.readinessProbe = new V1ProbeBuilder(readinessProbe); - this._visitables.get("readinessProbe").add(this.readinessProbe); - } else { - this.readinessProbe = null; - this._visitables.get("readinessProbe").remove(this.readinessProbe); + public RestartPolicyRulesNested editMatchingRestartPolicyRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < restartPolicyRules.size();i++) { + if (predicate.test(restartPolicyRules.get(i))) { + index = i; + break; + } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "restartPolicyRules")); + } + return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); } - public boolean hasReadinessProbe() { - return this.readinessProbe != null; + public VolumeDevicesNested editMatchingVolumeDevice(Predicate predicate) { + int index = -1; + for (int i = 0;i < volumeDevices.size();i++) { + if (predicate.test(volumeDevices.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumeDevices")); + } + return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); } - public ReadinessProbeNested withNewReadinessProbe() { - return new ReadinessProbeNested(null); + public VolumeMountsNested editMatchingVolumeMount(Predicate predicate) { + int index = -1; + for (int i = 0;i < volumeMounts.size();i++) { + if (predicate.test(volumeMounts.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } - public ReadinessProbeNested withNewReadinessProbeLike(V1Probe item) { - return new ReadinessProbeNested(item); + public LifecycleNested editOrNewLifecycle() { + return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(new V1LifecycleBuilder().build())); } - public ReadinessProbeNested editReadinessProbe() { - return this.withNewReadinessProbeLike(Optional.ofNullable(this.buildReadinessProbe()).orElse(null)); + public LifecycleNested editOrNewLifecycleLike(V1Lifecycle item) { + return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(item)); + } + + public LivenessProbeNested editOrNewLivenessProbe() { + return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(new V1ProbeBuilder().build())); + } + + public LivenessProbeNested editOrNewLivenessProbeLike(V1Probe item) { + return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(item)); } public ReadinessProbeNested editOrNewReadinessProbe() { @@ -1107,388 +921,310 @@ public ReadinessProbeNested editOrNewReadinessProbeLike(V1Probe item) { return this.withNewReadinessProbeLike(Optional.ofNullable(this.buildReadinessProbe()).orElse(item)); } - public A addToResizePolicy(int index,V1ContainerResizePolicy item) { - if (this.resizePolicy == null) { - this.resizePolicy = new ArrayList(); - } - V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - if (index < 0 || index >= resizePolicy.size()) { - _visitables.get("resizePolicy").add(builder); - resizePolicy.add(builder); - } else { - _visitables.get("resizePolicy").add(builder); - resizePolicy.add(index, builder); - } - return (A) this; + public ResourcesNested editOrNewResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); } - public A setToResizePolicy(int index,V1ContainerResizePolicy item) { - if (this.resizePolicy == null) { - this.resizePolicy = new ArrayList(); - } - V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - if (index < 0 || index >= resizePolicy.size()) { - _visitables.get("resizePolicy").add(builder); - resizePolicy.add(builder); - } else { - _visitables.get("resizePolicy").add(builder); - resizePolicy.set(index, builder); - } - return (A) this; + public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); } - public A addToResizePolicy(V1ContainerResizePolicy... items) { - if (this.resizePolicy == null) { - this.resizePolicy = new ArrayList(); - } - for (V1ContainerResizePolicy item : items) { - V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - _visitables.get("resizePolicy").add(builder); - this.resizePolicy.add(builder); - } - return (A) this; + public SecurityContextNested editOrNewSecurityContext() { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(new V1SecurityContextBuilder().build())); } - public A addAllToResizePolicy(Collection items) { - if (this.resizePolicy == null) { - this.resizePolicy = new ArrayList(); - } - for (V1ContainerResizePolicy item : items) { - V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - _visitables.get("resizePolicy").add(builder); - this.resizePolicy.add(builder); - } - return (A) this; + public SecurityContextNested editOrNewSecurityContextLike(V1SecurityContext item) { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(item)); } - public A removeFromResizePolicy(V1ContainerResizePolicy... items) { - if (this.resizePolicy == null) { - return (A) this; - } - for (V1ContainerResizePolicy item : items) { - V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - _visitables.get("resizePolicy").remove(builder); - this.resizePolicy.remove(builder); - } - return (A) this; + public StartupProbeNested editOrNewStartupProbe() { + return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(new V1ProbeBuilder().build())); } - public A removeAllFromResizePolicy(Collection items) { - if (this.resizePolicy == null) { - return (A) this; - } - for (V1ContainerResizePolicy item : items) { - V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - _visitables.get("resizePolicy").remove(builder); - this.resizePolicy.remove(builder); - } - return (A) this; + public StartupProbeNested editOrNewStartupProbeLike(V1Probe item) { + return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(item)); } - public A removeMatchingFromResizePolicy(Predicate predicate) { - if (resizePolicy == null) { - return (A) this; - } - Iterator each = resizePolicy.iterator(); - List visitables = _visitables.get("resizePolicy"); - while (each.hasNext()) { - V1ContainerResizePolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public PortsNested editPort(int index) { + if (ports.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); } - return (A) this; + return this.setNewPortLike(index, this.buildPort(index)); } - public List buildResizePolicy() { - return this.resizePolicy != null ? build(resizePolicy) : null; + public ReadinessProbeNested editReadinessProbe() { + return this.withNewReadinessProbeLike(Optional.ofNullable(this.buildReadinessProbe()).orElse(null)); } - public V1ContainerResizePolicy buildResizePolicy(int index) { - return this.resizePolicy.get(index).build(); + public ResizePolicyNested editResizePolicy(int index) { + if (resizePolicy.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resizePolicy")); + } + return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); } - public V1ContainerResizePolicy buildFirstResizePolicy() { - return this.resizePolicy.get(0).build(); + public ResourcesNested editResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); } - public V1ContainerResizePolicy buildLastResizePolicy() { - return this.resizePolicy.get(resizePolicy.size() - 1).build(); + public RestartPolicyRulesNested editRestartPolicyRule(int index) { + if (restartPolicyRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "restartPolicyRules")); + } + return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); } - public V1ContainerResizePolicy buildMatchingResizePolicy(Predicate predicate) { - for (V1ContainerResizePolicyBuilder item : resizePolicy) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public SecurityContextNested editSecurityContext() { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(null)); } - public boolean hasMatchingResizePolicy(Predicate predicate) { - for (V1ContainerResizePolicyBuilder item : resizePolicy) { - if (predicate.test(item)) { - return true; - } - } - return false; + public StartupProbeNested editStartupProbe() { + return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(null)); } - public A withResizePolicy(List resizePolicy) { - if (this.resizePolicy != null) { - this._visitables.get("resizePolicy").clear(); + public VolumeDevicesNested editVolumeDevice(int index) { + if (volumeDevices.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeDevices")); } - if (resizePolicy != null) { - this.resizePolicy = new ArrayList(); - for (V1ContainerResizePolicy item : resizePolicy) { - this.addToResizePolicy(item); - } - } else { - this.resizePolicy = null; + return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); + } + + public VolumeMountsNested editVolumeMount(int index) { + if (volumeMounts.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeMounts")); } - return (A) this; + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } - public A withResizePolicy(V1ContainerResizePolicy... resizePolicy) { - if (this.resizePolicy != null) { - this.resizePolicy.clear(); - _visitables.remove("resizePolicy"); + public boolean equals(Object o) { + if (this == o) { + return true; } - if (resizePolicy != null) { - for (V1ContainerResizePolicy item : resizePolicy) { - this.addToResizePolicy(item); - } + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1EphemeralContainerFluent that = (V1EphemeralContainerFluent) o; + if (!(Objects.equals(args, that.args))) { + return false; + } + if (!(Objects.equals(command, that.command))) { + return false; + } + if (!(Objects.equals(env, that.env))) { + return false; + } + if (!(Objects.equals(envFrom, that.envFrom))) { + return false; + } + if (!(Objects.equals(image, that.image))) { + return false; + } + if (!(Objects.equals(imagePullPolicy, that.imagePullPolicy))) { + return false; + } + if (!(Objects.equals(lifecycle, that.lifecycle))) { + return false; + } + if (!(Objects.equals(livenessProbe, that.livenessProbe))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(ports, that.ports))) { + return false; + } + if (!(Objects.equals(readinessProbe, that.readinessProbe))) { + return false; + } + if (!(Objects.equals(resizePolicy, that.resizePolicy))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(restartPolicy, that.restartPolicy))) { + return false; + } + if (!(Objects.equals(restartPolicyRules, that.restartPolicyRules))) { + return false; + } + if (!(Objects.equals(securityContext, that.securityContext))) { + return false; + } + if (!(Objects.equals(startupProbe, that.startupProbe))) { + return false; + } + if (!(Objects.equals(stdin, that.stdin))) { + return false; + } + if (!(Objects.equals(stdinOnce, that.stdinOnce))) { + return false; + } + if (!(Objects.equals(targetContainerName, that.targetContainerName))) { + return false; + } + if (!(Objects.equals(terminationMessagePath, that.terminationMessagePath))) { + return false; + } + if (!(Objects.equals(terminationMessagePolicy, that.terminationMessagePolicy))) { + return false; + } + if (!(Objects.equals(tty, that.tty))) { + return false; + } + if (!(Objects.equals(volumeDevices, that.volumeDevices))) { + return false; + } + if (!(Objects.equals(volumeMounts, that.volumeMounts))) { + return false; + } + if (!(Objects.equals(workingDir, that.workingDir))) { + return false; + } + return true; } - public boolean hasResizePolicy() { - return this.resizePolicy != null && !(this.resizePolicy.isEmpty()); + public String getArg(int index) { + return this.args.get(index); } - public ResizePolicyNested addNewResizePolicy() { - return new ResizePolicyNested(-1, null); + public List getArgs() { + return this.args; } - public ResizePolicyNested addNewResizePolicyLike(V1ContainerResizePolicy item) { - return new ResizePolicyNested(-1, item); + public List getCommand() { + return this.command; } - public ResizePolicyNested setNewResizePolicyLike(int index,V1ContainerResizePolicy item) { - return new ResizePolicyNested(index, item); - } - - public ResizePolicyNested editResizePolicy(int index) { - if (index <= resizePolicy.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resizePolicy")); - } - return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); + public String getCommand(int index) { + return this.command.get(index); } - public ResizePolicyNested editFirstResizePolicy() { - if (resizePolicy.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resizePolicy")); - } - return this.setNewResizePolicyLike(0, this.buildResizePolicy(0)); + public String getFirstArg() { + return this.args.get(0); } - public ResizePolicyNested editLastResizePolicy() { - int index = resizePolicy.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resizePolicy")); - } - return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); + public String getFirstCommand() { + return this.command.get(0); } - public ResizePolicyNested editMatchingResizePolicy(Predicate predicate) { - int index = -1; - for (int i = 0;i < resizePolicy.size();i++) { - if (predicate.test(resizePolicy.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resizePolicy")); - } - return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); + public String getImage() { + return this.image; } - public V1ResourceRequirements buildResources() { - return this.resources != null ? this.resources.build() : null; + public String getImagePullPolicy() { + return this.imagePullPolicy; } - public A withResources(V1ResourceRequirements resources) { - this._visitables.remove("resources"); - if (resources != null) { - this.resources = new V1ResourceRequirementsBuilder(resources); - this._visitables.get("resources").add(this.resources); - } else { - this.resources = null; - this._visitables.get("resources").remove(this.resources); - } - return (A) this; + public String getLastArg() { + return this.args.get(args.size() - 1); } - public boolean hasResources() { - return this.resources != null; + public String getLastCommand() { + return this.command.get(command.size() - 1); } - public ResourcesNested withNewResources() { - return new ResourcesNested(null); + public String getMatchingArg(Predicate predicate) { + for (String item : args) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { - return new ResourcesNested(item); + public String getMatchingCommand(Predicate predicate) { + for (String item : command) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public ResourcesNested editResources() { - return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); + public String getName() { + return this.name; } - public ResourcesNested editOrNewResources() { - return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); + public String getRestartPolicy() { + return this.restartPolicy; } - public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { - return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); + public Boolean getStdin() { + return this.stdin; } - public String getRestartPolicy() { - return this.restartPolicy; + public Boolean getStdinOnce() { + return this.stdinOnce; } - public A withRestartPolicy(String restartPolicy) { - this.restartPolicy = restartPolicy; - return (A) this; + public String getTargetContainerName() { + return this.targetContainerName; } - public boolean hasRestartPolicy() { - return this.restartPolicy != null; + public String getTerminationMessagePath() { + return this.terminationMessagePath; } - public A addToRestartPolicyRules(int index,V1ContainerRestartRule item) { - if (this.restartPolicyRules == null) { - this.restartPolicyRules = new ArrayList(); - } - V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - if (index < 0 || index >= restartPolicyRules.size()) { - _visitables.get("restartPolicyRules").add(builder); - restartPolicyRules.add(builder); - } else { - _visitables.get("restartPolicyRules").add(builder); - restartPolicyRules.add(index, builder); - } - return (A) this; + public String getTerminationMessagePolicy() { + return this.terminationMessagePolicy; } - public A setToRestartPolicyRules(int index,V1ContainerRestartRule item) { - if (this.restartPolicyRules == null) { - this.restartPolicyRules = new ArrayList(); - } - V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - if (index < 0 || index >= restartPolicyRules.size()) { - _visitables.get("restartPolicyRules").add(builder); - restartPolicyRules.add(builder); - } else { - _visitables.get("restartPolicyRules").add(builder); - restartPolicyRules.set(index, builder); - } - return (A) this; + public Boolean getTty() { + return this.tty; } - public A addToRestartPolicyRules(V1ContainerRestartRule... items) { - if (this.restartPolicyRules == null) { - this.restartPolicyRules = new ArrayList(); - } - for (V1ContainerRestartRule item : items) { - V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - _visitables.get("restartPolicyRules").add(builder); - this.restartPolicyRules.add(builder); - } - return (A) this; + public String getWorkingDir() { + return this.workingDir; } - public A addAllToRestartPolicyRules(Collection items) { - if (this.restartPolicyRules == null) { - this.restartPolicyRules = new ArrayList(); - } - for (V1ContainerRestartRule item : items) { - V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - _visitables.get("restartPolicyRules").add(builder); - this.restartPolicyRules.add(builder); - } - return (A) this; + public boolean hasArgs() { + return this.args != null && !(this.args.isEmpty()); } - public A removeFromRestartPolicyRules(V1ContainerRestartRule... items) { - if (this.restartPolicyRules == null) { - return (A) this; - } - for (V1ContainerRestartRule item : items) { - V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - _visitables.get("restartPolicyRules").remove(builder); - this.restartPolicyRules.remove(builder); - } - return (A) this; + public boolean hasCommand() { + return this.command != null && !(this.command.isEmpty()); } - public A removeAllFromRestartPolicyRules(Collection items) { - if (this.restartPolicyRules == null) { - return (A) this; - } - for (V1ContainerRestartRule item : items) { - V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - _visitables.get("restartPolicyRules").remove(builder); - this.restartPolicyRules.remove(builder); - } - return (A) this; + public boolean hasEnv() { + return this.env != null && !(this.env.isEmpty()); } - public A removeMatchingFromRestartPolicyRules(Predicate predicate) { - if (restartPolicyRules == null) { - return (A) this; - } - Iterator each = restartPolicyRules.iterator(); - List visitables = _visitables.get("restartPolicyRules"); - while (each.hasNext()) { - V1ContainerRestartRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public boolean hasEnvFrom() { + return this.envFrom != null && !(this.envFrom.isEmpty()); } - public List buildRestartPolicyRules() { - return this.restartPolicyRules != null ? build(restartPolicyRules) : null; + public boolean hasImage() { + return this.image != null; } - public V1ContainerRestartRule buildRestartPolicyRule(int index) { - return this.restartPolicyRules.get(index).build(); + public boolean hasImagePullPolicy() { + return this.imagePullPolicy != null; } - public V1ContainerRestartRule buildFirstRestartPolicyRule() { - return this.restartPolicyRules.get(0).build(); + public boolean hasLifecycle() { + return this.lifecycle != null; } - public V1ContainerRestartRule buildLastRestartPolicyRule() { - return this.restartPolicyRules.get(restartPolicyRules.size() - 1).build(); + public boolean hasLivenessProbe() { + return this.livenessProbe != null; } - public V1ContainerRestartRule buildMatchingRestartPolicyRule(Predicate predicate) { - for (V1ContainerRestartRuleBuilder item : restartPolicyRules) { + public boolean hasMatchingArg(Predicate predicate) { + for (String item : args) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } - public boolean hasMatchingRestartPolicyRule(Predicate predicate) { - for (V1ContainerRestartRuleBuilder item : restartPolicyRules) { + public boolean hasMatchingCommand(Predicate predicate) { + for (String item : command) { if (predicate.test(item)) { return true; } @@ -1496,519 +1232,342 @@ public boolean hasMatchingRestartPolicyRule(Predicate restartPolicyRules) { - if (this.restartPolicyRules != null) { - this._visitables.get("restartPolicyRules").clear(); - } - if (restartPolicyRules != null) { - this.restartPolicyRules = new ArrayList(); - for (V1ContainerRestartRule item : restartPolicyRules) { - this.addToRestartPolicyRules(item); + public boolean hasMatchingEnv(Predicate predicate) { + for (V1EnvVarBuilder item : env) { + if (predicate.test(item)) { + return true; } - } else { - this.restartPolicyRules = null; - } - return (A) this; + } + return false; } - public A withRestartPolicyRules(V1ContainerRestartRule... restartPolicyRules) { - if (this.restartPolicyRules != null) { - this.restartPolicyRules.clear(); - _visitables.remove("restartPolicyRules"); - } - if (restartPolicyRules != null) { - for (V1ContainerRestartRule item : restartPolicyRules) { - this.addToRestartPolicyRules(item); + public boolean hasMatchingEnvFrom(Predicate predicate) { + for (V1EnvFromSourceBuilder item : envFrom) { + if (predicate.test(item)) { + return true; + } } - } - return (A) this; + return false; } - public boolean hasRestartPolicyRules() { - return this.restartPolicyRules != null && !(this.restartPolicyRules.isEmpty()); - } - - public RestartPolicyRulesNested addNewRestartPolicyRule() { - return new RestartPolicyRulesNested(-1, null); - } - - public RestartPolicyRulesNested addNewRestartPolicyRuleLike(V1ContainerRestartRule item) { - return new RestartPolicyRulesNested(-1, item); - } - - public RestartPolicyRulesNested setNewRestartPolicyRuleLike(int index,V1ContainerRestartRule item) { - return new RestartPolicyRulesNested(index, item); - } - - public RestartPolicyRulesNested editRestartPolicyRule(int index) { - if (index <= restartPolicyRules.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "restartPolicyRules")); - } - return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); - } - - public RestartPolicyRulesNested editFirstRestartPolicyRule() { - if (restartPolicyRules.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "restartPolicyRules")); - } - return this.setNewRestartPolicyRuleLike(0, this.buildRestartPolicyRule(0)); + public boolean hasMatchingPort(Predicate predicate) { + for (V1ContainerPortBuilder item : ports) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public RestartPolicyRulesNested editLastRestartPolicyRule() { - int index = restartPolicyRules.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "restartPolicyRules")); - } - return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); + public boolean hasMatchingResizePolicy(Predicate predicate) { + for (V1ContainerResizePolicyBuilder item : resizePolicy) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public RestartPolicyRulesNested editMatchingRestartPolicyRule(Predicate predicate) { - int index = -1; - for (int i = 0;i < restartPolicyRules.size();i++) { - if (predicate.test(restartPolicyRules.get(i))) { - index = i; - break; + public boolean hasMatchingRestartPolicyRule(Predicate predicate) { + for (V1ContainerRestartRuleBuilder item : restartPolicyRules) { + if (predicate.test(item)) { + return true; + } } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "restartPolicyRules")); - } - return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); + return false; } - public V1SecurityContext buildSecurityContext() { - return this.securityContext != null ? this.securityContext.build() : null; + public boolean hasMatchingVolumeDevice(Predicate predicate) { + for (V1VolumeDeviceBuilder item : volumeDevices) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A withSecurityContext(V1SecurityContext securityContext) { - this._visitables.remove("securityContext"); - if (securityContext != null) { - this.securityContext = new V1SecurityContextBuilder(securityContext); - this._visitables.get("securityContext").add(this.securityContext); - } else { - this.securityContext = null; - this._visitables.get("securityContext").remove(this.securityContext); - } - return (A) this; + public boolean hasMatchingVolumeMount(Predicate predicate) { + for (V1VolumeMountBuilder item : volumeMounts) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public boolean hasSecurityContext() { - return this.securityContext != null; + public boolean hasName() { + return this.name != null; } - public SecurityContextNested withNewSecurityContext() { - return new SecurityContextNested(null); + public boolean hasPorts() { + return this.ports != null && !(this.ports.isEmpty()); } - public SecurityContextNested withNewSecurityContextLike(V1SecurityContext item) { - return new SecurityContextNested(item); + public boolean hasReadinessProbe() { + return this.readinessProbe != null; } - public SecurityContextNested editSecurityContext() { - return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(null)); + public boolean hasResizePolicy() { + return this.resizePolicy != null && !(this.resizePolicy.isEmpty()); } - public SecurityContextNested editOrNewSecurityContext() { - return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(new V1SecurityContextBuilder().build())); + public boolean hasResources() { + return this.resources != null; } - public SecurityContextNested editOrNewSecurityContextLike(V1SecurityContext item) { - return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(item)); + public boolean hasRestartPolicy() { + return this.restartPolicy != null; } - public V1Probe buildStartupProbe() { - return this.startupProbe != null ? this.startupProbe.build() : null; + public boolean hasRestartPolicyRules() { + return this.restartPolicyRules != null && !(this.restartPolicyRules.isEmpty()); } - public A withStartupProbe(V1Probe startupProbe) { - this._visitables.remove("startupProbe"); - if (startupProbe != null) { - this.startupProbe = new V1ProbeBuilder(startupProbe); - this._visitables.get("startupProbe").add(this.startupProbe); - } else { - this.startupProbe = null; - this._visitables.get("startupProbe").remove(this.startupProbe); - } - return (A) this; + public boolean hasSecurityContext() { + return this.securityContext != null; } public boolean hasStartupProbe() { return this.startupProbe != null; } - public StartupProbeNested withNewStartupProbe() { - return new StartupProbeNested(null); - } - - public StartupProbeNested withNewStartupProbeLike(V1Probe item) { - return new StartupProbeNested(item); - } - - public StartupProbeNested editStartupProbe() { - return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(null)); - } - - public StartupProbeNested editOrNewStartupProbe() { - return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(new V1ProbeBuilder().build())); - } - - public StartupProbeNested editOrNewStartupProbeLike(V1Probe item) { - return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(item)); - } - - public Boolean getStdin() { - return this.stdin; - } - - public A withStdin(Boolean stdin) { - this.stdin = stdin; - return (A) this; - } - public boolean hasStdin() { return this.stdin != null; } - public Boolean getStdinOnce() { - return this.stdinOnce; - } - - public A withStdinOnce(Boolean stdinOnce) { - this.stdinOnce = stdinOnce; - return (A) this; - } - public boolean hasStdinOnce() { return this.stdinOnce != null; } - public String getTargetContainerName() { - return this.targetContainerName; - } - - public A withTargetContainerName(String targetContainerName) { - this.targetContainerName = targetContainerName; - return (A) this; - } - public boolean hasTargetContainerName() { return this.targetContainerName != null; } - public String getTerminationMessagePath() { - return this.terminationMessagePath; - } - - public A withTerminationMessagePath(String terminationMessagePath) { - this.terminationMessagePath = terminationMessagePath; - return (A) this; - } - public boolean hasTerminationMessagePath() { return this.terminationMessagePath != null; } - public String getTerminationMessagePolicy() { - return this.terminationMessagePolicy; + public boolean hasTerminationMessagePolicy() { + return this.terminationMessagePolicy != null; } - public A withTerminationMessagePolicy(String terminationMessagePolicy) { - this.terminationMessagePolicy = terminationMessagePolicy; - return (A) this; + public boolean hasTty() { + return this.tty != null; } - public boolean hasTerminationMessagePolicy() { - return this.terminationMessagePolicy != null; + public boolean hasVolumeDevices() { + return this.volumeDevices != null && !(this.volumeDevices.isEmpty()); } - public Boolean getTty() { - return this.tty; + public boolean hasVolumeMounts() { + return this.volumeMounts != null && !(this.volumeMounts.isEmpty()); } - public A withTty(Boolean tty) { - this.tty = tty; - return (A) this; + public boolean hasWorkingDir() { + return this.workingDir != null; } - public boolean hasTty() { - return this.tty != null; + public int hashCode() { + return Objects.hash(args, command, env, envFrom, image, imagePullPolicy, lifecycle, livenessProbe, name, ports, readinessProbe, resizePolicy, resources, restartPolicy, restartPolicyRules, securityContext, startupProbe, stdin, stdinOnce, targetContainerName, terminationMessagePath, terminationMessagePolicy, tty, volumeDevices, volumeMounts, workingDir); } - public A addToVolumeDevices(int index,V1VolumeDevice item) { - if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); + public A removeAllFromArgs(Collection items) { + if (this.args == null) { + return (A) this; } - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - if (index < 0 || index >= volumeDevices.size()) { - _visitables.get("volumeDevices").add(builder); - volumeDevices.add(builder); - } else { - _visitables.get("volumeDevices").add(builder); - volumeDevices.add(index, builder); + for (String item : items) { + this.args.remove(item); } return (A) this; } - public A setToVolumeDevices(int index,V1VolumeDevice item) { - if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); + public A removeAllFromCommand(Collection items) { + if (this.command == null) { + return (A) this; } - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - if (index < 0 || index >= volumeDevices.size()) { - _visitables.get("volumeDevices").add(builder); - volumeDevices.add(builder); - } else { - _visitables.get("volumeDevices").add(builder); - volumeDevices.set(index, builder); + for (String item : items) { + this.command.remove(item); } return (A) this; } - public A addToVolumeDevices(V1VolumeDevice... items) { - if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); + public A removeAllFromEnv(Collection items) { + if (this.env == null) { + return (A) this; } - for (V1VolumeDevice item : items) { - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").add(builder); - this.volumeDevices.add(builder); + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").remove(builder); + this.env.remove(builder); } return (A) this; } - public A addAllToVolumeDevices(Collection items) { - if (this.volumeDevices == null) { - this.volumeDevices = new ArrayList(); + public A removeAllFromEnvFrom(Collection items) { + if (this.envFrom == null) { + return (A) this; } - for (V1VolumeDevice item : items) { - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").add(builder); - this.volumeDevices.add(builder); + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").remove(builder); + this.envFrom.remove(builder); } return (A) this; } - public A removeFromVolumeDevices(V1VolumeDevice... items) { - if (this.volumeDevices == null) { + public A removeAllFromPorts(Collection items) { + if (this.ports == null) { return (A) this; } - for (V1VolumeDevice item : items) { - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").remove(builder); - this.volumeDevices.remove(builder); + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); } return (A) this; } - public A removeAllFromVolumeDevices(Collection items) { - if (this.volumeDevices == null) { + public A removeAllFromResizePolicy(Collection items) { + if (this.resizePolicy == null) { return (A) this; } - for (V1VolumeDevice item : items) { - V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").remove(builder); - this.volumeDevices.remove(builder); + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").remove(builder); + this.resizePolicy.remove(builder); } return (A) this; } - public A removeMatchingFromVolumeDevices(Predicate predicate) { - if (volumeDevices == null) { + public A removeAllFromRestartPolicyRules(Collection items) { + if (this.restartPolicyRules == null) { return (A) this; } - Iterator each = volumeDevices.iterator(); - List visitables = _visitables.get("volumeDevices"); - while (each.hasNext()) { - V1VolumeDeviceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").remove(builder); + this.restartPolicyRules.remove(builder); } return (A) this; } - public List buildVolumeDevices() { - return this.volumeDevices != null ? build(volumeDevices) : null; - } - - public V1VolumeDevice buildVolumeDevice(int index) { - return this.volumeDevices.get(index).build(); - } - - public V1VolumeDevice buildFirstVolumeDevice() { - return this.volumeDevices.get(0).build(); - } - - public V1VolumeDevice buildLastVolumeDevice() { - return this.volumeDevices.get(volumeDevices.size() - 1).build(); - } - - public V1VolumeDevice buildMatchingVolumeDevice(Predicate predicate) { - for (V1VolumeDeviceBuilder item : volumeDevices) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingVolumeDevice(Predicate predicate) { - for (V1VolumeDeviceBuilder item : volumeDevices) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withVolumeDevices(List volumeDevices) { - if (this.volumeDevices != null) { - this._visitables.get("volumeDevices").clear(); + public A removeAllFromVolumeDevices(Collection items) { + if (this.volumeDevices == null) { + return (A) this; } - if (volumeDevices != null) { - this.volumeDevices = new ArrayList(); - for (V1VolumeDevice item : volumeDevices) { - this.addToVolumeDevices(item); - } - } else { - this.volumeDevices = null; + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").remove(builder); + this.volumeDevices.remove(builder); } return (A) this; } - public A withVolumeDevices(V1VolumeDevice... volumeDevices) { - if (this.volumeDevices != null) { - this.volumeDevices.clear(); - _visitables.remove("volumeDevices"); + public A removeAllFromVolumeMounts(Collection items) { + if (this.volumeMounts == null) { + return (A) this; } - if (volumeDevices != null) { - for (V1VolumeDevice item : volumeDevices) { - this.addToVolumeDevices(item); - } + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").remove(builder); + this.volumeMounts.remove(builder); } return (A) this; } - public boolean hasVolumeDevices() { - return this.volumeDevices != null && !(this.volumeDevices.isEmpty()); - } - - public VolumeDevicesNested addNewVolumeDevice() { - return new VolumeDevicesNested(-1, null); - } - - public VolumeDevicesNested addNewVolumeDeviceLike(V1VolumeDevice item) { - return new VolumeDevicesNested(-1, item); - } - - public VolumeDevicesNested setNewVolumeDeviceLike(int index,V1VolumeDevice item) { - return new VolumeDevicesNested(index, item); - } - - public VolumeDevicesNested editVolumeDevice(int index) { - if (index <= volumeDevices.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeDevices")); + public A removeFromArgs(String... items) { + if (this.args == null) { + return (A) this; } - return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); - } - - public VolumeDevicesNested editFirstVolumeDevice() { - if (volumeDevices.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeDevices")); + for (String item : items) { + this.args.remove(item); } - return this.setNewVolumeDeviceLike(0, this.buildVolumeDevice(0)); + return (A) this; } - public VolumeDevicesNested editLastVolumeDevice() { - int index = volumeDevices.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeDevices")); + public A removeFromCommand(String... items) { + if (this.command == null) { + return (A) this; } - return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); + for (String item : items) { + this.command.remove(item); + } + return (A) this; } - public VolumeDevicesNested editMatchingVolumeDevice(Predicate predicate) { - int index = -1; - for (int i = 0;i < volumeDevices.size();i++) { - if (predicate.test(volumeDevices.get(i))) { - index = i; - break; - } + public A removeFromEnv(V1EnvVar... items) { + if (this.env == null) { + return (A) this; } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumeDevices")); + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").remove(builder); + this.env.remove(builder); } - return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); + return (A) this; } - public A addToVolumeMounts(int index,V1VolumeMount item) { - if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + public A removeFromEnvFrom(V1EnvFromSource... items) { + if (this.envFrom == null) { + return (A) this; } - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { - _visitables.get("volumeMounts").add(builder); - volumeMounts.add(builder); - } else { - _visitables.get("volumeMounts").add(builder); - volumeMounts.add(index, builder); + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").remove(builder); + this.envFrom.remove(builder); } return (A) this; } - public A setToVolumeMounts(int index,V1VolumeMount item) { - if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + public A removeFromPorts(V1ContainerPort... items) { + if (this.ports == null) { + return (A) this; } - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { - _visitables.get("volumeMounts").add(builder); - volumeMounts.add(builder); - } else { - _visitables.get("volumeMounts").add(builder); - volumeMounts.set(index, builder); + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); } return (A) this; } - public A addToVolumeMounts(V1VolumeMount... items) { - if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + public A removeFromResizePolicy(V1ContainerResizePolicy... items) { + if (this.resizePolicy == null) { + return (A) this; } - for (V1VolumeMount item : items) { - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables.get("volumeMounts").add(builder); - this.volumeMounts.add(builder); + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").remove(builder); + this.resizePolicy.remove(builder); } return (A) this; } - public A addAllToVolumeMounts(Collection items) { - if (this.volumeMounts == null) { - this.volumeMounts = new ArrayList(); + public A removeFromRestartPolicyRules(V1ContainerRestartRule... items) { + if (this.restartPolicyRules == null) { + return (A) this; } - for (V1VolumeMount item : items) { - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables.get("volumeMounts").add(builder); - this.volumeMounts.add(builder); + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").remove(builder); + this.restartPolicyRules.remove(builder); } return (A) this; } - public A removeFromVolumeMounts(V1VolumeMount... items) { - if (this.volumeMounts == null) { + public A removeFromVolumeDevices(V1VolumeDevice... items) { + if (this.volumeDevices == null) { return (A) this; } - for (V1VolumeMount item : items) { - V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables.get("volumeMounts").remove(builder); - this.volumeMounts.remove(builder); + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").remove(builder); + this.volumeDevices.remove(builder); } return (A) this; } - public A removeAllFromVolumeMounts(Collection items) { + public A removeFromVolumeMounts(V1VolumeMount... items) { if (this.volumeMounts == null) { return (A) this; } @@ -2020,14 +1579,14 @@ public A removeAllFromVolumeMounts(Collection items) { return (A) this; } - public A removeMatchingFromVolumeMounts(Predicate predicate) { - if (volumeMounts == null) { + public A removeMatchingFromEnv(Predicate predicate) { + if (env == null) { return (A) this; } - Iterator each = volumeMounts.iterator(); - List visitables = _visitables.get("volumeMounts"); + Iterator each = env.iterator(); + List visitables = _visitables.get("env"); while (each.hasNext()) { - V1VolumeMountBuilder builder = each.next(); + V1EnvVarBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -2036,227 +1595,249 @@ public A removeMatchingFromVolumeMounts(Predicate predicat return (A) this; } - public List buildVolumeMounts() { - return this.volumeMounts != null ? build(volumeMounts) : null; - } - - public V1VolumeMount buildVolumeMount(int index) { - return this.volumeMounts.get(index).build(); - } - - public V1VolumeMount buildFirstVolumeMount() { - return this.volumeMounts.get(0).build(); + public A removeMatchingFromEnvFrom(Predicate predicate) { + if (envFrom == null) { + return (A) this; + } + Iterator each = envFrom.iterator(); + List visitables = _visitables.get("envFrom"); + while (each.hasNext()) { + V1EnvFromSourceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public V1VolumeMount buildLastVolumeMount() { - return this.volumeMounts.get(volumeMounts.size() - 1).build(); + public A removeMatchingFromPorts(Predicate predicate) { + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); + while (each.hasNext()) { + V1ContainerPortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public V1VolumeMount buildMatchingVolumeMount(Predicate predicate) { - for (V1VolumeMountBuilder item : volumeMounts) { - if (predicate.test(item)) { - return item.build(); + public A removeMatchingFromResizePolicy(Predicate predicate) { + if (resizePolicy == null) { + return (A) this; + } + Iterator each = resizePolicy.iterator(); + List visitables = _visitables.get("resizePolicy"); + while (each.hasNext()) { + V1ContainerResizePolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } - return null; + } + return (A) this; } - public boolean hasMatchingVolumeMount(Predicate predicate) { - for (V1VolumeMountBuilder item : volumeMounts) { - if (predicate.test(item)) { - return true; + public A removeMatchingFromRestartPolicyRules(Predicate predicate) { + if (restartPolicyRules == null) { + return (A) this; + } + Iterator each = restartPolicyRules.iterator(); + List visitables = _visitables.get("restartPolicyRules"); + while (each.hasNext()) { + V1ContainerRestartRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } - return false; + } + return (A) this; } - public A withVolumeMounts(List volumeMounts) { - if (this.volumeMounts != null) { - this._visitables.get("volumeMounts").clear(); + public A removeMatchingFromVolumeDevices(Predicate predicate) { + if (volumeDevices == null) { + return (A) this; } - if (volumeMounts != null) { - this.volumeMounts = new ArrayList(); - for (V1VolumeMount item : volumeMounts) { - this.addToVolumeMounts(item); + Iterator each = volumeDevices.iterator(); + List visitables = _visitables.get("volumeDevices"); + while (each.hasNext()) { + V1VolumeDeviceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } else { - this.volumeMounts = null; } return (A) this; } - public A withVolumeMounts(V1VolumeMount... volumeMounts) { - if (this.volumeMounts != null) { - this.volumeMounts.clear(); - _visitables.remove("volumeMounts"); + public A removeMatchingFromVolumeMounts(Predicate predicate) { + if (volumeMounts == null) { + return (A) this; } - if (volumeMounts != null) { - for (V1VolumeMount item : volumeMounts) { - this.addToVolumeMounts(item); - } + Iterator each = volumeMounts.iterator(); + List visitables = _visitables.get("volumeMounts"); + while (each.hasNext()) { + V1VolumeMountBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasVolumeMounts() { - return this.volumeMounts != null && !(this.volumeMounts.isEmpty()); + public EnvFromNested setNewEnvFromLike(int index,V1EnvFromSource item) { + return new EnvFromNested(index, item); } - public VolumeMountsNested addNewVolumeMount() { - return new VolumeMountsNested(-1, null); + public EnvNested setNewEnvLike(int index,V1EnvVar item) { + return new EnvNested(index, item); } - public VolumeMountsNested addNewVolumeMountLike(V1VolumeMount item) { - return new VolumeMountsNested(-1, item); + public PortsNested setNewPortLike(int index,V1ContainerPort item) { + return new PortsNested(index, item); + } + + public ResizePolicyNested setNewResizePolicyLike(int index,V1ContainerResizePolicy item) { + return new ResizePolicyNested(index, item); + } + + public RestartPolicyRulesNested setNewRestartPolicyRuleLike(int index,V1ContainerRestartRule item) { + return new RestartPolicyRulesNested(index, item); + } + + public VolumeDevicesNested setNewVolumeDeviceLike(int index,V1VolumeDevice item) { + return new VolumeDevicesNested(index, item); } public VolumeMountsNested setNewVolumeMountLike(int index,V1VolumeMount item) { return new VolumeMountsNested(index, item); } - public VolumeMountsNested editVolumeMount(int index) { - if (index <= volumeMounts.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeMounts")); + public A setToArgs(int index,String item) { + if (this.args == null) { + this.args = new ArrayList(); } - return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); + this.args.set(index, item); + return (A) this; } - public VolumeMountsNested editFirstVolumeMount() { - if (volumeMounts.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeMounts")); + public A setToCommand(int index,String item) { + if (this.command == null) { + this.command = new ArrayList(); } - return this.setNewVolumeMountLike(0, this.buildVolumeMount(0)); + this.command.set(index, item); + return (A) this; } - public VolumeMountsNested editLastVolumeMount() { - int index = volumeMounts.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeMounts")); + public A setToEnv(int index,V1EnvVar item) { + if (this.env == null) { + this.env = new ArrayList(); } - return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + if (index < 0 || index >= env.size()) { + _visitables.get("env").add(builder); + env.add(builder); + } else { + _visitables.get("env").add(builder); + env.set(index, builder); + } + return (A) this; } - public VolumeMountsNested editMatchingVolumeMount(Predicate predicate) { - int index = -1; - for (int i = 0;i < volumeMounts.size();i++) { - if (predicate.test(volumeMounts.get(i))) { - index = i; - break; - } + public A setToEnvFrom(int index,V1EnvFromSource item) { + if (this.envFrom == null) { + this.envFrom = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumeMounts")); + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + if (index < 0 || index >= envFrom.size()) { + _visitables.get("envFrom").add(builder); + envFrom.add(builder); + } else { + _visitables.get("envFrom").add(builder); + envFrom.set(index, builder); } - return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); + return (A) this; } - public String getWorkingDir() { - return this.workingDir; + public A setToPorts(int index,V1ContainerPort item) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } + return (A) this; } - public A withWorkingDir(String workingDir) { - this.workingDir = workingDir; + public A setToResizePolicy(int index,V1ContainerResizePolicy item) { + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); + } + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + if (index < 0 || index >= resizePolicy.size()) { + _visitables.get("resizePolicy").add(builder); + resizePolicy.add(builder); + } else { + _visitables.get("resizePolicy").add(builder); + resizePolicy.set(index, builder); + } return (A) this; } - public boolean hasWorkingDir() { - return this.workingDir != null; + public A setToRestartPolicyRules(int index,V1ContainerRestartRule item) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + if (index < 0 || index >= restartPolicyRules.size()) { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.add(builder); + } else { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.set(index, builder); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; + public A setToVolumeDevices(int index,V1VolumeDevice item) { + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1EphemeralContainerFluent that = (V1EphemeralContainerFluent) o; - if (!(Objects.equals(args, that.args))) { - return false; - } - if (!(Objects.equals(command, that.command))) { - return false; - } - if (!(Objects.equals(env, that.env))) { - return false; - } - if (!(Objects.equals(envFrom, that.envFrom))) { - return false; - } - if (!(Objects.equals(image, that.image))) { - return false; - } - if (!(Objects.equals(imagePullPolicy, that.imagePullPolicy))) { - return false; - } - if (!(Objects.equals(lifecycle, that.lifecycle))) { - return false; - } - if (!(Objects.equals(livenessProbe, that.livenessProbe))) { - return false; - } - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(ports, that.ports))) { - return false; - } - if (!(Objects.equals(readinessProbe, that.readinessProbe))) { - return false; - } - if (!(Objects.equals(resizePolicy, that.resizePolicy))) { - return false; - } - if (!(Objects.equals(resources, that.resources))) { - return false; - } - if (!(Objects.equals(restartPolicy, that.restartPolicy))) { - return false; - } - if (!(Objects.equals(restartPolicyRules, that.restartPolicyRules))) { - return false; - } - if (!(Objects.equals(securityContext, that.securityContext))) { - return false; - } - if (!(Objects.equals(startupProbe, that.startupProbe))) { - return false; - } - if (!(Objects.equals(stdin, that.stdin))) { - return false; - } - if (!(Objects.equals(stdinOnce, that.stdinOnce))) { - return false; - } - if (!(Objects.equals(targetContainerName, that.targetContainerName))) { - return false; - } - if (!(Objects.equals(terminationMessagePath, that.terminationMessagePath))) { - return false; - } - if (!(Objects.equals(terminationMessagePolicy, that.terminationMessagePolicy))) { - return false; - } - if (!(Objects.equals(tty, that.tty))) { - return false; - } - if (!(Objects.equals(volumeDevices, that.volumeDevices))) { - return false; - } - if (!(Objects.equals(volumeMounts, that.volumeMounts))) { - return false; - } - if (!(Objects.equals(workingDir, that.workingDir))) { - return false; + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + if (index < 0 || index >= volumeDevices.size()) { + _visitables.get("volumeDevices").add(builder); + volumeDevices.add(builder); + } else { + _visitables.get("volumeDevices").add(builder); + volumeDevices.set(index, builder); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(args, command, env, envFrom, image, imagePullPolicy, lifecycle, livenessProbe, name, ports, readinessProbe, resizePolicy, resources, restartPolicy, restartPolicyRules, securityContext, startupProbe, stdin, stdinOnce, targetContainerName, terminationMessagePath, terminationMessagePolicy, tty, volumeDevices, volumeMounts, workingDir); + public A setToVolumeMounts(int index,V1VolumeMount item) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); + } + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + if (index < 0 || index >= volumeMounts.size()) { + _visitables.get("volumeMounts").add(builder); + volumeMounts.add(builder); + } else { + _visitables.get("volumeMounts").add(builder); + volumeMounts.set(index, builder); + } + return (A) this; } public String toString() { @@ -2377,61 +1958,466 @@ public String toString() { sb.append(tty); sb.append(","); } - if (!(volumeDevices == null) && !(volumeDevices.isEmpty())) { - sb.append("volumeDevices:"); - sb.append(volumeDevices); - sb.append(","); + if (!(volumeDevices == null) && !(volumeDevices.isEmpty())) { + sb.append("volumeDevices:"); + sb.append(volumeDevices); + sb.append(","); + } + if (!(volumeMounts == null) && !(volumeMounts.isEmpty())) { + sb.append("volumeMounts:"); + sb.append(volumeMounts); + sb.append(","); + } + if (!(workingDir == null)) { + sb.append("workingDir:"); + sb.append(workingDir); + } + sb.append("}"); + return sb.toString(); + } + + public A withArgs(List args) { + if (args != null) { + this.args = new ArrayList(); + for (String item : args) { + this.addToArgs(item); + } + } else { + this.args = null; + } + return (A) this; + } + + public A withArgs(String... args) { + if (this.args != null) { + this.args.clear(); + _visitables.remove("args"); + } + if (args != null) { + for (String item : args) { + this.addToArgs(item); + } + } + return (A) this; + } + + public A withCommand(List command) { + if (command != null) { + this.command = new ArrayList(); + for (String item : command) { + this.addToCommand(item); + } + } else { + this.command = null; + } + return (A) this; + } + + public A withCommand(String... command) { + if (this.command != null) { + this.command.clear(); + _visitables.remove("command"); + } + if (command != null) { + for (String item : command) { + this.addToCommand(item); + } + } + return (A) this; + } + + public A withEnv(List env) { + if (this.env != null) { + this._visitables.get("env").clear(); + } + if (env != null) { + this.env = new ArrayList(); + for (V1EnvVar item : env) { + this.addToEnv(item); + } + } else { + this.env = null; + } + return (A) this; + } + + public A withEnv(V1EnvVar... env) { + if (this.env != null) { + this.env.clear(); + _visitables.remove("env"); + } + if (env != null) { + for (V1EnvVar item : env) { + this.addToEnv(item); + } + } + return (A) this; + } + + public A withEnvFrom(List envFrom) { + if (this.envFrom != null) { + this._visitables.get("envFrom").clear(); + } + if (envFrom != null) { + this.envFrom = new ArrayList(); + for (V1EnvFromSource item : envFrom) { + this.addToEnvFrom(item); + } + } else { + this.envFrom = null; + } + return (A) this; + } + + public A withEnvFrom(V1EnvFromSource... envFrom) { + if (this.envFrom != null) { + this.envFrom.clear(); + _visitables.remove("envFrom"); + } + if (envFrom != null) { + for (V1EnvFromSource item : envFrom) { + this.addToEnvFrom(item); + } + } + return (A) this; + } + + public A withImage(String image) { + this.image = image; + return (A) this; + } + + public A withImagePullPolicy(String imagePullPolicy) { + this.imagePullPolicy = imagePullPolicy; + return (A) this; + } + + public A withLifecycle(V1Lifecycle lifecycle) { + this._visitables.remove("lifecycle"); + if (lifecycle != null) { + this.lifecycle = new V1LifecycleBuilder(lifecycle); + this._visitables.get("lifecycle").add(this.lifecycle); + } else { + this.lifecycle = null; + this._visitables.get("lifecycle").remove(this.lifecycle); + } + return (A) this; + } + + public A withLivenessProbe(V1Probe livenessProbe) { + this._visitables.remove("livenessProbe"); + if (livenessProbe != null) { + this.livenessProbe = new V1ProbeBuilder(livenessProbe); + this._visitables.get("livenessProbe").add(this.livenessProbe); + } else { + this.livenessProbe = null; + this._visitables.get("livenessProbe").remove(this.livenessProbe); + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public LifecycleNested withNewLifecycle() { + return new LifecycleNested(null); + } + + public LifecycleNested withNewLifecycleLike(V1Lifecycle item) { + return new LifecycleNested(item); + } + + public LivenessProbeNested withNewLivenessProbe() { + return new LivenessProbeNested(null); + } + + public LivenessProbeNested withNewLivenessProbeLike(V1Probe item) { + return new LivenessProbeNested(item); + } + + public ReadinessProbeNested withNewReadinessProbe() { + return new ReadinessProbeNested(null); + } + + public ReadinessProbeNested withNewReadinessProbeLike(V1Probe item) { + return new ReadinessProbeNested(item); + } + + public ResourcesNested withNewResources() { + return new ResourcesNested(null); + } + + public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { + return new ResourcesNested(item); + } + + public SecurityContextNested withNewSecurityContext() { + return new SecurityContextNested(null); + } + + public SecurityContextNested withNewSecurityContextLike(V1SecurityContext item) { + return new SecurityContextNested(item); + } + + public StartupProbeNested withNewStartupProbe() { + return new StartupProbeNested(null); + } + + public StartupProbeNested withNewStartupProbeLike(V1Probe item) { + return new StartupProbeNested(item); + } + + public A withPorts(List ports) { + if (this.ports != null) { + this._visitables.get("ports").clear(); + } + if (ports != null) { + this.ports = new ArrayList(); + for (V1ContainerPort item : ports) { + this.addToPorts(item); + } + } else { + this.ports = null; + } + return (A) this; + } + + public A withPorts(V1ContainerPort... ports) { + if (this.ports != null) { + this.ports.clear(); + _visitables.remove("ports"); + } + if (ports != null) { + for (V1ContainerPort item : ports) { + this.addToPorts(item); + } + } + return (A) this; + } + + public A withReadinessProbe(V1Probe readinessProbe) { + this._visitables.remove("readinessProbe"); + if (readinessProbe != null) { + this.readinessProbe = new V1ProbeBuilder(readinessProbe); + this._visitables.get("readinessProbe").add(this.readinessProbe); + } else { + this.readinessProbe = null; + this._visitables.get("readinessProbe").remove(this.readinessProbe); + } + return (A) this; + } + + public A withResizePolicy(List resizePolicy) { + if (this.resizePolicy != null) { + this._visitables.get("resizePolicy").clear(); + } + if (resizePolicy != null) { + this.resizePolicy = new ArrayList(); + for (V1ContainerResizePolicy item : resizePolicy) { + this.addToResizePolicy(item); + } + } else { + this.resizePolicy = null; + } + return (A) this; + } + + public A withResizePolicy(V1ContainerResizePolicy... resizePolicy) { + if (this.resizePolicy != null) { + this.resizePolicy.clear(); + _visitables.remove("resizePolicy"); + } + if (resizePolicy != null) { + for (V1ContainerResizePolicy item : resizePolicy) { + this.addToResizePolicy(item); + } + } + return (A) this; + } + + public A withResources(V1ResourceRequirements resources) { + this._visitables.remove("resources"); + if (resources != null) { + this.resources = new V1ResourceRequirementsBuilder(resources); + this._visitables.get("resources").add(this.resources); + } else { + this.resources = null; + this._visitables.get("resources").remove(this.resources); + } + return (A) this; + } + + public A withRestartPolicy(String restartPolicy) { + this.restartPolicy = restartPolicy; + return (A) this; + } + + public A withRestartPolicyRules(List restartPolicyRules) { + if (this.restartPolicyRules != null) { + this._visitables.get("restartPolicyRules").clear(); + } + if (restartPolicyRules != null) { + this.restartPolicyRules = new ArrayList(); + for (V1ContainerRestartRule item : restartPolicyRules) { + this.addToRestartPolicyRules(item); + } + } else { + this.restartPolicyRules = null; + } + return (A) this; + } + + public A withRestartPolicyRules(V1ContainerRestartRule... restartPolicyRules) { + if (this.restartPolicyRules != null) { + this.restartPolicyRules.clear(); + _visitables.remove("restartPolicyRules"); + } + if (restartPolicyRules != null) { + for (V1ContainerRestartRule item : restartPolicyRules) { + this.addToRestartPolicyRules(item); + } } - if (!(volumeMounts == null) && !(volumeMounts.isEmpty())) { - sb.append("volumeMounts:"); - sb.append(volumeMounts); - sb.append(","); + return (A) this; + } + + public A withSecurityContext(V1SecurityContext securityContext) { + this._visitables.remove("securityContext"); + if (securityContext != null) { + this.securityContext = new V1SecurityContextBuilder(securityContext); + this._visitables.get("securityContext").add(this.securityContext); + } else { + this.securityContext = null; + this._visitables.get("securityContext").remove(this.securityContext); } - if (!(workingDir == null)) { - sb.append("workingDir:"); - sb.append(workingDir); + return (A) this; + } + + public A withStartupProbe(V1Probe startupProbe) { + this._visitables.remove("startupProbe"); + if (startupProbe != null) { + this.startupProbe = new V1ProbeBuilder(startupProbe); + this._visitables.get("startupProbe").add(this.startupProbe); + } else { + this.startupProbe = null; + this._visitables.get("startupProbe").remove(this.startupProbe); } - sb.append("}"); - return sb.toString(); + return (A) this; } public A withStdin() { return withStdin(true); } + public A withStdin(Boolean stdin) { + this.stdin = stdin; + return (A) this; + } + public A withStdinOnce() { return withStdinOnce(true); } + public A withStdinOnce(Boolean stdinOnce) { + this.stdinOnce = stdinOnce; + return (A) this; + } + + public A withTargetContainerName(String targetContainerName) { + this.targetContainerName = targetContainerName; + return (A) this; + } + + public A withTerminationMessagePath(String terminationMessagePath) { + this.terminationMessagePath = terminationMessagePath; + return (A) this; + } + + public A withTerminationMessagePolicy(String terminationMessagePolicy) { + this.terminationMessagePolicy = terminationMessagePolicy; + return (A) this; + } + public A withTty() { return withTty(true); } - public class EnvNested extends V1EnvVarFluent> implements Nested{ - EnvNested(int index,V1EnvVar item) { - this.index = index; - this.builder = new V1EnvVarBuilder(this, item); + + public A withTty(Boolean tty) { + this.tty = tty; + return (A) this; + } + + public A withVolumeDevices(List volumeDevices) { + if (this.volumeDevices != null) { + this._visitables.get("volumeDevices").clear(); } - V1EnvVarBuilder builder; - int index; - - public N and() { - return (N) V1EphemeralContainerFluent.this.setToEnv(index, builder.build()); + if (volumeDevices != null) { + this.volumeDevices = new ArrayList(); + for (V1VolumeDevice item : volumeDevices) { + this.addToVolumeDevices(item); + } + } else { + this.volumeDevices = null; } - - public N endEnv() { - return and(); + return (A) this; + } + + public A withVolumeDevices(V1VolumeDevice... volumeDevices) { + if (this.volumeDevices != null) { + this.volumeDevices.clear(); + _visitables.remove("volumeDevices"); } - + if (volumeDevices != null) { + for (V1VolumeDevice item : volumeDevices) { + this.addToVolumeDevices(item); + } + } + return (A) this; + } + + public A withVolumeMounts(List volumeMounts) { + if (this.volumeMounts != null) { + this._visitables.get("volumeMounts").clear(); + } + if (volumeMounts != null) { + this.volumeMounts = new ArrayList(); + for (V1VolumeMount item : volumeMounts) { + this.addToVolumeMounts(item); + } + } else { + this.volumeMounts = null; + } + return (A) this; + } + + public A withVolumeMounts(V1VolumeMount... volumeMounts) { + if (this.volumeMounts != null) { + this.volumeMounts.clear(); + _visitables.remove("volumeMounts"); + } + if (volumeMounts != null) { + for (V1VolumeMount item : volumeMounts) { + this.addToVolumeMounts(item); + } + } + return (A) this; + } + public A withWorkingDir(String workingDir) { + this.workingDir = workingDir; + return (A) this; } public class EnvFromNested extends V1EnvFromSourceFluent> implements Nested{ + + V1EnvFromSourceBuilder builder; + int index; + EnvFromNested(int index,V1EnvFromSource item) { this.index = index; this.builder = new V1EnvFromSourceBuilder(this, item); } - V1EnvFromSourceBuilder builder; - int index; - + public N and() { return (N) V1EphemeralContainerFluent.this.setToEnvFrom(index, builder.build()); } @@ -2440,14 +2426,34 @@ public N endEnvFrom() { return and(); } + } + public class EnvNested extends V1EnvVarFluent> implements Nested{ + + V1EnvVarBuilder builder; + int index; + + EnvNested(int index,V1EnvVar item) { + this.index = index; + this.builder = new V1EnvVarBuilder(this, item); + } + public N and() { + return (N) V1EphemeralContainerFluent.this.setToEnv(index, builder.build()); + } + + public N endEnv() { + return and(); + } + } public class LifecycleNested extends V1LifecycleFluent> implements Nested{ + + V1LifecycleBuilder builder; + LifecycleNested(V1Lifecycle item) { this.builder = new V1LifecycleBuilder(this, item); } - V1LifecycleBuilder builder; - + public N and() { return (N) V1EphemeralContainerFluent.this.withLifecycle(builder.build()); } @@ -2456,14 +2462,15 @@ public N endLifecycle() { return and(); } - } public class LivenessProbeNested extends V1ProbeFluent> implements Nested{ + + V1ProbeBuilder builder; + LivenessProbeNested(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } - V1ProbeBuilder builder; - + public N and() { return (N) V1EphemeralContainerFluent.this.withLivenessProbe(builder.build()); } @@ -2472,16 +2479,17 @@ public N endLivenessProbe() { return and(); } - } public class PortsNested extends V1ContainerPortFluent> implements Nested{ + + V1ContainerPortBuilder builder; + int index; + PortsNested(int index,V1ContainerPort item) { this.index = index; this.builder = new V1ContainerPortBuilder(this, item); } - V1ContainerPortBuilder builder; - int index; - + public N and() { return (N) V1EphemeralContainerFluent.this.setToPorts(index, builder.build()); } @@ -2490,14 +2498,15 @@ public N endPort() { return and(); } - } public class ReadinessProbeNested extends V1ProbeFluent> implements Nested{ + + V1ProbeBuilder builder; + ReadinessProbeNested(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } - V1ProbeBuilder builder; - + public N and() { return (N) V1EphemeralContainerFluent.this.withReadinessProbe(builder.build()); } @@ -2506,16 +2515,17 @@ public N endReadinessProbe() { return and(); } - } public class ResizePolicyNested extends V1ContainerResizePolicyFluent> implements Nested{ + + V1ContainerResizePolicyBuilder builder; + int index; + ResizePolicyNested(int index,V1ContainerResizePolicy item) { this.index = index; this.builder = new V1ContainerResizePolicyBuilder(this, item); } - V1ContainerResizePolicyBuilder builder; - int index; - + public N and() { return (N) V1EphemeralContainerFluent.this.setToResizePolicy(index, builder.build()); } @@ -2524,14 +2534,15 @@ public N endResizePolicy() { return and(); } - } public class ResourcesNested extends V1ResourceRequirementsFluent> implements Nested{ + + V1ResourceRequirementsBuilder builder; + ResourcesNested(V1ResourceRequirements item) { this.builder = new V1ResourceRequirementsBuilder(this, item); } - V1ResourceRequirementsBuilder builder; - + public N and() { return (N) V1EphemeralContainerFluent.this.withResources(builder.build()); } @@ -2540,16 +2551,17 @@ public N endResources() { return and(); } - } public class RestartPolicyRulesNested extends V1ContainerRestartRuleFluent> implements Nested{ + + V1ContainerRestartRuleBuilder builder; + int index; + RestartPolicyRulesNested(int index,V1ContainerRestartRule item) { this.index = index; this.builder = new V1ContainerRestartRuleBuilder(this, item); } - V1ContainerRestartRuleBuilder builder; - int index; - + public N and() { return (N) V1EphemeralContainerFluent.this.setToRestartPolicyRules(index, builder.build()); } @@ -2558,14 +2570,15 @@ public N endRestartPolicyRule() { return and(); } - } public class SecurityContextNested extends V1SecurityContextFluent> implements Nested{ + + V1SecurityContextBuilder builder; + SecurityContextNested(V1SecurityContext item) { this.builder = new V1SecurityContextBuilder(this, item); } - V1SecurityContextBuilder builder; - + public N and() { return (N) V1EphemeralContainerFluent.this.withSecurityContext(builder.build()); } @@ -2574,14 +2587,15 @@ public N endSecurityContext() { return and(); } - } public class StartupProbeNested extends V1ProbeFluent> implements Nested{ + + V1ProbeBuilder builder; + StartupProbeNested(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } - V1ProbeBuilder builder; - + public N and() { return (N) V1EphemeralContainerFluent.this.withStartupProbe(builder.build()); } @@ -2590,16 +2604,17 @@ public N endStartupProbe() { return and(); } - } public class VolumeDevicesNested extends V1VolumeDeviceFluent> implements Nested{ + + V1VolumeDeviceBuilder builder; + int index; + VolumeDevicesNested(int index,V1VolumeDevice item) { this.index = index; this.builder = new V1VolumeDeviceBuilder(this, item); } - V1VolumeDeviceBuilder builder; - int index; - + public N and() { return (N) V1EphemeralContainerFluent.this.setToVolumeDevices(index, builder.build()); } @@ -2608,16 +2623,17 @@ public N endVolumeDevice() { return and(); } - } public class VolumeMountsNested extends V1VolumeMountFluent> implements Nested{ + + V1VolumeMountBuilder builder; + int index; + VolumeMountsNested(int index,V1VolumeMount item) { this.index = index; this.builder = new V1VolumeMountBuilder(this, item); } - V1VolumeMountBuilder builder; - int index; - + public N and() { return (N) V1EphemeralContainerFluent.this.setToVolumeMounts(index, builder.build()); } @@ -2626,7 +2642,5 @@ public N endVolumeMount() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java index 5e9025bf84..c6e885a6eb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1EphemeralVolumeSourceBuilder extends V1EphemeralVolumeSourceFluent implements VisitableBuilder{ + + V1EphemeralVolumeSourceFluent fluent; + public V1EphemeralVolumeSourceBuilder() { this(new V1EphemeralVolumeSource()); } @@ -11,22 +14,20 @@ public V1EphemeralVolumeSourceBuilder(V1EphemeralVolumeSourceFluent fluent) { this(fluent, new V1EphemeralVolumeSource()); } - public V1EphemeralVolumeSourceBuilder(V1EphemeralVolumeSourceFluent fluent,V1EphemeralVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EphemeralVolumeSourceBuilder(V1EphemeralVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1EphemeralVolumeSourceFluent fluent; + public V1EphemeralVolumeSourceBuilder(V1EphemeralVolumeSourceFluent fluent,V1EphemeralVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EphemeralVolumeSource build() { V1EphemeralVolumeSource buildable = new V1EphemeralVolumeSource(); buildable.setVolumeClaimTemplate(fluent.buildVolumeClaimTemplate()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java index a766cbec04..6982e94e38 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1EphemeralVolumeSourceFluent> extends BaseFluent{ + + private V1PersistentVolumeClaimTemplateBuilder volumeClaimTemplate; + public V1EphemeralVolumeSourceFluent() { } public V1EphemeralVolumeSourceFluent(V1EphemeralVolumeSource instance) { this.copyInstance(instance); } - private V1PersistentVolumeClaimTemplateBuilder volumeClaimTemplate; + + public V1PersistentVolumeClaimTemplate buildVolumeClaimTemplate() { + return this.volumeClaimTemplate != null ? this.volumeClaimTemplate.build() : null; + } protected void copyInstance(V1EphemeralVolumeSource instance) { instance = instance != null ? instance : new V1EphemeralVolumeSource(); @@ -29,38 +35,6 @@ protected void copyInstance(V1EphemeralVolumeSource instance) { } } - public V1PersistentVolumeClaimTemplate buildVolumeClaimTemplate() { - return this.volumeClaimTemplate != null ? this.volumeClaimTemplate.build() : null; - } - - public A withVolumeClaimTemplate(V1PersistentVolumeClaimTemplate volumeClaimTemplate) { - this._visitables.remove("volumeClaimTemplate"); - if (volumeClaimTemplate != null) { - this.volumeClaimTemplate = new V1PersistentVolumeClaimTemplateBuilder(volumeClaimTemplate); - this._visitables.get("volumeClaimTemplate").add(this.volumeClaimTemplate); - } else { - this.volumeClaimTemplate = null; - this._visitables.get("volumeClaimTemplate").remove(this.volumeClaimTemplate); - } - return (A) this; - } - - public boolean hasVolumeClaimTemplate() { - return this.volumeClaimTemplate != null; - } - - public VolumeClaimTemplateNested withNewVolumeClaimTemplate() { - return new VolumeClaimTemplateNested(null); - } - - public VolumeClaimTemplateNested withNewVolumeClaimTemplateLike(V1PersistentVolumeClaimTemplate item) { - return new VolumeClaimTemplateNested(item); - } - - public VolumeClaimTemplateNested editVolumeClaimTemplate() { - return this.withNewVolumeClaimTemplateLike(Optional.ofNullable(this.buildVolumeClaimTemplate()).orElse(null)); - } - public VolumeClaimTemplateNested editOrNewVolumeClaimTemplate() { return this.withNewVolumeClaimTemplateLike(Optional.ofNullable(this.buildVolumeClaimTemplate()).orElse(new V1PersistentVolumeClaimTemplateBuilder().build())); } @@ -69,6 +43,10 @@ public VolumeClaimTemplateNested editOrNewVolumeClaimTemplateLike(V1Persisten return this.withNewVolumeClaimTemplateLike(Optional.ofNullable(this.buildVolumeClaimTemplate()).orElse(item)); } + public VolumeClaimTemplateNested editVolumeClaimTemplate() { + return this.withNewVolumeClaimTemplateLike(Optional.ofNullable(this.buildVolumeClaimTemplate()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasVolumeClaimTemplate() { + return this.volumeClaimTemplate != null; + } + public int hashCode() { return Objects.hash(volumeClaimTemplate); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public VolumeClaimTemplateNested withNewVolumeClaimTemplate() { + return new VolumeClaimTemplateNested(null); + } + + public VolumeClaimTemplateNested withNewVolumeClaimTemplateLike(V1PersistentVolumeClaimTemplate item) { + return new VolumeClaimTemplateNested(item); + } + + public A withVolumeClaimTemplate(V1PersistentVolumeClaimTemplate volumeClaimTemplate) { + this._visitables.remove("volumeClaimTemplate"); + if (volumeClaimTemplate != null) { + this.volumeClaimTemplate = new V1PersistentVolumeClaimTemplateBuilder(volumeClaimTemplate); + this._visitables.get("volumeClaimTemplate").add(this.volumeClaimTemplate); + } else { + this.volumeClaimTemplate = null; + this._visitables.get("volumeClaimTemplate").remove(this.volumeClaimTemplate); + } + return (A) this; + } public class VolumeClaimTemplateNested extends V1PersistentVolumeClaimTemplateFluent> implements Nested{ + + V1PersistentVolumeClaimTemplateBuilder builder; + VolumeClaimTemplateNested(V1PersistentVolumeClaimTemplate item) { this.builder = new V1PersistentVolumeClaimTemplateBuilder(this, item); } - V1PersistentVolumeClaimTemplateBuilder builder; - + public N and() { return (N) V1EphemeralVolumeSourceFluent.this.withVolumeClaimTemplate(builder.build()); } @@ -114,7 +118,5 @@ public N endVolumeClaimTemplate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java index 660e4035ea..f7ec0e7ea7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1EventSourceBuilder extends V1EventSourceFluent implements VisitableBuilder{ + + V1EventSourceFluent fluent; + public V1EventSourceBuilder() { this(new V1EventSource()); } @@ -11,17 +14,16 @@ public V1EventSourceBuilder(V1EventSourceFluent fluent) { this(fluent, new V1EventSource()); } - public V1EventSourceBuilder(V1EventSourceFluent fluent,V1EventSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EventSourceBuilder(V1EventSource instance) { this.fluent = this; this.copyInstance(instance); } - V1EventSourceFluent fluent; + public V1EventSourceBuilder(V1EventSourceFluent fluent,V1EventSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EventSource build() { V1EventSource buildable = new V1EventSource(); buildable.setComponent(fluent.getComponent()); @@ -29,5 +31,4 @@ public V1EventSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java index d22e3cafb6..35addc2e71 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1EventSourceFluent> extends BaseFluent{ + + private String component; + private String host; + public V1EventSourceFluent() { } public V1EventSourceFluent(V1EventSource instance) { this.copyInstance(instance); } - private String component; - private String host; - + protected void copyInstance(V1EventSource instance) { instance = instance != null ? instance : new V1EventSource(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1EventSource instance) { } } - public String getComponent() { - return this.component; - } - - public A withComponent(String component) { - this.component = component; - return (A) this; - } - - public boolean hasComponent() { - return this.component != null; - } - - public String getHost() { - return this.host; - } - - public A withHost(String host) { - this.host = host; - return (A) this; - } - - public boolean hasHost() { - return this.host != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getComponent() { + return this.component; + } + + public String getHost() { + return this.host; + } + + public boolean hasComponent() { + return this.component != null; + } + + public boolean hasHost() { + return this.host != null; + } + public int hashCode() { return Objects.hash(component, host); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withComponent(String component) { + this.component = component; + return (A) this; + } + + public A withHost(String host) { + this.host = host; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java index 7b107d8f90..f537f25817 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1EvictionBuilder extends V1EvictionFluent implements VisitableBuilder{ + + V1EvictionFluent fluent; + public V1EvictionBuilder() { this(new V1Eviction()); } @@ -11,17 +14,16 @@ public V1EvictionBuilder(V1EvictionFluent fluent) { this(fluent, new V1Eviction()); } - public V1EvictionBuilder(V1EvictionFluent fluent,V1Eviction instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EvictionBuilder(V1Eviction instance) { this.fluent = this; this.copyInstance(instance); } - V1EvictionFluent fluent; + public V1EvictionBuilder(V1EvictionFluent fluent,V1Eviction instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Eviction build() { V1Eviction buildable = new V1Eviction(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1Eviction build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java index 1316543562..6ff11cd621 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1EvictionFluent> extends BaseFluent{ + + private String apiVersion; + private V1DeleteOptionsBuilder deleteOptions; + private String kind; + private V1ObjectMetaBuilder metadata; + public V1EvictionFluent() { } public V1EvictionFluent(V1Eviction instance) { this.copyInstance(instance); } - private String apiVersion; - private V1DeleteOptionsBuilder deleteOptions; - private String kind; - private V1ObjectMetaBuilder metadata; + + public V1DeleteOptions buildDeleteOptions() { + return this.deleteOptions != null ? this.deleteOptions.build() : null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } protected void copyInstance(V1Eviction instance) { instance = instance != null ? instance : new V1Eviction(); @@ -35,51 +45,14 @@ protected void copyInstance(V1Eviction instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public V1DeleteOptions buildDeleteOptions() { - return this.deleteOptions != null ? this.deleteOptions.build() : null; - } - - public A withDeleteOptions(V1DeleteOptions deleteOptions) { - this._visitables.remove("deleteOptions"); - if (deleteOptions != null) { - this.deleteOptions = new V1DeleteOptionsBuilder(deleteOptions); - this._visitables.get("deleteOptions").add(this.deleteOptions); - } else { - this.deleteOptions = null; - this._visitables.get("deleteOptions").remove(this.deleteOptions); - } - return (A) this; - } - - public boolean hasDeleteOptions() { - return this.deleteOptions != null; - } - - public DeleteOptionsNested withNewDeleteOptions() { - return new DeleteOptionsNested(null); - } - - public DeleteOptionsNested withNewDeleteOptionsLike(V1DeleteOptions item) { - return new DeleteOptionsNested(item); - } - public DeleteOptionsNested editDeleteOptions() { return this.withNewDeleteOptionsLike(Optional.ofNullable(this.buildDeleteOptions()).orElse(null)); } + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + public DeleteOptionsNested editOrNewDeleteOptions() { return this.withNewDeleteOptionsLike(Optional.ofNullable(this.buildDeleteOptions()).orElse(new V1DeleteOptionsBuilder().build())); } @@ -88,51 +61,6 @@ public DeleteOptionsNested editOrNewDeleteOptionsLike(V1DeleteOptions item) { return this.withNewDeleteOptionsLike(Optional.ofNullable(this.buildDeleteOptions()).orElse(item)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); - } - public MetadataNested editOrNewMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasDeleteOptions() { + return this.deleteOptions != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, deleteOptions, kind, metadata); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withDeleteOptions(V1DeleteOptions deleteOptions) { + this._visitables.remove("deleteOptions"); + if (deleteOptions != null) { + this.deleteOptions = new V1DeleteOptionsBuilder(deleteOptions); + this._visitables.get("deleteOptions").add(this.deleteOptions); + } else { + this.deleteOptions = null; + this._visitables.get("deleteOptions").remove(this.deleteOptions); + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public DeleteOptionsNested withNewDeleteOptions() { + return new DeleteOptionsNested(null); + } + + public DeleteOptionsNested withNewDeleteOptionsLike(V1DeleteOptions item) { + return new DeleteOptionsNested(item); + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } public class DeleteOptionsNested extends V1DeleteOptionsFluent> implements Nested{ + + V1DeleteOptionsBuilder builder; + DeleteOptionsNested(V1DeleteOptions item) { this.builder = new V1DeleteOptionsBuilder(this, item); } - V1DeleteOptionsBuilder builder; - + public N and() { return (N) V1EvictionFluent.this.withDeleteOptions(builder.build()); } @@ -210,14 +214,15 @@ public N endDeleteOptions() { return and(); } - } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1EvictionFluent.this.withMetadata(builder.build()); } @@ -226,7 +231,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestBuilder.java index eea8876d42..1c6ecfe07b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ExactDeviceRequestBuilder extends V1ExactDeviceRequestFluent implements VisitableBuilder{ + + V1ExactDeviceRequestFluent fluent; + public V1ExactDeviceRequestBuilder() { this(new V1ExactDeviceRequest()); } @@ -11,17 +14,16 @@ public V1ExactDeviceRequestBuilder(V1ExactDeviceRequestFluent fluent) { this(fluent, new V1ExactDeviceRequest()); } - public V1ExactDeviceRequestBuilder(V1ExactDeviceRequestFluent fluent,V1ExactDeviceRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ExactDeviceRequestBuilder(V1ExactDeviceRequest instance) { this.fluent = this; this.copyInstance(instance); } - V1ExactDeviceRequestFluent fluent; + public V1ExactDeviceRequestBuilder(V1ExactDeviceRequestFluent fluent,V1ExactDeviceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ExactDeviceRequest build() { V1ExactDeviceRequest buildable = new V1ExactDeviceRequest(); buildable.setAdminAccess(fluent.getAdminAccess()); @@ -34,5 +36,4 @@ public V1ExactDeviceRequest build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestFluent.java index 466c178b24..813375b890 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestFluent.java @@ -1,33 +1,28 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Boolean; -import java.util.Optional; -import java.lang.Long; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ExactDeviceRequestFluent> extends BaseFluent{ - public V1ExactDeviceRequestFluent() { - } - - public V1ExactDeviceRequestFluent(V1ExactDeviceRequest instance) { - this.copyInstance(instance); - } + private Boolean adminAccess; private String allocationMode; private V1CapacityRequirementsBuilder capacity; @@ -35,128 +30,67 @@ public V1ExactDeviceRequestFluent(V1ExactDeviceRequest instance) { private String deviceClassName; private ArrayList selectors; private ArrayList tolerations; - - protected void copyInstance(V1ExactDeviceRequest instance) { - instance = instance != null ? instance : new V1ExactDeviceRequest(); - if (instance != null) { - this.withAdminAccess(instance.getAdminAccess()); - this.withAllocationMode(instance.getAllocationMode()); - this.withCapacity(instance.getCapacity()); - this.withCount(instance.getCount()); - this.withDeviceClassName(instance.getDeviceClassName()); - this.withSelectors(instance.getSelectors()); - this.withTolerations(instance.getTolerations()); - } - } - - public Boolean getAdminAccess() { - return this.adminAccess; - } - - public A withAdminAccess(Boolean adminAccess) { - this.adminAccess = adminAccess; - return (A) this; - } - - public boolean hasAdminAccess() { - return this.adminAccess != null; - } - - public String getAllocationMode() { - return this.allocationMode; - } - - public A withAllocationMode(String allocationMode) { - this.allocationMode = allocationMode; - return (A) this; - } - - public boolean hasAllocationMode() { - return this.allocationMode != null; + + public V1ExactDeviceRequestFluent() { } - public V1CapacityRequirements buildCapacity() { - return this.capacity != null ? this.capacity.build() : null; + public V1ExactDeviceRequestFluent(V1ExactDeviceRequest instance) { + this.copyInstance(instance); } - - public A withCapacity(V1CapacityRequirements capacity) { - this._visitables.remove("capacity"); - if (capacity != null) { - this.capacity = new V1CapacityRequirementsBuilder(capacity); - this._visitables.get("capacity").add(this.capacity); - } else { - this.capacity = null; - this._visitables.get("capacity").remove(this.capacity); + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); } return (A) this; } - public boolean hasCapacity() { - return this.capacity != null; - } - - public CapacityNested withNewCapacity() { - return new CapacityNested(null); - } - - public CapacityNested withNewCapacityLike(V1CapacityRequirements item) { - return new CapacityNested(item); - } - - public CapacityNested editCapacity() { - return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); - } - - public CapacityNested editOrNewCapacity() { - return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1CapacityRequirementsBuilder().build())); - } - - public CapacityNested editOrNewCapacityLike(V1CapacityRequirements item) { - return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); - } - - public Long getCount() { - return this.count; - } - - public A withCount(Long count) { - this.count = count; + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } return (A) this; } - public boolean hasCount() { - return this.count != null; + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); } - public String getDeviceClassName() { - return this.deviceClassName; + public SelectorsNested addNewSelectorLike(V1DeviceSelector item) { + return new SelectorsNested(-1, item); } - public A withDeviceClassName(String deviceClassName) { - this.deviceClassName = deviceClassName; - return (A) this; + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); } - public boolean hasDeviceClassName() { - return this.deviceClassName != null; + public TolerationsNested addNewTolerationLike(V1DeviceToleration item) { + return new TolerationsNested(-1, item); } - public A addToSelectors(int index,V1DeviceSelector item) { + public A addToSelectors(V1DeviceSelector... items) { if (this.selectors == null) { this.selectors = new ArrayList(); } - V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); _visitables.get("selectors").add(builder); - selectors.add(index, builder); + this.selectors.add(builder); } return (A) this; } - public A setToSelectors(int index,V1DeviceSelector item) { + public A addToSelectors(int index,V1DeviceSelector item) { if (this.selectors == null) { this.selectors = new ArrayList(); } @@ -166,91 +100,58 @@ public A setToSelectors(int index,V1DeviceSelector item) { selectors.add(builder); } else { _visitables.get("selectors").add(builder); - selectors.set(index, builder); - } - return (A) this; - } - - public A addToSelectors(V1DeviceSelector... items) { - if (this.selectors == null) { - this.selectors = new ArrayList(); - } - for (V1DeviceSelector item : items) { - V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); - this.selectors.add(builder); - } - return (A) this; - } - - public A addAllToSelectors(Collection items) { - if (this.selectors == null) { - this.selectors = new ArrayList(); - } - for (V1DeviceSelector item : items) { - V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); - this.selectors.add(builder); - } - return (A) this; - } - - public A removeFromSelectors(V1DeviceSelector... items) { - if (this.selectors == null) { - return (A) this; - } - for (V1DeviceSelector item : items) { - V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - _visitables.get("selectors").remove(builder); - this.selectors.remove(builder); + selectors.add(index, builder); } return (A) this; } - public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) { - return (A) this; + public A addToTolerations(V1DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - for (V1DeviceSelector item : items) { - V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - _visitables.get("selectors").remove(builder); - this.selectors.remove(builder); + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } return (A) this; } - public A removeMatchingFromSelectors(Predicate predicate) { - if (selectors == null) { - return (A) this; + public A addToTolerations(int index,V1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - Iterator each = selectors.iterator(); - List visitables = _visitables.get("selectors"); - while (each.hasNext()) { - V1DeviceSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); } return (A) this; } - public List buildSelectors() { - return this.selectors != null ? build(selectors) : null; - } - - public V1DeviceSelector buildSelector(int index) { - return this.selectors.get(index).build(); + public V1CapacityRequirements buildCapacity() { + return this.capacity != null ? this.capacity.build() : null; } public V1DeviceSelector buildFirstSelector() { return this.selectors.get(0).build(); } + public V1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + public V1DeviceSelector buildLastSelector() { return this.selectors.get(selectors.size() - 1).build(); } + public V1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + public V1DeviceSelector buildMatchingSelector(Predicate predicate) { for (V1DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { @@ -260,64 +161,46 @@ public V1DeviceSelector buildMatchingSelector(Predicate return null; } - public boolean hasMatchingSelector(Predicate predicate) { - for (V1DeviceSelectorBuilder item : selectors) { + public V1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1DeviceTolerationBuilder item : tolerations) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withSelectors(List selectors) { - if (this.selectors != null) { - this._visitables.get("selectors").clear(); - } - if (selectors != null) { - this.selectors = new ArrayList(); - for (V1DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } else { - this.selectors = null; - } - return (A) this; - } - - public A withSelectors(V1DeviceSelector... selectors) { - if (this.selectors != null) { - this.selectors.clear(); - _visitables.remove("selectors"); - } - if (selectors != null) { - for (V1DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } - return (A) this; + public V1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); } - public boolean hasSelectors() { - return this.selectors != null && !(this.selectors.isEmpty()); + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; } - public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); + public V1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); } - public SelectorsNested addNewSelectorLike(V1DeviceSelector item) { - return new SelectorsNested(-1, item); + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; } - public SelectorsNested setNewSelectorLike(int index,V1DeviceSelector item) { - return new SelectorsNested(index, item); + protected void copyInstance(V1ExactDeviceRequest instance) { + instance = instance != null ? instance : new V1ExactDeviceRequest(); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withAllocationMode(instance.getAllocationMode()); + this.withCapacity(instance.getCapacity()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } } - public SelectorsNested editSelector(int index) { - if (index <= selectors.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); - } - return this.setNewSelectorLike(index, this.buildSelector(index)); + public CapacityNested editCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); } public SelectorsNested editFirstSelector() { @@ -327,6 +210,13 @@ public SelectorsNested editFirstSelector() { return this.setNewSelectorLike(0, this.buildSelector(0)); } + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); + } + public SelectorsNested editLastSelector() { int index = selectors.size() - 1; if (index < 0) { @@ -335,6 +225,14 @@ public SelectorsNested editLastSelector() { return this.setNewSelectorLike(index, this.buildSelector(index)); } + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + public SelectorsNested editMatchingSelector(Predicate predicate) { int index = -1; for (int i = 0;i < selectors.size();i++) { @@ -349,123 +247,120 @@ public SelectorsNested editMatchingSelector(Predicate editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } } - V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A setToTolerations(int index,V1DeviceToleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); - } - return (A) this; + public CapacityNested editOrNewCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1CapacityRequirementsBuilder().build())); } - public A addToTolerations(V1DeviceToleration... items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - for (V1DeviceToleration item : items) { - V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); - } - return (A) this; + public CapacityNested editOrNewCapacityLike(V1CapacityRequirements item) { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); } - public A addAllToTolerations(Collection items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - for (V1DeviceToleration item : items) { - V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); } - return (A) this; + return this.setNewSelectorLike(index, this.buildSelector(index)); } - public A removeFromTolerations(V1DeviceToleration... items) { - if (this.tolerations == null) { - return (A) this; - } - for (V1DeviceToleration item : items) { - V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - this.tolerations.remove(builder); + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (V1DeviceToleration item : items) { - V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - this.tolerations.remove(builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) { - return (A) this; + if (!(super.equals(o))) { + return false; } - Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); - while (each.hasNext()) { - V1DeviceTolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ExactDeviceRequestFluent that = (V1ExactDeviceRequestFluent) o; + if (!(Objects.equals(adminAccess, that.adminAccess))) { + return false; } - return (A) this; + if (!(Objects.equals(allocationMode, that.allocationMode))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(deviceClassName, that.deviceClassName))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; } - public List buildTolerations() { - return this.tolerations != null ? build(tolerations) : null; + public Boolean getAdminAccess() { + return this.adminAccess; } - public V1DeviceToleration buildToleration(int index) { - return this.tolerations.get(index).build(); + public String getAllocationMode() { + return this.allocationMode; } - public V1DeviceToleration buildFirstToleration() { - return this.tolerations.get(0).build(); + public Long getCount() { + return this.count; } - public V1DeviceToleration buildLastToleration() { - return this.tolerations.get(tolerations.size() - 1).build(); + public String getDeviceClassName() { + return this.deviceClassName; } - public V1DeviceToleration buildMatchingToleration(Predicate predicate) { - for (V1DeviceTolerationBuilder item : tolerations) { + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean hasCount() { + return this.count != null; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingToleration(Predicate predicate) { @@ -477,123 +372,134 @@ public boolean hasMatchingToleration(Predicate predic return false; } - public A withTolerations(List tolerations) { - if (this.tolerations != null) { - this._visitables.get("tolerations").clear(); + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public int hashCode() { + return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, selectors, tolerations); + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) { + return (A) this; } - if (tolerations != null) { - this.tolerations = new ArrayList(); - for (V1DeviceToleration item : tolerations) { - this.addToTolerations(item); - } - } else { - this.tolerations = null; + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeFromSelectors(V1DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeFromTolerations(V1DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); } return (A) this; } - public A withTolerations(V1DeviceToleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - _visitables.remove("tolerations"); + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; } - if (tolerations != null) { - for (V1DeviceToleration item : tolerations) { - this.addToTolerations(item); - } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasTolerations() { - return this.tolerations != null && !(this.tolerations.isEmpty()); - } - - public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public TolerationsNested addNewTolerationLike(V1DeviceToleration item) { - return new TolerationsNested(-1, item); + public SelectorsNested setNewSelectorLike(int index,V1DeviceSelector item) { + return new SelectorsNested(index, item); } public TolerationsNested setNewTolerationLike(int index,V1DeviceToleration item) { return new TolerationsNested(index, item); } - public TolerationsNested editToleration(int index) { - if (index <= tolerations.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); - } - return this.setNewTolerationLike(index, this.buildToleration(index)); - } - - public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); - } - return this.setNewTolerationLike(0, this.buildToleration(0)); - } - - public TolerationsNested editLastToleration() { - int index = tolerations.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); - } - return this.setNewTolerationLike(index, this.buildToleration(index)); - } - - public TolerationsNested editMatchingToleration(Predicate predicate) { - int index = -1; - for (int i = 0;i < tolerations.size();i++) { - if (predicate.test(tolerations.get(i))) { - index = i; - break; - } + public A setToSelectors(int index,V1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); } - return this.setNewTolerationLike(index, this.buildToleration(index)); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ExactDeviceRequestFluent that = (V1ExactDeviceRequestFluent) o; - if (!(Objects.equals(adminAccess, that.adminAccess))) { - return false; - } - if (!(Objects.equals(allocationMode, that.allocationMode))) { - return false; - } - if (!(Objects.equals(capacity, that.capacity))) { - return false; - } - if (!(Objects.equals(count, that.count))) { - return false; - } - if (!(Objects.equals(deviceClassName, that.deviceClassName))) { - return false; - } - if (!(Objects.equals(selectors, that.selectors))) { - return false; + public A setToTolerations(int index,V1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - if (!(Objects.equals(tolerations, that.tolerations))) { - return false; + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); } - return true; - } - - public int hashCode() { - return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, selectors, tolerations); + return (A) this; } public String toString() { @@ -640,12 +546,110 @@ public String toString() { public A withAdminAccess() { return withAdminAccess(true); } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public A withCapacity(V1CapacityRequirements capacity) { + this._visitables.remove("capacity"); + if (capacity != null) { + this.capacity = new V1CapacityRequirementsBuilder(capacity); + this._visitables.get("capacity").add(this.capacity); + } else { + this.capacity = null; + this._visitables.get("capacity").remove(this.capacity); + } + return (A) this; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public CapacityNested withNewCapacity() { + return new CapacityNested(null); + } + + public CapacityNested withNewCapacityLike(V1CapacityRequirements item) { + return new CapacityNested(item); + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(V1DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(V1DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } public class CapacityNested extends V1CapacityRequirementsFluent> implements Nested{ + + V1CapacityRequirementsBuilder builder; + CapacityNested(V1CapacityRequirements item) { this.builder = new V1CapacityRequirementsBuilder(this, item); } - V1CapacityRequirementsBuilder builder; - + public N and() { return (N) V1ExactDeviceRequestFluent.this.withCapacity(builder.build()); } @@ -654,16 +658,17 @@ public N endCapacity() { return and(); } - } public class SelectorsNested extends V1DeviceSelectorFluent> implements Nested{ + + V1DeviceSelectorBuilder builder; + int index; + SelectorsNested(int index,V1DeviceSelector item) { this.index = index; this.builder = new V1DeviceSelectorBuilder(this, item); } - V1DeviceSelectorBuilder builder; - int index; - + public N and() { return (N) V1ExactDeviceRequestFluent.this.setToSelectors(index, builder.build()); } @@ -672,16 +677,17 @@ public N endSelector() { return and(); } - } public class TolerationsNested extends V1DeviceTolerationFluent> implements Nested{ + + V1DeviceTolerationBuilder builder; + int index; + TolerationsNested(int index,V1DeviceToleration item) { this.index = index; this.builder = new V1DeviceTolerationBuilder(this, item); } - V1DeviceTolerationBuilder builder; - int index; - + public N and() { return (N) V1ExactDeviceRequestFluent.this.setToTolerations(index, builder.build()); } @@ -690,7 +696,5 @@ public N endToleration() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java index ecadaf6b73..ad84dd78fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ExecActionBuilder extends V1ExecActionFluent implements VisitableBuilder{ + + V1ExecActionFluent fluent; + public V1ExecActionBuilder() { this(new V1ExecAction()); } @@ -11,22 +14,20 @@ public V1ExecActionBuilder(V1ExecActionFluent fluent) { this(fluent, new V1ExecAction()); } - public V1ExecActionBuilder(V1ExecActionFluent fluent,V1ExecAction instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ExecActionBuilder(V1ExecAction instance) { this.fluent = this; this.copyInstance(instance); } - V1ExecActionFluent fluent; + public V1ExecActionBuilder(V1ExecActionFluent fluent,V1ExecAction instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ExecAction build() { V1ExecAction buildable = new V1ExecAction(); buildable.setCommand(fluent.getCommand()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java index b02400ecb4..68dd8a35b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,34 +16,23 @@ */ @SuppressWarnings("unchecked") public class V1ExecActionFluent> extends BaseFluent{ + + private List command; + public V1ExecActionFluent() { } public V1ExecActionFluent(V1ExecAction instance) { this.copyInstance(instance); } - private List command; - - protected void copyInstance(V1ExecAction instance) { - instance = instance != null ? instance : new V1ExecAction(); - if (instance != null) { - this.withCommand(instance.getCommand()); - } - } - - public A addToCommand(int index,String item) { + + public A addAllToCommand(Collection items) { if (this.command == null) { this.command = new ArrayList(); } - this.command.add(index, item); - return (A) this; - } - - public A setToCommand(int index,String item) { - if (this.command == null) { - this.command = new ArrayList(); + for (String item : items) { + this.command.add(item); } - this.command.set(index, item); return (A) this; } @@ -57,34 +46,36 @@ public A addToCommand(String... items) { return (A) this; } - public A addAllToCommand(Collection items) { + public A addToCommand(int index,String item) { if (this.command == null) { this.command = new ArrayList(); } - for (String item : items) { - this.command.add(item); - } + this.command.add(index, item); return (A) this; } - public A removeFromCommand(String... items) { - if (this.command == null) { - return (A) this; - } - for (String item : items) { - this.command.remove(item); + protected void copyInstance(V1ExecAction instance) { + instance = instance != null ? instance : new V1ExecAction(); + if (instance != null) { + this.withCommand(instance.getCommand()); } - return (A) this; } - public A removeAllFromCommand(Collection items) { - if (this.command == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.command.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1ExecActionFluent that = (V1ExecActionFluent) o; + if (!(Objects.equals(command, that.command))) { + return false; + } + return true; } public List getCommand() { @@ -112,6 +103,10 @@ public String getMatchingCommand(Predicate predicate) { return null; } + public boolean hasCommand() { + return this.command != null && !(this.command.isEmpty()); + } + public boolean hasMatchingCommand(Predicate predicate) { for (String item : command) { if (predicate.test(item)) { @@ -121,6 +116,49 @@ public boolean hasMatchingCommand(Predicate predicate) { return false; } + public int hashCode() { + return Objects.hash(command); + } + + public A removeAllFromCommand(Collection items) { + if (this.command == null) { + return (A) this; + } + for (String item : items) { + this.command.remove(item); + } + return (A) this; + } + + public A removeFromCommand(String... items) { + if (this.command == null) { + return (A) this; + } + for (String item : items) { + this.command.remove(item); + } + return (A) this; + } + + public A setToCommand(int index,String item) { + if (this.command == null) { + this.command = new ArrayList(); + } + this.command.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(command == null) && !(command.isEmpty())) { + sb.append("command:"); + sb.append(command); + } + sb.append("}"); + return sb.toString(); + } + public A withCommand(List command) { if (command != null) { this.command = new ArrayList(); @@ -146,41 +184,4 @@ public A withCommand(String... command) { return (A) this; } - public boolean hasCommand() { - return this.command != null && !(this.command.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ExecActionFluent that = (V1ExecActionFluent) o; - if (!(Objects.equals(command, that.command))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(command); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(command == null) && !(command.isEmpty())) { - sb.append("command:"); - sb.append(command); - } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationBuilder.java index 02ea1c0f5f..a5f3080ac5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ExemptPriorityLevelConfigurationBuilder extends V1ExemptPriorityLevelConfigurationFluent implements VisitableBuilder{ + + V1ExemptPriorityLevelConfigurationFluent fluent; + public V1ExemptPriorityLevelConfigurationBuilder() { this(new V1ExemptPriorityLevelConfiguration()); } @@ -11,17 +14,16 @@ public V1ExemptPriorityLevelConfigurationBuilder(V1ExemptPriorityLevelConfigurat this(fluent, new V1ExemptPriorityLevelConfiguration()); } - public V1ExemptPriorityLevelConfigurationBuilder(V1ExemptPriorityLevelConfigurationFluent fluent,V1ExemptPriorityLevelConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ExemptPriorityLevelConfigurationBuilder(V1ExemptPriorityLevelConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1ExemptPriorityLevelConfigurationFluent fluent; + public V1ExemptPriorityLevelConfigurationBuilder(V1ExemptPriorityLevelConfigurationFluent fluent,V1ExemptPriorityLevelConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ExemptPriorityLevelConfiguration build() { V1ExemptPriorityLevelConfiguration buildable = new V1ExemptPriorityLevelConfiguration(); buildable.setLendablePercent(fluent.getLendablePercent()); @@ -29,5 +31,4 @@ public V1ExemptPriorityLevelConfiguration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationFluent.java index 1395cc3524..8ca20e638d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1ExemptPriorityLevelConfigurationFluent> extends BaseFluent{ + + private Integer lendablePercent; + private Integer nominalConcurrencyShares; + public V1ExemptPriorityLevelConfigurationFluent() { } public V1ExemptPriorityLevelConfigurationFluent(V1ExemptPriorityLevelConfiguration instance) { this.copyInstance(instance); } - private Integer lendablePercent; - private Integer nominalConcurrencyShares; - + protected void copyInstance(V1ExemptPriorityLevelConfiguration instance) { instance = instance != null ? instance : new V1ExemptPriorityLevelConfiguration(); if (instance != null) { @@ -30,32 +32,6 @@ protected void copyInstance(V1ExemptPriorityLevelConfiguration instance) { } } - public Integer getLendablePercent() { - return this.lendablePercent; - } - - public A withLendablePercent(Integer lendablePercent) { - this.lendablePercent = lendablePercent; - return (A) this; - } - - public boolean hasLendablePercent() { - return this.lendablePercent != null; - } - - public Integer getNominalConcurrencyShares() { - return this.nominalConcurrencyShares; - } - - public A withNominalConcurrencyShares(Integer nominalConcurrencyShares) { - this.nominalConcurrencyShares = nominalConcurrencyShares; - return (A) this; - } - - public boolean hasNominalConcurrencyShares() { - return this.nominalConcurrencyShares != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -76,6 +52,22 @@ public boolean equals(Object o) { return true; } + public Integer getLendablePercent() { + return this.lendablePercent; + } + + public Integer getNominalConcurrencyShares() { + return this.nominalConcurrencyShares; + } + + public boolean hasLendablePercent() { + return this.lendablePercent != null; + } + + public boolean hasNominalConcurrencyShares() { + return this.nominalConcurrencyShares != null; + } + public int hashCode() { return Objects.hash(lendablePercent, nominalConcurrencyShares); } @@ -96,5 +88,14 @@ public String toString() { return sb.toString(); } - + public A withLendablePercent(Integer lendablePercent) { + this.lendablePercent = lendablePercent; + return (A) this; + } + + public A withNominalConcurrencyShares(Integer nominalConcurrencyShares) { + this.nominalConcurrencyShares = nominalConcurrencyShares; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningBuilder.java index 39283b1f81..041c5c21e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ExpressionWarningBuilder extends V1ExpressionWarningFluent implements VisitableBuilder{ + + V1ExpressionWarningFluent fluent; + public V1ExpressionWarningBuilder() { this(new V1ExpressionWarning()); } @@ -11,17 +14,16 @@ public V1ExpressionWarningBuilder(V1ExpressionWarningFluent fluent) { this(fluent, new V1ExpressionWarning()); } - public V1ExpressionWarningBuilder(V1ExpressionWarningFluent fluent,V1ExpressionWarning instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ExpressionWarningBuilder(V1ExpressionWarning instance) { this.fluent = this; this.copyInstance(instance); } - V1ExpressionWarningFluent fluent; + public V1ExpressionWarningBuilder(V1ExpressionWarningFluent fluent,V1ExpressionWarning instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ExpressionWarning build() { V1ExpressionWarning buildable = new V1ExpressionWarning(); buildable.setFieldRef(fluent.getFieldRef()); @@ -29,5 +31,4 @@ public V1ExpressionWarning build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningFluent.java index 3cf360d5e8..3830d85fcb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ExpressionWarningFluent> extends BaseFluent{ + + private String fieldRef; + private String warning; + public V1ExpressionWarningFluent() { } public V1ExpressionWarningFluent(V1ExpressionWarning instance) { this.copyInstance(instance); } - private String fieldRef; - private String warning; - + protected void copyInstance(V1ExpressionWarning instance) { instance = instance != null ? instance : new V1ExpressionWarning(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1ExpressionWarning instance) { } } - public String getFieldRef() { - return this.fieldRef; - } - - public A withFieldRef(String fieldRef) { - this.fieldRef = fieldRef; - return (A) this; - } - - public boolean hasFieldRef() { - return this.fieldRef != null; - } - - public String getWarning() { - return this.warning; - } - - public A withWarning(String warning) { - this.warning = warning; - return (A) this; - } - - public boolean hasWarning() { - return this.warning != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getFieldRef() { + return this.fieldRef; + } + + public String getWarning() { + return this.warning; + } + + public boolean hasFieldRef() { + return this.fieldRef != null; + } + + public boolean hasWarning() { + return this.warning != null; + } + public int hashCode() { return Objects.hash(fieldRef, warning); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withFieldRef(String fieldRef) { + this.fieldRef = fieldRef; + return (A) this; + } + + public A withWarning(String warning) { + this.warning = warning; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java index 93a1373d0e..d05cadcec5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ExternalDocumentationBuilder extends V1ExternalDocumentationFluent implements VisitableBuilder{ + + V1ExternalDocumentationFluent fluent; + public V1ExternalDocumentationBuilder() { this(new V1ExternalDocumentation()); } @@ -11,17 +14,16 @@ public V1ExternalDocumentationBuilder(V1ExternalDocumentationFluent fluent) { this(fluent, new V1ExternalDocumentation()); } - public V1ExternalDocumentationBuilder(V1ExternalDocumentationFluent fluent,V1ExternalDocumentation instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ExternalDocumentationBuilder(V1ExternalDocumentation instance) { this.fluent = this; this.copyInstance(instance); } - V1ExternalDocumentationFluent fluent; + public V1ExternalDocumentationBuilder(V1ExternalDocumentationFluent fluent,V1ExternalDocumentation instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ExternalDocumentation build() { V1ExternalDocumentation buildable = new V1ExternalDocumentation(); buildable.setDescription(fluent.getDescription()); @@ -29,5 +31,4 @@ public V1ExternalDocumentation build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java index f59e1eac93..699a175f80 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ExternalDocumentationFluent> extends BaseFluent{ + + private String description; + private String url; + public V1ExternalDocumentationFluent() { } public V1ExternalDocumentationFluent(V1ExternalDocumentation instance) { this.copyInstance(instance); } - private String description; - private String url; - + protected void copyInstance(V1ExternalDocumentation instance) { instance = instance != null ? instance : new V1ExternalDocumentation(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1ExternalDocumentation instance) { } } - public String getDescription() { - return this.description; - } - - public A withDescription(String description) { - this.description = description; - return (A) this; - } - - public boolean hasDescription() { - return this.description != null; - } - - public String getUrl() { - return this.url; - } - - public A withUrl(String url) { - this.url = url; - return (A) this; - } - - public boolean hasUrl() { - return this.url != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getDescription() { + return this.description; + } + + public String getUrl() { + return this.url; + } + + public boolean hasDescription() { + return this.description != null; + } + + public boolean hasUrl() { + return this.url != null; + } + public int hashCode() { return Objects.hash(description, url); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withDescription(String description) { + this.description = description; + return (A) this; + } + + public A withUrl(String url) { + this.url = url; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java index ffb072a143..7482558d53 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1FCVolumeSourceBuilder extends V1FCVolumeSourceFluent implements VisitableBuilder{ + + V1FCVolumeSourceFluent fluent; + public V1FCVolumeSourceBuilder() { this(new V1FCVolumeSource()); } @@ -11,17 +14,16 @@ public V1FCVolumeSourceBuilder(V1FCVolumeSourceFluent fluent) { this(fluent, new V1FCVolumeSource()); } - public V1FCVolumeSourceBuilder(V1FCVolumeSourceFluent fluent,V1FCVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1FCVolumeSourceBuilder(V1FCVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1FCVolumeSourceFluent fluent; + public V1FCVolumeSourceBuilder(V1FCVolumeSourceFluent fluent,V1FCVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FCVolumeSource build() { V1FCVolumeSource buildable = new V1FCVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -32,5 +34,4 @@ public V1FCVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java index e63c9276c6..c777d5d99c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java @@ -1,98 +1,54 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1FCVolumeSourceFluent> extends BaseFluent{ - public V1FCVolumeSourceFluent() { - } - - public V1FCVolumeSourceFluent(V1FCVolumeSource instance) { - this.copyInstance(instance); - } + private String fsType; private Integer lun; private Boolean readOnly; private List targetWWNs; private List wwids; - - protected void copyInstance(V1FCVolumeSource instance) { - instance = instance != null ? instance : new V1FCVolumeSource(); - if (instance != null) { - this.withFsType(instance.getFsType()); - this.withLun(instance.getLun()); - this.withReadOnly(instance.getReadOnly()); - this.withTargetWWNs(instance.getTargetWWNs()); - this.withWwids(instance.getWwids()); - } - } - - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; - } - - public boolean hasFsType() { - return this.fsType != null; - } - - public Integer getLun() { - return this.lun; - } - - public A withLun(Integer lun) { - this.lun = lun; - return (A) this; - } - - public boolean hasLun() { - return this.lun != null; - } - - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + + public V1FCVolumeSourceFluent() { } - public boolean hasReadOnly() { - return this.readOnly != null; + public V1FCVolumeSourceFluent(V1FCVolumeSource instance) { + this.copyInstance(instance); } - - public A addToTargetWWNs(int index,String item) { + + public A addAllToTargetWWNs(Collection items) { if (this.targetWWNs == null) { this.targetWWNs = new ArrayList(); } - this.targetWWNs.add(index, item); + for (String item : items) { + this.targetWWNs.add(item); + } return (A) this; } - public A setToTargetWWNs(int index,String item) { - if (this.targetWWNs == null) { - this.targetWWNs = new ArrayList(); + public A addAllToWwids(Collection items) { + if (this.wwids == null) { + this.wwids = new ArrayList(); + } + for (String item : items) { + this.wwids.add(item); } - this.targetWWNs.set(index, item); return (A) this; } @@ -106,52 +62,96 @@ public A addToTargetWWNs(String... items) { return (A) this; } - public A addAllToTargetWWNs(Collection items) { + public A addToTargetWWNs(int index,String item) { if (this.targetWWNs == null) { this.targetWWNs = new ArrayList(); } - for (String item : items) { - this.targetWWNs.add(item); - } + this.targetWWNs.add(index, item); return (A) this; } - public A removeFromTargetWWNs(String... items) { - if (this.targetWWNs == null) { - return (A) this; + public A addToWwids(String... items) { + if (this.wwids == null) { + this.wwids = new ArrayList(); } for (String item : items) { - this.targetWWNs.remove(item); + this.wwids.add(item); } return (A) this; } - public A removeAllFromTargetWWNs(Collection items) { - if (this.targetWWNs == null) { - return (A) this; - } - for (String item : items) { - this.targetWWNs.remove(item); + public A addToWwids(int index,String item) { + if (this.wwids == null) { + this.wwids = new ArrayList(); } + this.wwids.add(index, item); return (A) this; } - public List getTargetWWNs() { - return this.targetWWNs; + protected void copyInstance(V1FCVolumeSource instance) { + instance = instance != null ? instance : new V1FCVolumeSource(); + if (instance != null) { + this.withFsType(instance.getFsType()); + this.withLun(instance.getLun()); + this.withReadOnly(instance.getReadOnly()); + this.withTargetWWNs(instance.getTargetWWNs()); + this.withWwids(instance.getWwids()); + } } - public String getTargetWWN(int index) { - return this.targetWWNs.get(index); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1FCVolumeSourceFluent that = (V1FCVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(lun, that.lun))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(targetWWNs, that.targetWWNs))) { + return false; + } + if (!(Objects.equals(wwids, that.wwids))) { + return false; + } + return true; } public String getFirstTargetWWN() { return this.targetWWNs.get(0); } + public String getFirstWwid() { + return this.wwids.get(0); + } + + public String getFsType() { + return this.fsType; + } + public String getLastTargetWWN() { return this.targetWWNs.get(targetWWNs.size() - 1); } + public String getLastWwid() { + return this.wwids.get(wwids.size() - 1); + } + + public Integer getLun() { + return this.lun; + } + public String getMatchingTargetWWN(Predicate predicate) { for (String item : targetWWNs) { if (predicate.test(item)) { @@ -161,6 +161,43 @@ public String getMatchingTargetWWN(Predicate predicate) { return null; } + public String getMatchingWwid(Predicate predicate) { + for (String item : wwids) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public String getTargetWWN(int index) { + return this.targetWWNs.get(index); + } + + public List getTargetWWNs() { + return this.targetWWNs; + } + + public String getWwid(int index) { + return this.wwids.get(index); + } + + public List getWwids() { + return this.wwids; + } + + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasLun() { + return this.lun != null; + } + public boolean hasMatchingTargetWWN(Predicate predicate) { for (String item : targetWWNs) { if (predicate.test(item)) { @@ -170,82 +207,62 @@ public boolean hasMatchingTargetWWN(Predicate predicate) { return false; } - public A withTargetWWNs(List targetWWNs) { - if (targetWWNs != null) { - this.targetWWNs = new ArrayList(); - for (String item : targetWWNs) { - this.addToTargetWWNs(item); + public boolean hasMatchingWwid(Predicate predicate) { + for (String item : wwids) { + if (predicate.test(item)) { + return true; } - } else { - this.targetWWNs = null; - } - return (A) this; + } + return false; } - public A withTargetWWNs(String... targetWWNs) { - if (this.targetWWNs != null) { - this.targetWWNs.clear(); - _visitables.remove("targetWWNs"); - } - if (targetWWNs != null) { - for (String item : targetWWNs) { - this.addToTargetWWNs(item); - } - } - return (A) this; + public boolean hasReadOnly() { + return this.readOnly != null; } public boolean hasTargetWWNs() { return this.targetWWNs != null && !(this.targetWWNs.isEmpty()); } - public A addToWwids(int index,String item) { - if (this.wwids == null) { - this.wwids = new ArrayList(); - } - this.wwids.add(index, item); - return (A) this; + public boolean hasWwids() { + return this.wwids != null && !(this.wwids.isEmpty()); } - public A setToWwids(int index,String item) { - if (this.wwids == null) { - this.wwids = new ArrayList(); - } - this.wwids.set(index, item); - return (A) this; + public int hashCode() { + return Objects.hash(fsType, lun, readOnly, targetWWNs, wwids); } - public A addToWwids(String... items) { - if (this.wwids == null) { - this.wwids = new ArrayList(); + public A removeAllFromTargetWWNs(Collection items) { + if (this.targetWWNs == null) { + return (A) this; } for (String item : items) { - this.wwids.add(item); + this.targetWWNs.remove(item); } return (A) this; } - public A addAllToWwids(Collection items) { + public A removeAllFromWwids(Collection items) { if (this.wwids == null) { - this.wwids = new ArrayList(); + return (A) this; } for (String item : items) { - this.wwids.add(item); + this.wwids.remove(item); } return (A) this; } - public A removeFromWwids(String... items) { - if (this.wwids == null) { + public A removeFromTargetWWNs(String... items) { + if (this.targetWWNs == null) { return (A) this; } for (String item : items) { - this.wwids.remove(item); + this.targetWWNs.remove(item); } return (A) this; } - public A removeAllFromWwids(Collection items) { + public A removeFromWwids(String... items) { if (this.wwids == null) { return (A) this; } @@ -255,102 +272,22 @@ public A removeAllFromWwids(Collection items) { return (A) this; } - public List getWwids() { - return this.wwids; - } - - public String getWwid(int index) { - return this.wwids.get(index); - } - - public String getFirstWwid() { - return this.wwids.get(0); - } - - public String getLastWwid() { - return this.wwids.get(wwids.size() - 1); - } - - public String getMatchingWwid(Predicate predicate) { - for (String item : wwids) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingWwid(Predicate predicate) { - for (String item : wwids) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withWwids(List wwids) { - if (wwids != null) { - this.wwids = new ArrayList(); - for (String item : wwids) { - this.addToWwids(item); - } - } else { - this.wwids = null; + public A setToTargetWWNs(int index,String item) { + if (this.targetWWNs == null) { + this.targetWWNs = new ArrayList(); } + this.targetWWNs.set(index, item); return (A) this; } - public A withWwids(String... wwids) { - if (this.wwids != null) { - this.wwids.clear(); - _visitables.remove("wwids"); - } - if (wwids != null) { - for (String item : wwids) { - this.addToWwids(item); - } + public A setToWwids(int index,String item) { + if (this.wwids == null) { + this.wwids = new ArrayList(); } + this.wwids.set(index, item); return (A) this; } - public boolean hasWwids() { - return this.wwids != null && !(this.wwids.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1FCVolumeSourceFluent that = (V1FCVolumeSourceFluent) o; - if (!(Objects.equals(fsType, that.fsType))) { - return false; - } - if (!(Objects.equals(lun, that.lun))) { - return false; - } - if (!(Objects.equals(readOnly, that.readOnly))) { - return false; - } - if (!(Objects.equals(targetWWNs, that.targetWWNs))) { - return false; - } - if (!(Objects.equals(wwids, that.wwids))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(fsType, lun, readOnly, targetWWNs, wwids); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -382,9 +319,73 @@ public String toString() { return sb.toString(); } + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withLun(Integer lun) { + this.lun = lun; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withTargetWWNs(List targetWWNs) { + if (targetWWNs != null) { + this.targetWWNs = new ArrayList(); + for (String item : targetWWNs) { + this.addToTargetWWNs(item); + } + } else { + this.targetWWNs = null; + } + return (A) this; + } + + public A withTargetWWNs(String... targetWWNs) { + if (this.targetWWNs != null) { + this.targetWWNs.clear(); + _visitables.remove("targetWWNs"); + } + if (targetWWNs != null) { + for (String item : targetWWNs) { + this.addToTargetWWNs(item); + } + } + return (A) this; + } + + public A withWwids(List wwids) { + if (wwids != null) { + this.wwids = new ArrayList(); + for (String item : wwids) { + this.addToWwids(item); + } + } else { + this.wwids = null; + } + return (A) this; + } + + public A withWwids(String... wwids) { + if (this.wwids != null) { + this.wwids.clear(); + _visitables.remove("wwids"); + } + if (wwids != null) { + for (String item : wwids) { + this.addToWwids(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesBuilder.java index 0e76bb74e9..52dc7e4c81 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1FieldSelectorAttributesBuilder extends V1FieldSelectorAttributesFluent implements VisitableBuilder{ + + V1FieldSelectorAttributesFluent fluent; + public V1FieldSelectorAttributesBuilder() { this(new V1FieldSelectorAttributes()); } @@ -11,17 +14,16 @@ public V1FieldSelectorAttributesBuilder(V1FieldSelectorAttributesFluent fluen this(fluent, new V1FieldSelectorAttributes()); } - public V1FieldSelectorAttributesBuilder(V1FieldSelectorAttributesFluent fluent,V1FieldSelectorAttributes instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1FieldSelectorAttributesBuilder(V1FieldSelectorAttributes instance) { this.fluent = this; this.copyInstance(instance); } - V1FieldSelectorAttributesFluent fluent; + public V1FieldSelectorAttributesBuilder(V1FieldSelectorAttributesFluent fluent,V1FieldSelectorAttributes instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FieldSelectorAttributes build() { V1FieldSelectorAttributes buildable = new V1FieldSelectorAttributes(); buildable.setRawSelector(fluent.getRawSelector()); @@ -29,5 +31,4 @@ public V1FieldSelectorAttributes build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesFluent.java index 1341caf727..12fb2e2043 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesFluent.java @@ -1,82 +1,53 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1FieldSelectorAttributesFluent> extends BaseFluent{ + + private String rawSelector; + private ArrayList requirements; + public V1FieldSelectorAttributesFluent() { } public V1FieldSelectorAttributesFluent(V1FieldSelectorAttributes instance) { this.copyInstance(instance); } - private String rawSelector; - private ArrayList requirements; - - protected void copyInstance(V1FieldSelectorAttributes instance) { - instance = instance != null ? instance : new V1FieldSelectorAttributes(); - if (instance != null) { - this.withRawSelector(instance.getRawSelector()); - this.withRequirements(instance.getRequirements()); - } - } - - public String getRawSelector() { - return this.rawSelector; - } - - public A withRawSelector(String rawSelector) { - this.rawSelector = rawSelector; - return (A) this; - } - - public boolean hasRawSelector() { - return this.rawSelector != null; - } - - public A addToRequirements(int index,V1FieldSelectorRequirement item) { + + public A addAllToRequirements(Collection items) { if (this.requirements == null) { this.requirements = new ArrayList(); } - V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); - if (index < 0 || index >= requirements.size()) { - _visitables.get("requirements").add(builder); - requirements.add(builder); - } else { + for (V1FieldSelectorRequirement item : items) { + V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); _visitables.get("requirements").add(builder); - requirements.add(index, builder); + this.requirements.add(builder); } return (A) this; } - public A setToRequirements(int index,V1FieldSelectorRequirement item) { - if (this.requirements == null) { - this.requirements = new ArrayList(); - } - V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); - if (index < 0 || index >= requirements.size()) { - _visitables.get("requirements").add(builder); - requirements.add(builder); - } else { - _visitables.get("requirements").add(builder); - requirements.set(index, builder); - } - return (A) this; + public RequirementsNested addNewRequirement() { + return new RequirementsNested(-1, null); + } + + public RequirementsNested addNewRequirementLike(V1FieldSelectorRequirement item) { + return new RequirementsNested(-1, item); } public A addToRequirements(V1FieldSelectorRequirement... items) { @@ -91,66 +62,21 @@ public A addToRequirements(V1FieldSelectorRequirement... items) { return (A) this; } - public A addAllToRequirements(Collection items) { + public A addToRequirements(int index,V1FieldSelectorRequirement item) { if (this.requirements == null) { this.requirements = new ArrayList(); } - for (V1FieldSelectorRequirement item : items) { - V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); + V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); + if (index < 0 || index >= requirements.size()) { _visitables.get("requirements").add(builder); - this.requirements.add(builder); - } - return (A) this; - } - - public A removeFromRequirements(V1FieldSelectorRequirement... items) { - if (this.requirements == null) { - return (A) this; - } - for (V1FieldSelectorRequirement item : items) { - V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); - _visitables.get("requirements").remove(builder); - this.requirements.remove(builder); - } - return (A) this; - } - - public A removeAllFromRequirements(Collection items) { - if (this.requirements == null) { - return (A) this; - } - for (V1FieldSelectorRequirement item : items) { - V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); - _visitables.get("requirements").remove(builder); - this.requirements.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromRequirements(Predicate predicate) { - if (requirements == null) { - return (A) this; - } - Iterator each = requirements.iterator(); - List visitables = _visitables.get("requirements"); - while (each.hasNext()) { - V1FieldSelectorRequirementBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + requirements.add(builder); + } else { + _visitables.get("requirements").add(builder); + requirements.add(index, builder); } return (A) this; } - public List buildRequirements() { - return this.requirements != null ? build(requirements) : null; - } - - public V1FieldSelectorRequirement buildRequirement(int index) { - return this.requirements.get(index).build(); - } - public V1FieldSelectorRequirement buildFirstRequirement() { return this.requirements.get(0).build(); } @@ -168,64 +94,20 @@ public V1FieldSelectorRequirement buildMatchingRequirement(Predicate predicate) { - for (V1FieldSelectorRequirementBuilder item : requirements) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRequirements(List requirements) { - if (this.requirements != null) { - this._visitables.get("requirements").clear(); - } - if (requirements != null) { - this.requirements = new ArrayList(); - for (V1FieldSelectorRequirement item : requirements) { - this.addToRequirements(item); - } - } else { - this.requirements = null; - } - return (A) this; - } - - public A withRequirements(V1FieldSelectorRequirement... requirements) { - if (this.requirements != null) { - this.requirements.clear(); - _visitables.remove("requirements"); - } - if (requirements != null) { - for (V1FieldSelectorRequirement item : requirements) { - this.addToRequirements(item); - } - } - return (A) this; - } - - public boolean hasRequirements() { - return this.requirements != null && !(this.requirements.isEmpty()); - } - - public RequirementsNested addNewRequirement() { - return new RequirementsNested(-1, null); - } - - public RequirementsNested addNewRequirementLike(V1FieldSelectorRequirement item) { - return new RequirementsNested(-1, item); + public V1FieldSelectorRequirement buildRequirement(int index) { + return this.requirements.get(index).build(); } - public RequirementsNested setNewRequirementLike(int index,V1FieldSelectorRequirement item) { - return new RequirementsNested(index, item); + public List buildRequirements() { + return this.requirements != null ? build(requirements) : null; } - public RequirementsNested editRequirement(int index) { - if (index <= requirements.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requirements")); + protected void copyInstance(V1FieldSelectorAttributes instance) { + instance = instance != null ? instance : new V1FieldSelectorAttributes(); + if (instance != null) { + this.withRawSelector(instance.getRawSelector()); + this.withRequirements(instance.getRequirements()); } - return this.setNewRequirementLike(index, this.buildRequirement(index)); } public RequirementsNested editFirstRequirement() { @@ -257,6 +139,13 @@ public RequirementsNested editMatchingRequirement(Predicate editRequirement(int index) { + if (requirements.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requirements")); + } + return this.setNewRequirementLike(index, this.buildRequirement(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -277,10 +166,90 @@ public boolean equals(Object o) { return true; } + public String getRawSelector() { + return this.rawSelector; + } + + public boolean hasMatchingRequirement(Predicate predicate) { + for (V1FieldSelectorRequirementBuilder item : requirements) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRawSelector() { + return this.rawSelector != null; + } + + public boolean hasRequirements() { + return this.requirements != null && !(this.requirements.isEmpty()); + } + public int hashCode() { return Objects.hash(rawSelector, requirements); } + public A removeAllFromRequirements(Collection items) { + if (this.requirements == null) { + return (A) this; + } + for (V1FieldSelectorRequirement item : items) { + V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); + _visitables.get("requirements").remove(builder); + this.requirements.remove(builder); + } + return (A) this; + } + + public A removeFromRequirements(V1FieldSelectorRequirement... items) { + if (this.requirements == null) { + return (A) this; + } + for (V1FieldSelectorRequirement item : items) { + V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); + _visitables.get("requirements").remove(builder); + this.requirements.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromRequirements(Predicate predicate) { + if (requirements == null) { + return (A) this; + } + Iterator each = requirements.iterator(); + List visitables = _visitables.get("requirements"); + while (each.hasNext()) { + V1FieldSelectorRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public RequirementsNested setNewRequirementLike(int index,V1FieldSelectorRequirement item) { + return new RequirementsNested(index, item); + } + + public A setToRequirements(int index,V1FieldSelectorRequirement item) { + if (this.requirements == null) { + this.requirements = new ArrayList(); + } + V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); + if (index < 0 || index >= requirements.size()) { + _visitables.get("requirements").add(builder); + requirements.add(builder); + } else { + _visitables.get("requirements").add(builder); + requirements.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -296,14 +265,49 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withRawSelector(String rawSelector) { + this.rawSelector = rawSelector; + return (A) this; + } + + public A withRequirements(List requirements) { + if (this.requirements != null) { + this._visitables.get("requirements").clear(); + } + if (requirements != null) { + this.requirements = new ArrayList(); + for (V1FieldSelectorRequirement item : requirements) { + this.addToRequirements(item); + } + } else { + this.requirements = null; + } + return (A) this; + } + + public A withRequirements(V1FieldSelectorRequirement... requirements) { + if (this.requirements != null) { + this.requirements.clear(); + _visitables.remove("requirements"); + } + if (requirements != null) { + for (V1FieldSelectorRequirement item : requirements) { + this.addToRequirements(item); + } + } + return (A) this; + } public class RequirementsNested extends V1FieldSelectorRequirementFluent> implements Nested{ + + V1FieldSelectorRequirementBuilder builder; + int index; + RequirementsNested(int index,V1FieldSelectorRequirement item) { this.index = index; this.builder = new V1FieldSelectorRequirementBuilder(this, item); } - V1FieldSelectorRequirementBuilder builder; - int index; - + public N and() { return (N) V1FieldSelectorAttributesFluent.this.setToRequirements(index, builder.build()); } @@ -312,7 +316,5 @@ public N endRequirement() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementBuilder.java index a5e69c76a5..80ab89d654 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1FieldSelectorRequirementBuilder extends V1FieldSelectorRequirementFluent implements VisitableBuilder{ + + V1FieldSelectorRequirementFluent fluent; + public V1FieldSelectorRequirementBuilder() { this(new V1FieldSelectorRequirement()); } @@ -11,17 +14,16 @@ public V1FieldSelectorRequirementBuilder(V1FieldSelectorRequirementFluent flu this(fluent, new V1FieldSelectorRequirement()); } - public V1FieldSelectorRequirementBuilder(V1FieldSelectorRequirementFluent fluent,V1FieldSelectorRequirement instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1FieldSelectorRequirementBuilder(V1FieldSelectorRequirement instance) { this.fluent = this; this.copyInstance(instance); } - V1FieldSelectorRequirementFluent fluent; + public V1FieldSelectorRequirementBuilder(V1FieldSelectorRequirementFluent fluent,V1FieldSelectorRequirement instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FieldSelectorRequirement build() { V1FieldSelectorRequirement buildable = new V1FieldSelectorRequirement(); buildable.setKey(fluent.getKey()); @@ -30,5 +32,4 @@ public V1FieldSelectorRequirement build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementFluent.java index e51fa978e4..d731900dc3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,64 +16,25 @@ */ @SuppressWarnings("unchecked") public class V1FieldSelectorRequirementFluent> extends BaseFluent{ - public V1FieldSelectorRequirementFluent() { - } - - public V1FieldSelectorRequirementFluent(V1FieldSelectorRequirement instance) { - this.copyInstance(instance); - } + private String key; private String operator; private List values; - - protected void copyInstance(V1FieldSelectorRequirement instance) { - instance = instance != null ? instance : new V1FieldSelectorRequirement(); - if (instance != null) { - this.withKey(instance.getKey()); - this.withOperator(instance.getOperator()); - this.withValues(instance.getValues()); - } - } - - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public String getOperator() { - return this.operator; - } - - public A withOperator(String operator) { - this.operator = operator; - return (A) this; + + public V1FieldSelectorRequirementFluent() { } - public boolean hasOperator() { - return this.operator != null; + public V1FieldSelectorRequirementFluent(V1FieldSelectorRequirement instance) { + this.copyInstance(instance); } - - public A addToValues(int index,String item) { + + public A addAllToValues(Collection items) { if (this.values == null) { this.values = new ArrayList(); } - this.values.add(index, item); - return (A) this; - } - - public A setToValues(int index,String item) { - if (this.values == null) { - this.values = new ArrayList(); + for (String item : items) { + this.values.add(item); } - this.values.set(index, item); return (A) this; } @@ -87,48 +48,54 @@ public A addToValues(String... items) { return (A) this; } - public A addAllToValues(Collection items) { + public A addToValues(int index,String item) { if (this.values == null) { this.values = new ArrayList(); } - for (String item : items) { - this.values.add(item); - } + this.values.add(index, item); return (A) this; } - public A removeFromValues(String... items) { - if (this.values == null) { - return (A) this; - } - for (String item : items) { - this.values.remove(item); + protected void copyInstance(V1FieldSelectorRequirement instance) { + instance = instance != null ? instance : new V1FieldSelectorRequirement(); + if (instance != null) { + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withValues(instance.getValues()); } - return (A) this; } - public A removeAllFromValues(Collection items) { - if (this.values == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.values.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public List getValues() { - return this.values; - } - - public String getValue(int index) { - return this.values.get(index); + if (!(super.equals(o))) { + return false; + } + V1FieldSelectorRequirementFluent that = (V1FieldSelectorRequirementFluent) o; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } + return true; } public String getFirstValue() { return this.values.get(0); } + public String getKey() { + return this.key; + } + public String getLastValue() { return this.values.get(values.size() - 1); } @@ -142,6 +109,22 @@ public String getMatchingValue(Predicate predicate) { return null; } + public String getOperator() { + return this.operator; + } + + public String getValue(int index) { + return this.values.get(index); + } + + public List getValues() { + return this.values; + } + + public boolean hasKey() { + return this.key != null; + } + public boolean hasMatchingValue(Predicate predicate) { for (String item : values) { if (predicate.test(item)) { @@ -151,60 +134,44 @@ public boolean hasMatchingValue(Predicate predicate) { return false; } - public A withValues(List values) { - if (values != null) { - this.values = new ArrayList(); - for (String item : values) { - this.addToValues(item); - } - } else { - this.values = null; - } - return (A) this; - } - - public A withValues(String... values) { - if (this.values != null) { - this.values.clear(); - _visitables.remove("values"); - } - if (values != null) { - for (String item : values) { - this.addToValues(item); - } - } - return (A) this; + public boolean hasOperator() { + return this.operator != null; } public boolean hasValues() { return this.values != null && !(this.values.isEmpty()); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; + public int hashCode() { + return Objects.hash(key, operator, values); + } + + public A removeAllFromValues(Collection items) { + if (this.values == null) { + return (A) this; } - V1FieldSelectorRequirementFluent that = (V1FieldSelectorRequirementFluent) o; - if (!(Objects.equals(key, that.key))) { - return false; + for (String item : items) { + this.values.remove(item); } - if (!(Objects.equals(operator, that.operator))) { - return false; + return (A) this; + } + + public A removeFromValues(String... items) { + if (this.values == null) { + return (A) this; } - if (!(Objects.equals(values, that.values))) { - return false; + for (String item : items) { + this.values.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(key, operator, values); + public A setToValues(int index,String item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; } public String toString() { @@ -228,5 +195,39 @@ public String toString() { return sb.toString(); } - + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public A withValues(List values) { + if (values != null) { + this.values = new ArrayList(); + for (String item : values) { + this.addToValues(item); + } + } else { + this.values = null; + } + return (A) this; + } + + public A withValues(String... values) { + if (this.values != null) { + this.values.clear(); + _visitables.remove("values"); + } + if (values != null) { + for (String item : values) { + this.addToValues(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorBuilder.java index b78cf730f6..0d2415e883 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1FileKeySelectorBuilder extends V1FileKeySelectorFluent implements VisitableBuilder{ + + V1FileKeySelectorFluent fluent; + public V1FileKeySelectorBuilder() { this(new V1FileKeySelector()); } @@ -11,17 +14,16 @@ public V1FileKeySelectorBuilder(V1FileKeySelectorFluent fluent) { this(fluent, new V1FileKeySelector()); } - public V1FileKeySelectorBuilder(V1FileKeySelectorFluent fluent,V1FileKeySelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1FileKeySelectorBuilder(V1FileKeySelector instance) { this.fluent = this; this.copyInstance(instance); } - V1FileKeySelectorFluent fluent; + public V1FileKeySelectorBuilder(V1FileKeySelectorFluent fluent,V1FileKeySelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FileKeySelector build() { V1FileKeySelector buildable = new V1FileKeySelector(); buildable.setKey(fluent.getKey()); @@ -31,5 +33,4 @@ public V1FileKeySelector build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorFluent.java index dac72b4098..4c693fe1c3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1FileKeySelectorFluent> extends BaseFluent{ + + private String key; + private Boolean optional; + private String path; + private String volumeName; + public V1FileKeySelectorFluent() { } public V1FileKeySelectorFluent(V1FileKeySelector instance) { this.copyInstance(instance); } - private String key; - private Boolean optional; - private String path; - private String volumeName; - + protected void copyInstance(V1FileKeySelector instance) { instance = instance != null ? instance : new V1FileKeySelector(); if (instance != null) { @@ -34,58 +36,6 @@ protected void copyInstance(V1FileKeySelector instance) { } } - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public Boolean getOptional() { - return this.optional; - } - - public A withOptional(Boolean optional) { - this.optional = optional; - return (A) this; - } - - public boolean hasOptional() { - return this.optional != null; - } - - public String getPath() { - return this.path; - } - - public A withPath(String path) { - this.path = path; - return (A) this; - } - - public boolean hasPath() { - return this.path != null; - } - - public String getVolumeName() { - return this.volumeName; - } - - public A withVolumeName(String volumeName) { - this.volumeName = volumeName; - return (A) this; - } - - public boolean hasVolumeName() { - return this.volumeName != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -112,6 +62,38 @@ public boolean equals(Object o) { return true; } + public String getKey() { + return this.key; + } + + public Boolean getOptional() { + return this.optional; + } + + public String getPath() { + return this.path; + } + + public String getVolumeName() { + return this.volumeName; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasOptional() { + return this.optional != null; + } + + public boolean hasPath() { + return this.path != null; + } + + public boolean hasVolumeName() { + return this.volumeName != null; + } + public int hashCode() { return Objects.hash(key, optional, path, volumeName); } @@ -142,9 +124,28 @@ public String toString() { return sb.toString(); } + public A withKey(String key) { + this.key = key; + return (A) this; + } + public A withOptional() { return withOptional(true); } - + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public A withVolumeName(String volumeName) { + this.volumeName = volumeName; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java index 3eb886ee3d..40d6d5e763 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1FlexPersistentVolumeSourceBuilder extends V1FlexPersistentVolumeSourceFluent implements VisitableBuilder{ + + V1FlexPersistentVolumeSourceFluent fluent; + public V1FlexPersistentVolumeSourceBuilder() { this(new V1FlexPersistentVolumeSource()); } @@ -11,17 +14,16 @@ public V1FlexPersistentVolumeSourceBuilder(V1FlexPersistentVolumeSourceFluent this(fluent, new V1FlexPersistentVolumeSource()); } - public V1FlexPersistentVolumeSourceBuilder(V1FlexPersistentVolumeSourceFluent fluent,V1FlexPersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1FlexPersistentVolumeSourceBuilder(V1FlexPersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1FlexPersistentVolumeSourceFluent fluent; + public V1FlexPersistentVolumeSourceBuilder(V1FlexPersistentVolumeSourceFluent fluent,V1FlexPersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FlexPersistentVolumeSource build() { V1FlexPersistentVolumeSource buildable = new V1FlexPersistentVolumeSource(); buildable.setDriver(fluent.getDriver()); @@ -32,5 +34,4 @@ public V1FlexPersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java index 86fe7d7ec6..09cac274e0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java @@ -1,81 +1,36 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; -import java.lang.Object; -import java.lang.Boolean; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1FlexPersistentVolumeSourceFluent> extends BaseFluent{ - public V1FlexPersistentVolumeSourceFluent() { - } - - public V1FlexPersistentVolumeSourceFluent(V1FlexPersistentVolumeSource instance) { - this.copyInstance(instance); - } + private String driver; private String fsType; private Map options; private Boolean readOnly; private V1SecretReferenceBuilder secretRef; - - protected void copyInstance(V1FlexPersistentVolumeSource instance) { - instance = instance != null ? instance : new V1FlexPersistentVolumeSource(); - if (instance != null) { - this.withDriver(instance.getDriver()); - this.withFsType(instance.getFsType()); - this.withOptions(instance.getOptions()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - } - } - - public String getDriver() { - return this.driver; - } - - public A withDriver(String driver) { - this.driver = driver; - return (A) this; - } - - public boolean hasDriver() { - return this.driver != null; - } - - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; - } - - public boolean hasFsType() { - return this.fsType != null; + + public V1FlexPersistentVolumeSourceFluent() { } - public A addToOptions(String key,String value) { - if (this.options == null && key != null && value != null) { - this.options = new LinkedHashMap(); - } - if (key != null && value != null) { - this.options.put(key, value); - } - return (A) this; + public V1FlexPersistentVolumeSourceFluent(V1FlexPersistentVolumeSource instance) { + this.copyInstance(instance); } - + public A addToOptions(Map map) { if (this.options == null && map != null) { this.options = new LinkedHashMap(); @@ -86,90 +41,29 @@ public A addToOptions(Map map) { return (A) this; } - public A removeFromOptions(String key) { - if (this.options == null) { - return (A) this; - } - if (key != null && this.options != null) { - this.options.remove(key); - } - return (A) this; - } - - public A removeFromOptions(Map map) { - if (this.options == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.options != null) { - this.options.remove(key); - } - } + public A addToOptions(String key,String value) { + if (this.options == null && key != null && value != null) { + this.options = new LinkedHashMap(); } - return (A) this; - } - - public Map getOptions() { - return this.options; - } - - public A withOptions(Map options) { - if (options == null) { - this.options = null; - } else { - this.options = new LinkedHashMap(options); + if (key != null && value != null) { + this.options.put(key, value); } return (A) this; } - public boolean hasOptions() { - return this.options != null; - } - - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - public V1SecretReference buildSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public A withSecretRef(V1SecretReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1SecretReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); + protected void copyInstance(V1FlexPersistentVolumeSource instance) { + instance = instance != null ? instance : new V1FlexPersistentVolumeSource(); + if (instance != null) { + this.withDriver(instance.getDriver()); + this.withFsType(instance.getFsType()); + this.withOptions(instance.getOptions()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); } - return (A) this; - } - - public boolean hasSecretRef() { - return this.secretRef != null; - } - - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); - } - - public SecretRefNested withNewSecretRefLike(V1SecretReference item) { - return new SecretRefNested(item); - } - - public SecretRefNested editSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public SecretRefNested editOrNewSecretRef() { @@ -180,6 +74,10 @@ public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -209,10 +107,70 @@ public boolean equals(Object o) { return true; } + public String getDriver() { + return this.driver; + } + + public String getFsType() { + return this.fsType; + } + + public Map getOptions() { + return this.options; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasOptions() { + return this.options != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + + public boolean hasSecretRef() { + return this.secretRef != null; + } + public int hashCode() { return Objects.hash(driver, fsType, options, readOnly, secretRef); } + public A removeFromOptions(String key) { + if (this.options == null) { + return (A) this; + } + if (key != null && this.options != null) { + this.options.remove(key); + } + return (A) this; + } + + public A removeFromOptions(Map map) { + if (this.options == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.options != null) { + this.options.remove(key); + } + } + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -244,15 +202,61 @@ public String toString() { return sb.toString(); } + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); + } + + public SecretRefNested withNewSecretRefLike(V1SecretReference item) { + return new SecretRefNested(item); + } + + public A withOptions(Map options) { + if (options == null) { + this.options = null; + } else { + this.options = new LinkedHashMap(options); + } + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } + + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretRef(V1SecretReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1SecretReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; + } public class SecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + SecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1FlexPersistentVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -261,7 +265,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java index 461179930f..88eed4efff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1FlexVolumeSourceBuilder extends V1FlexVolumeSourceFluent implements VisitableBuilder{ + + V1FlexVolumeSourceFluent fluent; + public V1FlexVolumeSourceBuilder() { this(new V1FlexVolumeSource()); } @@ -11,17 +14,16 @@ public V1FlexVolumeSourceBuilder(V1FlexVolumeSourceFluent fluent) { this(fluent, new V1FlexVolumeSource()); } - public V1FlexVolumeSourceBuilder(V1FlexVolumeSourceFluent fluent,V1FlexVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1FlexVolumeSourceBuilder(V1FlexVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1FlexVolumeSourceFluent fluent; + public V1FlexVolumeSourceBuilder(V1FlexVolumeSourceFluent fluent,V1FlexVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FlexVolumeSource build() { V1FlexVolumeSource buildable = new V1FlexVolumeSource(); buildable.setDriver(fluent.getDriver()); @@ -32,5 +34,4 @@ public V1FlexVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java index 5396213cc1..f9490fbf2f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java @@ -1,81 +1,36 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; -import java.lang.Object; -import java.lang.Boolean; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1FlexVolumeSourceFluent> extends BaseFluent{ - public V1FlexVolumeSourceFluent() { - } - - public V1FlexVolumeSourceFluent(V1FlexVolumeSource instance) { - this.copyInstance(instance); - } + private String driver; private String fsType; private Map options; private Boolean readOnly; private V1LocalObjectReferenceBuilder secretRef; - - protected void copyInstance(V1FlexVolumeSource instance) { - instance = instance != null ? instance : new V1FlexVolumeSource(); - if (instance != null) { - this.withDriver(instance.getDriver()); - this.withFsType(instance.getFsType()); - this.withOptions(instance.getOptions()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - } - } - - public String getDriver() { - return this.driver; - } - - public A withDriver(String driver) { - this.driver = driver; - return (A) this; - } - - public boolean hasDriver() { - return this.driver != null; - } - - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; - } - - public boolean hasFsType() { - return this.fsType != null; + + public V1FlexVolumeSourceFluent() { } - public A addToOptions(String key,String value) { - if (this.options == null && key != null && value != null) { - this.options = new LinkedHashMap(); - } - if (key != null && value != null) { - this.options.put(key, value); - } - return (A) this; + public V1FlexVolumeSourceFluent(V1FlexVolumeSource instance) { + this.copyInstance(instance); } - + public A addToOptions(Map map) { if (this.options == null && map != null) { this.options = new LinkedHashMap(); @@ -86,90 +41,29 @@ public A addToOptions(Map map) { return (A) this; } - public A removeFromOptions(String key) { - if (this.options == null) { - return (A) this; - } - if (key != null && this.options != null) { - this.options.remove(key); - } - return (A) this; - } - - public A removeFromOptions(Map map) { - if (this.options == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.options != null) { - this.options.remove(key); - } - } + public A addToOptions(String key,String value) { + if (this.options == null && key != null && value != null) { + this.options = new LinkedHashMap(); } - return (A) this; - } - - public Map getOptions() { - return this.options; - } - - public A withOptions(Map options) { - if (options == null) { - this.options = null; - } else { - this.options = new LinkedHashMap(options); + if (key != null && value != null) { + this.options.put(key, value); } return (A) this; } - public boolean hasOptions() { - return this.options != null; - } - - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - public V1LocalObjectReference buildSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public A withSecretRef(V1LocalObjectReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); + protected void copyInstance(V1FlexVolumeSource instance) { + instance = instance != null ? instance : new V1FlexVolumeSource(); + if (instance != null) { + this.withDriver(instance.getDriver()); + this.withFsType(instance.getFsType()); + this.withOptions(instance.getOptions()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); } - return (A) this; - } - - public boolean hasSecretRef() { - return this.secretRef != null; - } - - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); - } - - public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); - } - - public SecretRefNested editSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public SecretRefNested editOrNewSecretRef() { @@ -180,6 +74,10 @@ public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -209,10 +107,70 @@ public boolean equals(Object o) { return true; } + public String getDriver() { + return this.driver; + } + + public String getFsType() { + return this.fsType; + } + + public Map getOptions() { + return this.options; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasOptions() { + return this.options != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + + public boolean hasSecretRef() { + return this.secretRef != null; + } + public int hashCode() { return Objects.hash(driver, fsType, options, readOnly, secretRef); } + public A removeFromOptions(String key) { + if (this.options == null) { + return (A) this; + } + if (key != null && this.options != null) { + this.options.remove(key); + } + return (A) this; + } + + public A removeFromOptions(Map map) { + if (this.options == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.options != null) { + this.options.remove(key); + } + } + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -244,15 +202,61 @@ public String toString() { return sb.toString(); } + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); + } + + public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { + return new SecretRefNested(item); + } + + public A withOptions(Map options) { + if (options == null) { + this.options = null; + } else { + this.options = new LinkedHashMap(options); + } + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } + + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretRef(V1LocalObjectReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; + } public class SecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ + + V1LocalObjectReferenceBuilder builder; + SecretRefNested(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - + public N and() { return (N) V1FlexVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -261,7 +265,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java index 93a8bae19a..27cb525d26 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1FlockerVolumeSourceBuilder extends V1FlockerVolumeSourceFluent implements VisitableBuilder{ + + V1FlockerVolumeSourceFluent fluent; + public V1FlockerVolumeSourceBuilder() { this(new V1FlockerVolumeSource()); } @@ -11,17 +14,16 @@ public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSourceFluent fluent) { this(fluent, new V1FlockerVolumeSource()); } - public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSourceFluent fluent,V1FlockerVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1FlockerVolumeSourceFluent fluent; + public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSourceFluent fluent,V1FlockerVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FlockerVolumeSource build() { V1FlockerVolumeSource buildable = new V1FlockerVolumeSource(); buildable.setDatasetName(fluent.getDatasetName()); @@ -29,5 +31,4 @@ public V1FlockerVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java index d38799933e..6f0a71ae24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1FlockerVolumeSourceFluent> extends BaseFluent{ + + private String datasetName; + private String datasetUUID; + public V1FlockerVolumeSourceFluent() { } public V1FlockerVolumeSourceFluent(V1FlockerVolumeSource instance) { this.copyInstance(instance); } - private String datasetName; - private String datasetUUID; - + protected void copyInstance(V1FlockerVolumeSource instance) { instance = instance != null ? instance : new V1FlockerVolumeSource(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1FlockerVolumeSource instance) { } } - public String getDatasetName() { - return this.datasetName; - } - - public A withDatasetName(String datasetName) { - this.datasetName = datasetName; - return (A) this; - } - - public boolean hasDatasetName() { - return this.datasetName != null; - } - - public String getDatasetUUID() { - return this.datasetUUID; - } - - public A withDatasetUUID(String datasetUUID) { - this.datasetUUID = datasetUUID; - return (A) this; - } - - public boolean hasDatasetUUID() { - return this.datasetUUID != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getDatasetName() { + return this.datasetName; + } + + public String getDatasetUUID() { + return this.datasetUUID; + } + + public boolean hasDatasetName() { + return this.datasetName != null; + } + + public boolean hasDatasetUUID() { + return this.datasetUUID != null; + } + public int hashCode() { return Objects.hash(datasetName, datasetUUID); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withDatasetName(String datasetName) { + this.datasetName = datasetName; + return (A) this; + } + + public A withDatasetUUID(String datasetUUID) { + this.datasetUUID = datasetUUID; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodBuilder.java index 6b77c1caaa..788117f97a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1FlowDistinguisherMethodBuilder extends V1FlowDistinguisherMethodFluent implements VisitableBuilder{ + + V1FlowDistinguisherMethodFluent fluent; + public V1FlowDistinguisherMethodBuilder() { this(new V1FlowDistinguisherMethod()); } @@ -11,22 +14,20 @@ public V1FlowDistinguisherMethodBuilder(V1FlowDistinguisherMethodFluent fluen this(fluent, new V1FlowDistinguisherMethod()); } - public V1FlowDistinguisherMethodBuilder(V1FlowDistinguisherMethodFluent fluent,V1FlowDistinguisherMethod instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1FlowDistinguisherMethodBuilder(V1FlowDistinguisherMethod instance) { this.fluent = this; this.copyInstance(instance); } - V1FlowDistinguisherMethodFluent fluent; + public V1FlowDistinguisherMethodBuilder(V1FlowDistinguisherMethodFluent fluent,V1FlowDistinguisherMethod instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FlowDistinguisherMethod build() { V1FlowDistinguisherMethod buildable = new V1FlowDistinguisherMethod(); buildable.setType(fluent.getType()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodFluent.java index 922568d434..1e4bd0d5b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1FlowDistinguisherMethodFluent> extends BaseFluent{ + + private String type; + public V1FlowDistinguisherMethodFluent() { } public V1FlowDistinguisherMethodFluent(V1FlowDistinguisherMethod instance) { this.copyInstance(instance); } - private String type; - + protected void copyInstance(V1FlowDistinguisherMethod instance) { instance = instance != null ? instance : new V1FlowDistinguisherMethod(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1FlowDistinguisherMethod instance) { } } - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getType() { + return this.type; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(type); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaBuilder.java index 81ab7eb590..482ff8506c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1FlowSchemaBuilder extends V1FlowSchemaFluent implements VisitableBuilder{ + + V1FlowSchemaFluent fluent; + public V1FlowSchemaBuilder() { this(new V1FlowSchema()); } @@ -11,17 +14,16 @@ public V1FlowSchemaBuilder(V1FlowSchemaFluent fluent) { this(fluent, new V1FlowSchema()); } - public V1FlowSchemaBuilder(V1FlowSchemaFluent fluent,V1FlowSchema instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1FlowSchemaBuilder(V1FlowSchema instance) { this.fluent = this; this.copyInstance(instance); } - V1FlowSchemaFluent fluent; + public V1FlowSchemaBuilder(V1FlowSchemaFluent fluent,V1FlowSchema instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FlowSchema build() { V1FlowSchema buildable = new V1FlowSchema(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1FlowSchema build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionBuilder.java index adaa02c42a..6bfdcfd897 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1FlowSchemaConditionBuilder extends V1FlowSchemaConditionFluent implements VisitableBuilder{ + + V1FlowSchemaConditionFluent fluent; + public V1FlowSchemaConditionBuilder() { this(new V1FlowSchemaCondition()); } @@ -11,17 +14,16 @@ public V1FlowSchemaConditionBuilder(V1FlowSchemaConditionFluent fluent) { this(fluent, new V1FlowSchemaCondition()); } - public V1FlowSchemaConditionBuilder(V1FlowSchemaConditionFluent fluent,V1FlowSchemaCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1FlowSchemaConditionBuilder(V1FlowSchemaCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1FlowSchemaConditionFluent fluent; + public V1FlowSchemaConditionBuilder(V1FlowSchemaConditionFluent fluent,V1FlowSchemaCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FlowSchemaCondition build() { V1FlowSchemaCondition buildable = new V1FlowSchemaCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -32,5 +34,4 @@ public V1FlowSchemaCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionFluent.java index 46db3bcf45..f8efbff875 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1FlowSchemaConditionFluent> extends BaseFluent{ - public V1FlowSchemaConditionFluent() { - } - - public V1FlowSchemaConditionFluent(V1FlowSchemaCondition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1FlowSchemaConditionFluent() { + } + public V1FlowSchemaConditionFluent(V1FlowSchemaCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1FlowSchemaCondition instance) { instance = instance != null ? instance : new V1FlowSchemaCondition(); if (instance != null) { @@ -36,71 +38,6 @@ protected void copyInstance(V1FlowSchemaCondition instance) { } } - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -130,6 +67,46 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; + } + + public String getMessage() { + return this.message; + } + + public String getReason() { + return this.reason; + } + + public String getStatus() { + return this.status; + } + + public String getType() { + return this.type; + } + + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasReason() { + return this.reason != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } @@ -165,5 +142,29 @@ public String toString() { return sb.toString(); } - + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaFluent.java index d253176c66..3bc4f5a955 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1FlowSchemaFluent> extends BaseFluent{ - public V1FlowSchemaFluent() { - } - - public V1FlowSchemaFluent(V1FlowSchema instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1FlowSchemaSpecBuilder spec; private V1FlowSchemaStatusBuilder status; - - protected void copyInstance(V1FlowSchema instance) { - instance = instance != null ? instance : new V1FlowSchema(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1FlowSchemaFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1FlowSchemaFluent(V1FlowSchema instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1FlowSchemaSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1FlowSchemaStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1FlowSchema instance) { + instance = instance != null ? instance : new V1FlowSchema(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1FlowSchemaSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1FlowSchemaSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1FlowSchemaSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1FlowSchemaSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1FlowSchemaSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1FlowSchemaSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1FlowSchemaStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1FlowSchemaStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1FlowSchemaStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1FlowSchemaStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1FlowSchemaStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1FlowSchemaStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1FlowSchemaStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1FlowSchemaStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1FlowSchemaSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1FlowSchemaStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1FlowSchemaSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1FlowSchemaSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1FlowSchemaStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1FlowSchemaStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1FlowSchemaFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1FlowSchemaSpecFluent> implements Nested{ + + V1FlowSchemaSpecBuilder builder; + SpecNested(V1FlowSchemaSpec item) { this.builder = new V1FlowSchemaSpecBuilder(this, item); } - V1FlowSchemaSpecBuilder builder; - + public N and() { return (N) V1FlowSchemaFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1FlowSchemaStatusFluent> implements Nested{ + + V1FlowSchemaStatusBuilder builder; + StatusNested(V1FlowSchemaStatus item) { this.builder = new V1FlowSchemaStatusBuilder(this, item); } - V1FlowSchemaStatusBuilder builder; - + public N and() { return (N) V1FlowSchemaFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListBuilder.java index f695d39ee0..0227cbac48 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1FlowSchemaListBuilder extends V1FlowSchemaListFluent implements VisitableBuilder{ + + V1FlowSchemaListFluent fluent; + public V1FlowSchemaListBuilder() { this(new V1FlowSchemaList()); } @@ -11,17 +14,16 @@ public V1FlowSchemaListBuilder(V1FlowSchemaListFluent fluent) { this(fluent, new V1FlowSchemaList()); } - public V1FlowSchemaListBuilder(V1FlowSchemaListFluent fluent,V1FlowSchemaList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1FlowSchemaListBuilder(V1FlowSchemaList instance) { this.fluent = this; this.copyInstance(instance); } - V1FlowSchemaListFluent fluent; + public V1FlowSchemaListBuilder(V1FlowSchemaListFluent fluent,V1FlowSchemaList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FlowSchemaList build() { V1FlowSchemaList buildable = new V1FlowSchemaList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1FlowSchemaList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListFluent.java index 01fd4e4b87..87dd349fe8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1FlowSchemaListFluent> extends BaseFluent{ - public V1FlowSchemaListFluent() { - } - - public V1FlowSchemaListFluent(V1FlowSchemaList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1FlowSchemaList instance) { - instance = instance != null ? instance : new V1FlowSchemaList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1FlowSchemaListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1FlowSchemaListFluent(V1FlowSchemaList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1FlowSchema item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1FlowSchema item : items) { + V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1FlowSchema item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1FlowSchema item) { + return new ItemsNested(-1, item); } public A addToItems(V1FlowSchema... items) { @@ -96,68 +65,31 @@ public A addToItems(V1FlowSchema... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1FlowSchema item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1FlowSchema item : items) { - V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); + V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1FlowSchema... items) { - if (this.items == null) { - return (A) this; - } - for (V1FlowSchema item : items) { - V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1FlowSchema item : items) { - V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1FlowSchemaBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1FlowSchema buildFirstItem() { + return this.items.get(0).build(); } public V1FlowSchema buildItem(int index) { return this.items.get(index).build(); } - public V1FlowSchema buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1FlowSchema buildLastItem() { @@ -173,73 +105,34 @@ public V1FlowSchema buildMatchingItem(Predicate predicate) return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1FlowSchemaBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1FlowSchema item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1FlowSchemaList instance) { + instance = instance != null ? instance : new V1FlowSchemaList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1FlowSchema... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1FlowSchema item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1FlowSchema item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1FlowSchema item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1FlowSchemaBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1FlowSchema item : items) { + V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1FlowSchema... items) { + if (this.items == null) { + return (A) this; + } + for (V1FlowSchema item : items) { + V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1FlowSchemaBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1FlowSchema item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1FlowSchema item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1FlowSchema item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1FlowSchema... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1FlowSchema item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1FlowSchemaFluent> implements Nested{ + + V1FlowSchemaBuilder builder; + int index; + ItemsNested(int index,V1FlowSchema item) { this.index = index; this.builder = new V1FlowSchemaBuilder(this, item); } - V1FlowSchemaBuilder builder; - int index; - + public N and() { return (N) V1FlowSchemaListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1FlowSchemaListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecBuilder.java index 851260548b..c54d2d55c1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1FlowSchemaSpecBuilder extends V1FlowSchemaSpecFluent implements VisitableBuilder{ + + V1FlowSchemaSpecFluent fluent; + public V1FlowSchemaSpecBuilder() { this(new V1FlowSchemaSpec()); } @@ -11,17 +14,16 @@ public V1FlowSchemaSpecBuilder(V1FlowSchemaSpecFluent fluent) { this(fluent, new V1FlowSchemaSpec()); } - public V1FlowSchemaSpecBuilder(V1FlowSchemaSpecFluent fluent,V1FlowSchemaSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1FlowSchemaSpecBuilder(V1FlowSchemaSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1FlowSchemaSpecFluent fluent; + public V1FlowSchemaSpecBuilder(V1FlowSchemaSpecFluent fluent,V1FlowSchemaSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FlowSchemaSpec build() { V1FlowSchemaSpec buildable = new V1FlowSchemaSpec(); buildable.setDistinguisherMethod(fluent.buildDistinguisherMethod()); @@ -31,5 +33,4 @@ public V1FlowSchemaSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecFluent.java index 325659ab12..86f6175fdc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecFluent.java @@ -1,168 +1,57 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; -import java.lang.Integer; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1FlowSchemaSpecFluent> extends BaseFluent{ - public V1FlowSchemaSpecFluent() { - } - - public V1FlowSchemaSpecFluent(V1FlowSchemaSpec instance) { - this.copyInstance(instance); - } + private V1FlowDistinguisherMethodBuilder distinguisherMethod; private Integer matchingPrecedence; private V1PriorityLevelConfigurationReferenceBuilder priorityLevelConfiguration; private ArrayList rules; - - protected void copyInstance(V1FlowSchemaSpec instance) { - instance = instance != null ? instance : new V1FlowSchemaSpec(); - if (instance != null) { - this.withDistinguisherMethod(instance.getDistinguisherMethod()); - this.withMatchingPrecedence(instance.getMatchingPrecedence()); - this.withPriorityLevelConfiguration(instance.getPriorityLevelConfiguration()); - this.withRules(instance.getRules()); - } - } - - public V1FlowDistinguisherMethod buildDistinguisherMethod() { - return this.distinguisherMethod != null ? this.distinguisherMethod.build() : null; - } - - public A withDistinguisherMethod(V1FlowDistinguisherMethod distinguisherMethod) { - this._visitables.remove("distinguisherMethod"); - if (distinguisherMethod != null) { - this.distinguisherMethod = new V1FlowDistinguisherMethodBuilder(distinguisherMethod); - this._visitables.get("distinguisherMethod").add(this.distinguisherMethod); - } else { - this.distinguisherMethod = null; - this._visitables.get("distinguisherMethod").remove(this.distinguisherMethod); - } - return (A) this; - } - - public boolean hasDistinguisherMethod() { - return this.distinguisherMethod != null; - } - - public DistinguisherMethodNested withNewDistinguisherMethod() { - return new DistinguisherMethodNested(null); - } - - public DistinguisherMethodNested withNewDistinguisherMethodLike(V1FlowDistinguisherMethod item) { - return new DistinguisherMethodNested(item); - } - - public DistinguisherMethodNested editDistinguisherMethod() { - return this.withNewDistinguisherMethodLike(Optional.ofNullable(this.buildDistinguisherMethod()).orElse(null)); - } - - public DistinguisherMethodNested editOrNewDistinguisherMethod() { - return this.withNewDistinguisherMethodLike(Optional.ofNullable(this.buildDistinguisherMethod()).orElse(new V1FlowDistinguisherMethodBuilder().build())); - } - - public DistinguisherMethodNested editOrNewDistinguisherMethodLike(V1FlowDistinguisherMethod item) { - return this.withNewDistinguisherMethodLike(Optional.ofNullable(this.buildDistinguisherMethod()).orElse(item)); - } - - public Integer getMatchingPrecedence() { - return this.matchingPrecedence; - } - - public A withMatchingPrecedence(Integer matchingPrecedence) { - this.matchingPrecedence = matchingPrecedence; - return (A) this; - } - - public boolean hasMatchingPrecedence() { - return this.matchingPrecedence != null; - } - - public V1PriorityLevelConfigurationReference buildPriorityLevelConfiguration() { - return this.priorityLevelConfiguration != null ? this.priorityLevelConfiguration.build() : null; - } - - public A withPriorityLevelConfiguration(V1PriorityLevelConfigurationReference priorityLevelConfiguration) { - this._visitables.remove("priorityLevelConfiguration"); - if (priorityLevelConfiguration != null) { - this.priorityLevelConfiguration = new V1PriorityLevelConfigurationReferenceBuilder(priorityLevelConfiguration); - this._visitables.get("priorityLevelConfiguration").add(this.priorityLevelConfiguration); - } else { - this.priorityLevelConfiguration = null; - this._visitables.get("priorityLevelConfiguration").remove(this.priorityLevelConfiguration); - } - return (A) this; - } - - public boolean hasPriorityLevelConfiguration() { - return this.priorityLevelConfiguration != null; - } - - public PriorityLevelConfigurationNested withNewPriorityLevelConfiguration() { - return new PriorityLevelConfigurationNested(null); - } - - public PriorityLevelConfigurationNested withNewPriorityLevelConfigurationLike(V1PriorityLevelConfigurationReference item) { - return new PriorityLevelConfigurationNested(item); - } - - public PriorityLevelConfigurationNested editPriorityLevelConfiguration() { - return this.withNewPriorityLevelConfigurationLike(Optional.ofNullable(this.buildPriorityLevelConfiguration()).orElse(null)); - } - - public PriorityLevelConfigurationNested editOrNewPriorityLevelConfiguration() { - return this.withNewPriorityLevelConfigurationLike(Optional.ofNullable(this.buildPriorityLevelConfiguration()).orElse(new V1PriorityLevelConfigurationReferenceBuilder().build())); + + public V1FlowSchemaSpecFluent() { } - public PriorityLevelConfigurationNested editOrNewPriorityLevelConfigurationLike(V1PriorityLevelConfigurationReference item) { - return this.withNewPriorityLevelConfigurationLike(Optional.ofNullable(this.buildPriorityLevelConfiguration()).orElse(item)); + public V1FlowSchemaSpecFluent(V1FlowSchemaSpec instance) { + this.copyInstance(instance); } - - public A addToRules(int index,V1PolicyRulesWithSubjects item) { + + public A addAllToRules(Collection items) { if (this.rules == null) { this.rules = new ArrayList(); } - V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); - } else { + for (V1PolicyRulesWithSubjects item : items) { + V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); _visitables.get("rules").add(builder); - rules.add(index, builder); + this.rules.add(builder); } return (A) this; } - public A setToRules(int index,V1PolicyRulesWithSubjects item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); - } else { - _visitables.get("rules").add(builder); - rules.set(index, builder); - } - return (A) this; + public RulesNested addNewRule() { + return new RulesNested(-1, null); + } + + public RulesNested addNewRuleLike(V1PolicyRulesWithSubjects item) { + return new RulesNested(-1, item); } public A addToRules(V1PolicyRulesWithSubjects... items) { @@ -177,64 +66,23 @@ public A addToRules(V1PolicyRulesWithSubjects... items) { return (A) this; } - public A addAllToRules(Collection items) { + public A addToRules(int index,V1PolicyRulesWithSubjects item) { if (this.rules == null) { this.rules = new ArrayList(); } - for (V1PolicyRulesWithSubjects item : items) { - V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); + V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); + if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; - } - - public A removeFromRules(V1PolicyRulesWithSubjects... items) { - if (this.rules == null) { - return (A) this; - } - for (V1PolicyRulesWithSubjects item : items) { - V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); - _visitables.get("rules").remove(builder); - this.rules.remove(builder); - } - return (A) this; - } - - public A removeAllFromRules(Collection items) { - if (this.rules == null) { - return (A) this; - } - for (V1PolicyRulesWithSubjects item : items) { - V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); - _visitables.get("rules").remove(builder); - this.rules.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromRules(Predicate predicate) { - if (rules == null) { - return (A) this; - } - Iterator each = rules.iterator(); - List visitables = _visitables.get("rules"); - while (each.hasNext()) { - V1PolicyRulesWithSubjectsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); } return (A) this; } - public List buildRules() { - return this.rules != null ? build(rules) : null; - } - - public V1PolicyRulesWithSubjects buildRule(int index) { - return this.rules.get(index).build(); + public V1FlowDistinguisherMethod buildDistinguisherMethod() { + return this.distinguisherMethod != null ? this.distinguisherMethod.build() : null; } public V1PolicyRulesWithSubjects buildFirstRule() { @@ -254,64 +102,30 @@ public V1PolicyRulesWithSubjects buildMatchingRule(Predicate predicate) { - for (V1PolicyRulesWithSubjectsBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRules(List rules) { - if (this.rules != null) { - this._visitables.get("rules").clear(); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1PolicyRulesWithSubjects item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; - } - return (A) this; - } - - public A withRules(V1PolicyRulesWithSubjects... rules) { - if (this.rules != null) { - this.rules.clear(); - _visitables.remove("rules"); - } - if (rules != null) { - for (V1PolicyRulesWithSubjects item : rules) { - this.addToRules(item); - } - } - return (A) this; - } - - public boolean hasRules() { - return this.rules != null && !(this.rules.isEmpty()); + public V1PriorityLevelConfigurationReference buildPriorityLevelConfiguration() { + return this.priorityLevelConfiguration != null ? this.priorityLevelConfiguration.build() : null; } - public RulesNested addNewRule() { - return new RulesNested(-1, null); + public V1PolicyRulesWithSubjects buildRule(int index) { + return this.rules.get(index).build(); } - public RulesNested addNewRuleLike(V1PolicyRulesWithSubjects item) { - return new RulesNested(-1, item); + public List buildRules() { + return this.rules != null ? build(rules) : null; } - public RulesNested setNewRuleLike(int index,V1PolicyRulesWithSubjects item) { - return new RulesNested(index, item); + protected void copyInstance(V1FlowSchemaSpec instance) { + instance = instance != null ? instance : new V1FlowSchemaSpec(); + if (instance != null) { + this.withDistinguisherMethod(instance.getDistinguisherMethod()); + this.withMatchingPrecedence(instance.getMatchingPrecedence()); + this.withPriorityLevelConfiguration(instance.getPriorityLevelConfiguration()); + this.withRules(instance.getRules()); + } } - public RulesNested editRule(int index) { - if (index <= rules.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); - } - return this.setNewRuleLike(index, this.buildRule(index)); + public DistinguisherMethodNested editDistinguisherMethod() { + return this.withNewDistinguisherMethodLike(Optional.ofNullable(this.buildDistinguisherMethod()).orElse(null)); } public RulesNested editFirstRule() { @@ -343,6 +157,33 @@ public RulesNested editMatchingRule(Predicate editOrNewDistinguisherMethod() { + return this.withNewDistinguisherMethodLike(Optional.ofNullable(this.buildDistinguisherMethod()).orElse(new V1FlowDistinguisherMethodBuilder().build())); + } + + public DistinguisherMethodNested editOrNewDistinguisherMethodLike(V1FlowDistinguisherMethod item) { + return this.withNewDistinguisherMethodLike(Optional.ofNullable(this.buildDistinguisherMethod()).orElse(item)); + } + + public PriorityLevelConfigurationNested editOrNewPriorityLevelConfiguration() { + return this.withNewPriorityLevelConfigurationLike(Optional.ofNullable(this.buildPriorityLevelConfiguration()).orElse(new V1PriorityLevelConfigurationReferenceBuilder().build())); + } + + public PriorityLevelConfigurationNested editOrNewPriorityLevelConfigurationLike(V1PriorityLevelConfigurationReference item) { + return this.withNewPriorityLevelConfigurationLike(Optional.ofNullable(this.buildPriorityLevelConfiguration()).orElse(item)); + } + + public PriorityLevelConfigurationNested editPriorityLevelConfiguration() { + return this.withNewPriorityLevelConfigurationLike(Optional.ofNullable(this.buildPriorityLevelConfiguration()).orElse(null)); + } + + public RulesNested editRule(int index) { + if (rules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -369,10 +210,98 @@ public boolean equals(Object o) { return true; } + public Integer getMatchingPrecedence() { + return this.matchingPrecedence; + } + + public boolean hasDistinguisherMethod() { + return this.distinguisherMethod != null; + } + + public boolean hasMatchingPrecedence() { + return this.matchingPrecedence != null; + } + + public boolean hasMatchingRule(Predicate predicate) { + for (V1PolicyRulesWithSubjectsBuilder item : rules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPriorityLevelConfiguration() { + return this.priorityLevelConfiguration != null; + } + + public boolean hasRules() { + return this.rules != null && !(this.rules.isEmpty()); + } + public int hashCode() { return Objects.hash(distinguisherMethod, matchingPrecedence, priorityLevelConfiguration, rules); } + public A removeAllFromRules(Collection items) { + if (this.rules == null) { + return (A) this; + } + for (V1PolicyRulesWithSubjects item : items) { + V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; + } + + public A removeFromRules(V1PolicyRulesWithSubjects... items) { + if (this.rules == null) { + return (A) this; + } + for (V1PolicyRulesWithSubjects item : items) { + V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromRules(Predicate predicate) { + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); + while (each.hasNext()) { + V1PolicyRulesWithSubjectsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public RulesNested setNewRuleLike(int index,V1PolicyRulesWithSubjects item) { + return new RulesNested(index, item); + } + + public A setToRules(int index,V1PolicyRulesWithSubjects item) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -398,12 +327,87 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withDistinguisherMethod(V1FlowDistinguisherMethod distinguisherMethod) { + this._visitables.remove("distinguisherMethod"); + if (distinguisherMethod != null) { + this.distinguisherMethod = new V1FlowDistinguisherMethodBuilder(distinguisherMethod); + this._visitables.get("distinguisherMethod").add(this.distinguisherMethod); + } else { + this.distinguisherMethod = null; + this._visitables.get("distinguisherMethod").remove(this.distinguisherMethod); + } + return (A) this; + } + + public A withMatchingPrecedence(Integer matchingPrecedence) { + this.matchingPrecedence = matchingPrecedence; + return (A) this; + } + + public DistinguisherMethodNested withNewDistinguisherMethod() { + return new DistinguisherMethodNested(null); + } + + public DistinguisherMethodNested withNewDistinguisherMethodLike(V1FlowDistinguisherMethod item) { + return new DistinguisherMethodNested(item); + } + + public PriorityLevelConfigurationNested withNewPriorityLevelConfiguration() { + return new PriorityLevelConfigurationNested(null); + } + + public PriorityLevelConfigurationNested withNewPriorityLevelConfigurationLike(V1PriorityLevelConfigurationReference item) { + return new PriorityLevelConfigurationNested(item); + } + + public A withPriorityLevelConfiguration(V1PriorityLevelConfigurationReference priorityLevelConfiguration) { + this._visitables.remove("priorityLevelConfiguration"); + if (priorityLevelConfiguration != null) { + this.priorityLevelConfiguration = new V1PriorityLevelConfigurationReferenceBuilder(priorityLevelConfiguration); + this._visitables.get("priorityLevelConfiguration").add(this.priorityLevelConfiguration); + } else { + this.priorityLevelConfiguration = null; + this._visitables.get("priorityLevelConfiguration").remove(this.priorityLevelConfiguration); + } + return (A) this; + } + + public A withRules(List rules) { + if (this.rules != null) { + this._visitables.get("rules").clear(); + } + if (rules != null) { + this.rules = new ArrayList(); + for (V1PolicyRulesWithSubjects item : rules) { + this.addToRules(item); + } + } else { + this.rules = null; + } + return (A) this; + } + + public A withRules(V1PolicyRulesWithSubjects... rules) { + if (this.rules != null) { + this.rules.clear(); + _visitables.remove("rules"); + } + if (rules != null) { + for (V1PolicyRulesWithSubjects item : rules) { + this.addToRules(item); + } + } + return (A) this; + } public class DistinguisherMethodNested extends V1FlowDistinguisherMethodFluent> implements Nested{ + + V1FlowDistinguisherMethodBuilder builder; + DistinguisherMethodNested(V1FlowDistinguisherMethod item) { this.builder = new V1FlowDistinguisherMethodBuilder(this, item); } - V1FlowDistinguisherMethodBuilder builder; - + public N and() { return (N) V1FlowSchemaSpecFluent.this.withDistinguisherMethod(builder.build()); } @@ -412,14 +416,15 @@ public N endDistinguisherMethod() { return and(); } - } public class PriorityLevelConfigurationNested extends V1PriorityLevelConfigurationReferenceFluent> implements Nested{ + + V1PriorityLevelConfigurationReferenceBuilder builder; + PriorityLevelConfigurationNested(V1PriorityLevelConfigurationReference item) { this.builder = new V1PriorityLevelConfigurationReferenceBuilder(this, item); } - V1PriorityLevelConfigurationReferenceBuilder builder; - + public N and() { return (N) V1FlowSchemaSpecFluent.this.withPriorityLevelConfiguration(builder.build()); } @@ -428,16 +433,17 @@ public N endPriorityLevelConfiguration() { return and(); } - } public class RulesNested extends V1PolicyRulesWithSubjectsFluent> implements Nested{ + + V1PolicyRulesWithSubjectsBuilder builder; + int index; + RulesNested(int index,V1PolicyRulesWithSubjects item) { this.index = index; this.builder = new V1PolicyRulesWithSubjectsBuilder(this, item); } - V1PolicyRulesWithSubjectsBuilder builder; - int index; - + public N and() { return (N) V1FlowSchemaSpecFluent.this.setToRules(index, builder.build()); } @@ -446,7 +452,5 @@ public N endRule() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusBuilder.java index efa6abd0c9..d3c1e381b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1FlowSchemaStatusBuilder extends V1FlowSchemaStatusFluent implements VisitableBuilder{ + + V1FlowSchemaStatusFluent fluent; + public V1FlowSchemaStatusBuilder() { this(new V1FlowSchemaStatus()); } @@ -11,22 +14,20 @@ public V1FlowSchemaStatusBuilder(V1FlowSchemaStatusFluent fluent) { this(fluent, new V1FlowSchemaStatus()); } - public V1FlowSchemaStatusBuilder(V1FlowSchemaStatusFluent fluent,V1FlowSchemaStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1FlowSchemaStatusBuilder(V1FlowSchemaStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1FlowSchemaStatusFluent fluent; + public V1FlowSchemaStatusBuilder(V1FlowSchemaStatusFluent fluent,V1FlowSchemaStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FlowSchemaStatus build() { V1FlowSchemaStatus buildable = new V1FlowSchemaStatus(); buildable.setConditions(fluent.buildConditions()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusFluent.java index 0f4e62bb49..6f26d3a934 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusFluent.java @@ -1,67 +1,52 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1FlowSchemaStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + public V1FlowSchemaStatusFluent() { } public V1FlowSchemaStatusFluent(V1FlowSchemaStatus instance) { this.copyInstance(instance); } - private ArrayList conditions; - - protected void copyInstance(V1FlowSchemaStatus instance) { - instance = instance != null ? instance : new V1FlowSchemaStatus(); - if (instance != null) { - this.withConditions(instance.getConditions()); - } - } - - public A addToConditions(int index,V1FlowSchemaCondition item) { + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1FlowSchemaCondition item : items) { + V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1FlowSchemaCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1FlowSchemaCondition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1FlowSchemaCondition... items) { @@ -76,66 +61,29 @@ public A addToConditions(V1FlowSchemaCondition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1FlowSchemaCondition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1FlowSchemaCondition item : items) { - V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); + V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1FlowSchemaCondition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1FlowSchemaCondition item : items) { - V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1FlowSchemaCondition item : items) { - V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1FlowSchemaConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1FlowSchemaCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1FlowSchemaCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1FlowSchemaCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -153,61 +101,15 @@ public V1FlowSchemaCondition buildMatchingCondition(Predicate predicate) { - for (V1FlowSchemaConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1FlowSchemaCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(V1FlowSchemaCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1FlowSchemaCondition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1FlowSchemaStatus instance) { + instance = instance != null ? instance : new V1FlowSchemaStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1FlowSchemaCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1FlowSchemaCondition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -259,10 +161,82 @@ public boolean equals(Object o) { return true; } + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1FlowSchemaConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(conditions); } + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1FlowSchemaCondition item : items) { + V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1FlowSchemaCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1FlowSchemaCondition item : items) { + V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1FlowSchemaConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1FlowSchemaCondition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1FlowSchemaCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -273,14 +247,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1FlowSchemaCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1FlowSchemaCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1FlowSchemaCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } public class ConditionsNested extends V1FlowSchemaConditionFluent> implements Nested{ + + V1FlowSchemaConditionBuilder builder; + int index; + ConditionsNested(int index,V1FlowSchemaCondition item) { this.index = index; this.builder = new V1FlowSchemaConditionBuilder(this, item); } - V1FlowSchemaConditionBuilder builder; - int index; - + public N and() { return (N) V1FlowSchemaStatusFluent.this.setToConditions(index, builder.build()); } @@ -289,7 +293,5 @@ public N endCondition() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeBuilder.java index df462ed2ce..176352c4b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ForNodeBuilder extends V1ForNodeFluent implements VisitableBuilder{ + + V1ForNodeFluent fluent; + public V1ForNodeBuilder() { this(new V1ForNode()); } @@ -11,22 +14,20 @@ public V1ForNodeBuilder(V1ForNodeFluent fluent) { this(fluent, new V1ForNode()); } - public V1ForNodeBuilder(V1ForNodeFluent fluent,V1ForNode instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ForNodeBuilder(V1ForNode instance) { this.fluent = this; this.copyInstance(instance); } - V1ForNodeFluent fluent; + public V1ForNodeBuilder(V1ForNodeFluent fluent,V1ForNode instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ForNode build() { V1ForNode buildable = new V1ForNode(); buildable.setName(fluent.getName()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeFluent.java index 2baf0f0fff..64afd832d9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ForNodeFluent> extends BaseFluent{ + + private String name; + public V1ForNodeFluent() { } public V1ForNodeFluent(V1ForNode instance) { this.copyInstance(instance); } - private String name; - + protected void copyInstance(V1ForNode instance) { instance = instance != null ? instance : new V1ForNode(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1ForNode instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(name); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java index 1faed5a529..55a3755eb2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ForZoneBuilder extends V1ForZoneFluent implements VisitableBuilder{ + + V1ForZoneFluent fluent; + public V1ForZoneBuilder() { this(new V1ForZone()); } @@ -11,22 +14,20 @@ public V1ForZoneBuilder(V1ForZoneFluent fluent) { this(fluent, new V1ForZone()); } - public V1ForZoneBuilder(V1ForZoneFluent fluent,V1ForZone instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ForZoneBuilder(V1ForZone instance) { this.fluent = this; this.copyInstance(instance); } - V1ForZoneFluent fluent; + public V1ForZoneBuilder(V1ForZoneFluent fluent,V1ForZone instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ForZone build() { V1ForZone buildable = new V1ForZone(); buildable.setName(fluent.getName()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java index a808fa99cf..4c5783430e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ForZoneFluent> extends BaseFluent{ + + private String name; + public V1ForZoneFluent() { } public V1ForZoneFluent(V1ForZone instance) { this.copyInstance(instance); } - private String name; - + protected void copyInstance(V1ForZone instance) { instance = instance != null ? instance : new V1ForZone(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1ForZone instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(name); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java index 5bd9ee2a32..19483a8ce9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1GCEPersistentDiskVolumeSourceBuilder extends V1GCEPersistentDiskVolumeSourceFluent implements VisitableBuilder{ + + V1GCEPersistentDiskVolumeSourceFluent fluent; + public V1GCEPersistentDiskVolumeSourceBuilder() { this(new V1GCEPersistentDiskVolumeSource()); } @@ -11,17 +14,16 @@ public V1GCEPersistentDiskVolumeSourceBuilder(V1GCEPersistentDiskVolumeSourceFlu this(fluent, new V1GCEPersistentDiskVolumeSource()); } - public V1GCEPersistentDiskVolumeSourceBuilder(V1GCEPersistentDiskVolumeSourceFluent fluent,V1GCEPersistentDiskVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1GCEPersistentDiskVolumeSourceBuilder(V1GCEPersistentDiskVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1GCEPersistentDiskVolumeSourceFluent fluent; + public V1GCEPersistentDiskVolumeSourceBuilder(V1GCEPersistentDiskVolumeSourceFluent fluent,V1GCEPersistentDiskVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1GCEPersistentDiskVolumeSource build() { V1GCEPersistentDiskVolumeSource buildable = new V1GCEPersistentDiskVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -31,5 +33,4 @@ public V1GCEPersistentDiskVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java index 91442023ca..c1a589f81f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; -import java.lang.Boolean; /** * Generated */ @SuppressWarnings("unchecked") public class V1GCEPersistentDiskVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private Integer partition; + private String pdName; + private Boolean readOnly; + public V1GCEPersistentDiskVolumeSourceFluent() { } public V1GCEPersistentDiskVolumeSourceFluent(V1GCEPersistentDiskVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private Integer partition; - private String pdName; - private Boolean readOnly; - + protected void copyInstance(V1GCEPersistentDiskVolumeSource instance) { instance = instance != null ? instance : new V1GCEPersistentDiskVolumeSource(); if (instance != null) { @@ -35,58 +37,6 @@ protected void copyInstance(V1GCEPersistentDiskVolumeSource instance) { } } - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; - } - - public boolean hasFsType() { - return this.fsType != null; - } - - public Integer getPartition() { - return this.partition; - } - - public A withPartition(Integer partition) { - this.partition = partition; - return (A) this; - } - - public boolean hasPartition() { - return this.partition != null; - } - - public String getPdName() { - return this.pdName; - } - - public A withPdName(String pdName) { - this.pdName = pdName; - return (A) this; - } - - public boolean hasPdName() { - return this.pdName != null; - } - - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -113,6 +63,38 @@ public boolean equals(Object o) { return true; } + public String getFsType() { + return this.fsType; + } + + public Integer getPartition() { + return this.partition; + } + + public String getPdName() { + return this.pdName; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasPartition() { + return this.partition != null; + } + + public boolean hasPdName() { + return this.pdName != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + public int hashCode() { return Objects.hash(fsType, partition, pdName, readOnly); } @@ -143,9 +125,28 @@ public String toString() { return sb.toString(); } + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withPartition(Integer partition) { + this.partition = partition; + return (A) this; + } + + public A withPdName(String pdName) { + this.pdName = pdName; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java index c7c0f5661b..06221b4d42 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1GRPCActionBuilder extends V1GRPCActionFluent implements VisitableBuilder{ + + V1GRPCActionFluent fluent; + public V1GRPCActionBuilder() { this(new V1GRPCAction()); } @@ -11,17 +14,16 @@ public V1GRPCActionBuilder(V1GRPCActionFluent fluent) { this(fluent, new V1GRPCAction()); } - public V1GRPCActionBuilder(V1GRPCActionFluent fluent,V1GRPCAction instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1GRPCActionBuilder(V1GRPCAction instance) { this.fluent = this; this.copyInstance(instance); } - V1GRPCActionFluent fluent; + public V1GRPCActionBuilder(V1GRPCActionFluent fluent,V1GRPCAction instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1GRPCAction build() { V1GRPCAction buildable = new V1GRPCAction(); buildable.setPort(fluent.getPort()); @@ -29,5 +31,4 @@ public V1GRPCAction build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java index e9c3265d1b..6fd35209ad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1GRPCActionFluent> extends BaseFluent{ + + private Integer port; + private String service; + public V1GRPCActionFluent() { } public V1GRPCActionFluent(V1GRPCAction instance) { this.copyInstance(instance); } - private Integer port; - private String service; - + protected void copyInstance(V1GRPCAction instance) { instance = instance != null ? instance : new V1GRPCAction(); if (instance != null) { @@ -30,32 +32,6 @@ protected void copyInstance(V1GRPCAction instance) { } } - public Integer getPort() { - return this.port; - } - - public A withPort(Integer port) { - this.port = port; - return (A) this; - } - - public boolean hasPort() { - return this.port != null; - } - - public String getService() { - return this.service; - } - - public A withService(String service) { - this.service = service; - return (A) this; - } - - public boolean hasService() { - return this.service != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -76,6 +52,22 @@ public boolean equals(Object o) { return true; } + public Integer getPort() { + return this.port; + } + + public String getService() { + return this.service; + } + + public boolean hasPort() { + return this.port != null; + } + + public boolean hasService() { + return this.service != null; + } + public int hashCode() { return Objects.hash(port, service); } @@ -96,5 +88,14 @@ public String toString() { return sb.toString(); } - + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + + public A withService(String service) { + this.service = service; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java index 7f57361aaa..e0d477de63 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1GitRepoVolumeSourceBuilder extends V1GitRepoVolumeSourceFluent implements VisitableBuilder{ + + V1GitRepoVolumeSourceFluent fluent; + public V1GitRepoVolumeSourceBuilder() { this(new V1GitRepoVolumeSource()); } @@ -11,17 +14,16 @@ public V1GitRepoVolumeSourceBuilder(V1GitRepoVolumeSourceFluent fluent) { this(fluent, new V1GitRepoVolumeSource()); } - public V1GitRepoVolumeSourceBuilder(V1GitRepoVolumeSourceFluent fluent,V1GitRepoVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1GitRepoVolumeSourceBuilder(V1GitRepoVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1GitRepoVolumeSourceFluent fluent; + public V1GitRepoVolumeSourceBuilder(V1GitRepoVolumeSourceFluent fluent,V1GitRepoVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1GitRepoVolumeSource build() { V1GitRepoVolumeSource buildable = new V1GitRepoVolumeSource(); buildable.setDirectory(fluent.getDirectory()); @@ -30,5 +32,4 @@ public V1GitRepoVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java index 3b634d7ea6..e5750aaddd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1GitRepoVolumeSourceFluent> extends BaseFluent{ + + private String directory; + private String repository; + private String revision; + public V1GitRepoVolumeSourceFluent() { } public V1GitRepoVolumeSourceFluent(V1GitRepoVolumeSource instance) { this.copyInstance(instance); } - private String directory; - private String repository; - private String revision; - + protected void copyInstance(V1GitRepoVolumeSource instance) { instance = instance != null ? instance : new V1GitRepoVolumeSource(); if (instance != null) { @@ -31,45 +33,6 @@ protected void copyInstance(V1GitRepoVolumeSource instance) { } } - public String getDirectory() { - return this.directory; - } - - public A withDirectory(String directory) { - this.directory = directory; - return (A) this; - } - - public boolean hasDirectory() { - return this.directory != null; - } - - public String getRepository() { - return this.repository; - } - - public A withRepository(String repository) { - this.repository = repository; - return (A) this; - } - - public boolean hasRepository() { - return this.repository != null; - } - - public String getRevision() { - return this.revision; - } - - public A withRevision(String revision) { - this.revision = revision; - return (A) this; - } - - public boolean hasRevision() { - return this.revision != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -93,6 +56,30 @@ public boolean equals(Object o) { return true; } + public String getDirectory() { + return this.directory; + } + + public String getRepository() { + return this.repository; + } + + public String getRevision() { + return this.revision; + } + + public boolean hasDirectory() { + return this.directory != null; + } + + public boolean hasRepository() { + return this.repository != null; + } + + public boolean hasRevision() { + return this.revision != null; + } + public int hashCode() { return Objects.hash(directory, repository, revision); } @@ -118,5 +105,19 @@ public String toString() { return sb.toString(); } - + public A withDirectory(String directory) { + this.directory = directory; + return (A) this; + } + + public A withRepository(String repository) { + this.repository = repository; + return (A) this; + } + + public A withRevision(String revision) { + this.revision = revision; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java index 06024fa8bd..6cc91aeca7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1GlusterfsPersistentVolumeSourceBuilder extends V1GlusterfsPersistentVolumeSourceFluent implements VisitableBuilder{ + + V1GlusterfsPersistentVolumeSourceFluent fluent; + public V1GlusterfsPersistentVolumeSourceBuilder() { this(new V1GlusterfsPersistentVolumeSource()); } @@ -11,17 +14,16 @@ public V1GlusterfsPersistentVolumeSourceBuilder(V1GlusterfsPersistentVolumeSourc this(fluent, new V1GlusterfsPersistentVolumeSource()); } - public V1GlusterfsPersistentVolumeSourceBuilder(V1GlusterfsPersistentVolumeSourceFluent fluent,V1GlusterfsPersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1GlusterfsPersistentVolumeSourceBuilder(V1GlusterfsPersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1GlusterfsPersistentVolumeSourceFluent fluent; + public V1GlusterfsPersistentVolumeSourceBuilder(V1GlusterfsPersistentVolumeSourceFluent fluent,V1GlusterfsPersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1GlusterfsPersistentVolumeSource build() { V1GlusterfsPersistentVolumeSource buildable = new V1GlusterfsPersistentVolumeSource(); buildable.setEndpoints(fluent.getEndpoints()); @@ -31,5 +33,4 @@ public V1GlusterfsPersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java index 69591de36e..28d0082918 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1GlusterfsPersistentVolumeSourceFluent> extends BaseFluent{ + + private String endpoints; + private String endpointsNamespace; + private String path; + private Boolean readOnly; + public V1GlusterfsPersistentVolumeSourceFluent() { } public V1GlusterfsPersistentVolumeSourceFluent(V1GlusterfsPersistentVolumeSource instance) { this.copyInstance(instance); } - private String endpoints; - private String endpointsNamespace; - private String path; - private Boolean readOnly; - + protected void copyInstance(V1GlusterfsPersistentVolumeSource instance) { instance = instance != null ? instance : new V1GlusterfsPersistentVolumeSource(); if (instance != null) { @@ -34,58 +36,6 @@ protected void copyInstance(V1GlusterfsPersistentVolumeSource instance) { } } - public String getEndpoints() { - return this.endpoints; - } - - public A withEndpoints(String endpoints) { - this.endpoints = endpoints; - return (A) this; - } - - public boolean hasEndpoints() { - return this.endpoints != null; - } - - public String getEndpointsNamespace() { - return this.endpointsNamespace; - } - - public A withEndpointsNamespace(String endpointsNamespace) { - this.endpointsNamespace = endpointsNamespace; - return (A) this; - } - - public boolean hasEndpointsNamespace() { - return this.endpointsNamespace != null; - } - - public String getPath() { - return this.path; - } - - public A withPath(String path) { - this.path = path; - return (A) this; - } - - public boolean hasPath() { - return this.path != null; - } - - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -112,6 +62,38 @@ public boolean equals(Object o) { return true; } + public String getEndpoints() { + return this.endpoints; + } + + public String getEndpointsNamespace() { + return this.endpointsNamespace; + } + + public String getPath() { + return this.path; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public boolean hasEndpoints() { + return this.endpoints != null; + } + + public boolean hasEndpointsNamespace() { + return this.endpointsNamespace != null; + } + + public boolean hasPath() { + return this.path != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + public int hashCode() { return Objects.hash(endpoints, endpointsNamespace, path, readOnly); } @@ -142,9 +124,28 @@ public String toString() { return sb.toString(); } + public A withEndpoints(String endpoints) { + this.endpoints = endpoints; + return (A) this; + } + + public A withEndpointsNamespace(String endpointsNamespace) { + this.endpointsNamespace = endpointsNamespace; + return (A) this; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java index 9a29218a1f..b68676d38e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1GlusterfsVolumeSourceBuilder extends V1GlusterfsVolumeSourceFluent implements VisitableBuilder{ + + V1GlusterfsVolumeSourceFluent fluent; + public V1GlusterfsVolumeSourceBuilder() { this(new V1GlusterfsVolumeSource()); } @@ -11,17 +14,16 @@ public V1GlusterfsVolumeSourceBuilder(V1GlusterfsVolumeSourceFluent fluent) { this(fluent, new V1GlusterfsVolumeSource()); } - public V1GlusterfsVolumeSourceBuilder(V1GlusterfsVolumeSourceFluent fluent,V1GlusterfsVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1GlusterfsVolumeSourceBuilder(V1GlusterfsVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1GlusterfsVolumeSourceFluent fluent; + public V1GlusterfsVolumeSourceBuilder(V1GlusterfsVolumeSourceFluent fluent,V1GlusterfsVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1GlusterfsVolumeSource build() { V1GlusterfsVolumeSource buildable = new V1GlusterfsVolumeSource(); buildable.setEndpoints(fluent.getEndpoints()); @@ -30,5 +32,4 @@ public V1GlusterfsVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java index 4dbfb4dc1a..0573a62fcb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1GlusterfsVolumeSourceFluent> extends BaseFluent{ + + private String endpoints; + private String path; + private Boolean readOnly; + public V1GlusterfsVolumeSourceFluent() { } public V1GlusterfsVolumeSourceFluent(V1GlusterfsVolumeSource instance) { this.copyInstance(instance); } - private String endpoints; - private String path; - private Boolean readOnly; - + protected void copyInstance(V1GlusterfsVolumeSource instance) { instance = instance != null ? instance : new V1GlusterfsVolumeSource(); if (instance != null) { @@ -32,45 +34,6 @@ protected void copyInstance(V1GlusterfsVolumeSource instance) { } } - public String getEndpoints() { - return this.endpoints; - } - - public A withEndpoints(String endpoints) { - this.endpoints = endpoints; - return (A) this; - } - - public boolean hasEndpoints() { - return this.endpoints != null; - } - - public String getPath() { - return this.path; - } - - public A withPath(String path) { - this.path = path; - return (A) this; - } - - public boolean hasPath() { - return this.path != null; - } - - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -94,6 +57,30 @@ public boolean equals(Object o) { return true; } + public String getEndpoints() { + return this.endpoints; + } + + public String getPath() { + return this.path; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public boolean hasEndpoints() { + return this.endpoints != null; + } + + public boolean hasPath() { + return this.path != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + public int hashCode() { return Objects.hash(endpoints, path, readOnly); } @@ -119,9 +106,23 @@ public String toString() { return sb.toString(); } + public A withEndpoints(String endpoints) { + this.endpoints = endpoints; + return (A) this; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectBuilder.java index 3fa1555fc4..9464d03935 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1GroupSubjectBuilder extends V1GroupSubjectFluent implements VisitableBuilder{ + + V1GroupSubjectFluent fluent; + public V1GroupSubjectBuilder() { this(new V1GroupSubject()); } @@ -11,22 +14,20 @@ public V1GroupSubjectBuilder(V1GroupSubjectFluent fluent) { this(fluent, new V1GroupSubject()); } - public V1GroupSubjectBuilder(V1GroupSubjectFluent fluent,V1GroupSubject instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1GroupSubjectBuilder(V1GroupSubject instance) { this.fluent = this; this.copyInstance(instance); } - V1GroupSubjectFluent fluent; + public V1GroupSubjectBuilder(V1GroupSubjectFluent fluent,V1GroupSubject instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1GroupSubject build() { V1GroupSubject buildable = new V1GroupSubject(); buildable.setName(fluent.getName()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectFluent.java index c35a00177b..c8a49fb1c1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1GroupSubjectFluent> extends BaseFluent{ + + private String name; + public V1GroupSubjectFluent() { } public V1GroupSubjectFluent(V1GroupSubject instance) { this.copyInstance(instance); } - private String name; - + protected void copyInstance(V1GroupSubject instance) { instance = instance != null ? instance : new V1GroupSubject(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1GroupSubject instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(name); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java index d3322996fb..cd247ff650 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1GroupVersionForDiscoveryBuilder extends V1GroupVersionForDiscoveryFluent implements VisitableBuilder{ + + V1GroupVersionForDiscoveryFluent fluent; + public V1GroupVersionForDiscoveryBuilder() { this(new V1GroupVersionForDiscovery()); } @@ -11,17 +14,16 @@ public V1GroupVersionForDiscoveryBuilder(V1GroupVersionForDiscoveryFluent flu this(fluent, new V1GroupVersionForDiscovery()); } - public V1GroupVersionForDiscoveryBuilder(V1GroupVersionForDiscoveryFluent fluent,V1GroupVersionForDiscovery instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1GroupVersionForDiscoveryBuilder(V1GroupVersionForDiscovery instance) { this.fluent = this; this.copyInstance(instance); } - V1GroupVersionForDiscoveryFluent fluent; + public V1GroupVersionForDiscoveryBuilder(V1GroupVersionForDiscoveryFluent fluent,V1GroupVersionForDiscovery instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1GroupVersionForDiscovery build() { V1GroupVersionForDiscovery buildable = new V1GroupVersionForDiscovery(); buildable.setGroupVersion(fluent.getGroupVersion()); @@ -29,5 +31,4 @@ public V1GroupVersionForDiscovery build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java index fe1c5087f8..fd04769763 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1GroupVersionForDiscoveryFluent> extends BaseFluent{ + + private String groupVersion; + private String version; + public V1GroupVersionForDiscoveryFluent() { } public V1GroupVersionForDiscoveryFluent(V1GroupVersionForDiscovery instance) { this.copyInstance(instance); } - private String groupVersion; - private String version; - + protected void copyInstance(V1GroupVersionForDiscovery instance) { instance = instance != null ? instance : new V1GroupVersionForDiscovery(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1GroupVersionForDiscovery instance) { } } - public String getGroupVersion() { - return this.groupVersion; - } - - public A withGroupVersion(String groupVersion) { - this.groupVersion = groupVersion; - return (A) this; - } - - public boolean hasGroupVersion() { - return this.groupVersion != null; - } - - public String getVersion() { - return this.version; - } - - public A withVersion(String version) { - this.version = version; - return (A) this; - } - - public boolean hasVersion() { - return this.version != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getGroupVersion() { + return this.groupVersion; + } + + public String getVersion() { + return this.version; + } + + public boolean hasGroupVersion() { + return this.groupVersion != null; + } + + public boolean hasVersion() { + return this.version != null; + } + public int hashCode() { return Objects.hash(groupVersion, version); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withGroupVersion(String groupVersion) { + this.groupVersion = groupVersion; + return (A) this; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java index 211caf736a..e1836f2864 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1HTTPGetActionBuilder extends V1HTTPGetActionFluent implements VisitableBuilder{ + + V1HTTPGetActionFluent fluent; + public V1HTTPGetActionBuilder() { this(new V1HTTPGetAction()); } @@ -11,17 +14,16 @@ public V1HTTPGetActionBuilder(V1HTTPGetActionFluent fluent) { this(fluent, new V1HTTPGetAction()); } - public V1HTTPGetActionBuilder(V1HTTPGetActionFluent fluent,V1HTTPGetAction instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HTTPGetActionBuilder(V1HTTPGetAction instance) { this.fluent = this; this.copyInstance(instance); } - V1HTTPGetActionFluent fluent; + public V1HTTPGetActionBuilder(V1HTTPGetActionFluent fluent,V1HTTPGetAction instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HTTPGetAction build() { V1HTTPGetAction buildable = new V1HTTPGetAction(); buildable.setHost(fluent.getHost()); @@ -32,5 +34,4 @@ public V1HTTPGetAction build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java index 36c09700c6..84c08835ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java @@ -1,89 +1,57 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; import io.kubernetes.client.custom.IntOrString; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; +import java.lang.Object; import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1HTTPGetActionFluent> extends BaseFluent{ - public V1HTTPGetActionFluent() { - } - - public V1HTTPGetActionFluent(V1HTTPGetAction instance) { - this.copyInstance(instance); - } + private String host; private ArrayList httpHeaders; private String path; private IntOrString port; private String scheme; - - protected void copyInstance(V1HTTPGetAction instance) { - instance = instance != null ? instance : new V1HTTPGetAction(); - if (instance != null) { - this.withHost(instance.getHost()); - this.withHttpHeaders(instance.getHttpHeaders()); - this.withPath(instance.getPath()); - this.withPort(instance.getPort()); - this.withScheme(instance.getScheme()); - } - } - - public String getHost() { - return this.host; - } - - public A withHost(String host) { - this.host = host; - return (A) this; + + public V1HTTPGetActionFluent() { } - public boolean hasHost() { - return this.host != null; + public V1HTTPGetActionFluent(V1HTTPGetAction instance) { + this.copyInstance(instance); } - - public A addToHttpHeaders(int index,V1HTTPHeader item) { + + public A addAllToHttpHeaders(Collection items) { if (this.httpHeaders == null) { this.httpHeaders = new ArrayList(); } - V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); - if (index < 0 || index >= httpHeaders.size()) { - _visitables.get("httpHeaders").add(builder); - httpHeaders.add(builder); - } else { + for (V1HTTPHeader item : items) { + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); _visitables.get("httpHeaders").add(builder); - httpHeaders.add(index, builder); + this.httpHeaders.add(builder); } return (A) this; } - public A setToHttpHeaders(int index,V1HTTPHeader item) { - if (this.httpHeaders == null) { - this.httpHeaders = new ArrayList(); - } - V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); - if (index < 0 || index >= httpHeaders.size()) { - _visitables.get("httpHeaders").add(builder); - httpHeaders.add(builder); - } else { - _visitables.get("httpHeaders").add(builder); - httpHeaders.set(index, builder); - } - return (A) this; + public HttpHeadersNested addNewHttpHeader() { + return new HttpHeadersNested(-1, null); + } + + public HttpHeadersNested addNewHttpHeaderLike(V1HTTPHeader item) { + return new HttpHeadersNested(-1, item); } public A addToHttpHeaders(V1HTTPHeader... items) { @@ -98,68 +66,31 @@ public A addToHttpHeaders(V1HTTPHeader... items) { return (A) this; } - public A addAllToHttpHeaders(Collection items) { + public A addToHttpHeaders(int index,V1HTTPHeader item) { if (this.httpHeaders == null) { this.httpHeaders = new ArrayList(); } - for (V1HTTPHeader item : items) { - V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); + if (index < 0 || index >= httpHeaders.size()) { _visitables.get("httpHeaders").add(builder); - this.httpHeaders.add(builder); - } - return (A) this; - } - - public A removeFromHttpHeaders(V1HTTPHeader... items) { - if (this.httpHeaders == null) { - return (A) this; - } - for (V1HTTPHeader item : items) { - V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); - _visitables.get("httpHeaders").remove(builder); - this.httpHeaders.remove(builder); - } - return (A) this; - } - - public A removeAllFromHttpHeaders(Collection items) { - if (this.httpHeaders == null) { - return (A) this; - } - for (V1HTTPHeader item : items) { - V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); - _visitables.get("httpHeaders").remove(builder); - this.httpHeaders.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromHttpHeaders(Predicate predicate) { - if (httpHeaders == null) { - return (A) this; - } - Iterator each = httpHeaders.iterator(); - List visitables = _visitables.get("httpHeaders"); - while (each.hasNext()) { - V1HTTPHeaderBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + httpHeaders.add(builder); + } else { + _visitables.get("httpHeaders").add(builder); + httpHeaders.add(index, builder); } return (A) this; } - public List buildHttpHeaders() { - return this.httpHeaders != null ? build(httpHeaders) : null; + public V1HTTPHeader buildFirstHttpHeader() { + return this.httpHeaders.get(0).build(); } public V1HTTPHeader buildHttpHeader(int index) { return this.httpHeaders.get(index).build(); } - public V1HTTPHeader buildFirstHttpHeader() { - return this.httpHeaders.get(0).build(); + public List buildHttpHeaders() { + return this.httpHeaders != null ? build(httpHeaders) : null; } public V1HTTPHeader buildLastHttpHeader() { @@ -175,73 +106,31 @@ public V1HTTPHeader buildMatchingHttpHeader(Predicate predi return null; } - public boolean hasMatchingHttpHeader(Predicate predicate) { - for (V1HTTPHeaderBuilder item : httpHeaders) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withHttpHeaders(List httpHeaders) { - if (this.httpHeaders != null) { - this._visitables.get("httpHeaders").clear(); - } - if (httpHeaders != null) { - this.httpHeaders = new ArrayList(); - for (V1HTTPHeader item : httpHeaders) { - this.addToHttpHeaders(item); - } - } else { - this.httpHeaders = null; + protected void copyInstance(V1HTTPGetAction instance) { + instance = instance != null ? instance : new V1HTTPGetAction(); + if (instance != null) { + this.withHost(instance.getHost()); + this.withHttpHeaders(instance.getHttpHeaders()); + this.withPath(instance.getPath()); + this.withPort(instance.getPort()); + this.withScheme(instance.getScheme()); } - return (A) this; } - public A withHttpHeaders(V1HTTPHeader... httpHeaders) { - if (this.httpHeaders != null) { - this.httpHeaders.clear(); - _visitables.remove("httpHeaders"); - } - if (httpHeaders != null) { - for (V1HTTPHeader item : httpHeaders) { - this.addToHttpHeaders(item); - } + public HttpHeadersNested editFirstHttpHeader() { + if (httpHeaders.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "httpHeaders")); } - return (A) this; - } - - public boolean hasHttpHeaders() { - return this.httpHeaders != null && !(this.httpHeaders.isEmpty()); - } - - public HttpHeadersNested addNewHttpHeader() { - return new HttpHeadersNested(-1, null); - } - - public HttpHeadersNested addNewHttpHeaderLike(V1HTTPHeader item) { - return new HttpHeadersNested(-1, item); - } - - public HttpHeadersNested setNewHttpHeaderLike(int index,V1HTTPHeader item) { - return new HttpHeadersNested(index, item); + return this.setNewHttpHeaderLike(0, this.buildHttpHeader(0)); } public HttpHeadersNested editHttpHeader(int index) { - if (index <= httpHeaders.size()) { + if (httpHeaders.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "httpHeaders")); } return this.setNewHttpHeaderLike(index, this.buildHttpHeader(index)); } - public HttpHeadersNested editFirstHttpHeader() { - if (httpHeaders.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "httpHeaders")); - } - return this.setNewHttpHeaderLike(0, this.buildHttpHeader(0)); - } - public HttpHeadersNested editLastHttpHeader() { int index = httpHeaders.size() - 1; if (index < 0) { @@ -264,84 +153,141 @@ public HttpHeadersNested editMatchingHttpHeader(Predicate predicate) { + for (V1HTTPHeaderBuilder item : httpHeaders) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getScheme() { - return this.scheme; + public boolean hasPath() { + return this.path != null; } - public A withScheme(String scheme) { - this.scheme = scheme; - return (A) this; + public boolean hasPort() { + return this.port != null; } public boolean hasScheme() { return this.scheme != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; + public int hashCode() { + return Objects.hash(host, httpHeaders, path, port, scheme); + } + + public A removeAllFromHttpHeaders(Collection items) { + if (this.httpHeaders == null) { + return (A) this; } - V1HTTPGetActionFluent that = (V1HTTPGetActionFluent) o; - if (!(Objects.equals(host, that.host))) { - return false; + for (V1HTTPHeader item : items) { + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); + _visitables.get("httpHeaders").remove(builder); + this.httpHeaders.remove(builder); } - if (!(Objects.equals(httpHeaders, that.httpHeaders))) { - return false; + return (A) this; + } + + public A removeFromHttpHeaders(V1HTTPHeader... items) { + if (this.httpHeaders == null) { + return (A) this; } - if (!(Objects.equals(path, that.path))) { - return false; + for (V1HTTPHeader item : items) { + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); + _visitables.get("httpHeaders").remove(builder); + this.httpHeaders.remove(builder); } - if (!(Objects.equals(port, that.port))) { - return false; + return (A) this; + } + + public A removeMatchingFromHttpHeaders(Predicate predicate) { + if (httpHeaders == null) { + return (A) this; } - if (!(Objects.equals(scheme, that.scheme))) { - return false; + Iterator each = httpHeaders.iterator(); + List visitables = _visitables.get("httpHeaders"); + while (each.hasNext()) { + V1HTTPHeaderBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(host, httpHeaders, path, port, scheme); + public HttpHeadersNested setNewHttpHeaderLike(int index,V1HTTPHeader item) { + return new HttpHeadersNested(index, item); + } + + public A setToHttpHeaders(int index,V1HTTPHeader item) { + if (this.httpHeaders == null) { + this.httpHeaders = new ArrayList(); + } + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); + if (index < 0 || index >= httpHeaders.size()) { + _visitables.get("httpHeaders").add(builder); + httpHeaders.add(builder); + } else { + _visitables.get("httpHeaders").add(builder); + httpHeaders.set(index, builder); + } + return (A) this; } public String toString() { @@ -374,14 +320,72 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withHost(String host) { + this.host = host; + return (A) this; + } + + public A withHttpHeaders(List httpHeaders) { + if (this.httpHeaders != null) { + this._visitables.get("httpHeaders").clear(); + } + if (httpHeaders != null) { + this.httpHeaders = new ArrayList(); + for (V1HTTPHeader item : httpHeaders) { + this.addToHttpHeaders(item); + } + } else { + this.httpHeaders = null; + } + return (A) this; + } + + public A withHttpHeaders(V1HTTPHeader... httpHeaders) { + if (this.httpHeaders != null) { + this.httpHeaders.clear(); + _visitables.remove("httpHeaders"); + } + if (httpHeaders != null) { + for (V1HTTPHeader item : httpHeaders) { + this.addToHttpHeaders(item); + } + } + return (A) this; + } + + public A withNewPort(int value) { + return (A) this.withPort(new IntOrString(value)); + } + + public A withNewPort(String value) { + return (A) this.withPort(new IntOrString(value)); + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public A withPort(IntOrString port) { + this.port = port; + return (A) this; + } + + public A withScheme(String scheme) { + this.scheme = scheme; + return (A) this; + } public class HttpHeadersNested extends V1HTTPHeaderFluent> implements Nested{ + + V1HTTPHeaderBuilder builder; + int index; + HttpHeadersNested(int index,V1HTTPHeader item) { this.index = index; this.builder = new V1HTTPHeaderBuilder(this, item); } - V1HTTPHeaderBuilder builder; - int index; - + public N and() { return (N) V1HTTPGetActionFluent.this.setToHttpHeaders(index, builder.build()); } @@ -390,7 +394,5 @@ public N endHttpHeader() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java index f9f8bcae3d..2adc5fce12 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1HTTPHeaderBuilder extends V1HTTPHeaderFluent implements VisitableBuilder{ + + V1HTTPHeaderFluent fluent; + public V1HTTPHeaderBuilder() { this(new V1HTTPHeader()); } @@ -11,17 +14,16 @@ public V1HTTPHeaderBuilder(V1HTTPHeaderFluent fluent) { this(fluent, new V1HTTPHeader()); } - public V1HTTPHeaderBuilder(V1HTTPHeaderFluent fluent,V1HTTPHeader instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HTTPHeaderBuilder(V1HTTPHeader instance) { this.fluent = this; this.copyInstance(instance); } - V1HTTPHeaderFluent fluent; + public V1HTTPHeaderBuilder(V1HTTPHeaderFluent fluent,V1HTTPHeader instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HTTPHeader build() { V1HTTPHeader buildable = new V1HTTPHeader(); buildable.setName(fluent.getName()); @@ -29,5 +31,4 @@ public V1HTTPHeader build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java index 78cb6f1115..19d44e6076 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1HTTPHeaderFluent> extends BaseFluent{ + + private String name; + private String value; + public V1HTTPHeaderFluent() { } public V1HTTPHeaderFluent(V1HTTPHeader instance) { this.copyInstance(instance); } - private String name; - private String value; - + protected void copyInstance(V1HTTPHeader instance) { instance = instance != null ? instance : new V1HTTPHeader(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1HTTPHeader instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getValue() { - return this.value; - } - - public A withValue(String value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public String getValue() { + return this.value; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(name, value); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java index 9ed2a6552a..7aa1812642 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1HTTPIngressPathBuilder extends V1HTTPIngressPathFluent implements VisitableBuilder{ + + V1HTTPIngressPathFluent fluent; + public V1HTTPIngressPathBuilder() { this(new V1HTTPIngressPath()); } @@ -11,17 +14,16 @@ public V1HTTPIngressPathBuilder(V1HTTPIngressPathFluent fluent) { this(fluent, new V1HTTPIngressPath()); } - public V1HTTPIngressPathBuilder(V1HTTPIngressPathFluent fluent,V1HTTPIngressPath instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HTTPIngressPathBuilder(V1HTTPIngressPath instance) { this.fluent = this; this.copyInstance(instance); } - V1HTTPIngressPathFluent fluent; + public V1HTTPIngressPathBuilder(V1HTTPIngressPathFluent fluent,V1HTTPIngressPath instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HTTPIngressPath build() { V1HTTPIngressPath buildable = new V1HTTPIngressPath(); buildable.setBackend(fluent.buildBackend()); @@ -30,5 +32,4 @@ public V1HTTPIngressPath build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java index e483969889..942f09341a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java @@ -1,28 +1,34 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1HTTPIngressPathFluent> extends BaseFluent{ + + private V1IngressBackendBuilder backend; + private String path; + private String pathType; + public V1HTTPIngressPathFluent() { } public V1HTTPIngressPathFluent(V1HTTPIngressPath instance) { this.copyInstance(instance); } - private V1IngressBackendBuilder backend; - private String path; - private String pathType; + + public V1IngressBackend buildBackend() { + return this.backend != null ? this.backend.build() : null; + } protected void copyInstance(V1HTTPIngressPath instance) { instance = instance != null ? instance : new V1HTTPIngressPath(); @@ -33,34 +39,6 @@ protected void copyInstance(V1HTTPIngressPath instance) { } } - public V1IngressBackend buildBackend() { - return this.backend != null ? this.backend.build() : null; - } - - public A withBackend(V1IngressBackend backend) { - this._visitables.remove("backend"); - if (backend != null) { - this.backend = new V1IngressBackendBuilder(backend); - this._visitables.get("backend").add(this.backend); - } else { - this.backend = null; - this._visitables.get("backend").remove(this.backend); - } - return (A) this; - } - - public boolean hasBackend() { - return this.backend != null; - } - - public BackendNested withNewBackend() { - return new BackendNested(null); - } - - public BackendNested withNewBackendLike(V1IngressBackend item) { - return new BackendNested(item); - } - public BackendNested editBackend() { return this.withNewBackendLike(Optional.ofNullable(this.buildBackend()).orElse(null)); } @@ -73,32 +51,6 @@ public BackendNested editOrNewBackendLike(V1IngressBackend item) { return this.withNewBackendLike(Optional.ofNullable(this.buildBackend()).orElse(item)); } - public String getPath() { - return this.path; - } - - public A withPath(String path) { - this.path = path; - return (A) this; - } - - public boolean hasPath() { - return this.path != null; - } - - public String getPathType() { - return this.pathType; - } - - public A withPathType(String pathType) { - this.pathType = pathType; - return (A) this; - } - - public boolean hasPathType() { - return this.pathType != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -122,6 +74,26 @@ public boolean equals(Object o) { return true; } + public String getPath() { + return this.path; + } + + public String getPathType() { + return this.pathType; + } + + public boolean hasBackend() { + return this.backend != null; + } + + public boolean hasPath() { + return this.path != null; + } + + public boolean hasPathType() { + return this.pathType != null; + } + public int hashCode() { return Objects.hash(backend, path, pathType); } @@ -146,12 +118,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withBackend(V1IngressBackend backend) { + this._visitables.remove("backend"); + if (backend != null) { + this.backend = new V1IngressBackendBuilder(backend); + this._visitables.get("backend").add(this.backend); + } else { + this.backend = null; + this._visitables.get("backend").remove(this.backend); + } + return (A) this; + } + + public BackendNested withNewBackend() { + return new BackendNested(null); + } + + public BackendNested withNewBackendLike(V1IngressBackend item) { + return new BackendNested(item); + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public A withPathType(String pathType) { + this.pathType = pathType; + return (A) this; + } public class BackendNested extends V1IngressBackendFluent> implements Nested{ + + V1IngressBackendBuilder builder; + BackendNested(V1IngressBackend item) { this.builder = new V1IngressBackendBuilder(this, item); } - V1IngressBackendBuilder builder; - + public N and() { return (N) V1HTTPIngressPathFluent.this.withBackend(builder.build()); } @@ -160,7 +164,5 @@ public N endBackend() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java index dcf6324fbd..d12903d913 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1HTTPIngressRuleValueBuilder extends V1HTTPIngressRuleValueFluent implements VisitableBuilder{ + + V1HTTPIngressRuleValueFluent fluent; + public V1HTTPIngressRuleValueBuilder() { this(new V1HTTPIngressRuleValue()); } @@ -11,22 +14,20 @@ public V1HTTPIngressRuleValueBuilder(V1HTTPIngressRuleValueFluent fluent) { this(fluent, new V1HTTPIngressRuleValue()); } - public V1HTTPIngressRuleValueBuilder(V1HTTPIngressRuleValueFluent fluent,V1HTTPIngressRuleValue instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HTTPIngressRuleValueBuilder(V1HTTPIngressRuleValue instance) { this.fluent = this; this.copyInstance(instance); } - V1HTTPIngressRuleValueFluent fluent; + public V1HTTPIngressRuleValueBuilder(V1HTTPIngressRuleValueFluent fluent,V1HTTPIngressRuleValue instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HTTPIngressRuleValue build() { V1HTTPIngressRuleValue buildable = new V1HTTPIngressRuleValue(); buildable.setPaths(fluent.buildPaths()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java index 21fb0aee18..fd12b039a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java @@ -1,67 +1,52 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1HTTPIngressRuleValueFluent> extends BaseFluent{ + + private ArrayList paths; + public V1HTTPIngressRuleValueFluent() { } public V1HTTPIngressRuleValueFluent(V1HTTPIngressRuleValue instance) { this.copyInstance(instance); } - private ArrayList paths; - - protected void copyInstance(V1HTTPIngressRuleValue instance) { - instance = instance != null ? instance : new V1HTTPIngressRuleValue(); - if (instance != null) { - this.withPaths(instance.getPaths()); - } - } - - public A addToPaths(int index,V1HTTPIngressPath item) { + + public A addAllToPaths(Collection items) { if (this.paths == null) { this.paths = new ArrayList(); } - V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); - if (index < 0 || index >= paths.size()) { - _visitables.get("paths").add(builder); - paths.add(builder); - } else { + for (V1HTTPIngressPath item : items) { + V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); _visitables.get("paths").add(builder); - paths.add(index, builder); + this.paths.add(builder); } return (A) this; } - public A setToPaths(int index,V1HTTPIngressPath item) { - if (this.paths == null) { - this.paths = new ArrayList(); - } - V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); - if (index < 0 || index >= paths.size()) { - _visitables.get("paths").add(builder); - paths.add(builder); - } else { - _visitables.get("paths").add(builder); - paths.set(index, builder); - } - return (A) this; + public PathsNested addNewPath() { + return new PathsNested(-1, null); + } + + public PathsNested addNewPathLike(V1HTTPIngressPath item) { + return new PathsNested(-1, item); } public A addToPaths(V1HTTPIngressPath... items) { @@ -76,66 +61,21 @@ public A addToPaths(V1HTTPIngressPath... items) { return (A) this; } - public A addAllToPaths(Collection items) { + public A addToPaths(int index,V1HTTPIngressPath item) { if (this.paths == null) { this.paths = new ArrayList(); } - for (V1HTTPIngressPath item : items) { - V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); + V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); + if (index < 0 || index >= paths.size()) { _visitables.get("paths").add(builder); - this.paths.add(builder); - } - return (A) this; - } - - public A removeFromPaths(V1HTTPIngressPath... items) { - if (this.paths == null) { - return (A) this; - } - for (V1HTTPIngressPath item : items) { - V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); - _visitables.get("paths").remove(builder); - this.paths.remove(builder); - } - return (A) this; - } - - public A removeAllFromPaths(Collection items) { - if (this.paths == null) { - return (A) this; - } - for (V1HTTPIngressPath item : items) { - V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); - _visitables.get("paths").remove(builder); - this.paths.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromPaths(Predicate predicate) { - if (paths == null) { - return (A) this; - } - Iterator each = paths.iterator(); - List visitables = _visitables.get("paths"); - while (each.hasNext()) { - V1HTTPIngressPathBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + paths.add(builder); + } else { + _visitables.get("paths").add(builder); + paths.add(index, builder); } return (A) this; } - public List buildPaths() { - return this.paths != null ? build(paths) : null; - } - - public V1HTTPIngressPath buildPath(int index) { - return this.paths.get(index).build(); - } - public V1HTTPIngressPath buildFirstPath() { return this.paths.get(0).build(); } @@ -153,64 +93,19 @@ public V1HTTPIngressPath buildMatchingPath(Predicate p return null; } - public boolean hasMatchingPath(Predicate predicate) { - for (V1HTTPIngressPathBuilder item : paths) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withPaths(List paths) { - if (this.paths != null) { - this._visitables.get("paths").clear(); - } - if (paths != null) { - this.paths = new ArrayList(); - for (V1HTTPIngressPath item : paths) { - this.addToPaths(item); - } - } else { - this.paths = null; - } - return (A) this; - } - - public A withPaths(V1HTTPIngressPath... paths) { - if (this.paths != null) { - this.paths.clear(); - _visitables.remove("paths"); - } - if (paths != null) { - for (V1HTTPIngressPath item : paths) { - this.addToPaths(item); - } - } - return (A) this; - } - - public boolean hasPaths() { - return this.paths != null && !(this.paths.isEmpty()); - } - - public PathsNested addNewPath() { - return new PathsNested(-1, null); - } - - public PathsNested addNewPathLike(V1HTTPIngressPath item) { - return new PathsNested(-1, item); + public V1HTTPIngressPath buildPath(int index) { + return this.paths.get(index).build(); } - public PathsNested setNewPathLike(int index,V1HTTPIngressPath item) { - return new PathsNested(index, item); + public List buildPaths() { + return this.paths != null ? build(paths) : null; } - public PathsNested editPath(int index) { - if (index <= paths.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "paths")); + protected void copyInstance(V1HTTPIngressRuleValue instance) { + instance = instance != null ? instance : new V1HTTPIngressRuleValue(); + if (instance != null) { + this.withPaths(instance.getPaths()); } - return this.setNewPathLike(index, this.buildPath(index)); } public PathsNested editFirstPath() { @@ -242,6 +137,13 @@ public PathsNested editMatchingPath(Predicate predi return this.setNewPathLike(index, this.buildPath(index)); } + public PathsNested editPath(int index) { + if (paths.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "paths")); + } + return this.setNewPathLike(index, this.buildPath(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -259,10 +161,82 @@ public boolean equals(Object o) { return true; } + public boolean hasMatchingPath(Predicate predicate) { + for (V1HTTPIngressPathBuilder item : paths) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPaths() { + return this.paths != null && !(this.paths.isEmpty()); + } + public int hashCode() { return Objects.hash(paths); } + public A removeAllFromPaths(Collection items) { + if (this.paths == null) { + return (A) this; + } + for (V1HTTPIngressPath item : items) { + V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); + _visitables.get("paths").remove(builder); + this.paths.remove(builder); + } + return (A) this; + } + + public A removeFromPaths(V1HTTPIngressPath... items) { + if (this.paths == null) { + return (A) this; + } + for (V1HTTPIngressPath item : items) { + V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); + _visitables.get("paths").remove(builder); + this.paths.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromPaths(Predicate predicate) { + if (paths == null) { + return (A) this; + } + Iterator each = paths.iterator(); + List visitables = _visitables.get("paths"); + while (each.hasNext()) { + V1HTTPIngressPathBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public PathsNested setNewPathLike(int index,V1HTTPIngressPath item) { + return new PathsNested(index, item); + } + + public A setToPaths(int index,V1HTTPIngressPath item) { + if (this.paths == null) { + this.paths = new ArrayList(); + } + V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); + if (index < 0 || index >= paths.size()) { + _visitables.get("paths").add(builder); + paths.add(builder); + } else { + _visitables.get("paths").add(builder); + paths.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -273,14 +247,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withPaths(List paths) { + if (this.paths != null) { + this._visitables.get("paths").clear(); + } + if (paths != null) { + this.paths = new ArrayList(); + for (V1HTTPIngressPath item : paths) { + this.addToPaths(item); + } + } else { + this.paths = null; + } + return (A) this; + } + + public A withPaths(V1HTTPIngressPath... paths) { + if (this.paths != null) { + this.paths.clear(); + _visitables.remove("paths"); + } + if (paths != null) { + for (V1HTTPIngressPath item : paths) { + this.addToPaths(item); + } + } + return (A) this; + } public class PathsNested extends V1HTTPIngressPathFluent> implements Nested{ + + V1HTTPIngressPathBuilder builder; + int index; + PathsNested(int index,V1HTTPIngressPath item) { this.index = index; this.builder = new V1HTTPIngressPathBuilder(this, item); } - V1HTTPIngressPathBuilder builder; - int index; - + public N and() { return (N) V1HTTPIngressRuleValueFluent.this.setToPaths(index, builder.build()); } @@ -289,7 +293,5 @@ public N endPath() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java index 5e5b8ca66f..b63b73606a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1HorizontalPodAutoscalerBuilder extends V1HorizontalPodAutoscalerFluent implements VisitableBuilder{ + + V1HorizontalPodAutoscalerFluent fluent; + public V1HorizontalPodAutoscalerBuilder() { this(new V1HorizontalPodAutoscaler()); } @@ -11,17 +14,16 @@ public V1HorizontalPodAutoscalerBuilder(V1HorizontalPodAutoscalerFluent fluen this(fluent, new V1HorizontalPodAutoscaler()); } - public V1HorizontalPodAutoscalerBuilder(V1HorizontalPodAutoscalerFluent fluent,V1HorizontalPodAutoscaler instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HorizontalPodAutoscalerBuilder(V1HorizontalPodAutoscaler instance) { this.fluent = this; this.copyInstance(instance); } - V1HorizontalPodAutoscalerFluent fluent; + public V1HorizontalPodAutoscalerBuilder(V1HorizontalPodAutoscalerFluent fluent,V1HorizontalPodAutoscaler instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HorizontalPodAutoscaler build() { V1HorizontalPodAutoscaler buildable = new V1HorizontalPodAutoscaler(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1HorizontalPodAutoscaler build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java index 96daf10786..8e727f39ad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1HorizontalPodAutoscalerFluent> extends BaseFluent{ - public V1HorizontalPodAutoscalerFluent() { - } - - public V1HorizontalPodAutoscalerFluent(V1HorizontalPodAutoscaler instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1HorizontalPodAutoscalerSpecBuilder spec; private V1HorizontalPodAutoscalerStatusBuilder status; - - protected void copyInstance(V1HorizontalPodAutoscaler instance) { - instance = instance != null ? instance : new V1HorizontalPodAutoscaler(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1HorizontalPodAutoscalerFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1HorizontalPodAutoscalerFluent(V1HorizontalPodAutoscaler instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1HorizontalPodAutoscalerSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1HorizontalPodAutoscalerStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1HorizontalPodAutoscaler instance) { + instance = instance != null ? instance : new V1HorizontalPodAutoscaler(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1HorizontalPodAutoscalerSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1HorizontalPodAutoscalerSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1HorizontalPodAutoscalerSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1HorizontalPodAutoscalerSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1HorizontalPodAutoscalerSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1HorizontalPodAutoscalerSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1HorizontalPodAutoscalerStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1HorizontalPodAutoscalerStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1HorizontalPodAutoscalerStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1HorizontalPodAutoscalerStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1HorizontalPodAutoscalerStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1HorizontalPodAutoscalerStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1HorizontalPodAutoscalerStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1HorizontalPodAutoscalerStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1HorizontalPodAutoscalerSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1HorizontalPodAutoscalerStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1HorizontalPodAutoscalerSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1HorizontalPodAutoscalerSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1HorizontalPodAutoscalerStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1HorizontalPodAutoscalerStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1HorizontalPodAutoscalerFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1HorizontalPodAutoscalerSpecFluent> implements Nested{ + + V1HorizontalPodAutoscalerSpecBuilder builder; + SpecNested(V1HorizontalPodAutoscalerSpec item) { this.builder = new V1HorizontalPodAutoscalerSpecBuilder(this, item); } - V1HorizontalPodAutoscalerSpecBuilder builder; - + public N and() { return (N) V1HorizontalPodAutoscalerFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1HorizontalPodAutoscalerStatusFluent> implements Nested{ + + V1HorizontalPodAutoscalerStatusBuilder builder; + StatusNested(V1HorizontalPodAutoscalerStatus item) { this.builder = new V1HorizontalPodAutoscalerStatusBuilder(this, item); } - V1HorizontalPodAutoscalerStatusBuilder builder; - + public N and() { return (N) V1HorizontalPodAutoscalerFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java index 095151251a..f5928091c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1HorizontalPodAutoscalerListBuilder extends V1HorizontalPodAutoscalerListFluent implements VisitableBuilder{ + + V1HorizontalPodAutoscalerListFluent fluent; + public V1HorizontalPodAutoscalerListBuilder() { this(new V1HorizontalPodAutoscalerList()); } @@ -11,17 +14,16 @@ public V1HorizontalPodAutoscalerListBuilder(V1HorizontalPodAutoscalerListFluent< this(fluent, new V1HorizontalPodAutoscalerList()); } - public V1HorizontalPodAutoscalerListBuilder(V1HorizontalPodAutoscalerListFluent fluent,V1HorizontalPodAutoscalerList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HorizontalPodAutoscalerListBuilder(V1HorizontalPodAutoscalerList instance) { this.fluent = this; this.copyInstance(instance); } - V1HorizontalPodAutoscalerListFluent fluent; + public V1HorizontalPodAutoscalerListBuilder(V1HorizontalPodAutoscalerListFluent fluent,V1HorizontalPodAutoscalerList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HorizontalPodAutoscalerList build() { V1HorizontalPodAutoscalerList buildable = new V1HorizontalPodAutoscalerList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1HorizontalPodAutoscalerList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java index b79d1fea19..6b46a1a983 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1HorizontalPodAutoscalerListFluent> extends BaseFluent{ - public V1HorizontalPodAutoscalerListFluent() { - } - - public V1HorizontalPodAutoscalerListFluent(V1HorizontalPodAutoscalerList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1HorizontalPodAutoscalerList instance) { - instance = instance != null ? instance : new V1HorizontalPodAutoscalerList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1HorizontalPodAutoscalerListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1HorizontalPodAutoscalerListFluent(V1HorizontalPodAutoscalerList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1HorizontalPodAutoscaler item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1HorizontalPodAutoscaler item : items) { + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1HorizontalPodAutoscaler item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1HorizontalPodAutoscaler item) { + return new ItemsNested(-1, item); } public A addToItems(V1HorizontalPodAutoscaler... items) { @@ -96,68 +65,31 @@ public A addToItems(V1HorizontalPodAutoscaler... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1HorizontalPodAutoscaler item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1HorizontalPodAutoscaler item : items) { - V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1HorizontalPodAutoscaler... items) { - if (this.items == null) { - return (A) this; - } - for (V1HorizontalPodAutoscaler item : items) { - V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1HorizontalPodAutoscaler item : items) { - V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1HorizontalPodAutoscalerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1HorizontalPodAutoscaler buildFirstItem() { + return this.items.get(0).build(); } public V1HorizontalPodAutoscaler buildItem(int index) { return this.items.get(index).build(); } - public V1HorizontalPodAutoscaler buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1HorizontalPodAutoscaler buildLastItem() { @@ -173,73 +105,34 @@ public V1HorizontalPodAutoscaler buildMatchingItem(Predicate predicate) { - for (V1HorizontalPodAutoscalerBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1HorizontalPodAutoscaler item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1HorizontalPodAutoscalerList instance) { + instance = instance != null ? instance : new V1HorizontalPodAutoscalerList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1HorizontalPodAutoscaler... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1HorizontalPodAutoscaler item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1HorizontalPodAutoscaler item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1HorizontalPodAutoscaler item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1HorizontalPodAutoscalerBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1HorizontalPodAutoscaler item : items) { + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1HorizontalPodAutoscaler... items) { + if (this.items == null) { + return (A) this; + } + for (V1HorizontalPodAutoscaler item : items) { + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1HorizontalPodAutoscalerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1HorizontalPodAutoscaler item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1HorizontalPodAutoscaler item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1HorizontalPodAutoscaler item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1HorizontalPodAutoscaler... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1HorizontalPodAutoscaler item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1HorizontalPodAutoscalerFluent> implements Nested{ + + V1HorizontalPodAutoscalerBuilder builder; + int index; + ItemsNested(int index,V1HorizontalPodAutoscaler item) { this.index = index; this.builder = new V1HorizontalPodAutoscalerBuilder(this, item); } - V1HorizontalPodAutoscalerBuilder builder; - int index; - + public N and() { return (N) V1HorizontalPodAutoscalerListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1HorizontalPodAutoscalerListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java index e2592d329b..47832edd77 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1HorizontalPodAutoscalerSpecBuilder extends V1HorizontalPodAutoscalerSpecFluent implements VisitableBuilder{ + + V1HorizontalPodAutoscalerSpecFluent fluent; + public V1HorizontalPodAutoscalerSpecBuilder() { this(new V1HorizontalPodAutoscalerSpec()); } @@ -11,17 +14,16 @@ public V1HorizontalPodAutoscalerSpecBuilder(V1HorizontalPodAutoscalerSpecFluent< this(fluent, new V1HorizontalPodAutoscalerSpec()); } - public V1HorizontalPodAutoscalerSpecBuilder(V1HorizontalPodAutoscalerSpecFluent fluent,V1HorizontalPodAutoscalerSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HorizontalPodAutoscalerSpecBuilder(V1HorizontalPodAutoscalerSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1HorizontalPodAutoscalerSpecFluent fluent; + public V1HorizontalPodAutoscalerSpecBuilder(V1HorizontalPodAutoscalerSpecFluent fluent,V1HorizontalPodAutoscalerSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HorizontalPodAutoscalerSpec build() { V1HorizontalPodAutoscalerSpec buildable = new V1HorizontalPodAutoscalerSpec(); buildable.setMaxReplicas(fluent.getMaxReplicas()); @@ -31,5 +33,4 @@ public V1HorizontalPodAutoscalerSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java index 4f22ac20ff..6b5cc42e30 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java @@ -1,30 +1,36 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.String; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1HorizontalPodAutoscalerSpecFluent> extends BaseFluent{ + + private Integer maxReplicas; + private Integer minReplicas; + private V1CrossVersionObjectReferenceBuilder scaleTargetRef; + private Integer targetCPUUtilizationPercentage; + public V1HorizontalPodAutoscalerSpecFluent() { } public V1HorizontalPodAutoscalerSpecFluent(V1HorizontalPodAutoscalerSpec instance) { this.copyInstance(instance); } - private Integer maxReplicas; - private Integer minReplicas; - private V1CrossVersionObjectReferenceBuilder scaleTargetRef; - private Integer targetCPUUtilizationPercentage; + + public V1CrossVersionObjectReference buildScaleTargetRef() { + return this.scaleTargetRef != null ? this.scaleTargetRef.build() : null; + } protected void copyInstance(V1HorizontalPodAutoscalerSpec instance) { instance = instance != null ? instance : new V1HorizontalPodAutoscalerSpec(); @@ -36,64 +42,6 @@ protected void copyInstance(V1HorizontalPodAutoscalerSpec instance) { } } - public Integer getMaxReplicas() { - return this.maxReplicas; - } - - public A withMaxReplicas(Integer maxReplicas) { - this.maxReplicas = maxReplicas; - return (A) this; - } - - public boolean hasMaxReplicas() { - return this.maxReplicas != null; - } - - public Integer getMinReplicas() { - return this.minReplicas; - } - - public A withMinReplicas(Integer minReplicas) { - this.minReplicas = minReplicas; - return (A) this; - } - - public boolean hasMinReplicas() { - return this.minReplicas != null; - } - - public V1CrossVersionObjectReference buildScaleTargetRef() { - return this.scaleTargetRef != null ? this.scaleTargetRef.build() : null; - } - - public A withScaleTargetRef(V1CrossVersionObjectReference scaleTargetRef) { - this._visitables.remove("scaleTargetRef"); - if (scaleTargetRef != null) { - this.scaleTargetRef = new V1CrossVersionObjectReferenceBuilder(scaleTargetRef); - this._visitables.get("scaleTargetRef").add(this.scaleTargetRef); - } else { - this.scaleTargetRef = null; - this._visitables.get("scaleTargetRef").remove(this.scaleTargetRef); - } - return (A) this; - } - - public boolean hasScaleTargetRef() { - return this.scaleTargetRef != null; - } - - public ScaleTargetRefNested withNewScaleTargetRef() { - return new ScaleTargetRefNested(null); - } - - public ScaleTargetRefNested withNewScaleTargetRefLike(V1CrossVersionObjectReference item) { - return new ScaleTargetRefNested(item); - } - - public ScaleTargetRefNested editScaleTargetRef() { - return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(null)); - } - public ScaleTargetRefNested editOrNewScaleTargetRef() { return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(new V1CrossVersionObjectReferenceBuilder().build())); } @@ -102,17 +50,8 @@ public ScaleTargetRefNested editOrNewScaleTargetRefLike(V1CrossVersionObjectR return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(item)); } - public Integer getTargetCPUUtilizationPercentage() { - return this.targetCPUUtilizationPercentage; - } - - public A withTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage) { - this.targetCPUUtilizationPercentage = targetCPUUtilizationPercentage; - return (A) this; - } - - public boolean hasTargetCPUUtilizationPercentage() { - return this.targetCPUUtilizationPercentage != null; + public ScaleTargetRefNested editScaleTargetRef() { + return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(null)); } public boolean equals(Object o) { @@ -141,6 +80,34 @@ public boolean equals(Object o) { return true; } + public Integer getMaxReplicas() { + return this.maxReplicas; + } + + public Integer getMinReplicas() { + return this.minReplicas; + } + + public Integer getTargetCPUUtilizationPercentage() { + return this.targetCPUUtilizationPercentage; + } + + public boolean hasMaxReplicas() { + return this.maxReplicas != null; + } + + public boolean hasMinReplicas() { + return this.minReplicas != null; + } + + public boolean hasScaleTargetRef() { + return this.scaleTargetRef != null; + } + + public boolean hasTargetCPUUtilizationPercentage() { + return this.targetCPUUtilizationPercentage != null; + } + public int hashCode() { return Objects.hash(maxReplicas, minReplicas, scaleTargetRef, targetCPUUtilizationPercentage); } @@ -170,12 +137,49 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMaxReplicas(Integer maxReplicas) { + this.maxReplicas = maxReplicas; + return (A) this; + } + + public A withMinReplicas(Integer minReplicas) { + this.minReplicas = minReplicas; + return (A) this; + } + + public ScaleTargetRefNested withNewScaleTargetRef() { + return new ScaleTargetRefNested(null); + } + + public ScaleTargetRefNested withNewScaleTargetRefLike(V1CrossVersionObjectReference item) { + return new ScaleTargetRefNested(item); + } + + public A withScaleTargetRef(V1CrossVersionObjectReference scaleTargetRef) { + this._visitables.remove("scaleTargetRef"); + if (scaleTargetRef != null) { + this.scaleTargetRef = new V1CrossVersionObjectReferenceBuilder(scaleTargetRef); + this._visitables.get("scaleTargetRef").add(this.scaleTargetRef); + } else { + this.scaleTargetRef = null; + this._visitables.get("scaleTargetRef").remove(this.scaleTargetRef); + } + return (A) this; + } + + public A withTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage) { + this.targetCPUUtilizationPercentage = targetCPUUtilizationPercentage; + return (A) this; + } public class ScaleTargetRefNested extends V1CrossVersionObjectReferenceFluent> implements Nested{ + + V1CrossVersionObjectReferenceBuilder builder; + ScaleTargetRefNested(V1CrossVersionObjectReference item) { this.builder = new V1CrossVersionObjectReferenceBuilder(this, item); } - V1CrossVersionObjectReferenceBuilder builder; - + public N and() { return (N) V1HorizontalPodAutoscalerSpecFluent.this.withScaleTargetRef(builder.build()); } @@ -184,7 +188,5 @@ public N endScaleTargetRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java index ec690e4381..41152d6edb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1HorizontalPodAutoscalerStatusBuilder extends V1HorizontalPodAutoscalerStatusFluent implements VisitableBuilder{ + + V1HorizontalPodAutoscalerStatusFluent fluent; + public V1HorizontalPodAutoscalerStatusBuilder() { this(new V1HorizontalPodAutoscalerStatus()); } @@ -11,17 +14,16 @@ public V1HorizontalPodAutoscalerStatusBuilder(V1HorizontalPodAutoscalerStatusFlu this(fluent, new V1HorizontalPodAutoscalerStatus()); } - public V1HorizontalPodAutoscalerStatusBuilder(V1HorizontalPodAutoscalerStatusFluent fluent,V1HorizontalPodAutoscalerStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HorizontalPodAutoscalerStatusBuilder(V1HorizontalPodAutoscalerStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1HorizontalPodAutoscalerStatusFluent fluent; + public V1HorizontalPodAutoscalerStatusBuilder(V1HorizontalPodAutoscalerStatusFluent fluent,V1HorizontalPodAutoscalerStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HorizontalPodAutoscalerStatus build() { V1HorizontalPodAutoscalerStatus buildable = new V1HorizontalPodAutoscalerStatus(); buildable.setCurrentCPUUtilizationPercentage(fluent.getCurrentCPUUtilizationPercentage()); @@ -32,5 +34,4 @@ public V1HorizontalPodAutoscalerStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java index 0e43331f57..fba5ce981d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java @@ -1,32 +1,34 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1HorizontalPodAutoscalerStatusFluent> extends BaseFluent{ - public V1HorizontalPodAutoscalerStatusFluent() { - } - - public V1HorizontalPodAutoscalerStatusFluent(V1HorizontalPodAutoscalerStatus instance) { - this.copyInstance(instance); - } + private Integer currentCPUUtilizationPercentage; private Integer currentReplicas; private Integer desiredReplicas; private OffsetDateTime lastScaleTime; private Long observedGeneration; + + public V1HorizontalPodAutoscalerStatusFluent() { + } + public V1HorizontalPodAutoscalerStatusFluent(V1HorizontalPodAutoscalerStatus instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1HorizontalPodAutoscalerStatus instance) { instance = instance != null ? instance : new V1HorizontalPodAutoscalerStatus(); if (instance != null) { @@ -38,71 +40,6 @@ protected void copyInstance(V1HorizontalPodAutoscalerStatus instance) { } } - public Integer getCurrentCPUUtilizationPercentage() { - return this.currentCPUUtilizationPercentage; - } - - public A withCurrentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage) { - this.currentCPUUtilizationPercentage = currentCPUUtilizationPercentage; - return (A) this; - } - - public boolean hasCurrentCPUUtilizationPercentage() { - return this.currentCPUUtilizationPercentage != null; - } - - public Integer getCurrentReplicas() { - return this.currentReplicas; - } - - public A withCurrentReplicas(Integer currentReplicas) { - this.currentReplicas = currentReplicas; - return (A) this; - } - - public boolean hasCurrentReplicas() { - return this.currentReplicas != null; - } - - public Integer getDesiredReplicas() { - return this.desiredReplicas; - } - - public A withDesiredReplicas(Integer desiredReplicas) { - this.desiredReplicas = desiredReplicas; - return (A) this; - } - - public boolean hasDesiredReplicas() { - return this.desiredReplicas != null; - } - - public OffsetDateTime getLastScaleTime() { - return this.lastScaleTime; - } - - public A withLastScaleTime(OffsetDateTime lastScaleTime) { - this.lastScaleTime = lastScaleTime; - return (A) this; - } - - public boolean hasLastScaleTime() { - return this.lastScaleTime != null; - } - - public Long getObservedGeneration() { - return this.observedGeneration; - } - - public A withObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - return (A) this; - } - - public boolean hasObservedGeneration() { - return this.observedGeneration != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -132,6 +69,46 @@ public boolean equals(Object o) { return true; } + public Integer getCurrentCPUUtilizationPercentage() { + return this.currentCPUUtilizationPercentage; + } + + public Integer getCurrentReplicas() { + return this.currentReplicas; + } + + public Integer getDesiredReplicas() { + return this.desiredReplicas; + } + + public OffsetDateTime getLastScaleTime() { + return this.lastScaleTime; + } + + public Long getObservedGeneration() { + return this.observedGeneration; + } + + public boolean hasCurrentCPUUtilizationPercentage() { + return this.currentCPUUtilizationPercentage != null; + } + + public boolean hasCurrentReplicas() { + return this.currentReplicas != null; + } + + public boolean hasDesiredReplicas() { + return this.desiredReplicas != null; + } + + public boolean hasLastScaleTime() { + return this.lastScaleTime != null; + } + + public boolean hasObservedGeneration() { + return this.observedGeneration != null; + } + public int hashCode() { return Objects.hash(currentCPUUtilizationPercentage, currentReplicas, desiredReplicas, lastScaleTime, observedGeneration); } @@ -167,5 +144,29 @@ public String toString() { return sb.toString(); } - + public A withCurrentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage) { + this.currentCPUUtilizationPercentage = currentCPUUtilizationPercentage; + return (A) this; + } + + public A withCurrentReplicas(Integer currentReplicas) { + this.currentReplicas = currentReplicas; + return (A) this; + } + + public A withDesiredReplicas(Integer desiredReplicas) { + this.desiredReplicas = desiredReplicas; + return (A) this; + } + + public A withLastScaleTime(OffsetDateTime lastScaleTime) { + this.lastScaleTime = lastScaleTime; + return (A) this; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java index ebf84da65f..3ea7e4f4fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1HostAliasBuilder extends V1HostAliasFluent implements VisitableBuilder{ + + V1HostAliasFluent fluent; + public V1HostAliasBuilder() { this(new V1HostAlias()); } @@ -11,17 +14,16 @@ public V1HostAliasBuilder(V1HostAliasFluent fluent) { this(fluent, new V1HostAlias()); } - public V1HostAliasBuilder(V1HostAliasFluent fluent,V1HostAlias instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HostAliasBuilder(V1HostAlias instance) { this.fluent = this; this.copyInstance(instance); } - V1HostAliasFluent fluent; + public V1HostAliasBuilder(V1HostAliasFluent fluent,V1HostAlias instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HostAlias build() { V1HostAlias buildable = new V1HostAlias(); buildable.setHostnames(fluent.getHostnames()); @@ -29,5 +31,4 @@ public V1HostAlias build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java index 16a8214720..62fc106c60 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,36 +16,24 @@ */ @SuppressWarnings("unchecked") public class V1HostAliasFluent> extends BaseFluent{ + + private List hostnames; + private String ip; + public V1HostAliasFluent() { } public V1HostAliasFluent(V1HostAlias instance) { this.copyInstance(instance); } - private List hostnames; - private String ip; - - protected void copyInstance(V1HostAlias instance) { - instance = instance != null ? instance : new V1HostAlias(); - if (instance != null) { - this.withHostnames(instance.getHostnames()); - this.withIp(instance.getIp()); - } - } - - public A addToHostnames(int index,String item) { + + public A addAllToHostnames(Collection items) { if (this.hostnames == null) { this.hostnames = new ArrayList(); } - this.hostnames.add(index, item); - return (A) this; - } - - public A setToHostnames(int index,String item) { - if (this.hostnames == null) { - this.hostnames = new ArrayList(); + for (String item : items) { + this.hostnames.add(item); } - this.hostnames.set(index, item); return (A) this; } @@ -59,46 +47,56 @@ public A addToHostnames(String... items) { return (A) this; } - public A addAllToHostnames(Collection items) { + public A addToHostnames(int index,String item) { if (this.hostnames == null) { this.hostnames = new ArrayList(); } - for (String item : items) { - this.hostnames.add(item); - } + this.hostnames.add(index, item); return (A) this; } - public A removeFromHostnames(String... items) { - if (this.hostnames == null) { - return (A) this; - } - for (String item : items) { - this.hostnames.remove(item); + protected void copyInstance(V1HostAlias instance) { + instance = instance != null ? instance : new V1HostAlias(); + if (instance != null) { + this.withHostnames(instance.getHostnames()); + this.withIp(instance.getIp()); } - return (A) this; } - public A removeAllFromHostnames(Collection items) { - if (this.hostnames == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.hostnames.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1HostAliasFluent that = (V1HostAliasFluent) o; + if (!(Objects.equals(hostnames, that.hostnames))) { + return false; + } + if (!(Objects.equals(ip, that.ip))) { + return false; + } + return true; } - public List getHostnames() { - return this.hostnames; + public String getFirstHostname() { + return this.hostnames.get(0); } public String getHostname(int index) { return this.hostnames.get(index); } - public String getFirstHostname() { - return this.hostnames.get(0); + public List getHostnames() { + return this.hostnames; + } + + public String getIp() { + return this.ip; } public String getLastHostname() { @@ -114,6 +112,14 @@ public String getMatchingHostname(Predicate predicate) { return null; } + public boolean hasHostnames() { + return this.hostnames != null && !(this.hostnames.isEmpty()); + } + + public boolean hasIp() { + return this.ip != null; + } + public boolean hasMatchingHostname(Predicate predicate) { for (String item : hostnames) { if (predicate.test(item)) { @@ -123,6 +129,54 @@ public boolean hasMatchingHostname(Predicate predicate) { return false; } + public int hashCode() { + return Objects.hash(hostnames, ip); + } + + public A removeAllFromHostnames(Collection items) { + if (this.hostnames == null) { + return (A) this; + } + for (String item : items) { + this.hostnames.remove(item); + } + return (A) this; + } + + public A removeFromHostnames(String... items) { + if (this.hostnames == null) { + return (A) this; + } + for (String item : items) { + this.hostnames.remove(item); + } + return (A) this; + } + + public A setToHostnames(int index,String item) { + if (this.hostnames == null) { + this.hostnames = new ArrayList(); + } + this.hostnames.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(hostnames == null) && !(hostnames.isEmpty())) { + sb.append("hostnames:"); + sb.append(hostnames); + sb.append(","); + } + if (!(ip == null)) { + sb.append("ip:"); + sb.append(ip); + } + sb.append("}"); + return sb.toString(); + } + public A withHostnames(List hostnames) { if (hostnames != null) { this.hostnames = new ArrayList(); @@ -148,62 +202,9 @@ public A withHostnames(String... hostnames) { return (A) this; } - public boolean hasHostnames() { - return this.hostnames != null && !(this.hostnames.isEmpty()); - } - - public String getIp() { - return this.ip; - } - public A withIp(String ip) { this.ip = ip; return (A) this; } - public boolean hasIp() { - return this.ip != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1HostAliasFluent that = (V1HostAliasFluent) o; - if (!(Objects.equals(hostnames, that.hostnames))) { - return false; - } - if (!(Objects.equals(ip, that.ip))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(hostnames, ip); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(hostnames == null) && !(hostnames.isEmpty())) { - sb.append("hostnames:"); - sb.append(hostnames); - sb.append(","); - } - if (!(ip == null)) { - sb.append("ip:"); - sb.append(ip); - } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPBuilder.java index 2625c1228d..dbd4c460b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1HostIPBuilder extends V1HostIPFluent implements VisitableBuilder{ + + V1HostIPFluent fluent; + public V1HostIPBuilder() { this(new V1HostIP()); } @@ -11,22 +14,20 @@ public V1HostIPBuilder(V1HostIPFluent fluent) { this(fluent, new V1HostIP()); } - public V1HostIPBuilder(V1HostIPFluent fluent,V1HostIP instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HostIPBuilder(V1HostIP instance) { this.fluent = this; this.copyInstance(instance); } - V1HostIPFluent fluent; + public V1HostIPBuilder(V1HostIPFluent fluent,V1HostIP instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HostIP build() { V1HostIP buildable = new V1HostIP(); buildable.setIp(fluent.getIp()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPFluent.java index cb0363b7f3..6d769869bf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1HostIPFluent> extends BaseFluent{ + + private String ip; + public V1HostIPFluent() { } public V1HostIPFluent(V1HostIP instance) { this.copyInstance(instance); } - private String ip; - + protected void copyInstance(V1HostIP instance) { instance = instance != null ? instance : new V1HostIP(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1HostIP instance) { } } - public String getIp() { - return this.ip; - } - - public A withIp(String ip) { - this.ip = ip; - return (A) this; - } - - public boolean hasIp() { - return this.ip != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getIp() { + return this.ip; + } + + public boolean hasIp() { + return this.ip != null; + } + public int hashCode() { return Objects.hash(ip); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withIp(String ip) { + this.ip = ip; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java index b0af491507..61cca5a5cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1HostPathVolumeSourceBuilder extends V1HostPathVolumeSourceFluent implements VisitableBuilder{ + + V1HostPathVolumeSourceFluent fluent; + public V1HostPathVolumeSourceBuilder() { this(new V1HostPathVolumeSource()); } @@ -11,17 +14,16 @@ public V1HostPathVolumeSourceBuilder(V1HostPathVolumeSourceFluent fluent) { this(fluent, new V1HostPathVolumeSource()); } - public V1HostPathVolumeSourceBuilder(V1HostPathVolumeSourceFluent fluent,V1HostPathVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HostPathVolumeSourceBuilder(V1HostPathVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1HostPathVolumeSourceFluent fluent; + public V1HostPathVolumeSourceBuilder(V1HostPathVolumeSourceFluent fluent,V1HostPathVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HostPathVolumeSource build() { V1HostPathVolumeSource buildable = new V1HostPathVolumeSource(); buildable.setPath(fluent.getPath()); @@ -29,5 +31,4 @@ public V1HostPathVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java index 3b1fdd4e4c..2e87d765a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1HostPathVolumeSourceFluent> extends BaseFluent{ + + private String path; + private String type; + public V1HostPathVolumeSourceFluent() { } public V1HostPathVolumeSourceFluent(V1HostPathVolumeSource instance) { this.copyInstance(instance); } - private String path; - private String type; - + protected void copyInstance(V1HostPathVolumeSource instance) { instance = instance != null ? instance : new V1HostPathVolumeSource(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1HostPathVolumeSource instance) { } } - public String getPath() { - return this.path; - } - - public A withPath(String path) { - this.path = path; - return (A) this; - } - - public boolean hasPath() { - return this.path != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getPath() { + return this.path; + } + + public String getType() { + return this.type; + } + + public boolean hasPath() { + return this.path != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(path, type); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressBuilder.java index 472032463d..ea752e17eb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IPAddressBuilder extends V1IPAddressFluent implements VisitableBuilder{ + + V1IPAddressFluent fluent; + public V1IPAddressBuilder() { this(new V1IPAddress()); } @@ -11,17 +14,16 @@ public V1IPAddressBuilder(V1IPAddressFluent fluent) { this(fluent, new V1IPAddress()); } - public V1IPAddressBuilder(V1IPAddressFluent fluent,V1IPAddress instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IPAddressBuilder(V1IPAddress instance) { this.fluent = this; this.copyInstance(instance); } - V1IPAddressFluent fluent; + public V1IPAddressBuilder(V1IPAddressFluent fluent,V1IPAddress instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IPAddress build() { V1IPAddress buildable = new V1IPAddress(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1IPAddress build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressFluent.java index 66425e68b5..9616392a9e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1IPAddressFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1IPAddressSpecBuilder spec; + public V1IPAddressFluent() { } public V1IPAddressFluent(V1IPAddress instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1IPAddressSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1IPAddressSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1IPAddress instance) { instance = instance != null ? instance : new V1IPAddress(); @@ -35,60 +45,6 @@ protected void copyInstance(V1IPAddress instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1IPAddressSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1IPAddressSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1IPAddressSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1IPAddressSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1IPAddressSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1IPAddressSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1IPAddressSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1IPAddressSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1IPAddressSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1IPAddressFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1IPAddressSpecFluent> implements Nested{ + + V1IPAddressSpecBuilder builder; + SpecNested(V1IPAddressSpec item) { this.builder = new V1IPAddressSpecBuilder(this, item); } - V1IPAddressSpecBuilder builder; - + public N and() { return (N) V1IPAddressFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListBuilder.java index 5dc5bfb35c..c1233f6bb1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IPAddressListBuilder extends V1IPAddressListFluent implements VisitableBuilder{ + + V1IPAddressListFluent fluent; + public V1IPAddressListBuilder() { this(new V1IPAddressList()); } @@ -11,17 +14,16 @@ public V1IPAddressListBuilder(V1IPAddressListFluent fluent) { this(fluent, new V1IPAddressList()); } - public V1IPAddressListBuilder(V1IPAddressListFluent fluent,V1IPAddressList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IPAddressListBuilder(V1IPAddressList instance) { this.fluent = this; this.copyInstance(instance); } - V1IPAddressListFluent fluent; + public V1IPAddressListBuilder(V1IPAddressListFluent fluent,V1IPAddressList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IPAddressList build() { V1IPAddressList buildable = new V1IPAddressList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1IPAddressList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListFluent.java index 0fb380f607..5608c1eab4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1IPAddressListFluent> extends BaseFluent{ - public V1IPAddressListFluent() { - } - - public V1IPAddressListFluent(V1IPAddressList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1IPAddressList instance) { - instance = instance != null ? instance : new V1IPAddressList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1IPAddressListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1IPAddressListFluent(V1IPAddressList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1IPAddress item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1IPAddressBuilder builder = new V1IPAddressBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1IPAddress item : items) { + V1IPAddressBuilder builder = new V1IPAddressBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1IPAddress item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1IPAddressBuilder builder = new V1IPAddressBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1IPAddress item) { + return new ItemsNested(-1, item); } public A addToItems(V1IPAddress... items) { @@ -96,68 +65,31 @@ public A addToItems(V1IPAddress... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1IPAddress item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1IPAddress item : items) { - V1IPAddressBuilder builder = new V1IPAddressBuilder(item); + V1IPAddressBuilder builder = new V1IPAddressBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1IPAddress... items) { - if (this.items == null) { - return (A) this; - } - for (V1IPAddress item : items) { - V1IPAddressBuilder builder = new V1IPAddressBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1IPAddress item : items) { - V1IPAddressBuilder builder = new V1IPAddressBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1IPAddressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1IPAddress buildFirstItem() { + return this.items.get(0).build(); } public V1IPAddress buildItem(int index) { return this.items.get(index).build(); } - public V1IPAddress buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1IPAddress buildLastItem() { @@ -173,73 +105,34 @@ public V1IPAddress buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1IPAddressBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1IPAddress item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1IPAddressList instance) { + instance = instance != null ? instance : new V1IPAddressList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1IPAddress... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1IPAddress item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1IPAddress item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1IPAddress item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1IPAddressBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1IPAddress item : items) { + V1IPAddressBuilder builder = new V1IPAddressBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1IPAddress... items) { + if (this.items == null) { + return (A) this; + } + for (V1IPAddress item : items) { + V1IPAddressBuilder builder = new V1IPAddressBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1IPAddressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1IPAddress item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1IPAddress item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1IPAddressBuilder builder = new V1IPAddressBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1IPAddress item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1IPAddress... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1IPAddress item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1IPAddressFluent> implements Nested{ + + V1IPAddressBuilder builder; + int index; + ItemsNested(int index,V1IPAddress item) { this.index = index; this.builder = new V1IPAddressBuilder(this, item); } - V1IPAddressBuilder builder; - int index; - + public N and() { return (N) V1IPAddressListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1IPAddressListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecBuilder.java index aea849f502..0745e24e37 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IPAddressSpecBuilder extends V1IPAddressSpecFluent implements VisitableBuilder{ + + V1IPAddressSpecFluent fluent; + public V1IPAddressSpecBuilder() { this(new V1IPAddressSpec()); } @@ -11,22 +14,20 @@ public V1IPAddressSpecBuilder(V1IPAddressSpecFluent fluent) { this(fluent, new V1IPAddressSpec()); } - public V1IPAddressSpecBuilder(V1IPAddressSpecFluent fluent,V1IPAddressSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IPAddressSpecBuilder(V1IPAddressSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1IPAddressSpecFluent fluent; + public V1IPAddressSpecBuilder(V1IPAddressSpecFluent fluent,V1IPAddressSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IPAddressSpec build() { V1IPAddressSpec buildable = new V1IPAddressSpec(); buildable.setParentRef(fluent.buildParentRef()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecFluent.java index 9b1c05ea9f..525fee1b8e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1IPAddressSpecFluent> extends BaseFluent{ + + private V1ParentReferenceBuilder parentRef; + public V1IPAddressSpecFluent() { } public V1IPAddressSpecFluent(V1IPAddressSpec instance) { this.copyInstance(instance); } - private V1ParentReferenceBuilder parentRef; + + public V1ParentReference buildParentRef() { + return this.parentRef != null ? this.parentRef.build() : null; + } protected void copyInstance(V1IPAddressSpec instance) { instance = instance != null ? instance : new V1IPAddressSpec(); @@ -29,38 +35,6 @@ protected void copyInstance(V1IPAddressSpec instance) { } } - public V1ParentReference buildParentRef() { - return this.parentRef != null ? this.parentRef.build() : null; - } - - public A withParentRef(V1ParentReference parentRef) { - this._visitables.remove("parentRef"); - if (parentRef != null) { - this.parentRef = new V1ParentReferenceBuilder(parentRef); - this._visitables.get("parentRef").add(this.parentRef); - } else { - this.parentRef = null; - this._visitables.get("parentRef").remove(this.parentRef); - } - return (A) this; - } - - public boolean hasParentRef() { - return this.parentRef != null; - } - - public ParentRefNested withNewParentRef() { - return new ParentRefNested(null); - } - - public ParentRefNested withNewParentRefLike(V1ParentReference item) { - return new ParentRefNested(item); - } - - public ParentRefNested editParentRef() { - return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(null)); - } - public ParentRefNested editOrNewParentRef() { return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(new V1ParentReferenceBuilder().build())); } @@ -69,6 +43,10 @@ public ParentRefNested editOrNewParentRefLike(V1ParentReference item) { return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(item)); } + public ParentRefNested editParentRef() { + return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasParentRef() { + return this.parentRef != null; + } + public int hashCode() { return Objects.hash(parentRef); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public ParentRefNested withNewParentRef() { + return new ParentRefNested(null); + } + + public ParentRefNested withNewParentRefLike(V1ParentReference item) { + return new ParentRefNested(item); + } + + public A withParentRef(V1ParentReference parentRef) { + this._visitables.remove("parentRef"); + if (parentRef != null) { + this.parentRef = new V1ParentReferenceBuilder(parentRef); + this._visitables.get("parentRef").add(this.parentRef); + } else { + this.parentRef = null; + this._visitables.get("parentRef").remove(this.parentRef); + } + return (A) this; + } public class ParentRefNested extends V1ParentReferenceFluent> implements Nested{ + + V1ParentReferenceBuilder builder; + ParentRefNested(V1ParentReference item) { this.builder = new V1ParentReferenceBuilder(this, item); } - V1ParentReferenceBuilder builder; - + public N and() { return (N) V1IPAddressSpecFluent.this.withParentRef(builder.build()); } @@ -114,7 +118,5 @@ public N endParentRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java index 67707cfdf1..64ac496ed8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IPBlockBuilder extends V1IPBlockFluent implements VisitableBuilder{ + + V1IPBlockFluent fluent; + public V1IPBlockBuilder() { this(new V1IPBlock()); } @@ -11,17 +14,16 @@ public V1IPBlockBuilder(V1IPBlockFluent fluent) { this(fluent, new V1IPBlock()); } - public V1IPBlockBuilder(V1IPBlockFluent fluent,V1IPBlock instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IPBlockBuilder(V1IPBlock instance) { this.fluent = this; this.copyInstance(instance); } - V1IPBlockFluent fluent; + public V1IPBlockBuilder(V1IPBlockFluent fluent,V1IPBlock instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IPBlock build() { V1IPBlock buildable = new V1IPBlock(); buildable.setCidr(fluent.getCidr()); @@ -29,5 +31,4 @@ public V1IPBlock build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java index 9b19cf02c9..a2f2456330 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,49 +16,24 @@ */ @SuppressWarnings("unchecked") public class V1IPBlockFluent> extends BaseFluent{ + + private String cidr; + private List except; + public V1IPBlockFluent() { } public V1IPBlockFluent(V1IPBlock instance) { this.copyInstance(instance); } - private String cidr; - private List except; - - protected void copyInstance(V1IPBlock instance) { - instance = instance != null ? instance : new V1IPBlock(); - if (instance != null) { - this.withCidr(instance.getCidr()); - this.withExcept(instance.getExcept()); - } - } - - public String getCidr() { - return this.cidr; - } - - public A withCidr(String cidr) { - this.cidr = cidr; - return (A) this; - } - - public boolean hasCidr() { - return this.cidr != null; - } - - public A addToExcept(int index,String item) { + + public A addAllToExcept(Collection items) { if (this.except == null) { this.except = new ArrayList(); } - this.except.add(index, item); - return (A) this; - } - - public A setToExcept(int index,String item) { - if (this.except == null) { - this.except = new ArrayList(); + for (String item : items) { + this.except.add(item); } - this.except.set(index, item); return (A) this; } @@ -72,34 +47,44 @@ public A addToExcept(String... items) { return (A) this; } - public A addAllToExcept(Collection items) { + public A addToExcept(int index,String item) { if (this.except == null) { this.except = new ArrayList(); } - for (String item : items) { - this.except.add(item); - } + this.except.add(index, item); return (A) this; } - public A removeFromExcept(String... items) { - if (this.except == null) { - return (A) this; - } - for (String item : items) { - this.except.remove(item); + protected void copyInstance(V1IPBlock instance) { + instance = instance != null ? instance : new V1IPBlock(); + if (instance != null) { + this.withCidr(instance.getCidr()); + this.withExcept(instance.getExcept()); } - return (A) this; } - public A removeAllFromExcept(Collection items) { - if (this.except == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.except.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1IPBlockFluent that = (V1IPBlockFluent) o; + if (!(Objects.equals(cidr, that.cidr))) { + return false; + } + if (!(Objects.equals(except, that.except))) { + return false; + } + return true; + } + + public String getCidr() { + return this.cidr; } public List getExcept() { @@ -127,6 +112,14 @@ public String getMatchingExcept(Predicate predicate) { return null; } + public boolean hasCidr() { + return this.cidr != null; + } + + public boolean hasExcept() { + return this.except != null && !(this.except.isEmpty()); + } + public boolean hasMatchingExcept(Predicate predicate) { for (String item : except) { if (predicate.test(item)) { @@ -136,57 +129,36 @@ public boolean hasMatchingExcept(Predicate predicate) { return false; } - public A withExcept(List except) { - if (except != null) { - this.except = new ArrayList(); - for (String item : except) { - this.addToExcept(item); - } - } else { - this.except = null; - } - return (A) this; + public int hashCode() { + return Objects.hash(cidr, except); } - public A withExcept(String... except) { - if (this.except != null) { - this.except.clear(); - _visitables.remove("except"); + public A removeAllFromExcept(Collection items) { + if (this.except == null) { + return (A) this; } - if (except != null) { - for (String item : except) { - this.addToExcept(item); - } + for (String item : items) { + this.except.remove(item); } return (A) this; } - public boolean hasExcept() { - return this.except != null && !(this.except.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1IPBlockFluent that = (V1IPBlockFluent) o; - if (!(Objects.equals(cidr, that.cidr))) { - return false; + public A removeFromExcept(String... items) { + if (this.except == null) { + return (A) this; } - if (!(Objects.equals(except, that.except))) { - return false; + for (String item : items) { + this.except.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(cidr, except); + public A setToExcept(int index,String item) { + if (this.except == null) { + this.except = new ArrayList(); + } + this.except.set(index, item); + return (A) this; } public String toString() { @@ -205,5 +177,34 @@ public String toString() { return sb.toString(); } - + public A withCidr(String cidr) { + this.cidr = cidr; + return (A) this; + } + + public A withExcept(List except) { + if (except != null) { + this.except = new ArrayList(); + for (String item : except) { + this.addToExcept(item); + } + } else { + this.except = null; + } + return (A) this; + } + + public A withExcept(String... except) { + if (this.except != null) { + this.except.clear(); + _visitables.remove("except"); + } + if (except != null) { + for (String item : except) { + this.addToExcept(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java index 732e0e97a8..98b9054c57 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ISCSIPersistentVolumeSourceBuilder extends V1ISCSIPersistentVolumeSourceFluent implements VisitableBuilder{ + + V1ISCSIPersistentVolumeSourceFluent fluent; + public V1ISCSIPersistentVolumeSourceBuilder() { this(new V1ISCSIPersistentVolumeSource()); } @@ -11,17 +14,16 @@ public V1ISCSIPersistentVolumeSourceBuilder(V1ISCSIPersistentVolumeSourceFluent< this(fluent, new V1ISCSIPersistentVolumeSource()); } - public V1ISCSIPersistentVolumeSourceBuilder(V1ISCSIPersistentVolumeSourceFluent fluent,V1ISCSIPersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ISCSIPersistentVolumeSourceBuilder(V1ISCSIPersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1ISCSIPersistentVolumeSourceFluent fluent; + public V1ISCSIPersistentVolumeSourceBuilder(V1ISCSIPersistentVolumeSourceFluent fluent,V1ISCSIPersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ISCSIPersistentVolumeSource build() { V1ISCSIPersistentVolumeSource buildable = new V1ISCSIPersistentVolumeSource(); buildable.setChapAuthDiscovery(fluent.getChapAuthDiscovery()); @@ -38,5 +40,4 @@ public V1ISCSIPersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java index 7a66a09027..bf2293708a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java @@ -1,31 +1,26 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ISCSIPersistentVolumeSourceFluent> extends BaseFluent{ - public V1ISCSIPersistentVolumeSourceFluent() { - } - - public V1ISCSIPersistentVolumeSourceFluent(V1ISCSIPersistentVolumeSource instance) { - this.copyInstance(instance); - } + private Boolean chapAuthDiscovery; private Boolean chapAuthSession; private String fsType; @@ -37,6 +32,45 @@ public V1ISCSIPersistentVolumeSourceFluent(V1ISCSIPersistentVolumeSource instanc private Boolean readOnly; private V1SecretReferenceBuilder secretRef; private String targetPortal; + + public V1ISCSIPersistentVolumeSourceFluent() { + } + + public V1ISCSIPersistentVolumeSourceFluent(V1ISCSIPersistentVolumeSource instance) { + this.copyInstance(instance); + } + + public A addAllToPortals(Collection items) { + if (this.portals == null) { + this.portals = new ArrayList(); + } + for (String item : items) { + this.portals.add(item); + } + return (A) this; + } + + public A addToPortals(String... items) { + if (this.portals == null) { + this.portals = new ArrayList(); + } + for (String item : items) { + this.portals.add(item); + } + return (A) this; + } + + public A addToPortals(int index,String item) { + if (this.portals == null) { + this.portals = new ArrayList(); + } + this.portals.add(index, item); + return (A) this; + } + + public V1SecretReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; + } protected void copyInstance(V1ISCSIPersistentVolumeSource instance) { instance = instance != null ? instance : new V1ISCSIPersistentVolumeSource(); @@ -55,176 +89,152 @@ protected void copyInstance(V1ISCSIPersistentVolumeSource instance) { } } - public Boolean getChapAuthDiscovery() { - return this.chapAuthDiscovery; - } - - public A withChapAuthDiscovery(Boolean chapAuthDiscovery) { - this.chapAuthDiscovery = chapAuthDiscovery; - return (A) this; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } - public boolean hasChapAuthDiscovery() { - return this.chapAuthDiscovery != null; + public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public Boolean getChapAuthSession() { - return this.chapAuthSession; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } - public A withChapAuthSession(Boolean chapAuthSession) { - this.chapAuthSession = chapAuthSession; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ISCSIPersistentVolumeSourceFluent that = (V1ISCSIPersistentVolumeSourceFluent) o; + if (!(Objects.equals(chapAuthDiscovery, that.chapAuthDiscovery))) { + return false; + } + if (!(Objects.equals(chapAuthSession, that.chapAuthSession))) { + return false; + } + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(initiatorName, that.initiatorName))) { + return false; + } + if (!(Objects.equals(iqn, that.iqn))) { + return false; + } + if (!(Objects.equals(iscsiInterface, that.iscsiInterface))) { + return false; + } + if (!(Objects.equals(lun, that.lun))) { + return false; + } + if (!(Objects.equals(portals, that.portals))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(targetPortal, that.targetPortal))) { + return false; + } + return true; } - public boolean hasChapAuthSession() { - return this.chapAuthSession != null; + public Boolean getChapAuthDiscovery() { + return this.chapAuthDiscovery; } - public String getFsType() { - return this.fsType; + public Boolean getChapAuthSession() { + return this.chapAuthSession; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public String getFirstPortal() { + return this.portals.get(0); } - public boolean hasFsType() { - return this.fsType != null; + public String getFsType() { + return this.fsType; } public String getInitiatorName() { return this.initiatorName; } - public A withInitiatorName(String initiatorName) { - this.initiatorName = initiatorName; - return (A) this; - } - - public boolean hasInitiatorName() { - return this.initiatorName != null; - } - public String getIqn() { return this.iqn; } - public A withIqn(String iqn) { - this.iqn = iqn; - return (A) this; - } - - public boolean hasIqn() { - return this.iqn != null; - } - public String getIscsiInterface() { return this.iscsiInterface; } - public A withIscsiInterface(String iscsiInterface) { - this.iscsiInterface = iscsiInterface; - return (A) this; - } - - public boolean hasIscsiInterface() { - return this.iscsiInterface != null; + public String getLastPortal() { + return this.portals.get(portals.size() - 1); } public Integer getLun() { return this.lun; } - public A withLun(Integer lun) { - this.lun = lun; - return (A) this; - } - - public boolean hasLun() { - return this.lun != null; + public String getMatchingPortal(Predicate predicate) { + for (String item : portals) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A addToPortals(int index,String item) { - if (this.portals == null) { - this.portals = new ArrayList(); - } - this.portals.add(index, item); - return (A) this; + public String getPortal(int index) { + return this.portals.get(index); } - public A setToPortals(int index,String item) { - if (this.portals == null) { - this.portals = new ArrayList(); - } - this.portals.set(index, item); - return (A) this; + public List getPortals() { + return this.portals; } - public A addToPortals(String... items) { - if (this.portals == null) { - this.portals = new ArrayList(); - } - for (String item : items) { - this.portals.add(item); - } - return (A) this; + public Boolean getReadOnly() { + return this.readOnly; } - public A addAllToPortals(Collection items) { - if (this.portals == null) { - this.portals = new ArrayList(); - } - for (String item : items) { - this.portals.add(item); - } - return (A) this; + public String getTargetPortal() { + return this.targetPortal; } - public A removeFromPortals(String... items) { - if (this.portals == null) { - return (A) this; - } - for (String item : items) { - this.portals.remove(item); - } - return (A) this; + public boolean hasChapAuthDiscovery() { + return this.chapAuthDiscovery != null; } - public A removeAllFromPortals(Collection items) { - if (this.portals == null) { - return (A) this; - } - for (String item : items) { - this.portals.remove(item); - } - return (A) this; + public boolean hasChapAuthSession() { + return this.chapAuthSession != null; } - public List getPortals() { - return this.portals; + public boolean hasFsType() { + return this.fsType != null; } - public String getPortal(int index) { - return this.portals.get(index); + public boolean hasInitiatorName() { + return this.initiatorName != null; } - public String getFirstPortal() { - return this.portals.get(0); + public boolean hasIqn() { + return this.iqn != null; } - public String getLastPortal() { - return this.portals.get(portals.size() - 1); + public boolean hasIscsiInterface() { + return this.iscsiInterface != null; } - public String getMatchingPortal(Predicate predicate) { - for (String item : portals) { - if (predicate.test(item)) { - return item; - } - } - return null; + public boolean hasLun() { + return this.lun != null; } public boolean hasMatchingPortal(Predicate predicate) { @@ -236,150 +246,52 @@ public boolean hasMatchingPortal(Predicate predicate) { return false; } - public A withPortals(List portals) { - if (portals != null) { - this.portals = new ArrayList(); - for (String item : portals) { - this.addToPortals(item); - } - } else { - this.portals = null; - } - return (A) this; - } - - public A withPortals(String... portals) { - if (this.portals != null) { - this.portals.clear(); - _visitables.remove("portals"); - } - if (portals != null) { - for (String item : portals) { - this.addToPortals(item); - } - } - return (A) this; - } - public boolean hasPortals() { return this.portals != null && !(this.portals.isEmpty()); } - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - public boolean hasReadOnly() { return this.readOnly != null; } - public V1SecretReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; - } - - public A withSecretRef(V1SecretReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1SecretReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; - } - public boolean hasSecretRef() { return this.secretRef != null; } - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); - } - - public SecretRefNested withNewSecretRefLike(V1SecretReference item) { - return new SecretRefNested(item); - } - - public SecretRefNested editSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); - } - - public SecretRefNested editOrNewSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); - } - - public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); + public boolean hasTargetPortal() { + return this.targetPortal != null; } - public String getTargetPortal() { - return this.targetPortal; + public int hashCode() { + return Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal); } - public A withTargetPortal(String targetPortal) { - this.targetPortal = targetPortal; + public A removeAllFromPortals(Collection items) { + if (this.portals == null) { + return (A) this; + } + for (String item : items) { + this.portals.remove(item); + } return (A) this; } - public boolean hasTargetPortal() { - return this.targetPortal != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ISCSIPersistentVolumeSourceFluent that = (V1ISCSIPersistentVolumeSourceFluent) o; - if (!(Objects.equals(chapAuthDiscovery, that.chapAuthDiscovery))) { - return false; - } - if (!(Objects.equals(chapAuthSession, that.chapAuthSession))) { - return false; - } - if (!(Objects.equals(fsType, that.fsType))) { - return false; - } - if (!(Objects.equals(initiatorName, that.initiatorName))) { - return false; - } - if (!(Objects.equals(iqn, that.iqn))) { - return false; - } - if (!(Objects.equals(iscsiInterface, that.iscsiInterface))) { - return false; - } - if (!(Objects.equals(lun, that.lun))) { - return false; - } - if (!(Objects.equals(portals, that.portals))) { - return false; - } - if (!(Objects.equals(readOnly, that.readOnly))) { - return false; - } - if (!(Objects.equals(secretRef, that.secretRef))) { - return false; + public A removeFromPortals(String... items) { + if (this.portals == null) { + return (A) this; } - if (!(Objects.equals(targetPortal, that.targetPortal))) { - return false; + for (String item : items) { + this.portals.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal); + public A setToPortals(int index,String item) { + if (this.portals == null) { + this.portals = new ArrayList(); + } + this.portals.set(index, item); + return (A) this; } public String toString() { @@ -447,19 +359,111 @@ public A withChapAuthDiscovery() { return withChapAuthDiscovery(true); } + public A withChapAuthDiscovery(Boolean chapAuthDiscovery) { + this.chapAuthDiscovery = chapAuthDiscovery; + return (A) this; + } + public A withChapAuthSession() { return withChapAuthSession(true); } + public A withChapAuthSession(Boolean chapAuthSession) { + this.chapAuthSession = chapAuthSession; + return (A) this; + } + + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withInitiatorName(String initiatorName) { + this.initiatorName = initiatorName; + return (A) this; + } + + public A withIqn(String iqn) { + this.iqn = iqn; + return (A) this; + } + + public A withIscsiInterface(String iscsiInterface) { + this.iscsiInterface = iscsiInterface; + return (A) this; + } + + public A withLun(Integer lun) { + this.lun = lun; + return (A) this; + } + + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); + } + + public SecretRefNested withNewSecretRefLike(V1SecretReference item) { + return new SecretRefNested(item); + } + + public A withPortals(List portals) { + if (portals != null) { + this.portals = new ArrayList(); + for (String item : portals) { + this.addToPortals(item); + } + } else { + this.portals = null; + } + return (A) this; + } + + public A withPortals(String... portals) { + if (this.portals != null) { + this.portals.clear(); + _visitables.remove("portals"); + } + if (portals != null) { + for (String item : portals) { + this.addToPortals(item); + } + } + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } + + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretRef(V1SecretReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1SecretReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; + } + + public A withTargetPortal(String targetPortal) { + this.targetPortal = targetPortal; + return (A) this; + } public class SecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + SecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1ISCSIPersistentVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -468,7 +472,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java index cbe2230b31..fb3aa103fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ISCSIVolumeSourceBuilder extends V1ISCSIVolumeSourceFluent implements VisitableBuilder{ + + V1ISCSIVolumeSourceFluent fluent; + public V1ISCSIVolumeSourceBuilder() { this(new V1ISCSIVolumeSource()); } @@ -11,17 +14,16 @@ public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSourceFluent fluent) { this(fluent, new V1ISCSIVolumeSource()); } - public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSourceFluent fluent,V1ISCSIVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1ISCSIVolumeSourceFluent fluent; + public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSourceFluent fluent,V1ISCSIVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ISCSIVolumeSource build() { V1ISCSIVolumeSource buildable = new V1ISCSIVolumeSource(); buildable.setChapAuthDiscovery(fluent.getChapAuthDiscovery()); @@ -38,5 +40,4 @@ public V1ISCSIVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java index de54fd9862..f487bca4fe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java @@ -1,31 +1,26 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ISCSIVolumeSourceFluent> extends BaseFluent{ - public V1ISCSIVolumeSourceFluent() { - } - - public V1ISCSIVolumeSourceFluent(V1ISCSIVolumeSource instance) { - this.copyInstance(instance); - } + private Boolean chapAuthDiscovery; private Boolean chapAuthSession; private String fsType; @@ -37,6 +32,45 @@ public V1ISCSIVolumeSourceFluent(V1ISCSIVolumeSource instance) { private Boolean readOnly; private V1LocalObjectReferenceBuilder secretRef; private String targetPortal; + + public V1ISCSIVolumeSourceFluent() { + } + + public V1ISCSIVolumeSourceFluent(V1ISCSIVolumeSource instance) { + this.copyInstance(instance); + } + + public A addAllToPortals(Collection items) { + if (this.portals == null) { + this.portals = new ArrayList(); + } + for (String item : items) { + this.portals.add(item); + } + return (A) this; + } + + public A addToPortals(String... items) { + if (this.portals == null) { + this.portals = new ArrayList(); + } + for (String item : items) { + this.portals.add(item); + } + return (A) this; + } + + public A addToPortals(int index,String item) { + if (this.portals == null) { + this.portals = new ArrayList(); + } + this.portals.add(index, item); + return (A) this; + } + + public V1LocalObjectReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; + } protected void copyInstance(V1ISCSIVolumeSource instance) { instance = instance != null ? instance : new V1ISCSIVolumeSource(); @@ -55,176 +89,152 @@ protected void copyInstance(V1ISCSIVolumeSource instance) { } } - public Boolean getChapAuthDiscovery() { - return this.chapAuthDiscovery; - } - - public A withChapAuthDiscovery(Boolean chapAuthDiscovery) { - this.chapAuthDiscovery = chapAuthDiscovery; - return (A) this; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } - public boolean hasChapAuthDiscovery() { - return this.chapAuthDiscovery != null; + public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public Boolean getChapAuthSession() { - return this.chapAuthSession; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } - public A withChapAuthSession(Boolean chapAuthSession) { - this.chapAuthSession = chapAuthSession; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ISCSIVolumeSourceFluent that = (V1ISCSIVolumeSourceFluent) o; + if (!(Objects.equals(chapAuthDiscovery, that.chapAuthDiscovery))) { + return false; + } + if (!(Objects.equals(chapAuthSession, that.chapAuthSession))) { + return false; + } + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(initiatorName, that.initiatorName))) { + return false; + } + if (!(Objects.equals(iqn, that.iqn))) { + return false; + } + if (!(Objects.equals(iscsiInterface, that.iscsiInterface))) { + return false; + } + if (!(Objects.equals(lun, that.lun))) { + return false; + } + if (!(Objects.equals(portals, that.portals))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(targetPortal, that.targetPortal))) { + return false; + } + return true; } - public boolean hasChapAuthSession() { - return this.chapAuthSession != null; + public Boolean getChapAuthDiscovery() { + return this.chapAuthDiscovery; } - public String getFsType() { - return this.fsType; + public Boolean getChapAuthSession() { + return this.chapAuthSession; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public String getFirstPortal() { + return this.portals.get(0); } - public boolean hasFsType() { - return this.fsType != null; + public String getFsType() { + return this.fsType; } public String getInitiatorName() { return this.initiatorName; } - public A withInitiatorName(String initiatorName) { - this.initiatorName = initiatorName; - return (A) this; - } - - public boolean hasInitiatorName() { - return this.initiatorName != null; - } - public String getIqn() { return this.iqn; } - public A withIqn(String iqn) { - this.iqn = iqn; - return (A) this; - } - - public boolean hasIqn() { - return this.iqn != null; - } - public String getIscsiInterface() { return this.iscsiInterface; } - public A withIscsiInterface(String iscsiInterface) { - this.iscsiInterface = iscsiInterface; - return (A) this; - } - - public boolean hasIscsiInterface() { - return this.iscsiInterface != null; + public String getLastPortal() { + return this.portals.get(portals.size() - 1); } public Integer getLun() { return this.lun; } - public A withLun(Integer lun) { - this.lun = lun; - return (A) this; - } - - public boolean hasLun() { - return this.lun != null; + public String getMatchingPortal(Predicate predicate) { + for (String item : portals) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A addToPortals(int index,String item) { - if (this.portals == null) { - this.portals = new ArrayList(); - } - this.portals.add(index, item); - return (A) this; + public String getPortal(int index) { + return this.portals.get(index); } - public A setToPortals(int index,String item) { - if (this.portals == null) { - this.portals = new ArrayList(); - } - this.portals.set(index, item); - return (A) this; + public List getPortals() { + return this.portals; } - public A addToPortals(String... items) { - if (this.portals == null) { - this.portals = new ArrayList(); - } - for (String item : items) { - this.portals.add(item); - } - return (A) this; + public Boolean getReadOnly() { + return this.readOnly; } - public A addAllToPortals(Collection items) { - if (this.portals == null) { - this.portals = new ArrayList(); - } - for (String item : items) { - this.portals.add(item); - } - return (A) this; + public String getTargetPortal() { + return this.targetPortal; } - public A removeFromPortals(String... items) { - if (this.portals == null) { - return (A) this; - } - for (String item : items) { - this.portals.remove(item); - } - return (A) this; + public boolean hasChapAuthDiscovery() { + return this.chapAuthDiscovery != null; } - public A removeAllFromPortals(Collection items) { - if (this.portals == null) { - return (A) this; - } - for (String item : items) { - this.portals.remove(item); - } - return (A) this; + public boolean hasChapAuthSession() { + return this.chapAuthSession != null; } - public List getPortals() { - return this.portals; + public boolean hasFsType() { + return this.fsType != null; } - public String getPortal(int index) { - return this.portals.get(index); + public boolean hasInitiatorName() { + return this.initiatorName != null; } - public String getFirstPortal() { - return this.portals.get(0); + public boolean hasIqn() { + return this.iqn != null; } - public String getLastPortal() { - return this.portals.get(portals.size() - 1); + public boolean hasIscsiInterface() { + return this.iscsiInterface != null; } - public String getMatchingPortal(Predicate predicate) { - for (String item : portals) { - if (predicate.test(item)) { - return item; - } - } - return null; + public boolean hasLun() { + return this.lun != null; } public boolean hasMatchingPortal(Predicate predicate) { @@ -236,150 +246,52 @@ public boolean hasMatchingPortal(Predicate predicate) { return false; } - public A withPortals(List portals) { - if (portals != null) { - this.portals = new ArrayList(); - for (String item : portals) { - this.addToPortals(item); - } - } else { - this.portals = null; - } - return (A) this; - } - - public A withPortals(String... portals) { - if (this.portals != null) { - this.portals.clear(); - _visitables.remove("portals"); - } - if (portals != null) { - for (String item : portals) { - this.addToPortals(item); - } - } - return (A) this; - } - public boolean hasPortals() { return this.portals != null && !(this.portals.isEmpty()); } - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - public boolean hasReadOnly() { return this.readOnly != null; } - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; - } - - public A withSecretRef(V1LocalObjectReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; - } - public boolean hasSecretRef() { return this.secretRef != null; } - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); - } - - public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); - } - - public SecretRefNested editSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); - } - - public SecretRefNested editOrNewSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); - } - - public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); + public boolean hasTargetPortal() { + return this.targetPortal != null; } - public String getTargetPortal() { - return this.targetPortal; + public int hashCode() { + return Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal); } - public A withTargetPortal(String targetPortal) { - this.targetPortal = targetPortal; + public A removeAllFromPortals(Collection items) { + if (this.portals == null) { + return (A) this; + } + for (String item : items) { + this.portals.remove(item); + } return (A) this; } - public boolean hasTargetPortal() { - return this.targetPortal != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ISCSIVolumeSourceFluent that = (V1ISCSIVolumeSourceFluent) o; - if (!(Objects.equals(chapAuthDiscovery, that.chapAuthDiscovery))) { - return false; - } - if (!(Objects.equals(chapAuthSession, that.chapAuthSession))) { - return false; - } - if (!(Objects.equals(fsType, that.fsType))) { - return false; - } - if (!(Objects.equals(initiatorName, that.initiatorName))) { - return false; - } - if (!(Objects.equals(iqn, that.iqn))) { - return false; - } - if (!(Objects.equals(iscsiInterface, that.iscsiInterface))) { - return false; - } - if (!(Objects.equals(lun, that.lun))) { - return false; - } - if (!(Objects.equals(portals, that.portals))) { - return false; - } - if (!(Objects.equals(readOnly, that.readOnly))) { - return false; - } - if (!(Objects.equals(secretRef, that.secretRef))) { - return false; + public A removeFromPortals(String... items) { + if (this.portals == null) { + return (A) this; } - if (!(Objects.equals(targetPortal, that.targetPortal))) { - return false; + for (String item : items) { + this.portals.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal); + public A setToPortals(int index,String item) { + if (this.portals == null) { + this.portals = new ArrayList(); + } + this.portals.set(index, item); + return (A) this; } public String toString() { @@ -447,19 +359,111 @@ public A withChapAuthDiscovery() { return withChapAuthDiscovery(true); } + public A withChapAuthDiscovery(Boolean chapAuthDiscovery) { + this.chapAuthDiscovery = chapAuthDiscovery; + return (A) this; + } + public A withChapAuthSession() { return withChapAuthSession(true); } + public A withChapAuthSession(Boolean chapAuthSession) { + this.chapAuthSession = chapAuthSession; + return (A) this; + } + + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withInitiatorName(String initiatorName) { + this.initiatorName = initiatorName; + return (A) this; + } + + public A withIqn(String iqn) { + this.iqn = iqn; + return (A) this; + } + + public A withIscsiInterface(String iscsiInterface) { + this.iscsiInterface = iscsiInterface; + return (A) this; + } + + public A withLun(Integer lun) { + this.lun = lun; + return (A) this; + } + + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); + } + + public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { + return new SecretRefNested(item); + } + + public A withPortals(List portals) { + if (portals != null) { + this.portals = new ArrayList(); + for (String item : portals) { + this.addToPortals(item); + } + } else { + this.portals = null; + } + return (A) this; + } + + public A withPortals(String... portals) { + if (this.portals != null) { + this.portals.clear(); + _visitables.remove("portals"); + } + if (portals != null) { + for (String item : portals) { + this.addToPortals(item); + } + } + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } + + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretRef(V1LocalObjectReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; + } + + public A withTargetPortal(String targetPortal) { + this.targetPortal = targetPortal; + return (A) this; + } public class SecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ + + V1LocalObjectReferenceBuilder builder; + SecretRefNested(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - + public N and() { return (N) V1ISCSIVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -468,7 +472,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceBuilder.java index 02c60a0e0c..b4ea5f79ea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ImageVolumeSourceBuilder extends V1ImageVolumeSourceFluent implements VisitableBuilder{ + + V1ImageVolumeSourceFluent fluent; + public V1ImageVolumeSourceBuilder() { this(new V1ImageVolumeSource()); } @@ -11,17 +14,16 @@ public V1ImageVolumeSourceBuilder(V1ImageVolumeSourceFluent fluent) { this(fluent, new V1ImageVolumeSource()); } - public V1ImageVolumeSourceBuilder(V1ImageVolumeSourceFluent fluent,V1ImageVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ImageVolumeSourceBuilder(V1ImageVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1ImageVolumeSourceFluent fluent; + public V1ImageVolumeSourceBuilder(V1ImageVolumeSourceFluent fluent,V1ImageVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ImageVolumeSource build() { V1ImageVolumeSource buildable = new V1ImageVolumeSource(); buildable.setPullPolicy(fluent.getPullPolicy()); @@ -29,5 +31,4 @@ public V1ImageVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceFluent.java index 3ab4318bc0..95265f939b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ImageVolumeSourceFluent> extends BaseFluent{ + + private String pullPolicy; + private String reference; + public V1ImageVolumeSourceFluent() { } public V1ImageVolumeSourceFluent(V1ImageVolumeSource instance) { this.copyInstance(instance); } - private String pullPolicy; - private String reference; - + protected void copyInstance(V1ImageVolumeSource instance) { instance = instance != null ? instance : new V1ImageVolumeSource(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1ImageVolumeSource instance) { } } - public String getPullPolicy() { - return this.pullPolicy; - } - - public A withPullPolicy(String pullPolicy) { - this.pullPolicy = pullPolicy; - return (A) this; - } - - public boolean hasPullPolicy() { - return this.pullPolicy != null; - } - - public String getReference() { - return this.reference; - } - - public A withReference(String reference) { - this.reference = reference; - return (A) this; - } - - public boolean hasReference() { - return this.reference != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getPullPolicy() { + return this.pullPolicy; + } + + public String getReference() { + return this.reference; + } + + public boolean hasPullPolicy() { + return this.pullPolicy != null; + } + + public boolean hasReference() { + return this.reference != null; + } + public int hashCode() { return Objects.hash(pullPolicy, reference); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withPullPolicy(String pullPolicy) { + this.pullPolicy = pullPolicy; + return (A) this; + } + + public A withReference(String reference) { + this.reference = reference; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java index 04c2cbd39a..57a03cef55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IngressBackendBuilder extends V1IngressBackendFluent implements VisitableBuilder{ + + V1IngressBackendFluent fluent; + public V1IngressBackendBuilder() { this(new V1IngressBackend()); } @@ -11,17 +14,16 @@ public V1IngressBackendBuilder(V1IngressBackendFluent fluent) { this(fluent, new V1IngressBackend()); } - public V1IngressBackendBuilder(V1IngressBackendFluent fluent,V1IngressBackend instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressBackendBuilder(V1IngressBackend instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressBackendFluent fluent; + public V1IngressBackendBuilder(V1IngressBackendFluent fluent,V1IngressBackend instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressBackend build() { V1IngressBackend buildable = new V1IngressBackend(); buildable.setResource(fluent.buildResource()); @@ -29,5 +31,4 @@ public V1IngressBackend build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java index 6f1d17d279..4ffe2ebe28 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java @@ -1,27 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1IngressBackendFluent> extends BaseFluent{ + + private V1TypedLocalObjectReferenceBuilder resource; + private V1IngressServiceBackendBuilder service; + public V1IngressBackendFluent() { } public V1IngressBackendFluent(V1IngressBackend instance) { this.copyInstance(instance); } - private V1TypedLocalObjectReferenceBuilder resource; - private V1IngressServiceBackendBuilder service; + + public V1TypedLocalObjectReference buildResource() { + return this.resource != null ? this.resource.build() : null; + } + + public V1IngressServiceBackend buildService() { + return this.service != null ? this.service.build() : null; + } protected void copyInstance(V1IngressBackend instance) { instance = instance != null ? instance : new V1IngressBackend(); @@ -31,38 +41,6 @@ protected void copyInstance(V1IngressBackend instance) { } } - public V1TypedLocalObjectReference buildResource() { - return this.resource != null ? this.resource.build() : null; - } - - public A withResource(V1TypedLocalObjectReference resource) { - this._visitables.remove("resource"); - if (resource != null) { - this.resource = new V1TypedLocalObjectReferenceBuilder(resource); - this._visitables.get("resource").add(this.resource); - } else { - this.resource = null; - this._visitables.get("resource").remove(this.resource); - } - return (A) this; - } - - public boolean hasResource() { - return this.resource != null; - } - - public ResourceNested withNewResource() { - return new ResourceNested(null); - } - - public ResourceNested withNewResourceLike(V1TypedLocalObjectReference item) { - return new ResourceNested(item); - } - - public ResourceNested editResource() { - return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(null)); - } - public ResourceNested editOrNewResource() { return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(new V1TypedLocalObjectReferenceBuilder().build())); } @@ -71,46 +49,22 @@ public ResourceNested editOrNewResourceLike(V1TypedLocalObjectReference item) return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(item)); } - public V1IngressServiceBackend buildService() { - return this.service != null ? this.service.build() : null; - } - - public A withService(V1IngressServiceBackend service) { - this._visitables.remove("service"); - if (service != null) { - this.service = new V1IngressServiceBackendBuilder(service); - this._visitables.get("service").add(this.service); - } else { - this.service = null; - this._visitables.get("service").remove(this.service); - } - return (A) this; - } - - public boolean hasService() { - return this.service != null; + public ServiceNested editOrNewService() { + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(new V1IngressServiceBackendBuilder().build())); } - public ServiceNested withNewService() { - return new ServiceNested(null); + public ServiceNested editOrNewServiceLike(V1IngressServiceBackend item) { + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(item)); } - public ServiceNested withNewServiceLike(V1IngressServiceBackend item) { - return new ServiceNested(item); + public ResourceNested editResource() { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(null)); } public ServiceNested editService() { return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(null)); } - public ServiceNested editOrNewService() { - return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(new V1IngressServiceBackendBuilder().build())); - } - - public ServiceNested editOrNewServiceLike(V1IngressServiceBackend item) { - return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -131,6 +85,14 @@ public boolean equals(Object o) { return true; } + public boolean hasResource() { + return this.resource != null; + } + + public boolean hasService() { + return this.service != null; + } + public int hashCode() { return Objects.hash(resource, service); } @@ -150,12 +112,54 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public ResourceNested withNewResource() { + return new ResourceNested(null); + } + + public ResourceNested withNewResourceLike(V1TypedLocalObjectReference item) { + return new ResourceNested(item); + } + + public ServiceNested withNewService() { + return new ServiceNested(null); + } + + public ServiceNested withNewServiceLike(V1IngressServiceBackend item) { + return new ServiceNested(item); + } + + public A withResource(V1TypedLocalObjectReference resource) { + this._visitables.remove("resource"); + if (resource != null) { + this.resource = new V1TypedLocalObjectReferenceBuilder(resource); + this._visitables.get("resource").add(this.resource); + } else { + this.resource = null; + this._visitables.get("resource").remove(this.resource); + } + return (A) this; + } + + public A withService(V1IngressServiceBackend service) { + this._visitables.remove("service"); + if (service != null) { + this.service = new V1IngressServiceBackendBuilder(service); + this._visitables.get("service").add(this.service); + } else { + this.service = null; + this._visitables.get("service").remove(this.service); + } + return (A) this; + } public class ResourceNested extends V1TypedLocalObjectReferenceFluent> implements Nested{ + + V1TypedLocalObjectReferenceBuilder builder; + ResourceNested(V1TypedLocalObjectReference item) { this.builder = new V1TypedLocalObjectReferenceBuilder(this, item); } - V1TypedLocalObjectReferenceBuilder builder; - + public N and() { return (N) V1IngressBackendFluent.this.withResource(builder.build()); } @@ -164,14 +168,15 @@ public N endResource() { return and(); } - } public class ServiceNested extends V1IngressServiceBackendFluent> implements Nested{ + + V1IngressServiceBackendBuilder builder; + ServiceNested(V1IngressServiceBackend item) { this.builder = new V1IngressServiceBackendBuilder(this, item); } - V1IngressServiceBackendBuilder builder; - + public N and() { return (N) V1IngressBackendFluent.this.withService(builder.build()); } @@ -180,7 +185,5 @@ public N endService() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java index 20a1185816..6d24585c8e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IngressBuilder extends V1IngressFluent implements VisitableBuilder{ + + V1IngressFluent fluent; + public V1IngressBuilder() { this(new V1Ingress()); } @@ -11,17 +14,16 @@ public V1IngressBuilder(V1IngressFluent fluent) { this(fluent, new V1Ingress()); } - public V1IngressBuilder(V1IngressFluent fluent,V1Ingress instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressBuilder(V1Ingress instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressFluent fluent; + public V1IngressBuilder(V1IngressFluent fluent,V1Ingress instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Ingress build() { V1Ingress buildable = new V1Ingress(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1Ingress build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java index 3757a40c5b..ca54180a7e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IngressClassBuilder extends V1IngressClassFluent implements VisitableBuilder{ + + V1IngressClassFluent fluent; + public V1IngressClassBuilder() { this(new V1IngressClass()); } @@ -11,17 +14,16 @@ public V1IngressClassBuilder(V1IngressClassFluent fluent) { this(fluent, new V1IngressClass()); } - public V1IngressClassBuilder(V1IngressClassFluent fluent,V1IngressClass instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressClassBuilder(V1IngressClass instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressClassFluent fluent; + public V1IngressClassBuilder(V1IngressClassFluent fluent,V1IngressClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressClass build() { V1IngressClass buildable = new V1IngressClass(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1IngressClass build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java index 670b1f24fd..24e8543977 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1IngressClassFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1IngressClassSpecBuilder spec; + public V1IngressClassFluent() { } public V1IngressClassFluent(V1IngressClass instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1IngressClassSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1IngressClassSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1IngressClass instance) { instance = instance != null ? instance : new V1IngressClass(); @@ -35,60 +45,6 @@ protected void copyInstance(V1IngressClass instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1IngressClassSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1IngressClassSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1IngressClassSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1IngressClassSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1IngressClassSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1IngressClassSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1IngressClassSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1IngressClassSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1IngressClassSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1IngressClassFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1IngressClassSpecFluent> implements Nested{ + + V1IngressClassSpecBuilder builder; + SpecNested(V1IngressClassSpec item) { this.builder = new V1IngressClassSpecBuilder(this, item); } - V1IngressClassSpecBuilder builder; - + public N and() { return (N) V1IngressClassFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java index 9ce48f466f..617eb951f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IngressClassListBuilder extends V1IngressClassListFluent implements VisitableBuilder{ + + V1IngressClassListFluent fluent; + public V1IngressClassListBuilder() { this(new V1IngressClassList()); } @@ -11,17 +14,16 @@ public V1IngressClassListBuilder(V1IngressClassListFluent fluent) { this(fluent, new V1IngressClassList()); } - public V1IngressClassListBuilder(V1IngressClassListFluent fluent,V1IngressClassList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressClassListBuilder(V1IngressClassList instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressClassListFluent fluent; + public V1IngressClassListBuilder(V1IngressClassListFluent fluent,V1IngressClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressClassList build() { V1IngressClassList buildable = new V1IngressClassList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1IngressClassList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java index 67c42b3672..e1fa933ca0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1IngressClassListFluent> extends BaseFluent{ - public V1IngressClassListFluent() { - } - - public V1IngressClassListFluent(V1IngressClassList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1IngressClassList instance) { - instance = instance != null ? instance : new V1IngressClassList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1IngressClassListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1IngressClassListFluent(V1IngressClassList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1IngressClass item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1IngressClassBuilder builder = new V1IngressClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1IngressClass item : items) { + V1IngressClassBuilder builder = new V1IngressClassBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1IngressClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1IngressClassBuilder builder = new V1IngressClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1IngressClass item) { + return new ItemsNested(-1, item); } public A addToItems(V1IngressClass... items) { @@ -96,68 +65,31 @@ public A addToItems(V1IngressClass... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1IngressClass item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1IngressClass item : items) { - V1IngressClassBuilder builder = new V1IngressClassBuilder(item); + V1IngressClassBuilder builder = new V1IngressClassBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1IngressClass... items) { - if (this.items == null) { - return (A) this; - } - for (V1IngressClass item : items) { - V1IngressClassBuilder builder = new V1IngressClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1IngressClass item : items) { - V1IngressClassBuilder builder = new V1IngressClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1IngressClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1IngressClass buildFirstItem() { + return this.items.get(0).build(); } public V1IngressClass buildItem(int index) { return this.items.get(index).build(); } - public V1IngressClass buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1IngressClass buildLastItem() { @@ -173,73 +105,34 @@ public V1IngressClass buildMatchingItem(Predicate predica return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1IngressClassBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1IngressClass item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1IngressClassList instance) { + instance = instance != null ? instance : new V1IngressClassList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1IngressClass... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1IngressClass item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1IngressClass item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1IngressClass item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicat return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1IngressClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1IngressClass item : items) { + V1IngressClassBuilder builder = new V1IngressClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1IngressClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1IngressClass item : items) { + V1IngressClassBuilder builder = new V1IngressClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1IngressClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1IngressClass item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1IngressClass item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1IngressClassBuilder builder = new V1IngressClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1IngressClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1IngressClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1IngressClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1IngressClassFluent> implements Nested{ + + V1IngressClassBuilder builder; + int index; + ItemsNested(int index,V1IngressClass item) { this.index = index; this.builder = new V1IngressClassBuilder(this, item); } - V1IngressClassBuilder builder; - int index; - + public N and() { return (N) V1IngressClassListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1IngressClassListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java index eef3d4d238..177e135a09 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IngressClassParametersReferenceBuilder extends V1IngressClassParametersReferenceFluent implements VisitableBuilder{ + + V1IngressClassParametersReferenceFluent fluent; + public V1IngressClassParametersReferenceBuilder() { this(new V1IngressClassParametersReference()); } @@ -11,17 +14,16 @@ public V1IngressClassParametersReferenceBuilder(V1IngressClassParametersReferenc this(fluent, new V1IngressClassParametersReference()); } - public V1IngressClassParametersReferenceBuilder(V1IngressClassParametersReferenceFluent fluent,V1IngressClassParametersReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressClassParametersReferenceBuilder(V1IngressClassParametersReference instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressClassParametersReferenceFluent fluent; + public V1IngressClassParametersReferenceBuilder(V1IngressClassParametersReferenceFluent fluent,V1IngressClassParametersReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressClassParametersReference build() { V1IngressClassParametersReference buildable = new V1IngressClassParametersReference(); buildable.setApiGroup(fluent.getApiGroup()); @@ -32,5 +34,4 @@ public V1IngressClassParametersReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java index 5c396f2582..6a62d7975c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1IngressClassParametersReferenceFluent> extends BaseFluent{ - public V1IngressClassParametersReferenceFluent() { - } - - public V1IngressClassParametersReferenceFluent(V1IngressClassParametersReference instance) { - this.copyInstance(instance); - } + private String apiGroup; private String kind; private String name; private String namespace; private String scope; + + public V1IngressClassParametersReferenceFluent() { + } + public V1IngressClassParametersReferenceFluent(V1IngressClassParametersReference instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1IngressClassParametersReference instance) { instance = instance != null ? instance : new V1IngressClassParametersReference(); if (instance != null) { @@ -35,71 +37,6 @@ protected void copyInstance(V1IngressClassParametersReference instance) { } } - public String getApiGroup() { - return this.apiGroup; - } - - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; - } - - public boolean hasApiGroup() { - return this.apiGroup != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - - public String getScope() { - return this.scope; - } - - public A withScope(String scope) { - this.scope = scope; - return (A) this; - } - - public boolean hasScope() { - return this.scope != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -129,6 +66,46 @@ public boolean equals(Object o) { return true; } + public String getApiGroup() { + return this.apiGroup; + } + + public String getKind() { + return this.kind; + } + + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; + } + + public String getScope() { + return this.scope; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public boolean hasScope() { + return this.scope != null; + } + public int hashCode() { return Objects.hash(apiGroup, kind, name, namespace, scope); } @@ -164,5 +141,29 @@ public String toString() { return sb.toString(); } - + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public A withScope(String scope) { + this.scope = scope; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java index 41eb113e60..a9df2c329a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IngressClassSpecBuilder extends V1IngressClassSpecFluent implements VisitableBuilder{ + + V1IngressClassSpecFluent fluent; + public V1IngressClassSpecBuilder() { this(new V1IngressClassSpec()); } @@ -11,17 +14,16 @@ public V1IngressClassSpecBuilder(V1IngressClassSpecFluent fluent) { this(fluent, new V1IngressClassSpec()); } - public V1IngressClassSpecBuilder(V1IngressClassSpecFluent fluent,V1IngressClassSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressClassSpecBuilder(V1IngressClassSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressClassSpecFluent fluent; + public V1IngressClassSpecBuilder(V1IngressClassSpecFluent fluent,V1IngressClassSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressClassSpec build() { V1IngressClassSpec buildable = new V1IngressClassSpec(); buildable.setController(fluent.getController()); @@ -29,5 +31,4 @@ public V1IngressClassSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java index 6f782ecd32..b3c0b741f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java @@ -1,27 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1IngressClassSpecFluent> extends BaseFluent{ + + private String controller; + private V1IngressClassParametersReferenceBuilder parameters; + public V1IngressClassSpecFluent() { } public V1IngressClassSpecFluent(V1IngressClassSpec instance) { this.copyInstance(instance); } - private String controller; - private V1IngressClassParametersReferenceBuilder parameters; + + public V1IngressClassParametersReference buildParameters() { + return this.parameters != null ? this.parameters.build() : null; + } protected void copyInstance(V1IngressClassSpec instance) { instance = instance != null ? instance : new V1IngressClassSpec(); @@ -31,51 +37,6 @@ protected void copyInstance(V1IngressClassSpec instance) { } } - public String getController() { - return this.controller; - } - - public A withController(String controller) { - this.controller = controller; - return (A) this; - } - - public boolean hasController() { - return this.controller != null; - } - - public V1IngressClassParametersReference buildParameters() { - return this.parameters != null ? this.parameters.build() : null; - } - - public A withParameters(V1IngressClassParametersReference parameters) { - this._visitables.remove("parameters"); - if (parameters != null) { - this.parameters = new V1IngressClassParametersReferenceBuilder(parameters); - this._visitables.get("parameters").add(this.parameters); - } else { - this.parameters = null; - this._visitables.get("parameters").remove(this.parameters); - } - return (A) this; - } - - public boolean hasParameters() { - return this.parameters != null; - } - - public ParametersNested withNewParameters() { - return new ParametersNested(null); - } - - public ParametersNested withNewParametersLike(V1IngressClassParametersReference item) { - return new ParametersNested(item); - } - - public ParametersNested editParameters() { - return this.withNewParametersLike(Optional.ofNullable(this.buildParameters()).orElse(null)); - } - public ParametersNested editOrNewParameters() { return this.withNewParametersLike(Optional.ofNullable(this.buildParameters()).orElse(new V1IngressClassParametersReferenceBuilder().build())); } @@ -84,6 +45,10 @@ public ParametersNested editOrNewParametersLike(V1IngressClassParametersRefer return this.withNewParametersLike(Optional.ofNullable(this.buildParameters()).orElse(item)); } + public ParametersNested editParameters() { + return this.withNewParametersLike(Optional.ofNullable(this.buildParameters()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -104,6 +69,18 @@ public boolean equals(Object o) { return true; } + public String getController() { + return this.controller; + } + + public boolean hasController() { + return this.controller != null; + } + + public boolean hasParameters() { + return this.parameters != null; + } + public int hashCode() { return Objects.hash(controller, parameters); } @@ -123,12 +100,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withController(String controller) { + this.controller = controller; + return (A) this; + } + + public ParametersNested withNewParameters() { + return new ParametersNested(null); + } + + public ParametersNested withNewParametersLike(V1IngressClassParametersReference item) { + return new ParametersNested(item); + } + + public A withParameters(V1IngressClassParametersReference parameters) { + this._visitables.remove("parameters"); + if (parameters != null) { + this.parameters = new V1IngressClassParametersReferenceBuilder(parameters); + this._visitables.get("parameters").add(this.parameters); + } else { + this.parameters = null; + this._visitables.get("parameters").remove(this.parameters); + } + return (A) this; + } public class ParametersNested extends V1IngressClassParametersReferenceFluent> implements Nested{ + + V1IngressClassParametersReferenceBuilder builder; + ParametersNested(V1IngressClassParametersReference item) { this.builder = new V1IngressClassParametersReferenceBuilder(this, item); } - V1IngressClassParametersReferenceBuilder builder; - + public N and() { return (N) V1IngressClassSpecFluent.this.withParameters(builder.build()); } @@ -137,7 +141,5 @@ public N endParameters() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java index ddf04cee33..123e2081b8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1IngressFluent> extends BaseFluent{ - public V1IngressFluent() { - } - - public V1IngressFluent(V1Ingress instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1IngressSpecBuilder spec; private V1IngressStatusBuilder status; - - protected void copyInstance(V1Ingress instance) { - instance = instance != null ? instance : new V1Ingress(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1IngressFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1IngressFluent(V1Ingress instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1IngressSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1IngressStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1Ingress instance) { + instance = instance != null ? instance : new V1Ingress(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1IngressSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1IngressSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1IngressSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1IngressSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1IngressSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1IngressSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1IngressStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1IngressStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1IngressStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1IngressStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1IngressStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1IngressStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1IngressStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1IngressStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1IngressSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1IngressStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1IngressSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1IngressSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1IngressStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1IngressStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1IngressFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1IngressSpecFluent> implements Nested{ + + V1IngressSpecBuilder builder; + SpecNested(V1IngressSpec item) { this.builder = new V1IngressSpecBuilder(this, item); } - V1IngressSpecBuilder builder; - + public N and() { return (N) V1IngressFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1IngressStatusFluent> implements Nested{ + + V1IngressStatusBuilder builder; + StatusNested(V1IngressStatus item) { this.builder = new V1IngressStatusBuilder(this, item); } - V1IngressStatusBuilder builder; - + public N and() { return (N) V1IngressFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java index 82798602da..18a13bcfcd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IngressListBuilder extends V1IngressListFluent implements VisitableBuilder{ + + V1IngressListFluent fluent; + public V1IngressListBuilder() { this(new V1IngressList()); } @@ -11,17 +14,16 @@ public V1IngressListBuilder(V1IngressListFluent fluent) { this(fluent, new V1IngressList()); } - public V1IngressListBuilder(V1IngressListFluent fluent,V1IngressList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressListBuilder(V1IngressList instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressListFluent fluent; + public V1IngressListBuilder(V1IngressListFluent fluent,V1IngressList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressList build() { V1IngressList buildable = new V1IngressList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1IngressList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java index 736f02c491..c381ea649f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1IngressListFluent> extends BaseFluent{ - public V1IngressListFluent() { - } - - public V1IngressListFluent(V1IngressList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1IngressList instance) { - instance = instance != null ? instance : new V1IngressList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1IngressListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1IngressListFluent(V1IngressList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1Ingress item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1IngressBuilder builder = new V1IngressBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1Ingress item : items) { + V1IngressBuilder builder = new V1IngressBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1Ingress item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1IngressBuilder builder = new V1IngressBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1Ingress item) { + return new ItemsNested(-1, item); } public A addToItems(V1Ingress... items) { @@ -96,68 +65,31 @@ public A addToItems(V1Ingress... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1Ingress item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1Ingress item : items) { - V1IngressBuilder builder = new V1IngressBuilder(item); + V1IngressBuilder builder = new V1IngressBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1Ingress... items) { - if (this.items == null) { - return (A) this; - } - for (V1Ingress item : items) { - V1IngressBuilder builder = new V1IngressBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1Ingress item : items) { - V1IngressBuilder builder = new V1IngressBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1IngressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1Ingress buildFirstItem() { + return this.items.get(0).build(); } public V1Ingress buildItem(int index) { return this.items.get(index).build(); } - public V1Ingress buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1Ingress buildLastItem() { @@ -173,73 +105,34 @@ public V1Ingress buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1IngressBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Ingress item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1IngressList instance) { + instance = instance != null ? instance : new V1IngressList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1Ingress... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1Ingress item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Ingress item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Ingress item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) { return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1IngressBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Ingress item : items) { + V1IngressBuilder builder = new V1IngressBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Ingress... items) { + if (this.items == null) { + return (A) this; + } + for (V1Ingress item : items) { + V1IngressBuilder builder = new V1IngressBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1IngressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Ingress item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1Ingress item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1IngressBuilder builder = new V1IngressBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1Ingress item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1Ingress... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1Ingress item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1IngressFluent> implements Nested{ + + V1IngressBuilder builder; + int index; + ItemsNested(int index,V1Ingress item) { this.index = index; this.builder = new V1IngressBuilder(this, item); } - V1IngressBuilder builder; - int index; - + public N and() { return (N) V1IngressListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1IngressListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressBuilder.java index fabe2ed94b..484c9a94b2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IngressLoadBalancerIngressBuilder extends V1IngressLoadBalancerIngressFluent implements VisitableBuilder{ + + V1IngressLoadBalancerIngressFluent fluent; + public V1IngressLoadBalancerIngressBuilder() { this(new V1IngressLoadBalancerIngress()); } @@ -11,17 +14,16 @@ public V1IngressLoadBalancerIngressBuilder(V1IngressLoadBalancerIngressFluent this(fluent, new V1IngressLoadBalancerIngress()); } - public V1IngressLoadBalancerIngressBuilder(V1IngressLoadBalancerIngressFluent fluent,V1IngressLoadBalancerIngress instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressLoadBalancerIngressBuilder(V1IngressLoadBalancerIngress instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressLoadBalancerIngressFluent fluent; + public V1IngressLoadBalancerIngressBuilder(V1IngressLoadBalancerIngressFluent fluent,V1IngressLoadBalancerIngress instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressLoadBalancerIngress build() { V1IngressLoadBalancerIngress buildable = new V1IngressLoadBalancerIngress(); buildable.setHostname(fluent.getHostname()); @@ -30,5 +32,4 @@ public V1IngressLoadBalancerIngress build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressFluent.java index 0632ce528f..87eefce5d0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressFluent.java @@ -1,97 +1,54 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1IngressLoadBalancerIngressFluent> extends BaseFluent{ - public V1IngressLoadBalancerIngressFluent() { - } - - public V1IngressLoadBalancerIngressFluent(V1IngressLoadBalancerIngress instance) { - this.copyInstance(instance); - } + private String hostname; private String ip; private ArrayList ports; - - protected void copyInstance(V1IngressLoadBalancerIngress instance) { - instance = instance != null ? instance : new V1IngressLoadBalancerIngress(); - if (instance != null) { - this.withHostname(instance.getHostname()); - this.withIp(instance.getIp()); - this.withPorts(instance.getPorts()); - } - } - - public String getHostname() { - return this.hostname; - } - - public A withHostname(String hostname) { - this.hostname = hostname; - return (A) this; - } - - public boolean hasHostname() { - return this.hostname != null; - } - - public String getIp() { - return this.ip; - } - - public A withIp(String ip) { - this.ip = ip; - return (A) this; + + public V1IngressLoadBalancerIngressFluent() { } - public boolean hasIp() { - return this.ip != null; + public V1IngressLoadBalancerIngressFluent(V1IngressLoadBalancerIngress instance) { + this.copyInstance(instance); } - - public A addToPorts(int index,V1IngressPortStatus item) { + + public A addAllToPorts(Collection items) { if (this.ports == null) { this.ports = new ArrayList(); } - V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); - } else { + for (V1IngressPortStatus item : items) { + V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); _visitables.get("ports").add(builder); - ports.add(index, builder); + this.ports.add(builder); } return (A) this; } - public A setToPorts(int index,V1IngressPortStatus item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); - } else { - _visitables.get("ports").add(builder); - ports.set(index, builder); - } - return (A) this; + public PortsNested addNewPort() { + return new PortsNested(-1, null); + } + + public PortsNested addNewPortLike(V1IngressPortStatus item) { + return new PortsNested(-1, item); } public A addToPorts(V1IngressPortStatus... items) { @@ -106,66 +63,21 @@ public A addToPorts(V1IngressPortStatus... items) { return (A) this; } - public A addAllToPorts(Collection items) { + public A addToPorts(int index,V1IngressPortStatus item) { if (this.ports == null) { this.ports = new ArrayList(); } - for (V1IngressPortStatus item : items) { - V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); + V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); + if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; - } - - public A removeFromPorts(V1IngressPortStatus... items) { - if (this.ports == null) { - return (A) this; - } - for (V1IngressPortStatus item : items) { - V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); - _visitables.get("ports").remove(builder); - this.ports.remove(builder); - } - return (A) this; - } - - public A removeAllFromPorts(Collection items) { - if (this.ports == null) { - return (A) this; - } - for (V1IngressPortStatus item : items) { - V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); - _visitables.get("ports").remove(builder); - this.ports.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) { - return (A) this; - } - Iterator each = ports.iterator(); - List visitables = _visitables.get("ports"); - while (each.hasNext()) { - V1IngressPortStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); } return (A) this; } - public List buildPorts() { - return this.ports != null ? build(ports) : null; - } - - public V1IngressPortStatus buildPort(int index) { - return this.ports.get(index).build(); - } - public V1IngressPortStatus buildFirstPort() { return this.ports.get(0).build(); } @@ -183,64 +95,21 @@ public V1IngressPortStatus buildMatchingPort(Predicate predicate) { - for (V1IngressPortStatusBuilder item : ports) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withPorts(List ports) { - if (this.ports != null) { - this._visitables.get("ports").clear(); - } - if (ports != null) { - this.ports = new ArrayList(); - for (V1IngressPortStatus item : ports) { - this.addToPorts(item); - } - } else { - this.ports = null; - } - return (A) this; - } - - public A withPorts(V1IngressPortStatus... ports) { - if (this.ports != null) { - this.ports.clear(); - _visitables.remove("ports"); - } - if (ports != null) { - for (V1IngressPortStatus item : ports) { - this.addToPorts(item); - } - } - return (A) this; - } - - public boolean hasPorts() { - return this.ports != null && !(this.ports.isEmpty()); - } - - public PortsNested addNewPort() { - return new PortsNested(-1, null); - } - - public PortsNested addNewPortLike(V1IngressPortStatus item) { - return new PortsNested(-1, item); + public V1IngressPortStatus buildPort(int index) { + return this.ports.get(index).build(); } - public PortsNested setNewPortLike(int index,V1IngressPortStatus item) { - return new PortsNested(index, item); + public List buildPorts() { + return this.ports != null ? build(ports) : null; } - public PortsNested editPort(int index) { - if (index <= ports.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + protected void copyInstance(V1IngressLoadBalancerIngress instance) { + instance = instance != null ? instance : new V1IngressLoadBalancerIngress(); + if (instance != null) { + this.withHostname(instance.getHostname()); + this.withIp(instance.getIp()); + this.withPorts(instance.getPorts()); } - return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editFirstPort() { @@ -272,6 +141,13 @@ public PortsNested editMatchingPort(Predicate pre return this.setNewPortLike(index, this.buildPort(index)); } + public PortsNested editPort(int index) { + if (ports.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -295,10 +171,98 @@ public boolean equals(Object o) { return true; } + public String getHostname() { + return this.hostname; + } + + public String getIp() { + return this.ip; + } + + public boolean hasHostname() { + return this.hostname != null; + } + + public boolean hasIp() { + return this.ip != null; + } + + public boolean hasMatchingPort(Predicate predicate) { + for (V1IngressPortStatusBuilder item : ports) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPorts() { + return this.ports != null && !(this.ports.isEmpty()); + } + public int hashCode() { return Objects.hash(hostname, ip, ports); } + public A removeAllFromPorts(Collection items) { + if (this.ports == null) { + return (A) this; + } + for (V1IngressPortStatus item : items) { + V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; + } + + public A removeFromPorts(V1IngressPortStatus... items) { + if (this.ports == null) { + return (A) this; + } + for (V1IngressPortStatus item : items) { + V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromPorts(Predicate predicate) { + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); + while (each.hasNext()) { + V1IngressPortStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public PortsNested setNewPortLike(int index,V1IngressPortStatus item) { + return new PortsNested(index, item); + } + + public A setToPorts(int index,V1IngressPortStatus item) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -319,14 +283,54 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withHostname(String hostname) { + this.hostname = hostname; + return (A) this; + } + + public A withIp(String ip) { + this.ip = ip; + return (A) this; + } + + public A withPorts(List ports) { + if (this.ports != null) { + this._visitables.get("ports").clear(); + } + if (ports != null) { + this.ports = new ArrayList(); + for (V1IngressPortStatus item : ports) { + this.addToPorts(item); + } + } else { + this.ports = null; + } + return (A) this; + } + + public A withPorts(V1IngressPortStatus... ports) { + if (this.ports != null) { + this.ports.clear(); + _visitables.remove("ports"); + } + if (ports != null) { + for (V1IngressPortStatus item : ports) { + this.addToPorts(item); + } + } + return (A) this; + } public class PortsNested extends V1IngressPortStatusFluent> implements Nested{ + + V1IngressPortStatusBuilder builder; + int index; + PortsNested(int index,V1IngressPortStatus item) { this.index = index; this.builder = new V1IngressPortStatusBuilder(this, item); } - V1IngressPortStatusBuilder builder; - int index; - + public N and() { return (N) V1IngressLoadBalancerIngressFluent.this.setToPorts(index, builder.build()); } @@ -335,7 +339,5 @@ public N endPort() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusBuilder.java index 1dbbe65e8e..5667d3d9e1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IngressLoadBalancerStatusBuilder extends V1IngressLoadBalancerStatusFluent implements VisitableBuilder{ + + V1IngressLoadBalancerStatusFluent fluent; + public V1IngressLoadBalancerStatusBuilder() { this(new V1IngressLoadBalancerStatus()); } @@ -11,22 +14,20 @@ public V1IngressLoadBalancerStatusBuilder(V1IngressLoadBalancerStatusFluent f this(fluent, new V1IngressLoadBalancerStatus()); } - public V1IngressLoadBalancerStatusBuilder(V1IngressLoadBalancerStatusFluent fluent,V1IngressLoadBalancerStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressLoadBalancerStatusBuilder(V1IngressLoadBalancerStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressLoadBalancerStatusFluent fluent; + public V1IngressLoadBalancerStatusBuilder(V1IngressLoadBalancerStatusFluent fluent,V1IngressLoadBalancerStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressLoadBalancerStatus build() { V1IngressLoadBalancerStatus buildable = new V1IngressLoadBalancerStatus(); buildable.setIngress(fluent.buildIngress()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusFluent.java index 25a12a6564..afea17f9d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusFluent.java @@ -1,67 +1,52 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1IngressLoadBalancerStatusFluent> extends BaseFluent{ + + private ArrayList ingress; + public V1IngressLoadBalancerStatusFluent() { } public V1IngressLoadBalancerStatusFluent(V1IngressLoadBalancerStatus instance) { this.copyInstance(instance); } - private ArrayList ingress; - - protected void copyInstance(V1IngressLoadBalancerStatus instance) { - instance = instance != null ? instance : new V1IngressLoadBalancerStatus(); - if (instance != null) { - this.withIngress(instance.getIngress()); - } - } - - public A addToIngress(int index,V1IngressLoadBalancerIngress item) { + + public A addAllToIngress(Collection items) { if (this.ingress == null) { this.ingress = new ArrayList(); } - V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); - if (index < 0 || index >= ingress.size()) { - _visitables.get("ingress").add(builder); - ingress.add(builder); - } else { + for (V1IngressLoadBalancerIngress item : items) { + V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); _visitables.get("ingress").add(builder); - ingress.add(index, builder); + this.ingress.add(builder); } return (A) this; } - public A setToIngress(int index,V1IngressLoadBalancerIngress item) { - if (this.ingress == null) { - this.ingress = new ArrayList(); - } - V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); - if (index < 0 || index >= ingress.size()) { - _visitables.get("ingress").add(builder); - ingress.add(builder); - } else { - _visitables.get("ingress").add(builder); - ingress.set(index, builder); - } - return (A) this; + public IngressNested addNewIngress() { + return new IngressNested(-1, null); + } + + public IngressNested addNewIngressLike(V1IngressLoadBalancerIngress item) { + return new IngressNested(-1, item); } public A addToIngress(V1IngressLoadBalancerIngress... items) { @@ -76,56 +61,23 @@ public A addToIngress(V1IngressLoadBalancerIngress... items) { return (A) this; } - public A addAllToIngress(Collection items) { + public A addToIngress(int index,V1IngressLoadBalancerIngress item) { if (this.ingress == null) { this.ingress = new ArrayList(); } - for (V1IngressLoadBalancerIngress item : items) { - V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); + V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); + if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); - this.ingress.add(builder); - } - return (A) this; - } - - public A removeFromIngress(V1IngressLoadBalancerIngress... items) { - if (this.ingress == null) { - return (A) this; - } - for (V1IngressLoadBalancerIngress item : items) { - V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); - _visitables.get("ingress").remove(builder); - this.ingress.remove(builder); - } - return (A) this; - } - - public A removeAllFromIngress(Collection items) { - if (this.ingress == null) { - return (A) this; - } - for (V1IngressLoadBalancerIngress item : items) { - V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); - _visitables.get("ingress").remove(builder); - this.ingress.remove(builder); + ingress.add(builder); + } else { + _visitables.get("ingress").add(builder); + ingress.add(index, builder); } return (A) this; } - public A removeMatchingFromIngress(Predicate predicate) { - if (ingress == null) { - return (A) this; - } - Iterator each = ingress.iterator(); - List visitables = _visitables.get("ingress"); - while (each.hasNext()) { - V1IngressLoadBalancerIngressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1IngressLoadBalancerIngress buildFirstIngress() { + return this.ingress.get(0).build(); } public List buildIngress() { @@ -136,10 +88,6 @@ public V1IngressLoadBalancerIngress buildIngress(int index) { return this.ingress.get(index).build(); } - public V1IngressLoadBalancerIngress buildFirstIngress() { - return this.ingress.get(0).build(); - } - public V1IngressLoadBalancerIngress buildLastIngress() { return this.ingress.get(ingress.size() - 1).build(); } @@ -153,73 +101,27 @@ public V1IngressLoadBalancerIngress buildMatchingIngress(Predicate predicate) { - for (V1IngressLoadBalancerIngressBuilder item : ingress) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withIngress(List ingress) { - if (this.ingress != null) { - this._visitables.get("ingress").clear(); - } - if (ingress != null) { - this.ingress = new ArrayList(); - for (V1IngressLoadBalancerIngress item : ingress) { - this.addToIngress(item); - } - } else { - this.ingress = null; + protected void copyInstance(V1IngressLoadBalancerStatus instance) { + instance = instance != null ? instance : new V1IngressLoadBalancerStatus(); + if (instance != null) { + this.withIngress(instance.getIngress()); } - return (A) this; } - public A withIngress(V1IngressLoadBalancerIngress... ingress) { - if (this.ingress != null) { - this.ingress.clear(); - _visitables.remove("ingress"); - } - if (ingress != null) { - for (V1IngressLoadBalancerIngress item : ingress) { - this.addToIngress(item); - } + public IngressNested editFirstIngress() { + if (ingress.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ingress")); } - return (A) this; - } - - public boolean hasIngress() { - return this.ingress != null && !(this.ingress.isEmpty()); - } - - public IngressNested addNewIngress() { - return new IngressNested(-1, null); - } - - public IngressNested addNewIngressLike(V1IngressLoadBalancerIngress item) { - return new IngressNested(-1, item); - } - - public IngressNested setNewIngressLike(int index,V1IngressLoadBalancerIngress item) { - return new IngressNested(index, item); + return this.setNewIngressLike(0, this.buildIngress(0)); } public IngressNested editIngress(int index) { - if (index <= ingress.size()) { + if (ingress.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ingress")); } return this.setNewIngressLike(index, this.buildIngress(index)); } - public IngressNested editFirstIngress() { - if (ingress.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ingress")); - } - return this.setNewIngressLike(0, this.buildIngress(0)); - } - public IngressNested editLastIngress() { int index = ingress.size() - 1; if (index < 0) { @@ -259,10 +161,82 @@ public boolean equals(Object o) { return true; } + public boolean hasIngress() { + return this.ingress != null && !(this.ingress.isEmpty()); + } + + public boolean hasMatchingIngress(Predicate predicate) { + for (V1IngressLoadBalancerIngressBuilder item : ingress) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(ingress); } + public A removeAllFromIngress(Collection items) { + if (this.ingress == null) { + return (A) this; + } + for (V1IngressLoadBalancerIngress item : items) { + V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); + _visitables.get("ingress").remove(builder); + this.ingress.remove(builder); + } + return (A) this; + } + + public A removeFromIngress(V1IngressLoadBalancerIngress... items) { + if (this.ingress == null) { + return (A) this; + } + for (V1IngressLoadBalancerIngress item : items) { + V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); + _visitables.get("ingress").remove(builder); + this.ingress.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromIngress(Predicate predicate) { + if (ingress == null) { + return (A) this; + } + Iterator each = ingress.iterator(); + List visitables = _visitables.get("ingress"); + while (each.hasNext()) { + V1IngressLoadBalancerIngressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public IngressNested setNewIngressLike(int index,V1IngressLoadBalancerIngress item) { + return new IngressNested(index, item); + } + + public A setToIngress(int index,V1IngressLoadBalancerIngress item) { + if (this.ingress == null) { + this.ingress = new ArrayList(); + } + V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); + if (index < 0 || index >= ingress.size()) { + _visitables.get("ingress").add(builder); + ingress.add(builder); + } else { + _visitables.get("ingress").add(builder); + ingress.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -273,14 +247,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withIngress(List ingress) { + if (this.ingress != null) { + this._visitables.get("ingress").clear(); + } + if (ingress != null) { + this.ingress = new ArrayList(); + for (V1IngressLoadBalancerIngress item : ingress) { + this.addToIngress(item); + } + } else { + this.ingress = null; + } + return (A) this; + } + + public A withIngress(V1IngressLoadBalancerIngress... ingress) { + if (this.ingress != null) { + this.ingress.clear(); + _visitables.remove("ingress"); + } + if (ingress != null) { + for (V1IngressLoadBalancerIngress item : ingress) { + this.addToIngress(item); + } + } + return (A) this; + } public class IngressNested extends V1IngressLoadBalancerIngressFluent> implements Nested{ + + V1IngressLoadBalancerIngressBuilder builder; + int index; + IngressNested(int index,V1IngressLoadBalancerIngress item) { this.index = index; this.builder = new V1IngressLoadBalancerIngressBuilder(this, item); } - V1IngressLoadBalancerIngressBuilder builder; - int index; - + public N and() { return (N) V1IngressLoadBalancerStatusFluent.this.setToIngress(index, builder.build()); } @@ -289,7 +293,5 @@ public N endIngress() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusBuilder.java index 4f12ab87f6..af9e3a6cb1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IngressPortStatusBuilder extends V1IngressPortStatusFluent implements VisitableBuilder{ + + V1IngressPortStatusFluent fluent; + public V1IngressPortStatusBuilder() { this(new V1IngressPortStatus()); } @@ -11,17 +14,16 @@ public V1IngressPortStatusBuilder(V1IngressPortStatusFluent fluent) { this(fluent, new V1IngressPortStatus()); } - public V1IngressPortStatusBuilder(V1IngressPortStatusFluent fluent,V1IngressPortStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressPortStatusBuilder(V1IngressPortStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressPortStatusFluent fluent; + public V1IngressPortStatusBuilder(V1IngressPortStatusFluent fluent,V1IngressPortStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressPortStatus build() { V1IngressPortStatus buildable = new V1IngressPortStatus(); buildable.setError(fluent.getError()); @@ -30,5 +32,4 @@ public V1IngressPortStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusFluent.java index 18d705cdd9..81b35b72a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1IngressPortStatusFluent> extends BaseFluent{ + + private String error; + private Integer port; + private String protocol; + public V1IngressPortStatusFluent() { } public V1IngressPortStatusFluent(V1IngressPortStatus instance) { this.copyInstance(instance); } - private String error; - private Integer port; - private String protocol; - + protected void copyInstance(V1IngressPortStatus instance) { instance = instance != null ? instance : new V1IngressPortStatus(); if (instance != null) { @@ -32,45 +34,6 @@ protected void copyInstance(V1IngressPortStatus instance) { } } - public String getError() { - return this.error; - } - - public A withError(String error) { - this.error = error; - return (A) this; - } - - public boolean hasError() { - return this.error != null; - } - - public Integer getPort() { - return this.port; - } - - public A withPort(Integer port) { - this.port = port; - return (A) this; - } - - public boolean hasPort() { - return this.port != null; - } - - public String getProtocol() { - return this.protocol; - } - - public A withProtocol(String protocol) { - this.protocol = protocol; - return (A) this; - } - - public boolean hasProtocol() { - return this.protocol != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -94,6 +57,30 @@ public boolean equals(Object o) { return true; } + public String getError() { + return this.error; + } + + public Integer getPort() { + return this.port; + } + + public String getProtocol() { + return this.protocol; + } + + public boolean hasError() { + return this.error != null; + } + + public boolean hasPort() { + return this.port != null; + } + + public boolean hasProtocol() { + return this.protocol != null; + } + public int hashCode() { return Objects.hash(error, port, protocol); } @@ -119,5 +106,19 @@ public String toString() { return sb.toString(); } - + public A withError(String error) { + this.error = error; + return (A) this; + } + + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + + public A withProtocol(String protocol) { + this.protocol = protocol; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java index 4fc5ff9578..73fbf64b15 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IngressRuleBuilder extends V1IngressRuleFluent implements VisitableBuilder{ + + V1IngressRuleFluent fluent; + public V1IngressRuleBuilder() { this(new V1IngressRule()); } @@ -11,17 +14,16 @@ public V1IngressRuleBuilder(V1IngressRuleFluent fluent) { this(fluent, new V1IngressRule()); } - public V1IngressRuleBuilder(V1IngressRuleFluent fluent,V1IngressRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressRuleBuilder(V1IngressRule instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressRuleFluent fluent; + public V1IngressRuleBuilder(V1IngressRuleFluent fluent,V1IngressRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressRule build() { V1IngressRule buildable = new V1IngressRule(); buildable.setHost(fluent.getHost()); @@ -29,5 +31,4 @@ public V1IngressRule build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java index 27aaba45de..d875bda639 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java @@ -1,27 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1IngressRuleFluent> extends BaseFluent{ + + private String host; + private V1HTTPIngressRuleValueBuilder http; + public V1IngressRuleFluent() { } public V1IngressRuleFluent(V1IngressRule instance) { this.copyInstance(instance); } - private String host; - private V1HTTPIngressRuleValueBuilder http; + + public V1HTTPIngressRuleValue buildHttp() { + return this.http != null ? this.http.build() : null; + } protected void copyInstance(V1IngressRule instance) { instance = instance != null ? instance : new V1IngressRule(); @@ -31,47 +37,6 @@ protected void copyInstance(V1IngressRule instance) { } } - public String getHost() { - return this.host; - } - - public A withHost(String host) { - this.host = host; - return (A) this; - } - - public boolean hasHost() { - return this.host != null; - } - - public V1HTTPIngressRuleValue buildHttp() { - return this.http != null ? this.http.build() : null; - } - - public A withHttp(V1HTTPIngressRuleValue http) { - this._visitables.remove("http"); - if (http != null) { - this.http = new V1HTTPIngressRuleValueBuilder(http); - this._visitables.get("http").add(this.http); - } else { - this.http = null; - this._visitables.get("http").remove(this.http); - } - return (A) this; - } - - public boolean hasHttp() { - return this.http != null; - } - - public HttpNested withNewHttp() { - return new HttpNested(null); - } - - public HttpNested withNewHttpLike(V1HTTPIngressRuleValue item) { - return new HttpNested(item); - } - public HttpNested editHttp() { return this.withNewHttpLike(Optional.ofNullable(this.buildHttp()).orElse(null)); } @@ -104,6 +69,18 @@ public boolean equals(Object o) { return true; } + public String getHost() { + return this.host; + } + + public boolean hasHost() { + return this.host != null; + } + + public boolean hasHttp() { + return this.http != null; + } + public int hashCode() { return Objects.hash(host, http); } @@ -123,12 +100,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withHost(String host) { + this.host = host; + return (A) this; + } + + public A withHttp(V1HTTPIngressRuleValue http) { + this._visitables.remove("http"); + if (http != null) { + this.http = new V1HTTPIngressRuleValueBuilder(http); + this._visitables.get("http").add(this.http); + } else { + this.http = null; + this._visitables.get("http").remove(this.http); + } + return (A) this; + } + + public HttpNested withNewHttp() { + return new HttpNested(null); + } + + public HttpNested withNewHttpLike(V1HTTPIngressRuleValue item) { + return new HttpNested(item); + } public class HttpNested extends V1HTTPIngressRuleValueFluent> implements Nested{ + + V1HTTPIngressRuleValueBuilder builder; + HttpNested(V1HTTPIngressRuleValue item) { this.builder = new V1HTTPIngressRuleValueBuilder(this, item); } - V1HTTPIngressRuleValueBuilder builder; - + public N and() { return (N) V1IngressRuleFluent.this.withHttp(builder.build()); } @@ -137,7 +141,5 @@ public N endHttp() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java index 83a1eaff72..4b8d41a30b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IngressServiceBackendBuilder extends V1IngressServiceBackendFluent implements VisitableBuilder{ + + V1IngressServiceBackendFluent fluent; + public V1IngressServiceBackendBuilder() { this(new V1IngressServiceBackend()); } @@ -11,17 +14,16 @@ public V1IngressServiceBackendBuilder(V1IngressServiceBackendFluent fluent) { this(fluent, new V1IngressServiceBackend()); } - public V1IngressServiceBackendBuilder(V1IngressServiceBackendFluent fluent,V1IngressServiceBackend instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressServiceBackendBuilder(V1IngressServiceBackend instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressServiceBackendFluent fluent; + public V1IngressServiceBackendBuilder(V1IngressServiceBackendFluent fluent,V1IngressServiceBackend instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressServiceBackend build() { V1IngressServiceBackend buildable = new V1IngressServiceBackend(); buildable.setName(fluent.getName()); @@ -29,5 +31,4 @@ public V1IngressServiceBackend build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java index 3dc0e775c7..b38ffc74b4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java @@ -1,27 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1IngressServiceBackendFluent> extends BaseFluent{ + + private String name; + private V1ServiceBackendPortBuilder port; + public V1IngressServiceBackendFluent() { } public V1IngressServiceBackendFluent(V1IngressServiceBackend instance) { this.copyInstance(instance); } - private String name; - private V1ServiceBackendPortBuilder port; + + public V1ServiceBackendPort buildPort() { + return this.port != null ? this.port.build() : null; + } protected void copyInstance(V1IngressServiceBackend instance) { instance = instance != null ? instance : new V1IngressServiceBackend(); @@ -31,51 +37,6 @@ protected void copyInstance(V1IngressServiceBackend instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public V1ServiceBackendPort buildPort() { - return this.port != null ? this.port.build() : null; - } - - public A withPort(V1ServiceBackendPort port) { - this._visitables.remove("port"); - if (port != null) { - this.port = new V1ServiceBackendPortBuilder(port); - this._visitables.get("port").add(this.port); - } else { - this.port = null; - this._visitables.get("port").remove(this.port); - } - return (A) this; - } - - public boolean hasPort() { - return this.port != null; - } - - public PortNested withNewPort() { - return new PortNested(null); - } - - public PortNested withNewPortLike(V1ServiceBackendPort item) { - return new PortNested(item); - } - - public PortNested editPort() { - return this.withNewPortLike(Optional.ofNullable(this.buildPort()).orElse(null)); - } - public PortNested editOrNewPort() { return this.withNewPortLike(Optional.ofNullable(this.buildPort()).orElse(new V1ServiceBackendPortBuilder().build())); } @@ -84,6 +45,10 @@ public PortNested editOrNewPortLike(V1ServiceBackendPort item) { return this.withNewPortLike(Optional.ofNullable(this.buildPort()).orElse(item)); } + public PortNested editPort() { + return this.withNewPortLike(Optional.ofNullable(this.buildPort()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -104,6 +69,18 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasPort() { + return this.port != null; + } + public int hashCode() { return Objects.hash(name, port); } @@ -123,12 +100,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public PortNested withNewPort() { + return new PortNested(null); + } + + public PortNested withNewPortLike(V1ServiceBackendPort item) { + return new PortNested(item); + } + + public A withPort(V1ServiceBackendPort port) { + this._visitables.remove("port"); + if (port != null) { + this.port = new V1ServiceBackendPortBuilder(port); + this._visitables.get("port").add(this.port); + } else { + this.port = null; + this._visitables.get("port").remove(this.port); + } + return (A) this; + } public class PortNested extends V1ServiceBackendPortFluent> implements Nested{ + + V1ServiceBackendPortBuilder builder; + PortNested(V1ServiceBackendPort item) { this.builder = new V1ServiceBackendPortBuilder(this, item); } - V1ServiceBackendPortBuilder builder; - + public N and() { return (N) V1IngressServiceBackendFluent.this.withPort(builder.build()); } @@ -137,7 +141,5 @@ public N endPort() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java index be2a994d7c..3b546f453c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IngressSpecBuilder extends V1IngressSpecFluent implements VisitableBuilder{ + + V1IngressSpecFluent fluent; + public V1IngressSpecBuilder() { this(new V1IngressSpec()); } @@ -11,17 +14,16 @@ public V1IngressSpecBuilder(V1IngressSpecFluent fluent) { this(fluent, new V1IngressSpec()); } - public V1IngressSpecBuilder(V1IngressSpecFluent fluent,V1IngressSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressSpecBuilder(V1IngressSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressSpecFluent fluent; + public V1IngressSpecBuilder(V1IngressSpecFluent fluent,V1IngressSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressSpec build() { V1IngressSpec buildable = new V1IngressSpec(); buildable.setDefaultBackend(fluent.buildDefaultBackend()); @@ -31,5 +33,4 @@ public V1IngressSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java index aa399fd4b5..645714121e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java @@ -1,115 +1,91 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1IngressSpecFluent> extends BaseFluent{ - public V1IngressSpecFluent() { - } - - public V1IngressSpecFluent(V1IngressSpec instance) { - this.copyInstance(instance); - } + private V1IngressBackendBuilder defaultBackend; private String ingressClassName; private ArrayList rules; private ArrayList tls; - - protected void copyInstance(V1IngressSpec instance) { - instance = instance != null ? instance : new V1IngressSpec(); - if (instance != null) { - this.withDefaultBackend(instance.getDefaultBackend()); - this.withIngressClassName(instance.getIngressClassName()); - this.withRules(instance.getRules()); - this.withTls(instance.getTls()); - } + + public V1IngressSpecFluent() { } - public V1IngressBackend buildDefaultBackend() { - return this.defaultBackend != null ? this.defaultBackend.build() : null; + public V1IngressSpecFluent(V1IngressSpec instance) { + this.copyInstance(instance); } - - public A withDefaultBackend(V1IngressBackend defaultBackend) { - this._visitables.remove("defaultBackend"); - if (defaultBackend != null) { - this.defaultBackend = new V1IngressBackendBuilder(defaultBackend); - this._visitables.get("defaultBackend").add(this.defaultBackend); - } else { - this.defaultBackend = null; - this._visitables.get("defaultBackend").remove(this.defaultBackend); + + public A addAllToRules(Collection items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1IngressRule item : items) { + V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); } return (A) this; } - public boolean hasDefaultBackend() { - return this.defaultBackend != null; - } - - public DefaultBackendNested withNewDefaultBackend() { - return new DefaultBackendNested(null); - } - - public DefaultBackendNested withNewDefaultBackendLike(V1IngressBackend item) { - return new DefaultBackendNested(item); - } - - public DefaultBackendNested editDefaultBackend() { - return this.withNewDefaultBackendLike(Optional.ofNullable(this.buildDefaultBackend()).orElse(null)); - } - - public DefaultBackendNested editOrNewDefaultBackend() { - return this.withNewDefaultBackendLike(Optional.ofNullable(this.buildDefaultBackend()).orElse(new V1IngressBackendBuilder().build())); + public A addAllToTls(Collection items) { + if (this.tls == null) { + this.tls = new ArrayList(); + } + for (V1IngressTLS item : items) { + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); + _visitables.get("tls").add(builder); + this.tls.add(builder); + } + return (A) this; } - public DefaultBackendNested editOrNewDefaultBackendLike(V1IngressBackend item) { - return this.withNewDefaultBackendLike(Optional.ofNullable(this.buildDefaultBackend()).orElse(item)); + public RulesNested addNewRule() { + return new RulesNested(-1, null); } - public String getIngressClassName() { - return this.ingressClassName; + public RulesNested addNewRuleLike(V1IngressRule item) { + return new RulesNested(-1, item); } - public A withIngressClassName(String ingressClassName) { - this.ingressClassName = ingressClassName; - return (A) this; + public TlsNested addNewTl() { + return new TlsNested(-1, null); } - public boolean hasIngressClassName() { - return this.ingressClassName != null; + public TlsNested addNewTlLike(V1IngressTLS item) { + return new TlsNested(-1, item); } - public A addToRules(int index,V1IngressRule item) { + public A addToRules(V1IngressRule... items) { if (this.rules == null) { this.rules = new ArrayList(); } - V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); - } else { + for (V1IngressRule item : items) { + V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); _visitables.get("rules").add(builder); - rules.add(index, builder); + this.rules.add(builder); } return (A) this; } - public A setToRules(int index,V1IngressRule item) { + public A addToRules(int index,V1IngressRule item) { if (this.rules == null) { this.rules = new ArrayList(); } @@ -119,91 +95,58 @@ public A setToRules(int index,V1IngressRule item) { rules.add(builder); } else { _visitables.get("rules").add(builder); - rules.set(index, builder); - } - return (A) this; - } - - public A addToRules(V1IngressRule... items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1IngressRule item : items) { - V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; - } - - public A addAllToRules(Collection items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1IngressRule item : items) { - V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; - } - - public A removeFromRules(V1IngressRule... items) { - if (this.rules == null) { - return (A) this; - } - for (V1IngressRule item : items) { - V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - _visitables.get("rules").remove(builder); - this.rules.remove(builder); + rules.add(index, builder); } return (A) this; } - public A removeAllFromRules(Collection items) { - if (this.rules == null) { - return (A) this; + public A addToTls(V1IngressTLS... items) { + if (this.tls == null) { + this.tls = new ArrayList(); } - for (V1IngressRule item : items) { - V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - _visitables.get("rules").remove(builder); - this.rules.remove(builder); + for (V1IngressTLS item : items) { + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); + _visitables.get("tls").add(builder); + this.tls.add(builder); } return (A) this; } - public A removeMatchingFromRules(Predicate predicate) { - if (rules == null) { - return (A) this; + public A addToTls(int index,V1IngressTLS item) { + if (this.tls == null) { + this.tls = new ArrayList(); } - Iterator each = rules.iterator(); - List visitables = _visitables.get("rules"); - while (each.hasNext()) { - V1IngressRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); + if (index < 0 || index >= tls.size()) { + _visitables.get("tls").add(builder); + tls.add(builder); + } else { + _visitables.get("tls").add(builder); + tls.add(index, builder); } return (A) this; } - public List buildRules() { - return this.rules != null ? build(rules) : null; - } - - public V1IngressRule buildRule(int index) { - return this.rules.get(index).build(); + public V1IngressBackend buildDefaultBackend() { + return this.defaultBackend != null ? this.defaultBackend.build() : null; } public V1IngressRule buildFirstRule() { return this.rules.get(0).build(); } + public V1IngressTLS buildFirstTl() { + return this.tls.get(0).build(); + } + public V1IngressRule buildLastRule() { return this.rules.get(rules.size() - 1).build(); } + public V1IngressTLS buildLastTl() { + return this.tls.get(tls.size() - 1).build(); + } + public V1IngressRule buildMatchingRule(Predicate predicate) { for (V1IngressRuleBuilder item : rules) { if (predicate.test(item)) { @@ -213,64 +156,43 @@ public V1IngressRule buildMatchingRule(Predicate predicate return null; } - public boolean hasMatchingRule(Predicate predicate) { - for (V1IngressRuleBuilder item : rules) { + public V1IngressTLS buildMatchingTl(Predicate predicate) { + for (V1IngressTLSBuilder item : tls) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; - } - - public A withRules(List rules) { - if (this.rules != null) { - this._visitables.get("rules").clear(); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1IngressRule item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; - } - return (A) this; + return null; } - public A withRules(V1IngressRule... rules) { - if (this.rules != null) { - this.rules.clear(); - _visitables.remove("rules"); - } - if (rules != null) { - for (V1IngressRule item : rules) { - this.addToRules(item); - } - } - return (A) this; + public V1IngressRule buildRule(int index) { + return this.rules.get(index).build(); } - public boolean hasRules() { - return this.rules != null && !(this.rules.isEmpty()); + public List buildRules() { + return this.rules != null ? build(rules) : null; } - public RulesNested addNewRule() { - return new RulesNested(-1, null); + public V1IngressTLS buildTl(int index) { + return this.tls.get(index).build(); } - public RulesNested addNewRuleLike(V1IngressRule item) { - return new RulesNested(-1, item); + public List buildTls() { + return this.tls != null ? build(tls) : null; } - public RulesNested setNewRuleLike(int index,V1IngressRule item) { - return new RulesNested(index, item); + protected void copyInstance(V1IngressSpec instance) { + instance = instance != null ? instance : new V1IngressSpec(); + if (instance != null) { + this.withDefaultBackend(instance.getDefaultBackend()); + this.withIngressClassName(instance.getIngressClassName()); + this.withRules(instance.getRules()); + this.withTls(instance.getTls()); + } } - public RulesNested editRule(int index) { - if (index <= rules.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); - } - return this.setNewRuleLike(index, this.buildRule(index)); + public DefaultBackendNested editDefaultBackend() { + return this.withNewDefaultBackendLike(Optional.ofNullable(this.buildDefaultBackend()).orElse(null)); } public RulesNested editFirstRule() { @@ -280,6 +202,13 @@ public RulesNested editFirstRule() { return this.setNewRuleLike(0, this.buildRule(0)); } + public TlsNested editFirstTl() { + if (tls.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tls")); + } + return this.setNewTlLike(0, this.buildTl(0)); + } + public RulesNested editLastRule() { int index = rules.size() - 1; if (index < 0) { @@ -288,6 +217,14 @@ public RulesNested editLastRule() { return this.setNewRuleLike(index, this.buildRule(index)); } + public TlsNested editLastTl() { + int index = tls.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tls")); + } + return this.setNewTlLike(index, this.buildTl(index)); + } + public RulesNested editMatchingRule(Predicate predicate) { int index = -1; for (int i = 0;i < rules.size();i++) { @@ -302,56 +239,142 @@ public RulesNested editMatchingRule(Predicate predicate return this.setNewRuleLike(index, this.buildRule(index)); } - public A addToTls(int index,V1IngressTLS item) { - if (this.tls == null) { - this.tls = new ArrayList(); + public TlsNested editMatchingTl(Predicate predicate) { + int index = -1; + for (int i = 0;i < tls.size();i++) { + if (predicate.test(tls.get(i))) { + index = i; + break; + } } - V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - if (index < 0 || index >= tls.size()) { - _visitables.get("tls").add(builder); - tls.add(builder); - } else { - _visitables.get("tls").add(builder); - tls.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tls")); } - return (A) this; + return this.setNewTlLike(index, this.buildTl(index)); } - public A setToTls(int index,V1IngressTLS item) { - if (this.tls == null) { - this.tls = new ArrayList(); + public DefaultBackendNested editOrNewDefaultBackend() { + return this.withNewDefaultBackendLike(Optional.ofNullable(this.buildDefaultBackend()).orElse(new V1IngressBackendBuilder().build())); + } + + public DefaultBackendNested editOrNewDefaultBackendLike(V1IngressBackend item) { + return this.withNewDefaultBackendLike(Optional.ofNullable(this.buildDefaultBackend()).orElse(item)); + } + + public RulesNested editRule(int index) { + if (rules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); } - V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - if (index < 0 || index >= tls.size()) { - _visitables.get("tls").add(builder); - tls.add(builder); - } else { - _visitables.get("tls").add(builder); - tls.set(index, builder); + return this.setNewRuleLike(index, this.buildRule(index)); + } + + public TlsNested editTl(int index) { + if (tls.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tls")); + } + return this.setNewTlLike(index, this.buildTl(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IngressSpecFluent that = (V1IngressSpecFluent) o; + if (!(Objects.equals(defaultBackend, that.defaultBackend))) { + return false; + } + if (!(Objects.equals(ingressClassName, that.ingressClassName))) { + return false; + } + if (!(Objects.equals(rules, that.rules))) { + return false; + } + if (!(Objects.equals(tls, that.tls))) { + return false; + } + return true; + } + + public String getIngressClassName() { + return this.ingressClassName; + } + + public boolean hasDefaultBackend() { + return this.defaultBackend != null; + } + + public boolean hasIngressClassName() { + return this.ingressClassName != null; + } + + public boolean hasMatchingRule(Predicate predicate) { + for (V1IngressRuleBuilder item : rules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingTl(Predicate predicate) { + for (V1IngressTLSBuilder item : tls) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRules() { + return this.rules != null && !(this.rules.isEmpty()); + } + + public boolean hasTls() { + return this.tls != null && !(this.tls.isEmpty()); + } + + public int hashCode() { + return Objects.hash(defaultBackend, ingressClassName, rules, tls); + } + + public A removeAllFromRules(Collection items) { + if (this.rules == null) { + return (A) this; + } + for (V1IngressRule item : items) { + V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); } return (A) this; } - public A addToTls(V1IngressTLS... items) { + public A removeAllFromTls(Collection items) { if (this.tls == null) { - this.tls = new ArrayList(); + return (A) this; } for (V1IngressTLS item : items) { V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - _visitables.get("tls").add(builder); - this.tls.add(builder); + _visitables.get("tls").remove(builder); + this.tls.remove(builder); } return (A) this; } - public A addAllToTls(Collection items) { - if (this.tls == null) { - this.tls = new ArrayList(); + public A removeFromRules(V1IngressRule... items) { + if (this.rules == null) { + return (A) this; } - for (V1IngressTLS item : items) { - V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - _visitables.get("tls").add(builder); - this.tls.add(builder); + for (V1IngressRule item : items) { + V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); } return (A) this; } @@ -368,14 +391,18 @@ public A removeFromTls(V1IngressTLS... items) { return (A) this; } - public A removeAllFromTls(Collection items) { - if (this.tls == null) { + public A removeMatchingFromRules(Predicate predicate) { + if (rules == null) { return (A) this; } - for (V1IngressTLS item : items) { - V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - _visitables.get("tls").remove(builder); - this.tls.remove(builder); + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); + while (each.hasNext()) { + V1IngressRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -396,38 +423,121 @@ public A removeMatchingFromTls(Predicate predicate) { return (A) this; } - public List buildTls() { - return this.tls != null ? build(tls) : null; + public RulesNested setNewRuleLike(int index,V1IngressRule item) { + return new RulesNested(index, item); } - public V1IngressTLS buildTl(int index) { - return this.tls.get(index).build(); + public TlsNested setNewTlLike(int index,V1IngressTLS item) { + return new TlsNested(index, item); } - public V1IngressTLS buildFirstTl() { - return this.tls.get(0).build(); + public A setToRules(int index,V1IngressRule item) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } + return (A) this; } - public V1IngressTLS buildLastTl() { - return this.tls.get(tls.size() - 1).build(); + public A setToTls(int index,V1IngressTLS item) { + if (this.tls == null) { + this.tls = new ArrayList(); + } + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); + if (index < 0 || index >= tls.size()) { + _visitables.get("tls").add(builder); + tls.add(builder); + } else { + _visitables.get("tls").add(builder); + tls.set(index, builder); + } + return (A) this; } - public V1IngressTLS buildMatchingTl(Predicate predicate) { - for (V1IngressTLSBuilder item : tls) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(defaultBackend == null)) { + sb.append("defaultBackend:"); + sb.append(defaultBackend); + sb.append(","); + } + if (!(ingressClassName == null)) { + sb.append("ingressClassName:"); + sb.append(ingressClassName); + sb.append(","); + } + if (!(rules == null) && !(rules.isEmpty())) { + sb.append("rules:"); + sb.append(rules); + sb.append(","); + } + if (!(tls == null) && !(tls.isEmpty())) { + sb.append("tls:"); + sb.append(tls); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingTl(Predicate predicate) { - for (V1IngressTLSBuilder item : tls) { - if (predicate.test(item)) { - return true; + public A withDefaultBackend(V1IngressBackend defaultBackend) { + this._visitables.remove("defaultBackend"); + if (defaultBackend != null) { + this.defaultBackend = new V1IngressBackendBuilder(defaultBackend); + this._visitables.get("defaultBackend").add(this.defaultBackend); + } else { + this.defaultBackend = null; + this._visitables.get("defaultBackend").remove(this.defaultBackend); + } + return (A) this; + } + + public A withIngressClassName(String ingressClassName) { + this.ingressClassName = ingressClassName; + return (A) this; + } + + public DefaultBackendNested withNewDefaultBackend() { + return new DefaultBackendNested(null); + } + + public DefaultBackendNested withNewDefaultBackendLike(V1IngressBackend item) { + return new DefaultBackendNested(item); + } + + public A withRules(List rules) { + if (this.rules != null) { + this._visitables.get("rules").clear(); + } + if (rules != null) { + this.rules = new ArrayList(); + for (V1IngressRule item : rules) { + this.addToRules(item); } + } else { + this.rules = null; + } + return (A) this; + } + + public A withRules(V1IngressRule... rules) { + if (this.rules != null) { + this.rules.clear(); + _visitables.remove("rules"); + } + if (rules != null) { + for (V1IngressRule item : rules) { + this.addToRules(item); } - return false; + } + return (A) this; } public A withTls(List tls) { @@ -457,120 +567,14 @@ public A withTls(V1IngressTLS... tls) { } return (A) this; } + public class DefaultBackendNested extends V1IngressBackendFluent> implements Nested{ - public boolean hasTls() { - return this.tls != null && !(this.tls.isEmpty()); - } - - public TlsNested addNewTl() { - return new TlsNested(-1, null); - } - - public TlsNested addNewTlLike(V1IngressTLS item) { - return new TlsNested(-1, item); - } - - public TlsNested setNewTlLike(int index,V1IngressTLS item) { - return new TlsNested(index, item); - } - - public TlsNested editTl(int index) { - if (index <= tls.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tls")); - } - return this.setNewTlLike(index, this.buildTl(index)); - } - - public TlsNested editFirstTl() { - if (tls.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tls")); - } - return this.setNewTlLike(0, this.buildTl(0)); - } - - public TlsNested editLastTl() { - int index = tls.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tls")); - } - return this.setNewTlLike(index, this.buildTl(index)); - } - - public TlsNested editMatchingTl(Predicate predicate) { - int index = -1; - for (int i = 0;i < tls.size();i++) { - if (predicate.test(tls.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tls")); - } - return this.setNewTlLike(index, this.buildTl(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1IngressSpecFluent that = (V1IngressSpecFluent) o; - if (!(Objects.equals(defaultBackend, that.defaultBackend))) { - return false; - } - if (!(Objects.equals(ingressClassName, that.ingressClassName))) { - return false; - } - if (!(Objects.equals(rules, that.rules))) { - return false; - } - if (!(Objects.equals(tls, that.tls))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(defaultBackend, ingressClassName, rules, tls); - } + V1IngressBackendBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(defaultBackend == null)) { - sb.append("defaultBackend:"); - sb.append(defaultBackend); - sb.append(","); - } - if (!(ingressClassName == null)) { - sb.append("ingressClassName:"); - sb.append(ingressClassName); - sb.append(","); - } - if (!(rules == null) && !(rules.isEmpty())) { - sb.append("rules:"); - sb.append(rules); - sb.append(","); - } - if (!(tls == null) && !(tls.isEmpty())) { - sb.append("tls:"); - sb.append(tls); - } - sb.append("}"); - return sb.toString(); - } - public class DefaultBackendNested extends V1IngressBackendFluent> implements Nested{ DefaultBackendNested(V1IngressBackend item) { this.builder = new V1IngressBackendBuilder(this, item); } - V1IngressBackendBuilder builder; - + public N and() { return (N) V1IngressSpecFluent.this.withDefaultBackend(builder.build()); } @@ -579,16 +583,17 @@ public N endDefaultBackend() { return and(); } - } public class RulesNested extends V1IngressRuleFluent> implements Nested{ + + V1IngressRuleBuilder builder; + int index; + RulesNested(int index,V1IngressRule item) { this.index = index; this.builder = new V1IngressRuleBuilder(this, item); } - V1IngressRuleBuilder builder; - int index; - + public N and() { return (N) V1IngressSpecFluent.this.setToRules(index, builder.build()); } @@ -597,16 +602,17 @@ public N endRule() { return and(); } - } public class TlsNested extends V1IngressTLSFluent> implements Nested{ + + V1IngressTLSBuilder builder; + int index; + TlsNested(int index,V1IngressTLS item) { this.index = index; this.builder = new V1IngressTLSBuilder(this, item); } - V1IngressTLSBuilder builder; - int index; - + public N and() { return (N) V1IngressSpecFluent.this.setToTls(index, builder.build()); } @@ -615,7 +621,5 @@ public N endTl() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java index c1b7cabba2..c507e7af18 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IngressStatusBuilder extends V1IngressStatusFluent implements VisitableBuilder{ + + V1IngressStatusFluent fluent; + public V1IngressStatusBuilder() { this(new V1IngressStatus()); } @@ -11,22 +14,20 @@ public V1IngressStatusBuilder(V1IngressStatusFluent fluent) { this(fluent, new V1IngressStatus()); } - public V1IngressStatusBuilder(V1IngressStatusFluent fluent,V1IngressStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressStatusBuilder(V1IngressStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressStatusFluent fluent; + public V1IngressStatusBuilder(V1IngressStatusFluent fluent,V1IngressStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressStatus build() { V1IngressStatus buildable = new V1IngressStatus(); buildable.setLoadBalancer(fluent.buildLoadBalancer()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java index 76c8ae2a4b..5c1c732097 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1IngressStatusFluent> extends BaseFluent{ + + private V1IngressLoadBalancerStatusBuilder loadBalancer; + public V1IngressStatusFluent() { } public V1IngressStatusFluent(V1IngressStatus instance) { this.copyInstance(instance); } - private V1IngressLoadBalancerStatusBuilder loadBalancer; + + public V1IngressLoadBalancerStatus buildLoadBalancer() { + return this.loadBalancer != null ? this.loadBalancer.build() : null; + } protected void copyInstance(V1IngressStatus instance) { instance = instance != null ? instance : new V1IngressStatus(); @@ -29,34 +35,6 @@ protected void copyInstance(V1IngressStatus instance) { } } - public V1IngressLoadBalancerStatus buildLoadBalancer() { - return this.loadBalancer != null ? this.loadBalancer.build() : null; - } - - public A withLoadBalancer(V1IngressLoadBalancerStatus loadBalancer) { - this._visitables.remove("loadBalancer"); - if (loadBalancer != null) { - this.loadBalancer = new V1IngressLoadBalancerStatusBuilder(loadBalancer); - this._visitables.get("loadBalancer").add(this.loadBalancer); - } else { - this.loadBalancer = null; - this._visitables.get("loadBalancer").remove(this.loadBalancer); - } - return (A) this; - } - - public boolean hasLoadBalancer() { - return this.loadBalancer != null; - } - - public LoadBalancerNested withNewLoadBalancer() { - return new LoadBalancerNested(null); - } - - public LoadBalancerNested withNewLoadBalancerLike(V1IngressLoadBalancerStatus item) { - return new LoadBalancerNested(item); - } - public LoadBalancerNested editLoadBalancer() { return this.withNewLoadBalancerLike(Optional.ofNullable(this.buildLoadBalancer()).orElse(null)); } @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasLoadBalancer() { + return this.loadBalancer != null; + } + public int hashCode() { return Objects.hash(loadBalancer); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withLoadBalancer(V1IngressLoadBalancerStatus loadBalancer) { + this._visitables.remove("loadBalancer"); + if (loadBalancer != null) { + this.loadBalancer = new V1IngressLoadBalancerStatusBuilder(loadBalancer); + this._visitables.get("loadBalancer").add(this.loadBalancer); + } else { + this.loadBalancer = null; + this._visitables.get("loadBalancer").remove(this.loadBalancer); + } + return (A) this; + } + + public LoadBalancerNested withNewLoadBalancer() { + return new LoadBalancerNested(null); + } + + public LoadBalancerNested withNewLoadBalancerLike(V1IngressLoadBalancerStatus item) { + return new LoadBalancerNested(item); + } public class LoadBalancerNested extends V1IngressLoadBalancerStatusFluent> implements Nested{ + + V1IngressLoadBalancerStatusBuilder builder; + LoadBalancerNested(V1IngressLoadBalancerStatus item) { this.builder = new V1IngressLoadBalancerStatusBuilder(this, item); } - V1IngressLoadBalancerStatusBuilder builder; - + public N and() { return (N) V1IngressStatusFluent.this.withLoadBalancer(builder.build()); } @@ -114,7 +118,5 @@ public N endLoadBalancer() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java index d685a491dc..761741aa6f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1IngressTLSBuilder extends V1IngressTLSFluent implements VisitableBuilder{ + + V1IngressTLSFluent fluent; + public V1IngressTLSBuilder() { this(new V1IngressTLS()); } @@ -11,17 +14,16 @@ public V1IngressTLSBuilder(V1IngressTLSFluent fluent) { this(fluent, new V1IngressTLS()); } - public V1IngressTLSBuilder(V1IngressTLSFluent fluent,V1IngressTLS instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressTLSBuilder(V1IngressTLS instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressTLSFluent fluent; + public V1IngressTLSBuilder(V1IngressTLSFluent fluent,V1IngressTLS instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressTLS build() { V1IngressTLS buildable = new V1IngressTLS(); buildable.setHosts(fluent.getHosts()); @@ -29,5 +31,4 @@ public V1IngressTLS build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java index d5e590ac24..c4af0060cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,36 +16,24 @@ */ @SuppressWarnings("unchecked") public class V1IngressTLSFluent> extends BaseFluent{ + + private List hosts; + private String secretName; + public V1IngressTLSFluent() { } public V1IngressTLSFluent(V1IngressTLS instance) { this.copyInstance(instance); } - private List hosts; - private String secretName; - - protected void copyInstance(V1IngressTLS instance) { - instance = instance != null ? instance : new V1IngressTLS(); - if (instance != null) { - this.withHosts(instance.getHosts()); - this.withSecretName(instance.getSecretName()); - } - } - - public A addToHosts(int index,String item) { + + public A addAllToHosts(Collection items) { if (this.hosts == null) { this.hosts = new ArrayList(); } - this.hosts.add(index, item); - return (A) this; - } - - public A setToHosts(int index,String item) { - if (this.hosts == null) { - this.hosts = new ArrayList(); + for (String item : items) { + this.hosts.add(item); } - this.hosts.set(index, item); return (A) this; } @@ -59,46 +47,52 @@ public A addToHosts(String... items) { return (A) this; } - public A addAllToHosts(Collection items) { + public A addToHosts(int index,String item) { if (this.hosts == null) { this.hosts = new ArrayList(); } - for (String item : items) { - this.hosts.add(item); - } + this.hosts.add(index, item); return (A) this; } - public A removeFromHosts(String... items) { - if (this.hosts == null) { - return (A) this; - } - for (String item : items) { - this.hosts.remove(item); + protected void copyInstance(V1IngressTLS instance) { + instance = instance != null ? instance : new V1IngressTLS(); + if (instance != null) { + this.withHosts(instance.getHosts()); + this.withSecretName(instance.getSecretName()); } - return (A) this; } - public A removeAllFromHosts(Collection items) { - if (this.hosts == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.hosts.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1IngressTLSFluent that = (V1IngressTLSFluent) o; + if (!(Objects.equals(hosts, that.hosts))) { + return false; + } + if (!(Objects.equals(secretName, that.secretName))) { + return false; + } + return true; } - public List getHosts() { - return this.hosts; + public String getFirstHost() { + return this.hosts.get(0); } public String getHost(int index) { return this.hosts.get(index); } - public String getFirstHost() { - return this.hosts.get(0); + public List getHosts() { + return this.hosts; } public String getLastHost() { @@ -114,6 +108,14 @@ public String getMatchingHost(Predicate predicate) { return null; } + public String getSecretName() { + return this.secretName; + } + + public boolean hasHosts() { + return this.hosts != null && !(this.hosts.isEmpty()); + } + public boolean hasMatchingHost(Predicate predicate) { for (String item : hosts) { if (predicate.test(item)) { @@ -123,6 +125,58 @@ public boolean hasMatchingHost(Predicate predicate) { return false; } + public boolean hasSecretName() { + return this.secretName != null; + } + + public int hashCode() { + return Objects.hash(hosts, secretName); + } + + public A removeAllFromHosts(Collection items) { + if (this.hosts == null) { + return (A) this; + } + for (String item : items) { + this.hosts.remove(item); + } + return (A) this; + } + + public A removeFromHosts(String... items) { + if (this.hosts == null) { + return (A) this; + } + for (String item : items) { + this.hosts.remove(item); + } + return (A) this; + } + + public A setToHosts(int index,String item) { + if (this.hosts == null) { + this.hosts = new ArrayList(); + } + this.hosts.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(hosts == null) && !(hosts.isEmpty())) { + sb.append("hosts:"); + sb.append(hosts); + sb.append(","); + } + if (!(secretName == null)) { + sb.append("secretName:"); + sb.append(secretName); + } + sb.append("}"); + return sb.toString(); + } + public A withHosts(List hosts) { if (hosts != null) { this.hosts = new ArrayList(); @@ -148,62 +202,9 @@ public A withHosts(String... hosts) { return (A) this; } - public boolean hasHosts() { - return this.hosts != null && !(this.hosts.isEmpty()); - } - - public String getSecretName() { - return this.secretName; - } - public A withSecretName(String secretName) { this.secretName = secretName; return (A) this; } - public boolean hasSecretName() { - return this.secretName != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1IngressTLSFluent that = (V1IngressTLSFluent) o; - if (!(Objects.equals(hosts, that.hosts))) { - return false; - } - if (!(Objects.equals(secretName, that.secretName))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(hosts, secretName); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(hosts == null) && !(hosts.isEmpty())) { - sb.append("hosts:"); - sb.append(hosts); - sb.append(","); - } - if (!(secretName == null)) { - sb.append("secretName:"); - sb.append(secretName); - } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java index 7f8305e506..0da4470f3a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1JSONSchemaPropsBuilder extends V1JSONSchemaPropsFluent implements VisitableBuilder{ + + V1JSONSchemaPropsFluent fluent; + public V1JSONSchemaPropsBuilder() { this(new V1JSONSchemaProps()); } @@ -11,17 +14,16 @@ public V1JSONSchemaPropsBuilder(V1JSONSchemaPropsFluent fluent) { this(fluent, new V1JSONSchemaProps()); } - public V1JSONSchemaPropsBuilder(V1JSONSchemaPropsFluent fluent,V1JSONSchemaProps instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1JSONSchemaPropsBuilder(V1JSONSchemaProps instance) { this.fluent = this; this.copyInstance(instance); } - V1JSONSchemaPropsFluent fluent; + public V1JSONSchemaPropsBuilder(V1JSONSchemaPropsFluent fluent,V1JSONSchemaProps instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1JSONSchemaProps build() { V1JSONSchemaProps buildable = new V1JSONSchemaProps(); buildable.set$Ref(fluent.getRef()); @@ -64,5 +66,4 @@ public V1JSONSchemaProps build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java index fdd8feb103..31112a70a3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java @@ -1,47 +1,42 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import java.lang.RuntimeException; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.List; +import io.kubernetes.client.fluent.Nested; import java.lang.Boolean; -import java.util.Optional; import java.lang.Double; import java.lang.Long; -import java.util.Objects; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1JSONSchemaPropsFluent> extends BaseFluent{ - public V1JSONSchemaPropsFluent() { - } - - public V1JSONSchemaPropsFluent(V1JSONSchemaProps instance) { - this.copyInstance(instance); - } + private String $ref; private String $schema; + private Object _default; + private List _enum; private Object additionalItems; private Object additionalProperties; private ArrayList allOf; private ArrayList anyOf; - private Object _default; private Map definitions; private Map dependencies; private String description; - private List _enum; private Object example; private Boolean exclusiveMaximum; private Boolean exclusiveMinimum; @@ -68,118 +63,107 @@ public V1JSONSchemaPropsFluent(V1JSONSchemaProps instance) { private String title; private String type; private Boolean uniqueItems; - - protected void copyInstance(V1JSONSchemaProps instance) { - instance = instance != null ? instance : new V1JSONSchemaProps(); - if (instance != null) { - this.withRef(instance.get$Ref()); - this.withSchema(instance.get$Schema()); - this.withAdditionalItems(instance.getAdditionalItems()); - this.withAdditionalProperties(instance.getAdditionalProperties()); - this.withAllOf(instance.getAllOf()); - this.withAnyOf(instance.getAnyOf()); - this.withDefault(instance.getDefault()); - this.withDefinitions(instance.getDefinitions()); - this.withDependencies(instance.getDependencies()); - this.withDescription(instance.getDescription()); - this.withEnum(instance.getEnum()); - this.withExample(instance.getExample()); - this.withExclusiveMaximum(instance.getExclusiveMaximum()); - this.withExclusiveMinimum(instance.getExclusiveMinimum()); - this.withExternalDocs(instance.getExternalDocs()); - this.withFormat(instance.getFormat()); - this.withId(instance.getId()); - this.withItems(instance.getItems()); - this.withMaxItems(instance.getMaxItems()); - this.withMaxLength(instance.getMaxLength()); - this.withMaxProperties(instance.getMaxProperties()); - this.withMaximum(instance.getMaximum()); - this.withMinItems(instance.getMinItems()); - this.withMinLength(instance.getMinLength()); - this.withMinProperties(instance.getMinProperties()); - this.withMinimum(instance.getMinimum()); - this.withMultipleOf(instance.getMultipleOf()); - this.withNot(instance.getNot()); - this.withNullable(instance.getNullable()); - this.withOneOf(instance.getOneOf()); - this.withPattern(instance.getPattern()); - this.withPatternProperties(instance.getPatternProperties()); - this.withProperties(instance.getProperties()); - this.withRequired(instance.getRequired()); - this.withTitle(instance.getTitle()); - this.withType(instance.getType()); - this.withUniqueItems(instance.getUniqueItems()); - } + + public V1JSONSchemaPropsFluent() { } - public String getRef() { - return this.$ref; + public V1JSONSchemaPropsFluent(V1JSONSchemaProps instance) { + this.copyInstance(instance); } - - public A withRef(String $ref) { - this.$ref = $ref; + + public A addAllToAllOf(Collection items) { + if (this.allOf == null) { + this.allOf = new ArrayList(); + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("allOf").add(builder); + this.allOf.add(builder); + } return (A) this; } - public boolean hasRef() { - return this.$ref != null; + public A addAllToAnyOf(Collection items) { + if (this.anyOf == null) { + this.anyOf = new ArrayList(); + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("anyOf").add(builder); + this.anyOf.add(builder); + } + return (A) this; } - public String getSchema() { - return this.$schema; + public A addAllToEnum(Collection items) { + if (this._enum == null) { + this._enum = new ArrayList(); + } + for (Object item : items) { + this._enum.add(item); + } + return (A) this; } - public A withSchema(String $schema) { - this.$schema = $schema; + public A addAllToOneOf(Collection items) { + if (this.oneOf == null) { + this.oneOf = new ArrayList(); + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("oneOf").add(builder); + this.oneOf.add(builder); + } return (A) this; } - public boolean hasSchema() { - return this.$schema != null; + public A addAllToRequired(Collection items) { + if (this.required == null) { + this.required = new ArrayList(); + } + for (String item : items) { + this.required.add(item); + } + return (A) this; } - public Object getAdditionalItems() { - return this.additionalItems; + public AllOfNested addNewAllOf() { + return new AllOfNested(-1, null); } - public A withAdditionalItems(Object additionalItems) { - this.additionalItems = additionalItems; - return (A) this; + public AllOfNested addNewAllOfLike(V1JSONSchemaProps item) { + return new AllOfNested(-1, item); } - public boolean hasAdditionalItems() { - return this.additionalItems != null; + public AnyOfNested addNewAnyOf() { + return new AnyOfNested(-1, null); } - public Object getAdditionalProperties() { - return this.additionalProperties; + public AnyOfNested addNewAnyOfLike(V1JSONSchemaProps item) { + return new AnyOfNested(-1, item); } - public A withAdditionalProperties(Object additionalProperties) { - this.additionalProperties = additionalProperties; - return (A) this; + public OneOfNested addNewOneOf() { + return new OneOfNested(-1, null); } - public boolean hasAdditionalProperties() { - return this.additionalProperties != null; + public OneOfNested addNewOneOfLike(V1JSONSchemaProps item) { + return new OneOfNested(-1, item); } - public A addToAllOf(int index,V1JSONSchemaProps item) { + public A addToAllOf(V1JSONSchemaProps... items) { if (this.allOf == null) { this.allOf = new ArrayList(); } - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= allOf.size()) { - _visitables.get("allOf").add(builder); - allOf.add(builder); - } else { + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); _visitables.get("allOf").add(builder); - allOf.add(index, builder); + this.allOf.add(builder); } return (A) this; } - public A setToAllOf(int index,V1JSONSchemaProps item) { + public A addToAllOf(int index,V1JSONSchemaProps item) { if (this.allOf == null) { this.allOf = new ArrayList(); } @@ -189,283 +173,189 @@ public A setToAllOf(int index,V1JSONSchemaProps item) { allOf.add(builder); } else { _visitables.get("allOf").add(builder); - allOf.set(index, builder); + allOf.add(index, builder); } return (A) this; } - public A addToAllOf(V1JSONSchemaProps... items) { - if (this.allOf == null) { - this.allOf = new ArrayList(); + public A addToAnyOf(V1JSONSchemaProps... items) { + if (this.anyOf == null) { + this.anyOf = new ArrayList(); } for (V1JSONSchemaProps item : items) { V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("allOf").add(builder); - this.allOf.add(builder); + _visitables.get("anyOf").add(builder); + this.anyOf.add(builder); } return (A) this; } - public A addAllToAllOf(Collection items) { - if (this.allOf == null) { - this.allOf = new ArrayList(); + public A addToAnyOf(int index,V1JSONSchemaProps item) { + if (this.anyOf == null) { + this.anyOf = new ArrayList(); } - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("allOf").add(builder); - this.allOf.add(builder); + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + if (index < 0 || index >= anyOf.size()) { + _visitables.get("anyOf").add(builder); + anyOf.add(builder); + } else { + _visitables.get("anyOf").add(builder); + anyOf.add(index, builder); } return (A) this; } - public A removeFromAllOf(V1JSONSchemaProps... items) { - if (this.allOf == null) { - return (A) this; + public A addToDefinitions(Map map) { + if (this.definitions == null && map != null) { + this.definitions = new LinkedHashMap(); } - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("allOf").remove(builder); - this.allOf.remove(builder); + if (map != null) { + this.definitions.putAll(map); } return (A) this; } - public A removeAllFromAllOf(Collection items) { - if (this.allOf == null) { - return (A) this; + public A addToDefinitions(String key,V1JSONSchemaProps value) { + if (this.definitions == null && key != null && value != null) { + this.definitions = new LinkedHashMap(); } - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("allOf").remove(builder); - this.allOf.remove(builder); + if (key != null && value != null) { + this.definitions.put(key, value); } return (A) this; } - public A removeMatchingFromAllOf(Predicate predicate) { - if (allOf == null) { - return (A) this; + public A addToDependencies(Map map) { + if (this.dependencies == null && map != null) { + this.dependencies = new LinkedHashMap(); } - Iterator each = allOf.iterator(); - List visitables = _visitables.get("allOf"); - while (each.hasNext()) { - V1JSONSchemaPropsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (map != null) { + this.dependencies.putAll(map); } return (A) this; } - public List buildAllOf() { - return this.allOf != null ? build(allOf) : null; - } - - public V1JSONSchemaProps buildAllOf(int index) { - return this.allOf.get(index).build(); - } - - public V1JSONSchemaProps buildFirstAllOf() { - return this.allOf.get(0).build(); - } - - public V1JSONSchemaProps buildLastAllOf() { - return this.allOf.get(allOf.size() - 1).build(); - } - - public V1JSONSchemaProps buildMatchingAllOf(Predicate predicate) { - for (V1JSONSchemaPropsBuilder item : allOf) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingAllOf(Predicate predicate) { - for (V1JSONSchemaPropsBuilder item : allOf) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withAllOf(List allOf) { - if (this.allOf != null) { - this._visitables.get("allOf").clear(); + public A addToDependencies(String key,Object value) { + if (this.dependencies == null && key != null && value != null) { + this.dependencies = new LinkedHashMap(); } - if (allOf != null) { - this.allOf = new ArrayList(); - for (V1JSONSchemaProps item : allOf) { - this.addToAllOf(item); - } - } else { - this.allOf = null; + if (key != null && value != null) { + this.dependencies.put(key, value); } return (A) this; } - public A withAllOf(V1JSONSchemaProps... allOf) { - if (this.allOf != null) { - this.allOf.clear(); - _visitables.remove("allOf"); + public A addToEnum(Object... items) { + if (this._enum == null) { + this._enum = new ArrayList(); } - if (allOf != null) { - for (V1JSONSchemaProps item : allOf) { - this.addToAllOf(item); - } + for (Object item : items) { + this._enum.add(item); } return (A) this; } - public boolean hasAllOf() { - return this.allOf != null && !(this.allOf.isEmpty()); - } - - public AllOfNested addNewAllOf() { - return new AllOfNested(-1, null); - } - - public AllOfNested addNewAllOfLike(V1JSONSchemaProps item) { - return new AllOfNested(-1, item); - } - - public AllOfNested setNewAllOfLike(int index,V1JSONSchemaProps item) { - return new AllOfNested(index, item); - } - - public AllOfNested editAllOf(int index) { - if (index <= allOf.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "allOf")); - } - return this.setNewAllOfLike(index, this.buildAllOf(index)); - } - - public AllOfNested editFirstAllOf() { - if (allOf.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "allOf")); - } - return this.setNewAllOfLike(0, this.buildAllOf(0)); - } - - public AllOfNested editLastAllOf() { - int index = allOf.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "allOf")); + public A addToEnum(int index,Object item) { + if (this._enum == null) { + this._enum = new ArrayList(); } - return this.setNewAllOfLike(index, this.buildAllOf(index)); + this._enum.add(index, item); + return (A) this; } - public AllOfNested editMatchingAllOf(Predicate predicate) { - int index = -1; - for (int i = 0;i < allOf.size();i++) { - if (predicate.test(allOf.get(i))) { - index = i; - break; - } + public A addToOneOf(V1JSONSchemaProps... items) { + if (this.oneOf == null) { + this.oneOf = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "allOf")); + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("oneOf").add(builder); + this.oneOf.add(builder); } - return this.setNewAllOfLike(index, this.buildAllOf(index)); + return (A) this; } - public A addToAnyOf(int index,V1JSONSchemaProps item) { - if (this.anyOf == null) { - this.anyOf = new ArrayList(); + public A addToOneOf(int index,V1JSONSchemaProps item) { + if (this.oneOf == null) { + this.oneOf = new ArrayList(); } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= anyOf.size()) { - _visitables.get("anyOf").add(builder); - anyOf.add(builder); + if (index < 0 || index >= oneOf.size()) { + _visitables.get("oneOf").add(builder); + oneOf.add(builder); } else { - _visitables.get("anyOf").add(builder); - anyOf.add(index, builder); + _visitables.get("oneOf").add(builder); + oneOf.add(index, builder); } return (A) this; } - public A setToAnyOf(int index,V1JSONSchemaProps item) { - if (this.anyOf == null) { - this.anyOf = new ArrayList(); + public A addToPatternProperties(Map map) { + if (this.patternProperties == null && map != null) { + this.patternProperties = new LinkedHashMap(); } - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= anyOf.size()) { - _visitables.get("anyOf").add(builder); - anyOf.add(builder); - } else { - _visitables.get("anyOf").add(builder); - anyOf.set(index, builder); + if (map != null) { + this.patternProperties.putAll(map); } return (A) this; } - public A addToAnyOf(V1JSONSchemaProps... items) { - if (this.anyOf == null) { - this.anyOf = new ArrayList(); + public A addToPatternProperties(String key,V1JSONSchemaProps value) { + if (this.patternProperties == null && key != null && value != null) { + this.patternProperties = new LinkedHashMap(); } - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("anyOf").add(builder); - this.anyOf.add(builder); + if (key != null && value != null) { + this.patternProperties.put(key, value); } return (A) this; } - public A addAllToAnyOf(Collection items) { - if (this.anyOf == null) { - this.anyOf = new ArrayList(); + public A addToProperties(Map map) { + if (this.properties == null && map != null) { + this.properties = new LinkedHashMap(); } - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("anyOf").add(builder); - this.anyOf.add(builder); + if (map != null) { + this.properties.putAll(map); } return (A) this; } - public A removeFromAnyOf(V1JSONSchemaProps... items) { - if (this.anyOf == null) { - return (A) this; + public A addToProperties(String key,V1JSONSchemaProps value) { + if (this.properties == null && key != null && value != null) { + this.properties = new LinkedHashMap(); } - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("anyOf").remove(builder); - this.anyOf.remove(builder); + if (key != null && value != null) { + this.properties.put(key, value); } return (A) this; } - public A removeAllFromAnyOf(Collection items) { - if (this.anyOf == null) { - return (A) this; + public A addToRequired(String... items) { + if (this.required == null) { + this.required = new ArrayList(); } - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("anyOf").remove(builder); - this.anyOf.remove(builder); + for (String item : items) { + this.required.add(item); } return (A) this; } - public A removeMatchingFromAnyOf(Predicate predicate) { - if (anyOf == null) { - return (A) this; - } - Iterator each = anyOf.iterator(); - List visitables = _visitables.get("anyOf"); - while (each.hasNext()) { - V1JSONSchemaPropsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToRequired(int index,String item) { + if (this.required == null) { + this.required = new ArrayList(); } + this.required.add(index, item); return (A) this; } + public List buildAllOf() { + return this.allOf != null ? build(allOf) : null; + } + + public V1JSONSchemaProps buildAllOf(int index) { + return this.allOf.get(index).build(); + } + public List buildAnyOf() { return this.anyOf != null ? build(anyOf) : null; } @@ -474,14 +364,43 @@ public V1JSONSchemaProps buildAnyOf(int index) { return this.anyOf.get(index).build(); } + public V1ExternalDocumentation buildExternalDocs() { + return this.externalDocs != null ? this.externalDocs.build() : null; + } + + public V1JSONSchemaProps buildFirstAllOf() { + return this.allOf.get(0).build(); + } + public V1JSONSchemaProps buildFirstAnyOf() { return this.anyOf.get(0).build(); } + public V1JSONSchemaProps buildFirstOneOf() { + return this.oneOf.get(0).build(); + } + + public V1JSONSchemaProps buildLastAllOf() { + return this.allOf.get(allOf.size() - 1).build(); + } + public V1JSONSchemaProps buildLastAnyOf() { return this.anyOf.get(anyOf.size() - 1).build(); } + public V1JSONSchemaProps buildLastOneOf() { + return this.oneOf.get(oneOf.size() - 1).build(); + } + + public V1JSONSchemaProps buildMatchingAllOf(Predicate predicate) { + for (V1JSONSchemaPropsBuilder item : allOf) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + public V1JSONSchemaProps buildMatchingAnyOf(Predicate predicate) { for (V1JSONSchemaPropsBuilder item : anyOf) { if (predicate.test(item)) { @@ -491,66 +410,95 @@ public V1JSONSchemaProps buildMatchingAnyOf(Predicate return null; } - public boolean hasMatchingAnyOf(Predicate predicate) { - for (V1JSONSchemaPropsBuilder item : anyOf) { + public V1JSONSchemaProps buildMatchingOneOf(Predicate predicate) { + for (V1JSONSchemaPropsBuilder item : oneOf) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withAnyOf(List anyOf) { - if (this.anyOf != null) { - this._visitables.get("anyOf").clear(); - } - if (anyOf != null) { - this.anyOf = new ArrayList(); - for (V1JSONSchemaProps item : anyOf) { - this.addToAnyOf(item); - } - } else { - this.anyOf = null; - } - return (A) this; - } - - public A withAnyOf(V1JSONSchemaProps... anyOf) { - if (this.anyOf != null) { - this.anyOf.clear(); - _visitables.remove("anyOf"); - } - if (anyOf != null) { - for (V1JSONSchemaProps item : anyOf) { - this.addToAnyOf(item); - } - } - return (A) this; + public V1JSONSchemaProps buildNot() { + return this.not != null ? this.not.build() : null; } - public boolean hasAnyOf() { - return this.anyOf != null && !(this.anyOf.isEmpty()); + public List buildOneOf() { + return this.oneOf != null ? build(oneOf) : null; } - public AnyOfNested addNewAnyOf() { - return new AnyOfNested(-1, null); + public V1JSONSchemaProps buildOneOf(int index) { + return this.oneOf.get(index).build(); } - public AnyOfNested addNewAnyOfLike(V1JSONSchemaProps item) { - return new AnyOfNested(-1, item); + protected void copyInstance(V1JSONSchemaProps instance) { + instance = instance != null ? instance : new V1JSONSchemaProps(); + if (instance != null) { + this.withRef(instance.get$Ref()); + this.withSchema(instance.get$Schema()); + this.withAdditionalItems(instance.getAdditionalItems()); + this.withAdditionalProperties(instance.getAdditionalProperties()); + this.withAllOf(instance.getAllOf()); + this.withAnyOf(instance.getAnyOf()); + this.withDefault(instance.getDefault()); + this.withDefinitions(instance.getDefinitions()); + this.withDependencies(instance.getDependencies()); + this.withDescription(instance.getDescription()); + this.withEnum(instance.getEnum()); + this.withExample(instance.getExample()); + this.withExclusiveMaximum(instance.getExclusiveMaximum()); + this.withExclusiveMinimum(instance.getExclusiveMinimum()); + this.withExternalDocs(instance.getExternalDocs()); + this.withFormat(instance.getFormat()); + this.withId(instance.getId()); + this.withItems(instance.getItems()); + this.withMaxItems(instance.getMaxItems()); + this.withMaxLength(instance.getMaxLength()); + this.withMaxProperties(instance.getMaxProperties()); + this.withMaximum(instance.getMaximum()); + this.withMinItems(instance.getMinItems()); + this.withMinLength(instance.getMinLength()); + this.withMinProperties(instance.getMinProperties()); + this.withMinimum(instance.getMinimum()); + this.withMultipleOf(instance.getMultipleOf()); + this.withNot(instance.getNot()); + this.withNullable(instance.getNullable()); + this.withOneOf(instance.getOneOf()); + this.withPattern(instance.getPattern()); + this.withPatternProperties(instance.getPatternProperties()); + this.withProperties(instance.getProperties()); + this.withRequired(instance.getRequired()); + this.withTitle(instance.getTitle()); + this.withType(instance.getType()); + this.withUniqueItems(instance.getUniqueItems()); + } } - public AnyOfNested setNewAnyOfLike(int index,V1JSONSchemaProps item) { - return new AnyOfNested(index, item); + public AllOfNested editAllOf(int index) { + if (allOf.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "allOf")); + } + return this.setNewAllOfLike(index, this.buildAllOf(index)); } public AnyOfNested editAnyOf(int index) { - if (index <= anyOf.size()) { + if (anyOf.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "anyOf")); } return this.setNewAnyOfLike(index, this.buildAnyOf(index)); } + public ExternalDocsNested editExternalDocs() { + return this.withNewExternalDocsLike(Optional.ofNullable(this.buildExternalDocs()).orElse(null)); + } + + public AllOfNested editFirstAllOf() { + if (allOf.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "allOf")); + } + return this.setNewAllOfLike(0, this.buildAllOf(0)); + } + public AnyOfNested editFirstAnyOf() { if (anyOf.size() == 0) { throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "anyOf")); @@ -558,6 +506,21 @@ public AnyOfNested editFirstAnyOf() { return this.setNewAnyOfLike(0, this.buildAnyOf(0)); } + public OneOfNested editFirstOneOf() { + if (oneOf.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "oneOf")); + } + return this.setNewOneOfLike(0, this.buildOneOf(0)); + } + + public AllOfNested editLastAllOf() { + int index = allOf.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "allOf")); + } + return this.setNewAllOfLike(index, this.buildAllOf(index)); + } + public AnyOfNested editLastAnyOf() { int index = anyOf.size() - 1; if (index < 0) { @@ -566,6 +529,28 @@ public AnyOfNested editLastAnyOf() { return this.setNewAnyOfLike(index, this.buildAnyOf(index)); } + public OneOfNested editLastOneOf() { + int index = oneOf.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "oneOf")); + } + return this.setNewOneOfLike(index, this.buildOneOf(index)); + } + + public AllOfNested editMatchingAllOf(Predicate predicate) { + int index = -1; + for (int i = 0;i < allOf.size();i++) { + if (predicate.test(allOf.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "allOf")); + } + return this.setNewAllOfLike(index, this.buildAllOf(index)); + } + public AnyOfNested editMatchingAnyOf(Predicate predicate) { int index = -1; for (int i = 0;i < anyOf.size();i++) { @@ -580,226 +565,244 @@ public AnyOfNested editMatchingAnyOf(Predicate pred return this.setNewAnyOfLike(index, this.buildAnyOf(index)); } - public Object getDefault() { - return this._default; - } - - public A withDefault(Object _default) { - this._default = _default; - return (A) this; - } - - public boolean hasDefault() { - return this._default != null; - } - - public A addToDefinitions(String key,V1JSONSchemaProps value) { - if (this.definitions == null && key != null && value != null) { - this.definitions = new LinkedHashMap(); + public OneOfNested editMatchingOneOf(Predicate predicate) { + int index = -1; + for (int i = 0;i < oneOf.size();i++) { + if (predicate.test(oneOf.get(i))) { + index = i; + break; + } } - if (key != null && value != null) { - this.definitions.put(key, value); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "oneOf")); } - return (A) this; + return this.setNewOneOfLike(index, this.buildOneOf(index)); } - public A addToDefinitions(Map map) { - if (this.definitions == null && map != null) { - this.definitions = new LinkedHashMap(); - } - if (map != null) { - this.definitions.putAll(map); - } - return (A) this; + public NotNested editNot() { + return this.withNewNotLike(Optional.ofNullable(this.buildNot()).orElse(null)); } - public A removeFromDefinitions(String key) { - if (this.definitions == null) { - return (A) this; - } - if (key != null && this.definitions != null) { - this.definitions.remove(key); + public OneOfNested editOneOf(int index) { + if (oneOf.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "oneOf")); } - return (A) this; + return this.setNewOneOfLike(index, this.buildOneOf(index)); } - public A removeFromDefinitions(Map map) { - if (this.definitions == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.definitions != null) { - this.definitions.remove(key); - } - } - } - return (A) this; + public ExternalDocsNested editOrNewExternalDocs() { + return this.withNewExternalDocsLike(Optional.ofNullable(this.buildExternalDocs()).orElse(new V1ExternalDocumentationBuilder().build())); } - public Map getDefinitions() { - return this.definitions; + public ExternalDocsNested editOrNewExternalDocsLike(V1ExternalDocumentation item) { + return this.withNewExternalDocsLike(Optional.ofNullable(this.buildExternalDocs()).orElse(item)); } - public A withDefinitions(Map definitions) { - if (definitions == null) { - this.definitions = null; - } else { - this.definitions = new LinkedHashMap(definitions); - } - return (A) this; + public NotNested editOrNewNot() { + return this.withNewNotLike(Optional.ofNullable(this.buildNot()).orElse(new V1JSONSchemaPropsBuilder().build())); } - public boolean hasDefinitions() { - return this.definitions != null; + public NotNested editOrNewNotLike(V1JSONSchemaProps item) { + return this.withNewNotLike(Optional.ofNullable(this.buildNot()).orElse(item)); } - public A addToDependencies(String key,Object value) { - if (this.dependencies == null && key != null && value != null) { - this.dependencies = new LinkedHashMap(); + public boolean equals(Object o) { + if (this == o) { + return true; } - if (key != null && value != null) { - this.dependencies.put(key, value); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A addToDependencies(Map map) { - if (this.dependencies == null && map != null) { - this.dependencies = new LinkedHashMap(); + if (!(super.equals(o))) { + return false; } - if (map != null) { - this.dependencies.putAll(map); + V1JSONSchemaPropsFluent that = (V1JSONSchemaPropsFluent) o; + if (!(Objects.equals($ref, that.$ref))) { + return false; } - return (A) this; - } - - public A removeFromDependencies(String key) { - if (this.dependencies == null) { - return (A) this; + if (!(Objects.equals($schema, that.$schema))) { + return false; } - if (key != null && this.dependencies != null) { - this.dependencies.remove(key); + if (!(Objects.equals(additionalItems, that.additionalItems))) { + return false; } - return (A) this; - } - - public A removeFromDependencies(Map map) { - if (this.dependencies == null) { - return (A) this; + if (!(Objects.equals(additionalProperties, that.additionalProperties))) { + return false; } - if (map != null) { - for (Object key : map.keySet()) { - if (this.dependencies != null) { - this.dependencies.remove(key); - } - } + if (!(Objects.equals(allOf, that.allOf))) { + return false; } - return (A) this; + if (!(Objects.equals(anyOf, that.anyOf))) { + return false; + } + if (!(Objects.equals(_default, that._default))) { + return false; + } + if (!(Objects.equals(definitions, that.definitions))) { + return false; + } + if (!(Objects.equals(dependencies, that.dependencies))) { + return false; + } + if (!(Objects.equals(description, that.description))) { + return false; + } + if (!(Objects.equals(_enum, that._enum))) { + return false; + } + if (!(Objects.equals(example, that.example))) { + return false; + } + if (!(Objects.equals(exclusiveMaximum, that.exclusiveMaximum))) { + return false; + } + if (!(Objects.equals(exclusiveMinimum, that.exclusiveMinimum))) { + return false; + } + if (!(Objects.equals(externalDocs, that.externalDocs))) { + return false; + } + if (!(Objects.equals(format, that.format))) { + return false; + } + if (!(Objects.equals(id, that.id))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(maxItems, that.maxItems))) { + return false; + } + if (!(Objects.equals(maxLength, that.maxLength))) { + return false; + } + if (!(Objects.equals(maxProperties, that.maxProperties))) { + return false; + } + if (!(Objects.equals(maximum, that.maximum))) { + return false; + } + if (!(Objects.equals(minItems, that.minItems))) { + return false; + } + if (!(Objects.equals(minLength, that.minLength))) { + return false; + } + if (!(Objects.equals(minProperties, that.minProperties))) { + return false; + } + if (!(Objects.equals(minimum, that.minimum))) { + return false; + } + if (!(Objects.equals(multipleOf, that.multipleOf))) { + return false; + } + if (!(Objects.equals(not, that.not))) { + return false; + } + if (!(Objects.equals(nullable, that.nullable))) { + return false; + } + if (!(Objects.equals(oneOf, that.oneOf))) { + return false; + } + if (!(Objects.equals(pattern, that.pattern))) { + return false; + } + if (!(Objects.equals(patternProperties, that.patternProperties))) { + return false; + } + if (!(Objects.equals(properties, that.properties))) { + return false; + } + if (!(Objects.equals(required, that.required))) { + return false; + } + if (!(Objects.equals(title, that.title))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + if (!(Objects.equals(uniqueItems, that.uniqueItems))) { + return false; + } + return true; } - public Map getDependencies() { - return this.dependencies; + public Object getAdditionalItems() { + return this.additionalItems; } - public A withDependencies(Map dependencies) { - if (dependencies == null) { - this.dependencies = null; - } else { - this.dependencies = new LinkedHashMap(dependencies); - } - return (A) this; + public Object getAdditionalProperties() { + return this.additionalProperties; } - public boolean hasDependencies() { - return this.dependencies != null; + public Object getDefault() { + return this._default; } - public String getDescription() { - return this.description; + public Map getDefinitions() { + return this.definitions; } - public A withDescription(String description) { - this.description = description; - return (A) this; + public Map getDependencies() { + return this.dependencies; } - public boolean hasDescription() { - return this.description != null; + public String getDescription() { + return this.description; } - public A addToEnum(int index,Object item) { - if (this._enum == null) { - this._enum = new ArrayList(); - } - this._enum.add(index, item); - return (A) this; + public List getEnum() { + return this._enum; } - public A setToEnum(int index,Object item) { - if (this._enum == null) { - this._enum = new ArrayList(); - } - this._enum.set(index, item); - return (A) this; + public Object getEnum(int index) { + return this._enum.get(index); } - public A addToEnum(Object... items) { - if (this._enum == null) { - this._enum = new ArrayList(); - } - for (Object item : items) { - this._enum.add(item); - } - return (A) this; + public Object getExample() { + return this.example; } - public A addAllToEnum(Collection items) { - if (this._enum == null) { - this._enum = new ArrayList(); - } - for (Object item : items) { - this._enum.add(item); - } - return (A) this; + public Boolean getExclusiveMaximum() { + return this.exclusiveMaximum; } - public A removeFromEnum(Object... items) { - if (this._enum == null) { - return (A) this; - } - for (Object item : items) { - this._enum.remove(item); - } - return (A) this; + public Boolean getExclusiveMinimum() { + return this.exclusiveMinimum; } - public A removeAllFromEnum(Collection items) { - if (this._enum == null) { - return (A) this; - } - for (Object item : items) { - this._enum.remove(item); - } - return (A) this; + public Object getFirstEnum() { + return this._enum.get(0); } - public List getEnum() { - return this._enum; + public String getFirstRequired() { + return this.required.get(0); } - public Object getEnum(int index) { - return this._enum.get(index); + public String getFormat() { + return this.format; } - public Object getFirstEnum() { - return this._enum.get(0); + public String getId() { + return this.id; + } + + public Object getItems() { + return this.items; } public Object getLastEnum() { return this._enum.get(_enum.size() - 1); } + public String getLastRequired() { + return this.required.get(required.size() - 1); + } + public Object getMatchingEnum(Predicate predicate) { for (Object item : _enum) { if (predicate.test(item)) { @@ -809,960 +812,619 @@ public Object getMatchingEnum(Predicate predicate) { return null; } - public boolean hasMatchingEnum(Predicate predicate) { - for (Object item : _enum) { + public String getMatchingRequired(Predicate predicate) { + for (String item : required) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withEnum(List _enum) { - if (_enum != null) { - this._enum = new ArrayList(); - for (Object item : _enum) { - this.addToEnum(item); - } - } else { - this._enum = null; - } - return (A) this; + public Long getMaxItems() { + return this.maxItems; } - public A withEnum(Object... _enum) { - if (this._enum != null) { - this._enum.clear(); - _visitables.remove("_enum"); - } - if (_enum != null) { - for (Object item : _enum) { - this.addToEnum(item); - } - } - return (A) this; + public Long getMaxLength() { + return this.maxLength; } - public boolean hasEnum() { - return this._enum != null && !(this._enum.isEmpty()); + public Long getMaxProperties() { + return this.maxProperties; } - public Object getExample() { - return this.example; + public Double getMaximum() { + return this.maximum; } - public A withExample(Object example) { - this.example = example; - return (A) this; + public Long getMinItems() { + return this.minItems; } - public boolean hasExample() { - return this.example != null; + public Long getMinLength() { + return this.minLength; } - public Boolean getExclusiveMaximum() { - return this.exclusiveMaximum; + public Long getMinProperties() { + return this.minProperties; } - public A withExclusiveMaximum(Boolean exclusiveMaximum) { - this.exclusiveMaximum = exclusiveMaximum; - return (A) this; + public Double getMinimum() { + return this.minimum; } - public boolean hasExclusiveMaximum() { - return this.exclusiveMaximum != null; + public Double getMultipleOf() { + return this.multipleOf; } - public Boolean getExclusiveMinimum() { - return this.exclusiveMinimum; + public Boolean getNullable() { + return this.nullable; } - public A withExclusiveMinimum(Boolean exclusiveMinimum) { - this.exclusiveMinimum = exclusiveMinimum; - return (A) this; + public String getPattern() { + return this.pattern; } - public boolean hasExclusiveMinimum() { - return this.exclusiveMinimum != null; + public Map getPatternProperties() { + return this.patternProperties; } - public V1ExternalDocumentation buildExternalDocs() { - return this.externalDocs != null ? this.externalDocs.build() : null; + public Map getProperties() { + return this.properties; } - public A withExternalDocs(V1ExternalDocumentation externalDocs) { - this._visitables.remove("externalDocs"); - if (externalDocs != null) { - this.externalDocs = new V1ExternalDocumentationBuilder(externalDocs); - this._visitables.get("externalDocs").add(this.externalDocs); - } else { - this.externalDocs = null; - this._visitables.get("externalDocs").remove(this.externalDocs); - } - return (A) this; + public String getRef() { + return this.$ref; } - public boolean hasExternalDocs() { - return this.externalDocs != null; + public List getRequired() { + return this.required; } - public ExternalDocsNested withNewExternalDocs() { - return new ExternalDocsNested(null); + public String getRequired(int index) { + return this.required.get(index); } - public ExternalDocsNested withNewExternalDocsLike(V1ExternalDocumentation item) { - return new ExternalDocsNested(item); + public String getSchema() { + return this.$schema; } - public ExternalDocsNested editExternalDocs() { - return this.withNewExternalDocsLike(Optional.ofNullable(this.buildExternalDocs()).orElse(null)); + public String getTitle() { + return this.title; } - public ExternalDocsNested editOrNewExternalDocs() { - return this.withNewExternalDocsLike(Optional.ofNullable(this.buildExternalDocs()).orElse(new V1ExternalDocumentationBuilder().build())); + public String getType() { + return this.type; } - public ExternalDocsNested editOrNewExternalDocsLike(V1ExternalDocumentation item) { - return this.withNewExternalDocsLike(Optional.ofNullable(this.buildExternalDocs()).orElse(item)); + public Boolean getUniqueItems() { + return this.uniqueItems; } - public String getFormat() { - return this.format; + public boolean hasAdditionalItems() { + return this.additionalItems != null; } - public A withFormat(String format) { - this.format = format; - return (A) this; + public boolean hasAdditionalProperties() { + return this.additionalProperties != null; } - public boolean hasFormat() { - return this.format != null; + public boolean hasAllOf() { + return this.allOf != null && !(this.allOf.isEmpty()); } - public String getId() { - return this.id; + public boolean hasAnyOf() { + return this.anyOf != null && !(this.anyOf.isEmpty()); } - public A withId(String id) { - this.id = id; - return (A) this; + public boolean hasDefault() { + return this._default != null; } - public boolean hasId() { - return this.id != null; + public boolean hasDefinitions() { + return this.definitions != null; } - public Object getItems() { - return this.items; + public boolean hasDependencies() { + return this.dependencies != null; } - public A withItems(Object items) { - this.items = items; - return (A) this; + public boolean hasDescription() { + return this.description != null; } - public boolean hasItems() { - return this.items != null; + public boolean hasEnum() { + return this._enum != null && !(this._enum.isEmpty()); } - public Long getMaxItems() { - return this.maxItems; + public boolean hasExample() { + return this.example != null; } - public A withMaxItems(Long maxItems) { - this.maxItems = maxItems; - return (A) this; + public boolean hasExclusiveMaximum() { + return this.exclusiveMaximum != null; } - public boolean hasMaxItems() { - return this.maxItems != null; + public boolean hasExclusiveMinimum() { + return this.exclusiveMinimum != null; } - public Long getMaxLength() { - return this.maxLength; + public boolean hasExternalDocs() { + return this.externalDocs != null; } - public A withMaxLength(Long maxLength) { - this.maxLength = maxLength; - return (A) this; + public boolean hasFormat() { + return this.format != null; } - public boolean hasMaxLength() { - return this.maxLength != null; + public boolean hasId() { + return this.id != null; } - public Long getMaxProperties() { - return this.maxProperties; + public boolean hasItems() { + return this.items != null; } - public A withMaxProperties(Long maxProperties) { - this.maxProperties = maxProperties; - return (A) this; + public boolean hasMatchingAllOf(Predicate predicate) { + for (V1JSONSchemaPropsBuilder item : allOf) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public boolean hasMaxProperties() { - return this.maxProperties != null; + public boolean hasMatchingAnyOf(Predicate predicate) { + for (V1JSONSchemaPropsBuilder item : anyOf) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public Double getMaximum() { - return this.maximum; + public boolean hasMatchingEnum(Predicate predicate) { + for (Object item : _enum) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A withMaximum(Double maximum) { - this.maximum = maximum; - return (A) this; + public boolean hasMatchingOneOf(Predicate predicate) { + for (V1JSONSchemaPropsBuilder item : oneOf) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public boolean hasMaximum() { - return this.maximum != null; + public boolean hasMatchingRequired(Predicate predicate) { + for (String item : required) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public Long getMinItems() { - return this.minItems; + public boolean hasMaxItems() { + return this.maxItems != null; } - public A withMinItems(Long minItems) { - this.minItems = minItems; - return (A) this; + public boolean hasMaxLength() { + return this.maxLength != null; } - public boolean hasMinItems() { - return this.minItems != null; + public boolean hasMaxProperties() { + return this.maxProperties != null; } - public Long getMinLength() { - return this.minLength; + public boolean hasMaximum() { + return this.maximum != null; } - public A withMinLength(Long minLength) { - this.minLength = minLength; - return (A) this; + public boolean hasMinItems() { + return this.minItems != null; } public boolean hasMinLength() { return this.minLength != null; } - public Long getMinProperties() { - return this.minProperties; + public boolean hasMinProperties() { + return this.minProperties != null; } - public A withMinProperties(Long minProperties) { - this.minProperties = minProperties; - return (A) this; + public boolean hasMinimum() { + return this.minimum != null; } - public boolean hasMinProperties() { - return this.minProperties != null; + public boolean hasMultipleOf() { + return this.multipleOf != null; } - public Double getMinimum() { - return this.minimum; + public boolean hasNot() { + return this.not != null; } - public A withMinimum(Double minimum) { - this.minimum = minimum; - return (A) this; + public boolean hasNullable() { + return this.nullable != null; } - public boolean hasMinimum() { - return this.minimum != null; + public boolean hasOneOf() { + return this.oneOf != null && !(this.oneOf.isEmpty()); } - public Double getMultipleOf() { - return this.multipleOf; + public boolean hasPattern() { + return this.pattern != null; } - public A withMultipleOf(Double multipleOf) { - this.multipleOf = multipleOf; - return (A) this; + public boolean hasPatternProperties() { + return this.patternProperties != null; } - public boolean hasMultipleOf() { - return this.multipleOf != null; + public boolean hasProperties() { + return this.properties != null; } - public V1JSONSchemaProps buildNot() { - return this.not != null ? this.not.build() : null; + public boolean hasRef() { + return this.$ref != null; } - public A withNot(V1JSONSchemaProps not) { - this._visitables.remove("not"); - if (not != null) { - this.not = new V1JSONSchemaPropsBuilder(not); - this._visitables.get("not").add(this.not); - } else { - this.not = null; - this._visitables.get("not").remove(this.not); - } - return (A) this; - } - - public boolean hasNot() { - return this.not != null; + public boolean hasRequired() { + return this.required != null && !(this.required.isEmpty()); } - public NotNested withNewNot() { - return new NotNested(null); + public boolean hasSchema() { + return this.$schema != null; } - public NotNested withNewNotLike(V1JSONSchemaProps item) { - return new NotNested(item); + public boolean hasTitle() { + return this.title != null; } - public NotNested editNot() { - return this.withNewNotLike(Optional.ofNullable(this.buildNot()).orElse(null)); + public boolean hasType() { + return this.type != null; } - public NotNested editOrNewNot() { - return this.withNewNotLike(Optional.ofNullable(this.buildNot()).orElse(new V1JSONSchemaPropsBuilder().build())); + public boolean hasUniqueItems() { + return this.uniqueItems != null; } - public NotNested editOrNewNotLike(V1JSONSchemaProps item) { - return this.withNewNotLike(Optional.ofNullable(this.buildNot()).orElse(item)); + 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); } - public Boolean getNullable() { - return this.nullable; + public A removeAllFromAllOf(Collection items) { + if (this.allOf == null) { + return (A) this; + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("allOf").remove(builder); + this.allOf.remove(builder); + } + return (A) this; } - public A withNullable(Boolean nullable) { - this.nullable = nullable; + public A removeAllFromAnyOf(Collection items) { + if (this.anyOf == null) { + return (A) this; + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("anyOf").remove(builder); + this.anyOf.remove(builder); + } return (A) this; } - public boolean hasNullable() { - return this.nullable != null; + public A removeAllFromEnum(Collection items) { + if (this._enum == null) { + return (A) this; + } + for (Object item : items) { + this._enum.remove(item); + } + return (A) this; } - public A addToOneOf(int index,V1JSONSchemaProps item) { + public A removeAllFromOneOf(Collection items) { if (this.oneOf == null) { - this.oneOf = new ArrayList(); + return (A) this; } - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= oneOf.size()) { - _visitables.get("oneOf").add(builder); - oneOf.add(builder); - } else { - _visitables.get("oneOf").add(builder); - oneOf.add(index, builder); + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("oneOf").remove(builder); + this.oneOf.remove(builder); } return (A) this; } - public A setToOneOf(int index,V1JSONSchemaProps item) { - if (this.oneOf == null) { - this.oneOf = new ArrayList(); + public A removeAllFromRequired(Collection items) { + if (this.required == null) { + return (A) this; } - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= oneOf.size()) { - _visitables.get("oneOf").add(builder); - oneOf.add(builder); - } else { - _visitables.get("oneOf").add(builder); - oneOf.set(index, builder); + for (String item : items) { + this.required.remove(item); } return (A) this; } - public A addToOneOf(V1JSONSchemaProps... items) { - if (this.oneOf == null) { - this.oneOf = new ArrayList(); + public A removeFromAllOf(V1JSONSchemaProps... items) { + if (this.allOf == null) { + return (A) this; } for (V1JSONSchemaProps item : items) { V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("oneOf").add(builder); - this.oneOf.add(builder); + _visitables.get("allOf").remove(builder); + this.allOf.remove(builder); } return (A) this; } - public A addAllToOneOf(Collection items) { - if (this.oneOf == null) { - this.oneOf = new ArrayList(); + public A removeFromAnyOf(V1JSONSchemaProps... items) { + if (this.anyOf == null) { + return (A) this; } for (V1JSONSchemaProps item : items) { V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("oneOf").add(builder); - this.oneOf.add(builder); + _visitables.get("anyOf").remove(builder); + this.anyOf.remove(builder); } return (A) this; } - public A removeFromOneOf(V1JSONSchemaProps... items) { - if (this.oneOf == null) { + public A removeFromDefinitions(String key) { + if (this.definitions == null) { return (A) this; } - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("oneOf").remove(builder); - this.oneOf.remove(builder); + if (key != null && this.definitions != null) { + this.definitions.remove(key); } return (A) this; } - public A removeAllFromOneOf(Collection items) { - if (this.oneOf == null) { + public A removeFromDefinitions(Map map) { + if (this.definitions == null) { return (A) this; } - for (V1JSONSchemaProps item : items) { - V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("oneOf").remove(builder); - this.oneOf.remove(builder); + if (map != null) { + for (Object key : map.keySet()) { + if (this.definitions != null) { + this.definitions.remove(key); + } + } } return (A) this; } - public A removeMatchingFromOneOf(Predicate predicate) { - if (oneOf == null) { + public A removeFromDependencies(String key) { + if (this.dependencies == null) { return (A) this; } - Iterator each = oneOf.iterator(); - List visitables = _visitables.get("oneOf"); - while (each.hasNext()) { - V1JSONSchemaPropsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (key != null && this.dependencies != null) { + this.dependencies.remove(key); } return (A) this; } - public List buildOneOf() { - return this.oneOf != null ? build(oneOf) : null; + public A removeFromDependencies(Map map) { + if (this.dependencies == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.dependencies != null) { + this.dependencies.remove(key); + } + } + } + return (A) this; } - public V1JSONSchemaProps buildOneOf(int index) { - return this.oneOf.get(index).build(); + public A removeFromEnum(Object... items) { + if (this._enum == null) { + return (A) this; + } + for (Object item : items) { + this._enum.remove(item); + } + return (A) this; } - public V1JSONSchemaProps buildFirstOneOf() { - return this.oneOf.get(0).build(); + public A removeFromOneOf(V1JSONSchemaProps... items) { + if (this.oneOf == null) { + return (A) this; + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("oneOf").remove(builder); + this.oneOf.remove(builder); + } + return (A) this; } - public V1JSONSchemaProps buildLastOneOf() { - return this.oneOf.get(oneOf.size() - 1).build(); + public A removeFromPatternProperties(String key) { + if (this.patternProperties == null) { + return (A) this; + } + if (key != null && this.patternProperties != null) { + this.patternProperties.remove(key); + } + return (A) this; } - public V1JSONSchemaProps buildMatchingOneOf(Predicate predicate) { - for (V1JSONSchemaPropsBuilder item : oneOf) { - if (predicate.test(item)) { - return item.build(); + public A removeFromPatternProperties(Map map) { + if (this.patternProperties == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.patternProperties != null) { + this.patternProperties.remove(key); } } - return null; + } + return (A) this; } - public boolean hasMatchingOneOf(Predicate predicate) { - for (V1JSONSchemaPropsBuilder item : oneOf) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A removeFromProperties(String key) { + if (this.properties == null) { + return (A) this; + } + if (key != null && this.properties != null) { + this.properties.remove(key); + } + return (A) this; } - public A withOneOf(List oneOf) { - if (this.oneOf != null) { - this._visitables.get("oneOf").clear(); + public A removeFromProperties(Map map) { + if (this.properties == null) { + return (A) this; } - if (oneOf != null) { - this.oneOf = new ArrayList(); - for (V1JSONSchemaProps item : oneOf) { - this.addToOneOf(item); + if (map != null) { + for (Object key : map.keySet()) { + if (this.properties != null) { + this.properties.remove(key); } - } else { - this.oneOf = null; + } } return (A) this; } - public A withOneOf(V1JSONSchemaProps... oneOf) { - if (this.oneOf != null) { - this.oneOf.clear(); - _visitables.remove("oneOf"); + public A removeFromRequired(String... items) { + if (this.required == null) { + return (A) this; } - if (oneOf != null) { - for (V1JSONSchemaProps item : oneOf) { - this.addToOneOf(item); - } + for (String item : items) { + this.required.remove(item); } return (A) this; } - public boolean hasOneOf() { - return this.oneOf != null && !(this.oneOf.isEmpty()); - } - - public OneOfNested addNewOneOf() { - return new OneOfNested(-1, null); - } - - public OneOfNested addNewOneOfLike(V1JSONSchemaProps item) { - return new OneOfNested(-1, item); - } - - public OneOfNested setNewOneOfLike(int index,V1JSONSchemaProps item) { - return new OneOfNested(index, item); - } - - public OneOfNested editOneOf(int index) { - if (index <= oneOf.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "oneOf")); - } - return this.setNewOneOfLike(index, this.buildOneOf(index)); - } - - public OneOfNested editFirstOneOf() { - if (oneOf.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "oneOf")); - } - return this.setNewOneOfLike(0, this.buildOneOf(0)); - } - - public OneOfNested editLastOneOf() { - int index = oneOf.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "oneOf")); - } - return this.setNewOneOfLike(index, this.buildOneOf(index)); - } - - public OneOfNested editMatchingOneOf(Predicate predicate) { - int index = -1; - for (int i = 0;i < oneOf.size();i++) { - if (predicate.test(oneOf.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "oneOf")); - } - return this.setNewOneOfLike(index, this.buildOneOf(index)); - } - - public String getPattern() { - return this.pattern; - } - - public A withPattern(String pattern) { - this.pattern = pattern; - return (A) this; - } - - public boolean hasPattern() { - return this.pattern != null; - } - - public A addToPatternProperties(String key,V1JSONSchemaProps value) { - if (this.patternProperties == null && key != null && value != null) { - this.patternProperties = new LinkedHashMap(); - } - if (key != null && value != null) { - this.patternProperties.put(key, value); - } - return (A) this; - } - - public A addToPatternProperties(Map map) { - if (this.patternProperties == null && map != null) { - this.patternProperties = new LinkedHashMap(); - } - if (map != null) { - this.patternProperties.putAll(map); - } - return (A) this; - } - - public A removeFromPatternProperties(String key) { - if (this.patternProperties == null) { - return (A) this; - } - if (key != null && this.patternProperties != null) { - this.patternProperties.remove(key); - } - return (A) this; - } - - public A removeFromPatternProperties(Map map) { - if (this.patternProperties == null) { + public A removeMatchingFromAllOf(Predicate predicate) { + if (allOf == null) { return (A) this; } - if (map != null) { - for (Object key : map.keySet()) { - if (this.patternProperties != null) { - this.patternProperties.remove(key); + Iterator each = allOf.iterator(); + List visitables = _visitables.get("allOf"); + while (each.hasNext()) { + V1JSONSchemaPropsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } } return (A) this; } - public Map getPatternProperties() { - return this.patternProperties; - } - - public A withPatternProperties(Map patternProperties) { - if (patternProperties == null) { - this.patternProperties = null; - } else { - this.patternProperties = new LinkedHashMap(patternProperties); - } - return (A) this; - } - - public boolean hasPatternProperties() { - return this.patternProperties != null; - } - - public A addToProperties(String key,V1JSONSchemaProps value) { - if (this.properties == null && key != null && value != null) { - this.properties = new LinkedHashMap(); - } - if (key != null && value != null) { - this.properties.put(key, value); - } - return (A) this; - } - - public A addToProperties(Map map) { - if (this.properties == null && map != null) { - this.properties = new LinkedHashMap(); - } - if (map != null) { - this.properties.putAll(map); - } - return (A) this; - } - - public A removeFromProperties(String key) { - if (this.properties == null) { + public A removeMatchingFromAnyOf(Predicate predicate) { + if (anyOf == null) { return (A) this; } - if (key != null && this.properties != null) { - this.properties.remove(key); + Iterator each = anyOf.iterator(); + List visitables = _visitables.get("anyOf"); + while (each.hasNext()) { + V1JSONSchemaPropsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public A removeFromProperties(Map map) { - if (this.properties == null) { + public A removeMatchingFromOneOf(Predicate predicate) { + if (oneOf == null) { return (A) this; } - if (map != null) { - for (Object key : map.keySet()) { - if (this.properties != null) { - this.properties.remove(key); + Iterator each = oneOf.iterator(); + List visitables = _visitables.get("oneOf"); + while (each.hasNext()) { + V1JSONSchemaPropsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } } return (A) this; } - public Map getProperties() { - return this.properties; - } - - public A withProperties(Map properties) { - if (properties == null) { - this.properties = null; - } else { - this.properties = new LinkedHashMap(properties); - } - return (A) this; - } - - public boolean hasProperties() { - return this.properties != null; - } - - public A addToRequired(int index,String item) { - if (this.required == null) { - this.required = new ArrayList(); - } - this.required.add(index, item); - return (A) this; - } - - public A setToRequired(int index,String item) { - if (this.required == null) { - this.required = new ArrayList(); - } - this.required.set(index, item); - return (A) this; - } - - public A addToRequired(String... items) { - if (this.required == null) { - this.required = new ArrayList(); - } - for (String item : items) { - this.required.add(item); - } - return (A) this; + public AllOfNested setNewAllOfLike(int index,V1JSONSchemaProps item) { + return new AllOfNested(index, item); } - public A addAllToRequired(Collection items) { - if (this.required == null) { - this.required = new ArrayList(); - } - for (String item : items) { - this.required.add(item); - } - return (A) this; + public AnyOfNested setNewAnyOfLike(int index,V1JSONSchemaProps item) { + return new AnyOfNested(index, item); } - public A removeFromRequired(String... items) { - if (this.required == null) { - return (A) this; - } - for (String item : items) { - this.required.remove(item); - } - return (A) this; + public OneOfNested setNewOneOfLike(int index,V1JSONSchemaProps item) { + return new OneOfNested(index, item); } - public A removeAllFromRequired(Collection items) { - if (this.required == null) { - return (A) this; - } - for (String item : items) { - this.required.remove(item); + public A setToAllOf(int index,V1JSONSchemaProps item) { + if (this.allOf == null) { + this.allOf = new ArrayList(); } - return (A) this; - } - - public List getRequired() { - return this.required; - } - - public String getRequired(int index) { - return this.required.get(index); - } - - public String getFirstRequired() { - return this.required.get(0); - } - - public String getLastRequired() { - return this.required.get(required.size() - 1); - } - - public String getMatchingRequired(Predicate predicate) { - for (String item : required) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingRequired(Predicate predicate) { - for (String item : required) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRequired(List required) { - if (required != null) { - this.required = new ArrayList(); - for (String item : required) { - this.addToRequired(item); - } + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + if (index < 0 || index >= allOf.size()) { + _visitables.get("allOf").add(builder); + allOf.add(builder); } else { - this.required = null; - } - return (A) this; - } - - public A withRequired(String... required) { - if (this.required != null) { - this.required.clear(); - _visitables.remove("required"); - } - if (required != null) { - for (String item : required) { - this.addToRequired(item); - } + _visitables.get("allOf").add(builder); + allOf.set(index, builder); } return (A) this; } - public boolean hasRequired() { - return this.required != null && !(this.required.isEmpty()); - } - - public String getTitle() { - return this.title; - } - - public A withTitle(String title) { - this.title = title; - return (A) this; - } - - public boolean hasTitle() { - return this.title != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - - public Boolean getUniqueItems() { - return this.uniqueItems; - } - - public A withUniqueItems(Boolean uniqueItems) { - this.uniqueItems = uniqueItems; - return (A) this; - } - - public boolean hasUniqueItems() { - return this.uniqueItems != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1JSONSchemaPropsFluent that = (V1JSONSchemaPropsFluent) o; - if (!(Objects.equals($ref, that.$ref))) { - return false; - } - if (!(Objects.equals($schema, that.$schema))) { - return false; - } - if (!(Objects.equals(additionalItems, that.additionalItems))) { - return false; - } - if (!(Objects.equals(additionalProperties, that.additionalProperties))) { - return false; - } - if (!(Objects.equals(allOf, that.allOf))) { - return false; - } - if (!(Objects.equals(anyOf, that.anyOf))) { - return false; - } - if (!(Objects.equals(_default, that._default))) { - return false; - } - if (!(Objects.equals(definitions, that.definitions))) { - return false; - } - if (!(Objects.equals(dependencies, that.dependencies))) { - return false; - } - if (!(Objects.equals(description, that.description))) { - return false; - } - if (!(Objects.equals(_enum, that._enum))) { - return false; - } - if (!(Objects.equals(example, that.example))) { - return false; - } - if (!(Objects.equals(exclusiveMaximum, that.exclusiveMaximum))) { - return false; - } - if (!(Objects.equals(exclusiveMinimum, that.exclusiveMinimum))) { - return false; - } - if (!(Objects.equals(externalDocs, that.externalDocs))) { - return false; - } - if (!(Objects.equals(format, that.format))) { - return false; - } - if (!(Objects.equals(id, that.id))) { - return false; - } - if (!(Objects.equals(items, that.items))) { - return false; - } - if (!(Objects.equals(maxItems, that.maxItems))) { - return false; - } - if (!(Objects.equals(maxLength, that.maxLength))) { - return false; - } - if (!(Objects.equals(maxProperties, that.maxProperties))) { - return false; - } - if (!(Objects.equals(maximum, that.maximum))) { - return false; - } - if (!(Objects.equals(minItems, that.minItems))) { - return false; - } - if (!(Objects.equals(minLength, that.minLength))) { - return false; - } - if (!(Objects.equals(minProperties, that.minProperties))) { - return false; - } - if (!(Objects.equals(minimum, that.minimum))) { - return false; - } - if (!(Objects.equals(multipleOf, that.multipleOf))) { - return false; - } - if (!(Objects.equals(not, that.not))) { - return false; - } - if (!(Objects.equals(nullable, that.nullable))) { - return false; - } - if (!(Objects.equals(oneOf, that.oneOf))) { - return false; - } - if (!(Objects.equals(pattern, that.pattern))) { - return false; - } - if (!(Objects.equals(patternProperties, that.patternProperties))) { - return false; - } - if (!(Objects.equals(properties, that.properties))) { - return false; - } - if (!(Objects.equals(required, that.required))) { - return false; + public A setToAnyOf(int index,V1JSONSchemaProps item) { + if (this.anyOf == null) { + this.anyOf = new ArrayList(); } - if (!(Objects.equals(title, that.title))) { - return false; + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + if (index < 0 || index >= anyOf.size()) { + _visitables.get("anyOf").add(builder); + anyOf.add(builder); + } else { + _visitables.get("anyOf").add(builder); + anyOf.set(index, builder); } - if (!(Objects.equals(type, that.type))) { - return false; + return (A) this; + } + + public A setToEnum(int index,Object item) { + if (this._enum == null) { + this._enum = new ArrayList(); } - if (!(Objects.equals(uniqueItems, that.uniqueItems))) { - return false; + this._enum.set(index, item); + return (A) this; + } + + public A setToOneOf(int index,V1JSONSchemaProps item) { + if (this.oneOf == null) { + this.oneOf = new ArrayList(); } - return true; + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + if (index < 0 || index >= oneOf.size()) { + _visitables.get("oneOf").add(builder); + oneOf.add(builder); + } else { + _visitables.get("oneOf").add(builder); + oneOf.set(index, builder); + } + return (A) this; } - 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); + public A setToRequired(int index,String item) { + if (this.required == null) { + this.required = new ArrayList(); + } + this.required.set(index, item); + return (A) this; } public String toString() { @@ -1908,77 +1570,419 @@ public String toString() { sb.append(not); sb.append(","); } - if (!(nullable == null)) { - sb.append("nullable:"); - sb.append(nullable); - sb.append(","); + if (!(nullable == null)) { + sb.append("nullable:"); + sb.append(nullable); + sb.append(","); + } + if (!(oneOf == null) && !(oneOf.isEmpty())) { + sb.append("oneOf:"); + sb.append(oneOf); + sb.append(","); + } + if (!(pattern == null)) { + sb.append("pattern:"); + sb.append(pattern); + sb.append(","); + } + if (!(patternProperties == null) && !(patternProperties.isEmpty())) { + sb.append("patternProperties:"); + sb.append(patternProperties); + sb.append(","); + } + if (!(properties == null) && !(properties.isEmpty())) { + sb.append("properties:"); + sb.append(properties); + sb.append(","); + } + if (!(required == null) && !(required.isEmpty())) { + sb.append("required:"); + sb.append(required); + sb.append(","); + } + if (!(title == null)) { + sb.append("title:"); + sb.append(title); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + sb.append(","); + } + if (!(uniqueItems == null)) { + sb.append("uniqueItems:"); + sb.append(uniqueItems); + } + sb.append("}"); + return sb.toString(); + } + + public A withAdditionalItems(Object additionalItems) { + this.additionalItems = additionalItems; + return (A) this; + } + + public A withAdditionalProperties(Object additionalProperties) { + this.additionalProperties = additionalProperties; + return (A) this; + } + + public A withAllOf(List allOf) { + if (this.allOf != null) { + this._visitables.get("allOf").clear(); + } + if (allOf != null) { + this.allOf = new ArrayList(); + for (V1JSONSchemaProps item : allOf) { + this.addToAllOf(item); + } + } else { + this.allOf = null; + } + return (A) this; + } + + public A withAllOf(V1JSONSchemaProps... allOf) { + if (this.allOf != null) { + this.allOf.clear(); + _visitables.remove("allOf"); + } + if (allOf != null) { + for (V1JSONSchemaProps item : allOf) { + this.addToAllOf(item); + } + } + return (A) this; + } + + public A withAnyOf(List anyOf) { + if (this.anyOf != null) { + this._visitables.get("anyOf").clear(); + } + if (anyOf != null) { + this.anyOf = new ArrayList(); + for (V1JSONSchemaProps item : anyOf) { + this.addToAnyOf(item); + } + } else { + this.anyOf = null; + } + return (A) this; + } + + public A withAnyOf(V1JSONSchemaProps... anyOf) { + if (this.anyOf != null) { + this.anyOf.clear(); + _visitables.remove("anyOf"); + } + if (anyOf != null) { + for (V1JSONSchemaProps item : anyOf) { + this.addToAnyOf(item); + } + } + return (A) this; + } + + public A withDefault(Object _default) { + this._default = _default; + return (A) this; + } + + public A withDefinitions(Map definitions) { + if (definitions == null) { + this.definitions = null; + } else { + this.definitions = new LinkedHashMap(definitions); + } + return (A) this; + } + + public A withDependencies(Map dependencies) { + if (dependencies == null) { + this.dependencies = null; + } else { + this.dependencies = new LinkedHashMap(dependencies); + } + return (A) this; + } + + public A withDescription(String description) { + this.description = description; + return (A) this; + } + + public A withEnum(List _enum) { + if (_enum != null) { + this._enum = new ArrayList(); + for (Object item : _enum) { + this.addToEnum(item); + } + } else { + this._enum = null; + } + return (A) this; + } + + public A withEnum(Object... _enum) { + if (this._enum != null) { + this._enum.clear(); + _visitables.remove("_enum"); + } + if (_enum != null) { + for (Object item : _enum) { + this.addToEnum(item); + } + } + return (A) this; + } + + public A withExample(Object example) { + this.example = example; + return (A) this; + } + + public A withExclusiveMaximum() { + return withExclusiveMaximum(true); + } + + public A withExclusiveMaximum(Boolean exclusiveMaximum) { + this.exclusiveMaximum = exclusiveMaximum; + return (A) this; + } + + public A withExclusiveMinimum() { + return withExclusiveMinimum(true); + } + + public A withExclusiveMinimum(Boolean exclusiveMinimum) { + this.exclusiveMinimum = exclusiveMinimum; + return (A) this; + } + + public A withExternalDocs(V1ExternalDocumentation externalDocs) { + this._visitables.remove("externalDocs"); + if (externalDocs != null) { + this.externalDocs = new V1ExternalDocumentationBuilder(externalDocs); + this._visitables.get("externalDocs").add(this.externalDocs); + } else { + this.externalDocs = null; + this._visitables.get("externalDocs").remove(this.externalDocs); + } + return (A) this; + } + + public A withFormat(String format) { + this.format = format; + return (A) this; + } + + public A withId(String id) { + this.id = id; + return (A) this; + } + + public A withItems(Object items) { + this.items = items; + return (A) this; + } + + public A withMaxItems(Long maxItems) { + this.maxItems = maxItems; + return (A) this; + } + + public A withMaxLength(Long maxLength) { + this.maxLength = maxLength; + return (A) this; + } + + public A withMaxProperties(Long maxProperties) { + this.maxProperties = maxProperties; + return (A) this; + } + + public A withMaximum(Double maximum) { + this.maximum = maximum; + return (A) this; + } + + public A withMinItems(Long minItems) { + this.minItems = minItems; + return (A) this; + } + + public A withMinLength(Long minLength) { + this.minLength = minLength; + return (A) this; + } + + public A withMinProperties(Long minProperties) { + this.minProperties = minProperties; + return (A) this; + } + + public A withMinimum(Double minimum) { + this.minimum = minimum; + return (A) this; + } + + public A withMultipleOf(Double multipleOf) { + this.multipleOf = multipleOf; + return (A) this; + } + + public ExternalDocsNested withNewExternalDocs() { + return new ExternalDocsNested(null); + } + + public ExternalDocsNested withNewExternalDocsLike(V1ExternalDocumentation item) { + return new ExternalDocsNested(item); + } + + public NotNested withNewNot() { + return new NotNested(null); + } + + public NotNested withNewNotLike(V1JSONSchemaProps item) { + return new NotNested(item); + } + + public A withNot(V1JSONSchemaProps not) { + this._visitables.remove("not"); + if (not != null) { + this.not = new V1JSONSchemaPropsBuilder(not); + this._visitables.get("not").add(this.not); + } else { + this.not = null; + this._visitables.get("not").remove(this.not); + } + return (A) this; + } + + public A withNullable() { + return withNullable(true); + } + + public A withNullable(Boolean nullable) { + this.nullable = nullable; + return (A) this; + } + + public A withOneOf(List oneOf) { + if (this.oneOf != null) { + this._visitables.get("oneOf").clear(); } - if (!(oneOf == null) && !(oneOf.isEmpty())) { - sb.append("oneOf:"); - sb.append(oneOf); - sb.append(","); + if (oneOf != null) { + this.oneOf = new ArrayList(); + for (V1JSONSchemaProps item : oneOf) { + this.addToOneOf(item); + } + } else { + this.oneOf = null; } - if (!(pattern == null)) { - sb.append("pattern:"); - sb.append(pattern); - sb.append(","); + return (A) this; + } + + public A withOneOf(V1JSONSchemaProps... oneOf) { + if (this.oneOf != null) { + this.oneOf.clear(); + _visitables.remove("oneOf"); } - if (!(patternProperties == null) && !(patternProperties.isEmpty())) { - sb.append("patternProperties:"); - sb.append(patternProperties); - sb.append(","); + if (oneOf != null) { + for (V1JSONSchemaProps item : oneOf) { + this.addToOneOf(item); + } } - if (!(properties == null) && !(properties.isEmpty())) { - sb.append("properties:"); - sb.append(properties); - sb.append(","); + return (A) this; + } + + public A withPattern(String pattern) { + this.pattern = pattern; + return (A) this; + } + + public A withPatternProperties(Map patternProperties) { + if (patternProperties == null) { + this.patternProperties = null; + } else { + this.patternProperties = new LinkedHashMap(patternProperties); } - if (!(required == null) && !(required.isEmpty())) { - sb.append("required:"); - sb.append(required); - sb.append(","); + return (A) this; + } + + public A withProperties(Map properties) { + if (properties == null) { + this.properties = null; + } else { + this.properties = new LinkedHashMap(properties); } - if (!(title == null)) { - sb.append("title:"); - sb.append(title); - sb.append(","); + return (A) this; + } + + public A withRef(String $ref) { + this.$ref = $ref; + return (A) this; + } + + public A withRequired(List required) { + if (required != null) { + this.required = new ArrayList(); + for (String item : required) { + this.addToRequired(item); + } + } else { + this.required = null; } - if (!(type == null)) { - sb.append("type:"); - sb.append(type); - sb.append(","); + return (A) this; + } + + public A withRequired(String... required) { + if (this.required != null) { + this.required.clear(); + _visitables.remove("required"); } - if (!(uniqueItems == null)) { - sb.append("uniqueItems:"); - sb.append(uniqueItems); + if (required != null) { + for (String item : required) { + this.addToRequired(item); + } } - sb.append("}"); - return sb.toString(); + return (A) this; } - public A withExclusiveMaximum() { - return withExclusiveMaximum(true); + public A withSchema(String $schema) { + this.$schema = $schema; + return (A) this; } - public A withExclusiveMinimum() { - return withExclusiveMinimum(true); + public A withTitle(String title) { + this.title = title; + return (A) this; } - public A withNullable() { - return withNullable(true); + public A withType(String type) { + this.type = type; + return (A) this; } public A withUniqueItems() { return withUniqueItems(true); } + + public A withUniqueItems(Boolean uniqueItems) { + this.uniqueItems = uniqueItems; + return (A) this; + } public class AllOfNested extends V1JSONSchemaPropsFluent> implements Nested{ + + V1JSONSchemaPropsBuilder builder; + int index; + AllOfNested(int index,V1JSONSchemaProps item) { this.index = index; this.builder = new V1JSONSchemaPropsBuilder(this, item); } - V1JSONSchemaPropsBuilder builder; - int index; - + public N and() { return (N) V1JSONSchemaPropsFluent.this.setToAllOf(index, builder.build()); } @@ -1987,16 +1991,17 @@ public N endAllOf() { return and(); } - } public class AnyOfNested extends V1JSONSchemaPropsFluent> implements Nested{ + + V1JSONSchemaPropsBuilder builder; + int index; + AnyOfNested(int index,V1JSONSchemaProps item) { this.index = index; this.builder = new V1JSONSchemaPropsBuilder(this, item); } - V1JSONSchemaPropsBuilder builder; - int index; - + public N and() { return (N) V1JSONSchemaPropsFluent.this.setToAnyOf(index, builder.build()); } @@ -2005,14 +2010,15 @@ public N endAnyOf() { return and(); } - } public class ExternalDocsNested extends V1ExternalDocumentationFluent> implements Nested{ + + V1ExternalDocumentationBuilder builder; + ExternalDocsNested(V1ExternalDocumentation item) { this.builder = new V1ExternalDocumentationBuilder(this, item); } - V1ExternalDocumentationBuilder builder; - + public N and() { return (N) V1JSONSchemaPropsFluent.this.withExternalDocs(builder.build()); } @@ -2021,14 +2027,15 @@ public N endExternalDocs() { return and(); } - } public class NotNested extends V1JSONSchemaPropsFluent> implements Nested{ + + V1JSONSchemaPropsBuilder builder; + NotNested(V1JSONSchemaProps item) { this.builder = new V1JSONSchemaPropsBuilder(this, item); } - V1JSONSchemaPropsBuilder builder; - + public N and() { return (N) V1JSONSchemaPropsFluent.this.withNot(builder.build()); } @@ -2037,16 +2044,17 @@ public N endNot() { return and(); } - } public class OneOfNested extends V1JSONSchemaPropsFluent> implements Nested{ + + V1JSONSchemaPropsBuilder builder; + int index; + OneOfNested(int index,V1JSONSchemaProps item) { this.index = index; this.builder = new V1JSONSchemaPropsBuilder(this, item); } - V1JSONSchemaPropsBuilder builder; - int index; - + public N and() { return (N) V1JSONSchemaPropsFluent.this.setToOneOf(index, builder.build()); } @@ -2055,7 +2063,5 @@ public N endOneOf() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java index b8b4080827..0c81199bfd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1JobBuilder extends V1JobFluent implements VisitableBuilder{ + + V1JobFluent fluent; + public V1JobBuilder() { this(new V1Job()); } @@ -11,17 +14,16 @@ public V1JobBuilder(V1JobFluent fluent) { this(fluent, new V1Job()); } - public V1JobBuilder(V1JobFluent fluent,V1Job instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1JobBuilder(V1Job instance) { this.fluent = this; this.copyInstance(instance); } - V1JobFluent fluent; + public V1JobBuilder(V1JobFluent fluent,V1Job instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Job build() { V1Job buildable = new V1Job(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1Job build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java index fdab5d14c4..69e988d73d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1JobConditionBuilder extends V1JobConditionFluent implements VisitableBuilder{ + + V1JobConditionFluent fluent; + public V1JobConditionBuilder() { this(new V1JobCondition()); } @@ -11,17 +14,16 @@ public V1JobConditionBuilder(V1JobConditionFluent fluent) { this(fluent, new V1JobCondition()); } - public V1JobConditionBuilder(V1JobConditionFluent fluent,V1JobCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1JobConditionBuilder(V1JobCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1JobConditionFluent fluent; + public V1JobConditionBuilder(V1JobConditionFluent fluent,V1JobCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1JobCondition build() { V1JobCondition buildable = new V1JobCondition(); buildable.setLastProbeTime(fluent.getLastProbeTime()); @@ -33,5 +35,4 @@ public V1JobCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java index e9c4a80654..0dc47f192a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java @@ -1,31 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1JobConditionFluent> extends BaseFluent{ - public V1JobConditionFluent() { - } - - public V1JobConditionFluent(V1JobCondition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastProbeTime; private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1JobConditionFluent() { + } + public V1JobConditionFluent(V1JobCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1JobCondition instance) { instance = instance != null ? instance : new V1JobCondition(); if (instance != null) { @@ -38,116 +40,86 @@ protected void copyInstance(V1JobCondition instance) { } } - public OffsetDateTime getLastProbeTime() { - return this.lastProbeTime; - } - - public A withLastProbeTime(OffsetDateTime lastProbeTime) { - this.lastProbeTime = lastProbeTime; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1JobConditionFluent that = (V1JobConditionFluent) o; + if (!(Objects.equals(lastProbeTime, that.lastProbeTime))) { + return false; + } + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastProbeTime() { - return this.lastProbeTime != null; + public OffsetDateTime getLastProbeTime() { + return this.lastProbeTime; } public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public String getStatus() { + return this.status; } - public boolean hasReason() { - return this.reason != null; + public String getType() { + return this.type; } - public String getStatus() { - return this.status; + public boolean hasLastProbeTime() { + return this.lastProbeTime != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; } - public boolean hasStatus() { - return this.status != null; + public boolean hasMessage() { + return this.message != null; } - public String getType() { - return this.type; + public boolean hasReason() { + return this.reason != null; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasStatus() { + return this.status != null; } public boolean hasType() { return this.type != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1JobConditionFluent that = (V1JobConditionFluent) o; - if (!(Objects.equals(lastProbeTime, that.lastProbeTime))) { - return false; - } - if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { - return false; - } - if (!(Objects.equals(message, that.message))) { - return false; - } - if (!(Objects.equals(reason, that.reason))) { - return false; - } - if (!(Objects.equals(status, that.status))) { - return false; - } - if (!(Objects.equals(type, that.type))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type); } @@ -188,5 +160,34 @@ public String toString() { return sb.toString(); } - + public A withLastProbeTime(OffsetDateTime lastProbeTime) { + this.lastProbeTime = lastProbeTime; + return (A) this; + } + + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java index 9bdcf39b0b..00ed8acb54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1JobFluent> extends BaseFluent{ - public V1JobFluent() { - } - - public V1JobFluent(V1Job instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1JobSpecBuilder spec; private V1JobStatusBuilder status; - - protected void copyInstance(V1Job instance) { - instance = instance != null ? instance : new V1Job(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1JobFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1JobFluent(V1Job instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1JobSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1JobStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1Job instance) { + instance = instance != null ? instance : new V1Job(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1JobSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1JobSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1JobSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1JobSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1JobSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1JobSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1JobStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1JobStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1JobStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1JobStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1JobStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1JobStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1JobStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1JobStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1JobSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1JobStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1JobSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1JobSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1JobStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1JobStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1JobFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1JobSpecFluent> implements Nested{ + + V1JobSpecBuilder builder; + SpecNested(V1JobSpec item) { this.builder = new V1JobSpecBuilder(this, item); } - V1JobSpecBuilder builder; - + public N and() { return (N) V1JobFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1JobStatusFluent> implements Nested{ + + V1JobStatusBuilder builder; + StatusNested(V1JobStatus item) { this.builder = new V1JobStatusBuilder(this, item); } - V1JobStatusBuilder builder; - + public N and() { return (N) V1JobFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java index 42ed8d2e25..d3da2ce3b4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1JobListBuilder extends V1JobListFluent implements VisitableBuilder{ + + V1JobListFluent fluent; + public V1JobListBuilder() { this(new V1JobList()); } @@ -11,17 +14,16 @@ public V1JobListBuilder(V1JobListFluent fluent) { this(fluent, new V1JobList()); } - public V1JobListBuilder(V1JobListFluent fluent,V1JobList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1JobListBuilder(V1JobList instance) { this.fluent = this; this.copyInstance(instance); } - V1JobListFluent fluent; + public V1JobListBuilder(V1JobListFluent fluent,V1JobList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1JobList build() { V1JobList buildable = new V1JobList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1JobList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java index b7b2a4457a..efee1947b4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1JobListFluent> extends BaseFluent{ - public V1JobListFluent() { - } - - public V1JobListFluent(V1JobList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1JobList instance) { - instance = instance != null ? instance : new V1JobList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1JobListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1JobListFluent(V1JobList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1Job item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1JobBuilder builder = new V1JobBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1Job item : items) { + V1JobBuilder builder = new V1JobBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1Job item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1JobBuilder builder = new V1JobBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1Job item) { + return new ItemsNested(-1, item); } public A addToItems(V1Job... items) { @@ -96,68 +65,31 @@ public A addToItems(V1Job... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1Job item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1Job item : items) { - V1JobBuilder builder = new V1JobBuilder(item); + V1JobBuilder builder = new V1JobBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1Job... items) { - if (this.items == null) { - return (A) this; - } - for (V1Job item : items) { - V1JobBuilder builder = new V1JobBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1Job item : items) { - V1JobBuilder builder = new V1JobBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1JobBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1Job buildFirstItem() { + return this.items.get(0).build(); } public V1Job buildItem(int index) { return this.items.get(index).build(); } - public V1Job buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1Job buildLastItem() { @@ -173,73 +105,34 @@ public V1Job buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1JobBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Job item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1JobList instance) { + instance = instance != null ? instance : new V1JobList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1Job... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1Job item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Job item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Job item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) { return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1JobBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Job item : items) { + V1JobBuilder builder = new V1JobBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Job... items) { + if (this.items == null) { + return (A) this; + } + for (V1Job item : items) { + V1JobBuilder builder = new V1JobBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1JobBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Job item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1Job item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1JobBuilder builder = new V1JobBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1Job item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1Job... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1Job item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1JobFluent> implements Nested{ + + V1JobBuilder builder; + int index; + ItemsNested(int index,V1Job item) { this.index = index; this.builder = new V1JobBuilder(this, item); } - V1JobBuilder builder; - int index; - + public N and() { return (N) V1JobListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1JobListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java index 779f41f9a7..787e6a6241 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1JobSpecBuilder extends V1JobSpecFluent implements VisitableBuilder{ + + V1JobSpecFluent fluent; + public V1JobSpecBuilder() { this(new V1JobSpec()); } @@ -11,17 +14,16 @@ public V1JobSpecBuilder(V1JobSpecFluent fluent) { this(fluent, new V1JobSpec()); } - public V1JobSpecBuilder(V1JobSpecFluent fluent,V1JobSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1JobSpecBuilder(V1JobSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1JobSpecFluent fluent; + public V1JobSpecBuilder(V1JobSpecFluent fluent,V1JobSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1JobSpec build() { V1JobSpec buildable = new V1JobSpec(); buildable.setActiveDeadlineSeconds(fluent.getActiveDeadlineSeconds()); @@ -43,5 +45,4 @@ public V1JobSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java index 4cb8512298..2acd0bfae1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java @@ -1,28 +1,23 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Boolean; -import java.util.Optional; import java.lang.Integer; import java.lang.Long; -import java.util.Objects; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1JobSpecFluent> extends BaseFluent{ - public V1JobSpecFluent() { - } - - public V1JobSpecFluent(V1JobSpec instance) { - this.copyInstance(instance); - } + private Long activeDeadlineSeconds; private Integer backoffLimit; private Integer backoffLimitPerIndex; @@ -39,6 +34,29 @@ public V1JobSpecFluent(V1JobSpec instance) { private Boolean suspend; private V1PodTemplateSpecBuilder template; private Integer ttlSecondsAfterFinished; + + public V1JobSpecFluent() { + } + + public V1JobSpecFluent(V1JobSpec instance) { + this.copyInstance(instance); + } + + public V1PodFailurePolicy buildPodFailurePolicy() { + return this.podFailurePolicy != null ? this.podFailurePolicy.build() : null; + } + + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; + } + + public V1SuccessPolicy buildSuccessPolicy() { + return this.successPolicy != null ? this.successPolicy.build() : null; + } + + public V1PodTemplateSpec buildTemplate() { + return this.template != null ? this.template.build() : null; + } protected void copyInstance(V1JobSpec instance) { instance = instance != null ? instance : new V1JobSpec(); @@ -62,384 +80,228 @@ protected void copyInstance(V1JobSpec instance) { } } - public Long getActiveDeadlineSeconds() { - return this.activeDeadlineSeconds; - } - - public A withActiveDeadlineSeconds(Long activeDeadlineSeconds) { - this.activeDeadlineSeconds = activeDeadlineSeconds; - return (A) this; + public PodFailurePolicyNested editOrNewPodFailurePolicy() { + return this.withNewPodFailurePolicyLike(Optional.ofNullable(this.buildPodFailurePolicy()).orElse(new V1PodFailurePolicyBuilder().build())); } - public boolean hasActiveDeadlineSeconds() { - return this.activeDeadlineSeconds != null; + public PodFailurePolicyNested editOrNewPodFailurePolicyLike(V1PodFailurePolicy item) { + return this.withNewPodFailurePolicyLike(Optional.ofNullable(this.buildPodFailurePolicy()).orElse(item)); } - public Integer getBackoffLimit() { - return this.backoffLimit; + public SelectorNested editOrNewSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public A withBackoffLimit(Integer backoffLimit) { - this.backoffLimit = backoffLimit; - return (A) this; + public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } - public boolean hasBackoffLimit() { - return this.backoffLimit != null; + public SuccessPolicyNested editOrNewSuccessPolicy() { + return this.withNewSuccessPolicyLike(Optional.ofNullable(this.buildSuccessPolicy()).orElse(new V1SuccessPolicyBuilder().build())); } - public Integer getBackoffLimitPerIndex() { - return this.backoffLimitPerIndex; + public SuccessPolicyNested editOrNewSuccessPolicyLike(V1SuccessPolicy item) { + return this.withNewSuccessPolicyLike(Optional.ofNullable(this.buildSuccessPolicy()).orElse(item)); } - public A withBackoffLimitPerIndex(Integer backoffLimitPerIndex) { - this.backoffLimitPerIndex = backoffLimitPerIndex; - return (A) this; + public TemplateNested editOrNewTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); } - public boolean hasBackoffLimitPerIndex() { - return this.backoffLimitPerIndex != null; + public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); } - public String getCompletionMode() { - return this.completionMode; + public PodFailurePolicyNested editPodFailurePolicy() { + return this.withNewPodFailurePolicyLike(Optional.ofNullable(this.buildPodFailurePolicy()).orElse(null)); } - public A withCompletionMode(String completionMode) { - this.completionMode = completionMode; - return (A) this; + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } - public boolean hasCompletionMode() { - return this.completionMode != null; + public SuccessPolicyNested editSuccessPolicy() { + return this.withNewSuccessPolicyLike(Optional.ofNullable(this.buildSuccessPolicy()).orElse(null)); } - public Integer getCompletions() { - return this.completions; + public TemplateNested editTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); } - public A withCompletions(Integer completions) { - this.completions = completions; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1JobSpecFluent that = (V1JobSpecFluent) o; + if (!(Objects.equals(activeDeadlineSeconds, that.activeDeadlineSeconds))) { + return false; + } + if (!(Objects.equals(backoffLimit, that.backoffLimit))) { + return false; + } + if (!(Objects.equals(backoffLimitPerIndex, that.backoffLimitPerIndex))) { + return false; + } + if (!(Objects.equals(completionMode, that.completionMode))) { + return false; + } + if (!(Objects.equals(completions, that.completions))) { + return false; + } + if (!(Objects.equals(managedBy, that.managedBy))) { + return false; + } + if (!(Objects.equals(manualSelector, that.manualSelector))) { + return false; + } + if (!(Objects.equals(maxFailedIndexes, that.maxFailedIndexes))) { + return false; + } + if (!(Objects.equals(parallelism, that.parallelism))) { + return false; + } + if (!(Objects.equals(podFailurePolicy, that.podFailurePolicy))) { + return false; + } + if (!(Objects.equals(podReplacementPolicy, that.podReplacementPolicy))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(successPolicy, that.successPolicy))) { + return false; + } + if (!(Objects.equals(suspend, that.suspend))) { + return false; + } + if (!(Objects.equals(template, that.template))) { + return false; + } + if (!(Objects.equals(ttlSecondsAfterFinished, that.ttlSecondsAfterFinished))) { + return false; + } + return true; } - public boolean hasCompletions() { - return this.completions != null; + public Long getActiveDeadlineSeconds() { + return this.activeDeadlineSeconds; } - public String getManagedBy() { - return this.managedBy; + public Integer getBackoffLimit() { + return this.backoffLimit; } - public A withManagedBy(String managedBy) { - this.managedBy = managedBy; - return (A) this; + public Integer getBackoffLimitPerIndex() { + return this.backoffLimitPerIndex; } - public boolean hasManagedBy() { - return this.managedBy != null; + public String getCompletionMode() { + return this.completionMode; } - public Boolean getManualSelector() { - return this.manualSelector; + public Integer getCompletions() { + return this.completions; } - public A withManualSelector(Boolean manualSelector) { - this.manualSelector = manualSelector; - return (A) this; + public String getManagedBy() { + return this.managedBy; } - public boolean hasManualSelector() { - return this.manualSelector != null; + public Boolean getManualSelector() { + return this.manualSelector; } public Integer getMaxFailedIndexes() { return this.maxFailedIndexes; } - public A withMaxFailedIndexes(Integer maxFailedIndexes) { - this.maxFailedIndexes = maxFailedIndexes; - return (A) this; - } - - public boolean hasMaxFailedIndexes() { - return this.maxFailedIndexes != null; - } - public Integer getParallelism() { return this.parallelism; } - public A withParallelism(Integer parallelism) { - this.parallelism = parallelism; - return (A) this; - } - - public boolean hasParallelism() { - return this.parallelism != null; - } - - public V1PodFailurePolicy buildPodFailurePolicy() { - return this.podFailurePolicy != null ? this.podFailurePolicy.build() : null; - } - - public A withPodFailurePolicy(V1PodFailurePolicy podFailurePolicy) { - this._visitables.remove("podFailurePolicy"); - if (podFailurePolicy != null) { - this.podFailurePolicy = new V1PodFailurePolicyBuilder(podFailurePolicy); - this._visitables.get("podFailurePolicy").add(this.podFailurePolicy); - } else { - this.podFailurePolicy = null; - this._visitables.get("podFailurePolicy").remove(this.podFailurePolicy); - } - return (A) this; - } - - public boolean hasPodFailurePolicy() { - return this.podFailurePolicy != null; - } - - public PodFailurePolicyNested withNewPodFailurePolicy() { - return new PodFailurePolicyNested(null); - } - - public PodFailurePolicyNested withNewPodFailurePolicyLike(V1PodFailurePolicy item) { - return new PodFailurePolicyNested(item); - } - - public PodFailurePolicyNested editPodFailurePolicy() { - return this.withNewPodFailurePolicyLike(Optional.ofNullable(this.buildPodFailurePolicy()).orElse(null)); - } - - public PodFailurePolicyNested editOrNewPodFailurePolicy() { - return this.withNewPodFailurePolicyLike(Optional.ofNullable(this.buildPodFailurePolicy()).orElse(new V1PodFailurePolicyBuilder().build())); - } - - public PodFailurePolicyNested editOrNewPodFailurePolicyLike(V1PodFailurePolicy item) { - return this.withNewPodFailurePolicyLike(Optional.ofNullable(this.buildPodFailurePolicy()).orElse(item)); - } - public String getPodReplacementPolicy() { return this.podReplacementPolicy; } - public A withPodReplacementPolicy(String podReplacementPolicy) { - this.podReplacementPolicy = podReplacementPolicy; - return (A) this; - } - - public boolean hasPodReplacementPolicy() { - return this.podReplacementPolicy != null; - } - - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public A withSelector(V1LabelSelector selector) { - this._visitables.remove("selector"); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - this._visitables.get("selector").add(this.selector); - } else { - this.selector = null; - this._visitables.get("selector").remove(this.selector); - } - return (A) this; - } - - public boolean hasSelector() { - return this.selector != null; - } - - public SelectorNested withNewSelector() { - return new SelectorNested(null); - } - - public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); - } - - public SelectorNested editSelector() { - return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); - } - - public SelectorNested editOrNewSelector() { - return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); - } - - public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); - } - - public V1SuccessPolicy buildSuccessPolicy() { - return this.successPolicy != null ? this.successPolicy.build() : null; - } - - public A withSuccessPolicy(V1SuccessPolicy successPolicy) { - this._visitables.remove("successPolicy"); - if (successPolicy != null) { - this.successPolicy = new V1SuccessPolicyBuilder(successPolicy); - this._visitables.get("successPolicy").add(this.successPolicy); - } else { - this.successPolicy = null; - this._visitables.get("successPolicy").remove(this.successPolicy); - } - return (A) this; - } - - public boolean hasSuccessPolicy() { - return this.successPolicy != null; - } - - public SuccessPolicyNested withNewSuccessPolicy() { - return new SuccessPolicyNested(null); - } - - public SuccessPolicyNested withNewSuccessPolicyLike(V1SuccessPolicy item) { - return new SuccessPolicyNested(item); + public Boolean getSuspend() { + return this.suspend; } - public SuccessPolicyNested editSuccessPolicy() { - return this.withNewSuccessPolicyLike(Optional.ofNullable(this.buildSuccessPolicy()).orElse(null)); + public Integer getTtlSecondsAfterFinished() { + return this.ttlSecondsAfterFinished; } - public SuccessPolicyNested editOrNewSuccessPolicy() { - return this.withNewSuccessPolicyLike(Optional.ofNullable(this.buildSuccessPolicy()).orElse(new V1SuccessPolicyBuilder().build())); + public boolean hasActiveDeadlineSeconds() { + return this.activeDeadlineSeconds != null; } - public SuccessPolicyNested editOrNewSuccessPolicyLike(V1SuccessPolicy item) { - return this.withNewSuccessPolicyLike(Optional.ofNullable(this.buildSuccessPolicy()).orElse(item)); + public boolean hasBackoffLimit() { + return this.backoffLimit != null; } - public Boolean getSuspend() { - return this.suspend; + public boolean hasBackoffLimitPerIndex() { + return this.backoffLimitPerIndex != null; } - public A withSuspend(Boolean suspend) { - this.suspend = suspend; - return (A) this; + public boolean hasCompletionMode() { + return this.completionMode != null; } - public boolean hasSuspend() { - return this.suspend != null; + public boolean hasCompletions() { + return this.completions != null; } - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; + public boolean hasManagedBy() { + return this.managedBy != null; } - public A withTemplate(V1PodTemplateSpec template) { - this._visitables.remove("template"); - if (template != null) { - this.template = new V1PodTemplateSpecBuilder(template); - this._visitables.get("template").add(this.template); - } else { - this.template = null; - this._visitables.get("template").remove(this.template); - } - return (A) this; + public boolean hasManualSelector() { + return this.manualSelector != null; } - public boolean hasTemplate() { - return this.template != null; + public boolean hasMaxFailedIndexes() { + return this.maxFailedIndexes != null; } - public TemplateNested withNewTemplate() { - return new TemplateNested(null); + public boolean hasParallelism() { + return this.parallelism != null; } - public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); + public boolean hasPodFailurePolicy() { + return this.podFailurePolicy != null; } - public TemplateNested editTemplate() { - return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); + public boolean hasPodReplacementPolicy() { + return this.podReplacementPolicy != null; } - public TemplateNested editOrNewTemplate() { - return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); + public boolean hasSelector() { + return this.selector != null; } - public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); + public boolean hasSuccessPolicy() { + return this.successPolicy != null; } - public Integer getTtlSecondsAfterFinished() { - return this.ttlSecondsAfterFinished; + public boolean hasSuspend() { + return this.suspend != null; } - public A withTtlSecondsAfterFinished(Integer ttlSecondsAfterFinished) { - this.ttlSecondsAfterFinished = ttlSecondsAfterFinished; - return (A) this; + public boolean hasTemplate() { + return this.template != null; } public boolean hasTtlSecondsAfterFinished() { return this.ttlSecondsAfterFinished != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1JobSpecFluent that = (V1JobSpecFluent) o; - if (!(Objects.equals(activeDeadlineSeconds, that.activeDeadlineSeconds))) { - return false; - } - if (!(Objects.equals(backoffLimit, that.backoffLimit))) { - return false; - } - if (!(Objects.equals(backoffLimitPerIndex, that.backoffLimitPerIndex))) { - return false; - } - if (!(Objects.equals(completionMode, that.completionMode))) { - return false; - } - if (!(Objects.equals(completions, that.completions))) { - return false; - } - if (!(Objects.equals(managedBy, that.managedBy))) { - return false; - } - if (!(Objects.equals(manualSelector, that.manualSelector))) { - return false; - } - if (!(Objects.equals(maxFailedIndexes, that.maxFailedIndexes))) { - return false; - } - if (!(Objects.equals(parallelism, that.parallelism))) { - return false; - } - if (!(Objects.equals(podFailurePolicy, that.podFailurePolicy))) { - return false; - } - if (!(Objects.equals(podReplacementPolicy, that.podReplacementPolicy))) { - return false; - } - if (!(Objects.equals(selector, that.selector))) { - return false; - } - if (!(Objects.equals(successPolicy, that.successPolicy))) { - return false; - } - if (!(Objects.equals(suspend, that.suspend))) { - return false; - } - if (!(Objects.equals(template, that.template))) { - return false; - } - if (!(Objects.equals(ttlSecondsAfterFinished, that.ttlSecondsAfterFinished))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(activeDeadlineSeconds, backoffLimit, backoffLimitPerIndex, completionMode, completions, managedBy, manualSelector, maxFailedIndexes, parallelism, podFailurePolicy, podReplacementPolicy, selector, successPolicy, suspend, template, ttlSecondsAfterFinished); } @@ -530,19 +392,161 @@ public String toString() { return sb.toString(); } + public A withActiveDeadlineSeconds(Long activeDeadlineSeconds) { + this.activeDeadlineSeconds = activeDeadlineSeconds; + return (A) this; + } + + public A withBackoffLimit(Integer backoffLimit) { + this.backoffLimit = backoffLimit; + return (A) this; + } + + public A withBackoffLimitPerIndex(Integer backoffLimitPerIndex) { + this.backoffLimitPerIndex = backoffLimitPerIndex; + return (A) this; + } + + public A withCompletionMode(String completionMode) { + this.completionMode = completionMode; + return (A) this; + } + + public A withCompletions(Integer completions) { + this.completions = completions; + return (A) this; + } + + public A withManagedBy(String managedBy) { + this.managedBy = managedBy; + return (A) this; + } + public A withManualSelector() { return withManualSelector(true); } + public A withManualSelector(Boolean manualSelector) { + this.manualSelector = manualSelector; + return (A) this; + } + + public A withMaxFailedIndexes(Integer maxFailedIndexes) { + this.maxFailedIndexes = maxFailedIndexes; + return (A) this; + } + + public PodFailurePolicyNested withNewPodFailurePolicy() { + return new PodFailurePolicyNested(null); + } + + public PodFailurePolicyNested withNewPodFailurePolicyLike(V1PodFailurePolicy item) { + return new PodFailurePolicyNested(item); + } + + public SelectorNested withNewSelector() { + return new SelectorNested(null); + } + + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); + } + + public SuccessPolicyNested withNewSuccessPolicy() { + return new SuccessPolicyNested(null); + } + + public SuccessPolicyNested withNewSuccessPolicyLike(V1SuccessPolicy item) { + return new SuccessPolicyNested(item); + } + + public TemplateNested withNewTemplate() { + return new TemplateNested(null); + } + + public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { + return new TemplateNested(item); + } + + public A withParallelism(Integer parallelism) { + this.parallelism = parallelism; + return (A) this; + } + + public A withPodFailurePolicy(V1PodFailurePolicy podFailurePolicy) { + this._visitables.remove("podFailurePolicy"); + if (podFailurePolicy != null) { + this.podFailurePolicy = new V1PodFailurePolicyBuilder(podFailurePolicy); + this._visitables.get("podFailurePolicy").add(this.podFailurePolicy); + } else { + this.podFailurePolicy = null; + this._visitables.get("podFailurePolicy").remove(this.podFailurePolicy); + } + return (A) this; + } + + public A withPodReplacementPolicy(String podReplacementPolicy) { + this.podReplacementPolicy = podReplacementPolicy; + return (A) this; + } + + public A withSelector(V1LabelSelector selector) { + this._visitables.remove("selector"); + if (selector != null) { + this.selector = new V1LabelSelectorBuilder(selector); + this._visitables.get("selector").add(this.selector); + } else { + this.selector = null; + this._visitables.get("selector").remove(this.selector); + } + return (A) this; + } + + public A withSuccessPolicy(V1SuccessPolicy successPolicy) { + this._visitables.remove("successPolicy"); + if (successPolicy != null) { + this.successPolicy = new V1SuccessPolicyBuilder(successPolicy); + this._visitables.get("successPolicy").add(this.successPolicy); + } else { + this.successPolicy = null; + this._visitables.get("successPolicy").remove(this.successPolicy); + } + return (A) this; + } + public A withSuspend() { return withSuspend(true); } + + public A withSuspend(Boolean suspend) { + this.suspend = suspend; + return (A) this; + } + + public A withTemplate(V1PodTemplateSpec template) { + this._visitables.remove("template"); + if (template != null) { + this.template = new V1PodTemplateSpecBuilder(template); + this._visitables.get("template").add(this.template); + } else { + this.template = null; + this._visitables.get("template").remove(this.template); + } + return (A) this; + } + + public A withTtlSecondsAfterFinished(Integer ttlSecondsAfterFinished) { + this.ttlSecondsAfterFinished = ttlSecondsAfterFinished; + return (A) this; + } public class PodFailurePolicyNested extends V1PodFailurePolicyFluent> implements Nested{ + + V1PodFailurePolicyBuilder builder; + PodFailurePolicyNested(V1PodFailurePolicy item) { this.builder = new V1PodFailurePolicyBuilder(this, item); } - V1PodFailurePolicyBuilder builder; - + public N and() { return (N) V1JobSpecFluent.this.withPodFailurePolicy(builder.build()); } @@ -551,14 +555,15 @@ public N endPodFailurePolicy() { return and(); } - } public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + SelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1JobSpecFluent.this.withSelector(builder.build()); } @@ -567,14 +572,15 @@ public N endSelector() { return and(); } - } public class SuccessPolicyNested extends V1SuccessPolicyFluent> implements Nested{ + + V1SuccessPolicyBuilder builder; + SuccessPolicyNested(V1SuccessPolicy item) { this.builder = new V1SuccessPolicyBuilder(this, item); } - V1SuccessPolicyBuilder builder; - + public N and() { return (N) V1JobSpecFluent.this.withSuccessPolicy(builder.build()); } @@ -583,14 +589,15 @@ public N endSuccessPolicy() { return and(); } - } public class TemplateNested extends V1PodTemplateSpecFluent> implements Nested{ + + V1PodTemplateSpecBuilder builder; + TemplateNested(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - V1PodTemplateSpecBuilder builder; - + public N and() { return (N) V1JobSpecFluent.this.withTemplate(builder.build()); } @@ -599,7 +606,5 @@ public N endTemplate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java index 6d0f631802..a8cf7e80e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1JobStatusBuilder extends V1JobStatusFluent implements VisitableBuilder{ + + V1JobStatusFluent fluent; + public V1JobStatusBuilder() { this(new V1JobStatus()); } @@ -11,17 +14,16 @@ public V1JobStatusBuilder(V1JobStatusFluent fluent) { this(fluent, new V1JobStatus()); } - public V1JobStatusBuilder(V1JobStatusFluent fluent,V1JobStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1JobStatusBuilder(V1JobStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1JobStatusFluent fluent; + public V1JobStatusBuilder(V1JobStatusFluent fluent,V1JobStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1JobStatus build() { V1JobStatus buildable = new V1JobStatus(); buildable.setActive(fluent.getActive()); @@ -38,5 +40,4 @@ public V1JobStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java index 35403df1c4..c647e5d291 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java @@ -1,33 +1,28 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; +import java.time.OffsetDateTime; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; -import java.lang.Integer; -import java.time.OffsetDateTime; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1JobStatusFluent> extends BaseFluent{ - public V1JobStatusFluent() { - } - - public V1JobStatusFluent(V1JobStatus instance) { - this.copyInstance(instance); - } + private Integer active; private String completedIndexes; private OffsetDateTime completionTime; @@ -39,91 +34,32 @@ public V1JobStatusFluent(V1JobStatus instance) { private Integer succeeded; private Integer terminating; private V1UncountedTerminatedPodsBuilder uncountedTerminatedPods; - - protected void copyInstance(V1JobStatus instance) { - instance = instance != null ? instance : new V1JobStatus(); - if (instance != null) { - this.withActive(instance.getActive()); - this.withCompletedIndexes(instance.getCompletedIndexes()); - this.withCompletionTime(instance.getCompletionTime()); - this.withConditions(instance.getConditions()); - this.withFailed(instance.getFailed()); - this.withFailedIndexes(instance.getFailedIndexes()); - this.withReady(instance.getReady()); - this.withStartTime(instance.getStartTime()); - this.withSucceeded(instance.getSucceeded()); - this.withTerminating(instance.getTerminating()); - this.withUncountedTerminatedPods(instance.getUncountedTerminatedPods()); - } - } - - public Integer getActive() { - return this.active; - } - - public A withActive(Integer active) { - this.active = active; - return (A) this; - } - - public boolean hasActive() { - return this.active != null; - } - - public String getCompletedIndexes() { - return this.completedIndexes; - } - - public A withCompletedIndexes(String completedIndexes) { - this.completedIndexes = completedIndexes; - return (A) this; - } - - public boolean hasCompletedIndexes() { - return this.completedIndexes != null; - } - - public OffsetDateTime getCompletionTime() { - return this.completionTime; - } - - public A withCompletionTime(OffsetDateTime completionTime) { - this.completionTime = completionTime; - return (A) this; + + public V1JobStatusFluent() { } - public boolean hasCompletionTime() { - return this.completionTime != null; + public V1JobStatusFluent(V1JobStatus instance) { + this.copyInstance(instance); } - - public A addToConditions(int index,V1JobCondition item) { + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1JobConditionBuilder builder = new V1JobConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1JobCondition item : items) { + V1JobConditionBuilder builder = new V1JobConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1JobCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1JobConditionBuilder builder = new V1JobConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1JobCondition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1JobCondition... items) { @@ -138,66 +74,29 @@ public A addToConditions(V1JobCondition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1JobCondition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1JobCondition item : items) { - V1JobConditionBuilder builder = new V1JobConditionBuilder(item); + V1JobConditionBuilder builder = new V1JobConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1JobCondition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1JobCondition item : items) { - V1JobConditionBuilder builder = new V1JobConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1JobCondition item : items) { - V1JobConditionBuilder builder = new V1JobConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1JobConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1JobCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1JobCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1JobCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -215,61 +114,29 @@ public V1JobCondition buildMatchingCondition(Predicate pr return null; } - public boolean hasMatchingCondition(Predicate predicate) { - for (V1JobConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1JobCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + public V1UncountedTerminatedPods buildUncountedTerminatedPods() { + return this.uncountedTerminatedPods != null ? this.uncountedTerminatedPods.build() : null; } - public A withConditions(V1JobCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1JobCondition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1JobStatus instance) { + instance = instance != null ? instance : new V1JobStatus(); + if (instance != null) { + this.withActive(instance.getActive()); + this.withCompletedIndexes(instance.getCompletedIndexes()); + this.withCompletionTime(instance.getCompletionTime()); + this.withConditions(instance.getConditions()); + this.withFailed(instance.getFailed()); + this.withFailedIndexes(instance.getFailedIndexes()); + this.withReady(instance.getReady()); + this.withStartTime(instance.getStartTime()); + this.withSucceeded(instance.getSucceeded()); + this.withTerminating(instance.getTerminating()); + this.withUncountedTerminatedPods(instance.getUncountedTerminatedPods()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1JobCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1JobCondition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -304,173 +171,215 @@ public ConditionsNested editMatchingCondition(Predicate editOrNewUncountedTerminatedPods() { + return this.withNewUncountedTerminatedPodsLike(Optional.ofNullable(this.buildUncountedTerminatedPods()).orElse(new V1UncountedTerminatedPodsBuilder().build())); } - public boolean hasFailed() { - return this.failed != null; + public UncountedTerminatedPodsNested editOrNewUncountedTerminatedPodsLike(V1UncountedTerminatedPods item) { + return this.withNewUncountedTerminatedPodsLike(Optional.ofNullable(this.buildUncountedTerminatedPods()).orElse(item)); } - public String getFailedIndexes() { - return this.failedIndexes; + public UncountedTerminatedPodsNested editUncountedTerminatedPods() { + return this.withNewUncountedTerminatedPodsLike(Optional.ofNullable(this.buildUncountedTerminatedPods()).orElse(null)); } - public A withFailedIndexes(String failedIndexes) { - this.failedIndexes = failedIndexes; - return (A) this; - } + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1JobStatusFluent that = (V1JobStatusFluent) o; + if (!(Objects.equals(active, that.active))) { + return false; + } + if (!(Objects.equals(completedIndexes, that.completedIndexes))) { + return false; + } + if (!(Objects.equals(completionTime, that.completionTime))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(failed, that.failed))) { + return false; + } + if (!(Objects.equals(failedIndexes, that.failedIndexes))) { + return false; + } + if (!(Objects.equals(ready, that.ready))) { + return false; + } + if (!(Objects.equals(startTime, that.startTime))) { + return false; + } + if (!(Objects.equals(succeeded, that.succeeded))) { + return false; + } + if (!(Objects.equals(terminating, that.terminating))) { + return false; + } + if (!(Objects.equals(uncountedTerminatedPods, that.uncountedTerminatedPods))) { + return false; + } + return true; + } - public boolean hasFailedIndexes() { - return this.failedIndexes != null; + public Integer getActive() { + return this.active; } - public Integer getReady() { - return this.ready; + public String getCompletedIndexes() { + return this.completedIndexes; } - public A withReady(Integer ready) { - this.ready = ready; - return (A) this; + public OffsetDateTime getCompletionTime() { + return this.completionTime; } - public boolean hasReady() { - return this.ready != null; + public Integer getFailed() { + return this.failed; } - public OffsetDateTime getStartTime() { - return this.startTime; + public String getFailedIndexes() { + return this.failedIndexes; } - public A withStartTime(OffsetDateTime startTime) { - this.startTime = startTime; - return (A) this; + public Integer getReady() { + return this.ready; } - public boolean hasStartTime() { - return this.startTime != null; + public OffsetDateTime getStartTime() { + return this.startTime; } public Integer getSucceeded() { return this.succeeded; } - public A withSucceeded(Integer succeeded) { - this.succeeded = succeeded; - return (A) this; + public Integer getTerminating() { + return this.terminating; } - public boolean hasSucceeded() { - return this.succeeded != null; + public boolean hasActive() { + return this.active != null; } - public Integer getTerminating() { - return this.terminating; + public boolean hasCompletedIndexes() { + return this.completedIndexes != null; } - public A withTerminating(Integer terminating) { - this.terminating = terminating; - return (A) this; + public boolean hasCompletionTime() { + return this.completionTime != null; } - public boolean hasTerminating() { - return this.terminating != null; + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); } - public V1UncountedTerminatedPods buildUncountedTerminatedPods() { - return this.uncountedTerminatedPods != null ? this.uncountedTerminatedPods.build() : null; + public boolean hasFailed() { + return this.failed != null; } - public A withUncountedTerminatedPods(V1UncountedTerminatedPods uncountedTerminatedPods) { - this._visitables.remove("uncountedTerminatedPods"); - if (uncountedTerminatedPods != null) { - this.uncountedTerminatedPods = new V1UncountedTerminatedPodsBuilder(uncountedTerminatedPods); - this._visitables.get("uncountedTerminatedPods").add(this.uncountedTerminatedPods); - } else { - this.uncountedTerminatedPods = null; - this._visitables.get("uncountedTerminatedPods").remove(this.uncountedTerminatedPods); - } - return (A) this; + public boolean hasFailedIndexes() { + return this.failedIndexes != null; } - public boolean hasUncountedTerminatedPods() { - return this.uncountedTerminatedPods != null; + public boolean hasMatchingCondition(Predicate predicate) { + for (V1JobConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public UncountedTerminatedPodsNested withNewUncountedTerminatedPods() { - return new UncountedTerminatedPodsNested(null); + public boolean hasReady() { + return this.ready != null; } - public UncountedTerminatedPodsNested withNewUncountedTerminatedPodsLike(V1UncountedTerminatedPods item) { - return new UncountedTerminatedPodsNested(item); + public boolean hasStartTime() { + return this.startTime != null; } - public UncountedTerminatedPodsNested editUncountedTerminatedPods() { - return this.withNewUncountedTerminatedPodsLike(Optional.ofNullable(this.buildUncountedTerminatedPods()).orElse(null)); + public boolean hasSucceeded() { + return this.succeeded != null; } - public UncountedTerminatedPodsNested editOrNewUncountedTerminatedPods() { - return this.withNewUncountedTerminatedPodsLike(Optional.ofNullable(this.buildUncountedTerminatedPods()).orElse(new V1UncountedTerminatedPodsBuilder().build())); + public boolean hasTerminating() { + return this.terminating != null; } - public UncountedTerminatedPodsNested editOrNewUncountedTerminatedPodsLike(V1UncountedTerminatedPods item) { - return this.withNewUncountedTerminatedPodsLike(Optional.ofNullable(this.buildUncountedTerminatedPods()).orElse(item)); + public boolean hasUncountedTerminatedPods() { + return this.uncountedTerminatedPods != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1JobStatusFluent that = (V1JobStatusFluent) o; - if (!(Objects.equals(active, that.active))) { - return false; - } - if (!(Objects.equals(completedIndexes, that.completedIndexes))) { - return false; - } - if (!(Objects.equals(completionTime, that.completionTime))) { - return false; - } - if (!(Objects.equals(conditions, that.conditions))) { - return false; - } - if (!(Objects.equals(failed, that.failed))) { - return false; - } - if (!(Objects.equals(failedIndexes, that.failedIndexes))) { - return false; + public int hashCode() { + return Objects.hash(active, completedIndexes, completionTime, conditions, failed, failedIndexes, ready, startTime, succeeded, terminating, uncountedTerminatedPods); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; } - if (!(Objects.equals(ready, that.ready))) { - return false; + for (V1JobCondition item : items) { + V1JobConditionBuilder builder = new V1JobConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } - if (!(Objects.equals(startTime, that.startTime))) { - return false; + return (A) this; + } + + public A removeFromConditions(V1JobCondition... items) { + if (this.conditions == null) { + return (A) this; } - if (!(Objects.equals(succeeded, that.succeeded))) { - return false; + for (V1JobCondition item : items) { + V1JobConditionBuilder builder = new V1JobConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } - if (!(Objects.equals(terminating, that.terminating))) { - return false; + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; } - if (!(Objects.equals(uncountedTerminatedPods, that.uncountedTerminatedPods))) { - return false; + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1JobConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(active, completedIndexes, completionTime, conditions, failed, failedIndexes, ready, startTime, succeeded, terminating, uncountedTerminatedPods); + public ConditionsNested setNewConditionLike(int index,V1JobCondition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1JobCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1JobConditionBuilder builder = new V1JobConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; } public String toString() { @@ -533,14 +442,109 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withActive(Integer active) { + this.active = active; + return (A) this; + } + + public A withCompletedIndexes(String completedIndexes) { + this.completedIndexes = completedIndexes; + return (A) this; + } + + public A withCompletionTime(OffsetDateTime completionTime) { + this.completionTime = completionTime; + return (A) this; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1JobCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1JobCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1JobCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withFailed(Integer failed) { + this.failed = failed; + return (A) this; + } + + public A withFailedIndexes(String failedIndexes) { + this.failedIndexes = failedIndexes; + return (A) this; + } + + public UncountedTerminatedPodsNested withNewUncountedTerminatedPods() { + return new UncountedTerminatedPodsNested(null); + } + + public UncountedTerminatedPodsNested withNewUncountedTerminatedPodsLike(V1UncountedTerminatedPods item) { + return new UncountedTerminatedPodsNested(item); + } + + public A withReady(Integer ready) { + this.ready = ready; + return (A) this; + } + + public A withStartTime(OffsetDateTime startTime) { + this.startTime = startTime; + return (A) this; + } + + public A withSucceeded(Integer succeeded) { + this.succeeded = succeeded; + return (A) this; + } + + public A withTerminating(Integer terminating) { + this.terminating = terminating; + return (A) this; + } + + public A withUncountedTerminatedPods(V1UncountedTerminatedPods uncountedTerminatedPods) { + this._visitables.remove("uncountedTerminatedPods"); + if (uncountedTerminatedPods != null) { + this.uncountedTerminatedPods = new V1UncountedTerminatedPodsBuilder(uncountedTerminatedPods); + this._visitables.get("uncountedTerminatedPods").add(this.uncountedTerminatedPods); + } else { + this.uncountedTerminatedPods = null; + this._visitables.get("uncountedTerminatedPods").remove(this.uncountedTerminatedPods); + } + return (A) this; + } public class ConditionsNested extends V1JobConditionFluent> implements Nested{ + + V1JobConditionBuilder builder; + int index; + ConditionsNested(int index,V1JobCondition item) { this.index = index; this.builder = new V1JobConditionBuilder(this, item); } - V1JobConditionBuilder builder; - int index; - + public N and() { return (N) V1JobStatusFluent.this.setToConditions(index, builder.build()); } @@ -549,14 +553,15 @@ public N endCondition() { return and(); } - } public class UncountedTerminatedPodsNested extends V1UncountedTerminatedPodsFluent> implements Nested{ + + V1UncountedTerminatedPodsBuilder builder; + UncountedTerminatedPodsNested(V1UncountedTerminatedPods item) { this.builder = new V1UncountedTerminatedPodsBuilder(this, item); } - V1UncountedTerminatedPodsBuilder builder; - + public N and() { return (N) V1JobStatusFluent.this.withUncountedTerminatedPods(builder.build()); } @@ -565,7 +570,5 @@ public N endUncountedTerminatedPods() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java index bc916c2718..a5e18270df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1JobTemplateSpecBuilder extends V1JobTemplateSpecFluent implements VisitableBuilder{ + + V1JobTemplateSpecFluent fluent; + public V1JobTemplateSpecBuilder() { this(new V1JobTemplateSpec()); } @@ -11,17 +14,16 @@ public V1JobTemplateSpecBuilder(V1JobTemplateSpecFluent fluent) { this(fluent, new V1JobTemplateSpec()); } - public V1JobTemplateSpecBuilder(V1JobTemplateSpecFluent fluent,V1JobTemplateSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1JobTemplateSpecBuilder(V1JobTemplateSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1JobTemplateSpecFluent fluent; + public V1JobTemplateSpecBuilder(V1JobTemplateSpecFluent fluent,V1JobTemplateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1JobTemplateSpec build() { V1JobTemplateSpec buildable = new V1JobTemplateSpec(); buildable.setMetadata(fluent.buildMetadata()); @@ -29,5 +31,4 @@ public V1JobTemplateSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java index 6fceef3e08..8226e6b63c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java @@ -1,27 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1JobTemplateSpecFluent> extends BaseFluent{ + + private V1ObjectMetaBuilder metadata; + private V1JobSpecBuilder spec; + public V1JobTemplateSpecFluent() { } public V1JobTemplateSpecFluent(V1JobTemplateSpec instance) { this.copyInstance(instance); } - private V1ObjectMetaBuilder metadata; - private V1JobSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1JobSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1JobTemplateSpec instance) { instance = instance != null ? instance : new V1JobTemplateSpec(); @@ -31,34 +41,6 @@ protected void copyInstance(V1JobTemplateSpec instance) { } } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -71,38 +53,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1JobSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1JobSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1JobSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1JobSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1JobSpecBuilder().build())); } @@ -111,6 +61,10 @@ public SpecNested editOrNewSpecLike(V1JobSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -131,6 +85,14 @@ public boolean equals(Object o) { return true; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(metadata, spec); } @@ -150,12 +112,54 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1JobSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1JobSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1JobSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1JobTemplateSpecFluent.this.withMetadata(builder.build()); } @@ -164,14 +168,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1JobSpecFluent> implements Nested{ + + V1JobSpecBuilder builder; + SpecNested(V1JobSpec item) { this.builder = new V1JobSpecBuilder(this, item); } - V1JobSpecBuilder builder; - + public N and() { return (N) V1JobTemplateSpecFluent.this.withSpec(builder.build()); } @@ -180,7 +185,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java index 1c12152697..9445165ac3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1KeyToPathBuilder extends V1KeyToPathFluent implements VisitableBuilder{ + + V1KeyToPathFluent fluent; + public V1KeyToPathBuilder() { this(new V1KeyToPath()); } @@ -11,17 +14,16 @@ public V1KeyToPathBuilder(V1KeyToPathFluent fluent) { this(fluent, new V1KeyToPath()); } - public V1KeyToPathBuilder(V1KeyToPathFluent fluent,V1KeyToPath instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1KeyToPathBuilder(V1KeyToPath instance) { this.fluent = this; this.copyInstance(instance); } - V1KeyToPathFluent fluent; + public V1KeyToPathBuilder(V1KeyToPathFluent fluent,V1KeyToPath instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1KeyToPath build() { V1KeyToPath buildable = new V1KeyToPath(); buildable.setKey(fluent.getKey()); @@ -30,5 +32,4 @@ public V1KeyToPath build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java index c4b4677ad8..07b4bced04 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1KeyToPathFluent> extends BaseFluent{ + + private String key; + private Integer mode; + private String path; + public V1KeyToPathFluent() { } public V1KeyToPathFluent(V1KeyToPath instance) { this.copyInstance(instance); } - private String key; - private Integer mode; - private String path; - + protected void copyInstance(V1KeyToPath instance) { instance = instance != null ? instance : new V1KeyToPath(); if (instance != null) { @@ -32,45 +34,6 @@ protected void copyInstance(V1KeyToPath instance) { } } - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public Integer getMode() { - return this.mode; - } - - public A withMode(Integer mode) { - this.mode = mode; - return (A) this; - } - - public boolean hasMode() { - return this.mode != null; - } - - public String getPath() { - return this.path; - } - - public A withPath(String path) { - this.path = path; - return (A) this; - } - - public boolean hasPath() { - return this.path != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -94,6 +57,30 @@ public boolean equals(Object o) { return true; } + public String getKey() { + return this.key; + } + + public Integer getMode() { + return this.mode; + } + + public String getPath() { + return this.path; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasMode() { + return this.mode != null; + } + + public boolean hasPath() { + return this.path != null; + } + public int hashCode() { return Objects.hash(key, mode, path); } @@ -119,5 +106,19 @@ public String toString() { return sb.toString(); } - + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withMode(Integer mode) { + this.mode = mode; + return (A) this; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesBuilder.java index fa15d0df7c..46949d7ef5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LabelSelectorAttributesBuilder extends V1LabelSelectorAttributesFluent implements VisitableBuilder{ + + V1LabelSelectorAttributesFluent fluent; + public V1LabelSelectorAttributesBuilder() { this(new V1LabelSelectorAttributes()); } @@ -11,17 +14,16 @@ public V1LabelSelectorAttributesBuilder(V1LabelSelectorAttributesFluent fluen this(fluent, new V1LabelSelectorAttributes()); } - public V1LabelSelectorAttributesBuilder(V1LabelSelectorAttributesFluent fluent,V1LabelSelectorAttributes instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LabelSelectorAttributesBuilder(V1LabelSelectorAttributes instance) { this.fluent = this; this.copyInstance(instance); } - V1LabelSelectorAttributesFluent fluent; + public V1LabelSelectorAttributesBuilder(V1LabelSelectorAttributesFluent fluent,V1LabelSelectorAttributes instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LabelSelectorAttributes build() { V1LabelSelectorAttributes buildable = new V1LabelSelectorAttributes(); buildable.setRawSelector(fluent.getRawSelector()); @@ -29,5 +31,4 @@ public V1LabelSelectorAttributes build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesFluent.java index f45bde7eb9..1964aa33fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesFluent.java @@ -1,82 +1,53 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1LabelSelectorAttributesFluent> extends BaseFluent{ + + private String rawSelector; + private ArrayList requirements; + public V1LabelSelectorAttributesFluent() { } public V1LabelSelectorAttributesFluent(V1LabelSelectorAttributes instance) { this.copyInstance(instance); } - private String rawSelector; - private ArrayList requirements; - - protected void copyInstance(V1LabelSelectorAttributes instance) { - instance = instance != null ? instance : new V1LabelSelectorAttributes(); - if (instance != null) { - this.withRawSelector(instance.getRawSelector()); - this.withRequirements(instance.getRequirements()); - } - } - - public String getRawSelector() { - return this.rawSelector; - } - - public A withRawSelector(String rawSelector) { - this.rawSelector = rawSelector; - return (A) this; - } - - public boolean hasRawSelector() { - return this.rawSelector != null; - } - - public A addToRequirements(int index,V1LabelSelectorRequirement item) { + + public A addAllToRequirements(Collection items) { if (this.requirements == null) { this.requirements = new ArrayList(); } - V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - if (index < 0 || index >= requirements.size()) { - _visitables.get("requirements").add(builder); - requirements.add(builder); - } else { + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); _visitables.get("requirements").add(builder); - requirements.add(index, builder); + this.requirements.add(builder); } return (A) this; } - public A setToRequirements(int index,V1LabelSelectorRequirement item) { - if (this.requirements == null) { - this.requirements = new ArrayList(); - } - V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - if (index < 0 || index >= requirements.size()) { - _visitables.get("requirements").add(builder); - requirements.add(builder); - } else { - _visitables.get("requirements").add(builder); - requirements.set(index, builder); - } - return (A) this; + public RequirementsNested addNewRequirement() { + return new RequirementsNested(-1, null); + } + + public RequirementsNested addNewRequirementLike(V1LabelSelectorRequirement item) { + return new RequirementsNested(-1, item); } public A addToRequirements(V1LabelSelectorRequirement... items) { @@ -91,66 +62,21 @@ public A addToRequirements(V1LabelSelectorRequirement... items) { return (A) this; } - public A addAllToRequirements(Collection items) { + public A addToRequirements(int index,V1LabelSelectorRequirement item) { if (this.requirements == null) { this.requirements = new ArrayList(); } - for (V1LabelSelectorRequirement item : items) { - V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + if (index < 0 || index >= requirements.size()) { _visitables.get("requirements").add(builder); - this.requirements.add(builder); - } - return (A) this; - } - - public A removeFromRequirements(V1LabelSelectorRequirement... items) { - if (this.requirements == null) { - return (A) this; - } - for (V1LabelSelectorRequirement item : items) { - V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - _visitables.get("requirements").remove(builder); - this.requirements.remove(builder); - } - return (A) this; - } - - public A removeAllFromRequirements(Collection items) { - if (this.requirements == null) { - return (A) this; - } - for (V1LabelSelectorRequirement item : items) { - V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - _visitables.get("requirements").remove(builder); - this.requirements.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromRequirements(Predicate predicate) { - if (requirements == null) { - return (A) this; - } - Iterator each = requirements.iterator(); - List visitables = _visitables.get("requirements"); - while (each.hasNext()) { - V1LabelSelectorRequirementBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + requirements.add(builder); + } else { + _visitables.get("requirements").add(builder); + requirements.add(index, builder); } return (A) this; } - public List buildRequirements() { - return this.requirements != null ? build(requirements) : null; - } - - public V1LabelSelectorRequirement buildRequirement(int index) { - return this.requirements.get(index).build(); - } - public V1LabelSelectorRequirement buildFirstRequirement() { return this.requirements.get(0).build(); } @@ -168,64 +94,20 @@ public V1LabelSelectorRequirement buildMatchingRequirement(Predicate predicate) { - for (V1LabelSelectorRequirementBuilder item : requirements) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRequirements(List requirements) { - if (this.requirements != null) { - this._visitables.get("requirements").clear(); - } - if (requirements != null) { - this.requirements = new ArrayList(); - for (V1LabelSelectorRequirement item : requirements) { - this.addToRequirements(item); - } - } else { - this.requirements = null; - } - return (A) this; - } - - public A withRequirements(V1LabelSelectorRequirement... requirements) { - if (this.requirements != null) { - this.requirements.clear(); - _visitables.remove("requirements"); - } - if (requirements != null) { - for (V1LabelSelectorRequirement item : requirements) { - this.addToRequirements(item); - } - } - return (A) this; - } - - public boolean hasRequirements() { - return this.requirements != null && !(this.requirements.isEmpty()); - } - - public RequirementsNested addNewRequirement() { - return new RequirementsNested(-1, null); - } - - public RequirementsNested addNewRequirementLike(V1LabelSelectorRequirement item) { - return new RequirementsNested(-1, item); + public V1LabelSelectorRequirement buildRequirement(int index) { + return this.requirements.get(index).build(); } - public RequirementsNested setNewRequirementLike(int index,V1LabelSelectorRequirement item) { - return new RequirementsNested(index, item); + public List buildRequirements() { + return this.requirements != null ? build(requirements) : null; } - public RequirementsNested editRequirement(int index) { - if (index <= requirements.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requirements")); + protected void copyInstance(V1LabelSelectorAttributes instance) { + instance = instance != null ? instance : new V1LabelSelectorAttributes(); + if (instance != null) { + this.withRawSelector(instance.getRawSelector()); + this.withRequirements(instance.getRequirements()); } - return this.setNewRequirementLike(index, this.buildRequirement(index)); } public RequirementsNested editFirstRequirement() { @@ -257,6 +139,13 @@ public RequirementsNested editMatchingRequirement(Predicate editRequirement(int index) { + if (requirements.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requirements")); + } + return this.setNewRequirementLike(index, this.buildRequirement(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -277,10 +166,90 @@ public boolean equals(Object o) { return true; } + public String getRawSelector() { + return this.rawSelector; + } + + public boolean hasMatchingRequirement(Predicate predicate) { + for (V1LabelSelectorRequirementBuilder item : requirements) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRawSelector() { + return this.rawSelector != null; + } + + public boolean hasRequirements() { + return this.requirements != null && !(this.requirements.isEmpty()); + } + public int hashCode() { return Objects.hash(rawSelector, requirements); } + public A removeAllFromRequirements(Collection items) { + if (this.requirements == null) { + return (A) this; + } + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + _visitables.get("requirements").remove(builder); + this.requirements.remove(builder); + } + return (A) this; + } + + public A removeFromRequirements(V1LabelSelectorRequirement... items) { + if (this.requirements == null) { + return (A) this; + } + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + _visitables.get("requirements").remove(builder); + this.requirements.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromRequirements(Predicate predicate) { + if (requirements == null) { + return (A) this; + } + Iterator each = requirements.iterator(); + List visitables = _visitables.get("requirements"); + while (each.hasNext()) { + V1LabelSelectorRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public RequirementsNested setNewRequirementLike(int index,V1LabelSelectorRequirement item) { + return new RequirementsNested(index, item); + } + + public A setToRequirements(int index,V1LabelSelectorRequirement item) { + if (this.requirements == null) { + this.requirements = new ArrayList(); + } + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + if (index < 0 || index >= requirements.size()) { + _visitables.get("requirements").add(builder); + requirements.add(builder); + } else { + _visitables.get("requirements").add(builder); + requirements.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -296,14 +265,49 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withRawSelector(String rawSelector) { + this.rawSelector = rawSelector; + return (A) this; + } + + public A withRequirements(List requirements) { + if (this.requirements != null) { + this._visitables.get("requirements").clear(); + } + if (requirements != null) { + this.requirements = new ArrayList(); + for (V1LabelSelectorRequirement item : requirements) { + this.addToRequirements(item); + } + } else { + this.requirements = null; + } + return (A) this; + } + + public A withRequirements(V1LabelSelectorRequirement... requirements) { + if (this.requirements != null) { + this.requirements.clear(); + _visitables.remove("requirements"); + } + if (requirements != null) { + for (V1LabelSelectorRequirement item : requirements) { + this.addToRequirements(item); + } + } + return (A) this; + } public class RequirementsNested extends V1LabelSelectorRequirementFluent> implements Nested{ + + V1LabelSelectorRequirementBuilder builder; + int index; + RequirementsNested(int index,V1LabelSelectorRequirement item) { this.index = index; this.builder = new V1LabelSelectorRequirementBuilder(this, item); } - V1LabelSelectorRequirementBuilder builder; - int index; - + public N and() { return (N) V1LabelSelectorAttributesFluent.this.setToRequirements(index, builder.build()); } @@ -312,7 +316,5 @@ public N endRequirement() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java index c301584884..4cd7ba3642 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LabelSelectorBuilder extends V1LabelSelectorFluent implements VisitableBuilder{ + + V1LabelSelectorFluent fluent; + public V1LabelSelectorBuilder() { this(new V1LabelSelector()); } @@ -11,17 +14,16 @@ public V1LabelSelectorBuilder(V1LabelSelectorFluent fluent) { this(fluent, new V1LabelSelector()); } - public V1LabelSelectorBuilder(V1LabelSelectorFluent fluent,V1LabelSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LabelSelectorBuilder(V1LabelSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1LabelSelectorFluent fluent; + public V1LabelSelectorBuilder(V1LabelSelectorFluent fluent,V1LabelSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LabelSelector build() { V1LabelSelector buildable = new V1LabelSelector(); buildable.setMatchExpressions(fluent.buildMatchExpressions()); @@ -29,5 +31,4 @@ public V1LabelSelector build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java index da957ab31f..94c9886299 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java @@ -1,71 +1,55 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1LabelSelectorFluent> extends BaseFluent{ + + private ArrayList matchExpressions; + private Map matchLabels; + public V1LabelSelectorFluent() { } public V1LabelSelectorFluent(V1LabelSelector instance) { this.copyInstance(instance); } - private ArrayList matchExpressions; - private Map matchLabels; - - protected void copyInstance(V1LabelSelector instance) { - instance = instance != null ? instance : new V1LabelSelector(); - if (instance != null) { - this.withMatchExpressions(instance.getMatchExpressions()); - this.withMatchLabels(instance.getMatchLabels()); - } - } - - public A addToMatchExpressions(int index,V1LabelSelectorRequirement item) { + + public A addAllToMatchExpressions(Collection items) { if (this.matchExpressions == null) { this.matchExpressions = new ArrayList(); } - V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { - _visitables.get("matchExpressions").add(builder); - matchExpressions.add(builder); - } else { + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); _visitables.get("matchExpressions").add(builder); - matchExpressions.add(index, builder); + this.matchExpressions.add(builder); } return (A) this; } - public A setToMatchExpressions(int index,V1LabelSelectorRequirement item) { - if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); - } - V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { - _visitables.get("matchExpressions").add(builder); - matchExpressions.add(builder); - } else { - _visitables.get("matchExpressions").add(builder); - matchExpressions.set(index, builder); - } - return (A) this; + public MatchExpressionsNested addNewMatchExpression() { + return new MatchExpressionsNested(-1, null); + } + + public MatchExpressionsNested addNewMatchExpressionLike(V1LabelSelectorRequirement item) { + return new MatchExpressionsNested(-1, item); } public A addToMatchExpressions(V1LabelSelectorRequirement... items) { @@ -80,72 +64,55 @@ public A addToMatchExpressions(V1LabelSelectorRequirement... items) { return (A) this; } - public A addAllToMatchExpressions(Collection items) { + public A addToMatchExpressions(int index,V1LabelSelectorRequirement item) { if (this.matchExpressions == null) { this.matchExpressions = new ArrayList(); } - for (V1LabelSelectorRequirement item : items) { - V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); - this.matchExpressions.add(builder); + matchExpressions.add(builder); + } else { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(index, builder); } return (A) this; } - public A removeFromMatchExpressions(V1LabelSelectorRequirement... items) { - if (this.matchExpressions == null) { - return (A) this; + public A addToMatchLabels(Map map) { + if (this.matchLabels == null && map != null) { + this.matchLabels = new LinkedHashMap(); } - for (V1LabelSelectorRequirement item : items) { - V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").remove(builder); - this.matchExpressions.remove(builder); + if (map != null) { + this.matchLabels.putAll(map); } return (A) this; } - public A removeAllFromMatchExpressions(Collection items) { - if (this.matchExpressions == null) { - return (A) this; + public A addToMatchLabels(String key,String value) { + if (this.matchLabels == null && key != null && value != null) { + this.matchLabels = new LinkedHashMap(); } - for (V1LabelSelectorRequirement item : items) { - V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").remove(builder); - this.matchExpressions.remove(builder); + if (key != null && value != null) { + this.matchLabels.put(key, value); } return (A) this; } - public A removeMatchingFromMatchExpressions(Predicate predicate) { - if (matchExpressions == null) { - return (A) this; - } - Iterator each = matchExpressions.iterator(); - List visitables = _visitables.get("matchExpressions"); - while (each.hasNext()) { - V1LabelSelectorRequirementBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1LabelSelectorRequirement buildFirstMatchExpression() { + return this.matchExpressions.get(0).build(); } - public List buildMatchExpressions() { - return this.matchExpressions != null ? build(matchExpressions) : null; + public V1LabelSelectorRequirement buildLastMatchExpression() { + return this.matchExpressions.get(matchExpressions.size() - 1).build(); } public V1LabelSelectorRequirement buildMatchExpression(int index) { return this.matchExpressions.get(index).build(); } - public V1LabelSelectorRequirement buildFirstMatchExpression() { - return this.matchExpressions.get(0).build(); - } - - public V1LabelSelectorRequirement buildLastMatchExpression() { - return this.matchExpressions.get(matchExpressions.size() - 1).build(); + public List buildMatchExpressions() { + return this.matchExpressions != null ? build(matchExpressions) : null; } public V1LabelSelectorRequirement buildMatchingMatchExpression(Predicate predicate) { @@ -157,64 +124,12 @@ public V1LabelSelectorRequirement buildMatchingMatchExpression(Predicate predicate) { - for (V1LabelSelectorRequirementBuilder item : matchExpressions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withMatchExpressions(List matchExpressions) { - if (this.matchExpressions != null) { - this._visitables.get("matchExpressions").clear(); - } - if (matchExpressions != null) { - this.matchExpressions = new ArrayList(); - for (V1LabelSelectorRequirement item : matchExpressions) { - this.addToMatchExpressions(item); - } - } else { - this.matchExpressions = null; - } - return (A) this; - } - - public A withMatchExpressions(V1LabelSelectorRequirement... matchExpressions) { - if (this.matchExpressions != null) { - this.matchExpressions.clear(); - _visitables.remove("matchExpressions"); - } - if (matchExpressions != null) { - for (V1LabelSelectorRequirement item : matchExpressions) { - this.addToMatchExpressions(item); - } - } - return (A) this; - } - - public boolean hasMatchExpressions() { - return this.matchExpressions != null && !(this.matchExpressions.isEmpty()); - } - - public MatchExpressionsNested addNewMatchExpression() { - return new MatchExpressionsNested(-1, null); - } - - public MatchExpressionsNested addNewMatchExpressionLike(V1LabelSelectorRequirement item) { - return new MatchExpressionsNested(-1, item); - } - - public MatchExpressionsNested setNewMatchExpressionLike(int index,V1LabelSelectorRequirement item) { - return new MatchExpressionsNested(index, item); - } - - public MatchExpressionsNested editMatchExpression(int index) { - if (index <= matchExpressions.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchExpressions")); + protected void copyInstance(V1LabelSelector instance) { + instance = instance != null ? instance : new V1LabelSelector(); + if (instance != null) { + this.withMatchExpressions(instance.getMatchExpressions()); + this.withMatchLabels(instance.getMatchLabels()); } - return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } public MatchExpressionsNested editFirstMatchExpression() { @@ -232,6 +147,13 @@ public MatchExpressionsNested editLastMatchExpression() { return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } + public MatchExpressionsNested editMatchExpression(int index) { + if (matchExpressions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); + } + public MatchExpressionsNested editMatchingMatchExpression(Predicate predicate) { int index = -1; for (int i = 0;i < matchExpressions.size();i++) { @@ -246,22 +168,71 @@ public MatchExpressionsNested editMatchingMatchExpression(Predicate getMatchLabels() { + return this.matchLabels; + } + + public boolean hasMatchExpressions() { + return this.matchExpressions != null && !(this.matchExpressions.isEmpty()); + } + + public boolean hasMatchLabels() { + return this.matchLabels != null; + } + + public boolean hasMatchingMatchExpression(Predicate predicate) { + for (V1LabelSelectorRequirementBuilder item : matchExpressions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public int hashCode() { + return Objects.hash(matchExpressions, matchLabels); + } + + public A removeAllFromMatchExpressions(Collection items) { + if (this.matchExpressions == null) { + return (A) this; + } + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").remove(builder); + this.matchExpressions.remove(builder); } return (A) this; } - public A addToMatchLabels(Map map) { - if (this.matchLabels == null && map != null) { - this.matchLabels = new LinkedHashMap(); + public A removeFromMatchExpressions(V1LabelSelectorRequirement... items) { + if (this.matchExpressions == null) { + return (A) this; } - if (map != null) { - this.matchLabels.putAll(map); + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").remove(builder); + this.matchExpressions.remove(builder); } return (A) this; } @@ -290,45 +261,39 @@ public A removeFromMatchLabels(Map map) { return (A) this; } - public Map getMatchLabels() { - return this.matchLabels; - } - - public A withMatchLabels(Map matchLabels) { - if (matchLabels == null) { - this.matchLabels = null; - } else { - this.matchLabels = new LinkedHashMap(matchLabels); + public A removeMatchingFromMatchExpressions(Predicate predicate) { + if (matchExpressions == null) { + return (A) this; + } + Iterator each = matchExpressions.iterator(); + List visitables = _visitables.get("matchExpressions"); + while (each.hasNext()) { + V1LabelSelectorRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasMatchLabels() { - return this.matchLabels != null; + public MatchExpressionsNested setNewMatchExpressionLike(int index,V1LabelSelectorRequirement item) { + return new MatchExpressionsNested(index, item); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1LabelSelectorFluent that = (V1LabelSelectorFluent) o; - if (!(Objects.equals(matchExpressions, that.matchExpressions))) { - return false; + public A setToMatchExpressions(int index,V1LabelSelectorRequirement item) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); } - if (!(Objects.equals(matchLabels, that.matchLabels))) { - return false; + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + if (index < 0 || index >= matchExpressions.size()) { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(builder); + } else { + _visitables.get("matchExpressions").add(builder); + matchExpressions.set(index, builder); } - return true; - } - - public int hashCode() { - return Objects.hash(matchExpressions, matchLabels); + return (A) this; } public String toString() { @@ -346,14 +311,53 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMatchExpressions(List matchExpressions) { + if (this.matchExpressions != null) { + this._visitables.get("matchExpressions").clear(); + } + if (matchExpressions != null) { + this.matchExpressions = new ArrayList(); + for (V1LabelSelectorRequirement item : matchExpressions) { + this.addToMatchExpressions(item); + } + } else { + this.matchExpressions = null; + } + return (A) this; + } + + public A withMatchExpressions(V1LabelSelectorRequirement... matchExpressions) { + if (this.matchExpressions != null) { + this.matchExpressions.clear(); + _visitables.remove("matchExpressions"); + } + if (matchExpressions != null) { + for (V1LabelSelectorRequirement item : matchExpressions) { + this.addToMatchExpressions(item); + } + } + return (A) this; + } + + public A withMatchLabels(Map matchLabels) { + if (matchLabels == null) { + this.matchLabels = null; + } else { + this.matchLabels = new LinkedHashMap(matchLabels); + } + return (A) this; + } public class MatchExpressionsNested extends V1LabelSelectorRequirementFluent> implements Nested{ + + V1LabelSelectorRequirementBuilder builder; + int index; + MatchExpressionsNested(int index,V1LabelSelectorRequirement item) { this.index = index; this.builder = new V1LabelSelectorRequirementBuilder(this, item); } - V1LabelSelectorRequirementBuilder builder; - int index; - + public N and() { return (N) V1LabelSelectorFluent.this.setToMatchExpressions(index, builder.build()); } @@ -362,7 +366,5 @@ public N endMatchExpression() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java index 973e3b2cf9..8d375b0b83 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LabelSelectorRequirementBuilder extends V1LabelSelectorRequirementFluent implements VisitableBuilder{ + + V1LabelSelectorRequirementFluent fluent; + public V1LabelSelectorRequirementBuilder() { this(new V1LabelSelectorRequirement()); } @@ -11,17 +14,16 @@ public V1LabelSelectorRequirementBuilder(V1LabelSelectorRequirementFluent flu this(fluent, new V1LabelSelectorRequirement()); } - public V1LabelSelectorRequirementBuilder(V1LabelSelectorRequirementFluent fluent,V1LabelSelectorRequirement instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LabelSelectorRequirementBuilder(V1LabelSelectorRequirement instance) { this.fluent = this; this.copyInstance(instance); } - V1LabelSelectorRequirementFluent fluent; + public V1LabelSelectorRequirementBuilder(V1LabelSelectorRequirementFluent fluent,V1LabelSelectorRequirement instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LabelSelectorRequirement build() { V1LabelSelectorRequirement buildable = new V1LabelSelectorRequirement(); buildable.setKey(fluent.getKey()); @@ -30,5 +32,4 @@ public V1LabelSelectorRequirement build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java index ee6a3f38de..63b4eccd51 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,64 +16,25 @@ */ @SuppressWarnings("unchecked") public class V1LabelSelectorRequirementFluent> extends BaseFluent{ - public V1LabelSelectorRequirementFluent() { - } - - public V1LabelSelectorRequirementFluent(V1LabelSelectorRequirement instance) { - this.copyInstance(instance); - } + private String key; private String operator; private List values; - - protected void copyInstance(V1LabelSelectorRequirement instance) { - instance = instance != null ? instance : new V1LabelSelectorRequirement(); - if (instance != null) { - this.withKey(instance.getKey()); - this.withOperator(instance.getOperator()); - this.withValues(instance.getValues()); - } - } - - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public String getOperator() { - return this.operator; - } - - public A withOperator(String operator) { - this.operator = operator; - return (A) this; + + public V1LabelSelectorRequirementFluent() { } - public boolean hasOperator() { - return this.operator != null; + public V1LabelSelectorRequirementFluent(V1LabelSelectorRequirement instance) { + this.copyInstance(instance); } - - public A addToValues(int index,String item) { + + public A addAllToValues(Collection items) { if (this.values == null) { this.values = new ArrayList(); } - this.values.add(index, item); - return (A) this; - } - - public A setToValues(int index,String item) { - if (this.values == null) { - this.values = new ArrayList(); + for (String item : items) { + this.values.add(item); } - this.values.set(index, item); return (A) this; } @@ -87,48 +48,54 @@ public A addToValues(String... items) { return (A) this; } - public A addAllToValues(Collection items) { + public A addToValues(int index,String item) { if (this.values == null) { this.values = new ArrayList(); } - for (String item : items) { - this.values.add(item); - } + this.values.add(index, item); return (A) this; } - public A removeFromValues(String... items) { - if (this.values == null) { - return (A) this; - } - for (String item : items) { - this.values.remove(item); + protected void copyInstance(V1LabelSelectorRequirement instance) { + instance = instance != null ? instance : new V1LabelSelectorRequirement(); + if (instance != null) { + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withValues(instance.getValues()); } - return (A) this; } - public A removeAllFromValues(Collection items) { - if (this.values == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.values.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public List getValues() { - return this.values; - } - - public String getValue(int index) { - return this.values.get(index); + if (!(super.equals(o))) { + return false; + } + V1LabelSelectorRequirementFluent that = (V1LabelSelectorRequirementFluent) o; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } + return true; } public String getFirstValue() { return this.values.get(0); } + public String getKey() { + return this.key; + } + public String getLastValue() { return this.values.get(values.size() - 1); } @@ -142,6 +109,22 @@ public String getMatchingValue(Predicate predicate) { return null; } + public String getOperator() { + return this.operator; + } + + public String getValue(int index) { + return this.values.get(index); + } + + public List getValues() { + return this.values; + } + + public boolean hasKey() { + return this.key != null; + } + public boolean hasMatchingValue(Predicate predicate) { for (String item : values) { if (predicate.test(item)) { @@ -151,60 +134,44 @@ public boolean hasMatchingValue(Predicate predicate) { return false; } - public A withValues(List values) { - if (values != null) { - this.values = new ArrayList(); - for (String item : values) { - this.addToValues(item); - } - } else { - this.values = null; - } - return (A) this; - } - - public A withValues(String... values) { - if (this.values != null) { - this.values.clear(); - _visitables.remove("values"); - } - if (values != null) { - for (String item : values) { - this.addToValues(item); - } - } - return (A) this; + public boolean hasOperator() { + return this.operator != null; } public boolean hasValues() { return this.values != null && !(this.values.isEmpty()); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; + public int hashCode() { + return Objects.hash(key, operator, values); + } + + public A removeAllFromValues(Collection items) { + if (this.values == null) { + return (A) this; } - V1LabelSelectorRequirementFluent that = (V1LabelSelectorRequirementFluent) o; - if (!(Objects.equals(key, that.key))) { - return false; + for (String item : items) { + this.values.remove(item); } - if (!(Objects.equals(operator, that.operator))) { - return false; + return (A) this; + } + + public A removeFromValues(String... items) { + if (this.values == null) { + return (A) this; } - if (!(Objects.equals(values, that.values))) { - return false; + for (String item : items) { + this.values.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(key, operator, values); + public A setToValues(int index,String item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; } public String toString() { @@ -228,5 +195,39 @@ public String toString() { return sb.toString(); } - + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public A withValues(List values) { + if (values != null) { + this.values = new ArrayList(); + for (String item : values) { + this.addToValues(item); + } + } else { + this.values = null; + } + return (A) this; + } + + public A withValues(String... values) { + if (this.values != null) { + this.values.clear(); + _visitables.remove("values"); + } + if (values != null) { + for (String item : values) { + this.addToValues(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java index 9fb1fbda28..079922d51e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LeaseBuilder extends V1LeaseFluent implements VisitableBuilder{ + + V1LeaseFluent fluent; + public V1LeaseBuilder() { this(new V1Lease()); } @@ -11,17 +14,16 @@ public V1LeaseBuilder(V1LeaseFluent fluent) { this(fluent, new V1Lease()); } - public V1LeaseBuilder(V1LeaseFluent fluent,V1Lease instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LeaseBuilder(V1Lease instance) { this.fluent = this; this.copyInstance(instance); } - V1LeaseFluent fluent; + public V1LeaseBuilder(V1LeaseFluent fluent,V1Lease instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Lease build() { V1Lease buildable = new V1Lease(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1Lease build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java index 93219cd945..d3519e206c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1LeaseFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1LeaseSpecBuilder spec; + public V1LeaseFluent() { } public V1LeaseFluent(V1Lease instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1LeaseSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1LeaseSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1Lease instance) { instance = instance != null ? instance : new V1Lease(); @@ -35,60 +45,6 @@ protected void copyInstance(V1Lease instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1LeaseSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1LeaseSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1LeaseSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1LeaseSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1LeaseSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1LeaseSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1LeaseSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1LeaseSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1LeaseSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1LeaseFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1LeaseSpecFluent> implements Nested{ + + V1LeaseSpecBuilder builder; + SpecNested(V1LeaseSpec item) { this.builder = new V1LeaseSpecBuilder(this, item); } - V1LeaseSpecBuilder builder; - + public N and() { return (N) V1LeaseFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java index 3932d0886a..4abe53e0db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LeaseListBuilder extends V1LeaseListFluent implements VisitableBuilder{ + + V1LeaseListFluent fluent; + public V1LeaseListBuilder() { this(new V1LeaseList()); } @@ -11,17 +14,16 @@ public V1LeaseListBuilder(V1LeaseListFluent fluent) { this(fluent, new V1LeaseList()); } - public V1LeaseListBuilder(V1LeaseListFluent fluent,V1LeaseList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LeaseListBuilder(V1LeaseList instance) { this.fluent = this; this.copyInstance(instance); } - V1LeaseListFluent fluent; + public V1LeaseListBuilder(V1LeaseListFluent fluent,V1LeaseList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LeaseList build() { V1LeaseList buildable = new V1LeaseList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1LeaseList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java index 5aa2b11136..1dbfde27d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1LeaseListFluent> extends BaseFluent{ - public V1LeaseListFluent() { - } - - public V1LeaseListFluent(V1LeaseList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1LeaseList instance) { - instance = instance != null ? instance : new V1LeaseList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1LeaseListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1LeaseListFluent(V1LeaseList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1Lease item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1LeaseBuilder builder = new V1LeaseBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1Lease item : items) { + V1LeaseBuilder builder = new V1LeaseBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1Lease item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1LeaseBuilder builder = new V1LeaseBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1Lease item) { + return new ItemsNested(-1, item); } public A addToItems(V1Lease... items) { @@ -96,68 +65,31 @@ public A addToItems(V1Lease... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1Lease item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1Lease item : items) { - V1LeaseBuilder builder = new V1LeaseBuilder(item); + V1LeaseBuilder builder = new V1LeaseBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1Lease... items) { - if (this.items == null) { - return (A) this; - } - for (V1Lease item : items) { - V1LeaseBuilder builder = new V1LeaseBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1Lease item : items) { - V1LeaseBuilder builder = new V1LeaseBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1LeaseBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1Lease buildFirstItem() { + return this.items.get(0).build(); } public V1Lease buildItem(int index) { return this.items.get(index).build(); } - public V1Lease buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1Lease buildLastItem() { @@ -173,73 +105,34 @@ public V1Lease buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1LeaseBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Lease item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1LeaseList instance) { + instance = instance != null ? instance : new V1LeaseList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1Lease... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1Lease item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Lease item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Lease item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) { return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1LeaseBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Lease item : items) { + V1LeaseBuilder builder = new V1LeaseBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Lease... items) { + if (this.items == null) { + return (A) this; + } + for (V1Lease item : items) { + V1LeaseBuilder builder = new V1LeaseBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1LeaseBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Lease item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1Lease item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1LeaseBuilder builder = new V1LeaseBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1Lease item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1Lease... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1Lease item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1LeaseFluent> implements Nested{ + + V1LeaseBuilder builder; + int index; + ItemsNested(int index,V1Lease item) { this.index = index; this.builder = new V1LeaseBuilder(this, item); } - V1LeaseBuilder builder; - int index; - + public N and() { return (N) V1LeaseListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1LeaseListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java index c315c6c89e..5161ec401a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LeaseSpecBuilder extends V1LeaseSpecFluent implements VisitableBuilder{ + + V1LeaseSpecFluent fluent; + public V1LeaseSpecBuilder() { this(new V1LeaseSpec()); } @@ -11,17 +14,16 @@ public V1LeaseSpecBuilder(V1LeaseSpecFluent fluent) { this(fluent, new V1LeaseSpec()); } - public V1LeaseSpecBuilder(V1LeaseSpecFluent fluent,V1LeaseSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LeaseSpecBuilder(V1LeaseSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1LeaseSpecFluent fluent; + public V1LeaseSpecBuilder(V1LeaseSpecFluent fluent,V1LeaseSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LeaseSpec build() { V1LeaseSpec buildable = new V1LeaseSpec(); buildable.setAcquireTime(fluent.getAcquireTime()); @@ -34,5 +36,4 @@ public V1LeaseSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java index 6d0a4abd50..c146ea4b52 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java @@ -1,25 +1,20 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.time.OffsetDateTime; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; +import java.time.OffsetDateTime; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1LeaseSpecFluent> extends BaseFluent{ - public V1LeaseSpecFluent() { - } - - public V1LeaseSpecFluent(V1LeaseSpec instance) { - this.copyInstance(instance); - } + private OffsetDateTime acquireTime; private String holderIdentity; private Integer leaseDurationSeconds; @@ -27,7 +22,14 @@ public V1LeaseSpecFluent(V1LeaseSpec instance) { private String preferredHolder; private OffsetDateTime renewTime; private String strategy; + + public V1LeaseSpecFluent() { + } + public V1LeaseSpecFluent(V1LeaseSpec instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1LeaseSpec instance) { instance = instance != null ? instance : new V1LeaseSpec(); if (instance != null) { @@ -41,130 +43,95 @@ protected void copyInstance(V1LeaseSpec instance) { } } - public OffsetDateTime getAcquireTime() { - return this.acquireTime; - } - - public A withAcquireTime(OffsetDateTime acquireTime) { - this.acquireTime = acquireTime; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LeaseSpecFluent that = (V1LeaseSpecFluent) o; + if (!(Objects.equals(acquireTime, that.acquireTime))) { + return false; + } + if (!(Objects.equals(holderIdentity, that.holderIdentity))) { + return false; + } + if (!(Objects.equals(leaseDurationSeconds, that.leaseDurationSeconds))) { + return false; + } + if (!(Objects.equals(leaseTransitions, that.leaseTransitions))) { + return false; + } + if (!(Objects.equals(preferredHolder, that.preferredHolder))) { + return false; + } + if (!(Objects.equals(renewTime, that.renewTime))) { + return false; + } + if (!(Objects.equals(strategy, that.strategy))) { + return false; + } + return true; } - public boolean hasAcquireTime() { - return this.acquireTime != null; + public OffsetDateTime getAcquireTime() { + return this.acquireTime; } public String getHolderIdentity() { return this.holderIdentity; } - public A withHolderIdentity(String holderIdentity) { - this.holderIdentity = holderIdentity; - return (A) this; - } - - public boolean hasHolderIdentity() { - return this.holderIdentity != null; - } - public Integer getLeaseDurationSeconds() { return this.leaseDurationSeconds; } - public A withLeaseDurationSeconds(Integer leaseDurationSeconds) { - this.leaseDurationSeconds = leaseDurationSeconds; - return (A) this; - } - - public boolean hasLeaseDurationSeconds() { - return this.leaseDurationSeconds != null; - } - public Integer getLeaseTransitions() { return this.leaseTransitions; } - public A withLeaseTransitions(Integer leaseTransitions) { - this.leaseTransitions = leaseTransitions; - return (A) this; - } - - public boolean hasLeaseTransitions() { - return this.leaseTransitions != null; - } - public String getPreferredHolder() { return this.preferredHolder; } - public A withPreferredHolder(String preferredHolder) { - this.preferredHolder = preferredHolder; - return (A) this; + public OffsetDateTime getRenewTime() { + return this.renewTime; } - public boolean hasPreferredHolder() { - return this.preferredHolder != null; + public String getStrategy() { + return this.strategy; } - public OffsetDateTime getRenewTime() { - return this.renewTime; + public boolean hasAcquireTime() { + return this.acquireTime != null; } - public A withRenewTime(OffsetDateTime renewTime) { - this.renewTime = renewTime; - return (A) this; + public boolean hasHolderIdentity() { + return this.holderIdentity != null; } - public boolean hasRenewTime() { - return this.renewTime != null; + public boolean hasLeaseDurationSeconds() { + return this.leaseDurationSeconds != null; } - public String getStrategy() { - return this.strategy; + public boolean hasLeaseTransitions() { + return this.leaseTransitions != null; } - public A withStrategy(String strategy) { - this.strategy = strategy; - return (A) this; + public boolean hasPreferredHolder() { + return this.preferredHolder != null; } - public boolean hasStrategy() { - return this.strategy != null; + public boolean hasRenewTime() { + return this.renewTime != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1LeaseSpecFluent that = (V1LeaseSpecFluent) o; - if (!(Objects.equals(acquireTime, that.acquireTime))) { - return false; - } - if (!(Objects.equals(holderIdentity, that.holderIdentity))) { - return false; - } - if (!(Objects.equals(leaseDurationSeconds, that.leaseDurationSeconds))) { - return false; - } - if (!(Objects.equals(leaseTransitions, that.leaseTransitions))) { - return false; - } - if (!(Objects.equals(preferredHolder, that.preferredHolder))) { - return false; - } - if (!(Objects.equals(renewTime, that.renewTime))) { - return false; - } - if (!(Objects.equals(strategy, that.strategy))) { - return false; - } - return true; + public boolean hasStrategy() { + return this.strategy != null; } public int hashCode() { @@ -212,5 +179,39 @@ public String toString() { return sb.toString(); } - + public A withAcquireTime(OffsetDateTime acquireTime) { + this.acquireTime = acquireTime; + return (A) this; + } + + public A withHolderIdentity(String holderIdentity) { + this.holderIdentity = holderIdentity; + return (A) this; + } + + public A withLeaseDurationSeconds(Integer leaseDurationSeconds) { + this.leaseDurationSeconds = leaseDurationSeconds; + return (A) this; + } + + public A withLeaseTransitions(Integer leaseTransitions) { + this.leaseTransitions = leaseTransitions; + return (A) this; + } + + public A withPreferredHolder(String preferredHolder) { + this.preferredHolder = preferredHolder; + return (A) this; + } + + public A withRenewTime(OffsetDateTime renewTime) { + this.renewTime = renewTime; + return (A) this; + } + + public A withStrategy(String strategy) { + this.strategy = strategy; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java index d7835099ef..a32bdb6806 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LifecycleBuilder extends V1LifecycleFluent implements VisitableBuilder{ + + V1LifecycleFluent fluent; + public V1LifecycleBuilder() { this(new V1Lifecycle()); } @@ -11,17 +14,16 @@ public V1LifecycleBuilder(V1LifecycleFluent fluent) { this(fluent, new V1Lifecycle()); } - public V1LifecycleBuilder(V1LifecycleFluent fluent,V1Lifecycle instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LifecycleBuilder(V1Lifecycle instance) { this.fluent = this; this.copyInstance(instance); } - V1LifecycleFluent fluent; + public V1LifecycleBuilder(V1LifecycleFluent fluent,V1Lifecycle instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Lifecycle build() { V1Lifecycle buildable = new V1Lifecycle(); buildable.setPostStart(fluent.buildPostStart()); @@ -30,5 +32,4 @@ public V1Lifecycle build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java index 478483190c..982b2609b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java @@ -1,28 +1,38 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1LifecycleFluent> extends BaseFluent{ + + private V1LifecycleHandlerBuilder postStart; + private V1LifecycleHandlerBuilder preStop; + private String stopSignal; + public V1LifecycleFluent() { } public V1LifecycleFluent(V1Lifecycle instance) { this.copyInstance(instance); } - private V1LifecycleHandlerBuilder postStart; - private V1LifecycleHandlerBuilder preStop; - private String stopSignal; + + public V1LifecycleHandler buildPostStart() { + return this.postStart != null ? this.postStart.build() : null; + } + + public V1LifecycleHandler buildPreStop() { + return this.preStop != null ? this.preStop.build() : null; + } protected void copyInstance(V1Lifecycle instance) { instance = instance != null ? instance : new V1Lifecycle(); @@ -33,38 +43,6 @@ protected void copyInstance(V1Lifecycle instance) { } } - public V1LifecycleHandler buildPostStart() { - return this.postStart != null ? this.postStart.build() : null; - } - - public A withPostStart(V1LifecycleHandler postStart) { - this._visitables.remove("postStart"); - if (postStart != null) { - this.postStart = new V1LifecycleHandlerBuilder(postStart); - this._visitables.get("postStart").add(this.postStart); - } else { - this.postStart = null; - this._visitables.get("postStart").remove(this.postStart); - } - return (A) this; - } - - public boolean hasPostStart() { - return this.postStart != null; - } - - public PostStartNested withNewPostStart() { - return new PostStartNested(null); - } - - public PostStartNested withNewPostStartLike(V1LifecycleHandler item) { - return new PostStartNested(item); - } - - public PostStartNested editPostStart() { - return this.withNewPostStartLike(Optional.ofNullable(this.buildPostStart()).orElse(null)); - } - public PostStartNested editOrNewPostStart() { return this.withNewPostStartLike(Optional.ofNullable(this.buildPostStart()).orElse(new V1LifecycleHandlerBuilder().build())); } @@ -73,38 +51,6 @@ public PostStartNested editOrNewPostStartLike(V1LifecycleHandler item) { return this.withNewPostStartLike(Optional.ofNullable(this.buildPostStart()).orElse(item)); } - public V1LifecycleHandler buildPreStop() { - return this.preStop != null ? this.preStop.build() : null; - } - - public A withPreStop(V1LifecycleHandler preStop) { - this._visitables.remove("preStop"); - if (preStop != null) { - this.preStop = new V1LifecycleHandlerBuilder(preStop); - this._visitables.get("preStop").add(this.preStop); - } else { - this.preStop = null; - this._visitables.get("preStop").remove(this.preStop); - } - return (A) this; - } - - public boolean hasPreStop() { - return this.preStop != null; - } - - public PreStopNested withNewPreStop() { - return new PreStopNested(null); - } - - public PreStopNested withNewPreStopLike(V1LifecycleHandler item) { - return new PreStopNested(item); - } - - public PreStopNested editPreStop() { - return this.withNewPreStopLike(Optional.ofNullable(this.buildPreStop()).orElse(null)); - } - public PreStopNested editOrNewPreStop() { return this.withNewPreStopLike(Optional.ofNullable(this.buildPreStop()).orElse(new V1LifecycleHandlerBuilder().build())); } @@ -113,17 +59,12 @@ public PreStopNested editOrNewPreStopLike(V1LifecycleHandler item) { return this.withNewPreStopLike(Optional.ofNullable(this.buildPreStop()).orElse(item)); } - public String getStopSignal() { - return this.stopSignal; - } - - public A withStopSignal(String stopSignal) { - this.stopSignal = stopSignal; - return (A) this; + public PostStartNested editPostStart() { + return this.withNewPostStartLike(Optional.ofNullable(this.buildPostStart()).orElse(null)); } - public boolean hasStopSignal() { - return this.stopSignal != null; + public PreStopNested editPreStop() { + return this.withNewPreStopLike(Optional.ofNullable(this.buildPreStop()).orElse(null)); } public boolean equals(Object o) { @@ -149,6 +90,22 @@ public boolean equals(Object o) { return true; } + public String getStopSignal() { + return this.stopSignal; + } + + public boolean hasPostStart() { + return this.postStart != null; + } + + public boolean hasPreStop() { + return this.preStop != null; + } + + public boolean hasStopSignal() { + return this.stopSignal != null; + } + public int hashCode() { return Objects.hash(postStart, preStop, stopSignal); } @@ -173,12 +130,59 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public PostStartNested withNewPostStart() { + return new PostStartNested(null); + } + + public PostStartNested withNewPostStartLike(V1LifecycleHandler item) { + return new PostStartNested(item); + } + + public PreStopNested withNewPreStop() { + return new PreStopNested(null); + } + + public PreStopNested withNewPreStopLike(V1LifecycleHandler item) { + return new PreStopNested(item); + } + + public A withPostStart(V1LifecycleHandler postStart) { + this._visitables.remove("postStart"); + if (postStart != null) { + this.postStart = new V1LifecycleHandlerBuilder(postStart); + this._visitables.get("postStart").add(this.postStart); + } else { + this.postStart = null; + this._visitables.get("postStart").remove(this.postStart); + } + return (A) this; + } + + public A withPreStop(V1LifecycleHandler preStop) { + this._visitables.remove("preStop"); + if (preStop != null) { + this.preStop = new V1LifecycleHandlerBuilder(preStop); + this._visitables.get("preStop").add(this.preStop); + } else { + this.preStop = null; + this._visitables.get("preStop").remove(this.preStop); + } + return (A) this; + } + + public A withStopSignal(String stopSignal) { + this.stopSignal = stopSignal; + return (A) this; + } public class PostStartNested extends V1LifecycleHandlerFluent> implements Nested{ + + V1LifecycleHandlerBuilder builder; + PostStartNested(V1LifecycleHandler item) { this.builder = new V1LifecycleHandlerBuilder(this, item); } - V1LifecycleHandlerBuilder builder; - + public N and() { return (N) V1LifecycleFluent.this.withPostStart(builder.build()); } @@ -187,14 +191,15 @@ public N endPostStart() { return and(); } - } public class PreStopNested extends V1LifecycleHandlerFluent> implements Nested{ + + V1LifecycleHandlerBuilder builder; + PreStopNested(V1LifecycleHandler item) { this.builder = new V1LifecycleHandlerBuilder(this, item); } - V1LifecycleHandlerBuilder builder; - + public N and() { return (N) V1LifecycleFluent.this.withPreStop(builder.build()); } @@ -203,7 +208,5 @@ public N endPreStop() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java index 240ac6f309..a01cf0ba00 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LifecycleHandlerBuilder extends V1LifecycleHandlerFluent implements VisitableBuilder{ + + V1LifecycleHandlerFluent fluent; + public V1LifecycleHandlerBuilder() { this(new V1LifecycleHandler()); } @@ -11,17 +14,16 @@ public V1LifecycleHandlerBuilder(V1LifecycleHandlerFluent fluent) { this(fluent, new V1LifecycleHandler()); } - public V1LifecycleHandlerBuilder(V1LifecycleHandlerFluent fluent,V1LifecycleHandler instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LifecycleHandlerBuilder(V1LifecycleHandler instance) { this.fluent = this; this.copyInstance(instance); } - V1LifecycleHandlerFluent fluent; + public V1LifecycleHandlerBuilder(V1LifecycleHandlerFluent fluent,V1LifecycleHandler instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LifecycleHandler build() { V1LifecycleHandler buildable = new V1LifecycleHandler(); buildable.setExec(fluent.buildExec()); @@ -31,5 +33,4 @@ public V1LifecycleHandler build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java index a68d2d1db7..664a6e225f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java @@ -1,72 +1,66 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1LifecycleHandlerFluent> extends BaseFluent{ - public V1LifecycleHandlerFluent() { - } - - public V1LifecycleHandlerFluent(V1LifecycleHandler instance) { - this.copyInstance(instance); - } + private V1ExecActionBuilder exec; private V1HTTPGetActionBuilder httpGet; private V1SleepActionBuilder sleep; private V1TCPSocketActionBuilder tcpSocket; - - protected void copyInstance(V1LifecycleHandler instance) { - instance = instance != null ? instance : new V1LifecycleHandler(); - if (instance != null) { - this.withExec(instance.getExec()); - this.withHttpGet(instance.getHttpGet()); - this.withSleep(instance.getSleep()); - this.withTcpSocket(instance.getTcpSocket()); - } + + public V1LifecycleHandlerFluent() { } + public V1LifecycleHandlerFluent(V1LifecycleHandler instance) { + this.copyInstance(instance); + } + public V1ExecAction buildExec() { return this.exec != null ? this.exec.build() : null; } - public A withExec(V1ExecAction exec) { - this._visitables.remove("exec"); - if (exec != null) { - this.exec = new V1ExecActionBuilder(exec); - this._visitables.get("exec").add(this.exec); - } else { - this.exec = null; - this._visitables.get("exec").remove(this.exec); - } - return (A) this; + public V1HTTPGetAction buildHttpGet() { + return this.httpGet != null ? this.httpGet.build() : null; } - public boolean hasExec() { - return this.exec != null; + public V1SleepAction buildSleep() { + return this.sleep != null ? this.sleep.build() : null; } - public ExecNested withNewExec() { - return new ExecNested(null); + public V1TCPSocketAction buildTcpSocket() { + return this.tcpSocket != null ? this.tcpSocket.build() : null; } - public ExecNested withNewExecLike(V1ExecAction item) { - return new ExecNested(item); + protected void copyInstance(V1LifecycleHandler instance) { + instance = instance != null ? instance : new V1LifecycleHandler(); + if (instance != null) { + this.withExec(instance.getExec()); + this.withHttpGet(instance.getHttpGet()); + this.withSleep(instance.getSleep()); + this.withTcpSocket(instance.getTcpSocket()); + } } public ExecNested editExec() { return this.withNewExecLike(Optional.ofNullable(this.buildExec()).orElse(null)); } + public HttpGetNested editHttpGet() { + return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(null)); + } + public ExecNested editOrNewExec() { return this.withNewExecLike(Optional.ofNullable(this.buildExec()).orElse(new V1ExecActionBuilder().build())); } @@ -75,38 +69,6 @@ public ExecNested editOrNewExecLike(V1ExecAction item) { return this.withNewExecLike(Optional.ofNullable(this.buildExec()).orElse(item)); } - public V1HTTPGetAction buildHttpGet() { - return this.httpGet != null ? this.httpGet.build() : null; - } - - public A withHttpGet(V1HTTPGetAction httpGet) { - this._visitables.remove("httpGet"); - if (httpGet != null) { - this.httpGet = new V1HTTPGetActionBuilder(httpGet); - this._visitables.get("httpGet").add(this.httpGet); - } else { - this.httpGet = null; - this._visitables.get("httpGet").remove(this.httpGet); - } - return (A) this; - } - - public boolean hasHttpGet() { - return this.httpGet != null; - } - - public HttpGetNested withNewHttpGet() { - return new HttpGetNested(null); - } - - public HttpGetNested withNewHttpGetLike(V1HTTPGetAction item) { - return new HttpGetNested(item); - } - - public HttpGetNested editHttpGet() { - return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(null)); - } - public HttpGetNested editOrNewHttpGet() { return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(new V1HTTPGetActionBuilder().build())); } @@ -115,38 +77,6 @@ public HttpGetNested editOrNewHttpGetLike(V1HTTPGetAction item) { return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(item)); } - public V1SleepAction buildSleep() { - return this.sleep != null ? this.sleep.build() : null; - } - - public A withSleep(V1SleepAction sleep) { - this._visitables.remove("sleep"); - if (sleep != null) { - this.sleep = new V1SleepActionBuilder(sleep); - this._visitables.get("sleep").add(this.sleep); - } else { - this.sleep = null; - this._visitables.get("sleep").remove(this.sleep); - } - return (A) this; - } - - public boolean hasSleep() { - return this.sleep != null; - } - - public SleepNested withNewSleep() { - return new SleepNested(null); - } - - public SleepNested withNewSleepLike(V1SleepAction item) { - return new SleepNested(item); - } - - public SleepNested editSleep() { - return this.withNewSleepLike(Optional.ofNullable(this.buildSleep()).orElse(null)); - } - public SleepNested editOrNewSleep() { return this.withNewSleepLike(Optional.ofNullable(this.buildSleep()).orElse(new V1SleepActionBuilder().build())); } @@ -155,46 +85,22 @@ public SleepNested editOrNewSleepLike(V1SleepAction item) { return this.withNewSleepLike(Optional.ofNullable(this.buildSleep()).orElse(item)); } - public V1TCPSocketAction buildTcpSocket() { - return this.tcpSocket != null ? this.tcpSocket.build() : null; - } - - public A withTcpSocket(V1TCPSocketAction tcpSocket) { - this._visitables.remove("tcpSocket"); - if (tcpSocket != null) { - this.tcpSocket = new V1TCPSocketActionBuilder(tcpSocket); - this._visitables.get("tcpSocket").add(this.tcpSocket); - } else { - this.tcpSocket = null; - this._visitables.get("tcpSocket").remove(this.tcpSocket); - } - return (A) this; - } - - public boolean hasTcpSocket() { - return this.tcpSocket != null; + public TcpSocketNested editOrNewTcpSocket() { + return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(new V1TCPSocketActionBuilder().build())); } - public TcpSocketNested withNewTcpSocket() { - return new TcpSocketNested(null); + public TcpSocketNested editOrNewTcpSocketLike(V1TCPSocketAction item) { + return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(item)); } - public TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item) { - return new TcpSocketNested(item); + public SleepNested editSleep() { + return this.withNewSleepLike(Optional.ofNullable(this.buildSleep()).orElse(null)); } public TcpSocketNested editTcpSocket() { return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(null)); } - public TcpSocketNested editOrNewTcpSocket() { - return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(new V1TCPSocketActionBuilder().build())); - } - - public TcpSocketNested editOrNewTcpSocketLike(V1TCPSocketAction item) { - return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -221,6 +127,22 @@ public boolean equals(Object o) { return true; } + public boolean hasExec() { + return this.exec != null; + } + + public boolean hasHttpGet() { + return this.httpGet != null; + } + + public boolean hasSleep() { + return this.sleep != null; + } + + public boolean hasTcpSocket() { + return this.tcpSocket != null; + } + public int hashCode() { return Objects.hash(exec, httpGet, sleep, tcpSocket); } @@ -250,12 +172,94 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withExec(V1ExecAction exec) { + this._visitables.remove("exec"); + if (exec != null) { + this.exec = new V1ExecActionBuilder(exec); + this._visitables.get("exec").add(this.exec); + } else { + this.exec = null; + this._visitables.get("exec").remove(this.exec); + } + return (A) this; + } + + public A withHttpGet(V1HTTPGetAction httpGet) { + this._visitables.remove("httpGet"); + if (httpGet != null) { + this.httpGet = new V1HTTPGetActionBuilder(httpGet); + this._visitables.get("httpGet").add(this.httpGet); + } else { + this.httpGet = null; + this._visitables.get("httpGet").remove(this.httpGet); + } + return (A) this; + } + + public ExecNested withNewExec() { + return new ExecNested(null); + } + + public ExecNested withNewExecLike(V1ExecAction item) { + return new ExecNested(item); + } + + public HttpGetNested withNewHttpGet() { + return new HttpGetNested(null); + } + + public HttpGetNested withNewHttpGetLike(V1HTTPGetAction item) { + return new HttpGetNested(item); + } + + public SleepNested withNewSleep() { + return new SleepNested(null); + } + + public SleepNested withNewSleepLike(V1SleepAction item) { + return new SleepNested(item); + } + + public TcpSocketNested withNewTcpSocket() { + return new TcpSocketNested(null); + } + + public TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item) { + return new TcpSocketNested(item); + } + + public A withSleep(V1SleepAction sleep) { + this._visitables.remove("sleep"); + if (sleep != null) { + this.sleep = new V1SleepActionBuilder(sleep); + this._visitables.get("sleep").add(this.sleep); + } else { + this.sleep = null; + this._visitables.get("sleep").remove(this.sleep); + } + return (A) this; + } + + public A withTcpSocket(V1TCPSocketAction tcpSocket) { + this._visitables.remove("tcpSocket"); + if (tcpSocket != null) { + this.tcpSocket = new V1TCPSocketActionBuilder(tcpSocket); + this._visitables.get("tcpSocket").add(this.tcpSocket); + } else { + this.tcpSocket = null; + this._visitables.get("tcpSocket").remove(this.tcpSocket); + } + return (A) this; + } public class ExecNested extends V1ExecActionFluent> implements Nested{ + + V1ExecActionBuilder builder; + ExecNested(V1ExecAction item) { this.builder = new V1ExecActionBuilder(this, item); } - V1ExecActionBuilder builder; - + public N and() { return (N) V1LifecycleHandlerFluent.this.withExec(builder.build()); } @@ -264,14 +268,15 @@ public N endExec() { return and(); } - } public class HttpGetNested extends V1HTTPGetActionFluent> implements Nested{ + + V1HTTPGetActionBuilder builder; + HttpGetNested(V1HTTPGetAction item) { this.builder = new V1HTTPGetActionBuilder(this, item); } - V1HTTPGetActionBuilder builder; - + public N and() { return (N) V1LifecycleHandlerFluent.this.withHttpGet(builder.build()); } @@ -280,14 +285,15 @@ public N endHttpGet() { return and(); } - } public class SleepNested extends V1SleepActionFluent> implements Nested{ + + V1SleepActionBuilder builder; + SleepNested(V1SleepAction item) { this.builder = new V1SleepActionBuilder(this, item); } - V1SleepActionBuilder builder; - + public N and() { return (N) V1LifecycleHandlerFluent.this.withSleep(builder.build()); } @@ -296,14 +302,15 @@ public N endSleep() { return and(); } - } public class TcpSocketNested extends V1TCPSocketActionFluent> implements Nested{ + + V1TCPSocketActionBuilder builder; + TcpSocketNested(V1TCPSocketAction item) { this.builder = new V1TCPSocketActionBuilder(this, item); } - V1TCPSocketActionBuilder builder; - + public N and() { return (N) V1LifecycleHandlerFluent.this.withTcpSocket(builder.build()); } @@ -312,7 +319,5 @@ public N endTcpSocket() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java index c214507939..53eeacd09c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LimitRangeBuilder extends V1LimitRangeFluent implements VisitableBuilder{ + + V1LimitRangeFluent fluent; + public V1LimitRangeBuilder() { this(new V1LimitRange()); } @@ -11,17 +14,16 @@ public V1LimitRangeBuilder(V1LimitRangeFluent fluent) { this(fluent, new V1LimitRange()); } - public V1LimitRangeBuilder(V1LimitRangeFluent fluent,V1LimitRange instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LimitRangeBuilder(V1LimitRange instance) { this.fluent = this; this.copyInstance(instance); } - V1LimitRangeFluent fluent; + public V1LimitRangeBuilder(V1LimitRangeFluent fluent,V1LimitRange instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LimitRange build() { V1LimitRange buildable = new V1LimitRange(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1LimitRange build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java index e5ed3ebf13..b9f1bc9844 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1LimitRangeFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1LimitRangeSpecBuilder spec; + public V1LimitRangeFluent() { } public V1LimitRangeFluent(V1LimitRange instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1LimitRangeSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1LimitRangeSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1LimitRange instance) { instance = instance != null ? instance : new V1LimitRange(); @@ -35,60 +45,6 @@ protected void copyInstance(V1LimitRange instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1LimitRangeSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1LimitRangeSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1LimitRangeSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1LimitRangeSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1LimitRangeSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1LimitRangeSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1LimitRangeSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1LimitRangeSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1LimitRangeSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1LimitRangeFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1LimitRangeSpecFluent> implements Nested{ + + V1LimitRangeSpecBuilder builder; + SpecNested(V1LimitRangeSpec item) { this.builder = new V1LimitRangeSpecBuilder(this, item); } - V1LimitRangeSpecBuilder builder; - + public N and() { return (N) V1LimitRangeFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java index 159d8075de..1add2a0fbb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LimitRangeItemBuilder extends V1LimitRangeItemFluent implements VisitableBuilder{ + + V1LimitRangeItemFluent fluent; + public V1LimitRangeItemBuilder() { this(new V1LimitRangeItem()); } @@ -11,17 +14,16 @@ public V1LimitRangeItemBuilder(V1LimitRangeItemFluent fluent) { this(fluent, new V1LimitRangeItem()); } - public V1LimitRangeItemBuilder(V1LimitRangeItemFluent fluent,V1LimitRangeItem instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LimitRangeItemBuilder(V1LimitRangeItem instance) { this.fluent = this; this.copyInstance(instance); } - V1LimitRangeItemFluent fluent; + public V1LimitRangeItemBuilder(V1LimitRangeItemFluent fluent,V1LimitRangeItem instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LimitRangeItem build() { V1LimitRangeItem buildable = new V1LimitRangeItem(); buildable.setDefault(fluent.getDefault()); @@ -33,5 +35,4 @@ public V1LimitRangeItem build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java index 5c99784683..ad65ff6db1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java @@ -1,43 +1,43 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; -import java.util.Map; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1LimitRangeItemFluent> extends BaseFluent{ - public V1LimitRangeItemFluent() { - } - - public V1LimitRangeItemFluent(V1LimitRangeItem instance) { - this.copyInstance(instance); - } + private Map _default; private Map defaultRequest; private Map max; private Map maxLimitRequestRatio; private Map min; private String type; + + public V1LimitRangeItemFluent() { + } - protected void copyInstance(V1LimitRangeItem instance) { - instance = instance != null ? instance : new V1LimitRangeItem(); - if (instance != null) { - this.withDefault(instance.getDefault()); - this.withDefaultRequest(instance.getDefaultRequest()); - this.withMax(instance.getMax()); - this.withMaxLimitRequestRatio(instance.getMaxLimitRequestRatio()); - this.withMin(instance.getMin()); - this.withType(instance.getType()); + public V1LimitRangeItemFluent(V1LimitRangeItem instance) { + this.copyInstance(instance); + } + + public A addToDefault(Map map) { + if (this._default == null && map != null) { + this._default = new LinkedHashMap(); } + if (map != null) { + this._default.putAll(map); + } + return (A) this; } public A addToDefault(String key,Quantity value) { @@ -50,195 +50,250 @@ public A addToDefault(String key,Quantity value) { return (A) this; } - public A addToDefault(Map map) { - if (this._default == null && map != null) { - this._default = new LinkedHashMap(); + public A addToDefaultRequest(Map map) { + if (this.defaultRequest == null && map != null) { + this.defaultRequest = new LinkedHashMap(); } if (map != null) { - this._default.putAll(map); + this.defaultRequest.putAll(map); } return (A) this; } - public A removeFromDefault(String key) { - if (this._default == null) { - return (A) this; + public A addToDefaultRequest(String key,Quantity value) { + if (this.defaultRequest == null && key != null && value != null) { + this.defaultRequest = new LinkedHashMap(); } - if (key != null && this._default != null) { - this._default.remove(key); + if (key != null && value != null) { + this.defaultRequest.put(key, value); } return (A) this; } - public A removeFromDefault(Map map) { - if (this._default == null) { - return (A) this; + public A addToMax(Map map) { + if (this.max == null && map != null) { + this.max = new LinkedHashMap(); } if (map != null) { - for (Object key : map.keySet()) { - if (this._default != null) { - this._default.remove(key); - } - } + this.max.putAll(map); } return (A) this; } - public Map getDefault() { - return this._default; - } - - public A withDefault(Map _default) { - if (_default == null) { - this._default = null; - } else { - this._default = new LinkedHashMap(_default); + public A addToMax(String key,Quantity value) { + if (this.max == null && key != null && value != null) { + this.max = new LinkedHashMap(); + } + if (key != null && value != null) { + this.max.put(key, value); } return (A) this; } - public boolean hasDefault() { - return this._default != null; + public A addToMaxLimitRequestRatio(Map map) { + if (this.maxLimitRequestRatio == null && map != null) { + this.maxLimitRequestRatio = new LinkedHashMap(); + } + if (map != null) { + this.maxLimitRequestRatio.putAll(map); + } + return (A) this; } - public A addToDefaultRequest(String key,Quantity value) { - if (this.defaultRequest == null && key != null && value != null) { - this.defaultRequest = new LinkedHashMap(); + public A addToMaxLimitRequestRatio(String key,Quantity value) { + if (this.maxLimitRequestRatio == null && key != null && value != null) { + this.maxLimitRequestRatio = new LinkedHashMap(); } if (key != null && value != null) { - this.defaultRequest.put(key, value); + this.maxLimitRequestRatio.put(key, value); } return (A) this; } - public A addToDefaultRequest(Map map) { - if (this.defaultRequest == null && map != null) { - this.defaultRequest = new LinkedHashMap(); + public A addToMin(Map map) { + if (this.min == null && map != null) { + this.min = new LinkedHashMap(); } if (map != null) { - this.defaultRequest.putAll(map); + this.min.putAll(map); } return (A) this; } - public A removeFromDefaultRequest(String key) { - if (this.defaultRequest == null) { - return (A) this; + public A addToMin(String key,Quantity value) { + if (this.min == null && key != null && value != null) { + this.min = new LinkedHashMap(); } - if (key != null && this.defaultRequest != null) { - this.defaultRequest.remove(key); + if (key != null && value != null) { + this.min.put(key, value); } return (A) this; } - public A removeFromDefaultRequest(Map map) { - if (this.defaultRequest == null) { - return (A) this; + protected void copyInstance(V1LimitRangeItem instance) { + instance = instance != null ? instance : new V1LimitRangeItem(); + if (instance != null) { + this.withDefault(instance.getDefault()); + this.withDefaultRequest(instance.getDefaultRequest()); + this.withMax(instance.getMax()); + this.withMaxLimitRequestRatio(instance.getMaxLimitRequestRatio()); + this.withMin(instance.getMin()); + this.withType(instance.getType()); } - if (map != null) { - for (Object key : map.keySet()) { - if (this.defaultRequest != null) { - this.defaultRequest.remove(key); - } - } + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LimitRangeItemFluent that = (V1LimitRangeItemFluent) o; + if (!(Objects.equals(_default, that._default))) { + return false; + } + if (!(Objects.equals(defaultRequest, that.defaultRequest))) { + return false; + } + if (!(Objects.equals(max, that.max))) { + return false; + } + if (!(Objects.equals(maxLimitRequestRatio, that.maxLimitRequestRatio))) { + return false; + } + if (!(Objects.equals(min, that.min))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; + } + + public Map getDefault() { + return this._default; } public Map getDefaultRequest() { return this.defaultRequest; } - public A withDefaultRequest(Map defaultRequest) { - if (defaultRequest == null) { - this.defaultRequest = null; - } else { - this.defaultRequest = new LinkedHashMap(defaultRequest); - } - return (A) this; + public Map getMax() { + return this.max; + } + + public Map getMaxLimitRequestRatio() { + return this.maxLimitRequestRatio; + } + + public Map getMin() { + return this.min; + } + + public String getType() { + return this.type; + } + + public boolean hasDefault() { + return this._default != null; } public boolean hasDefaultRequest() { return this.defaultRequest != null; } - public A addToMax(String key,Quantity value) { - if (this.max == null && key != null && value != null) { - this.max = new LinkedHashMap(); + public boolean hasMax() { + return this.max != null; + } + + public boolean hasMaxLimitRequestRatio() { + return this.maxLimitRequestRatio != null; + } + + public boolean hasMin() { + return this.min != null; + } + + public boolean hasType() { + return this.type != null; + } + + public int hashCode() { + return Objects.hash(_default, defaultRequest, max, maxLimitRequestRatio, min, type); + } + + public A removeFromDefault(String key) { + if (this._default == null) { + return (A) this; } - if (key != null && value != null) { - this.max.put(key, value); + if (key != null && this._default != null) { + this._default.remove(key); } return (A) this; } - public A addToMax(Map map) { - if (this.max == null && map != null) { - this.max = new LinkedHashMap(); + public A removeFromDefault(Map map) { + if (this._default == null) { + return (A) this; } if (map != null) { - this.max.putAll(map); + for (Object key : map.keySet()) { + if (this._default != null) { + this._default.remove(key); + } + } } return (A) this; } - public A removeFromMax(String key) { - if (this.max == null) { + public A removeFromDefaultRequest(String key) { + if (this.defaultRequest == null) { return (A) this; } - if (key != null && this.max != null) { - this.max.remove(key); + if (key != null && this.defaultRequest != null) { + this.defaultRequest.remove(key); } return (A) this; } - public A removeFromMax(Map map) { - if (this.max == null) { + public A removeFromDefaultRequest(Map map) { + if (this.defaultRequest == null) { return (A) this; } if (map != null) { for (Object key : map.keySet()) { - if (this.max != null) { - this.max.remove(key); + if (this.defaultRequest != null) { + this.defaultRequest.remove(key); } } } return (A) this; } - public Map getMax() { - return this.max; - } - - public A withMax(Map max) { - if (max == null) { - this.max = null; - } else { - this.max = new LinkedHashMap(max); - } - return (A) this; - } - - public boolean hasMax() { - return this.max != null; - } - - public A addToMaxLimitRequestRatio(String key,Quantity value) { - if (this.maxLimitRequestRatio == null && key != null && value != null) { - this.maxLimitRequestRatio = new LinkedHashMap(); + public A removeFromMax(String key) { + if (this.max == null) { + return (A) this; } - if (key != null && value != null) { - this.maxLimitRequestRatio.put(key, value); + if (key != null && this.max != null) { + this.max.remove(key); } return (A) this; } - public A addToMaxLimitRequestRatio(Map map) { - if (this.maxLimitRequestRatio == null && map != null) { - this.maxLimitRequestRatio = new LinkedHashMap(); + public A removeFromMax(Map map) { + if (this.max == null) { + return (A) this; } if (map != null) { - this.maxLimitRequestRatio.putAll(map); + for (Object key : map.keySet()) { + if (this.max != null) { + this.max.remove(key); + } + } } return (A) this; } @@ -267,43 +322,6 @@ public A removeFromMaxLimitRequestRatio(Map map) { return (A) this; } - public Map getMaxLimitRequestRatio() { - return this.maxLimitRequestRatio; - } - - public A withMaxLimitRequestRatio(Map maxLimitRequestRatio) { - if (maxLimitRequestRatio == null) { - this.maxLimitRequestRatio = null; - } else { - this.maxLimitRequestRatio = new LinkedHashMap(maxLimitRequestRatio); - } - return (A) this; - } - - public boolean hasMaxLimitRequestRatio() { - return this.maxLimitRequestRatio != null; - } - - public A addToMin(String key,Quantity value) { - if (this.min == null && key != null && value != null) { - this.min = new LinkedHashMap(); - } - if (key != null && value != null) { - this.min.put(key, value); - } - return (A) this; - } - - public A addToMin(Map map) { - if (this.min == null && map != null) { - this.min = new LinkedHashMap(); - } - if (map != null) { - this.min.putAll(map); - } - return (A) this; - } - public A removeFromMin(String key) { if (this.min == null) { return (A) this; @@ -328,72 +346,6 @@ public A removeFromMin(Map map) { return (A) this; } - public Map getMin() { - return this.min; - } - - public A withMin(Map min) { - if (min == null) { - this.min = null; - } else { - this.min = new LinkedHashMap(min); - } - return (A) this; - } - - public boolean hasMin() { - return this.min != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1LimitRangeItemFluent that = (V1LimitRangeItemFluent) o; - if (!(Objects.equals(_default, that._default))) { - return false; - } - if (!(Objects.equals(defaultRequest, that.defaultRequest))) { - return false; - } - if (!(Objects.equals(max, that.max))) { - return false; - } - if (!(Objects.equals(maxLimitRequestRatio, that.maxLimitRequestRatio))) { - return false; - } - if (!(Objects.equals(min, that.min))) { - return false; - } - if (!(Objects.equals(type, that.type))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(_default, defaultRequest, max, maxLimitRequestRatio, min, type); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -430,5 +382,54 @@ public String toString() { return sb.toString(); } - + public A withDefault(Map _default) { + if (_default == null) { + this._default = null; + } else { + this._default = new LinkedHashMap(_default); + } + return (A) this; + } + + public A withDefaultRequest(Map defaultRequest) { + if (defaultRequest == null) { + this.defaultRequest = null; + } else { + this.defaultRequest = new LinkedHashMap(defaultRequest); + } + return (A) this; + } + + public A withMax(Map max) { + if (max == null) { + this.max = null; + } else { + this.max = new LinkedHashMap(max); + } + return (A) this; + } + + public A withMaxLimitRequestRatio(Map maxLimitRequestRatio) { + if (maxLimitRequestRatio == null) { + this.maxLimitRequestRatio = null; + } else { + this.maxLimitRequestRatio = new LinkedHashMap(maxLimitRequestRatio); + } + return (A) this; + } + + public A withMin(Map min) { + if (min == null) { + this.min = null; + } else { + this.min = new LinkedHashMap(min); + } + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java index e398ccd35b..049dc614af 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LimitRangeListBuilder extends V1LimitRangeListFluent implements VisitableBuilder{ + + V1LimitRangeListFluent fluent; + public V1LimitRangeListBuilder() { this(new V1LimitRangeList()); } @@ -11,17 +14,16 @@ public V1LimitRangeListBuilder(V1LimitRangeListFluent fluent) { this(fluent, new V1LimitRangeList()); } - public V1LimitRangeListBuilder(V1LimitRangeListFluent fluent,V1LimitRangeList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LimitRangeListBuilder(V1LimitRangeList instance) { this.fluent = this; this.copyInstance(instance); } - V1LimitRangeListFluent fluent; + public V1LimitRangeListBuilder(V1LimitRangeListFluent fluent,V1LimitRangeList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LimitRangeList build() { V1LimitRangeList buildable = new V1LimitRangeList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1LimitRangeList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java index 55b68edcd4..acaf72d251 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1LimitRangeListFluent> extends BaseFluent{ - public V1LimitRangeListFluent() { - } - - public V1LimitRangeListFluent(V1LimitRangeList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1LimitRangeList instance) { - instance = instance != null ? instance : new V1LimitRangeList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1LimitRangeListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1LimitRangeListFluent(V1LimitRangeList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1LimitRange item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1LimitRange item : items) { + V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1LimitRange item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1LimitRange item) { + return new ItemsNested(-1, item); } public A addToItems(V1LimitRange... items) { @@ -96,68 +65,31 @@ public A addToItems(V1LimitRange... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1LimitRange item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1LimitRange item : items) { - V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); + V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1LimitRange... items) { - if (this.items == null) { - return (A) this; - } - for (V1LimitRange item : items) { - V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1LimitRange item : items) { - V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1LimitRangeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1LimitRange buildFirstItem() { + return this.items.get(0).build(); } public V1LimitRange buildItem(int index) { return this.items.get(index).build(); } - public V1LimitRange buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1LimitRange buildLastItem() { @@ -173,73 +105,34 @@ public V1LimitRange buildMatchingItem(Predicate predicate) return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1LimitRangeBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1LimitRange item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1LimitRangeList instance) { + instance = instance != null ? instance : new V1LimitRangeList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1LimitRange... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1LimitRange item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1LimitRange item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1LimitRange item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1LimitRangeBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1LimitRange item : items) { + V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1LimitRange... items) { + if (this.items == null) { + return (A) this; + } + for (V1LimitRange item : items) { + V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1LimitRangeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1LimitRange item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1LimitRange item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1LimitRange item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1LimitRange... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1LimitRange item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1LimitRangeFluent> implements Nested{ + + V1LimitRangeBuilder builder; + int index; + ItemsNested(int index,V1LimitRange item) { this.index = index; this.builder = new V1LimitRangeBuilder(this, item); } - V1LimitRangeBuilder builder; - int index; - + public N and() { return (N) V1LimitRangeListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1LimitRangeListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java index c982ef4f6a..20331c6bfe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LimitRangeSpecBuilder extends V1LimitRangeSpecFluent implements VisitableBuilder{ + + V1LimitRangeSpecFluent fluent; + public V1LimitRangeSpecBuilder() { this(new V1LimitRangeSpec()); } @@ -11,22 +14,20 @@ public V1LimitRangeSpecBuilder(V1LimitRangeSpecFluent fluent) { this(fluent, new V1LimitRangeSpec()); } - public V1LimitRangeSpecBuilder(V1LimitRangeSpecFluent fluent,V1LimitRangeSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LimitRangeSpecBuilder(V1LimitRangeSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1LimitRangeSpecFluent fluent; + public V1LimitRangeSpecBuilder(V1LimitRangeSpecFluent fluent,V1LimitRangeSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LimitRangeSpec build() { V1LimitRangeSpec buildable = new V1LimitRangeSpec(); buildable.setLimits(fluent.buildLimits()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java index 6e8b829a31..40b558998b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java @@ -1,67 +1,52 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1LimitRangeSpecFluent> extends BaseFluent{ + + private ArrayList limits; + public V1LimitRangeSpecFluent() { } public V1LimitRangeSpecFluent(V1LimitRangeSpec instance) { this.copyInstance(instance); } - private ArrayList limits; - - protected void copyInstance(V1LimitRangeSpec instance) { - instance = instance != null ? instance : new V1LimitRangeSpec(); - if (instance != null) { - this.withLimits(instance.getLimits()); - } - } - - public A addToLimits(int index,V1LimitRangeItem item) { + + public A addAllToLimits(Collection items) { if (this.limits == null) { this.limits = new ArrayList(); } - V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); - if (index < 0 || index >= limits.size()) { - _visitables.get("limits").add(builder); - limits.add(builder); - } else { + for (V1LimitRangeItem item : items) { + V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); _visitables.get("limits").add(builder); - limits.add(index, builder); + this.limits.add(builder); } return (A) this; } - public A setToLimits(int index,V1LimitRangeItem item) { - if (this.limits == null) { - this.limits = new ArrayList(); - } - V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); - if (index < 0 || index >= limits.size()) { - _visitables.get("limits").add(builder); - limits.add(builder); - } else { - _visitables.get("limits").add(builder); - limits.set(index, builder); - } - return (A) this; + public LimitsNested addNewLimit() { + return new LimitsNested(-1, null); + } + + public LimitsNested addNewLimitLike(V1LimitRangeItem item) { + return new LimitsNested(-1, item); } public A addToLimits(V1LimitRangeItem... items) { @@ -76,72 +61,35 @@ public A addToLimits(V1LimitRangeItem... items) { return (A) this; } - public A addAllToLimits(Collection items) { + public A addToLimits(int index,V1LimitRangeItem item) { if (this.limits == null) { this.limits = new ArrayList(); } - for (V1LimitRangeItem item : items) { - V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); + V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); + if (index < 0 || index >= limits.size()) { _visitables.get("limits").add(builder); - this.limits.add(builder); - } - return (A) this; - } - - public A removeFromLimits(V1LimitRangeItem... items) { - if (this.limits == null) { - return (A) this; - } - for (V1LimitRangeItem item : items) { - V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); - _visitables.get("limits").remove(builder); - this.limits.remove(builder); - } - return (A) this; - } - - public A removeAllFromLimits(Collection items) { - if (this.limits == null) { - return (A) this; - } - for (V1LimitRangeItem item : items) { - V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); - _visitables.get("limits").remove(builder); - this.limits.remove(builder); + limits.add(builder); + } else { + _visitables.get("limits").add(builder); + limits.add(index, builder); } return (A) this; } - public A removeMatchingFromLimits(Predicate predicate) { - if (limits == null) { - return (A) this; - } - Iterator each = limits.iterator(); - List visitables = _visitables.get("limits"); - while (each.hasNext()) { - V1LimitRangeItemBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1LimitRangeItem buildFirstLimit() { + return this.limits.get(0).build(); } - public List buildLimits() { - return this.limits != null ? build(limits) : null; + public V1LimitRangeItem buildLastLimit() { + return this.limits.get(limits.size() - 1).build(); } public V1LimitRangeItem buildLimit(int index) { return this.limits.get(index).build(); } - public V1LimitRangeItem buildFirstLimit() { - return this.limits.get(0).build(); - } - - public V1LimitRangeItem buildLastLimit() { - return this.limits.get(limits.size() - 1).build(); + public List buildLimits() { + return this.limits != null ? build(limits) : null; } public V1LimitRangeItem buildMatchingLimit(Predicate predicate) { @@ -153,64 +101,11 @@ public V1LimitRangeItem buildMatchingLimit(Predicate pr return null; } - public boolean hasMatchingLimit(Predicate predicate) { - for (V1LimitRangeItemBuilder item : limits) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withLimits(List limits) { - if (this.limits != null) { - this._visitables.get("limits").clear(); - } - if (limits != null) { - this.limits = new ArrayList(); - for (V1LimitRangeItem item : limits) { - this.addToLimits(item); - } - } else { - this.limits = null; - } - return (A) this; - } - - public A withLimits(V1LimitRangeItem... limits) { - if (this.limits != null) { - this.limits.clear(); - _visitables.remove("limits"); - } - if (limits != null) { - for (V1LimitRangeItem item : limits) { - this.addToLimits(item); - } - } - return (A) this; - } - - public boolean hasLimits() { - return this.limits != null && !(this.limits.isEmpty()); - } - - public LimitsNested addNewLimit() { - return new LimitsNested(-1, null); - } - - public LimitsNested addNewLimitLike(V1LimitRangeItem item) { - return new LimitsNested(-1, item); - } - - public LimitsNested setNewLimitLike(int index,V1LimitRangeItem item) { - return new LimitsNested(index, item); - } - - public LimitsNested editLimit(int index) { - if (index <= limits.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "limits")); + protected void copyInstance(V1LimitRangeSpec instance) { + instance = instance != null ? instance : new V1LimitRangeSpec(); + if (instance != null) { + this.withLimits(instance.getLimits()); } - return this.setNewLimitLike(index, this.buildLimit(index)); } public LimitsNested editFirstLimit() { @@ -228,6 +123,13 @@ public LimitsNested editLastLimit() { return this.setNewLimitLike(index, this.buildLimit(index)); } + public LimitsNested editLimit(int index) { + if (limits.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "limits")); + } + return this.setNewLimitLike(index, this.buildLimit(index)); + } + public LimitsNested editMatchingLimit(Predicate predicate) { int index = -1; for (int i = 0;i < limits.size();i++) { @@ -259,10 +161,82 @@ public boolean equals(Object o) { return true; } + public boolean hasLimits() { + return this.limits != null && !(this.limits.isEmpty()); + } + + public boolean hasMatchingLimit(Predicate predicate) { + for (V1LimitRangeItemBuilder item : limits) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(limits); } + public A removeAllFromLimits(Collection items) { + if (this.limits == null) { + return (A) this; + } + for (V1LimitRangeItem item : items) { + V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); + _visitables.get("limits").remove(builder); + this.limits.remove(builder); + } + return (A) this; + } + + public A removeFromLimits(V1LimitRangeItem... items) { + if (this.limits == null) { + return (A) this; + } + for (V1LimitRangeItem item : items) { + V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); + _visitables.get("limits").remove(builder); + this.limits.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromLimits(Predicate predicate) { + if (limits == null) { + return (A) this; + } + Iterator each = limits.iterator(); + List visitables = _visitables.get("limits"); + while (each.hasNext()) { + V1LimitRangeItemBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public LimitsNested setNewLimitLike(int index,V1LimitRangeItem item) { + return new LimitsNested(index, item); + } + + public A setToLimits(int index,V1LimitRangeItem item) { + if (this.limits == null) { + this.limits = new ArrayList(); + } + V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); + if (index < 0 || index >= limits.size()) { + _visitables.get("limits").add(builder); + limits.add(builder); + } else { + _visitables.get("limits").add(builder); + limits.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -273,14 +247,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withLimits(List limits) { + if (this.limits != null) { + this._visitables.get("limits").clear(); + } + if (limits != null) { + this.limits = new ArrayList(); + for (V1LimitRangeItem item : limits) { + this.addToLimits(item); + } + } else { + this.limits = null; + } + return (A) this; + } + + public A withLimits(V1LimitRangeItem... limits) { + if (this.limits != null) { + this.limits.clear(); + _visitables.remove("limits"); + } + if (limits != null) { + for (V1LimitRangeItem item : limits) { + this.addToLimits(item); + } + } + return (A) this; + } public class LimitsNested extends V1LimitRangeItemFluent> implements Nested{ + + V1LimitRangeItemBuilder builder; + int index; + LimitsNested(int index,V1LimitRangeItem item) { this.index = index; this.builder = new V1LimitRangeItemBuilder(this, item); } - V1LimitRangeItemBuilder builder; - int index; - + public N and() { return (N) V1LimitRangeSpecFluent.this.setToLimits(index, builder.build()); } @@ -289,7 +293,5 @@ public N endLimit() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseBuilder.java index 68c8550243..c41c291612 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LimitResponseBuilder extends V1LimitResponseFluent implements VisitableBuilder{ + + V1LimitResponseFluent fluent; + public V1LimitResponseBuilder() { this(new V1LimitResponse()); } @@ -11,17 +14,16 @@ public V1LimitResponseBuilder(V1LimitResponseFluent fluent) { this(fluent, new V1LimitResponse()); } - public V1LimitResponseBuilder(V1LimitResponseFluent fluent,V1LimitResponse instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LimitResponseBuilder(V1LimitResponse instance) { this.fluent = this; this.copyInstance(instance); } - V1LimitResponseFluent fluent; + public V1LimitResponseBuilder(V1LimitResponseFluent fluent,V1LimitResponse instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LimitResponse build() { V1LimitResponse buildable = new V1LimitResponse(); buildable.setQueuing(fluent.buildQueuing()); @@ -29,5 +31,4 @@ public V1LimitResponse build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseFluent.java index d25e017cb8..ad81776834 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseFluent.java @@ -1,27 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1LimitResponseFluent> extends BaseFluent{ + + private V1QueuingConfigurationBuilder queuing; + private String type; + public V1LimitResponseFluent() { } public V1LimitResponseFluent(V1LimitResponse instance) { this.copyInstance(instance); } - private V1QueuingConfigurationBuilder queuing; - private String type; + + public V1QueuingConfiguration buildQueuing() { + return this.queuing != null ? this.queuing.build() : null; + } protected void copyInstance(V1LimitResponse instance) { instance = instance != null ? instance : new V1LimitResponse(); @@ -31,38 +37,6 @@ protected void copyInstance(V1LimitResponse instance) { } } - public V1QueuingConfiguration buildQueuing() { - return this.queuing != null ? this.queuing.build() : null; - } - - public A withQueuing(V1QueuingConfiguration queuing) { - this._visitables.remove("queuing"); - if (queuing != null) { - this.queuing = new V1QueuingConfigurationBuilder(queuing); - this._visitables.get("queuing").add(this.queuing); - } else { - this.queuing = null; - this._visitables.get("queuing").remove(this.queuing); - } - return (A) this; - } - - public boolean hasQueuing() { - return this.queuing != null; - } - - public QueuingNested withNewQueuing() { - return new QueuingNested(null); - } - - public QueuingNested withNewQueuingLike(V1QueuingConfiguration item) { - return new QueuingNested(item); - } - - public QueuingNested editQueuing() { - return this.withNewQueuingLike(Optional.ofNullable(this.buildQueuing()).orElse(null)); - } - public QueuingNested editOrNewQueuing() { return this.withNewQueuingLike(Optional.ofNullable(this.buildQueuing()).orElse(new V1QueuingConfigurationBuilder().build())); } @@ -71,17 +45,8 @@ public QueuingNested editOrNewQueuingLike(V1QueuingConfiguration item) { return this.withNewQueuingLike(Optional.ofNullable(this.buildQueuing()).orElse(item)); } - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; + public QueuingNested editQueuing() { + return this.withNewQueuingLike(Optional.ofNullable(this.buildQueuing()).orElse(null)); } public boolean equals(Object o) { @@ -104,6 +69,18 @@ public boolean equals(Object o) { return true; } + public String getType() { + return this.type; + } + + public boolean hasQueuing() { + return this.queuing != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(queuing, type); } @@ -123,12 +100,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public QueuingNested withNewQueuing() { + return new QueuingNested(null); + } + + public QueuingNested withNewQueuingLike(V1QueuingConfiguration item) { + return new QueuingNested(item); + } + + public A withQueuing(V1QueuingConfiguration queuing) { + this._visitables.remove("queuing"); + if (queuing != null) { + this.queuing = new V1QueuingConfigurationBuilder(queuing); + this._visitables.get("queuing").add(this.queuing); + } else { + this.queuing = null; + this._visitables.get("queuing").remove(this.queuing); + } + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } public class QueuingNested extends V1QueuingConfigurationFluent> implements Nested{ + + V1QueuingConfigurationBuilder builder; + QueuingNested(V1QueuingConfiguration item) { this.builder = new V1QueuingConfigurationBuilder(this, item); } - V1QueuingConfigurationBuilder builder; - + public N and() { return (N) V1LimitResponseFluent.this.withQueuing(builder.build()); } @@ -137,7 +141,5 @@ public N endQueuing() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationBuilder.java index eb1db2c9f1..e0d987df63 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LimitedPriorityLevelConfigurationBuilder extends V1LimitedPriorityLevelConfigurationFluent implements VisitableBuilder{ + + V1LimitedPriorityLevelConfigurationFluent fluent; + public V1LimitedPriorityLevelConfigurationBuilder() { this(new V1LimitedPriorityLevelConfiguration()); } @@ -11,17 +14,16 @@ public V1LimitedPriorityLevelConfigurationBuilder(V1LimitedPriorityLevelConfigur this(fluent, new V1LimitedPriorityLevelConfiguration()); } - public V1LimitedPriorityLevelConfigurationBuilder(V1LimitedPriorityLevelConfigurationFluent fluent,V1LimitedPriorityLevelConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LimitedPriorityLevelConfigurationBuilder(V1LimitedPriorityLevelConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1LimitedPriorityLevelConfigurationFluent fluent; + public V1LimitedPriorityLevelConfigurationBuilder(V1LimitedPriorityLevelConfigurationFluent fluent,V1LimitedPriorityLevelConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LimitedPriorityLevelConfiguration build() { V1LimitedPriorityLevelConfiguration buildable = new V1LimitedPriorityLevelConfiguration(); buildable.setBorrowingLimitPercent(fluent.getBorrowingLimitPercent()); @@ -31,5 +33,4 @@ public V1LimitedPriorityLevelConfiguration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationFluent.java index 2219523a9e..91e48386c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationFluent.java @@ -1,30 +1,36 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.String; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1LimitedPriorityLevelConfigurationFluent> extends BaseFluent{ + + private Integer borrowingLimitPercent; + private Integer lendablePercent; + private V1LimitResponseBuilder limitResponse; + private Integer nominalConcurrencyShares; + public V1LimitedPriorityLevelConfigurationFluent() { } public V1LimitedPriorityLevelConfigurationFluent(V1LimitedPriorityLevelConfiguration instance) { this.copyInstance(instance); } - private Integer borrowingLimitPercent; - private Integer lendablePercent; - private V1LimitResponseBuilder limitResponse; - private Integer nominalConcurrencyShares; + + public V1LimitResponse buildLimitResponse() { + return this.limitResponse != null ? this.limitResponse.build() : null; + } protected void copyInstance(V1LimitedPriorityLevelConfiguration instance) { instance = instance != null ? instance : new V1LimitedPriorityLevelConfiguration(); @@ -36,60 +42,6 @@ protected void copyInstance(V1LimitedPriorityLevelConfiguration instance) { } } - public Integer getBorrowingLimitPercent() { - return this.borrowingLimitPercent; - } - - public A withBorrowingLimitPercent(Integer borrowingLimitPercent) { - this.borrowingLimitPercent = borrowingLimitPercent; - return (A) this; - } - - public boolean hasBorrowingLimitPercent() { - return this.borrowingLimitPercent != null; - } - - public Integer getLendablePercent() { - return this.lendablePercent; - } - - public A withLendablePercent(Integer lendablePercent) { - this.lendablePercent = lendablePercent; - return (A) this; - } - - public boolean hasLendablePercent() { - return this.lendablePercent != null; - } - - public V1LimitResponse buildLimitResponse() { - return this.limitResponse != null ? this.limitResponse.build() : null; - } - - public A withLimitResponse(V1LimitResponse limitResponse) { - this._visitables.remove("limitResponse"); - if (limitResponse != null) { - this.limitResponse = new V1LimitResponseBuilder(limitResponse); - this._visitables.get("limitResponse").add(this.limitResponse); - } else { - this.limitResponse = null; - this._visitables.get("limitResponse").remove(this.limitResponse); - } - return (A) this; - } - - public boolean hasLimitResponse() { - return this.limitResponse != null; - } - - public LimitResponseNested withNewLimitResponse() { - return new LimitResponseNested(null); - } - - public LimitResponseNested withNewLimitResponseLike(V1LimitResponse item) { - return new LimitResponseNested(item); - } - public LimitResponseNested editLimitResponse() { return this.withNewLimitResponseLike(Optional.ofNullable(this.buildLimitResponse()).orElse(null)); } @@ -102,19 +54,6 @@ public LimitResponseNested editOrNewLimitResponseLike(V1LimitResponse item) { return this.withNewLimitResponseLike(Optional.ofNullable(this.buildLimitResponse()).orElse(item)); } - public Integer getNominalConcurrencyShares() { - return this.nominalConcurrencyShares; - } - - public A withNominalConcurrencyShares(Integer nominalConcurrencyShares) { - this.nominalConcurrencyShares = nominalConcurrencyShares; - return (A) this; - } - - public boolean hasNominalConcurrencyShares() { - return this.nominalConcurrencyShares != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -141,6 +80,34 @@ public boolean equals(Object o) { return true; } + public Integer getBorrowingLimitPercent() { + return this.borrowingLimitPercent; + } + + public Integer getLendablePercent() { + return this.lendablePercent; + } + + public Integer getNominalConcurrencyShares() { + return this.nominalConcurrencyShares; + } + + public boolean hasBorrowingLimitPercent() { + return this.borrowingLimitPercent != null; + } + + public boolean hasLendablePercent() { + return this.lendablePercent != null; + } + + public boolean hasLimitResponse() { + return this.limitResponse != null; + } + + public boolean hasNominalConcurrencyShares() { + return this.nominalConcurrencyShares != null; + } + public int hashCode() { return Objects.hash(borrowingLimitPercent, lendablePercent, limitResponse, nominalConcurrencyShares); } @@ -170,12 +137,49 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withBorrowingLimitPercent(Integer borrowingLimitPercent) { + this.borrowingLimitPercent = borrowingLimitPercent; + return (A) this; + } + + public A withLendablePercent(Integer lendablePercent) { + this.lendablePercent = lendablePercent; + return (A) this; + } + + public A withLimitResponse(V1LimitResponse limitResponse) { + this._visitables.remove("limitResponse"); + if (limitResponse != null) { + this.limitResponse = new V1LimitResponseBuilder(limitResponse); + this._visitables.get("limitResponse").add(this.limitResponse); + } else { + this.limitResponse = null; + this._visitables.get("limitResponse").remove(this.limitResponse); + } + return (A) this; + } + + public LimitResponseNested withNewLimitResponse() { + return new LimitResponseNested(null); + } + + public LimitResponseNested withNewLimitResponseLike(V1LimitResponse item) { + return new LimitResponseNested(item); + } + + public A withNominalConcurrencyShares(Integer nominalConcurrencyShares) { + this.nominalConcurrencyShares = nominalConcurrencyShares; + return (A) this; + } public class LimitResponseNested extends V1LimitResponseFluent> implements Nested{ + + V1LimitResponseBuilder builder; + LimitResponseNested(V1LimitResponse item) { this.builder = new V1LimitResponseBuilder(this, item); } - V1LimitResponseBuilder builder; - + public N and() { return (N) V1LimitedPriorityLevelConfigurationFluent.this.withLimitResponse(builder.build()); } @@ -184,7 +188,5 @@ public N endLimitResponse() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserBuilder.java index a81cd6b365..ce7c596bec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LinuxContainerUserBuilder extends V1LinuxContainerUserFluent implements VisitableBuilder{ + + V1LinuxContainerUserFluent fluent; + public V1LinuxContainerUserBuilder() { this(new V1LinuxContainerUser()); } @@ -11,17 +14,16 @@ public V1LinuxContainerUserBuilder(V1LinuxContainerUserFluent fluent) { this(fluent, new V1LinuxContainerUser()); } - public V1LinuxContainerUserBuilder(V1LinuxContainerUserFluent fluent,V1LinuxContainerUser instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LinuxContainerUserBuilder(V1LinuxContainerUser instance) { this.fluent = this; this.copyInstance(instance); } - V1LinuxContainerUserFluent fluent; + public V1LinuxContainerUserBuilder(V1LinuxContainerUserFluent fluent,V1LinuxContainerUser instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LinuxContainerUser build() { V1LinuxContainerUser buildable = new V1LinuxContainerUser(); buildable.setGid(fluent.getGid()); @@ -30,5 +32,4 @@ public V1LinuxContainerUser build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserFluent.java index 0b79d39372..bee3ff85ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserFluent.java @@ -1,67 +1,41 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Long; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1LinuxContainerUserFluent> extends BaseFluent{ - public V1LinuxContainerUserFluent() { - } - - public V1LinuxContainerUserFluent(V1LinuxContainerUser instance) { - this.copyInstance(instance); - } + private Long gid; private List supplementalGroups; private Long uid; - - protected void copyInstance(V1LinuxContainerUser instance) { - instance = instance != null ? instance : new V1LinuxContainerUser(); - if (instance != null) { - this.withGid(instance.getGid()); - this.withSupplementalGroups(instance.getSupplementalGroups()); - this.withUid(instance.getUid()); - } - } - - public Long getGid() { - return this.gid; - } - - public A withGid(Long gid) { - this.gid = gid; - return (A) this; + + public V1LinuxContainerUserFluent() { } - public boolean hasGid() { - return this.gid != null; + public V1LinuxContainerUserFluent(V1LinuxContainerUser instance) { + this.copyInstance(instance); } - - public A addToSupplementalGroups(int index,Long item) { + + public A addAllToSupplementalGroups(Collection items) { if (this.supplementalGroups == null) { this.supplementalGroups = new ArrayList(); } - this.supplementalGroups.add(index, item); - return (A) this; - } - - public A setToSupplementalGroups(int index,Long item) { - if (this.supplementalGroups == null) { - this.supplementalGroups = new ArrayList(); + for (Long item : items) { + this.supplementalGroups.add(item); } - this.supplementalGroups.set(index, item); return (A) this; } @@ -75,48 +49,54 @@ public A addToSupplementalGroups(Long... items) { return (A) this; } - public A addAllToSupplementalGroups(Collection items) { + public A addToSupplementalGroups(int index,Long item) { if (this.supplementalGroups == null) { this.supplementalGroups = new ArrayList(); } - for (Long item : items) { - this.supplementalGroups.add(item); - } + this.supplementalGroups.add(index, item); return (A) this; } - public A removeFromSupplementalGroups(Long... items) { - if (this.supplementalGroups == null) { - return (A) this; - } - for (Long item : items) { - this.supplementalGroups.remove(item); + protected void copyInstance(V1LinuxContainerUser instance) { + instance = instance != null ? instance : new V1LinuxContainerUser(); + if (instance != null) { + this.withGid(instance.getGid()); + this.withSupplementalGroups(instance.getSupplementalGroups()); + this.withUid(instance.getUid()); } - return (A) this; } - public A removeAllFromSupplementalGroups(Collection items) { - if (this.supplementalGroups == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (Long item : items) { - this.supplementalGroups.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public List getSupplementalGroups() { - return this.supplementalGroups; - } - - public Long getSupplementalGroup(int index) { - return this.supplementalGroups.get(index); + if (!(super.equals(o))) { + return false; + } + V1LinuxContainerUserFluent that = (V1LinuxContainerUserFluent) o; + if (!(Objects.equals(gid, that.gid))) { + return false; + } + if (!(Objects.equals(supplementalGroups, that.supplementalGroups))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; } public Long getFirstSupplementalGroup() { return this.supplementalGroups.get(0); } + public Long getGid() { + return this.gid; + } + public Long getLastSupplementalGroup() { return this.supplementalGroups.get(supplementalGroups.size() - 1); } @@ -130,6 +110,22 @@ public Long getMatchingSupplementalGroup(Predicate predicate) { return null; } + public Long getSupplementalGroup(int index) { + return this.supplementalGroups.get(index); + } + + public List getSupplementalGroups() { + return this.supplementalGroups; + } + + public Long getUid() { + return this.uid; + } + + public boolean hasGid() { + return this.gid != null; + } + public boolean hasMatchingSupplementalGroup(Predicate predicate) { for (Long item : supplementalGroups) { if (predicate.test(item)) { @@ -139,73 +135,44 @@ public boolean hasMatchingSupplementalGroup(Predicate predicate) { return false; } - public A withSupplementalGroups(List supplementalGroups) { - if (supplementalGroups != null) { - this.supplementalGroups = new ArrayList(); - for (Long item : supplementalGroups) { - this.addToSupplementalGroups(item); - } - } else { - this.supplementalGroups = null; - } - return (A) this; - } - - public A withSupplementalGroups(Long... supplementalGroups) { - if (this.supplementalGroups != null) { - this.supplementalGroups.clear(); - _visitables.remove("supplementalGroups"); - } - if (supplementalGroups != null) { - for (Long item : supplementalGroups) { - this.addToSupplementalGroups(item); - } - } - return (A) this; - } - public boolean hasSupplementalGroups() { return this.supplementalGroups != null && !(this.supplementalGroups.isEmpty()); } - public Long getUid() { - return this.uid; - } - - public A withUid(Long uid) { - this.uid = uid; - return (A) this; - } - public boolean hasUid() { return this.uid != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; + public int hashCode() { + return Objects.hash(gid, supplementalGroups, uid); + } + + public A removeAllFromSupplementalGroups(Collection items) { + if (this.supplementalGroups == null) { + return (A) this; } - V1LinuxContainerUserFluent that = (V1LinuxContainerUserFluent) o; - if (!(Objects.equals(gid, that.gid))) { - return false; + for (Long item : items) { + this.supplementalGroups.remove(item); } - if (!(Objects.equals(supplementalGroups, that.supplementalGroups))) { - return false; + return (A) this; + } + + public A removeFromSupplementalGroups(Long... items) { + if (this.supplementalGroups == null) { + return (A) this; } - if (!(Objects.equals(uid, that.uid))) { - return false; + for (Long item : items) { + this.supplementalGroups.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(gid, supplementalGroups, uid); + public A setToSupplementalGroups(int index,Long item) { + if (this.supplementalGroups == null) { + this.supplementalGroups = new ArrayList(); + } + this.supplementalGroups.set(index, item); + return (A) this; } public String toString() { @@ -229,5 +196,39 @@ public String toString() { return sb.toString(); } - + public A withGid(Long gid) { + this.gid = gid; + return (A) this; + } + + public A withSupplementalGroups(List supplementalGroups) { + if (supplementalGroups != null) { + this.supplementalGroups = new ArrayList(); + for (Long item : supplementalGroups) { + this.addToSupplementalGroups(item); + } + } else { + this.supplementalGroups = null; + } + return (A) this; + } + + public A withSupplementalGroups(Long... supplementalGroups) { + if (this.supplementalGroups != null) { + this.supplementalGroups.clear(); + _visitables.remove("supplementalGroups"); + } + if (supplementalGroups != null) { + for (Long item : supplementalGroups) { + this.addToSupplementalGroups(item); + } + } + return (A) this; + } + + public A withUid(Long uid) { + this.uid = uid; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java index e368d5cf8a..5c756a04d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ListMetaBuilder extends V1ListMetaFluent implements VisitableBuilder{ + + V1ListMetaFluent fluent; + public V1ListMetaBuilder() { this(new V1ListMeta()); } @@ -11,17 +14,16 @@ public V1ListMetaBuilder(V1ListMetaFluent fluent) { this(fluent, new V1ListMeta()); } - public V1ListMetaBuilder(V1ListMetaFluent fluent,V1ListMeta instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ListMetaBuilder(V1ListMeta instance) { this.fluent = this; this.copyInstance(instance); } - V1ListMetaFluent fluent; + public V1ListMetaBuilder(V1ListMetaFluent fluent,V1ListMeta instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ListMeta build() { V1ListMeta buildable = new V1ListMeta(); buildable.setContinue(fluent.getContinue()); @@ -31,5 +33,4 @@ public V1ListMeta build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java index fc6dc3170b..f7f83861c1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ListMetaFluent> extends BaseFluent{ + + private String _continue; + private Long remainingItemCount; + private String resourceVersion; + private String selfLink; + public V1ListMetaFluent() { } public V1ListMetaFluent(V1ListMeta instance) { this.copyInstance(instance); } - private String _continue; - private Long remainingItemCount; - private String resourceVersion; - private String selfLink; - + protected void copyInstance(V1ListMeta instance) { instance = instance != null ? instance : new V1ListMeta(); if (instance != null) { @@ -34,58 +36,6 @@ protected void copyInstance(V1ListMeta instance) { } } - public String getContinue() { - return this._continue; - } - - public A withContinue(String _continue) { - this._continue = _continue; - return (A) this; - } - - public boolean hasContinue() { - return this._continue != null; - } - - public Long getRemainingItemCount() { - return this.remainingItemCount; - } - - public A withRemainingItemCount(Long remainingItemCount) { - this.remainingItemCount = remainingItemCount; - return (A) this; - } - - public boolean hasRemainingItemCount() { - return this.remainingItemCount != null; - } - - public String getResourceVersion() { - return this.resourceVersion; - } - - public A withResourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; - return (A) this; - } - - public boolean hasResourceVersion() { - return this.resourceVersion != null; - } - - public String getSelfLink() { - return this.selfLink; - } - - public A withSelfLink(String selfLink) { - this.selfLink = selfLink; - return (A) this; - } - - public boolean hasSelfLink() { - return this.selfLink != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -112,6 +62,38 @@ public boolean equals(Object o) { return true; } + public String getContinue() { + return this._continue; + } + + public Long getRemainingItemCount() { + return this.remainingItemCount; + } + + public String getResourceVersion() { + return this.resourceVersion; + } + + public String getSelfLink() { + return this.selfLink; + } + + public boolean hasContinue() { + return this._continue != null; + } + + public boolean hasRemainingItemCount() { + return this.remainingItemCount != null; + } + + public boolean hasResourceVersion() { + return this.resourceVersion != null; + } + + public boolean hasSelfLink() { + return this.selfLink != null; + } + public int hashCode() { return Objects.hash(_continue, remainingItemCount, resourceVersion, selfLink); } @@ -142,5 +124,24 @@ public String toString() { return sb.toString(); } - + public A withContinue(String _continue) { + this._continue = _continue; + return (A) this; + } + + public A withRemainingItemCount(Long remainingItemCount) { + this.remainingItemCount = remainingItemCount; + return (A) this; + } + + public A withResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + return (A) this; + } + + public A withSelfLink(String selfLink) { + this.selfLink = selfLink; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java index 50c0d9dcf1..6c983ef69a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LoadBalancerIngressBuilder extends V1LoadBalancerIngressFluent implements VisitableBuilder{ + + V1LoadBalancerIngressFluent fluent; + public V1LoadBalancerIngressBuilder() { this(new V1LoadBalancerIngress()); } @@ -11,17 +14,16 @@ public V1LoadBalancerIngressBuilder(V1LoadBalancerIngressFluent fluent) { this(fluent, new V1LoadBalancerIngress()); } - public V1LoadBalancerIngressBuilder(V1LoadBalancerIngressFluent fluent,V1LoadBalancerIngress instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LoadBalancerIngressBuilder(V1LoadBalancerIngress instance) { this.fluent = this; this.copyInstance(instance); } - V1LoadBalancerIngressFluent fluent; + public V1LoadBalancerIngressBuilder(V1LoadBalancerIngressFluent fluent,V1LoadBalancerIngress instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LoadBalancerIngress build() { V1LoadBalancerIngress buildable = new V1LoadBalancerIngress(); buildable.setHostname(fluent.getHostname()); @@ -31,5 +33,4 @@ public V1LoadBalancerIngress build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java index 8e4bd47146..11083f6e4f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java @@ -1,112 +1,55 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1LoadBalancerIngressFluent> extends BaseFluent{ - public V1LoadBalancerIngressFluent() { - } - - public V1LoadBalancerIngressFluent(V1LoadBalancerIngress instance) { - this.copyInstance(instance); - } + private String hostname; private String ip; private String ipMode; private ArrayList ports; - - protected void copyInstance(V1LoadBalancerIngress instance) { - instance = instance != null ? instance : new V1LoadBalancerIngress(); - if (instance != null) { - this.withHostname(instance.getHostname()); - this.withIp(instance.getIp()); - this.withIpMode(instance.getIpMode()); - this.withPorts(instance.getPorts()); - } - } - - public String getHostname() { - return this.hostname; - } - - public A withHostname(String hostname) { - this.hostname = hostname; - return (A) this; - } - - public boolean hasHostname() { - return this.hostname != null; - } - - public String getIp() { - return this.ip; - } - - public A withIp(String ip) { - this.ip = ip; - return (A) this; - } - - public boolean hasIp() { - return this.ip != null; - } - - public String getIpMode() { - return this.ipMode; - } - - public A withIpMode(String ipMode) { - this.ipMode = ipMode; - return (A) this; + + public V1LoadBalancerIngressFluent() { } - public boolean hasIpMode() { - return this.ipMode != null; + public V1LoadBalancerIngressFluent(V1LoadBalancerIngress instance) { + this.copyInstance(instance); } - - public A addToPorts(int index,V1PortStatus item) { + + public A addAllToPorts(Collection items) { if (this.ports == null) { this.ports = new ArrayList(); } - V1PortStatusBuilder builder = new V1PortStatusBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); - } else { + for (V1PortStatus item : items) { + V1PortStatusBuilder builder = new V1PortStatusBuilder(item); _visitables.get("ports").add(builder); - ports.add(index, builder); + this.ports.add(builder); } return (A) this; } - public A setToPorts(int index,V1PortStatus item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - V1PortStatusBuilder builder = new V1PortStatusBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); - } else { - _visitables.get("ports").add(builder); - ports.set(index, builder); - } - return (A) this; + public PortsNested addNewPort() { + return new PortsNested(-1, null); + } + + public PortsNested addNewPortLike(V1PortStatus item) { + return new PortsNested(-1, item); } public A addToPorts(V1PortStatus... items) { @@ -121,66 +64,21 @@ public A addToPorts(V1PortStatus... items) { return (A) this; } - public A addAllToPorts(Collection items) { + public A addToPorts(int index,V1PortStatus item) { if (this.ports == null) { this.ports = new ArrayList(); } - for (V1PortStatus item : items) { - V1PortStatusBuilder builder = new V1PortStatusBuilder(item); + V1PortStatusBuilder builder = new V1PortStatusBuilder(item); + if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; - } - - public A removeFromPorts(V1PortStatus... items) { - if (this.ports == null) { - return (A) this; - } - for (V1PortStatus item : items) { - V1PortStatusBuilder builder = new V1PortStatusBuilder(item); - _visitables.get("ports").remove(builder); - this.ports.remove(builder); - } - return (A) this; - } - - public A removeAllFromPorts(Collection items) { - if (this.ports == null) { - return (A) this; - } - for (V1PortStatus item : items) { - V1PortStatusBuilder builder = new V1PortStatusBuilder(item); - _visitables.get("ports").remove(builder); - this.ports.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) { - return (A) this; - } - Iterator each = ports.iterator(); - List visitables = _visitables.get("ports"); - while (each.hasNext()) { - V1PortStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); } return (A) this; } - public List buildPorts() { - return this.ports != null ? build(ports) : null; - } - - public V1PortStatus buildPort(int index) { - return this.ports.get(index).build(); - } - public V1PortStatus buildFirstPort() { return this.ports.get(0).build(); } @@ -198,64 +96,22 @@ public V1PortStatus buildMatchingPort(Predicate predicate) return null; } - public boolean hasMatchingPort(Predicate predicate) { - for (V1PortStatusBuilder item : ports) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withPorts(List ports) { - if (this.ports != null) { - this._visitables.get("ports").clear(); - } - if (ports != null) { - this.ports = new ArrayList(); - for (V1PortStatus item : ports) { - this.addToPorts(item); - } - } else { - this.ports = null; - } - return (A) this; - } - - public A withPorts(V1PortStatus... ports) { - if (this.ports != null) { - this.ports.clear(); - _visitables.remove("ports"); - } - if (ports != null) { - for (V1PortStatus item : ports) { - this.addToPorts(item); - } - } - return (A) this; - } - - public boolean hasPorts() { - return this.ports != null && !(this.ports.isEmpty()); - } - - public PortsNested addNewPort() { - return new PortsNested(-1, null); - } - - public PortsNested addNewPortLike(V1PortStatus item) { - return new PortsNested(-1, item); + public V1PortStatus buildPort(int index) { + return this.ports.get(index).build(); } - public PortsNested setNewPortLike(int index,V1PortStatus item) { - return new PortsNested(index, item); + public List buildPorts() { + return this.ports != null ? build(ports) : null; } - public PortsNested editPort(int index) { - if (index <= ports.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + protected void copyInstance(V1LoadBalancerIngress instance) { + instance = instance != null ? instance : new V1LoadBalancerIngress(); + if (instance != null) { + this.withHostname(instance.getHostname()); + this.withIp(instance.getIp()); + this.withIpMode(instance.getIpMode()); + this.withPorts(instance.getPorts()); } - return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editFirstPort() { @@ -287,6 +143,13 @@ public PortsNested editMatchingPort(Predicate predicate) return this.setNewPortLike(index, this.buildPort(index)); } + public PortsNested editPort(int index) { + if (ports.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -313,10 +176,106 @@ public boolean equals(Object o) { return true; } + public String getHostname() { + return this.hostname; + } + + public String getIp() { + return this.ip; + } + + public String getIpMode() { + return this.ipMode; + } + + public boolean hasHostname() { + return this.hostname != null; + } + + public boolean hasIp() { + return this.ip != null; + } + + public boolean hasIpMode() { + return this.ipMode != null; + } + + public boolean hasMatchingPort(Predicate predicate) { + for (V1PortStatusBuilder item : ports) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPorts() { + return this.ports != null && !(this.ports.isEmpty()); + } + public int hashCode() { return Objects.hash(hostname, ip, ipMode, ports); } + public A removeAllFromPorts(Collection items) { + if (this.ports == null) { + return (A) this; + } + for (V1PortStatus item : items) { + V1PortStatusBuilder builder = new V1PortStatusBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; + } + + public A removeFromPorts(V1PortStatus... items) { + if (this.ports == null) { + return (A) this; + } + for (V1PortStatus item : items) { + V1PortStatusBuilder builder = new V1PortStatusBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromPorts(Predicate predicate) { + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); + while (each.hasNext()) { + V1PortStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public PortsNested setNewPortLike(int index,V1PortStatus item) { + return new PortsNested(index, item); + } + + public A setToPorts(int index,V1PortStatus item) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + V1PortStatusBuilder builder = new V1PortStatusBuilder(item); + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -342,14 +301,59 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withHostname(String hostname) { + this.hostname = hostname; + return (A) this; + } + + public A withIp(String ip) { + this.ip = ip; + return (A) this; + } + + public A withIpMode(String ipMode) { + this.ipMode = ipMode; + return (A) this; + } + + public A withPorts(List ports) { + if (this.ports != null) { + this._visitables.get("ports").clear(); + } + if (ports != null) { + this.ports = new ArrayList(); + for (V1PortStatus item : ports) { + this.addToPorts(item); + } + } else { + this.ports = null; + } + return (A) this; + } + + public A withPorts(V1PortStatus... ports) { + if (this.ports != null) { + this.ports.clear(); + _visitables.remove("ports"); + } + if (ports != null) { + for (V1PortStatus item : ports) { + this.addToPorts(item); + } + } + return (A) this; + } public class PortsNested extends V1PortStatusFluent> implements Nested{ + + V1PortStatusBuilder builder; + int index; + PortsNested(int index,V1PortStatus item) { this.index = index; this.builder = new V1PortStatusBuilder(this, item); } - V1PortStatusBuilder builder; - int index; - + public N and() { return (N) V1LoadBalancerIngressFluent.this.setToPorts(index, builder.build()); } @@ -358,7 +362,5 @@ public N endPort() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java index 114a4414c4..baf7f1cd9b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LoadBalancerStatusBuilder extends V1LoadBalancerStatusFluent implements VisitableBuilder{ + + V1LoadBalancerStatusFluent fluent; + public V1LoadBalancerStatusBuilder() { this(new V1LoadBalancerStatus()); } @@ -11,22 +14,20 @@ public V1LoadBalancerStatusBuilder(V1LoadBalancerStatusFluent fluent) { this(fluent, new V1LoadBalancerStatus()); } - public V1LoadBalancerStatusBuilder(V1LoadBalancerStatusFluent fluent,V1LoadBalancerStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LoadBalancerStatusBuilder(V1LoadBalancerStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1LoadBalancerStatusFluent fluent; + public V1LoadBalancerStatusBuilder(V1LoadBalancerStatusFluent fluent,V1LoadBalancerStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LoadBalancerStatus build() { V1LoadBalancerStatus buildable = new V1LoadBalancerStatus(); buildable.setIngress(fluent.buildIngress()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java index 997edcd5f0..083786cc8c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java @@ -1,67 +1,52 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1LoadBalancerStatusFluent> extends BaseFluent{ + + private ArrayList ingress; + public V1LoadBalancerStatusFluent() { } public V1LoadBalancerStatusFluent(V1LoadBalancerStatus instance) { this.copyInstance(instance); } - private ArrayList ingress; - - protected void copyInstance(V1LoadBalancerStatus instance) { - instance = instance != null ? instance : new V1LoadBalancerStatus(); - if (instance != null) { - this.withIngress(instance.getIngress()); - } - } - - public A addToIngress(int index,V1LoadBalancerIngress item) { + + public A addAllToIngress(Collection items) { if (this.ingress == null) { this.ingress = new ArrayList(); } - V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); - if (index < 0 || index >= ingress.size()) { - _visitables.get("ingress").add(builder); - ingress.add(builder); - } else { + for (V1LoadBalancerIngress item : items) { + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); _visitables.get("ingress").add(builder); - ingress.add(index, builder); + this.ingress.add(builder); } return (A) this; } - public A setToIngress(int index,V1LoadBalancerIngress item) { - if (this.ingress == null) { - this.ingress = new ArrayList(); - } - V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); - if (index < 0 || index >= ingress.size()) { - _visitables.get("ingress").add(builder); - ingress.add(builder); - } else { - _visitables.get("ingress").add(builder); - ingress.set(index, builder); - } - return (A) this; + public IngressNested addNewIngress() { + return new IngressNested(-1, null); + } + + public IngressNested addNewIngressLike(V1LoadBalancerIngress item) { + return new IngressNested(-1, item); } public A addToIngress(V1LoadBalancerIngress... items) { @@ -76,56 +61,23 @@ public A addToIngress(V1LoadBalancerIngress... items) { return (A) this; } - public A addAllToIngress(Collection items) { + public A addToIngress(int index,V1LoadBalancerIngress item) { if (this.ingress == null) { this.ingress = new ArrayList(); } - for (V1LoadBalancerIngress item : items) { - V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); + if (index < 0 || index >= ingress.size()) { _visitables.get("ingress").add(builder); - this.ingress.add(builder); - } - return (A) this; - } - - public A removeFromIngress(V1LoadBalancerIngress... items) { - if (this.ingress == null) { - return (A) this; - } - for (V1LoadBalancerIngress item : items) { - V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); - _visitables.get("ingress").remove(builder); - this.ingress.remove(builder); - } - return (A) this; - } - - public A removeAllFromIngress(Collection items) { - if (this.ingress == null) { - return (A) this; - } - for (V1LoadBalancerIngress item : items) { - V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); - _visitables.get("ingress").remove(builder); - this.ingress.remove(builder); + ingress.add(builder); + } else { + _visitables.get("ingress").add(builder); + ingress.add(index, builder); } return (A) this; } - public A removeMatchingFromIngress(Predicate predicate) { - if (ingress == null) { - return (A) this; - } - Iterator each = ingress.iterator(); - List visitables = _visitables.get("ingress"); - while (each.hasNext()) { - V1LoadBalancerIngressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1LoadBalancerIngress buildFirstIngress() { + return this.ingress.get(0).build(); } public List buildIngress() { @@ -136,10 +88,6 @@ public V1LoadBalancerIngress buildIngress(int index) { return this.ingress.get(index).build(); } - public V1LoadBalancerIngress buildFirstIngress() { - return this.ingress.get(0).build(); - } - public V1LoadBalancerIngress buildLastIngress() { return this.ingress.get(ingress.size() - 1).build(); } @@ -153,73 +101,27 @@ public V1LoadBalancerIngress buildMatchingIngress(Predicate predicate) { - for (V1LoadBalancerIngressBuilder item : ingress) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withIngress(List ingress) { - if (this.ingress != null) { - this._visitables.get("ingress").clear(); - } - if (ingress != null) { - this.ingress = new ArrayList(); - for (V1LoadBalancerIngress item : ingress) { - this.addToIngress(item); - } - } else { - this.ingress = null; + protected void copyInstance(V1LoadBalancerStatus instance) { + instance = instance != null ? instance : new V1LoadBalancerStatus(); + if (instance != null) { + this.withIngress(instance.getIngress()); } - return (A) this; } - public A withIngress(V1LoadBalancerIngress... ingress) { - if (this.ingress != null) { - this.ingress.clear(); - _visitables.remove("ingress"); - } - if (ingress != null) { - for (V1LoadBalancerIngress item : ingress) { - this.addToIngress(item); - } + public IngressNested editFirstIngress() { + if (ingress.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ingress")); } - return (A) this; - } - - public boolean hasIngress() { - return this.ingress != null && !(this.ingress.isEmpty()); - } - - public IngressNested addNewIngress() { - return new IngressNested(-1, null); - } - - public IngressNested addNewIngressLike(V1LoadBalancerIngress item) { - return new IngressNested(-1, item); - } - - public IngressNested setNewIngressLike(int index,V1LoadBalancerIngress item) { - return new IngressNested(index, item); + return this.setNewIngressLike(0, this.buildIngress(0)); } public IngressNested editIngress(int index) { - if (index <= ingress.size()) { + if (ingress.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ingress")); } return this.setNewIngressLike(index, this.buildIngress(index)); } - public IngressNested editFirstIngress() { - if (ingress.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ingress")); - } - return this.setNewIngressLike(0, this.buildIngress(0)); - } - public IngressNested editLastIngress() { int index = ingress.size() - 1; if (index < 0) { @@ -259,10 +161,82 @@ public boolean equals(Object o) { return true; } + public boolean hasIngress() { + return this.ingress != null && !(this.ingress.isEmpty()); + } + + public boolean hasMatchingIngress(Predicate predicate) { + for (V1LoadBalancerIngressBuilder item : ingress) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(ingress); } + public A removeAllFromIngress(Collection items) { + if (this.ingress == null) { + return (A) this; + } + for (V1LoadBalancerIngress item : items) { + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); + _visitables.get("ingress").remove(builder); + this.ingress.remove(builder); + } + return (A) this; + } + + public A removeFromIngress(V1LoadBalancerIngress... items) { + if (this.ingress == null) { + return (A) this; + } + for (V1LoadBalancerIngress item : items) { + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); + _visitables.get("ingress").remove(builder); + this.ingress.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromIngress(Predicate predicate) { + if (ingress == null) { + return (A) this; + } + Iterator each = ingress.iterator(); + List visitables = _visitables.get("ingress"); + while (each.hasNext()) { + V1LoadBalancerIngressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public IngressNested setNewIngressLike(int index,V1LoadBalancerIngress item) { + return new IngressNested(index, item); + } + + public A setToIngress(int index,V1LoadBalancerIngress item) { + if (this.ingress == null) { + this.ingress = new ArrayList(); + } + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); + if (index < 0 || index >= ingress.size()) { + _visitables.get("ingress").add(builder); + ingress.add(builder); + } else { + _visitables.get("ingress").add(builder); + ingress.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -273,14 +247,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withIngress(List ingress) { + if (this.ingress != null) { + this._visitables.get("ingress").clear(); + } + if (ingress != null) { + this.ingress = new ArrayList(); + for (V1LoadBalancerIngress item : ingress) { + this.addToIngress(item); + } + } else { + this.ingress = null; + } + return (A) this; + } + + public A withIngress(V1LoadBalancerIngress... ingress) { + if (this.ingress != null) { + this.ingress.clear(); + _visitables.remove("ingress"); + } + if (ingress != null) { + for (V1LoadBalancerIngress item : ingress) { + this.addToIngress(item); + } + } + return (A) this; + } public class IngressNested extends V1LoadBalancerIngressFluent> implements Nested{ + + V1LoadBalancerIngressBuilder builder; + int index; + IngressNested(int index,V1LoadBalancerIngress item) { this.index = index; this.builder = new V1LoadBalancerIngressBuilder(this, item); } - V1LoadBalancerIngressBuilder builder; - int index; - + public N and() { return (N) V1LoadBalancerStatusFluent.this.setToIngress(index, builder.build()); } @@ -289,7 +293,5 @@ public N endIngress() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java index 13791e07c6..e7cea89c6e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LocalObjectReferenceBuilder extends V1LocalObjectReferenceFluent implements VisitableBuilder{ + + V1LocalObjectReferenceFluent fluent; + public V1LocalObjectReferenceBuilder() { this(new V1LocalObjectReference()); } @@ -11,22 +14,20 @@ public V1LocalObjectReferenceBuilder(V1LocalObjectReferenceFluent fluent) { this(fluent, new V1LocalObjectReference()); } - public V1LocalObjectReferenceBuilder(V1LocalObjectReferenceFluent fluent,V1LocalObjectReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LocalObjectReferenceBuilder(V1LocalObjectReference instance) { this.fluent = this; this.copyInstance(instance); } - V1LocalObjectReferenceFluent fluent; + public V1LocalObjectReferenceBuilder(V1LocalObjectReferenceFluent fluent,V1LocalObjectReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LocalObjectReference build() { V1LocalObjectReference buildable = new V1LocalObjectReference(); buildable.setName(fluent.getName()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java index 3fa0eaf924..f8bcbf82a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1LocalObjectReferenceFluent> extends BaseFluent{ + + private String name; + public V1LocalObjectReferenceFluent() { } public V1LocalObjectReferenceFluent(V1LocalObjectReference instance) { this.copyInstance(instance); } - private String name; - + protected void copyInstance(V1LocalObjectReference instance) { instance = instance != null ? instance : new V1LocalObjectReference(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1LocalObjectReference instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(name); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java index 957c349119..b40190efd3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LocalSubjectAccessReviewBuilder extends V1LocalSubjectAccessReviewFluent implements VisitableBuilder{ + + V1LocalSubjectAccessReviewFluent fluent; + public V1LocalSubjectAccessReviewBuilder() { this(new V1LocalSubjectAccessReview()); } @@ -11,17 +14,16 @@ public V1LocalSubjectAccessReviewBuilder(V1LocalSubjectAccessReviewFluent flu this(fluent, new V1LocalSubjectAccessReview()); } - public V1LocalSubjectAccessReviewBuilder(V1LocalSubjectAccessReviewFluent fluent,V1LocalSubjectAccessReview instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LocalSubjectAccessReviewBuilder(V1LocalSubjectAccessReview instance) { this.fluent = this; this.copyInstance(instance); } - V1LocalSubjectAccessReviewFluent fluent; + public V1LocalSubjectAccessReviewBuilder(V1LocalSubjectAccessReviewFluent fluent,V1LocalSubjectAccessReview instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LocalSubjectAccessReview build() { V1LocalSubjectAccessReview buildable = new V1LocalSubjectAccessReview(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1LocalSubjectAccessReview build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java index 9542d4b3ef..4871effbc3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1LocalSubjectAccessReviewFluent> extends BaseFluent{ - public V1LocalSubjectAccessReviewFluent() { - } - - public V1LocalSubjectAccessReviewFluent(V1LocalSubjectAccessReview instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1SubjectAccessReviewSpecBuilder spec; private V1SubjectAccessReviewStatusBuilder status; - - protected void copyInstance(V1LocalSubjectAccessReview instance) { - instance = instance != null ? instance : new V1LocalSubjectAccessReview(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1LocalSubjectAccessReviewFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1LocalSubjectAccessReviewFluent(V1LocalSubjectAccessReview instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1SubjectAccessReviewSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1SubjectAccessReviewStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1LocalSubjectAccessReview instance) { + instance = instance != null ? instance : new V1LocalSubjectAccessReview(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1SubjectAccessReviewSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1SubjectAccessReviewSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1SubjectAccessReviewSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1SubjectAccessReviewSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1SubjectAccessReviewSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1SubjectAccessReviewSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1SubjectAccessReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1SubjectAccessReviewStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1SubjectAccessReviewStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SubjectAccessReviewStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SubjectAccessReviewStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1SubjectAccessReviewSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1SubjectAccessReviewSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1SubjectAccessReviewSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1SubjectAccessReviewStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1SubjectAccessReviewStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1LocalSubjectAccessReviewFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1SubjectAccessReviewSpecFluent> implements Nested{ + + V1SubjectAccessReviewSpecBuilder builder; + SpecNested(V1SubjectAccessReviewSpec item) { this.builder = new V1SubjectAccessReviewSpecBuilder(this, item); } - V1SubjectAccessReviewSpecBuilder builder; - + public N and() { return (N) V1LocalSubjectAccessReviewFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1SubjectAccessReviewStatusFluent> implements Nested{ + + V1SubjectAccessReviewStatusBuilder builder; + StatusNested(V1SubjectAccessReviewStatus item) { this.builder = new V1SubjectAccessReviewStatusBuilder(this, item); } - V1SubjectAccessReviewStatusBuilder builder; - + public N and() { return (N) V1LocalSubjectAccessReviewFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java index 812ccfc42a..175642acf8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1LocalVolumeSourceBuilder extends V1LocalVolumeSourceFluent implements VisitableBuilder{ + + V1LocalVolumeSourceFluent fluent; + public V1LocalVolumeSourceBuilder() { this(new V1LocalVolumeSource()); } @@ -11,17 +14,16 @@ public V1LocalVolumeSourceBuilder(V1LocalVolumeSourceFluent fluent) { this(fluent, new V1LocalVolumeSource()); } - public V1LocalVolumeSourceBuilder(V1LocalVolumeSourceFluent fluent,V1LocalVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LocalVolumeSourceBuilder(V1LocalVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1LocalVolumeSourceFluent fluent; + public V1LocalVolumeSourceBuilder(V1LocalVolumeSourceFluent fluent,V1LocalVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LocalVolumeSource build() { V1LocalVolumeSource buildable = new V1LocalVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -29,5 +31,4 @@ public V1LocalVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java index 82f45426cf..f94704933d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1LocalVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private String path; + public V1LocalVolumeSourceFluent() { } public V1LocalVolumeSourceFluent(V1LocalVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private String path; - + protected void copyInstance(V1LocalVolumeSource instance) { instance = instance != null ? instance : new V1LocalVolumeSource(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1LocalVolumeSource instance) { } } - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; - } - - public boolean hasFsType() { - return this.fsType != null; - } - - public String getPath() { - return this.path; - } - - public A withPath(String path) { - this.path = path; - return (A) this; - } - - public boolean hasPath() { - return this.path != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getFsType() { + return this.fsType; + } + + public String getPath() { + return this.path; + } + + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasPath() { + return this.path != null; + } + public int hashCode() { return Objects.hash(fsType, path); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java index e8b952bf34..4257684378 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ManagedFieldsEntryBuilder extends V1ManagedFieldsEntryFluent implements VisitableBuilder{ + + V1ManagedFieldsEntryFluent fluent; + public V1ManagedFieldsEntryBuilder() { this(new V1ManagedFieldsEntry()); } @@ -11,17 +14,16 @@ public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntryFluent fluent) { this(fluent, new V1ManagedFieldsEntry()); } - public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntryFluent fluent,V1ManagedFieldsEntry instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntry instance) { this.fluent = this; this.copyInstance(instance); } - V1ManagedFieldsEntryFluent fluent; + public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntryFluent fluent,V1ManagedFieldsEntry instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ManagedFieldsEntry build() { V1ManagedFieldsEntry buildable = new V1ManagedFieldsEntry(); buildable.setApiVersion(fluent.getApiVersion()); @@ -34,5 +36,4 @@ public V1ManagedFieldsEntry build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java index 3b684a29af..648c6f9c4d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java @@ -1,24 +1,19 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ManagedFieldsEntryFluent> extends BaseFluent{ - public V1ManagedFieldsEntryFluent() { - } - - public V1ManagedFieldsEntryFluent(V1ManagedFieldsEntry instance) { - this.copyInstance(instance); - } + private String apiVersion; private String fieldsType; private Object fieldsV1; @@ -26,7 +21,14 @@ public V1ManagedFieldsEntryFluent(V1ManagedFieldsEntry instance) { private String operation; private String subresource; private OffsetDateTime time; + + public V1ManagedFieldsEntryFluent() { + } + public V1ManagedFieldsEntryFluent(V1ManagedFieldsEntry instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1ManagedFieldsEntry instance) { instance = instance != null ? instance : new V1ManagedFieldsEntry(); if (instance != null) { @@ -40,130 +42,95 @@ protected void copyInstance(V1ManagedFieldsEntry instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ManagedFieldsEntryFluent that = (V1ManagedFieldsEntryFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(fieldsType, that.fieldsType))) { + return false; + } + if (!(Objects.equals(fieldsV1, that.fieldsV1))) { + return false; + } + if (!(Objects.equals(manager, that.manager))) { + return false; + } + if (!(Objects.equals(operation, that.operation))) { + return false; + } + if (!(Objects.equals(subresource, that.subresource))) { + return false; + } + if (!(Objects.equals(time, that.time))) { + return false; + } + return true; } - public boolean hasApiVersion() { - return this.apiVersion != null; + public String getApiVersion() { + return this.apiVersion; } public String getFieldsType() { return this.fieldsType; } - public A withFieldsType(String fieldsType) { - this.fieldsType = fieldsType; - return (A) this; - } - - public boolean hasFieldsType() { - return this.fieldsType != null; - } - public Object getFieldsV1() { return this.fieldsV1; } - public A withFieldsV1(Object fieldsV1) { - this.fieldsV1 = fieldsV1; - return (A) this; - } - - public boolean hasFieldsV1() { - return this.fieldsV1 != null; - } - public String getManager() { return this.manager; } - public A withManager(String manager) { - this.manager = manager; - return (A) this; - } - - public boolean hasManager() { - return this.manager != null; - } - public String getOperation() { return this.operation; } - public A withOperation(String operation) { - this.operation = operation; - return (A) this; + public String getSubresource() { + return this.subresource; } - public boolean hasOperation() { - return this.operation != null; + public OffsetDateTime getTime() { + return this.time; } - public String getSubresource() { - return this.subresource; + public boolean hasApiVersion() { + return this.apiVersion != null; } - public A withSubresource(String subresource) { - this.subresource = subresource; - return (A) this; + public boolean hasFieldsType() { + return this.fieldsType != null; } - public boolean hasSubresource() { - return this.subresource != null; + public boolean hasFieldsV1() { + return this.fieldsV1 != null; } - public OffsetDateTime getTime() { - return this.time; + public boolean hasManager() { + return this.manager != null; } - public A withTime(OffsetDateTime time) { - this.time = time; - return (A) this; + public boolean hasOperation() { + return this.operation != null; } - public boolean hasTime() { - return this.time != null; + public boolean hasSubresource() { + return this.subresource != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ManagedFieldsEntryFluent that = (V1ManagedFieldsEntryFluent) o; - if (!(Objects.equals(apiVersion, that.apiVersion))) { - return false; - } - if (!(Objects.equals(fieldsType, that.fieldsType))) { - return false; - } - if (!(Objects.equals(fieldsV1, that.fieldsV1))) { - return false; - } - if (!(Objects.equals(manager, that.manager))) { - return false; - } - if (!(Objects.equals(operation, that.operation))) { - return false; - } - if (!(Objects.equals(subresource, that.subresource))) { - return false; - } - if (!(Objects.equals(time, that.time))) { - return false; - } - return true; + public boolean hasTime() { + return this.time != null; } public int hashCode() { @@ -211,5 +178,39 @@ public String toString() { return sb.toString(); } - + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withFieldsType(String fieldsType) { + this.fieldsType = fieldsType; + return (A) this; + } + + public A withFieldsV1(Object fieldsV1) { + this.fieldsV1 = fieldsV1; + return (A) this; + } + + public A withManager(String manager) { + this.manager = manager; + return (A) this; + } + + public A withOperation(String operation) { + this.operation = operation; + return (A) this; + } + + public A withSubresource(String subresource) { + this.subresource = subresource; + return (A) this; + } + + public A withTime(OffsetDateTime time) { + this.time = time; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionBuilder.java index ee2d634878..8818b55efb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1MatchConditionBuilder extends V1MatchConditionFluent implements VisitableBuilder{ + + V1MatchConditionFluent fluent; + public V1MatchConditionBuilder() { this(new V1MatchCondition()); } @@ -11,17 +14,16 @@ public V1MatchConditionBuilder(V1MatchConditionFluent fluent) { this(fluent, new V1MatchCondition()); } - public V1MatchConditionBuilder(V1MatchConditionFluent fluent,V1MatchCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1MatchConditionBuilder(V1MatchCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1MatchConditionFluent fluent; + public V1MatchConditionBuilder(V1MatchConditionFluent fluent,V1MatchCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1MatchCondition build() { V1MatchCondition buildable = new V1MatchCondition(); buildable.setExpression(fluent.getExpression()); @@ -29,5 +31,4 @@ public V1MatchCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionFluent.java index aae50388d5..2f33b2dc54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1MatchConditionFluent> extends BaseFluent{ + + private String expression; + private String name; + public V1MatchConditionFluent() { } public V1MatchConditionFluent(V1MatchCondition instance) { this.copyInstance(instance); } - private String expression; - private String name; - + protected void copyInstance(V1MatchCondition instance) { instance = instance != null ? instance : new V1MatchCondition(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1MatchCondition instance) { } } - public String getExpression() { - return this.expression; - } - - public A withExpression(String expression) { - this.expression = expression; - return (A) this; - } - - public boolean hasExpression() { - return this.expression != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getExpression() { + return this.expression; + } + + public String getName() { + return this.name; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(expression, name); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesBuilder.java index 998d73f297..1b1d4d8ce2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1MatchResourcesBuilder extends V1MatchResourcesFluent implements VisitableBuilder{ + + V1MatchResourcesFluent fluent; + public V1MatchResourcesBuilder() { this(new V1MatchResources()); } @@ -11,17 +14,16 @@ public V1MatchResourcesBuilder(V1MatchResourcesFluent fluent) { this(fluent, new V1MatchResources()); } - public V1MatchResourcesBuilder(V1MatchResourcesFluent fluent,V1MatchResources instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1MatchResourcesBuilder(V1MatchResources instance) { this.fluent = this; this.copyInstance(instance); } - V1MatchResourcesFluent fluent; + public V1MatchResourcesBuilder(V1MatchResourcesFluent fluent,V1MatchResources instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1MatchResources build() { V1MatchResources buildable = new V1MatchResources(); buildable.setExcludeResourceRules(fluent.buildExcludeResourceRules()); @@ -32,5 +34,4 @@ public V1MatchResources build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesFluent.java index b17627df03..c9aa0d4bc6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesFluent.java @@ -1,78 +1,79 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1MatchResourcesFluent> extends BaseFluent{ - public V1MatchResourcesFluent() { - } - - public V1MatchResourcesFluent(V1MatchResources instance) { - this.copyInstance(instance); - } + private ArrayList excludeResourceRules; private String matchPolicy; private V1LabelSelectorBuilder namespaceSelector; private V1LabelSelectorBuilder objectSelector; private ArrayList resourceRules; - - protected void copyInstance(V1MatchResources instance) { - instance = instance != null ? instance : new V1MatchResources(); - if (instance != null) { - this.withExcludeResourceRules(instance.getExcludeResourceRules()); - this.withMatchPolicy(instance.getMatchPolicy()); - this.withNamespaceSelector(instance.getNamespaceSelector()); - this.withObjectSelector(instance.getObjectSelector()); - this.withResourceRules(instance.getResourceRules()); - } + + public V1MatchResourcesFluent() { } - public A addToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { + public V1MatchResourcesFluent(V1MatchResources instance) { + this.copyInstance(instance); + } + + public A addAllToExcludeResourceRules(Collection items) { if (this.excludeResourceRules == null) { this.excludeResourceRules = new ArrayList(); } - V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.add(builder); - } else { + for (V1NamedRuleWithOperations item : items) { + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.add(index, builder); + this.excludeResourceRules.add(builder); } return (A) this; } - public A setToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { - if (this.excludeResourceRules == null) { - this.excludeResourceRules = new ArrayList(); + public A addAllToResourceRules(Collection items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); } - V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.add(builder); - } else { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.set(index, builder); + for (V1NamedRuleWithOperations item : items) { + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); } return (A) this; } + public ExcludeResourceRulesNested addNewExcludeResourceRule() { + return new ExcludeResourceRulesNested(-1, null); + } + + public ExcludeResourceRulesNested addNewExcludeResourceRuleLike(V1NamedRuleWithOperations item) { + return new ExcludeResourceRulesNested(-1, item); + } + + public ResourceRulesNested addNewResourceRule() { + return new ResourceRulesNested(-1, null); + } + + public ResourceRulesNested addNewResourceRuleLike(V1NamedRuleWithOperations item) { + return new ResourceRulesNested(-1, item); + } + public A addToExcludeResourceRules(V1NamedRuleWithOperations... items) { if (this.excludeResourceRules == null) { this.excludeResourceRules = new ArrayList(); @@ -85,74 +86,72 @@ public A addToExcludeResourceRules(V1NamedRuleWithOperations... items) { return (A) this; } - public A addAllToExcludeResourceRules(Collection items) { + public A addToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) { this.excludeResourceRules = new ArrayList(); } - for (V1NamedRuleWithOperations item : items) { - V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); - this.excludeResourceRules.add(builder); + excludeResourceRules.add(builder); + } else { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(index, builder); } return (A) this; } - public A removeFromExcludeResourceRules(V1NamedRuleWithOperations... items) { - if (this.excludeResourceRules == null) { - return (A) this; + public A addToResourceRules(V1NamedRuleWithOperations... items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); } for (V1NamedRuleWithOperations item : items) { V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - _visitables.get("excludeResourceRules").remove(builder); - this.excludeResourceRules.remove(builder); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); } return (A) this; } - public A removeAllFromExcludeResourceRules(Collection items) { - if (this.excludeResourceRules == null) { - return (A) this; + public A addToResourceRules(int index,V1NamedRuleWithOperations item) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); } - for (V1NamedRuleWithOperations item : items) { - V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - _visitables.get("excludeResourceRules").remove(builder); - this.excludeResourceRules.remove(builder); + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.add(index, builder); } return (A) this; } - public A removeMatchingFromExcludeResourceRules(Predicate predicate) { - if (excludeResourceRules == null) { - return (A) this; - } - Iterator each = excludeResourceRules.iterator(); - List visitables = _visitables.get("excludeResourceRules"); - while (each.hasNext()) { - V1NamedRuleWithOperationsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1NamedRuleWithOperations buildExcludeResourceRule(int index) { + return this.excludeResourceRules.get(index).build(); } public List buildExcludeResourceRules() { return this.excludeResourceRules != null ? build(excludeResourceRules) : null; } - public V1NamedRuleWithOperations buildExcludeResourceRule(int index) { - return this.excludeResourceRules.get(index).build(); - } - public V1NamedRuleWithOperations buildFirstExcludeResourceRule() { return this.excludeResourceRules.get(0).build(); } + public V1NamedRuleWithOperations buildFirstResourceRule() { + return this.resourceRules.get(0).build(); + } + public V1NamedRuleWithOperations buildLastExcludeResourceRule() { return this.excludeResourceRules.get(excludeResourceRules.size() - 1).build(); } + public V1NamedRuleWithOperations buildLastResourceRule() { + return this.resourceRules.get(resourceRules.size() - 1).build(); + } + public V1NamedRuleWithOperations buildMatchingExcludeResourceRule(Predicate predicate) { for (V1NamedRuleWithOperationsBuilder item : excludeResourceRules) { if (predicate.test(item)) { @@ -162,61 +161,44 @@ public V1NamedRuleWithOperations buildMatchingExcludeResourceRule(Predicate predicate) { - for (V1NamedRuleWithOperationsBuilder item : excludeResourceRules) { + public V1NamedRuleWithOperations buildMatchingResourceRule(Predicate predicate) { + for (V1NamedRuleWithOperationsBuilder item : resourceRules) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; - } - - public A withExcludeResourceRules(List excludeResourceRules) { - if (this.excludeResourceRules != null) { - this._visitables.get("excludeResourceRules").clear(); - } - if (excludeResourceRules != null) { - this.excludeResourceRules = new ArrayList(); - for (V1NamedRuleWithOperations item : excludeResourceRules) { - this.addToExcludeResourceRules(item); - } - } else { - this.excludeResourceRules = null; - } - return (A) this; + return null; } - public A withExcludeResourceRules(V1NamedRuleWithOperations... excludeResourceRules) { - if (this.excludeResourceRules != null) { - this.excludeResourceRules.clear(); - _visitables.remove("excludeResourceRules"); - } - if (excludeResourceRules != null) { - for (V1NamedRuleWithOperations item : excludeResourceRules) { - this.addToExcludeResourceRules(item); - } - } - return (A) this; + public V1LabelSelector buildNamespaceSelector() { + return this.namespaceSelector != null ? this.namespaceSelector.build() : null; } - public boolean hasExcludeResourceRules() { - return this.excludeResourceRules != null && !(this.excludeResourceRules.isEmpty()); + public V1LabelSelector buildObjectSelector() { + return this.objectSelector != null ? this.objectSelector.build() : null; } - public ExcludeResourceRulesNested addNewExcludeResourceRule() { - return new ExcludeResourceRulesNested(-1, null); + public V1NamedRuleWithOperations buildResourceRule(int index) { + return this.resourceRules.get(index).build(); } - public ExcludeResourceRulesNested addNewExcludeResourceRuleLike(V1NamedRuleWithOperations item) { - return new ExcludeResourceRulesNested(-1, item); + public List buildResourceRules() { + return this.resourceRules != null ? build(resourceRules) : null; } - public ExcludeResourceRulesNested setNewExcludeResourceRuleLike(int index,V1NamedRuleWithOperations item) { - return new ExcludeResourceRulesNested(index, item); + protected void copyInstance(V1MatchResources instance) { + instance = instance != null ? instance : new V1MatchResources(); + if (instance != null) { + this.withExcludeResourceRules(instance.getExcludeResourceRules()); + this.withMatchPolicy(instance.getMatchPolicy()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withObjectSelector(instance.getObjectSelector()); + this.withResourceRules(instance.getResourceRules()); + } } public ExcludeResourceRulesNested editExcludeResourceRule(int index) { - if (index <= excludeResourceRules.size()) { + if (excludeResourceRules.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "excludeResourceRules")); } return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); @@ -229,6 +211,13 @@ public ExcludeResourceRulesNested editFirstExcludeResourceRule() { return this.setNewExcludeResourceRuleLike(0, this.buildExcludeResourceRule(0)); } + public ResourceRulesNested editFirstResourceRule() { + if (resourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); + } + public ExcludeResourceRulesNested editLastExcludeResourceRule() { int index = excludeResourceRules.size() - 1; if (index < 0) { @@ -237,6 +226,14 @@ public ExcludeResourceRulesNested editLastExcludeResourceRule() { return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); } + public ResourceRulesNested editLastResourceRule() { + int index = resourceRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + } + public ExcludeResourceRulesNested editMatchingExcludeResourceRule(Predicate predicate) { int index = -1; for (int i = 0;i < excludeResourceRules.size();i++) { @@ -251,149 +248,158 @@ public ExcludeResourceRulesNested editMatchingExcludeResourceRule(Predicate editMatchingResourceRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceRules.size();i++) { + if (predicate.test(resourceRules.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } - public A withMatchPolicy(String matchPolicy) { - this.matchPolicy = matchPolicy; - return (A) this; + public NamespaceSelectorNested editNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); } - public boolean hasMatchPolicy() { - return this.matchPolicy != null; + public ObjectSelectorNested editObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); } - public V1LabelSelector buildNamespaceSelector() { - return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + public NamespaceSelectorNested editOrNewNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public A withNamespaceSelector(V1LabelSelector namespaceSelector) { - this._visitables.remove("namespaceSelector"); - if (namespaceSelector != null) { - this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); - this._visitables.get("namespaceSelector").add(this.namespaceSelector); - } else { - this.namespaceSelector = null; - this._visitables.get("namespaceSelector").remove(this.namespaceSelector); - } - return (A) this; - } - - public boolean hasNamespaceSelector() { - return this.namespaceSelector != null; - } - - public NamespaceSelectorNested withNewNamespaceSelector() { - return new NamespaceSelectorNested(null); + public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); } - public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { - return new NamespaceSelectorNested(item); + public ObjectSelectorNested editOrNewObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public NamespaceSelectorNested editNamespaceSelector() { - return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); + public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); } - public NamespaceSelectorNested editOrNewNamespaceSelector() { - return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + public ResourceRulesNested editResourceRule(int index) { + if (resourceRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } - public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { - return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1MatchResourcesFluent that = (V1MatchResourcesFluent) o; + if (!(Objects.equals(excludeResourceRules, that.excludeResourceRules))) { + return false; + } + if (!(Objects.equals(matchPolicy, that.matchPolicy))) { + return false; + } + if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { + return false; + } + if (!(Objects.equals(objectSelector, that.objectSelector))) { + return false; + } + if (!(Objects.equals(resourceRules, that.resourceRules))) { + return false; + } + return true; } - public V1LabelSelector buildObjectSelector() { - return this.objectSelector != null ? this.objectSelector.build() : null; + public String getMatchPolicy() { + return this.matchPolicy; } - public A withObjectSelector(V1LabelSelector objectSelector) { - this._visitables.remove("objectSelector"); - if (objectSelector != null) { - this.objectSelector = new V1LabelSelectorBuilder(objectSelector); - this._visitables.get("objectSelector").add(this.objectSelector); - } else { - this.objectSelector = null; - this._visitables.get("objectSelector").remove(this.objectSelector); - } - return (A) this; + public boolean hasExcludeResourceRules() { + return this.excludeResourceRules != null && !(this.excludeResourceRules.isEmpty()); } - public boolean hasObjectSelector() { - return this.objectSelector != null; + public boolean hasMatchPolicy() { + return this.matchPolicy != null; } - public ObjectSelectorNested withNewObjectSelector() { - return new ObjectSelectorNested(null); + public boolean hasMatchingExcludeResourceRule(Predicate predicate) { + for (V1NamedRuleWithOperationsBuilder item : excludeResourceRules) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { - return new ObjectSelectorNested(item); + public boolean hasMatchingResourceRule(Predicate predicate) { + for (V1NamedRuleWithOperationsBuilder item : resourceRules) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public ObjectSelectorNested editObjectSelector() { - return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); + public boolean hasNamespaceSelector() { + return this.namespaceSelector != null; } - public ObjectSelectorNested editOrNewObjectSelector() { - return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); + public boolean hasObjectSelector() { + return this.objectSelector != null; } - public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { - return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); + public boolean hasResourceRules() { + return this.resourceRules != null && !(this.resourceRules.isEmpty()); } - public A addToResourceRules(int index,V1NamedRuleWithOperations item) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); - } - V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); - } else { - _visitables.get("resourceRules").add(builder); - resourceRules.add(index, builder); - } - return (A) this; + public int hashCode() { + return Objects.hash(excludeResourceRules, matchPolicy, namespaceSelector, objectSelector, resourceRules); } - public A setToResourceRules(int index,V1NamedRuleWithOperations item) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + public A removeAllFromExcludeResourceRules(Collection items) { + if (this.excludeResourceRules == null) { + return (A) this; } - V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); - } else { - _visitables.get("resourceRules").add(builder); - resourceRules.set(index, builder); + for (V1NamedRuleWithOperations item : items) { + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").remove(builder); + this.excludeResourceRules.remove(builder); } return (A) this; } - public A addToResourceRules(V1NamedRuleWithOperations... items) { + public A removeAllFromResourceRules(Collection items) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + return (A) this; } for (V1NamedRuleWithOperations item : items) { V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - _visitables.get("resourceRules").add(builder); - this.resourceRules.add(builder); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); } return (A) this; } - public A addAllToResourceRules(Collection items) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + public A removeFromExcludeResourceRules(V1NamedRuleWithOperations... items) { + if (this.excludeResourceRules == null) { + return (A) this; } for (V1NamedRuleWithOperations item : items) { V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - _visitables.get("resourceRules").add(builder); - this.resourceRules.add(builder); + _visitables.get("excludeResourceRules").remove(builder); + this.excludeResourceRules.remove(builder); } return (A) this; } @@ -410,14 +416,18 @@ public A removeFromResourceRules(V1NamedRuleWithOperations... items) { return (A) this; } - public A removeAllFromResourceRules(Collection items) { - if (this.resourceRules == null) { + public A removeMatchingFromExcludeResourceRules(Predicate predicate) { + if (excludeResourceRules == null) { return (A) this; } - for (V1NamedRuleWithOperations item : items) { - V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - _visitables.get("resourceRules").remove(builder); - this.resourceRules.remove(builder); + Iterator each = excludeResourceRules.iterator(); + List visitables = _visitables.get("excludeResourceRules"); + while (each.hasNext()) { + V1NamedRuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -438,191 +448,185 @@ public A removeMatchingFromResourceRules(Predicate buildResourceRules() { - return this.resourceRules != null ? build(resourceRules) : null; - } - - public V1NamedRuleWithOperations buildResourceRule(int index) { - return this.resourceRules.get(index).build(); + public ExcludeResourceRulesNested setNewExcludeResourceRuleLike(int index,V1NamedRuleWithOperations item) { + return new ExcludeResourceRulesNested(index, item); } - public V1NamedRuleWithOperations buildFirstResourceRule() { - return this.resourceRules.get(0).build(); + public ResourceRulesNested setNewResourceRuleLike(int index,V1NamedRuleWithOperations item) { + return new ResourceRulesNested(index, item); } - public V1NamedRuleWithOperations buildLastResourceRule() { - return this.resourceRules.get(resourceRules.size() - 1).build(); + public A setToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + if (index < 0 || index >= excludeResourceRules.size()) { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(builder); + } else { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.set(index, builder); + } + return (A) this; } - public V1NamedRuleWithOperations buildMatchingResourceRule(Predicate predicate) { - for (V1NamedRuleWithOperationsBuilder item : resourceRules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A setToResourceRules(int index,V1NamedRuleWithOperations item) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.set(index, builder); + } + return (A) this; } - public boolean hasMatchingResourceRule(Predicate predicate) { - for (V1NamedRuleWithOperationsBuilder item : resourceRules) { - if (predicate.test(item)) { - return true; - } - } - return false; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(excludeResourceRules == null) && !(excludeResourceRules.isEmpty())) { + sb.append("excludeResourceRules:"); + sb.append(excludeResourceRules); + sb.append(","); + } + if (!(matchPolicy == null)) { + sb.append("matchPolicy:"); + sb.append(matchPolicy); + sb.append(","); + } + if (!(namespaceSelector == null)) { + sb.append("namespaceSelector:"); + sb.append(namespaceSelector); + sb.append(","); + } + if (!(objectSelector == null)) { + sb.append("objectSelector:"); + sb.append(objectSelector); + sb.append(","); + } + if (!(resourceRules == null) && !(resourceRules.isEmpty())) { + sb.append("resourceRules:"); + sb.append(resourceRules); + } + sb.append("}"); + return sb.toString(); } - public A withResourceRules(List resourceRules) { - if (this.resourceRules != null) { - this._visitables.get("resourceRules").clear(); + public A withExcludeResourceRules(List excludeResourceRules) { + if (this.excludeResourceRules != null) { + this._visitables.get("excludeResourceRules").clear(); } - if (resourceRules != null) { - this.resourceRules = new ArrayList(); - for (V1NamedRuleWithOperations item : resourceRules) { - this.addToResourceRules(item); + if (excludeResourceRules != null) { + this.excludeResourceRules = new ArrayList(); + for (V1NamedRuleWithOperations item : excludeResourceRules) { + this.addToExcludeResourceRules(item); } } else { - this.resourceRules = null; + this.excludeResourceRules = null; } return (A) this; } - public A withResourceRules(V1NamedRuleWithOperations... resourceRules) { - if (this.resourceRules != null) { - this.resourceRules.clear(); - _visitables.remove("resourceRules"); + public A withExcludeResourceRules(V1NamedRuleWithOperations... excludeResourceRules) { + if (this.excludeResourceRules != null) { + this.excludeResourceRules.clear(); + _visitables.remove("excludeResourceRules"); } - if (resourceRules != null) { - for (V1NamedRuleWithOperations item : resourceRules) { - this.addToResourceRules(item); + if (excludeResourceRules != null) { + for (V1NamedRuleWithOperations item : excludeResourceRules) { + this.addToExcludeResourceRules(item); } } return (A) this; } - public boolean hasResourceRules() { - return this.resourceRules != null && !(this.resourceRules.isEmpty()); + public A withMatchPolicy(String matchPolicy) { + this.matchPolicy = matchPolicy; + return (A) this; } - public ResourceRulesNested addNewResourceRule() { - return new ResourceRulesNested(-1, null); + public A withNamespaceSelector(V1LabelSelector namespaceSelector) { + this._visitables.remove("namespaceSelector"); + if (namespaceSelector != null) { + this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); + this._visitables.get("namespaceSelector").add(this.namespaceSelector); + } else { + this.namespaceSelector = null; + this._visitables.get("namespaceSelector").remove(this.namespaceSelector); + } + return (A) this; } - public ResourceRulesNested addNewResourceRuleLike(V1NamedRuleWithOperations item) { - return new ResourceRulesNested(-1, item); + public NamespaceSelectorNested withNewNamespaceSelector() { + return new NamespaceSelectorNested(null); } - public ResourceRulesNested setNewResourceRuleLike(int index,V1NamedRuleWithOperations item) { - return new ResourceRulesNested(index, item); + public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { + return new NamespaceSelectorNested(item); } - public ResourceRulesNested editResourceRule(int index) { - if (index <= resourceRules.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); - } - return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + public ObjectSelectorNested withNewObjectSelector() { + return new ObjectSelectorNested(null); } - public ResourceRulesNested editFirstResourceRule() { - if (resourceRules.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); - } - return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); + public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { + return new ObjectSelectorNested(item); } - public ResourceRulesNested editLastResourceRule() { - int index = resourceRules.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + public A withObjectSelector(V1LabelSelector objectSelector) { + this._visitables.remove("objectSelector"); + if (objectSelector != null) { + this.objectSelector = new V1LabelSelectorBuilder(objectSelector); + this._visitables.get("objectSelector").add(this.objectSelector); + } else { + this.objectSelector = null; + this._visitables.get("objectSelector").remove(this.objectSelector); } - return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + return (A) this; } - public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { - int index = -1; - for (int i = 0;i < resourceRules.size();i++) { - if (predicate.test(resourceRules.get(i))) { - index = i; - break; - } + public A withResourceRules(List resourceRules) { + if (this.resourceRules != null) { + this._visitables.get("resourceRules").clear(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceRules")); + if (resourceRules != null) { + this.resourceRules = new ArrayList(); + for (V1NamedRuleWithOperations item : resourceRules) { + this.addToResourceRules(item); + } + } else { + this.resourceRules = null; } - return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1MatchResourcesFluent that = (V1MatchResourcesFluent) o; - if (!(Objects.equals(excludeResourceRules, that.excludeResourceRules))) { - return false; - } - if (!(Objects.equals(matchPolicy, that.matchPolicy))) { - return false; - } - if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { - return false; - } - if (!(Objects.equals(objectSelector, that.objectSelector))) { - return false; + public A withResourceRules(V1NamedRuleWithOperations... resourceRules) { + if (this.resourceRules != null) { + this.resourceRules.clear(); + _visitables.remove("resourceRules"); } - if (!(Objects.equals(resourceRules, that.resourceRules))) { - return false; + if (resourceRules != null) { + for (V1NamedRuleWithOperations item : resourceRules) { + this.addToResourceRules(item); + } } - return true; + return (A) this; } + public class ExcludeResourceRulesNested extends V1NamedRuleWithOperationsFluent> implements Nested{ - public int hashCode() { - return Objects.hash(excludeResourceRules, matchPolicy, namespaceSelector, objectSelector, resourceRules); - } + V1NamedRuleWithOperationsBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(excludeResourceRules == null) && !(excludeResourceRules.isEmpty())) { - sb.append("excludeResourceRules:"); - sb.append(excludeResourceRules); - sb.append(","); - } - if (!(matchPolicy == null)) { - sb.append("matchPolicy:"); - sb.append(matchPolicy); - sb.append(","); - } - if (!(namespaceSelector == null)) { - sb.append("namespaceSelector:"); - sb.append(namespaceSelector); - sb.append(","); - } - if (!(objectSelector == null)) { - sb.append("objectSelector:"); - sb.append(objectSelector); - sb.append(","); - } - if (!(resourceRules == null) && !(resourceRules.isEmpty())) { - sb.append("resourceRules:"); - sb.append(resourceRules); - } - sb.append("}"); - return sb.toString(); - } - public class ExcludeResourceRulesNested extends V1NamedRuleWithOperationsFluent> implements Nested{ ExcludeResourceRulesNested(int index,V1NamedRuleWithOperations item) { this.index = index; this.builder = new V1NamedRuleWithOperationsBuilder(this, item); } - V1NamedRuleWithOperationsBuilder builder; - int index; - + public N and() { return (N) V1MatchResourcesFluent.this.setToExcludeResourceRules(index, builder.build()); } @@ -631,14 +635,15 @@ public N endExcludeResourceRule() { return and(); } - } public class NamespaceSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + NamespaceSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1MatchResourcesFluent.this.withNamespaceSelector(builder.build()); } @@ -647,14 +652,15 @@ public N endNamespaceSelector() { return and(); } - } public class ObjectSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + ObjectSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1MatchResourcesFluent.this.withObjectSelector(builder.build()); } @@ -663,16 +669,17 @@ public N endObjectSelector() { return and(); } - } public class ResourceRulesNested extends V1NamedRuleWithOperationsFluent> implements Nested{ + + V1NamedRuleWithOperationsBuilder builder; + int index; + ResourceRulesNested(int index,V1NamedRuleWithOperations item) { this.index = index; this.builder = new V1NamedRuleWithOperationsBuilder(this, item); } - V1NamedRuleWithOperationsBuilder builder; - int index; - + public N and() { return (N) V1MatchResourcesFluent.this.setToResourceRules(index, builder.build()); } @@ -681,7 +688,5 @@ public N endResourceRule() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusBuilder.java index 248ed54494..db82986200 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ModifyVolumeStatusBuilder extends V1ModifyVolumeStatusFluent implements VisitableBuilder{ + + V1ModifyVolumeStatusFluent fluent; + public V1ModifyVolumeStatusBuilder() { this(new V1ModifyVolumeStatus()); } @@ -11,17 +14,16 @@ public V1ModifyVolumeStatusBuilder(V1ModifyVolumeStatusFluent fluent) { this(fluent, new V1ModifyVolumeStatus()); } - public V1ModifyVolumeStatusBuilder(V1ModifyVolumeStatusFluent fluent,V1ModifyVolumeStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ModifyVolumeStatusBuilder(V1ModifyVolumeStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ModifyVolumeStatusFluent fluent; + public V1ModifyVolumeStatusBuilder(V1ModifyVolumeStatusFluent fluent,V1ModifyVolumeStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ModifyVolumeStatus build() { V1ModifyVolumeStatus buildable = new V1ModifyVolumeStatus(); buildable.setStatus(fluent.getStatus()); @@ -29,5 +31,4 @@ public V1ModifyVolumeStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusFluent.java index 7391c4f1fc..148efdc63d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ModifyVolumeStatusFluent> extends BaseFluent{ + + private String status; + private String targetVolumeAttributesClassName; + public V1ModifyVolumeStatusFluent() { } public V1ModifyVolumeStatusFluent(V1ModifyVolumeStatus instance) { this.copyInstance(instance); } - private String status; - private String targetVolumeAttributesClassName; - + protected void copyInstance(V1ModifyVolumeStatus instance) { instance = instance != null ? instance : new V1ModifyVolumeStatus(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1ModifyVolumeStatus instance) { } } - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public String getTargetVolumeAttributesClassName() { - return this.targetVolumeAttributesClassName; - } - - public A withTargetVolumeAttributesClassName(String targetVolumeAttributesClassName) { - this.targetVolumeAttributesClassName = targetVolumeAttributesClassName; - return (A) this; - } - - public boolean hasTargetVolumeAttributesClassName() { - return this.targetVolumeAttributesClassName != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getStatus() { + return this.status; + } + + public String getTargetVolumeAttributesClassName() { + return this.targetVolumeAttributesClassName; + } + + public boolean hasStatus() { + return this.status != null; + } + + public boolean hasTargetVolumeAttributesClassName() { + return this.targetVolumeAttributesClassName != null; + } + public int hashCode() { return Objects.hash(status, targetVolumeAttributesClassName); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withTargetVolumeAttributesClassName(String targetVolumeAttributesClassName) { + this.targetVolumeAttributesClassName = targetVolumeAttributesClassName; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java index 66dd31dddf..a775f9b01a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1MutatingWebhookBuilder extends V1MutatingWebhookFluent implements VisitableBuilder{ + + V1MutatingWebhookFluent fluent; + public V1MutatingWebhookBuilder() { this(new V1MutatingWebhook()); } @@ -11,17 +14,16 @@ public V1MutatingWebhookBuilder(V1MutatingWebhookFluent fluent) { this(fluent, new V1MutatingWebhook()); } - public V1MutatingWebhookBuilder(V1MutatingWebhookFluent fluent,V1MutatingWebhook instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1MutatingWebhookBuilder(V1MutatingWebhook instance) { this.fluent = this; this.copyInstance(instance); } - V1MutatingWebhookFluent fluent; + public V1MutatingWebhookBuilder(V1MutatingWebhookFluent fluent,V1MutatingWebhook instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1MutatingWebhook build() { V1MutatingWebhook buildable = new V1MutatingWebhook(); buildable.setAdmissionReviewVersions(fluent.getAdmissionReviewVersions()); @@ -39,5 +41,4 @@ public V1MutatingWebhook build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java index dee4cd9bc2..7b3fce9255 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1MutatingWebhookConfigurationBuilder extends V1MutatingWebhookConfigurationFluent implements VisitableBuilder{ + + V1MutatingWebhookConfigurationFluent fluent; + public V1MutatingWebhookConfigurationBuilder() { this(new V1MutatingWebhookConfiguration()); } @@ -11,17 +14,16 @@ public V1MutatingWebhookConfigurationBuilder(V1MutatingWebhookConfigurationFluen this(fluent, new V1MutatingWebhookConfiguration()); } - public V1MutatingWebhookConfigurationBuilder(V1MutatingWebhookConfigurationFluent fluent,V1MutatingWebhookConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1MutatingWebhookConfigurationBuilder(V1MutatingWebhookConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1MutatingWebhookConfigurationFluent fluent; + public V1MutatingWebhookConfigurationBuilder(V1MutatingWebhookConfigurationFluent fluent,V1MutatingWebhookConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1MutatingWebhookConfiguration build() { V1MutatingWebhookConfiguration buildable = new V1MutatingWebhookConfiguration(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1MutatingWebhookConfiguration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java index 30beb09a02..2ccf3d36ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java @@ -1,140 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1MutatingWebhookConfigurationFluent> extends BaseFluent{ - public V1MutatingWebhookConfigurationFluent() { - } - - public V1MutatingWebhookConfigurationFluent(V1MutatingWebhookConfiguration instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private ArrayList webhooks; - - protected void copyInstance(V1MutatingWebhookConfiguration instance) { - instance = instance != null ? instance : new V1MutatingWebhookConfiguration(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withWebhooks(instance.getWebhooks()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + + public V1MutatingWebhookConfigurationFluent() { } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + public V1MutatingWebhookConfigurationFluent(V1MutatingWebhookConfiguration instance) { + this.copyInstance(instance); } - - public A addToWebhooks(int index,V1MutatingWebhook item) { + + public A addAllToWebhooks(Collection items) { if (this.webhooks == null) { this.webhooks = new ArrayList(); } - V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); - if (index < 0 || index >= webhooks.size()) { - _visitables.get("webhooks").add(builder); - webhooks.add(builder); - } else { + for (V1MutatingWebhook item : items) { + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); _visitables.get("webhooks").add(builder); - webhooks.add(index, builder); + this.webhooks.add(builder); } return (A) this; } - public A setToWebhooks(int index,V1MutatingWebhook item) { - if (this.webhooks == null) { - this.webhooks = new ArrayList(); - } - V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); - if (index < 0 || index >= webhooks.size()) { - _visitables.get("webhooks").add(builder); - webhooks.add(builder); - } else { - _visitables.get("webhooks").add(builder); - webhooks.set(index, builder); - } - return (A) this; + public WebhooksNested addNewWebhook() { + return new WebhooksNested(-1, null); + } + + public WebhooksNested addNewWebhookLike(V1MutatingWebhook item) { + return new WebhooksNested(-1, item); } public A addToWebhooks(V1MutatingWebhook... items) { @@ -149,66 +65,21 @@ public A addToWebhooks(V1MutatingWebhook... items) { return (A) this; } - public A addAllToWebhooks(Collection items) { + public A addToWebhooks(int index,V1MutatingWebhook item) { if (this.webhooks == null) { this.webhooks = new ArrayList(); } - for (V1MutatingWebhook item : items) { - V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); + if (index < 0 || index >= webhooks.size()) { _visitables.get("webhooks").add(builder); - this.webhooks.add(builder); - } - return (A) this; - } - - public A removeFromWebhooks(V1MutatingWebhook... items) { - if (this.webhooks == null) { - return (A) this; - } - for (V1MutatingWebhook item : items) { - V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); - _visitables.get("webhooks").remove(builder); - this.webhooks.remove(builder); - } - return (A) this; - } - - public A removeAllFromWebhooks(Collection items) { - if (this.webhooks == null) { - return (A) this; - } - for (V1MutatingWebhook item : items) { - V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); - _visitables.get("webhooks").remove(builder); - this.webhooks.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromWebhooks(Predicate predicate) { - if (webhooks == null) { - return (A) this; - } - Iterator each = webhooks.iterator(); - List visitables = _visitables.get("webhooks"); - while (each.hasNext()) { - V1MutatingWebhookBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + webhooks.add(builder); + } else { + _visitables.get("webhooks").add(builder); + webhooks.add(index, builder); } return (A) this; } - public List buildWebhooks() { - return this.webhooks != null ? build(webhooks) : null; - } - - public V1MutatingWebhook buildWebhook(int index) { - return this.webhooks.get(index).build(); - } - public V1MutatingWebhook buildFirstWebhook() { return this.webhooks.get(0).build(); } @@ -226,64 +97,26 @@ public V1MutatingWebhook buildMatchingWebhook(Predicate predicate) { - for (V1MutatingWebhookBuilder item : webhooks) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withWebhooks(List webhooks) { - if (this.webhooks != null) { - this._visitables.get("webhooks").clear(); - } - if (webhooks != null) { - this.webhooks = new ArrayList(); - for (V1MutatingWebhook item : webhooks) { - this.addToWebhooks(item); - } - } else { - this.webhooks = null; - } - return (A) this; - } - - public A withWebhooks(V1MutatingWebhook... webhooks) { - if (this.webhooks != null) { - this.webhooks.clear(); - _visitables.remove("webhooks"); - } - if (webhooks != null) { - for (V1MutatingWebhook item : webhooks) { - this.addToWebhooks(item); - } - } - return (A) this; - } - - public boolean hasWebhooks() { - return this.webhooks != null && !(this.webhooks.isEmpty()); - } - - public WebhooksNested addNewWebhook() { - return new WebhooksNested(-1, null); + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public WebhooksNested addNewWebhookLike(V1MutatingWebhook item) { - return new WebhooksNested(-1, item); + public V1MutatingWebhook buildWebhook(int index) { + return this.webhooks.get(index).build(); } - public WebhooksNested setNewWebhookLike(int index,V1MutatingWebhook item) { - return new WebhooksNested(index, item); + public List buildWebhooks() { + return this.webhooks != null ? build(webhooks) : null; } - public WebhooksNested editWebhook(int index) { - if (index <= webhooks.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "webhooks")); + protected void copyInstance(V1MutatingWebhookConfiguration instance) { + instance = instance != null ? instance : new V1MutatingWebhookConfiguration(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withWebhooks(instance.getWebhooks()); } - return this.setNewWebhookLike(index, this.buildWebhook(index)); } public WebhooksNested editFirstWebhook() { @@ -315,6 +148,25 @@ public WebhooksNested editMatchingWebhook(Predicate return this.setNewWebhookLike(index, this.buildWebhook(index)); } + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public WebhooksNested editWebhook(int index) { + if (webhooks.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "webhooks")); + } + return this.setNewWebhookLike(index, this.buildWebhook(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingWebhook(Predicate predicate) { + for (V1MutatingWebhookBuilder item : webhooks) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasWebhooks() { + return this.webhooks != null && !(this.webhooks.isEmpty()); + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, webhooks); } + public A removeAllFromWebhooks(Collection items) { + if (this.webhooks == null) { + return (A) this; + } + for (V1MutatingWebhook item : items) { + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); + _visitables.get("webhooks").remove(builder); + this.webhooks.remove(builder); + } + return (A) this; + } + + public A removeFromWebhooks(V1MutatingWebhook... items) { + if (this.webhooks == null) { + return (A) this; + } + for (V1MutatingWebhook item : items) { + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); + _visitables.get("webhooks").remove(builder); + this.webhooks.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromWebhooks(Predicate predicate) { + if (webhooks == null) { + return (A) this; + } + Iterator each = webhooks.iterator(); + List visitables = _visitables.get("webhooks"); + while (each.hasNext()) { + V1MutatingWebhookBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public WebhooksNested setNewWebhookLike(int index,V1MutatingWebhook item) { + return new WebhooksNested(index, item); + } + + public A setToWebhooks(int index,V1MutatingWebhook item) { + if (this.webhooks == null) { + this.webhooks = new ArrayList(); + } + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); + if (index < 0 || index >= webhooks.size()) { + _visitables.get("webhooks").add(builder); + webhooks.add(builder); + } else { + _visitables.get("webhooks").add(builder); + webhooks.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,12 +314,72 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public A withWebhooks(List webhooks) { + if (this.webhooks != null) { + this._visitables.get("webhooks").clear(); + } + if (webhooks != null) { + this.webhooks = new ArrayList(); + for (V1MutatingWebhook item : webhooks) { + this.addToWebhooks(item); + } + } else { + this.webhooks = null; + } + return (A) this; + } + + public A withWebhooks(V1MutatingWebhook... webhooks) { + if (this.webhooks != null) { + this.webhooks.clear(); + _visitables.remove("webhooks"); + } + if (webhooks != null) { + for (V1MutatingWebhook item : webhooks) { + this.addToWebhooks(item); + } + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1MutatingWebhookConfigurationFluent.this.withMetadata(builder.build()); } @@ -384,16 +388,17 @@ public N endMetadata() { return and(); } - } public class WebhooksNested extends V1MutatingWebhookFluent> implements Nested{ + + V1MutatingWebhookBuilder builder; + int index; + WebhooksNested(int index,V1MutatingWebhook item) { this.index = index; this.builder = new V1MutatingWebhookBuilder(this, item); } - V1MutatingWebhookBuilder builder; - int index; - + public N and() { return (N) V1MutatingWebhookConfigurationFluent.this.setToWebhooks(index, builder.build()); } @@ -402,7 +407,5 @@ public N endWebhook() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java index f535f3184f..c5f753ef97 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1MutatingWebhookConfigurationListBuilder extends V1MutatingWebhookConfigurationListFluent implements VisitableBuilder{ + + V1MutatingWebhookConfigurationListFluent fluent; + public V1MutatingWebhookConfigurationListBuilder() { this(new V1MutatingWebhookConfigurationList()); } @@ -11,17 +14,16 @@ public V1MutatingWebhookConfigurationListBuilder(V1MutatingWebhookConfigurationL this(fluent, new V1MutatingWebhookConfigurationList()); } - public V1MutatingWebhookConfigurationListBuilder(V1MutatingWebhookConfigurationListFluent fluent,V1MutatingWebhookConfigurationList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1MutatingWebhookConfigurationListBuilder(V1MutatingWebhookConfigurationList instance) { this.fluent = this; this.copyInstance(instance); } - V1MutatingWebhookConfigurationListFluent fluent; + public V1MutatingWebhookConfigurationListBuilder(V1MutatingWebhookConfigurationListFluent fluent,V1MutatingWebhookConfigurationList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1MutatingWebhookConfigurationList build() { V1MutatingWebhookConfigurationList buildable = new V1MutatingWebhookConfigurationList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1MutatingWebhookConfigurationList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java index 6bee2ddee6..6864a24355 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1MutatingWebhookConfigurationListFluent> extends BaseFluent{ - public V1MutatingWebhookConfigurationListFluent() { - } - - public V1MutatingWebhookConfigurationListFluent(V1MutatingWebhookConfigurationList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1MutatingWebhookConfigurationList instance) { - instance = instance != null ? instance : new V1MutatingWebhookConfigurationList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1MutatingWebhookConfigurationListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1MutatingWebhookConfigurationListFluent(V1MutatingWebhookConfigurationList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1MutatingWebhookConfiguration item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1MutatingWebhookConfiguration item : items) { + V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1MutatingWebhookConfiguration item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1MutatingWebhookConfiguration item) { + return new ItemsNested(-1, item); } public A addToItems(V1MutatingWebhookConfiguration... items) { @@ -96,68 +65,31 @@ public A addToItems(V1MutatingWebhookConfiguration... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1MutatingWebhookConfiguration item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1MutatingWebhookConfiguration item : items) { - V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); + V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1MutatingWebhookConfiguration... items) { - if (this.items == null) { - return (A) this; - } - for (V1MutatingWebhookConfiguration item : items) { - V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1MutatingWebhookConfiguration item : items) { - V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1MutatingWebhookConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1MutatingWebhookConfiguration buildFirstItem() { + return this.items.get(0).build(); } public V1MutatingWebhookConfiguration buildItem(int index) { return this.items.get(index).build(); } - public V1MutatingWebhookConfiguration buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1MutatingWebhookConfiguration buildLastItem() { @@ -173,73 +105,34 @@ public V1MutatingWebhookConfiguration buildMatchingItem(Predicate predicate) { - for (V1MutatingWebhookConfigurationBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1MutatingWebhookConfiguration item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1MutatingWebhookConfigurationList instance) { + instance = instance != null ? instance : new V1MutatingWebhookConfigurationList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1MutatingWebhookConfiguration... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1MutatingWebhookConfiguration item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1MutatingWebhookConfiguration item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1MutatingWebhookConfiguration item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1MutatingWebhookConfigurationBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1MutatingWebhookConfiguration item : items) { + V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1MutatingWebhookConfiguration... items) { + if (this.items == null) { + return (A) this; + } + for (V1MutatingWebhookConfiguration item : items) { + V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1MutatingWebhookConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1MutatingWebhookConfiguration item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1MutatingWebhookConfiguration item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1MutatingWebhookConfiguration item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1MutatingWebhookConfiguration... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1MutatingWebhookConfiguration item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1MutatingWebhookConfigurationFluent> implements Nested{ + + V1MutatingWebhookConfigurationBuilder builder; + int index; + ItemsNested(int index,V1MutatingWebhookConfiguration item) { this.index = index; this.builder = new V1MutatingWebhookConfigurationBuilder(this, item); } - V1MutatingWebhookConfigurationBuilder builder; - int index; - + public N and() { return (N) V1MutatingWebhookConfigurationListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1MutatingWebhookConfigurationListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java index 17d876fac4..b3e8b973c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; -import java.lang.Integer; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1MutatingWebhookFluent> extends BaseFluent{ - public V1MutatingWebhookFluent() { - } - - public V1MutatingWebhookFluent(V1MutatingWebhook instance) { - this.copyInstance(instance); - } + private List admissionReviewVersions; private AdmissionregistrationV1WebhookClientConfigBuilder clientConfig; private String failurePolicy; @@ -39,42 +34,15 @@ public V1MutatingWebhookFluent(V1MutatingWebhook instance) { private ArrayList rules; private String sideEffects; private Integer timeoutSeconds; - - protected void copyInstance(V1MutatingWebhook instance) { - instance = instance != null ? instance : new V1MutatingWebhook(); - if (instance != null) { - this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); - this.withClientConfig(instance.getClientConfig()); - this.withFailurePolicy(instance.getFailurePolicy()); - this.withMatchConditions(instance.getMatchConditions()); - this.withMatchPolicy(instance.getMatchPolicy()); - this.withName(instance.getName()); - this.withNamespaceSelector(instance.getNamespaceSelector()); - this.withObjectSelector(instance.getObjectSelector()); - this.withReinvocationPolicy(instance.getReinvocationPolicy()); - this.withRules(instance.getRules()); - this.withSideEffects(instance.getSideEffects()); - this.withTimeoutSeconds(instance.getTimeoutSeconds()); - } - } - - public A addToAdmissionReviewVersions(int index,String item) { - if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); - } - this.admissionReviewVersions.add(index, item); - return (A) this; + + public V1MutatingWebhookFluent() { } - public A setToAdmissionReviewVersions(int index,String item) { - if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); - } - this.admissionReviewVersions.set(index, item); - return (A) this; + public V1MutatingWebhookFluent(V1MutatingWebhook instance) { + this.copyInstance(instance); } - - public A addToAdmissionReviewVersions(String... items) { + + public A addAllToAdmissionReviewVersions(Collection items) { if (this.admissionReviewVersions == null) { this.admissionReviewVersions = new ArrayList(); } @@ -84,346 +52,239 @@ public A addToAdmissionReviewVersions(String... items) { return (A) this; } - public A addAllToAdmissionReviewVersions(Collection items) { - if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); + public A addAllToMatchConditions(Collection items) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); } - for (String item : items) { - this.admissionReviewVersions.add(item); + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); } return (A) this; } - public A removeFromAdmissionReviewVersions(String... items) { - if (this.admissionReviewVersions == null) { - return (A) this; + public A addAllToRules(Collection items) { + if (this.rules == null) { + this.rules = new ArrayList(); } - for (String item : items) { - this.admissionReviewVersions.remove(item); + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); } return (A) this; } - public A removeAllFromAdmissionReviewVersions(Collection items) { - if (this.admissionReviewVersions == null) { - return (A) this; - } - for (String item : items) { - this.admissionReviewVersions.remove(item); - } - return (A) this; + public MatchConditionsNested addNewMatchCondition() { + return new MatchConditionsNested(-1, null); } - public List getAdmissionReviewVersions() { - return this.admissionReviewVersions; + public MatchConditionsNested addNewMatchConditionLike(V1MatchCondition item) { + return new MatchConditionsNested(-1, item); } - public String getAdmissionReviewVersion(int index) { - return this.admissionReviewVersions.get(index); + public RulesNested addNewRule() { + return new RulesNested(-1, null); } - public String getFirstAdmissionReviewVersion() { - return this.admissionReviewVersions.get(0); + public RulesNested addNewRuleLike(V1RuleWithOperations item) { + return new RulesNested(-1, item); } - public String getLastAdmissionReviewVersion() { - return this.admissionReviewVersions.get(admissionReviewVersions.size() - 1); + public A addToAdmissionReviewVersions(String... items) { + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } + for (String item : items) { + this.admissionReviewVersions.add(item); + } + return (A) this; } - public String getMatchingAdmissionReviewVersion(Predicate predicate) { - for (String item : admissionReviewVersions) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A addToAdmissionReviewVersions(int index,String item) { + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } + this.admissionReviewVersions.add(index, item); + return (A) this; } - public boolean hasMatchingAdmissionReviewVersion(Predicate predicate) { - for (String item : admissionReviewVersions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A addToMatchConditions(V1MatchCondition... items) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } + return (A) this; } - public A withAdmissionReviewVersions(List admissionReviewVersions) { - if (admissionReviewVersions != null) { - this.admissionReviewVersions = new ArrayList(); - for (String item : admissionReviewVersions) { - this.addToAdmissionReviewVersions(item); - } + public A addToMatchConditions(int index,V1MatchCondition item) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); } else { - this.admissionReviewVersions = null; + _visitables.get("matchConditions").add(builder); + matchConditions.add(index, builder); } return (A) this; } - public A withAdmissionReviewVersions(String... admissionReviewVersions) { - if (this.admissionReviewVersions != null) { - this.admissionReviewVersions.clear(); - _visitables.remove("admissionReviewVersions"); + public A addToRules(V1RuleWithOperations... items) { + if (this.rules == null) { + this.rules = new ArrayList(); } - if (admissionReviewVersions != null) { - for (String item : admissionReviewVersions) { - this.addToAdmissionReviewVersions(item); - } + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); } return (A) this; } - public boolean hasAdmissionReviewVersions() { - return this.admissionReviewVersions != null && !(this.admissionReviewVersions.isEmpty()); + public A addToRules(int index,V1RuleWithOperations item) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); + } + return (A) this; } public AdmissionregistrationV1WebhookClientConfig buildClientConfig() { return this.clientConfig != null ? this.clientConfig.build() : null; } - public A withClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig) { - this._visitables.remove("clientConfig"); - if (clientConfig != null) { - this.clientConfig = new AdmissionregistrationV1WebhookClientConfigBuilder(clientConfig); - this._visitables.get("clientConfig").add(this.clientConfig); - } else { - this.clientConfig = null; - this._visitables.get("clientConfig").remove(this.clientConfig); - } - return (A) this; + public V1MatchCondition buildFirstMatchCondition() { + return this.matchConditions.get(0).build(); } - public boolean hasClientConfig() { - return this.clientConfig != null; + public V1RuleWithOperations buildFirstRule() { + return this.rules.get(0).build(); } - public ClientConfigNested withNewClientConfig() { - return new ClientConfigNested(null); + public V1MatchCondition buildLastMatchCondition() { + return this.matchConditions.get(matchConditions.size() - 1).build(); } - public ClientConfigNested withNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { - return new ClientConfigNested(item); + public V1RuleWithOperations buildLastRule() { + return this.rules.get(rules.size() - 1).build(); } - public ClientConfigNested editClientConfig() { - return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(null)); + public V1MatchCondition buildMatchCondition(int index) { + return this.matchConditions.get(index).build(); } - public ClientConfigNested editOrNewClientConfig() { - return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(new AdmissionregistrationV1WebhookClientConfigBuilder().build())); + public List buildMatchConditions() { + return this.matchConditions != null ? build(matchConditions) : null; } - public ClientConfigNested editOrNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { - return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(item)); + public V1MatchCondition buildMatchingMatchCondition(Predicate predicate) { + for (V1MatchConditionBuilder item : matchConditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public String getFailurePolicy() { - return this.failurePolicy; + public V1RuleWithOperations buildMatchingRule(Predicate predicate) { + for (V1RuleWithOperationsBuilder item : rules) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public A withFailurePolicy(String failurePolicy) { - this.failurePolicy = failurePolicy; - return (A) this; + public V1LabelSelector buildNamespaceSelector() { + return this.namespaceSelector != null ? this.namespaceSelector.build() : null; } - public boolean hasFailurePolicy() { - return this.failurePolicy != null; + public V1LabelSelector buildObjectSelector() { + return this.objectSelector != null ? this.objectSelector.build() : null; } - public A addToMatchConditions(int index,V1MatchCondition item) { - if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); - } - V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); - } else { - _visitables.get("matchConditions").add(builder); - matchConditions.add(index, builder); - } - return (A) this; - } - - public A setToMatchConditions(int index,V1MatchCondition item) { - if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); - } - V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); - } else { - _visitables.get("matchConditions").add(builder); - matchConditions.set(index, builder); - } - return (A) this; + public V1RuleWithOperations buildRule(int index) { + return this.rules.get(index).build(); } - public A addToMatchConditions(V1MatchCondition... items) { - if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); - } - for (V1MatchCondition item : items) { - V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); - this.matchConditions.add(builder); - } - return (A) this; + public List buildRules() { + return this.rules != null ? build(rules) : null; } - public A addAllToMatchConditions(Collection items) { - if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); - } - for (V1MatchCondition item : items) { - V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); - this.matchConditions.add(builder); + protected void copyInstance(V1MutatingWebhook instance) { + instance = instance != null ? instance : new V1MutatingWebhook(); + if (instance != null) { + this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); + this.withClientConfig(instance.getClientConfig()); + this.withFailurePolicy(instance.getFailurePolicy()); + this.withMatchConditions(instance.getMatchConditions()); + this.withMatchPolicy(instance.getMatchPolicy()); + this.withName(instance.getName()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withObjectSelector(instance.getObjectSelector()); + this.withReinvocationPolicy(instance.getReinvocationPolicy()); + this.withRules(instance.getRules()); + this.withSideEffects(instance.getSideEffects()); + this.withTimeoutSeconds(instance.getTimeoutSeconds()); } - return (A) this; } - public A removeFromMatchConditions(V1MatchCondition... items) { - if (this.matchConditions == null) { - return (A) this; - } - for (V1MatchCondition item : items) { - V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - _visitables.get("matchConditions").remove(builder); - this.matchConditions.remove(builder); - } - return (A) this; + public ClientConfigNested editClientConfig() { + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(null)); } - public A removeAllFromMatchConditions(Collection items) { - if (this.matchConditions == null) { - return (A) this; - } - for (V1MatchCondition item : items) { - V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - _visitables.get("matchConditions").remove(builder); - this.matchConditions.remove(builder); + public MatchConditionsNested editFirstMatchCondition() { + if (matchConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchConditions")); } - return (A) this; + return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); } - public A removeMatchingFromMatchConditions(Predicate predicate) { - if (matchConditions == null) { - return (A) this; - } - Iterator each = matchConditions.iterator(); - List visitables = _visitables.get("matchConditions"); - while (each.hasNext()) { - V1MatchConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public RulesNested editFirstRule() { + if (rules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); } - return (A) this; - } - - public List buildMatchConditions() { - return this.matchConditions != null ? build(matchConditions) : null; - } - - public V1MatchCondition buildMatchCondition(int index) { - return this.matchConditions.get(index).build(); - } - - public V1MatchCondition buildFirstMatchCondition() { - return this.matchConditions.get(0).build(); - } - - public V1MatchCondition buildLastMatchCondition() { - return this.matchConditions.get(matchConditions.size() - 1).build(); - } - - public V1MatchCondition buildMatchingMatchCondition(Predicate predicate) { - for (V1MatchConditionBuilder item : matchConditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingMatchCondition(Predicate predicate) { - for (V1MatchConditionBuilder item : matchConditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + return this.setNewRuleLike(0, this.buildRule(0)); } - public A withMatchConditions(List matchConditions) { - if (this.matchConditions != null) { - this._visitables.get("matchConditions").clear(); - } - if (matchConditions != null) { - this.matchConditions = new ArrayList(); - for (V1MatchCondition item : matchConditions) { - this.addToMatchConditions(item); - } - } else { - this.matchConditions = null; + public MatchConditionsNested editLastMatchCondition() { + int index = matchConditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchConditions")); } - return (A) this; + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } - public A withMatchConditions(V1MatchCondition... matchConditions) { - if (this.matchConditions != null) { - this.matchConditions.clear(); - _visitables.remove("matchConditions"); - } - if (matchConditions != null) { - for (V1MatchCondition item : matchConditions) { - this.addToMatchConditions(item); - } + public RulesNested editLastRule() { + int index = rules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); } - return (A) this; - } - - public boolean hasMatchConditions() { - return this.matchConditions != null && !(this.matchConditions.isEmpty()); - } - - public MatchConditionsNested addNewMatchCondition() { - return new MatchConditionsNested(-1, null); - } - - public MatchConditionsNested addNewMatchConditionLike(V1MatchCondition item) { - return new MatchConditionsNested(-1, item); - } - - public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondition item) { - return new MatchConditionsNested(index, item); + return this.setNewRuleLike(index, this.buildRule(index)); } public MatchConditionsNested editMatchCondition(int index) { - if (index <= matchConditions.size()) { + if (matchConditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchConditions")); } return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } - public MatchConditionsNested editFirstMatchCondition() { - if (matchConditions.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchConditions")); - } - return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); - } - - public MatchConditionsNested editLastMatchCondition() { - int index = matchConditions.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchConditions")); - } - return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); - } - public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { int index = -1; for (int i = 0;i < matchConditions.size();i++) { @@ -438,62 +299,34 @@ public MatchConditionsNested editMatchingMatchCondition(Predicate editMatchingRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < rules.size();i++) { + if (predicate.test(rules.get(i))) { + index = i; + break; + } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - public boolean hasNamespaceSelector() { - return this.namespaceSelector != null; + public NamespaceSelectorNested editNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); } - public NamespaceSelectorNested withNewNamespaceSelector() { - return new NamespaceSelectorNested(null); + public ObjectSelectorNested editObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); } - public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { - return new NamespaceSelectorNested(item); + public ClientConfigNested editOrNewClientConfig() { + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(new AdmissionregistrationV1WebhookClientConfigBuilder().build())); } - public NamespaceSelectorNested editNamespaceSelector() { - return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); + public ClientConfigNested editOrNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(item)); } public NamespaceSelectorNested editOrNewNamespaceSelector() { @@ -504,180 +337,151 @@ public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); } - public V1LabelSelector buildObjectSelector() { - return this.objectSelector != null ? this.objectSelector.build() : null; - } - - public A withObjectSelector(V1LabelSelector objectSelector) { - this._visitables.remove("objectSelector"); - if (objectSelector != null) { - this.objectSelector = new V1LabelSelectorBuilder(objectSelector); - this._visitables.get("objectSelector").add(this.objectSelector); - } else { - this.objectSelector = null; - this._visitables.get("objectSelector").remove(this.objectSelector); - } - return (A) this; - } - - public boolean hasObjectSelector() { - return this.objectSelector != null; + public ObjectSelectorNested editOrNewObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public ObjectSelectorNested withNewObjectSelector() { - return new ObjectSelectorNested(null); + public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); } - public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { - return new ObjectSelectorNested(item); + public RulesNested editRule(int index) { + if (rules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - public ObjectSelectorNested editObjectSelector() { - return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1MutatingWebhookFluent that = (V1MutatingWebhookFluent) o; + if (!(Objects.equals(admissionReviewVersions, that.admissionReviewVersions))) { + return false; + } + if (!(Objects.equals(clientConfig, that.clientConfig))) { + return false; + } + if (!(Objects.equals(failurePolicy, that.failurePolicy))) { + return false; + } + if (!(Objects.equals(matchConditions, that.matchConditions))) { + return false; + } + if (!(Objects.equals(matchPolicy, that.matchPolicy))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { + return false; + } + if (!(Objects.equals(objectSelector, that.objectSelector))) { + return false; + } + if (!(Objects.equals(reinvocationPolicy, that.reinvocationPolicy))) { + return false; + } + if (!(Objects.equals(rules, that.rules))) { + return false; + } + if (!(Objects.equals(sideEffects, that.sideEffects))) { + return false; + } + if (!(Objects.equals(timeoutSeconds, that.timeoutSeconds))) { + return false; + } + return true; } - public ObjectSelectorNested editOrNewObjectSelector() { - return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); + public String getAdmissionReviewVersion(int index) { + return this.admissionReviewVersions.get(index); } - public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { - return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); + public List getAdmissionReviewVersions() { + return this.admissionReviewVersions; } - public String getReinvocationPolicy() { - return this.reinvocationPolicy; + public String getFailurePolicy() { + return this.failurePolicy; } - public A withReinvocationPolicy(String reinvocationPolicy) { - this.reinvocationPolicy = reinvocationPolicy; - return (A) this; + public String getFirstAdmissionReviewVersion() { + return this.admissionReviewVersions.get(0); } - public boolean hasReinvocationPolicy() { - return this.reinvocationPolicy != null; + public String getLastAdmissionReviewVersion() { + return this.admissionReviewVersions.get(admissionReviewVersions.size() - 1); } - public A addToRules(int index,V1RuleWithOperations item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); - } else { - _visitables.get("rules").add(builder); - rules.add(index, builder); - } - return (A) this; + public String getMatchPolicy() { + return this.matchPolicy; } - public A setToRules(int index,V1RuleWithOperations item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); - } else { - _visitables.get("rules").add(builder); - rules.set(index, builder); - } - return (A) this; + public String getMatchingAdmissionReviewVersion(Predicate predicate) { + for (String item : admissionReviewVersions) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A addToRules(V1RuleWithOperations... items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1RuleWithOperations item : items) { - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + public String getName() { + return this.name; } - public A addAllToRules(Collection items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1RuleWithOperations item : items) { - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + public String getReinvocationPolicy() { + return this.reinvocationPolicy; } - public A removeFromRules(V1RuleWithOperations... items) { - if (this.rules == null) { - return (A) this; - } - for (V1RuleWithOperations item : items) { - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").remove(builder); - this.rules.remove(builder); - } - return (A) this; + public String getSideEffects() { + return this.sideEffects; } - - public A removeAllFromRules(Collection items) { - if (this.rules == null) { - return (A) this; - } - for (V1RuleWithOperations item : items) { - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").remove(builder); - this.rules.remove(builder); - } - return (A) this; + + public Integer getTimeoutSeconds() { + return this.timeoutSeconds; } - public A removeMatchingFromRules(Predicate predicate) { - if (rules == null) { - return (A) this; - } - Iterator each = rules.iterator(); - List visitables = _visitables.get("rules"); - while (each.hasNext()) { - V1RuleWithOperationsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public boolean hasAdmissionReviewVersions() { + return this.admissionReviewVersions != null && !(this.admissionReviewVersions.isEmpty()); } - public List buildRules() { - return this.rules != null ? build(rules) : null; + public boolean hasClientConfig() { + return this.clientConfig != null; } - public V1RuleWithOperations buildRule(int index) { - return this.rules.get(index).build(); + public boolean hasFailurePolicy() { + return this.failurePolicy != null; } - public V1RuleWithOperations buildFirstRule() { - return this.rules.get(0).build(); + public boolean hasMatchConditions() { + return this.matchConditions != null && !(this.matchConditions.isEmpty()); } - public V1RuleWithOperations buildLastRule() { - return this.rules.get(rules.size() - 1).build(); + public boolean hasMatchPolicy() { + return this.matchPolicy != null; } - public V1RuleWithOperations buildMatchingRule(Predicate predicate) { - for (V1RuleWithOperationsBuilder item : rules) { + public boolean hasMatchingAdmissionReviewVersion(Predicate predicate) { + for (String item : admissionReviewVersions) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } - public boolean hasMatchingRule(Predicate predicate) { - for (V1RuleWithOperationsBuilder item : rules) { + public boolean hasMatchingMatchCondition(Predicate predicate) { + for (V1MatchConditionBuilder item : matchConditions) { if (predicate.test(item)) { return true; } @@ -685,164 +489,191 @@ public boolean hasMatchingRule(Predicate predicate) return false; } - public A withRules(List rules) { - if (this.rules != null) { - this._visitables.get("rules").clear(); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1RuleWithOperations item : rules) { - this.addToRules(item); + public boolean hasMatchingRule(Predicate predicate) { + for (V1RuleWithOperationsBuilder item : rules) { + if (predicate.test(item)) { + return true; } - } else { - this.rules = null; - } - return (A) this; + } + return false; } - public A withRules(V1RuleWithOperations... rules) { - if (this.rules != null) { - this.rules.clear(); - _visitables.remove("rules"); - } - if (rules != null) { - for (V1RuleWithOperations item : rules) { - this.addToRules(item); - } - } - return (A) this; + public boolean hasName() { + return this.name != null; } - public boolean hasRules() { - return this.rules != null && !(this.rules.isEmpty()); + public boolean hasNamespaceSelector() { + return this.namespaceSelector != null; } - public RulesNested addNewRule() { - return new RulesNested(-1, null); + public boolean hasObjectSelector() { + return this.objectSelector != null; } - public RulesNested addNewRuleLike(V1RuleWithOperations item) { - return new RulesNested(-1, item); + public boolean hasReinvocationPolicy() { + return this.reinvocationPolicy != null; } - public RulesNested setNewRuleLike(int index,V1RuleWithOperations item) { - return new RulesNested(index, item); + public boolean hasRules() { + return this.rules != null && !(this.rules.isEmpty()); } - public RulesNested editRule(int index) { - if (index <= rules.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); - } - return this.setNewRuleLike(index, this.buildRule(index)); + public boolean hasSideEffects() { + return this.sideEffects != null; } - public RulesNested editFirstRule() { - if (rules.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); - } - return this.setNewRuleLike(0, this.buildRule(0)); + public boolean hasTimeoutSeconds() { + return this.timeoutSeconds != null; } - public RulesNested editLastRule() { - int index = rules.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); - } - return this.setNewRuleLike(index, this.buildRule(index)); + public int hashCode() { + return Objects.hash(admissionReviewVersions, clientConfig, failurePolicy, matchConditions, matchPolicy, name, namespaceSelector, objectSelector, reinvocationPolicy, rules, sideEffects, timeoutSeconds); } - public RulesNested editMatchingRule(Predicate predicate) { - int index = -1; - for (int i = 0;i < rules.size();i++) { - if (predicate.test(rules.get(i))) { - index = i; - break; - } + public A removeAllFromAdmissionReviewVersions(Collection items) { + if (this.admissionReviewVersions == null) { + return (A) this; } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "rules")); + for (String item : items) { + this.admissionReviewVersions.remove(item); } - return this.setNewRuleLike(index, this.buildRule(index)); - } - - public String getSideEffects() { - return this.sideEffects; - } - - public A withSideEffects(String sideEffects) { - this.sideEffects = sideEffects; return (A) this; } - public boolean hasSideEffects() { - return this.sideEffects != null; - } - - public Integer getTimeoutSeconds() { - return this.timeoutSeconds; - } - - public A withTimeoutSeconds(Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; + public A removeAllFromMatchConditions(Collection items) { + if (this.matchConditions == null) { + return (A) this; + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } return (A) this; } - public boolean hasTimeoutSeconds() { - return this.timeoutSeconds != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; + public A removeAllFromRules(Collection items) { + if (this.rules == null) { + return (A) this; } - if (o == null || this.getClass() != o.getClass()) { - return false; + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); } - if (!(super.equals(o))) { - return false; + return (A) this; + } + + public A removeFromAdmissionReviewVersions(String... items) { + if (this.admissionReviewVersions == null) { + return (A) this; } - V1MutatingWebhookFluent that = (V1MutatingWebhookFluent) o; - if (!(Objects.equals(admissionReviewVersions, that.admissionReviewVersions))) { - return false; + for (String item : items) { + this.admissionReviewVersions.remove(item); } - if (!(Objects.equals(clientConfig, that.clientConfig))) { - return false; + return (A) this; + } + + public A removeFromMatchConditions(V1MatchCondition... items) { + if (this.matchConditions == null) { + return (A) this; } - if (!(Objects.equals(failurePolicy, that.failurePolicy))) { - return false; + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); } - if (!(Objects.equals(matchConditions, that.matchConditions))) { - return false; + return (A) this; + } + + public A removeFromRules(V1RuleWithOperations... items) { + if (this.rules == null) { + return (A) this; } - if (!(Objects.equals(matchPolicy, that.matchPolicy))) { - return false; + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); } - if (!(Objects.equals(name, that.name))) { - return false; + return (A) this; + } + + public A removeMatchingFromMatchConditions(Predicate predicate) { + if (matchConditions == null) { + return (A) this; } - if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { - return false; + Iterator each = matchConditions.iterator(); + List visitables = _visitables.get("matchConditions"); + while (each.hasNext()) { + V1MatchConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - if (!(Objects.equals(objectSelector, that.objectSelector))) { - return false; + return (A) this; + } + + public A removeMatchingFromRules(Predicate predicate) { + if (rules == null) { + return (A) this; } - if (!(Objects.equals(reinvocationPolicy, that.reinvocationPolicy))) { - return false; + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); + while (each.hasNext()) { + V1RuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - if (!(Objects.equals(rules, that.rules))) { - return false; + return (A) this; + } + + public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondition item) { + return new MatchConditionsNested(index, item); + } + + public RulesNested setNewRuleLike(int index,V1RuleWithOperations item) { + return new RulesNested(index, item); + } + + public A setToAdmissionReviewVersions(int index,String item) { + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); } - if (!(Objects.equals(sideEffects, that.sideEffects))) { - return false; + this.admissionReviewVersions.set(index, item); + return (A) this; + } + + public A setToMatchConditions(int index,V1MatchCondition item) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); } - if (!(Objects.equals(timeoutSeconds, that.timeoutSeconds))) { - return false; + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.set(index, builder); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(admissionReviewVersions, clientConfig, failurePolicy, matchConditions, matchPolicy, name, namespaceSelector, objectSelector, reinvocationPolicy, rules, sideEffects, timeoutSeconds); + public A setToRules(int index,V1RuleWithOperations item) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } + return (A) this; } public String toString() { @@ -910,12 +741,185 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAdmissionReviewVersions(List admissionReviewVersions) { + if (admissionReviewVersions != null) { + this.admissionReviewVersions = new ArrayList(); + for (String item : admissionReviewVersions) { + this.addToAdmissionReviewVersions(item); + } + } else { + this.admissionReviewVersions = null; + } + return (A) this; + } + + public A withAdmissionReviewVersions(String... admissionReviewVersions) { + if (this.admissionReviewVersions != null) { + this.admissionReviewVersions.clear(); + _visitables.remove("admissionReviewVersions"); + } + if (admissionReviewVersions != null) { + for (String item : admissionReviewVersions) { + this.addToAdmissionReviewVersions(item); + } + } + return (A) this; + } + + public A withClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig) { + this._visitables.remove("clientConfig"); + if (clientConfig != null) { + this.clientConfig = new AdmissionregistrationV1WebhookClientConfigBuilder(clientConfig); + this._visitables.get("clientConfig").add(this.clientConfig); + } else { + this.clientConfig = null; + this._visitables.get("clientConfig").remove(this.clientConfig); + } + return (A) this; + } + + public A withFailurePolicy(String failurePolicy) { + this.failurePolicy = failurePolicy; + return (A) this; + } + + public A withMatchConditions(List matchConditions) { + if (this.matchConditions != null) { + this._visitables.get("matchConditions").clear(); + } + if (matchConditions != null) { + this.matchConditions = new ArrayList(); + for (V1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } else { + this.matchConditions = null; + } + return (A) this; + } + + public A withMatchConditions(V1MatchCondition... matchConditions) { + if (this.matchConditions != null) { + this.matchConditions.clear(); + _visitables.remove("matchConditions"); + } + if (matchConditions != null) { + for (V1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } + return (A) this; + } + + public A withMatchPolicy(String matchPolicy) { + this.matchPolicy = matchPolicy; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespaceSelector(V1LabelSelector namespaceSelector) { + this._visitables.remove("namespaceSelector"); + if (namespaceSelector != null) { + this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); + this._visitables.get("namespaceSelector").add(this.namespaceSelector); + } else { + this.namespaceSelector = null; + this._visitables.get("namespaceSelector").remove(this.namespaceSelector); + } + return (A) this; + } + + public ClientConfigNested withNewClientConfig() { + return new ClientConfigNested(null); + } + + public ClientConfigNested withNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { + return new ClientConfigNested(item); + } + + public NamespaceSelectorNested withNewNamespaceSelector() { + return new NamespaceSelectorNested(null); + } + + public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { + return new NamespaceSelectorNested(item); + } + + public ObjectSelectorNested withNewObjectSelector() { + return new ObjectSelectorNested(null); + } + + public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { + return new ObjectSelectorNested(item); + } + + public A withObjectSelector(V1LabelSelector objectSelector) { + this._visitables.remove("objectSelector"); + if (objectSelector != null) { + this.objectSelector = new V1LabelSelectorBuilder(objectSelector); + this._visitables.get("objectSelector").add(this.objectSelector); + } else { + this.objectSelector = null; + this._visitables.get("objectSelector").remove(this.objectSelector); + } + return (A) this; + } + + public A withReinvocationPolicy(String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; + return (A) this; + } + + public A withRules(List rules) { + if (this.rules != null) { + this._visitables.get("rules").clear(); + } + if (rules != null) { + this.rules = new ArrayList(); + for (V1RuleWithOperations item : rules) { + this.addToRules(item); + } + } else { + this.rules = null; + } + return (A) this; + } + + public A withRules(V1RuleWithOperations... rules) { + if (this.rules != null) { + this.rules.clear(); + _visitables.remove("rules"); + } + if (rules != null) { + for (V1RuleWithOperations item : rules) { + this.addToRules(item); + } + } + return (A) this; + } + + public A withSideEffects(String sideEffects) { + this.sideEffects = sideEffects; + return (A) this; + } + + public A withTimeoutSeconds(Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return (A) this; + } public class ClientConfigNested extends AdmissionregistrationV1WebhookClientConfigFluent> implements Nested{ + + AdmissionregistrationV1WebhookClientConfigBuilder builder; + ClientConfigNested(AdmissionregistrationV1WebhookClientConfig item) { this.builder = new AdmissionregistrationV1WebhookClientConfigBuilder(this, item); } - AdmissionregistrationV1WebhookClientConfigBuilder builder; - + public N and() { return (N) V1MutatingWebhookFluent.this.withClientConfig(builder.build()); } @@ -924,16 +928,17 @@ public N endClientConfig() { return and(); } - } public class MatchConditionsNested extends V1MatchConditionFluent> implements Nested{ + + V1MatchConditionBuilder builder; + int index; + MatchConditionsNested(int index,V1MatchCondition item) { this.index = index; this.builder = new V1MatchConditionBuilder(this, item); } - V1MatchConditionBuilder builder; - int index; - + public N and() { return (N) V1MutatingWebhookFluent.this.setToMatchConditions(index, builder.build()); } @@ -942,14 +947,15 @@ public N endMatchCondition() { return and(); } - } public class NamespaceSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + NamespaceSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1MutatingWebhookFluent.this.withNamespaceSelector(builder.build()); } @@ -958,14 +964,15 @@ public N endNamespaceSelector() { return and(); } - } public class ObjectSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + ObjectSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1MutatingWebhookFluent.this.withObjectSelector(builder.build()); } @@ -974,16 +981,17 @@ public N endObjectSelector() { return and(); } - } public class RulesNested extends V1RuleWithOperationsFluent> implements Nested{ + + V1RuleWithOperationsBuilder builder; + int index; + RulesNested(int index,V1RuleWithOperations item) { this.index = index; this.builder = new V1RuleWithOperationsBuilder(this, item); } - V1RuleWithOperationsBuilder builder; - int index; - + public N and() { return (N) V1MutatingWebhookFluent.this.setToRules(index, builder.build()); } @@ -992,7 +1000,5 @@ public N endRule() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java index b161064a73..aa47afdf12 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NFSVolumeSourceBuilder extends V1NFSVolumeSourceFluent implements VisitableBuilder{ + + V1NFSVolumeSourceFluent fluent; + public V1NFSVolumeSourceBuilder() { this(new V1NFSVolumeSource()); } @@ -11,17 +14,16 @@ public V1NFSVolumeSourceBuilder(V1NFSVolumeSourceFluent fluent) { this(fluent, new V1NFSVolumeSource()); } - public V1NFSVolumeSourceBuilder(V1NFSVolumeSourceFluent fluent,V1NFSVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NFSVolumeSourceBuilder(V1NFSVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1NFSVolumeSourceFluent fluent; + public V1NFSVolumeSourceBuilder(V1NFSVolumeSourceFluent fluent,V1NFSVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NFSVolumeSource build() { V1NFSVolumeSource buildable = new V1NFSVolumeSource(); buildable.setPath(fluent.getPath()); @@ -30,5 +32,4 @@ public V1NFSVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java index f9041fa1e2..912ca50929 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1NFSVolumeSourceFluent> extends BaseFluent{ + + private String path; + private Boolean readOnly; + private String server; + public V1NFSVolumeSourceFluent() { } public V1NFSVolumeSourceFluent(V1NFSVolumeSource instance) { this.copyInstance(instance); } - private String path; - private Boolean readOnly; - private String server; - + protected void copyInstance(V1NFSVolumeSource instance) { instance = instance != null ? instance : new V1NFSVolumeSource(); if (instance != null) { @@ -32,45 +34,6 @@ protected void copyInstance(V1NFSVolumeSource instance) { } } - public String getPath() { - return this.path; - } - - public A withPath(String path) { - this.path = path; - return (A) this; - } - - public boolean hasPath() { - return this.path != null; - } - - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - - public String getServer() { - return this.server; - } - - public A withServer(String server) { - this.server = server; - return (A) this; - } - - public boolean hasServer() { - return this.server != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -94,6 +57,30 @@ public boolean equals(Object o) { return true; } + public String getPath() { + return this.path; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public String getServer() { + return this.server; + } + + public boolean hasPath() { + return this.path != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + + public boolean hasServer() { + return this.server != null; + } + public int hashCode() { return Objects.hash(path, readOnly, server); } @@ -119,9 +106,23 @@ public String toString() { return sb.toString(); } + public A withPath(String path) { + this.path = path; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withServer(String server) { + this.server = server; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsBuilder.java index e3f4ceae2a..fd5217c743 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NamedRuleWithOperationsBuilder extends V1NamedRuleWithOperationsFluent implements VisitableBuilder{ + + V1NamedRuleWithOperationsFluent fluent; + public V1NamedRuleWithOperationsBuilder() { this(new V1NamedRuleWithOperations()); } @@ -11,17 +14,16 @@ public V1NamedRuleWithOperationsBuilder(V1NamedRuleWithOperationsFluent fluen this(fluent, new V1NamedRuleWithOperations()); } - public V1NamedRuleWithOperationsBuilder(V1NamedRuleWithOperationsFluent fluent,V1NamedRuleWithOperations instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NamedRuleWithOperationsBuilder(V1NamedRuleWithOperations instance) { this.fluent = this; this.copyInstance(instance); } - V1NamedRuleWithOperationsFluent fluent; + public V1NamedRuleWithOperationsBuilder(V1NamedRuleWithOperationsFluent fluent,V1NamedRuleWithOperations instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NamedRuleWithOperations build() { V1NamedRuleWithOperations buildable = new V1NamedRuleWithOperations(); buildable.setApiGroups(fluent.getApiGroups()); @@ -33,5 +35,4 @@ public V1NamedRuleWithOperations build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsFluent.java index 9382ea5d25..c892be5f83 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,150 +16,99 @@ */ @SuppressWarnings("unchecked") public class V1NamedRuleWithOperationsFluent> extends BaseFluent{ - public V1NamedRuleWithOperationsFluent() { - } - - public V1NamedRuleWithOperationsFluent(V1NamedRuleWithOperations instance) { - this.copyInstance(instance); - } + private List apiGroups; private List apiVersions; private List operations; private List resourceNames; private List resources; private String scope; - - protected void copyInstance(V1NamedRuleWithOperations instance) { - instance = instance != null ? instance : new V1NamedRuleWithOperations(); - if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withApiVersions(instance.getApiVersions()); - this.withOperations(instance.getOperations()); - this.withResourceNames(instance.getResourceNames()); - this.withResources(instance.getResources()); - this.withScope(instance.getScope()); - } + + public V1NamedRuleWithOperationsFluent() { } - public A addToApiGroups(int index,String item) { + public V1NamedRuleWithOperationsFluent(V1NamedRuleWithOperations instance) { + this.copyInstance(instance); + } + + public A addAllToApiGroups(Collection items) { if (this.apiGroups == null) { this.apiGroups = new ArrayList(); } - this.apiGroups.add(index, item); + for (String item : items) { + this.apiGroups.add(item); + } return (A) this; } - public A setToApiGroups(int index,String item) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + public A addAllToApiVersions(Collection items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.add(item); } - this.apiGroups.set(index, item); return (A) this; } - public A addToApiGroups(String... items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + public A addAllToOperations(Collection items) { + if (this.operations == null) { + this.operations = new ArrayList(); } for (String item : items) { - this.apiGroups.add(item); + this.operations.add(item); } return (A) this; } - public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + public A addAllToResourceNames(Collection items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); } for (String item : items) { - this.apiGroups.add(item); + this.resourceNames.add(item); } return (A) this; } - public A removeFromApiGroups(String... items) { - if (this.apiGroups == null) { - return (A) this; + public A addAllToResources(Collection items) { + if (this.resources == null) { + this.resources = new ArrayList(); } for (String item : items) { - this.apiGroups.remove(item); + this.resources.add(item); } return (A) this; } - public A removeAllFromApiGroups(Collection items) { + public A addToApiGroups(String... items) { if (this.apiGroups == null) { - return (A) this; + this.apiGroups = new ArrayList(); } for (String item : items) { - this.apiGroups.remove(item); + this.apiGroups.add(item); } return (A) this; } - public List getApiGroups() { - return this.apiGroups; - } - - public String getApiGroup(int index) { - return this.apiGroups.get(index); - } - - public String getFirstApiGroup() { - return this.apiGroups.get(0); - } - - public String getLastApiGroup() { - return this.apiGroups.get(apiGroups.size() - 1); - } - - public String getMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withApiGroups(List apiGroups) { - if (apiGroups != null) { - this.apiGroups = new ArrayList(); - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } else { - this.apiGroups = null; + public A addToApiGroups(int index,String item) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); } + this.apiGroups.add(index, item); return (A) this; } - public A withApiGroups(String... apiGroups) { - if (this.apiGroups != null) { - this.apiGroups.clear(); - _visitables.remove("apiGroups"); + public A addToApiVersions(String... items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); } - if (apiGroups != null) { - for (String item : apiGroups) { - this.addToApiGroups(item); - } + for (String item : items) { + this.apiVersions.add(item); } return (A) this; } - public boolean hasApiGroups() { - return this.apiGroups != null && !(this.apiGroups.isEmpty()); - } - public A addToApiVersions(int index,String item) { if (this.apiVersions == null) { this.apiVersions = new ArrayList(); @@ -168,187 +117,176 @@ public A addToApiVersions(int index,String item) { return (A) this; } - public A setToApiVersions(int index,String item) { - if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + public A addToOperations(String... items) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + for (String item : items) { + this.operations.add(item); } - this.apiVersions.set(index, item); return (A) this; } - public A addToApiVersions(String... items) { - if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); - } - for (String item : items) { - this.apiVersions.add(item); + public A addToOperations(int index,String item) { + if (this.operations == null) { + this.operations = new ArrayList(); } + this.operations.add(index, item); return (A) this; } - public A addAllToApiVersions(Collection items) { - if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + public A addToResourceNames(String... items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); } for (String item : items) { - this.apiVersions.add(item); + this.resourceNames.add(item); } return (A) this; } - public A removeFromApiVersions(String... items) { - if (this.apiVersions == null) { - return (A) this; - } - for (String item : items) { - this.apiVersions.remove(item); + public A addToResourceNames(int index,String item) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); } + this.resourceNames.add(index, item); return (A) this; } - public A removeAllFromApiVersions(Collection items) { - if (this.apiVersions == null) { - return (A) this; + public A addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); } for (String item : items) { - this.apiVersions.remove(item); + this.resources.add(item); } return (A) this; } - public List getApiVersions() { - return this.apiVersions; + public A addToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.add(index, item); + return (A) this; } - public String getApiVersion(int index) { - return this.apiVersions.get(index); + protected void copyInstance(V1NamedRuleWithOperations instance) { + instance = instance != null ? instance : new V1NamedRuleWithOperations(); + if (instance != null) { + this.withApiGroups(instance.getApiGroups()); + this.withApiVersions(instance.getApiVersions()); + this.withOperations(instance.getOperations()); + this.withResourceNames(instance.getResourceNames()); + this.withResources(instance.getResources()); + this.withScope(instance.getScope()); + } } - public String getFirstApiVersion() { - return this.apiVersions.get(0); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NamedRuleWithOperationsFluent that = (V1NamedRuleWithOperationsFluent) o; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(apiVersions, that.apiVersions))) { + return false; + } + if (!(Objects.equals(operations, that.operations))) { + return false; + } + if (!(Objects.equals(resourceNames, that.resourceNames))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(scope, that.scope))) { + return false; + } + return true; } - public String getLastApiVersion() { - return this.apiVersions.get(apiVersions.size() - 1); + public String getApiGroup(int index) { + return this.apiGroups.get(index); } - public String getMatchingApiVersion(Predicate predicate) { - for (String item : apiVersions) { - if (predicate.test(item)) { - return item; - } - } - return null; + public List getApiGroups() { + return this.apiGroups; } - public boolean hasMatchingApiVersion(Predicate predicate) { - for (String item : apiVersions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public String getApiVersion(int index) { + return this.apiVersions.get(index); } - public A withApiVersions(List apiVersions) { - if (apiVersions != null) { - this.apiVersions = new ArrayList(); - for (String item : apiVersions) { - this.addToApiVersions(item); - } - } else { - this.apiVersions = null; - } - return (A) this; + public List getApiVersions() { + return this.apiVersions; } - public A withApiVersions(String... apiVersions) { - if (this.apiVersions != null) { - this.apiVersions.clear(); - _visitables.remove("apiVersions"); - } - if (apiVersions != null) { - for (String item : apiVersions) { - this.addToApiVersions(item); - } - } - return (A) this; + public String getFirstApiGroup() { + return this.apiGroups.get(0); } - public boolean hasApiVersions() { - return this.apiVersions != null && !(this.apiVersions.isEmpty()); + public String getFirstApiVersion() { + return this.apiVersions.get(0); } - public A addToOperations(int index,String item) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - this.operations.add(index, item); - return (A) this; + public String getFirstOperation() { + return this.operations.get(0); } - public A setToOperations(int index,String item) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - this.operations.set(index, item); - return (A) this; + public String getFirstResource() { + return this.resources.get(0); } - public A addToOperations(String... items) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - for (String item : items) { - this.operations.add(item); - } - return (A) this; + public String getFirstResourceName() { + return this.resourceNames.get(0); } - public A addAllToOperations(Collection items) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - for (String item : items) { - this.operations.add(item); - } - return (A) this; + public String getLastApiGroup() { + return this.apiGroups.get(apiGroups.size() - 1); } - public A removeFromOperations(String... items) { - if (this.operations == null) { - return (A) this; - } - for (String item : items) { - this.operations.remove(item); - } - return (A) this; + public String getLastApiVersion() { + return this.apiVersions.get(apiVersions.size() - 1); } - public A removeAllFromOperations(Collection items) { - if (this.operations == null) { - return (A) this; - } - for (String item : items) { - this.operations.remove(item); - } - return (A) this; + public String getLastOperation() { + return this.operations.get(operations.size() - 1); } - public List getOperations() { - return this.operations; + public String getLastResource() { + return this.resources.get(resources.size() - 1); } - public String getOperation(int index) { - return this.operations.get(index); + public String getLastResourceName() { + return this.resourceNames.get(resourceNames.size() - 1); } - public String getFirstOperation() { - return this.operations.get(0); + public String getMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public String getLastOperation() { - return this.operations.get(operations.size() - 1); + public String getMatchingApiVersion(Predicate predicate) { + for (String item : apiVersions) { + if (predicate.test(item)) { + return item; + } + } + return null; } public String getMatchingOperation(Predicate predicate) { @@ -360,123 +298,94 @@ public String getMatchingOperation(Predicate predicate) { return null; } - public boolean hasMatchingOperation(Predicate predicate) { - for (String item : operations) { + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withOperations(List operations) { - if (operations != null) { - this.operations = new ArrayList(); - for (String item : operations) { - this.addToOperations(item); + public String getMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { + if (predicate.test(item)) { + return item; } - } else { - this.operations = null; - } - return (A) this; + } + return null; } - public A withOperations(String... operations) { - if (this.operations != null) { - this.operations.clear(); - _visitables.remove("operations"); - } - if (operations != null) { - for (String item : operations) { - this.addToOperations(item); - } - } - return (A) this; + public String getOperation(int index) { + return this.operations.get(index); } - public boolean hasOperations() { - return this.operations != null && !(this.operations.isEmpty()); + public List getOperations() { + return this.operations; } - public A addToResourceNames(int index,String item) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - this.resourceNames.add(index, item); - return (A) this; + public String getResource(int index) { + return this.resources.get(index); } - public A setToResourceNames(int index,String item) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - this.resourceNames.set(index, item); - return (A) this; + public String getResourceName(int index) { + return this.resourceNames.get(index); } - public A addToResourceNames(String... items) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - for (String item : items) { - this.resourceNames.add(item); - } - return (A) this; + public List getResourceNames() { + return this.resourceNames; } - public A addAllToResourceNames(Collection items) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - for (String item : items) { - this.resourceNames.add(item); - } - return (A) this; + public List getResources() { + return this.resources; } - public A removeFromResourceNames(String... items) { - if (this.resourceNames == null) { - return (A) this; - } - for (String item : items) { - this.resourceNames.remove(item); - } - return (A) this; + public String getScope() { + return this.scope; } - public A removeAllFromResourceNames(Collection items) { - if (this.resourceNames == null) { - return (A) this; - } - for (String item : items) { - this.resourceNames.remove(item); - } - return (A) this; + public boolean hasApiGroups() { + return this.apiGroups != null && !(this.apiGroups.isEmpty()); } - public List getResourceNames() { - return this.resourceNames; + public boolean hasApiVersions() { + return this.apiVersions != null && !(this.apiVersions.isEmpty()); } - public String getResourceName(int index) { - return this.resourceNames.get(index); + public boolean hasMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getFirstResourceName() { - return this.resourceNames.get(0); + public boolean hasMatchingApiVersion(Predicate predicate) { + for (String item : apiVersions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getLastResourceName() { - return this.resourceNames.get(resourceNames.size() - 1); + public boolean hasMatchingOperation(Predicate predicate) { + for (String item : operations) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getMatchingResourceName(Predicate predicate) { - for (String item : resourceNames) { + public boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { - return item; + return true; } } - return null; + return false; } public boolean hasMatchingResourceName(Predicate predicate) { @@ -488,77 +397,62 @@ public boolean hasMatchingResourceName(Predicate predicate) { return false; } - public A withResourceNames(List resourceNames) { - if (resourceNames != null) { - this.resourceNames = new ArrayList(); - for (String item : resourceNames) { - this.addToResourceNames(item); - } - } else { - this.resourceNames = null; - } - return (A) this; - } - - public A withResourceNames(String... resourceNames) { - if (this.resourceNames != null) { - this.resourceNames.clear(); - _visitables.remove("resourceNames"); - } - if (resourceNames != null) { - for (String item : resourceNames) { - this.addToResourceNames(item); - } - } - return (A) this; + public boolean hasOperations() { + return this.operations != null && !(this.operations.isEmpty()); } public boolean hasResourceNames() { return this.resourceNames != null && !(this.resourceNames.isEmpty()); } - public A addToResources(int index,String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - this.resources.add(index, item); - return (A) this; + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); } - public A setToResources(int index,String item) { - if (this.resources == null) { - this.resources = new ArrayList(); + public boolean hasScope() { + return this.scope != null; + } + + public int hashCode() { + return Objects.hash(apiGroups, apiVersions, operations, resourceNames, resources, scope); + } + + public A removeAllFromApiGroups(Collection items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); } - this.resources.set(index, item); return (A) this; } - public A addToResources(String... items) { - if (this.resources == null) { - this.resources = new ArrayList(); + public A removeAllFromApiVersions(Collection items) { + if (this.apiVersions == null) { + return (A) this; } for (String item : items) { - this.resources.add(item); + this.apiVersions.remove(item); } return (A) this; } - public A addAllToResources(Collection items) { - if (this.resources == null) { - this.resources = new ArrayList(); + public A removeAllFromOperations(Collection items) { + if (this.operations == null) { + return (A) this; } for (String item : items) { - this.resources.add(item); + this.operations.remove(item); } return (A) this; } - public A removeFromResources(String... items) { - if (this.resources == null) { + public A removeAllFromResourceNames(Collection items) { + if (this.resourceNames == null) { return (A) this; } for (String item : items) { - this.resources.remove(item); + this.resourceNames.remove(item); } return (A) this; } @@ -573,116 +467,94 @@ public A removeAllFromResources(Collection items) { return (A) this; } - public List getResources() { - return this.resources; - } - - public String getResource(int index) { - return this.resources.get(index); - } - - public String getFirstResource() { - return this.resources.get(0); - } - - public String getLastResource() { - return this.resources.get(resources.size() - 1); - } - - public String getMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } - public boolean hasMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A removeFromApiVersions(String... items) { + if (this.apiVersions == null) { + return (A) this; + } + for (String item : items) { + this.apiVersions.remove(item); + } + return (A) this; } - public A withResources(List resources) { - if (resources != null) { - this.resources = new ArrayList(); - for (String item : resources) { - this.addToResources(item); - } - } else { - this.resources = null; + public A removeFromOperations(String... items) { + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.remove(item); } return (A) this; } - public A withResources(String... resources) { - if (this.resources != null) { - this.resources.clear(); - _visitables.remove("resources"); + public A removeFromResourceNames(String... items) { + if (this.resourceNames == null) { + return (A) this; } - if (resources != null) { - for (String item : resources) { - this.addToResources(item); - } + for (String item : items) { + this.resourceNames.remove(item); } return (A) this; } - public boolean hasResources() { - return this.resources != null && !(this.resources.isEmpty()); + public A removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } - public String getScope() { - return this.scope; + public A setToApiGroups(int index,String item) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + this.apiGroups.set(index, item); + return (A) this; } - public A withScope(String scope) { - this.scope = scope; + public A setToApiVersions(int index,String item) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + this.apiVersions.set(index, item); return (A) this; } - public boolean hasScope() { - return this.scope != null; + public A setToOperations(int index,String item) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + this.operations.set(index, item); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1NamedRuleWithOperationsFluent that = (V1NamedRuleWithOperationsFluent) o; - if (!(Objects.equals(apiGroups, that.apiGroups))) { - return false; - } - if (!(Objects.equals(apiVersions, that.apiVersions))) { - return false; - } - if (!(Objects.equals(operations, that.operations))) { - return false; - } - if (!(Objects.equals(resourceNames, that.resourceNames))) { - return false; - } - if (!(Objects.equals(resources, that.resources))) { - return false; - } - if (!(Objects.equals(scope, that.scope))) { - return false; + public A setToResourceNames(int index,String item) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); } - return true; + this.resourceNames.set(index, item); + return (A) this; } - public int hashCode() { - return Objects.hash(apiGroups, apiVersions, operations, resourceNames, resources, scope); + public A setToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.set(index, item); + return (A) this; } public String toString() { @@ -721,5 +593,134 @@ public String toString() { return sb.toString(); } - + public A withApiGroups(List apiGroups) { + if (apiGroups != null) { + this.apiGroups = new ArrayList(); + for (String item : apiGroups) { + this.addToApiGroups(item); + } + } else { + this.apiGroups = null; + } + return (A) this; + } + + public A withApiGroups(String... apiGroups) { + if (this.apiGroups != null) { + this.apiGroups.clear(); + _visitables.remove("apiGroups"); + } + if (apiGroups != null) { + for (String item : apiGroups) { + this.addToApiGroups(item); + } + } + return (A) this; + } + + public A withApiVersions(List apiVersions) { + if (apiVersions != null) { + this.apiVersions = new ArrayList(); + for (String item : apiVersions) { + this.addToApiVersions(item); + } + } else { + this.apiVersions = null; + } + return (A) this; + } + + public A withApiVersions(String... apiVersions) { + if (this.apiVersions != null) { + this.apiVersions.clear(); + _visitables.remove("apiVersions"); + } + if (apiVersions != null) { + for (String item : apiVersions) { + this.addToApiVersions(item); + } + } + return (A) this; + } + + public A withOperations(List operations) { + if (operations != null) { + this.operations = new ArrayList(); + for (String item : operations) { + this.addToOperations(item); + } + } else { + this.operations = null; + } + return (A) this; + } + + public A withOperations(String... operations) { + if (this.operations != null) { + this.operations.clear(); + _visitables.remove("operations"); + } + if (operations != null) { + for (String item : operations) { + this.addToOperations(item); + } + } + return (A) this; + } + + public A withResourceNames(List resourceNames) { + if (resourceNames != null) { + this.resourceNames = new ArrayList(); + for (String item : resourceNames) { + this.addToResourceNames(item); + } + } else { + this.resourceNames = null; + } + return (A) this; + } + + public A withResourceNames(String... resourceNames) { + if (this.resourceNames != null) { + this.resourceNames.clear(); + _visitables.remove("resourceNames"); + } + if (resourceNames != null) { + for (String item : resourceNames) { + this.addToResourceNames(item); + } + } + return (A) this; + } + + public A withResources(List resources) { + if (resources != null) { + this.resources = new ArrayList(); + for (String item : resources) { + this.addToResources(item); + } + } else { + this.resources = null; + } + return (A) this; + } + + public A withResources(String... resources) { + if (this.resources != null) { + this.resources.clear(); + _visitables.remove("resources"); + } + if (resources != null) { + for (String item : resources) { + this.addToResources(item); + } + } + return (A) this; + } + + public A withScope(String scope) { + this.scope = scope; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java index c29aa148f1..848ed9639a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NamespaceBuilder extends V1NamespaceFluent implements VisitableBuilder{ + + V1NamespaceFluent fluent; + public V1NamespaceBuilder() { this(new V1Namespace()); } @@ -11,17 +14,16 @@ public V1NamespaceBuilder(V1NamespaceFluent fluent) { this(fluent, new V1Namespace()); } - public V1NamespaceBuilder(V1NamespaceFluent fluent,V1Namespace instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NamespaceBuilder(V1Namespace instance) { this.fluent = this; this.copyInstance(instance); } - V1NamespaceFluent fluent; + public V1NamespaceBuilder(V1NamespaceFluent fluent,V1Namespace instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Namespace build() { V1Namespace buildable = new V1Namespace(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1Namespace build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java index 433a5f9d6e..705feef2cb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NamespaceConditionBuilder extends V1NamespaceConditionFluent implements VisitableBuilder{ + + V1NamespaceConditionFluent fluent; + public V1NamespaceConditionBuilder() { this(new V1NamespaceCondition()); } @@ -11,17 +14,16 @@ public V1NamespaceConditionBuilder(V1NamespaceConditionFluent fluent) { this(fluent, new V1NamespaceCondition()); } - public V1NamespaceConditionBuilder(V1NamespaceConditionFluent fluent,V1NamespaceCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NamespaceConditionBuilder(V1NamespaceCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1NamespaceConditionFluent fluent; + public V1NamespaceConditionBuilder(V1NamespaceConditionFluent fluent,V1NamespaceCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NamespaceCondition build() { V1NamespaceCondition buildable = new V1NamespaceCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -32,5 +34,4 @@ public V1NamespaceCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java index 91ecbb63d7..fd418eb41f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1NamespaceConditionFluent> extends BaseFluent{ - public V1NamespaceConditionFluent() { - } - - public V1NamespaceConditionFluent(V1NamespaceCondition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1NamespaceConditionFluent() { + } + public V1NamespaceConditionFluent(V1NamespaceCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1NamespaceCondition instance) { instance = instance != null ? instance : new V1NamespaceCondition(); if (instance != null) { @@ -36,71 +38,6 @@ protected void copyInstance(V1NamespaceCondition instance) { } } - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -130,6 +67,46 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; + } + + public String getMessage() { + return this.message; + } + + public String getReason() { + return this.reason; + } + + public String getStatus() { + return this.status; + } + + public String getType() { + return this.type; + } + + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasReason() { + return this.reason != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } @@ -165,5 +142,29 @@ public String toString() { return sb.toString(); } - + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java index 871e98f548..bef7591c43 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1NamespaceFluent> extends BaseFluent{ - public V1NamespaceFluent() { - } - - public V1NamespaceFluent(V1Namespace instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1NamespaceSpecBuilder spec; private V1NamespaceStatusBuilder status; - - protected void copyInstance(V1Namespace instance) { - instance = instance != null ? instance : new V1Namespace(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1NamespaceFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1NamespaceFluent(V1Namespace instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1NamespaceSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1NamespaceStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1Namespace instance) { + instance = instance != null ? instance : new V1Namespace(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1NamespaceSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1NamespaceSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1NamespaceSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1NamespaceSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1NamespaceSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1NamespaceSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1NamespaceStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1NamespaceStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1NamespaceStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1NamespaceStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1NamespaceStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1NamespaceStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1NamespaceStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1NamespaceStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1NamespaceSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1NamespaceStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1NamespaceSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1NamespaceSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1NamespaceStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1NamespaceStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1NamespaceFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1NamespaceSpecFluent> implements Nested{ + + V1NamespaceSpecBuilder builder; + SpecNested(V1NamespaceSpec item) { this.builder = new V1NamespaceSpecBuilder(this, item); } - V1NamespaceSpecBuilder builder; - + public N and() { return (N) V1NamespaceFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1NamespaceStatusFluent> implements Nested{ + + V1NamespaceStatusBuilder builder; + StatusNested(V1NamespaceStatus item) { this.builder = new V1NamespaceStatusBuilder(this, item); } - V1NamespaceStatusBuilder builder; - + public N and() { return (N) V1NamespaceFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java index e6056aa107..a55f5f81b7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NamespaceListBuilder extends V1NamespaceListFluent implements VisitableBuilder{ + + V1NamespaceListFluent fluent; + public V1NamespaceListBuilder() { this(new V1NamespaceList()); } @@ -11,17 +14,16 @@ public V1NamespaceListBuilder(V1NamespaceListFluent fluent) { this(fluent, new V1NamespaceList()); } - public V1NamespaceListBuilder(V1NamespaceListFluent fluent,V1NamespaceList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NamespaceListBuilder(V1NamespaceList instance) { this.fluent = this; this.copyInstance(instance); } - V1NamespaceListFluent fluent; + public V1NamespaceListBuilder(V1NamespaceListFluent fluent,V1NamespaceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NamespaceList build() { V1NamespaceList buildable = new V1NamespaceList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1NamespaceList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java index 4b9e264a84..7502745d5f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1NamespaceListFluent> extends BaseFluent{ - public V1NamespaceListFluent() { - } - - public V1NamespaceListFluent(V1NamespaceList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1NamespaceList instance) { - instance = instance != null ? instance : new V1NamespaceList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1NamespaceListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1NamespaceListFluent(V1NamespaceList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1Namespace item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1NamespaceBuilder builder = new V1NamespaceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1Namespace item : items) { + V1NamespaceBuilder builder = new V1NamespaceBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1Namespace item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1NamespaceBuilder builder = new V1NamespaceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1Namespace item) { + return new ItemsNested(-1, item); } public A addToItems(V1Namespace... items) { @@ -96,68 +65,31 @@ public A addToItems(V1Namespace... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1Namespace item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1Namespace item : items) { - V1NamespaceBuilder builder = new V1NamespaceBuilder(item); + V1NamespaceBuilder builder = new V1NamespaceBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1Namespace... items) { - if (this.items == null) { - return (A) this; - } - for (V1Namespace item : items) { - V1NamespaceBuilder builder = new V1NamespaceBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1Namespace item : items) { - V1NamespaceBuilder builder = new V1NamespaceBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1NamespaceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1Namespace buildFirstItem() { + return this.items.get(0).build(); } public V1Namespace buildItem(int index) { return this.items.get(index).build(); } - public V1Namespace buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1Namespace buildLastItem() { @@ -173,73 +105,34 @@ public V1Namespace buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1NamespaceBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Namespace item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1NamespaceList instance) { + instance = instance != null ? instance : new V1NamespaceList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1Namespace... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1Namespace item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Namespace item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Namespace item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1NamespaceBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Namespace item : items) { + V1NamespaceBuilder builder = new V1NamespaceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Namespace... items) { + if (this.items == null) { + return (A) this; + } + for (V1Namespace item : items) { + V1NamespaceBuilder builder = new V1NamespaceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1NamespaceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Namespace item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1Namespace item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1NamespaceBuilder builder = new V1NamespaceBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1Namespace item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1Namespace... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1Namespace item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1NamespaceFluent> implements Nested{ + + V1NamespaceBuilder builder; + int index; + ItemsNested(int index,V1Namespace item) { this.index = index; this.builder = new V1NamespaceBuilder(this, item); } - V1NamespaceBuilder builder; - int index; - + public N and() { return (N) V1NamespaceListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1NamespaceListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java index 374495d757..93054a43dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NamespaceSpecBuilder extends V1NamespaceSpecFluent implements VisitableBuilder{ + + V1NamespaceSpecFluent fluent; + public V1NamespaceSpecBuilder() { this(new V1NamespaceSpec()); } @@ -11,22 +14,20 @@ public V1NamespaceSpecBuilder(V1NamespaceSpecFluent fluent) { this(fluent, new V1NamespaceSpec()); } - public V1NamespaceSpecBuilder(V1NamespaceSpecFluent fluent,V1NamespaceSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NamespaceSpecBuilder(V1NamespaceSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1NamespaceSpecFluent fluent; + public V1NamespaceSpecBuilder(V1NamespaceSpecFluent fluent,V1NamespaceSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NamespaceSpec build() { V1NamespaceSpec buildable = new V1NamespaceSpec(); buildable.setFinalizers(fluent.getFinalizers()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java index 314a65f468..07fd1eb7e4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,34 +16,23 @@ */ @SuppressWarnings("unchecked") public class V1NamespaceSpecFluent> extends BaseFluent{ + + private List finalizers; + public V1NamespaceSpecFluent() { } public V1NamespaceSpecFluent(V1NamespaceSpec instance) { this.copyInstance(instance); } - private List finalizers; - - protected void copyInstance(V1NamespaceSpec instance) { - instance = instance != null ? instance : new V1NamespaceSpec(); - if (instance != null) { - this.withFinalizers(instance.getFinalizers()); - } - } - - public A addToFinalizers(int index,String item) { + + public A addAllToFinalizers(Collection items) { if (this.finalizers == null) { this.finalizers = new ArrayList(); } - this.finalizers.add(index, item); - return (A) this; - } - - public A setToFinalizers(int index,String item) { - if (this.finalizers == null) { - this.finalizers = new ArrayList(); + for (String item : items) { + this.finalizers.add(item); } - this.finalizers.set(index, item); return (A) this; } @@ -57,44 +46,46 @@ public A addToFinalizers(String... items) { return (A) this; } - public A addAllToFinalizers(Collection items) { + public A addToFinalizers(int index,String item) { if (this.finalizers == null) { this.finalizers = new ArrayList(); } - for (String item : items) { - this.finalizers.add(item); - } + this.finalizers.add(index, item); return (A) this; } - public A removeFromFinalizers(String... items) { - if (this.finalizers == null) { - return (A) this; - } - for (String item : items) { - this.finalizers.remove(item); + protected void copyInstance(V1NamespaceSpec instance) { + instance = instance != null ? instance : new V1NamespaceSpec(); + if (instance != null) { + this.withFinalizers(instance.getFinalizers()); } - return (A) this; } - public A removeAllFromFinalizers(Collection items) { - if (this.finalizers == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.finalizers.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public List getFinalizers() { - return this.finalizers; + if (!(super.equals(o))) { + return false; + } + V1NamespaceSpecFluent that = (V1NamespaceSpecFluent) o; + if (!(Objects.equals(finalizers, that.finalizers))) { + return false; + } + return true; } public String getFinalizer(int index) { return this.finalizers.get(index); } + public List getFinalizers() { + return this.finalizers; + } + public String getFirstFinalizer() { return this.finalizers.get(0); } @@ -112,6 +103,10 @@ public String getMatchingFinalizer(Predicate predicate) { return null; } + public boolean hasFinalizers() { + return this.finalizers != null && !(this.finalizers.isEmpty()); + } + public boolean hasMatchingFinalizer(Predicate predicate) { for (String item : finalizers) { if (predicate.test(item)) { @@ -121,6 +116,49 @@ public boolean hasMatchingFinalizer(Predicate predicate) { return false; } + public int hashCode() { + return Objects.hash(finalizers); + } + + public A removeAllFromFinalizers(Collection items) { + if (this.finalizers == null) { + return (A) this; + } + for (String item : items) { + this.finalizers.remove(item); + } + return (A) this; + } + + public A removeFromFinalizers(String... items) { + if (this.finalizers == null) { + return (A) this; + } + for (String item : items) { + this.finalizers.remove(item); + } + return (A) this; + } + + public A setToFinalizers(int index,String item) { + if (this.finalizers == null) { + this.finalizers = new ArrayList(); + } + this.finalizers.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(finalizers == null) && !(finalizers.isEmpty())) { + sb.append("finalizers:"); + sb.append(finalizers); + } + sb.append("}"); + return sb.toString(); + } + public A withFinalizers(List finalizers) { if (finalizers != null) { this.finalizers = new ArrayList(); @@ -146,41 +184,4 @@ public A withFinalizers(String... finalizers) { return (A) this; } - public boolean hasFinalizers() { - return this.finalizers != null && !(this.finalizers.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1NamespaceSpecFluent that = (V1NamespaceSpecFluent) o; - if (!(Objects.equals(finalizers, that.finalizers))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(finalizers); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(finalizers == null) && !(finalizers.isEmpty())) { - sb.append("finalizers:"); - sb.append(finalizers); - } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java index 3669487b01..f4000ea6d3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NamespaceStatusBuilder extends V1NamespaceStatusFluent implements VisitableBuilder{ + + V1NamespaceStatusFluent fluent; + public V1NamespaceStatusBuilder() { this(new V1NamespaceStatus()); } @@ -11,17 +14,16 @@ public V1NamespaceStatusBuilder(V1NamespaceStatusFluent fluent) { this(fluent, new V1NamespaceStatus()); } - public V1NamespaceStatusBuilder(V1NamespaceStatusFluent fluent,V1NamespaceStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NamespaceStatusBuilder(V1NamespaceStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1NamespaceStatusFluent fluent; + public V1NamespaceStatusBuilder(V1NamespaceStatusFluent fluent,V1NamespaceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NamespaceStatus build() { V1NamespaceStatus buildable = new V1NamespaceStatus(); buildable.setConditions(fluent.buildConditions()); @@ -29,5 +31,4 @@ public V1NamespaceStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java index 7bab3347be..310cc515f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java @@ -1,69 +1,53 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1NamespaceStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + private String phase; + public V1NamespaceStatusFluent() { } public V1NamespaceStatusFluent(V1NamespaceStatus instance) { this.copyInstance(instance); } - private ArrayList conditions; - private String phase; - - protected void copyInstance(V1NamespaceStatus instance) { - instance = instance != null ? instance : new V1NamespaceStatus(); - if (instance != null) { - this.withConditions(instance.getConditions()); - this.withPhase(instance.getPhase()); - } - } - - public A addToConditions(int index,V1NamespaceCondition item) { + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1NamespaceCondition item : items) { + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1NamespaceCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1NamespaceCondition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1NamespaceCondition... items) { @@ -78,66 +62,29 @@ public A addToConditions(V1NamespaceCondition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1NamespaceCondition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1NamespaceCondition item : items) { - V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1NamespaceCondition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1NamespaceCondition item : items) { - V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1NamespaceCondition item : items) { - V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1NamespaceConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1NamespaceCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1NamespaceCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1NamespaceCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -155,61 +102,16 @@ public V1NamespaceCondition buildMatchingCondition(Predicate predicate) { - for (V1NamespaceConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1NamespaceCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(V1NamespaceCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1NamespaceCondition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1NamespaceStatus instance) { + instance = instance != null ? instance : new V1NamespaceStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withPhase(instance.getPhase()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1NamespaceCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1NamespaceCondition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -244,19 +146,6 @@ public ConditionsNested editMatchingCondition(Predicate predicate) { + for (V1NamespaceConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPhase() { + return this.phase != null; + } + public int hashCode() { return Objects.hash(conditions, phase); } + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1NamespaceCondition item : items) { + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1NamespaceCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1NamespaceCondition item : items) { + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1NamespaceConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1NamespaceCondition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1NamespaceCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -296,14 +265,49 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1NamespaceCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1NamespaceCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1NamespaceCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withPhase(String phase) { + this.phase = phase; + return (A) this; + } public class ConditionsNested extends V1NamespaceConditionFluent> implements Nested{ + + V1NamespaceConditionBuilder builder; + int index; + ConditionsNested(int index,V1NamespaceCondition item) { this.index = index; this.builder = new V1NamespaceConditionBuilder(this, item); } - V1NamespaceConditionBuilder builder; - int index; - + public N and() { return (N) V1NamespaceStatusFluent.this.setToConditions(index, builder.build()); } @@ -312,7 +316,5 @@ public N endCondition() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataBuilder.java index e1e6f8a54b..d3cb0a3365 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NetworkDeviceDataBuilder extends V1NetworkDeviceDataFluent implements VisitableBuilder{ + + V1NetworkDeviceDataFluent fluent; + public V1NetworkDeviceDataBuilder() { this(new V1NetworkDeviceData()); } @@ -11,17 +14,16 @@ public V1NetworkDeviceDataBuilder(V1NetworkDeviceDataFluent fluent) { this(fluent, new V1NetworkDeviceData()); } - public V1NetworkDeviceDataBuilder(V1NetworkDeviceDataFluent fluent,V1NetworkDeviceData instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NetworkDeviceDataBuilder(V1NetworkDeviceData instance) { this.fluent = this; this.copyInstance(instance); } - V1NetworkDeviceDataFluent fluent; + public V1NetworkDeviceDataBuilder(V1NetworkDeviceDataFluent fluent,V1NetworkDeviceData instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NetworkDeviceData build() { V1NetworkDeviceData buildable = new V1NetworkDeviceData(); buildable.setHardwareAddress(fluent.getHardwareAddress()); @@ -30,5 +32,4 @@ public V1NetworkDeviceData build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataFluent.java index aceea49676..80fa83fa01 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,64 +16,25 @@ */ @SuppressWarnings("unchecked") public class V1NetworkDeviceDataFluent> extends BaseFluent{ - public V1NetworkDeviceDataFluent() { - } - - public V1NetworkDeviceDataFluent(V1NetworkDeviceData instance) { - this.copyInstance(instance); - } + private String hardwareAddress; private String interfaceName; private List ips; - - protected void copyInstance(V1NetworkDeviceData instance) { - instance = instance != null ? instance : new V1NetworkDeviceData(); - if (instance != null) { - this.withHardwareAddress(instance.getHardwareAddress()); - this.withInterfaceName(instance.getInterfaceName()); - this.withIps(instance.getIps()); - } - } - - public String getHardwareAddress() { - return this.hardwareAddress; - } - - public A withHardwareAddress(String hardwareAddress) { - this.hardwareAddress = hardwareAddress; - return (A) this; - } - - public boolean hasHardwareAddress() { - return this.hardwareAddress != null; - } - - public String getInterfaceName() { - return this.interfaceName; - } - - public A withInterfaceName(String interfaceName) { - this.interfaceName = interfaceName; - return (A) this; + + public V1NetworkDeviceDataFluent() { } - public boolean hasInterfaceName() { - return this.interfaceName != null; + public V1NetworkDeviceDataFluent(V1NetworkDeviceData instance) { + this.copyInstance(instance); } - - public A addToIps(int index,String item) { + + public A addAllToIps(Collection items) { if (this.ips == null) { this.ips = new ArrayList(); } - this.ips.add(index, item); - return (A) this; - } - - public A setToIps(int index,String item) { - if (this.ips == null) { - this.ips = new ArrayList(); + for (String item : items) { + this.ips.add(item); } - this.ips.set(index, item); return (A) this; } @@ -87,46 +48,64 @@ public A addToIps(String... items) { return (A) this; } - public A addAllToIps(Collection items) { + public A addToIps(int index,String item) { if (this.ips == null) { this.ips = new ArrayList(); } - for (String item : items) { - this.ips.add(item); - } + this.ips.add(index, item); return (A) this; } - public A removeFromIps(String... items) { - if (this.ips == null) { - return (A) this; - } - for (String item : items) { - this.ips.remove(item); + protected void copyInstance(V1NetworkDeviceData instance) { + instance = instance != null ? instance : new V1NetworkDeviceData(); + if (instance != null) { + this.withHardwareAddress(instance.getHardwareAddress()); + this.withInterfaceName(instance.getInterfaceName()); + this.withIps(instance.getIps()); } - return (A) this; } - public A removeAllFromIps(Collection items) { - if (this.ips == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.ips.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1NetworkDeviceDataFluent that = (V1NetworkDeviceDataFluent) o; + if (!(Objects.equals(hardwareAddress, that.hardwareAddress))) { + return false; + } + if (!(Objects.equals(interfaceName, that.interfaceName))) { + return false; + } + if (!(Objects.equals(ips, that.ips))) { + return false; + } + return true; } - public List getIps() { - return this.ips; + public String getFirstIp() { + return this.ips.get(0); + } + + public String getHardwareAddress() { + return this.hardwareAddress; + } + + public String getInterfaceName() { + return this.interfaceName; } public String getIp(int index) { return this.ips.get(index); } - public String getFirstIp() { - return this.ips.get(0); + public List getIps() { + return this.ips; } public String getLastIp() { @@ -142,6 +121,18 @@ public String getMatchingIp(Predicate predicate) { return null; } + public boolean hasHardwareAddress() { + return this.hardwareAddress != null; + } + + public boolean hasInterfaceName() { + return this.interfaceName != null; + } + + public boolean hasIps() { + return this.ips != null && !(this.ips.isEmpty()); + } + public boolean hasMatchingIp(Predicate predicate) { for (String item : ips) { if (predicate.test(item)) { @@ -151,60 +142,36 @@ public boolean hasMatchingIp(Predicate predicate) { return false; } - public A withIps(List ips) { - if (ips != null) { - this.ips = new ArrayList(); - for (String item : ips) { - this.addToIps(item); - } - } else { - this.ips = null; - } - return (A) this; + public int hashCode() { + return Objects.hash(hardwareAddress, interfaceName, ips); } - public A withIps(String... ips) { - if (this.ips != null) { - this.ips.clear(); - _visitables.remove("ips"); + public A removeAllFromIps(Collection items) { + if (this.ips == null) { + return (A) this; } - if (ips != null) { - for (String item : ips) { - this.addToIps(item); - } + for (String item : items) { + this.ips.remove(item); } return (A) this; } - public boolean hasIps() { - return this.ips != null && !(this.ips.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1NetworkDeviceDataFluent that = (V1NetworkDeviceDataFluent) o; - if (!(Objects.equals(hardwareAddress, that.hardwareAddress))) { - return false; - } - if (!(Objects.equals(interfaceName, that.interfaceName))) { - return false; + public A removeFromIps(String... items) { + if (this.ips == null) { + return (A) this; } - if (!(Objects.equals(ips, that.ips))) { - return false; + for (String item : items) { + this.ips.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(hardwareAddress, interfaceName, ips); + public A setToIps(int index,String item) { + if (this.ips == null) { + this.ips = new ArrayList(); + } + this.ips.set(index, item); + return (A) this; } public String toString() { @@ -228,5 +195,39 @@ public String toString() { return sb.toString(); } - + public A withHardwareAddress(String hardwareAddress) { + this.hardwareAddress = hardwareAddress; + return (A) this; + } + + public A withInterfaceName(String interfaceName) { + this.interfaceName = interfaceName; + return (A) this; + } + + public A withIps(List ips) { + if (ips != null) { + this.ips = new ArrayList(); + for (String item : ips) { + this.addToIps(item); + } + } else { + this.ips = null; + } + return (A) this; + } + + public A withIps(String... ips) { + if (this.ips != null) { + this.ips.clear(); + _visitables.remove("ips"); + } + if (ips != null) { + for (String item : ips) { + this.addToIps(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java index 1f05b421bc..c8896770c3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NetworkPolicyBuilder extends V1NetworkPolicyFluent implements VisitableBuilder{ + + V1NetworkPolicyFluent fluent; + public V1NetworkPolicyBuilder() { this(new V1NetworkPolicy()); } @@ -11,17 +14,16 @@ public V1NetworkPolicyBuilder(V1NetworkPolicyFluent fluent) { this(fluent, new V1NetworkPolicy()); } - public V1NetworkPolicyBuilder(V1NetworkPolicyFluent fluent,V1NetworkPolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NetworkPolicyBuilder(V1NetworkPolicy instance) { this.fluent = this; this.copyInstance(instance); } - V1NetworkPolicyFluent fluent; + public V1NetworkPolicyBuilder(V1NetworkPolicyFluent fluent,V1NetworkPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NetworkPolicy build() { V1NetworkPolicy buildable = new V1NetworkPolicy(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1NetworkPolicy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java index 11a938e2c9..82a3c45b55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NetworkPolicyEgressRuleBuilder extends V1NetworkPolicyEgressRuleFluent implements VisitableBuilder{ + + V1NetworkPolicyEgressRuleFluent fluent; + public V1NetworkPolicyEgressRuleBuilder() { this(new V1NetworkPolicyEgressRule()); } @@ -11,17 +14,16 @@ public V1NetworkPolicyEgressRuleBuilder(V1NetworkPolicyEgressRuleFluent fluen this(fluent, new V1NetworkPolicyEgressRule()); } - public V1NetworkPolicyEgressRuleBuilder(V1NetworkPolicyEgressRuleFluent fluent,V1NetworkPolicyEgressRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NetworkPolicyEgressRuleBuilder(V1NetworkPolicyEgressRule instance) { this.fluent = this; this.copyInstance(instance); } - V1NetworkPolicyEgressRuleFluent fluent; + public V1NetworkPolicyEgressRuleBuilder(V1NetworkPolicyEgressRuleFluent fluent,V1NetworkPolicyEgressRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NetworkPolicyEgressRule build() { V1NetworkPolicyEgressRule buildable = new V1NetworkPolicyEgressRule(); buildable.setPorts(fluent.buildPorts()); @@ -29,5 +31,4 @@ public V1NetworkPolicyEgressRule build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java index 2297c1edc9..2bd4f35ef0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java @@ -1,71 +1,75 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1NetworkPolicyEgressRuleFluent> extends BaseFluent{ + + private ArrayList ports; + private ArrayList to; + public V1NetworkPolicyEgressRuleFluent() { } public V1NetworkPolicyEgressRuleFluent(V1NetworkPolicyEgressRule instance) { this.copyInstance(instance); } - private ArrayList ports; - private ArrayList to; - - protected void copyInstance(V1NetworkPolicyEgressRule instance) { - instance = instance != null ? instance : new V1NetworkPolicyEgressRule(); - if (instance != null) { - this.withPorts(instance.getPorts()); - this.withTo(instance.getTo()); - } - } - - public A addToPorts(int index,V1NetworkPolicyPort item) { + + public A addAllToPorts(Collection items) { if (this.ports == null) { this.ports = new ArrayList(); } - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); - } else { + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); _visitables.get("ports").add(builder); - ports.add(index, builder); + this.ports.add(builder); } return (A) this; } - public A setToPorts(int index,V1NetworkPolicyPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); + public A addAllToTo(Collection items) { + if (this.to == null) { + this.to = new ArrayList(); } - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); - } else { - _visitables.get("ports").add(builder); - ports.set(index, builder); + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("to").add(builder); + this.to.add(builder); } return (A) this; } + public PortsNested addNewPort() { + return new PortsNested(-1, null); + } + + public PortsNested addNewPortLike(V1NetworkPolicyPort item) { + return new PortsNested(-1, item); + } + + public ToNested addNewTo() { + return new ToNested(-1, null); + } + + public ToNested addNewToLike(V1NetworkPolicyPeer item) { + return new ToNested(-1, item); + } + public A addToPorts(V1NetworkPolicyPort... items) { if (this.ports == null) { this.ports = new ArrayList(); @@ -78,74 +82,64 @@ public A addToPorts(V1NetworkPolicyPort... items) { return (A) this; } - public A addAllToPorts(Collection items) { + public A addToPorts(int index,V1NetworkPolicyPort item) { if (this.ports == null) { this.ports = new ArrayList(); } - for (V1NetworkPolicyPort item : items) { - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + if (index < 0 || index >= ports.size()) { _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; - } - - public A removeFromPorts(V1NetworkPolicyPort... items) { - if (this.ports == null) { - return (A) this; - } - for (V1NetworkPolicyPort item : items) { - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - _visitables.get("ports").remove(builder); - this.ports.remove(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); } return (A) this; } - public A removeAllFromPorts(Collection items) { - if (this.ports == null) { - return (A) this; + public A addToTo(V1NetworkPolicyPeer... items) { + if (this.to == null) { + this.to = new ArrayList(); } - for (V1NetworkPolicyPort item : items) { - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - _visitables.get("ports").remove(builder); - this.ports.remove(builder); + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("to").add(builder); + this.to.add(builder); } return (A) this; } - public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) { - return (A) this; + public A addToTo(int index,V1NetworkPolicyPeer item) { + if (this.to == null) { + this.to = new ArrayList(); } - Iterator each = ports.iterator(); - List visitables = _visitables.get("ports"); - while (each.hasNext()) { - V1NetworkPolicyPortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + if (index < 0 || index >= to.size()) { + _visitables.get("to").add(builder); + to.add(builder); + } else { + _visitables.get("to").add(builder); + to.add(index, builder); } return (A) this; } - public List buildPorts() { - return this.ports != null ? build(ports) : null; - } - - public V1NetworkPolicyPort buildPort(int index) { - return this.ports.get(index).build(); - } - public V1NetworkPolicyPort buildFirstPort() { return this.ports.get(0).build(); } + public V1NetworkPolicyPeer buildFirstTo() { + return this.to.get(0).build(); + } + public V1NetworkPolicyPort buildLastPort() { return this.ports.get(ports.size() - 1).build(); } + public V1NetworkPolicyPeer buildLastTo() { + return this.to.get(to.size() - 1).build(); + } + public V1NetworkPolicyPort buildMatchingPort(Predicate predicate) { for (V1NetworkPolicyPortBuilder item : ports) { if (predicate.test(item)) { @@ -155,64 +149,37 @@ public V1NetworkPolicyPort buildMatchingPort(Predicate predicate) { - for (V1NetworkPolicyPortBuilder item : ports) { + public V1NetworkPolicyPeer buildMatchingTo(Predicate predicate) { + for (V1NetworkPolicyPeerBuilder item : to) { if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withPorts(List ports) { - if (this.ports != null) { - this._visitables.get("ports").clear(); - } - if (ports != null) { - this.ports = new ArrayList(); - for (V1NetworkPolicyPort item : ports) { - this.addToPorts(item); + return item.build(); } - } else { - this.ports = null; - } - return (A) this; - } - - public A withPorts(V1NetworkPolicyPort... ports) { - if (this.ports != null) { - this.ports.clear(); - _visitables.remove("ports"); - } - if (ports != null) { - for (V1NetworkPolicyPort item : ports) { - this.addToPorts(item); } - } - return (A) this; + return null; } - public boolean hasPorts() { - return this.ports != null && !(this.ports.isEmpty()); + public V1NetworkPolicyPort buildPort(int index) { + return this.ports.get(index).build(); } - public PortsNested addNewPort() { - return new PortsNested(-1, null); + public List buildPorts() { + return this.ports != null ? build(ports) : null; } - public PortsNested addNewPortLike(V1NetworkPolicyPort item) { - return new PortsNested(-1, item); + public List buildTo() { + return this.to != null ? build(to) : null; } - public PortsNested setNewPortLike(int index,V1NetworkPolicyPort item) { - return new PortsNested(index, item); + public V1NetworkPolicyPeer buildTo(int index) { + return this.to.get(index).build(); } - public PortsNested editPort(int index) { - if (index <= ports.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + protected void copyInstance(V1NetworkPolicyEgressRule instance) { + instance = instance != null ? instance : new V1NetworkPolicyEgressRule(); + if (instance != null) { + this.withPorts(instance.getPorts()); + this.withTo(instance.getTo()); } - return this.setNewPortLike(index, this.buildPort(index)); } public PortsNested editFirstPort() { @@ -222,6 +189,13 @@ public PortsNested editFirstPort() { return this.setNewPortLike(0, this.buildPort(0)); } + public ToNested editFirstTo() { + if (to.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "to")); + } + return this.setNewToLike(0, this.buildTo(0)); + } + public PortsNested editLastPort() { int index = ports.size() - 1; if (index < 0) { @@ -230,6 +204,14 @@ public PortsNested editLastPort() { return this.setNewPortLike(index, this.buildPort(index)); } + public ToNested editLastTo() { + int index = to.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "to")); + } + return this.setNewToLike(index, this.buildTo(index)); + } + public PortsNested editMatchingPort(Predicate predicate) { int index = -1; for (int i = 0;i < ports.size();i++) { @@ -244,56 +226,116 @@ public PortsNested editMatchingPort(Predicate pre return this.setNewPortLike(index, this.buildPort(index)); } - public A addToTo(int index,V1NetworkPolicyPeer item) { - if (this.to == null) { - this.to = new ArrayList(); + public ToNested editMatchingTo(Predicate predicate) { + int index = -1; + for (int i = 0;i < to.size();i++) { + if (predicate.test(to.get(i))) { + index = i; + break; + } } - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - if (index < 0 || index >= to.size()) { - _visitables.get("to").add(builder); - to.add(builder); - } else { - _visitables.get("to").add(builder); - to.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "to")); } - return (A) this; + return this.setNewToLike(index, this.buildTo(index)); } - public A setToTo(int index,V1NetworkPolicyPeer item) { - if (this.to == null) { - this.to = new ArrayList(); + public PortsNested editPort(int index) { + if (ports.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); } - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - if (index < 0 || index >= to.size()) { - _visitables.get("to").add(builder); - to.add(builder); - } else { - _visitables.get("to").add(builder); - to.set(index, builder); + return this.setNewPortLike(index, this.buildPort(index)); + } + + public ToNested editTo(int index) { + if (to.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "to")); + } + return this.setNewToLike(index, this.buildTo(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NetworkPolicyEgressRuleFluent that = (V1NetworkPolicyEgressRuleFluent) o; + if (!(Objects.equals(ports, that.ports))) { + return false; + } + if (!(Objects.equals(to, that.to))) { + return false; + } + return true; + } + + public boolean hasMatchingPort(Predicate predicate) { + for (V1NetworkPolicyPortBuilder item : ports) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingTo(Predicate predicate) { + for (V1NetworkPolicyPeerBuilder item : to) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPorts() { + return this.ports != null && !(this.ports.isEmpty()); + } + + public boolean hasTo() { + return this.to != null && !(this.to.isEmpty()); + } + + public int hashCode() { + return Objects.hash(ports, to); + } + + public A removeAllFromPorts(Collection items) { + if (this.ports == null) { + return (A) this; + } + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); } return (A) this; } - public A addToTo(V1NetworkPolicyPeer... items) { + public A removeAllFromTo(Collection items) { if (this.to == null) { - this.to = new ArrayList(); + return (A) this; } for (V1NetworkPolicyPeer item : items) { V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("to").add(builder); - this.to.add(builder); + _visitables.get("to").remove(builder); + this.to.remove(builder); } return (A) this; } - public A addAllToTo(Collection items) { - if (this.to == null) { - this.to = new ArrayList(); + public A removeFromPorts(V1NetworkPolicyPort... items) { + if (this.ports == null) { + return (A) this; } - for (V1NetworkPolicyPeer item : items) { - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("to").add(builder); - this.to.add(builder); + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); } return (A) this; } @@ -310,14 +352,18 @@ public A removeFromTo(V1NetworkPolicyPeer... items) { return (A) this; } - public A removeAllFromTo(Collection items) { - if (this.to == null) { + public A removeMatchingFromPorts(Predicate predicate) { + if (ports == null) { return (A) this; } - for (V1NetworkPolicyPeer item : items) { - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("to").remove(builder); - this.to.remove(builder); + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); + while (each.hasNext()) { + V1NetworkPolicyPortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -338,38 +384,86 @@ public A removeMatchingFromTo(Predicate predicate) { return (A) this; } - public List buildTo() { - return this.to != null ? build(to) : null; + public PortsNested setNewPortLike(int index,V1NetworkPolicyPort item) { + return new PortsNested(index, item); } - public V1NetworkPolicyPeer buildTo(int index) { - return this.to.get(index).build(); + public ToNested setNewToLike(int index,V1NetworkPolicyPeer item) { + return new ToNested(index, item); } - public V1NetworkPolicyPeer buildFirstTo() { - return this.to.get(0).build(); + public A setToPorts(int index,V1NetworkPolicyPort item) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } + return (A) this; } - public V1NetworkPolicyPeer buildLastTo() { - return this.to.get(to.size() - 1).build(); + public A setToTo(int index,V1NetworkPolicyPeer item) { + if (this.to == null) { + this.to = new ArrayList(); + } + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + if (index < 0 || index >= to.size()) { + _visitables.get("to").add(builder); + to.add(builder); + } else { + _visitables.get("to").add(builder); + to.set(index, builder); + } + return (A) this; } - public V1NetworkPolicyPeer buildMatchingTo(Predicate predicate) { - for (V1NetworkPolicyPeerBuilder item : to) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(ports == null) && !(ports.isEmpty())) { + sb.append("ports:"); + sb.append(ports); + sb.append(","); + } + if (!(to == null) && !(to.isEmpty())) { + sb.append("to:"); + sb.append(to); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingTo(Predicate predicate) { - for (V1NetworkPolicyPeerBuilder item : to) { - if (predicate.test(item)) { - return true; + public A withPorts(List ports) { + if (this.ports != null) { + this._visitables.get("ports").clear(); + } + if (ports != null) { + this.ports = new ArrayList(); + for (V1NetworkPolicyPort item : ports) { + this.addToPorts(item); } + } else { + this.ports = null; + } + return (A) this; + } + + public A withPorts(V1NetworkPolicyPort... ports) { + if (this.ports != null) { + this.ports.clear(); + _visitables.remove("ports"); + } + if (ports != null) { + for (V1NetworkPolicyPort item : ports) { + this.addToPorts(item); } - return false; + } + return (A) this; } public A withTo(List to) { @@ -399,106 +493,16 @@ public A withTo(V1NetworkPolicyPeer... to) { } return (A) this; } + public class PortsNested extends V1NetworkPolicyPortFluent> implements Nested{ - public boolean hasTo() { - return this.to != null && !(this.to.isEmpty()); - } - - public ToNested addNewTo() { - return new ToNested(-1, null); - } - - public ToNested addNewToLike(V1NetworkPolicyPeer item) { - return new ToNested(-1, item); - } - - public ToNested setNewToLike(int index,V1NetworkPolicyPeer item) { - return new ToNested(index, item); - } - - public ToNested editTo(int index) { - if (index <= to.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "to")); - } - return this.setNewToLike(index, this.buildTo(index)); - } - - public ToNested editFirstTo() { - if (to.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "to")); - } - return this.setNewToLike(0, this.buildTo(0)); - } - - public ToNested editLastTo() { - int index = to.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "to")); - } - return this.setNewToLike(index, this.buildTo(index)); - } - - public ToNested editMatchingTo(Predicate predicate) { - int index = -1; - for (int i = 0;i < to.size();i++) { - if (predicate.test(to.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "to")); - } - return this.setNewToLike(index, this.buildTo(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1NetworkPolicyEgressRuleFluent that = (V1NetworkPolicyEgressRuleFluent) o; - if (!(Objects.equals(ports, that.ports))) { - return false; - } - if (!(Objects.equals(to, that.to))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(ports, to); - } + V1NetworkPolicyPortBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(ports == null) && !(ports.isEmpty())) { - sb.append("ports:"); - sb.append(ports); - sb.append(","); - } - if (!(to == null) && !(to.isEmpty())) { - sb.append("to:"); - sb.append(to); - } - sb.append("}"); - return sb.toString(); - } - public class PortsNested extends V1NetworkPolicyPortFluent> implements Nested{ PortsNested(int index,V1NetworkPolicyPort item) { this.index = index; this.builder = new V1NetworkPolicyPortBuilder(this, item); } - V1NetworkPolicyPortBuilder builder; - int index; - + public N and() { return (N) V1NetworkPolicyEgressRuleFluent.this.setToPorts(index, builder.build()); } @@ -507,16 +511,17 @@ public N endPort() { return and(); } - } public class ToNested extends V1NetworkPolicyPeerFluent> implements Nested{ + + V1NetworkPolicyPeerBuilder builder; + int index; + ToNested(int index,V1NetworkPolicyPeer item) { this.index = index; this.builder = new V1NetworkPolicyPeerBuilder(this, item); } - V1NetworkPolicyPeerBuilder builder; - int index; - + public N and() { return (N) V1NetworkPolicyEgressRuleFluent.this.setToTo(index, builder.build()); } @@ -525,7 +530,5 @@ public N endTo() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java index a9a1cee422..e4447d6f44 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1NetworkPolicyFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1NetworkPolicySpecBuilder spec; + public V1NetworkPolicyFluent() { } public V1NetworkPolicyFluent(V1NetworkPolicy instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1NetworkPolicySpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1NetworkPolicySpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1NetworkPolicy instance) { instance = instance != null ? instance : new V1NetworkPolicy(); @@ -35,60 +45,6 @@ protected void copyInstance(V1NetworkPolicy instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1NetworkPolicySpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1NetworkPolicySpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1NetworkPolicySpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1NetworkPolicySpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1NetworkPolicySpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1NetworkPolicySpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1NetworkPolicySpec item) { + return new SpecNested(item); + } + + public A withSpec(V1NetworkPolicySpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1NetworkPolicySpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1NetworkPolicyFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1NetworkPolicySpecFluent> implements Nested{ + + V1NetworkPolicySpecBuilder builder; + SpecNested(V1NetworkPolicySpec item) { this.builder = new V1NetworkPolicySpecBuilder(this, item); } - V1NetworkPolicySpecBuilder builder; - + public N and() { return (N) V1NetworkPolicyFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java index c7a645b026..71d14dce2d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NetworkPolicyIngressRuleBuilder extends V1NetworkPolicyIngressRuleFluent implements VisitableBuilder{ + + V1NetworkPolicyIngressRuleFluent fluent; + public V1NetworkPolicyIngressRuleBuilder() { this(new V1NetworkPolicyIngressRule()); } @@ -11,17 +14,16 @@ public V1NetworkPolicyIngressRuleBuilder(V1NetworkPolicyIngressRuleFluent flu this(fluent, new V1NetworkPolicyIngressRule()); } - public V1NetworkPolicyIngressRuleBuilder(V1NetworkPolicyIngressRuleFluent fluent,V1NetworkPolicyIngressRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NetworkPolicyIngressRuleBuilder(V1NetworkPolicyIngressRule instance) { this.fluent = this; this.copyInstance(instance); } - V1NetworkPolicyIngressRuleFluent fluent; + public V1NetworkPolicyIngressRuleBuilder(V1NetworkPolicyIngressRuleFluent fluent,V1NetworkPolicyIngressRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NetworkPolicyIngressRule build() { V1NetworkPolicyIngressRule buildable = new V1NetworkPolicyIngressRule(); buildable.setFrom(fluent.buildFrom()); @@ -29,5 +31,4 @@ public V1NetworkPolicyIngressRule build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java index 514fdbe9af..58a205cd2a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java @@ -1,71 +1,75 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1NetworkPolicyIngressRuleFluent> extends BaseFluent{ + + private ArrayList from; + private ArrayList ports; + public V1NetworkPolicyIngressRuleFluent() { } public V1NetworkPolicyIngressRuleFluent(V1NetworkPolicyIngressRule instance) { this.copyInstance(instance); } - private ArrayList from; - private ArrayList ports; - - protected void copyInstance(V1NetworkPolicyIngressRule instance) { - instance = instance != null ? instance : new V1NetworkPolicyIngressRule(); - if (instance != null) { - this.withFrom(instance.getFrom()); - this.withPorts(instance.getPorts()); - } - } - - public A addToFrom(int index,V1NetworkPolicyPeer item) { + + public A addAllToFrom(Collection items) { if (this.from == null) { this.from = new ArrayList(); } - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - if (index < 0 || index >= from.size()) { - _visitables.get("from").add(builder); - from.add(builder); - } else { + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); _visitables.get("from").add(builder); - from.add(index, builder); + this.from.add(builder); } return (A) this; } - public A setToFrom(int index,V1NetworkPolicyPeer item) { - if (this.from == null) { - this.from = new ArrayList(); + public A addAllToPorts(Collection items) { + if (this.ports == null) { + this.ports = new ArrayList(); } - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - if (index < 0 || index >= from.size()) { - _visitables.get("from").add(builder); - from.add(builder); - } else { - _visitables.get("from").add(builder); - from.set(index, builder); + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); } return (A) this; } + public FromNested addNewFrom() { + return new FromNested(-1, null); + } + + public FromNested addNewFromLike(V1NetworkPolicyPeer item) { + return new FromNested(-1, item); + } + + public PortsNested addNewPort() { + return new PortsNested(-1, null); + } + + public PortsNested addNewPortLike(V1NetworkPolicyPort item) { + return new PortsNested(-1, item); + } + public A addToFrom(V1NetworkPolicyPeer... items) { if (this.from == null) { this.from = new ArrayList(); @@ -78,56 +82,54 @@ public A addToFrom(V1NetworkPolicyPeer... items) { return (A) this; } - public A addAllToFrom(Collection items) { + public A addToFrom(int index,V1NetworkPolicyPeer item) { if (this.from == null) { this.from = new ArrayList(); } - for (V1NetworkPolicyPeer item : items) { - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + if (index < 0 || index >= from.size()) { _visitables.get("from").add(builder); - this.from.add(builder); + from.add(builder); + } else { + _visitables.get("from").add(builder); + from.add(index, builder); } return (A) this; } - public A removeFromFrom(V1NetworkPolicyPeer... items) { - if (this.from == null) { - return (A) this; + public A addToPorts(V1NetworkPolicyPort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); } - for (V1NetworkPolicyPeer item : items) { - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("from").remove(builder); - this.from.remove(builder); + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); } return (A) this; } - public A removeAllFromFrom(Collection items) { - if (this.from == null) { - return (A) this; + public A addToPorts(int index,V1NetworkPolicyPort item) { + if (this.ports == null) { + this.ports = new ArrayList(); } - for (V1NetworkPolicyPeer item : items) { - V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("from").remove(builder); - this.from.remove(builder); + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.add(index, builder); } return (A) this; } - public A removeMatchingFromFrom(Predicate predicate) { - if (from == null) { - return (A) this; - } - Iterator each = from.iterator(); - List visitables = _visitables.get("from"); - while (each.hasNext()) { - V1NetworkPolicyPeerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1NetworkPolicyPeer buildFirstFrom() { + return this.from.get(0).build(); + } + + public V1NetworkPolicyPort buildFirstPort() { + return this.ports.get(0).build(); } public List buildFrom() { @@ -138,14 +140,14 @@ public V1NetworkPolicyPeer buildFrom(int index) { return this.from.get(index).build(); } - public V1NetworkPolicyPeer buildFirstFrom() { - return this.from.get(0).build(); - } - public V1NetworkPolicyPeer buildLastFrom() { return this.from.get(from.size() - 1).build(); } + public V1NetworkPolicyPort buildLastPort() { + return this.ports.get(ports.size() - 1).build(); + } + public V1NetworkPolicyPeer buildMatchingFrom(Predicate predicate) { for (V1NetworkPolicyPeerBuilder item : from) { if (predicate.test(item)) { @@ -155,73 +157,52 @@ public V1NetworkPolicyPeer buildMatchingFrom(Predicate predicate) { - for (V1NetworkPolicyPeerBuilder item : from) { + public V1NetworkPolicyPort buildMatchingPort(Predicate predicate) { + for (V1NetworkPolicyPortBuilder item : ports) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; - } - - public A withFrom(List from) { - if (this.from != null) { - this._visitables.get("from").clear(); - } - if (from != null) { - this.from = new ArrayList(); - for (V1NetworkPolicyPeer item : from) { - this.addToFrom(item); - } - } else { - this.from = null; - } - return (A) this; + return null; } - public A withFrom(V1NetworkPolicyPeer... from) { - if (this.from != null) { - this.from.clear(); - _visitables.remove("from"); - } - if (from != null) { - for (V1NetworkPolicyPeer item : from) { - this.addToFrom(item); - } - } - return (A) this; + public V1NetworkPolicyPort buildPort(int index) { + return this.ports.get(index).build(); } - public boolean hasFrom() { - return this.from != null && !(this.from.isEmpty()); + public List buildPorts() { + return this.ports != null ? build(ports) : null; } - public FromNested addNewFrom() { - return new FromNested(-1, null); + protected void copyInstance(V1NetworkPolicyIngressRule instance) { + instance = instance != null ? instance : new V1NetworkPolicyIngressRule(); + if (instance != null) { + this.withFrom(instance.getFrom()); + this.withPorts(instance.getPorts()); + } } - public FromNested addNewFromLike(V1NetworkPolicyPeer item) { - return new FromNested(-1, item); + public FromNested editFirstFrom() { + if (from.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "from")); + } + return this.setNewFromLike(0, this.buildFrom(0)); } - public FromNested setNewFromLike(int index,V1NetworkPolicyPeer item) { - return new FromNested(index, item); + public PortsNested editFirstPort() { + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); } public FromNested editFrom(int index) { - if (index <= from.size()) { + if (from.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "from")); } return this.setNewFromLike(index, this.buildFrom(index)); } - public FromNested editFirstFrom() { - if (from.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "from")); - } - return this.setNewFromLike(0, this.buildFrom(0)); - } - public FromNested editLastFrom() { int index = from.size() - 1; if (index < 0) { @@ -230,6 +211,14 @@ public FromNested editLastFrom() { return this.setNewFromLike(index, this.buildFrom(index)); } + public PortsNested editLastPort() { + int index = ports.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); + } + public FromNested editMatchingFrom(Predicate predicate) { int index = -1; for (int i = 0;i < from.size();i++) { @@ -244,61 +233,90 @@ public FromNested editMatchingFrom(Predicate pred return this.setNewFromLike(index, this.buildFrom(index)); } - public A addToPorts(int index,V1NetworkPolicyPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); + public PortsNested editMatchingPort(Predicate predicate) { + int index = -1; + for (int i = 0;i < ports.size();i++) { + if (predicate.test(ports.get(i))) { + index = i; + break; + } } - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); - } else { - _visitables.get("ports").add(builder); - ports.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ports")); } - return (A) this; + return this.setNewPortLike(index, this.buildPort(index)); } - public A setToPorts(int index,V1NetworkPolicyPort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); - } else { - _visitables.get("ports").add(builder); - ports.set(index, builder); + public PortsNested editPort(int index) { + if (ports.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); } - return (A) this; + return this.setNewPortLike(index, this.buildPort(index)); } - public A addToPorts(V1NetworkPolicyPort... items) { - if (this.ports == null) { - this.ports = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - for (V1NetworkPolicyPort item : items) { - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1NetworkPolicyIngressRuleFluent that = (V1NetworkPolicyIngressRuleFluent) o; + if (!(Objects.equals(from, that.from))) { + return false; + } + if (!(Objects.equals(ports, that.ports))) { + return false; + } + return true; } - public A addAllToPorts(Collection items) { - if (this.ports == null) { - this.ports = new ArrayList(); + public boolean hasFrom() { + return this.from != null && !(this.from.isEmpty()); + } + + public boolean hasMatchingFrom(Predicate predicate) { + for (V1NetworkPolicyPeerBuilder item : from) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingPort(Predicate predicate) { + for (V1NetworkPolicyPortBuilder item : ports) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPorts() { + return this.ports != null && !(this.ports.isEmpty()); + } + + public int hashCode() { + return Objects.hash(from, ports); + } + + public A removeAllFromFrom(Collection items) { + if (this.from == null) { + return (A) this; } - for (V1NetworkPolicyPort item : items) { - V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("from").remove(builder); + this.from.remove(builder); } return (A) this; } - public A removeFromPorts(V1NetworkPolicyPort... items) { + public A removeAllFromPorts(Collection items) { if (this.ports == null) { return (A) this; } @@ -310,7 +328,19 @@ public A removeFromPorts(V1NetworkPolicyPort... items) { return (A) this; } - public A removeAllFromPorts(Collection items) { + public A removeFromFrom(V1NetworkPolicyPeer... items) { + if (this.from == null) { + return (A) this; + } + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("from").remove(builder); + this.from.remove(builder); + } + return (A) this; + } + + public A removeFromPorts(V1NetworkPolicyPort... items) { if (this.ports == null) { return (A) this; } @@ -322,6 +352,22 @@ public A removeAllFromPorts(Collection items) { return (A) this; } + public A removeMatchingFromFrom(Predicate predicate) { + if (from == null) { + return (A) this; + } + Iterator each = from.iterator(); + List visitables = _visitables.get("from"); + while (each.hasNext()) { + V1NetworkPolicyPeerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + public A removeMatchingFromPorts(Predicate predicate) { if (ports == null) { return (A) this; @@ -338,38 +384,86 @@ public A removeMatchingFromPorts(Predicate predicate return (A) this; } - public List buildPorts() { - return this.ports != null ? build(ports) : null; + public FromNested setNewFromLike(int index,V1NetworkPolicyPeer item) { + return new FromNested(index, item); } - public V1NetworkPolicyPort buildPort(int index) { - return this.ports.get(index).build(); + public PortsNested setNewPortLike(int index,V1NetworkPolicyPort item) { + return new PortsNested(index, item); } - public V1NetworkPolicyPort buildFirstPort() { - return this.ports.get(0).build(); + public A setToFrom(int index,V1NetworkPolicyPeer item) { + if (this.from == null) { + this.from = new ArrayList(); + } + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + if (index < 0 || index >= from.size()) { + _visitables.get("from").add(builder); + from.add(builder); + } else { + _visitables.get("from").add(builder); + from.set(index, builder); + } + return (A) this; } - public V1NetworkPolicyPort buildLastPort() { - return this.ports.get(ports.size() - 1).build(); + public A setToPorts(int index,V1NetworkPolicyPort item) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } + return (A) this; } - public V1NetworkPolicyPort buildMatchingPort(Predicate predicate) { - for (V1NetworkPolicyPortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(from == null) && !(from.isEmpty())) { + sb.append("from:"); + sb.append(from); + sb.append(","); + } + if (!(ports == null) && !(ports.isEmpty())) { + sb.append("ports:"); + sb.append(ports); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingPort(Predicate predicate) { - for (V1NetworkPolicyPortBuilder item : ports) { - if (predicate.test(item)) { - return true; + public A withFrom(List from) { + if (this.from != null) { + this._visitables.get("from").clear(); + } + if (from != null) { + this.from = new ArrayList(); + for (V1NetworkPolicyPeer item : from) { + this.addToFrom(item); } + } else { + this.from = null; + } + return (A) this; + } + + public A withFrom(V1NetworkPolicyPeer... from) { + if (this.from != null) { + this.from.clear(); + _visitables.remove("from"); + } + if (from != null) { + for (V1NetworkPolicyPeer item : from) { + this.addToFrom(item); } - return false; + } + return (A) this; } public A withPorts(List ports) { @@ -399,106 +493,16 @@ public A withPorts(V1NetworkPolicyPort... ports) { } return (A) this; } + public class FromNested extends V1NetworkPolicyPeerFluent> implements Nested{ - public boolean hasPorts() { - return this.ports != null && !(this.ports.isEmpty()); - } - - public PortsNested addNewPort() { - return new PortsNested(-1, null); - } - - public PortsNested addNewPortLike(V1NetworkPolicyPort item) { - return new PortsNested(-1, item); - } - - public PortsNested setNewPortLike(int index,V1NetworkPolicyPort item) { - return new PortsNested(index, item); - } - - public PortsNested editPort(int index) { - if (index <= ports.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); - } - return this.setNewPortLike(index, this.buildPort(index)); - } - - public PortsNested editFirstPort() { - if (ports.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); - } - return this.setNewPortLike(0, this.buildPort(0)); - } - - public PortsNested editLastPort() { - int index = ports.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); - } - return this.setNewPortLike(index, this.buildPort(index)); - } - - public PortsNested editMatchingPort(Predicate predicate) { - int index = -1; - for (int i = 0;i < ports.size();i++) { - if (predicate.test(ports.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ports")); - } - return this.setNewPortLike(index, this.buildPort(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1NetworkPolicyIngressRuleFluent that = (V1NetworkPolicyIngressRuleFluent) o; - if (!(Objects.equals(from, that.from))) { - return false; - } - if (!(Objects.equals(ports, that.ports))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(from, ports); - } + V1NetworkPolicyPeerBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(from == null) && !(from.isEmpty())) { - sb.append("from:"); - sb.append(from); - sb.append(","); - } - if (!(ports == null) && !(ports.isEmpty())) { - sb.append("ports:"); - sb.append(ports); - } - sb.append("}"); - return sb.toString(); - } - public class FromNested extends V1NetworkPolicyPeerFluent> implements Nested{ FromNested(int index,V1NetworkPolicyPeer item) { this.index = index; this.builder = new V1NetworkPolicyPeerBuilder(this, item); } - V1NetworkPolicyPeerBuilder builder; - int index; - + public N and() { return (N) V1NetworkPolicyIngressRuleFluent.this.setToFrom(index, builder.build()); } @@ -507,16 +511,17 @@ public N endFrom() { return and(); } - } public class PortsNested extends V1NetworkPolicyPortFluent> implements Nested{ + + V1NetworkPolicyPortBuilder builder; + int index; + PortsNested(int index,V1NetworkPolicyPort item) { this.index = index; this.builder = new V1NetworkPolicyPortBuilder(this, item); } - V1NetworkPolicyPortBuilder builder; - int index; - + public N and() { return (N) V1NetworkPolicyIngressRuleFluent.this.setToPorts(index, builder.build()); } @@ -525,7 +530,5 @@ public N endPort() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java index e7b30614de..2dc120cfaa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NetworkPolicyListBuilder extends V1NetworkPolicyListFluent implements VisitableBuilder{ + + V1NetworkPolicyListFluent fluent; + public V1NetworkPolicyListBuilder() { this(new V1NetworkPolicyList()); } @@ -11,17 +14,16 @@ public V1NetworkPolicyListBuilder(V1NetworkPolicyListFluent fluent) { this(fluent, new V1NetworkPolicyList()); } - public V1NetworkPolicyListBuilder(V1NetworkPolicyListFluent fluent,V1NetworkPolicyList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NetworkPolicyListBuilder(V1NetworkPolicyList instance) { this.fluent = this; this.copyInstance(instance); } - V1NetworkPolicyListFluent fluent; + public V1NetworkPolicyListBuilder(V1NetworkPolicyListFluent fluent,V1NetworkPolicyList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NetworkPolicyList build() { V1NetworkPolicyList buildable = new V1NetworkPolicyList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1NetworkPolicyList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java index 81c397ccd3..77c6a99b59 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1NetworkPolicyListFluent> extends BaseFluent{ - public V1NetworkPolicyListFluent() { - } - - public V1NetworkPolicyListFluent(V1NetworkPolicyList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1NetworkPolicyList instance) { - instance = instance != null ? instance : new V1NetworkPolicyList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1NetworkPolicyListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1NetworkPolicyListFluent(V1NetworkPolicyList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1NetworkPolicy item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1NetworkPolicy item : items) { + V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1NetworkPolicy item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1NetworkPolicy item) { + return new ItemsNested(-1, item); } public A addToItems(V1NetworkPolicy... items) { @@ -96,68 +65,31 @@ public A addToItems(V1NetworkPolicy... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1NetworkPolicy item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1NetworkPolicy item : items) { - V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); + V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1NetworkPolicy... items) { - if (this.items == null) { - return (A) this; - } - for (V1NetworkPolicy item : items) { - V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1NetworkPolicy item : items) { - V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1NetworkPolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1NetworkPolicy buildFirstItem() { + return this.items.get(0).build(); } public V1NetworkPolicy buildItem(int index) { return this.items.get(index).build(); } - public V1NetworkPolicy buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1NetworkPolicy buildLastItem() { @@ -173,73 +105,34 @@ public V1NetworkPolicy buildMatchingItem(Predicate predi return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1NetworkPolicyBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1NetworkPolicy item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1NetworkPolicyList instance) { + instance = instance != null ? instance : new V1NetworkPolicyList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1NetworkPolicy... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1NetworkPolicy item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1NetworkPolicy item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1NetworkPolicy item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predica return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1NetworkPolicyBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1NetworkPolicy item : items) { + V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1NetworkPolicy... items) { + if (this.items == null) { + return (A) this; + } + for (V1NetworkPolicy item : items) { + V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1NetworkPolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1NetworkPolicy item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1NetworkPolicy item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1NetworkPolicy item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1NetworkPolicy... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1NetworkPolicy item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1NetworkPolicyFluent> implements Nested{ + + V1NetworkPolicyBuilder builder; + int index; + ItemsNested(int index,V1NetworkPolicy item) { this.index = index; this.builder = new V1NetworkPolicyBuilder(this, item); } - V1NetworkPolicyBuilder builder; - int index; - + public N and() { return (N) V1NetworkPolicyListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1NetworkPolicyListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java index d81ad3e7d7..520133bda2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NetworkPolicyPeerBuilder extends V1NetworkPolicyPeerFluent implements VisitableBuilder{ + + V1NetworkPolicyPeerFluent fluent; + public V1NetworkPolicyPeerBuilder() { this(new V1NetworkPolicyPeer()); } @@ -11,17 +14,16 @@ public V1NetworkPolicyPeerBuilder(V1NetworkPolicyPeerFluent fluent) { this(fluent, new V1NetworkPolicyPeer()); } - public V1NetworkPolicyPeerBuilder(V1NetworkPolicyPeerFluent fluent,V1NetworkPolicyPeer instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NetworkPolicyPeerBuilder(V1NetworkPolicyPeer instance) { this.fluent = this; this.copyInstance(instance); } - V1NetworkPolicyPeerFluent fluent; + public V1NetworkPolicyPeerBuilder(V1NetworkPolicyPeerFluent fluent,V1NetworkPolicyPeer instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NetworkPolicyPeer build() { V1NetworkPolicyPeer buildable = new V1NetworkPolicyPeer(); buildable.setIpBlock(fluent.buildIpBlock()); @@ -30,5 +32,4 @@ public V1NetworkPolicyPeer build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java index 365148f466..89269d863d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java @@ -1,70 +1,60 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1NetworkPolicyPeerFluent> extends BaseFluent{ + + private V1IPBlockBuilder ipBlock; + private V1LabelSelectorBuilder namespaceSelector; + private V1LabelSelectorBuilder podSelector; + public V1NetworkPolicyPeerFluent() { } public V1NetworkPolicyPeerFluent(V1NetworkPolicyPeer instance) { this.copyInstance(instance); } - private V1IPBlockBuilder ipBlock; - private V1LabelSelectorBuilder namespaceSelector; - private V1LabelSelectorBuilder podSelector; - - protected void copyInstance(V1NetworkPolicyPeer instance) { - instance = instance != null ? instance : new V1NetworkPolicyPeer(); - if (instance != null) { - this.withIpBlock(instance.getIpBlock()); - this.withNamespaceSelector(instance.getNamespaceSelector()); - this.withPodSelector(instance.getPodSelector()); - } - } - + public V1IPBlock buildIpBlock() { return this.ipBlock != null ? this.ipBlock.build() : null; } - public A withIpBlock(V1IPBlock ipBlock) { - this._visitables.remove("ipBlock"); - if (ipBlock != null) { - this.ipBlock = new V1IPBlockBuilder(ipBlock); - this._visitables.get("ipBlock").add(this.ipBlock); - } else { - this.ipBlock = null; - this._visitables.get("ipBlock").remove(this.ipBlock); - } - return (A) this; - } - - public boolean hasIpBlock() { - return this.ipBlock != null; + public V1LabelSelector buildNamespaceSelector() { + return this.namespaceSelector != null ? this.namespaceSelector.build() : null; } - public IpBlockNested withNewIpBlock() { - return new IpBlockNested(null); + public V1LabelSelector buildPodSelector() { + return this.podSelector != null ? this.podSelector.build() : null; } - public IpBlockNested withNewIpBlockLike(V1IPBlock item) { - return new IpBlockNested(item); + protected void copyInstance(V1NetworkPolicyPeer instance) { + instance = instance != null ? instance : new V1NetworkPolicyPeer(); + if (instance != null) { + this.withIpBlock(instance.getIpBlock()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withPodSelector(instance.getPodSelector()); + } } public IpBlockNested editIpBlock() { return this.withNewIpBlockLike(Optional.ofNullable(this.buildIpBlock()).orElse(null)); } + public NamespaceSelectorNested editNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); + } + public IpBlockNested editOrNewIpBlock() { return this.withNewIpBlockLike(Optional.ofNullable(this.buildIpBlock()).orElse(new V1IPBlockBuilder().build())); } @@ -73,38 +63,6 @@ public IpBlockNested editOrNewIpBlockLike(V1IPBlock item) { return this.withNewIpBlockLike(Optional.ofNullable(this.buildIpBlock()).orElse(item)); } - public V1LabelSelector buildNamespaceSelector() { - return this.namespaceSelector != null ? this.namespaceSelector.build() : null; - } - - public A withNamespaceSelector(V1LabelSelector namespaceSelector) { - this._visitables.remove("namespaceSelector"); - if (namespaceSelector != null) { - this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); - this._visitables.get("namespaceSelector").add(this.namespaceSelector); - } else { - this.namespaceSelector = null; - this._visitables.get("namespaceSelector").remove(this.namespaceSelector); - } - return (A) this; - } - - public boolean hasNamespaceSelector() { - return this.namespaceSelector != null; - } - - public NamespaceSelectorNested withNewNamespaceSelector() { - return new NamespaceSelectorNested(null); - } - - public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { - return new NamespaceSelectorNested(item); - } - - public NamespaceSelectorNested editNamespaceSelector() { - return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); - } - public NamespaceSelectorNested editOrNewNamespaceSelector() { return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); } @@ -113,38 +71,6 @@ public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); } - public V1LabelSelector buildPodSelector() { - return this.podSelector != null ? this.podSelector.build() : null; - } - - public A withPodSelector(V1LabelSelector podSelector) { - this._visitables.remove("podSelector"); - if (podSelector != null) { - this.podSelector = new V1LabelSelectorBuilder(podSelector); - this._visitables.get("podSelector").add(this.podSelector); - } else { - this.podSelector = null; - this._visitables.get("podSelector").remove(this.podSelector); - } - return (A) this; - } - - public boolean hasPodSelector() { - return this.podSelector != null; - } - - public PodSelectorNested withNewPodSelector() { - return new PodSelectorNested(null); - } - - public PodSelectorNested withNewPodSelectorLike(V1LabelSelector item) { - return new PodSelectorNested(item); - } - - public PodSelectorNested editPodSelector() { - return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(null)); - } - public PodSelectorNested editOrNewPodSelector() { return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(new V1LabelSelectorBuilder().build())); } @@ -153,6 +79,10 @@ public PodSelectorNested editOrNewPodSelectorLike(V1LabelSelector item) { return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(item)); } + public PodSelectorNested editPodSelector() { + return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -176,6 +106,18 @@ public boolean equals(Object o) { return true; } + public boolean hasIpBlock() { + return this.ipBlock != null; + } + + public boolean hasNamespaceSelector() { + return this.namespaceSelector != null; + } + + public boolean hasPodSelector() { + return this.podSelector != null; + } + public int hashCode() { return Objects.hash(ipBlock, namespaceSelector, podSelector); } @@ -200,12 +142,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withIpBlock(V1IPBlock ipBlock) { + this._visitables.remove("ipBlock"); + if (ipBlock != null) { + this.ipBlock = new V1IPBlockBuilder(ipBlock); + this._visitables.get("ipBlock").add(this.ipBlock); + } else { + this.ipBlock = null; + this._visitables.get("ipBlock").remove(this.ipBlock); + } + return (A) this; + } + + public A withNamespaceSelector(V1LabelSelector namespaceSelector) { + this._visitables.remove("namespaceSelector"); + if (namespaceSelector != null) { + this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); + this._visitables.get("namespaceSelector").add(this.namespaceSelector); + } else { + this.namespaceSelector = null; + this._visitables.get("namespaceSelector").remove(this.namespaceSelector); + } + return (A) this; + } + + public IpBlockNested withNewIpBlock() { + return new IpBlockNested(null); + } + + public IpBlockNested withNewIpBlockLike(V1IPBlock item) { + return new IpBlockNested(item); + } + + public NamespaceSelectorNested withNewNamespaceSelector() { + return new NamespaceSelectorNested(null); + } + + public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { + return new NamespaceSelectorNested(item); + } + + public PodSelectorNested withNewPodSelector() { + return new PodSelectorNested(null); + } + + public PodSelectorNested withNewPodSelectorLike(V1LabelSelector item) { + return new PodSelectorNested(item); + } + + public A withPodSelector(V1LabelSelector podSelector) { + this._visitables.remove("podSelector"); + if (podSelector != null) { + this.podSelector = new V1LabelSelectorBuilder(podSelector); + this._visitables.get("podSelector").add(this.podSelector); + } else { + this.podSelector = null; + this._visitables.get("podSelector").remove(this.podSelector); + } + return (A) this; + } public class IpBlockNested extends V1IPBlockFluent> implements Nested{ + + V1IPBlockBuilder builder; + IpBlockNested(V1IPBlock item) { this.builder = new V1IPBlockBuilder(this, item); } - V1IPBlockBuilder builder; - + public N and() { return (N) V1NetworkPolicyPeerFluent.this.withIpBlock(builder.build()); } @@ -214,14 +218,15 @@ public N endIpBlock() { return and(); } - } public class NamespaceSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + NamespaceSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1NetworkPolicyPeerFluent.this.withNamespaceSelector(builder.build()); } @@ -230,14 +235,15 @@ public N endNamespaceSelector() { return and(); } - } public class PodSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + PodSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1NetworkPolicyPeerFluent.this.withPodSelector(builder.build()); } @@ -246,7 +252,5 @@ public N endPodSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java index 62db5ad13f..97a4377df7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NetworkPolicyPortBuilder extends V1NetworkPolicyPortFluent implements VisitableBuilder{ + + V1NetworkPolicyPortFluent fluent; + public V1NetworkPolicyPortBuilder() { this(new V1NetworkPolicyPort()); } @@ -11,17 +14,16 @@ public V1NetworkPolicyPortBuilder(V1NetworkPolicyPortFluent fluent) { this(fluent, new V1NetworkPolicyPort()); } - public V1NetworkPolicyPortBuilder(V1NetworkPolicyPortFluent fluent,V1NetworkPolicyPort instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NetworkPolicyPortBuilder(V1NetworkPolicyPort instance) { this.fluent = this; this.copyInstance(instance); } - V1NetworkPolicyPortFluent fluent; + public V1NetworkPolicyPortBuilder(V1NetworkPolicyPortFluent fluent,V1NetworkPolicyPort instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NetworkPolicyPort build() { V1NetworkPolicyPort buildable = new V1NetworkPolicyPort(); buildable.setEndPort(fluent.getEndPort()); @@ -30,5 +32,4 @@ public V1NetworkPolicyPort build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java index 02e93c71d6..6a7bb3b47c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.StringBuilder; import io.kubernetes.client.custom.IntOrString; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1NetworkPolicyPortFluent> extends BaseFluent{ + + private Integer endPort; + private IntOrString port; + private String protocol; + public V1NetworkPolicyPortFluent() { } public V1NetworkPolicyPortFluent(V1NetworkPolicyPort instance) { this.copyInstance(instance); } - private Integer endPort; - private IntOrString port; - private String protocol; - + protected void copyInstance(V1NetworkPolicyPort instance) { instance = instance != null ? instance : new V1NetworkPolicyPort(); if (instance != null) { @@ -33,53 +35,6 @@ protected void copyInstance(V1NetworkPolicyPort instance) { } } - public Integer getEndPort() { - return this.endPort; - } - - public A withEndPort(Integer endPort) { - this.endPort = endPort; - return (A) this; - } - - public boolean hasEndPort() { - return this.endPort != null; - } - - public IntOrString getPort() { - return this.port; - } - - public A withPort(IntOrString port) { - this.port = port; - return (A) this; - } - - public boolean hasPort() { - return this.port != null; - } - - public A withNewPort(int value) { - return (A) this.withPort(new IntOrString(value)); - } - - public A withNewPort(String value) { - return (A) this.withPort(new IntOrString(value)); - } - - public String getProtocol() { - return this.protocol; - } - - public A withProtocol(String protocol) { - this.protocol = protocol; - return (A) this; - } - - public boolean hasProtocol() { - return this.protocol != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -103,6 +58,30 @@ public boolean equals(Object o) { return true; } + public Integer getEndPort() { + return this.endPort; + } + + public IntOrString getPort() { + return this.port; + } + + public String getProtocol() { + return this.protocol; + } + + public boolean hasEndPort() { + return this.endPort != null; + } + + public boolean hasPort() { + return this.port != null; + } + + public boolean hasProtocol() { + return this.protocol != null; + } + public int hashCode() { return Objects.hash(endPort, port, protocol); } @@ -128,5 +107,27 @@ public String toString() { return sb.toString(); } - + public A withEndPort(Integer endPort) { + this.endPort = endPort; + return (A) this; + } + + public A withNewPort(int value) { + return (A) this.withPort(new IntOrString(value)); + } + + public A withNewPort(String value) { + return (A) this.withPort(new IntOrString(value)); + } + + public A withPort(IntOrString port) { + this.port = port; + return (A) this; + } + + public A withProtocol(String protocol) { + this.protocol = protocol; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java index 34e84fed56..fcec9b9863 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NetworkPolicySpecBuilder extends V1NetworkPolicySpecFluent implements VisitableBuilder{ + + V1NetworkPolicySpecFluent fluent; + public V1NetworkPolicySpecBuilder() { this(new V1NetworkPolicySpec()); } @@ -11,17 +14,16 @@ public V1NetworkPolicySpecBuilder(V1NetworkPolicySpecFluent fluent) { this(fluent, new V1NetworkPolicySpec()); } - public V1NetworkPolicySpecBuilder(V1NetworkPolicySpecFluent fluent,V1NetworkPolicySpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NetworkPolicySpecBuilder(V1NetworkPolicySpec instance) { this.fluent = this; this.copyInstance(instance); } - V1NetworkPolicySpecFluent fluent; + public V1NetworkPolicySpecBuilder(V1NetworkPolicySpecFluent fluent,V1NetworkPolicySpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NetworkPolicySpec build() { V1NetworkPolicySpec buildable = new V1NetworkPolicySpec(); buildable.setEgress(fluent.buildEgress()); @@ -31,5 +33,4 @@ public V1NetworkPolicySpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java index c6a07b07d6..098bc9cad5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java @@ -1,76 +1,88 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1NetworkPolicySpecFluent> extends BaseFluent{ - public V1NetworkPolicySpecFluent() { - } - - public V1NetworkPolicySpecFluent(V1NetworkPolicySpec instance) { - this.copyInstance(instance); - } + private ArrayList egress; private ArrayList ingress; private V1LabelSelectorBuilder podSelector; private List policyTypes; - - protected void copyInstance(V1NetworkPolicySpec instance) { - instance = instance != null ? instance : new V1NetworkPolicySpec(); - if (instance != null) { - this.withEgress(instance.getEgress()); - this.withIngress(instance.getIngress()); - this.withPodSelector(instance.getPodSelector()); - this.withPolicyTypes(instance.getPolicyTypes()); - } + + public V1NetworkPolicySpecFluent() { } - public A addToEgress(int index,V1NetworkPolicyEgressRule item) { + public V1NetworkPolicySpecFluent(V1NetworkPolicySpec instance) { + this.copyInstance(instance); + } + + public A addAllToEgress(Collection items) { if (this.egress == null) { this.egress = new ArrayList(); } - V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); - if (index < 0 || index >= egress.size()) { - _visitables.get("egress").add(builder); - egress.add(builder); - } else { + for (V1NetworkPolicyEgressRule item : items) { + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); _visitables.get("egress").add(builder); - egress.add(index, builder); + this.egress.add(builder); } return (A) this; } - public A setToEgress(int index,V1NetworkPolicyEgressRule item) { - if (this.egress == null) { - this.egress = new ArrayList(); + public A addAllToIngress(Collection items) { + if (this.ingress == null) { + this.ingress = new ArrayList(); } - V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); - if (index < 0 || index >= egress.size()) { - _visitables.get("egress").add(builder); - egress.add(builder); - } else { - _visitables.get("egress").add(builder); - egress.set(index, builder); + for (V1NetworkPolicyIngressRule item : items) { + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); + _visitables.get("ingress").add(builder); + this.ingress.add(builder); + } + return (A) this; + } + + public A addAllToPolicyTypes(Collection items) { + if (this.policyTypes == null) { + this.policyTypes = new ArrayList(); + } + for (String item : items) { + this.policyTypes.add(item); } return (A) this; } + public EgressNested addNewEgress() { + return new EgressNested(-1, null); + } + + public EgressNested addNewEgressLike(V1NetworkPolicyEgressRule item) { + return new EgressNested(-1, item); + } + + public IngressNested addNewIngress() { + return new IngressNested(-1, null); + } + + public IngressNested addNewIngressLike(V1NetworkPolicyIngressRule item) { + return new IngressNested(-1, item); + } + public A addToEgress(V1NetworkPolicyEgressRule... items) { if (this.egress == null) { this.egress = new ArrayList(); @@ -83,55 +95,63 @@ public A addToEgress(V1NetworkPolicyEgressRule... items) { return (A) this; } - public A addAllToEgress(Collection items) { + public A addToEgress(int index,V1NetworkPolicyEgressRule item) { if (this.egress == null) { this.egress = new ArrayList(); } - for (V1NetworkPolicyEgressRule item : items) { - V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); + if (index < 0 || index >= egress.size()) { _visitables.get("egress").add(builder); - this.egress.add(builder); + egress.add(builder); + } else { + _visitables.get("egress").add(builder); + egress.add(index, builder); } return (A) this; } - public A removeFromEgress(V1NetworkPolicyEgressRule... items) { - if (this.egress == null) { - return (A) this; + public A addToIngress(V1NetworkPolicyIngressRule... items) { + if (this.ingress == null) { + this.ingress = new ArrayList(); } - for (V1NetworkPolicyEgressRule item : items) { - V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); - _visitables.get("egress").remove(builder); - this.egress.remove(builder); + for (V1NetworkPolicyIngressRule item : items) { + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); + _visitables.get("ingress").add(builder); + this.ingress.add(builder); } return (A) this; } - public A removeAllFromEgress(Collection items) { - if (this.egress == null) { - return (A) this; + public A addToIngress(int index,V1NetworkPolicyIngressRule item) { + if (this.ingress == null) { + this.ingress = new ArrayList(); } - for (V1NetworkPolicyEgressRule item : items) { - V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); - _visitables.get("egress").remove(builder); - this.egress.remove(builder); + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); + if (index < 0 || index >= ingress.size()) { + _visitables.get("ingress").add(builder); + ingress.add(builder); + } else { + _visitables.get("ingress").add(builder); + ingress.add(index, builder); } return (A) this; } - public A removeMatchingFromEgress(Predicate predicate) { - if (egress == null) { - return (A) this; + public A addToPolicyTypes(String... items) { + if (this.policyTypes == null) { + this.policyTypes = new ArrayList(); } - Iterator each = egress.iterator(); - List visitables = _visitables.get("egress"); - while (each.hasNext()) { - V1NetworkPolicyEgressRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (String item : items) { + this.policyTypes.add(item); + } + return (A) this; + } + + public A addToPolicyTypes(int index,String item) { + if (this.policyTypes == null) { + this.policyTypes = new ArrayList(); } + this.policyTypes.add(index, item); return (A) this; } @@ -147,10 +167,26 @@ public V1NetworkPolicyEgressRule buildFirstEgress() { return this.egress.get(0).build(); } + public V1NetworkPolicyIngressRule buildFirstIngress() { + return this.ingress.get(0).build(); + } + + public List buildIngress() { + return this.ingress != null ? build(ingress) : null; + } + + public V1NetworkPolicyIngressRule buildIngress(int index) { + return this.ingress.get(index).build(); + } + public V1NetworkPolicyEgressRule buildLastEgress() { return this.egress.get(egress.size() - 1).build(); } + public V1NetworkPolicyIngressRule buildLastIngress() { + return this.ingress.get(ingress.size() - 1).build(); + } + public V1NetworkPolicyEgressRule buildMatchingEgress(Predicate predicate) { for (V1NetworkPolicyEgressRuleBuilder item : egress) { if (predicate.test(item)) { @@ -160,61 +196,31 @@ public V1NetworkPolicyEgressRule buildMatchingEgress(Predicate predicate) { - for (V1NetworkPolicyEgressRuleBuilder item : egress) { + public V1NetworkPolicyIngressRule buildMatchingIngress(Predicate predicate) { + for (V1NetworkPolicyIngressRuleBuilder item : ingress) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withEgress(List egress) { - if (this.egress != null) { - this._visitables.get("egress").clear(); - } - if (egress != null) { - this.egress = new ArrayList(); - for (V1NetworkPolicyEgressRule item : egress) { - this.addToEgress(item); - } - } else { - this.egress = null; - } - return (A) this; + public V1LabelSelector buildPodSelector() { + return this.podSelector != null ? this.podSelector.build() : null; } - public A withEgress(V1NetworkPolicyEgressRule... egress) { - if (this.egress != null) { - this.egress.clear(); - _visitables.remove("egress"); - } - if (egress != null) { - for (V1NetworkPolicyEgressRule item : egress) { - this.addToEgress(item); - } + protected void copyInstance(V1NetworkPolicySpec instance) { + instance = instance != null ? instance : new V1NetworkPolicySpec(); + if (instance != null) { + this.withEgress(instance.getEgress()); + this.withIngress(instance.getIngress()); + this.withPodSelector(instance.getPodSelector()); + this.withPolicyTypes(instance.getPolicyTypes()); } - return (A) this; - } - - public boolean hasEgress() { - return this.egress != null && !(this.egress.isEmpty()); - } - - public EgressNested addNewEgress() { - return new EgressNested(-1, null); - } - - public EgressNested addNewEgressLike(V1NetworkPolicyEgressRule item) { - return new EgressNested(-1, item); - } - - public EgressNested setNewEgressLike(int index,V1NetworkPolicyEgressRule item) { - return new EgressNested(index, item); } public EgressNested editEgress(int index) { - if (index <= egress.size()) { + if (egress.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "egress")); } return this.setNewEgressLike(index, this.buildEgress(index)); @@ -227,6 +233,20 @@ public EgressNested editFirstEgress() { return this.setNewEgressLike(0, this.buildEgress(0)); } + public IngressNested editFirstIngress() { + if (ingress.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ingress")); + } + return this.setNewIngressLike(0, this.buildIngress(0)); + } + + public IngressNested editIngress(int index) { + if (ingress.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ingress")); + } + return this.setNewIngressLike(index, this.buildIngress(index)); + } + public EgressNested editLastEgress() { int index = egress.size() - 1; if (index < 0) { @@ -235,6 +255,14 @@ public EgressNested editLastEgress() { return this.setNewEgressLike(index, this.buildEgress(index)); } + public IngressNested editLastIngress() { + int index = ingress.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ingress")); + } + return this.setNewIngressLike(index, this.buildIngress(index)); + } + public EgressNested editMatchingEgress(Predicate predicate) { int index = -1; for (int i = 0;i < egress.size();i++) { @@ -249,123 +277,98 @@ public EgressNested editMatchingEgress(Predicate= ingress.size()) { - _visitables.get("ingress").add(builder); - ingress.add(builder); - } else { - _visitables.get("ingress").add(builder); - ingress.add(index, builder); + public IngressNested editMatchingIngress(Predicate predicate) { + int index = -1; + for (int i = 0;i < ingress.size();i++) { + if (predicate.test(ingress.get(i))) { + index = i; + break; + } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ingress")); + } + return this.setNewIngressLike(index, this.buildIngress(index)); } - public A setToIngress(int index,V1NetworkPolicyIngressRule item) { - if (this.ingress == null) { - this.ingress = new ArrayList(); - } - V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - if (index < 0 || index >= ingress.size()) { - _visitables.get("ingress").add(builder); - ingress.add(builder); - } else { - _visitables.get("ingress").add(builder); - ingress.set(index, builder); - } - return (A) this; + public PodSelectorNested editOrNewPodSelector() { + return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public A addToIngress(V1NetworkPolicyIngressRule... items) { - if (this.ingress == null) { - this.ingress = new ArrayList(); - } - for (V1NetworkPolicyIngressRule item : items) { - V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - _visitables.get("ingress").add(builder); - this.ingress.add(builder); - } - return (A) this; + public PodSelectorNested editOrNewPodSelectorLike(V1LabelSelector item) { + return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(item)); } - public A addAllToIngress(Collection items) { - if (this.ingress == null) { - this.ingress = new ArrayList(); - } - for (V1NetworkPolicyIngressRule item : items) { - V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - _visitables.get("ingress").add(builder); - this.ingress.add(builder); - } - return (A) this; + public PodSelectorNested editPodSelector() { + return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(null)); } - public A removeFromIngress(V1NetworkPolicyIngressRule... items) { - if (this.ingress == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (V1NetworkPolicyIngressRule item : items) { - V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - _visitables.get("ingress").remove(builder); - this.ingress.remove(builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A removeAllFromIngress(Collection items) { - if (this.ingress == null) { - return (A) this; + if (!(super.equals(o))) { + return false; } - for (V1NetworkPolicyIngressRule item : items) { - V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - _visitables.get("ingress").remove(builder); - this.ingress.remove(builder); + V1NetworkPolicySpecFluent that = (V1NetworkPolicySpecFluent) o; + if (!(Objects.equals(egress, that.egress))) { + return false; } - return (A) this; + if (!(Objects.equals(ingress, that.ingress))) { + return false; + } + if (!(Objects.equals(podSelector, that.podSelector))) { + return false; + } + if (!(Objects.equals(policyTypes, that.policyTypes))) { + return false; + } + return true; } - public A removeMatchingFromIngress(Predicate predicate) { - if (ingress == null) { - return (A) this; - } - Iterator each = ingress.iterator(); - List visitables = _visitables.get("ingress"); - while (each.hasNext()) { - V1NetworkPolicyIngressRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public String getFirstPolicyType() { + return this.policyTypes.get(0); + } + + public String getLastPolicyType() { + return this.policyTypes.get(policyTypes.size() - 1); + } + + public String getMatchingPolicyType(Predicate predicate) { + for (String item : policyTypes) { + if (predicate.test(item)) { + return item; } - } - return (A) this; + } + return null; } - public List buildIngress() { - return this.ingress != null ? build(ingress) : null; + public String getPolicyType(int index) { + return this.policyTypes.get(index); } - public V1NetworkPolicyIngressRule buildIngress(int index) { - return this.ingress.get(index).build(); + public List getPolicyTypes() { + return this.policyTypes; } - public V1NetworkPolicyIngressRule buildFirstIngress() { - return this.ingress.get(0).build(); + public boolean hasEgress() { + return this.egress != null && !(this.egress.isEmpty()); } - public V1NetworkPolicyIngressRule buildLastIngress() { - return this.ingress.get(ingress.size() - 1).build(); + public boolean hasIngress() { + return this.ingress != null && !(this.ingress.isEmpty()); } - public V1NetworkPolicyIngressRule buildMatchingIngress(Predicate predicate) { - for (V1NetworkPolicyIngressRuleBuilder item : ingress) { + public boolean hasMatchingEgress(Predicate predicate) { + for (V1NetworkPolicyEgressRuleBuilder item : egress) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingIngress(Predicate predicate) { @@ -377,131 +380,162 @@ public boolean hasMatchingIngress(Predicate p return false; } - public A withIngress(List ingress) { - if (this.ingress != null) { - this._visitables.get("ingress").clear(); - } - if (ingress != null) { - this.ingress = new ArrayList(); - for (V1NetworkPolicyIngressRule item : ingress) { - this.addToIngress(item); + public boolean hasMatchingPolicyType(Predicate predicate) { + for (String item : policyTypes) { + if (predicate.test(item)) { + return true; } - } else { - this.ingress = null; - } - return (A) this; + } + return false; } - public A withIngress(V1NetworkPolicyIngressRule... ingress) { - if (this.ingress != null) { - this.ingress.clear(); - _visitables.remove("ingress"); - } - if (ingress != null) { - for (V1NetworkPolicyIngressRule item : ingress) { - this.addToIngress(item); - } - } - return (A) this; + public boolean hasPodSelector() { + return this.podSelector != null; } - public boolean hasIngress() { - return this.ingress != null && !(this.ingress.isEmpty()); + public boolean hasPolicyTypes() { + return this.policyTypes != null && !(this.policyTypes.isEmpty()); } - public IngressNested addNewIngress() { - return new IngressNested(-1, null); + public int hashCode() { + return Objects.hash(egress, ingress, podSelector, policyTypes); } - public IngressNested addNewIngressLike(V1NetworkPolicyIngressRule item) { - return new IngressNested(-1, item); + public A removeAllFromEgress(Collection items) { + if (this.egress == null) { + return (A) this; + } + for (V1NetworkPolicyEgressRule item : items) { + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); + _visitables.get("egress").remove(builder); + this.egress.remove(builder); + } + return (A) this; } - public IngressNested setNewIngressLike(int index,V1NetworkPolicyIngressRule item) { - return new IngressNested(index, item); + public A removeAllFromIngress(Collection items) { + if (this.ingress == null) { + return (A) this; + } + for (V1NetworkPolicyIngressRule item : items) { + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); + _visitables.get("ingress").remove(builder); + this.ingress.remove(builder); + } + return (A) this; } - public IngressNested editIngress(int index) { - if (index <= ingress.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ingress")); + public A removeAllFromPolicyTypes(Collection items) { + if (this.policyTypes == null) { + return (A) this; } - return this.setNewIngressLike(index, this.buildIngress(index)); + for (String item : items) { + this.policyTypes.remove(item); + } + return (A) this; } - public IngressNested editFirstIngress() { - if (ingress.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ingress")); + public A removeFromEgress(V1NetworkPolicyEgressRule... items) { + if (this.egress == null) { + return (A) this; } - return this.setNewIngressLike(0, this.buildIngress(0)); + for (V1NetworkPolicyEgressRule item : items) { + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); + _visitables.get("egress").remove(builder); + this.egress.remove(builder); + } + return (A) this; } - public IngressNested editLastIngress() { - int index = ingress.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ingress")); + public A removeFromIngress(V1NetworkPolicyIngressRule... items) { + if (this.ingress == null) { + return (A) this; } - return this.setNewIngressLike(index, this.buildIngress(index)); + for (V1NetworkPolicyIngressRule item : items) { + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); + _visitables.get("ingress").remove(builder); + this.ingress.remove(builder); + } + return (A) this; } - public IngressNested editMatchingIngress(Predicate predicate) { - int index = -1; - for (int i = 0;i < ingress.size();i++) { - if (predicate.test(ingress.get(i))) { - index = i; - break; - } + public A removeFromPolicyTypes(String... items) { + if (this.policyTypes == null) { + return (A) this; } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ingress")); + for (String item : items) { + this.policyTypes.remove(item); } - return this.setNewIngressLike(index, this.buildIngress(index)); + return (A) this; } - public V1LabelSelector buildPodSelector() { - return this.podSelector != null ? this.podSelector.build() : null; + public A removeMatchingFromEgress(Predicate predicate) { + if (egress == null) { + return (A) this; + } + Iterator each = egress.iterator(); + List visitables = _visitables.get("egress"); + while (each.hasNext()) { + V1NetworkPolicyEgressRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A withPodSelector(V1LabelSelector podSelector) { - this._visitables.remove("podSelector"); - if (podSelector != null) { - this.podSelector = new V1LabelSelectorBuilder(podSelector); - this._visitables.get("podSelector").add(this.podSelector); - } else { - this.podSelector = null; - this._visitables.get("podSelector").remove(this.podSelector); + public A removeMatchingFromIngress(Predicate predicate) { + if (ingress == null) { + return (A) this; + } + Iterator each = ingress.iterator(); + List visitables = _visitables.get("ingress"); + while (each.hasNext()) { + V1NetworkPolicyIngressRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasPodSelector() { - return this.podSelector != null; - } - - public PodSelectorNested withNewPodSelector() { - return new PodSelectorNested(null); - } - - public PodSelectorNested withNewPodSelectorLike(V1LabelSelector item) { - return new PodSelectorNested(item); - } - - public PodSelectorNested editPodSelector() { - return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(null)); + public EgressNested setNewEgressLike(int index,V1NetworkPolicyEgressRule item) { + return new EgressNested(index, item); } - public PodSelectorNested editOrNewPodSelector() { - return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(new V1LabelSelectorBuilder().build())); + public IngressNested setNewIngressLike(int index,V1NetworkPolicyIngressRule item) { + return new IngressNested(index, item); } - public PodSelectorNested editOrNewPodSelectorLike(V1LabelSelector item) { - return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(item)); + public A setToEgress(int index,V1NetworkPolicyEgressRule item) { + if (this.egress == null) { + this.egress = new ArrayList(); + } + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); + if (index < 0 || index >= egress.size()) { + _visitables.get("egress").add(builder); + egress.add(builder); + } else { + _visitables.get("egress").add(builder); + egress.set(index, builder); + } + return (A) this; } - public A addToPolicyTypes(int index,String item) { - if (this.policyTypes == null) { - this.policyTypes = new ArrayList(); + public A setToIngress(int index,V1NetworkPolicyIngressRule item) { + if (this.ingress == null) { + this.ingress = new ArrayList(); + } + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); + if (index < 0 || index >= ingress.size()) { + _visitables.get("ingress").add(builder); + ingress.add(builder); + } else { + _visitables.get("ingress").add(builder); + ingress.set(index, builder); } - this.policyTypes.add(index, item); return (A) this; } @@ -513,78 +547,106 @@ public A setToPolicyTypes(int index,String item) { return (A) this; } - public A addToPolicyTypes(String... items) { - if (this.policyTypes == null) { - this.policyTypes = new ArrayList(); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(egress == null) && !(egress.isEmpty())) { + sb.append("egress:"); + sb.append(egress); + sb.append(","); } - for (String item : items) { - this.policyTypes.add(item); + if (!(ingress == null) && !(ingress.isEmpty())) { + sb.append("ingress:"); + sb.append(ingress); + sb.append(","); } - return (A) this; + if (!(podSelector == null)) { + sb.append("podSelector:"); + sb.append(podSelector); + sb.append(","); + } + if (!(policyTypes == null) && !(policyTypes.isEmpty())) { + sb.append("policyTypes:"); + sb.append(policyTypes); + } + sb.append("}"); + return sb.toString(); } - public A addAllToPolicyTypes(Collection items) { - if (this.policyTypes == null) { - this.policyTypes = new ArrayList(); + public A withEgress(List egress) { + if (this.egress != null) { + this._visitables.get("egress").clear(); } - for (String item : items) { - this.policyTypes.add(item); + if (egress != null) { + this.egress = new ArrayList(); + for (V1NetworkPolicyEgressRule item : egress) { + this.addToEgress(item); + } + } else { + this.egress = null; } return (A) this; } - public A removeFromPolicyTypes(String... items) { - if (this.policyTypes == null) { - return (A) this; + public A withEgress(V1NetworkPolicyEgressRule... egress) { + if (this.egress != null) { + this.egress.clear(); + _visitables.remove("egress"); } - for (String item : items) { - this.policyTypes.remove(item); + if (egress != null) { + for (V1NetworkPolicyEgressRule item : egress) { + this.addToEgress(item); + } } return (A) this; } - public A removeAllFromPolicyTypes(Collection items) { - if (this.policyTypes == null) { - return (A) this; + public A withIngress(List ingress) { + if (this.ingress != null) { + this._visitables.get("ingress").clear(); } - for (String item : items) { - this.policyTypes.remove(item); + if (ingress != null) { + this.ingress = new ArrayList(); + for (V1NetworkPolicyIngressRule item : ingress) { + this.addToIngress(item); + } + } else { + this.ingress = null; } return (A) this; } - public List getPolicyTypes() { - return this.policyTypes; - } - - public String getPolicyType(int index) { - return this.policyTypes.get(index); - } - - public String getFirstPolicyType() { - return this.policyTypes.get(0); + public A withIngress(V1NetworkPolicyIngressRule... ingress) { + if (this.ingress != null) { + this.ingress.clear(); + _visitables.remove("ingress"); + } + if (ingress != null) { + for (V1NetworkPolicyIngressRule item : ingress) { + this.addToIngress(item); + } + } + return (A) this; } - public String getLastPolicyType() { - return this.policyTypes.get(policyTypes.size() - 1); + public PodSelectorNested withNewPodSelector() { + return new PodSelectorNested(null); } - public String getMatchingPolicyType(Predicate predicate) { - for (String item : policyTypes) { - if (predicate.test(item)) { - return item; - } - } - return null; + public PodSelectorNested withNewPodSelectorLike(V1LabelSelector item) { + return new PodSelectorNested(item); } - public boolean hasMatchingPolicyType(Predicate predicate) { - for (String item : policyTypes) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withPodSelector(V1LabelSelector podSelector) { + this._visitables.remove("podSelector"); + if (podSelector != null) { + this.podSelector = new V1LabelSelectorBuilder(podSelector); + this._visitables.get("podSelector").add(this.podSelector); + } else { + this.podSelector = null; + this._visitables.get("podSelector").remove(this.podSelector); + } + return (A) this; } public A withPolicyTypes(List policyTypes) { @@ -611,74 +673,16 @@ public A withPolicyTypes(String... policyTypes) { } return (A) this; } + public class EgressNested extends V1NetworkPolicyEgressRuleFluent> implements Nested{ - public boolean hasPolicyTypes() { - return this.policyTypes != null && !(this.policyTypes.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1NetworkPolicySpecFluent that = (V1NetworkPolicySpecFluent) o; - if (!(Objects.equals(egress, that.egress))) { - return false; - } - if (!(Objects.equals(ingress, that.ingress))) { - return false; - } - if (!(Objects.equals(podSelector, that.podSelector))) { - return false; - } - if (!(Objects.equals(policyTypes, that.policyTypes))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(egress, ingress, podSelector, policyTypes); - } + V1NetworkPolicyEgressRuleBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(egress == null) && !(egress.isEmpty())) { - sb.append("egress:"); - sb.append(egress); - sb.append(","); - } - if (!(ingress == null) && !(ingress.isEmpty())) { - sb.append("ingress:"); - sb.append(ingress); - sb.append(","); - } - if (!(podSelector == null)) { - sb.append("podSelector:"); - sb.append(podSelector); - sb.append(","); - } - if (!(policyTypes == null) && !(policyTypes.isEmpty())) { - sb.append("policyTypes:"); - sb.append(policyTypes); - } - sb.append("}"); - return sb.toString(); - } - public class EgressNested extends V1NetworkPolicyEgressRuleFluent> implements Nested{ EgressNested(int index,V1NetworkPolicyEgressRule item) { this.index = index; this.builder = new V1NetworkPolicyEgressRuleBuilder(this, item); } - V1NetworkPolicyEgressRuleBuilder builder; - int index; - + public N and() { return (N) V1NetworkPolicySpecFluent.this.setToEgress(index, builder.build()); } @@ -687,16 +691,17 @@ public N endEgress() { return and(); } - } public class IngressNested extends V1NetworkPolicyIngressRuleFluent> implements Nested{ + + V1NetworkPolicyIngressRuleBuilder builder; + int index; + IngressNested(int index,V1NetworkPolicyIngressRule item) { this.index = index; this.builder = new V1NetworkPolicyIngressRuleBuilder(this, item); } - V1NetworkPolicyIngressRuleBuilder builder; - int index; - + public N and() { return (N) V1NetworkPolicySpecFluent.this.setToIngress(index, builder.build()); } @@ -705,14 +710,15 @@ public N endIngress() { return and(); } - } public class PodSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + PodSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1NetworkPolicySpecFluent.this.withPodSelector(builder.build()); } @@ -721,7 +727,5 @@ public N endPodSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java index 1edec92cf6..715bb4c6a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NodeAddressBuilder extends V1NodeAddressFluent implements VisitableBuilder{ + + V1NodeAddressFluent fluent; + public V1NodeAddressBuilder() { this(new V1NodeAddress()); } @@ -11,17 +14,16 @@ public V1NodeAddressBuilder(V1NodeAddressFluent fluent) { this(fluent, new V1NodeAddress()); } - public V1NodeAddressBuilder(V1NodeAddressFluent fluent,V1NodeAddress instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeAddressBuilder(V1NodeAddress instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeAddressFluent fluent; + public V1NodeAddressBuilder(V1NodeAddressFluent fluent,V1NodeAddress instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeAddress build() { V1NodeAddress buildable = new V1NodeAddress(); buildable.setAddress(fluent.getAddress()); @@ -29,5 +31,4 @@ public V1NodeAddress build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java index 86e1502fb3..d655d5a23b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1NodeAddressFluent> extends BaseFluent{ + + private String address; + private String type; + public V1NodeAddressFluent() { } public V1NodeAddressFluent(V1NodeAddress instance) { this.copyInstance(instance); } - private String address; - private String type; - + protected void copyInstance(V1NodeAddress instance) { instance = instance != null ? instance : new V1NodeAddress(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1NodeAddress instance) { } } - public String getAddress() { - return this.address; - } - - public A withAddress(String address) { - this.address = address; - return (A) this; - } - - public boolean hasAddress() { - return this.address != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getAddress() { + return this.address; + } + + public String getType() { + return this.type; + } + + public boolean hasAddress() { + return this.address != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(address, type); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withAddress(String address) { + this.address = address; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java index 688cca382c..2458689efd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NodeAffinityBuilder extends V1NodeAffinityFluent implements VisitableBuilder{ + + V1NodeAffinityFluent fluent; + public V1NodeAffinityBuilder() { this(new V1NodeAffinity()); } @@ -11,17 +14,16 @@ public V1NodeAffinityBuilder(V1NodeAffinityFluent fluent) { this(fluent, new V1NodeAffinity()); } - public V1NodeAffinityBuilder(V1NodeAffinityFluent fluent,V1NodeAffinity instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeAffinityBuilder(V1NodeAffinity instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeAffinityFluent fluent; + public V1NodeAffinityBuilder(V1NodeAffinityFluent fluent,V1NodeAffinity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeAffinity build() { V1NodeAffinity buildable = new V1NodeAffinity(); buildable.setPreferredDuringSchedulingIgnoredDuringExecution(fluent.buildPreferredDuringSchedulingIgnoredDuringExecution()); @@ -29,5 +31,4 @@ public V1NodeAffinity build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java index b5f475d2cd..12d9c5763a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java @@ -1,70 +1,54 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1NodeAffinityFluent> extends BaseFluent{ + + private ArrayList preferredDuringSchedulingIgnoredDuringExecution; + private V1NodeSelectorBuilder requiredDuringSchedulingIgnoredDuringExecution; + public V1NodeAffinityFluent() { } public V1NodeAffinityFluent(V1NodeAffinity instance) { this.copyInstance(instance); } - private ArrayList preferredDuringSchedulingIgnoredDuringExecution; - private V1NodeSelectorBuilder requiredDuringSchedulingIgnoredDuringExecution; - - protected void copyInstance(V1NodeAffinity instance) { - instance = instance != null ? instance : new V1NodeAffinity(); - if (instance != null) { - this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - } - } - - public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1PreferredSchedulingTerm item) { + + public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } - V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.add(builder); - } else { + for (V1PreferredSchedulingTerm item : items) { + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); } return (A) this; } - public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1PreferredSchedulingTerm item) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); - } - V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.add(builder); - } else { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); - } - return (A) this; + public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution() { + return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, null); + } + + public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1PreferredSchedulingTerm item) { + return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, item); } public A addToPreferredDuringSchedulingIgnoredDuringExecution(V1PreferredSchedulingTerm... items) { @@ -79,66 +63,21 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution(V1PreferredSchedul return (A) this; } - public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { + public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1PreferredSchedulingTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } - for (V1PreferredSchedulingTerm item : items) { - V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); - } - return (A) this; - } - - public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(V1PreferredSchedulingTerm... items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - return (A) this; - } - for (V1PreferredSchedulingTerm item : items) { - V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); - this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); - } - return (A) this; - } - - public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - return (A) this; - } - for (V1PreferredSchedulingTerm item : items) { - V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); - this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - if (preferredDuringSchedulingIgnoredDuringExecution == null) { - return (A) this; - } - Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); - List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); - while (each.hasNext()) { - V1PreferredSchedulingTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); } return (A) this; } - public List buildPreferredDuringSchedulingIgnoredDuringExecution() { - return this.preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; - } - - public V1PreferredSchedulingTerm buildPreferredDuringSchedulingIgnoredDuringExecution(int index) { - return this.preferredDuringSchedulingIgnoredDuringExecution.get(index).build(); - } - public V1PreferredSchedulingTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution() { return this.preferredDuringSchedulingIgnoredDuringExecution.get(0).build(); } @@ -156,64 +95,24 @@ public V1PreferredSchedulingTerm buildMatchingPreferredDuringSchedulingIgnoredDu return null; } - public boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - for (V1PreferredSchedulingTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").clear(); - } - if (preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); - for (V1PreferredSchedulingTerm item : preferredDuringSchedulingIgnoredDuringExecution) { - this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); - } - } else { - this.preferredDuringSchedulingIgnoredDuringExecution = null; - } - return (A) this; - } - - public A withPreferredDuringSchedulingIgnoredDuringExecution(V1PreferredSchedulingTerm... preferredDuringSchedulingIgnoredDuringExecution) { - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution.clear(); - _visitables.remove("preferredDuringSchedulingIgnoredDuringExecution"); - } - if (preferredDuringSchedulingIgnoredDuringExecution != null) { - for (V1PreferredSchedulingTerm item : preferredDuringSchedulingIgnoredDuringExecution) { - this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); - } - } - return (A) this; - } - - public boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { - return this.preferredDuringSchedulingIgnoredDuringExecution != null && !(this.preferredDuringSchedulingIgnoredDuringExecution.isEmpty()); - } - - public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution() { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, null); + public List buildPreferredDuringSchedulingIgnoredDuringExecution() { + return this.preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; } - public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1PreferredSchedulingTerm item) { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, item); + public V1PreferredSchedulingTerm buildPreferredDuringSchedulingIgnoredDuringExecution(int index) { + return this.preferredDuringSchedulingIgnoredDuringExecution.get(index).build(); } - public PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(int index,V1PreferredSchedulingTerm item) { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(index, item); + public V1NodeSelector buildRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution != null ? this.requiredDuringSchedulingIgnoredDuringExecution.build() : null; } - public PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(int index) { - if (index <= preferredDuringSchedulingIgnoredDuringExecution.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "preferredDuringSchedulingIgnoredDuringExecution")); + protected void copyInstance(V1NodeAffinity instance) { + instance = instance != null ? instance : new V1NodeAffinity(); + if (instance != null) { + this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); + this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); } - return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } public PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution() { @@ -245,46 +144,25 @@ public PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPref return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - public V1NodeSelector buildRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution != null ? this.requiredDuringSchedulingIgnoredDuringExecution.build() : null; - } - - public A withRequiredDuringSchedulingIgnoredDuringExecution(V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution) { - this._visitables.remove("requiredDuringSchedulingIgnoredDuringExecution"); - if (requiredDuringSchedulingIgnoredDuringExecution != null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new V1NodeSelectorBuilder(requiredDuringSchedulingIgnoredDuringExecution); - this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(this.requiredDuringSchedulingIgnoredDuringExecution); - } else { - this.requiredDuringSchedulingIgnoredDuringExecution = null; - this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(this.requiredDuringSchedulingIgnoredDuringExecution); - } - return (A) this; - } - - public boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution != null; + public RequiredDuringSchedulingIgnoredDuringExecutionNested editOrNewRequiredDuringSchedulingIgnoredDuringExecution() { + return this.withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(Optional.ofNullable(this.buildRequiredDuringSchedulingIgnoredDuringExecution()).orElse(new V1NodeSelectorBuilder().build())); } - public RequiredDuringSchedulingIgnoredDuringExecutionNested withNewRequiredDuringSchedulingIgnoredDuringExecution() { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(null); + public RequiredDuringSchedulingIgnoredDuringExecutionNested editOrNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item) { + return this.withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(Optional.ofNullable(this.buildRequiredDuringSchedulingIgnoredDuringExecution()).orElse(item)); } - public RequiredDuringSchedulingIgnoredDuringExecutionNested withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item) { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(item); + public PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(int index) { + if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } public RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution() { return this.withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(Optional.ofNullable(this.buildRequiredDuringSchedulingIgnoredDuringExecution()).orElse(null)); } - public RequiredDuringSchedulingIgnoredDuringExecutionNested editOrNewRequiredDuringSchedulingIgnoredDuringExecution() { - return this.withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(Optional.ofNullable(this.buildRequiredDuringSchedulingIgnoredDuringExecution()).orElse(new V1NodeSelectorBuilder().build())); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editOrNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item) { - return this.withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(Optional.ofNullable(this.buildRequiredDuringSchedulingIgnoredDuringExecution()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -305,10 +183,86 @@ public boolean equals(Object o) { return true; } + public boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1PreferredSchedulingTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { + return this.preferredDuringSchedulingIgnoredDuringExecution != null && !(this.preferredDuringSchedulingIgnoredDuringExecution.isEmpty()); + } + + public boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution != null; + } + public int hashCode() { return Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution); } + public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1PreferredSchedulingTerm item : items) { + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; + } + + public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(V1PreferredSchedulingTerm... items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1PreferredSchedulingTerm item : items) { + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + if (preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); + List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); + while (each.hasNext()) { + V1PreferredSchedulingTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(int index,V1PreferredSchedulingTerm item) { + return new PreferredDuringSchedulingIgnoredDuringExecutionNested(index, item); + } + + public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1PreferredSchedulingTerm item) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -324,14 +278,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public RequiredDuringSchedulingIgnoredDuringExecutionNested withNewRequiredDuringSchedulingIgnoredDuringExecution() { + return new RequiredDuringSchedulingIgnoredDuringExecutionNested(null); + } + + public RequiredDuringSchedulingIgnoredDuringExecutionNested withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item) { + return new RequiredDuringSchedulingIgnoredDuringExecutionNested(item); + } + + public A withPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { + this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").clear(); + } + if (preferredDuringSchedulingIgnoredDuringExecution != null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + for (V1PreferredSchedulingTerm item : preferredDuringSchedulingIgnoredDuringExecution) { + this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); + } + } else { + this.preferredDuringSchedulingIgnoredDuringExecution = null; + } + return (A) this; + } + + public A withPreferredDuringSchedulingIgnoredDuringExecution(V1PreferredSchedulingTerm... preferredDuringSchedulingIgnoredDuringExecution) { + if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { + this.preferredDuringSchedulingIgnoredDuringExecution.clear(); + _visitables.remove("preferredDuringSchedulingIgnoredDuringExecution"); + } + if (preferredDuringSchedulingIgnoredDuringExecution != null) { + for (V1PreferredSchedulingTerm item : preferredDuringSchedulingIgnoredDuringExecution) { + this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); + } + } + return (A) this; + } + + public A withRequiredDuringSchedulingIgnoredDuringExecution(V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution) { + this._visitables.remove("requiredDuringSchedulingIgnoredDuringExecution"); + if (requiredDuringSchedulingIgnoredDuringExecution != null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new V1NodeSelectorBuilder(requiredDuringSchedulingIgnoredDuringExecution); + this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(this.requiredDuringSchedulingIgnoredDuringExecution); + } else { + this.requiredDuringSchedulingIgnoredDuringExecution = null; + this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(this.requiredDuringSchedulingIgnoredDuringExecution); + } + return (A) this; + } public class PreferredDuringSchedulingIgnoredDuringExecutionNested extends V1PreferredSchedulingTermFluent> implements Nested{ + + V1PreferredSchedulingTermBuilder builder; + int index; + PreferredDuringSchedulingIgnoredDuringExecutionNested(int index,V1PreferredSchedulingTerm item) { this.index = index; this.builder = new V1PreferredSchedulingTermBuilder(this, item); } - V1PreferredSchedulingTermBuilder builder; - int index; - + public N and() { return (N) V1NodeAffinityFluent.this.setToPreferredDuringSchedulingIgnoredDuringExecution(index, builder.build()); } @@ -340,14 +344,15 @@ public N endPreferredDuringSchedulingIgnoredDuringExecution() { return and(); } - } public class RequiredDuringSchedulingIgnoredDuringExecutionNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + RequiredDuringSchedulingIgnoredDuringExecutionNested(V1NodeSelector item) { this.builder = new V1NodeSelectorBuilder(this, item); } - V1NodeSelectorBuilder builder; - + public N and() { return (N) V1NodeAffinityFluent.this.withRequiredDuringSchedulingIgnoredDuringExecution(builder.build()); } @@ -356,7 +361,5 @@ public N endRequiredDuringSchedulingIgnoredDuringExecution() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java index f03d4c0f7c..4127c80edc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NodeBuilder extends V1NodeFluent implements VisitableBuilder{ + + V1NodeFluent fluent; + public V1NodeBuilder() { this(new V1Node()); } @@ -11,17 +14,16 @@ public V1NodeBuilder(V1NodeFluent fluent) { this(fluent, new V1Node()); } - public V1NodeBuilder(V1NodeFluent fluent,V1Node instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeBuilder(V1Node instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeFluent fluent; + public V1NodeBuilder(V1NodeFluent fluent,V1Node instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Node build() { V1Node buildable = new V1Node(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1Node build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java index 4b9b5a457c..f0e6e0899f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NodeConditionBuilder extends V1NodeConditionFluent implements VisitableBuilder{ + + V1NodeConditionFluent fluent; + public V1NodeConditionBuilder() { this(new V1NodeCondition()); } @@ -11,17 +14,16 @@ public V1NodeConditionBuilder(V1NodeConditionFluent fluent) { this(fluent, new V1NodeCondition()); } - public V1NodeConditionBuilder(V1NodeConditionFluent fluent,V1NodeCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeConditionBuilder(V1NodeCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeConditionFluent fluent; + public V1NodeConditionBuilder(V1NodeConditionFluent fluent,V1NodeCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeCondition build() { V1NodeCondition buildable = new V1NodeCondition(); buildable.setLastHeartbeatTime(fluent.getLastHeartbeatTime()); @@ -33,5 +35,4 @@ public V1NodeCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java index bc00ac4bfb..2d80c174d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java @@ -1,31 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1NodeConditionFluent> extends BaseFluent{ - public V1NodeConditionFluent() { - } - - public V1NodeConditionFluent(V1NodeCondition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastHeartbeatTime; private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1NodeConditionFluent() { + } + public V1NodeConditionFluent(V1NodeCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1NodeCondition instance) { instance = instance != null ? instance : new V1NodeCondition(); if (instance != null) { @@ -38,116 +40,86 @@ protected void copyInstance(V1NodeCondition instance) { } } - public OffsetDateTime getLastHeartbeatTime() { - return this.lastHeartbeatTime; - } - - public A withLastHeartbeatTime(OffsetDateTime lastHeartbeatTime) { - this.lastHeartbeatTime = lastHeartbeatTime; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeConditionFluent that = (V1NodeConditionFluent) o; + if (!(Objects.equals(lastHeartbeatTime, that.lastHeartbeatTime))) { + return false; + } + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastHeartbeatTime() { - return this.lastHeartbeatTime != null; + public OffsetDateTime getLastHeartbeatTime() { + return this.lastHeartbeatTime; } public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public String getStatus() { + return this.status; } - public boolean hasReason() { - return this.reason != null; + public String getType() { + return this.type; } - public String getStatus() { - return this.status; + public boolean hasLastHeartbeatTime() { + return this.lastHeartbeatTime != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; } - public boolean hasStatus() { - return this.status != null; + public boolean hasMessage() { + return this.message != null; } - public String getType() { - return this.type; + public boolean hasReason() { + return this.reason != null; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasStatus() { + return this.status != null; } public boolean hasType() { return this.type != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1NodeConditionFluent that = (V1NodeConditionFluent) o; - if (!(Objects.equals(lastHeartbeatTime, that.lastHeartbeatTime))) { - return false; - } - if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { - return false; - } - if (!(Objects.equals(message, that.message))) { - return false; - } - if (!(Objects.equals(reason, that.reason))) { - return false; - } - if (!(Objects.equals(status, that.status))) { - return false; - } - if (!(Objects.equals(type, that.type))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(lastHeartbeatTime, lastTransitionTime, message, reason, status, type); } @@ -188,5 +160,34 @@ public String toString() { return sb.toString(); } - + public A withLastHeartbeatTime(OffsetDateTime lastHeartbeatTime) { + this.lastHeartbeatTime = lastHeartbeatTime; + return (A) this; + } + + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java index 46e1b1fd8e..e6a91d00da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NodeConfigSourceBuilder extends V1NodeConfigSourceFluent implements VisitableBuilder{ + + V1NodeConfigSourceFluent fluent; + public V1NodeConfigSourceBuilder() { this(new V1NodeConfigSource()); } @@ -11,22 +14,20 @@ public V1NodeConfigSourceBuilder(V1NodeConfigSourceFluent fluent) { this(fluent, new V1NodeConfigSource()); } - public V1NodeConfigSourceBuilder(V1NodeConfigSourceFluent fluent,V1NodeConfigSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeConfigSourceBuilder(V1NodeConfigSource instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeConfigSourceFluent fluent; + public V1NodeConfigSourceBuilder(V1NodeConfigSourceFluent fluent,V1NodeConfigSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeConfigSource build() { V1NodeConfigSource buildable = new V1NodeConfigSource(); buildable.setConfigMap(fluent.buildConfigMap()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java index 99a5a69c9f..86e79cfcdc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1NodeConfigSourceFluent> extends BaseFluent{ + + private V1ConfigMapNodeConfigSourceBuilder configMap; + public V1NodeConfigSourceFluent() { } public V1NodeConfigSourceFluent(V1NodeConfigSource instance) { this.copyInstance(instance); } - private V1ConfigMapNodeConfigSourceBuilder configMap; + + public V1ConfigMapNodeConfigSource buildConfigMap() { + return this.configMap != null ? this.configMap.build() : null; + } protected void copyInstance(V1NodeConfigSource instance) { instance = instance != null ? instance : new V1NodeConfigSource(); @@ -29,34 +35,6 @@ protected void copyInstance(V1NodeConfigSource instance) { } } - public V1ConfigMapNodeConfigSource buildConfigMap() { - return this.configMap != null ? this.configMap.build() : null; - } - - public A withConfigMap(V1ConfigMapNodeConfigSource configMap) { - this._visitables.remove("configMap"); - if (configMap != null) { - this.configMap = new V1ConfigMapNodeConfigSourceBuilder(configMap); - this._visitables.get("configMap").add(this.configMap); - } else { - this.configMap = null; - this._visitables.get("configMap").remove(this.configMap); - } - return (A) this; - } - - public boolean hasConfigMap() { - return this.configMap != null; - } - - public ConfigMapNested withNewConfigMap() { - return new ConfigMapNested(null); - } - - public ConfigMapNested withNewConfigMapLike(V1ConfigMapNodeConfigSource item) { - return new ConfigMapNested(item); - } - public ConfigMapNested editConfigMap() { return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(null)); } @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasConfigMap() { + return this.configMap != null; + } + public int hashCode() { return Objects.hash(configMap); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withConfigMap(V1ConfigMapNodeConfigSource configMap) { + this._visitables.remove("configMap"); + if (configMap != null) { + this.configMap = new V1ConfigMapNodeConfigSourceBuilder(configMap); + this._visitables.get("configMap").add(this.configMap); + } else { + this.configMap = null; + this._visitables.get("configMap").remove(this.configMap); + } + return (A) this; + } + + public ConfigMapNested withNewConfigMap() { + return new ConfigMapNested(null); + } + + public ConfigMapNested withNewConfigMapLike(V1ConfigMapNodeConfigSource item) { + return new ConfigMapNested(item); + } public class ConfigMapNested extends V1ConfigMapNodeConfigSourceFluent> implements Nested{ + + V1ConfigMapNodeConfigSourceBuilder builder; + ConfigMapNested(V1ConfigMapNodeConfigSource item) { this.builder = new V1ConfigMapNodeConfigSourceBuilder(this, item); } - V1ConfigMapNodeConfigSourceBuilder builder; - + public N and() { return (N) V1NodeConfigSourceFluent.this.withConfigMap(builder.build()); } @@ -114,7 +118,5 @@ public N endConfigMap() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java index 028ee96a27..278178a88e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NodeConfigStatusBuilder extends V1NodeConfigStatusFluent implements VisitableBuilder{ + + V1NodeConfigStatusFluent fluent; + public V1NodeConfigStatusBuilder() { this(new V1NodeConfigStatus()); } @@ -11,17 +14,16 @@ public V1NodeConfigStatusBuilder(V1NodeConfigStatusFluent fluent) { this(fluent, new V1NodeConfigStatus()); } - public V1NodeConfigStatusBuilder(V1NodeConfigStatusFluent fluent,V1NodeConfigStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeConfigStatusBuilder(V1NodeConfigStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeConfigStatusFluent fluent; + public V1NodeConfigStatusBuilder(V1NodeConfigStatusFluent fluent,V1NodeConfigStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeConfigStatus build() { V1NodeConfigStatus buildable = new V1NodeConfigStatus(); buildable.setActive(fluent.buildActive()); @@ -31,5 +33,4 @@ public V1NodeConfigStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java index f27c358ef1..e963f36d92 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java @@ -1,29 +1,43 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1NodeConfigStatusFluent> extends BaseFluent{ + + private V1NodeConfigSourceBuilder active; + private V1NodeConfigSourceBuilder assigned; + private String error; + private V1NodeConfigSourceBuilder lastKnownGood; + public V1NodeConfigStatusFluent() { } public V1NodeConfigStatusFluent(V1NodeConfigStatus instance) { this.copyInstance(instance); } - private V1NodeConfigSourceBuilder active; - private V1NodeConfigSourceBuilder assigned; - private String error; - private V1NodeConfigSourceBuilder lastKnownGood; + + public V1NodeConfigSource buildActive() { + return this.active != null ? this.active.build() : null; + } + + public V1NodeConfigSource buildAssigned() { + return this.assigned != null ? this.assigned.build() : null; + } + + public V1NodeConfigSource buildLastKnownGood() { + return this.lastKnownGood != null ? this.lastKnownGood.build() : null; + } protected void copyInstance(V1NodeConfigStatus instance) { instance = instance != null ? instance : new V1NodeConfigStatus(); @@ -35,36 +49,16 @@ protected void copyInstance(V1NodeConfigStatus instance) { } } - public V1NodeConfigSource buildActive() { - return this.active != null ? this.active.build() : null; - } - - public A withActive(V1NodeConfigSource active) { - this._visitables.remove("active"); - if (active != null) { - this.active = new V1NodeConfigSourceBuilder(active); - this._visitables.get("active").add(this.active); - } else { - this.active = null; - this._visitables.get("active").remove(this.active); - } - return (A) this; - } - - public boolean hasActive() { - return this.active != null; - } - - public ActiveNested withNewActive() { - return new ActiveNested(null); + public ActiveNested editActive() { + return this.withNewActiveLike(Optional.ofNullable(this.buildActive()).orElse(null)); } - public ActiveNested withNewActiveLike(V1NodeConfigSource item) { - return new ActiveNested(item); + public AssignedNested editAssigned() { + return this.withNewAssignedLike(Optional.ofNullable(this.buildAssigned()).orElse(null)); } - public ActiveNested editActive() { - return this.withNewActiveLike(Optional.ofNullable(this.buildActive()).orElse(null)); + public LastKnownGoodNested editLastKnownGood() { + return this.withNewLastKnownGoodLike(Optional.ofNullable(this.buildLastKnownGood()).orElse(null)); } public ActiveNested editOrNewActive() { @@ -75,38 +69,6 @@ public ActiveNested editOrNewActiveLike(V1NodeConfigSource item) { return this.withNewActiveLike(Optional.ofNullable(this.buildActive()).orElse(item)); } - public V1NodeConfigSource buildAssigned() { - return this.assigned != null ? this.assigned.build() : null; - } - - public A withAssigned(V1NodeConfigSource assigned) { - this._visitables.remove("assigned"); - if (assigned != null) { - this.assigned = new V1NodeConfigSourceBuilder(assigned); - this._visitables.get("assigned").add(this.assigned); - } else { - this.assigned = null; - this._visitables.get("assigned").remove(this.assigned); - } - return (A) this; - } - - public boolean hasAssigned() { - return this.assigned != null; - } - - public AssignedNested withNewAssigned() { - return new AssignedNested(null); - } - - public AssignedNested withNewAssignedLike(V1NodeConfigSource item) { - return new AssignedNested(item); - } - - public AssignedNested editAssigned() { - return this.withNewAssignedLike(Optional.ofNullable(this.buildAssigned()).orElse(null)); - } - public AssignedNested editOrNewAssigned() { return this.withNewAssignedLike(Optional.ofNullable(this.buildAssigned()).orElse(new V1NodeConfigSourceBuilder().build())); } @@ -115,51 +77,6 @@ public AssignedNested editOrNewAssignedLike(V1NodeConfigSource item) { return this.withNewAssignedLike(Optional.ofNullable(this.buildAssigned()).orElse(item)); } - public String getError() { - return this.error; - } - - public A withError(String error) { - this.error = error; - return (A) this; - } - - public boolean hasError() { - return this.error != null; - } - - public V1NodeConfigSource buildLastKnownGood() { - return this.lastKnownGood != null ? this.lastKnownGood.build() : null; - } - - public A withLastKnownGood(V1NodeConfigSource lastKnownGood) { - this._visitables.remove("lastKnownGood"); - if (lastKnownGood != null) { - this.lastKnownGood = new V1NodeConfigSourceBuilder(lastKnownGood); - this._visitables.get("lastKnownGood").add(this.lastKnownGood); - } else { - this.lastKnownGood = null; - this._visitables.get("lastKnownGood").remove(this.lastKnownGood); - } - return (A) this; - } - - public boolean hasLastKnownGood() { - return this.lastKnownGood != null; - } - - public LastKnownGoodNested withNewLastKnownGood() { - return new LastKnownGoodNested(null); - } - - public LastKnownGoodNested withNewLastKnownGoodLike(V1NodeConfigSource item) { - return new LastKnownGoodNested(item); - } - - public LastKnownGoodNested editLastKnownGood() { - return this.withNewLastKnownGoodLike(Optional.ofNullable(this.buildLastKnownGood()).orElse(null)); - } - public LastKnownGoodNested editOrNewLastKnownGood() { return this.withNewLastKnownGoodLike(Optional.ofNullable(this.buildLastKnownGood()).orElse(new V1NodeConfigSourceBuilder().build())); } @@ -194,6 +111,26 @@ public boolean equals(Object o) { return true; } + public String getError() { + return this.error; + } + + public boolean hasActive() { + return this.active != null; + } + + public boolean hasAssigned() { + return this.assigned != null; + } + + public boolean hasError() { + return this.error != null; + } + + public boolean hasLastKnownGood() { + return this.lastKnownGood != null; + } + public int hashCode() { return Objects.hash(active, assigned, error, lastKnownGood); } @@ -223,12 +160,79 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withActive(V1NodeConfigSource active) { + this._visitables.remove("active"); + if (active != null) { + this.active = new V1NodeConfigSourceBuilder(active); + this._visitables.get("active").add(this.active); + } else { + this.active = null; + this._visitables.get("active").remove(this.active); + } + return (A) this; + } + + public A withAssigned(V1NodeConfigSource assigned) { + this._visitables.remove("assigned"); + if (assigned != null) { + this.assigned = new V1NodeConfigSourceBuilder(assigned); + this._visitables.get("assigned").add(this.assigned); + } else { + this.assigned = null; + this._visitables.get("assigned").remove(this.assigned); + } + return (A) this; + } + + public A withError(String error) { + this.error = error; + return (A) this; + } + + public A withLastKnownGood(V1NodeConfigSource lastKnownGood) { + this._visitables.remove("lastKnownGood"); + if (lastKnownGood != null) { + this.lastKnownGood = new V1NodeConfigSourceBuilder(lastKnownGood); + this._visitables.get("lastKnownGood").add(this.lastKnownGood); + } else { + this.lastKnownGood = null; + this._visitables.get("lastKnownGood").remove(this.lastKnownGood); + } + return (A) this; + } + + public ActiveNested withNewActive() { + return new ActiveNested(null); + } + + public ActiveNested withNewActiveLike(V1NodeConfigSource item) { + return new ActiveNested(item); + } + + public AssignedNested withNewAssigned() { + return new AssignedNested(null); + } + + public AssignedNested withNewAssignedLike(V1NodeConfigSource item) { + return new AssignedNested(item); + } + + public LastKnownGoodNested withNewLastKnownGood() { + return new LastKnownGoodNested(null); + } + + public LastKnownGoodNested withNewLastKnownGoodLike(V1NodeConfigSource item) { + return new LastKnownGoodNested(item); + } public class ActiveNested extends V1NodeConfigSourceFluent> implements Nested{ + + V1NodeConfigSourceBuilder builder; + ActiveNested(V1NodeConfigSource item) { this.builder = new V1NodeConfigSourceBuilder(this, item); } - V1NodeConfigSourceBuilder builder; - + public N and() { return (N) V1NodeConfigStatusFluent.this.withActive(builder.build()); } @@ -237,14 +241,15 @@ public N endActive() { return and(); } - } public class AssignedNested extends V1NodeConfigSourceFluent> implements Nested{ + + V1NodeConfigSourceBuilder builder; + AssignedNested(V1NodeConfigSource item) { this.builder = new V1NodeConfigSourceBuilder(this, item); } - V1NodeConfigSourceBuilder builder; - + public N and() { return (N) V1NodeConfigStatusFluent.this.withAssigned(builder.build()); } @@ -253,14 +258,15 @@ public N endAssigned() { return and(); } - } public class LastKnownGoodNested extends V1NodeConfigSourceFluent> implements Nested{ + + V1NodeConfigSourceBuilder builder; + LastKnownGoodNested(V1NodeConfigSource item) { this.builder = new V1NodeConfigSourceBuilder(this, item); } - V1NodeConfigSourceBuilder builder; - + public N and() { return (N) V1NodeConfigStatusFluent.this.withLastKnownGood(builder.build()); } @@ -269,7 +275,5 @@ public N endLastKnownGood() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java index b49d67abd5..a5eebe1f2c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NodeDaemonEndpointsBuilder extends V1NodeDaemonEndpointsFluent implements VisitableBuilder{ + + V1NodeDaemonEndpointsFluent fluent; + public V1NodeDaemonEndpointsBuilder() { this(new V1NodeDaemonEndpoints()); } @@ -11,22 +14,20 @@ public V1NodeDaemonEndpointsBuilder(V1NodeDaemonEndpointsFluent fluent) { this(fluent, new V1NodeDaemonEndpoints()); } - public V1NodeDaemonEndpointsBuilder(V1NodeDaemonEndpointsFluent fluent,V1NodeDaemonEndpoints instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeDaemonEndpointsBuilder(V1NodeDaemonEndpoints instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeDaemonEndpointsFluent fluent; + public V1NodeDaemonEndpointsBuilder(V1NodeDaemonEndpointsFluent fluent,V1NodeDaemonEndpoints instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeDaemonEndpoints build() { V1NodeDaemonEndpoints buildable = new V1NodeDaemonEndpoints(); buildable.setKubeletEndpoint(fluent.buildKubeletEndpoint()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java index 36b4b5ab9e..e8be23ed73 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1NodeDaemonEndpointsFluent> extends BaseFluent{ + + private V1DaemonEndpointBuilder kubeletEndpoint; + public V1NodeDaemonEndpointsFluent() { } public V1NodeDaemonEndpointsFluent(V1NodeDaemonEndpoints instance) { this.copyInstance(instance); } - private V1DaemonEndpointBuilder kubeletEndpoint; + + public V1DaemonEndpoint buildKubeletEndpoint() { + return this.kubeletEndpoint != null ? this.kubeletEndpoint.build() : null; + } protected void copyInstance(V1NodeDaemonEndpoints instance) { instance = instance != null ? instance : new V1NodeDaemonEndpoints(); @@ -29,34 +35,6 @@ protected void copyInstance(V1NodeDaemonEndpoints instance) { } } - public V1DaemonEndpoint buildKubeletEndpoint() { - return this.kubeletEndpoint != null ? this.kubeletEndpoint.build() : null; - } - - public A withKubeletEndpoint(V1DaemonEndpoint kubeletEndpoint) { - this._visitables.remove("kubeletEndpoint"); - if (kubeletEndpoint != null) { - this.kubeletEndpoint = new V1DaemonEndpointBuilder(kubeletEndpoint); - this._visitables.get("kubeletEndpoint").add(this.kubeletEndpoint); - } else { - this.kubeletEndpoint = null; - this._visitables.get("kubeletEndpoint").remove(this.kubeletEndpoint); - } - return (A) this; - } - - public boolean hasKubeletEndpoint() { - return this.kubeletEndpoint != null; - } - - public KubeletEndpointNested withNewKubeletEndpoint() { - return new KubeletEndpointNested(null); - } - - public KubeletEndpointNested withNewKubeletEndpointLike(V1DaemonEndpoint item) { - return new KubeletEndpointNested(item); - } - public KubeletEndpointNested editKubeletEndpoint() { return this.withNewKubeletEndpointLike(Optional.ofNullable(this.buildKubeletEndpoint()).orElse(null)); } @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasKubeletEndpoint() { + return this.kubeletEndpoint != null; + } + public int hashCode() { return Objects.hash(kubeletEndpoint); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withKubeletEndpoint(V1DaemonEndpoint kubeletEndpoint) { + this._visitables.remove("kubeletEndpoint"); + if (kubeletEndpoint != null) { + this.kubeletEndpoint = new V1DaemonEndpointBuilder(kubeletEndpoint); + this._visitables.get("kubeletEndpoint").add(this.kubeletEndpoint); + } else { + this.kubeletEndpoint = null; + this._visitables.get("kubeletEndpoint").remove(this.kubeletEndpoint); + } + return (A) this; + } + + public KubeletEndpointNested withNewKubeletEndpoint() { + return new KubeletEndpointNested(null); + } + + public KubeletEndpointNested withNewKubeletEndpointLike(V1DaemonEndpoint item) { + return new KubeletEndpointNested(item); + } public class KubeletEndpointNested extends V1DaemonEndpointFluent> implements Nested{ + + V1DaemonEndpointBuilder builder; + KubeletEndpointNested(V1DaemonEndpoint item) { this.builder = new V1DaemonEndpointBuilder(this, item); } - V1DaemonEndpointBuilder builder; - + public N and() { return (N) V1NodeDaemonEndpointsFluent.this.withKubeletEndpoint(builder.build()); } @@ -114,7 +118,5 @@ public N endKubeletEndpoint() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesBuilder.java index 235307006f..3bc809423f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NodeFeaturesBuilder extends V1NodeFeaturesFluent implements VisitableBuilder{ + + V1NodeFeaturesFluent fluent; + public V1NodeFeaturesBuilder() { this(new V1NodeFeatures()); } @@ -11,22 +14,20 @@ public V1NodeFeaturesBuilder(V1NodeFeaturesFluent fluent) { this(fluent, new V1NodeFeatures()); } - public V1NodeFeaturesBuilder(V1NodeFeaturesFluent fluent,V1NodeFeatures instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeFeaturesBuilder(V1NodeFeatures instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeFeaturesFluent fluent; + public V1NodeFeaturesBuilder(V1NodeFeaturesFluent fluent,V1NodeFeatures instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeFeatures build() { V1NodeFeatures buildable = new V1NodeFeatures(); buildable.setSupplementalGroupsPolicy(fluent.getSupplementalGroupsPolicy()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesFluent.java index 0e12b47b5e..570d609331 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1NodeFeaturesFluent> extends BaseFluent{ + + private Boolean supplementalGroupsPolicy; + public V1NodeFeaturesFluent() { } public V1NodeFeaturesFluent(V1NodeFeatures instance) { this.copyInstance(instance); } - private Boolean supplementalGroupsPolicy; - + protected void copyInstance(V1NodeFeatures instance) { instance = instance != null ? instance : new V1NodeFeatures(); if (instance != null) { @@ -28,19 +30,6 @@ protected void copyInstance(V1NodeFeatures instance) { } } - public Boolean getSupplementalGroupsPolicy() { - return this.supplementalGroupsPolicy; - } - - public A withSupplementalGroupsPolicy(Boolean supplementalGroupsPolicy) { - this.supplementalGroupsPolicy = supplementalGroupsPolicy; - return (A) this; - } - - public boolean hasSupplementalGroupsPolicy() { - return this.supplementalGroupsPolicy != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -58,6 +47,14 @@ public boolean equals(Object o) { return true; } + public Boolean getSupplementalGroupsPolicy() { + return this.supplementalGroupsPolicy; + } + + public boolean hasSupplementalGroupsPolicy() { + return this.supplementalGroupsPolicy != null; + } + public int hashCode() { return Objects.hash(supplementalGroupsPolicy); } @@ -77,5 +74,9 @@ public A withSupplementalGroupsPolicy() { return withSupplementalGroupsPolicy(true); } - + public A withSupplementalGroupsPolicy(Boolean supplementalGroupsPolicy) { + this.supplementalGroupsPolicy = supplementalGroupsPolicy; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java index c9f354f7ea..488ebb9d2f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1NodeFluent> extends BaseFluent{ - public V1NodeFluent() { - } - - public V1NodeFluent(V1Node instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1NodeSpecBuilder spec; private V1NodeStatusBuilder status; - - protected void copyInstance(V1Node instance) { - instance = instance != null ? instance : new V1Node(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1NodeFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1NodeFluent(V1Node instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1NodeSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1NodeStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1Node instance) { + instance = instance != null ? instance : new V1Node(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1NodeSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1NodeSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1NodeSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1NodeSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1NodeSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1NodeSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1NodeStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1NodeStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1NodeStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1NodeStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1NodeStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1NodeStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1NodeStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1NodeStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1NodeSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1NodeStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1NodeSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1NodeSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1NodeStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1NodeStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1NodeFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1NodeSpecFluent> implements Nested{ + + V1NodeSpecBuilder builder; + SpecNested(V1NodeSpec item) { this.builder = new V1NodeSpecBuilder(this, item); } - V1NodeSpecBuilder builder; - + public N and() { return (N) V1NodeFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1NodeStatusFluent> implements Nested{ + + V1NodeStatusBuilder builder; + StatusNested(V1NodeStatus item) { this.builder = new V1NodeStatusBuilder(this, item); } - V1NodeStatusBuilder builder; - + public N and() { return (N) V1NodeFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java index 28598868b2..47e80d88c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NodeListBuilder extends V1NodeListFluent implements VisitableBuilder{ + + V1NodeListFluent fluent; + public V1NodeListBuilder() { this(new V1NodeList()); } @@ -11,17 +14,16 @@ public V1NodeListBuilder(V1NodeListFluent fluent) { this(fluent, new V1NodeList()); } - public V1NodeListBuilder(V1NodeListFluent fluent,V1NodeList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeListBuilder(V1NodeList instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeListFluent fluent; + public V1NodeListBuilder(V1NodeListFluent fluent,V1NodeList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeList build() { V1NodeList buildable = new V1NodeList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1NodeList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java index 76cb116f42..0961069fb2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1NodeListFluent> extends BaseFluent{ - public V1NodeListFluent() { - } - - public V1NodeListFluent(V1NodeList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1NodeList instance) { - instance = instance != null ? instance : new V1NodeList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1NodeListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1NodeListFluent(V1NodeList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1Node item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1NodeBuilder builder = new V1NodeBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1Node item : items) { + V1NodeBuilder builder = new V1NodeBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1Node item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1NodeBuilder builder = new V1NodeBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1Node item) { + return new ItemsNested(-1, item); } public A addToItems(V1Node... items) { @@ -96,68 +65,31 @@ public A addToItems(V1Node... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1Node item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1Node item : items) { - V1NodeBuilder builder = new V1NodeBuilder(item); + V1NodeBuilder builder = new V1NodeBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1Node... items) { - if (this.items == null) { - return (A) this; - } - for (V1Node item : items) { - V1NodeBuilder builder = new V1NodeBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1Node item : items) { - V1NodeBuilder builder = new V1NodeBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1NodeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1Node buildFirstItem() { + return this.items.get(0).build(); } public V1Node buildItem(int index) { return this.items.get(index).build(); } - public V1Node buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1Node buildLastItem() { @@ -173,73 +105,34 @@ public V1Node buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1NodeBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Node item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1NodeList instance) { + instance = instance != null ? instance : new V1NodeList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1Node... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1Node item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Node item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Node item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) { return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1NodeBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Node item : items) { + V1NodeBuilder builder = new V1NodeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Node... items) { + if (this.items == null) { + return (A) this; + } + for (V1Node item : items) { + V1NodeBuilder builder = new V1NodeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1NodeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Node item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1Node item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1NodeBuilder builder = new V1NodeBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1Node item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1Node... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1Node item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1NodeFluent> implements Nested{ + + V1NodeBuilder builder; + int index; + ItemsNested(int index,V1Node item) { this.index = index; this.builder = new V1NodeBuilder(this, item); } - V1NodeBuilder builder; - int index; - + public N and() { return (N) V1NodeListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1NodeListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerBuilder.java index 2d787f46c7..1fb8d711dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NodeRuntimeHandlerBuilder extends V1NodeRuntimeHandlerFluent implements VisitableBuilder{ + + V1NodeRuntimeHandlerFluent fluent; + public V1NodeRuntimeHandlerBuilder() { this(new V1NodeRuntimeHandler()); } @@ -11,17 +14,16 @@ public V1NodeRuntimeHandlerBuilder(V1NodeRuntimeHandlerFluent fluent) { this(fluent, new V1NodeRuntimeHandler()); } - public V1NodeRuntimeHandlerBuilder(V1NodeRuntimeHandlerFluent fluent,V1NodeRuntimeHandler instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeRuntimeHandlerBuilder(V1NodeRuntimeHandler instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeRuntimeHandlerFluent fluent; + public V1NodeRuntimeHandlerBuilder(V1NodeRuntimeHandlerFluent fluent,V1NodeRuntimeHandler instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeRuntimeHandler build() { V1NodeRuntimeHandler buildable = new V1NodeRuntimeHandler(); buildable.setFeatures(fluent.buildFeatures()); @@ -29,5 +31,4 @@ public V1NodeRuntimeHandler build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesBuilder.java index 7d3a723070..ea3506bde6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NodeRuntimeHandlerFeaturesBuilder extends V1NodeRuntimeHandlerFeaturesFluent implements VisitableBuilder{ + + V1NodeRuntimeHandlerFeaturesFluent fluent; + public V1NodeRuntimeHandlerFeaturesBuilder() { this(new V1NodeRuntimeHandlerFeatures()); } @@ -11,17 +14,16 @@ public V1NodeRuntimeHandlerFeaturesBuilder(V1NodeRuntimeHandlerFeaturesFluent this(fluent, new V1NodeRuntimeHandlerFeatures()); } - public V1NodeRuntimeHandlerFeaturesBuilder(V1NodeRuntimeHandlerFeaturesFluent fluent,V1NodeRuntimeHandlerFeatures instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeRuntimeHandlerFeaturesBuilder(V1NodeRuntimeHandlerFeatures instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeRuntimeHandlerFeaturesFluent fluent; + public V1NodeRuntimeHandlerFeaturesBuilder(V1NodeRuntimeHandlerFeaturesFluent fluent,V1NodeRuntimeHandlerFeatures instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeRuntimeHandlerFeatures build() { V1NodeRuntimeHandlerFeatures buildable = new V1NodeRuntimeHandlerFeatures(); buildable.setRecursiveReadOnlyMounts(fluent.getRecursiveReadOnlyMounts()); @@ -29,5 +31,4 @@ public V1NodeRuntimeHandlerFeatures build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesFluent.java index e74e5a268e..871f4f9ae8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1NodeRuntimeHandlerFeaturesFluent> extends BaseFluent{ + + private Boolean recursiveReadOnlyMounts; + private Boolean userNamespaces; + public V1NodeRuntimeHandlerFeaturesFluent() { } public V1NodeRuntimeHandlerFeaturesFluent(V1NodeRuntimeHandlerFeatures instance) { this.copyInstance(instance); } - private Boolean recursiveReadOnlyMounts; - private Boolean userNamespaces; - + protected void copyInstance(V1NodeRuntimeHandlerFeatures instance) { instance = instance != null ? instance : new V1NodeRuntimeHandlerFeatures(); if (instance != null) { @@ -30,32 +32,6 @@ protected void copyInstance(V1NodeRuntimeHandlerFeatures instance) { } } - public Boolean getRecursiveReadOnlyMounts() { - return this.recursiveReadOnlyMounts; - } - - public A withRecursiveReadOnlyMounts(Boolean recursiveReadOnlyMounts) { - this.recursiveReadOnlyMounts = recursiveReadOnlyMounts; - return (A) this; - } - - public boolean hasRecursiveReadOnlyMounts() { - return this.recursiveReadOnlyMounts != null; - } - - public Boolean getUserNamespaces() { - return this.userNamespaces; - } - - public A withUserNamespaces(Boolean userNamespaces) { - this.userNamespaces = userNamespaces; - return (A) this; - } - - public boolean hasUserNamespaces() { - return this.userNamespaces != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -76,6 +52,22 @@ public boolean equals(Object o) { return true; } + public Boolean getRecursiveReadOnlyMounts() { + return this.recursiveReadOnlyMounts; + } + + public Boolean getUserNamespaces() { + return this.userNamespaces; + } + + public boolean hasRecursiveReadOnlyMounts() { + return this.recursiveReadOnlyMounts != null; + } + + public boolean hasUserNamespaces() { + return this.userNamespaces != null; + } + public int hashCode() { return Objects.hash(recursiveReadOnlyMounts, userNamespaces); } @@ -100,9 +92,18 @@ public A withRecursiveReadOnlyMounts() { return withRecursiveReadOnlyMounts(true); } + public A withRecursiveReadOnlyMounts(Boolean recursiveReadOnlyMounts) { + this.recursiveReadOnlyMounts = recursiveReadOnlyMounts; + return (A) this; + } + public A withUserNamespaces() { return withUserNamespaces(true); } - + public A withUserNamespaces(Boolean userNamespaces) { + this.userNamespaces = userNamespaces; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFluent.java index 1d8709cd2e..605c4085a0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFluent.java @@ -1,27 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1NodeRuntimeHandlerFluent> extends BaseFluent{ + + private V1NodeRuntimeHandlerFeaturesBuilder features; + private String name; + public V1NodeRuntimeHandlerFluent() { } public V1NodeRuntimeHandlerFluent(V1NodeRuntimeHandler instance) { this.copyInstance(instance); } - private V1NodeRuntimeHandlerFeaturesBuilder features; - private String name; + + public V1NodeRuntimeHandlerFeatures buildFeatures() { + return this.features != null ? this.features.build() : null; + } protected void copyInstance(V1NodeRuntimeHandler instance) { instance = instance != null ? instance : new V1NodeRuntimeHandler(); @@ -31,34 +37,6 @@ protected void copyInstance(V1NodeRuntimeHandler instance) { } } - public V1NodeRuntimeHandlerFeatures buildFeatures() { - return this.features != null ? this.features.build() : null; - } - - public A withFeatures(V1NodeRuntimeHandlerFeatures features) { - this._visitables.remove("features"); - if (features != null) { - this.features = new V1NodeRuntimeHandlerFeaturesBuilder(features); - this._visitables.get("features").add(this.features); - } else { - this.features = null; - this._visitables.get("features").remove(this.features); - } - return (A) this; - } - - public boolean hasFeatures() { - return this.features != null; - } - - public FeaturesNested withNewFeatures() { - return new FeaturesNested(null); - } - - public FeaturesNested withNewFeaturesLike(V1NodeRuntimeHandlerFeatures item) { - return new FeaturesNested(item); - } - public FeaturesNested editFeatures() { return this.withNewFeaturesLike(Optional.ofNullable(this.buildFeatures()).orElse(null)); } @@ -71,19 +49,6 @@ public FeaturesNested editOrNewFeaturesLike(V1NodeRuntimeHandlerFeatures item return this.withNewFeaturesLike(Optional.ofNullable(this.buildFeatures()).orElse(item)); } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -104,6 +69,18 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public boolean hasFeatures() { + return this.features != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(features, name); } @@ -123,12 +100,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withFeatures(V1NodeRuntimeHandlerFeatures features) { + this._visitables.remove("features"); + if (features != null) { + this.features = new V1NodeRuntimeHandlerFeaturesBuilder(features); + this._visitables.get("features").add(this.features); + } else { + this.features = null; + this._visitables.get("features").remove(this.features); + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public FeaturesNested withNewFeatures() { + return new FeaturesNested(null); + } + + public FeaturesNested withNewFeaturesLike(V1NodeRuntimeHandlerFeatures item) { + return new FeaturesNested(item); + } public class FeaturesNested extends V1NodeRuntimeHandlerFeaturesFluent> implements Nested{ + + V1NodeRuntimeHandlerFeaturesBuilder builder; + FeaturesNested(V1NodeRuntimeHandlerFeatures item) { this.builder = new V1NodeRuntimeHandlerFeaturesBuilder(this, item); } - V1NodeRuntimeHandlerFeaturesBuilder builder; - + public N and() { return (N) V1NodeRuntimeHandlerFluent.this.withFeatures(builder.build()); } @@ -137,7 +141,5 @@ public N endFeatures() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java index d13aeb0a81..21662ecdf7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NodeSelectorBuilder extends V1NodeSelectorFluent implements VisitableBuilder{ + + V1NodeSelectorFluent fluent; + public V1NodeSelectorBuilder() { this(new V1NodeSelector()); } @@ -11,22 +14,20 @@ public V1NodeSelectorBuilder(V1NodeSelectorFluent fluent) { this(fluent, new V1NodeSelector()); } - public V1NodeSelectorBuilder(V1NodeSelectorFluent fluent,V1NodeSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeSelectorBuilder(V1NodeSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeSelectorFluent fluent; + public V1NodeSelectorBuilder(V1NodeSelectorFluent fluent,V1NodeSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeSelector build() { V1NodeSelector buildable = new V1NodeSelector(); buildable.setNodeSelectorTerms(fluent.buildNodeSelectorTerms()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java index a1b29848a9..09ec5c358c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java @@ -1,67 +1,52 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1NodeSelectorFluent> extends BaseFluent{ + + private ArrayList nodeSelectorTerms; + public V1NodeSelectorFluent() { } public V1NodeSelectorFluent(V1NodeSelector instance) { this.copyInstance(instance); } - private ArrayList nodeSelectorTerms; - - protected void copyInstance(V1NodeSelector instance) { - instance = instance != null ? instance : new V1NodeSelector(); - if (instance != null) { - this.withNodeSelectorTerms(instance.getNodeSelectorTerms()); - } - } - - public A addToNodeSelectorTerms(int index,V1NodeSelectorTerm item) { + + public A addAllToNodeSelectorTerms(Collection items) { if (this.nodeSelectorTerms == null) { this.nodeSelectorTerms = new ArrayList(); } - V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); - if (index < 0 || index >= nodeSelectorTerms.size()) { - _visitables.get("nodeSelectorTerms").add(builder); - nodeSelectorTerms.add(builder); - } else { + for (V1NodeSelectorTerm item : items) { + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); _visitables.get("nodeSelectorTerms").add(builder); - nodeSelectorTerms.add(index, builder); + this.nodeSelectorTerms.add(builder); } return (A) this; } - public A setToNodeSelectorTerms(int index,V1NodeSelectorTerm item) { - if (this.nodeSelectorTerms == null) { - this.nodeSelectorTerms = new ArrayList(); - } - V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); - if (index < 0 || index >= nodeSelectorTerms.size()) { - _visitables.get("nodeSelectorTerms").add(builder); - nodeSelectorTerms.add(builder); - } else { - _visitables.get("nodeSelectorTerms").add(builder); - nodeSelectorTerms.set(index, builder); - } - return (A) this; + public NodeSelectorTermsNested addNewNodeSelectorTerm() { + return new NodeSelectorTermsNested(-1, null); + } + + public NodeSelectorTermsNested addNewNodeSelectorTermLike(V1NodeSelectorTerm item) { + return new NodeSelectorTermsNested(-1, item); } public A addToNodeSelectorTerms(V1NodeSelectorTerm... items) { @@ -76,66 +61,21 @@ public A addToNodeSelectorTerms(V1NodeSelectorTerm... items) { return (A) this; } - public A addAllToNodeSelectorTerms(Collection items) { + public A addToNodeSelectorTerms(int index,V1NodeSelectorTerm item) { if (this.nodeSelectorTerms == null) { this.nodeSelectorTerms = new ArrayList(); } - for (V1NodeSelectorTerm item : items) { - V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); + if (index < 0 || index >= nodeSelectorTerms.size()) { _visitables.get("nodeSelectorTerms").add(builder); - this.nodeSelectorTerms.add(builder); - } - return (A) this; - } - - public A removeFromNodeSelectorTerms(V1NodeSelectorTerm... items) { - if (this.nodeSelectorTerms == null) { - return (A) this; - } - for (V1NodeSelectorTerm item : items) { - V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); - _visitables.get("nodeSelectorTerms").remove(builder); - this.nodeSelectorTerms.remove(builder); - } - return (A) this; - } - - public A removeAllFromNodeSelectorTerms(Collection items) { - if (this.nodeSelectorTerms == null) { - return (A) this; - } - for (V1NodeSelectorTerm item : items) { - V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); - _visitables.get("nodeSelectorTerms").remove(builder); - this.nodeSelectorTerms.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromNodeSelectorTerms(Predicate predicate) { - if (nodeSelectorTerms == null) { - return (A) this; - } - Iterator each = nodeSelectorTerms.iterator(); - List visitables = _visitables.get("nodeSelectorTerms"); - while (each.hasNext()) { - V1NodeSelectorTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + nodeSelectorTerms.add(builder); + } else { + _visitables.get("nodeSelectorTerms").add(builder); + nodeSelectorTerms.add(index, builder); } return (A) this; } - public List buildNodeSelectorTerms() { - return this.nodeSelectorTerms != null ? build(nodeSelectorTerms) : null; - } - - public V1NodeSelectorTerm buildNodeSelectorTerm(int index) { - return this.nodeSelectorTerms.get(index).build(); - } - public V1NodeSelectorTerm buildFirstNodeSelectorTerm() { return this.nodeSelectorTerms.get(0).build(); } @@ -153,64 +93,19 @@ public V1NodeSelectorTerm buildMatchingNodeSelectorTerm(Predicate predicate) { - for (V1NodeSelectorTermBuilder item : nodeSelectorTerms) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withNodeSelectorTerms(List nodeSelectorTerms) { - if (this.nodeSelectorTerms != null) { - this._visitables.get("nodeSelectorTerms").clear(); - } - if (nodeSelectorTerms != null) { - this.nodeSelectorTerms = new ArrayList(); - for (V1NodeSelectorTerm item : nodeSelectorTerms) { - this.addToNodeSelectorTerms(item); - } - } else { - this.nodeSelectorTerms = null; - } - return (A) this; - } - - public A withNodeSelectorTerms(V1NodeSelectorTerm... nodeSelectorTerms) { - if (this.nodeSelectorTerms != null) { - this.nodeSelectorTerms.clear(); - _visitables.remove("nodeSelectorTerms"); - } - if (nodeSelectorTerms != null) { - for (V1NodeSelectorTerm item : nodeSelectorTerms) { - this.addToNodeSelectorTerms(item); - } - } - return (A) this; - } - - public boolean hasNodeSelectorTerms() { - return this.nodeSelectorTerms != null && !(this.nodeSelectorTerms.isEmpty()); - } - - public NodeSelectorTermsNested addNewNodeSelectorTerm() { - return new NodeSelectorTermsNested(-1, null); - } - - public NodeSelectorTermsNested addNewNodeSelectorTermLike(V1NodeSelectorTerm item) { - return new NodeSelectorTermsNested(-1, item); + public V1NodeSelectorTerm buildNodeSelectorTerm(int index) { + return this.nodeSelectorTerms.get(index).build(); } - public NodeSelectorTermsNested setNewNodeSelectorTermLike(int index,V1NodeSelectorTerm item) { - return new NodeSelectorTermsNested(index, item); + public List buildNodeSelectorTerms() { + return this.nodeSelectorTerms != null ? build(nodeSelectorTerms) : null; } - public NodeSelectorTermsNested editNodeSelectorTerm(int index) { - if (index <= nodeSelectorTerms.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "nodeSelectorTerms")); + protected void copyInstance(V1NodeSelector instance) { + instance = instance != null ? instance : new V1NodeSelector(); + if (instance != null) { + this.withNodeSelectorTerms(instance.getNodeSelectorTerms()); } - return this.setNewNodeSelectorTermLike(index, this.buildNodeSelectorTerm(index)); } public NodeSelectorTermsNested editFirstNodeSelectorTerm() { @@ -242,6 +137,13 @@ public NodeSelectorTermsNested editMatchingNodeSelectorTerm(Predicate editNodeSelectorTerm(int index) { + if (nodeSelectorTerms.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "nodeSelectorTerms")); + } + return this.setNewNodeSelectorTermLike(index, this.buildNodeSelectorTerm(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -259,10 +161,82 @@ public boolean equals(Object o) { return true; } + public boolean hasMatchingNodeSelectorTerm(Predicate predicate) { + for (V1NodeSelectorTermBuilder item : nodeSelectorTerms) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNodeSelectorTerms() { + return this.nodeSelectorTerms != null && !(this.nodeSelectorTerms.isEmpty()); + } + public int hashCode() { return Objects.hash(nodeSelectorTerms); } + public A removeAllFromNodeSelectorTerms(Collection items) { + if (this.nodeSelectorTerms == null) { + return (A) this; + } + for (V1NodeSelectorTerm item : items) { + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); + _visitables.get("nodeSelectorTerms").remove(builder); + this.nodeSelectorTerms.remove(builder); + } + return (A) this; + } + + public A removeFromNodeSelectorTerms(V1NodeSelectorTerm... items) { + if (this.nodeSelectorTerms == null) { + return (A) this; + } + for (V1NodeSelectorTerm item : items) { + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); + _visitables.get("nodeSelectorTerms").remove(builder); + this.nodeSelectorTerms.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromNodeSelectorTerms(Predicate predicate) { + if (nodeSelectorTerms == null) { + return (A) this; + } + Iterator each = nodeSelectorTerms.iterator(); + List visitables = _visitables.get("nodeSelectorTerms"); + while (each.hasNext()) { + V1NodeSelectorTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public NodeSelectorTermsNested setNewNodeSelectorTermLike(int index,V1NodeSelectorTerm item) { + return new NodeSelectorTermsNested(index, item); + } + + public A setToNodeSelectorTerms(int index,V1NodeSelectorTerm item) { + if (this.nodeSelectorTerms == null) { + this.nodeSelectorTerms = new ArrayList(); + } + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); + if (index < 0 || index >= nodeSelectorTerms.size()) { + _visitables.get("nodeSelectorTerms").add(builder); + nodeSelectorTerms.add(builder); + } else { + _visitables.get("nodeSelectorTerms").add(builder); + nodeSelectorTerms.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -273,14 +247,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withNodeSelectorTerms(List nodeSelectorTerms) { + if (this.nodeSelectorTerms != null) { + this._visitables.get("nodeSelectorTerms").clear(); + } + if (nodeSelectorTerms != null) { + this.nodeSelectorTerms = new ArrayList(); + for (V1NodeSelectorTerm item : nodeSelectorTerms) { + this.addToNodeSelectorTerms(item); + } + } else { + this.nodeSelectorTerms = null; + } + return (A) this; + } + + public A withNodeSelectorTerms(V1NodeSelectorTerm... nodeSelectorTerms) { + if (this.nodeSelectorTerms != null) { + this.nodeSelectorTerms.clear(); + _visitables.remove("nodeSelectorTerms"); + } + if (nodeSelectorTerms != null) { + for (V1NodeSelectorTerm item : nodeSelectorTerms) { + this.addToNodeSelectorTerms(item); + } + } + return (A) this; + } public class NodeSelectorTermsNested extends V1NodeSelectorTermFluent> implements Nested{ + + V1NodeSelectorTermBuilder builder; + int index; + NodeSelectorTermsNested(int index,V1NodeSelectorTerm item) { this.index = index; this.builder = new V1NodeSelectorTermBuilder(this, item); } - V1NodeSelectorTermBuilder builder; - int index; - + public N and() { return (N) V1NodeSelectorFluent.this.setToNodeSelectorTerms(index, builder.build()); } @@ -289,7 +293,5 @@ public N endNodeSelectorTerm() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java index 92da00ebe5..039ceda2ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NodeSelectorRequirementBuilder extends V1NodeSelectorRequirementFluent implements VisitableBuilder{ + + V1NodeSelectorRequirementFluent fluent; + public V1NodeSelectorRequirementBuilder() { this(new V1NodeSelectorRequirement()); } @@ -11,17 +14,16 @@ public V1NodeSelectorRequirementBuilder(V1NodeSelectorRequirementFluent fluen this(fluent, new V1NodeSelectorRequirement()); } - public V1NodeSelectorRequirementBuilder(V1NodeSelectorRequirementFluent fluent,V1NodeSelectorRequirement instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeSelectorRequirementBuilder(V1NodeSelectorRequirement instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeSelectorRequirementFluent fluent; + public V1NodeSelectorRequirementBuilder(V1NodeSelectorRequirementFluent fluent,V1NodeSelectorRequirement instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeSelectorRequirement build() { V1NodeSelectorRequirement buildable = new V1NodeSelectorRequirement(); buildable.setKey(fluent.getKey()); @@ -30,5 +32,4 @@ public V1NodeSelectorRequirement build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java index f031cfb5b8..6d85884f89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,64 +16,25 @@ */ @SuppressWarnings("unchecked") public class V1NodeSelectorRequirementFluent> extends BaseFluent{ - public V1NodeSelectorRequirementFluent() { - } - - public V1NodeSelectorRequirementFluent(V1NodeSelectorRequirement instance) { - this.copyInstance(instance); - } + private String key; private String operator; private List values; - - protected void copyInstance(V1NodeSelectorRequirement instance) { - instance = instance != null ? instance : new V1NodeSelectorRequirement(); - if (instance != null) { - this.withKey(instance.getKey()); - this.withOperator(instance.getOperator()); - this.withValues(instance.getValues()); - } - } - - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public String getOperator() { - return this.operator; - } - - public A withOperator(String operator) { - this.operator = operator; - return (A) this; + + public V1NodeSelectorRequirementFluent() { } - public boolean hasOperator() { - return this.operator != null; + public V1NodeSelectorRequirementFluent(V1NodeSelectorRequirement instance) { + this.copyInstance(instance); } - - public A addToValues(int index,String item) { + + public A addAllToValues(Collection items) { if (this.values == null) { this.values = new ArrayList(); } - this.values.add(index, item); - return (A) this; - } - - public A setToValues(int index,String item) { - if (this.values == null) { - this.values = new ArrayList(); + for (String item : items) { + this.values.add(item); } - this.values.set(index, item); return (A) this; } @@ -87,48 +48,54 @@ public A addToValues(String... items) { return (A) this; } - public A addAllToValues(Collection items) { + public A addToValues(int index,String item) { if (this.values == null) { this.values = new ArrayList(); } - for (String item : items) { - this.values.add(item); - } + this.values.add(index, item); return (A) this; } - public A removeFromValues(String... items) { - if (this.values == null) { - return (A) this; - } - for (String item : items) { - this.values.remove(item); + protected void copyInstance(V1NodeSelectorRequirement instance) { + instance = instance != null ? instance : new V1NodeSelectorRequirement(); + if (instance != null) { + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withValues(instance.getValues()); } - return (A) this; } - public A removeAllFromValues(Collection items) { - if (this.values == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.values.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public List getValues() { - return this.values; - } - - public String getValue(int index) { - return this.values.get(index); + if (!(super.equals(o))) { + return false; + } + V1NodeSelectorRequirementFluent that = (V1NodeSelectorRequirementFluent) o; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } + return true; } public String getFirstValue() { return this.values.get(0); } + public String getKey() { + return this.key; + } + public String getLastValue() { return this.values.get(values.size() - 1); } @@ -142,6 +109,22 @@ public String getMatchingValue(Predicate predicate) { return null; } + public String getOperator() { + return this.operator; + } + + public String getValue(int index) { + return this.values.get(index); + } + + public List getValues() { + return this.values; + } + + public boolean hasKey() { + return this.key != null; + } + public boolean hasMatchingValue(Predicate predicate) { for (String item : values) { if (predicate.test(item)) { @@ -151,60 +134,44 @@ public boolean hasMatchingValue(Predicate predicate) { return false; } - public A withValues(List values) { - if (values != null) { - this.values = new ArrayList(); - for (String item : values) { - this.addToValues(item); - } - } else { - this.values = null; - } - return (A) this; - } - - public A withValues(String... values) { - if (this.values != null) { - this.values.clear(); - _visitables.remove("values"); - } - if (values != null) { - for (String item : values) { - this.addToValues(item); - } - } - return (A) this; + public boolean hasOperator() { + return this.operator != null; } public boolean hasValues() { return this.values != null && !(this.values.isEmpty()); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; + public int hashCode() { + return Objects.hash(key, operator, values); + } + + public A removeAllFromValues(Collection items) { + if (this.values == null) { + return (A) this; } - V1NodeSelectorRequirementFluent that = (V1NodeSelectorRequirementFluent) o; - if (!(Objects.equals(key, that.key))) { - return false; + for (String item : items) { + this.values.remove(item); } - if (!(Objects.equals(operator, that.operator))) { - return false; + return (A) this; + } + + public A removeFromValues(String... items) { + if (this.values == null) { + return (A) this; } - if (!(Objects.equals(values, that.values))) { - return false; + for (String item : items) { + this.values.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(key, operator, values); + public A setToValues(int index,String item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; } public String toString() { @@ -228,5 +195,39 @@ public String toString() { return sb.toString(); } - + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public A withValues(List values) { + if (values != null) { + this.values = new ArrayList(); + for (String item : values) { + this.addToValues(item); + } + } else { + this.values = null; + } + return (A) this; + } + + public A withValues(String... values) { + if (this.values != null) { + this.values.clear(); + _visitables.remove("values"); + } + if (values != null) { + for (String item : values) { + this.addToValues(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java index af9c29504d..b7f900f442 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NodeSelectorTermBuilder extends V1NodeSelectorTermFluent implements VisitableBuilder{ + + V1NodeSelectorTermFluent fluent; + public V1NodeSelectorTermBuilder() { this(new V1NodeSelectorTerm()); } @@ -11,17 +14,16 @@ public V1NodeSelectorTermBuilder(V1NodeSelectorTermFluent fluent) { this(fluent, new V1NodeSelectorTerm()); } - public V1NodeSelectorTermBuilder(V1NodeSelectorTermFluent fluent,V1NodeSelectorTerm instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeSelectorTermBuilder(V1NodeSelectorTerm instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeSelectorTermFluent fluent; + public V1NodeSelectorTermBuilder(V1NodeSelectorTermFluent fluent,V1NodeSelectorTerm instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeSelectorTerm build() { V1NodeSelectorTerm buildable = new V1NodeSelectorTerm(); buildable.setMatchExpressions(fluent.buildMatchExpressions()); @@ -29,5 +31,4 @@ public V1NodeSelectorTerm build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java index 518b9d3897..8f67af06e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java @@ -1,71 +1,75 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1NodeSelectorTermFluent> extends BaseFluent{ + + private ArrayList matchExpressions; + private ArrayList matchFields; + public V1NodeSelectorTermFluent() { } public V1NodeSelectorTermFluent(V1NodeSelectorTerm instance) { this.copyInstance(instance); } - private ArrayList matchExpressions; - private ArrayList matchFields; - - protected void copyInstance(V1NodeSelectorTerm instance) { - instance = instance != null ? instance : new V1NodeSelectorTerm(); - if (instance != null) { - this.withMatchExpressions(instance.getMatchExpressions()); - this.withMatchFields(instance.getMatchFields()); - } - } - - public A addToMatchExpressions(int index,V1NodeSelectorRequirement item) { + + public A addAllToMatchExpressions(Collection items) { if (this.matchExpressions == null) { this.matchExpressions = new ArrayList(); } - V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { - _visitables.get("matchExpressions").add(builder); - matchExpressions.add(builder); - } else { + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); _visitables.get("matchExpressions").add(builder); - matchExpressions.add(index, builder); + this.matchExpressions.add(builder); } return (A) this; } - public A setToMatchExpressions(int index,V1NodeSelectorRequirement item) { - if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); + public A addAllToMatchFields(Collection items) { + if (this.matchFields == null) { + this.matchFields = new ArrayList(); } - V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { - _visitables.get("matchExpressions").add(builder); - matchExpressions.add(builder); - } else { - _visitables.get("matchExpressions").add(builder); - matchExpressions.set(index, builder); + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + _visitables.get("matchFields").add(builder); + this.matchFields.add(builder); } return (A) this; } + public MatchExpressionsNested addNewMatchExpression() { + return new MatchExpressionsNested(-1, null); + } + + public MatchExpressionsNested addNewMatchExpressionLike(V1NodeSelectorRequirement item) { + return new MatchExpressionsNested(-1, item); + } + + public MatchFieldsNested addNewMatchField() { + return new MatchFieldsNested(-1, null); + } + + public MatchFieldsNested addNewMatchFieldLike(V1NodeSelectorRequirement item) { + return new MatchFieldsNested(-1, item); + } + public A addToMatchExpressions(V1NodeSelectorRequirement... items) { if (this.matchExpressions == null) { this.matchExpressions = new ArrayList(); @@ -78,72 +82,78 @@ public A addToMatchExpressions(V1NodeSelectorRequirement... items) { return (A) this; } - public A addAllToMatchExpressions(Collection items) { + public A addToMatchExpressions(int index,V1NodeSelectorRequirement item) { if (this.matchExpressions == null) { this.matchExpressions = new ArrayList(); } - for (V1NodeSelectorRequirement item : items) { - V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); - this.matchExpressions.add(builder); + matchExpressions.add(builder); + } else { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(index, builder); } return (A) this; } - public A removeFromMatchExpressions(V1NodeSelectorRequirement... items) { - if (this.matchExpressions == null) { - return (A) this; + public A addToMatchFields(V1NodeSelectorRequirement... items) { + if (this.matchFields == null) { + this.matchFields = new ArrayList(); } for (V1NodeSelectorRequirement item : items) { V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").remove(builder); - this.matchExpressions.remove(builder); + _visitables.get("matchFields").add(builder); + this.matchFields.add(builder); } return (A) this; } - public A removeAllFromMatchExpressions(Collection items) { - if (this.matchExpressions == null) { - return (A) this; + public A addToMatchFields(int index,V1NodeSelectorRequirement item) { + if (this.matchFields == null) { + this.matchFields = new ArrayList(); } - for (V1NodeSelectorRequirement item : items) { - V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").remove(builder); - this.matchExpressions.remove(builder); + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + if (index < 0 || index >= matchFields.size()) { + _visitables.get("matchFields").add(builder); + matchFields.add(builder); + } else { + _visitables.get("matchFields").add(builder); + matchFields.add(index, builder); } return (A) this; } - public A removeMatchingFromMatchExpressions(Predicate predicate) { - if (matchExpressions == null) { - return (A) this; - } - Iterator each = matchExpressions.iterator(); - List visitables = _visitables.get("matchExpressions"); - while (each.hasNext()) { - V1NodeSelectorRequirementBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1NodeSelectorRequirement buildFirstMatchExpression() { + return this.matchExpressions.get(0).build(); } - public List buildMatchExpressions() { - return this.matchExpressions != null ? build(matchExpressions) : null; + public V1NodeSelectorRequirement buildFirstMatchField() { + return this.matchFields.get(0).build(); + } + + public V1NodeSelectorRequirement buildLastMatchExpression() { + return this.matchExpressions.get(matchExpressions.size() - 1).build(); + } + + public V1NodeSelectorRequirement buildLastMatchField() { + return this.matchFields.get(matchFields.size() - 1).build(); } public V1NodeSelectorRequirement buildMatchExpression(int index) { return this.matchExpressions.get(index).build(); } - public V1NodeSelectorRequirement buildFirstMatchExpression() { - return this.matchExpressions.get(0).build(); + public List buildMatchExpressions() { + return this.matchExpressions != null ? build(matchExpressions) : null; } - public V1NodeSelectorRequirement buildLastMatchExpression() { - return this.matchExpressions.get(matchExpressions.size() - 1).build(); + public V1NodeSelectorRequirement buildMatchField(int index) { + return this.matchFields.get(index).build(); + } + + public List buildMatchFields() { + return this.matchFields != null ? build(matchFields) : null; } public V1NodeSelectorRequirement buildMatchingMatchExpression(Predicate predicate) { @@ -155,79 +165,65 @@ public V1NodeSelectorRequirement buildMatchingMatchExpression(Predicate predicate) { - for (V1NodeSelectorRequirementBuilder item : matchExpressions) { + public V1NodeSelectorRequirement buildMatchingMatchField(Predicate predicate) { + for (V1NodeSelectorRequirementBuilder item : matchFields) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withMatchExpressions(List matchExpressions) { - if (this.matchExpressions != null) { - this._visitables.get("matchExpressions").clear(); - } - if (matchExpressions != null) { - this.matchExpressions = new ArrayList(); - for (V1NodeSelectorRequirement item : matchExpressions) { - this.addToMatchExpressions(item); - } - } else { - this.matchExpressions = null; + protected void copyInstance(V1NodeSelectorTerm instance) { + instance = instance != null ? instance : new V1NodeSelectorTerm(); + if (instance != null) { + this.withMatchExpressions(instance.getMatchExpressions()); + this.withMatchFields(instance.getMatchFields()); } - return (A) this; } - public A withMatchExpressions(V1NodeSelectorRequirement... matchExpressions) { - if (this.matchExpressions != null) { - this.matchExpressions.clear(); - _visitables.remove("matchExpressions"); - } - if (matchExpressions != null) { - for (V1NodeSelectorRequirement item : matchExpressions) { - this.addToMatchExpressions(item); - } + public MatchExpressionsNested editFirstMatchExpression() { + if (matchExpressions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchExpressions")); } - return (A) this; - } - - public boolean hasMatchExpressions() { - return this.matchExpressions != null && !(this.matchExpressions.isEmpty()); + return this.setNewMatchExpressionLike(0, this.buildMatchExpression(0)); } - public MatchExpressionsNested addNewMatchExpression() { - return new MatchExpressionsNested(-1, null); + public MatchFieldsNested editFirstMatchField() { + if (matchFields.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchFields")); + } + return this.setNewMatchFieldLike(0, this.buildMatchField(0)); } - public MatchExpressionsNested addNewMatchExpressionLike(V1NodeSelectorRequirement item) { - return new MatchExpressionsNested(-1, item); + public MatchExpressionsNested editLastMatchExpression() { + int index = matchExpressions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } - public MatchExpressionsNested setNewMatchExpressionLike(int index,V1NodeSelectorRequirement item) { - return new MatchExpressionsNested(index, item); + public MatchFieldsNested editLastMatchField() { + int index = matchFields.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchFields")); + } + return this.setNewMatchFieldLike(index, this.buildMatchField(index)); } public MatchExpressionsNested editMatchExpression(int index) { - if (index <= matchExpressions.size()) { + if (matchExpressions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchExpressions")); } return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } - public MatchExpressionsNested editFirstMatchExpression() { - if (matchExpressions.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchExpressions")); - } - return this.setNewMatchExpressionLike(0, this.buildMatchExpression(0)); - } - - public MatchExpressionsNested editLastMatchExpression() { - int index = matchExpressions.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchExpressions")); + public MatchFieldsNested editMatchField(int index) { + if (matchFields.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchFields")); } - return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); + return this.setNewMatchFieldLike(index, this.buildMatchField(index)); } public MatchExpressionsNested editMatchingMatchExpression(Predicate predicate) { @@ -244,73 +240,107 @@ public MatchExpressionsNested editMatchingMatchExpression(Predicate editMatchingMatchField(Predicate predicate) { + int index = -1; + for (int i = 0;i < matchFields.size();i++) { + if (predicate.test(matchFields.get(i))) { + index = i; + break; + } } - V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - if (index < 0 || index >= matchFields.size()) { - _visitables.get("matchFields").add(builder); - matchFields.add(builder); - } else { - _visitables.get("matchFields").add(builder); - matchFields.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "matchFields")); } - return (A) this; + return this.setNewMatchFieldLike(index, this.buildMatchField(index)); } - public A setToMatchFields(int index,V1NodeSelectorRequirement item) { - if (this.matchFields == null) { - this.matchFields = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - if (index < 0 || index >= matchFields.size()) { - _visitables.get("matchFields").add(builder); - matchFields.add(builder); - } else { - _visitables.get("matchFields").add(builder); - matchFields.set(index, builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1NodeSelectorTermFluent that = (V1NodeSelectorTermFluent) o; + if (!(Objects.equals(matchExpressions, that.matchExpressions))) { + return false; + } + if (!(Objects.equals(matchFields, that.matchFields))) { + return false; + } + return true; } - public A addToMatchFields(V1NodeSelectorRequirement... items) { - if (this.matchFields == null) { - this.matchFields = new ArrayList(); + public boolean hasMatchExpressions() { + return this.matchExpressions != null && !(this.matchExpressions.isEmpty()); + } + + public boolean hasMatchFields() { + return this.matchFields != null && !(this.matchFields.isEmpty()); + } + + public boolean hasMatchingMatchExpression(Predicate predicate) { + for (V1NodeSelectorRequirementBuilder item : matchExpressions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingMatchField(Predicate predicate) { + for (V1NodeSelectorRequirementBuilder item : matchFields) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public int hashCode() { + return Objects.hash(matchExpressions, matchFields); + } + + public A removeAllFromMatchExpressions(Collection items) { + if (this.matchExpressions == null) { + return (A) this; } for (V1NodeSelectorRequirement item : items) { V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables.get("matchFields").add(builder); - this.matchFields.add(builder); + _visitables.get("matchExpressions").remove(builder); + this.matchExpressions.remove(builder); } return (A) this; } - public A addAllToMatchFields(Collection items) { + public A removeAllFromMatchFields(Collection items) { if (this.matchFields == null) { - this.matchFields = new ArrayList(); + return (A) this; } for (V1NodeSelectorRequirement item : items) { V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables.get("matchFields").add(builder); - this.matchFields.add(builder); + _visitables.get("matchFields").remove(builder); + this.matchFields.remove(builder); } return (A) this; } - public A removeFromMatchFields(V1NodeSelectorRequirement... items) { - if (this.matchFields == null) { + public A removeFromMatchExpressions(V1NodeSelectorRequirement... items) { + if (this.matchExpressions == null) { return (A) this; } for (V1NodeSelectorRequirement item : items) { V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables.get("matchFields").remove(builder); - this.matchFields.remove(builder); + _visitables.get("matchExpressions").remove(builder); + this.matchExpressions.remove(builder); } return (A) this; } - public A removeAllFromMatchFields(Collection items) { + public A removeFromMatchFields(V1NodeSelectorRequirement... items) { if (this.matchFields == null) { return (A) this; } @@ -322,6 +352,22 @@ public A removeAllFromMatchFields(Collection items) { return (A) this; } + public A removeMatchingFromMatchExpressions(Predicate predicate) { + if (matchExpressions == null) { + return (A) this; + } + Iterator each = matchExpressions.iterator(); + List visitables = _visitables.get("matchExpressions"); + while (each.hasNext()) { + V1NodeSelectorRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + public A removeMatchingFromMatchFields(Predicate predicate) { if (matchFields == null) { return (A) this; @@ -338,38 +384,86 @@ public A removeMatchingFromMatchFields(Predicate buildMatchFields() { - return this.matchFields != null ? build(matchFields) : null; + public MatchExpressionsNested setNewMatchExpressionLike(int index,V1NodeSelectorRequirement item) { + return new MatchExpressionsNested(index, item); } - public V1NodeSelectorRequirement buildMatchField(int index) { - return this.matchFields.get(index).build(); + public MatchFieldsNested setNewMatchFieldLike(int index,V1NodeSelectorRequirement item) { + return new MatchFieldsNested(index, item); } - public V1NodeSelectorRequirement buildFirstMatchField() { - return this.matchFields.get(0).build(); + public A setToMatchExpressions(int index,V1NodeSelectorRequirement item) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + if (index < 0 || index >= matchExpressions.size()) { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(builder); + } else { + _visitables.get("matchExpressions").add(builder); + matchExpressions.set(index, builder); + } + return (A) this; } - public V1NodeSelectorRequirement buildLastMatchField() { - return this.matchFields.get(matchFields.size() - 1).build(); + public A setToMatchFields(int index,V1NodeSelectorRequirement item) { + if (this.matchFields == null) { + this.matchFields = new ArrayList(); + } + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + if (index < 0 || index >= matchFields.size()) { + _visitables.get("matchFields").add(builder); + matchFields.add(builder); + } else { + _visitables.get("matchFields").add(builder); + matchFields.set(index, builder); + } + return (A) this; } - public V1NodeSelectorRequirement buildMatchingMatchField(Predicate predicate) { - for (V1NodeSelectorRequirementBuilder item : matchFields) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(matchExpressions == null) && !(matchExpressions.isEmpty())) { + sb.append("matchExpressions:"); + sb.append(matchExpressions); + sb.append(","); + } + if (!(matchFields == null) && !(matchFields.isEmpty())) { + sb.append("matchFields:"); + sb.append(matchFields); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingMatchField(Predicate predicate) { - for (V1NodeSelectorRequirementBuilder item : matchFields) { - if (predicate.test(item)) { - return true; + public A withMatchExpressions(List matchExpressions) { + if (this.matchExpressions != null) { + this._visitables.get("matchExpressions").clear(); + } + if (matchExpressions != null) { + this.matchExpressions = new ArrayList(); + for (V1NodeSelectorRequirement item : matchExpressions) { + this.addToMatchExpressions(item); } + } else { + this.matchExpressions = null; + } + return (A) this; + } + + public A withMatchExpressions(V1NodeSelectorRequirement... matchExpressions) { + if (this.matchExpressions != null) { + this.matchExpressions.clear(); + _visitables.remove("matchExpressions"); + } + if (matchExpressions != null) { + for (V1NodeSelectorRequirement item : matchExpressions) { + this.addToMatchExpressions(item); } - return false; + } + return (A) this; } public A withMatchFields(List matchFields) { @@ -399,106 +493,16 @@ public A withMatchFields(V1NodeSelectorRequirement... matchFields) { } return (A) this; } + public class MatchExpressionsNested extends V1NodeSelectorRequirementFluent> implements Nested{ - public boolean hasMatchFields() { - return this.matchFields != null && !(this.matchFields.isEmpty()); - } - - public MatchFieldsNested addNewMatchField() { - return new MatchFieldsNested(-1, null); - } - - public MatchFieldsNested addNewMatchFieldLike(V1NodeSelectorRequirement item) { - return new MatchFieldsNested(-1, item); - } - - public MatchFieldsNested setNewMatchFieldLike(int index,V1NodeSelectorRequirement item) { - return new MatchFieldsNested(index, item); - } - - public MatchFieldsNested editMatchField(int index) { - if (index <= matchFields.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchFields")); - } - return this.setNewMatchFieldLike(index, this.buildMatchField(index)); - } - - public MatchFieldsNested editFirstMatchField() { - if (matchFields.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchFields")); - } - return this.setNewMatchFieldLike(0, this.buildMatchField(0)); - } - - public MatchFieldsNested editLastMatchField() { - int index = matchFields.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchFields")); - } - return this.setNewMatchFieldLike(index, this.buildMatchField(index)); - } - - public MatchFieldsNested editMatchingMatchField(Predicate predicate) { - int index = -1; - for (int i = 0;i < matchFields.size();i++) { - if (predicate.test(matchFields.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "matchFields")); - } - return this.setNewMatchFieldLike(index, this.buildMatchField(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1NodeSelectorTermFluent that = (V1NodeSelectorTermFluent) o; - if (!(Objects.equals(matchExpressions, that.matchExpressions))) { - return false; - } - if (!(Objects.equals(matchFields, that.matchFields))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(matchExpressions, matchFields); - } + V1NodeSelectorRequirementBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(matchExpressions == null) && !(matchExpressions.isEmpty())) { - sb.append("matchExpressions:"); - sb.append(matchExpressions); - sb.append(","); - } - if (!(matchFields == null) && !(matchFields.isEmpty())) { - sb.append("matchFields:"); - sb.append(matchFields); - } - sb.append("}"); - return sb.toString(); - } - public class MatchExpressionsNested extends V1NodeSelectorRequirementFluent> implements Nested{ MatchExpressionsNested(int index,V1NodeSelectorRequirement item) { this.index = index; this.builder = new V1NodeSelectorRequirementBuilder(this, item); } - V1NodeSelectorRequirementBuilder builder; - int index; - + public N and() { return (N) V1NodeSelectorTermFluent.this.setToMatchExpressions(index, builder.build()); } @@ -507,16 +511,17 @@ public N endMatchExpression() { return and(); } - } public class MatchFieldsNested extends V1NodeSelectorRequirementFluent> implements Nested{ + + V1NodeSelectorRequirementBuilder builder; + int index; + MatchFieldsNested(int index,V1NodeSelectorRequirement item) { this.index = index; this.builder = new V1NodeSelectorRequirementBuilder(this, item); } - V1NodeSelectorRequirementBuilder builder; - int index; - + public N and() { return (N) V1NodeSelectorTermFluent.this.setToMatchFields(index, builder.build()); } @@ -525,7 +530,5 @@ public N endMatchField() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java index 0b67803e7c..8026c30e41 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NodeSpecBuilder extends V1NodeSpecFluent implements VisitableBuilder{ + + V1NodeSpecFluent fluent; + public V1NodeSpecBuilder() { this(new V1NodeSpec()); } @@ -11,17 +14,16 @@ public V1NodeSpecBuilder(V1NodeSpecFluent fluent) { this(fluent, new V1NodeSpec()); } - public V1NodeSpecBuilder(V1NodeSpecFluent fluent,V1NodeSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeSpecBuilder(V1NodeSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeSpecFluent fluent; + public V1NodeSpecBuilder(V1NodeSpecFluent fluent,V1NodeSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeSpec build() { V1NodeSpec buildable = new V1NodeSpec(); buildable.setConfigSource(fluent.buildConfigSource()); @@ -34,5 +36,4 @@ public V1NodeSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java index f84b025a39..9dc6349b1d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Boolean; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1NodeSpecFluent> extends BaseFluent{ - public V1NodeSpecFluent() { - } - - public V1NodeSpecFluent(V1NodeSpec instance) { - this.copyInstance(instance); - } + private V1NodeConfigSourceBuilder configSource; private String externalID; private String podCIDR; @@ -34,100 +29,42 @@ public V1NodeSpecFluent(V1NodeSpec instance) { private String providerID; private ArrayList taints; private Boolean unschedulable; - - protected void copyInstance(V1NodeSpec instance) { - instance = instance != null ? instance : new V1NodeSpec(); - if (instance != null) { - this.withConfigSource(instance.getConfigSource()); - this.withExternalID(instance.getExternalID()); - this.withPodCIDR(instance.getPodCIDR()); - this.withPodCIDRs(instance.getPodCIDRs()); - this.withProviderID(instance.getProviderID()); - this.withTaints(instance.getTaints()); - this.withUnschedulable(instance.getUnschedulable()); - } + + public V1NodeSpecFluent() { } - public V1NodeConfigSource buildConfigSource() { - return this.configSource != null ? this.configSource.build() : null; + public V1NodeSpecFluent(V1NodeSpec instance) { + this.copyInstance(instance); } - - public A withConfigSource(V1NodeConfigSource configSource) { - this._visitables.remove("configSource"); - if (configSource != null) { - this.configSource = new V1NodeConfigSourceBuilder(configSource); - this._visitables.get("configSource").add(this.configSource); - } else { - this.configSource = null; - this._visitables.get("configSource").remove(this.configSource); + + public A addAllToPodCIDRs(Collection items) { + if (this.podCIDRs == null) { + this.podCIDRs = new ArrayList(); + } + for (String item : items) { + this.podCIDRs.add(item); } return (A) this; } - public boolean hasConfigSource() { - return this.configSource != null; - } - - public ConfigSourceNested withNewConfigSource() { - return new ConfigSourceNested(null); - } - - public ConfigSourceNested withNewConfigSourceLike(V1NodeConfigSource item) { - return new ConfigSourceNested(item); - } - - public ConfigSourceNested editConfigSource() { - return this.withNewConfigSourceLike(Optional.ofNullable(this.buildConfigSource()).orElse(null)); - } - - public ConfigSourceNested editOrNewConfigSource() { - return this.withNewConfigSourceLike(Optional.ofNullable(this.buildConfigSource()).orElse(new V1NodeConfigSourceBuilder().build())); - } - - public ConfigSourceNested editOrNewConfigSourceLike(V1NodeConfigSource item) { - return this.withNewConfigSourceLike(Optional.ofNullable(this.buildConfigSource()).orElse(item)); - } - - public String getExternalID() { - return this.externalID; - } - - public A withExternalID(String externalID) { - this.externalID = externalID; - return (A) this; - } - - public boolean hasExternalID() { - return this.externalID != null; - } - - public String getPodCIDR() { - return this.podCIDR; - } - - public A withPodCIDR(String podCIDR) { - this.podCIDR = podCIDR; + public A addAllToTaints(Collection items) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + for (V1Taint item : items) { + V1TaintBuilder builder = new V1TaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); + } return (A) this; } - public boolean hasPodCIDR() { - return this.podCIDR != null; - } - - public A addToPodCIDRs(int index,String item) { - if (this.podCIDRs == null) { - this.podCIDRs = new ArrayList(); - } - this.podCIDRs.add(index, item); - return (A) this; + public TaintsNested addNewTaint() { + return new TaintsNested(-1, null); } - public A setToPodCIDRs(int index,String item) { - if (this.podCIDRs == null) { - this.podCIDRs = new ArrayList(); - } - this.podCIDRs.set(index, item); - return (A) this; + public TaintsNested addNewTaintLike(V1Taint item) { + return new TaintsNested(-1, item); } public A addToPodCIDRs(String... items) { @@ -140,229 +77,222 @@ public A addToPodCIDRs(String... items) { return (A) this; } - public A addAllToPodCIDRs(Collection items) { + public A addToPodCIDRs(int index,String item) { if (this.podCIDRs == null) { this.podCIDRs = new ArrayList(); } - for (String item : items) { - this.podCIDRs.add(item); - } + this.podCIDRs.add(index, item); return (A) this; } - public A removeFromPodCIDRs(String... items) { - if (this.podCIDRs == null) { - return (A) this; + public A addToTaints(V1Taint... items) { + if (this.taints == null) { + this.taints = new ArrayList(); } - for (String item : items) { - this.podCIDRs.remove(item); + for (V1Taint item : items) { + V1TaintBuilder builder = new V1TaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); } return (A) this; } - public A removeAllFromPodCIDRs(Collection items) { - if (this.podCIDRs == null) { - return (A) this; + public A addToTaints(int index,V1Taint item) { + if (this.taints == null) { + this.taints = new ArrayList(); } - for (String item : items) { - this.podCIDRs.remove(item); + V1TaintBuilder builder = new V1TaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.add(index, builder); } return (A) this; } - public List getPodCIDRs() { - return this.podCIDRs; - } - - public String getPodCIDR(int index) { - return this.podCIDRs.get(index); + public V1NodeConfigSource buildConfigSource() { + return this.configSource != null ? this.configSource.build() : null; } - public String getFirstPodCIDR() { - return this.podCIDRs.get(0); + public V1Taint buildFirstTaint() { + return this.taints.get(0).build(); } - public String getLastPodCIDR() { - return this.podCIDRs.get(podCIDRs.size() - 1); + public V1Taint buildLastTaint() { + return this.taints.get(taints.size() - 1).build(); } - public String getMatchingPodCIDR(Predicate predicate) { - for (String item : podCIDRs) { + public V1Taint buildMatchingTaint(Predicate predicate) { + for (V1TaintBuilder item : taints) { if (predicate.test(item)) { - return item; + return item.build(); } } return null; } - public boolean hasMatchingPodCIDR(Predicate predicate) { - for (String item : podCIDRs) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1Taint buildTaint(int index) { + return this.taints.get(index).build(); } - public A withPodCIDRs(List podCIDRs) { - if (podCIDRs != null) { - this.podCIDRs = new ArrayList(); - for (String item : podCIDRs) { - this.addToPodCIDRs(item); - } - } else { - this.podCIDRs = null; - } - return (A) this; + public List buildTaints() { + return this.taints != null ? build(taints) : null; } - public A withPodCIDRs(String... podCIDRs) { - if (this.podCIDRs != null) { - this.podCIDRs.clear(); - _visitables.remove("podCIDRs"); + protected void copyInstance(V1NodeSpec instance) { + instance = instance != null ? instance : new V1NodeSpec(); + if (instance != null) { + this.withConfigSource(instance.getConfigSource()); + this.withExternalID(instance.getExternalID()); + this.withPodCIDR(instance.getPodCIDR()); + this.withPodCIDRs(instance.getPodCIDRs()); + this.withProviderID(instance.getProviderID()); + this.withTaints(instance.getTaints()); + this.withUnschedulable(instance.getUnschedulable()); } - if (podCIDRs != null) { - for (String item : podCIDRs) { - this.addToPodCIDRs(item); - } + } + + public ConfigSourceNested editConfigSource() { + return this.withNewConfigSourceLike(Optional.ofNullable(this.buildConfigSource()).orElse(null)); + } + + public TaintsNested editFirstTaint() { + if (taints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "taints")); } - return (A) this; + return this.setNewTaintLike(0, this.buildTaint(0)); } - public boolean hasPodCIDRs() { - return this.podCIDRs != null && !(this.podCIDRs.isEmpty()); + public TaintsNested editLastTaint() { + int index = taints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); } - public String getProviderID() { - return this.providerID; + public TaintsNested editMatchingTaint(Predicate predicate) { + int index = -1; + for (int i = 0;i < taints.size();i++) { + if (predicate.test(taints.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); } - public A withProviderID(String providerID) { - this.providerID = providerID; - return (A) this; + public ConfigSourceNested editOrNewConfigSource() { + return this.withNewConfigSourceLike(Optional.ofNullable(this.buildConfigSource()).orElse(new V1NodeConfigSourceBuilder().build())); } - public boolean hasProviderID() { - return this.providerID != null; + public ConfigSourceNested editOrNewConfigSourceLike(V1NodeConfigSource item) { + return this.withNewConfigSourceLike(Optional.ofNullable(this.buildConfigSource()).orElse(item)); } - public A addToTaints(int index,V1Taint item) { - if (this.taints == null) { - this.taints = new ArrayList(); - } - V1TaintBuilder builder = new V1TaintBuilder(item); - if (index < 0 || index >= taints.size()) { - _visitables.get("taints").add(builder); - taints.add(builder); - } else { - _visitables.get("taints").add(builder); - taints.add(index, builder); + public TaintsNested editTaint(int index) { + if (taints.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "taints")); } - return (A) this; + return this.setNewTaintLike(index, this.buildTaint(index)); } - public A setToTaints(int index,V1Taint item) { - if (this.taints == null) { - this.taints = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - V1TaintBuilder builder = new V1TaintBuilder(item); - if (index < 0 || index >= taints.size()) { - _visitables.get("taints").add(builder); - taints.add(builder); - } else { - _visitables.get("taints").add(builder); - taints.set(index, builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A addToTaints(V1Taint... items) { - if (this.taints == null) { - this.taints = new ArrayList(); + if (!(super.equals(o))) { + return false; } - for (V1Taint item : items) { - V1TaintBuilder builder = new V1TaintBuilder(item); - _visitables.get("taints").add(builder); - this.taints.add(builder); + V1NodeSpecFluent that = (V1NodeSpecFluent) o; + if (!(Objects.equals(configSource, that.configSource))) { + return false; } - return (A) this; - } - - public A addAllToTaints(Collection items) { - if (this.taints == null) { - this.taints = new ArrayList(); + if (!(Objects.equals(externalID, that.externalID))) { + return false; } - for (V1Taint item : items) { - V1TaintBuilder builder = new V1TaintBuilder(item); - _visitables.get("taints").add(builder); - this.taints.add(builder); + if (!(Objects.equals(podCIDR, that.podCIDR))) { + return false; } - return (A) this; - } - - public A removeFromTaints(V1Taint... items) { - if (this.taints == null) { - return (A) this; + if (!(Objects.equals(podCIDRs, that.podCIDRs))) { + return false; } - for (V1Taint item : items) { - V1TaintBuilder builder = new V1TaintBuilder(item); - _visitables.get("taints").remove(builder); - this.taints.remove(builder); + if (!(Objects.equals(providerID, that.providerID))) { + return false; } - return (A) this; - } - - public A removeAllFromTaints(Collection items) { - if (this.taints == null) { - return (A) this; + if (!(Objects.equals(taints, that.taints))) { + return false; } - for (V1Taint item : items) { - V1TaintBuilder builder = new V1TaintBuilder(item); - _visitables.get("taints").remove(builder); - this.taints.remove(builder); + if (!(Objects.equals(unschedulable, that.unschedulable))) { + return false; } - return (A) this; + return true; } - public A removeMatchingFromTaints(Predicate predicate) { - if (taints == null) { - return (A) this; - } - Iterator each = taints.iterator(); - List visitables = _visitables.get("taints"); - while (each.hasNext()) { - V1TaintBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public String getExternalID() { + return this.externalID; + } + + public String getFirstPodCIDR() { + return this.podCIDRs.get(0); + } + + public String getLastPodCIDR() { + return this.podCIDRs.get(podCIDRs.size() - 1); + } + + public String getMatchingPodCIDR(Predicate predicate) { + for (String item : podCIDRs) { + if (predicate.test(item)) { + return item; } - } - return (A) this; + } + return null; } - public List buildTaints() { - return this.taints != null ? build(taints) : null; + public String getPodCIDR() { + return this.podCIDR; } - public V1Taint buildTaint(int index) { - return this.taints.get(index).build(); + public String getPodCIDR(int index) { + return this.podCIDRs.get(index); } - public V1Taint buildFirstTaint() { - return this.taints.get(0).build(); + public List getPodCIDRs() { + return this.podCIDRs; } - public V1Taint buildLastTaint() { - return this.taints.get(taints.size() - 1).build(); + public String getProviderID() { + return this.providerID; } - public V1Taint buildMatchingTaint(Predicate predicate) { - for (V1TaintBuilder item : taints) { + public Boolean getUnschedulable() { + return this.unschedulable; + } + + public boolean hasConfigSource() { + return this.configSource != null; + } + + public boolean hasExternalID() { + return this.externalID != null; + } + + public boolean hasMatchingPodCIDR(Predicate predicate) { + for (String item : podCIDRs) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingTaint(Predicate predicate) { @@ -374,136 +304,115 @@ public boolean hasMatchingTaint(Predicate predicate) { return false; } - public A withTaints(List taints) { - if (this.taints != null) { - this._visitables.get("taints").clear(); - } - if (taints != null) { - this.taints = new ArrayList(); - for (V1Taint item : taints) { - this.addToTaints(item); - } - } else { - this.taints = null; - } - return (A) this; - } - - public A withTaints(V1Taint... taints) { - if (this.taints != null) { - this.taints.clear(); - _visitables.remove("taints"); - } - if (taints != null) { - for (V1Taint item : taints) { - this.addToTaints(item); - } - } - return (A) this; + public boolean hasPodCIDR() { + return this.podCIDR != null; } - public boolean hasTaints() { - return this.taints != null && !(this.taints.isEmpty()); + public boolean hasPodCIDRs() { + return this.podCIDRs != null && !(this.podCIDRs.isEmpty()); } - public TaintsNested addNewTaint() { - return new TaintsNested(-1, null); + public boolean hasProviderID() { + return this.providerID != null; } - public TaintsNested addNewTaintLike(V1Taint item) { - return new TaintsNested(-1, item); + public boolean hasTaints() { + return this.taints != null && !(this.taints.isEmpty()); } - public TaintsNested setNewTaintLike(int index,V1Taint item) { - return new TaintsNested(index, item); + public boolean hasUnschedulable() { + return this.unschedulable != null; } - public TaintsNested editTaint(int index) { - if (index <= taints.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "taints")); - } - return this.setNewTaintLike(index, this.buildTaint(index)); + public int hashCode() { + return Objects.hash(configSource, externalID, podCIDR, podCIDRs, providerID, taints, unschedulable); } - public TaintsNested editFirstTaint() { - if (taints.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "taints")); + public A removeAllFromPodCIDRs(Collection items) { + if (this.podCIDRs == null) { + return (A) this; } - return this.setNewTaintLike(0, this.buildTaint(0)); + for (String item : items) { + this.podCIDRs.remove(item); + } + return (A) this; } - public TaintsNested editLastTaint() { - int index = taints.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "taints")); + public A removeAllFromTaints(Collection items) { + if (this.taints == null) { + return (A) this; } - return this.setNewTaintLike(index, this.buildTaint(index)); + for (V1Taint item : items) { + V1TaintBuilder builder = new V1TaintBuilder(item); + _visitables.get("taints").remove(builder); + this.taints.remove(builder); + } + return (A) this; } - public TaintsNested editMatchingTaint(Predicate predicate) { - int index = -1; - for (int i = 0;i < taints.size();i++) { - if (predicate.test(taints.get(i))) { - index = i; - break; - } + public A removeFromPodCIDRs(String... items) { + if (this.podCIDRs == null) { + return (A) this; } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "taints")); + for (String item : items) { + this.podCIDRs.remove(item); } - return this.setNewTaintLike(index, this.buildTaint(index)); + return (A) this; } - public Boolean getUnschedulable() { - return this.unschedulable; + public A removeFromTaints(V1Taint... items) { + if (this.taints == null) { + return (A) this; + } + for (V1Taint item : items) { + V1TaintBuilder builder = new V1TaintBuilder(item); + _visitables.get("taints").remove(builder); + this.taints.remove(builder); + } + return (A) this; } - public A withUnschedulable(Boolean unschedulable) { - this.unschedulable = unschedulable; + public A removeMatchingFromTaints(Predicate predicate) { + if (taints == null) { + return (A) this; + } + Iterator each = taints.iterator(); + List visitables = _visitables.get("taints"); + while (each.hasNext()) { + V1TaintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } return (A) this; } - public boolean hasUnschedulable() { - return this.unschedulable != null; + public TaintsNested setNewTaintLike(int index,V1Taint item) { + return new TaintsNested(index, item); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1NodeSpecFluent that = (V1NodeSpecFluent) o; - if (!(Objects.equals(configSource, that.configSource))) { - return false; - } - if (!(Objects.equals(externalID, that.externalID))) { - return false; - } - if (!(Objects.equals(podCIDR, that.podCIDR))) { - return false; - } - if (!(Objects.equals(podCIDRs, that.podCIDRs))) { - return false; - } - if (!(Objects.equals(providerID, that.providerID))) { - return false; - } - if (!(Objects.equals(taints, that.taints))) { - return false; - } - if (!(Objects.equals(unschedulable, that.unschedulable))) { - return false; + public A setToPodCIDRs(int index,String item) { + if (this.podCIDRs == null) { + this.podCIDRs = new ArrayList(); } - return true; + this.podCIDRs.set(index, item); + return (A) this; } - public int hashCode() { - return Objects.hash(configSource, externalID, podCIDR, podCIDRs, providerID, taints, unschedulable); + public A setToTaints(int index,V1Taint item) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + V1TaintBuilder builder = new V1TaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.set(index, builder); + } + return (A) this; } public String toString() { @@ -547,15 +456,110 @@ public String toString() { return sb.toString(); } + public A withConfigSource(V1NodeConfigSource configSource) { + this._visitables.remove("configSource"); + if (configSource != null) { + this.configSource = new V1NodeConfigSourceBuilder(configSource); + this._visitables.get("configSource").add(this.configSource); + } else { + this.configSource = null; + this._visitables.get("configSource").remove(this.configSource); + } + return (A) this; + } + + public A withExternalID(String externalID) { + this.externalID = externalID; + return (A) this; + } + + public ConfigSourceNested withNewConfigSource() { + return new ConfigSourceNested(null); + } + + public ConfigSourceNested withNewConfigSourceLike(V1NodeConfigSource item) { + return new ConfigSourceNested(item); + } + + public A withPodCIDR(String podCIDR) { + this.podCIDR = podCIDR; + return (A) this; + } + + public A withPodCIDRs(List podCIDRs) { + if (podCIDRs != null) { + this.podCIDRs = new ArrayList(); + for (String item : podCIDRs) { + this.addToPodCIDRs(item); + } + } else { + this.podCIDRs = null; + } + return (A) this; + } + + public A withPodCIDRs(String... podCIDRs) { + if (this.podCIDRs != null) { + this.podCIDRs.clear(); + _visitables.remove("podCIDRs"); + } + if (podCIDRs != null) { + for (String item : podCIDRs) { + this.addToPodCIDRs(item); + } + } + return (A) this; + } + + public A withProviderID(String providerID) { + this.providerID = providerID; + return (A) this; + } + + public A withTaints(List taints) { + if (this.taints != null) { + this._visitables.get("taints").clear(); + } + if (taints != null) { + this.taints = new ArrayList(); + for (V1Taint item : taints) { + this.addToTaints(item); + } + } else { + this.taints = null; + } + return (A) this; + } + + public A withTaints(V1Taint... taints) { + if (this.taints != null) { + this.taints.clear(); + _visitables.remove("taints"); + } + if (taints != null) { + for (V1Taint item : taints) { + this.addToTaints(item); + } + } + return (A) this; + } + public A withUnschedulable() { return withUnschedulable(true); } + + public A withUnschedulable(Boolean unschedulable) { + this.unschedulable = unschedulable; + return (A) this; + } public class ConfigSourceNested extends V1NodeConfigSourceFluent> implements Nested{ + + V1NodeConfigSourceBuilder builder; + ConfigSourceNested(V1NodeConfigSource item) { this.builder = new V1NodeConfigSourceBuilder(this, item); } - V1NodeConfigSourceBuilder builder; - + public N and() { return (N) V1NodeSpecFluent.this.withConfigSource(builder.build()); } @@ -564,16 +568,17 @@ public N endConfigSource() { return and(); } - } public class TaintsNested extends V1TaintFluent> implements Nested{ + + V1TaintBuilder builder; + int index; + TaintsNested(int index,V1Taint item) { this.index = index; this.builder = new V1TaintBuilder(this, item); } - V1TaintBuilder builder; - int index; - + public N and() { return (N) V1NodeSpecFluent.this.setToTaints(index, builder.build()); } @@ -582,7 +587,5 @@ public N endTaint() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java index 84ff1db4fb..2b97e227fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NodeStatusBuilder extends V1NodeStatusFluent implements VisitableBuilder{ + + V1NodeStatusFluent fluent; + public V1NodeStatusBuilder() { this(new V1NodeStatus()); } @@ -11,17 +14,16 @@ public V1NodeStatusBuilder(V1NodeStatusFluent fluent) { this(fluent, new V1NodeStatus()); } - public V1NodeStatusBuilder(V1NodeStatusFluent fluent,V1NodeStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeStatusBuilder(V1NodeStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeStatusFluent fluent; + public V1NodeStatusBuilder(V1NodeStatusFluent fluent,V1NodeStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeStatus build() { V1NodeStatus buildable = new V1NodeStatus(); buildable.setAddresses(fluent.buildAddresses()); @@ -40,5 +42,4 @@ public V1NodeStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java index a20b0956a5..463a0c38b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java @@ -1,34 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; +import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.fluent.BaseFluent; -import java.util.List; -import java.util.Optional; -import java.util.Objects; -import java.util.Collection; +import io.kubernetes.client.fluent.Nested; import java.lang.Object; -import java.util.Map; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.RuntimeException; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; -import io.kubernetes.client.custom.Quantity; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1NodeStatusFluent> extends BaseFluent{ - public V1NodeStatusFluent() { - } - - public V1NodeStatusFluent(V1NodeStatus instance) { - this.copyInstance(instance); - } + private ArrayList addresses; private Map allocatable; private Map capacity; @@ -42,466 +37,402 @@ public V1NodeStatusFluent(V1NodeStatus instance) { private ArrayList runtimeHandlers; private ArrayList volumesAttached; private List volumesInUse; - - protected void copyInstance(V1NodeStatus instance) { - instance = instance != null ? instance : new V1NodeStatus(); - if (instance != null) { - this.withAddresses(instance.getAddresses()); - this.withAllocatable(instance.getAllocatable()); - this.withCapacity(instance.getCapacity()); - this.withConditions(instance.getConditions()); - this.withConfig(instance.getConfig()); - this.withDaemonEndpoints(instance.getDaemonEndpoints()); - this.withFeatures(instance.getFeatures()); - this.withImages(instance.getImages()); - this.withNodeInfo(instance.getNodeInfo()); - this.withPhase(instance.getPhase()); - this.withRuntimeHandlers(instance.getRuntimeHandlers()); - this.withVolumesAttached(instance.getVolumesAttached()); - this.withVolumesInUse(instance.getVolumesInUse()); - } + + public V1NodeStatusFluent() { } - public A addToAddresses(int index,V1NodeAddress item) { + public V1NodeStatusFluent(V1NodeStatus instance) { + this.copyInstance(instance); + } + + public A addAllToAddresses(Collection items) { if (this.addresses == null) { this.addresses = new ArrayList(); } - V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - if (index < 0 || index >= addresses.size()) { - _visitables.get("addresses").add(builder); - addresses.add(builder); - } else { + for (V1NodeAddress item : items) { + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); _visitables.get("addresses").add(builder); - addresses.add(index, builder); + this.addresses.add(builder); } return (A) this; } - public A setToAddresses(int index,V1NodeAddress item) { - if (this.addresses == null) { - this.addresses = new ArrayList(); + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); } - V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - if (index < 0 || index >= addresses.size()) { - _visitables.get("addresses").add(builder); - addresses.add(builder); - } else { - _visitables.get("addresses").add(builder); - addresses.set(index, builder); + for (V1NodeCondition item : items) { + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); } return (A) this; } - public A addToAddresses(V1NodeAddress... items) { - if (this.addresses == null) { - this.addresses = new ArrayList(); + public A addAllToImages(Collection items) { + if (this.images == null) { + this.images = new ArrayList(); } - for (V1NodeAddress item : items) { - V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - _visitables.get("addresses").add(builder); - this.addresses.add(builder); + for (V1ContainerImage item : items) { + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); + _visitables.get("images").add(builder); + this.images.add(builder); } return (A) this; } - public A addAllToAddresses(Collection items) { - if (this.addresses == null) { - this.addresses = new ArrayList(); + public A addAllToRuntimeHandlers(Collection items) { + if (this.runtimeHandlers == null) { + this.runtimeHandlers = new ArrayList(); } - for (V1NodeAddress item : items) { - V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - _visitables.get("addresses").add(builder); - this.addresses.add(builder); + for (V1NodeRuntimeHandler item : items) { + V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); + _visitables.get("runtimeHandlers").add(builder); + this.runtimeHandlers.add(builder); } return (A) this; } - public A removeFromAddresses(V1NodeAddress... items) { - if (this.addresses == null) { - return (A) this; + public A addAllToVolumesAttached(Collection items) { + if (this.volumesAttached == null) { + this.volumesAttached = new ArrayList(); } - for (V1NodeAddress item : items) { - V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - _visitables.get("addresses").remove(builder); - this.addresses.remove(builder); + for (V1AttachedVolume item : items) { + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); + _visitables.get("volumesAttached").add(builder); + this.volumesAttached.add(builder); } return (A) this; } - public A removeAllFromAddresses(Collection items) { - if (this.addresses == null) { - return (A) this; + public A addAllToVolumesInUse(Collection items) { + if (this.volumesInUse == null) { + this.volumesInUse = new ArrayList(); } - for (V1NodeAddress item : items) { - V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - _visitables.get("addresses").remove(builder); - this.addresses.remove(builder); + for (String item : items) { + this.volumesInUse.add(item); } return (A) this; } - public A removeMatchingFromAddresses(Predicate predicate) { - if (addresses == null) { - return (A) this; - } - Iterator each = addresses.iterator(); - List visitables = _visitables.get("addresses"); - while (each.hasNext()) { - V1NodeAddressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public AddressesNested addNewAddress() { + return new AddressesNested(-1, null); } - public List buildAddresses() { - return this.addresses != null ? build(addresses) : null; + public AddressesNested addNewAddressLike(V1NodeAddress item) { + return new AddressesNested(-1, item); } - public V1NodeAddress buildAddress(int index) { - return this.addresses.get(index).build(); + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - public V1NodeAddress buildFirstAddress() { - return this.addresses.get(0).build(); + public ConditionsNested addNewConditionLike(V1NodeCondition item) { + return new ConditionsNested(-1, item); } - public V1NodeAddress buildLastAddress() { - return this.addresses.get(addresses.size() - 1).build(); + public ImagesNested addNewImage() { + return new ImagesNested(-1, null); } - public V1NodeAddress buildMatchingAddress(Predicate predicate) { - for (V1NodeAddressBuilder item : addresses) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public ImagesNested addNewImageLike(V1ContainerImage item) { + return new ImagesNested(-1, item); } - public boolean hasMatchingAddress(Predicate predicate) { - for (V1NodeAddressBuilder item : addresses) { - if (predicate.test(item)) { - return true; - } - } - return false; + public RuntimeHandlersNested addNewRuntimeHandler() { + return new RuntimeHandlersNested(-1, null); } - public A withAddresses(List addresses) { - if (this.addresses != null) { - this._visitables.get("addresses").clear(); + public RuntimeHandlersNested addNewRuntimeHandlerLike(V1NodeRuntimeHandler item) { + return new RuntimeHandlersNested(-1, item); + } + + public VolumesAttachedNested addNewVolumesAttached() { + return new VolumesAttachedNested(-1, null); + } + + public VolumesAttachedNested addNewVolumesAttachedLike(V1AttachedVolume item) { + return new VolumesAttachedNested(-1, item); + } + + public A addToAddresses(V1NodeAddress... items) { + if (this.addresses == null) { + this.addresses = new ArrayList(); } - if (addresses != null) { - this.addresses = new ArrayList(); - for (V1NodeAddress item : addresses) { - this.addToAddresses(item); - } - } else { - this.addresses = null; + for (V1NodeAddress item : items) { + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); + _visitables.get("addresses").add(builder); + this.addresses.add(builder); } return (A) this; } - public A withAddresses(V1NodeAddress... addresses) { - if (this.addresses != null) { - this.addresses.clear(); - _visitables.remove("addresses"); + public A addToAddresses(int index,V1NodeAddress item) { + if (this.addresses == null) { + this.addresses = new ArrayList(); } - if (addresses != null) { - for (V1NodeAddress item : addresses) { - this.addToAddresses(item); - } + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); + if (index < 0 || index >= addresses.size()) { + _visitables.get("addresses").add(builder); + addresses.add(builder); + } else { + _visitables.get("addresses").add(builder); + addresses.add(index, builder); } return (A) this; } - public boolean hasAddresses() { - return this.addresses != null && !(this.addresses.isEmpty()); + public A addToAllocatable(Map map) { + if (this.allocatable == null && map != null) { + this.allocatable = new LinkedHashMap(); + } + if (map != null) { + this.allocatable.putAll(map); + } + return (A) this; } - public AddressesNested addNewAddress() { - return new AddressesNested(-1, null); + public A addToAllocatable(String key,Quantity value) { + if (this.allocatable == null && key != null && value != null) { + this.allocatable = new LinkedHashMap(); + } + if (key != null && value != null) { + this.allocatable.put(key, value); + } + return (A) this; } - public AddressesNested addNewAddressLike(V1NodeAddress item) { - return new AddressesNested(-1, item); - } - - public AddressesNested setNewAddressLike(int index,V1NodeAddress item) { - return new AddressesNested(index, item); - } - - public AddressesNested editAddress(int index) { - if (index <= addresses.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "addresses")); + public A addToCapacity(Map map) { + if (this.capacity == null && map != null) { + this.capacity = new LinkedHashMap(); } - return this.setNewAddressLike(index, this.buildAddress(index)); - } - - public AddressesNested editFirstAddress() { - if (addresses.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "addresses")); + if (map != null) { + this.capacity.putAll(map); } - return this.setNewAddressLike(0, this.buildAddress(0)); + return (A) this; } - public AddressesNested editLastAddress() { - int index = addresses.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "addresses")); + public A addToCapacity(String key,Quantity value) { + if (this.capacity == null && key != null && value != null) { + this.capacity = new LinkedHashMap(); } - return this.setNewAddressLike(index, this.buildAddress(index)); + if (key != null && value != null) { + this.capacity.put(key, value); + } + return (A) this; } - public AddressesNested editMatchingAddress(Predicate predicate) { - int index = -1; - for (int i = 0;i < addresses.size();i++) { - if (predicate.test(addresses.get(i))) { - index = i; - break; - } + public A addToConditions(V1NodeCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "addresses")); + for (V1NodeCondition item : items) { + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); } - return this.setNewAddressLike(index, this.buildAddress(index)); + return (A) this; } - public A addToAllocatable(String key,Quantity value) { - if (this.allocatable == null && key != null && value != null) { - this.allocatable = new LinkedHashMap(); + public A addToConditions(int index,V1NodeCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); } - if (key != null && value != null) { - this.allocatable.put(key, value); + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A addToAllocatable(Map map) { - if (this.allocatable == null && map != null) { - this.allocatable = new LinkedHashMap(); + public A addToImages(V1ContainerImage... items) { + if (this.images == null) { + this.images = new ArrayList(); } - if (map != null) { - this.allocatable.putAll(map); + for (V1ContainerImage item : items) { + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); + _visitables.get("images").add(builder); + this.images.add(builder); } return (A) this; } - public A removeFromAllocatable(String key) { - if (this.allocatable == null) { - return (A) this; + public A addToImages(int index,V1ContainerImage item) { + if (this.images == null) { + this.images = new ArrayList(); } - if (key != null && this.allocatable != null) { - this.allocatable.remove(key); + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); + if (index < 0 || index >= images.size()) { + _visitables.get("images").add(builder); + images.add(builder); + } else { + _visitables.get("images").add(builder); + images.add(index, builder); } return (A) this; } - public A removeFromAllocatable(Map map) { - if (this.allocatable == null) { - return (A) this; + public A addToRuntimeHandlers(V1NodeRuntimeHandler... items) { + if (this.runtimeHandlers == null) { + this.runtimeHandlers = new ArrayList(); } - if (map != null) { - for (Object key : map.keySet()) { - if (this.allocatable != null) { - this.allocatable.remove(key); - } - } + for (V1NodeRuntimeHandler item : items) { + V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); + _visitables.get("runtimeHandlers").add(builder); + this.runtimeHandlers.add(builder); } return (A) this; } - public Map getAllocatable() { - return this.allocatable; - } - - public A withAllocatable(Map allocatable) { - if (allocatable == null) { - this.allocatable = null; + public A addToRuntimeHandlers(int index,V1NodeRuntimeHandler item) { + if (this.runtimeHandlers == null) { + this.runtimeHandlers = new ArrayList(); + } + V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); + if (index < 0 || index >= runtimeHandlers.size()) { + _visitables.get("runtimeHandlers").add(builder); + runtimeHandlers.add(builder); } else { - this.allocatable = new LinkedHashMap(allocatable); + _visitables.get("runtimeHandlers").add(builder); + runtimeHandlers.add(index, builder); } return (A) this; } - public boolean hasAllocatable() { - return this.allocatable != null; - } - - public A addToCapacity(String key,Quantity value) { - if (this.capacity == null && key != null && value != null) { - this.capacity = new LinkedHashMap(); + public A addToVolumesAttached(V1AttachedVolume... items) { + if (this.volumesAttached == null) { + this.volumesAttached = new ArrayList(); } - if (key != null && value != null) { - this.capacity.put(key, value); + for (V1AttachedVolume item : items) { + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); + _visitables.get("volumesAttached").add(builder); + this.volumesAttached.add(builder); } return (A) this; } - public A addToCapacity(Map map) { - if (this.capacity == null && map != null) { - this.capacity = new LinkedHashMap(); + public A addToVolumesAttached(int index,V1AttachedVolume item) { + if (this.volumesAttached == null) { + this.volumesAttached = new ArrayList(); } - if (map != null) { - this.capacity.putAll(map); + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); + if (index < 0 || index >= volumesAttached.size()) { + _visitables.get("volumesAttached").add(builder); + volumesAttached.add(builder); + } else { + _visitables.get("volumesAttached").add(builder); + volumesAttached.add(index, builder); } return (A) this; } - public A removeFromCapacity(String key) { - if (this.capacity == null) { - return (A) this; + public A addToVolumesInUse(String... items) { + if (this.volumesInUse == null) { + this.volumesInUse = new ArrayList(); } - if (key != null && this.capacity != null) { - this.capacity.remove(key); + for (String item : items) { + this.volumesInUse.add(item); } return (A) this; } - public A removeFromCapacity(Map map) { - if (this.capacity == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.capacity != null) { - this.capacity.remove(key); - } - } + public A addToVolumesInUse(int index,String item) { + if (this.volumesInUse == null) { + this.volumesInUse = new ArrayList(); } + this.volumesInUse.add(index, item); return (A) this; } - public Map getCapacity() { - return this.capacity; + public V1NodeAddress buildAddress(int index) { + return this.addresses.get(index).build(); } - public A withCapacity(Map capacity) { - if (capacity == null) { - this.capacity = null; - } else { - this.capacity = new LinkedHashMap(capacity); - } - return (A) this; + public List buildAddresses() { + return this.addresses != null ? build(addresses) : null; } - public boolean hasCapacity() { - return this.capacity != null; + public V1NodeCondition buildCondition(int index) { + return this.conditions.get(index).build(); } - public A addToConditions(int index,V1NodeCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); - } - return (A) this; + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; } - public A setToConditions(int index,V1NodeCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public V1NodeConfigStatus buildConfig() { + return this.config != null ? this.config.build() : null; } - public A addToConditions(V1NodeCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1NodeCondition item : items) { - V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + public V1NodeDaemonEndpoints buildDaemonEndpoints() { + return this.daemonEndpoints != null ? this.daemonEndpoints.build() : null; } - public A addAllToConditions(Collection items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - for (V1NodeCondition item : items) { - V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; + public V1NodeFeatures buildFeatures() { + return this.features != null ? this.features.build() : null; } - public A removeFromConditions(V1NodeCondition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1NodeCondition item : items) { - V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; + public V1NodeAddress buildFirstAddress() { + return this.addresses.get(0).build(); } - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1NodeCondition item : items) { - V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; + public V1NodeCondition buildFirstCondition() { + return this.conditions.get(0).build(); } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1NodeConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1ContainerImage buildFirstImage() { + return this.images.get(0).build(); } - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; + public V1NodeRuntimeHandler buildFirstRuntimeHandler() { + return this.runtimeHandlers.get(0).build(); } - public V1NodeCondition buildCondition(int index) { - return this.conditions.get(index).build(); + public V1AttachedVolume buildFirstVolumesAttached() { + return this.volumesAttached.get(0).build(); } - public V1NodeCondition buildFirstCondition() { - return this.conditions.get(0).build(); + public V1ContainerImage buildImage(int index) { + return this.images.get(index).build(); + } + + public List buildImages() { + return this.images != null ? build(images) : null; + } + + public V1NodeAddress buildLastAddress() { + return this.addresses.get(addresses.size() - 1).build(); } public V1NodeCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } + public V1ContainerImage buildLastImage() { + return this.images.get(images.size() - 1).build(); + } + + public V1NodeRuntimeHandler buildLastRuntimeHandler() { + return this.runtimeHandlers.get(runtimeHandlers.size() - 1).build(); + } + + public V1AttachedVolume buildLastVolumesAttached() { + return this.volumesAttached.get(volumesAttached.size() - 1).build(); + } + + public V1NodeAddress buildMatchingAddress(Predicate predicate) { + for (V1NodeAddressBuilder item : addresses) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + public V1NodeCondition buildMatchingCondition(Predicate predicate) { for (V1NodeConditionBuilder item : conditions) { if (predicate.test(item)) { @@ -511,205 +442,268 @@ public V1NodeCondition buildMatchingCondition(Predicate return null; } - public boolean hasMatchingCondition(Predicate predicate) { - for (V1NodeConditionBuilder item : conditions) { + public V1ContainerImage buildMatchingImage(Predicate predicate) { + for (V1ContainerImageBuilder item : images) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1NodeCondition item : conditions) { - this.addToConditions(item); + public V1NodeRuntimeHandler buildMatchingRuntimeHandler(Predicate predicate) { + for (V1NodeRuntimeHandlerBuilder item : runtimeHandlers) { + if (predicate.test(item)) { + return item.build(); } - } else { - this.conditions = null; - } - return (A) this; + } + return null; } - public A withConditions(V1NodeCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1NodeCondition item : conditions) { - this.addToConditions(item); + public V1AttachedVolume buildMatchingVolumesAttached(Predicate predicate) { + for (V1AttachedVolumeBuilder item : volumesAttached) { + if (predicate.test(item)) { + return item.build(); + } } - } - return (A) this; + return null; } - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); + public V1NodeSystemInfo buildNodeInfo() { + return this.nodeInfo != null ? this.nodeInfo.build() : null; } - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + public V1NodeRuntimeHandler buildRuntimeHandler(int index) { + return this.runtimeHandlers.get(index).build(); } - public ConditionsNested addNewConditionLike(V1NodeCondition item) { - return new ConditionsNested(-1, item); + public List buildRuntimeHandlers() { + return this.runtimeHandlers != null ? build(runtimeHandlers) : null; } - public ConditionsNested setNewConditionLike(int index,V1NodeCondition item) { - return new ConditionsNested(index, item); + public List buildVolumesAttached() { + return this.volumesAttached != null ? build(volumesAttached) : null; } - public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); - } - return this.setNewConditionLike(index, this.buildCondition(index)); + public V1AttachedVolume buildVolumesAttached(int index) { + return this.volumesAttached.get(index).build(); } - public ConditionsNested editFirstCondition() { - if (conditions.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + protected void copyInstance(V1NodeStatus instance) { + instance = instance != null ? instance : new V1NodeStatus(); + if (instance != null) { + this.withAddresses(instance.getAddresses()); + this.withAllocatable(instance.getAllocatable()); + this.withCapacity(instance.getCapacity()); + this.withConditions(instance.getConditions()); + this.withConfig(instance.getConfig()); + this.withDaemonEndpoints(instance.getDaemonEndpoints()); + this.withFeatures(instance.getFeatures()); + this.withImages(instance.getImages()); + this.withNodeInfo(instance.getNodeInfo()); + this.withPhase(instance.getPhase()); + this.withRuntimeHandlers(instance.getRuntimeHandlers()); + this.withVolumesAttached(instance.getVolumesAttached()); + this.withVolumesInUse(instance.getVolumesInUse()); } - return this.setNewConditionLike(0, this.buildCondition(0)); } - public ConditionsNested editLastCondition() { - int index = conditions.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + public AddressesNested editAddress(int index) { + if (addresses.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "addresses")); } - return this.setNewConditionLike(index, this.buildCondition(index)); + return this.setNewAddressLike(index, this.buildAddress(index)); } - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i = 0;i < conditions.size();i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); } - public V1NodeConfigStatus buildConfig() { - return this.config != null ? this.config.build() : null; - } - - public A withConfig(V1NodeConfigStatus config) { - this._visitables.remove("config"); - if (config != null) { - this.config = new V1NodeConfigStatusBuilder(config); - this._visitables.get("config").add(this.config); - } else { - this.config = null; - this._visitables.get("config").remove(this.config); - } - return (A) this; + public ConfigNested editConfig() { + return this.withNewConfigLike(Optional.ofNullable(this.buildConfig()).orElse(null)); } - public boolean hasConfig() { - return this.config != null; + public DaemonEndpointsNested editDaemonEndpoints() { + return this.withNewDaemonEndpointsLike(Optional.ofNullable(this.buildDaemonEndpoints()).orElse(null)); } - public ConfigNested withNewConfig() { - return new ConfigNested(null); + public FeaturesNested editFeatures() { + return this.withNewFeaturesLike(Optional.ofNullable(this.buildFeatures()).orElse(null)); } - public ConfigNested withNewConfigLike(V1NodeConfigStatus item) { - return new ConfigNested(item); + public AddressesNested editFirstAddress() { + if (addresses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "addresses")); + } + return this.setNewAddressLike(0, this.buildAddress(0)); } - public ConfigNested editConfig() { - return this.withNewConfigLike(Optional.ofNullable(this.buildConfig()).orElse(null)); + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); } - public ConfigNested editOrNewConfig() { - return this.withNewConfigLike(Optional.ofNullable(this.buildConfig()).orElse(new V1NodeConfigStatusBuilder().build())); + public ImagesNested editFirstImage() { + if (images.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "images")); + } + return this.setNewImageLike(0, this.buildImage(0)); } - public ConfigNested editOrNewConfigLike(V1NodeConfigStatus item) { - return this.withNewConfigLike(Optional.ofNullable(this.buildConfig()).orElse(item)); + public RuntimeHandlersNested editFirstRuntimeHandler() { + if (runtimeHandlers.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "runtimeHandlers")); + } + return this.setNewRuntimeHandlerLike(0, this.buildRuntimeHandler(0)); } - public V1NodeDaemonEndpoints buildDaemonEndpoints() { - return this.daemonEndpoints != null ? this.daemonEndpoints.build() : null; + public VolumesAttachedNested editFirstVolumesAttached() { + if (volumesAttached.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumesAttached")); + } + return this.setNewVolumesAttachedLike(0, this.buildVolumesAttached(0)); } - public A withDaemonEndpoints(V1NodeDaemonEndpoints daemonEndpoints) { - this._visitables.remove("daemonEndpoints"); - if (daemonEndpoints != null) { - this.daemonEndpoints = new V1NodeDaemonEndpointsBuilder(daemonEndpoints); - this._visitables.get("daemonEndpoints").add(this.daemonEndpoints); - } else { - this.daemonEndpoints = null; - this._visitables.get("daemonEndpoints").remove(this.daemonEndpoints); + public ImagesNested editImage(int index) { + if (images.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "images")); } - return (A) this; + return this.setNewImageLike(index, this.buildImage(index)); } - public boolean hasDaemonEndpoints() { - return this.daemonEndpoints != null; - } + public AddressesNested editLastAddress() { + int index = addresses.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "addresses")); + } + return this.setNewAddressLike(index, this.buildAddress(index)); + } - public DaemonEndpointsNested withNewDaemonEndpoints() { - return new DaemonEndpointsNested(null); + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public DaemonEndpointsNested withNewDaemonEndpointsLike(V1NodeDaemonEndpoints item) { - return new DaemonEndpointsNested(item); + public ImagesNested editLastImage() { + int index = images.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "images")); + } + return this.setNewImageLike(index, this.buildImage(index)); } - public DaemonEndpointsNested editDaemonEndpoints() { - return this.withNewDaemonEndpointsLike(Optional.ofNullable(this.buildDaemonEndpoints()).orElse(null)); + public RuntimeHandlersNested editLastRuntimeHandler() { + int index = runtimeHandlers.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "runtimeHandlers")); + } + return this.setNewRuntimeHandlerLike(index, this.buildRuntimeHandler(index)); } - public DaemonEndpointsNested editOrNewDaemonEndpoints() { - return this.withNewDaemonEndpointsLike(Optional.ofNullable(this.buildDaemonEndpoints()).orElse(new V1NodeDaemonEndpointsBuilder().build())); + public VolumesAttachedNested editLastVolumesAttached() { + int index = volumesAttached.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumesAttached")); + } + return this.setNewVolumesAttachedLike(index, this.buildVolumesAttached(index)); } - public DaemonEndpointsNested editOrNewDaemonEndpointsLike(V1NodeDaemonEndpoints item) { - return this.withNewDaemonEndpointsLike(Optional.ofNullable(this.buildDaemonEndpoints()).orElse(item)); + public AddressesNested editMatchingAddress(Predicate predicate) { + int index = -1; + for (int i = 0;i < addresses.size();i++) { + if (predicate.test(addresses.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "addresses")); + } + return this.setNewAddressLike(index, this.buildAddress(index)); } - public V1NodeFeatures buildFeatures() { - return this.features != null ? this.features.build() : null; + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public A withFeatures(V1NodeFeatures features) { - this._visitables.remove("features"); - if (features != null) { - this.features = new V1NodeFeaturesBuilder(features); - this._visitables.get("features").add(this.features); - } else { - this.features = null; - this._visitables.get("features").remove(this.features); + public ImagesNested editMatchingImage(Predicate predicate) { + int index = -1; + for (int i = 0;i < images.size();i++) { + if (predicate.test(images.get(i))) { + index = i; + break; + } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "images")); + } + return this.setNewImageLike(index, this.buildImage(index)); } - public boolean hasFeatures() { - return this.features != null; + public RuntimeHandlersNested editMatchingRuntimeHandler(Predicate predicate) { + int index = -1; + for (int i = 0;i < runtimeHandlers.size();i++) { + if (predicate.test(runtimeHandlers.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "runtimeHandlers")); + } + return this.setNewRuntimeHandlerLike(index, this.buildRuntimeHandler(index)); } - public FeaturesNested withNewFeatures() { - return new FeaturesNested(null); + public VolumesAttachedNested editMatchingVolumesAttached(Predicate predicate) { + int index = -1; + for (int i = 0;i < volumesAttached.size();i++) { + if (predicate.test(volumesAttached.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumesAttached")); + } + return this.setNewVolumesAttachedLike(index, this.buildVolumesAttached(index)); } - public FeaturesNested withNewFeaturesLike(V1NodeFeatures item) { - return new FeaturesNested(item); + public NodeInfoNested editNodeInfo() { + return this.withNewNodeInfoLike(Optional.ofNullable(this.buildNodeInfo()).orElse(null)); } - public FeaturesNested editFeatures() { - return this.withNewFeaturesLike(Optional.ofNullable(this.buildFeatures()).orElse(null)); + public ConfigNested editOrNewConfig() { + return this.withNewConfigLike(Optional.ofNullable(this.buildConfig()).orElse(new V1NodeConfigStatusBuilder().build())); + } + + public ConfigNested editOrNewConfigLike(V1NodeConfigStatus item) { + return this.withNewConfigLike(Optional.ofNullable(this.buildConfig()).orElse(item)); + } + + public DaemonEndpointsNested editOrNewDaemonEndpoints() { + return this.withNewDaemonEndpointsLike(Optional.ofNullable(this.buildDaemonEndpoints()).orElse(new V1NodeDaemonEndpointsBuilder().build())); + } + + public DaemonEndpointsNested editOrNewDaemonEndpointsLike(V1NodeDaemonEndpoints item) { + return this.withNewDaemonEndpointsLike(Optional.ofNullable(this.buildDaemonEndpoints()).orElse(item)); } public FeaturesNested editOrNewFeatures() { @@ -720,127 +714,152 @@ public FeaturesNested editOrNewFeaturesLike(V1NodeFeatures item) { return this.withNewFeaturesLike(Optional.ofNullable(this.buildFeatures()).orElse(item)); } - public A addToImages(int index,V1ContainerImage item) { - if (this.images == null) { - this.images = new ArrayList(); - } - V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - if (index < 0 || index >= images.size()) { - _visitables.get("images").add(builder); - images.add(builder); - } else { - _visitables.get("images").add(builder); - images.add(index, builder); - } - return (A) this; + public NodeInfoNested editOrNewNodeInfo() { + return this.withNewNodeInfoLike(Optional.ofNullable(this.buildNodeInfo()).orElse(new V1NodeSystemInfoBuilder().build())); } - public A setToImages(int index,V1ContainerImage item) { - if (this.images == null) { - this.images = new ArrayList(); - } - V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - if (index < 0 || index >= images.size()) { - _visitables.get("images").add(builder); - images.add(builder); - } else { - _visitables.get("images").add(builder); - images.set(index, builder); - } - return (A) this; + public NodeInfoNested editOrNewNodeInfoLike(V1NodeSystemInfo item) { + return this.withNewNodeInfoLike(Optional.ofNullable(this.buildNodeInfo()).orElse(item)); } - public A addToImages(V1ContainerImage... items) { - if (this.images == null) { - this.images = new ArrayList(); - } - for (V1ContainerImage item : items) { - V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - _visitables.get("images").add(builder); - this.images.add(builder); + public RuntimeHandlersNested editRuntimeHandler(int index) { + if (runtimeHandlers.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "runtimeHandlers")); } - return (A) this; + return this.setNewRuntimeHandlerLike(index, this.buildRuntimeHandler(index)); } - public A addAllToImages(Collection items) { - if (this.images == null) { - this.images = new ArrayList(); - } - for (V1ContainerImage item : items) { - V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - _visitables.get("images").add(builder); - this.images.add(builder); + public VolumesAttachedNested editVolumesAttached(int index) { + if (volumesAttached.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumesAttached")); } - return (A) this; + return this.setNewVolumesAttachedLike(index, this.buildVolumesAttached(index)); } - public A removeFromImages(V1ContainerImage... items) { - if (this.images == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (V1ContainerImage item : items) { - V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - _visitables.get("images").remove(builder); - this.images.remove(builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A removeAllFromImages(Collection items) { - if (this.images == null) { - return (A) this; + if (!(super.equals(o))) { + return false; } - for (V1ContainerImage item : items) { - V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - _visitables.get("images").remove(builder); - this.images.remove(builder); + V1NodeStatusFluent that = (V1NodeStatusFluent) o; + if (!(Objects.equals(addresses, that.addresses))) { + return false; } - return (A) this; - } - - public A removeMatchingFromImages(Predicate predicate) { - if (images == null) { - return (A) this; + if (!(Objects.equals(allocatable, that.allocatable))) { + return false; } - Iterator each = images.iterator(); - List visitables = _visitables.get("images"); - while (each.hasNext()) { - V1ContainerImageBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (!(Objects.equals(capacity, that.capacity))) { + return false; } - return (A) this; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(daemonEndpoints, that.daemonEndpoints))) { + return false; + } + if (!(Objects.equals(features, that.features))) { + return false; + } + if (!(Objects.equals(images, that.images))) { + return false; + } + if (!(Objects.equals(nodeInfo, that.nodeInfo))) { + return false; + } + if (!(Objects.equals(phase, that.phase))) { + return false; + } + if (!(Objects.equals(runtimeHandlers, that.runtimeHandlers))) { + return false; + } + if (!(Objects.equals(volumesAttached, that.volumesAttached))) { + return false; + } + if (!(Objects.equals(volumesInUse, that.volumesInUse))) { + return false; + } + return true; } - public List buildImages() { - return this.images != null ? build(images) : null; + public Map getAllocatable() { + return this.allocatable; } - public V1ContainerImage buildImage(int index) { - return this.images.get(index).build(); + public Map getCapacity() { + return this.capacity; } - public V1ContainerImage buildFirstImage() { - return this.images.get(0).build(); + public String getFirstVolumesInUse() { + return this.volumesInUse.get(0); } - public V1ContainerImage buildLastImage() { - return this.images.get(images.size() - 1).build(); + public String getLastVolumesInUse() { + return this.volumesInUse.get(volumesInUse.size() - 1); } - public V1ContainerImage buildMatchingImage(Predicate predicate) { - for (V1ContainerImageBuilder item : images) { + public String getMatchingVolumesInUse(Predicate predicate) { + for (String item : volumesInUse) { if (predicate.test(item)) { - return item.build(); + return item; } } return null; } - public boolean hasMatchingImage(Predicate predicate) { - for (V1ContainerImageBuilder item : images) { + public String getPhase() { + return this.phase; + } + + public List getVolumesInUse() { + return this.volumesInUse; + } + + public String getVolumesInUse(int index) { + return this.volumesInUse.get(index); + } + + public boolean hasAddresses() { + return this.addresses != null && !(this.addresses.isEmpty()); + } + + public boolean hasAllocatable() { + return this.allocatable != null; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasConfig() { + return this.config != null; + } + + public boolean hasDaemonEndpoints() { + return this.daemonEndpoints != null; + } + + public boolean hasFeatures() { + return this.features != null; + } + + public boolean hasImages() { + return this.images != null && !(this.images.isEmpty()); + } + + public boolean hasMatchingAddress(Predicate predicate) { + for (V1NodeAddressBuilder item : addresses) { if (predicate.test(item)) { return true; } @@ -848,189 +867,225 @@ public boolean hasMatchingImage(Predicate predicate) { return false; } - public A withImages(List images) { - if (this.images != null) { - this._visitables.get("images").clear(); - } - if (images != null) { - this.images = new ArrayList(); - for (V1ContainerImage item : images) { - this.addToImages(item); + public boolean hasMatchingCondition(Predicate predicate) { + for (V1NodeConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; } - } else { - this.images = null; - } - return (A) this; + } + return false; } - public A withImages(V1ContainerImage... images) { - if (this.images != null) { - this.images.clear(); - _visitables.remove("images"); - } - if (images != null) { - for (V1ContainerImage item : images) { - this.addToImages(item); + public boolean hasMatchingImage(Predicate predicate) { + for (V1ContainerImageBuilder item : images) { + if (predicate.test(item)) { + return true; + } } - } - return (A) this; + return false; } - public boolean hasImages() { - return this.images != null && !(this.images.isEmpty()); + public boolean hasMatchingRuntimeHandler(Predicate predicate) { + for (V1NodeRuntimeHandlerBuilder item : runtimeHandlers) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public ImagesNested addNewImage() { - return new ImagesNested(-1, null); + public boolean hasMatchingVolumesAttached(Predicate predicate) { + for (V1AttachedVolumeBuilder item : volumesAttached) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public ImagesNested addNewImageLike(V1ContainerImage item) { - return new ImagesNested(-1, item); + public boolean hasMatchingVolumesInUse(Predicate predicate) { + for (String item : volumesInUse) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public ImagesNested setNewImageLike(int index,V1ContainerImage item) { - return new ImagesNested(index, item); + public boolean hasNodeInfo() { + return this.nodeInfo != null; } - public ImagesNested editImage(int index) { - if (index <= images.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "images")); - } - return this.setNewImageLike(index, this.buildImage(index)); + public boolean hasPhase() { + return this.phase != null; } - public ImagesNested editFirstImage() { - if (images.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "images")); - } - return this.setNewImageLike(0, this.buildImage(0)); + public boolean hasRuntimeHandlers() { + return this.runtimeHandlers != null && !(this.runtimeHandlers.isEmpty()); } - public ImagesNested editLastImage() { - int index = images.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "images")); - } - return this.setNewImageLike(index, this.buildImage(index)); + public boolean hasVolumesAttached() { + return this.volumesAttached != null && !(this.volumesAttached.isEmpty()); } - public ImagesNested editMatchingImage(Predicate predicate) { - int index = -1; - for (int i = 0;i < images.size();i++) { - if (predicate.test(images.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "images")); - } - return this.setNewImageLike(index, this.buildImage(index)); + public boolean hasVolumesInUse() { + return this.volumesInUse != null && !(this.volumesInUse.isEmpty()); } - public V1NodeSystemInfo buildNodeInfo() { - return this.nodeInfo != null ? this.nodeInfo.build() : null; + public int hashCode() { + return Objects.hash(addresses, allocatable, capacity, conditions, config, daemonEndpoints, features, images, nodeInfo, phase, runtimeHandlers, volumesAttached, volumesInUse); } - public A withNodeInfo(V1NodeSystemInfo nodeInfo) { - this._visitables.remove("nodeInfo"); - if (nodeInfo != null) { - this.nodeInfo = new V1NodeSystemInfoBuilder(nodeInfo); - this._visitables.get("nodeInfo").add(this.nodeInfo); - } else { - this.nodeInfo = null; - this._visitables.get("nodeInfo").remove(this.nodeInfo); + public A removeAllFromAddresses(Collection items) { + if (this.addresses == null) { + return (A) this; + } + for (V1NodeAddress item : items) { + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); + _visitables.get("addresses").remove(builder); + this.addresses.remove(builder); } return (A) this; } - public boolean hasNodeInfo() { - return this.nodeInfo != null; - } - - public NodeInfoNested withNewNodeInfo() { - return new NodeInfoNested(null); + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1NodeCondition item : items) { + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } - public NodeInfoNested withNewNodeInfoLike(V1NodeSystemInfo item) { - return new NodeInfoNested(item); + public A removeAllFromImages(Collection items) { + if (this.images == null) { + return (A) this; + } + for (V1ContainerImage item : items) { + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); + _visitables.get("images").remove(builder); + this.images.remove(builder); + } + return (A) this; } - public NodeInfoNested editNodeInfo() { - return this.withNewNodeInfoLike(Optional.ofNullable(this.buildNodeInfo()).orElse(null)); + public A removeAllFromRuntimeHandlers(Collection items) { + if (this.runtimeHandlers == null) { + return (A) this; + } + for (V1NodeRuntimeHandler item : items) { + V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); + _visitables.get("runtimeHandlers").remove(builder); + this.runtimeHandlers.remove(builder); + } + return (A) this; } - public NodeInfoNested editOrNewNodeInfo() { - return this.withNewNodeInfoLike(Optional.ofNullable(this.buildNodeInfo()).orElse(new V1NodeSystemInfoBuilder().build())); + public A removeAllFromVolumesAttached(Collection items) { + if (this.volumesAttached == null) { + return (A) this; + } + for (V1AttachedVolume item : items) { + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); + _visitables.get("volumesAttached").remove(builder); + this.volumesAttached.remove(builder); + } + return (A) this; } - public NodeInfoNested editOrNewNodeInfoLike(V1NodeSystemInfo item) { - return this.withNewNodeInfoLike(Optional.ofNullable(this.buildNodeInfo()).orElse(item)); + public A removeAllFromVolumesInUse(Collection items) { + if (this.volumesInUse == null) { + return (A) this; + } + for (String item : items) { + this.volumesInUse.remove(item); + } + return (A) this; } - public String getPhase() { - return this.phase; + public A removeFromAddresses(V1NodeAddress... items) { + if (this.addresses == null) { + return (A) this; + } + for (V1NodeAddress item : items) { + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); + _visitables.get("addresses").remove(builder); + this.addresses.remove(builder); + } + return (A) this; } - public A withPhase(String phase) { - this.phase = phase; + public A removeFromAllocatable(String key) { + if (this.allocatable == null) { + return (A) this; + } + if (key != null && this.allocatable != null) { + this.allocatable.remove(key); + } return (A) this; } - public boolean hasPhase() { - return this.phase != null; + public A removeFromAllocatable(Map map) { + if (this.allocatable == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.allocatable != null) { + this.allocatable.remove(key); + } + } + } + return (A) this; } - public A addToRuntimeHandlers(int index,V1NodeRuntimeHandler item) { - if (this.runtimeHandlers == null) { - this.runtimeHandlers = new ArrayList(); + public A removeFromCapacity(String key) { + if (this.capacity == null) { + return (A) this; } - V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); - if (index < 0 || index >= runtimeHandlers.size()) { - _visitables.get("runtimeHandlers").add(builder); - runtimeHandlers.add(builder); - } else { - _visitables.get("runtimeHandlers").add(builder); - runtimeHandlers.add(index, builder); + if (key != null && this.capacity != null) { + this.capacity.remove(key); } return (A) this; } - public A setToRuntimeHandlers(int index,V1NodeRuntimeHandler item) { - if (this.runtimeHandlers == null) { - this.runtimeHandlers = new ArrayList(); + public A removeFromCapacity(Map map) { + if (this.capacity == null) { + return (A) this; } - V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); - if (index < 0 || index >= runtimeHandlers.size()) { - _visitables.get("runtimeHandlers").add(builder); - runtimeHandlers.add(builder); - } else { - _visitables.get("runtimeHandlers").add(builder); - runtimeHandlers.set(index, builder); + if (map != null) { + for (Object key : map.keySet()) { + if (this.capacity != null) { + this.capacity.remove(key); + } + } } return (A) this; } - public A addToRuntimeHandlers(V1NodeRuntimeHandler... items) { - if (this.runtimeHandlers == null) { - this.runtimeHandlers = new ArrayList(); + public A removeFromConditions(V1NodeCondition... items) { + if (this.conditions == null) { + return (A) this; } - for (V1NodeRuntimeHandler item : items) { - V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); - _visitables.get("runtimeHandlers").add(builder); - this.runtimeHandlers.add(builder); + for (V1NodeCondition item : items) { + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } return (A) this; } - public A addAllToRuntimeHandlers(Collection items) { - if (this.runtimeHandlers == null) { - this.runtimeHandlers = new ArrayList(); + public A removeFromImages(V1ContainerImage... items) { + if (this.images == null) { + return (A) this; } - for (V1NodeRuntimeHandler item : items) { - V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); - _visitables.get("runtimeHandlers").add(builder); - this.runtimeHandlers.add(builder); + for (V1ContainerImage item : items) { + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); + _visitables.get("images").remove(builder); + this.images.remove(builder); } return (A) this; } @@ -1047,26 +1102,36 @@ public A removeFromRuntimeHandlers(V1NodeRuntimeHandler... items) { return (A) this; } - public A removeAllFromRuntimeHandlers(Collection items) { - if (this.runtimeHandlers == null) { + public A removeFromVolumesAttached(V1AttachedVolume... items) { + if (this.volumesAttached == null) { return (A) this; } - for (V1NodeRuntimeHandler item : items) { - V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); - _visitables.get("runtimeHandlers").remove(builder); - this.runtimeHandlers.remove(builder); + for (V1AttachedVolume item : items) { + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); + _visitables.get("volumesAttached").remove(builder); + this.volumesAttached.remove(builder); } return (A) this; } - public A removeMatchingFromRuntimeHandlers(Predicate predicate) { - if (runtimeHandlers == null) { + public A removeFromVolumesInUse(String... items) { + if (this.volumesInUse == null) { return (A) this; } - Iterator each = runtimeHandlers.iterator(); - List visitables = _visitables.get("runtimeHandlers"); + for (String item : items) { + this.volumesInUse.remove(item); + } + return (A) this; + } + + public A removeMatchingFromAddresses(Predicate predicate) { + if (addresses == null) { + return (A) this; + } + Iterator each = addresses.iterator(); + List visitables = _visitables.get("addresses"); while (each.hasNext()) { - V1NodeRuntimeHandlerBuilder builder = each.next(); + V1NodeAddressBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -1075,131 +1140,146 @@ public A removeMatchingFromRuntimeHandlers(Predicate buildRuntimeHandlers() { - return this.runtimeHandlers != null ? build(runtimeHandlers) : null; - } - - public V1NodeRuntimeHandler buildRuntimeHandler(int index) { - return this.runtimeHandlers.get(index).build(); - } - - public V1NodeRuntimeHandler buildFirstRuntimeHandler() { - return this.runtimeHandlers.get(0).build(); - } - - public V1NodeRuntimeHandler buildLastRuntimeHandler() { - return this.runtimeHandlers.get(runtimeHandlers.size() - 1).build(); - } - - public V1NodeRuntimeHandler buildMatchingRuntimeHandler(Predicate predicate) { - for (V1NodeRuntimeHandlerBuilder item : runtimeHandlers) { - if (predicate.test(item)) { - return item.build(); + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1NodeConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } - return null; + } + return (A) this; } - public boolean hasMatchingRuntimeHandler(Predicate predicate) { - for (V1NodeRuntimeHandlerBuilder item : runtimeHandlers) { - if (predicate.test(item)) { - return true; + public A removeMatchingFromImages(Predicate predicate) { + if (images == null) { + return (A) this; + } + Iterator each = images.iterator(); + List visitables = _visitables.get("images"); + while (each.hasNext()) { + V1ContainerImageBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } - return false; + } + return (A) this; } - public A withRuntimeHandlers(List runtimeHandlers) { - if (this.runtimeHandlers != null) { - this._visitables.get("runtimeHandlers").clear(); + public A removeMatchingFromRuntimeHandlers(Predicate predicate) { + if (runtimeHandlers == null) { + return (A) this; } - if (runtimeHandlers != null) { - this.runtimeHandlers = new ArrayList(); - for (V1NodeRuntimeHandler item : runtimeHandlers) { - this.addToRuntimeHandlers(item); + Iterator each = runtimeHandlers.iterator(); + List visitables = _visitables.get("runtimeHandlers"); + while (each.hasNext()) { + V1NodeRuntimeHandlerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } else { - this.runtimeHandlers = null; } return (A) this; } - public A withRuntimeHandlers(V1NodeRuntimeHandler... runtimeHandlers) { - if (this.runtimeHandlers != null) { - this.runtimeHandlers.clear(); - _visitables.remove("runtimeHandlers"); + public A removeMatchingFromVolumesAttached(Predicate predicate) { + if (volumesAttached == null) { + return (A) this; } - if (runtimeHandlers != null) { - for (V1NodeRuntimeHandler item : runtimeHandlers) { - this.addToRuntimeHandlers(item); - } + Iterator each = volumesAttached.iterator(); + List visitables = _visitables.get("volumesAttached"); + while (each.hasNext()) { + V1AttachedVolumeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasRuntimeHandlers() { - return this.runtimeHandlers != null && !(this.runtimeHandlers.isEmpty()); + public AddressesNested setNewAddressLike(int index,V1NodeAddress item) { + return new AddressesNested(index, item); } - public RuntimeHandlersNested addNewRuntimeHandler() { - return new RuntimeHandlersNested(-1, null); + public ConditionsNested setNewConditionLike(int index,V1NodeCondition item) { + return new ConditionsNested(index, item); } - public RuntimeHandlersNested addNewRuntimeHandlerLike(V1NodeRuntimeHandler item) { - return new RuntimeHandlersNested(-1, item); + public ImagesNested setNewImageLike(int index,V1ContainerImage item) { + return new ImagesNested(index, item); } public RuntimeHandlersNested setNewRuntimeHandlerLike(int index,V1NodeRuntimeHandler item) { return new RuntimeHandlersNested(index, item); } - public RuntimeHandlersNested editRuntimeHandler(int index) { - if (index <= runtimeHandlers.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "runtimeHandlers")); - } - return this.setNewRuntimeHandlerLike(index, this.buildRuntimeHandler(index)); + public VolumesAttachedNested setNewVolumesAttachedLike(int index,V1AttachedVolume item) { + return new VolumesAttachedNested(index, item); } - public RuntimeHandlersNested editFirstRuntimeHandler() { - if (runtimeHandlers.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "runtimeHandlers")); + public A setToAddresses(int index,V1NodeAddress item) { + if (this.addresses == null) { + this.addresses = new ArrayList(); } - return this.setNewRuntimeHandlerLike(0, this.buildRuntimeHandler(0)); + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); + if (index < 0 || index >= addresses.size()) { + _visitables.get("addresses").add(builder); + addresses.add(builder); + } else { + _visitables.get("addresses").add(builder); + addresses.set(index, builder); + } + return (A) this; } - public RuntimeHandlersNested editLastRuntimeHandler() { - int index = runtimeHandlers.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "runtimeHandlers")); + public A setToConditions(int index,V1NodeCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); } - return this.setNewRuntimeHandlerLike(index, this.buildRuntimeHandler(index)); + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; } - public RuntimeHandlersNested editMatchingRuntimeHandler(Predicate predicate) { - int index = -1; - for (int i = 0;i < runtimeHandlers.size();i++) { - if (predicate.test(runtimeHandlers.get(i))) { - index = i; - break; - } + public A setToImages(int index,V1ContainerImage item) { + if (this.images == null) { + this.images = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "runtimeHandlers")); + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); + if (index < 0 || index >= images.size()) { + _visitables.get("images").add(builder); + images.add(builder); + } else { + _visitables.get("images").add(builder); + images.set(index, builder); } - return this.setNewRuntimeHandlerLike(index, this.buildRuntimeHandler(index)); + return (A) this; } - public A addToVolumesAttached(int index,V1AttachedVolume item) { - if (this.volumesAttached == null) { - this.volumesAttached = new ArrayList(); + public A setToRuntimeHandlers(int index,V1NodeRuntimeHandler item) { + if (this.runtimeHandlers == null) { + this.runtimeHandlers = new ArrayList(); } - V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - if (index < 0 || index >= volumesAttached.size()) { - _visitables.get("volumesAttached").add(builder); - volumesAttached.add(builder); + V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); + if (index < 0 || index >= runtimeHandlers.size()) { + _visitables.get("runtimeHandlers").add(builder); + runtimeHandlers.add(builder); } else { - _visitables.get("volumesAttached").add(builder); - volumesAttached.add(index, builder); + _visitables.get("runtimeHandlers").add(builder); + runtimeHandlers.set(index, builder); } return (A) this; } @@ -1219,272 +1299,326 @@ public A setToVolumesAttached(int index,V1AttachedVolume item) { return (A) this; } - public A addToVolumesAttached(V1AttachedVolume... items) { - if (this.volumesAttached == null) { - this.volumesAttached = new ArrayList(); - } - for (V1AttachedVolume item : items) { - V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - _visitables.get("volumesAttached").add(builder); - this.volumesAttached.add(builder); + public A setToVolumesInUse(int index,String item) { + if (this.volumesInUse == null) { + this.volumesInUse = new ArrayList(); } + this.volumesInUse.set(index, item); return (A) this; } - public A addAllToVolumesAttached(Collection items) { - if (this.volumesAttached == null) { - this.volumesAttached = new ArrayList(); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(addresses == null) && !(addresses.isEmpty())) { + sb.append("addresses:"); + sb.append(addresses); + sb.append(","); } - for (V1AttachedVolume item : items) { - V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - _visitables.get("volumesAttached").add(builder); - this.volumesAttached.add(builder); + if (!(allocatable == null) && !(allocatable.isEmpty())) { + sb.append("allocatable:"); + sb.append(allocatable); + sb.append(","); + } + if (!(capacity == null) && !(capacity.isEmpty())) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(config == null)) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(daemonEndpoints == null)) { + sb.append("daemonEndpoints:"); + sb.append(daemonEndpoints); + sb.append(","); + } + if (!(features == null)) { + sb.append("features:"); + sb.append(features); + sb.append(","); + } + if (!(images == null) && !(images.isEmpty())) { + sb.append("images:"); + sb.append(images); + sb.append(","); + } + if (!(nodeInfo == null)) { + sb.append("nodeInfo:"); + sb.append(nodeInfo); + sb.append(","); + } + if (!(phase == null)) { + sb.append("phase:"); + sb.append(phase); + sb.append(","); + } + if (!(runtimeHandlers == null) && !(runtimeHandlers.isEmpty())) { + sb.append("runtimeHandlers:"); + sb.append(runtimeHandlers); + sb.append(","); + } + if (!(volumesAttached == null) && !(volumesAttached.isEmpty())) { + sb.append("volumesAttached:"); + sb.append(volumesAttached); + sb.append(","); + } + if (!(volumesInUse == null) && !(volumesInUse.isEmpty())) { + sb.append("volumesInUse:"); + sb.append(volumesInUse); + } + sb.append("}"); + return sb.toString(); + } + + public A withAddresses(List addresses) { + if (this.addresses != null) { + this._visitables.get("addresses").clear(); + } + if (addresses != null) { + this.addresses = new ArrayList(); + for (V1NodeAddress item : addresses) { + this.addToAddresses(item); + } + } else { + this.addresses = null; } return (A) this; } - public A removeFromVolumesAttached(V1AttachedVolume... items) { - if (this.volumesAttached == null) { - return (A) this; + public A withAddresses(V1NodeAddress... addresses) { + if (this.addresses != null) { + this.addresses.clear(); + _visitables.remove("addresses"); } - for (V1AttachedVolume item : items) { - V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - _visitables.get("volumesAttached").remove(builder); - this.volumesAttached.remove(builder); + if (addresses != null) { + for (V1NodeAddress item : addresses) { + this.addToAddresses(item); + } + } + return (A) this; + } + + public A withAllocatable(Map allocatable) { + if (allocatable == null) { + this.allocatable = null; + } else { + this.allocatable = new LinkedHashMap(allocatable); } return (A) this; } - public A removeAllFromVolumesAttached(Collection items) { - if (this.volumesAttached == null) { - return (A) this; - } - for (V1AttachedVolume item : items) { - V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - _visitables.get("volumesAttached").remove(builder); - this.volumesAttached.remove(builder); + public A withCapacity(Map capacity) { + if (capacity == null) { + this.capacity = null; + } else { + this.capacity = new LinkedHashMap(capacity); } return (A) this; } - public A removeMatchingFromVolumesAttached(Predicate predicate) { - if (volumesAttached == null) { - return (A) this; + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); } - Iterator each = volumesAttached.iterator(); - List visitables = _visitables.get("volumesAttached"); - while (each.hasNext()) { - V1AttachedVolumeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1NodeCondition item : conditions) { + this.addToConditions(item); } + } else { + this.conditions = null; } return (A) this; } - public List buildVolumesAttached() { - return this.volumesAttached != null ? build(volumesAttached) : null; - } - - public V1AttachedVolume buildVolumesAttached(int index) { - return this.volumesAttached.get(index).build(); - } - - public V1AttachedVolume buildFirstVolumesAttached() { - return this.volumesAttached.get(0).build(); + public A withConditions(V1NodeCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1NodeCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; } - public V1AttachedVolume buildLastVolumesAttached() { - return this.volumesAttached.get(volumesAttached.size() - 1).build(); + public A withConfig(V1NodeConfigStatus config) { + this._visitables.remove("config"); + if (config != null) { + this.config = new V1NodeConfigStatusBuilder(config); + this._visitables.get("config").add(this.config); + } else { + this.config = null; + this._visitables.get("config").remove(this.config); + } + return (A) this; } - public V1AttachedVolume buildMatchingVolumesAttached(Predicate predicate) { - for (V1AttachedVolumeBuilder item : volumesAttached) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A withDaemonEndpoints(V1NodeDaemonEndpoints daemonEndpoints) { + this._visitables.remove("daemonEndpoints"); + if (daemonEndpoints != null) { + this.daemonEndpoints = new V1NodeDaemonEndpointsBuilder(daemonEndpoints); + this._visitables.get("daemonEndpoints").add(this.daemonEndpoints); + } else { + this.daemonEndpoints = null; + this._visitables.get("daemonEndpoints").remove(this.daemonEndpoints); + } + return (A) this; } - public boolean hasMatchingVolumesAttached(Predicate predicate) { - for (V1AttachedVolumeBuilder item : volumesAttached) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withFeatures(V1NodeFeatures features) { + this._visitables.remove("features"); + if (features != null) { + this.features = new V1NodeFeaturesBuilder(features); + this._visitables.get("features").add(this.features); + } else { + this.features = null; + this._visitables.get("features").remove(this.features); + } + return (A) this; } - public A withVolumesAttached(List volumesAttached) { - if (this.volumesAttached != null) { - this._visitables.get("volumesAttached").clear(); + public A withImages(List images) { + if (this.images != null) { + this._visitables.get("images").clear(); } - if (volumesAttached != null) { - this.volumesAttached = new ArrayList(); - for (V1AttachedVolume item : volumesAttached) { - this.addToVolumesAttached(item); + if (images != null) { + this.images = new ArrayList(); + for (V1ContainerImage item : images) { + this.addToImages(item); } } else { - this.volumesAttached = null; + this.images = null; } return (A) this; } - public A withVolumesAttached(V1AttachedVolume... volumesAttached) { - if (this.volumesAttached != null) { - this.volumesAttached.clear(); - _visitables.remove("volumesAttached"); + public A withImages(V1ContainerImage... images) { + if (this.images != null) { + this.images.clear(); + _visitables.remove("images"); } - if (volumesAttached != null) { - for (V1AttachedVolume item : volumesAttached) { - this.addToVolumesAttached(item); + if (images != null) { + for (V1ContainerImage item : images) { + this.addToImages(item); } } return (A) this; } - public boolean hasVolumesAttached() { - return this.volumesAttached != null && !(this.volumesAttached.isEmpty()); - } - - public VolumesAttachedNested addNewVolumesAttached() { - return new VolumesAttachedNested(-1, null); - } - - public VolumesAttachedNested addNewVolumesAttachedLike(V1AttachedVolume item) { - return new VolumesAttachedNested(-1, item); - } - - public VolumesAttachedNested setNewVolumesAttachedLike(int index,V1AttachedVolume item) { - return new VolumesAttachedNested(index, item); + public ConfigNested withNewConfig() { + return new ConfigNested(null); } - public VolumesAttachedNested editVolumesAttached(int index) { - if (index <= volumesAttached.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumesAttached")); - } - return this.setNewVolumesAttachedLike(index, this.buildVolumesAttached(index)); + public ConfigNested withNewConfigLike(V1NodeConfigStatus item) { + return new ConfigNested(item); } - public VolumesAttachedNested editFirstVolumesAttached() { - if (volumesAttached.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumesAttached")); - } - return this.setNewVolumesAttachedLike(0, this.buildVolumesAttached(0)); + public DaemonEndpointsNested withNewDaemonEndpoints() { + return new DaemonEndpointsNested(null); } - public VolumesAttachedNested editLastVolumesAttached() { - int index = volumesAttached.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumesAttached")); - } - return this.setNewVolumesAttachedLike(index, this.buildVolumesAttached(index)); + public DaemonEndpointsNested withNewDaemonEndpointsLike(V1NodeDaemonEndpoints item) { + return new DaemonEndpointsNested(item); } - public VolumesAttachedNested editMatchingVolumesAttached(Predicate predicate) { - int index = -1; - for (int i = 0;i < volumesAttached.size();i++) { - if (predicate.test(volumesAttached.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumesAttached")); - } - return this.setNewVolumesAttachedLike(index, this.buildVolumesAttached(index)); + public FeaturesNested withNewFeatures() { + return new FeaturesNested(null); } - public A addToVolumesInUse(int index,String item) { - if (this.volumesInUse == null) { - this.volumesInUse = new ArrayList(); - } - this.volumesInUse.add(index, item); - return (A) this; + public FeaturesNested withNewFeaturesLike(V1NodeFeatures item) { + return new FeaturesNested(item); } - public A setToVolumesInUse(int index,String item) { - if (this.volumesInUse == null) { - this.volumesInUse = new ArrayList(); - } - this.volumesInUse.set(index, item); - return (A) this; + public NodeInfoNested withNewNodeInfo() { + return new NodeInfoNested(null); } - public A addToVolumesInUse(String... items) { - if (this.volumesInUse == null) { - this.volumesInUse = new ArrayList(); - } - for (String item : items) { - this.volumesInUse.add(item); - } - return (A) this; + public NodeInfoNested withNewNodeInfoLike(V1NodeSystemInfo item) { + return new NodeInfoNested(item); } - public A addAllToVolumesInUse(Collection items) { - if (this.volumesInUse == null) { - this.volumesInUse = new ArrayList(); - } - for (String item : items) { - this.volumesInUse.add(item); + public A withNodeInfo(V1NodeSystemInfo nodeInfo) { + this._visitables.remove("nodeInfo"); + if (nodeInfo != null) { + this.nodeInfo = new V1NodeSystemInfoBuilder(nodeInfo); + this._visitables.get("nodeInfo").add(this.nodeInfo); + } else { + this.nodeInfo = null; + this._visitables.get("nodeInfo").remove(this.nodeInfo); } return (A) this; } - public A removeFromVolumesInUse(String... items) { - if (this.volumesInUse == null) { - return (A) this; - } - for (String item : items) { - this.volumesInUse.remove(item); - } + public A withPhase(String phase) { + this.phase = phase; return (A) this; } - public A removeAllFromVolumesInUse(Collection items) { - if (this.volumesInUse == null) { - return (A) this; - } - for (String item : items) { - this.volumesInUse.remove(item); + public A withRuntimeHandlers(List runtimeHandlers) { + if (this.runtimeHandlers != null) { + this._visitables.get("runtimeHandlers").clear(); } - return (A) this; - } - - public List getVolumesInUse() { - return this.volumesInUse; - } - - public String getVolumesInUse(int index) { - return this.volumesInUse.get(index); - } - - public String getFirstVolumesInUse() { - return this.volumesInUse.get(0); + if (runtimeHandlers != null) { + this.runtimeHandlers = new ArrayList(); + for (V1NodeRuntimeHandler item : runtimeHandlers) { + this.addToRuntimeHandlers(item); + } + } else { + this.runtimeHandlers = null; + } + return (A) this; } - public String getLastVolumesInUse() { - return this.volumesInUse.get(volumesInUse.size() - 1); + public A withRuntimeHandlers(V1NodeRuntimeHandler... runtimeHandlers) { + if (this.runtimeHandlers != null) { + this.runtimeHandlers.clear(); + _visitables.remove("runtimeHandlers"); + } + if (runtimeHandlers != null) { + for (V1NodeRuntimeHandler item : runtimeHandlers) { + this.addToRuntimeHandlers(item); + } + } + return (A) this; } - public String getMatchingVolumesInUse(Predicate predicate) { - for (String item : volumesInUse) { - if (predicate.test(item)) { - return item; + public A withVolumesAttached(List volumesAttached) { + if (this.volumesAttached != null) { + this._visitables.get("volumesAttached").clear(); + } + if (volumesAttached != null) { + this.volumesAttached = new ArrayList(); + for (V1AttachedVolume item : volumesAttached) { + this.addToVolumesAttached(item); } - } - return null; + } else { + this.volumesAttached = null; + } + return (A) this; } - public boolean hasMatchingVolumesInUse(Predicate predicate) { - for (String item : volumesInUse) { - if (predicate.test(item)) { - return true; - } + public A withVolumesAttached(V1AttachedVolume... volumesAttached) { + if (this.volumesAttached != null) { + this.volumesAttached.clear(); + _visitables.remove("volumesAttached"); + } + if (volumesAttached != null) { + for (V1AttachedVolume item : volumesAttached) { + this.addToVolumesAttached(item); } - return false; + } + return (A) this; } public A withVolumesInUse(List volumesInUse) { @@ -1511,146 +1645,16 @@ public A withVolumesInUse(String... volumesInUse) { } return (A) this; } + public class AddressesNested extends V1NodeAddressFluent> implements Nested{ - public boolean hasVolumesInUse() { - return this.volumesInUse != null && !(this.volumesInUse.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1NodeStatusFluent that = (V1NodeStatusFluent) o; - if (!(Objects.equals(addresses, that.addresses))) { - return false; - } - if (!(Objects.equals(allocatable, that.allocatable))) { - return false; - } - if (!(Objects.equals(capacity, that.capacity))) { - return false; - } - if (!(Objects.equals(conditions, that.conditions))) { - return false; - } - if (!(Objects.equals(config, that.config))) { - return false; - } - if (!(Objects.equals(daemonEndpoints, that.daemonEndpoints))) { - return false; - } - if (!(Objects.equals(features, that.features))) { - return false; - } - if (!(Objects.equals(images, that.images))) { - return false; - } - if (!(Objects.equals(nodeInfo, that.nodeInfo))) { - return false; - } - if (!(Objects.equals(phase, that.phase))) { - return false; - } - if (!(Objects.equals(runtimeHandlers, that.runtimeHandlers))) { - return false; - } - if (!(Objects.equals(volumesAttached, that.volumesAttached))) { - return false; - } - if (!(Objects.equals(volumesInUse, that.volumesInUse))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(addresses, allocatable, capacity, conditions, config, daemonEndpoints, features, images, nodeInfo, phase, runtimeHandlers, volumesAttached, volumesInUse); - } + V1NodeAddressBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(addresses == null) && !(addresses.isEmpty())) { - sb.append("addresses:"); - sb.append(addresses); - sb.append(","); - } - if (!(allocatable == null) && !(allocatable.isEmpty())) { - sb.append("allocatable:"); - sb.append(allocatable); - sb.append(","); - } - if (!(capacity == null) && !(capacity.isEmpty())) { - sb.append("capacity:"); - sb.append(capacity); - sb.append(","); - } - if (!(conditions == null) && !(conditions.isEmpty())) { - sb.append("conditions:"); - sb.append(conditions); - sb.append(","); - } - if (!(config == null)) { - sb.append("config:"); - sb.append(config); - sb.append(","); - } - if (!(daemonEndpoints == null)) { - sb.append("daemonEndpoints:"); - sb.append(daemonEndpoints); - sb.append(","); - } - if (!(features == null)) { - sb.append("features:"); - sb.append(features); - sb.append(","); - } - if (!(images == null) && !(images.isEmpty())) { - sb.append("images:"); - sb.append(images); - sb.append(","); - } - if (!(nodeInfo == null)) { - sb.append("nodeInfo:"); - sb.append(nodeInfo); - sb.append(","); - } - if (!(phase == null)) { - sb.append("phase:"); - sb.append(phase); - sb.append(","); - } - if (!(runtimeHandlers == null) && !(runtimeHandlers.isEmpty())) { - sb.append("runtimeHandlers:"); - sb.append(runtimeHandlers); - sb.append(","); - } - if (!(volumesAttached == null) && !(volumesAttached.isEmpty())) { - sb.append("volumesAttached:"); - sb.append(volumesAttached); - sb.append(","); - } - if (!(volumesInUse == null) && !(volumesInUse.isEmpty())) { - sb.append("volumesInUse:"); - sb.append(volumesInUse); - } - sb.append("}"); - return sb.toString(); - } - public class AddressesNested extends V1NodeAddressFluent> implements Nested{ AddressesNested(int index,V1NodeAddress item) { this.index = index; this.builder = new V1NodeAddressBuilder(this, item); } - V1NodeAddressBuilder builder; - int index; - + public N and() { return (N) V1NodeStatusFluent.this.setToAddresses(index, builder.build()); } @@ -1659,16 +1663,17 @@ public N endAddress() { return and(); } - } public class ConditionsNested extends V1NodeConditionFluent> implements Nested{ + + V1NodeConditionBuilder builder; + int index; + ConditionsNested(int index,V1NodeCondition item) { this.index = index; this.builder = new V1NodeConditionBuilder(this, item); } - V1NodeConditionBuilder builder; - int index; - + public N and() { return (N) V1NodeStatusFluent.this.setToConditions(index, builder.build()); } @@ -1677,14 +1682,15 @@ public N endCondition() { return and(); } - } public class ConfigNested extends V1NodeConfigStatusFluent> implements Nested{ + + V1NodeConfigStatusBuilder builder; + ConfigNested(V1NodeConfigStatus item) { this.builder = new V1NodeConfigStatusBuilder(this, item); } - V1NodeConfigStatusBuilder builder; - + public N and() { return (N) V1NodeStatusFluent.this.withConfig(builder.build()); } @@ -1693,14 +1699,15 @@ public N endConfig() { return and(); } - } public class DaemonEndpointsNested extends V1NodeDaemonEndpointsFluent> implements Nested{ + + V1NodeDaemonEndpointsBuilder builder; + DaemonEndpointsNested(V1NodeDaemonEndpoints item) { this.builder = new V1NodeDaemonEndpointsBuilder(this, item); } - V1NodeDaemonEndpointsBuilder builder; - + public N and() { return (N) V1NodeStatusFluent.this.withDaemonEndpoints(builder.build()); } @@ -1709,14 +1716,15 @@ public N endDaemonEndpoints() { return and(); } - } public class FeaturesNested extends V1NodeFeaturesFluent> implements Nested{ + + V1NodeFeaturesBuilder builder; + FeaturesNested(V1NodeFeatures item) { this.builder = new V1NodeFeaturesBuilder(this, item); } - V1NodeFeaturesBuilder builder; - + public N and() { return (N) V1NodeStatusFluent.this.withFeatures(builder.build()); } @@ -1725,16 +1733,17 @@ public N endFeatures() { return and(); } - } public class ImagesNested extends V1ContainerImageFluent> implements Nested{ + + V1ContainerImageBuilder builder; + int index; + ImagesNested(int index,V1ContainerImage item) { this.index = index; this.builder = new V1ContainerImageBuilder(this, item); } - V1ContainerImageBuilder builder; - int index; - + public N and() { return (N) V1NodeStatusFluent.this.setToImages(index, builder.build()); } @@ -1743,14 +1752,15 @@ public N endImage() { return and(); } - } public class NodeInfoNested extends V1NodeSystemInfoFluent> implements Nested{ + + V1NodeSystemInfoBuilder builder; + NodeInfoNested(V1NodeSystemInfo item) { this.builder = new V1NodeSystemInfoBuilder(this, item); } - V1NodeSystemInfoBuilder builder; - + public N and() { return (N) V1NodeStatusFluent.this.withNodeInfo(builder.build()); } @@ -1759,16 +1769,17 @@ public N endNodeInfo() { return and(); } - } public class RuntimeHandlersNested extends V1NodeRuntimeHandlerFluent> implements Nested{ + + V1NodeRuntimeHandlerBuilder builder; + int index; + RuntimeHandlersNested(int index,V1NodeRuntimeHandler item) { this.index = index; this.builder = new V1NodeRuntimeHandlerBuilder(this, item); } - V1NodeRuntimeHandlerBuilder builder; - int index; - + public N and() { return (N) V1NodeStatusFluent.this.setToRuntimeHandlers(index, builder.build()); } @@ -1777,16 +1788,17 @@ public N endRuntimeHandler() { return and(); } - } public class VolumesAttachedNested extends V1AttachedVolumeFluent> implements Nested{ + + V1AttachedVolumeBuilder builder; + int index; + VolumesAttachedNested(int index,V1AttachedVolume item) { this.index = index; this.builder = new V1AttachedVolumeBuilder(this, item); } - V1AttachedVolumeBuilder builder; - int index; - + public N and() { return (N) V1NodeStatusFluent.this.setToVolumesAttached(index, builder.build()); } @@ -1795,7 +1807,5 @@ public N endVolumesAttached() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusBuilder.java index 47025b849e..5f96dc308e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NodeSwapStatusBuilder extends V1NodeSwapStatusFluent implements VisitableBuilder{ + + V1NodeSwapStatusFluent fluent; + public V1NodeSwapStatusBuilder() { this(new V1NodeSwapStatus()); } @@ -11,22 +14,20 @@ public V1NodeSwapStatusBuilder(V1NodeSwapStatusFluent fluent) { this(fluent, new V1NodeSwapStatus()); } - public V1NodeSwapStatusBuilder(V1NodeSwapStatusFluent fluent,V1NodeSwapStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeSwapStatusBuilder(V1NodeSwapStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeSwapStatusFluent fluent; + public V1NodeSwapStatusBuilder(V1NodeSwapStatusFluent fluent,V1NodeSwapStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeSwapStatus build() { V1NodeSwapStatus buildable = new V1NodeSwapStatus(); buildable.setCapacity(fluent.getCapacity()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusFluent.java index 16e0257d91..5105d2600d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1NodeSwapStatusFluent> extends BaseFluent{ + + private Long capacity; + public V1NodeSwapStatusFluent() { } public V1NodeSwapStatusFluent(V1NodeSwapStatus instance) { this.copyInstance(instance); } - private Long capacity; - + protected void copyInstance(V1NodeSwapStatus instance) { instance = instance != null ? instance : new V1NodeSwapStatus(); if (instance != null) { @@ -28,19 +30,6 @@ protected void copyInstance(V1NodeSwapStatus instance) { } } - public Long getCapacity() { - return this.capacity; - } - - public A withCapacity(Long capacity) { - this.capacity = capacity; - return (A) this; - } - - public boolean hasCapacity() { - return this.capacity != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -58,6 +47,14 @@ public boolean equals(Object o) { return true; } + public Long getCapacity() { + return this.capacity; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + public int hashCode() { return Objects.hash(capacity); } @@ -73,5 +70,9 @@ public String toString() { return sb.toString(); } - + public A withCapacity(Long capacity) { + this.capacity = capacity; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java index 7e544d3e82..cfe134fec3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NodeSystemInfoBuilder extends V1NodeSystemInfoFluent implements VisitableBuilder{ + + V1NodeSystemInfoFluent fluent; + public V1NodeSystemInfoBuilder() { this(new V1NodeSystemInfo()); } @@ -11,17 +14,16 @@ public V1NodeSystemInfoBuilder(V1NodeSystemInfoFluent fluent) { this(fluent, new V1NodeSystemInfo()); } - public V1NodeSystemInfoBuilder(V1NodeSystemInfoFluent fluent,V1NodeSystemInfo instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeSystemInfoBuilder(V1NodeSystemInfo instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeSystemInfoFluent fluent; + public V1NodeSystemInfoBuilder(V1NodeSystemInfoFluent fluent,V1NodeSystemInfo instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeSystemInfo build() { V1NodeSystemInfo buildable = new V1NodeSystemInfo(); buildable.setArchitecture(fluent.getArchitecture()); @@ -38,5 +40,4 @@ public V1NodeSystemInfo build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java index e1ffe2ba14..769be1d30d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java @@ -1,25 +1,20 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1NodeSystemInfoFluent> extends BaseFluent{ - public V1NodeSystemInfoFluent() { - } - - public V1NodeSystemInfoFluent(V1NodeSystemInfo instance) { - this.copyInstance(instance); - } + private String architecture; private String bootID; private String containerRuntimeVersion; @@ -31,6 +26,17 @@ public V1NodeSystemInfoFluent(V1NodeSystemInfo instance) { private String osImage; private V1NodeSwapStatusBuilder swap; private String systemUUID; + + public V1NodeSystemInfoFluent() { + } + + public V1NodeSystemInfoFluent(V1NodeSystemInfo instance) { + this.copyInstance(instance); + } + + public V1NodeSwapStatus buildSwap() { + return this.swap != null ? this.swap.build() : null; + } protected void copyInstance(V1NodeSystemInfo instance) { instance = instance != null ? instance : new V1NodeSystemInfo(); @@ -49,223 +55,149 @@ protected void copyInstance(V1NodeSystemInfo instance) { } } - public String getArchitecture() { - return this.architecture; + public SwapNested editOrNewSwap() { + return this.withNewSwapLike(Optional.ofNullable(this.buildSwap()).orElse(new V1NodeSwapStatusBuilder().build())); } - public A withArchitecture(String architecture) { - this.architecture = architecture; - return (A) this; + public SwapNested editOrNewSwapLike(V1NodeSwapStatus item) { + return this.withNewSwapLike(Optional.ofNullable(this.buildSwap()).orElse(item)); } - public boolean hasArchitecture() { - return this.architecture != null; + public SwapNested editSwap() { + return this.withNewSwapLike(Optional.ofNullable(this.buildSwap()).orElse(null)); } - public String getBootID() { - return this.bootID; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeSystemInfoFluent that = (V1NodeSystemInfoFluent) o; + if (!(Objects.equals(architecture, that.architecture))) { + return false; + } + if (!(Objects.equals(bootID, that.bootID))) { + return false; + } + if (!(Objects.equals(containerRuntimeVersion, that.containerRuntimeVersion))) { + return false; + } + if (!(Objects.equals(kernelVersion, that.kernelVersion))) { + return false; + } + if (!(Objects.equals(kubeProxyVersion, that.kubeProxyVersion))) { + return false; + } + if (!(Objects.equals(kubeletVersion, that.kubeletVersion))) { + return false; + } + if (!(Objects.equals(machineID, that.machineID))) { + return false; + } + if (!(Objects.equals(operatingSystem, that.operatingSystem))) { + return false; + } + if (!(Objects.equals(osImage, that.osImage))) { + return false; + } + if (!(Objects.equals(swap, that.swap))) { + return false; + } + if (!(Objects.equals(systemUUID, that.systemUUID))) { + return false; + } + return true; } - public A withBootID(String bootID) { - this.bootID = bootID; - return (A) this; + public String getArchitecture() { + return this.architecture; } - public boolean hasBootID() { - return this.bootID != null; + public String getBootID() { + return this.bootID; } public String getContainerRuntimeVersion() { return this.containerRuntimeVersion; } - public A withContainerRuntimeVersion(String containerRuntimeVersion) { - this.containerRuntimeVersion = containerRuntimeVersion; - return (A) this; - } - - public boolean hasContainerRuntimeVersion() { - return this.containerRuntimeVersion != null; - } - public String getKernelVersion() { return this.kernelVersion; } - public A withKernelVersion(String kernelVersion) { - this.kernelVersion = kernelVersion; - return (A) this; - } - - public boolean hasKernelVersion() { - return this.kernelVersion != null; - } - public String getKubeProxyVersion() { return this.kubeProxyVersion; } - public A withKubeProxyVersion(String kubeProxyVersion) { - this.kubeProxyVersion = kubeProxyVersion; - return (A) this; - } - - public boolean hasKubeProxyVersion() { - return this.kubeProxyVersion != null; - } - public String getKubeletVersion() { return this.kubeletVersion; } - public A withKubeletVersion(String kubeletVersion) { - this.kubeletVersion = kubeletVersion; - return (A) this; - } - - public boolean hasKubeletVersion() { - return this.kubeletVersion != null; - } - public String getMachineID() { return this.machineID; } - public A withMachineID(String machineID) { - this.machineID = machineID; - return (A) this; - } - - public boolean hasMachineID() { - return this.machineID != null; - } - public String getOperatingSystem() { return this.operatingSystem; } - public A withOperatingSystem(String operatingSystem) { - this.operatingSystem = operatingSystem; - return (A) this; - } - - public boolean hasOperatingSystem() { - return this.operatingSystem != null; - } - public String getOsImage() { return this.osImage; } - public A withOsImage(String osImage) { - this.osImage = osImage; - return (A) this; - } - - public boolean hasOsImage() { - return this.osImage != null; + public String getSystemUUID() { + return this.systemUUID; } - public V1NodeSwapStatus buildSwap() { - return this.swap != null ? this.swap.build() : null; + public boolean hasArchitecture() { + return this.architecture != null; } - public A withSwap(V1NodeSwapStatus swap) { - this._visitables.remove("swap"); - if (swap != null) { - this.swap = new V1NodeSwapStatusBuilder(swap); - this._visitables.get("swap").add(this.swap); - } else { - this.swap = null; - this._visitables.get("swap").remove(this.swap); - } - return (A) this; + public boolean hasBootID() { + return this.bootID != null; } - public boolean hasSwap() { - return this.swap != null; + public boolean hasContainerRuntimeVersion() { + return this.containerRuntimeVersion != null; } - public SwapNested withNewSwap() { - return new SwapNested(null); + public boolean hasKernelVersion() { + return this.kernelVersion != null; } - public SwapNested withNewSwapLike(V1NodeSwapStatus item) { - return new SwapNested(item); + public boolean hasKubeProxyVersion() { + return this.kubeProxyVersion != null; } - public SwapNested editSwap() { - return this.withNewSwapLike(Optional.ofNullable(this.buildSwap()).orElse(null)); + public boolean hasKubeletVersion() { + return this.kubeletVersion != null; } - public SwapNested editOrNewSwap() { - return this.withNewSwapLike(Optional.ofNullable(this.buildSwap()).orElse(new V1NodeSwapStatusBuilder().build())); + public boolean hasMachineID() { + return this.machineID != null; } - public SwapNested editOrNewSwapLike(V1NodeSwapStatus item) { - return this.withNewSwapLike(Optional.ofNullable(this.buildSwap()).orElse(item)); + public boolean hasOperatingSystem() { + return this.operatingSystem != null; } - public String getSystemUUID() { - return this.systemUUID; + public boolean hasOsImage() { + return this.osImage != null; } - public A withSystemUUID(String systemUUID) { - this.systemUUID = systemUUID; - return (A) this; + public boolean hasSwap() { + return this.swap != null; } public boolean hasSystemUUID() { return this.systemUUID != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1NodeSystemInfoFluent that = (V1NodeSystemInfoFluent) o; - if (!(Objects.equals(architecture, that.architecture))) { - return false; - } - if (!(Objects.equals(bootID, that.bootID))) { - return false; - } - if (!(Objects.equals(containerRuntimeVersion, that.containerRuntimeVersion))) { - return false; - } - if (!(Objects.equals(kernelVersion, that.kernelVersion))) { - return false; - } - if (!(Objects.equals(kubeProxyVersion, that.kubeProxyVersion))) { - return false; - } - if (!(Objects.equals(kubeletVersion, that.kubeletVersion))) { - return false; - } - if (!(Objects.equals(machineID, that.machineID))) { - return false; - } - if (!(Objects.equals(operatingSystem, that.operatingSystem))) { - return false; - } - if (!(Objects.equals(osImage, that.osImage))) { - return false; - } - if (!(Objects.equals(swap, that.swap))) { - return false; - } - if (!(Objects.equals(systemUUID, that.systemUUID))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, swap, systemUUID); } @@ -330,12 +262,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withArchitecture(String architecture) { + this.architecture = architecture; + return (A) this; + } + + public A withBootID(String bootID) { + this.bootID = bootID; + return (A) this; + } + + public A withContainerRuntimeVersion(String containerRuntimeVersion) { + this.containerRuntimeVersion = containerRuntimeVersion; + return (A) this; + } + + public A withKernelVersion(String kernelVersion) { + this.kernelVersion = kernelVersion; + return (A) this; + } + + public A withKubeProxyVersion(String kubeProxyVersion) { + this.kubeProxyVersion = kubeProxyVersion; + return (A) this; + } + + public A withKubeletVersion(String kubeletVersion) { + this.kubeletVersion = kubeletVersion; + return (A) this; + } + + public A withMachineID(String machineID) { + this.machineID = machineID; + return (A) this; + } + + public SwapNested withNewSwap() { + return new SwapNested(null); + } + + public SwapNested withNewSwapLike(V1NodeSwapStatus item) { + return new SwapNested(item); + } + + public A withOperatingSystem(String operatingSystem) { + this.operatingSystem = operatingSystem; + return (A) this; + } + + public A withOsImage(String osImage) { + this.osImage = osImage; + return (A) this; + } + + public A withSwap(V1NodeSwapStatus swap) { + this._visitables.remove("swap"); + if (swap != null) { + this.swap = new V1NodeSwapStatusBuilder(swap); + this._visitables.get("swap").add(this.swap); + } else { + this.swap = null; + this._visitables.get("swap").remove(this.swap); + } + return (A) this; + } + + public A withSystemUUID(String systemUUID) { + this.systemUUID = systemUUID; + return (A) this; + } public class SwapNested extends V1NodeSwapStatusFluent> implements Nested{ + + V1NodeSwapStatusBuilder builder; + SwapNested(V1NodeSwapStatus item) { this.builder = new V1NodeSwapStatusBuilder(this, item); } - V1NodeSwapStatusBuilder builder; - + public N and() { return (N) V1NodeSystemInfoFluent.this.withSwap(builder.build()); } @@ -344,7 +348,5 @@ public N endSwap() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java index 296d56dd40..9fbbedbb81 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NonResourceAttributesBuilder extends V1NonResourceAttributesFluent implements VisitableBuilder{ + + V1NonResourceAttributesFluent fluent; + public V1NonResourceAttributesBuilder() { this(new V1NonResourceAttributes()); } @@ -11,17 +14,16 @@ public V1NonResourceAttributesBuilder(V1NonResourceAttributesFluent fluent) { this(fluent, new V1NonResourceAttributes()); } - public V1NonResourceAttributesBuilder(V1NonResourceAttributesFluent fluent,V1NonResourceAttributes instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NonResourceAttributesBuilder(V1NonResourceAttributes instance) { this.fluent = this; this.copyInstance(instance); } - V1NonResourceAttributesFluent fluent; + public V1NonResourceAttributesBuilder(V1NonResourceAttributesFluent fluent,V1NonResourceAttributes instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NonResourceAttributes build() { V1NonResourceAttributes buildable = new V1NonResourceAttributes(); buildable.setPath(fluent.getPath()); @@ -29,5 +31,4 @@ public V1NonResourceAttributes build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java index 262f458ecc..8aeda50fb7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1NonResourceAttributesFluent> extends BaseFluent{ + + private String path; + private String verb; + public V1NonResourceAttributesFluent() { } public V1NonResourceAttributesFluent(V1NonResourceAttributes instance) { this.copyInstance(instance); } - private String path; - private String verb; - + protected void copyInstance(V1NonResourceAttributes instance) { instance = instance != null ? instance : new V1NonResourceAttributes(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1NonResourceAttributes instance) { } } - public String getPath() { - return this.path; - } - - public A withPath(String path) { - this.path = path; - return (A) this; - } - - public boolean hasPath() { - return this.path != null; - } - - public String getVerb() { - return this.verb; - } - - public A withVerb(String verb) { - this.verb = verb; - return (A) this; - } - - public boolean hasVerb() { - return this.verb != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getPath() { + return this.path; + } + + public String getVerb() { + return this.verb; + } + + public boolean hasPath() { + return this.path != null; + } + + public boolean hasVerb() { + return this.verb != null; + } + public int hashCode() { return Objects.hash(path, verb); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public A withVerb(String verb) { + this.verb = verb; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleBuilder.java index 7f3a6174f5..8e622ba04f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NonResourcePolicyRuleBuilder extends V1NonResourcePolicyRuleFluent implements VisitableBuilder{ + + V1NonResourcePolicyRuleFluent fluent; + public V1NonResourcePolicyRuleBuilder() { this(new V1NonResourcePolicyRule()); } @@ -11,17 +14,16 @@ public V1NonResourcePolicyRuleBuilder(V1NonResourcePolicyRuleFluent fluent) { this(fluent, new V1NonResourcePolicyRule()); } - public V1NonResourcePolicyRuleBuilder(V1NonResourcePolicyRuleFluent fluent,V1NonResourcePolicyRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NonResourcePolicyRuleBuilder(V1NonResourcePolicyRule instance) { this.fluent = this; this.copyInstance(instance); } - V1NonResourcePolicyRuleFluent fluent; + public V1NonResourcePolicyRuleBuilder(V1NonResourcePolicyRuleFluent fluent,V1NonResourcePolicyRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NonResourcePolicyRule build() { V1NonResourcePolicyRule buildable = new V1NonResourcePolicyRule(); buildable.setNonResourceURLs(fluent.getNonResourceURLs()); @@ -29,5 +31,4 @@ public V1NonResourcePolicyRule build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleFluent.java index a5fd694b02..d42bf0583e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,36 +16,34 @@ */ @SuppressWarnings("unchecked") public class V1NonResourcePolicyRuleFluent> extends BaseFluent{ + + private List nonResourceURLs; + private List verbs; + public V1NonResourcePolicyRuleFluent() { } public V1NonResourcePolicyRuleFluent(V1NonResourcePolicyRule instance) { this.copyInstance(instance); } - private List nonResourceURLs; - private List verbs; - - protected void copyInstance(V1NonResourcePolicyRule instance) { - instance = instance != null ? instance : new V1NonResourcePolicyRule(); - if (instance != null) { - this.withNonResourceURLs(instance.getNonResourceURLs()); - this.withVerbs(instance.getVerbs()); - } - } - - public A addToNonResourceURLs(int index,String item) { + + public A addAllToNonResourceURLs(Collection items) { if (this.nonResourceURLs == null) { this.nonResourceURLs = new ArrayList(); } - this.nonResourceURLs.add(index, item); + for (String item : items) { + this.nonResourceURLs.add(item); + } return (A) this; } - public A setToNonResourceURLs(int index,String item) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + public A addAllToVerbs(Collection items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); } - this.nonResourceURLs.set(index, item); return (A) this; } @@ -59,52 +57,76 @@ public A addToNonResourceURLs(String... items) { return (A) this; } - public A addAllToNonResourceURLs(Collection items) { + public A addToNonResourceURLs(int index,String item) { if (this.nonResourceURLs == null) { this.nonResourceURLs = new ArrayList(); } - for (String item : items) { - this.nonResourceURLs.add(item); - } + this.nonResourceURLs.add(index, item); return (A) this; } - public A removeFromNonResourceURLs(String... items) { - if (this.nonResourceURLs == null) { - return (A) this; + public A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); } for (String item : items) { - this.nonResourceURLs.remove(item); + this.verbs.add(item); } return (A) this; } - public A removeAllFromNonResourceURLs(Collection items) { - if (this.nonResourceURLs == null) { - return (A) this; - } - for (String item : items) { - this.nonResourceURLs.remove(item); + public A addToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); } + this.verbs.add(index, item); return (A) this; } - public List getNonResourceURLs() { - return this.nonResourceURLs; + protected void copyInstance(V1NonResourcePolicyRule instance) { + instance = instance != null ? instance : new V1NonResourcePolicyRule(); + if (instance != null) { + this.withNonResourceURLs(instance.getNonResourceURLs()); + this.withVerbs(instance.getVerbs()); + } } - public String getNonResourceURL(int index) { - return this.nonResourceURLs.get(index); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NonResourcePolicyRuleFluent that = (V1NonResourcePolicyRuleFluent) o; + if (!(Objects.equals(nonResourceURLs, that.nonResourceURLs))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } + return true; } public String getFirstNonResourceURL() { return this.nonResourceURLs.get(0); } + public String getFirstVerb() { + return this.verbs.get(0); + } + public String getLastNonResourceURL() { return this.nonResourceURLs.get(nonResourceURLs.size() - 1); } + public String getLastVerb() { + return this.verbs.get(verbs.size() - 1); + } + public String getMatchingNonResourceURL(Predicate predicate) { for (String item : nonResourceURLs) { if (predicate.test(item)) { @@ -114,6 +136,31 @@ public String getMatchingNonResourceURL(Predicate predicate) { return null; } + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getNonResourceURL(int index) { + return this.nonResourceURLs.get(index); + } + + public List getNonResourceURLs() { + return this.nonResourceURLs; + } + + public String getVerb(int index) { + return this.verbs.get(index); + } + + public List getVerbs() { + return this.verbs; + } + public boolean hasMatchingNonResourceURL(Predicate predicate) { for (String item : nonResourceURLs) { if (predicate.test(item)) { @@ -123,82 +170,58 @@ public boolean hasMatchingNonResourceURL(Predicate predicate) { return false; } - public A withNonResourceURLs(List nonResourceURLs) { - if (nonResourceURLs != null) { - this.nonResourceURLs = new ArrayList(); - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); + public boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return true; } - } else { - this.nonResourceURLs = null; - } - return (A) this; - } - - public A withNonResourceURLs(String... nonResourceURLs) { - if (this.nonResourceURLs != null) { - this.nonResourceURLs.clear(); - _visitables.remove("nonResourceURLs"); - } - if (nonResourceURLs != null) { - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); } - } - return (A) this; + return false; } public boolean hasNonResourceURLs() { return this.nonResourceURLs != null && !(this.nonResourceURLs.isEmpty()); } - public A addToVerbs(int index,String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - this.verbs.add(index, item); - return (A) this; + public boolean hasVerbs() { + return this.verbs != null && !(this.verbs.isEmpty()); } - public A setToVerbs(int index,String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - this.verbs.set(index, item); - return (A) this; + public int hashCode() { + return Objects.hash(nonResourceURLs, verbs); } - public A addToVerbs(String... items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); + public A removeAllFromNonResourceURLs(Collection items) { + if (this.nonResourceURLs == null) { + return (A) this; } for (String item : items) { - this.verbs.add(item); + this.nonResourceURLs.remove(item); } return (A) this; } - public A addAllToVerbs(Collection items) { + public A removeAllFromVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + return (A) this; } for (String item : items) { - this.verbs.add(item); + this.verbs.remove(item); } return (A) this; } - public A removeFromVerbs(String... items) { - if (this.verbs == null) { + public A removeFromNonResourceURLs(String... items) { + if (this.nonResourceURLs == null) { return (A) this; } for (String item : items) { - this.verbs.remove(item); + this.nonResourceURLs.remove(item); } return (A) this; } - public A removeAllFromVerbs(Collection items) { + public A removeFromVerbs(String... items) { if (this.verbs == null) { return (A) this; } @@ -208,38 +231,61 @@ public A removeAllFromVerbs(Collection items) { return (A) this; } - public List getVerbs() { - return this.verbs; - } - - public String getVerb(int index) { - return this.verbs.get(index); + public A setToNonResourceURLs(int index,String item) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + this.nonResourceURLs.set(index, item); + return (A) this; } - public String getFirstVerb() { - return this.verbs.get(0); + public A setToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.set(index, item); + return (A) this; } - public String getLastVerb() { - return this.verbs.get(verbs.size() - 1); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(nonResourceURLs == null) && !(nonResourceURLs.isEmpty())) { + sb.append("nonResourceURLs:"); + sb.append(nonResourceURLs); + sb.append(","); + } + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + } + sb.append("}"); + return sb.toString(); } - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; + public A withNonResourceURLs(List nonResourceURLs) { + if (nonResourceURLs != null) { + this.nonResourceURLs = new ArrayList(); + for (String item : nonResourceURLs) { + this.addToNonResourceURLs(item); } - } - return null; + } else { + this.nonResourceURLs = null; + } + return (A) this; } - public boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } + public A withNonResourceURLs(String... nonResourceURLs) { + if (this.nonResourceURLs != null) { + this.nonResourceURLs.clear(); + _visitables.remove("nonResourceURLs"); + } + if (nonResourceURLs != null) { + for (String item : nonResourceURLs) { + this.addToNonResourceURLs(item); } - return false; + } + return (A) this; } public A withVerbs(List verbs) { @@ -267,49 +313,4 @@ public A withVerbs(String... verbs) { return (A) this; } - public boolean hasVerbs() { - return this.verbs != null && !(this.verbs.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1NonResourcePolicyRuleFluent that = (V1NonResourcePolicyRuleFluent) o; - if (!(Objects.equals(nonResourceURLs, that.nonResourceURLs))) { - return false; - } - if (!(Objects.equals(verbs, that.verbs))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(nonResourceURLs, verbs); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(nonResourceURLs == null) && !(nonResourceURLs.isEmpty())) { - sb.append("nonResourceURLs:"); - sb.append(nonResourceURLs); - sb.append(","); - } - if (!(verbs == null) && !(verbs.isEmpty())) { - sb.append("verbs:"); - sb.append(verbs); - } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java index 3000218afc..88fa739481 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1NonResourceRuleBuilder extends V1NonResourceRuleFluent implements VisitableBuilder{ + + V1NonResourceRuleFluent fluent; + public V1NonResourceRuleBuilder() { this(new V1NonResourceRule()); } @@ -11,17 +14,16 @@ public V1NonResourceRuleBuilder(V1NonResourceRuleFluent fluent) { this(fluent, new V1NonResourceRule()); } - public V1NonResourceRuleBuilder(V1NonResourceRuleFluent fluent,V1NonResourceRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NonResourceRuleBuilder(V1NonResourceRule instance) { this.fluent = this; this.copyInstance(instance); } - V1NonResourceRuleFluent fluent; + public V1NonResourceRuleBuilder(V1NonResourceRuleFluent fluent,V1NonResourceRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NonResourceRule build() { V1NonResourceRule buildable = new V1NonResourceRule(); buildable.setNonResourceURLs(fluent.getNonResourceURLs()); @@ -29,5 +31,4 @@ public V1NonResourceRule build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java index 8896b9ce33..763f37faa1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,36 +16,34 @@ */ @SuppressWarnings("unchecked") public class V1NonResourceRuleFluent> extends BaseFluent{ + + private List nonResourceURLs; + private List verbs; + public V1NonResourceRuleFluent() { } public V1NonResourceRuleFluent(V1NonResourceRule instance) { this.copyInstance(instance); } - private List nonResourceURLs; - private List verbs; - - protected void copyInstance(V1NonResourceRule instance) { - instance = instance != null ? instance : new V1NonResourceRule(); - if (instance != null) { - this.withNonResourceURLs(instance.getNonResourceURLs()); - this.withVerbs(instance.getVerbs()); - } - } - - public A addToNonResourceURLs(int index,String item) { + + public A addAllToNonResourceURLs(Collection items) { if (this.nonResourceURLs == null) { this.nonResourceURLs = new ArrayList(); } - this.nonResourceURLs.add(index, item); + for (String item : items) { + this.nonResourceURLs.add(item); + } return (A) this; } - public A setToNonResourceURLs(int index,String item) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + public A addAllToVerbs(Collection items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); } - this.nonResourceURLs.set(index, item); return (A) this; } @@ -59,52 +57,76 @@ public A addToNonResourceURLs(String... items) { return (A) this; } - public A addAllToNonResourceURLs(Collection items) { + public A addToNonResourceURLs(int index,String item) { if (this.nonResourceURLs == null) { this.nonResourceURLs = new ArrayList(); } - for (String item : items) { - this.nonResourceURLs.add(item); - } + this.nonResourceURLs.add(index, item); return (A) this; } - public A removeFromNonResourceURLs(String... items) { - if (this.nonResourceURLs == null) { - return (A) this; + public A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); } for (String item : items) { - this.nonResourceURLs.remove(item); + this.verbs.add(item); } return (A) this; } - public A removeAllFromNonResourceURLs(Collection items) { - if (this.nonResourceURLs == null) { - return (A) this; - } - for (String item : items) { - this.nonResourceURLs.remove(item); + public A addToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); } + this.verbs.add(index, item); return (A) this; } - public List getNonResourceURLs() { - return this.nonResourceURLs; + protected void copyInstance(V1NonResourceRule instance) { + instance = instance != null ? instance : new V1NonResourceRule(); + if (instance != null) { + this.withNonResourceURLs(instance.getNonResourceURLs()); + this.withVerbs(instance.getVerbs()); + } } - public String getNonResourceURL(int index) { - return this.nonResourceURLs.get(index); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NonResourceRuleFluent that = (V1NonResourceRuleFluent) o; + if (!(Objects.equals(nonResourceURLs, that.nonResourceURLs))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } + return true; } public String getFirstNonResourceURL() { return this.nonResourceURLs.get(0); } + public String getFirstVerb() { + return this.verbs.get(0); + } + public String getLastNonResourceURL() { return this.nonResourceURLs.get(nonResourceURLs.size() - 1); } + public String getLastVerb() { + return this.verbs.get(verbs.size() - 1); + } + public String getMatchingNonResourceURL(Predicate predicate) { for (String item : nonResourceURLs) { if (predicate.test(item)) { @@ -114,6 +136,31 @@ public String getMatchingNonResourceURL(Predicate predicate) { return null; } + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getNonResourceURL(int index) { + return this.nonResourceURLs.get(index); + } + + public List getNonResourceURLs() { + return this.nonResourceURLs; + } + + public String getVerb(int index) { + return this.verbs.get(index); + } + + public List getVerbs() { + return this.verbs; + } + public boolean hasMatchingNonResourceURL(Predicate predicate) { for (String item : nonResourceURLs) { if (predicate.test(item)) { @@ -123,82 +170,58 @@ public boolean hasMatchingNonResourceURL(Predicate predicate) { return false; } - public A withNonResourceURLs(List nonResourceURLs) { - if (nonResourceURLs != null) { - this.nonResourceURLs = new ArrayList(); - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); + public boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return true; } - } else { - this.nonResourceURLs = null; - } - return (A) this; - } - - public A withNonResourceURLs(String... nonResourceURLs) { - if (this.nonResourceURLs != null) { - this.nonResourceURLs.clear(); - _visitables.remove("nonResourceURLs"); - } - if (nonResourceURLs != null) { - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); } - } - return (A) this; + return false; } public boolean hasNonResourceURLs() { return this.nonResourceURLs != null && !(this.nonResourceURLs.isEmpty()); } - public A addToVerbs(int index,String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - this.verbs.add(index, item); - return (A) this; + public boolean hasVerbs() { + return this.verbs != null && !(this.verbs.isEmpty()); } - public A setToVerbs(int index,String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - this.verbs.set(index, item); - return (A) this; + public int hashCode() { + return Objects.hash(nonResourceURLs, verbs); } - public A addToVerbs(String... items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); + public A removeAllFromNonResourceURLs(Collection items) { + if (this.nonResourceURLs == null) { + return (A) this; } for (String item : items) { - this.verbs.add(item); + this.nonResourceURLs.remove(item); } return (A) this; } - public A addAllToVerbs(Collection items) { + public A removeAllFromVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new ArrayList(); + return (A) this; } for (String item : items) { - this.verbs.add(item); + this.verbs.remove(item); } return (A) this; } - public A removeFromVerbs(String... items) { - if (this.verbs == null) { + public A removeFromNonResourceURLs(String... items) { + if (this.nonResourceURLs == null) { return (A) this; } for (String item : items) { - this.verbs.remove(item); + this.nonResourceURLs.remove(item); } return (A) this; } - public A removeAllFromVerbs(Collection items) { + public A removeFromVerbs(String... items) { if (this.verbs == null) { return (A) this; } @@ -208,38 +231,61 @@ public A removeAllFromVerbs(Collection items) { return (A) this; } - public List getVerbs() { - return this.verbs; - } - - public String getVerb(int index) { - return this.verbs.get(index); + public A setToNonResourceURLs(int index,String item) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + this.nonResourceURLs.set(index, item); + return (A) this; } - public String getFirstVerb() { - return this.verbs.get(0); + public A setToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.set(index, item); + return (A) this; } - public String getLastVerb() { - return this.verbs.get(verbs.size() - 1); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(nonResourceURLs == null) && !(nonResourceURLs.isEmpty())) { + sb.append("nonResourceURLs:"); + sb.append(nonResourceURLs); + sb.append(","); + } + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + } + sb.append("}"); + return sb.toString(); } - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; + public A withNonResourceURLs(List nonResourceURLs) { + if (nonResourceURLs != null) { + this.nonResourceURLs = new ArrayList(); + for (String item : nonResourceURLs) { + this.addToNonResourceURLs(item); } - } - return null; + } else { + this.nonResourceURLs = null; + } + return (A) this; } - public boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } + public A withNonResourceURLs(String... nonResourceURLs) { + if (this.nonResourceURLs != null) { + this.nonResourceURLs.clear(); + _visitables.remove("nonResourceURLs"); + } + if (nonResourceURLs != null) { + for (String item : nonResourceURLs) { + this.addToNonResourceURLs(item); } - return false; + } + return (A) this; } public A withVerbs(List verbs) { @@ -267,49 +313,4 @@ public A withVerbs(String... verbs) { return (A) this; } - public boolean hasVerbs() { - return this.verbs != null && !(this.verbs.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1NonResourceRuleFluent that = (V1NonResourceRuleFluent) o; - if (!(Objects.equals(nonResourceURLs, that.nonResourceURLs))) { - return false; - } - if (!(Objects.equals(verbs, that.verbs))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(nonResourceURLs, verbs); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(nonResourceURLs == null) && !(nonResourceURLs.isEmpty())) { - sb.append("nonResourceURLs:"); - sb.append(nonResourceURLs); - sb.append(","); - } - if (!(verbs == null) && !(verbs.isEmpty())) { - sb.append("verbs:"); - sb.append(verbs); - } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java index 5ee38b9702..482234a34d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ObjectFieldSelectorBuilder extends V1ObjectFieldSelectorFluent implements VisitableBuilder{ + + V1ObjectFieldSelectorFluent fluent; + public V1ObjectFieldSelectorBuilder() { this(new V1ObjectFieldSelector()); } @@ -11,17 +14,16 @@ public V1ObjectFieldSelectorBuilder(V1ObjectFieldSelectorFluent fluent) { this(fluent, new V1ObjectFieldSelector()); } - public V1ObjectFieldSelectorBuilder(V1ObjectFieldSelectorFluent fluent,V1ObjectFieldSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ObjectFieldSelectorBuilder(V1ObjectFieldSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1ObjectFieldSelectorFluent fluent; + public V1ObjectFieldSelectorBuilder(V1ObjectFieldSelectorFluent fluent,V1ObjectFieldSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ObjectFieldSelector build() { V1ObjectFieldSelector buildable = new V1ObjectFieldSelector(); buildable.setApiVersion(fluent.getApiVersion()); @@ -29,5 +31,4 @@ public V1ObjectFieldSelector build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java index 3b124afaa0..892c5d1114 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ObjectFieldSelectorFluent> extends BaseFluent{ + + private String apiVersion; + private String fieldPath; + public V1ObjectFieldSelectorFluent() { } public V1ObjectFieldSelectorFluent(V1ObjectFieldSelector instance) { this.copyInstance(instance); } - private String apiVersion; - private String fieldPath; - + protected void copyInstance(V1ObjectFieldSelector instance) { instance = instance != null ? instance : new V1ObjectFieldSelector(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1ObjectFieldSelector instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getFieldPath() { - return this.fieldPath; - } - - public A withFieldPath(String fieldPath) { - this.fieldPath = fieldPath; - return (A) this; - } - - public boolean hasFieldPath() { - return this.fieldPath != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getFieldPath() { + return this.fieldPath; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasFieldPath() { + return this.fieldPath != null; + } + public int hashCode() { return Objects.hash(apiVersion, fieldPath); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withFieldPath(String fieldPath) { + this.fieldPath = fieldPath; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java index 628c2cd957..f11c87faf1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ObjectMetaBuilder extends V1ObjectMetaFluent implements VisitableBuilder{ + + V1ObjectMetaFluent fluent; + public V1ObjectMetaBuilder() { this(new V1ObjectMeta()); } @@ -11,17 +14,16 @@ public V1ObjectMetaBuilder(V1ObjectMetaFluent fluent) { this(fluent, new V1ObjectMeta()); } - public V1ObjectMetaBuilder(V1ObjectMetaFluent fluent,V1ObjectMeta instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ObjectMetaBuilder(V1ObjectMeta instance) { this.fluent = this; this.copyInstance(instance); } - V1ObjectMetaFluent fluent; + public V1ObjectMetaBuilder(V1ObjectMetaFluent fluent,V1ObjectMeta instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ObjectMeta build() { V1ObjectMeta buildable = new V1ObjectMeta(); buildable.setAnnotations(fluent.getAnnotations()); @@ -42,5 +44,4 @@ public V1ObjectMeta build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java index 030bb64db3..8623ce018f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java @@ -1,34 +1,29 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; +import java.time.OffsetDateTime; import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; -import java.time.OffsetDateTime; -import java.lang.Long; -import java.util.Objects; -import java.util.Collection; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ObjectMetaFluent> extends BaseFluent{ - public V1ObjectMetaFluent() { - } - - public V1ObjectMetaFluent(V1ObjectMeta instance) { - this.copyInstance(instance); - } + private Map annotations; private OffsetDateTime creationTimestamp; private Long deletionGracePeriodSeconds; @@ -44,128 +39,94 @@ public V1ObjectMetaFluent(V1ObjectMeta instance) { private String resourceVersion; private String selfLink; private String uid; - - protected void copyInstance(V1ObjectMeta instance) { - instance = instance != null ? instance : new V1ObjectMeta(); - if (instance != null) { - this.withAnnotations(instance.getAnnotations()); - this.withCreationTimestamp(instance.getCreationTimestamp()); - this.withDeletionGracePeriodSeconds(instance.getDeletionGracePeriodSeconds()); - this.withDeletionTimestamp(instance.getDeletionTimestamp()); - this.withFinalizers(instance.getFinalizers()); - this.withGenerateName(instance.getGenerateName()); - this.withGeneration(instance.getGeneration()); - this.withLabels(instance.getLabels()); - this.withManagedFields(instance.getManagedFields()); - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withOwnerReferences(instance.getOwnerReferences()); - this.withResourceVersion(instance.getResourceVersion()); - this.withSelfLink(instance.getSelfLink()); - this.withUid(instance.getUid()); - } + + public V1ObjectMetaFluent() { } - public A addToAnnotations(String key,String value) { - if (this.annotations == null && key != null && value != null) { - this.annotations = new LinkedHashMap(); - } - if (key != null && value != null) { - this.annotations.put(key, value); - } - return (A) this; + public V1ObjectMetaFluent(V1ObjectMeta instance) { + this.copyInstance(instance); } - - public A addToAnnotations(Map map) { - if (this.annotations == null && map != null) { - this.annotations = new LinkedHashMap(); + + public A addAllToFinalizers(Collection items) { + if (this.finalizers == null) { + this.finalizers = new ArrayList(); } - if (map != null) { - this.annotations.putAll(map); + for (String item : items) { + this.finalizers.add(item); } return (A) this; } - public A removeFromAnnotations(String key) { - if (this.annotations == null) { - return (A) this; + public A addAllToManagedFields(Collection items) { + if (this.managedFields == null) { + this.managedFields = new ArrayList(); } - if (key != null && this.annotations != null) { - this.annotations.remove(key); + for (V1ManagedFieldsEntry item : items) { + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); + _visitables.get("managedFields").add(builder); + this.managedFields.add(builder); } return (A) this; } - public A removeFromAnnotations(Map map) { - if (this.annotations == null) { - return (A) this; + public A addAllToOwnerReferences(Collection items) { + if (this.ownerReferences == null) { + this.ownerReferences = new ArrayList(); } - if (map != null) { - for (Object key : map.keySet()) { - if (this.annotations != null) { - this.annotations.remove(key); - } - } + for (V1OwnerReference item : items) { + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); + _visitables.get("ownerReferences").add(builder); + this.ownerReferences.add(builder); } return (A) this; } - public Map getAnnotations() { - return this.annotations; + public ManagedFieldsNested addNewManagedField() { + return new ManagedFieldsNested(-1, null); } - public A withAnnotations(Map annotations) { - if (annotations == null) { - this.annotations = null; - } else { - this.annotations = new LinkedHashMap(annotations); - } - return (A) this; + public ManagedFieldsNested addNewManagedFieldLike(V1ManagedFieldsEntry item) { + return new ManagedFieldsNested(-1, item); } - public boolean hasAnnotations() { - return this.annotations != null; + public OwnerReferencesNested addNewOwnerReference() { + return new OwnerReferencesNested(-1, null); } - public OffsetDateTime getCreationTimestamp() { - return this.creationTimestamp; + public OwnerReferencesNested addNewOwnerReferenceLike(V1OwnerReference item) { + return new OwnerReferencesNested(-1, item); } - public A withCreationTimestamp(OffsetDateTime creationTimestamp) { - this.creationTimestamp = creationTimestamp; + public A addToAnnotations(Map map) { + if (this.annotations == null && map != null) { + this.annotations = new LinkedHashMap(); + } + if (map != null) { + this.annotations.putAll(map); + } return (A) this; } - public boolean hasCreationTimestamp() { - return this.creationTimestamp != null; - } - - public Long getDeletionGracePeriodSeconds() { - return this.deletionGracePeriodSeconds; - } - - public A withDeletionGracePeriodSeconds(Long deletionGracePeriodSeconds) { - this.deletionGracePeriodSeconds = deletionGracePeriodSeconds; + public A addToAnnotations(String key,String value) { + if (this.annotations == null && key != null && value != null) { + this.annotations = new LinkedHashMap(); + } + if (key != null && value != null) { + this.annotations.put(key, value); + } return (A) this; } - public boolean hasDeletionGracePeriodSeconds() { - return this.deletionGracePeriodSeconds != null; - } - - public OffsetDateTime getDeletionTimestamp() { - return this.deletionTimestamp; - } - - public A withDeletionTimestamp(OffsetDateTime deletionTimestamp) { - this.deletionTimestamp = deletionTimestamp; + public A addToFinalizers(String... items) { + if (this.finalizers == null) { + this.finalizers = new ArrayList(); + } + for (String item : items) { + this.finalizers.add(item); + } return (A) this; } - public boolean hasDeletionTimestamp() { - return this.deletionTimestamp != null; - } - public A addToFinalizers(int index,String item) { if (this.finalizers == null) { this.finalizers = new ArrayList(); @@ -174,312 +135,102 @@ public A addToFinalizers(int index,String item) { return (A) this; } - public A setToFinalizers(int index,String item) { - if (this.finalizers == null) { - this.finalizers = new ArrayList(); + public A addToLabels(Map map) { + if (this.labels == null && map != null) { + this.labels = new LinkedHashMap(); + } + if (map != null) { + this.labels.putAll(map); } - this.finalizers.set(index, item); return (A) this; } - public A addToFinalizers(String... items) { - if (this.finalizers == null) { - this.finalizers = new ArrayList(); + public A addToLabels(String key,String value) { + if (this.labels == null && key != null && value != null) { + this.labels = new LinkedHashMap(); } - for (String item : items) { - this.finalizers.add(item); + if (key != null && value != null) { + this.labels.put(key, value); } return (A) this; } - public A addAllToFinalizers(Collection items) { - if (this.finalizers == null) { - this.finalizers = new ArrayList(); + public A addToManagedFields(V1ManagedFieldsEntry... items) { + if (this.managedFields == null) { + this.managedFields = new ArrayList(); } - for (String item : items) { - this.finalizers.add(item); + for (V1ManagedFieldsEntry item : items) { + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); + _visitables.get("managedFields").add(builder); + this.managedFields.add(builder); } return (A) this; } - public A removeFromFinalizers(String... items) { - if (this.finalizers == null) { - return (A) this; + public A addToManagedFields(int index,V1ManagedFieldsEntry item) { + if (this.managedFields == null) { + this.managedFields = new ArrayList(); } - for (String item : items) { - this.finalizers.remove(item); + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); + if (index < 0 || index >= managedFields.size()) { + _visitables.get("managedFields").add(builder); + managedFields.add(builder); + } else { + _visitables.get("managedFields").add(builder); + managedFields.add(index, builder); } return (A) this; } - public A removeAllFromFinalizers(Collection items) { - if (this.finalizers == null) { - return (A) this; + public A addToOwnerReferences(V1OwnerReference... items) { + if (this.ownerReferences == null) { + this.ownerReferences = new ArrayList(); } - for (String item : items) { - this.finalizers.remove(item); + for (V1OwnerReference item : items) { + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); + _visitables.get("ownerReferences").add(builder); + this.ownerReferences.add(builder); } return (A) this; } - public List getFinalizers() { - return this.finalizers; + public A addToOwnerReferences(int index,V1OwnerReference item) { + if (this.ownerReferences == null) { + this.ownerReferences = new ArrayList(); + } + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); + if (index < 0 || index >= ownerReferences.size()) { + _visitables.get("ownerReferences").add(builder); + ownerReferences.add(builder); + } else { + _visitables.get("ownerReferences").add(builder); + ownerReferences.add(index, builder); + } + return (A) this; } - public String getFinalizer(int index) { - return this.finalizers.get(index); + public V1ManagedFieldsEntry buildFirstManagedField() { + return this.managedFields.get(0).build(); } - public String getFirstFinalizer() { - return this.finalizers.get(0); + public V1OwnerReference buildFirstOwnerReference() { + return this.ownerReferences.get(0).build(); } - public String getLastFinalizer() { - return this.finalizers.get(finalizers.size() - 1); + public V1ManagedFieldsEntry buildLastManagedField() { + return this.managedFields.get(managedFields.size() - 1).build(); } - public String getMatchingFinalizer(Predicate predicate) { - for (String item : finalizers) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingFinalizer(Predicate predicate) { - for (String item : finalizers) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withFinalizers(List finalizers) { - if (finalizers != null) { - this.finalizers = new ArrayList(); - for (String item : finalizers) { - this.addToFinalizers(item); - } - } else { - this.finalizers = null; - } - return (A) this; - } - - public A withFinalizers(String... finalizers) { - if (this.finalizers != null) { - this.finalizers.clear(); - _visitables.remove("finalizers"); - } - if (finalizers != null) { - for (String item : finalizers) { - this.addToFinalizers(item); - } - } - return (A) this; - } - - public boolean hasFinalizers() { - return this.finalizers != null && !(this.finalizers.isEmpty()); - } - - public String getGenerateName() { - return this.generateName; - } - - public A withGenerateName(String generateName) { - this.generateName = generateName; - return (A) this; - } - - public boolean hasGenerateName() { - return this.generateName != null; - } - - public Long getGeneration() { - return this.generation; - } - - public A withGeneration(Long generation) { - this.generation = generation; - return (A) this; - } - - public boolean hasGeneration() { - return this.generation != null; - } - - public A addToLabels(String key,String value) { - if (this.labels == null && key != null && value != null) { - this.labels = new LinkedHashMap(); - } - if (key != null && value != null) { - this.labels.put(key, value); - } - return (A) this; - } - - public A addToLabels(Map map) { - if (this.labels == null && map != null) { - this.labels = new LinkedHashMap(); - } - if (map != null) { - this.labels.putAll(map); - } - return (A) this; - } - - public A removeFromLabels(String key) { - if (this.labels == null) { - return (A) this; - } - if (key != null && this.labels != null) { - this.labels.remove(key); - } - return (A) this; - } - - public A removeFromLabels(Map map) { - if (this.labels == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.labels != null) { - this.labels.remove(key); - } - } - } - return (A) this; - } - - public Map getLabels() { - return this.labels; - } - - public A withLabels(Map labels) { - if (labels == null) { - this.labels = null; - } else { - this.labels = new LinkedHashMap(labels); - } - return (A) this; - } - - public boolean hasLabels() { - return this.labels != null; - } - - public A addToManagedFields(int index,V1ManagedFieldsEntry item) { - if (this.managedFields == null) { - this.managedFields = new ArrayList(); - } - V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - if (index < 0 || index >= managedFields.size()) { - _visitables.get("managedFields").add(builder); - managedFields.add(builder); - } else { - _visitables.get("managedFields").add(builder); - managedFields.add(index, builder); - } - return (A) this; - } - - public A setToManagedFields(int index,V1ManagedFieldsEntry item) { - if (this.managedFields == null) { - this.managedFields = new ArrayList(); - } - V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - if (index < 0 || index >= managedFields.size()) { - _visitables.get("managedFields").add(builder); - managedFields.add(builder); - } else { - _visitables.get("managedFields").add(builder); - managedFields.set(index, builder); - } - return (A) this; - } - - public A addToManagedFields(V1ManagedFieldsEntry... items) { - if (this.managedFields == null) { - this.managedFields = new ArrayList(); - } - for (V1ManagedFieldsEntry item : items) { - V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - _visitables.get("managedFields").add(builder); - this.managedFields.add(builder); - } - return (A) this; - } - - public A addAllToManagedFields(Collection items) { - if (this.managedFields == null) { - this.managedFields = new ArrayList(); - } - for (V1ManagedFieldsEntry item : items) { - V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - _visitables.get("managedFields").add(builder); - this.managedFields.add(builder); - } - return (A) this; - } - - public A removeFromManagedFields(V1ManagedFieldsEntry... items) { - if (this.managedFields == null) { - return (A) this; - } - for (V1ManagedFieldsEntry item : items) { - V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - _visitables.get("managedFields").remove(builder); - this.managedFields.remove(builder); - } - return (A) this; - } - - public A removeAllFromManagedFields(Collection items) { - if (this.managedFields == null) { - return (A) this; - } - for (V1ManagedFieldsEntry item : items) { - V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - _visitables.get("managedFields").remove(builder); - this.managedFields.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromManagedFields(Predicate predicate) { - if (managedFields == null) { - return (A) this; - } - Iterator each = managedFields.iterator(); - List visitables = _visitables.get("managedFields"); - while (each.hasNext()) { - V1ManagedFieldsEntryBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - public List buildManagedFields() { - return this.managedFields != null ? build(managedFields) : null; + public V1OwnerReference buildLastOwnerReference() { + return this.ownerReferences.get(ownerReferences.size() - 1).build(); } public V1ManagedFieldsEntry buildManagedField(int index) { return this.managedFields.get(index).build(); } - public V1ManagedFieldsEntry buildFirstManagedField() { - return this.managedFields.get(0).build(); - } - - public V1ManagedFieldsEntry buildLastManagedField() { - return this.managedFields.get(managedFields.size() - 1).build(); + public List buildManagedFields() { + return this.managedFields != null ? build(managedFields) : null; } public V1ManagedFieldsEntry buildMatchingManagedField(Predicate predicate) { @@ -491,64 +242,42 @@ public V1ManagedFieldsEntry buildMatchingManagedField(Predicate predicate) { - for (V1ManagedFieldsEntryBuilder item : managedFields) { + public V1OwnerReference buildMatchingOwnerReference(Predicate predicate) { + for (V1OwnerReferenceBuilder item : ownerReferences) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; - } - - public A withManagedFields(List managedFields) { - if (this.managedFields != null) { - this._visitables.get("managedFields").clear(); - } - if (managedFields != null) { - this.managedFields = new ArrayList(); - for (V1ManagedFieldsEntry item : managedFields) { - this.addToManagedFields(item); - } - } else { - this.managedFields = null; - } - return (A) this; - } - - public A withManagedFields(V1ManagedFieldsEntry... managedFields) { - if (this.managedFields != null) { - this.managedFields.clear(); - _visitables.remove("managedFields"); - } - if (managedFields != null) { - for (V1ManagedFieldsEntry item : managedFields) { - this.addToManagedFields(item); - } - } - return (A) this; - } - - public boolean hasManagedFields() { - return this.managedFields != null && !(this.managedFields.isEmpty()); - } - - public ManagedFieldsNested addNewManagedField() { - return new ManagedFieldsNested(-1, null); + return null; } - public ManagedFieldsNested addNewManagedFieldLike(V1ManagedFieldsEntry item) { - return new ManagedFieldsNested(-1, item); + public V1OwnerReference buildOwnerReference(int index) { + return this.ownerReferences.get(index).build(); } - public ManagedFieldsNested setNewManagedFieldLike(int index,V1ManagedFieldsEntry item) { - return new ManagedFieldsNested(index, item); + public List buildOwnerReferences() { + return this.ownerReferences != null ? build(ownerReferences) : null; } - public ManagedFieldsNested editManagedField(int index) { - if (index <= managedFields.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "managedFields")); + protected void copyInstance(V1ObjectMeta instance) { + instance = instance != null ? instance : new V1ObjectMeta(); + if (instance != null) { + this.withAnnotations(instance.getAnnotations()); + this.withCreationTimestamp(instance.getCreationTimestamp()); + this.withDeletionGracePeriodSeconds(instance.getDeletionGracePeriodSeconds()); + this.withDeletionTimestamp(instance.getDeletionTimestamp()); + this.withFinalizers(instance.getFinalizers()); + this.withGenerateName(instance.getGenerateName()); + this.withGeneration(instance.getGeneration()); + this.withLabels(instance.getLabels()); + this.withManagedFields(instance.getManagedFields()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withOwnerReferences(instance.getOwnerReferences()); + this.withResourceVersion(instance.getResourceVersion()); + this.withSelfLink(instance.getSelfLink()); + this.withUid(instance.getUid()); } - return this.setNewManagedFieldLike(index, this.buildManagedField(index)); } public ManagedFieldsNested editFirstManagedField() { @@ -558,6 +287,13 @@ public ManagedFieldsNested editFirstManagedField() { return this.setNewManagedFieldLike(0, this.buildManagedField(0)); } + public OwnerReferencesNested editFirstOwnerReference() { + if (ownerReferences.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ownerReferences")); + } + return this.setNewOwnerReferenceLike(0, this.buildOwnerReference(0)); + } + public ManagedFieldsNested editLastManagedField() { int index = managedFields.size() - 1; if (index < 0) { @@ -566,6 +302,21 @@ public ManagedFieldsNested editLastManagedField() { return this.setNewManagedFieldLike(index, this.buildManagedField(index)); } + public OwnerReferencesNested editLastOwnerReference() { + int index = ownerReferences.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ownerReferences")); + } + return this.setNewOwnerReferenceLike(index, this.buildOwnerReference(index)); + } + + public ManagedFieldsNested editManagedField(int index) { + if (managedFields.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "managedFields")); + } + return this.setNewManagedFieldLike(index, this.buildManagedField(index)); + } + public ManagedFieldsNested editMatchingManagedField(Predicate predicate) { int index = -1; for (int i = 0;i < managedFields.size();i++) { @@ -580,149 +331,211 @@ public ManagedFieldsNested editMatchingManagedField(Predicate editMatchingOwnerReference(Predicate predicate) { + int index = -1; + for (int i = 0;i < ownerReferences.size();i++) { + if (predicate.test(ownerReferences.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ownerReferences")); + } + return this.setNewOwnerReferenceLike(index, this.buildOwnerReference(index)); } - public A withName(String name) { - this.name = name; - return (A) this; + public OwnerReferencesNested editOwnerReference(int index) { + if (ownerReferences.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ownerReferences")); + } + return this.setNewOwnerReferenceLike(index, this.buildOwnerReference(index)); } - public boolean hasName() { - return this.name != null; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ObjectMetaFluent that = (V1ObjectMetaFluent) o; + if (!(Objects.equals(annotations, that.annotations))) { + return false; + } + if (!(Objects.equals(creationTimestamp, that.creationTimestamp))) { + return false; + } + if (!(Objects.equals(deletionGracePeriodSeconds, that.deletionGracePeriodSeconds))) { + return false; + } + if (!(Objects.equals(deletionTimestamp, that.deletionTimestamp))) { + return false; + } + if (!(Objects.equals(finalizers, that.finalizers))) { + return false; + } + if (!(Objects.equals(generateName, that.generateName))) { + return false; + } + if (!(Objects.equals(generation, that.generation))) { + return false; + } + if (!(Objects.equals(labels, that.labels))) { + return false; + } + if (!(Objects.equals(managedFields, that.managedFields))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(ownerReferences, that.ownerReferences))) { + return false; + } + if (!(Objects.equals(resourceVersion, that.resourceVersion))) { + return false; + } + if (!(Objects.equals(selfLink, that.selfLink))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; } - public String getNamespace() { - return this.namespace; + public Map getAnnotations() { + return this.annotations; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + public OffsetDateTime getCreationTimestamp() { + return this.creationTimestamp; } - public boolean hasNamespace() { - return this.namespace != null; + public Long getDeletionGracePeriodSeconds() { + return this.deletionGracePeriodSeconds; } - public A addToOwnerReferences(int index,V1OwnerReference item) { - if (this.ownerReferences == null) { - this.ownerReferences = new ArrayList(); - } - V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - if (index < 0 || index >= ownerReferences.size()) { - _visitables.get("ownerReferences").add(builder); - ownerReferences.add(builder); - } else { - _visitables.get("ownerReferences").add(builder); - ownerReferences.add(index, builder); - } - return (A) this; + public OffsetDateTime getDeletionTimestamp() { + return this.deletionTimestamp; } - public A setToOwnerReferences(int index,V1OwnerReference item) { - if (this.ownerReferences == null) { - this.ownerReferences = new ArrayList(); - } - V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - if (index < 0 || index >= ownerReferences.size()) { - _visitables.get("ownerReferences").add(builder); - ownerReferences.add(builder); - } else { - _visitables.get("ownerReferences").add(builder); - ownerReferences.set(index, builder); - } - return (A) this; + public String getFinalizer(int index) { + return this.finalizers.get(index); } - public A addToOwnerReferences(V1OwnerReference... items) { - if (this.ownerReferences == null) { - this.ownerReferences = new ArrayList(); - } - for (V1OwnerReference item : items) { - V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - _visitables.get("ownerReferences").add(builder); - this.ownerReferences.add(builder); - } - return (A) this; + public List getFinalizers() { + return this.finalizers; } - public A addAllToOwnerReferences(Collection items) { - if (this.ownerReferences == null) { - this.ownerReferences = new ArrayList(); - } - for (V1OwnerReference item : items) { - V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - _visitables.get("ownerReferences").add(builder); - this.ownerReferences.add(builder); - } - return (A) this; + public String getFirstFinalizer() { + return this.finalizers.get(0); } - public A removeFromOwnerReferences(V1OwnerReference... items) { - if (this.ownerReferences == null) { - return (A) this; - } - for (V1OwnerReference item : items) { - V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - _visitables.get("ownerReferences").remove(builder); - this.ownerReferences.remove(builder); - } - return (A) this; + public String getGenerateName() { + return this.generateName; } - public A removeAllFromOwnerReferences(Collection items) { - if (this.ownerReferences == null) { - return (A) this; - } - for (V1OwnerReference item : items) { - V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - _visitables.get("ownerReferences").remove(builder); - this.ownerReferences.remove(builder); - } - return (A) this; + public Long getGeneration() { + return this.generation; + } + + public Map getLabels() { + return this.labels; + } + + public String getLastFinalizer() { + return this.finalizers.get(finalizers.size() - 1); + } + + public String getMatchingFinalizer(Predicate predicate) { + for (String item : finalizers) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; + } + + public String getResourceVersion() { + return this.resourceVersion; + } + + public String getSelfLink() { + return this.selfLink; + } + + public String getUid() { + return this.uid; + } + + public boolean hasAnnotations() { + return this.annotations != null; + } + + public boolean hasCreationTimestamp() { + return this.creationTimestamp != null; + } + + public boolean hasDeletionGracePeriodSeconds() { + return this.deletionGracePeriodSeconds != null; + } + + public boolean hasDeletionTimestamp() { + return this.deletionTimestamp != null; } - public A removeMatchingFromOwnerReferences(Predicate predicate) { - if (ownerReferences == null) { - return (A) this; - } - Iterator each = ownerReferences.iterator(); - List visitables = _visitables.get("ownerReferences"); - while (each.hasNext()) { - V1OwnerReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public boolean hasFinalizers() { + return this.finalizers != null && !(this.finalizers.isEmpty()); } - public List buildOwnerReferences() { - return this.ownerReferences != null ? build(ownerReferences) : null; + public boolean hasGenerateName() { + return this.generateName != null; } - public V1OwnerReference buildOwnerReference(int index) { - return this.ownerReferences.get(index).build(); + public boolean hasGeneration() { + return this.generation != null; } - public V1OwnerReference buildFirstOwnerReference() { - return this.ownerReferences.get(0).build(); + public boolean hasLabels() { + return this.labels != null; } - public V1OwnerReference buildLastOwnerReference() { - return this.ownerReferences.get(ownerReferences.size() - 1).build(); + public boolean hasManagedFields() { + return this.managedFields != null && !(this.managedFields.isEmpty()); } - public V1OwnerReference buildMatchingOwnerReference(Predicate predicate) { - for (V1OwnerReferenceBuilder item : ownerReferences) { + public boolean hasMatchingFinalizer(Predicate predicate) { + for (String item : finalizers) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; + } + + public boolean hasMatchingManagedField(Predicate predicate) { + for (V1ManagedFieldsEntryBuilder item : managedFields) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasMatchingOwnerReference(Predicate predicate) { @@ -734,186 +547,226 @@ public boolean hasMatchingOwnerReference(Predicate pred return false; } - public A withOwnerReferences(List ownerReferences) { - if (this.ownerReferences != null) { - this._visitables.get("ownerReferences").clear(); - } - if (ownerReferences != null) { - this.ownerReferences = new ArrayList(); - for (V1OwnerReference item : ownerReferences) { - this.addToOwnerReferences(item); - } - } else { - this.ownerReferences = null; - } - return (A) this; + public boolean hasName() { + return this.name != null; } - public A withOwnerReferences(V1OwnerReference... ownerReferences) { - if (this.ownerReferences != null) { - this.ownerReferences.clear(); - _visitables.remove("ownerReferences"); - } - if (ownerReferences != null) { - for (V1OwnerReference item : ownerReferences) { - this.addToOwnerReferences(item); - } - } - return (A) this; + public boolean hasNamespace() { + return this.namespace != null; } public boolean hasOwnerReferences() { return this.ownerReferences != null && !(this.ownerReferences.isEmpty()); } - public OwnerReferencesNested addNewOwnerReference() { - return new OwnerReferencesNested(-1, null); + public boolean hasResourceVersion() { + return this.resourceVersion != null; } - public OwnerReferencesNested addNewOwnerReferenceLike(V1OwnerReference item) { - return new OwnerReferencesNested(-1, item); + public boolean hasSelfLink() { + return this.selfLink != null; } - public OwnerReferencesNested setNewOwnerReferenceLike(int index,V1OwnerReference item) { - return new OwnerReferencesNested(index, item); + public boolean hasUid() { + return this.uid != null; } - public OwnerReferencesNested editOwnerReference(int index) { - if (index <= ownerReferences.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ownerReferences")); - } - return this.setNewOwnerReferenceLike(index, this.buildOwnerReference(index)); + public int hashCode() { + return Objects.hash(annotations, creationTimestamp, deletionGracePeriodSeconds, deletionTimestamp, finalizers, generateName, generation, labels, managedFields, name, namespace, ownerReferences, resourceVersion, selfLink, uid); } - public OwnerReferencesNested editFirstOwnerReference() { - if (ownerReferences.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ownerReferences")); + public A removeAllFromFinalizers(Collection items) { + if (this.finalizers == null) { + return (A) this; } - return this.setNewOwnerReferenceLike(0, this.buildOwnerReference(0)); - } - - public OwnerReferencesNested editLastOwnerReference() { - int index = ownerReferences.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ownerReferences")); + for (String item : items) { + this.finalizers.remove(item); } - return this.setNewOwnerReferenceLike(index, this.buildOwnerReference(index)); + return (A) this; } - public OwnerReferencesNested editMatchingOwnerReference(Predicate predicate) { - int index = -1; - for (int i = 0;i < ownerReferences.size();i++) { - if (predicate.test(ownerReferences.get(i))) { - index = i; - break; - } + public A removeAllFromManagedFields(Collection items) { + if (this.managedFields == null) { + return (A) this; } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ownerReferences")); + for (V1ManagedFieldsEntry item : items) { + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); + _visitables.get("managedFields").remove(builder); + this.managedFields.remove(builder); } - return this.setNewOwnerReferenceLike(index, this.buildOwnerReference(index)); - } - - public String getResourceVersion() { - return this.resourceVersion; - } - - public A withResourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; return (A) this; } - public boolean hasResourceVersion() { - return this.resourceVersion != null; - } - - public String getSelfLink() { - return this.selfLink; - } - - public A withSelfLink(String selfLink) { - this.selfLink = selfLink; + public A removeAllFromOwnerReferences(Collection items) { + if (this.ownerReferences == null) { + return (A) this; + } + for (V1OwnerReference item : items) { + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); + _visitables.get("ownerReferences").remove(builder); + this.ownerReferences.remove(builder); + } return (A) this; } - public boolean hasSelfLink() { - return this.selfLink != null; - } - - public String getUid() { - return this.uid; - } - - public A withUid(String uid) { - this.uid = uid; + public A removeFromAnnotations(String key) { + if (this.annotations == null) { + return (A) this; + } + if (key != null && this.annotations != null) { + this.annotations.remove(key); + } return (A) this; } - public boolean hasUid() { - return this.uid != null; + public A removeFromAnnotations(Map map) { + if (this.annotations == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.annotations != null) { + this.annotations.remove(key); + } + } + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; + public A removeFromFinalizers(String... items) { + if (this.finalizers == null) { + return (A) this; } - if (!(super.equals(o))) { - return false; + for (String item : items) { + this.finalizers.remove(item); } - V1ObjectMetaFluent that = (V1ObjectMetaFluent) o; - if (!(Objects.equals(annotations, that.annotations))) { - return false; + return (A) this; + } + + public A removeFromLabels(String key) { + if (this.labels == null) { + return (A) this; } - if (!(Objects.equals(creationTimestamp, that.creationTimestamp))) { - return false; + if (key != null && this.labels != null) { + this.labels.remove(key); } - if (!(Objects.equals(deletionGracePeriodSeconds, that.deletionGracePeriodSeconds))) { - return false; + return (A) this; + } + + public A removeFromLabels(Map map) { + if (this.labels == null) { + return (A) this; } - if (!(Objects.equals(deletionTimestamp, that.deletionTimestamp))) { - return false; + if (map != null) { + for (Object key : map.keySet()) { + if (this.labels != null) { + this.labels.remove(key); + } + } } - if (!(Objects.equals(finalizers, that.finalizers))) { - return false; + return (A) this; + } + + public A removeFromManagedFields(V1ManagedFieldsEntry... items) { + if (this.managedFields == null) { + return (A) this; } - if (!(Objects.equals(generateName, that.generateName))) { - return false; + for (V1ManagedFieldsEntry item : items) { + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); + _visitables.get("managedFields").remove(builder); + this.managedFields.remove(builder); } - if (!(Objects.equals(generation, that.generation))) { - return false; + return (A) this; + } + + public A removeFromOwnerReferences(V1OwnerReference... items) { + if (this.ownerReferences == null) { + return (A) this; } - if (!(Objects.equals(labels, that.labels))) { - return false; + for (V1OwnerReference item : items) { + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); + _visitables.get("ownerReferences").remove(builder); + this.ownerReferences.remove(builder); } - if (!(Objects.equals(managedFields, that.managedFields))) { - return false; + return (A) this; + } + + public A removeMatchingFromManagedFields(Predicate predicate) { + if (managedFields == null) { + return (A) this; } - if (!(Objects.equals(name, that.name))) { - return false; + Iterator each = managedFields.iterator(); + List visitables = _visitables.get("managedFields"); + while (each.hasNext()) { + V1ManagedFieldsEntryBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - if (!(Objects.equals(namespace, that.namespace))) { - return false; + return (A) this; + } + + public A removeMatchingFromOwnerReferences(Predicate predicate) { + if (ownerReferences == null) { + return (A) this; } - if (!(Objects.equals(ownerReferences, that.ownerReferences))) { - return false; + Iterator each = ownerReferences.iterator(); + List visitables = _visitables.get("ownerReferences"); + while (each.hasNext()) { + V1OwnerReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - if (!(Objects.equals(resourceVersion, that.resourceVersion))) { - return false; + return (A) this; + } + + public ManagedFieldsNested setNewManagedFieldLike(int index,V1ManagedFieldsEntry item) { + return new ManagedFieldsNested(index, item); + } + + public OwnerReferencesNested setNewOwnerReferenceLike(int index,V1OwnerReference item) { + return new OwnerReferencesNested(index, item); + } + + public A setToFinalizers(int index,String item) { + if (this.finalizers == null) { + this.finalizers = new ArrayList(); } - if (!(Objects.equals(selfLink, that.selfLink))) { - return false; + this.finalizers.set(index, item); + return (A) this; + } + + public A setToManagedFields(int index,V1ManagedFieldsEntry item) { + if (this.managedFields == null) { + this.managedFields = new ArrayList(); } - if (!(Objects.equals(uid, that.uid))) { - return false; + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); + if (index < 0 || index >= managedFields.size()) { + _visitables.get("managedFields").add(builder); + managedFields.add(builder); + } else { + _visitables.get("managedFields").add(builder); + managedFields.set(index, builder); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(annotations, creationTimestamp, deletionGracePeriodSeconds, deletionTimestamp, finalizers, generateName, generation, labels, managedFields, name, namespace, ownerReferences, resourceVersion, selfLink, uid); + public A setToOwnerReferences(int index,V1OwnerReference item) { + if (this.ownerReferences == null) { + this.ownerReferences = new ArrayList(); + } + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); + if (index < 0 || index >= ownerReferences.size()) { + _visitables.get("ownerReferences").add(builder); + ownerReferences.add(builder); + } else { + _visitables.get("ownerReferences").add(builder); + ownerReferences.set(index, builder); + } + return (A) this; } public String toString() { @@ -996,14 +849,165 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAnnotations(Map annotations) { + if (annotations == null) { + this.annotations = null; + } else { + this.annotations = new LinkedHashMap(annotations); + } + return (A) this; + } + + public A withCreationTimestamp(OffsetDateTime creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return (A) this; + } + + public A withDeletionGracePeriodSeconds(Long deletionGracePeriodSeconds) { + this.deletionGracePeriodSeconds = deletionGracePeriodSeconds; + return (A) this; + } + + public A withDeletionTimestamp(OffsetDateTime deletionTimestamp) { + this.deletionTimestamp = deletionTimestamp; + return (A) this; + } + + public A withFinalizers(List finalizers) { + if (finalizers != null) { + this.finalizers = new ArrayList(); + for (String item : finalizers) { + this.addToFinalizers(item); + } + } else { + this.finalizers = null; + } + return (A) this; + } + + public A withFinalizers(String... finalizers) { + if (this.finalizers != null) { + this.finalizers.clear(); + _visitables.remove("finalizers"); + } + if (finalizers != null) { + for (String item : finalizers) { + this.addToFinalizers(item); + } + } + return (A) this; + } + + public A withGenerateName(String generateName) { + this.generateName = generateName; + return (A) this; + } + + public A withGeneration(Long generation) { + this.generation = generation; + return (A) this; + } + + public A withLabels(Map labels) { + if (labels == null) { + this.labels = null; + } else { + this.labels = new LinkedHashMap(labels); + } + return (A) this; + } + + public A withManagedFields(List managedFields) { + if (this.managedFields != null) { + this._visitables.get("managedFields").clear(); + } + if (managedFields != null) { + this.managedFields = new ArrayList(); + for (V1ManagedFieldsEntry item : managedFields) { + this.addToManagedFields(item); + } + } else { + this.managedFields = null; + } + return (A) this; + } + + public A withManagedFields(V1ManagedFieldsEntry... managedFields) { + if (this.managedFields != null) { + this.managedFields.clear(); + _visitables.remove("managedFields"); + } + if (managedFields != null) { + for (V1ManagedFieldsEntry item : managedFields) { + this.addToManagedFields(item); + } + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public A withOwnerReferences(List ownerReferences) { + if (this.ownerReferences != null) { + this._visitables.get("ownerReferences").clear(); + } + if (ownerReferences != null) { + this.ownerReferences = new ArrayList(); + for (V1OwnerReference item : ownerReferences) { + this.addToOwnerReferences(item); + } + } else { + this.ownerReferences = null; + } + return (A) this; + } + + public A withOwnerReferences(V1OwnerReference... ownerReferences) { + if (this.ownerReferences != null) { + this.ownerReferences.clear(); + _visitables.remove("ownerReferences"); + } + if (ownerReferences != null) { + for (V1OwnerReference item : ownerReferences) { + this.addToOwnerReferences(item); + } + } + return (A) this; + } + + public A withResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + return (A) this; + } + + public A withSelfLink(String selfLink) { + this.selfLink = selfLink; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } public class ManagedFieldsNested extends V1ManagedFieldsEntryFluent> implements Nested{ + + V1ManagedFieldsEntryBuilder builder; + int index; + ManagedFieldsNested(int index,V1ManagedFieldsEntry item) { this.index = index; this.builder = new V1ManagedFieldsEntryBuilder(this, item); } - V1ManagedFieldsEntryBuilder builder; - int index; - + public N and() { return (N) V1ObjectMetaFluent.this.setToManagedFields(index, builder.build()); } @@ -1012,16 +1016,17 @@ public N endManagedField() { return and(); } - } public class OwnerReferencesNested extends V1OwnerReferenceFluent> implements Nested{ + + V1OwnerReferenceBuilder builder; + int index; + OwnerReferencesNested(int index,V1OwnerReference item) { this.index = index; this.builder = new V1OwnerReferenceBuilder(this, item); } - V1OwnerReferenceBuilder builder; - int index; - + public N and() { return (N) V1ObjectMetaFluent.this.setToOwnerReferences(index, builder.build()); } @@ -1030,7 +1035,5 @@ public N endOwnerReference() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java index de70602a49..90f36c067b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ObjectReferenceBuilder extends V1ObjectReferenceFluent implements VisitableBuilder{ + + V1ObjectReferenceFluent fluent; + public V1ObjectReferenceBuilder() { this(new V1ObjectReference()); } @@ -11,17 +14,16 @@ public V1ObjectReferenceBuilder(V1ObjectReferenceFluent fluent) { this(fluent, new V1ObjectReference()); } - public V1ObjectReferenceBuilder(V1ObjectReferenceFluent fluent,V1ObjectReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ObjectReferenceBuilder(V1ObjectReference instance) { this.fluent = this; this.copyInstance(instance); } - V1ObjectReferenceFluent fluent; + public V1ObjectReferenceBuilder(V1ObjectReferenceFluent fluent,V1ObjectReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ObjectReference build() { V1ObjectReference buildable = new V1ObjectReference(); buildable.setApiVersion(fluent.getApiVersion()); @@ -34,5 +36,4 @@ public V1ObjectReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java index 99cdcb3ca4..4a8fbfe947 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java @@ -1,23 +1,18 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ObjectReferenceFluent> extends BaseFluent{ - public V1ObjectReferenceFluent() { - } - - public V1ObjectReferenceFluent(V1ObjectReference instance) { - this.copyInstance(instance); - } + private String apiVersion; private String fieldPath; private String kind; @@ -25,7 +20,14 @@ public V1ObjectReferenceFluent(V1ObjectReference instance) { private String namespace; private String resourceVersion; private String uid; + + public V1ObjectReferenceFluent() { + } + public V1ObjectReferenceFluent(V1ObjectReference instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1ObjectReference instance) { instance = instance != null ? instance : new V1ObjectReference(); if (instance != null) { @@ -39,130 +41,95 @@ protected void copyInstance(V1ObjectReference instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ObjectReferenceFluent that = (V1ObjectReferenceFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(fieldPath, that.fieldPath))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(resourceVersion, that.resourceVersion))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; } - public boolean hasApiVersion() { - return this.apiVersion != null; + public String getApiVersion() { + return this.apiVersion; } public String getFieldPath() { return this.fieldPath; } - public A withFieldPath(String fieldPath) { - this.fieldPath = fieldPath; - return (A) this; - } - - public boolean hasFieldPath() { - return this.fieldPath != null; - } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public String getNamespace() { return this.namespace; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + public String getResourceVersion() { + return this.resourceVersion; } - public boolean hasNamespace() { - return this.namespace != null; + public String getUid() { + return this.uid; } - public String getResourceVersion() { - return this.resourceVersion; + public boolean hasApiVersion() { + return this.apiVersion != null; } - public A withResourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; - return (A) this; + public boolean hasFieldPath() { + return this.fieldPath != null; } - public boolean hasResourceVersion() { - return this.resourceVersion != null; + public boolean hasKind() { + return this.kind != null; } - public String getUid() { - return this.uid; + public boolean hasName() { + return this.name != null; } - public A withUid(String uid) { - this.uid = uid; - return (A) this; + public boolean hasNamespace() { + return this.namespace != null; } - public boolean hasUid() { - return this.uid != null; + public boolean hasResourceVersion() { + return this.resourceVersion != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ObjectReferenceFluent that = (V1ObjectReferenceFluent) o; - if (!(Objects.equals(apiVersion, that.apiVersion))) { - return false; - } - if (!(Objects.equals(fieldPath, that.fieldPath))) { - return false; - } - if (!(Objects.equals(kind, that.kind))) { - return false; - } - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(namespace, that.namespace))) { - return false; - } - if (!(Objects.equals(resourceVersion, that.resourceVersion))) { - return false; - } - if (!(Objects.equals(uid, that.uid))) { - return false; - } - return true; + public boolean hasUid() { + return this.uid != null; } public int hashCode() { @@ -210,5 +177,39 @@ public String toString() { return sb.toString(); } - + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withFieldPath(String fieldPath) { + this.fieldPath = fieldPath; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public A withResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationBuilder.java index 98425c0ce8..917c9370ec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1OpaqueDeviceConfigurationBuilder extends V1OpaqueDeviceConfigurationFluent implements VisitableBuilder{ + + V1OpaqueDeviceConfigurationFluent fluent; + public V1OpaqueDeviceConfigurationBuilder() { this(new V1OpaqueDeviceConfiguration()); } @@ -11,17 +14,16 @@ public V1OpaqueDeviceConfigurationBuilder(V1OpaqueDeviceConfigurationFluent f this(fluent, new V1OpaqueDeviceConfiguration()); } - public V1OpaqueDeviceConfigurationBuilder(V1OpaqueDeviceConfigurationFluent fluent,V1OpaqueDeviceConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1OpaqueDeviceConfigurationBuilder(V1OpaqueDeviceConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1OpaqueDeviceConfigurationFluent fluent; + public V1OpaqueDeviceConfigurationBuilder(V1OpaqueDeviceConfigurationFluent fluent,V1OpaqueDeviceConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1OpaqueDeviceConfiguration build() { V1OpaqueDeviceConfiguration buildable = new V1OpaqueDeviceConfiguration(); buildable.setDriver(fluent.getDriver()); @@ -29,5 +31,4 @@ public V1OpaqueDeviceConfiguration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationFluent.java index 5ab37eb6a8..aa46061c64 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1OpaqueDeviceConfigurationFluent> extends BaseFluent{ + + private String driver; + private Object parameters; + public V1OpaqueDeviceConfigurationFluent() { } public V1OpaqueDeviceConfigurationFluent(V1OpaqueDeviceConfiguration instance) { this.copyInstance(instance); } - private String driver; - private Object parameters; - + protected void copyInstance(V1OpaqueDeviceConfiguration instance) { instance = instance != null ? instance : new V1OpaqueDeviceConfiguration(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1OpaqueDeviceConfiguration instance) { } } - public String getDriver() { - return this.driver; - } - - public A withDriver(String driver) { - this.driver = driver; - return (A) this; - } - - public boolean hasDriver() { - return this.driver != null; - } - - public Object getParameters() { - return this.parameters; - } - - public A withParameters(Object parameters) { - this.parameters = parameters; - return (A) this; - } - - public boolean hasParameters() { - return this.parameters != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getDriver() { + return this.driver; + } + + public Object getParameters() { + return this.parameters; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasParameters() { + return this.parameters != null; + } + public int hashCode() { return Objects.hash(driver, parameters); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withParameters(Object parameters) { + this.parameters = parameters; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java index efb6c56397..d4f4815643 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1OverheadBuilder extends V1OverheadFluent implements VisitableBuilder{ + + V1OverheadFluent fluent; + public V1OverheadBuilder() { this(new V1Overhead()); } @@ -11,22 +14,20 @@ public V1OverheadBuilder(V1OverheadFluent fluent) { this(fluent, new V1Overhead()); } - public V1OverheadBuilder(V1OverheadFluent fluent,V1Overhead instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1OverheadBuilder(V1Overhead instance) { this.fluent = this; this.copyInstance(instance); } - V1OverheadFluent fluent; + public V1OverheadBuilder(V1OverheadFluent fluent,V1Overhead instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Overhead build() { V1Overhead buildable = new V1Overhead(); buildable.setPodFixed(fluent.getPodFixed()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java index 3e40e830c9..5aa4b7ad1b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java @@ -1,33 +1,38 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; -import java.util.Map; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1OverheadFluent> extends BaseFluent{ + + private Map podFixed; + public V1OverheadFluent() { } public V1OverheadFluent(V1Overhead instance) { this.copyInstance(instance); } - private Map podFixed; - - protected void copyInstance(V1Overhead instance) { - instance = instance != null ? instance : new V1Overhead(); - if (instance != null) { - this.withPodFixed(instance.getPodFixed()); + + public A addToPodFixed(Map map) { + if (this.podFixed == null && map != null) { + this.podFixed = new LinkedHashMap(); + } + if (map != null) { + this.podFixed.putAll(map); } + return (A) this; } public A addToPodFixed(String key,Quantity value) { @@ -40,14 +45,40 @@ public A addToPodFixed(String key,Quantity value) { return (A) this; } - public A addToPodFixed(Map map) { - if (this.podFixed == null && map != null) { - this.podFixed = new LinkedHashMap(); + protected void copyInstance(V1Overhead instance) { + instance = instance != null ? instance : new V1Overhead(); + if (instance != null) { + this.withPodFixed(instance.getPodFixed()); } - if (map != null) { - this.podFixed.putAll(map); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1OverheadFluent that = (V1OverheadFluent) o; + if (!(Objects.equals(podFixed, that.podFixed))) { + return false; + } + return true; + } + + public Map getPodFixed() { + return this.podFixed; + } + + public boolean hasPodFixed() { + return this.podFixed != null; + } + + public int hashCode() { + return Objects.hash(podFixed); } public A removeFromPodFixed(String key) { @@ -74,44 +105,6 @@ public A removeFromPodFixed(Map map) { return (A) this; } - public Map getPodFixed() { - return this.podFixed; - } - - public A withPodFixed(Map podFixed) { - if (podFixed == null) { - this.podFixed = null; - } else { - this.podFixed = new LinkedHashMap(podFixed); - } - return (A) this; - } - - public boolean hasPodFixed() { - return this.podFixed != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1OverheadFluent that = (V1OverheadFluent) o; - if (!(Objects.equals(podFixed, that.podFixed))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(podFixed); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -123,5 +116,13 @@ public String toString() { return sb.toString(); } - + public A withPodFixed(Map podFixed) { + if (podFixed == null) { + this.podFixed = null; + } else { + this.podFixed = new LinkedHashMap(podFixed); + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java index b07463f0d2..f957fc97b4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1OwnerReferenceBuilder extends V1OwnerReferenceFluent implements VisitableBuilder{ + + V1OwnerReferenceFluent fluent; + public V1OwnerReferenceBuilder() { this(new V1OwnerReference()); } @@ -11,17 +14,16 @@ public V1OwnerReferenceBuilder(V1OwnerReferenceFluent fluent) { this(fluent, new V1OwnerReference()); } - public V1OwnerReferenceBuilder(V1OwnerReferenceFluent fluent,V1OwnerReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1OwnerReferenceBuilder(V1OwnerReference instance) { this.fluent = this; this.copyInstance(instance); } - V1OwnerReferenceFluent fluent; + public V1OwnerReferenceBuilder(V1OwnerReferenceFluent fluent,V1OwnerReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1OwnerReference build() { V1OwnerReference buildable = new V1OwnerReference(); buildable.setApiVersion(fluent.getApiVersion()); @@ -33,5 +35,4 @@ public V1OwnerReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java index a7abc50c17..8f91bb5ddb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java @@ -1,31 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1OwnerReferenceFluent> extends BaseFluent{ - public V1OwnerReferenceFluent() { - } - - public V1OwnerReferenceFluent(V1OwnerReference instance) { - this.copyInstance(instance); - } + private String apiVersion; private Boolean blockOwnerDeletion; private Boolean controller; private String kind; private String name; private String uid; + + public V1OwnerReferenceFluent() { + } + public V1OwnerReferenceFluent(V1OwnerReference instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1OwnerReference instance) { instance = instance != null ? instance : new V1OwnerReference(); if (instance != null) { @@ -38,116 +40,86 @@ protected void copyInstance(V1OwnerReference instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1OwnerReferenceFluent that = (V1OwnerReferenceFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(blockOwnerDeletion, that.blockOwnerDeletion))) { + return false; + } + if (!(Objects.equals(controller, that.controller))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; } - public boolean hasApiVersion() { - return this.apiVersion != null; + public String getApiVersion() { + return this.apiVersion; } public Boolean getBlockOwnerDeletion() { return this.blockOwnerDeletion; } - public A withBlockOwnerDeletion(Boolean blockOwnerDeletion) { - this.blockOwnerDeletion = blockOwnerDeletion; - return (A) this; - } - - public boolean hasBlockOwnerDeletion() { - return this.blockOwnerDeletion != null; - } - public Boolean getController() { return this.controller; } - public A withController(Boolean controller) { - this.controller = controller; - return (A) this; - } - - public boolean hasController() { - return this.controller != null; - } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public String getName() { + return this.name; } - public boolean hasKind() { - return this.kind != null; + public String getUid() { + return this.uid; } - public String getName() { - return this.name; + public boolean hasApiVersion() { + return this.apiVersion != null; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasBlockOwnerDeletion() { + return this.blockOwnerDeletion != null; } - public boolean hasName() { - return this.name != null; + public boolean hasController() { + return this.controller != null; } - public String getUid() { - return this.uid; + public boolean hasKind() { + return this.kind != null; } - public A withUid(String uid) { - this.uid = uid; - return (A) this; + public boolean hasName() { + return this.name != null; } public boolean hasUid() { return this.uid != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1OwnerReferenceFluent that = (V1OwnerReferenceFluent) o; - if (!(Objects.equals(apiVersion, that.apiVersion))) { - return false; - } - if (!(Objects.equals(blockOwnerDeletion, that.blockOwnerDeletion))) { - return false; - } - if (!(Objects.equals(controller, that.controller))) { - return false; - } - if (!(Objects.equals(kind, that.kind))) { - return false; - } - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(uid, that.uid))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(apiVersion, blockOwnerDeletion, controller, kind, name, uid); } @@ -188,13 +160,42 @@ public String toString() { return sb.toString(); } + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withBlockOwnerDeletion() { return withBlockOwnerDeletion(true); } + public A withBlockOwnerDeletion(Boolean blockOwnerDeletion) { + this.blockOwnerDeletion = blockOwnerDeletion; + return (A) this; + } + public A withController() { return withController(true); } - + public A withController(Boolean controller) { + this.controller = controller; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindBuilder.java index 8bc259e90e..4d9d1ca34e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ParamKindBuilder extends V1ParamKindFluent implements VisitableBuilder{ + + V1ParamKindFluent fluent; + public V1ParamKindBuilder() { this(new V1ParamKind()); } @@ -11,17 +14,16 @@ public V1ParamKindBuilder(V1ParamKindFluent fluent) { this(fluent, new V1ParamKind()); } - public V1ParamKindBuilder(V1ParamKindFluent fluent,V1ParamKind instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ParamKindBuilder(V1ParamKind instance) { this.fluent = this; this.copyInstance(instance); } - V1ParamKindFluent fluent; + public V1ParamKindBuilder(V1ParamKindFluent fluent,V1ParamKind instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ParamKind build() { V1ParamKind buildable = new V1ParamKind(); buildable.setApiVersion(fluent.getApiVersion()); @@ -29,5 +31,4 @@ public V1ParamKind build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindFluent.java index 7486435d1a..4d1a296cfe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ParamKindFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + public V1ParamKindFluent() { } public V1ParamKindFluent(V1ParamKind instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - + protected void copyInstance(V1ParamKind instance) { instance = instance != null ? instance : new V1ParamKind(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1ParamKind instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefBuilder.java index 08162a7f4a..bc86d0efb8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ParamRefBuilder extends V1ParamRefFluent implements VisitableBuilder{ + + V1ParamRefFluent fluent; + public V1ParamRefBuilder() { this(new V1ParamRef()); } @@ -11,17 +14,16 @@ public V1ParamRefBuilder(V1ParamRefFluent fluent) { this(fluent, new V1ParamRef()); } - public V1ParamRefBuilder(V1ParamRefFluent fluent,V1ParamRef instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ParamRefBuilder(V1ParamRef instance) { this.fluent = this; this.copyInstance(instance); } - V1ParamRefFluent fluent; + public V1ParamRefBuilder(V1ParamRefFluent fluent,V1ParamRef instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ParamRef build() { V1ParamRef buildable = new V1ParamRef(); buildable.setName(fluent.getName()); @@ -31,5 +33,4 @@ public V1ParamRef build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefFluent.java index 3fc2b2afcf..eeb96ff233 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefFluent.java @@ -1,29 +1,35 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ParamRefFluent> extends BaseFluent{ + + private String name; + private String namespace; + private String parameterNotFoundAction; + private V1LabelSelectorBuilder selector; + public V1ParamRefFluent() { } public V1ParamRefFluent(V1ParamRef instance) { this.copyInstance(instance); } - private String name; - private String namespace; - private String parameterNotFoundAction; - private V1LabelSelectorBuilder selector; + + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; + } protected void copyInstance(V1ParamRef instance) { instance = instance != null ? instance : new V1ParamRef(); @@ -35,77 +41,6 @@ protected void copyInstance(V1ParamRef instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - - public String getParameterNotFoundAction() { - return this.parameterNotFoundAction; - } - - public A withParameterNotFoundAction(String parameterNotFoundAction) { - this.parameterNotFoundAction = parameterNotFoundAction; - return (A) this; - } - - public boolean hasParameterNotFoundAction() { - return this.parameterNotFoundAction != null; - } - - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public A withSelector(V1LabelSelector selector) { - this._visitables.remove("selector"); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - this._visitables.get("selector").add(this.selector); - } else { - this.selector = null; - this._visitables.get("selector").remove(this.selector); - } - return (A) this; - } - - public boolean hasSelector() { - return this.selector != null; - } - - public SelectorNested withNewSelector() { - return new SelectorNested(null); - } - - public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); - } - - public SelectorNested editSelector() { - return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); - } - public SelectorNested editOrNewSelector() { return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } @@ -114,6 +49,10 @@ public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -140,6 +79,34 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; + } + + public String getParameterNotFoundAction() { + return this.parameterNotFoundAction; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public boolean hasParameterNotFoundAction() { + return this.parameterNotFoundAction != null; + } + + public boolean hasSelector() { + return this.selector != null; + } + public int hashCode() { return Objects.hash(name, namespace, parameterNotFoundAction, selector); } @@ -169,12 +136,49 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public SelectorNested withNewSelector() { + return new SelectorNested(null); + } + + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); + } + + public A withParameterNotFoundAction(String parameterNotFoundAction) { + this.parameterNotFoundAction = parameterNotFoundAction; + return (A) this; + } + + public A withSelector(V1LabelSelector selector) { + this._visitables.remove("selector"); + if (selector != null) { + this.selector = new V1LabelSelectorBuilder(selector); + this._visitables.get("selector").add(this.selector); + } else { + this.selector = null; + this._visitables.get("selector").remove(this.selector); + } + return (A) this; + } public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + SelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1ParamRefFluent.this.withSelector(builder.build()); } @@ -183,7 +187,5 @@ public N endSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceBuilder.java index bdb938fbc2..625970ebe8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ParentReferenceBuilder extends V1ParentReferenceFluent implements VisitableBuilder{ + + V1ParentReferenceFluent fluent; + public V1ParentReferenceBuilder() { this(new V1ParentReference()); } @@ -11,17 +14,16 @@ public V1ParentReferenceBuilder(V1ParentReferenceFluent fluent) { this(fluent, new V1ParentReference()); } - public V1ParentReferenceBuilder(V1ParentReferenceFluent fluent,V1ParentReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ParentReferenceBuilder(V1ParentReference instance) { this.fluent = this; this.copyInstance(instance); } - V1ParentReferenceFluent fluent; + public V1ParentReferenceBuilder(V1ParentReferenceFluent fluent,V1ParentReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ParentReference build() { V1ParentReference buildable = new V1ParentReference(); buildable.setGroup(fluent.getGroup()); @@ -31,5 +33,4 @@ public V1ParentReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceFluent.java index 0fd50d3f45..20a50bc5c1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ParentReferenceFluent> extends BaseFluent{ + + private String group; + private String name; + private String namespace; + private String resource; + public V1ParentReferenceFluent() { } public V1ParentReferenceFluent(V1ParentReference instance) { this.copyInstance(instance); } - private String group; - private String name; - private String namespace; - private String resource; - + protected void copyInstance(V1ParentReference instance) { instance = instance != null ? instance : new V1ParentReference(); if (instance != null) { @@ -33,58 +35,6 @@ protected void copyInstance(V1ParentReference instance) { } } - public String getGroup() { - return this.group; - } - - public A withGroup(String group) { - this.group = group; - return (A) this; - } - - public boolean hasGroup() { - return this.group != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - - public String getResource() { - return this.resource; - } - - public A withResource(String resource) { - this.resource = resource; - return (A) this; - } - - public boolean hasResource() { - return this.resource != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -111,6 +61,38 @@ public boolean equals(Object o) { return true; } + public String getGroup() { + return this.group; + } + + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; + } + + public String getResource() { + return this.resource; + } + + public boolean hasGroup() { + return this.group != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public boolean hasResource() { + return this.resource != null; + } + public int hashCode() { return Objects.hash(group, name, namespace, resource); } @@ -141,5 +123,24 @@ public String toString() { return sb.toString(); } - + public A withGroup(String group) { + this.group = group; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java index 6d5d4f240f..671a20b8f1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PersistentVolumeBuilder extends V1PersistentVolumeFluent implements VisitableBuilder{ + + V1PersistentVolumeFluent fluent; + public V1PersistentVolumeBuilder() { this(new V1PersistentVolume()); } @@ -11,17 +14,16 @@ public V1PersistentVolumeBuilder(V1PersistentVolumeFluent fluent) { this(fluent, new V1PersistentVolume()); } - public V1PersistentVolumeBuilder(V1PersistentVolumeFluent fluent,V1PersistentVolume instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeBuilder(V1PersistentVolume instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeFluent fluent; + public V1PersistentVolumeBuilder(V1PersistentVolumeFluent fluent,V1PersistentVolume instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolume build() { V1PersistentVolume buildable = new V1PersistentVolume(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1PersistentVolume build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java index 77d24e470b..fb63bc76f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PersistentVolumeClaimBuilder extends V1PersistentVolumeClaimFluent implements VisitableBuilder{ + + V1PersistentVolumeClaimFluent fluent; + public V1PersistentVolumeClaimBuilder() { this(new V1PersistentVolumeClaim()); } @@ -11,17 +14,16 @@ public V1PersistentVolumeClaimBuilder(V1PersistentVolumeClaimFluent fluent) { this(fluent, new V1PersistentVolumeClaim()); } - public V1PersistentVolumeClaimBuilder(V1PersistentVolumeClaimFluent fluent,V1PersistentVolumeClaim instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeClaimBuilder(V1PersistentVolumeClaim instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeClaimFluent fluent; + public V1PersistentVolumeClaimBuilder(V1PersistentVolumeClaimFluent fluent,V1PersistentVolumeClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeClaim build() { V1PersistentVolumeClaim buildable = new V1PersistentVolumeClaim(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1PersistentVolumeClaim build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java index 0cc1819063..59e299ad20 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PersistentVolumeClaimConditionBuilder extends V1PersistentVolumeClaimConditionFluent implements VisitableBuilder{ + + V1PersistentVolumeClaimConditionFluent fluent; + public V1PersistentVolumeClaimConditionBuilder() { this(new V1PersistentVolumeClaimCondition()); } @@ -11,17 +14,16 @@ public V1PersistentVolumeClaimConditionBuilder(V1PersistentVolumeClaimConditionF this(fluent, new V1PersistentVolumeClaimCondition()); } - public V1PersistentVolumeClaimConditionBuilder(V1PersistentVolumeClaimConditionFluent fluent,V1PersistentVolumeClaimCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeClaimConditionBuilder(V1PersistentVolumeClaimCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeClaimConditionFluent fluent; + public V1PersistentVolumeClaimConditionBuilder(V1PersistentVolumeClaimConditionFluent fluent,V1PersistentVolumeClaimCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeClaimCondition build() { V1PersistentVolumeClaimCondition buildable = new V1PersistentVolumeClaimCondition(); buildable.setLastProbeTime(fluent.getLastProbeTime()); @@ -33,5 +35,4 @@ public V1PersistentVolumeClaimCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java index f8c84074a5..19dc7fc8a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java @@ -1,31 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1PersistentVolumeClaimConditionFluent> extends BaseFluent{ - public V1PersistentVolumeClaimConditionFluent() { - } - - public V1PersistentVolumeClaimConditionFluent(V1PersistentVolumeClaimCondition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastProbeTime; private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1PersistentVolumeClaimConditionFluent() { + } + public V1PersistentVolumeClaimConditionFluent(V1PersistentVolumeClaimCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1PersistentVolumeClaimCondition instance) { instance = instance != null ? instance : new V1PersistentVolumeClaimCondition(); if (instance != null) { @@ -38,116 +40,86 @@ protected void copyInstance(V1PersistentVolumeClaimCondition instance) { } } - public OffsetDateTime getLastProbeTime() { - return this.lastProbeTime; - } - - public A withLastProbeTime(OffsetDateTime lastProbeTime) { - this.lastProbeTime = lastProbeTime; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PersistentVolumeClaimConditionFluent that = (V1PersistentVolumeClaimConditionFluent) o; + if (!(Objects.equals(lastProbeTime, that.lastProbeTime))) { + return false; + } + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastProbeTime() { - return this.lastProbeTime != null; + public OffsetDateTime getLastProbeTime() { + return this.lastProbeTime; } public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public String getStatus() { + return this.status; } - public boolean hasReason() { - return this.reason != null; + public String getType() { + return this.type; } - public String getStatus() { - return this.status; + public boolean hasLastProbeTime() { + return this.lastProbeTime != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; } - public boolean hasStatus() { - return this.status != null; + public boolean hasMessage() { + return this.message != null; } - public String getType() { - return this.type; + public boolean hasReason() { + return this.reason != null; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasStatus() { + return this.status != null; } public boolean hasType() { return this.type != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1PersistentVolumeClaimConditionFluent that = (V1PersistentVolumeClaimConditionFluent) o; - if (!(Objects.equals(lastProbeTime, that.lastProbeTime))) { - return false; - } - if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { - return false; - } - if (!(Objects.equals(message, that.message))) { - return false; - } - if (!(Objects.equals(reason, that.reason))) { - return false; - } - if (!(Objects.equals(status, that.status))) { - return false; - } - if (!(Objects.equals(type, that.type))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type); } @@ -188,5 +160,34 @@ public String toString() { return sb.toString(); } - + public A withLastProbeTime(OffsetDateTime lastProbeTime) { + this.lastProbeTime = lastProbeTime; + return (A) this; + } + + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java index 9370e4ad29..74bb87be9a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1PersistentVolumeClaimFluent> extends BaseFluent{ - public V1PersistentVolumeClaimFluent() { - } - - public V1PersistentVolumeClaimFluent(V1PersistentVolumeClaim instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1PersistentVolumeClaimSpecBuilder spec; private V1PersistentVolumeClaimStatusBuilder status; - - protected void copyInstance(V1PersistentVolumeClaim instance) { - instance = instance != null ? instance : new V1PersistentVolumeClaim(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1PersistentVolumeClaimFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1PersistentVolumeClaimFluent(V1PersistentVolumeClaim instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1PersistentVolumeClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1PersistentVolumeClaimStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1PersistentVolumeClaim instance) { + instance = instance != null ? instance : new V1PersistentVolumeClaim(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1PersistentVolumeClaimSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1PersistentVolumeClaimSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1PersistentVolumeClaimSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1PersistentVolumeClaimSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PersistentVolumeClaimSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1PersistentVolumeClaimSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1PersistentVolumeClaimStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1PersistentVolumeClaimStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1PersistentVolumeClaimStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PersistentVolumeClaimStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1PersistentVolumeClaimStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1PersistentVolumeClaimStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PersistentVolumeClaimStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1PersistentVolumeClaimStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1PersistentVolumeClaimSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1PersistentVolumeClaimStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1PersistentVolumeClaimSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1PersistentVolumeClaimSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1PersistentVolumeClaimStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1PersistentVolumeClaimStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1PersistentVolumeClaimSpecFluent> implements Nested{ + + V1PersistentVolumeClaimSpecBuilder builder; + SpecNested(V1PersistentVolumeClaimSpec item) { this.builder = new V1PersistentVolumeClaimSpecBuilder(this, item); } - V1PersistentVolumeClaimSpecBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1PersistentVolumeClaimStatusFluent> implements Nested{ + + V1PersistentVolumeClaimStatusBuilder builder; + StatusNested(V1PersistentVolumeClaimStatus item) { this.builder = new V1PersistentVolumeClaimStatusBuilder(this, item); } - V1PersistentVolumeClaimStatusBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java index d63f7beb3b..5efd989a5e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PersistentVolumeClaimListBuilder extends V1PersistentVolumeClaimListFluent implements VisitableBuilder{ + + V1PersistentVolumeClaimListFluent fluent; + public V1PersistentVolumeClaimListBuilder() { this(new V1PersistentVolumeClaimList()); } @@ -11,17 +14,16 @@ public V1PersistentVolumeClaimListBuilder(V1PersistentVolumeClaimListFluent f this(fluent, new V1PersistentVolumeClaimList()); } - public V1PersistentVolumeClaimListBuilder(V1PersistentVolumeClaimListFluent fluent,V1PersistentVolumeClaimList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeClaimListBuilder(V1PersistentVolumeClaimList instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeClaimListFluent fluent; + public V1PersistentVolumeClaimListBuilder(V1PersistentVolumeClaimListFluent fluent,V1PersistentVolumeClaimList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeClaimList build() { V1PersistentVolumeClaimList buildable = new V1PersistentVolumeClaimList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1PersistentVolumeClaimList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java index 78ab50e008..7a82b70d70 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PersistentVolumeClaimListFluent> extends BaseFluent{ - public V1PersistentVolumeClaimListFluent() { - } - - public V1PersistentVolumeClaimListFluent(V1PersistentVolumeClaimList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1PersistentVolumeClaimList instance) { - instance = instance != null ? instance : new V1PersistentVolumeClaimList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1PersistentVolumeClaimListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1PersistentVolumeClaimListFluent(V1PersistentVolumeClaimList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1PersistentVolumeClaim item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1PersistentVolumeClaim item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1PersistentVolumeClaim item) { + return new ItemsNested(-1, item); } public A addToItems(V1PersistentVolumeClaim... items) { @@ -96,68 +65,31 @@ public A addToItems(V1PersistentVolumeClaim... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1PersistentVolumeClaim item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1PersistentVolumeClaim item : items) { - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1PersistentVolumeClaim... items) { - if (this.items == null) { - return (A) this; - } - for (V1PersistentVolumeClaim item : items) { - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1PersistentVolumeClaim item : items) { - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1PersistentVolumeClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1PersistentVolumeClaim buildFirstItem() { + return this.items.get(0).build(); } public V1PersistentVolumeClaim buildItem(int index) { return this.items.get(index).build(); } - public V1PersistentVolumeClaim buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1PersistentVolumeClaim buildLastItem() { @@ -173,73 +105,34 @@ public V1PersistentVolumeClaim buildMatchingItem(Predicate predicate) { - for (V1PersistentVolumeClaimBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1PersistentVolumeClaim item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1PersistentVolumeClaimList instance) { + instance = instance != null ? instance : new V1PersistentVolumeClaimList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1PersistentVolumeClaim... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1PersistentVolumeClaim item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1PersistentVolumeClaim item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1PersistentVolumeClaim item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1PersistentVolumeClaimBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1PersistentVolumeClaim... items) { + if (this.items == null) { + return (A) this; + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1PersistentVolumeClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1PersistentVolumeClaim item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1PersistentVolumeClaim item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1PersistentVolumeClaim item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1PersistentVolumeClaim... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1PersistentVolumeClaim item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1PersistentVolumeClaimFluent> implements Nested{ + + V1PersistentVolumeClaimBuilder builder; + int index; + ItemsNested(int index,V1PersistentVolumeClaim item) { this.index = index; this.builder = new V1PersistentVolumeClaimBuilder(this, item); } - V1PersistentVolumeClaimBuilder builder; - int index; - + public N and() { return (N) V1PersistentVolumeClaimListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java index dbd4b87857..ab703a1118 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PersistentVolumeClaimSpecBuilder extends V1PersistentVolumeClaimSpecFluent implements VisitableBuilder{ + + V1PersistentVolumeClaimSpecFluent fluent; + public V1PersistentVolumeClaimSpecBuilder() { this(new V1PersistentVolumeClaimSpec()); } @@ -11,17 +14,16 @@ public V1PersistentVolumeClaimSpecBuilder(V1PersistentVolumeClaimSpecFluent f this(fluent, new V1PersistentVolumeClaimSpec()); } - public V1PersistentVolumeClaimSpecBuilder(V1PersistentVolumeClaimSpecFluent fluent,V1PersistentVolumeClaimSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeClaimSpecBuilder(V1PersistentVolumeClaimSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeClaimSpecFluent fluent; + public V1PersistentVolumeClaimSpecBuilder(V1PersistentVolumeClaimSpecFluent fluent,V1PersistentVolumeClaimSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeClaimSpec build() { V1PersistentVolumeClaimSpec buildable = new V1PersistentVolumeClaimSpec(); buildable.setAccessModes(fluent.getAccessModes()); @@ -36,5 +38,4 @@ public V1PersistentVolumeClaimSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java index 75f8a99c33..c614618282 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java @@ -1,29 +1,24 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PersistentVolumeClaimSpecFluent> extends BaseFluent{ - public V1PersistentVolumeClaimSpecFluent() { - } - - public V1PersistentVolumeClaimSpecFluent(V1PersistentVolumeClaimSpec instance) { - this.copyInstance(instance); - } + private List accessModes; private V1TypedLocalObjectReferenceBuilder dataSource; private V1TypedObjectReferenceBuilder dataSourceRef; @@ -33,39 +28,15 @@ public V1PersistentVolumeClaimSpecFluent(V1PersistentVolumeClaimSpec instance) { private String volumeAttributesClassName; private String volumeMode; private String volumeName; - - protected void copyInstance(V1PersistentVolumeClaimSpec instance) { - instance = instance != null ? instance : new V1PersistentVolumeClaimSpec(); - if (instance != null) { - this.withAccessModes(instance.getAccessModes()); - this.withDataSource(instance.getDataSource()); - this.withDataSourceRef(instance.getDataSourceRef()); - this.withResources(instance.getResources()); - this.withSelector(instance.getSelector()); - this.withStorageClassName(instance.getStorageClassName()); - this.withVolumeAttributesClassName(instance.getVolumeAttributesClassName()); - this.withVolumeMode(instance.getVolumeMode()); - this.withVolumeName(instance.getVolumeName()); - } - } - - public A addToAccessModes(int index,String item) { - if (this.accessModes == null) { - this.accessModes = new ArrayList(); - } - this.accessModes.add(index, item); - return (A) this; + + public V1PersistentVolumeClaimSpecFluent() { } - public A setToAccessModes(int index,String item) { - if (this.accessModes == null) { - this.accessModes = new ArrayList(); - } - this.accessModes.set(index, item); - return (A) this; + public V1PersistentVolumeClaimSpecFluent(V1PersistentVolumeClaimSpec instance) { + this.copyInstance(instance); } - - public A addToAccessModes(String... items) { + + public A addAllToAccessModes(Collection items) { if (this.accessModes == null) { this.accessModes = new ArrayList(); } @@ -75,7 +46,7 @@ public A addToAccessModes(String... items) { return (A) this; } - public A addAllToAccessModes(Collection items) { + public A addToAccessModes(String... items) { if (this.accessModes == null) { this.accessModes = new ArrayList(); } @@ -85,121 +56,53 @@ public A addAllToAccessModes(Collection items) { return (A) this; } - public A removeFromAccessModes(String... items) { - if (this.accessModes == null) { - return (A) this; - } - for (String item : items) { - this.accessModes.remove(item); - } - return (A) this; - } - - public A removeAllFromAccessModes(Collection items) { + public A addToAccessModes(int index,String item) { if (this.accessModes == null) { - return (A) this; - } - for (String item : items) { - this.accessModes.remove(item); - } - return (A) this; - } - - public List getAccessModes() { - return this.accessModes; - } - - public String getAccessMode(int index) { - return this.accessModes.get(index); - } - - public String getFirstAccessMode() { - return this.accessModes.get(0); - } - - public String getLastAccessMode() { - return this.accessModes.get(accessModes.size() - 1); - } - - public String getMatchingAccessMode(Predicate predicate) { - for (String item : accessModes) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingAccessMode(Predicate predicate) { - for (String item : accessModes) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withAccessModes(List accessModes) { - if (accessModes != null) { - this.accessModes = new ArrayList(); - for (String item : accessModes) { - this.addToAccessModes(item); - } - } else { - this.accessModes = null; - } - return (A) this; - } - - public A withAccessModes(String... accessModes) { - if (this.accessModes != null) { - this.accessModes.clear(); - _visitables.remove("accessModes"); - } - if (accessModes != null) { - for (String item : accessModes) { - this.addToAccessModes(item); - } + this.accessModes = new ArrayList(); } + this.accessModes.add(index, item); return (A) this; } - public boolean hasAccessModes() { - return this.accessModes != null && !(this.accessModes.isEmpty()); - } - public V1TypedLocalObjectReference buildDataSource() { return this.dataSource != null ? this.dataSource.build() : null; } - public A withDataSource(V1TypedLocalObjectReference dataSource) { - this._visitables.remove("dataSource"); - if (dataSource != null) { - this.dataSource = new V1TypedLocalObjectReferenceBuilder(dataSource); - this._visitables.get("dataSource").add(this.dataSource); - } else { - this.dataSource = null; - this._visitables.get("dataSource").remove(this.dataSource); - } - return (A) this; + public V1TypedObjectReference buildDataSourceRef() { + return this.dataSourceRef != null ? this.dataSourceRef.build() : null; } - public boolean hasDataSource() { - return this.dataSource != null; + public V1VolumeResourceRequirements buildResources() { + return this.resources != null ? this.resources.build() : null; } - public DataSourceNested withNewDataSource() { - return new DataSourceNested(null); + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; } - public DataSourceNested withNewDataSourceLike(V1TypedLocalObjectReference item) { - return new DataSourceNested(item); + protected void copyInstance(V1PersistentVolumeClaimSpec instance) { + instance = instance != null ? instance : new V1PersistentVolumeClaimSpec(); + if (instance != null) { + this.withAccessModes(instance.getAccessModes()); + this.withDataSource(instance.getDataSource()); + this.withDataSourceRef(instance.getDataSourceRef()); + this.withResources(instance.getResources()); + this.withSelector(instance.getSelector()); + this.withStorageClassName(instance.getStorageClassName()); + this.withVolumeAttributesClassName(instance.getVolumeAttributesClassName()); + this.withVolumeMode(instance.getVolumeMode()); + this.withVolumeName(instance.getVolumeName()); + } } public DataSourceNested editDataSource() { return this.withNewDataSourceLike(Optional.ofNullable(this.buildDataSource()).orElse(null)); } + public DataSourceRefNested editDataSourceRef() { + return this.withNewDataSourceRefLike(Optional.ofNullable(this.buildDataSourceRef()).orElse(null)); + } + public DataSourceNested editOrNewDataSource() { return this.withNewDataSourceLike(Optional.ofNullable(this.buildDataSource()).orElse(new V1TypedLocalObjectReferenceBuilder().build())); } @@ -208,38 +111,6 @@ public DataSourceNested editOrNewDataSourceLike(V1TypedLocalObjectReference i return this.withNewDataSourceLike(Optional.ofNullable(this.buildDataSource()).orElse(item)); } - public V1TypedObjectReference buildDataSourceRef() { - return this.dataSourceRef != null ? this.dataSourceRef.build() : null; - } - - public A withDataSourceRef(V1TypedObjectReference dataSourceRef) { - this._visitables.remove("dataSourceRef"); - if (dataSourceRef != null) { - this.dataSourceRef = new V1TypedObjectReferenceBuilder(dataSourceRef); - this._visitables.get("dataSourceRef").add(this.dataSourceRef); - } else { - this.dataSourceRef = null; - this._visitables.get("dataSourceRef").remove(this.dataSourceRef); - } - return (A) this; - } - - public boolean hasDataSourceRef() { - return this.dataSourceRef != null; - } - - public DataSourceRefNested withNewDataSourceRef() { - return new DataSourceRefNested(null); - } - - public DataSourceRefNested withNewDataSourceRefLike(V1TypedObjectReference item) { - return new DataSourceRefNested(item); - } - - public DataSourceRefNested editDataSourceRef() { - return this.withNewDataSourceRefLike(Optional.ofNullable(this.buildDataSourceRef()).orElse(null)); - } - public DataSourceRefNested editOrNewDataSourceRef() { return this.withNewDataSourceRefLike(Optional.ofNullable(this.buildDataSourceRef()).orElse(new V1TypedObjectReferenceBuilder().build())); } @@ -248,181 +119,187 @@ public DataSourceRefNested editOrNewDataSourceRefLike(V1TypedObjectReference return this.withNewDataSourceRefLike(Optional.ofNullable(this.buildDataSourceRef()).orElse(item)); } - public V1VolumeResourceRequirements buildResources() { - return this.resources != null ? this.resources.build() : null; - } - - public A withResources(V1VolumeResourceRequirements resources) { - this._visitables.remove("resources"); - if (resources != null) { - this.resources = new V1VolumeResourceRequirementsBuilder(resources); - this._visitables.get("resources").add(this.resources); - } else { - this.resources = null; - this._visitables.get("resources").remove(this.resources); - } - return (A) this; + public ResourcesNested editOrNewResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1VolumeResourceRequirementsBuilder().build())); } - public boolean hasResources() { - return this.resources != null; + public ResourcesNested editOrNewResourcesLike(V1VolumeResourceRequirements item) { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); } - public ResourcesNested withNewResources() { - return new ResourcesNested(null); + public SelectorNested editOrNewSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public ResourcesNested withNewResourcesLike(V1VolumeResourceRequirements item) { - return new ResourcesNested(item); + public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } public ResourcesNested editResources() { return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); } - public ResourcesNested editOrNewResources() { - return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1VolumeResourceRequirementsBuilder().build())); - } - - public ResourcesNested editOrNewResourcesLike(V1VolumeResourceRequirements item) { - return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PersistentVolumeClaimSpecFluent that = (V1PersistentVolumeClaimSpecFluent) o; + if (!(Objects.equals(accessModes, that.accessModes))) { + return false; + } + if (!(Objects.equals(dataSource, that.dataSource))) { + return false; + } + if (!(Objects.equals(dataSourceRef, that.dataSourceRef))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(storageClassName, that.storageClassName))) { + return false; + } + if (!(Objects.equals(volumeAttributesClassName, that.volumeAttributesClassName))) { + return false; + } + if (!(Objects.equals(volumeMode, that.volumeMode))) { + return false; + } + if (!(Objects.equals(volumeName, that.volumeName))) { + return false; + } + return true; } - public A withSelector(V1LabelSelector selector) { - this._visitables.remove("selector"); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - this._visitables.get("selector").add(this.selector); - } else { - this.selector = null; - this._visitables.get("selector").remove(this.selector); - } - return (A) this; + public String getAccessMode(int index) { + return this.accessModes.get(index); } - public boolean hasSelector() { - return this.selector != null; + public List getAccessModes() { + return this.accessModes; } - public SelectorNested withNewSelector() { - return new SelectorNested(null); + public String getFirstAccessMode() { + return this.accessModes.get(0); } - public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); + public String getLastAccessMode() { + return this.accessModes.get(accessModes.size() - 1); } - public SelectorNested editSelector() { - return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); + public String getMatchingAccessMode(Predicate predicate) { + for (String item : accessModes) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public SelectorNested editOrNewSelector() { - return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + public String getStorageClassName() { + return this.storageClassName; } - public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); + public String getVolumeAttributesClassName() { + return this.volumeAttributesClassName; } - public String getStorageClassName() { - return this.storageClassName; + public String getVolumeMode() { + return this.volumeMode; } - public A withStorageClassName(String storageClassName) { - this.storageClassName = storageClassName; - return (A) this; + public String getVolumeName() { + return this.volumeName; } - public boolean hasStorageClassName() { - return this.storageClassName != null; + public boolean hasAccessModes() { + return this.accessModes != null && !(this.accessModes.isEmpty()); } - public String getVolumeAttributesClassName() { - return this.volumeAttributesClassName; + public boolean hasDataSource() { + return this.dataSource != null; } - public A withVolumeAttributesClassName(String volumeAttributesClassName) { - this.volumeAttributesClassName = volumeAttributesClassName; - return (A) this; + public boolean hasDataSourceRef() { + return this.dataSourceRef != null; } - public boolean hasVolumeAttributesClassName() { - return this.volumeAttributesClassName != null; + public boolean hasMatchingAccessMode(Predicate predicate) { + for (String item : accessModes) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getVolumeMode() { - return this.volumeMode; + public boolean hasResources() { + return this.resources != null; } - public A withVolumeMode(String volumeMode) { - this.volumeMode = volumeMode; - return (A) this; + public boolean hasSelector() { + return this.selector != null; } - public boolean hasVolumeMode() { - return this.volumeMode != null; + public boolean hasStorageClassName() { + return this.storageClassName != null; } - public String getVolumeName() { - return this.volumeName; + public boolean hasVolumeAttributesClassName() { + return this.volumeAttributesClassName != null; } - public A withVolumeName(String volumeName) { - this.volumeName = volumeName; - return (A) this; + public boolean hasVolumeMode() { + return this.volumeMode != null; } public boolean hasVolumeName() { return this.volumeName != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1PersistentVolumeClaimSpecFluent that = (V1PersistentVolumeClaimSpecFluent) o; - if (!(Objects.equals(accessModes, that.accessModes))) { - return false; - } - if (!(Objects.equals(dataSource, that.dataSource))) { - return false; - } - if (!(Objects.equals(dataSourceRef, that.dataSourceRef))) { - return false; - } - if (!(Objects.equals(resources, that.resources))) { - return false; - } - if (!(Objects.equals(selector, that.selector))) { - return false; - } - if (!(Objects.equals(storageClassName, that.storageClassName))) { - return false; + public int hashCode() { + return Objects.hash(accessModes, dataSource, dataSourceRef, resources, selector, storageClassName, volumeAttributesClassName, volumeMode, volumeName); + } + + public A removeAllFromAccessModes(Collection items) { + if (this.accessModes == null) { + return (A) this; } - if (!(Objects.equals(volumeAttributesClassName, that.volumeAttributesClassName))) { - return false; + for (String item : items) { + this.accessModes.remove(item); } - if (!(Objects.equals(volumeMode, that.volumeMode))) { - return false; + return (A) this; + } + + public A removeFromAccessModes(String... items) { + if (this.accessModes == null) { + return (A) this; } - if (!(Objects.equals(volumeName, that.volumeName))) { - return false; + for (String item : items) { + this.accessModes.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(accessModes, dataSource, dataSourceRef, resources, selector, storageClassName, volumeAttributesClassName, volumeMode, volumeName); + public A setToAccessModes(int index,String item) { + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + this.accessModes.set(index, item); + return (A) this; } public String toString() { @@ -475,12 +352,139 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAccessModes(List accessModes) { + if (accessModes != null) { + this.accessModes = new ArrayList(); + for (String item : accessModes) { + this.addToAccessModes(item); + } + } else { + this.accessModes = null; + } + return (A) this; + } + + public A withAccessModes(String... accessModes) { + if (this.accessModes != null) { + this.accessModes.clear(); + _visitables.remove("accessModes"); + } + if (accessModes != null) { + for (String item : accessModes) { + this.addToAccessModes(item); + } + } + return (A) this; + } + + public A withDataSource(V1TypedLocalObjectReference dataSource) { + this._visitables.remove("dataSource"); + if (dataSource != null) { + this.dataSource = new V1TypedLocalObjectReferenceBuilder(dataSource); + this._visitables.get("dataSource").add(this.dataSource); + } else { + this.dataSource = null; + this._visitables.get("dataSource").remove(this.dataSource); + } + return (A) this; + } + + public A withDataSourceRef(V1TypedObjectReference dataSourceRef) { + this._visitables.remove("dataSourceRef"); + if (dataSourceRef != null) { + this.dataSourceRef = new V1TypedObjectReferenceBuilder(dataSourceRef); + this._visitables.get("dataSourceRef").add(this.dataSourceRef); + } else { + this.dataSourceRef = null; + this._visitables.get("dataSourceRef").remove(this.dataSourceRef); + } + return (A) this; + } + + public DataSourceNested withNewDataSource() { + return new DataSourceNested(null); + } + + public DataSourceNested withNewDataSourceLike(V1TypedLocalObjectReference item) { + return new DataSourceNested(item); + } + + public DataSourceRefNested withNewDataSourceRef() { + return new DataSourceRefNested(null); + } + + public DataSourceRefNested withNewDataSourceRefLike(V1TypedObjectReference item) { + return new DataSourceRefNested(item); + } + + public ResourcesNested withNewResources() { + return new ResourcesNested(null); + } + + public ResourcesNested withNewResourcesLike(V1VolumeResourceRequirements item) { + return new ResourcesNested(item); + } + + public SelectorNested withNewSelector() { + return new SelectorNested(null); + } + + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); + } + + public A withResources(V1VolumeResourceRequirements resources) { + this._visitables.remove("resources"); + if (resources != null) { + this.resources = new V1VolumeResourceRequirementsBuilder(resources); + this._visitables.get("resources").add(this.resources); + } else { + this.resources = null; + this._visitables.get("resources").remove(this.resources); + } + return (A) this; + } + + public A withSelector(V1LabelSelector selector) { + this._visitables.remove("selector"); + if (selector != null) { + this.selector = new V1LabelSelectorBuilder(selector); + this._visitables.get("selector").add(this.selector); + } else { + this.selector = null; + this._visitables.get("selector").remove(this.selector); + } + return (A) this; + } + + public A withStorageClassName(String storageClassName) { + this.storageClassName = storageClassName; + return (A) this; + } + + public A withVolumeAttributesClassName(String volumeAttributesClassName) { + this.volumeAttributesClassName = volumeAttributesClassName; + return (A) this; + } + + public A withVolumeMode(String volumeMode) { + this.volumeMode = volumeMode; + return (A) this; + } + + public A withVolumeName(String volumeName) { + this.volumeName = volumeName; + return (A) this; + } public class DataSourceNested extends V1TypedLocalObjectReferenceFluent> implements Nested{ + + V1TypedLocalObjectReferenceBuilder builder; + DataSourceNested(V1TypedLocalObjectReference item) { this.builder = new V1TypedLocalObjectReferenceBuilder(this, item); } - V1TypedLocalObjectReferenceBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimSpecFluent.this.withDataSource(builder.build()); } @@ -489,14 +493,15 @@ public N endDataSource() { return and(); } - } public class DataSourceRefNested extends V1TypedObjectReferenceFluent> implements Nested{ + + V1TypedObjectReferenceBuilder builder; + DataSourceRefNested(V1TypedObjectReference item) { this.builder = new V1TypedObjectReferenceBuilder(this, item); } - V1TypedObjectReferenceBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimSpecFluent.this.withDataSourceRef(builder.build()); } @@ -505,14 +510,15 @@ public N endDataSourceRef() { return and(); } - } public class ResourcesNested extends V1VolumeResourceRequirementsFluent> implements Nested{ + + V1VolumeResourceRequirementsBuilder builder; + ResourcesNested(V1VolumeResourceRequirements item) { this.builder = new V1VolumeResourceRequirementsBuilder(this, item); } - V1VolumeResourceRequirementsBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimSpecFluent.this.withResources(builder.build()); } @@ -521,14 +527,15 @@ public N endResources() { return and(); } - } public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + SelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimSpecFluent.this.withSelector(builder.build()); } @@ -537,7 +544,5 @@ public N endSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java index cb611d2a09..db942b3a09 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PersistentVolumeClaimStatusBuilder extends V1PersistentVolumeClaimStatusFluent implements VisitableBuilder{ + + V1PersistentVolumeClaimStatusFluent fluent; + public V1PersistentVolumeClaimStatusBuilder() { this(new V1PersistentVolumeClaimStatus()); } @@ -11,17 +14,16 @@ public V1PersistentVolumeClaimStatusBuilder(V1PersistentVolumeClaimStatusFluent< this(fluent, new V1PersistentVolumeClaimStatus()); } - public V1PersistentVolumeClaimStatusBuilder(V1PersistentVolumeClaimStatusFluent fluent,V1PersistentVolumeClaimStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeClaimStatusBuilder(V1PersistentVolumeClaimStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeClaimStatusFluent fluent; + public V1PersistentVolumeClaimStatusBuilder(V1PersistentVolumeClaimStatusFluent fluent,V1PersistentVolumeClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeClaimStatus build() { V1PersistentVolumeClaimStatus buildable = new V1PersistentVolumeClaimStatus(); buildable.setAccessModes(fluent.getAccessModes()); @@ -35,5 +37,4 @@ public V1PersistentVolumeClaimStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java index 054e8db204..51fd52a6f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java @@ -1,34 +1,29 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; -import java.util.Optional; -import io.kubernetes.client.custom.Quantity; -import java.util.Objects; -import java.util.Collection; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PersistentVolumeClaimStatusFluent> extends BaseFluent{ - public V1PersistentVolumeClaimStatusFluent() { - } - - public V1PersistentVolumeClaimStatusFluent(V1PersistentVolumeClaimStatus instance) { - this.copyInstance(instance); - } + private List accessModes; private Map allocatedResourceStatuses; private Map allocatedResources; @@ -37,47 +32,14 @@ public V1PersistentVolumeClaimStatusFluent(V1PersistentVolumeClaimStatus instanc private String currentVolumeAttributesClassName; private V1ModifyVolumeStatusBuilder modifyVolumeStatus; private String phase; - - protected void copyInstance(V1PersistentVolumeClaimStatus instance) { - instance = instance != null ? instance : new V1PersistentVolumeClaimStatus(); - if (instance != null) { - this.withAccessModes(instance.getAccessModes()); - this.withAllocatedResourceStatuses(instance.getAllocatedResourceStatuses()); - this.withAllocatedResources(instance.getAllocatedResources()); - this.withCapacity(instance.getCapacity()); - this.withConditions(instance.getConditions()); - this.withCurrentVolumeAttributesClassName(instance.getCurrentVolumeAttributesClassName()); - this.withModifyVolumeStatus(instance.getModifyVolumeStatus()); - this.withPhase(instance.getPhase()); - } - } - - public A addToAccessModes(int index,String item) { - if (this.accessModes == null) { - this.accessModes = new ArrayList(); - } - this.accessModes.add(index, item); - return (A) this; - } - - public A setToAccessModes(int index,String item) { - if (this.accessModes == null) { - this.accessModes = new ArrayList(); - } - this.accessModes.set(index, item); - return (A) this; + + public V1PersistentVolumeClaimStatusFluent() { } - public A addToAccessModes(String... items) { - if (this.accessModes == null) { - this.accessModes = new ArrayList(); - } - for (String item : items) { - this.accessModes.add(item); - } - return (A) this; + public V1PersistentVolumeClaimStatusFluent(V1PersistentVolumeClaimStatus instance) { + this.copyInstance(instance); } - + public A addAllToAccessModes(Collection items) { if (this.accessModes == null) { this.accessModes = new ArrayList(); @@ -88,96 +50,41 @@ public A addAllToAccessModes(Collection items) { return (A) this; } - public A removeFromAccessModes(String... items) { - if (this.accessModes == null) { - return (A) this; - } - for (String item : items) { - this.accessModes.remove(item); - } - return (A) this; - } - - public A removeAllFromAccessModes(Collection items) { - if (this.accessModes == null) { - return (A) this; + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); } - for (String item : items) { - this.accessModes.remove(item); + for (V1PersistentVolumeClaimCondition item : items) { + V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); } return (A) this; } - public List getAccessModes() { - return this.accessModes; - } - - public String getAccessMode(int index) { - return this.accessModes.get(index); - } - - public String getFirstAccessMode() { - return this.accessModes.get(0); - } - - public String getLastAccessMode() { - return this.accessModes.get(accessModes.size() - 1); - } - - public String getMatchingAccessMode(Predicate predicate) { - for (String item : accessModes) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingAccessMode(Predicate predicate) { - for (String item : accessModes) { - if (predicate.test(item)) { - return true; - } - } - return false; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - public A withAccessModes(List accessModes) { - if (accessModes != null) { - this.accessModes = new ArrayList(); - for (String item : accessModes) { - this.addToAccessModes(item); - } - } else { - this.accessModes = null; - } - return (A) this; + public ConditionsNested addNewConditionLike(V1PersistentVolumeClaimCondition item) { + return new ConditionsNested(-1, item); } - public A withAccessModes(String... accessModes) { - if (this.accessModes != null) { - this.accessModes.clear(); - _visitables.remove("accessModes"); + public A addToAccessModes(String... items) { + if (this.accessModes == null) { + this.accessModes = new ArrayList(); } - if (accessModes != null) { - for (String item : accessModes) { - this.addToAccessModes(item); - } + for (String item : items) { + this.accessModes.add(item); } return (A) this; } - public boolean hasAccessModes() { - return this.accessModes != null && !(this.accessModes.isEmpty()); - } - - public A addToAllocatedResourceStatuses(String key,String value) { - if (this.allocatedResourceStatuses == null && key != null && value != null) { - this.allocatedResourceStatuses = new LinkedHashMap(); - } - if (key != null && value != null) { - this.allocatedResourceStatuses.put(key, value); + public A addToAccessModes(int index,String item) { + if (this.accessModes == null) { + this.accessModes = new ArrayList(); } + this.accessModes.add(index, item); return (A) this; } @@ -191,47 +98,26 @@ public A addToAllocatedResourceStatuses(Map map) { return (A) this; } - public A removeFromAllocatedResourceStatuses(String key) { - if (this.allocatedResourceStatuses == null) { - return (A) this; + public A addToAllocatedResourceStatuses(String key,String value) { + if (this.allocatedResourceStatuses == null && key != null && value != null) { + this.allocatedResourceStatuses = new LinkedHashMap(); } - if (key != null && this.allocatedResourceStatuses != null) { - this.allocatedResourceStatuses.remove(key); + if (key != null && value != null) { + this.allocatedResourceStatuses.put(key, value); } return (A) this; } - public A removeFromAllocatedResourceStatuses(Map map) { - if (this.allocatedResourceStatuses == null) { - return (A) this; + public A addToAllocatedResources(Map map) { + if (this.allocatedResources == null && map != null) { + this.allocatedResources = new LinkedHashMap(); } if (map != null) { - for (Object key : map.keySet()) { - if (this.allocatedResourceStatuses != null) { - this.allocatedResourceStatuses.remove(key); - } - } - } - return (A) this; - } - - public Map getAllocatedResourceStatuses() { - return this.allocatedResourceStatuses; - } - - public A withAllocatedResourceStatuses(Map allocatedResourceStatuses) { - if (allocatedResourceStatuses == null) { - this.allocatedResourceStatuses = null; - } else { - this.allocatedResourceStatuses = new LinkedHashMap(allocatedResourceStatuses); + this.allocatedResources.putAll(map); } return (A) this; } - public boolean hasAllocatedResourceStatuses() { - return this.allocatedResourceStatuses != null; - } - public A addToAllocatedResources(String key,Quantity value) { if (this.allocatedResources == null && key != null && value != null) { this.allocatedResources = new LinkedHashMap(); @@ -242,185 +128,386 @@ public A addToAllocatedResources(String key,Quantity value) { return (A) this; } - public A addToAllocatedResources(Map map) { - if (this.allocatedResources == null && map != null) { - this.allocatedResources = new LinkedHashMap(); + public A addToCapacity(Map map) { + if (this.capacity == null && map != null) { + this.capacity = new LinkedHashMap(); } if (map != null) { - this.allocatedResources.putAll(map); + this.capacity.putAll(map); } return (A) this; } - public A removeFromAllocatedResources(String key) { - if (this.allocatedResources == null) { - return (A) this; + public A addToCapacity(String key,Quantity value) { + if (this.capacity == null && key != null && value != null) { + this.capacity = new LinkedHashMap(); } - if (key != null && this.allocatedResources != null) { - this.allocatedResources.remove(key); + if (key != null && value != null) { + this.capacity.put(key, value); } return (A) this; } - public A removeFromAllocatedResources(Map map) { - if (this.allocatedResources == null) { - return (A) this; + public A addToConditions(V1PersistentVolumeClaimCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); } - if (map != null) { - for (Object key : map.keySet()) { - if (this.allocatedResources != null) { - this.allocatedResources.remove(key); - } - } + for (V1PersistentVolumeClaimCondition item : items) { + V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); } return (A) this; } - public Map getAllocatedResources() { - return this.allocatedResources; + public A addToConditions(int index,V1PersistentVolumeClaimCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); + } + return (A) this; } - public A withAllocatedResources(Map allocatedResources) { - if (allocatedResources == null) { - this.allocatedResources = null; - } else { - this.allocatedResources = new LinkedHashMap(allocatedResources); - } - return (A) this; + public V1PersistentVolumeClaimCondition buildCondition(int index) { + return this.conditions.get(index).build(); } - public boolean hasAllocatedResources() { - return this.allocatedResources != null; + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; } - public A addToCapacity(String key,Quantity value) { - if (this.capacity == null && key != null && value != null) { - this.capacity = new LinkedHashMap(); + public V1PersistentVolumeClaimCondition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1PersistentVolumeClaimCondition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1PersistentVolumeClaimCondition buildMatchingCondition(Predicate predicate) { + for (V1PersistentVolumeClaimConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ModifyVolumeStatus buildModifyVolumeStatus() { + return this.modifyVolumeStatus != null ? this.modifyVolumeStatus.build() : null; + } + + protected void copyInstance(V1PersistentVolumeClaimStatus instance) { + instance = instance != null ? instance : new V1PersistentVolumeClaimStatus(); + if (instance != null) { + this.withAccessModes(instance.getAccessModes()); + this.withAllocatedResourceStatuses(instance.getAllocatedResourceStatuses()); + this.withAllocatedResources(instance.getAllocatedResources()); + this.withCapacity(instance.getCapacity()); + this.withConditions(instance.getConditions()); + this.withCurrentVolumeAttributesClassName(instance.getCurrentVolumeAttributesClassName()); + this.withModifyVolumeStatus(instance.getModifyVolumeStatus()); + this.withPhase(instance.getPhase()); } - if (key != null && value != null) { - this.capacity.put(key, value); + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } - return (A) this; + return this.setNewConditionLike(index, this.buildCondition(index)); } - public A addToCapacity(Map map) { - if (this.capacity == null && map != null) { - this.capacity = new LinkedHashMap(); + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); } - if (map != null) { - this.capacity.putAll(map); + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); } - return (A) this; + return this.setNewConditionLike(index, this.buildCondition(index)); } - public A removeFromCapacity(String key) { - if (this.capacity == null) { - return (A) this; + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } } - if (key != null && this.capacity != null) { - this.capacity.remove(key); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); } - return (A) this; + return this.setNewConditionLike(index, this.buildCondition(index)); } - public A removeFromCapacity(Map map) { - if (this.capacity == null) { - return (A) this; + public ModifyVolumeStatusNested editModifyVolumeStatus() { + return this.withNewModifyVolumeStatusLike(Optional.ofNullable(this.buildModifyVolumeStatus()).orElse(null)); + } + + public ModifyVolumeStatusNested editOrNewModifyVolumeStatus() { + return this.withNewModifyVolumeStatusLike(Optional.ofNullable(this.buildModifyVolumeStatus()).orElse(new V1ModifyVolumeStatusBuilder().build())); + } + + public ModifyVolumeStatusNested editOrNewModifyVolumeStatusLike(V1ModifyVolumeStatus item) { + return this.withNewModifyVolumeStatusLike(Optional.ofNullable(this.buildModifyVolumeStatus()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - if (map != null) { - for (Object key : map.keySet()) { - if (this.capacity != null) { - this.capacity.remove(key); - } - } + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1PersistentVolumeClaimStatusFluent that = (V1PersistentVolumeClaimStatusFluent) o; + if (!(Objects.equals(accessModes, that.accessModes))) { + return false; + } + if (!(Objects.equals(allocatedResourceStatuses, that.allocatedResourceStatuses))) { + return false; + } + if (!(Objects.equals(allocatedResources, that.allocatedResources))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(currentVolumeAttributesClassName, that.currentVolumeAttributesClassName))) { + return false; + } + if (!(Objects.equals(modifyVolumeStatus, that.modifyVolumeStatus))) { + return false; + } + if (!(Objects.equals(phase, that.phase))) { + return false; + } + return true; + } + + public String getAccessMode(int index) { + return this.accessModes.get(index); + } + + public List getAccessModes() { + return this.accessModes; + } + + public Map getAllocatedResourceStatuses() { + return this.allocatedResourceStatuses; + } + + public Map getAllocatedResources() { + return this.allocatedResources; } public Map getCapacity() { return this.capacity; } - public A withCapacity(Map capacity) { - if (capacity == null) { - this.capacity = null; - } else { - this.capacity = new LinkedHashMap(capacity); - } - return (A) this; + public String getCurrentVolumeAttributesClassName() { + return this.currentVolumeAttributesClassName; + } + + public String getFirstAccessMode() { + return this.accessModes.get(0); + } + + public String getLastAccessMode() { + return this.accessModes.get(accessModes.size() - 1); + } + + public String getMatchingAccessMode(Predicate predicate) { + for (String item : accessModes) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getPhase() { + return this.phase; + } + + public boolean hasAccessModes() { + return this.accessModes != null && !(this.accessModes.isEmpty()); + } + + public boolean hasAllocatedResourceStatuses() { + return this.allocatedResourceStatuses != null; + } + + public boolean hasAllocatedResources() { + return this.allocatedResources != null; } public boolean hasCapacity() { return this.capacity != null; } - public A addToConditions(int index,V1PersistentVolumeClaimCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasCurrentVolumeAttributesClassName() { + return this.currentVolumeAttributesClassName != null; + } + + public boolean hasMatchingAccessMode(Predicate predicate) { + for (String item : accessModes) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1PersistentVolumeClaimConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasModifyVolumeStatus() { + return this.modifyVolumeStatus != null; + } + + public boolean hasPhase() { + return this.phase != null; + } + + public int hashCode() { + return Objects.hash(accessModes, allocatedResourceStatuses, allocatedResources, capacity, conditions, currentVolumeAttributesClassName, modifyVolumeStatus, phase); + } + + public A removeAllFromAccessModes(Collection items) { + if (this.accessModes == null) { + return (A) this; } - V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + for (String item : items) { + this.accessModes.remove(item); } return (A) this; } - public A setToConditions(int index,V1PersistentVolumeClaimCondition item) { + public A removeAllFromConditions(Collection items) { if (this.conditions == null) { - this.conditions = new ArrayList(); + return (A) this; } - V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + for (V1PersistentVolumeClaimCondition item : items) { + V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } return (A) this; } - public A addToConditions(V1PersistentVolumeClaimCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); + public A removeFromAccessModes(String... items) { + if (this.accessModes == null) { + return (A) this; } - for (V1PersistentVolumeClaimCondition item : items) { - V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); + for (String item : items) { + this.accessModes.remove(item); } return (A) this; } - public A addAllToConditions(Collection items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); + public A removeFromAllocatedResourceStatuses(String key) { + if (this.allocatedResourceStatuses == null) { + return (A) this; } - for (V1PersistentVolumeClaimCondition item : items) { - V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); + if (key != null && this.allocatedResourceStatuses != null) { + this.allocatedResourceStatuses.remove(key); } return (A) this; } - public A removeFromConditions(V1PersistentVolumeClaimCondition... items) { - if (this.conditions == null) { + public A removeFromAllocatedResourceStatuses(Map map) { + if (this.allocatedResourceStatuses == null) { return (A) this; } - for (V1PersistentVolumeClaimCondition item : items) { - V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + if (map != null) { + for (Object key : map.keySet()) { + if (this.allocatedResourceStatuses != null) { + this.allocatedResourceStatuses.remove(key); + } + } } return (A) this; } - public A removeAllFromConditions(Collection items) { + public A removeFromAllocatedResources(String key) { + if (this.allocatedResources == null) { + return (A) this; + } + if (key != null && this.allocatedResources != null) { + this.allocatedResources.remove(key); + } + return (A) this; + } + + public A removeFromAllocatedResources(Map map) { + if (this.allocatedResources == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.allocatedResources != null) { + this.allocatedResources.remove(key); + } + } + } + return (A) this; + } + + public A removeFromCapacity(String key) { + if (this.capacity == null) { + return (A) this; + } + if (key != null && this.capacity != null) { + this.capacity.remove(key); + } + return (A) this; + } + + public A removeFromCapacity(Map map) { + if (this.capacity == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.capacity != null) { + this.capacity.remove(key); + } + } + } + return (A) this; + } + + public A removeFromConditions(V1PersistentVolumeClaimCondition... items) { if (this.conditions == null) { return (A) this; } @@ -448,38 +535,129 @@ public A removeMatchingFromConditions(Predicate buildConditions() { - return this.conditions != null ? build(conditions) : null; - } - - public V1PersistentVolumeClaimCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - - public V1PersistentVolumeClaimCondition buildFirstCondition() { - return this.conditions.get(0).build(); + public ConditionsNested setNewConditionLike(int index,V1PersistentVolumeClaimCondition item) { + return new ConditionsNested(index, item); + } + + public A setToAccessModes(int index,String item) { + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + this.accessModes.set(index, item); + return (A) this; + } + + public A setToConditions(int index,V1PersistentVolumeClaimCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(accessModes == null) && !(accessModes.isEmpty())) { + sb.append("accessModes:"); + sb.append(accessModes); + sb.append(","); + } + if (!(allocatedResourceStatuses == null) && !(allocatedResourceStatuses.isEmpty())) { + sb.append("allocatedResourceStatuses:"); + sb.append(allocatedResourceStatuses); + sb.append(","); + } + if (!(allocatedResources == null) && !(allocatedResources.isEmpty())) { + sb.append("allocatedResources:"); + sb.append(allocatedResources); + sb.append(","); + } + if (!(capacity == null) && !(capacity.isEmpty())) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(currentVolumeAttributesClassName == null)) { + sb.append("currentVolumeAttributesClassName:"); + sb.append(currentVolumeAttributesClassName); + sb.append(","); + } + if (!(modifyVolumeStatus == null)) { + sb.append("modifyVolumeStatus:"); + sb.append(modifyVolumeStatus); + sb.append(","); + } + if (!(phase == null)) { + sb.append("phase:"); + sb.append(phase); + } + sb.append("}"); + return sb.toString(); + } + + public A withAccessModes(List accessModes) { + if (accessModes != null) { + this.accessModes = new ArrayList(); + for (String item : accessModes) { + this.addToAccessModes(item); + } + } else { + this.accessModes = null; + } + return (A) this; + } + + public A withAccessModes(String... accessModes) { + if (this.accessModes != null) { + this.accessModes.clear(); + _visitables.remove("accessModes"); + } + if (accessModes != null) { + for (String item : accessModes) { + this.addToAccessModes(item); + } + } + return (A) this; } - public V1PersistentVolumeClaimCondition buildLastCondition() { - return this.conditions.get(conditions.size() - 1).build(); + public A withAllocatedResourceStatuses(Map allocatedResourceStatuses) { + if (allocatedResourceStatuses == null) { + this.allocatedResourceStatuses = null; + } else { + this.allocatedResourceStatuses = new LinkedHashMap(allocatedResourceStatuses); + } + return (A) this; } - public V1PersistentVolumeClaimCondition buildMatchingCondition(Predicate predicate) { - for (V1PersistentVolumeClaimConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A withAllocatedResources(Map allocatedResources) { + if (allocatedResources == null) { + this.allocatedResources = null; + } else { + this.allocatedResources = new LinkedHashMap(allocatedResources); + } + return (A) this; } - public boolean hasMatchingCondition(Predicate predicate) { - for (V1PersistentVolumeClaimConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withCapacity(Map capacity) { + if (capacity == null) { + this.capacity = null; + } else { + this.capacity = new LinkedHashMap(capacity); + } + return (A) this; } public A withConditions(List conditions) { @@ -510,75 +688,11 @@ public A withConditions(V1PersistentVolumeClaimCondition... conditions) { return (A) this; } - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1PersistentVolumeClaimCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1PersistentVolumeClaimCondition item) { - return new ConditionsNested(index, item); - } - - public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); - } - return this.setNewConditionLike(index, this.buildCondition(index)); - } - - public ConditionsNested editFirstCondition() { - if (conditions.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); - } - return this.setNewConditionLike(0, this.buildCondition(0)); - } - - public ConditionsNested editLastCondition() { - int index = conditions.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); - } - return this.setNewConditionLike(index, this.buildCondition(index)); - } - - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i = 0;i < conditions.size();i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); - } - return this.setNewConditionLike(index, this.buildCondition(index)); - } - - public String getCurrentVolumeAttributesClassName() { - return this.currentVolumeAttributesClassName; - } - public A withCurrentVolumeAttributesClassName(String currentVolumeAttributesClassName) { this.currentVolumeAttributesClassName = currentVolumeAttributesClassName; return (A) this; } - public boolean hasCurrentVolumeAttributesClassName() { - return this.currentVolumeAttributesClassName != null; - } - - public V1ModifyVolumeStatus buildModifyVolumeStatus() { - return this.modifyVolumeStatus != null ? this.modifyVolumeStatus.build() : null; - } - public A withModifyVolumeStatus(V1ModifyVolumeStatus modifyVolumeStatus) { this._visitables.remove("modifyVolumeStatus"); if (modifyVolumeStatus != null) { @@ -591,10 +705,6 @@ public A withModifyVolumeStatus(V1ModifyVolumeStatus modifyVolumeStatus) { return (A) this; } - public boolean hasModifyVolumeStatus() { - return this.modifyVolumeStatus != null; - } - public ModifyVolumeStatusNested withNewModifyVolumeStatus() { return new ModifyVolumeStatusNested(null); } @@ -603,126 +713,20 @@ public ModifyVolumeStatusNested withNewModifyVolumeStatusLike(V1ModifyVolumeS return new ModifyVolumeStatusNested(item); } - public ModifyVolumeStatusNested editModifyVolumeStatus() { - return this.withNewModifyVolumeStatusLike(Optional.ofNullable(this.buildModifyVolumeStatus()).orElse(null)); - } - - public ModifyVolumeStatusNested editOrNewModifyVolumeStatus() { - return this.withNewModifyVolumeStatusLike(Optional.ofNullable(this.buildModifyVolumeStatus()).orElse(new V1ModifyVolumeStatusBuilder().build())); - } - - public ModifyVolumeStatusNested editOrNewModifyVolumeStatusLike(V1ModifyVolumeStatus item) { - return this.withNewModifyVolumeStatusLike(Optional.ofNullable(this.buildModifyVolumeStatus()).orElse(item)); - } - - public String getPhase() { - return this.phase; - } - public A withPhase(String phase) { this.phase = phase; return (A) this; } + public class ConditionsNested extends V1PersistentVolumeClaimConditionFluent> implements Nested{ - public boolean hasPhase() { - return this.phase != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1PersistentVolumeClaimStatusFluent that = (V1PersistentVolumeClaimStatusFluent) o; - if (!(Objects.equals(accessModes, that.accessModes))) { - return false; - } - if (!(Objects.equals(allocatedResourceStatuses, that.allocatedResourceStatuses))) { - return false; - } - if (!(Objects.equals(allocatedResources, that.allocatedResources))) { - return false; - } - if (!(Objects.equals(capacity, that.capacity))) { - return false; - } - if (!(Objects.equals(conditions, that.conditions))) { - return false; - } - if (!(Objects.equals(currentVolumeAttributesClassName, that.currentVolumeAttributesClassName))) { - return false; - } - if (!(Objects.equals(modifyVolumeStatus, that.modifyVolumeStatus))) { - return false; - } - if (!(Objects.equals(phase, that.phase))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(accessModes, allocatedResourceStatuses, allocatedResources, capacity, conditions, currentVolumeAttributesClassName, modifyVolumeStatus, phase); - } + V1PersistentVolumeClaimConditionBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(accessModes == null) && !(accessModes.isEmpty())) { - sb.append("accessModes:"); - sb.append(accessModes); - sb.append(","); - } - if (!(allocatedResourceStatuses == null) && !(allocatedResourceStatuses.isEmpty())) { - sb.append("allocatedResourceStatuses:"); - sb.append(allocatedResourceStatuses); - sb.append(","); - } - if (!(allocatedResources == null) && !(allocatedResources.isEmpty())) { - sb.append("allocatedResources:"); - sb.append(allocatedResources); - sb.append(","); - } - if (!(capacity == null) && !(capacity.isEmpty())) { - sb.append("capacity:"); - sb.append(capacity); - sb.append(","); - } - if (!(conditions == null) && !(conditions.isEmpty())) { - sb.append("conditions:"); - sb.append(conditions); - sb.append(","); - } - if (!(currentVolumeAttributesClassName == null)) { - sb.append("currentVolumeAttributesClassName:"); - sb.append(currentVolumeAttributesClassName); - sb.append(","); - } - if (!(modifyVolumeStatus == null)) { - sb.append("modifyVolumeStatus:"); - sb.append(modifyVolumeStatus); - sb.append(","); - } - if (!(phase == null)) { - sb.append("phase:"); - sb.append(phase); - } - sb.append("}"); - return sb.toString(); - } - public class ConditionsNested extends V1PersistentVolumeClaimConditionFluent> implements Nested{ ConditionsNested(int index,V1PersistentVolumeClaimCondition item) { this.index = index; this.builder = new V1PersistentVolumeClaimConditionBuilder(this, item); } - V1PersistentVolumeClaimConditionBuilder builder; - int index; - + public N and() { return (N) V1PersistentVolumeClaimStatusFluent.this.setToConditions(index, builder.build()); } @@ -731,14 +735,15 @@ public N endCondition() { return and(); } - } public class ModifyVolumeStatusNested extends V1ModifyVolumeStatusFluent> implements Nested{ + + V1ModifyVolumeStatusBuilder builder; + ModifyVolumeStatusNested(V1ModifyVolumeStatus item) { this.builder = new V1ModifyVolumeStatusBuilder(this, item); } - V1ModifyVolumeStatusBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimStatusFluent.this.withModifyVolumeStatus(builder.build()); } @@ -747,7 +752,5 @@ public N endModifyVolumeStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java index fa28095a77..0fe6c2ee00 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PersistentVolumeClaimTemplateBuilder extends V1PersistentVolumeClaimTemplateFluent implements VisitableBuilder{ + + V1PersistentVolumeClaimTemplateFluent fluent; + public V1PersistentVolumeClaimTemplateBuilder() { this(new V1PersistentVolumeClaimTemplate()); } @@ -11,17 +14,16 @@ public V1PersistentVolumeClaimTemplateBuilder(V1PersistentVolumeClaimTemplateFlu this(fluent, new V1PersistentVolumeClaimTemplate()); } - public V1PersistentVolumeClaimTemplateBuilder(V1PersistentVolumeClaimTemplateFluent fluent,V1PersistentVolumeClaimTemplate instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeClaimTemplateBuilder(V1PersistentVolumeClaimTemplate instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeClaimTemplateFluent fluent; + public V1PersistentVolumeClaimTemplateBuilder(V1PersistentVolumeClaimTemplateFluent fluent,V1PersistentVolumeClaimTemplate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeClaimTemplate build() { V1PersistentVolumeClaimTemplate buildable = new V1PersistentVolumeClaimTemplate(); buildable.setMetadata(fluent.buildMetadata()); @@ -29,5 +31,4 @@ public V1PersistentVolumeClaimTemplate build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java index d9c61b5402..5c3d206a9e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java @@ -1,27 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1PersistentVolumeClaimTemplateFluent> extends BaseFluent{ + + private V1ObjectMetaBuilder metadata; + private V1PersistentVolumeClaimSpecBuilder spec; + public V1PersistentVolumeClaimTemplateFluent() { } public V1PersistentVolumeClaimTemplateFluent(V1PersistentVolumeClaimTemplate instance) { this.copyInstance(instance); } - private V1ObjectMetaBuilder metadata; - private V1PersistentVolumeClaimSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1PersistentVolumeClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1PersistentVolumeClaimTemplate instance) { instance = instance != null ? instance : new V1PersistentVolumeClaimTemplate(); @@ -31,34 +41,6 @@ protected void copyInstance(V1PersistentVolumeClaimTemplate instance) { } } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -71,38 +53,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1PersistentVolumeClaimSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1PersistentVolumeClaimSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1PersistentVolumeClaimSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1PersistentVolumeClaimSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PersistentVolumeClaimSpecBuilder().build())); } @@ -111,6 +61,10 @@ public SpecNested editOrNewSpecLike(V1PersistentVolumeClaimSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -131,6 +85,14 @@ public boolean equals(Object o) { return true; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(metadata, spec); } @@ -150,12 +112,54 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1PersistentVolumeClaimSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1PersistentVolumeClaimSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1PersistentVolumeClaimSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimTemplateFluent.this.withMetadata(builder.build()); } @@ -164,14 +168,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1PersistentVolumeClaimSpecFluent> implements Nested{ + + V1PersistentVolumeClaimSpecBuilder builder; + SpecNested(V1PersistentVolumeClaimSpec item) { this.builder = new V1PersistentVolumeClaimSpecBuilder(this, item); } - V1PersistentVolumeClaimSpecBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimTemplateFluent.this.withSpec(builder.build()); } @@ -180,7 +185,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java index 855308dd47..ba403b3255 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PersistentVolumeClaimVolumeSourceBuilder extends V1PersistentVolumeClaimVolumeSourceFluent implements VisitableBuilder{ + + V1PersistentVolumeClaimVolumeSourceFluent fluent; + public V1PersistentVolumeClaimVolumeSourceBuilder() { this(new V1PersistentVolumeClaimVolumeSource()); } @@ -11,17 +14,16 @@ public V1PersistentVolumeClaimVolumeSourceBuilder(V1PersistentVolumeClaimVolumeS this(fluent, new V1PersistentVolumeClaimVolumeSource()); } - public V1PersistentVolumeClaimVolumeSourceBuilder(V1PersistentVolumeClaimVolumeSourceFluent fluent,V1PersistentVolumeClaimVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeClaimVolumeSourceBuilder(V1PersistentVolumeClaimVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeClaimVolumeSourceFluent fluent; + public V1PersistentVolumeClaimVolumeSourceBuilder(V1PersistentVolumeClaimVolumeSourceFluent fluent,V1PersistentVolumeClaimVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeClaimVolumeSource build() { V1PersistentVolumeClaimVolumeSource buildable = new V1PersistentVolumeClaimVolumeSource(); buildable.setClaimName(fluent.getClaimName()); @@ -29,5 +31,4 @@ public V1PersistentVolumeClaimVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java index 9041c8b663..01fcccfbbb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1PersistentVolumeClaimVolumeSourceFluent> extends BaseFluent{ + + private String claimName; + private Boolean readOnly; + public V1PersistentVolumeClaimVolumeSourceFluent() { } public V1PersistentVolumeClaimVolumeSourceFluent(V1PersistentVolumeClaimVolumeSource instance) { this.copyInstance(instance); } - private String claimName; - private Boolean readOnly; - + protected void copyInstance(V1PersistentVolumeClaimVolumeSource instance) { instance = instance != null ? instance : new V1PersistentVolumeClaimVolumeSource(); if (instance != null) { @@ -30,32 +32,6 @@ protected void copyInstance(V1PersistentVolumeClaimVolumeSource instance) { } } - public String getClaimName() { - return this.claimName; - } - - public A withClaimName(String claimName) { - this.claimName = claimName; - return (A) this; - } - - public boolean hasClaimName() { - return this.claimName != null; - } - - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -76,6 +52,22 @@ public boolean equals(Object o) { return true; } + public String getClaimName() { + return this.claimName; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public boolean hasClaimName() { + return this.claimName != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + public int hashCode() { return Objects.hash(claimName, readOnly); } @@ -96,9 +88,18 @@ public String toString() { return sb.toString(); } + public A withClaimName(String claimName) { + this.claimName = claimName; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java index d2aa9c5f95..bd6e6b13da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1PersistentVolumeFluent> extends BaseFluent{ - public V1PersistentVolumeFluent() { - } - - public V1PersistentVolumeFluent(V1PersistentVolume instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1PersistentVolumeSpecBuilder spec; private V1PersistentVolumeStatusBuilder status; - - protected void copyInstance(V1PersistentVolume instance) { - instance = instance != null ? instance : new V1PersistentVolume(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1PersistentVolumeFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1PersistentVolumeFluent(V1PersistentVolume instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1PersistentVolumeSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1PersistentVolumeStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1PersistentVolume instance) { + instance = instance != null ? instance : new V1PersistentVolume(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1PersistentVolumeSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1PersistentVolumeSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1PersistentVolumeSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1PersistentVolumeSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PersistentVolumeSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1PersistentVolumeSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1PersistentVolumeStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1PersistentVolumeStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1PersistentVolumeStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PersistentVolumeStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1PersistentVolumeStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1PersistentVolumeStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PersistentVolumeStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1PersistentVolumeStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1PersistentVolumeSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1PersistentVolumeStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1PersistentVolumeSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1PersistentVolumeSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1PersistentVolumeStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1PersistentVolumeStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1PersistentVolumeFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1PersistentVolumeSpecFluent> implements Nested{ + + V1PersistentVolumeSpecBuilder builder; + SpecNested(V1PersistentVolumeSpec item) { this.builder = new V1PersistentVolumeSpecBuilder(this, item); } - V1PersistentVolumeSpecBuilder builder; - + public N and() { return (N) V1PersistentVolumeFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1PersistentVolumeStatusFluent> implements Nested{ + + V1PersistentVolumeStatusBuilder builder; + StatusNested(V1PersistentVolumeStatus item) { this.builder = new V1PersistentVolumeStatusBuilder(this, item); } - V1PersistentVolumeStatusBuilder builder; - + public N and() { return (N) V1PersistentVolumeFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java index 5659d65355..eb2cc7bace 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PersistentVolumeListBuilder extends V1PersistentVolumeListFluent implements VisitableBuilder{ + + V1PersistentVolumeListFluent fluent; + public V1PersistentVolumeListBuilder() { this(new V1PersistentVolumeList()); } @@ -11,17 +14,16 @@ public V1PersistentVolumeListBuilder(V1PersistentVolumeListFluent fluent) { this(fluent, new V1PersistentVolumeList()); } - public V1PersistentVolumeListBuilder(V1PersistentVolumeListFluent fluent,V1PersistentVolumeList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeListBuilder(V1PersistentVolumeList instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeListFluent fluent; + public V1PersistentVolumeListBuilder(V1PersistentVolumeListFluent fluent,V1PersistentVolumeList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeList build() { V1PersistentVolumeList buildable = new V1PersistentVolumeList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1PersistentVolumeList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java index 530023e9e9..18aa8d4a67 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PersistentVolumeListFluent> extends BaseFluent{ - public V1PersistentVolumeListFluent() { - } - - public V1PersistentVolumeListFluent(V1PersistentVolumeList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1PersistentVolumeList instance) { - instance = instance != null ? instance : new V1PersistentVolumeList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1PersistentVolumeListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1PersistentVolumeListFluent(V1PersistentVolumeList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1PersistentVolume item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1PersistentVolume item : items) { + V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1PersistentVolume item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1PersistentVolume item) { + return new ItemsNested(-1, item); } public A addToItems(V1PersistentVolume... items) { @@ -96,68 +65,31 @@ public A addToItems(V1PersistentVolume... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1PersistentVolume item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1PersistentVolume item : items) { - V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); + V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1PersistentVolume... items) { - if (this.items == null) { - return (A) this; - } - for (V1PersistentVolume item : items) { - V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1PersistentVolume item : items) { - V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1PersistentVolumeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1PersistentVolume buildFirstItem() { + return this.items.get(0).build(); } public V1PersistentVolume buildItem(int index) { return this.items.get(index).build(); } - public V1PersistentVolume buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1PersistentVolume buildLastItem() { @@ -173,73 +105,34 @@ public V1PersistentVolume buildMatchingItem(Predicate return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1PersistentVolumeBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1PersistentVolume item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1PersistentVolumeList instance) { + instance = instance != null ? instance : new V1PersistentVolumeList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1PersistentVolume... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1PersistentVolume item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1PersistentVolume item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1PersistentVolume item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate pred return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1PersistentVolumeBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1PersistentVolume item : items) { + V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1PersistentVolume... items) { + if (this.items == null) { + return (A) this; + } + for (V1PersistentVolume item : items) { + V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1PersistentVolumeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1PersistentVolume item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1PersistentVolume item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1PersistentVolume item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1PersistentVolume... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1PersistentVolume item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1PersistentVolumeFluent> implements Nested{ + + V1PersistentVolumeBuilder builder; + int index; + ItemsNested(int index,V1PersistentVolume item) { this.index = index; this.builder = new V1PersistentVolumeBuilder(this, item); } - V1PersistentVolumeBuilder builder; - int index; - + public N and() { return (N) V1PersistentVolumeListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1PersistentVolumeListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java index 16a2f73fa0..3713d205e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PersistentVolumeSpecBuilder extends V1PersistentVolumeSpecFluent implements VisitableBuilder{ + + V1PersistentVolumeSpecFluent fluent; + public V1PersistentVolumeSpecBuilder() { this(new V1PersistentVolumeSpec()); } @@ -11,17 +14,16 @@ public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpecFluent fluent) { this(fluent, new V1PersistentVolumeSpec()); } - public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpecFluent fluent,V1PersistentVolumeSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeSpecFluent fluent; + public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpecFluent fluent,V1PersistentVolumeSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeSpec build() { V1PersistentVolumeSpec buildable = new V1PersistentVolumeSpec(); buildable.setAccessModes(fluent.getAccessModes()); @@ -58,5 +60,4 @@ public V1PersistentVolumeSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java index 5aed6c54ba..8f8cc03bdc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.util.ArrayList; -import java.lang.String; +import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Object; -import java.util.Map; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.LinkedHashMap; -import java.util.function.Predicate; import java.util.List; -import java.util.Optional; +import java.util.Map; import java.util.Objects; -import java.util.Collection; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import io.kubernetes.client.custom.Quantity; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PersistentVolumeSpecFluent> extends BaseFluent{ - public V1PersistentVolumeSpecFluent() { - } - - public V1PersistentVolumeSpecFluent(V1PersistentVolumeSpec instance) { - this.copyInstance(instance); - } + private List accessModes; private V1AWSElasticBlockStoreVolumeSourceBuilder awsElasticBlockStore; private V1AzureDiskVolumeSourceBuilder azureDisk; @@ -58,57 +53,31 @@ public V1PersistentVolumeSpecFluent(V1PersistentVolumeSpec instance) { private String volumeAttributesClassName; private String volumeMode; private V1VsphereVirtualDiskVolumeSourceBuilder vsphereVolume; - - protected void copyInstance(V1PersistentVolumeSpec instance) { - instance = instance != null ? instance : new V1PersistentVolumeSpec(); - if (instance != null) { - this.withAccessModes(instance.getAccessModes()); - this.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); - this.withAzureDisk(instance.getAzureDisk()); - this.withAzureFile(instance.getAzureFile()); - this.withCapacity(instance.getCapacity()); - this.withCephfs(instance.getCephfs()); - this.withCinder(instance.getCinder()); - this.withClaimRef(instance.getClaimRef()); - this.withCsi(instance.getCsi()); - this.withFc(instance.getFc()); - this.withFlexVolume(instance.getFlexVolume()); - this.withFlocker(instance.getFlocker()); - this.withGcePersistentDisk(instance.getGcePersistentDisk()); - this.withGlusterfs(instance.getGlusterfs()); - this.withHostPath(instance.getHostPath()); - this.withIscsi(instance.getIscsi()); - this.withLocal(instance.getLocal()); - this.withMountOptions(instance.getMountOptions()); - this.withNfs(instance.getNfs()); - this.withNodeAffinity(instance.getNodeAffinity()); - this.withPersistentVolumeReclaimPolicy(instance.getPersistentVolumeReclaimPolicy()); - this.withPhotonPersistentDisk(instance.getPhotonPersistentDisk()); - this.withPortworxVolume(instance.getPortworxVolume()); - this.withQuobyte(instance.getQuobyte()); - this.withRbd(instance.getRbd()); - this.withScaleIO(instance.getScaleIO()); - this.withStorageClassName(instance.getStorageClassName()); - this.withStorageos(instance.getStorageos()); - this.withVolumeAttributesClassName(instance.getVolumeAttributesClassName()); - this.withVolumeMode(instance.getVolumeMode()); - this.withVsphereVolume(instance.getVsphereVolume()); - } + + public V1PersistentVolumeSpecFluent() { } - public A addToAccessModes(int index,String item) { + public V1PersistentVolumeSpecFluent(V1PersistentVolumeSpec instance) { + this.copyInstance(instance); + } + + public A addAllToAccessModes(Collection items) { if (this.accessModes == null) { this.accessModes = new ArrayList(); } - this.accessModes.add(index, item); + for (String item : items) { + this.accessModes.add(item); + } return (A) this; } - public A setToAccessModes(int index,String item) { - if (this.accessModes == null) { - this.accessModes = new ArrayList(); + public A addAllToMountOptions(Collection items) { + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } + for (String item : items) { + this.mountOptions.add(item); } - this.accessModes.set(index, item); return (A) this; } @@ -122,350 +91,283 @@ public A addToAccessModes(String... items) { return (A) this; } - public A addAllToAccessModes(Collection items) { + public A addToAccessModes(int index,String item) { if (this.accessModes == null) { this.accessModes = new ArrayList(); } - for (String item : items) { - this.accessModes.add(item); + this.accessModes.add(index, item); + return (A) this; + } + + public A addToCapacity(Map map) { + if (this.capacity == null && map != null) { + this.capacity = new LinkedHashMap(); + } + if (map != null) { + this.capacity.putAll(map); } return (A) this; } - public A removeFromAccessModes(String... items) { - if (this.accessModes == null) { - return (A) this; + public A addToCapacity(String key,Quantity value) { + if (this.capacity == null && key != null && value != null) { + this.capacity = new LinkedHashMap(); } - for (String item : items) { - this.accessModes.remove(item); + if (key != null && value != null) { + this.capacity.put(key, value); } return (A) this; } - public A removeAllFromAccessModes(Collection items) { - if (this.accessModes == null) { - return (A) this; + public A addToMountOptions(String... items) { + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); } for (String item : items) { - this.accessModes.remove(item); + this.mountOptions.add(item); } return (A) this; } - public List getAccessModes() { - return this.accessModes; + public A addToMountOptions(int index,String item) { + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } + this.mountOptions.add(index, item); + return (A) this; } - public String getAccessMode(int index) { - return this.accessModes.get(index); + public V1AWSElasticBlockStoreVolumeSource buildAwsElasticBlockStore() { + return this.awsElasticBlockStore != null ? this.awsElasticBlockStore.build() : null; } - public String getFirstAccessMode() { - return this.accessModes.get(0); + public V1AzureDiskVolumeSource buildAzureDisk() { + return this.azureDisk != null ? this.azureDisk.build() : null; } - public String getLastAccessMode() { - return this.accessModes.get(accessModes.size() - 1); + public V1AzureFilePersistentVolumeSource buildAzureFile() { + return this.azureFile != null ? this.azureFile.build() : null; } - public String getMatchingAccessMode(Predicate predicate) { - for (String item : accessModes) { - if (predicate.test(item)) { - return item; - } - } - return null; + public V1CephFSPersistentVolumeSource buildCephfs() { + return this.cephfs != null ? this.cephfs.build() : null; } - public boolean hasMatchingAccessMode(Predicate predicate) { - for (String item : accessModes) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1CinderPersistentVolumeSource buildCinder() { + return this.cinder != null ? this.cinder.build() : null; } - public A withAccessModes(List accessModes) { - if (accessModes != null) { - this.accessModes = new ArrayList(); - for (String item : accessModes) { - this.addToAccessModes(item); - } - } else { - this.accessModes = null; - } - return (A) this; + public V1ObjectReference buildClaimRef() { + return this.claimRef != null ? this.claimRef.build() : null; } - public A withAccessModes(String... accessModes) { - if (this.accessModes != null) { - this.accessModes.clear(); - _visitables.remove("accessModes"); - } - if (accessModes != null) { - for (String item : accessModes) { - this.addToAccessModes(item); - } - } - return (A) this; + public V1CSIPersistentVolumeSource buildCsi() { + return this.csi != null ? this.csi.build() : null; } - public boolean hasAccessModes() { - return this.accessModes != null && !(this.accessModes.isEmpty()); + public V1FCVolumeSource buildFc() { + return this.fc != null ? this.fc.build() : null; } - public V1AWSElasticBlockStoreVolumeSource buildAwsElasticBlockStore() { - return this.awsElasticBlockStore != null ? this.awsElasticBlockStore.build() : null; + public V1FlexPersistentVolumeSource buildFlexVolume() { + return this.flexVolume != null ? this.flexVolume.build() : null; } - public A withAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { - this._visitables.remove("awsElasticBlockStore"); - if (awsElasticBlockStore != null) { - this.awsElasticBlockStore = new V1AWSElasticBlockStoreVolumeSourceBuilder(awsElasticBlockStore); - this._visitables.get("awsElasticBlockStore").add(this.awsElasticBlockStore); - } else { - this.awsElasticBlockStore = null; - this._visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); - } - return (A) this; + public V1FlockerVolumeSource buildFlocker() { + return this.flocker != null ? this.flocker.build() : null; } - public boolean hasAwsElasticBlockStore() { - return this.awsElasticBlockStore != null; + public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk() { + return this.gcePersistentDisk != null ? this.gcePersistentDisk.build() : null; } - public AwsElasticBlockStoreNested withNewAwsElasticBlockStore() { - return new AwsElasticBlockStoreNested(null); + public V1GlusterfsPersistentVolumeSource buildGlusterfs() { + return this.glusterfs != null ? this.glusterfs.build() : null; } - public AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { - return new AwsElasticBlockStoreNested(item); + public V1HostPathVolumeSource buildHostPath() { + return this.hostPath != null ? this.hostPath.build() : null; } - public AwsElasticBlockStoreNested editAwsElasticBlockStore() { - return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(null)); + public V1ISCSIPersistentVolumeSource buildIscsi() { + return this.iscsi != null ? this.iscsi.build() : null; } - public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore() { - return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(new V1AWSElasticBlockStoreVolumeSourceBuilder().build())); + public V1LocalVolumeSource buildLocal() { + return this.local != null ? this.local.build() : null; } - public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { - return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(item)); + public V1NFSVolumeSource buildNfs() { + return this.nfs != null ? this.nfs.build() : null; } - public V1AzureDiskVolumeSource buildAzureDisk() { - return this.azureDisk != null ? this.azureDisk.build() : null; + public V1VolumeNodeAffinity buildNodeAffinity() { + return this.nodeAffinity != null ? this.nodeAffinity.build() : null; } - public A withAzureDisk(V1AzureDiskVolumeSource azureDisk) { - this._visitables.remove("azureDisk"); - if (azureDisk != null) { - this.azureDisk = new V1AzureDiskVolumeSourceBuilder(azureDisk); - this._visitables.get("azureDisk").add(this.azureDisk); - } else { - this.azureDisk = null; - this._visitables.get("azureDisk").remove(this.azureDisk); - } - return (A) this; + public V1PhotonPersistentDiskVolumeSource buildPhotonPersistentDisk() { + return this.photonPersistentDisk != null ? this.photonPersistentDisk.build() : null; } - public boolean hasAzureDisk() { - return this.azureDisk != null; + public V1PortworxVolumeSource buildPortworxVolume() { + return this.portworxVolume != null ? this.portworxVolume.build() : null; } - public AzureDiskNested withNewAzureDisk() { - return new AzureDiskNested(null); + public V1QuobyteVolumeSource buildQuobyte() { + return this.quobyte != null ? this.quobyte.build() : null; } - public AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item) { - return new AzureDiskNested(item); + public V1RBDPersistentVolumeSource buildRbd() { + return this.rbd != null ? this.rbd.build() : null; } - public AzureDiskNested editAzureDisk() { - return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(null)); + public V1ScaleIOPersistentVolumeSource buildScaleIO() { + return this.scaleIO != null ? this.scaleIO.build() : null; } - public AzureDiskNested editOrNewAzureDisk() { - return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(new V1AzureDiskVolumeSourceBuilder().build())); - } - - public AzureDiskNested editOrNewAzureDiskLike(V1AzureDiskVolumeSource item) { - return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(item)); + public V1StorageOSPersistentVolumeSource buildStorageos() { + return this.storageos != null ? this.storageos.build() : null; } - public V1AzureFilePersistentVolumeSource buildAzureFile() { - return this.azureFile != null ? this.azureFile.build() : null; + public V1VsphereVirtualDiskVolumeSource buildVsphereVolume() { + return this.vsphereVolume != null ? this.vsphereVolume.build() : null; } - public A withAzureFile(V1AzureFilePersistentVolumeSource azureFile) { - this._visitables.remove("azureFile"); - if (azureFile != null) { - this.azureFile = new V1AzureFilePersistentVolumeSourceBuilder(azureFile); - this._visitables.get("azureFile").add(this.azureFile); - } else { - this.azureFile = null; - this._visitables.get("azureFile").remove(this.azureFile); + protected void copyInstance(V1PersistentVolumeSpec instance) { + instance = instance != null ? instance : new V1PersistentVolumeSpec(); + if (instance != null) { + this.withAccessModes(instance.getAccessModes()); + this.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); + this.withAzureDisk(instance.getAzureDisk()); + this.withAzureFile(instance.getAzureFile()); + this.withCapacity(instance.getCapacity()); + this.withCephfs(instance.getCephfs()); + this.withCinder(instance.getCinder()); + this.withClaimRef(instance.getClaimRef()); + this.withCsi(instance.getCsi()); + this.withFc(instance.getFc()); + this.withFlexVolume(instance.getFlexVolume()); + this.withFlocker(instance.getFlocker()); + this.withGcePersistentDisk(instance.getGcePersistentDisk()); + this.withGlusterfs(instance.getGlusterfs()); + this.withHostPath(instance.getHostPath()); + this.withIscsi(instance.getIscsi()); + this.withLocal(instance.getLocal()); + this.withMountOptions(instance.getMountOptions()); + this.withNfs(instance.getNfs()); + this.withNodeAffinity(instance.getNodeAffinity()); + this.withPersistentVolumeReclaimPolicy(instance.getPersistentVolumeReclaimPolicy()); + this.withPhotonPersistentDisk(instance.getPhotonPersistentDisk()); + this.withPortworxVolume(instance.getPortworxVolume()); + this.withQuobyte(instance.getQuobyte()); + this.withRbd(instance.getRbd()); + this.withScaleIO(instance.getScaleIO()); + this.withStorageClassName(instance.getStorageClassName()); + this.withStorageos(instance.getStorageos()); + this.withVolumeAttributesClassName(instance.getVolumeAttributesClassName()); + this.withVolumeMode(instance.getVolumeMode()); + this.withVsphereVolume(instance.getVsphereVolume()); } - return (A) this; - } - - public boolean hasAzureFile() { - return this.azureFile != null; } - public AzureFileNested withNewAzureFile() { - return new AzureFileNested(null); + public AwsElasticBlockStoreNested editAwsElasticBlockStore() { + return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(null)); } - public AzureFileNested withNewAzureFileLike(V1AzureFilePersistentVolumeSource item) { - return new AzureFileNested(item); + public AzureDiskNested editAzureDisk() { + return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(null)); } public AzureFileNested editAzureFile() { return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(null)); } - public AzureFileNested editOrNewAzureFile() { - return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(new V1AzureFilePersistentVolumeSourceBuilder().build())); - } - - public AzureFileNested editOrNewAzureFileLike(V1AzureFilePersistentVolumeSource item) { - return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(item)); + public CephfsNested editCephfs() { + return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(null)); } - public A addToCapacity(String key,Quantity value) { - if (this.capacity == null && key != null && value != null) { - this.capacity = new LinkedHashMap(); - } - if (key != null && value != null) { - this.capacity.put(key, value); - } - return (A) this; + public CinderNested editCinder() { + return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(null)); } - public A addToCapacity(Map map) { - if (this.capacity == null && map != null) { - this.capacity = new LinkedHashMap(); - } - if (map != null) { - this.capacity.putAll(map); - } - return (A) this; + public ClaimRefNested editClaimRef() { + return this.withNewClaimRefLike(Optional.ofNullable(this.buildClaimRef()).orElse(null)); } - public A removeFromCapacity(String key) { - if (this.capacity == null) { - return (A) this; - } - if (key != null && this.capacity != null) { - this.capacity.remove(key); - } - return (A) this; + public CsiNested editCsi() { + return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(null)); } - public A removeFromCapacity(Map map) { - if (this.capacity == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.capacity != null) { - this.capacity.remove(key); - } - } - } - return (A) this; + public FcNested editFc() { + return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(null)); } - public Map getCapacity() { - return this.capacity; + public FlexVolumeNested editFlexVolume() { + return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(null)); } - public A withCapacity(Map capacity) { - if (capacity == null) { - this.capacity = null; - } else { - this.capacity = new LinkedHashMap(capacity); - } - return (A) this; + public FlockerNested editFlocker() { + return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(null)); } - public boolean hasCapacity() { - return this.capacity != null; + public GcePersistentDiskNested editGcePersistentDisk() { + return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(null)); } - public V1CephFSPersistentVolumeSource buildCephfs() { - return this.cephfs != null ? this.cephfs.build() : null; + public GlusterfsNested editGlusterfs() { + return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(null)); } - public A withCephfs(V1CephFSPersistentVolumeSource cephfs) { - this._visitables.remove("cephfs"); - if (cephfs != null) { - this.cephfs = new V1CephFSPersistentVolumeSourceBuilder(cephfs); - this._visitables.get("cephfs").add(this.cephfs); - } else { - this.cephfs = null; - this._visitables.get("cephfs").remove(this.cephfs); - } - return (A) this; + public HostPathNested editHostPath() { + return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(null)); } - public boolean hasCephfs() { - return this.cephfs != null; + public IscsiNested editIscsi() { + return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(null)); } - public CephfsNested withNewCephfs() { - return new CephfsNested(null); + public LocalNested editLocal() { + return this.withNewLocalLike(Optional.ofNullable(this.buildLocal()).orElse(null)); } - public CephfsNested withNewCephfsLike(V1CephFSPersistentVolumeSource item) { - return new CephfsNested(item); + public NfsNested editNfs() { + return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(null)); } - public CephfsNested editCephfs() { - return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(null)); + public NodeAffinityNested editNodeAffinity() { + return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(null)); } - public CephfsNested editOrNewCephfs() { - return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(new V1CephFSPersistentVolumeSourceBuilder().build())); + public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore() { + return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(new V1AWSElasticBlockStoreVolumeSourceBuilder().build())); } - public CephfsNested editOrNewCephfsLike(V1CephFSPersistentVolumeSource item) { - return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(item)); + public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { + return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(item)); } - public V1CinderPersistentVolumeSource buildCinder() { - return this.cinder != null ? this.cinder.build() : null; + public AzureDiskNested editOrNewAzureDisk() { + return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(new V1AzureDiskVolumeSourceBuilder().build())); } - public A withCinder(V1CinderPersistentVolumeSource cinder) { - this._visitables.remove("cinder"); - if (cinder != null) { - this.cinder = new V1CinderPersistentVolumeSourceBuilder(cinder); - this._visitables.get("cinder").add(this.cinder); - } else { - this.cinder = null; - this._visitables.get("cinder").remove(this.cinder); - } - return (A) this; + public AzureDiskNested editOrNewAzureDiskLike(V1AzureDiskVolumeSource item) { + return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(item)); } - public boolean hasCinder() { - return this.cinder != null; + public AzureFileNested editOrNewAzureFile() { + return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(new V1AzureFilePersistentVolumeSourceBuilder().build())); } - public CinderNested withNewCinder() { - return new CinderNested(null); + public AzureFileNested editOrNewAzureFileLike(V1AzureFilePersistentVolumeSource item) { + return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(item)); } - public CinderNested withNewCinderLike(V1CinderPersistentVolumeSource item) { - return new CinderNested(item); + public CephfsNested editOrNewCephfs() { + return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(new V1CephFSPersistentVolumeSourceBuilder().build())); } - public CinderNested editCinder() { - return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(null)); + public CephfsNested editOrNewCephfsLike(V1CephFSPersistentVolumeSource item) { + return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(item)); } public CinderNested editOrNewCinder() { @@ -476,485 +378,438 @@ public CinderNested editOrNewCinderLike(V1CinderPersistentVolumeSource item) return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(item)); } - public V1ObjectReference buildClaimRef() { - return this.claimRef != null ? this.claimRef.build() : null; + public ClaimRefNested editOrNewClaimRef() { + return this.withNewClaimRefLike(Optional.ofNullable(this.buildClaimRef()).orElse(new V1ObjectReferenceBuilder().build())); } - public A withClaimRef(V1ObjectReference claimRef) { - this._visitables.remove("claimRef"); - if (claimRef != null) { - this.claimRef = new V1ObjectReferenceBuilder(claimRef); - this._visitables.get("claimRef").add(this.claimRef); - } else { - this.claimRef = null; - this._visitables.get("claimRef").remove(this.claimRef); - } - return (A) this; + public ClaimRefNested editOrNewClaimRefLike(V1ObjectReference item) { + return this.withNewClaimRefLike(Optional.ofNullable(this.buildClaimRef()).orElse(item)); } - public boolean hasClaimRef() { - return this.claimRef != null; + public CsiNested editOrNewCsi() { + return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(new V1CSIPersistentVolumeSourceBuilder().build())); } - public ClaimRefNested withNewClaimRef() { - return new ClaimRefNested(null); + public CsiNested editOrNewCsiLike(V1CSIPersistentVolumeSource item) { + return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(item)); } - public ClaimRefNested withNewClaimRefLike(V1ObjectReference item) { - return new ClaimRefNested(item); + public FcNested editOrNewFc() { + return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(new V1FCVolumeSourceBuilder().build())); } - public ClaimRefNested editClaimRef() { - return this.withNewClaimRefLike(Optional.ofNullable(this.buildClaimRef()).orElse(null)); + public FcNested editOrNewFcLike(V1FCVolumeSource item) { + return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(item)); } - public ClaimRefNested editOrNewClaimRef() { - return this.withNewClaimRefLike(Optional.ofNullable(this.buildClaimRef()).orElse(new V1ObjectReferenceBuilder().build())); + public FlexVolumeNested editOrNewFlexVolume() { + return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(new V1FlexPersistentVolumeSourceBuilder().build())); } - public ClaimRefNested editOrNewClaimRefLike(V1ObjectReference item) { - return this.withNewClaimRefLike(Optional.ofNullable(this.buildClaimRef()).orElse(item)); + public FlexVolumeNested editOrNewFlexVolumeLike(V1FlexPersistentVolumeSource item) { + return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(item)); } - public V1CSIPersistentVolumeSource buildCsi() { - return this.csi != null ? this.csi.build() : null; + public FlockerNested editOrNewFlocker() { + return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(new V1FlockerVolumeSourceBuilder().build())); } - public A withCsi(V1CSIPersistentVolumeSource csi) { - this._visitables.remove("csi"); - if (csi != null) { - this.csi = new V1CSIPersistentVolumeSourceBuilder(csi); - this._visitables.get("csi").add(this.csi); - } else { - this.csi = null; - this._visitables.get("csi").remove(this.csi); - } - return (A) this; - } - - public boolean hasCsi() { - return this.csi != null; - } - - public CsiNested withNewCsi() { - return new CsiNested(null); - } - - public CsiNested withNewCsiLike(V1CSIPersistentVolumeSource item) { - return new CsiNested(item); - } - - public CsiNested editCsi() { - return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(null)); + public FlockerNested editOrNewFlockerLike(V1FlockerVolumeSource item) { + return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(item)); } - public CsiNested editOrNewCsi() { - return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(new V1CSIPersistentVolumeSourceBuilder().build())); + public GcePersistentDiskNested editOrNewGcePersistentDisk() { + return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(new V1GCEPersistentDiskVolumeSourceBuilder().build())); } - public CsiNested editOrNewCsiLike(V1CSIPersistentVolumeSource item) { - return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(item)); + public GcePersistentDiskNested editOrNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { + return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(item)); } - public V1FCVolumeSource buildFc() { - return this.fc != null ? this.fc.build() : null; + public GlusterfsNested editOrNewGlusterfs() { + return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(new V1GlusterfsPersistentVolumeSourceBuilder().build())); } - public A withFc(V1FCVolumeSource fc) { - this._visitables.remove("fc"); - if (fc != null) { - this.fc = new V1FCVolumeSourceBuilder(fc); - this._visitables.get("fc").add(this.fc); - } else { - this.fc = null; - this._visitables.get("fc").remove(this.fc); - } - return (A) this; + public GlusterfsNested editOrNewGlusterfsLike(V1GlusterfsPersistentVolumeSource item) { + return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(item)); } - public boolean hasFc() { - return this.fc != null; + public HostPathNested editOrNewHostPath() { + return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(new V1HostPathVolumeSourceBuilder().build())); } - public FcNested withNewFc() { - return new FcNested(null); + public HostPathNested editOrNewHostPathLike(V1HostPathVolumeSource item) { + return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(item)); } - public FcNested withNewFcLike(V1FCVolumeSource item) { - return new FcNested(item); + public IscsiNested editOrNewIscsi() { + return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(new V1ISCSIPersistentVolumeSourceBuilder().build())); } - public FcNested editFc() { - return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(null)); + public IscsiNested editOrNewIscsiLike(V1ISCSIPersistentVolumeSource item) { + return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(item)); } - public FcNested editOrNewFc() { - return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(new V1FCVolumeSourceBuilder().build())); + public LocalNested editOrNewLocal() { + return this.withNewLocalLike(Optional.ofNullable(this.buildLocal()).orElse(new V1LocalVolumeSourceBuilder().build())); } - public FcNested editOrNewFcLike(V1FCVolumeSource item) { - return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(item)); + public LocalNested editOrNewLocalLike(V1LocalVolumeSource item) { + return this.withNewLocalLike(Optional.ofNullable(this.buildLocal()).orElse(item)); } - public V1FlexPersistentVolumeSource buildFlexVolume() { - return this.flexVolume != null ? this.flexVolume.build() : null; + public NfsNested editOrNewNfs() { + return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(new V1NFSVolumeSourceBuilder().build())); } - public A withFlexVolume(V1FlexPersistentVolumeSource flexVolume) { - this._visitables.remove("flexVolume"); - if (flexVolume != null) { - this.flexVolume = new V1FlexPersistentVolumeSourceBuilder(flexVolume); - this._visitables.get("flexVolume").add(this.flexVolume); - } else { - this.flexVolume = null; - this._visitables.get("flexVolume").remove(this.flexVolume); - } - return (A) this; + public NfsNested editOrNewNfsLike(V1NFSVolumeSource item) { + return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(item)); } - public boolean hasFlexVolume() { - return this.flexVolume != null; + public NodeAffinityNested editOrNewNodeAffinity() { + return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(new V1VolumeNodeAffinityBuilder().build())); } - public FlexVolumeNested withNewFlexVolume() { - return new FlexVolumeNested(null); + public NodeAffinityNested editOrNewNodeAffinityLike(V1VolumeNodeAffinity item) { + return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(item)); } - public FlexVolumeNested withNewFlexVolumeLike(V1FlexPersistentVolumeSource item) { - return new FlexVolumeNested(item); + public PhotonPersistentDiskNested editOrNewPhotonPersistentDisk() { + return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(new V1PhotonPersistentDiskVolumeSourceBuilder().build())); } - public FlexVolumeNested editFlexVolume() { - return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(null)); + public PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { + return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(item)); } - public FlexVolumeNested editOrNewFlexVolume() { - return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(new V1FlexPersistentVolumeSourceBuilder().build())); + public PortworxVolumeNested editOrNewPortworxVolume() { + return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(new V1PortworxVolumeSourceBuilder().build())); } - public FlexVolumeNested editOrNewFlexVolumeLike(V1FlexPersistentVolumeSource item) { - return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(item)); + public PortworxVolumeNested editOrNewPortworxVolumeLike(V1PortworxVolumeSource item) { + return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(item)); } - public V1FlockerVolumeSource buildFlocker() { - return this.flocker != null ? this.flocker.build() : null; + public QuobyteNested editOrNewQuobyte() { + return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(new V1QuobyteVolumeSourceBuilder().build())); } - public A withFlocker(V1FlockerVolumeSource flocker) { - this._visitables.remove("flocker"); - if (flocker != null) { - this.flocker = new V1FlockerVolumeSourceBuilder(flocker); - this._visitables.get("flocker").add(this.flocker); - } else { - this.flocker = null; - this._visitables.get("flocker").remove(this.flocker); - } - return (A) this; + public QuobyteNested editOrNewQuobyteLike(V1QuobyteVolumeSource item) { + return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(item)); } - public boolean hasFlocker() { - return this.flocker != null; + public RbdNested editOrNewRbd() { + return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(new V1RBDPersistentVolumeSourceBuilder().build())); } - public FlockerNested withNewFlocker() { - return new FlockerNested(null); + public RbdNested editOrNewRbdLike(V1RBDPersistentVolumeSource item) { + return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(item)); } - public FlockerNested withNewFlockerLike(V1FlockerVolumeSource item) { - return new FlockerNested(item); + public ScaleIONested editOrNewScaleIO() { + return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(new V1ScaleIOPersistentVolumeSourceBuilder().build())); } - public FlockerNested editFlocker() { - return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(null)); + public ScaleIONested editOrNewScaleIOLike(V1ScaleIOPersistentVolumeSource item) { + return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(item)); } - public FlockerNested editOrNewFlocker() { - return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(new V1FlockerVolumeSourceBuilder().build())); + public StorageosNested editOrNewStorageos() { + return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(new V1StorageOSPersistentVolumeSourceBuilder().build())); } - public FlockerNested editOrNewFlockerLike(V1FlockerVolumeSource item) { - return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(item)); + public StorageosNested editOrNewStorageosLike(V1StorageOSPersistentVolumeSource item) { + return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(item)); } - public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk() { - return this.gcePersistentDisk != null ? this.gcePersistentDisk.build() : null; + public VsphereVolumeNested editOrNewVsphereVolume() { + return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(new V1VsphereVirtualDiskVolumeSourceBuilder().build())); } - public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { - this._visitables.remove("gcePersistentDisk"); - if (gcePersistentDisk != null) { - this.gcePersistentDisk = new V1GCEPersistentDiskVolumeSourceBuilder(gcePersistentDisk); - this._visitables.get("gcePersistentDisk").add(this.gcePersistentDisk); - } else { - this.gcePersistentDisk = null; - this._visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); - } - return (A) this; + public VsphereVolumeNested editOrNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { + return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(item)); } - public boolean hasGcePersistentDisk() { - return this.gcePersistentDisk != null; + public PhotonPersistentDiskNested editPhotonPersistentDisk() { + return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(null)); } - public GcePersistentDiskNested withNewGcePersistentDisk() { - return new GcePersistentDiskNested(null); + public PortworxVolumeNested editPortworxVolume() { + return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(null)); } - public GcePersistentDiskNested withNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { - return new GcePersistentDiskNested(item); + public QuobyteNested editQuobyte() { + return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(null)); } - public GcePersistentDiskNested editGcePersistentDisk() { - return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(null)); + public RbdNested editRbd() { + return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(null)); } - public GcePersistentDiskNested editOrNewGcePersistentDisk() { - return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(new V1GCEPersistentDiskVolumeSourceBuilder().build())); + public ScaleIONested editScaleIO() { + return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(null)); } - public GcePersistentDiskNested editOrNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { - return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(item)); + public StorageosNested editStorageos() { + return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(null)); } - public V1GlusterfsPersistentVolumeSource buildGlusterfs() { - return this.glusterfs != null ? this.glusterfs.build() : null; + public VsphereVolumeNested editVsphereVolume() { + return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(null)); } - public A withGlusterfs(V1GlusterfsPersistentVolumeSource glusterfs) { - this._visitables.remove("glusterfs"); - if (glusterfs != null) { - this.glusterfs = new V1GlusterfsPersistentVolumeSourceBuilder(glusterfs); - this._visitables.get("glusterfs").add(this.glusterfs); - } else { - this.glusterfs = null; - this._visitables.get("glusterfs").remove(this.glusterfs); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; - } - - public boolean hasGlusterfs() { - return this.glusterfs != null; - } - - public GlusterfsNested withNewGlusterfs() { - return new GlusterfsNested(null); - } - - public GlusterfsNested withNewGlusterfsLike(V1GlusterfsPersistentVolumeSource item) { - return new GlusterfsNested(item); - } - - public GlusterfsNested editGlusterfs() { - return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(null)); - } - - public GlusterfsNested editOrNewGlusterfs() { - return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(new V1GlusterfsPersistentVolumeSourceBuilder().build())); - } - - public GlusterfsNested editOrNewGlusterfsLike(V1GlusterfsPersistentVolumeSource item) { - return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(item)); - } - - public V1HostPathVolumeSource buildHostPath() { - return this.hostPath != null ? this.hostPath.build() : null; - } - - public A withHostPath(V1HostPathVolumeSource hostPath) { - this._visitables.remove("hostPath"); - if (hostPath != null) { - this.hostPath = new V1HostPathVolumeSourceBuilder(hostPath); - this._visitables.get("hostPath").add(this.hostPath); - } else { - this.hostPath = null; - this._visitables.get("hostPath").remove(this.hostPath); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public boolean hasHostPath() { - return this.hostPath != null; - } - - public HostPathNested withNewHostPath() { - return new HostPathNested(null); + if (!(super.equals(o))) { + return false; + } + V1PersistentVolumeSpecFluent that = (V1PersistentVolumeSpecFluent) o; + if (!(Objects.equals(accessModes, that.accessModes))) { + return false; + } + if (!(Objects.equals(awsElasticBlockStore, that.awsElasticBlockStore))) { + return false; + } + if (!(Objects.equals(azureDisk, that.azureDisk))) { + return false; + } + if (!(Objects.equals(azureFile, that.azureFile))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(cephfs, that.cephfs))) { + return false; + } + if (!(Objects.equals(cinder, that.cinder))) { + return false; + } + if (!(Objects.equals(claimRef, that.claimRef))) { + return false; + } + if (!(Objects.equals(csi, that.csi))) { + return false; + } + if (!(Objects.equals(fc, that.fc))) { + return false; + } + if (!(Objects.equals(flexVolume, that.flexVolume))) { + return false; + } + if (!(Objects.equals(flocker, that.flocker))) { + return false; + } + if (!(Objects.equals(gcePersistentDisk, that.gcePersistentDisk))) { + return false; + } + if (!(Objects.equals(glusterfs, that.glusterfs))) { + return false; + } + if (!(Objects.equals(hostPath, that.hostPath))) { + return false; + } + if (!(Objects.equals(iscsi, that.iscsi))) { + return false; + } + if (!(Objects.equals(local, that.local))) { + return false; + } + if (!(Objects.equals(mountOptions, that.mountOptions))) { + return false; + } + if (!(Objects.equals(nfs, that.nfs))) { + return false; + } + if (!(Objects.equals(nodeAffinity, that.nodeAffinity))) { + return false; + } + if (!(Objects.equals(persistentVolumeReclaimPolicy, that.persistentVolumeReclaimPolicy))) { + return false; + } + if (!(Objects.equals(photonPersistentDisk, that.photonPersistentDisk))) { + return false; + } + if (!(Objects.equals(portworxVolume, that.portworxVolume))) { + return false; + } + if (!(Objects.equals(quobyte, that.quobyte))) { + return false; + } + if (!(Objects.equals(rbd, that.rbd))) { + return false; + } + if (!(Objects.equals(scaleIO, that.scaleIO))) { + return false; + } + if (!(Objects.equals(storageClassName, that.storageClassName))) { + return false; + } + if (!(Objects.equals(storageos, that.storageos))) { + return false; + } + if (!(Objects.equals(volumeAttributesClassName, that.volumeAttributesClassName))) { + return false; + } + if (!(Objects.equals(volumeMode, that.volumeMode))) { + return false; + } + if (!(Objects.equals(vsphereVolume, that.vsphereVolume))) { + return false; + } + return true; } - public HostPathNested withNewHostPathLike(V1HostPathVolumeSource item) { - return new HostPathNested(item); + public String getAccessMode(int index) { + return this.accessModes.get(index); } - public HostPathNested editHostPath() { - return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(null)); + public List getAccessModes() { + return this.accessModes; } - public HostPathNested editOrNewHostPath() { - return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(new V1HostPathVolumeSourceBuilder().build())); + public Map getCapacity() { + return this.capacity; } - public HostPathNested editOrNewHostPathLike(V1HostPathVolumeSource item) { - return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(item)); + public String getFirstAccessMode() { + return this.accessModes.get(0); } - public V1ISCSIPersistentVolumeSource buildIscsi() { - return this.iscsi != null ? this.iscsi.build() : null; + public String getFirstMountOption() { + return this.mountOptions.get(0); } - public A withIscsi(V1ISCSIPersistentVolumeSource iscsi) { - this._visitables.remove("iscsi"); - if (iscsi != null) { - this.iscsi = new V1ISCSIPersistentVolumeSourceBuilder(iscsi); - this._visitables.get("iscsi").add(this.iscsi); - } else { - this.iscsi = null; - this._visitables.get("iscsi").remove(this.iscsi); - } - return (A) this; + public String getLastAccessMode() { + return this.accessModes.get(accessModes.size() - 1); } - public boolean hasIscsi() { - return this.iscsi != null; + public String getLastMountOption() { + return this.mountOptions.get(mountOptions.size() - 1); } - public IscsiNested withNewIscsi() { - return new IscsiNested(null); + public String getMatchingAccessMode(Predicate predicate) { + for (String item : accessModes) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public IscsiNested withNewIscsiLike(V1ISCSIPersistentVolumeSource item) { - return new IscsiNested(item); + public String getMatchingMountOption(Predicate predicate) { + for (String item : mountOptions) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public IscsiNested editIscsi() { - return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(null)); + public String getMountOption(int index) { + return this.mountOptions.get(index); } - public IscsiNested editOrNewIscsi() { - return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(new V1ISCSIPersistentVolumeSourceBuilder().build())); + public List getMountOptions() { + return this.mountOptions; } - public IscsiNested editOrNewIscsiLike(V1ISCSIPersistentVolumeSource item) { - return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(item)); + public String getPersistentVolumeReclaimPolicy() { + return this.persistentVolumeReclaimPolicy; } - public V1LocalVolumeSource buildLocal() { - return this.local != null ? this.local.build() : null; + public String getStorageClassName() { + return this.storageClassName; } - public A withLocal(V1LocalVolumeSource local) { - this._visitables.remove("local"); - if (local != null) { - this.local = new V1LocalVolumeSourceBuilder(local); - this._visitables.get("local").add(this.local); - } else { - this.local = null; - this._visitables.get("local").remove(this.local); - } - return (A) this; + public String getVolumeAttributesClassName() { + return this.volumeAttributesClassName; } - public boolean hasLocal() { - return this.local != null; + public String getVolumeMode() { + return this.volumeMode; } - public LocalNested withNewLocal() { - return new LocalNested(null); + public boolean hasAccessModes() { + return this.accessModes != null && !(this.accessModes.isEmpty()); } - public LocalNested withNewLocalLike(V1LocalVolumeSource item) { - return new LocalNested(item); + public boolean hasAwsElasticBlockStore() { + return this.awsElasticBlockStore != null; } - public LocalNested editLocal() { - return this.withNewLocalLike(Optional.ofNullable(this.buildLocal()).orElse(null)); + public boolean hasAzureDisk() { + return this.azureDisk != null; } - public LocalNested editOrNewLocal() { - return this.withNewLocalLike(Optional.ofNullable(this.buildLocal()).orElse(new V1LocalVolumeSourceBuilder().build())); + public boolean hasAzureFile() { + return this.azureFile != null; } - public LocalNested editOrNewLocalLike(V1LocalVolumeSource item) { - return this.withNewLocalLike(Optional.ofNullable(this.buildLocal()).orElse(item)); + public boolean hasCapacity() { + return this.capacity != null; } - public A addToMountOptions(int index,String item) { - if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); - } - this.mountOptions.add(index, item); - return (A) this; + public boolean hasCephfs() { + return this.cephfs != null; } - public A setToMountOptions(int index,String item) { - if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); - } - this.mountOptions.set(index, item); - return (A) this; + public boolean hasCinder() { + return this.cinder != null; } - public A addToMountOptions(String... items) { - if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); - } - for (String item : items) { - this.mountOptions.add(item); - } - return (A) this; + public boolean hasClaimRef() { + return this.claimRef != null; } - public A addAllToMountOptions(Collection items) { - if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); - } - for (String item : items) { - this.mountOptions.add(item); - } - return (A) this; + public boolean hasCsi() { + return this.csi != null; } - public A removeFromMountOptions(String... items) { - if (this.mountOptions == null) { - return (A) this; - } - for (String item : items) { - this.mountOptions.remove(item); - } - return (A) this; + public boolean hasFc() { + return this.fc != null; } - public A removeAllFromMountOptions(Collection items) { - if (this.mountOptions == null) { - return (A) this; - } - for (String item : items) { - this.mountOptions.remove(item); - } - return (A) this; + public boolean hasFlexVolume() { + return this.flexVolume != null; } - public List getMountOptions() { - return this.mountOptions; + public boolean hasFlocker() { + return this.flocker != null; } - public String getMountOption(int index) { - return this.mountOptions.get(index); + public boolean hasGcePersistentDisk() { + return this.gcePersistentDisk != null; } - public String getFirstMountOption() { - return this.mountOptions.get(0); + public boolean hasGlusterfs() { + return this.glusterfs != null; } - public String getLastMountOption() { - return this.mountOptions.get(mountOptions.size() - 1); + public boolean hasHostPath() { + return this.hostPath != null; } - public String getMatchingMountOption(Predicate predicate) { - for (String item : mountOptions) { + public boolean hasIscsi() { + return this.iscsi != null; + } + + public boolean hasLocal() { + return this.local != null; + } + + public boolean hasMatchingAccessMode(Predicate predicate) { + for (String item : accessModes) { if (predicate.test(item)) { - return item; + return true; } } - return null; + return false; } public boolean hasMatchingMountOption(Predicate predicate) { @@ -966,724 +821,873 @@ public boolean hasMatchingMountOption(Predicate predicate) { return false; } - public A withMountOptions(List mountOptions) { - if (mountOptions != null) { - this.mountOptions = new ArrayList(); - for (String item : mountOptions) { - this.addToMountOptions(item); - } - } else { - this.mountOptions = null; - } - return (A) this; - } - - public A withMountOptions(String... mountOptions) { - if (this.mountOptions != null) { - this.mountOptions.clear(); - _visitables.remove("mountOptions"); - } - if (mountOptions != null) { - for (String item : mountOptions) { - this.addToMountOptions(item); - } - } - return (A) this; - } - public boolean hasMountOptions() { return this.mountOptions != null && !(this.mountOptions.isEmpty()); } - public V1NFSVolumeSource buildNfs() { - return this.nfs != null ? this.nfs.build() : null; - } - - public A withNfs(V1NFSVolumeSource nfs) { - this._visitables.remove("nfs"); - if (nfs != null) { - this.nfs = new V1NFSVolumeSourceBuilder(nfs); - this._visitables.get("nfs").add(this.nfs); - } else { - this.nfs = null; - this._visitables.get("nfs").remove(this.nfs); - } - return (A) this; - } - public boolean hasNfs() { return this.nfs != null; } - public NfsNested withNewNfs() { - return new NfsNested(null); - } - - public NfsNested withNewNfsLike(V1NFSVolumeSource item) { - return new NfsNested(item); + public boolean hasNodeAffinity() { + return this.nodeAffinity != null; } - public NfsNested editNfs() { - return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(null)); + public boolean hasPersistentVolumeReclaimPolicy() { + return this.persistentVolumeReclaimPolicy != null; } - public NfsNested editOrNewNfs() { - return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(new V1NFSVolumeSourceBuilder().build())); + public boolean hasPhotonPersistentDisk() { + return this.photonPersistentDisk != null; } - public NfsNested editOrNewNfsLike(V1NFSVolumeSource item) { - return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(item)); + public boolean hasPortworxVolume() { + return this.portworxVolume != null; } - public V1VolumeNodeAffinity buildNodeAffinity() { - return this.nodeAffinity != null ? this.nodeAffinity.build() : null; + public boolean hasQuobyte() { + return this.quobyte != null; } - public A withNodeAffinity(V1VolumeNodeAffinity nodeAffinity) { - this._visitables.remove("nodeAffinity"); - if (nodeAffinity != null) { - this.nodeAffinity = new V1VolumeNodeAffinityBuilder(nodeAffinity); - this._visitables.get("nodeAffinity").add(this.nodeAffinity); - } else { - this.nodeAffinity = null; - this._visitables.get("nodeAffinity").remove(this.nodeAffinity); - } - return (A) this; + public boolean hasRbd() { + return this.rbd != null; } - public boolean hasNodeAffinity() { - return this.nodeAffinity != null; + public boolean hasScaleIO() { + return this.scaleIO != null; } - public NodeAffinityNested withNewNodeAffinity() { - return new NodeAffinityNested(null); + public boolean hasStorageClassName() { + return this.storageClassName != null; } - public NodeAffinityNested withNewNodeAffinityLike(V1VolumeNodeAffinity item) { - return new NodeAffinityNested(item); + public boolean hasStorageos() { + return this.storageos != null; } - public NodeAffinityNested editNodeAffinity() { - return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(null)); + public boolean hasVolumeAttributesClassName() { + return this.volumeAttributesClassName != null; } - public NodeAffinityNested editOrNewNodeAffinity() { - return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(new V1VolumeNodeAffinityBuilder().build())); + public boolean hasVolumeMode() { + return this.volumeMode != null; } - public NodeAffinityNested editOrNewNodeAffinityLike(V1VolumeNodeAffinity item) { - return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(item)); + public boolean hasVsphereVolume() { + return this.vsphereVolume != null; } - public String getPersistentVolumeReclaimPolicy() { - return this.persistentVolumeReclaimPolicy; + 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, volumeAttributesClassName, volumeMode, vsphereVolume); } - public A withPersistentVolumeReclaimPolicy(String persistentVolumeReclaimPolicy) { - this.persistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy; + public A removeAllFromAccessModes(Collection items) { + if (this.accessModes == null) { + return (A) this; + } + for (String item : items) { + this.accessModes.remove(item); + } return (A) this; } - public boolean hasPersistentVolumeReclaimPolicy() { - return this.persistentVolumeReclaimPolicy != null; - } - - public V1PhotonPersistentDiskVolumeSource buildPhotonPersistentDisk() { - return this.photonPersistentDisk != null ? this.photonPersistentDisk.build() : null; - } - - public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { - this._visitables.remove("photonPersistentDisk"); - if (photonPersistentDisk != null) { - this.photonPersistentDisk = new V1PhotonPersistentDiskVolumeSourceBuilder(photonPersistentDisk); - this._visitables.get("photonPersistentDisk").add(this.photonPersistentDisk); - } else { - this.photonPersistentDisk = null; - this._visitables.get("photonPersistentDisk").remove(this.photonPersistentDisk); + public A removeAllFromMountOptions(Collection items) { + if (this.mountOptions == null) { + return (A) this; + } + for (String item : items) { + this.mountOptions.remove(item); } return (A) this; } - public boolean hasPhotonPersistentDisk() { - return this.photonPersistentDisk != null; - } - - public PhotonPersistentDiskNested withNewPhotonPersistentDisk() { - return new PhotonPersistentDiskNested(null); - } - - public PhotonPersistentDiskNested withNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { - return new PhotonPersistentDiskNested(item); - } - - public PhotonPersistentDiskNested editPhotonPersistentDisk() { - return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(null)); - } - - public PhotonPersistentDiskNested editOrNewPhotonPersistentDisk() { - return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(new V1PhotonPersistentDiskVolumeSourceBuilder().build())); + public A removeFromAccessModes(String... items) { + if (this.accessModes == null) { + return (A) this; + } + for (String item : items) { + this.accessModes.remove(item); + } + return (A) this; } - public PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { - return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(item)); + public A removeFromCapacity(String key) { + if (this.capacity == null) { + return (A) this; + } + if (key != null && this.capacity != null) { + this.capacity.remove(key); + } + return (A) this; } - public V1PortworxVolumeSource buildPortworxVolume() { - return this.portworxVolume != null ? this.portworxVolume.build() : null; + public A removeFromCapacity(Map map) { + if (this.capacity == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.capacity != null) { + this.capacity.remove(key); + } + } + } + return (A) this; } - public A withPortworxVolume(V1PortworxVolumeSource portworxVolume) { - this._visitables.remove("portworxVolume"); - if (portworxVolume != null) { - this.portworxVolume = new V1PortworxVolumeSourceBuilder(portworxVolume); - this._visitables.get("portworxVolume").add(this.portworxVolume); - } else { - this.portworxVolume = null; - this._visitables.get("portworxVolume").remove(this.portworxVolume); + public A removeFromMountOptions(String... items) { + if (this.mountOptions == null) { + return (A) this; + } + for (String item : items) { + this.mountOptions.remove(item); } return (A) this; } - public boolean hasPortworxVolume() { - return this.portworxVolume != null; + public A setToAccessModes(int index,String item) { + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + this.accessModes.set(index, item); + return (A) this; } - public PortworxVolumeNested withNewPortworxVolume() { - return new PortworxVolumeNested(null); + public A setToMountOptions(int index,String item) { + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } + this.mountOptions.set(index, item); + return (A) this; } - public PortworxVolumeNested withNewPortworxVolumeLike(V1PortworxVolumeSource item) { - return new PortworxVolumeNested(item); - } + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(accessModes == null) && !(accessModes.isEmpty())) { + sb.append("accessModes:"); + sb.append(accessModes); + sb.append(","); + } + if (!(awsElasticBlockStore == null)) { + sb.append("awsElasticBlockStore:"); + sb.append(awsElasticBlockStore); + sb.append(","); + } + if (!(azureDisk == null)) { + sb.append("azureDisk:"); + sb.append(azureDisk); + sb.append(","); + } + if (!(azureFile == null)) { + sb.append("azureFile:"); + sb.append(azureFile); + sb.append(","); + } + if (!(capacity == null) && !(capacity.isEmpty())) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(cephfs == null)) { + sb.append("cephfs:"); + sb.append(cephfs); + sb.append(","); + } + if (!(cinder == null)) { + sb.append("cinder:"); + sb.append(cinder); + sb.append(","); + } + if (!(claimRef == null)) { + sb.append("claimRef:"); + sb.append(claimRef); + sb.append(","); + } + if (!(csi == null)) { + sb.append("csi:"); + sb.append(csi); + sb.append(","); + } + if (!(fc == null)) { + sb.append("fc:"); + sb.append(fc); + sb.append(","); + } + if (!(flexVolume == null)) { + sb.append("flexVolume:"); + sb.append(flexVolume); + sb.append(","); + } + if (!(flocker == null)) { + sb.append("flocker:"); + sb.append(flocker); + sb.append(","); + } + if (!(gcePersistentDisk == null)) { + sb.append("gcePersistentDisk:"); + sb.append(gcePersistentDisk); + sb.append(","); + } + if (!(glusterfs == null)) { + sb.append("glusterfs:"); + sb.append(glusterfs); + sb.append(","); + } + if (!(hostPath == null)) { + sb.append("hostPath:"); + sb.append(hostPath); + sb.append(","); + } + if (!(iscsi == null)) { + sb.append("iscsi:"); + sb.append(iscsi); + sb.append(","); + } + if (!(local == null)) { + sb.append("local:"); + sb.append(local); + sb.append(","); + } + if (!(mountOptions == null) && !(mountOptions.isEmpty())) { + sb.append("mountOptions:"); + sb.append(mountOptions); + sb.append(","); + } + if (!(nfs == null)) { + sb.append("nfs:"); + sb.append(nfs); + sb.append(","); + } + if (!(nodeAffinity == null)) { + sb.append("nodeAffinity:"); + sb.append(nodeAffinity); + sb.append(","); + } + if (!(persistentVolumeReclaimPolicy == null)) { + sb.append("persistentVolumeReclaimPolicy:"); + sb.append(persistentVolumeReclaimPolicy); + sb.append(","); + } + if (!(photonPersistentDisk == null)) { + sb.append("photonPersistentDisk:"); + sb.append(photonPersistentDisk); + sb.append(","); + } + if (!(portworxVolume == null)) { + sb.append("portworxVolume:"); + sb.append(portworxVolume); + sb.append(","); + } + if (!(quobyte == null)) { + sb.append("quobyte:"); + sb.append(quobyte); + sb.append(","); + } + if (!(rbd == null)) { + sb.append("rbd:"); + sb.append(rbd); + sb.append(","); + } + if (!(scaleIO == null)) { + sb.append("scaleIO:"); + sb.append(scaleIO); + sb.append(","); + } + if (!(storageClassName == null)) { + sb.append("storageClassName:"); + sb.append(storageClassName); + sb.append(","); + } + if (!(storageos == null)) { + sb.append("storageos:"); + sb.append(storageos); + sb.append(","); + } + if (!(volumeAttributesClassName == null)) { + sb.append("volumeAttributesClassName:"); + sb.append(volumeAttributesClassName); + sb.append(","); + } + if (!(volumeMode == null)) { + sb.append("volumeMode:"); + sb.append(volumeMode); + sb.append(","); + } + if (!(vsphereVolume == null)) { + sb.append("vsphereVolume:"); + sb.append(vsphereVolume); + } + sb.append("}"); + return sb.toString(); + } - public PortworxVolumeNested editPortworxVolume() { - return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(null)); + public A withAccessModes(List accessModes) { + if (accessModes != null) { + this.accessModes = new ArrayList(); + for (String item : accessModes) { + this.addToAccessModes(item); + } + } else { + this.accessModes = null; + } + return (A) this; } - public PortworxVolumeNested editOrNewPortworxVolume() { - return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(new V1PortworxVolumeSourceBuilder().build())); + public A withAccessModes(String... accessModes) { + if (this.accessModes != null) { + this.accessModes.clear(); + _visitables.remove("accessModes"); + } + if (accessModes != null) { + for (String item : accessModes) { + this.addToAccessModes(item); + } + } + return (A) this; } - public PortworxVolumeNested editOrNewPortworxVolumeLike(V1PortworxVolumeSource item) { - return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(item)); + public A withAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { + this._visitables.remove("awsElasticBlockStore"); + if (awsElasticBlockStore != null) { + this.awsElasticBlockStore = new V1AWSElasticBlockStoreVolumeSourceBuilder(awsElasticBlockStore); + this._visitables.get("awsElasticBlockStore").add(this.awsElasticBlockStore); + } else { + this.awsElasticBlockStore = null; + this._visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); + } + return (A) this; } - public V1QuobyteVolumeSource buildQuobyte() { - return this.quobyte != null ? this.quobyte.build() : null; + public A withAzureDisk(V1AzureDiskVolumeSource azureDisk) { + this._visitables.remove("azureDisk"); + if (azureDisk != null) { + this.azureDisk = new V1AzureDiskVolumeSourceBuilder(azureDisk); + this._visitables.get("azureDisk").add(this.azureDisk); + } else { + this.azureDisk = null; + this._visitables.get("azureDisk").remove(this.azureDisk); + } + return (A) this; } - public A withQuobyte(V1QuobyteVolumeSource quobyte) { - this._visitables.remove("quobyte"); - if (quobyte != null) { - this.quobyte = new V1QuobyteVolumeSourceBuilder(quobyte); - this._visitables.get("quobyte").add(this.quobyte); + public A withAzureFile(V1AzureFilePersistentVolumeSource azureFile) { + this._visitables.remove("azureFile"); + if (azureFile != null) { + this.azureFile = new V1AzureFilePersistentVolumeSourceBuilder(azureFile); + this._visitables.get("azureFile").add(this.azureFile); } else { - this.quobyte = null; - this._visitables.get("quobyte").remove(this.quobyte); + this.azureFile = null; + this._visitables.get("azureFile").remove(this.azureFile); } return (A) this; } - public boolean hasQuobyte() { - return this.quobyte != null; + public A withCapacity(Map capacity) { + if (capacity == null) { + this.capacity = null; + } else { + this.capacity = new LinkedHashMap(capacity); + } + return (A) this; } - public QuobyteNested withNewQuobyte() { - return new QuobyteNested(null); + public A withCephfs(V1CephFSPersistentVolumeSource cephfs) { + this._visitables.remove("cephfs"); + if (cephfs != null) { + this.cephfs = new V1CephFSPersistentVolumeSourceBuilder(cephfs); + this._visitables.get("cephfs").add(this.cephfs); + } else { + this.cephfs = null; + this._visitables.get("cephfs").remove(this.cephfs); + } + return (A) this; } - public QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item) { - return new QuobyteNested(item); + public A withCinder(V1CinderPersistentVolumeSource cinder) { + this._visitables.remove("cinder"); + if (cinder != null) { + this.cinder = new V1CinderPersistentVolumeSourceBuilder(cinder); + this._visitables.get("cinder").add(this.cinder); + } else { + this.cinder = null; + this._visitables.get("cinder").remove(this.cinder); + } + return (A) this; } - public QuobyteNested editQuobyte() { - return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(null)); - } - - public QuobyteNested editOrNewQuobyte() { - return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(new V1QuobyteVolumeSourceBuilder().build())); - } - - public QuobyteNested editOrNewQuobyteLike(V1QuobyteVolumeSource item) { - return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(item)); + public A withClaimRef(V1ObjectReference claimRef) { + this._visitables.remove("claimRef"); + if (claimRef != null) { + this.claimRef = new V1ObjectReferenceBuilder(claimRef); + this._visitables.get("claimRef").add(this.claimRef); + } else { + this.claimRef = null; + this._visitables.get("claimRef").remove(this.claimRef); + } + return (A) this; } - public V1RBDPersistentVolumeSource buildRbd() { - return this.rbd != null ? this.rbd.build() : null; + public A withCsi(V1CSIPersistentVolumeSource csi) { + this._visitables.remove("csi"); + if (csi != null) { + this.csi = new V1CSIPersistentVolumeSourceBuilder(csi); + this._visitables.get("csi").add(this.csi); + } else { + this.csi = null; + this._visitables.get("csi").remove(this.csi); + } + return (A) this; } - public A withRbd(V1RBDPersistentVolumeSource rbd) { - this._visitables.remove("rbd"); - if (rbd != null) { - this.rbd = new V1RBDPersistentVolumeSourceBuilder(rbd); - this._visitables.get("rbd").add(this.rbd); + public A withFc(V1FCVolumeSource fc) { + this._visitables.remove("fc"); + if (fc != null) { + this.fc = new V1FCVolumeSourceBuilder(fc); + this._visitables.get("fc").add(this.fc); } else { - this.rbd = null; - this._visitables.get("rbd").remove(this.rbd); + this.fc = null; + this._visitables.get("fc").remove(this.fc); } return (A) this; } - public boolean hasRbd() { - return this.rbd != null; + public A withFlexVolume(V1FlexPersistentVolumeSource flexVolume) { + this._visitables.remove("flexVolume"); + if (flexVolume != null) { + this.flexVolume = new V1FlexPersistentVolumeSourceBuilder(flexVolume); + this._visitables.get("flexVolume").add(this.flexVolume); + } else { + this.flexVolume = null; + this._visitables.get("flexVolume").remove(this.flexVolume); + } + return (A) this; } - public RbdNested withNewRbd() { - return new RbdNested(null); + public A withFlocker(V1FlockerVolumeSource flocker) { + this._visitables.remove("flocker"); + if (flocker != null) { + this.flocker = new V1FlockerVolumeSourceBuilder(flocker); + this._visitables.get("flocker").add(this.flocker); + } else { + this.flocker = null; + this._visitables.get("flocker").remove(this.flocker); + } + return (A) this; } - public RbdNested withNewRbdLike(V1RBDPersistentVolumeSource item) { - return new RbdNested(item); + public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { + this._visitables.remove("gcePersistentDisk"); + if (gcePersistentDisk != null) { + this.gcePersistentDisk = new V1GCEPersistentDiskVolumeSourceBuilder(gcePersistentDisk); + this._visitables.get("gcePersistentDisk").add(this.gcePersistentDisk); + } else { + this.gcePersistentDisk = null; + this._visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); + } + return (A) this; } - public RbdNested editRbd() { - return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(null)); + public A withGlusterfs(V1GlusterfsPersistentVolumeSource glusterfs) { + this._visitables.remove("glusterfs"); + if (glusterfs != null) { + this.glusterfs = new V1GlusterfsPersistentVolumeSourceBuilder(glusterfs); + this._visitables.get("glusterfs").add(this.glusterfs); + } else { + this.glusterfs = null; + this._visitables.get("glusterfs").remove(this.glusterfs); + } + return (A) this; } - public RbdNested editOrNewRbd() { - return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(new V1RBDPersistentVolumeSourceBuilder().build())); + public A withHostPath(V1HostPathVolumeSource hostPath) { + this._visitables.remove("hostPath"); + if (hostPath != null) { + this.hostPath = new V1HostPathVolumeSourceBuilder(hostPath); + this._visitables.get("hostPath").add(this.hostPath); + } else { + this.hostPath = null; + this._visitables.get("hostPath").remove(this.hostPath); + } + return (A) this; } - public RbdNested editOrNewRbdLike(V1RBDPersistentVolumeSource item) { - return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(item)); + public A withIscsi(V1ISCSIPersistentVolumeSource iscsi) { + this._visitables.remove("iscsi"); + if (iscsi != null) { + this.iscsi = new V1ISCSIPersistentVolumeSourceBuilder(iscsi); + this._visitables.get("iscsi").add(this.iscsi); + } else { + this.iscsi = null; + this._visitables.get("iscsi").remove(this.iscsi); + } + return (A) this; } - public V1ScaleIOPersistentVolumeSource buildScaleIO() { - return this.scaleIO != null ? this.scaleIO.build() : null; + public A withLocal(V1LocalVolumeSource local) { + this._visitables.remove("local"); + if (local != null) { + this.local = new V1LocalVolumeSourceBuilder(local); + this._visitables.get("local").add(this.local); + } else { + this.local = null; + this._visitables.get("local").remove(this.local); + } + return (A) this; } - public A withScaleIO(V1ScaleIOPersistentVolumeSource scaleIO) { - this._visitables.remove("scaleIO"); - if (scaleIO != null) { - this.scaleIO = new V1ScaleIOPersistentVolumeSourceBuilder(scaleIO); - this._visitables.get("scaleIO").add(this.scaleIO); + public A withMountOptions(List mountOptions) { + if (mountOptions != null) { + this.mountOptions = new ArrayList(); + for (String item : mountOptions) { + this.addToMountOptions(item); + } } else { - this.scaleIO = null; - this._visitables.get("scaleIO").remove(this.scaleIO); + this.mountOptions = null; } return (A) this; } - public boolean hasScaleIO() { - return this.scaleIO != null; + public A withMountOptions(String... mountOptions) { + if (this.mountOptions != null) { + this.mountOptions.clear(); + _visitables.remove("mountOptions"); + } + if (mountOptions != null) { + for (String item : mountOptions) { + this.addToMountOptions(item); + } + } + return (A) this; } - public ScaleIONested withNewScaleIO() { - return new ScaleIONested(null); + public AwsElasticBlockStoreNested withNewAwsElasticBlockStore() { + return new AwsElasticBlockStoreNested(null); } - public ScaleIONested withNewScaleIOLike(V1ScaleIOPersistentVolumeSource item) { - return new ScaleIONested(item); + public AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { + return new AwsElasticBlockStoreNested(item); } - public ScaleIONested editScaleIO() { - return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(null)); + public AzureDiskNested withNewAzureDisk() { + return new AzureDiskNested(null); } - public ScaleIONested editOrNewScaleIO() { - return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(new V1ScaleIOPersistentVolumeSourceBuilder().build())); + public AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item) { + return new AzureDiskNested(item); } - public ScaleIONested editOrNewScaleIOLike(V1ScaleIOPersistentVolumeSource item) { - return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(item)); + public AzureFileNested withNewAzureFile() { + return new AzureFileNested(null); } - public String getStorageClassName() { - return this.storageClassName; + public AzureFileNested withNewAzureFileLike(V1AzureFilePersistentVolumeSource item) { + return new AzureFileNested(item); } - public A withStorageClassName(String storageClassName) { - this.storageClassName = storageClassName; - return (A) this; + public CephfsNested withNewCephfs() { + return new CephfsNested(null); } - public boolean hasStorageClassName() { - return this.storageClassName != null; + public CephfsNested withNewCephfsLike(V1CephFSPersistentVolumeSource item) { + return new CephfsNested(item); } - public V1StorageOSPersistentVolumeSource buildStorageos() { - return this.storageos != null ? this.storageos.build() : null; + public CinderNested withNewCinder() { + return new CinderNested(null); } - public A withStorageos(V1StorageOSPersistentVolumeSource storageos) { - this._visitables.remove("storageos"); - if (storageos != null) { - this.storageos = new V1StorageOSPersistentVolumeSourceBuilder(storageos); - this._visitables.get("storageos").add(this.storageos); - } else { - this.storageos = null; - this._visitables.get("storageos").remove(this.storageos); - } - return (A) this; + public CinderNested withNewCinderLike(V1CinderPersistentVolumeSource item) { + return new CinderNested(item); } - public boolean hasStorageos() { - return this.storageos != null; + public ClaimRefNested withNewClaimRef() { + return new ClaimRefNested(null); } - public StorageosNested withNewStorageos() { - return new StorageosNested(null); + public ClaimRefNested withNewClaimRefLike(V1ObjectReference item) { + return new ClaimRefNested(item); } - public StorageosNested withNewStorageosLike(V1StorageOSPersistentVolumeSource item) { - return new StorageosNested(item); + public CsiNested withNewCsi() { + return new CsiNested(null); } - public StorageosNested editStorageos() { - return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(null)); + public CsiNested withNewCsiLike(V1CSIPersistentVolumeSource item) { + return new CsiNested(item); } - public StorageosNested editOrNewStorageos() { - return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(new V1StorageOSPersistentVolumeSourceBuilder().build())); + public FcNested withNewFc() { + return new FcNested(null); } - public StorageosNested editOrNewStorageosLike(V1StorageOSPersistentVolumeSource item) { - return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(item)); + public FcNested withNewFcLike(V1FCVolumeSource item) { + return new FcNested(item); } - public String getVolumeAttributesClassName() { - return this.volumeAttributesClassName; + public FlexVolumeNested withNewFlexVolume() { + return new FlexVolumeNested(null); } - public A withVolumeAttributesClassName(String volumeAttributesClassName) { - this.volumeAttributesClassName = volumeAttributesClassName; - return (A) this; + public FlexVolumeNested withNewFlexVolumeLike(V1FlexPersistentVolumeSource item) { + return new FlexVolumeNested(item); } - public boolean hasVolumeAttributesClassName() { - return this.volumeAttributesClassName != null; + public FlockerNested withNewFlocker() { + return new FlockerNested(null); } - public String getVolumeMode() { - return this.volumeMode; + public FlockerNested withNewFlockerLike(V1FlockerVolumeSource item) { + return new FlockerNested(item); } - public A withVolumeMode(String volumeMode) { - this.volumeMode = volumeMode; - return (A) this; + public GcePersistentDiskNested withNewGcePersistentDisk() { + return new GcePersistentDiskNested(null); } - public boolean hasVolumeMode() { - return this.volumeMode != null; + public GcePersistentDiskNested withNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { + return new GcePersistentDiskNested(item); } - public V1VsphereVirtualDiskVolumeSource buildVsphereVolume() { - return this.vsphereVolume != null ? this.vsphereVolume.build() : null; + public GlusterfsNested withNewGlusterfs() { + return new GlusterfsNested(null); } - public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { - this._visitables.remove("vsphereVolume"); - if (vsphereVolume != null) { - this.vsphereVolume = new V1VsphereVirtualDiskVolumeSourceBuilder(vsphereVolume); - this._visitables.get("vsphereVolume").add(this.vsphereVolume); - } else { - this.vsphereVolume = null; - this._visitables.get("vsphereVolume").remove(this.vsphereVolume); - } - return (A) this; + public GlusterfsNested withNewGlusterfsLike(V1GlusterfsPersistentVolumeSource item) { + return new GlusterfsNested(item); } - public boolean hasVsphereVolume() { - return this.vsphereVolume != null; + public HostPathNested withNewHostPath() { + return new HostPathNested(null); } - public VsphereVolumeNested withNewVsphereVolume() { - return new VsphereVolumeNested(null); + public HostPathNested withNewHostPathLike(V1HostPathVolumeSource item) { + return new HostPathNested(item); } - public VsphereVolumeNested withNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { - return new VsphereVolumeNested(item); + public IscsiNested withNewIscsi() { + return new IscsiNested(null); } - public VsphereVolumeNested editVsphereVolume() { - return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(null)); + public IscsiNested withNewIscsiLike(V1ISCSIPersistentVolumeSource item) { + return new IscsiNested(item); } - public VsphereVolumeNested editOrNewVsphereVolume() { - return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(new V1VsphereVirtualDiskVolumeSourceBuilder().build())); + public LocalNested withNewLocal() { + return new LocalNested(null); } - public VsphereVolumeNested editOrNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { - return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(item)); + public LocalNested withNewLocalLike(V1LocalVolumeSource item) { + return new LocalNested(item); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1PersistentVolumeSpecFluent that = (V1PersistentVolumeSpecFluent) o; - if (!(Objects.equals(accessModes, that.accessModes))) { - return false; - } - if (!(Objects.equals(awsElasticBlockStore, that.awsElasticBlockStore))) { - return false; - } - if (!(Objects.equals(azureDisk, that.azureDisk))) { - return false; - } - if (!(Objects.equals(azureFile, that.azureFile))) { - return false; - } - if (!(Objects.equals(capacity, that.capacity))) { - return false; - } - if (!(Objects.equals(cephfs, that.cephfs))) { - return false; - } - if (!(Objects.equals(cinder, that.cinder))) { - return false; - } - if (!(Objects.equals(claimRef, that.claimRef))) { - return false; - } - if (!(Objects.equals(csi, that.csi))) { - return false; - } - if (!(Objects.equals(fc, that.fc))) { - return false; - } - if (!(Objects.equals(flexVolume, that.flexVolume))) { - return false; - } - if (!(Objects.equals(flocker, that.flocker))) { - return false; - } - if (!(Objects.equals(gcePersistentDisk, that.gcePersistentDisk))) { - return false; - } - if (!(Objects.equals(glusterfs, that.glusterfs))) { - return false; - } - if (!(Objects.equals(hostPath, that.hostPath))) { - return false; - } - if (!(Objects.equals(iscsi, that.iscsi))) { - return false; - } - if (!(Objects.equals(local, that.local))) { - return false; - } - if (!(Objects.equals(mountOptions, that.mountOptions))) { - return false; - } - if (!(Objects.equals(nfs, that.nfs))) { - return false; - } - if (!(Objects.equals(nodeAffinity, that.nodeAffinity))) { - return false; - } - if (!(Objects.equals(persistentVolumeReclaimPolicy, that.persistentVolumeReclaimPolicy))) { - return false; - } - if (!(Objects.equals(photonPersistentDisk, that.photonPersistentDisk))) { - return false; - } - if (!(Objects.equals(portworxVolume, that.portworxVolume))) { - return false; - } - if (!(Objects.equals(quobyte, that.quobyte))) { - return false; - } - if (!(Objects.equals(rbd, that.rbd))) { - return false; - } - if (!(Objects.equals(scaleIO, that.scaleIO))) { - return false; - } - if (!(Objects.equals(storageClassName, that.storageClassName))) { - return false; - } - if (!(Objects.equals(storageos, that.storageos))) { - return false; - } - if (!(Objects.equals(volumeAttributesClassName, that.volumeAttributesClassName))) { - return false; - } - if (!(Objects.equals(volumeMode, that.volumeMode))) { - return false; - } - if (!(Objects.equals(vsphereVolume, that.vsphereVolume))) { - return false; - } - return true; + public NfsNested withNewNfs() { + return new NfsNested(null); } - 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, volumeAttributesClassName, volumeMode, vsphereVolume); + public NfsNested withNewNfsLike(V1NFSVolumeSource item) { + return new NfsNested(item); } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(accessModes == null) && !(accessModes.isEmpty())) { - sb.append("accessModes:"); - sb.append(accessModes); - sb.append(","); - } - if (!(awsElasticBlockStore == null)) { - sb.append("awsElasticBlockStore:"); - sb.append(awsElasticBlockStore); - sb.append(","); - } - if (!(azureDisk == null)) { - sb.append("azureDisk:"); - sb.append(azureDisk); - sb.append(","); - } - if (!(azureFile == null)) { - sb.append("azureFile:"); - sb.append(azureFile); - sb.append(","); - } - if (!(capacity == null) && !(capacity.isEmpty())) { - sb.append("capacity:"); - sb.append(capacity); - sb.append(","); - } - if (!(cephfs == null)) { - sb.append("cephfs:"); - sb.append(cephfs); - sb.append(","); - } - if (!(cinder == null)) { - sb.append("cinder:"); - sb.append(cinder); - sb.append(","); - } - if (!(claimRef == null)) { - sb.append("claimRef:"); - sb.append(claimRef); - sb.append(","); - } - if (!(csi == null)) { - sb.append("csi:"); - sb.append(csi); - sb.append(","); - } - if (!(fc == null)) { - sb.append("fc:"); - sb.append(fc); - sb.append(","); - } - if (!(flexVolume == null)) { - sb.append("flexVolume:"); - sb.append(flexVolume); - sb.append(","); - } - if (!(flocker == null)) { - sb.append("flocker:"); - sb.append(flocker); - sb.append(","); - } - if (!(gcePersistentDisk == null)) { - sb.append("gcePersistentDisk:"); - sb.append(gcePersistentDisk); - sb.append(","); - } - if (!(glusterfs == null)) { - sb.append("glusterfs:"); - sb.append(glusterfs); - sb.append(","); - } - if (!(hostPath == null)) { - sb.append("hostPath:"); - sb.append(hostPath); - sb.append(","); - } - if (!(iscsi == null)) { - sb.append("iscsi:"); - sb.append(iscsi); - sb.append(","); - } - if (!(local == null)) { - sb.append("local:"); - sb.append(local); - sb.append(","); - } - if (!(mountOptions == null) && !(mountOptions.isEmpty())) { - sb.append("mountOptions:"); - sb.append(mountOptions); - sb.append(","); - } - if (!(nfs == null)) { - sb.append("nfs:"); - sb.append(nfs); - sb.append(","); - } - if (!(nodeAffinity == null)) { - sb.append("nodeAffinity:"); - sb.append(nodeAffinity); - sb.append(","); - } - if (!(persistentVolumeReclaimPolicy == null)) { - sb.append("persistentVolumeReclaimPolicy:"); - sb.append(persistentVolumeReclaimPolicy); - sb.append(","); - } - if (!(photonPersistentDisk == null)) { - sb.append("photonPersistentDisk:"); - sb.append(photonPersistentDisk); - sb.append(","); - } - if (!(portworxVolume == null)) { - sb.append("portworxVolume:"); - sb.append(portworxVolume); - sb.append(","); + public NodeAffinityNested withNewNodeAffinity() { + return new NodeAffinityNested(null); + } + + public NodeAffinityNested withNewNodeAffinityLike(V1VolumeNodeAffinity item) { + return new NodeAffinityNested(item); + } + + public PhotonPersistentDiskNested withNewPhotonPersistentDisk() { + return new PhotonPersistentDiskNested(null); + } + + public PhotonPersistentDiskNested withNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { + return new PhotonPersistentDiskNested(item); + } + + public PortworxVolumeNested withNewPortworxVolume() { + return new PortworxVolumeNested(null); + } + + public PortworxVolumeNested withNewPortworxVolumeLike(V1PortworxVolumeSource item) { + return new PortworxVolumeNested(item); + } + + public QuobyteNested withNewQuobyte() { + return new QuobyteNested(null); + } + + public QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item) { + return new QuobyteNested(item); + } + + public RbdNested withNewRbd() { + return new RbdNested(null); + } + + public RbdNested withNewRbdLike(V1RBDPersistentVolumeSource item) { + return new RbdNested(item); + } + + public ScaleIONested withNewScaleIO() { + return new ScaleIONested(null); + } + + public ScaleIONested withNewScaleIOLike(V1ScaleIOPersistentVolumeSource item) { + return new ScaleIONested(item); + } + + public StorageosNested withNewStorageos() { + return new StorageosNested(null); + } + + public StorageosNested withNewStorageosLike(V1StorageOSPersistentVolumeSource item) { + return new StorageosNested(item); + } + + public VsphereVolumeNested withNewVsphereVolume() { + return new VsphereVolumeNested(null); + } + + public VsphereVolumeNested withNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { + return new VsphereVolumeNested(item); + } + + public A withNfs(V1NFSVolumeSource nfs) { + this._visitables.remove("nfs"); + if (nfs != null) { + this.nfs = new V1NFSVolumeSourceBuilder(nfs); + this._visitables.get("nfs").add(this.nfs); + } else { + this.nfs = null; + this._visitables.get("nfs").remove(this.nfs); } - if (!(quobyte == null)) { - sb.append("quobyte:"); - sb.append(quobyte); - sb.append(","); + return (A) this; + } + + public A withNodeAffinity(V1VolumeNodeAffinity nodeAffinity) { + this._visitables.remove("nodeAffinity"); + if (nodeAffinity != null) { + this.nodeAffinity = new V1VolumeNodeAffinityBuilder(nodeAffinity); + this._visitables.get("nodeAffinity").add(this.nodeAffinity); + } else { + this.nodeAffinity = null; + this._visitables.get("nodeAffinity").remove(this.nodeAffinity); } - if (!(rbd == null)) { - sb.append("rbd:"); - sb.append(rbd); - sb.append(","); + return (A) this; + } + + public A withPersistentVolumeReclaimPolicy(String persistentVolumeReclaimPolicy) { + this.persistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy; + return (A) this; + } + + public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { + this._visitables.remove("photonPersistentDisk"); + if (photonPersistentDisk != null) { + this.photonPersistentDisk = new V1PhotonPersistentDiskVolumeSourceBuilder(photonPersistentDisk); + this._visitables.get("photonPersistentDisk").add(this.photonPersistentDisk); + } else { + this.photonPersistentDisk = null; + this._visitables.get("photonPersistentDisk").remove(this.photonPersistentDisk); } - if (!(scaleIO == null)) { - sb.append("scaleIO:"); - sb.append(scaleIO); - sb.append(","); + return (A) this; + } + + public A withPortworxVolume(V1PortworxVolumeSource portworxVolume) { + this._visitables.remove("portworxVolume"); + if (portworxVolume != null) { + this.portworxVolume = new V1PortworxVolumeSourceBuilder(portworxVolume); + this._visitables.get("portworxVolume").add(this.portworxVolume); + } else { + this.portworxVolume = null; + this._visitables.get("portworxVolume").remove(this.portworxVolume); } - if (!(storageClassName == null)) { - sb.append("storageClassName:"); - sb.append(storageClassName); - sb.append(","); + return (A) this; + } + + public A withQuobyte(V1QuobyteVolumeSource quobyte) { + this._visitables.remove("quobyte"); + if (quobyte != null) { + this.quobyte = new V1QuobyteVolumeSourceBuilder(quobyte); + this._visitables.get("quobyte").add(this.quobyte); + } else { + this.quobyte = null; + this._visitables.get("quobyte").remove(this.quobyte); } - if (!(storageos == null)) { - sb.append("storageos:"); - sb.append(storageos); - sb.append(","); + return (A) this; + } + + public A withRbd(V1RBDPersistentVolumeSource rbd) { + this._visitables.remove("rbd"); + if (rbd != null) { + this.rbd = new V1RBDPersistentVolumeSourceBuilder(rbd); + this._visitables.get("rbd").add(this.rbd); + } else { + this.rbd = null; + this._visitables.get("rbd").remove(this.rbd); } - if (!(volumeAttributesClassName == null)) { - sb.append("volumeAttributesClassName:"); - sb.append(volumeAttributesClassName); - sb.append(","); + return (A) this; + } + + public A withScaleIO(V1ScaleIOPersistentVolumeSource scaleIO) { + this._visitables.remove("scaleIO"); + if (scaleIO != null) { + this.scaleIO = new V1ScaleIOPersistentVolumeSourceBuilder(scaleIO); + this._visitables.get("scaleIO").add(this.scaleIO); + } else { + this.scaleIO = null; + this._visitables.get("scaleIO").remove(this.scaleIO); } - if (!(volumeMode == null)) { - sb.append("volumeMode:"); - sb.append(volumeMode); - sb.append(","); + return (A) this; + } + + public A withStorageClassName(String storageClassName) { + this.storageClassName = storageClassName; + return (A) this; + } + + public A withStorageos(V1StorageOSPersistentVolumeSource storageos) { + this._visitables.remove("storageos"); + if (storageos != null) { + this.storageos = new V1StorageOSPersistentVolumeSourceBuilder(storageos); + this._visitables.get("storageos").add(this.storageos); + } else { + this.storageos = null; + this._visitables.get("storageos").remove(this.storageos); } - if (!(vsphereVolume == null)) { - sb.append("vsphereVolume:"); - sb.append(vsphereVolume); + return (A) this; + } + + public A withVolumeAttributesClassName(String volumeAttributesClassName) { + this.volumeAttributesClassName = volumeAttributesClassName; + return (A) this; + } + + public A withVolumeMode(String volumeMode) { + this.volumeMode = volumeMode; + return (A) this; + } + + public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { + this._visitables.remove("vsphereVolume"); + if (vsphereVolume != null) { + this.vsphereVolume = new V1VsphereVirtualDiskVolumeSourceBuilder(vsphereVolume); + this._visitables.get("vsphereVolume").add(this.vsphereVolume); + } else { + this.vsphereVolume = null; + this._visitables.get("vsphereVolume").remove(this.vsphereVolume); } - sb.append("}"); - return sb.toString(); + return (A) this; } public class AwsElasticBlockStoreNested extends V1AWSElasticBlockStoreVolumeSourceFluent> implements Nested{ + + V1AWSElasticBlockStoreVolumeSourceBuilder builder; + AwsElasticBlockStoreNested(V1AWSElasticBlockStoreVolumeSource item) { this.builder = new V1AWSElasticBlockStoreVolumeSourceBuilder(this, item); } - V1AWSElasticBlockStoreVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withAwsElasticBlockStore(builder.build()); } @@ -1692,14 +1696,15 @@ public N endAwsElasticBlockStore() { return and(); } - } public class AzureDiskNested extends V1AzureDiskVolumeSourceFluent> implements Nested{ + + V1AzureDiskVolumeSourceBuilder builder; + AzureDiskNested(V1AzureDiskVolumeSource item) { this.builder = new V1AzureDiskVolumeSourceBuilder(this, item); } - V1AzureDiskVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withAzureDisk(builder.build()); } @@ -1708,14 +1713,15 @@ public N endAzureDisk() { return and(); } - } public class AzureFileNested extends V1AzureFilePersistentVolumeSourceFluent> implements Nested{ + + V1AzureFilePersistentVolumeSourceBuilder builder; + AzureFileNested(V1AzureFilePersistentVolumeSource item) { this.builder = new V1AzureFilePersistentVolumeSourceBuilder(this, item); } - V1AzureFilePersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withAzureFile(builder.build()); } @@ -1724,14 +1730,15 @@ public N endAzureFile() { return and(); } - } public class CephfsNested extends V1CephFSPersistentVolumeSourceFluent> implements Nested{ + + V1CephFSPersistentVolumeSourceBuilder builder; + CephfsNested(V1CephFSPersistentVolumeSource item) { this.builder = new V1CephFSPersistentVolumeSourceBuilder(this, item); } - V1CephFSPersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withCephfs(builder.build()); } @@ -1740,14 +1747,15 @@ public N endCephfs() { return and(); } - } public class CinderNested extends V1CinderPersistentVolumeSourceFluent> implements Nested{ + + V1CinderPersistentVolumeSourceBuilder builder; + CinderNested(V1CinderPersistentVolumeSource item) { this.builder = new V1CinderPersistentVolumeSourceBuilder(this, item); } - V1CinderPersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withCinder(builder.build()); } @@ -1756,14 +1764,15 @@ public N endCinder() { return and(); } - } public class ClaimRefNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + ClaimRefNested(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withClaimRef(builder.build()); } @@ -1772,14 +1781,15 @@ public N endClaimRef() { return and(); } - } public class CsiNested extends V1CSIPersistentVolumeSourceFluent> implements Nested{ + + V1CSIPersistentVolumeSourceBuilder builder; + CsiNested(V1CSIPersistentVolumeSource item) { this.builder = new V1CSIPersistentVolumeSourceBuilder(this, item); } - V1CSIPersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withCsi(builder.build()); } @@ -1788,14 +1798,15 @@ public N endCsi() { return and(); } - } public class FcNested extends V1FCVolumeSourceFluent> implements Nested{ + + V1FCVolumeSourceBuilder builder; + FcNested(V1FCVolumeSource item) { this.builder = new V1FCVolumeSourceBuilder(this, item); } - V1FCVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withFc(builder.build()); } @@ -1804,14 +1815,15 @@ public N endFc() { return and(); } - } public class FlexVolumeNested extends V1FlexPersistentVolumeSourceFluent> implements Nested{ + + V1FlexPersistentVolumeSourceBuilder builder; + FlexVolumeNested(V1FlexPersistentVolumeSource item) { this.builder = new V1FlexPersistentVolumeSourceBuilder(this, item); } - V1FlexPersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withFlexVolume(builder.build()); } @@ -1820,14 +1832,15 @@ public N endFlexVolume() { return and(); } - } public class FlockerNested extends V1FlockerVolumeSourceFluent> implements Nested{ + + V1FlockerVolumeSourceBuilder builder; + FlockerNested(V1FlockerVolumeSource item) { this.builder = new V1FlockerVolumeSourceBuilder(this, item); } - V1FlockerVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withFlocker(builder.build()); } @@ -1836,14 +1849,15 @@ public N endFlocker() { return and(); } - } public class GcePersistentDiskNested extends V1GCEPersistentDiskVolumeSourceFluent> implements Nested{ + + V1GCEPersistentDiskVolumeSourceBuilder builder; + GcePersistentDiskNested(V1GCEPersistentDiskVolumeSource item) { this.builder = new V1GCEPersistentDiskVolumeSourceBuilder(this, item); } - V1GCEPersistentDiskVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withGcePersistentDisk(builder.build()); } @@ -1852,14 +1866,15 @@ public N endGcePersistentDisk() { return and(); } - } public class GlusterfsNested extends V1GlusterfsPersistentVolumeSourceFluent> implements Nested{ + + V1GlusterfsPersistentVolumeSourceBuilder builder; + GlusterfsNested(V1GlusterfsPersistentVolumeSource item) { this.builder = new V1GlusterfsPersistentVolumeSourceBuilder(this, item); } - V1GlusterfsPersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withGlusterfs(builder.build()); } @@ -1868,14 +1883,15 @@ public N endGlusterfs() { return and(); } - } public class HostPathNested extends V1HostPathVolumeSourceFluent> implements Nested{ + + V1HostPathVolumeSourceBuilder builder; + HostPathNested(V1HostPathVolumeSource item) { this.builder = new V1HostPathVolumeSourceBuilder(this, item); } - V1HostPathVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withHostPath(builder.build()); } @@ -1884,14 +1900,15 @@ public N endHostPath() { return and(); } - } public class IscsiNested extends V1ISCSIPersistentVolumeSourceFluent> implements Nested{ + + V1ISCSIPersistentVolumeSourceBuilder builder; + IscsiNested(V1ISCSIPersistentVolumeSource item) { this.builder = new V1ISCSIPersistentVolumeSourceBuilder(this, item); } - V1ISCSIPersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withIscsi(builder.build()); } @@ -1900,14 +1917,15 @@ public N endIscsi() { return and(); } - } public class LocalNested extends V1LocalVolumeSourceFluent> implements Nested{ + + V1LocalVolumeSourceBuilder builder; + LocalNested(V1LocalVolumeSource item) { this.builder = new V1LocalVolumeSourceBuilder(this, item); } - V1LocalVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withLocal(builder.build()); } @@ -1916,14 +1934,15 @@ public N endLocal() { return and(); } - } public class NfsNested extends V1NFSVolumeSourceFluent> implements Nested{ + + V1NFSVolumeSourceBuilder builder; + NfsNested(V1NFSVolumeSource item) { this.builder = new V1NFSVolumeSourceBuilder(this, item); } - V1NFSVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withNfs(builder.build()); } @@ -1932,14 +1951,15 @@ public N endNfs() { return and(); } - } public class NodeAffinityNested extends V1VolumeNodeAffinityFluent> implements Nested{ + + V1VolumeNodeAffinityBuilder builder; + NodeAffinityNested(V1VolumeNodeAffinity item) { this.builder = new V1VolumeNodeAffinityBuilder(this, item); } - V1VolumeNodeAffinityBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withNodeAffinity(builder.build()); } @@ -1948,14 +1968,15 @@ public N endNodeAffinity() { return and(); } - } public class PhotonPersistentDiskNested extends V1PhotonPersistentDiskVolumeSourceFluent> implements Nested{ + + V1PhotonPersistentDiskVolumeSourceBuilder builder; + PhotonPersistentDiskNested(V1PhotonPersistentDiskVolumeSource item) { this.builder = new V1PhotonPersistentDiskVolumeSourceBuilder(this, item); } - V1PhotonPersistentDiskVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withPhotonPersistentDisk(builder.build()); } @@ -1964,14 +1985,15 @@ public N endPhotonPersistentDisk() { return and(); } - } public class PortworxVolumeNested extends V1PortworxVolumeSourceFluent> implements Nested{ + + V1PortworxVolumeSourceBuilder builder; + PortworxVolumeNested(V1PortworxVolumeSource item) { this.builder = new V1PortworxVolumeSourceBuilder(this, item); } - V1PortworxVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withPortworxVolume(builder.build()); } @@ -1980,14 +2002,15 @@ public N endPortworxVolume() { return and(); } - } public class QuobyteNested extends V1QuobyteVolumeSourceFluent> implements Nested{ + + V1QuobyteVolumeSourceBuilder builder; + QuobyteNested(V1QuobyteVolumeSource item) { this.builder = new V1QuobyteVolumeSourceBuilder(this, item); } - V1QuobyteVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withQuobyte(builder.build()); } @@ -1996,14 +2019,15 @@ public N endQuobyte() { return and(); } - } public class RbdNested extends V1RBDPersistentVolumeSourceFluent> implements Nested{ + + V1RBDPersistentVolumeSourceBuilder builder; + RbdNested(V1RBDPersistentVolumeSource item) { this.builder = new V1RBDPersistentVolumeSourceBuilder(this, item); } - V1RBDPersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withRbd(builder.build()); } @@ -2012,14 +2036,15 @@ public N endRbd() { return and(); } - } public class ScaleIONested extends V1ScaleIOPersistentVolumeSourceFluent> implements Nested{ + + V1ScaleIOPersistentVolumeSourceBuilder builder; + ScaleIONested(V1ScaleIOPersistentVolumeSource item) { this.builder = new V1ScaleIOPersistentVolumeSourceBuilder(this, item); } - V1ScaleIOPersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withScaleIO(builder.build()); } @@ -2028,14 +2053,15 @@ public N endScaleIO() { return and(); } - } public class StorageosNested extends V1StorageOSPersistentVolumeSourceFluent> implements Nested{ + + V1StorageOSPersistentVolumeSourceBuilder builder; + StorageosNested(V1StorageOSPersistentVolumeSource item) { this.builder = new V1StorageOSPersistentVolumeSourceBuilder(this, item); } - V1StorageOSPersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withStorageos(builder.build()); } @@ -2044,14 +2070,15 @@ public N endStorageos() { return and(); } - } public class VsphereVolumeNested extends V1VsphereVirtualDiskVolumeSourceFluent> implements Nested{ + + V1VsphereVirtualDiskVolumeSourceBuilder builder; + VsphereVolumeNested(V1VsphereVirtualDiskVolumeSource item) { this.builder = new V1VsphereVirtualDiskVolumeSourceBuilder(this, item); } - V1VsphereVirtualDiskVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withVsphereVolume(builder.build()); } @@ -2060,7 +2087,5 @@ public N endVsphereVolume() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java index 79d2da188a..222200f8df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PersistentVolumeStatusBuilder extends V1PersistentVolumeStatusFluent implements VisitableBuilder{ + + V1PersistentVolumeStatusFluent fluent; + public V1PersistentVolumeStatusBuilder() { this(new V1PersistentVolumeStatus()); } @@ -11,17 +14,16 @@ public V1PersistentVolumeStatusBuilder(V1PersistentVolumeStatusFluent fluent) this(fluent, new V1PersistentVolumeStatus()); } - public V1PersistentVolumeStatusBuilder(V1PersistentVolumeStatusFluent fluent,V1PersistentVolumeStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeStatusBuilder(V1PersistentVolumeStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeStatusFluent fluent; + public V1PersistentVolumeStatusBuilder(V1PersistentVolumeStatusFluent fluent,V1PersistentVolumeStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeStatus build() { V1PersistentVolumeStatus buildable = new V1PersistentVolumeStatus(); buildable.setLastPhaseTransitionTime(fluent.getLastPhaseTransitionTime()); @@ -31,5 +33,4 @@ public V1PersistentVolumeStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java index a224915086..4c91b8709c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1PersistentVolumeStatusFluent> extends BaseFluent{ + + private OffsetDateTime lastPhaseTransitionTime; + private String message; + private String phase; + private String reason; + public V1PersistentVolumeStatusFluent() { } public V1PersistentVolumeStatusFluent(V1PersistentVolumeStatus instance) { this.copyInstance(instance); } - private OffsetDateTime lastPhaseTransitionTime; - private String message; - private String phase; - private String reason; - + protected void copyInstance(V1PersistentVolumeStatus instance) { instance = instance != null ? instance : new V1PersistentVolumeStatus(); if (instance != null) { @@ -34,58 +36,6 @@ protected void copyInstance(V1PersistentVolumeStatus instance) { } } - public OffsetDateTime getLastPhaseTransitionTime() { - return this.lastPhaseTransitionTime; - } - - public A withLastPhaseTransitionTime(OffsetDateTime lastPhaseTransitionTime) { - this.lastPhaseTransitionTime = lastPhaseTransitionTime; - return (A) this; - } - - public boolean hasLastPhaseTransitionTime() { - return this.lastPhaseTransitionTime != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getPhase() { - return this.phase; - } - - public A withPhase(String phase) { - this.phase = phase; - return (A) this; - } - - public boolean hasPhase() { - return this.phase != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -112,6 +62,38 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getLastPhaseTransitionTime() { + return this.lastPhaseTransitionTime; + } + + public String getMessage() { + return this.message; + } + + public String getPhase() { + return this.phase; + } + + public String getReason() { + return this.reason; + } + + public boolean hasLastPhaseTransitionTime() { + return this.lastPhaseTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasPhase() { + return this.phase != null; + } + + public boolean hasReason() { + return this.reason != null; + } + public int hashCode() { return Objects.hash(lastPhaseTransitionTime, message, phase, reason); } @@ -142,5 +124,24 @@ public String toString() { return sb.toString(); } - + public A withLastPhaseTransitionTime(OffsetDateTime lastPhaseTransitionTime) { + this.lastPhaseTransitionTime = lastPhaseTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withPhase(String phase) { + this.phase = phase; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java index 6d0395bfcb..e27701b0a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PhotonPersistentDiskVolumeSourceBuilder extends V1PhotonPersistentDiskVolumeSourceFluent implements VisitableBuilder{ + + V1PhotonPersistentDiskVolumeSourceFluent fluent; + public V1PhotonPersistentDiskVolumeSourceBuilder() { this(new V1PhotonPersistentDiskVolumeSource()); } @@ -11,17 +14,16 @@ public V1PhotonPersistentDiskVolumeSourceBuilder(V1PhotonPersistentDiskVolumeSou this(fluent, new V1PhotonPersistentDiskVolumeSource()); } - public V1PhotonPersistentDiskVolumeSourceBuilder(V1PhotonPersistentDiskVolumeSourceFluent fluent,V1PhotonPersistentDiskVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PhotonPersistentDiskVolumeSourceBuilder(V1PhotonPersistentDiskVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1PhotonPersistentDiskVolumeSourceFluent fluent; + public V1PhotonPersistentDiskVolumeSourceBuilder(V1PhotonPersistentDiskVolumeSourceFluent fluent,V1PhotonPersistentDiskVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PhotonPersistentDiskVolumeSource build() { V1PhotonPersistentDiskVolumeSource buildable = new V1PhotonPersistentDiskVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -29,5 +31,4 @@ public V1PhotonPersistentDiskVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java index db692a8c04..3cf208df58 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1PhotonPersistentDiskVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private String pdID; + public V1PhotonPersistentDiskVolumeSourceFluent() { } public V1PhotonPersistentDiskVolumeSourceFluent(V1PhotonPersistentDiskVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private String pdID; - + protected void copyInstance(V1PhotonPersistentDiskVolumeSource instance) { instance = instance != null ? instance : new V1PhotonPersistentDiskVolumeSource(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1PhotonPersistentDiskVolumeSource instance) { } } - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; - } - - public boolean hasFsType() { - return this.fsType != null; - } - - public String getPdID() { - return this.pdID; - } - - public A withPdID(String pdID) { - this.pdID = pdID; - return (A) this; - } - - public boolean hasPdID() { - return this.pdID != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getFsType() { + return this.fsType; + } + + public String getPdID() { + return this.pdID; + } + + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasPdID() { + return this.pdID != null; + } + public int hashCode() { return Objects.hash(fsType, pdID); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withPdID(String pdID) { + this.pdID = pdID; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java index 6a2d053e73..d50406ba49 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodAffinityBuilder extends V1PodAffinityFluent implements VisitableBuilder{ + + V1PodAffinityFluent fluent; + public V1PodAffinityBuilder() { this(new V1PodAffinity()); } @@ -11,17 +14,16 @@ public V1PodAffinityBuilder(V1PodAffinityFluent fluent) { this(fluent, new V1PodAffinity()); } - public V1PodAffinityBuilder(V1PodAffinityFluent fluent,V1PodAffinity instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodAffinityBuilder(V1PodAffinity instance) { this.fluent = this; this.copyInstance(instance); } - V1PodAffinityFluent fluent; + public V1PodAffinityBuilder(V1PodAffinityFluent fluent,V1PodAffinity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodAffinity build() { V1PodAffinity buildable = new V1PodAffinity(); buildable.setPreferredDuringSchedulingIgnoredDuringExecution(fluent.buildPreferredDuringSchedulingIgnoredDuringExecution()); @@ -29,5 +31,4 @@ public V1PodAffinity build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java index 29cab6c418..4ea8886355 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java @@ -1,71 +1,75 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodAffinityFluent> extends BaseFluent{ + + private ArrayList preferredDuringSchedulingIgnoredDuringExecution; + private ArrayList requiredDuringSchedulingIgnoredDuringExecution; + public V1PodAffinityFluent() { } public V1PodAffinityFluent(V1PodAffinity instance) { this.copyInstance(instance); } - private ArrayList preferredDuringSchedulingIgnoredDuringExecution; - private ArrayList requiredDuringSchedulingIgnoredDuringExecution; - - protected void copyInstance(V1PodAffinity instance) { - instance = instance != null ? instance : new V1PodAffinity(); - if (instance != null) { - this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - } - } - - public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { + + public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.add(builder); - } else { + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); } return (A) this; } - public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + public A addAllToRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.add(builder); - } else { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); } return (A) this; } + public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution() { + return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, null); + } + + public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item) { + return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, item); + } + + public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecution() { + return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, null); + } + + public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item) { + return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, item); + } + public A addToPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... items) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); @@ -78,74 +82,64 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffin return (A) this; } - public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { + public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } - for (V1WeightedPodAffinityTerm item : items) { - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); - } - return (A) this; - } - - public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - return (A) this; - } - for (V1WeightedPodAffinityTerm item : items) { - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); - this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); } return (A) this; } - public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - return (A) this; + public A addToRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm... items) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } - for (V1WeightedPodAffinityTerm item : items) { - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); - this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); } return (A) this; } - public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - if (preferredDuringSchedulingIgnoredDuringExecution == null) { - return (A) this; + public A addToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } - Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); - List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); - while (each.hasNext()) { - V1WeightedPodAffinityTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(index, builder); } return (A) this; } - public List buildPreferredDuringSchedulingIgnoredDuringExecution() { - return this.preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; - } - - public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution(int index) { - return this.preferredDuringSchedulingIgnoredDuringExecution.get(index).build(); - } - public V1WeightedPodAffinityTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution() { return this.preferredDuringSchedulingIgnoredDuringExecution.get(0).build(); } + public V1PodAffinityTerm buildFirstRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution.get(0).build(); + } + public V1WeightedPodAffinityTerm buildLastPreferredDuringSchedulingIgnoredDuringExecution() { return this.preferredDuringSchedulingIgnoredDuringExecution.get(preferredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); } + public V1PodAffinityTerm buildLastRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution.get(requiredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); + } + public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { if (predicate.test(item)) { @@ -155,64 +149,37 @@ public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDu return null; } - public boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { + public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").clear(); - } - if (preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); - for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { - this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); + return item.build(); } - } else { - this.preferredDuringSchedulingIgnoredDuringExecution = null; - } - return (A) this; - } - - public A withPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... preferredDuringSchedulingIgnoredDuringExecution) { - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution.clear(); - _visitables.remove("preferredDuringSchedulingIgnoredDuringExecution"); - } - if (preferredDuringSchedulingIgnoredDuringExecution != null) { - for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { - this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } - } - return (A) this; + return null; } - public boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { - return this.preferredDuringSchedulingIgnoredDuringExecution != null && !(this.preferredDuringSchedulingIgnoredDuringExecution.isEmpty()); + public List buildPreferredDuringSchedulingIgnoredDuringExecution() { + return this.preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; } - public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution() { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, null); + public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution(int index) { + return this.preferredDuringSchedulingIgnoredDuringExecution.get(index).build(); } - public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item) { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, item); + public List buildRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution != null ? build(requiredDuringSchedulingIgnoredDuringExecution) : null; } - public PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(int index,V1WeightedPodAffinityTerm item) { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(index, item); + public V1PodAffinityTerm buildRequiredDuringSchedulingIgnoredDuringExecution(int index) { + return this.requiredDuringSchedulingIgnoredDuringExecution.get(index).build(); } - public PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(int index) { - if (index <= preferredDuringSchedulingIgnoredDuringExecution.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "preferredDuringSchedulingIgnoredDuringExecution")); + protected void copyInstance(V1PodAffinity instance) { + instance = instance != null ? instance : new V1PodAffinity(); + if (instance != null) { + this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); + this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); } - return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } public PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution() { @@ -222,6 +189,13 @@ public PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferr return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(0, this.buildPreferredDuringSchedulingIgnoredDuringExecution(0)); } + public RequiredDuringSchedulingIgnoredDuringExecutionNested editFirstRequiredDuringSchedulingIgnoredDuringExecution() { + if (requiredDuringSchedulingIgnoredDuringExecution.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requiredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(0, this.buildRequiredDuringSchedulingIgnoredDuringExecution(0)); + } + public PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution() { int index = preferredDuringSchedulingIgnoredDuringExecution.size() - 1; if (index < 0) { @@ -230,6 +204,14 @@ public PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferre return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } + public RequiredDuringSchedulingIgnoredDuringExecutionNested editLastRequiredDuringSchedulingIgnoredDuringExecution() { + int index = requiredDuringSchedulingIgnoredDuringExecution.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requiredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); + } + public PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { int index = -1; for (int i = 0;i < preferredDuringSchedulingIgnoredDuringExecution.size();i++) { @@ -244,56 +226,116 @@ public PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPref return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - public A addToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + public RequiredDuringSchedulingIgnoredDuringExecutionNested editMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + int index = -1; + for (int i = 0;i < requiredDuringSchedulingIgnoredDuringExecution.size();i++) { + if (predicate.test(requiredDuringSchedulingIgnoredDuringExecution.get(i))) { + index = i; + break; + } } - V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - requiredDuringSchedulingIgnoredDuringExecution.add(builder); - } else { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - requiredDuringSchedulingIgnoredDuringExecution.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requiredDuringSchedulingIgnoredDuringExecution")); } - return (A) this; + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } - public A setToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + public PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(int index) { + if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "preferredDuringSchedulingIgnoredDuringExecution")); } - V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - requiredDuringSchedulingIgnoredDuringExecution.add(builder); - } else { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - requiredDuringSchedulingIgnoredDuringExecution.set(index, builder); + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + } + + public RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution(int index) { + if (requiredDuringSchedulingIgnoredDuringExecution.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requiredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodAffinityFluent that = (V1PodAffinityFluent) o; + if (!(Objects.equals(preferredDuringSchedulingIgnoredDuringExecution, that.preferredDuringSchedulingIgnoredDuringExecution))) { + return false; + } + if (!(Objects.equals(requiredDuringSchedulingIgnoredDuringExecution, that.requiredDuringSchedulingIgnoredDuringExecution))) { + return false; + } + return true; + } + + public boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { + return this.preferredDuringSchedulingIgnoredDuringExecution != null && !(this.preferredDuringSchedulingIgnoredDuringExecution.isEmpty()); + } + + public boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution != null && !(this.requiredDuringSchedulingIgnoredDuringExecution.isEmpty()); + } + + public int hashCode() { + return Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution); + } + + public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); } return (A) this; } - public A addToRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm... items) { + public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + return (A) this; } for (V1PodAffinityTerm item : items) { V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); } return (A) this; } - public A addAllToRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; } - for (V1PodAffinityTerm item : items) { - V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); } return (A) this; } @@ -310,14 +352,18 @@ public A removeFromRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityT return (A) this; } - public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + if (preferredDuringSchedulingIgnoredDuringExecution == null) { return (A) this; } - for (V1PodAffinityTerm item : items) { - V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); - this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); + Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); + List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); + while (each.hasNext()) { + V1WeightedPodAffinityTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -338,38 +384,86 @@ public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution(Predic return (A) this; } - public List buildRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution != null ? build(requiredDuringSchedulingIgnoredDuringExecution) : null; + public PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(int index,V1WeightedPodAffinityTerm item) { + return new PreferredDuringSchedulingIgnoredDuringExecutionNested(index, item); } - public V1PodAffinityTerm buildRequiredDuringSchedulingIgnoredDuringExecution(int index) { - return this.requiredDuringSchedulingIgnoredDuringExecution.get(index).build(); + public RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(int index,V1PodAffinityTerm item) { + return new RequiredDuringSchedulingIgnoredDuringExecutionNested(index, item); } - public V1PodAffinityTerm buildFirstRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution.get(0).build(); + public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } + return (A) this; } - public V1PodAffinityTerm buildLastRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution.get(requiredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); + public A setToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } + return (A) this; } - public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(preferredDuringSchedulingIgnoredDuringExecution == null) && !(preferredDuringSchedulingIgnoredDuringExecution.isEmpty())) { + sb.append("preferredDuringSchedulingIgnoredDuringExecution:"); + sb.append(preferredDuringSchedulingIgnoredDuringExecution); + sb.append(","); + } + if (!(requiredDuringSchedulingIgnoredDuringExecution == null) && !(requiredDuringSchedulingIgnoredDuringExecution.isEmpty())) { + sb.append("requiredDuringSchedulingIgnoredDuringExecution:"); + sb.append(requiredDuringSchedulingIgnoredDuringExecution); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return true; + public A withPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { + this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").clear(); + } + if (preferredDuringSchedulingIgnoredDuringExecution != null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { + this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } + } else { + this.preferredDuringSchedulingIgnoredDuringExecution = null; + } + return (A) this; + } + + public A withPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... preferredDuringSchedulingIgnoredDuringExecution) { + if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { + this.preferredDuringSchedulingIgnoredDuringExecution.clear(); + _visitables.remove("preferredDuringSchedulingIgnoredDuringExecution"); + } + if (preferredDuringSchedulingIgnoredDuringExecution != null) { + for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { + this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } - return false; + } + return (A) this; } public A withRequiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { @@ -399,106 +493,16 @@ public A withRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm... } return (A) this; } + public class PreferredDuringSchedulingIgnoredDuringExecutionNested extends V1WeightedPodAffinityTermFluent> implements Nested{ - public boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution != null && !(this.requiredDuringSchedulingIgnoredDuringExecution.isEmpty()); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecution() { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, null); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item) { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, item); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(int index,V1PodAffinityTerm item) { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(index, item); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution(int index) { - if (index <= requiredDuringSchedulingIgnoredDuringExecution.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requiredDuringSchedulingIgnoredDuringExecution")); - } - return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editFirstRequiredDuringSchedulingIgnoredDuringExecution() { - if (requiredDuringSchedulingIgnoredDuringExecution.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requiredDuringSchedulingIgnoredDuringExecution")); - } - return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(0, this.buildRequiredDuringSchedulingIgnoredDuringExecution(0)); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editLastRequiredDuringSchedulingIgnoredDuringExecution() { - int index = requiredDuringSchedulingIgnoredDuringExecution.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requiredDuringSchedulingIgnoredDuringExecution")); - } - return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - int index = -1; - for (int i = 0;i < requiredDuringSchedulingIgnoredDuringExecution.size();i++) { - if (predicate.test(requiredDuringSchedulingIgnoredDuringExecution.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requiredDuringSchedulingIgnoredDuringExecution")); - } - return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1PodAffinityFluent that = (V1PodAffinityFluent) o; - if (!(Objects.equals(preferredDuringSchedulingIgnoredDuringExecution, that.preferredDuringSchedulingIgnoredDuringExecution))) { - return false; - } - if (!(Objects.equals(requiredDuringSchedulingIgnoredDuringExecution, that.requiredDuringSchedulingIgnoredDuringExecution))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution); - } + V1WeightedPodAffinityTermBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(preferredDuringSchedulingIgnoredDuringExecution == null) && !(preferredDuringSchedulingIgnoredDuringExecution.isEmpty())) { - sb.append("preferredDuringSchedulingIgnoredDuringExecution:"); - sb.append(preferredDuringSchedulingIgnoredDuringExecution); - sb.append(","); - } - if (!(requiredDuringSchedulingIgnoredDuringExecution == null) && !(requiredDuringSchedulingIgnoredDuringExecution.isEmpty())) { - sb.append("requiredDuringSchedulingIgnoredDuringExecution:"); - sb.append(requiredDuringSchedulingIgnoredDuringExecution); - } - sb.append("}"); - return sb.toString(); - } - public class PreferredDuringSchedulingIgnoredDuringExecutionNested extends V1WeightedPodAffinityTermFluent> implements Nested{ PreferredDuringSchedulingIgnoredDuringExecutionNested(int index,V1WeightedPodAffinityTerm item) { this.index = index; this.builder = new V1WeightedPodAffinityTermBuilder(this, item); } - V1WeightedPodAffinityTermBuilder builder; - int index; - + public N and() { return (N) V1PodAffinityFluent.this.setToPreferredDuringSchedulingIgnoredDuringExecution(index, builder.build()); } @@ -507,16 +511,17 @@ public N endPreferredDuringSchedulingIgnoredDuringExecution() { return and(); } - } public class RequiredDuringSchedulingIgnoredDuringExecutionNested extends V1PodAffinityTermFluent> implements Nested{ + + V1PodAffinityTermBuilder builder; + int index; + RequiredDuringSchedulingIgnoredDuringExecutionNested(int index,V1PodAffinityTerm item) { this.index = index; this.builder = new V1PodAffinityTermBuilder(this, item); } - V1PodAffinityTermBuilder builder; - int index; - + public N and() { return (N) V1PodAffinityFluent.this.setToRequiredDuringSchedulingIgnoredDuringExecution(index, builder.build()); } @@ -525,7 +530,5 @@ public N endRequiredDuringSchedulingIgnoredDuringExecution() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java index 7f8b844065..fa075184c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodAffinityTermBuilder extends V1PodAffinityTermFluent implements VisitableBuilder{ + + V1PodAffinityTermFluent fluent; + public V1PodAffinityTermBuilder() { this(new V1PodAffinityTerm()); } @@ -11,17 +14,16 @@ public V1PodAffinityTermBuilder(V1PodAffinityTermFluent fluent) { this(fluent, new V1PodAffinityTerm()); } - public V1PodAffinityTermBuilder(V1PodAffinityTermFluent fluent,V1PodAffinityTerm instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodAffinityTermBuilder(V1PodAffinityTerm instance) { this.fluent = this; this.copyInstance(instance); } - V1PodAffinityTermFluent fluent; + public V1PodAffinityTermBuilder(V1PodAffinityTermFluent fluent,V1PodAffinityTerm instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodAffinityTerm build() { V1PodAffinityTerm buildable = new V1PodAffinityTerm(); buildable.setLabelSelector(fluent.buildLabelSelector()); @@ -33,5 +35,4 @@ public V1PodAffinityTerm build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java index 09994e26f5..22957c07cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java @@ -1,101 +1,65 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodAffinityTermFluent> extends BaseFluent{ - public V1PodAffinityTermFluent() { - } - - public V1PodAffinityTermFluent(V1PodAffinityTerm instance) { - this.copyInstance(instance); - } + private V1LabelSelectorBuilder labelSelector; private List matchLabelKeys; private List mismatchLabelKeys; private V1LabelSelectorBuilder namespaceSelector; private List namespaces; private String topologyKey; - - protected void copyInstance(V1PodAffinityTerm instance) { - instance = instance != null ? instance : new V1PodAffinityTerm(); - if (instance != null) { - this.withLabelSelector(instance.getLabelSelector()); - this.withMatchLabelKeys(instance.getMatchLabelKeys()); - this.withMismatchLabelKeys(instance.getMismatchLabelKeys()); - this.withNamespaceSelector(instance.getNamespaceSelector()); - this.withNamespaces(instance.getNamespaces()); - this.withTopologyKey(instance.getTopologyKey()); - } + + public V1PodAffinityTermFluent() { } - public V1LabelSelector buildLabelSelector() { - return this.labelSelector != null ? this.labelSelector.build() : null; + public V1PodAffinityTermFluent(V1PodAffinityTerm instance) { + this.copyInstance(instance); } - - public A withLabelSelector(V1LabelSelector labelSelector) { - this._visitables.remove("labelSelector"); - if (labelSelector != null) { - this.labelSelector = new V1LabelSelectorBuilder(labelSelector); - this._visitables.get("labelSelector").add(this.labelSelector); - } else { - this.labelSelector = null; - this._visitables.get("labelSelector").remove(this.labelSelector); + + public A addAllToMatchLabelKeys(Collection items) { + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } + for (String item : items) { + this.matchLabelKeys.add(item); } return (A) this; } - public boolean hasLabelSelector() { - return this.labelSelector != null; - } - - public LabelSelectorNested withNewLabelSelector() { - return new LabelSelectorNested(null); - } - - public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { - return new LabelSelectorNested(item); - } - - public LabelSelectorNested editLabelSelector() { - return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(null)); - } - - public LabelSelectorNested editOrNewLabelSelector() { - return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(new V1LabelSelectorBuilder().build())); - } - - public LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelector item) { - return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(item)); - } - - public A addToMatchLabelKeys(int index,String item) { - if (this.matchLabelKeys == null) { - this.matchLabelKeys = new ArrayList(); + public A addAllToMismatchLabelKeys(Collection items) { + if (this.mismatchLabelKeys == null) { + this.mismatchLabelKeys = new ArrayList(); + } + for (String item : items) { + this.mismatchLabelKeys.add(item); } - this.matchLabelKeys.add(index, item); return (A) this; } - public A setToMatchLabelKeys(int index,String item) { - if (this.matchLabelKeys == null) { - this.matchLabelKeys = new ArrayList(); + public A addAllToNamespaces(Collection items) { + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } + for (String item : items) { + this.namespaces.add(item); } - this.matchLabelKeys.set(index, item); return (A) this; } @@ -109,52 +73,158 @@ public A addToMatchLabelKeys(String... items) { return (A) this; } - public A addAllToMatchLabelKeys(Collection items) { + public A addToMatchLabelKeys(int index,String item) { if (this.matchLabelKeys == null) { this.matchLabelKeys = new ArrayList(); } - for (String item : items) { - this.matchLabelKeys.add(item); - } + this.matchLabelKeys.add(index, item); return (A) this; } - public A removeFromMatchLabelKeys(String... items) { - if (this.matchLabelKeys == null) { - return (A) this; + public A addToMismatchLabelKeys(String... items) { + if (this.mismatchLabelKeys == null) { + this.mismatchLabelKeys = new ArrayList(); } for (String item : items) { - this.matchLabelKeys.remove(item); + this.mismatchLabelKeys.add(item); } return (A) this; } - public A removeAllFromMatchLabelKeys(Collection items) { - if (this.matchLabelKeys == null) { - return (A) this; + public A addToMismatchLabelKeys(int index,String item) { + if (this.mismatchLabelKeys == null) { + this.mismatchLabelKeys = new ArrayList(); + } + this.mismatchLabelKeys.add(index, item); + return (A) this; + } + + public A addToNamespaces(String... items) { + if (this.namespaces == null) { + this.namespaces = new ArrayList(); } for (String item : items) { - this.matchLabelKeys.remove(item); + this.namespaces.add(item); } return (A) this; } - public List getMatchLabelKeys() { - return this.matchLabelKeys; + public A addToNamespaces(int index,String item) { + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } + this.namespaces.add(index, item); + return (A) this; } - public String getMatchLabelKey(int index) { - return this.matchLabelKeys.get(index); + public V1LabelSelector buildLabelSelector() { + return this.labelSelector != null ? this.labelSelector.build() : null; + } + + public V1LabelSelector buildNamespaceSelector() { + return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + } + + protected void copyInstance(V1PodAffinityTerm instance) { + instance = instance != null ? instance : new V1PodAffinityTerm(); + if (instance != null) { + this.withLabelSelector(instance.getLabelSelector()); + this.withMatchLabelKeys(instance.getMatchLabelKeys()); + this.withMismatchLabelKeys(instance.getMismatchLabelKeys()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withNamespaces(instance.getNamespaces()); + this.withTopologyKey(instance.getTopologyKey()); + } + } + + public LabelSelectorNested editLabelSelector() { + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(null)); + } + + public NamespaceSelectorNested editNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); + } + + public LabelSelectorNested editOrNewLabelSelector() { + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(new V1LabelSelectorBuilder().build())); + } + + public LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelector item) { + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(item)); + } + + public NamespaceSelectorNested editOrNewNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + } + + public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodAffinityTermFluent that = (V1PodAffinityTermFluent) o; + if (!(Objects.equals(labelSelector, that.labelSelector))) { + return false; + } + if (!(Objects.equals(matchLabelKeys, that.matchLabelKeys))) { + return false; + } + if (!(Objects.equals(mismatchLabelKeys, that.mismatchLabelKeys))) { + return false; + } + if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { + return false; + } + if (!(Objects.equals(namespaces, that.namespaces))) { + return false; + } + if (!(Objects.equals(topologyKey, that.topologyKey))) { + return false; + } + return true; } public String getFirstMatchLabelKey() { return this.matchLabelKeys.get(0); } + public String getFirstMismatchLabelKey() { + return this.mismatchLabelKeys.get(0); + } + + public String getFirstNamespace() { + return this.namespaces.get(0); + } + public String getLastMatchLabelKey() { return this.matchLabelKeys.get(matchLabelKeys.size() - 1); } + public String getLastMismatchLabelKey() { + return this.mismatchLabelKeys.get(mismatchLabelKeys.size() - 1); + } + + public String getLastNamespace() { + return this.namespaces.get(namespaces.size() - 1); + } + + public String getMatchLabelKey(int index) { + return this.matchLabelKeys.get(index); + } + + public List getMatchLabelKeys() { + return this.matchLabelKeys; + } + public String getMatchingMatchLabelKey(Predicate predicate) { for (String item : matchLabelKeys) { if (predicate.test(item)) { @@ -164,6 +234,52 @@ public String getMatchingMatchLabelKey(Predicate predicate) { return null; } + public String getMatchingMismatchLabelKey(Predicate predicate) { + for (String item : mismatchLabelKeys) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingNamespace(Predicate predicate) { + for (String item : namespaces) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMismatchLabelKey(int index) { + return this.mismatchLabelKeys.get(index); + } + + public List getMismatchLabelKeys() { + return this.mismatchLabelKeys; + } + + public String getNamespace(int index) { + return this.namespaces.get(index); + } + + public List getNamespaces() { + return this.namespaces; + } + + public String getTopologyKey() { + return this.topologyKey; + } + + public boolean hasLabelSelector() { + return this.labelSelector != null; + } + + public boolean hasMatchLabelKeys() { + return this.matchLabelKeys != null && !(this.matchLabelKeys.isEmpty()); + } + public boolean hasMatchingMatchLabelKey(Predicate predicate) { for (String item : matchLabelKeys) { if (predicate.test(item)) { @@ -173,67 +289,80 @@ public boolean hasMatchingMatchLabelKey(Predicate predicate) { return false; } - public A withMatchLabelKeys(List matchLabelKeys) { - if (matchLabelKeys != null) { - this.matchLabelKeys = new ArrayList(); - for (String item : matchLabelKeys) { - this.addToMatchLabelKeys(item); + public boolean hasMatchingMismatchLabelKey(Predicate predicate) { + for (String item : mismatchLabelKeys) { + if (predicate.test(item)) { + return true; } - } else { - this.matchLabelKeys = null; - } - return (A) this; + } + return false; } - public A withMatchLabelKeys(String... matchLabelKeys) { - if (this.matchLabelKeys != null) { - this.matchLabelKeys.clear(); - _visitables.remove("matchLabelKeys"); - } - if (matchLabelKeys != null) { - for (String item : matchLabelKeys) { - this.addToMatchLabelKeys(item); + public boolean hasMatchingNamespace(Predicate predicate) { + for (String item : namespaces) { + if (predicate.test(item)) { + return true; + } } - } - return (A) this; + return false; } - public boolean hasMatchLabelKeys() { - return this.matchLabelKeys != null && !(this.matchLabelKeys.isEmpty()); + public boolean hasMismatchLabelKeys() { + return this.mismatchLabelKeys != null && !(this.mismatchLabelKeys.isEmpty()); } - public A addToMismatchLabelKeys(int index,String item) { - if (this.mismatchLabelKeys == null) { - this.mismatchLabelKeys = new ArrayList(); + public boolean hasNamespaceSelector() { + return this.namespaceSelector != null; + } + + public boolean hasNamespaces() { + return this.namespaces != null && !(this.namespaces.isEmpty()); + } + + public boolean hasTopologyKey() { + return this.topologyKey != null; + } + + public int hashCode() { + return Objects.hash(labelSelector, matchLabelKeys, mismatchLabelKeys, namespaceSelector, namespaces, topologyKey); + } + + public A removeAllFromMatchLabelKeys(Collection items) { + if (this.matchLabelKeys == null) { + return (A) this; + } + for (String item : items) { + this.matchLabelKeys.remove(item); } - this.mismatchLabelKeys.add(index, item); return (A) this; } - public A setToMismatchLabelKeys(int index,String item) { + public A removeAllFromMismatchLabelKeys(Collection items) { if (this.mismatchLabelKeys == null) { - this.mismatchLabelKeys = new ArrayList(); + return (A) this; + } + for (String item : items) { + this.mismatchLabelKeys.remove(item); } - this.mismatchLabelKeys.set(index, item); return (A) this; } - public A addToMismatchLabelKeys(String... items) { - if (this.mismatchLabelKeys == null) { - this.mismatchLabelKeys = new ArrayList(); + public A removeAllFromNamespaces(Collection items) { + if (this.namespaces == null) { + return (A) this; } for (String item : items) { - this.mismatchLabelKeys.add(item); + this.namespaces.remove(item); } return (A) this; } - public A addAllToMismatchLabelKeys(Collection items) { - if (this.mismatchLabelKeys == null) { - this.mismatchLabelKeys = new ArrayList(); + public A removeFromMatchLabelKeys(String... items) { + if (this.matchLabelKeys == null) { + return (A) this; } for (String item : items) { - this.mismatchLabelKeys.add(item); + this.matchLabelKeys.remove(item); } return (A) this; } @@ -248,48 +377,111 @@ public A removeFromMismatchLabelKeys(String... items) { return (A) this; } - public A removeAllFromMismatchLabelKeys(Collection items) { - if (this.mismatchLabelKeys == null) { + public A removeFromNamespaces(String... items) { + if (this.namespaces == null) { return (A) this; } for (String item : items) { - this.mismatchLabelKeys.remove(item); + this.namespaces.remove(item); } return (A) this; } - public List getMismatchLabelKeys() { - return this.mismatchLabelKeys; + public A setToMatchLabelKeys(int index,String item) { + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } + this.matchLabelKeys.set(index, item); + return (A) this; } - public String getMismatchLabelKey(int index) { - return this.mismatchLabelKeys.get(index); + public A setToMismatchLabelKeys(int index,String item) { + if (this.mismatchLabelKeys == null) { + this.mismatchLabelKeys = new ArrayList(); + } + this.mismatchLabelKeys.set(index, item); + return (A) this; } - public String getFirstMismatchLabelKey() { - return this.mismatchLabelKeys.get(0); + public A setToNamespaces(int index,String item) { + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } + this.namespaces.set(index, item); + return (A) this; } - public String getLastMismatchLabelKey() { - return this.mismatchLabelKeys.get(mismatchLabelKeys.size() - 1); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(labelSelector == null)) { + sb.append("labelSelector:"); + sb.append(labelSelector); + sb.append(","); + } + if (!(matchLabelKeys == null) && !(matchLabelKeys.isEmpty())) { + sb.append("matchLabelKeys:"); + sb.append(matchLabelKeys); + sb.append(","); + } + if (!(mismatchLabelKeys == null) && !(mismatchLabelKeys.isEmpty())) { + sb.append("mismatchLabelKeys:"); + sb.append(mismatchLabelKeys); + sb.append(","); + } + if (!(namespaceSelector == null)) { + sb.append("namespaceSelector:"); + sb.append(namespaceSelector); + sb.append(","); + } + if (!(namespaces == null) && !(namespaces.isEmpty())) { + sb.append("namespaces:"); + sb.append(namespaces); + sb.append(","); + } + if (!(topologyKey == null)) { + sb.append("topologyKey:"); + sb.append(topologyKey); + } + sb.append("}"); + return sb.toString(); + } + + public A withLabelSelector(V1LabelSelector labelSelector) { + this._visitables.remove("labelSelector"); + if (labelSelector != null) { + this.labelSelector = new V1LabelSelectorBuilder(labelSelector); + this._visitables.get("labelSelector").add(this.labelSelector); + } else { + this.labelSelector = null; + this._visitables.get("labelSelector").remove(this.labelSelector); + } + return (A) this; } - public String getMatchingMismatchLabelKey(Predicate predicate) { - for (String item : mismatchLabelKeys) { - if (predicate.test(item)) { - return item; + public A withMatchLabelKeys(List matchLabelKeys) { + if (matchLabelKeys != null) { + this.matchLabelKeys = new ArrayList(); + for (String item : matchLabelKeys) { + this.addToMatchLabelKeys(item); } - } - return null; + } else { + this.matchLabelKeys = null; + } + return (A) this; } - public boolean hasMatchingMismatchLabelKey(Predicate predicate) { - for (String item : mismatchLabelKeys) { - if (predicate.test(item)) { - return true; - } + public A withMatchLabelKeys(String... matchLabelKeys) { + if (this.matchLabelKeys != null) { + this.matchLabelKeys.clear(); + _visitables.remove("matchLabelKeys"); + } + if (matchLabelKeys != null) { + for (String item : matchLabelKeys) { + this.addToMatchLabelKeys(item); } - return false; + } + return (A) this; } public A withMismatchLabelKeys(List mismatchLabelKeys) { @@ -317,14 +509,6 @@ public A withMismatchLabelKeys(String... mismatchLabelKeys) { return (A) this; } - public boolean hasMismatchLabelKeys() { - return this.mismatchLabelKeys != null && !(this.mismatchLabelKeys.isEmpty()); - } - - public V1LabelSelector buildNamespaceSelector() { - return this.namespaceSelector != null ? this.namespaceSelector.build() : null; - } - public A withNamespaceSelector(V1LabelSelector namespaceSelector) { this._visitables.remove("namespaceSelector"); if (namespaceSelector != null) { @@ -337,120 +521,6 @@ public A withNamespaceSelector(V1LabelSelector namespaceSelector) { return (A) this; } - public boolean hasNamespaceSelector() { - return this.namespaceSelector != null; - } - - public NamespaceSelectorNested withNewNamespaceSelector() { - return new NamespaceSelectorNested(null); - } - - public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { - return new NamespaceSelectorNested(item); - } - - public NamespaceSelectorNested editNamespaceSelector() { - return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); - } - - public NamespaceSelectorNested editOrNewNamespaceSelector() { - return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); - } - - public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { - return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); - } - - public A addToNamespaces(int index,String item) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } - this.namespaces.add(index, item); - return (A) this; - } - - public A setToNamespaces(int index,String item) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } - this.namespaces.set(index, item); - return (A) this; - } - - public A addToNamespaces(String... items) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } - for (String item : items) { - this.namespaces.add(item); - } - return (A) this; - } - - public A addAllToNamespaces(Collection items) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } - for (String item : items) { - this.namespaces.add(item); - } - return (A) this; - } - - public A removeFromNamespaces(String... items) { - if (this.namespaces == null) { - return (A) this; - } - for (String item : items) { - this.namespaces.remove(item); - } - return (A) this; - } - - public A removeAllFromNamespaces(Collection items) { - if (this.namespaces == null) { - return (A) this; - } - for (String item : items) { - this.namespaces.remove(item); - } - return (A) this; - } - - public List getNamespaces() { - return this.namespaces; - } - - public String getNamespace(int index) { - return this.namespaces.get(index); - } - - public String getFirstNamespace() { - return this.namespaces.get(0); - } - - public String getLastNamespace() { - return this.namespaces.get(namespaces.size() - 1); - } - - public String getMatchingNamespace(Predicate predicate) { - for (String item : namespaces) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingNamespace(Predicate predicate) { - for (String item : namespaces) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - public A withNamespaces(List namespaces) { if (namespaces != null) { this.namespaces = new ArrayList(); @@ -476,100 +546,34 @@ public A withNamespaces(String... namespaces) { return (A) this; } - public boolean hasNamespaces() { - return this.namespaces != null && !(this.namespaces.isEmpty()); + public LabelSelectorNested withNewLabelSelector() { + return new LabelSelectorNested(null); } - public String getTopologyKey() { - return this.topologyKey; + public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { + return new LabelSelectorNested(item); } - public A withTopologyKey(String topologyKey) { - this.topologyKey = topologyKey; - return (A) this; + public NamespaceSelectorNested withNewNamespaceSelector() { + return new NamespaceSelectorNested(null); } - public boolean hasTopologyKey() { - return this.topologyKey != null; + public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { + return new NamespaceSelectorNested(item); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1PodAffinityTermFluent that = (V1PodAffinityTermFluent) o; - if (!(Objects.equals(labelSelector, that.labelSelector))) { - return false; - } - if (!(Objects.equals(matchLabelKeys, that.matchLabelKeys))) { - return false; - } - if (!(Objects.equals(mismatchLabelKeys, that.mismatchLabelKeys))) { - return false; - } - if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { - return false; - } - if (!(Objects.equals(namespaces, that.namespaces))) { - return false; - } - if (!(Objects.equals(topologyKey, that.topologyKey))) { - return false; - } - return true; + public A withTopologyKey(String topologyKey) { + this.topologyKey = topologyKey; + return (A) this; } + public class LabelSelectorNested extends V1LabelSelectorFluent> implements Nested{ - public int hashCode() { - return Objects.hash(labelSelector, matchLabelKeys, mismatchLabelKeys, namespaceSelector, namespaces, topologyKey); - } + V1LabelSelectorBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(labelSelector == null)) { - sb.append("labelSelector:"); - sb.append(labelSelector); - sb.append(","); - } - if (!(matchLabelKeys == null) && !(matchLabelKeys.isEmpty())) { - sb.append("matchLabelKeys:"); - sb.append(matchLabelKeys); - sb.append(","); - } - if (!(mismatchLabelKeys == null) && !(mismatchLabelKeys.isEmpty())) { - sb.append("mismatchLabelKeys:"); - sb.append(mismatchLabelKeys); - sb.append(","); - } - if (!(namespaceSelector == null)) { - sb.append("namespaceSelector:"); - sb.append(namespaceSelector); - sb.append(","); - } - if (!(namespaces == null) && !(namespaces.isEmpty())) { - sb.append("namespaces:"); - sb.append(namespaces); - sb.append(","); - } - if (!(topologyKey == null)) { - sb.append("topologyKey:"); - sb.append(topologyKey); - } - sb.append("}"); - return sb.toString(); - } - public class LabelSelectorNested extends V1LabelSelectorFluent> implements Nested{ LabelSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1PodAffinityTermFluent.this.withLabelSelector(builder.build()); } @@ -578,14 +582,15 @@ public N endLabelSelector() { return and(); } - } public class NamespaceSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + NamespaceSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1PodAffinityTermFluent.this.withNamespaceSelector(builder.build()); } @@ -594,7 +599,5 @@ public N endNamespaceSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java index 5c54684e43..2356cdbd50 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodAntiAffinityBuilder extends V1PodAntiAffinityFluent implements VisitableBuilder{ + + V1PodAntiAffinityFluent fluent; + public V1PodAntiAffinityBuilder() { this(new V1PodAntiAffinity()); } @@ -11,17 +14,16 @@ public V1PodAntiAffinityBuilder(V1PodAntiAffinityFluent fluent) { this(fluent, new V1PodAntiAffinity()); } - public V1PodAntiAffinityBuilder(V1PodAntiAffinityFluent fluent,V1PodAntiAffinity instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodAntiAffinityBuilder(V1PodAntiAffinity instance) { this.fluent = this; this.copyInstance(instance); } - V1PodAntiAffinityFluent fluent; + public V1PodAntiAffinityBuilder(V1PodAntiAffinityFluent fluent,V1PodAntiAffinity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodAntiAffinity build() { V1PodAntiAffinity buildable = new V1PodAntiAffinity(); buildable.setPreferredDuringSchedulingIgnoredDuringExecution(fluent.buildPreferredDuringSchedulingIgnoredDuringExecution()); @@ -29,5 +31,4 @@ public V1PodAntiAffinity build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java index 86bb2732a0..0453537d29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java @@ -1,71 +1,75 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodAntiAffinityFluent> extends BaseFluent{ + + private ArrayList preferredDuringSchedulingIgnoredDuringExecution; + private ArrayList requiredDuringSchedulingIgnoredDuringExecution; + public V1PodAntiAffinityFluent() { } public V1PodAntiAffinityFluent(V1PodAntiAffinity instance) { this.copyInstance(instance); } - private ArrayList preferredDuringSchedulingIgnoredDuringExecution; - private ArrayList requiredDuringSchedulingIgnoredDuringExecution; - - protected void copyInstance(V1PodAntiAffinity instance) { - instance = instance != null ? instance : new V1PodAntiAffinity(); - if (instance != null) { - this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - } - } - - public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { + + public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.add(builder); - } else { + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); } return (A) this; } - public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + public A addAllToRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.add(builder); - } else { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); } return (A) this; } + public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution() { + return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, null); + } + + public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item) { + return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, item); + } + + public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecution() { + return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, null); + } + + public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item) { + return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, item); + } + public A addToPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... items) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); @@ -78,74 +82,64 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffin return (A) this; } - public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { + public A addToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } - for (V1WeightedPodAffinityTerm item : items) { - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); - } - return (A) this; - } - - public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - return (A) this; - } - for (V1WeightedPodAffinityTerm item : items) { - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); - this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); } return (A) this; } - public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { - return (A) this; + public A addToRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm... items) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } - for (V1WeightedPodAffinityTerm item : items) { - V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); - this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); } return (A) this; } - public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - if (preferredDuringSchedulingIgnoredDuringExecution == null) { - return (A) this; + public A addToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } - Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); - List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); - while (each.hasNext()) { - V1WeightedPodAffinityTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(index, builder); } return (A) this; } - public List buildPreferredDuringSchedulingIgnoredDuringExecution() { - return this.preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; - } - - public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution(int index) { - return this.preferredDuringSchedulingIgnoredDuringExecution.get(index).build(); - } - public V1WeightedPodAffinityTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution() { return this.preferredDuringSchedulingIgnoredDuringExecution.get(0).build(); } + public V1PodAffinityTerm buildFirstRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution.get(0).build(); + } + public V1WeightedPodAffinityTerm buildLastPreferredDuringSchedulingIgnoredDuringExecution() { return this.preferredDuringSchedulingIgnoredDuringExecution.get(preferredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); } + public V1PodAffinityTerm buildLastRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution.get(requiredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); + } + public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { if (predicate.test(item)) { @@ -155,64 +149,37 @@ public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDu return null; } - public boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { + public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").clear(); - } - if (preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); - for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { - this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); + return item.build(); } - } else { - this.preferredDuringSchedulingIgnoredDuringExecution = null; - } - return (A) this; - } - - public A withPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... preferredDuringSchedulingIgnoredDuringExecution) { - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution.clear(); - _visitables.remove("preferredDuringSchedulingIgnoredDuringExecution"); - } - if (preferredDuringSchedulingIgnoredDuringExecution != null) { - for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { - this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } - } - return (A) this; + return null; } - public boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { - return this.preferredDuringSchedulingIgnoredDuringExecution != null && !(this.preferredDuringSchedulingIgnoredDuringExecution.isEmpty()); + public List buildPreferredDuringSchedulingIgnoredDuringExecution() { + return this.preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; } - public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution() { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, null); + public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution(int index) { + return this.preferredDuringSchedulingIgnoredDuringExecution.get(index).build(); } - public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item) { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, item); + public List buildRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution != null ? build(requiredDuringSchedulingIgnoredDuringExecution) : null; } - public PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(int index,V1WeightedPodAffinityTerm item) { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(index, item); + public V1PodAffinityTerm buildRequiredDuringSchedulingIgnoredDuringExecution(int index) { + return this.requiredDuringSchedulingIgnoredDuringExecution.get(index).build(); } - public PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(int index) { - if (index <= preferredDuringSchedulingIgnoredDuringExecution.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "preferredDuringSchedulingIgnoredDuringExecution")); + protected void copyInstance(V1PodAntiAffinity instance) { + instance = instance != null ? instance : new V1PodAntiAffinity(); + if (instance != null) { + this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); + this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); } - return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } public PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution() { @@ -222,6 +189,13 @@ public PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferr return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(0, this.buildPreferredDuringSchedulingIgnoredDuringExecution(0)); } + public RequiredDuringSchedulingIgnoredDuringExecutionNested editFirstRequiredDuringSchedulingIgnoredDuringExecution() { + if (requiredDuringSchedulingIgnoredDuringExecution.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requiredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(0, this.buildRequiredDuringSchedulingIgnoredDuringExecution(0)); + } + public PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution() { int index = preferredDuringSchedulingIgnoredDuringExecution.size() - 1; if (index < 0) { @@ -230,6 +204,14 @@ public PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferre return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } + public RequiredDuringSchedulingIgnoredDuringExecutionNested editLastRequiredDuringSchedulingIgnoredDuringExecution() { + int index = requiredDuringSchedulingIgnoredDuringExecution.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requiredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); + } + public PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { int index = -1; for (int i = 0;i < preferredDuringSchedulingIgnoredDuringExecution.size();i++) { @@ -244,56 +226,116 @@ public PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPref return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - public A addToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + public RequiredDuringSchedulingIgnoredDuringExecutionNested editMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + int index = -1; + for (int i = 0;i < requiredDuringSchedulingIgnoredDuringExecution.size();i++) { + if (predicate.test(requiredDuringSchedulingIgnoredDuringExecution.get(i))) { + index = i; + break; + } } - V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - requiredDuringSchedulingIgnoredDuringExecution.add(builder); - } else { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - requiredDuringSchedulingIgnoredDuringExecution.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requiredDuringSchedulingIgnoredDuringExecution")); } - return (A) this; + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } - public A setToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + public PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(int index) { + if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "preferredDuringSchedulingIgnoredDuringExecution")); } - V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - requiredDuringSchedulingIgnoredDuringExecution.add(builder); - } else { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - requiredDuringSchedulingIgnoredDuringExecution.set(index, builder); + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + } + + public RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution(int index) { + if (requiredDuringSchedulingIgnoredDuringExecution.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requiredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodAntiAffinityFluent that = (V1PodAntiAffinityFluent) o; + if (!(Objects.equals(preferredDuringSchedulingIgnoredDuringExecution, that.preferredDuringSchedulingIgnoredDuringExecution))) { + return false; + } + if (!(Objects.equals(requiredDuringSchedulingIgnoredDuringExecution, that.requiredDuringSchedulingIgnoredDuringExecution))) { + return false; + } + return true; + } + + public boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { + return this.preferredDuringSchedulingIgnoredDuringExecution != null && !(this.preferredDuringSchedulingIgnoredDuringExecution.isEmpty()); + } + + public boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution != null && !(this.requiredDuringSchedulingIgnoredDuringExecution.isEmpty()); + } + + public int hashCode() { + return Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution); + } + + public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); } return (A) this; } - public A addToRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm... items) { + public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + return (A) this; } for (V1PodAffinityTerm item : items) { V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); } return (A) this; } - public A addAllToRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; } - for (V1PodAffinityTerm item : items) { - V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); } return (A) this; } @@ -310,14 +352,18 @@ public A removeFromRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityT return (A) this; } - public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + if (preferredDuringSchedulingIgnoredDuringExecution == null) { return (A) this; } - for (V1PodAffinityTerm item : items) { - V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); - this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); + Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); + List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); + while (each.hasNext()) { + V1WeightedPodAffinityTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -338,38 +384,86 @@ public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution(Predic return (A) this; } - public List buildRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution != null ? build(requiredDuringSchedulingIgnoredDuringExecution) : null; + public PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(int index,V1WeightedPodAffinityTerm item) { + return new PreferredDuringSchedulingIgnoredDuringExecutionNested(index, item); } - public V1PodAffinityTerm buildRequiredDuringSchedulingIgnoredDuringExecution(int index) { - return this.requiredDuringSchedulingIgnoredDuringExecution.get(index).build(); + public RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(int index,V1PodAffinityTerm item) { + return new RequiredDuringSchedulingIgnoredDuringExecutionNested(index, item); } - public V1PodAffinityTerm buildFirstRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution.get(0).build(); + public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1WeightedPodAffinityTerm item) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } + return (A) this; } - public V1PodAffinityTerm buildLastRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution.get(requiredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); + public A setToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffinityTerm item) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(builder); + } else { + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } + return (A) this; } - public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(preferredDuringSchedulingIgnoredDuringExecution == null) && !(preferredDuringSchedulingIgnoredDuringExecution.isEmpty())) { + sb.append("preferredDuringSchedulingIgnoredDuringExecution:"); + sb.append(preferredDuringSchedulingIgnoredDuringExecution); + sb.append(","); + } + if (!(requiredDuringSchedulingIgnoredDuringExecution == null) && !(requiredDuringSchedulingIgnoredDuringExecution.isEmpty())) { + sb.append("requiredDuringSchedulingIgnoredDuringExecution:"); + sb.append(requiredDuringSchedulingIgnoredDuringExecution); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return true; + public A withPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { + this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").clear(); + } + if (preferredDuringSchedulingIgnoredDuringExecution != null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { + this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } + } else { + this.preferredDuringSchedulingIgnoredDuringExecution = null; + } + return (A) this; + } + + public A withPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... preferredDuringSchedulingIgnoredDuringExecution) { + if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { + this.preferredDuringSchedulingIgnoredDuringExecution.clear(); + _visitables.remove("preferredDuringSchedulingIgnoredDuringExecution"); + } + if (preferredDuringSchedulingIgnoredDuringExecution != null) { + for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { + this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } - return false; + } + return (A) this; } public A withRequiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { @@ -399,106 +493,16 @@ public A withRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm... } return (A) this; } + public class PreferredDuringSchedulingIgnoredDuringExecutionNested extends V1WeightedPodAffinityTermFluent> implements Nested{ - public boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution != null && !(this.requiredDuringSchedulingIgnoredDuringExecution.isEmpty()); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecution() { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, null); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item) { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, item); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(int index,V1PodAffinityTerm item) { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(index, item); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution(int index) { - if (index <= requiredDuringSchedulingIgnoredDuringExecution.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requiredDuringSchedulingIgnoredDuringExecution")); - } - return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editFirstRequiredDuringSchedulingIgnoredDuringExecution() { - if (requiredDuringSchedulingIgnoredDuringExecution.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requiredDuringSchedulingIgnoredDuringExecution")); - } - return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(0, this.buildRequiredDuringSchedulingIgnoredDuringExecution(0)); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editLastRequiredDuringSchedulingIgnoredDuringExecution() { - int index = requiredDuringSchedulingIgnoredDuringExecution.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requiredDuringSchedulingIgnoredDuringExecution")); - } - return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - int index = -1; - for (int i = 0;i < requiredDuringSchedulingIgnoredDuringExecution.size();i++) { - if (predicate.test(requiredDuringSchedulingIgnoredDuringExecution.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requiredDuringSchedulingIgnoredDuringExecution")); - } - return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1PodAntiAffinityFluent that = (V1PodAntiAffinityFluent) o; - if (!(Objects.equals(preferredDuringSchedulingIgnoredDuringExecution, that.preferredDuringSchedulingIgnoredDuringExecution))) { - return false; - } - if (!(Objects.equals(requiredDuringSchedulingIgnoredDuringExecution, that.requiredDuringSchedulingIgnoredDuringExecution))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution); - } + V1WeightedPodAffinityTermBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(preferredDuringSchedulingIgnoredDuringExecution == null) && !(preferredDuringSchedulingIgnoredDuringExecution.isEmpty())) { - sb.append("preferredDuringSchedulingIgnoredDuringExecution:"); - sb.append(preferredDuringSchedulingIgnoredDuringExecution); - sb.append(","); - } - if (!(requiredDuringSchedulingIgnoredDuringExecution == null) && !(requiredDuringSchedulingIgnoredDuringExecution.isEmpty())) { - sb.append("requiredDuringSchedulingIgnoredDuringExecution:"); - sb.append(requiredDuringSchedulingIgnoredDuringExecution); - } - sb.append("}"); - return sb.toString(); - } - public class PreferredDuringSchedulingIgnoredDuringExecutionNested extends V1WeightedPodAffinityTermFluent> implements Nested{ PreferredDuringSchedulingIgnoredDuringExecutionNested(int index,V1WeightedPodAffinityTerm item) { this.index = index; this.builder = new V1WeightedPodAffinityTermBuilder(this, item); } - V1WeightedPodAffinityTermBuilder builder; - int index; - + public N and() { return (N) V1PodAntiAffinityFluent.this.setToPreferredDuringSchedulingIgnoredDuringExecution(index, builder.build()); } @@ -507,16 +511,17 @@ public N endPreferredDuringSchedulingIgnoredDuringExecution() { return and(); } - } public class RequiredDuringSchedulingIgnoredDuringExecutionNested extends V1PodAffinityTermFluent> implements Nested{ + + V1PodAffinityTermBuilder builder; + int index; + RequiredDuringSchedulingIgnoredDuringExecutionNested(int index,V1PodAffinityTerm item) { this.index = index; this.builder = new V1PodAffinityTermBuilder(this, item); } - V1PodAffinityTermBuilder builder; - int index; - + public N and() { return (N) V1PodAntiAffinityFluent.this.setToRequiredDuringSchedulingIgnoredDuringExecution(index, builder.build()); } @@ -525,7 +530,5 @@ public N endRequiredDuringSchedulingIgnoredDuringExecution() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java index 85c1d258e1..7029bc203f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodBuilder extends V1PodFluent implements VisitableBuilder{ + + V1PodFluent fluent; + public V1PodBuilder() { this(new V1Pod()); } @@ -11,17 +14,16 @@ public V1PodBuilder(V1PodFluent fluent) { this(fluent, new V1Pod()); } - public V1PodBuilder(V1PodFluent fluent,V1Pod instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodBuilder(V1Pod instance) { this.fluent = this; this.copyInstance(instance); } - V1PodFluent fluent; + public V1PodBuilder(V1PodFluent fluent,V1Pod instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Pod build() { V1Pod buildable = new V1Pod(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1Pod build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionBuilder.java index b81698d0da..162a82a184 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodCertificateProjectionBuilder extends V1PodCertificateProjectionFluent implements VisitableBuilder{ + + V1PodCertificateProjectionFluent fluent; + public V1PodCertificateProjectionBuilder() { this(new V1PodCertificateProjection()); } @@ -11,17 +14,16 @@ public V1PodCertificateProjectionBuilder(V1PodCertificateProjectionFluent flu this(fluent, new V1PodCertificateProjection()); } - public V1PodCertificateProjectionBuilder(V1PodCertificateProjectionFluent fluent,V1PodCertificateProjection instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodCertificateProjectionBuilder(V1PodCertificateProjection instance) { this.fluent = this; this.copyInstance(instance); } - V1PodCertificateProjectionFluent fluent; + public V1PodCertificateProjectionBuilder(V1PodCertificateProjectionFluent fluent,V1PodCertificateProjection instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodCertificateProjection build() { V1PodCertificateProjection buildable = new V1PodCertificateProjection(); buildable.setCertificateChainPath(fluent.getCertificateChainPath()); @@ -33,5 +35,4 @@ public V1PodCertificateProjection build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionFluent.java index 3978f0430c..ce18da53f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionFluent.java @@ -1,31 +1,33 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodCertificateProjectionFluent> extends BaseFluent{ - public V1PodCertificateProjectionFluent() { - } - - public V1PodCertificateProjectionFluent(V1PodCertificateProjection instance) { - this.copyInstance(instance); - } + private String certificateChainPath; private String credentialBundlePath; private String keyPath; private String keyType; private Integer maxExpirationSeconds; private String signerName; + + public V1PodCertificateProjectionFluent() { + } + public V1PodCertificateProjectionFluent(V1PodCertificateProjection instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1PodCertificateProjection instance) { instance = instance != null ? instance : new V1PodCertificateProjection(); if (instance != null) { @@ -38,116 +40,86 @@ protected void copyInstance(V1PodCertificateProjection instance) { } } - public String getCertificateChainPath() { - return this.certificateChainPath; - } - - public A withCertificateChainPath(String certificateChainPath) { - this.certificateChainPath = certificateChainPath; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodCertificateProjectionFluent that = (V1PodCertificateProjectionFluent) o; + if (!(Objects.equals(certificateChainPath, that.certificateChainPath))) { + return false; + } + if (!(Objects.equals(credentialBundlePath, that.credentialBundlePath))) { + return false; + } + if (!(Objects.equals(keyPath, that.keyPath))) { + return false; + } + if (!(Objects.equals(keyType, that.keyType))) { + return false; + } + if (!(Objects.equals(maxExpirationSeconds, that.maxExpirationSeconds))) { + return false; + } + if (!(Objects.equals(signerName, that.signerName))) { + return false; + } + return true; } - public boolean hasCertificateChainPath() { - return this.certificateChainPath != null; + public String getCertificateChainPath() { + return this.certificateChainPath; } public String getCredentialBundlePath() { return this.credentialBundlePath; } - public A withCredentialBundlePath(String credentialBundlePath) { - this.credentialBundlePath = credentialBundlePath; - return (A) this; - } - - public boolean hasCredentialBundlePath() { - return this.credentialBundlePath != null; - } - public String getKeyPath() { return this.keyPath; } - public A withKeyPath(String keyPath) { - this.keyPath = keyPath; - return (A) this; - } - - public boolean hasKeyPath() { - return this.keyPath != null; - } - public String getKeyType() { return this.keyType; } - public A withKeyType(String keyType) { - this.keyType = keyType; - return (A) this; + public Integer getMaxExpirationSeconds() { + return this.maxExpirationSeconds; } - public boolean hasKeyType() { - return this.keyType != null; + public String getSignerName() { + return this.signerName; } - public Integer getMaxExpirationSeconds() { - return this.maxExpirationSeconds; + public boolean hasCertificateChainPath() { + return this.certificateChainPath != null; } - public A withMaxExpirationSeconds(Integer maxExpirationSeconds) { - this.maxExpirationSeconds = maxExpirationSeconds; - return (A) this; + public boolean hasCredentialBundlePath() { + return this.credentialBundlePath != null; } - public boolean hasMaxExpirationSeconds() { - return this.maxExpirationSeconds != null; + public boolean hasKeyPath() { + return this.keyPath != null; } - public String getSignerName() { - return this.signerName; + public boolean hasKeyType() { + return this.keyType != null; } - public A withSignerName(String signerName) { - this.signerName = signerName; - return (A) this; + public boolean hasMaxExpirationSeconds() { + return this.maxExpirationSeconds != null; } public boolean hasSignerName() { return this.signerName != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1PodCertificateProjectionFluent that = (V1PodCertificateProjectionFluent) o; - if (!(Objects.equals(certificateChainPath, that.certificateChainPath))) { - return false; - } - if (!(Objects.equals(credentialBundlePath, that.credentialBundlePath))) { - return false; - } - if (!(Objects.equals(keyPath, that.keyPath))) { - return false; - } - if (!(Objects.equals(keyType, that.keyType))) { - return false; - } - if (!(Objects.equals(maxExpirationSeconds, that.maxExpirationSeconds))) { - return false; - } - if (!(Objects.equals(signerName, that.signerName))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(certificateChainPath, credentialBundlePath, keyPath, keyType, maxExpirationSeconds, signerName); } @@ -188,5 +160,34 @@ public String toString() { return sb.toString(); } - + public A withCertificateChainPath(String certificateChainPath) { + this.certificateChainPath = certificateChainPath; + return (A) this; + } + + public A withCredentialBundlePath(String credentialBundlePath) { + this.credentialBundlePath = credentialBundlePath; + return (A) this; + } + + public A withKeyPath(String keyPath) { + this.keyPath = keyPath; + return (A) this; + } + + public A withKeyType(String keyType) { + this.keyType = keyType; + return (A) this; + } + + public A withMaxExpirationSeconds(Integer maxExpirationSeconds) { + this.maxExpirationSeconds = maxExpirationSeconds; + return (A) this; + } + + public A withSignerName(String signerName) { + this.signerName = signerName; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java index a0439bec01..d50996c110 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodConditionBuilder extends V1PodConditionFluent implements VisitableBuilder{ + + V1PodConditionFluent fluent; + public V1PodConditionBuilder() { this(new V1PodCondition()); } @@ -11,17 +14,16 @@ public V1PodConditionBuilder(V1PodConditionFluent fluent) { this(fluent, new V1PodCondition()); } - public V1PodConditionBuilder(V1PodConditionFluent fluent,V1PodCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodConditionBuilder(V1PodCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1PodConditionFluent fluent; + public V1PodConditionBuilder(V1PodConditionFluent fluent,V1PodCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodCondition build() { V1PodCondition buildable = new V1PodCondition(); buildable.setLastProbeTime(fluent.getLastProbeTime()); @@ -34,5 +36,4 @@ public V1PodCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java index c46ce402d4..5a31d1af90 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java @@ -1,25 +1,20 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodConditionFluent> extends BaseFluent{ - public V1PodConditionFluent() { - } - - public V1PodConditionFluent(V1PodCondition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastProbeTime; private OffsetDateTime lastTransitionTime; private String message; @@ -27,7 +22,14 @@ public V1PodConditionFluent(V1PodCondition instance) { private String reason; private String status; private String type; + + public V1PodConditionFluent() { + } + public V1PodConditionFluent(V1PodCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1PodCondition instance) { instance = instance != null ? instance : new V1PodCondition(); if (instance != null) { @@ -41,130 +43,95 @@ protected void copyInstance(V1PodCondition instance) { } } - public OffsetDateTime getLastProbeTime() { - return this.lastProbeTime; - } - - public A withLastProbeTime(OffsetDateTime lastProbeTime) { - this.lastProbeTime = lastProbeTime; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodConditionFluent that = (V1PodConditionFluent) o; + if (!(Objects.equals(lastProbeTime, that.lastProbeTime))) { + return false; + } + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastProbeTime() { - return this.lastProbeTime != null; + public OffsetDateTime getLastProbeTime() { + return this.lastProbeTime; } public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - public Long getObservedGeneration() { return this.observedGeneration; } - public A withObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - return (A) this; - } - - public boolean hasObservedGeneration() { - return this.observedGeneration != null; - } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public String getStatus() { + return this.status; } - public boolean hasReason() { - return this.reason != null; + public String getType() { + return this.type; } - public String getStatus() { - return this.status; + public boolean hasLastProbeTime() { + return this.lastProbeTime != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; } - public boolean hasStatus() { - return this.status != null; + public boolean hasMessage() { + return this.message != null; } - public String getType() { - return this.type; + public boolean hasObservedGeneration() { + return this.observedGeneration != null; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasReason() { + return this.reason != null; } - public boolean hasType() { - return this.type != null; + public boolean hasStatus() { + return this.status != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1PodConditionFluent that = (V1PodConditionFluent) o; - if (!(Objects.equals(lastProbeTime, that.lastProbeTime))) { - return false; - } - if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { - return false; - } - if (!(Objects.equals(message, that.message))) { - return false; - } - if (!(Objects.equals(observedGeneration, that.observedGeneration))) { - return false; - } - if (!(Objects.equals(reason, that.reason))) { - return false; - } - if (!(Objects.equals(status, that.status))) { - return false; - } - if (!(Objects.equals(type, that.type))) { - return false; - } - return true; + public boolean hasType() { + return this.type != null; } public int hashCode() { @@ -212,5 +179,39 @@ public String toString() { return sb.toString(); } - + public A withLastProbeTime(OffsetDateTime lastProbeTime) { + this.lastProbeTime = lastProbeTime; + return (A) this; + } + + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java index 5061663bab..99a10a21a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodDNSConfigBuilder extends V1PodDNSConfigFluent implements VisitableBuilder{ + + V1PodDNSConfigFluent fluent; + public V1PodDNSConfigBuilder() { this(new V1PodDNSConfig()); } @@ -11,17 +14,16 @@ public V1PodDNSConfigBuilder(V1PodDNSConfigFluent fluent) { this(fluent, new V1PodDNSConfig()); } - public V1PodDNSConfigBuilder(V1PodDNSConfigFluent fluent,V1PodDNSConfig instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodDNSConfigBuilder(V1PodDNSConfig instance) { this.fluent = this; this.copyInstance(instance); } - V1PodDNSConfigFluent fluent; + public V1PodDNSConfigBuilder(V1PodDNSConfigFluent fluent,V1PodDNSConfig instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodDNSConfig build() { V1PodDNSConfig buildable = new V1PodDNSConfig(); buildable.setNameservers(fluent.getNameservers()); @@ -30,5 +32,4 @@ public V1PodDNSConfig build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java index 1bd6c71229..6c452b1ab6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java @@ -1,59 +1,76 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodDNSConfigFluent> extends BaseFluent{ + + private List nameservers; + private ArrayList options; + private List searches; + public V1PodDNSConfigFluent() { } public V1PodDNSConfigFluent(V1PodDNSConfig instance) { this.copyInstance(instance); } - private List nameservers; - private ArrayList options; - private List searches; - - protected void copyInstance(V1PodDNSConfig instance) { - instance = instance != null ? instance : new V1PodDNSConfig(); - if (instance != null) { - this.withNameservers(instance.getNameservers()); - this.withOptions(instance.getOptions()); - this.withSearches(instance.getSearches()); + + public A addAllToNameservers(Collection items) { + if (this.nameservers == null) { + this.nameservers = new ArrayList(); + } + for (String item : items) { + this.nameservers.add(item); } + return (A) this; } - public A addToNameservers(int index,String item) { - if (this.nameservers == null) { - this.nameservers = new ArrayList(); + public A addAllToOptions(Collection items) { + if (this.options == null) { + this.options = new ArrayList(); + } + for (V1PodDNSConfigOption item : items) { + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); + _visitables.get("options").add(builder); + this.options.add(builder); } - this.nameservers.add(index, item); return (A) this; } - public A setToNameservers(int index,String item) { - if (this.nameservers == null) { - this.nameservers = new ArrayList(); + public A addAllToSearches(Collection items) { + if (this.searches == null) { + this.searches = new ArrayList(); + } + for (String item : items) { + this.searches.add(item); } - this.nameservers.set(index, item); return (A) this; } + public OptionsNested addNewOption() { + return new OptionsNested(-1, null); + } + + public OptionsNested addNewOptionLike(V1PodDNSConfigOption item) { + return new OptionsNested(-1, item); + } + public A addToNameservers(String... items) { if (this.nameservers == null) { this.nameservers = new ArrayList(); @@ -64,339 +81,295 @@ public A addToNameservers(String... items) { return (A) this; } - public A addAllToNameservers(Collection items) { + public A addToNameservers(int index,String item) { if (this.nameservers == null) { this.nameservers = new ArrayList(); } - for (String item : items) { - this.nameservers.add(item); - } + this.nameservers.add(index, item); return (A) this; } - public A removeFromNameservers(String... items) { - if (this.nameservers == null) { - return (A) this; + public A addToOptions(V1PodDNSConfigOption... items) { + if (this.options == null) { + this.options = new ArrayList(); } - for (String item : items) { - this.nameservers.remove(item); + for (V1PodDNSConfigOption item : items) { + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); + _visitables.get("options").add(builder); + this.options.add(builder); } return (A) this; } - public A removeAllFromNameservers(Collection items) { - if (this.nameservers == null) { - return (A) this; + public A addToOptions(int index,V1PodDNSConfigOption item) { + if (this.options == null) { + this.options = new ArrayList(); } - for (String item : items) { - this.nameservers.remove(item); + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); + if (index < 0 || index >= options.size()) { + _visitables.get("options").add(builder); + options.add(builder); + } else { + _visitables.get("options").add(builder); + options.add(index, builder); } return (A) this; } - public List getNameservers() { - return this.nameservers; + public A addToSearches(String... items) { + if (this.searches == null) { + this.searches = new ArrayList(); + } + for (String item : items) { + this.searches.add(item); + } + return (A) this; } - public String getNameserver(int index) { - return this.nameservers.get(index); + public A addToSearches(int index,String item) { + if (this.searches == null) { + this.searches = new ArrayList(); + } + this.searches.add(index, item); + return (A) this; } - public String getFirstNameserver() { - return this.nameservers.get(0); + public V1PodDNSConfigOption buildFirstOption() { + return this.options.get(0).build(); } - public String getLastNameserver() { - return this.nameservers.get(nameservers.size() - 1); + public V1PodDNSConfigOption buildLastOption() { + return this.options.get(options.size() - 1).build(); } - public String getMatchingNameserver(Predicate predicate) { - for (String item : nameservers) { + public V1PodDNSConfigOption buildMatchingOption(Predicate predicate) { + for (V1PodDNSConfigOptionBuilder item : options) { if (predicate.test(item)) { - return item; + return item.build(); } } return null; } - public boolean hasMatchingNameserver(Predicate predicate) { - for (String item : nameservers) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1PodDNSConfigOption buildOption(int index) { + return this.options.get(index).build(); } - public A withNameservers(List nameservers) { - if (nameservers != null) { - this.nameservers = new ArrayList(); - for (String item : nameservers) { - this.addToNameservers(item); - } - } else { - this.nameservers = null; - } - return (A) this; + public List buildOptions() { + return this.options != null ? build(options) : null; } - public A withNameservers(String... nameservers) { - if (this.nameservers != null) { - this.nameservers.clear(); - _visitables.remove("nameservers"); - } - if (nameservers != null) { - for (String item : nameservers) { - this.addToNameservers(item); - } + protected void copyInstance(V1PodDNSConfig instance) { + instance = instance != null ? instance : new V1PodDNSConfig(); + if (instance != null) { + this.withNameservers(instance.getNameservers()); + this.withOptions(instance.getOptions()); + this.withSearches(instance.getSearches()); } - return (A) this; - } - - public boolean hasNameservers() { - return this.nameservers != null && !(this.nameservers.isEmpty()); } - public A addToOptions(int index,V1PodDNSConfigOption item) { - if (this.options == null) { - this.options = new ArrayList(); - } - V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - if (index < 0 || index >= options.size()) { - _visitables.get("options").add(builder); - options.add(builder); - } else { - _visitables.get("options").add(builder); - options.add(index, builder); + public OptionsNested editFirstOption() { + if (options.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "options")); } - return (A) this; + return this.setNewOptionLike(0, this.buildOption(0)); } - public A setToOptions(int index,V1PodDNSConfigOption item) { - if (this.options == null) { - this.options = new ArrayList(); - } - V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - if (index < 0 || index >= options.size()) { - _visitables.get("options").add(builder); - options.add(builder); - } else { - _visitables.get("options").add(builder); - options.set(index, builder); + public OptionsNested editLastOption() { + int index = options.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "options")); } - return (A) this; + return this.setNewOptionLike(index, this.buildOption(index)); } - public A addToOptions(V1PodDNSConfigOption... items) { - if (this.options == null) { - this.options = new ArrayList(); + public OptionsNested editMatchingOption(Predicate predicate) { + int index = -1; + for (int i = 0;i < options.size();i++) { + if (predicate.test(options.get(i))) { + index = i; + break; + } } - for (V1PodDNSConfigOption item : items) { - V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - _visitables.get("options").add(builder); - this.options.add(builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "options")); } - return (A) this; + return this.setNewOptionLike(index, this.buildOption(index)); } - public A addAllToOptions(Collection items) { - if (this.options == null) { - this.options = new ArrayList(); - } - for (V1PodDNSConfigOption item : items) { - V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - _visitables.get("options").add(builder); - this.options.add(builder); + public OptionsNested editOption(int index) { + if (options.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "options")); } - return (A) this; + return this.setNewOptionLike(index, this.buildOption(index)); } - public A removeFromOptions(V1PodDNSConfigOption... items) { - if (this.options == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (V1PodDNSConfigOption item : items) { - V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - _visitables.get("options").remove(builder); - this.options.remove(builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A removeAllFromOptions(Collection items) { - if (this.options == null) { - return (A) this; + if (!(super.equals(o))) { + return false; } - for (V1PodDNSConfigOption item : items) { - V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - _visitables.get("options").remove(builder); - this.options.remove(builder); + V1PodDNSConfigFluent that = (V1PodDNSConfigFluent) o; + if (!(Objects.equals(nameservers, that.nameservers))) { + return false; } - return (A) this; - } - - public A removeMatchingFromOptions(Predicate predicate) { - if (options == null) { - return (A) this; + if (!(Objects.equals(options, that.options))) { + return false; } - Iterator each = options.iterator(); - List visitables = _visitables.get("options"); - while (each.hasNext()) { - V1PodDNSConfigOptionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (!(Objects.equals(searches, that.searches))) { + return false; } - return (A) this; + return true; } - public List buildOptions() { - return this.options != null ? build(options) : null; + public String getFirstNameserver() { + return this.nameservers.get(0); } - public V1PodDNSConfigOption buildOption(int index) { - return this.options.get(index).build(); + public String getFirstSearch() { + return this.searches.get(0); } - public V1PodDNSConfigOption buildFirstOption() { - return this.options.get(0).build(); + public String getLastNameserver() { + return this.nameservers.get(nameservers.size() - 1); } - public V1PodDNSConfigOption buildLastOption() { - return this.options.get(options.size() - 1).build(); + public String getLastSearch() { + return this.searches.get(searches.size() - 1); } - public V1PodDNSConfigOption buildMatchingOption(Predicate predicate) { - for (V1PodDNSConfigOptionBuilder item : options) { + public String getMatchingNameserver(Predicate predicate) { + for (String item : nameservers) { if (predicate.test(item)) { - return item.build(); + return item; } } return null; } - public boolean hasMatchingOption(Predicate predicate) { - for (V1PodDNSConfigOptionBuilder item : options) { + public String getMatchingSearch(Predicate predicate) { + for (String item : searches) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withOptions(List options) { - if (this.options != null) { - this._visitables.get("options").clear(); - } - if (options != null) { - this.options = new ArrayList(); - for (V1PodDNSConfigOption item : options) { - this.addToOptions(item); - } - } else { - this.options = null; - } - return (A) this; + public String getNameserver(int index) { + return this.nameservers.get(index); } - public A withOptions(V1PodDNSConfigOption... options) { - if (this.options != null) { - this.options.clear(); - _visitables.remove("options"); - } - if (options != null) { - for (V1PodDNSConfigOption item : options) { - this.addToOptions(item); - } - } - return (A) this; + public List getNameservers() { + return this.nameservers; } - public boolean hasOptions() { - return this.options != null && !(this.options.isEmpty()); + public String getSearch(int index) { + return this.searches.get(index); } - public OptionsNested addNewOption() { - return new OptionsNested(-1, null); + public List getSearches() { + return this.searches; } - public OptionsNested addNewOptionLike(V1PodDNSConfigOption item) { - return new OptionsNested(-1, item); + public boolean hasMatchingNameserver(Predicate predicate) { + for (String item : nameservers) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public OptionsNested setNewOptionLike(int index,V1PodDNSConfigOption item) { - return new OptionsNested(index, item); + public boolean hasMatchingOption(Predicate predicate) { + for (V1PodDNSConfigOptionBuilder item : options) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public OptionsNested editOption(int index) { - if (index <= options.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "options")); - } - return this.setNewOptionLike(index, this.buildOption(index)); + public boolean hasMatchingSearch(Predicate predicate) { + for (String item : searches) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNameservers() { + return this.nameservers != null && !(this.nameservers.isEmpty()); + } + + public boolean hasOptions() { + return this.options != null && !(this.options.isEmpty()); } - public OptionsNested editFirstOption() { - if (options.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "options")); - } - return this.setNewOptionLike(0, this.buildOption(0)); + public boolean hasSearches() { + return this.searches != null && !(this.searches.isEmpty()); } - public OptionsNested editLastOption() { - int index = options.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "options")); - } - return this.setNewOptionLike(index, this.buildOption(index)); + public int hashCode() { + return Objects.hash(nameservers, options, searches); } - public OptionsNested editMatchingOption(Predicate predicate) { - int index = -1; - for (int i = 0;i < options.size();i++) { - if (predicate.test(options.get(i))) { - index = i; - break; - } + public A removeAllFromNameservers(Collection items) { + if (this.nameservers == null) { + return (A) this; } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "options")); + for (String item : items) { + this.nameservers.remove(item); } - return this.setNewOptionLike(index, this.buildOption(index)); + return (A) this; } - public A addToSearches(int index,String item) { - if (this.searches == null) { - this.searches = new ArrayList(); + public A removeAllFromOptions(Collection items) { + if (this.options == null) { + return (A) this; + } + for (V1PodDNSConfigOption item : items) { + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); + _visitables.get("options").remove(builder); + this.options.remove(builder); } - this.searches.add(index, item); return (A) this; } - public A setToSearches(int index,String item) { + public A removeAllFromSearches(Collection items) { if (this.searches == null) { - this.searches = new ArrayList(); + return (A) this; + } + for (String item : items) { + this.searches.remove(item); } - this.searches.set(index, item); return (A) this; } - public A addToSearches(String... items) { - if (this.searches == null) { - this.searches = new ArrayList(); + public A removeFromNameservers(String... items) { + if (this.nameservers == null) { + return (A) this; } for (String item : items) { - this.searches.add(item); + this.nameservers.remove(item); } return (A) this; } - public A addAllToSearches(Collection items) { - if (this.searches == null) { - this.searches = new ArrayList(); + public A removeFromOptions(V1PodDNSConfigOption... items) { + if (this.options == null) { + return (A) this; } - for (String item : items) { - this.searches.add(item); + for (V1PodDNSConfigOption item : items) { + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); + _visitables.get("options").remove(builder); + this.options.remove(builder); } return (A) this; } @@ -411,48 +384,129 @@ public A removeFromSearches(String... items) { return (A) this; } - public A removeAllFromSearches(Collection items) { - if (this.searches == null) { + public A removeMatchingFromOptions(Predicate predicate) { + if (options == null) { return (A) this; } - for (String item : items) { - this.searches.remove(item); + Iterator each = options.iterator(); + List visitables = _visitables.get("options"); + while (each.hasNext()) { + V1PodDNSConfigOptionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public List getSearches() { - return this.searches; + public OptionsNested setNewOptionLike(int index,V1PodDNSConfigOption item) { + return new OptionsNested(index, item); } - public String getSearch(int index) { - return this.searches.get(index); + public A setToNameservers(int index,String item) { + if (this.nameservers == null) { + this.nameservers = new ArrayList(); + } + this.nameservers.set(index, item); + return (A) this; } - public String getFirstSearch() { - return this.searches.get(0); + public A setToOptions(int index,V1PodDNSConfigOption item) { + if (this.options == null) { + this.options = new ArrayList(); + } + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); + if (index < 0 || index >= options.size()) { + _visitables.get("options").add(builder); + options.add(builder); + } else { + _visitables.get("options").add(builder); + options.set(index, builder); + } + return (A) this; } - public String getLastSearch() { - return this.searches.get(searches.size() - 1); + public A setToSearches(int index,String item) { + if (this.searches == null) { + this.searches = new ArrayList(); + } + this.searches.set(index, item); + return (A) this; } - public String getMatchingSearch(Predicate predicate) { - for (String item : searches) { - if (predicate.test(item)) { - return item; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(nameservers == null) && !(nameservers.isEmpty())) { + sb.append("nameservers:"); + sb.append(nameservers); + sb.append(","); + } + if (!(options == null) && !(options.isEmpty())) { + sb.append("options:"); + sb.append(options); + sb.append(","); + } + if (!(searches == null) && !(searches.isEmpty())) { + sb.append("searches:"); + sb.append(searches); + } + sb.append("}"); + return sb.toString(); + } + + public A withNameservers(List nameservers) { + if (nameservers != null) { + this.nameservers = new ArrayList(); + for (String item : nameservers) { + this.addToNameservers(item); } + } else { + this.nameservers = null; + } + return (A) this; + } + + public A withNameservers(String... nameservers) { + if (this.nameservers != null) { + this.nameservers.clear(); + _visitables.remove("nameservers"); + } + if (nameservers != null) { + for (String item : nameservers) { + this.addToNameservers(item); } - return null; + } + return (A) this; } - public boolean hasMatchingSearch(Predicate predicate) { - for (String item : searches) { - if (predicate.test(item)) { - return true; + public A withOptions(List options) { + if (this.options != null) { + this._visitables.get("options").clear(); + } + if (options != null) { + this.options = new ArrayList(); + for (V1PodDNSConfigOption item : options) { + this.addToOptions(item); } + } else { + this.options = null; + } + return (A) this; + } + + public A withOptions(V1PodDNSConfigOption... options) { + if (this.options != null) { + this.options.clear(); + _visitables.remove("options"); + } + if (options != null) { + for (V1PodDNSConfigOption item : options) { + this.addToOptions(item); } - return false; + } + return (A) this; } public A withSearches(List searches) { @@ -479,66 +533,16 @@ public A withSearches(String... searches) { } return (A) this; } + public class OptionsNested extends V1PodDNSConfigOptionFluent> implements Nested{ - public boolean hasSearches() { - return this.searches != null && !(this.searches.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1PodDNSConfigFluent that = (V1PodDNSConfigFluent) o; - if (!(Objects.equals(nameservers, that.nameservers))) { - return false; - } - if (!(Objects.equals(options, that.options))) { - return false; - } - if (!(Objects.equals(searches, that.searches))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(nameservers, options, searches); - } + V1PodDNSConfigOptionBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(nameservers == null) && !(nameservers.isEmpty())) { - sb.append("nameservers:"); - sb.append(nameservers); - sb.append(","); - } - if (!(options == null) && !(options.isEmpty())) { - sb.append("options:"); - sb.append(options); - sb.append(","); - } - if (!(searches == null) && !(searches.isEmpty())) { - sb.append("searches:"); - sb.append(searches); - } - sb.append("}"); - return sb.toString(); - } - public class OptionsNested extends V1PodDNSConfigOptionFluent> implements Nested{ OptionsNested(int index,V1PodDNSConfigOption item) { this.index = index; this.builder = new V1PodDNSConfigOptionBuilder(this, item); } - V1PodDNSConfigOptionBuilder builder; - int index; - + public N and() { return (N) V1PodDNSConfigFluent.this.setToOptions(index, builder.build()); } @@ -547,7 +551,5 @@ public N endOption() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java index 184052863a..967fef21cb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodDNSConfigOptionBuilder extends V1PodDNSConfigOptionFluent implements VisitableBuilder{ + + V1PodDNSConfigOptionFluent fluent; + public V1PodDNSConfigOptionBuilder() { this(new V1PodDNSConfigOption()); } @@ -11,17 +14,16 @@ public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOptionFluent fluent) { this(fluent, new V1PodDNSConfigOption()); } - public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOptionFluent fluent,V1PodDNSConfigOption instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOption instance) { this.fluent = this; this.copyInstance(instance); } - V1PodDNSConfigOptionFluent fluent; + public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOptionFluent fluent,V1PodDNSConfigOption instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodDNSConfigOption build() { V1PodDNSConfigOption buildable = new V1PodDNSConfigOption(); buildable.setName(fluent.getName()); @@ -29,5 +31,4 @@ public V1PodDNSConfigOption build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java index 9ee43b4ba6..7d63ac945a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodDNSConfigOptionFluent> extends BaseFluent{ + + private String name; + private String value; + public V1PodDNSConfigOptionFluent() { } public V1PodDNSConfigOptionFluent(V1PodDNSConfigOption instance) { this.copyInstance(instance); } - private String name; - private String value; - + protected void copyInstance(V1PodDNSConfigOption instance) { instance = instance != null ? instance : new V1PodDNSConfigOption(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1PodDNSConfigOption instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getValue() { - return this.value; - } - - public A withValue(String value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public String getValue() { + return this.value; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(name, value); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java index e3bf224c13..1ebff17449 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodDisruptionBudgetBuilder extends V1PodDisruptionBudgetFluent implements VisitableBuilder{ + + V1PodDisruptionBudgetFluent fluent; + public V1PodDisruptionBudgetBuilder() { this(new V1PodDisruptionBudget()); } @@ -11,17 +14,16 @@ public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudgetFluent fluent) { this(fluent, new V1PodDisruptionBudget()); } - public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudgetFluent fluent,V1PodDisruptionBudget instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudget instance) { this.fluent = this; this.copyInstance(instance); } - V1PodDisruptionBudgetFluent fluent; + public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudgetFluent fluent,V1PodDisruptionBudget instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodDisruptionBudget build() { V1PodDisruptionBudget buildable = new V1PodDisruptionBudget(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1PodDisruptionBudget build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java index 84f8dcfa4f..615ea843fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodDisruptionBudgetFluent> extends BaseFluent{ - public V1PodDisruptionBudgetFluent() { - } - - public V1PodDisruptionBudgetFluent(V1PodDisruptionBudget instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1PodDisruptionBudgetSpecBuilder spec; private V1PodDisruptionBudgetStatusBuilder status; - - protected void copyInstance(V1PodDisruptionBudget instance) { - instance = instance != null ? instance : new V1PodDisruptionBudget(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1PodDisruptionBudgetFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1PodDisruptionBudgetFluent(V1PodDisruptionBudget instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1PodDisruptionBudgetSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1PodDisruptionBudgetStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1PodDisruptionBudget instance) { + instance = instance != null ? instance : new V1PodDisruptionBudget(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1PodDisruptionBudgetSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1PodDisruptionBudgetSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1PodDisruptionBudgetSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1PodDisruptionBudgetSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PodDisruptionBudgetSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1PodDisruptionBudgetSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1PodDisruptionBudgetStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1PodDisruptionBudgetStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1PodDisruptionBudgetStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PodDisruptionBudgetStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1PodDisruptionBudgetStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1PodDisruptionBudgetStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PodDisruptionBudgetStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1PodDisruptionBudgetStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1PodDisruptionBudgetSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1PodDisruptionBudgetStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1PodDisruptionBudgetSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1PodDisruptionBudgetSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1PodDisruptionBudgetStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1PodDisruptionBudgetStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1PodDisruptionBudgetFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1PodDisruptionBudgetSpecFluent> implements Nested{ + + V1PodDisruptionBudgetSpecBuilder builder; + SpecNested(V1PodDisruptionBudgetSpec item) { this.builder = new V1PodDisruptionBudgetSpecBuilder(this, item); } - V1PodDisruptionBudgetSpecBuilder builder; - + public N and() { return (N) V1PodDisruptionBudgetFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1PodDisruptionBudgetStatusFluent> implements Nested{ + + V1PodDisruptionBudgetStatusBuilder builder; + StatusNested(V1PodDisruptionBudgetStatus item) { this.builder = new V1PodDisruptionBudgetStatusBuilder(this, item); } - V1PodDisruptionBudgetStatusBuilder builder; - + public N and() { return (N) V1PodDisruptionBudgetFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java index 4180030f84..3702265862 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodDisruptionBudgetListBuilder extends V1PodDisruptionBudgetListFluent implements VisitableBuilder{ + + V1PodDisruptionBudgetListFluent fluent; + public V1PodDisruptionBudgetListBuilder() { this(new V1PodDisruptionBudgetList()); } @@ -11,17 +14,16 @@ public V1PodDisruptionBudgetListBuilder(V1PodDisruptionBudgetListFluent fluen this(fluent, new V1PodDisruptionBudgetList()); } - public V1PodDisruptionBudgetListBuilder(V1PodDisruptionBudgetListFluent fluent,V1PodDisruptionBudgetList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodDisruptionBudgetListBuilder(V1PodDisruptionBudgetList instance) { this.fluent = this; this.copyInstance(instance); } - V1PodDisruptionBudgetListFluent fluent; + public V1PodDisruptionBudgetListBuilder(V1PodDisruptionBudgetListFluent fluent,V1PodDisruptionBudgetList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodDisruptionBudgetList build() { V1PodDisruptionBudgetList buildable = new V1PodDisruptionBudgetList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1PodDisruptionBudgetList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java index b3cdd88fd9..9aadc37022 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodDisruptionBudgetListFluent> extends BaseFluent{ - public V1PodDisruptionBudgetListFluent() { - } - - public V1PodDisruptionBudgetListFluent(V1PodDisruptionBudgetList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1PodDisruptionBudgetList instance) { - instance = instance != null ? instance : new V1PodDisruptionBudgetList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1PodDisruptionBudgetListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1PodDisruptionBudgetListFluent(V1PodDisruptionBudgetList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1PodDisruptionBudget item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1PodDisruptionBudget item : items) { + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1PodDisruptionBudget item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1PodDisruptionBudget item) { + return new ItemsNested(-1, item); } public A addToItems(V1PodDisruptionBudget... items) { @@ -96,68 +65,31 @@ public A addToItems(V1PodDisruptionBudget... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1PodDisruptionBudget item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1PodDisruptionBudget item : items) { - V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1PodDisruptionBudget... items) { - if (this.items == null) { - return (A) this; - } - for (V1PodDisruptionBudget item : items) { - V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1PodDisruptionBudget item : items) { - V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1PodDisruptionBudgetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1PodDisruptionBudget buildFirstItem() { + return this.items.get(0).build(); } public V1PodDisruptionBudget buildItem(int index) { return this.items.get(index).build(); } - public V1PodDisruptionBudget buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1PodDisruptionBudget buildLastItem() { @@ -173,73 +105,34 @@ public V1PodDisruptionBudget buildMatchingItem(Predicate predicate) { - for (V1PodDisruptionBudgetBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1PodDisruptionBudget item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1PodDisruptionBudgetList instance) { + instance = instance != null ? instance : new V1PodDisruptionBudgetList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1PodDisruptionBudget... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1PodDisruptionBudget item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1PodDisruptionBudget item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1PodDisruptionBudget item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate p return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1PodDisruptionBudgetBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1PodDisruptionBudget item : items) { + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1PodDisruptionBudget... items) { + if (this.items == null) { + return (A) this; + } + for (V1PodDisruptionBudget item : items) { + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1PodDisruptionBudgetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1PodDisruptionBudget item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1PodDisruptionBudget item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1PodDisruptionBudget item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1PodDisruptionBudget... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1PodDisruptionBudget item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1PodDisruptionBudgetFluent> implements Nested{ + + V1PodDisruptionBudgetBuilder builder; + int index; + ItemsNested(int index,V1PodDisruptionBudget item) { this.index = index; this.builder = new V1PodDisruptionBudgetBuilder(this, item); } - V1PodDisruptionBudgetBuilder builder; - int index; - + public N and() { return (N) V1PodDisruptionBudgetListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1PodDisruptionBudgetListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java index b0807c9579..0e94b7b90e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodDisruptionBudgetSpecBuilder extends V1PodDisruptionBudgetSpecFluent implements VisitableBuilder{ + + V1PodDisruptionBudgetSpecFluent fluent; + public V1PodDisruptionBudgetSpecBuilder() { this(new V1PodDisruptionBudgetSpec()); } @@ -11,17 +14,16 @@ public V1PodDisruptionBudgetSpecBuilder(V1PodDisruptionBudgetSpecFluent fluen this(fluent, new V1PodDisruptionBudgetSpec()); } - public V1PodDisruptionBudgetSpecBuilder(V1PodDisruptionBudgetSpecFluent fluent,V1PodDisruptionBudgetSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodDisruptionBudgetSpecBuilder(V1PodDisruptionBudgetSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1PodDisruptionBudgetSpecFluent fluent; + public V1PodDisruptionBudgetSpecBuilder(V1PodDisruptionBudgetSpecFluent fluent,V1PodDisruptionBudgetSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodDisruptionBudgetSpec build() { V1PodDisruptionBudgetSpec buildable = new V1PodDisruptionBudgetSpec(); buildable.setMaxUnavailable(fluent.getMaxUnavailable()); @@ -31,5 +33,4 @@ public V1PodDisruptionBudgetSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java index f6994516b0..e9a24e8b01 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java @@ -1,30 +1,36 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; import io.kubernetes.client.custom.IntOrString; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodDisruptionBudgetSpecFluent> extends BaseFluent{ + + private IntOrString maxUnavailable; + private IntOrString minAvailable; + private V1LabelSelectorBuilder selector; + private String unhealthyPodEvictionPolicy; + public V1PodDisruptionBudgetSpecFluent() { } public V1PodDisruptionBudgetSpecFluent(V1PodDisruptionBudgetSpec instance) { this.copyInstance(instance); } - private IntOrString maxUnavailable; - private IntOrString minAvailable; - private V1LabelSelectorBuilder selector; - private String unhealthyPodEvictionPolicy; + + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; + } protected void copyInstance(V1PodDisruptionBudgetSpec instance) { instance = instance != null ? instance : new V1PodDisruptionBudgetSpec(); @@ -36,80 +42,6 @@ protected void copyInstance(V1PodDisruptionBudgetSpec instance) { } } - public IntOrString getMaxUnavailable() { - return this.maxUnavailable; - } - - public A withMaxUnavailable(IntOrString maxUnavailable) { - this.maxUnavailable = maxUnavailable; - return (A) this; - } - - public boolean hasMaxUnavailable() { - return this.maxUnavailable != null; - } - - public A withNewMaxUnavailable(int value) { - return (A) this.withMaxUnavailable(new IntOrString(value)); - } - - public A withNewMaxUnavailable(String value) { - return (A) this.withMaxUnavailable(new IntOrString(value)); - } - - public IntOrString getMinAvailable() { - return this.minAvailable; - } - - public A withMinAvailable(IntOrString minAvailable) { - this.minAvailable = minAvailable; - return (A) this; - } - - public boolean hasMinAvailable() { - return this.minAvailable != null; - } - - public A withNewMinAvailable(int value) { - return (A) this.withMinAvailable(new IntOrString(value)); - } - - public A withNewMinAvailable(String value) { - return (A) this.withMinAvailable(new IntOrString(value)); - } - - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public A withSelector(V1LabelSelector selector) { - this._visitables.remove("selector"); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - this._visitables.get("selector").add(this.selector); - } else { - this.selector = null; - this._visitables.get("selector").remove(this.selector); - } - return (A) this; - } - - public boolean hasSelector() { - return this.selector != null; - } - - public SelectorNested withNewSelector() { - return new SelectorNested(null); - } - - public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); - } - - public SelectorNested editSelector() { - return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); - } - public SelectorNested editOrNewSelector() { return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } @@ -118,17 +50,8 @@ public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } - public String getUnhealthyPodEvictionPolicy() { - return this.unhealthyPodEvictionPolicy; - } - - public A withUnhealthyPodEvictionPolicy(String unhealthyPodEvictionPolicy) { - this.unhealthyPodEvictionPolicy = unhealthyPodEvictionPolicy; - return (A) this; - } - - public boolean hasUnhealthyPodEvictionPolicy() { - return this.unhealthyPodEvictionPolicy != null; + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } public boolean equals(Object o) { @@ -157,6 +80,34 @@ public boolean equals(Object o) { return true; } + public IntOrString getMaxUnavailable() { + return this.maxUnavailable; + } + + public IntOrString getMinAvailable() { + return this.minAvailable; + } + + public String getUnhealthyPodEvictionPolicy() { + return this.unhealthyPodEvictionPolicy; + } + + public boolean hasMaxUnavailable() { + return this.maxUnavailable != null; + } + + public boolean hasMinAvailable() { + return this.minAvailable != null; + } + + public boolean hasSelector() { + return this.selector != null; + } + + public boolean hasUnhealthyPodEvictionPolicy() { + return this.unhealthyPodEvictionPolicy != null; + } + public int hashCode() { return Objects.hash(maxUnavailable, minAvailable, selector, unhealthyPodEvictionPolicy); } @@ -186,12 +137,65 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMaxUnavailable(IntOrString maxUnavailable) { + this.maxUnavailable = maxUnavailable; + return (A) this; + } + + public A withMinAvailable(IntOrString minAvailable) { + this.minAvailable = minAvailable; + return (A) this; + } + + public A withNewMaxUnavailable(int value) { + return (A) this.withMaxUnavailable(new IntOrString(value)); + } + + public A withNewMaxUnavailable(String value) { + return (A) this.withMaxUnavailable(new IntOrString(value)); + } + + public A withNewMinAvailable(int value) { + return (A) this.withMinAvailable(new IntOrString(value)); + } + + public A withNewMinAvailable(String value) { + return (A) this.withMinAvailable(new IntOrString(value)); + } + + public SelectorNested withNewSelector() { + return new SelectorNested(null); + } + + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); + } + + public A withSelector(V1LabelSelector selector) { + this._visitables.remove("selector"); + if (selector != null) { + this.selector = new V1LabelSelectorBuilder(selector); + this._visitables.get("selector").add(this.selector); + } else { + this.selector = null; + this._visitables.get("selector").remove(this.selector); + } + return (A) this; + } + + public A withUnhealthyPodEvictionPolicy(String unhealthyPodEvictionPolicy) { + this.unhealthyPodEvictionPolicy = unhealthyPodEvictionPolicy; + return (A) this; + } public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + SelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1PodDisruptionBudgetSpecFluent.this.withSelector(builder.build()); } @@ -200,7 +204,5 @@ public N endSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java index 853e565808..1d04d26c61 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodDisruptionBudgetStatusBuilder extends V1PodDisruptionBudgetStatusFluent implements VisitableBuilder{ + + V1PodDisruptionBudgetStatusFluent fluent; + public V1PodDisruptionBudgetStatusBuilder() { this(new V1PodDisruptionBudgetStatus()); } @@ -11,17 +14,16 @@ public V1PodDisruptionBudgetStatusBuilder(V1PodDisruptionBudgetStatusFluent f this(fluent, new V1PodDisruptionBudgetStatus()); } - public V1PodDisruptionBudgetStatusBuilder(V1PodDisruptionBudgetStatusFluent fluent,V1PodDisruptionBudgetStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodDisruptionBudgetStatusBuilder(V1PodDisruptionBudgetStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1PodDisruptionBudgetStatusFluent fluent; + public V1PodDisruptionBudgetStatusBuilder(V1PodDisruptionBudgetStatusFluent fluent,V1PodDisruptionBudgetStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodDisruptionBudgetStatus build() { V1PodDisruptionBudgetStatus buildable = new V1PodDisruptionBudgetStatus(); buildable.setConditions(fluent.buildConditions()); @@ -34,5 +36,4 @@ public V1PodDisruptionBudgetStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java index cf20d97292..7491d7c1f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java @@ -1,35 +1,30 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Integer; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; +import java.time.OffsetDateTime; import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; -import java.lang.Integer; -import java.time.OffsetDateTime; -import java.lang.Long; -import java.util.Objects; -import java.util.Collection; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodDisruptionBudgetStatusFluent> extends BaseFluent{ - public V1PodDisruptionBudgetStatusFluent() { - } - - public V1PodDisruptionBudgetStatusFluent(V1PodDisruptionBudgetStatus instance) { - this.copyInstance(instance); - } + private ArrayList conditions; private Integer currentHealthy; private Integer desiredHealthy; @@ -37,48 +32,32 @@ public V1PodDisruptionBudgetStatusFluent(V1PodDisruptionBudgetStatus instance) { private Integer disruptionsAllowed; private Integer expectedPods; private Long observedGeneration; - - protected void copyInstance(V1PodDisruptionBudgetStatus instance) { - instance = instance != null ? instance : new V1PodDisruptionBudgetStatus(); - if (instance != null) { - this.withConditions(instance.getConditions()); - this.withCurrentHealthy(instance.getCurrentHealthy()); - this.withDesiredHealthy(instance.getDesiredHealthy()); - this.withDisruptedPods(instance.getDisruptedPods()); - this.withDisruptionsAllowed(instance.getDisruptionsAllowed()); - this.withExpectedPods(instance.getExpectedPods()); - this.withObservedGeneration(instance.getObservedGeneration()); - } + + public V1PodDisruptionBudgetStatusFluent() { } - public A addToConditions(int index,V1Condition item) { + public V1PodDisruptionBudgetStatusFluent(V1PodDisruptionBudgetStatus instance) { + this.copyInstance(instance); + } + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1Condition... items) { @@ -93,66 +72,49 @@ public A addToConditions(V1Condition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeFromConditions(V1Condition... items) { - if (this.conditions == null) { - return (A) this; + public A addToDisruptedPods(Map map) { + if (this.disruptedPods == null && map != null) { + this.disruptedPods = new LinkedHashMap(); } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + if (map != null) { + this.disruptedPods.putAll(map); } return (A) this; } - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; + public A addToDisruptedPods(String key,OffsetDateTime value) { + if (this.disruptedPods == null && key != null && value != null) { + this.disruptedPods = new LinkedHashMap(); } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + if (key != null && value != null) { + this.disruptedPods.put(key, value); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1Condition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -170,61 +132,21 @@ public V1Condition buildMatchingCondition(Predicate predicat return null; } - public boolean hasMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(V1Condition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1Condition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1PodDisruptionBudgetStatus instance) { + instance = instance != null ? instance : new V1PodDisruptionBudgetStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withCurrentHealthy(instance.getCurrentHealthy()); + this.withDesiredHealthy(instance.getDesiredHealthy()); + this.withDisruptedPods(instance.getDisruptedPods()); + this.withDisruptionsAllowed(instance.getDisruptionsAllowed()); + this.withExpectedPods(instance.getExpectedPods()); + this.withObservedGeneration(instance.getObservedGeneration()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -259,48 +181,126 @@ public ConditionsNested editMatchingCondition(Predicate p return this.setNewConditionLike(index, this.buildCondition(index)); } + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodDisruptionBudgetStatusFluent that = (V1PodDisruptionBudgetStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(currentHealthy, that.currentHealthy))) { + return false; + } + if (!(Objects.equals(desiredHealthy, that.desiredHealthy))) { + return false; + } + if (!(Objects.equals(disruptedPods, that.disruptedPods))) { + return false; + } + if (!(Objects.equals(disruptionsAllowed, that.disruptionsAllowed))) { + return false; + } + if (!(Objects.equals(expectedPods, that.expectedPods))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + return true; + } + public Integer getCurrentHealthy() { return this.currentHealthy; } - public A withCurrentHealthy(Integer currentHealthy) { - this.currentHealthy = currentHealthy; - return (A) this; + public Integer getDesiredHealthy() { + return this.desiredHealthy; } - public boolean hasCurrentHealthy() { - return this.currentHealthy != null; + public Map getDisruptedPods() { + return this.disruptedPods; } - public Integer getDesiredHealthy() { - return this.desiredHealthy; + public Integer getDisruptionsAllowed() { + return this.disruptionsAllowed; } - public A withDesiredHealthy(Integer desiredHealthy) { - this.desiredHealthy = desiredHealthy; - return (A) this; + public Integer getExpectedPods() { + return this.expectedPods; + } + + public Long getObservedGeneration() { + return this.observedGeneration; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasCurrentHealthy() { + return this.currentHealthy != null; } public boolean hasDesiredHealthy() { return this.desiredHealthy != null; } - public A addToDisruptedPods(String key,OffsetDateTime value) { - if (this.disruptedPods == null && key != null && value != null) { - this.disruptedPods = new LinkedHashMap(); + public boolean hasDisruptedPods() { + return this.disruptedPods != null; + } + + public boolean hasDisruptionsAllowed() { + return this.disruptionsAllowed != null; + } + + public boolean hasExpectedPods() { + return this.expectedPods != null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasObservedGeneration() { + return this.observedGeneration != null; + } + + public int hashCode() { + return Objects.hash(conditions, currentHealthy, desiredHealthy, disruptedPods, disruptionsAllowed, expectedPods, observedGeneration); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; } - if (key != null && value != null) { - this.disruptedPods.put(key, value); + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } return (A) this; } - public A addToDisruptedPods(Map map) { - if (this.disruptedPods == null && map != null) { - this.disruptedPods = new LinkedHashMap(); + public A removeFromConditions(V1Condition... items) { + if (this.conditions == null) { + return (A) this; } - if (map != null) { - this.disruptedPods.putAll(map); + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } return (A) this; } @@ -329,99 +329,39 @@ public A removeFromDisruptedPods(Map map) { return (A) this; } - public Map getDisruptedPods() { - return this.disruptedPods; - } - - public A withDisruptedPods(Map disruptedPods) { - if (disruptedPods == null) { - this.disruptedPods = null; - } else { - this.disruptedPods = new LinkedHashMap(disruptedPods); + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasDisruptedPods() { - return this.disruptedPods != null; - } - - public Integer getDisruptionsAllowed() { - return this.disruptionsAllowed; - } - - public A withDisruptionsAllowed(Integer disruptionsAllowed) { - this.disruptionsAllowed = disruptionsAllowed; - return (A) this; - } - - public boolean hasDisruptionsAllowed() { - return this.disruptionsAllowed != null; - } - - public Integer getExpectedPods() { - return this.expectedPods; - } - - public A withExpectedPods(Integer expectedPods) { - this.expectedPods = expectedPods; - return (A) this; - } - - public boolean hasExpectedPods() { - return this.expectedPods != null; - } - - public Long getObservedGeneration() { - return this.observedGeneration; - } - - public A withObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - return (A) this; - } - - public boolean hasObservedGeneration() { - return this.observedGeneration != null; + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1PodDisruptionBudgetStatusFluent that = (V1PodDisruptionBudgetStatusFluent) o; - if (!(Objects.equals(conditions, that.conditions))) { - return false; - } - if (!(Objects.equals(currentHealthy, that.currentHealthy))) { - return false; - } - if (!(Objects.equals(desiredHealthy, that.desiredHealthy))) { - return false; - } - if (!(Objects.equals(disruptedPods, that.disruptedPods))) { - return false; - } - if (!(Objects.equals(disruptionsAllowed, that.disruptionsAllowed))) { - return false; - } - if (!(Objects.equals(expectedPods, that.expectedPods))) { - return false; + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); } - if (!(Objects.equals(observedGeneration, that.observedGeneration))) { - return false; + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); } - return true; - } - - public int hashCode() { - return Objects.hash(conditions, currentHealthy, desiredHealthy, disruptedPods, disruptionsAllowed, expectedPods, observedGeneration); + return (A) this; } public String toString() { @@ -464,14 +404,78 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withCurrentHealthy(Integer currentHealthy) { + this.currentHealthy = currentHealthy; + return (A) this; + } + + public A withDesiredHealthy(Integer desiredHealthy) { + this.desiredHealthy = desiredHealthy; + return (A) this; + } + + public A withDisruptedPods(Map disruptedPods) { + if (disruptedPods == null) { + this.disruptedPods = null; + } else { + this.disruptedPods = new LinkedHashMap(disruptedPods); + } + return (A) this; + } + + public A withDisruptionsAllowed(Integer disruptionsAllowed) { + this.disruptionsAllowed = disruptionsAllowed; + return (A) this; + } + + public A withExpectedPods(Integer expectedPods) { + this.expectedPods = expectedPods; + return (A) this; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + ConditionsNested(int index,V1Condition item) { this.index = index; this.builder = new V1ConditionBuilder(this, item); } - V1ConditionBuilder builder; - int index; - + public N and() { return (N) V1PodDisruptionBudgetStatusFluent.this.setToConditions(index, builder.build()); } @@ -480,7 +484,5 @@ public N endCondition() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusBuilder.java index cd7c99d511..0f7fb82ec0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodExtendedResourceClaimStatusBuilder extends V1PodExtendedResourceClaimStatusFluent implements VisitableBuilder{ + + V1PodExtendedResourceClaimStatusFluent fluent; + public V1PodExtendedResourceClaimStatusBuilder() { this(new V1PodExtendedResourceClaimStatus()); } @@ -11,17 +14,16 @@ public V1PodExtendedResourceClaimStatusBuilder(V1PodExtendedResourceClaimStatusF this(fluent, new V1PodExtendedResourceClaimStatus()); } - public V1PodExtendedResourceClaimStatusBuilder(V1PodExtendedResourceClaimStatusFluent fluent,V1PodExtendedResourceClaimStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodExtendedResourceClaimStatusBuilder(V1PodExtendedResourceClaimStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1PodExtendedResourceClaimStatusFluent fluent; + public V1PodExtendedResourceClaimStatusBuilder(V1PodExtendedResourceClaimStatusFluent fluent,V1PodExtendedResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodExtendedResourceClaimStatus build() { V1PodExtendedResourceClaimStatus buildable = new V1PodExtendedResourceClaimStatus(); buildable.setRequestMappings(fluent.buildRequestMappings()); @@ -29,5 +31,4 @@ public V1PodExtendedResourceClaimStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusFluent.java index c418813866..9d49f98b90 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusFluent.java @@ -1,69 +1,53 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodExtendedResourceClaimStatusFluent> extends BaseFluent{ + + private ArrayList requestMappings; + private String resourceClaimName; + public V1PodExtendedResourceClaimStatusFluent() { } public V1PodExtendedResourceClaimStatusFluent(V1PodExtendedResourceClaimStatus instance) { this.copyInstance(instance); } - private ArrayList requestMappings; - private String resourceClaimName; - - protected void copyInstance(V1PodExtendedResourceClaimStatus instance) { - instance = instance != null ? instance : new V1PodExtendedResourceClaimStatus(); - if (instance != null) { - this.withRequestMappings(instance.getRequestMappings()); - this.withResourceClaimName(instance.getResourceClaimName()); - } - } - - public A addToRequestMappings(int index,V1ContainerExtendedResourceRequest item) { + + public A addAllToRequestMappings(Collection items) { if (this.requestMappings == null) { this.requestMappings = new ArrayList(); } - V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); - if (index < 0 || index >= requestMappings.size()) { - _visitables.get("requestMappings").add(builder); - requestMappings.add(builder); - } else { + for (V1ContainerExtendedResourceRequest item : items) { + V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); _visitables.get("requestMappings").add(builder); - requestMappings.add(index, builder); + this.requestMappings.add(builder); } return (A) this; } - public A setToRequestMappings(int index,V1ContainerExtendedResourceRequest item) { - if (this.requestMappings == null) { - this.requestMappings = new ArrayList(); - } - V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); - if (index < 0 || index >= requestMappings.size()) { - _visitables.get("requestMappings").add(builder); - requestMappings.add(builder); - } else { - _visitables.get("requestMappings").add(builder); - requestMappings.set(index, builder); - } - return (A) this; + public RequestMappingsNested addNewRequestMapping() { + return new RequestMappingsNested(-1, null); + } + + public RequestMappingsNested addNewRequestMappingLike(V1ContainerExtendedResourceRequest item) { + return new RequestMappingsNested(-1, item); } public A addToRequestMappings(V1ContainerExtendedResourceRequest... items) { @@ -78,66 +62,21 @@ public A addToRequestMappings(V1ContainerExtendedResourceRequest... items) { return (A) this; } - public A addAllToRequestMappings(Collection items) { + public A addToRequestMappings(int index,V1ContainerExtendedResourceRequest item) { if (this.requestMappings == null) { this.requestMappings = new ArrayList(); } - for (V1ContainerExtendedResourceRequest item : items) { - V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); + V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); + if (index < 0 || index >= requestMappings.size()) { _visitables.get("requestMappings").add(builder); - this.requestMappings.add(builder); - } - return (A) this; - } - - public A removeFromRequestMappings(V1ContainerExtendedResourceRequest... items) { - if (this.requestMappings == null) { - return (A) this; - } - for (V1ContainerExtendedResourceRequest item : items) { - V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); - _visitables.get("requestMappings").remove(builder); - this.requestMappings.remove(builder); - } - return (A) this; - } - - public A removeAllFromRequestMappings(Collection items) { - if (this.requestMappings == null) { - return (A) this; - } - for (V1ContainerExtendedResourceRequest item : items) { - V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); - _visitables.get("requestMappings").remove(builder); - this.requestMappings.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromRequestMappings(Predicate predicate) { - if (requestMappings == null) { - return (A) this; - } - Iterator each = requestMappings.iterator(); - List visitables = _visitables.get("requestMappings"); - while (each.hasNext()) { - V1ContainerExtendedResourceRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + requestMappings.add(builder); + } else { + _visitables.get("requestMappings").add(builder); + requestMappings.add(index, builder); } return (A) this; } - public List buildRequestMappings() { - return this.requestMappings != null ? build(requestMappings) : null; - } - - public V1ContainerExtendedResourceRequest buildRequestMapping(int index) { - return this.requestMappings.get(index).build(); - } - public V1ContainerExtendedResourceRequest buildFirstRequestMapping() { return this.requestMappings.get(0).build(); } @@ -155,64 +94,20 @@ public V1ContainerExtendedResourceRequest buildMatchingRequestMapping(Predicate< return null; } - public boolean hasMatchingRequestMapping(Predicate predicate) { - for (V1ContainerExtendedResourceRequestBuilder item : requestMappings) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRequestMappings(List requestMappings) { - if (this.requestMappings != null) { - this._visitables.get("requestMappings").clear(); - } - if (requestMappings != null) { - this.requestMappings = new ArrayList(); - for (V1ContainerExtendedResourceRequest item : requestMappings) { - this.addToRequestMappings(item); - } - } else { - this.requestMappings = null; - } - return (A) this; - } - - public A withRequestMappings(V1ContainerExtendedResourceRequest... requestMappings) { - if (this.requestMappings != null) { - this.requestMappings.clear(); - _visitables.remove("requestMappings"); - } - if (requestMappings != null) { - for (V1ContainerExtendedResourceRequest item : requestMappings) { - this.addToRequestMappings(item); - } - } - return (A) this; - } - - public boolean hasRequestMappings() { - return this.requestMappings != null && !(this.requestMappings.isEmpty()); - } - - public RequestMappingsNested addNewRequestMapping() { - return new RequestMappingsNested(-1, null); - } - - public RequestMappingsNested addNewRequestMappingLike(V1ContainerExtendedResourceRequest item) { - return new RequestMappingsNested(-1, item); + public V1ContainerExtendedResourceRequest buildRequestMapping(int index) { + return this.requestMappings.get(index).build(); } - public RequestMappingsNested setNewRequestMappingLike(int index,V1ContainerExtendedResourceRequest item) { - return new RequestMappingsNested(index, item); + public List buildRequestMappings() { + return this.requestMappings != null ? build(requestMappings) : null; } - public RequestMappingsNested editRequestMapping(int index) { - if (index <= requestMappings.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requestMappings")); + protected void copyInstance(V1PodExtendedResourceClaimStatus instance) { + instance = instance != null ? instance : new V1PodExtendedResourceClaimStatus(); + if (instance != null) { + this.withRequestMappings(instance.getRequestMappings()); + this.withResourceClaimName(instance.getResourceClaimName()); } - return this.setNewRequestMappingLike(index, this.buildRequestMapping(index)); } public RequestMappingsNested editFirstRequestMapping() { @@ -244,17 +139,11 @@ public RequestMappingsNested editMatchingRequestMapping(Predicate editRequestMapping(int index) { + if (requestMappings.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requestMappings")); + } + return this.setNewRequestMappingLike(index, this.buildRequestMapping(index)); } public boolean equals(Object o) { @@ -277,10 +166,90 @@ public boolean equals(Object o) { return true; } + public String getResourceClaimName() { + return this.resourceClaimName; + } + + public boolean hasMatchingRequestMapping(Predicate predicate) { + for (V1ContainerExtendedResourceRequestBuilder item : requestMappings) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRequestMappings() { + return this.requestMappings != null && !(this.requestMappings.isEmpty()); + } + + public boolean hasResourceClaimName() { + return this.resourceClaimName != null; + } + public int hashCode() { return Objects.hash(requestMappings, resourceClaimName); } + public A removeAllFromRequestMappings(Collection items) { + if (this.requestMappings == null) { + return (A) this; + } + for (V1ContainerExtendedResourceRequest item : items) { + V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); + _visitables.get("requestMappings").remove(builder); + this.requestMappings.remove(builder); + } + return (A) this; + } + + public A removeFromRequestMappings(V1ContainerExtendedResourceRequest... items) { + if (this.requestMappings == null) { + return (A) this; + } + for (V1ContainerExtendedResourceRequest item : items) { + V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); + _visitables.get("requestMappings").remove(builder); + this.requestMappings.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromRequestMappings(Predicate predicate) { + if (requestMappings == null) { + return (A) this; + } + Iterator each = requestMappings.iterator(); + List visitables = _visitables.get("requestMappings"); + while (each.hasNext()) { + V1ContainerExtendedResourceRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public RequestMappingsNested setNewRequestMappingLike(int index,V1ContainerExtendedResourceRequest item) { + return new RequestMappingsNested(index, item); + } + + public A setToRequestMappings(int index,V1ContainerExtendedResourceRequest item) { + if (this.requestMappings == null) { + this.requestMappings = new ArrayList(); + } + V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); + if (index < 0 || index >= requestMappings.size()) { + _visitables.get("requestMappings").add(builder); + requestMappings.add(builder); + } else { + _visitables.get("requestMappings").add(builder); + requestMappings.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -296,14 +265,49 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withRequestMappings(List requestMappings) { + if (this.requestMappings != null) { + this._visitables.get("requestMappings").clear(); + } + if (requestMappings != null) { + this.requestMappings = new ArrayList(); + for (V1ContainerExtendedResourceRequest item : requestMappings) { + this.addToRequestMappings(item); + } + } else { + this.requestMappings = null; + } + return (A) this; + } + + public A withRequestMappings(V1ContainerExtendedResourceRequest... requestMappings) { + if (this.requestMappings != null) { + this.requestMappings.clear(); + _visitables.remove("requestMappings"); + } + if (requestMappings != null) { + for (V1ContainerExtendedResourceRequest item : requestMappings) { + this.addToRequestMappings(item); + } + } + return (A) this; + } + + public A withResourceClaimName(String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return (A) this; + } public class RequestMappingsNested extends V1ContainerExtendedResourceRequestFluent> implements Nested{ + + V1ContainerExtendedResourceRequestBuilder builder; + int index; + RequestMappingsNested(int index,V1ContainerExtendedResourceRequest item) { this.index = index; this.builder = new V1ContainerExtendedResourceRequestBuilder(this, item); } - V1ContainerExtendedResourceRequestBuilder builder; - int index; - + public N and() { return (N) V1PodExtendedResourceClaimStatusFluent.this.setToRequestMappings(index, builder.build()); } @@ -312,7 +316,5 @@ public N endRequestMapping() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java index bbbb6bd925..8f920eba18 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodFailurePolicyBuilder extends V1PodFailurePolicyFluent implements VisitableBuilder{ + + V1PodFailurePolicyFluent fluent; + public V1PodFailurePolicyBuilder() { this(new V1PodFailurePolicy()); } @@ -11,22 +14,20 @@ public V1PodFailurePolicyBuilder(V1PodFailurePolicyFluent fluent) { this(fluent, new V1PodFailurePolicy()); } - public V1PodFailurePolicyBuilder(V1PodFailurePolicyFluent fluent,V1PodFailurePolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodFailurePolicyBuilder(V1PodFailurePolicy instance) { this.fluent = this; this.copyInstance(instance); } - V1PodFailurePolicyFluent fluent; + public V1PodFailurePolicyBuilder(V1PodFailurePolicyFluent fluent,V1PodFailurePolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodFailurePolicy build() { V1PodFailurePolicy buildable = new V1PodFailurePolicy(); buildable.setRules(fluent.buildRules()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java index 2a8190943f..766f553dca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java @@ -1,67 +1,52 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodFailurePolicyFluent> extends BaseFluent{ + + private ArrayList rules; + public V1PodFailurePolicyFluent() { } public V1PodFailurePolicyFluent(V1PodFailurePolicy instance) { this.copyInstance(instance); } - private ArrayList rules; - - protected void copyInstance(V1PodFailurePolicy instance) { - instance = instance != null ? instance : new V1PodFailurePolicy(); - if (instance != null) { - this.withRules(instance.getRules()); - } - } - - public A addToRules(int index,V1PodFailurePolicyRule item) { + + public A addAllToRules(Collection items) { if (this.rules == null) { this.rules = new ArrayList(); } - V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); - } else { + for (V1PodFailurePolicyRule item : items) { + V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); _visitables.get("rules").add(builder); - rules.add(index, builder); + this.rules.add(builder); } return (A) this; } - public A setToRules(int index,V1PodFailurePolicyRule item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); - } else { - _visitables.get("rules").add(builder); - rules.set(index, builder); - } - return (A) this; + public RulesNested addNewRule() { + return new RulesNested(-1, null); + } + + public RulesNested addNewRuleLike(V1PodFailurePolicyRule item) { + return new RulesNested(-1, item); } public A addToRules(V1PodFailurePolicyRule... items) { @@ -76,66 +61,21 @@ public A addToRules(V1PodFailurePolicyRule... items) { return (A) this; } - public A addAllToRules(Collection items) { + public A addToRules(int index,V1PodFailurePolicyRule item) { if (this.rules == null) { this.rules = new ArrayList(); } - for (V1PodFailurePolicyRule item : items) { - V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); + V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); + if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; - } - - public A removeFromRules(V1PodFailurePolicyRule... items) { - if (this.rules == null) { - return (A) this; - } - for (V1PodFailurePolicyRule item : items) { - V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); - _visitables.get("rules").remove(builder); - this.rules.remove(builder); - } - return (A) this; - } - - public A removeAllFromRules(Collection items) { - if (this.rules == null) { - return (A) this; - } - for (V1PodFailurePolicyRule item : items) { - V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); - _visitables.get("rules").remove(builder); - this.rules.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromRules(Predicate predicate) { - if (rules == null) { - return (A) this; - } - Iterator each = rules.iterator(); - List visitables = _visitables.get("rules"); - while (each.hasNext()) { - V1PodFailurePolicyRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); } return (A) this; } - public List buildRules() { - return this.rules != null ? build(rules) : null; - } - - public V1PodFailurePolicyRule buildRule(int index) { - return this.rules.get(index).build(); - } - public V1PodFailurePolicyRule buildFirstRule() { return this.rules.get(0).build(); } @@ -153,64 +93,19 @@ public V1PodFailurePolicyRule buildMatchingRule(Predicate predicate) { - for (V1PodFailurePolicyRuleBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRules(List rules) { - if (this.rules != null) { - this._visitables.get("rules").clear(); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1PodFailurePolicyRule item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; - } - return (A) this; - } - - public A withRules(V1PodFailurePolicyRule... rules) { - if (this.rules != null) { - this.rules.clear(); - _visitables.remove("rules"); - } - if (rules != null) { - for (V1PodFailurePolicyRule item : rules) { - this.addToRules(item); - } - } - return (A) this; - } - - public boolean hasRules() { - return this.rules != null && !(this.rules.isEmpty()); - } - - public RulesNested addNewRule() { - return new RulesNested(-1, null); - } - - public RulesNested addNewRuleLike(V1PodFailurePolicyRule item) { - return new RulesNested(-1, item); + public V1PodFailurePolicyRule buildRule(int index) { + return this.rules.get(index).build(); } - public RulesNested setNewRuleLike(int index,V1PodFailurePolicyRule item) { - return new RulesNested(index, item); + public List buildRules() { + return this.rules != null ? build(rules) : null; } - public RulesNested editRule(int index) { - if (index <= rules.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + protected void copyInstance(V1PodFailurePolicy instance) { + instance = instance != null ? instance : new V1PodFailurePolicy(); + if (instance != null) { + this.withRules(instance.getRules()); } - return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editFirstRule() { @@ -242,6 +137,13 @@ public RulesNested editMatchingRule(Predicate return this.setNewRuleLike(index, this.buildRule(index)); } + public RulesNested editRule(int index) { + if (rules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -259,10 +161,82 @@ public boolean equals(Object o) { return true; } + public boolean hasMatchingRule(Predicate predicate) { + for (V1PodFailurePolicyRuleBuilder item : rules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRules() { + return this.rules != null && !(this.rules.isEmpty()); + } + public int hashCode() { return Objects.hash(rules); } + public A removeAllFromRules(Collection items) { + if (this.rules == null) { + return (A) this; + } + for (V1PodFailurePolicyRule item : items) { + V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; + } + + public A removeFromRules(V1PodFailurePolicyRule... items) { + if (this.rules == null) { + return (A) this; + } + for (V1PodFailurePolicyRule item : items) { + V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromRules(Predicate predicate) { + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); + while (each.hasNext()) { + V1PodFailurePolicyRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public RulesNested setNewRuleLike(int index,V1PodFailurePolicyRule item) { + return new RulesNested(index, item); + } + + public A setToRules(int index,V1PodFailurePolicyRule item) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -273,14 +247,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withRules(List rules) { + if (this.rules != null) { + this._visitables.get("rules").clear(); + } + if (rules != null) { + this.rules = new ArrayList(); + for (V1PodFailurePolicyRule item : rules) { + this.addToRules(item); + } + } else { + this.rules = null; + } + return (A) this; + } + + public A withRules(V1PodFailurePolicyRule... rules) { + if (this.rules != null) { + this.rules.clear(); + _visitables.remove("rules"); + } + if (rules != null) { + for (V1PodFailurePolicyRule item : rules) { + this.addToRules(item); + } + } + return (A) this; + } public class RulesNested extends V1PodFailurePolicyRuleFluent> implements Nested{ + + V1PodFailurePolicyRuleBuilder builder; + int index; + RulesNested(int index,V1PodFailurePolicyRule item) { this.index = index; this.builder = new V1PodFailurePolicyRuleBuilder(this, item); } - V1PodFailurePolicyRuleBuilder builder; - int index; - + public N and() { return (N) V1PodFailurePolicyFluent.this.setToRules(index, builder.build()); } @@ -289,7 +293,5 @@ public N endRule() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java index de394b4191..9619ec22a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodFailurePolicyOnExitCodesRequirementBuilder extends V1PodFailurePolicyOnExitCodesRequirementFluent implements VisitableBuilder{ + + V1PodFailurePolicyOnExitCodesRequirementFluent fluent; + public V1PodFailurePolicyOnExitCodesRequirementBuilder() { this(new V1PodFailurePolicyOnExitCodesRequirement()); } @@ -11,17 +14,16 @@ public V1PodFailurePolicyOnExitCodesRequirementBuilder(V1PodFailurePolicyOnExitC this(fluent, new V1PodFailurePolicyOnExitCodesRequirement()); } - public V1PodFailurePolicyOnExitCodesRequirementBuilder(V1PodFailurePolicyOnExitCodesRequirementFluent fluent,V1PodFailurePolicyOnExitCodesRequirement instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodFailurePolicyOnExitCodesRequirementBuilder(V1PodFailurePolicyOnExitCodesRequirement instance) { this.fluent = this; this.copyInstance(instance); } - V1PodFailurePolicyOnExitCodesRequirementFluent fluent; + public V1PodFailurePolicyOnExitCodesRequirementBuilder(V1PodFailurePolicyOnExitCodesRequirementFluent fluent,V1PodFailurePolicyOnExitCodesRequirement instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodFailurePolicyOnExitCodesRequirement build() { V1PodFailurePolicyOnExitCodesRequirement buildable = new V1PodFailurePolicyOnExitCodesRequirement(); buildable.setContainerName(fluent.getContainerName()); @@ -30,5 +32,4 @@ public V1PodFailurePolicyOnExitCodesRequirement build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java index e521941af7..df5cca15f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java @@ -1,80 +1,41 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodFailurePolicyOnExitCodesRequirementFluent> extends BaseFluent{ - public V1PodFailurePolicyOnExitCodesRequirementFluent() { - } - - public V1PodFailurePolicyOnExitCodesRequirementFluent(V1PodFailurePolicyOnExitCodesRequirement instance) { - this.copyInstance(instance); - } + private String containerName; private String operator; private List values; - - protected void copyInstance(V1PodFailurePolicyOnExitCodesRequirement instance) { - instance = instance != null ? instance : new V1PodFailurePolicyOnExitCodesRequirement(); - if (instance != null) { - this.withContainerName(instance.getContainerName()); - this.withOperator(instance.getOperator()); - this.withValues(instance.getValues()); - } - } - - public String getContainerName() { - return this.containerName; - } - - public A withContainerName(String containerName) { - this.containerName = containerName; - return (A) this; - } - - public boolean hasContainerName() { - return this.containerName != null; - } - - public String getOperator() { - return this.operator; - } - - public A withOperator(String operator) { - this.operator = operator; - return (A) this; + + public V1PodFailurePolicyOnExitCodesRequirementFluent() { } - public boolean hasOperator() { - return this.operator != null; + public V1PodFailurePolicyOnExitCodesRequirementFluent(V1PodFailurePolicyOnExitCodesRequirement instance) { + this.copyInstance(instance); } - - public A addToValues(int index,Integer item) { + + public A addAllToValues(Collection items) { if (this.values == null) { this.values = new ArrayList(); } - this.values.add(index, item); - return (A) this; - } - - public A setToValues(int index,Integer item) { - if (this.values == null) { - this.values = new ArrayList(); + for (Integer item : items) { + this.values.add(item); } - this.values.set(index, item); return (A) this; } @@ -88,42 +49,48 @@ public A addToValues(Integer... items) { return (A) this; } - public A addAllToValues(Collection items) { + public A addToValues(int index,Integer item) { if (this.values == null) { this.values = new ArrayList(); } - for (Integer item : items) { - this.values.add(item); - } + this.values.add(index, item); return (A) this; } - public A removeFromValues(Integer... items) { - if (this.values == null) { - return (A) this; - } - for (Integer item : items) { - this.values.remove(item); + protected void copyInstance(V1PodFailurePolicyOnExitCodesRequirement instance) { + instance = instance != null ? instance : new V1PodFailurePolicyOnExitCodesRequirement(); + if (instance != null) { + this.withContainerName(instance.getContainerName()); + this.withOperator(instance.getOperator()); + this.withValues(instance.getValues()); } - return (A) this; } - public A removeAllFromValues(Collection items) { - if (this.values == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (Integer item : items) { - this.values.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public List getValues() { - return this.values; + if (!(super.equals(o))) { + return false; + } + V1PodFailurePolicyOnExitCodesRequirementFluent that = (V1PodFailurePolicyOnExitCodesRequirementFluent) o; + if (!(Objects.equals(containerName, that.containerName))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } + return true; } - public Integer getValue(int index) { - return this.values.get(index); + public String getContainerName() { + return this.containerName; } public Integer getFirstValue() { @@ -143,6 +110,22 @@ public Integer getMatchingValue(Predicate predicate) { return null; } + public String getOperator() { + return this.operator; + } + + public Integer getValue(int index) { + return this.values.get(index); + } + + public List getValues() { + return this.values; + } + + public boolean hasContainerName() { + return this.containerName != null; + } + public boolean hasMatchingValue(Predicate predicate) { for (Integer item : values) { if (predicate.test(item)) { @@ -152,60 +135,44 @@ public boolean hasMatchingValue(Predicate predicate) { return false; } - public A withValues(List values) { - if (values != null) { - this.values = new ArrayList(); - for (Integer item : values) { - this.addToValues(item); - } - } else { - this.values = null; - } - return (A) this; - } - - public A withValues(Integer... values) { - if (this.values != null) { - this.values.clear(); - _visitables.remove("values"); - } - if (values != null) { - for (Integer item : values) { - this.addToValues(item); - } - } - return (A) this; + public boolean hasOperator() { + return this.operator != null; } public boolean hasValues() { return this.values != null && !(this.values.isEmpty()); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; + public int hashCode() { + return Objects.hash(containerName, operator, values); + } + + public A removeAllFromValues(Collection items) { + if (this.values == null) { + return (A) this; } - V1PodFailurePolicyOnExitCodesRequirementFluent that = (V1PodFailurePolicyOnExitCodesRequirementFluent) o; - if (!(Objects.equals(containerName, that.containerName))) { - return false; + for (Integer item : items) { + this.values.remove(item); } - if (!(Objects.equals(operator, that.operator))) { - return false; + return (A) this; + } + + public A removeFromValues(Integer... items) { + if (this.values == null) { + return (A) this; } - if (!(Objects.equals(values, that.values))) { - return false; + for (Integer item : items) { + this.values.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(containerName, operator, values); + public A setToValues(int index,Integer item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; } public String toString() { @@ -229,5 +196,39 @@ public String toString() { return sb.toString(); } - + public A withContainerName(String containerName) { + this.containerName = containerName; + return (A) this; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public A withValues(List values) { + if (values != null) { + this.values = new ArrayList(); + for (Integer item : values) { + this.addToValues(item); + } + } else { + this.values = null; + } + return (A) this; + } + + public A withValues(Integer... values) { + if (this.values != null) { + this.values.clear(); + _visitables.remove("values"); + } + if (values != null) { + for (Integer item : values) { + this.addToValues(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java index cb61c68de9..80b02357d0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodFailurePolicyOnPodConditionsPatternBuilder extends V1PodFailurePolicyOnPodConditionsPatternFluent implements VisitableBuilder{ + + V1PodFailurePolicyOnPodConditionsPatternFluent fluent; + public V1PodFailurePolicyOnPodConditionsPatternBuilder() { this(new V1PodFailurePolicyOnPodConditionsPattern()); } @@ -11,17 +14,16 @@ public V1PodFailurePolicyOnPodConditionsPatternBuilder(V1PodFailurePolicyOnPodCo this(fluent, new V1PodFailurePolicyOnPodConditionsPattern()); } - public V1PodFailurePolicyOnPodConditionsPatternBuilder(V1PodFailurePolicyOnPodConditionsPatternFluent fluent,V1PodFailurePolicyOnPodConditionsPattern instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodFailurePolicyOnPodConditionsPatternBuilder(V1PodFailurePolicyOnPodConditionsPattern instance) { this.fluent = this; this.copyInstance(instance); } - V1PodFailurePolicyOnPodConditionsPatternFluent fluent; + public V1PodFailurePolicyOnPodConditionsPatternBuilder(V1PodFailurePolicyOnPodConditionsPatternFluent fluent,V1PodFailurePolicyOnPodConditionsPattern instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodFailurePolicyOnPodConditionsPattern build() { V1PodFailurePolicyOnPodConditionsPattern buildable = new V1PodFailurePolicyOnPodConditionsPattern(); buildable.setStatus(fluent.getStatus()); @@ -29,5 +31,4 @@ public V1PodFailurePolicyOnPodConditionsPattern build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java index aa8be35704..e54f55c637 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodFailurePolicyOnPodConditionsPatternFluent> extends BaseFluent{ + + private String status; + private String type; + public V1PodFailurePolicyOnPodConditionsPatternFluent() { } public V1PodFailurePolicyOnPodConditionsPatternFluent(V1PodFailurePolicyOnPodConditionsPattern instance) { this.copyInstance(instance); } - private String status; - private String type; - + protected void copyInstance(V1PodFailurePolicyOnPodConditionsPattern instance) { instance = instance != null ? instance : new V1PodFailurePolicyOnPodConditionsPattern(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1PodFailurePolicyOnPodConditionsPattern instance) { } } - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getStatus() { + return this.status; + } + + public String getType() { + return this.type; + } + + public boolean hasStatus() { + return this.status != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(status, type); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java index 9c56bb031d..bc49652cec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodFailurePolicyRuleBuilder extends V1PodFailurePolicyRuleFluent implements VisitableBuilder{ + + V1PodFailurePolicyRuleFluent fluent; + public V1PodFailurePolicyRuleBuilder() { this(new V1PodFailurePolicyRule()); } @@ -11,17 +14,16 @@ public V1PodFailurePolicyRuleBuilder(V1PodFailurePolicyRuleFluent fluent) { this(fluent, new V1PodFailurePolicyRule()); } - public V1PodFailurePolicyRuleBuilder(V1PodFailurePolicyRuleFluent fluent,V1PodFailurePolicyRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodFailurePolicyRuleBuilder(V1PodFailurePolicyRule instance) { this.fluent = this; this.copyInstance(instance); } - V1PodFailurePolicyRuleFluent fluent; + public V1PodFailurePolicyRuleBuilder(V1PodFailurePolicyRuleFluent fluent,V1PodFailurePolicyRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodFailurePolicyRule build() { V1PodFailurePolicyRule buildable = new V1PodFailurePolicyRule(); buildable.setAction(fluent.getAction()); @@ -30,5 +32,4 @@ public V1PodFailurePolicyRule build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java index 4c29e80beb..9f41f0e8fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java @@ -1,125 +1,55 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodFailurePolicyRuleFluent> extends BaseFluent{ - public V1PodFailurePolicyRuleFluent() { - } - - public V1PodFailurePolicyRuleFluent(V1PodFailurePolicyRule instance) { - this.copyInstance(instance); - } + private String action; private V1PodFailurePolicyOnExitCodesRequirementBuilder onExitCodes; private ArrayList onPodConditions; - - protected void copyInstance(V1PodFailurePolicyRule instance) { - instance = instance != null ? instance : new V1PodFailurePolicyRule(); - if (instance != null) { - this.withAction(instance.getAction()); - this.withOnExitCodes(instance.getOnExitCodes()); - this.withOnPodConditions(instance.getOnPodConditions()); - } - } - - public String getAction() { - return this.action; - } - - public A withAction(String action) { - this.action = action; - return (A) this; - } - - public boolean hasAction() { - return this.action != null; - } - - public V1PodFailurePolicyOnExitCodesRequirement buildOnExitCodes() { - return this.onExitCodes != null ? this.onExitCodes.build() : null; - } - - public A withOnExitCodes(V1PodFailurePolicyOnExitCodesRequirement onExitCodes) { - this._visitables.remove("onExitCodes"); - if (onExitCodes != null) { - this.onExitCodes = new V1PodFailurePolicyOnExitCodesRequirementBuilder(onExitCodes); - this._visitables.get("onExitCodes").add(this.onExitCodes); - } else { - this.onExitCodes = null; - this._visitables.get("onExitCodes").remove(this.onExitCodes); - } - return (A) this; - } - - public boolean hasOnExitCodes() { - return this.onExitCodes != null; - } - - public OnExitCodesNested withNewOnExitCodes() { - return new OnExitCodesNested(null); - } - - public OnExitCodesNested withNewOnExitCodesLike(V1PodFailurePolicyOnExitCodesRequirement item) { - return new OnExitCodesNested(item); - } - - public OnExitCodesNested editOnExitCodes() { - return this.withNewOnExitCodesLike(Optional.ofNullable(this.buildOnExitCodes()).orElse(null)); - } - - public OnExitCodesNested editOrNewOnExitCodes() { - return this.withNewOnExitCodesLike(Optional.ofNullable(this.buildOnExitCodes()).orElse(new V1PodFailurePolicyOnExitCodesRequirementBuilder().build())); + + public V1PodFailurePolicyRuleFluent() { } - public OnExitCodesNested editOrNewOnExitCodesLike(V1PodFailurePolicyOnExitCodesRequirement item) { - return this.withNewOnExitCodesLike(Optional.ofNullable(this.buildOnExitCodes()).orElse(item)); + public V1PodFailurePolicyRuleFluent(V1PodFailurePolicyRule instance) { + this.copyInstance(instance); } - - public A addToOnPodConditions(int index,V1PodFailurePolicyOnPodConditionsPattern item) { + + public A addAllToOnPodConditions(Collection items) { if (this.onPodConditions == null) { this.onPodConditions = new ArrayList(); } - V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); - if (index < 0 || index >= onPodConditions.size()) { - _visitables.get("onPodConditions").add(builder); - onPodConditions.add(builder); - } else { + for (V1PodFailurePolicyOnPodConditionsPattern item : items) { + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); _visitables.get("onPodConditions").add(builder); - onPodConditions.add(index, builder); + this.onPodConditions.add(builder); } return (A) this; } - public A setToOnPodConditions(int index,V1PodFailurePolicyOnPodConditionsPattern item) { - if (this.onPodConditions == null) { - this.onPodConditions = new ArrayList(); - } - V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); - if (index < 0 || index >= onPodConditions.size()) { - _visitables.get("onPodConditions").add(builder); - onPodConditions.add(builder); - } else { - _visitables.get("onPodConditions").add(builder); - onPodConditions.set(index, builder); - } - return (A) this; + public OnPodConditionsNested addNewOnPodCondition() { + return new OnPodConditionsNested(-1, null); + } + + public OnPodConditionsNested addNewOnPodConditionLike(V1PodFailurePolicyOnPodConditionsPattern item) { + return new OnPodConditionsNested(-1, item); } public A addToOnPodConditions(V1PodFailurePolicyOnPodConditionsPattern... items) { @@ -134,66 +64,21 @@ public A addToOnPodConditions(V1PodFailurePolicyOnPodConditionsPattern... items) return (A) this; } - public A addAllToOnPodConditions(Collection items) { + public A addToOnPodConditions(int index,V1PodFailurePolicyOnPodConditionsPattern item) { if (this.onPodConditions == null) { this.onPodConditions = new ArrayList(); } - for (V1PodFailurePolicyOnPodConditionsPattern item : items) { - V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); + if (index < 0 || index >= onPodConditions.size()) { _visitables.get("onPodConditions").add(builder); - this.onPodConditions.add(builder); - } - return (A) this; - } - - public A removeFromOnPodConditions(V1PodFailurePolicyOnPodConditionsPattern... items) { - if (this.onPodConditions == null) { - return (A) this; - } - for (V1PodFailurePolicyOnPodConditionsPattern item : items) { - V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); - _visitables.get("onPodConditions").remove(builder); - this.onPodConditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromOnPodConditions(Collection items) { - if (this.onPodConditions == null) { - return (A) this; - } - for (V1PodFailurePolicyOnPodConditionsPattern item : items) { - V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); - _visitables.get("onPodConditions").remove(builder); - this.onPodConditions.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromOnPodConditions(Predicate predicate) { - if (onPodConditions == null) { - return (A) this; - } - Iterator each = onPodConditions.iterator(); - List visitables = _visitables.get("onPodConditions"); - while (each.hasNext()) { - V1PodFailurePolicyOnPodConditionsPatternBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + onPodConditions.add(builder); + } else { + _visitables.get("onPodConditions").add(builder); + onPodConditions.add(index, builder); } return (A) this; } - public List buildOnPodConditions() { - return this.onPodConditions != null ? build(onPodConditions) : null; - } - - public V1PodFailurePolicyOnPodConditionsPattern buildOnPodCondition(int index) { - return this.onPodConditions.get(index).build(); - } - public V1PodFailurePolicyOnPodConditionsPattern buildFirstOnPodCondition() { return this.onPodConditions.get(0).build(); } @@ -211,64 +96,25 @@ public V1PodFailurePolicyOnPodConditionsPattern buildMatchingOnPodCondition(Pred return null; } - public boolean hasMatchingOnPodCondition(Predicate predicate) { - for (V1PodFailurePolicyOnPodConditionsPatternBuilder item : onPodConditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withOnPodConditions(List onPodConditions) { - if (this.onPodConditions != null) { - this._visitables.get("onPodConditions").clear(); - } - if (onPodConditions != null) { - this.onPodConditions = new ArrayList(); - for (V1PodFailurePolicyOnPodConditionsPattern item : onPodConditions) { - this.addToOnPodConditions(item); - } - } else { - this.onPodConditions = null; - } - return (A) this; - } - - public A withOnPodConditions(V1PodFailurePolicyOnPodConditionsPattern... onPodConditions) { - if (this.onPodConditions != null) { - this.onPodConditions.clear(); - _visitables.remove("onPodConditions"); - } - if (onPodConditions != null) { - for (V1PodFailurePolicyOnPodConditionsPattern item : onPodConditions) { - this.addToOnPodConditions(item); - } - } - return (A) this; - } - - public boolean hasOnPodConditions() { - return this.onPodConditions != null && !(this.onPodConditions.isEmpty()); - } - - public OnPodConditionsNested addNewOnPodCondition() { - return new OnPodConditionsNested(-1, null); + public V1PodFailurePolicyOnExitCodesRequirement buildOnExitCodes() { + return this.onExitCodes != null ? this.onExitCodes.build() : null; } - public OnPodConditionsNested addNewOnPodConditionLike(V1PodFailurePolicyOnPodConditionsPattern item) { - return new OnPodConditionsNested(-1, item); + public V1PodFailurePolicyOnPodConditionsPattern buildOnPodCondition(int index) { + return this.onPodConditions.get(index).build(); } - public OnPodConditionsNested setNewOnPodConditionLike(int index,V1PodFailurePolicyOnPodConditionsPattern item) { - return new OnPodConditionsNested(index, item); + public List buildOnPodConditions() { + return this.onPodConditions != null ? build(onPodConditions) : null; } - public OnPodConditionsNested editOnPodCondition(int index) { - if (index <= onPodConditions.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "onPodConditions")); + protected void copyInstance(V1PodFailurePolicyRule instance) { + instance = instance != null ? instance : new V1PodFailurePolicyRule(); + if (instance != null) { + this.withAction(instance.getAction()); + this.withOnExitCodes(instance.getOnExitCodes()); + this.withOnPodConditions(instance.getOnPodConditions()); } - return this.setNewOnPodConditionLike(index, this.buildOnPodCondition(index)); } public OnPodConditionsNested editFirstOnPodCondition() { @@ -300,6 +146,25 @@ public OnPodConditionsNested editMatchingOnPodCondition(Predicate editOnExitCodes() { + return this.withNewOnExitCodesLike(Optional.ofNullable(this.buildOnExitCodes()).orElse(null)); + } + + public OnPodConditionsNested editOnPodCondition(int index) { + if (onPodConditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "onPodConditions")); + } + return this.setNewOnPodConditionLike(index, this.buildOnPodCondition(index)); + } + + public OnExitCodesNested editOrNewOnExitCodes() { + return this.withNewOnExitCodesLike(Optional.ofNullable(this.buildOnExitCodes()).orElse(new V1PodFailurePolicyOnExitCodesRequirementBuilder().build())); + } + + public OnExitCodesNested editOrNewOnExitCodesLike(V1PodFailurePolicyOnExitCodesRequirement item) { + return this.withNewOnExitCodesLike(Optional.ofNullable(this.buildOnExitCodes()).orElse(item)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -323,10 +188,94 @@ public boolean equals(Object o) { return true; } + public String getAction() { + return this.action; + } + + public boolean hasAction() { + return this.action != null; + } + + public boolean hasMatchingOnPodCondition(Predicate predicate) { + for (V1PodFailurePolicyOnPodConditionsPatternBuilder item : onPodConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasOnExitCodes() { + return this.onExitCodes != null; + } + + public boolean hasOnPodConditions() { + return this.onPodConditions != null && !(this.onPodConditions.isEmpty()); + } + public int hashCode() { return Objects.hash(action, onExitCodes, onPodConditions); } + public A removeAllFromOnPodConditions(Collection items) { + if (this.onPodConditions == null) { + return (A) this; + } + for (V1PodFailurePolicyOnPodConditionsPattern item : items) { + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); + _visitables.get("onPodConditions").remove(builder); + this.onPodConditions.remove(builder); + } + return (A) this; + } + + public A removeFromOnPodConditions(V1PodFailurePolicyOnPodConditionsPattern... items) { + if (this.onPodConditions == null) { + return (A) this; + } + for (V1PodFailurePolicyOnPodConditionsPattern item : items) { + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); + _visitables.get("onPodConditions").remove(builder); + this.onPodConditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromOnPodConditions(Predicate predicate) { + if (onPodConditions == null) { + return (A) this; + } + Iterator each = onPodConditions.iterator(); + List visitables = _visitables.get("onPodConditions"); + while (each.hasNext()) { + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public OnPodConditionsNested setNewOnPodConditionLike(int index,V1PodFailurePolicyOnPodConditionsPattern item) { + return new OnPodConditionsNested(index, item); + } + + public A setToOnPodConditions(int index,V1PodFailurePolicyOnPodConditionsPattern item) { + if (this.onPodConditions == null) { + this.onPodConditions = new ArrayList(); + } + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); + if (index < 0 || index >= onPodConditions.size()) { + _visitables.get("onPodConditions").add(builder); + onPodConditions.add(builder); + } else { + _visitables.get("onPodConditions").add(builder); + onPodConditions.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -347,12 +296,67 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAction(String action) { + this.action = action; + return (A) this; + } + + public OnExitCodesNested withNewOnExitCodes() { + return new OnExitCodesNested(null); + } + + public OnExitCodesNested withNewOnExitCodesLike(V1PodFailurePolicyOnExitCodesRequirement item) { + return new OnExitCodesNested(item); + } + + public A withOnExitCodes(V1PodFailurePolicyOnExitCodesRequirement onExitCodes) { + this._visitables.remove("onExitCodes"); + if (onExitCodes != null) { + this.onExitCodes = new V1PodFailurePolicyOnExitCodesRequirementBuilder(onExitCodes); + this._visitables.get("onExitCodes").add(this.onExitCodes); + } else { + this.onExitCodes = null; + this._visitables.get("onExitCodes").remove(this.onExitCodes); + } + return (A) this; + } + + public A withOnPodConditions(List onPodConditions) { + if (this.onPodConditions != null) { + this._visitables.get("onPodConditions").clear(); + } + if (onPodConditions != null) { + this.onPodConditions = new ArrayList(); + for (V1PodFailurePolicyOnPodConditionsPattern item : onPodConditions) { + this.addToOnPodConditions(item); + } + } else { + this.onPodConditions = null; + } + return (A) this; + } + + public A withOnPodConditions(V1PodFailurePolicyOnPodConditionsPattern... onPodConditions) { + if (this.onPodConditions != null) { + this.onPodConditions.clear(); + _visitables.remove("onPodConditions"); + } + if (onPodConditions != null) { + for (V1PodFailurePolicyOnPodConditionsPattern item : onPodConditions) { + this.addToOnPodConditions(item); + } + } + return (A) this; + } public class OnExitCodesNested extends V1PodFailurePolicyOnExitCodesRequirementFluent> implements Nested{ + + V1PodFailurePolicyOnExitCodesRequirementBuilder builder; + OnExitCodesNested(V1PodFailurePolicyOnExitCodesRequirement item) { this.builder = new V1PodFailurePolicyOnExitCodesRequirementBuilder(this, item); } - V1PodFailurePolicyOnExitCodesRequirementBuilder builder; - + public N and() { return (N) V1PodFailurePolicyRuleFluent.this.withOnExitCodes(builder.build()); } @@ -361,16 +365,17 @@ public N endOnExitCodes() { return and(); } - } public class OnPodConditionsNested extends V1PodFailurePolicyOnPodConditionsPatternFluent> implements Nested{ + + V1PodFailurePolicyOnPodConditionsPatternBuilder builder; + int index; + OnPodConditionsNested(int index,V1PodFailurePolicyOnPodConditionsPattern item) { this.index = index; this.builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(this, item); } - V1PodFailurePolicyOnPodConditionsPatternBuilder builder; - int index; - + public N and() { return (N) V1PodFailurePolicyRuleFluent.this.setToOnPodConditions(index, builder.build()); } @@ -379,7 +384,5 @@ public N endOnPodCondition() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java index f509e1991e..0c68f9b6a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodFluent> extends BaseFluent{ - public V1PodFluent() { - } - - public V1PodFluent(V1Pod instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1PodSpecBuilder spec; private V1PodStatusBuilder status; - - protected void copyInstance(V1Pod instance) { - instance = instance != null ? instance : new V1Pod(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1PodFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1PodFluent(V1Pod instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1PodSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1PodStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1Pod instance) { + instance = instance != null ? instance : new V1Pod(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1PodSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1PodSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1PodSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1PodSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PodSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1PodSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1PodStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1PodStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1PodStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PodStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1PodStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1PodStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PodStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1PodStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1PodSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1PodStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1PodSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1PodSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1PodStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1PodStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1PodFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1PodSpecFluent> implements Nested{ + + V1PodSpecBuilder builder; + SpecNested(V1PodSpec item) { this.builder = new V1PodSpecBuilder(this, item); } - V1PodSpecBuilder builder; - + public N and() { return (N) V1PodFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1PodStatusFluent> implements Nested{ + + V1PodStatusBuilder builder; + StatusNested(V1PodStatus item) { this.builder = new V1PodStatusBuilder(this, item); } - V1PodStatusBuilder builder; - + public N and() { return (N) V1PodFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java index 19e88c8783..7b15ebc92f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodIPBuilder extends V1PodIPFluent implements VisitableBuilder{ + + V1PodIPFluent fluent; + public V1PodIPBuilder() { this(new V1PodIP()); } @@ -11,22 +14,20 @@ public V1PodIPBuilder(V1PodIPFluent fluent) { this(fluent, new V1PodIP()); } - public V1PodIPBuilder(V1PodIPFluent fluent,V1PodIP instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodIPBuilder(V1PodIP instance) { this.fluent = this; this.copyInstance(instance); } - V1PodIPFluent fluent; + public V1PodIPBuilder(V1PodIPFluent fluent,V1PodIP instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodIP build() { V1PodIP buildable = new V1PodIP(); buildable.setIp(fluent.getIp()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java index 9c46582f22..c02f262685 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodIPFluent> extends BaseFluent{ + + private String ip; + public V1PodIPFluent() { } public V1PodIPFluent(V1PodIP instance) { this.copyInstance(instance); } - private String ip; - + protected void copyInstance(V1PodIP instance) { instance = instance != null ? instance : new V1PodIP(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1PodIP instance) { } } - public String getIp() { - return this.ip; - } - - public A withIp(String ip) { - this.ip = ip; - return (A) this; - } - - public boolean hasIp() { - return this.ip != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getIp() { + return this.ip; + } + + public boolean hasIp() { + return this.ip != null; + } + public int hashCode() { return Objects.hash(ip); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withIp(String ip) { + this.ip = ip; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java index 80783a9326..88ce5837a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodListBuilder extends V1PodListFluent implements VisitableBuilder{ + + V1PodListFluent fluent; + public V1PodListBuilder() { this(new V1PodList()); } @@ -11,17 +14,16 @@ public V1PodListBuilder(V1PodListFluent fluent) { this(fluent, new V1PodList()); } - public V1PodListBuilder(V1PodListFluent fluent,V1PodList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodListBuilder(V1PodList instance) { this.fluent = this; this.copyInstance(instance); } - V1PodListFluent fluent; + public V1PodListBuilder(V1PodListFluent fluent,V1PodList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodList build() { V1PodList buildable = new V1PodList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1PodList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java index 2fd99e5e64..d6e715f2e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodListFluent> extends BaseFluent{ - public V1PodListFluent() { - } - - public V1PodListFluent(V1PodList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1PodList instance) { - instance = instance != null ? instance : new V1PodList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1PodListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1PodListFluent(V1PodList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1Pod item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1PodBuilder builder = new V1PodBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1Pod item : items) { + V1PodBuilder builder = new V1PodBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1Pod item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1PodBuilder builder = new V1PodBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1Pod item) { + return new ItemsNested(-1, item); } public A addToItems(V1Pod... items) { @@ -96,68 +65,31 @@ public A addToItems(V1Pod... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1Pod item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1Pod item : items) { - V1PodBuilder builder = new V1PodBuilder(item); + V1PodBuilder builder = new V1PodBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1Pod... items) { - if (this.items == null) { - return (A) this; - } - for (V1Pod item : items) { - V1PodBuilder builder = new V1PodBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1Pod item : items) { - V1PodBuilder builder = new V1PodBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1PodBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1Pod buildFirstItem() { + return this.items.get(0).build(); } public V1Pod buildItem(int index) { return this.items.get(index).build(); } - public V1Pod buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1Pod buildLastItem() { @@ -173,73 +105,34 @@ public V1Pod buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1PodBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Pod item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1PodList instance) { + instance = instance != null ? instance : new V1PodList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1Pod... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1Pod item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Pod item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Pod item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) { return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1PodBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Pod item : items) { + V1PodBuilder builder = new V1PodBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Pod... items) { + if (this.items == null) { + return (A) this; + } + for (V1Pod item : items) { + V1PodBuilder builder = new V1PodBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1PodBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Pod item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1Pod item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1PodBuilder builder = new V1PodBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1Pod item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1Pod... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1Pod item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1PodFluent> implements Nested{ + + V1PodBuilder builder; + int index; + ItemsNested(int index,V1Pod item) { this.index = index; this.builder = new V1PodBuilder(this, item); } - V1PodBuilder builder; - int index; - + public N and() { return (N) V1PodListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1PodListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java index a8e9c83a86..2b60d094b2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodOSBuilder extends V1PodOSFluent implements VisitableBuilder{ + + V1PodOSFluent fluent; + public V1PodOSBuilder() { this(new V1PodOS()); } @@ -11,22 +14,20 @@ public V1PodOSBuilder(V1PodOSFluent fluent) { this(fluent, new V1PodOS()); } - public V1PodOSBuilder(V1PodOSFluent fluent,V1PodOS instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodOSBuilder(V1PodOS instance) { this.fluent = this; this.copyInstance(instance); } - V1PodOSFluent fluent; + public V1PodOSBuilder(V1PodOSFluent fluent,V1PodOS instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodOS build() { V1PodOS buildable = new V1PodOS(); buildable.setName(fluent.getName()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java index 42e9bc7fbd..1f376d0446 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodOSFluent> extends BaseFluent{ + + private String name; + public V1PodOSFluent() { } public V1PodOSFluent(V1PodOS instance) { this.copyInstance(instance); } - private String name; - + protected void copyInstance(V1PodOS instance) { instance = instance != null ? instance : new V1PodOS(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1PodOS instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(name); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java index 05b0d2ff4e..71beb519a3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodReadinessGateBuilder extends V1PodReadinessGateFluent implements VisitableBuilder{ + + V1PodReadinessGateFluent fluent; + public V1PodReadinessGateBuilder() { this(new V1PodReadinessGate()); } @@ -11,22 +14,20 @@ public V1PodReadinessGateBuilder(V1PodReadinessGateFluent fluent) { this(fluent, new V1PodReadinessGate()); } - public V1PodReadinessGateBuilder(V1PodReadinessGateFluent fluent,V1PodReadinessGate instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodReadinessGateBuilder(V1PodReadinessGate instance) { this.fluent = this; this.copyInstance(instance); } - V1PodReadinessGateFluent fluent; + public V1PodReadinessGateBuilder(V1PodReadinessGateFluent fluent,V1PodReadinessGate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodReadinessGate build() { V1PodReadinessGate buildable = new V1PodReadinessGate(); buildable.setConditionType(fluent.getConditionType()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java index 1192f82804..cfa4a915ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodReadinessGateFluent> extends BaseFluent{ + + private String conditionType; + public V1PodReadinessGateFluent() { } public V1PodReadinessGateFluent(V1PodReadinessGate instance) { this.copyInstance(instance); } - private String conditionType; - + protected void copyInstance(V1PodReadinessGate instance) { instance = instance != null ? instance : new V1PodReadinessGate(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1PodReadinessGate instance) { } } - public String getConditionType() { - return this.conditionType; - } - - public A withConditionType(String conditionType) { - this.conditionType = conditionType; - return (A) this; - } - - public boolean hasConditionType() { - return this.conditionType != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getConditionType() { + return this.conditionType; + } + + public boolean hasConditionType() { + return this.conditionType != null; + } + public int hashCode() { return Objects.hash(conditionType); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withConditionType(String conditionType) { + this.conditionType = conditionType; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimBuilder.java index 10f9637ab8..98e0227f79 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodResourceClaimBuilder extends V1PodResourceClaimFluent implements VisitableBuilder{ + + V1PodResourceClaimFluent fluent; + public V1PodResourceClaimBuilder() { this(new V1PodResourceClaim()); } @@ -11,17 +14,16 @@ public V1PodResourceClaimBuilder(V1PodResourceClaimFluent fluent) { this(fluent, new V1PodResourceClaim()); } - public V1PodResourceClaimBuilder(V1PodResourceClaimFluent fluent,V1PodResourceClaim instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodResourceClaimBuilder(V1PodResourceClaim instance) { this.fluent = this; this.copyInstance(instance); } - V1PodResourceClaimFluent fluent; + public V1PodResourceClaimBuilder(V1PodResourceClaimFluent fluent,V1PodResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodResourceClaim build() { V1PodResourceClaim buildable = new V1PodResourceClaim(); buildable.setName(fluent.getName()); @@ -30,5 +32,4 @@ public V1PodResourceClaim build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimFluent.java index 50f9c1cce4..afa173a0b3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodResourceClaimFluent> extends BaseFluent{ + + private String name; + private String resourceClaimName; + private String resourceClaimTemplateName; + public V1PodResourceClaimFluent() { } public V1PodResourceClaimFluent(V1PodResourceClaim instance) { this.copyInstance(instance); } - private String name; - private String resourceClaimName; - private String resourceClaimTemplateName; - + protected void copyInstance(V1PodResourceClaim instance) { instance = instance != null ? instance : new V1PodResourceClaim(); if (instance != null) { @@ -31,45 +33,6 @@ protected void copyInstance(V1PodResourceClaim instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getResourceClaimName() { - return this.resourceClaimName; - } - - public A withResourceClaimName(String resourceClaimName) { - this.resourceClaimName = resourceClaimName; - return (A) this; - } - - public boolean hasResourceClaimName() { - return this.resourceClaimName != null; - } - - public String getResourceClaimTemplateName() { - return this.resourceClaimTemplateName; - } - - public A withResourceClaimTemplateName(String resourceClaimTemplateName) { - this.resourceClaimTemplateName = resourceClaimTemplateName; - return (A) this; - } - - public boolean hasResourceClaimTemplateName() { - return this.resourceClaimTemplateName != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -93,6 +56,30 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public String getResourceClaimName() { + return this.resourceClaimName; + } + + public String getResourceClaimTemplateName() { + return this.resourceClaimTemplateName; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResourceClaimName() { + return this.resourceClaimName != null; + } + + public boolean hasResourceClaimTemplateName() { + return this.resourceClaimTemplateName != null; + } + public int hashCode() { return Objects.hash(name, resourceClaimName, resourceClaimTemplateName); } @@ -118,5 +105,19 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResourceClaimName(String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return (A) this; + } + + public A withResourceClaimTemplateName(String resourceClaimTemplateName) { + this.resourceClaimTemplateName = resourceClaimTemplateName; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusBuilder.java index 427b6f628e..333d6e5cc8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodResourceClaimStatusBuilder extends V1PodResourceClaimStatusFluent implements VisitableBuilder{ + + V1PodResourceClaimStatusFluent fluent; + public V1PodResourceClaimStatusBuilder() { this(new V1PodResourceClaimStatus()); } @@ -11,17 +14,16 @@ public V1PodResourceClaimStatusBuilder(V1PodResourceClaimStatusFluent fluent) this(fluent, new V1PodResourceClaimStatus()); } - public V1PodResourceClaimStatusBuilder(V1PodResourceClaimStatusFluent fluent,V1PodResourceClaimStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodResourceClaimStatusBuilder(V1PodResourceClaimStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1PodResourceClaimStatusFluent fluent; + public V1PodResourceClaimStatusBuilder(V1PodResourceClaimStatusFluent fluent,V1PodResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodResourceClaimStatus build() { V1PodResourceClaimStatus buildable = new V1PodResourceClaimStatus(); buildable.setName(fluent.getName()); @@ -29,5 +31,4 @@ public V1PodResourceClaimStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusFluent.java index fc2dd4fd86..0863735440 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodResourceClaimStatusFluent> extends BaseFluent{ + + private String name; + private String resourceClaimName; + public V1PodResourceClaimStatusFluent() { } public V1PodResourceClaimStatusFluent(V1PodResourceClaimStatus instance) { this.copyInstance(instance); } - private String name; - private String resourceClaimName; - + protected void copyInstance(V1PodResourceClaimStatus instance) { instance = instance != null ? instance : new V1PodResourceClaimStatus(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1PodResourceClaimStatus instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getResourceClaimName() { - return this.resourceClaimName; - } - - public A withResourceClaimName(String resourceClaimName) { - this.resourceClaimName = resourceClaimName; - return (A) this; - } - - public boolean hasResourceClaimName() { - return this.resourceClaimName != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public String getResourceClaimName() { + return this.resourceClaimName; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResourceClaimName() { + return this.resourceClaimName != null; + } + public int hashCode() { return Objects.hash(name, resourceClaimName); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResourceClaimName(String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateBuilder.java index b7be1b3207..eb2f91058f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodSchedulingGateBuilder extends V1PodSchedulingGateFluent implements VisitableBuilder{ + + V1PodSchedulingGateFluent fluent; + public V1PodSchedulingGateBuilder() { this(new V1PodSchedulingGate()); } @@ -11,22 +14,20 @@ public V1PodSchedulingGateBuilder(V1PodSchedulingGateFluent fluent) { this(fluent, new V1PodSchedulingGate()); } - public V1PodSchedulingGateBuilder(V1PodSchedulingGateFluent fluent,V1PodSchedulingGate instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodSchedulingGateBuilder(V1PodSchedulingGate instance) { this.fluent = this; this.copyInstance(instance); } - V1PodSchedulingGateFluent fluent; + public V1PodSchedulingGateBuilder(V1PodSchedulingGateFluent fluent,V1PodSchedulingGate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodSchedulingGate build() { V1PodSchedulingGate buildable = new V1PodSchedulingGate(); buildable.setName(fluent.getName()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateFluent.java index d245d93911..5843560c4e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodSchedulingGateFluent> extends BaseFluent{ + + private String name; + public V1PodSchedulingGateFluent() { } public V1PodSchedulingGateFluent(V1PodSchedulingGate instance) { this.copyInstance(instance); } - private String name; - + protected void copyInstance(V1PodSchedulingGate instance) { instance = instance != null ? instance : new V1PodSchedulingGate(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1PodSchedulingGate instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(name); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java index dd606f0964..44ac62cc47 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodSecurityContextBuilder extends V1PodSecurityContextFluent implements VisitableBuilder{ + + V1PodSecurityContextFluent fluent; + public V1PodSecurityContextBuilder() { this(new V1PodSecurityContext()); } @@ -11,17 +14,16 @@ public V1PodSecurityContextBuilder(V1PodSecurityContextFluent fluent) { this(fluent, new V1PodSecurityContext()); } - public V1PodSecurityContextBuilder(V1PodSecurityContextFluent fluent,V1PodSecurityContext instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodSecurityContextBuilder(V1PodSecurityContext instance) { this.fluent = this; this.copyInstance(instance); } - V1PodSecurityContextFluent fluent; + public V1PodSecurityContextBuilder(V1PodSecurityContextFluent fluent,V1PodSecurityContext instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodSecurityContext build() { V1PodSecurityContext buildable = new V1PodSecurityContext(); buildable.setAppArmorProfile(fluent.buildAppArmorProfile()); @@ -40,5 +42,4 @@ public V1PodSecurityContext build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java index d5c9518006..1cd09b5f12 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java @@ -1,33 +1,28 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Boolean; -import java.util.Optional; -import java.lang.Long; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodSecurityContextFluent> extends BaseFluent{ - public V1PodSecurityContextFluent() { - } - - public V1PodSecurityContextFluent(V1PodSecurityContext instance) { - this.copyInstance(instance); - } + private V1AppArmorProfileBuilder appArmorProfile; private Long fsGroup; private String fsGroupChangePolicy; @@ -41,238 +36,42 @@ public V1PodSecurityContextFluent(V1PodSecurityContext instance) { private String supplementalGroupsPolicy; private ArrayList sysctls; private V1WindowsSecurityContextOptionsBuilder windowsOptions; - - protected void copyInstance(V1PodSecurityContext instance) { - instance = instance != null ? instance : new V1PodSecurityContext(); - if (instance != null) { - this.withAppArmorProfile(instance.getAppArmorProfile()); - this.withFsGroup(instance.getFsGroup()); - this.withFsGroupChangePolicy(instance.getFsGroupChangePolicy()); - this.withRunAsGroup(instance.getRunAsGroup()); - this.withRunAsNonRoot(instance.getRunAsNonRoot()); - this.withRunAsUser(instance.getRunAsUser()); - this.withSeLinuxChangePolicy(instance.getSeLinuxChangePolicy()); - this.withSeLinuxOptions(instance.getSeLinuxOptions()); - this.withSeccompProfile(instance.getSeccompProfile()); - this.withSupplementalGroups(instance.getSupplementalGroups()); - this.withSupplementalGroupsPolicy(instance.getSupplementalGroupsPolicy()); - this.withSysctls(instance.getSysctls()); - this.withWindowsOptions(instance.getWindowsOptions()); - } + + public V1PodSecurityContextFluent() { } - public V1AppArmorProfile buildAppArmorProfile() { - return this.appArmorProfile != null ? this.appArmorProfile.build() : null; + public V1PodSecurityContextFluent(V1PodSecurityContext instance) { + this.copyInstance(instance); } - - public A withAppArmorProfile(V1AppArmorProfile appArmorProfile) { - this._visitables.remove("appArmorProfile"); - if (appArmorProfile != null) { - this.appArmorProfile = new V1AppArmorProfileBuilder(appArmorProfile); - this._visitables.get("appArmorProfile").add(this.appArmorProfile); - } else { - this.appArmorProfile = null; - this._visitables.get("appArmorProfile").remove(this.appArmorProfile); + + public A addAllToSupplementalGroups(Collection items) { + if (this.supplementalGroups == null) { + this.supplementalGroups = new ArrayList(); } - return (A) this; - } - - public boolean hasAppArmorProfile() { - return this.appArmorProfile != null; - } - - public AppArmorProfileNested withNewAppArmorProfile() { - return new AppArmorProfileNested(null); - } - - public AppArmorProfileNested withNewAppArmorProfileLike(V1AppArmorProfile item) { - return new AppArmorProfileNested(item); - } - - public AppArmorProfileNested editAppArmorProfile() { - return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(null)); - } - - public AppArmorProfileNested editOrNewAppArmorProfile() { - return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(new V1AppArmorProfileBuilder().build())); - } - - public AppArmorProfileNested editOrNewAppArmorProfileLike(V1AppArmorProfile item) { - return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(item)); - } - - public Long getFsGroup() { - return this.fsGroup; - } - - public A withFsGroup(Long fsGroup) { - this.fsGroup = fsGroup; - return (A) this; - } - - public boolean hasFsGroup() { - return this.fsGroup != null; - } - - public String getFsGroupChangePolicy() { - return this.fsGroupChangePolicy; - } - - public A withFsGroupChangePolicy(String fsGroupChangePolicy) { - this.fsGroupChangePolicy = fsGroupChangePolicy; - return (A) this; - } - - public boolean hasFsGroupChangePolicy() { - return this.fsGroupChangePolicy != null; - } - - public Long getRunAsGroup() { - return this.runAsGroup; - } - - public A withRunAsGroup(Long runAsGroup) { - this.runAsGroup = runAsGroup; - return (A) this; - } - - public boolean hasRunAsGroup() { - return this.runAsGroup != null; - } - - public Boolean getRunAsNonRoot() { - return this.runAsNonRoot; - } - - public A withRunAsNonRoot(Boolean runAsNonRoot) { - this.runAsNonRoot = runAsNonRoot; - return (A) this; - } - - public boolean hasRunAsNonRoot() { - return this.runAsNonRoot != null; - } - - public Long getRunAsUser() { - return this.runAsUser; - } - - public A withRunAsUser(Long runAsUser) { - this.runAsUser = runAsUser; - return (A) this; - } - - public boolean hasRunAsUser() { - return this.runAsUser != null; - } - - public String getSeLinuxChangePolicy() { - return this.seLinuxChangePolicy; - } - - public A withSeLinuxChangePolicy(String seLinuxChangePolicy) { - this.seLinuxChangePolicy = seLinuxChangePolicy; - return (A) this; - } - - public boolean hasSeLinuxChangePolicy() { - return this.seLinuxChangePolicy != null; - } - - public V1SELinuxOptions buildSeLinuxOptions() { - return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null; - } - - public A withSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { - this._visitables.remove("seLinuxOptions"); - if (seLinuxOptions != null) { - this.seLinuxOptions = new V1SELinuxOptionsBuilder(seLinuxOptions); - this._visitables.get("seLinuxOptions").add(this.seLinuxOptions); - } else { - this.seLinuxOptions = null; - this._visitables.get("seLinuxOptions").remove(this.seLinuxOptions); + for (Long item : items) { + this.supplementalGroups.add(item); } return (A) this; } - public boolean hasSeLinuxOptions() { - return this.seLinuxOptions != null; - } - - public SeLinuxOptionsNested withNewSeLinuxOptions() { - return new SeLinuxOptionsNested(null); - } - - public SeLinuxOptionsNested withNewSeLinuxOptionsLike(V1SELinuxOptions item) { - return new SeLinuxOptionsNested(item); - } - - public SeLinuxOptionsNested editSeLinuxOptions() { - return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(null)); - } - - public SeLinuxOptionsNested editOrNewSeLinuxOptions() { - return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(new V1SELinuxOptionsBuilder().build())); - } - - public SeLinuxOptionsNested editOrNewSeLinuxOptionsLike(V1SELinuxOptions item) { - return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(item)); - } - - public V1SeccompProfile buildSeccompProfile() { - return this.seccompProfile != null ? this.seccompProfile.build() : null; - } - - public A withSeccompProfile(V1SeccompProfile seccompProfile) { - this._visitables.remove("seccompProfile"); - if (seccompProfile != null) { - this.seccompProfile = new V1SeccompProfileBuilder(seccompProfile); - this._visitables.get("seccompProfile").add(this.seccompProfile); - } else { - this.seccompProfile = null; - this._visitables.get("seccompProfile").remove(this.seccompProfile); + public A addAllToSysctls(Collection items) { + if (this.sysctls == null) { + this.sysctls = new ArrayList(); + } + for (V1Sysctl item : items) { + V1SysctlBuilder builder = new V1SysctlBuilder(item); + _visitables.get("sysctls").add(builder); + this.sysctls.add(builder); } return (A) this; } - public boolean hasSeccompProfile() { - return this.seccompProfile != null; - } - - public SeccompProfileNested withNewSeccompProfile() { - return new SeccompProfileNested(null); - } - - public SeccompProfileNested withNewSeccompProfileLike(V1SeccompProfile item) { - return new SeccompProfileNested(item); - } - - public SeccompProfileNested editSeccompProfile() { - return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(null)); - } - - public SeccompProfileNested editOrNewSeccompProfile() { - return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(new V1SeccompProfileBuilder().build())); - } - - public SeccompProfileNested editOrNewSeccompProfileLike(V1SeccompProfile item) { - return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(item)); - } - - public A addToSupplementalGroups(int index,Long item) { - if (this.supplementalGroups == null) { - this.supplementalGroups = new ArrayList(); - } - this.supplementalGroups.add(index, item); - return (A) this; + public SysctlsNested addNewSysctl() { + return new SysctlsNested(-1, null); } - public A setToSupplementalGroups(int index,Long item) { - if (this.supplementalGroups == null) { - this.supplementalGroups = new ArrayList(); - } - this.supplementalGroups.set(index, item); - return (A) this; + public SysctlsNested addNewSysctlLike(V1Sysctl item) { + return new SysctlsNested(-1, item); } public A addToSupplementalGroups(Long... items) { @@ -285,128 +84,27 @@ public A addToSupplementalGroups(Long... items) { return (A) this; } - public A addAllToSupplementalGroups(Collection items) { + public A addToSupplementalGroups(int index,Long item) { if (this.supplementalGroups == null) { this.supplementalGroups = new ArrayList(); } - for (Long item : items) { - this.supplementalGroups.add(item); - } - return (A) this; - } - - public A removeFromSupplementalGroups(Long... items) { - if (this.supplementalGroups == null) { - return (A) this; - } - for (Long item : items) { - this.supplementalGroups.remove(item); - } - return (A) this; - } - - public A removeAllFromSupplementalGroups(Collection items) { - if (this.supplementalGroups == null) { - return (A) this; - } - for (Long item : items) { - this.supplementalGroups.remove(item); - } - return (A) this; - } - - public List getSupplementalGroups() { - return this.supplementalGroups; - } - - public Long getSupplementalGroup(int index) { - return this.supplementalGroups.get(index); - } - - public Long getFirstSupplementalGroup() { - return this.supplementalGroups.get(0); - } - - public Long getLastSupplementalGroup() { - return this.supplementalGroups.get(supplementalGroups.size() - 1); - } - - public Long getMatchingSupplementalGroup(Predicate predicate) { - for (Long item : supplementalGroups) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingSupplementalGroup(Predicate predicate) { - for (Long item : supplementalGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withSupplementalGroups(List supplementalGroups) { - if (supplementalGroups != null) { - this.supplementalGroups = new ArrayList(); - for (Long item : supplementalGroups) { - this.addToSupplementalGroups(item); - } - } else { - this.supplementalGroups = null; - } - return (A) this; - } - - public A withSupplementalGroups(Long... supplementalGroups) { - if (this.supplementalGroups != null) { - this.supplementalGroups.clear(); - _visitables.remove("supplementalGroups"); - } - if (supplementalGroups != null) { - for (Long item : supplementalGroups) { - this.addToSupplementalGroups(item); - } - } - return (A) this; - } - - public boolean hasSupplementalGroups() { - return this.supplementalGroups != null && !(this.supplementalGroups.isEmpty()); - } - - public String getSupplementalGroupsPolicy() { - return this.supplementalGroupsPolicy; - } - - public A withSupplementalGroupsPolicy(String supplementalGroupsPolicy) { - this.supplementalGroupsPolicy = supplementalGroupsPolicy; + this.supplementalGroups.add(index, item); return (A) this; } - public boolean hasSupplementalGroupsPolicy() { - return this.supplementalGroupsPolicy != null; - } - - public A addToSysctls(int index,V1Sysctl item) { + public A addToSysctls(V1Sysctl... items) { if (this.sysctls == null) { this.sysctls = new ArrayList(); } - V1SysctlBuilder builder = new V1SysctlBuilder(item); - if (index < 0 || index >= sysctls.size()) { - _visitables.get("sysctls").add(builder); - sysctls.add(builder); - } else { + for (V1Sysctl item : items) { + V1SysctlBuilder builder = new V1SysctlBuilder(item); _visitables.get("sysctls").add(builder); - sysctls.add(index, builder); + this.sysctls.add(builder); } return (A) this; } - public A setToSysctls(int index,V1Sysctl item) { + public A addToSysctls(int index,V1Sysctl item) { if (this.sysctls == null) { this.sysctls = new ArrayList(); } @@ -416,81 +114,13 @@ public A setToSysctls(int index,V1Sysctl item) { sysctls.add(builder); } else { _visitables.get("sysctls").add(builder); - sysctls.set(index, builder); - } - return (A) this; - } - - public A addToSysctls(V1Sysctl... items) { - if (this.sysctls == null) { - this.sysctls = new ArrayList(); - } - for (V1Sysctl item : items) { - V1SysctlBuilder builder = new V1SysctlBuilder(item); - _visitables.get("sysctls").add(builder); - this.sysctls.add(builder); - } - return (A) this; - } - - public A addAllToSysctls(Collection items) { - if (this.sysctls == null) { - this.sysctls = new ArrayList(); - } - for (V1Sysctl item : items) { - V1SysctlBuilder builder = new V1SysctlBuilder(item); - _visitables.get("sysctls").add(builder); - this.sysctls.add(builder); - } - return (A) this; - } - - public A removeFromSysctls(V1Sysctl... items) { - if (this.sysctls == null) { - return (A) this; - } - for (V1Sysctl item : items) { - V1SysctlBuilder builder = new V1SysctlBuilder(item); - _visitables.get("sysctls").remove(builder); - this.sysctls.remove(builder); - } - return (A) this; - } - - public A removeAllFromSysctls(Collection items) { - if (this.sysctls == null) { - return (A) this; - } - for (V1Sysctl item : items) { - V1SysctlBuilder builder = new V1SysctlBuilder(item); - _visitables.get("sysctls").remove(builder); - this.sysctls.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromSysctls(Predicate predicate) { - if (sysctls == null) { - return (A) this; - } - Iterator each = sysctls.iterator(); - List visitables = _visitables.get("sysctls"); - while (each.hasNext()) { - V1SysctlBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + sysctls.add(index, builder); } return (A) this; } - public List buildSysctls() { - return this.sysctls != null ? build(sysctls) : null; - } - - public V1Sysctl buildSysctl(int index) { - return this.sysctls.get(index).build(); + public V1AppArmorProfile buildAppArmorProfile() { + return this.appArmorProfile != null ? this.appArmorProfile.build() : null; } public V1Sysctl buildFirstSysctl() { @@ -510,64 +140,47 @@ public V1Sysctl buildMatchingSysctl(Predicate predicate) { return null; } - public boolean hasMatchingSysctl(Predicate predicate) { - for (V1SysctlBuilder item : sysctls) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withSysctls(List sysctls) { - if (this.sysctls != null) { - this._visitables.get("sysctls").clear(); - } - if (sysctls != null) { - this.sysctls = new ArrayList(); - for (V1Sysctl item : sysctls) { - this.addToSysctls(item); - } - } else { - this.sysctls = null; - } - return (A) this; - } - - public A withSysctls(V1Sysctl... sysctls) { - if (this.sysctls != null) { - this.sysctls.clear(); - _visitables.remove("sysctls"); - } - if (sysctls != null) { - for (V1Sysctl item : sysctls) { - this.addToSysctls(item); - } - } - return (A) this; + public V1SELinuxOptions buildSeLinuxOptions() { + return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null; } - public boolean hasSysctls() { - return this.sysctls != null && !(this.sysctls.isEmpty()); + public V1SeccompProfile buildSeccompProfile() { + return this.seccompProfile != null ? this.seccompProfile.build() : null; } - public SysctlsNested addNewSysctl() { - return new SysctlsNested(-1, null); + public V1Sysctl buildSysctl(int index) { + return this.sysctls.get(index).build(); } - public SysctlsNested addNewSysctlLike(V1Sysctl item) { - return new SysctlsNested(-1, item); + public List buildSysctls() { + return this.sysctls != null ? build(sysctls) : null; } - public SysctlsNested setNewSysctlLike(int index,V1Sysctl item) { - return new SysctlsNested(index, item); + public V1WindowsSecurityContextOptions buildWindowsOptions() { + return this.windowsOptions != null ? this.windowsOptions.build() : null; } - public SysctlsNested editSysctl(int index) { - if (index <= sysctls.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sysctls")); + protected void copyInstance(V1PodSecurityContext instance) { + instance = instance != null ? instance : new V1PodSecurityContext(); + if (instance != null) { + this.withAppArmorProfile(instance.getAppArmorProfile()); + this.withFsGroup(instance.getFsGroup()); + this.withFsGroupChangePolicy(instance.getFsGroupChangePolicy()); + this.withRunAsGroup(instance.getRunAsGroup()); + this.withRunAsNonRoot(instance.getRunAsNonRoot()); + this.withRunAsUser(instance.getRunAsUser()); + this.withSeLinuxChangePolicy(instance.getSeLinuxChangePolicy()); + this.withSeLinuxOptions(instance.getSeLinuxOptions()); + this.withSeccompProfile(instance.getSeccompProfile()); + this.withSupplementalGroups(instance.getSupplementalGroups()); + this.withSupplementalGroupsPolicy(instance.getSupplementalGroupsPolicy()); + this.withSysctls(instance.getSysctls()); + this.withWindowsOptions(instance.getWindowsOptions()); } - return this.setNewSysctlLike(index, this.buildSysctl(index)); + } + + public AppArmorProfileNested editAppArmorProfile() { + return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(null)); } public SysctlsNested editFirstSysctl() { @@ -599,36 +212,28 @@ public SysctlsNested editMatchingSysctl(Predicate predicate) return this.setNewSysctlLike(index, this.buildSysctl(index)); } - public V1WindowsSecurityContextOptions buildWindowsOptions() { - return this.windowsOptions != null ? this.windowsOptions.build() : null; + public AppArmorProfileNested editOrNewAppArmorProfile() { + return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(new V1AppArmorProfileBuilder().build())); } - public A withWindowsOptions(V1WindowsSecurityContextOptions windowsOptions) { - this._visitables.remove("windowsOptions"); - if (windowsOptions != null) { - this.windowsOptions = new V1WindowsSecurityContextOptionsBuilder(windowsOptions); - this._visitables.get("windowsOptions").add(this.windowsOptions); - } else { - this.windowsOptions = null; - this._visitables.get("windowsOptions").remove(this.windowsOptions); - } - return (A) this; + public AppArmorProfileNested editOrNewAppArmorProfileLike(V1AppArmorProfile item) { + return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(item)); } - public boolean hasWindowsOptions() { - return this.windowsOptions != null; + public SeLinuxOptionsNested editOrNewSeLinuxOptions() { + return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(new V1SELinuxOptionsBuilder().build())); } - public WindowsOptionsNested withNewWindowsOptions() { - return new WindowsOptionsNested(null); + public SeLinuxOptionsNested editOrNewSeLinuxOptionsLike(V1SELinuxOptions item) { + return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(item)); } - public WindowsOptionsNested withNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { - return new WindowsOptionsNested(item); + public SeccompProfileNested editOrNewSeccompProfile() { + return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(new V1SeccompProfileBuilder().build())); } - public WindowsOptionsNested editWindowsOptions() { - return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(null)); + public SeccompProfileNested editOrNewSeccompProfileLike(V1SeccompProfile item) { + return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(item)); } public WindowsOptionsNested editOrNewWindowsOptions() { @@ -639,6 +244,25 @@ public WindowsOptionsNested editOrNewWindowsOptionsLike(V1WindowsSecurityCont return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(item)); } + public SeLinuxOptionsNested editSeLinuxOptions() { + return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(null)); + } + + public SeccompProfileNested editSeccompProfile() { + return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(null)); + } + + public SysctlsNested editSysctl(int index) { + if (sysctls.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sysctls")); + } + return this.setNewSysctlLike(index, this.buildSysctl(index)); + } + + public WindowsOptionsNested editWindowsOptions() { + return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -680,20 +304,230 @@ public boolean equals(Object o) { if (!(Objects.equals(supplementalGroups, that.supplementalGroups))) { return false; } - if (!(Objects.equals(supplementalGroupsPolicy, that.supplementalGroupsPolicy))) { - return false; + if (!(Objects.equals(supplementalGroupsPolicy, that.supplementalGroupsPolicy))) { + return false; + } + if (!(Objects.equals(sysctls, that.sysctls))) { + return false; + } + if (!(Objects.equals(windowsOptions, that.windowsOptions))) { + return false; + } + return true; + } + + public Long getFirstSupplementalGroup() { + return this.supplementalGroups.get(0); + } + + public Long getFsGroup() { + return this.fsGroup; + } + + public String getFsGroupChangePolicy() { + return this.fsGroupChangePolicy; + } + + public Long getLastSupplementalGroup() { + return this.supplementalGroups.get(supplementalGroups.size() - 1); + } + + public Long getMatchingSupplementalGroup(Predicate predicate) { + for (Long item : supplementalGroups) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public Long getRunAsGroup() { + return this.runAsGroup; + } + + public Boolean getRunAsNonRoot() { + return this.runAsNonRoot; + } + + public Long getRunAsUser() { + return this.runAsUser; + } + + public String getSeLinuxChangePolicy() { + return this.seLinuxChangePolicy; + } + + public Long getSupplementalGroup(int index) { + return this.supplementalGroups.get(index); + } + + public List getSupplementalGroups() { + return this.supplementalGroups; + } + + public String getSupplementalGroupsPolicy() { + return this.supplementalGroupsPolicy; + } + + public boolean hasAppArmorProfile() { + return this.appArmorProfile != null; + } + + public boolean hasFsGroup() { + return this.fsGroup != null; + } + + public boolean hasFsGroupChangePolicy() { + return this.fsGroupChangePolicy != null; + } + + public boolean hasMatchingSupplementalGroup(Predicate predicate) { + for (Long item : supplementalGroups) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingSysctl(Predicate predicate) { + for (V1SysctlBuilder item : sysctls) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRunAsGroup() { + return this.runAsGroup != null; + } + + public boolean hasRunAsNonRoot() { + return this.runAsNonRoot != null; + } + + public boolean hasRunAsUser() { + return this.runAsUser != null; + } + + public boolean hasSeLinuxChangePolicy() { + return this.seLinuxChangePolicy != null; + } + + public boolean hasSeLinuxOptions() { + return this.seLinuxOptions != null; + } + + public boolean hasSeccompProfile() { + return this.seccompProfile != null; + } + + public boolean hasSupplementalGroups() { + return this.supplementalGroups != null && !(this.supplementalGroups.isEmpty()); + } + + public boolean hasSupplementalGroupsPolicy() { + return this.supplementalGroupsPolicy != null; + } + + public boolean hasSysctls() { + return this.sysctls != null && !(this.sysctls.isEmpty()); + } + + public boolean hasWindowsOptions() { + return this.windowsOptions != null; + } + + public int hashCode() { + return Objects.hash(appArmorProfile, fsGroup, fsGroupChangePolicy, runAsGroup, runAsNonRoot, runAsUser, seLinuxChangePolicy, seLinuxOptions, seccompProfile, supplementalGroups, supplementalGroupsPolicy, sysctls, windowsOptions); + } + + public A removeAllFromSupplementalGroups(Collection items) { + if (this.supplementalGroups == null) { + return (A) this; + } + for (Long item : items) { + this.supplementalGroups.remove(item); + } + return (A) this; + } + + public A removeAllFromSysctls(Collection items) { + if (this.sysctls == null) { + return (A) this; + } + for (V1Sysctl item : items) { + V1SysctlBuilder builder = new V1SysctlBuilder(item); + _visitables.get("sysctls").remove(builder); + this.sysctls.remove(builder); + } + return (A) this; + } + + public A removeFromSupplementalGroups(Long... items) { + if (this.supplementalGroups == null) { + return (A) this; + } + for (Long item : items) { + this.supplementalGroups.remove(item); + } + return (A) this; + } + + public A removeFromSysctls(V1Sysctl... items) { + if (this.sysctls == null) { + return (A) this; + } + for (V1Sysctl item : items) { + V1SysctlBuilder builder = new V1SysctlBuilder(item); + _visitables.get("sysctls").remove(builder); + this.sysctls.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromSysctls(Predicate predicate) { + if (sysctls == null) { + return (A) this; } - if (!(Objects.equals(sysctls, that.sysctls))) { - return false; + Iterator each = sysctls.iterator(); + List visitables = _visitables.get("sysctls"); + while (each.hasNext()) { + V1SysctlBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - if (!(Objects.equals(windowsOptions, that.windowsOptions))) { - return false; + return (A) this; + } + + public SysctlsNested setNewSysctlLike(int index,V1Sysctl item) { + return new SysctlsNested(index, item); + } + + public A setToSupplementalGroups(int index,Long item) { + if (this.supplementalGroups == null) { + this.supplementalGroups = new ArrayList(); } - return true; + this.supplementalGroups.set(index, item); + return (A) this; } - public int hashCode() { - return Objects.hash(appArmorProfile, fsGroup, fsGroupChangePolicy, runAsGroup, runAsNonRoot, runAsUser, seLinuxChangePolicy, seLinuxOptions, seccompProfile, supplementalGroups, supplementalGroupsPolicy, sysctls, windowsOptions); + public A setToSysctls(int index,V1Sysctl item) { + if (this.sysctls == null) { + this.sysctls = new ArrayList(); + } + V1SysctlBuilder builder = new V1SysctlBuilder(item); + if (index < 0 || index >= sysctls.size()) { + _visitables.get("sysctls").add(builder); + sysctls.add(builder); + } else { + _visitables.get("sysctls").add(builder); + sysctls.set(index, builder); + } + return (A) this; } public String toString() { @@ -767,15 +601,185 @@ public String toString() { return sb.toString(); } + public A withAppArmorProfile(V1AppArmorProfile appArmorProfile) { + this._visitables.remove("appArmorProfile"); + if (appArmorProfile != null) { + this.appArmorProfile = new V1AppArmorProfileBuilder(appArmorProfile); + this._visitables.get("appArmorProfile").add(this.appArmorProfile); + } else { + this.appArmorProfile = null; + this._visitables.get("appArmorProfile").remove(this.appArmorProfile); + } + return (A) this; + } + + public A withFsGroup(Long fsGroup) { + this.fsGroup = fsGroup; + return (A) this; + } + + public A withFsGroupChangePolicy(String fsGroupChangePolicy) { + this.fsGroupChangePolicy = fsGroupChangePolicy; + return (A) this; + } + + public AppArmorProfileNested withNewAppArmorProfile() { + return new AppArmorProfileNested(null); + } + + public AppArmorProfileNested withNewAppArmorProfileLike(V1AppArmorProfile item) { + return new AppArmorProfileNested(item); + } + + public SeLinuxOptionsNested withNewSeLinuxOptions() { + return new SeLinuxOptionsNested(null); + } + + public SeLinuxOptionsNested withNewSeLinuxOptionsLike(V1SELinuxOptions item) { + return new SeLinuxOptionsNested(item); + } + + public SeccompProfileNested withNewSeccompProfile() { + return new SeccompProfileNested(null); + } + + public SeccompProfileNested withNewSeccompProfileLike(V1SeccompProfile item) { + return new SeccompProfileNested(item); + } + + public WindowsOptionsNested withNewWindowsOptions() { + return new WindowsOptionsNested(null); + } + + public WindowsOptionsNested withNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { + return new WindowsOptionsNested(item); + } + + public A withRunAsGroup(Long runAsGroup) { + this.runAsGroup = runAsGroup; + return (A) this; + } + public A withRunAsNonRoot() { return withRunAsNonRoot(true); } + + public A withRunAsNonRoot(Boolean runAsNonRoot) { + this.runAsNonRoot = runAsNonRoot; + return (A) this; + } + + public A withRunAsUser(Long runAsUser) { + this.runAsUser = runAsUser; + return (A) this; + } + + public A withSeLinuxChangePolicy(String seLinuxChangePolicy) { + this.seLinuxChangePolicy = seLinuxChangePolicy; + return (A) this; + } + + public A withSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { + this._visitables.remove("seLinuxOptions"); + if (seLinuxOptions != null) { + this.seLinuxOptions = new V1SELinuxOptionsBuilder(seLinuxOptions); + this._visitables.get("seLinuxOptions").add(this.seLinuxOptions); + } else { + this.seLinuxOptions = null; + this._visitables.get("seLinuxOptions").remove(this.seLinuxOptions); + } + return (A) this; + } + + public A withSeccompProfile(V1SeccompProfile seccompProfile) { + this._visitables.remove("seccompProfile"); + if (seccompProfile != null) { + this.seccompProfile = new V1SeccompProfileBuilder(seccompProfile); + this._visitables.get("seccompProfile").add(this.seccompProfile); + } else { + this.seccompProfile = null; + this._visitables.get("seccompProfile").remove(this.seccompProfile); + } + return (A) this; + } + + public A withSupplementalGroups(List supplementalGroups) { + if (supplementalGroups != null) { + this.supplementalGroups = new ArrayList(); + for (Long item : supplementalGroups) { + this.addToSupplementalGroups(item); + } + } else { + this.supplementalGroups = null; + } + return (A) this; + } + + public A withSupplementalGroups(Long... supplementalGroups) { + if (this.supplementalGroups != null) { + this.supplementalGroups.clear(); + _visitables.remove("supplementalGroups"); + } + if (supplementalGroups != null) { + for (Long item : supplementalGroups) { + this.addToSupplementalGroups(item); + } + } + return (A) this; + } + + public A withSupplementalGroupsPolicy(String supplementalGroupsPolicy) { + this.supplementalGroupsPolicy = supplementalGroupsPolicy; + return (A) this; + } + + public A withSysctls(List sysctls) { + if (this.sysctls != null) { + this._visitables.get("sysctls").clear(); + } + if (sysctls != null) { + this.sysctls = new ArrayList(); + for (V1Sysctl item : sysctls) { + this.addToSysctls(item); + } + } else { + this.sysctls = null; + } + return (A) this; + } + + public A withSysctls(V1Sysctl... sysctls) { + if (this.sysctls != null) { + this.sysctls.clear(); + _visitables.remove("sysctls"); + } + if (sysctls != null) { + for (V1Sysctl item : sysctls) { + this.addToSysctls(item); + } + } + return (A) this; + } + + public A withWindowsOptions(V1WindowsSecurityContextOptions windowsOptions) { + this._visitables.remove("windowsOptions"); + if (windowsOptions != null) { + this.windowsOptions = new V1WindowsSecurityContextOptionsBuilder(windowsOptions); + this._visitables.get("windowsOptions").add(this.windowsOptions); + } else { + this.windowsOptions = null; + this._visitables.get("windowsOptions").remove(this.windowsOptions); + } + return (A) this; + } public class AppArmorProfileNested extends V1AppArmorProfileFluent> implements Nested{ + + V1AppArmorProfileBuilder builder; + AppArmorProfileNested(V1AppArmorProfile item) { this.builder = new V1AppArmorProfileBuilder(this, item); } - V1AppArmorProfileBuilder builder; - + public N and() { return (N) V1PodSecurityContextFluent.this.withAppArmorProfile(builder.build()); } @@ -784,14 +788,15 @@ public N endAppArmorProfile() { return and(); } - } public class SeLinuxOptionsNested extends V1SELinuxOptionsFluent> implements Nested{ + + V1SELinuxOptionsBuilder builder; + SeLinuxOptionsNested(V1SELinuxOptions item) { this.builder = new V1SELinuxOptionsBuilder(this, item); } - V1SELinuxOptionsBuilder builder; - + public N and() { return (N) V1PodSecurityContextFluent.this.withSeLinuxOptions(builder.build()); } @@ -800,14 +805,15 @@ public N endSeLinuxOptions() { return and(); } - } public class SeccompProfileNested extends V1SeccompProfileFluent> implements Nested{ + + V1SeccompProfileBuilder builder; + SeccompProfileNested(V1SeccompProfile item) { this.builder = new V1SeccompProfileBuilder(this, item); } - V1SeccompProfileBuilder builder; - + public N and() { return (N) V1PodSecurityContextFluent.this.withSeccompProfile(builder.build()); } @@ -816,16 +822,17 @@ public N endSeccompProfile() { return and(); } - } public class SysctlsNested extends V1SysctlFluent> implements Nested{ + + V1SysctlBuilder builder; + int index; + SysctlsNested(int index,V1Sysctl item) { this.index = index; this.builder = new V1SysctlBuilder(this, item); } - V1SysctlBuilder builder; - int index; - + public N and() { return (N) V1PodSecurityContextFluent.this.setToSysctls(index, builder.build()); } @@ -834,14 +841,15 @@ public N endSysctl() { return and(); } - } public class WindowsOptionsNested extends V1WindowsSecurityContextOptionsFluent> implements Nested{ + + V1WindowsSecurityContextOptionsBuilder builder; + WindowsOptionsNested(V1WindowsSecurityContextOptions item) { this.builder = new V1WindowsSecurityContextOptionsBuilder(this, item); } - V1WindowsSecurityContextOptionsBuilder builder; - + public N and() { return (N) V1PodSecurityContextFluent.this.withWindowsOptions(builder.build()); } @@ -850,7 +858,5 @@ public N endWindowsOptions() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java index f9669350a7..1789f4b89a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodSpecBuilder extends V1PodSpecFluent implements VisitableBuilder{ + + V1PodSpecFluent fluent; + public V1PodSpecBuilder() { this(new V1PodSpec()); } @@ -11,17 +14,16 @@ public V1PodSpecBuilder(V1PodSpecFluent fluent) { this(fluent, new V1PodSpec()); } - public V1PodSpecBuilder(V1PodSpecFluent fluent,V1PodSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodSpecBuilder(V1PodSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1PodSpecFluent fluent; + public V1PodSpecBuilder(V1PodSpecFluent fluent,V1PodSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodSpec build() { V1PodSpec buildable = new V1PodSpec(); buildable.setActiveDeadlineSeconds(fluent.getActiveDeadlineSeconds()); @@ -68,5 +70,4 @@ public V1PodSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java index 0783ce0451..b201fde5db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java @@ -1,37 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.util.ArrayList; -import java.lang.String; +import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Boolean; -import java.lang.Object; -import java.util.Map; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import java.util.List; -import java.util.Optional; +import java.lang.Integer; import java.lang.Long; -import java.util.Objects; -import java.util.Collection; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.RuntimeException; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; -import io.kubernetes.client.custom.Quantity; -import java.lang.Integer; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodSpecFluent> extends BaseFluent{ - public V1PodSpecFluent() { - } - - public V1PodSpecFluent(V1PodSpec instance) { - this.copyInstance(instance); - } + private Long activeDeadlineSeconds; private V1AffinityBuilder affinity; private Boolean automountServiceAccountToken; @@ -73,278 +68,144 @@ public V1PodSpecFluent(V1PodSpec instance) { private ArrayList tolerations; private ArrayList topologySpreadConstraints; private ArrayList volumes; - - protected void copyInstance(V1PodSpec instance) { - instance = instance != null ? instance : new V1PodSpec(); - if (instance != null) { - this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); - this.withAffinity(instance.getAffinity()); - this.withAutomountServiceAccountToken(instance.getAutomountServiceAccountToken()); - this.withContainers(instance.getContainers()); - this.withDnsConfig(instance.getDnsConfig()); - this.withDnsPolicy(instance.getDnsPolicy()); - this.withEnableServiceLinks(instance.getEnableServiceLinks()); - this.withEphemeralContainers(instance.getEphemeralContainers()); - this.withHostAliases(instance.getHostAliases()); - this.withHostIPC(instance.getHostIPC()); - this.withHostNetwork(instance.getHostNetwork()); - this.withHostPID(instance.getHostPID()); - this.withHostUsers(instance.getHostUsers()); - this.withHostname(instance.getHostname()); - this.withHostnameOverride(instance.getHostnameOverride()); - this.withImagePullSecrets(instance.getImagePullSecrets()); - this.withInitContainers(instance.getInitContainers()); - this.withNodeName(instance.getNodeName()); - this.withNodeSelector(instance.getNodeSelector()); - this.withOs(instance.getOs()); - this.withOverhead(instance.getOverhead()); - this.withPreemptionPolicy(instance.getPreemptionPolicy()); - this.withPriority(instance.getPriority()); - this.withPriorityClassName(instance.getPriorityClassName()); - this.withReadinessGates(instance.getReadinessGates()); - this.withResourceClaims(instance.getResourceClaims()); - this.withResources(instance.getResources()); - this.withRestartPolicy(instance.getRestartPolicy()); - this.withRuntimeClassName(instance.getRuntimeClassName()); - this.withSchedulerName(instance.getSchedulerName()); - this.withSchedulingGates(instance.getSchedulingGates()); - this.withSecurityContext(instance.getSecurityContext()); - this.withServiceAccount(instance.getServiceAccount()); - this.withServiceAccountName(instance.getServiceAccountName()); - this.withSetHostnameAsFQDN(instance.getSetHostnameAsFQDN()); - this.withShareProcessNamespace(instance.getShareProcessNamespace()); - this.withSubdomain(instance.getSubdomain()); - this.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); - this.withTolerations(instance.getTolerations()); - this.withTopologySpreadConstraints(instance.getTopologySpreadConstraints()); - this.withVolumes(instance.getVolumes()); - } - } - - public Long getActiveDeadlineSeconds() { - return this.activeDeadlineSeconds; - } - - public A withActiveDeadlineSeconds(Long activeDeadlineSeconds) { - this.activeDeadlineSeconds = activeDeadlineSeconds; - return (A) this; - } - - public boolean hasActiveDeadlineSeconds() { - return this.activeDeadlineSeconds != null; - } - - public V1Affinity buildAffinity() { - return this.affinity != null ? this.affinity.build() : null; - } - - public A withAffinity(V1Affinity affinity) { - this._visitables.remove("affinity"); - if (affinity != null) { - this.affinity = new V1AffinityBuilder(affinity); - this._visitables.get("affinity").add(this.affinity); - } else { - this.affinity = null; - this._visitables.get("affinity").remove(this.affinity); - } - return (A) this; - } - - public boolean hasAffinity() { - return this.affinity != null; - } - - public AffinityNested withNewAffinity() { - return new AffinityNested(null); - } - - public AffinityNested withNewAffinityLike(V1Affinity item) { - return new AffinityNested(item); - } - - public AffinityNested editAffinity() { - return this.withNewAffinityLike(Optional.ofNullable(this.buildAffinity()).orElse(null)); - } - - public AffinityNested editOrNewAffinity() { - return this.withNewAffinityLike(Optional.ofNullable(this.buildAffinity()).orElse(new V1AffinityBuilder().build())); - } - - public AffinityNested editOrNewAffinityLike(V1Affinity item) { - return this.withNewAffinityLike(Optional.ofNullable(this.buildAffinity()).orElse(item)); - } - - public Boolean getAutomountServiceAccountToken() { - return this.automountServiceAccountToken; - } - - public A withAutomountServiceAccountToken(Boolean automountServiceAccountToken) { - this.automountServiceAccountToken = automountServiceAccountToken; - return (A) this; + + public V1PodSpecFluent() { } - public boolean hasAutomountServiceAccountToken() { - return this.automountServiceAccountToken != null; + public V1PodSpecFluent(V1PodSpec instance) { + this.copyInstance(instance); } - - public A addToContainers(int index,V1Container item) { + + public A addAllToContainers(Collection items) { if (this.containers == null) { this.containers = new ArrayList(); } - V1ContainerBuilder builder = new V1ContainerBuilder(item); - if (index < 0 || index >= containers.size()) { - _visitables.get("containers").add(builder); - containers.add(builder); - } else { + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); _visitables.get("containers").add(builder); - containers.add(index, builder); + this.containers.add(builder); } return (A) this; } - public A setToContainers(int index,V1Container item) { - if (this.containers == null) { - this.containers = new ArrayList(); + public A addAllToEphemeralContainers(Collection items) { + if (this.ephemeralContainers == null) { + this.ephemeralContainers = new ArrayList(); } - V1ContainerBuilder builder = new V1ContainerBuilder(item); - if (index < 0 || index >= containers.size()) { - _visitables.get("containers").add(builder); - containers.add(builder); - } else { - _visitables.get("containers").add(builder); - containers.set(index, builder); + for (V1EphemeralContainer item : items) { + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); + _visitables.get("ephemeralContainers").add(builder); + this.ephemeralContainers.add(builder); } return (A) this; } - public A addToContainers(V1Container... items) { - if (this.containers == null) { - this.containers = new ArrayList(); + public A addAllToHostAliases(Collection items) { + if (this.hostAliases == null) { + this.hostAliases = new ArrayList(); } - for (V1Container item : items) { - V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("containers").add(builder); - this.containers.add(builder); + for (V1HostAlias item : items) { + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); + _visitables.get("hostAliases").add(builder); + this.hostAliases.add(builder); } return (A) this; } - public A addAllToContainers(Collection items) { - if (this.containers == null) { - this.containers = new ArrayList(); + public A addAllToImagePullSecrets(Collection items) { + if (this.imagePullSecrets == null) { + this.imagePullSecrets = new ArrayList(); } - for (V1Container item : items) { - V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("containers").add(builder); - this.containers.add(builder); + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").add(builder); + this.imagePullSecrets.add(builder); } return (A) this; } - public A removeFromContainers(V1Container... items) { - if (this.containers == null) { - return (A) this; + public A addAllToInitContainers(Collection items) { + if (this.initContainers == null) { + this.initContainers = new ArrayList(); } for (V1Container item : items) { V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("containers").remove(builder); - this.containers.remove(builder); + _visitables.get("initContainers").add(builder); + this.initContainers.add(builder); } return (A) this; } - public A removeAllFromContainers(Collection items) { - if (this.containers == null) { - return (A) this; + public A addAllToReadinessGates(Collection items) { + if (this.readinessGates == null) { + this.readinessGates = new ArrayList(); } - for (V1Container item : items) { - V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("containers").remove(builder); - this.containers.remove(builder); + for (V1PodReadinessGate item : items) { + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); + _visitables.get("readinessGates").add(builder); + this.readinessGates.add(builder); } return (A) this; } - public A removeMatchingFromContainers(Predicate predicate) { - if (containers == null) { - return (A) this; + public A addAllToResourceClaims(Collection items) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); } - Iterator each = containers.iterator(); - List visitables = _visitables.get("containers"); - while (each.hasNext()) { - V1ContainerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (V1PodResourceClaim item : items) { + V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); + _visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); } return (A) this; } - public List buildContainers() { - return this.containers != null ? build(containers) : null; - } - - public V1Container buildContainer(int index) { - return this.containers.get(index).build(); - } - - public V1Container buildFirstContainer() { - return this.containers.get(0).build(); - } - - public V1Container buildLastContainer() { - return this.containers.get(containers.size() - 1).build(); - } - - public V1Container buildMatchingContainer(Predicate predicate) { - for (V1ContainerBuilder item : containers) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingContainer(Predicate predicate) { - for (V1ContainerBuilder item : containers) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A addAllToSchedulingGates(Collection items) { + if (this.schedulingGates == null) { + this.schedulingGates = new ArrayList(); + } + for (V1PodSchedulingGate item : items) { + V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); + _visitables.get("schedulingGates").add(builder); + this.schedulingGates.add(builder); + } + return (A) this; } - public A withContainers(List containers) { - if (this.containers != null) { - this._visitables.get("containers").clear(); + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - if (containers != null) { - this.containers = new ArrayList(); - for (V1Container item : containers) { - this.addToContainers(item); - } - } else { - this.containers = null; + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } return (A) this; } - public A withContainers(V1Container... containers) { - if (this.containers != null) { - this.containers.clear(); - _visitables.remove("containers"); + public A addAllToTopologySpreadConstraints(Collection items) { + if (this.topologySpreadConstraints == null) { + this.topologySpreadConstraints = new ArrayList(); } - if (containers != null) { - for (V1Container item : containers) { - this.addToContainers(item); - } + for (V1TopologySpreadConstraint item : items) { + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); + _visitables.get("topologySpreadConstraints").add(builder); + this.topologySpreadConstraints.add(builder); } return (A) this; } - public boolean hasContainers() { - return this.containers != null && !(this.containers.isEmpty()); + public A addAllToVolumes(Collection items) { + if (this.volumes == null) { + this.volumes = new ArrayList(); + } + for (V1Volume item : items) { + V1VolumeBuilder builder = new V1VolumeBuilder(item); + _visitables.get("volumes").add(builder); + this.volumes.add(builder); + } + return (A) this; } public ContainersNested addNewContainer() { @@ -355,138 +216,109 @@ public ContainersNested addNewContainerLike(V1Container item) { return new ContainersNested(-1, item); } - public ContainersNested setNewContainerLike(int index,V1Container item) { - return new ContainersNested(index, item); + public EphemeralContainersNested addNewEphemeralContainer() { + return new EphemeralContainersNested(-1, null); } - public ContainersNested editContainer(int index) { - if (index <= containers.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "containers")); - } - return this.setNewContainerLike(index, this.buildContainer(index)); + public EphemeralContainersNested addNewEphemeralContainerLike(V1EphemeralContainer item) { + return new EphemeralContainersNested(-1, item); } - public ContainersNested editFirstContainer() { - if (containers.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "containers")); - } - return this.setNewContainerLike(0, this.buildContainer(0)); + public HostAliasesNested addNewHostAlias() { + return new HostAliasesNested(-1, null); } - public ContainersNested editLastContainer() { - int index = containers.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "containers")); - } - return this.setNewContainerLike(index, this.buildContainer(index)); + public HostAliasesNested addNewHostAliasLike(V1HostAlias item) { + return new HostAliasesNested(-1, item); } - public ContainersNested editMatchingContainer(Predicate predicate) { - int index = -1; - for (int i = 0;i < containers.size();i++) { - if (predicate.test(containers.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "containers")); - } - return this.setNewContainerLike(index, this.buildContainer(index)); + public ImagePullSecretsNested addNewImagePullSecret() { + return new ImagePullSecretsNested(-1, null); } - public V1PodDNSConfig buildDnsConfig() { - return this.dnsConfig != null ? this.dnsConfig.build() : null; + public ImagePullSecretsNested addNewImagePullSecretLike(V1LocalObjectReference item) { + return new ImagePullSecretsNested(-1, item); } - public A withDnsConfig(V1PodDNSConfig dnsConfig) { - this._visitables.remove("dnsConfig"); - if (dnsConfig != null) { - this.dnsConfig = new V1PodDNSConfigBuilder(dnsConfig); - this._visitables.get("dnsConfig").add(this.dnsConfig); - } else { - this.dnsConfig = null; - this._visitables.get("dnsConfig").remove(this.dnsConfig); - } - return (A) this; + public InitContainersNested addNewInitContainer() { + return new InitContainersNested(-1, null); } - public boolean hasDnsConfig() { - return this.dnsConfig != null; + public InitContainersNested addNewInitContainerLike(V1Container item) { + return new InitContainersNested(-1, item); } - public DnsConfigNested withNewDnsConfig() { - return new DnsConfigNested(null); + public ReadinessGatesNested addNewReadinessGate() { + return new ReadinessGatesNested(-1, null); } - public DnsConfigNested withNewDnsConfigLike(V1PodDNSConfig item) { - return new DnsConfigNested(item); + public ReadinessGatesNested addNewReadinessGateLike(V1PodReadinessGate item) { + return new ReadinessGatesNested(-1, item); } - public DnsConfigNested editDnsConfig() { - return this.withNewDnsConfigLike(Optional.ofNullable(this.buildDnsConfig()).orElse(null)); + public ResourceClaimsNested addNewResourceClaim() { + return new ResourceClaimsNested(-1, null); } - public DnsConfigNested editOrNewDnsConfig() { - return this.withNewDnsConfigLike(Optional.ofNullable(this.buildDnsConfig()).orElse(new V1PodDNSConfigBuilder().build())); + public ResourceClaimsNested addNewResourceClaimLike(V1PodResourceClaim item) { + return new ResourceClaimsNested(-1, item); } - public DnsConfigNested editOrNewDnsConfigLike(V1PodDNSConfig item) { - return this.withNewDnsConfigLike(Optional.ofNullable(this.buildDnsConfig()).orElse(item)); + public SchedulingGatesNested addNewSchedulingGate() { + return new SchedulingGatesNested(-1, null); } - public String getDnsPolicy() { - return this.dnsPolicy; + public SchedulingGatesNested addNewSchedulingGateLike(V1PodSchedulingGate item) { + return new SchedulingGatesNested(-1, item); } - public A withDnsPolicy(String dnsPolicy) { - this.dnsPolicy = dnsPolicy; - return (A) this; + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); } - public boolean hasDnsPolicy() { - return this.dnsPolicy != null; + public TolerationsNested addNewTolerationLike(V1Toleration item) { + return new TolerationsNested(-1, item); } - public Boolean getEnableServiceLinks() { - return this.enableServiceLinks; + public TopologySpreadConstraintsNested addNewTopologySpreadConstraint() { + return new TopologySpreadConstraintsNested(-1, null); } - public A withEnableServiceLinks(Boolean enableServiceLinks) { - this.enableServiceLinks = enableServiceLinks; - return (A) this; + public TopologySpreadConstraintsNested addNewTopologySpreadConstraintLike(V1TopologySpreadConstraint item) { + return new TopologySpreadConstraintsNested(-1, item); } - public boolean hasEnableServiceLinks() { - return this.enableServiceLinks != null; + public VolumesNested addNewVolume() { + return new VolumesNested(-1, null); } - public A addToEphemeralContainers(int index,V1EphemeralContainer item) { - if (this.ephemeralContainers == null) { - this.ephemeralContainers = new ArrayList(); + public VolumesNested addNewVolumeLike(V1Volume item) { + return new VolumesNested(-1, item); + } + + public A addToContainers(V1Container... items) { + if (this.containers == null) { + this.containers = new ArrayList(); } - V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); - if (index < 0 || index >= ephemeralContainers.size()) { - _visitables.get("ephemeralContainers").add(builder); - ephemeralContainers.add(builder); - } else { - _visitables.get("ephemeralContainers").add(builder); - ephemeralContainers.add(index, builder); + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("containers").add(builder); + this.containers.add(builder); } return (A) this; } - public A setToEphemeralContainers(int index,V1EphemeralContainer item) { - if (this.ephemeralContainers == null) { - this.ephemeralContainers = new ArrayList(); + public A addToContainers(int index,V1Container item) { + if (this.containers == null) { + this.containers = new ArrayList(); } - V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); - if (index < 0 || index >= ephemeralContainers.size()) { - _visitables.get("ephemeralContainers").add(builder); - ephemeralContainers.add(builder); + V1ContainerBuilder builder = new V1ContainerBuilder(item); + if (index < 0 || index >= containers.size()) { + _visitables.get("containers").add(builder); + containers.add(builder); } else { - _visitables.get("ephemeralContainers").add(builder); - ephemeralContainers.set(index, builder); + _visitables.get("containers").add(builder); + containers.add(index, builder); } return (A) this; } @@ -503,566 +335,465 @@ public A addToEphemeralContainers(V1EphemeralContainer... items) { return (A) this; } - public A addAllToEphemeralContainers(Collection items) { + public A addToEphemeralContainers(int index,V1EphemeralContainer item) { if (this.ephemeralContainers == null) { this.ephemeralContainers = new ArrayList(); } - for (V1EphemeralContainer item : items) { - V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); + if (index < 0 || index >= ephemeralContainers.size()) { _visitables.get("ephemeralContainers").add(builder); - this.ephemeralContainers.add(builder); + ephemeralContainers.add(builder); + } else { + _visitables.get("ephemeralContainers").add(builder); + ephemeralContainers.add(index, builder); } return (A) this; } - public A removeFromEphemeralContainers(V1EphemeralContainer... items) { - if (this.ephemeralContainers == null) { - return (A) this; + public A addToHostAliases(V1HostAlias... items) { + if (this.hostAliases == null) { + this.hostAliases = new ArrayList(); } - for (V1EphemeralContainer item : items) { - V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); - _visitables.get("ephemeralContainers").remove(builder); - this.ephemeralContainers.remove(builder); + for (V1HostAlias item : items) { + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); + _visitables.get("hostAliases").add(builder); + this.hostAliases.add(builder); } return (A) this; } - public A removeAllFromEphemeralContainers(Collection items) { - if (this.ephemeralContainers == null) { - return (A) this; + public A addToHostAliases(int index,V1HostAlias item) { + if (this.hostAliases == null) { + this.hostAliases = new ArrayList(); } - for (V1EphemeralContainer item : items) { - V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); - _visitables.get("ephemeralContainers").remove(builder); - this.ephemeralContainers.remove(builder); + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); + if (index < 0 || index >= hostAliases.size()) { + _visitables.get("hostAliases").add(builder); + hostAliases.add(builder); + } else { + _visitables.get("hostAliases").add(builder); + hostAliases.add(index, builder); } return (A) this; } - public A removeMatchingFromEphemeralContainers(Predicate predicate) { - if (ephemeralContainers == null) { - return (A) this; + public A addToImagePullSecrets(V1LocalObjectReference... items) { + if (this.imagePullSecrets == null) { + this.imagePullSecrets = new ArrayList(); } - Iterator each = ephemeralContainers.iterator(); - List visitables = _visitables.get("ephemeralContainers"); - while (each.hasNext()) { - V1EphemeralContainerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").add(builder); + this.imagePullSecrets.add(builder); } return (A) this; } - public List buildEphemeralContainers() { - return this.ephemeralContainers != null ? build(ephemeralContainers) : null; - } - - public V1EphemeralContainer buildEphemeralContainer(int index) { - return this.ephemeralContainers.get(index).build(); - } - - public V1EphemeralContainer buildFirstEphemeralContainer() { - return this.ephemeralContainers.get(0).build(); - } - - public V1EphemeralContainer buildLastEphemeralContainer() { - return this.ephemeralContainers.get(ephemeralContainers.size() - 1).build(); - } - - public V1EphemeralContainer buildMatchingEphemeralContainer(Predicate predicate) { - for (V1EphemeralContainerBuilder item : ephemeralContainers) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingEphemeralContainer(Predicate predicate) { - for (V1EphemeralContainerBuilder item : ephemeralContainers) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withEphemeralContainers(List ephemeralContainers) { - if (this.ephemeralContainers != null) { - this._visitables.get("ephemeralContainers").clear(); + public A addToImagePullSecrets(int index,V1LocalObjectReference item) { + if (this.imagePullSecrets == null) { + this.imagePullSecrets = new ArrayList(); } - if (ephemeralContainers != null) { - this.ephemeralContainers = new ArrayList(); - for (V1EphemeralContainer item : ephemeralContainers) { - this.addToEphemeralContainers(item); - } + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + if (index < 0 || index >= imagePullSecrets.size()) { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.add(builder); } else { - this.ephemeralContainers = null; + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.add(index, builder); } return (A) this; } - public A withEphemeralContainers(V1EphemeralContainer... ephemeralContainers) { - if (this.ephemeralContainers != null) { - this.ephemeralContainers.clear(); - _visitables.remove("ephemeralContainers"); + public A addToInitContainers(V1Container... items) { + if (this.initContainers == null) { + this.initContainers = new ArrayList(); } - if (ephemeralContainers != null) { - for (V1EphemeralContainer item : ephemeralContainers) { - this.addToEphemeralContainers(item); - } + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("initContainers").add(builder); + this.initContainers.add(builder); } return (A) this; } - public boolean hasEphemeralContainers() { - return this.ephemeralContainers != null && !(this.ephemeralContainers.isEmpty()); - } - - public EphemeralContainersNested addNewEphemeralContainer() { - return new EphemeralContainersNested(-1, null); - } - - public EphemeralContainersNested addNewEphemeralContainerLike(V1EphemeralContainer item) { - return new EphemeralContainersNested(-1, item); - } - - public EphemeralContainersNested setNewEphemeralContainerLike(int index,V1EphemeralContainer item) { - return new EphemeralContainersNested(index, item); - } - - public EphemeralContainersNested editEphemeralContainer(int index) { - if (index <= ephemeralContainers.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ephemeralContainers")); + public A addToInitContainers(int index,V1Container item) { + if (this.initContainers == null) { + this.initContainers = new ArrayList(); } - return this.setNewEphemeralContainerLike(index, this.buildEphemeralContainer(index)); - } - - public EphemeralContainersNested editFirstEphemeralContainer() { - if (ephemeralContainers.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ephemeralContainers")); + V1ContainerBuilder builder = new V1ContainerBuilder(item); + if (index < 0 || index >= initContainers.size()) { + _visitables.get("initContainers").add(builder); + initContainers.add(builder); + } else { + _visitables.get("initContainers").add(builder); + initContainers.add(index, builder); } - return this.setNewEphemeralContainerLike(0, this.buildEphemeralContainer(0)); + return (A) this; } - public EphemeralContainersNested editLastEphemeralContainer() { - int index = ephemeralContainers.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ephemeralContainers")); + public A addToNodeSelector(Map map) { + if (this.nodeSelector == null && map != null) { + this.nodeSelector = new LinkedHashMap(); } - return this.setNewEphemeralContainerLike(index, this.buildEphemeralContainer(index)); + if (map != null) { + this.nodeSelector.putAll(map); + } + return (A) this; } - public EphemeralContainersNested editMatchingEphemeralContainer(Predicate predicate) { - int index = -1; - for (int i = 0;i < ephemeralContainers.size();i++) { - if (predicate.test(ephemeralContainers.get(i))) { - index = i; - break; - } + public A addToNodeSelector(String key,String value) { + if (this.nodeSelector == null && key != null && value != null) { + this.nodeSelector = new LinkedHashMap(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ephemeralContainers")); + if (key != null && value != null) { + this.nodeSelector.put(key, value); } - return this.setNewEphemeralContainerLike(index, this.buildEphemeralContainer(index)); + return (A) this; } - public A addToHostAliases(int index,V1HostAlias item) { - if (this.hostAliases == null) { - this.hostAliases = new ArrayList(); + public A addToOverhead(Map map) { + if (this.overhead == null && map != null) { + this.overhead = new LinkedHashMap(); } - V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - if (index < 0 || index >= hostAliases.size()) { - _visitables.get("hostAliases").add(builder); - hostAliases.add(builder); - } else { - _visitables.get("hostAliases").add(builder); - hostAliases.add(index, builder); + if (map != null) { + this.overhead.putAll(map); } return (A) this; } - public A setToHostAliases(int index,V1HostAlias item) { - if (this.hostAliases == null) { - this.hostAliases = new ArrayList(); + public A addToOverhead(String key,Quantity value) { + if (this.overhead == null && key != null && value != null) { + this.overhead = new LinkedHashMap(); } - V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - if (index < 0 || index >= hostAliases.size()) { - _visitables.get("hostAliases").add(builder); - hostAliases.add(builder); - } else { - _visitables.get("hostAliases").add(builder); - hostAliases.set(index, builder); + if (key != null && value != null) { + this.overhead.put(key, value); } return (A) this; } - public A addToHostAliases(V1HostAlias... items) { - if (this.hostAliases == null) { - this.hostAliases = new ArrayList(); + public A addToReadinessGates(V1PodReadinessGate... items) { + if (this.readinessGates == null) { + this.readinessGates = new ArrayList(); } - for (V1HostAlias item : items) { - V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - _visitables.get("hostAliases").add(builder); - this.hostAliases.add(builder); + for (V1PodReadinessGate item : items) { + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); + _visitables.get("readinessGates").add(builder); + this.readinessGates.add(builder); } return (A) this; } - public A addAllToHostAliases(Collection items) { - if (this.hostAliases == null) { - this.hostAliases = new ArrayList(); + public A addToReadinessGates(int index,V1PodReadinessGate item) { + if (this.readinessGates == null) { + this.readinessGates = new ArrayList(); } - for (V1HostAlias item : items) { - V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - _visitables.get("hostAliases").add(builder); - this.hostAliases.add(builder); + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); + if (index < 0 || index >= readinessGates.size()) { + _visitables.get("readinessGates").add(builder); + readinessGates.add(builder); + } else { + _visitables.get("readinessGates").add(builder); + readinessGates.add(index, builder); } return (A) this; } - public A removeFromHostAliases(V1HostAlias... items) { - if (this.hostAliases == null) { - return (A) this; + public A addToResourceClaims(V1PodResourceClaim... items) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); } - for (V1HostAlias item : items) { - V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - _visitables.get("hostAliases").remove(builder); - this.hostAliases.remove(builder); + for (V1PodResourceClaim item : items) { + V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); + _visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); } return (A) this; } - public A removeAllFromHostAliases(Collection items) { - if (this.hostAliases == null) { - return (A) this; + public A addToResourceClaims(int index,V1PodResourceClaim item) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); } - for (V1HostAlias item : items) { - V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - _visitables.get("hostAliases").remove(builder); - this.hostAliases.remove(builder); + V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); + if (index < 0 || index >= resourceClaims.size()) { + _visitables.get("resourceClaims").add(builder); + resourceClaims.add(builder); + } else { + _visitables.get("resourceClaims").add(builder); + resourceClaims.add(index, builder); } return (A) this; } - public A removeMatchingFromHostAliases(Predicate predicate) { - if (hostAliases == null) { - return (A) this; + public A addToSchedulingGates(V1PodSchedulingGate... items) { + if (this.schedulingGates == null) { + this.schedulingGates = new ArrayList(); } - Iterator each = hostAliases.iterator(); - List visitables = _visitables.get("hostAliases"); - while (each.hasNext()) { - V1HostAliasBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (V1PodSchedulingGate item : items) { + V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); + _visitables.get("schedulingGates").add(builder); + this.schedulingGates.add(builder); } return (A) this; } - public List buildHostAliases() { - return this.hostAliases != null ? build(hostAliases) : null; - } - - public V1HostAlias buildHostAlias(int index) { - return this.hostAliases.get(index).build(); + public A addToSchedulingGates(int index,V1PodSchedulingGate item) { + if (this.schedulingGates == null) { + this.schedulingGates = new ArrayList(); + } + V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); + if (index < 0 || index >= schedulingGates.size()) { + _visitables.get("schedulingGates").add(builder); + schedulingGates.add(builder); + } else { + _visitables.get("schedulingGates").add(builder); + schedulingGates.add(index, builder); + } + return (A) this; } - public V1HostAlias buildFirstHostAlias() { - return this.hostAliases.get(0).build(); + public A addToTolerations(V1Toleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } - public V1HostAlias buildLastHostAlias() { - return this.hostAliases.get(hostAliases.size() - 1).build(); + public A addToTolerations(int index,V1Toleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + V1TolerationBuilder builder = new V1TolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); + } + return (A) this; } - public V1HostAlias buildMatchingHostAlias(Predicate predicate) { - for (V1HostAliasBuilder item : hostAliases) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A addToTopologySpreadConstraints(V1TopologySpreadConstraint... items) { + if (this.topologySpreadConstraints == null) { + this.topologySpreadConstraints = new ArrayList(); + } + for (V1TopologySpreadConstraint item : items) { + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); + _visitables.get("topologySpreadConstraints").add(builder); + this.topologySpreadConstraints.add(builder); + } + return (A) this; } - public boolean hasMatchingHostAlias(Predicate predicate) { - for (V1HostAliasBuilder item : hostAliases) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A addToTopologySpreadConstraints(int index,V1TopologySpreadConstraint item) { + if (this.topologySpreadConstraints == null) { + this.topologySpreadConstraints = new ArrayList(); + } + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); + if (index < 0 || index >= topologySpreadConstraints.size()) { + _visitables.get("topologySpreadConstraints").add(builder); + topologySpreadConstraints.add(builder); + } else { + _visitables.get("topologySpreadConstraints").add(builder); + topologySpreadConstraints.add(index, builder); + } + return (A) this; } - public A withHostAliases(List hostAliases) { - if (this.hostAliases != null) { - this._visitables.get("hostAliases").clear(); + public A addToVolumes(V1Volume... items) { + if (this.volumes == null) { + this.volumes = new ArrayList(); } - if (hostAliases != null) { - this.hostAliases = new ArrayList(); - for (V1HostAlias item : hostAliases) { - this.addToHostAliases(item); - } - } else { - this.hostAliases = null; + for (V1Volume item : items) { + V1VolumeBuilder builder = new V1VolumeBuilder(item); + _visitables.get("volumes").add(builder); + this.volumes.add(builder); } return (A) this; } - public A withHostAliases(V1HostAlias... hostAliases) { - if (this.hostAliases != null) { - this.hostAliases.clear(); - _visitables.remove("hostAliases"); + public A addToVolumes(int index,V1Volume item) { + if (this.volumes == null) { + this.volumes = new ArrayList(); } - if (hostAliases != null) { - for (V1HostAlias item : hostAliases) { - this.addToHostAliases(item); - } + V1VolumeBuilder builder = new V1VolumeBuilder(item); + if (index < 0 || index >= volumes.size()) { + _visitables.get("volumes").add(builder); + volumes.add(builder); + } else { + _visitables.get("volumes").add(builder); + volumes.add(index, builder); } return (A) this; } - public boolean hasHostAliases() { - return this.hostAliases != null && !(this.hostAliases.isEmpty()); + public V1Affinity buildAffinity() { + return this.affinity != null ? this.affinity.build() : null; } - public HostAliasesNested addNewHostAlias() { - return new HostAliasesNested(-1, null); + public V1Container buildContainer(int index) { + return this.containers.get(index).build(); } - public HostAliasesNested addNewHostAliasLike(V1HostAlias item) { - return new HostAliasesNested(-1, item); + public List buildContainers() { + return this.containers != null ? build(containers) : null; } - public HostAliasesNested setNewHostAliasLike(int index,V1HostAlias item) { - return new HostAliasesNested(index, item); + public V1PodDNSConfig buildDnsConfig() { + return this.dnsConfig != null ? this.dnsConfig.build() : null; } - public HostAliasesNested editHostAlias(int index) { - if (index <= hostAliases.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "hostAliases")); - } - return this.setNewHostAliasLike(index, this.buildHostAlias(index)); + public V1EphemeralContainer buildEphemeralContainer(int index) { + return this.ephemeralContainers.get(index).build(); } - public HostAliasesNested editFirstHostAlias() { - if (hostAliases.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "hostAliases")); - } - return this.setNewHostAliasLike(0, this.buildHostAlias(0)); + public List buildEphemeralContainers() { + return this.ephemeralContainers != null ? build(ephemeralContainers) : null; } - public HostAliasesNested editLastHostAlias() { - int index = hostAliases.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "hostAliases")); - } - return this.setNewHostAliasLike(index, this.buildHostAlias(index)); + public V1Container buildFirstContainer() { + return this.containers.get(0).build(); } - public HostAliasesNested editMatchingHostAlias(Predicate predicate) { - int index = -1; - for (int i = 0;i < hostAliases.size();i++) { - if (predicate.test(hostAliases.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "hostAliases")); - } - return this.setNewHostAliasLike(index, this.buildHostAlias(index)); + public V1EphemeralContainer buildFirstEphemeralContainer() { + return this.ephemeralContainers.get(0).build(); } - public Boolean getHostIPC() { - return this.hostIPC; + public V1HostAlias buildFirstHostAlias() { + return this.hostAliases.get(0).build(); } - public A withHostIPC(Boolean hostIPC) { - this.hostIPC = hostIPC; - return (A) this; + public V1LocalObjectReference buildFirstImagePullSecret() { + return this.imagePullSecrets.get(0).build(); } - public boolean hasHostIPC() { - return this.hostIPC != null; + public V1Container buildFirstInitContainer() { + return this.initContainers.get(0).build(); } - public Boolean getHostNetwork() { - return this.hostNetwork; + public V1PodReadinessGate buildFirstReadinessGate() { + return this.readinessGates.get(0).build(); } - public A withHostNetwork(Boolean hostNetwork) { - this.hostNetwork = hostNetwork; - return (A) this; + public V1PodResourceClaim buildFirstResourceClaim() { + return this.resourceClaims.get(0).build(); } - public boolean hasHostNetwork() { - return this.hostNetwork != null; + public V1PodSchedulingGate buildFirstSchedulingGate() { + return this.schedulingGates.get(0).build(); } - public Boolean getHostPID() { - return this.hostPID; + public V1Toleration buildFirstToleration() { + return this.tolerations.get(0).build(); } - public A withHostPID(Boolean hostPID) { - this.hostPID = hostPID; - return (A) this; + public V1TopologySpreadConstraint buildFirstTopologySpreadConstraint() { + return this.topologySpreadConstraints.get(0).build(); } - public boolean hasHostPID() { - return this.hostPID != null; + public V1Volume buildFirstVolume() { + return this.volumes.get(0).build(); } - public Boolean getHostUsers() { - return this.hostUsers; + public V1HostAlias buildHostAlias(int index) { + return this.hostAliases.get(index).build(); } - public A withHostUsers(Boolean hostUsers) { - this.hostUsers = hostUsers; - return (A) this; + public List buildHostAliases() { + return this.hostAliases != null ? build(hostAliases) : null; } - public boolean hasHostUsers() { - return this.hostUsers != null; + public V1LocalObjectReference buildImagePullSecret(int index) { + return this.imagePullSecrets.get(index).build(); } - public String getHostname() { - return this.hostname; + public List buildImagePullSecrets() { + return this.imagePullSecrets != null ? build(imagePullSecrets) : null; } - public A withHostname(String hostname) { - this.hostname = hostname; - return (A) this; + public V1Container buildInitContainer(int index) { + return this.initContainers.get(index).build(); } - public boolean hasHostname() { - return this.hostname != null; + public List buildInitContainers() { + return this.initContainers != null ? build(initContainers) : null; } - public String getHostnameOverride() { - return this.hostnameOverride; + public V1Container buildLastContainer() { + return this.containers.get(containers.size() - 1).build(); } - public A withHostnameOverride(String hostnameOverride) { - this.hostnameOverride = hostnameOverride; - return (A) this; + public V1EphemeralContainer buildLastEphemeralContainer() { + return this.ephemeralContainers.get(ephemeralContainers.size() - 1).build(); } - public boolean hasHostnameOverride() { - return this.hostnameOverride != null; + public V1HostAlias buildLastHostAlias() { + return this.hostAliases.get(hostAliases.size() - 1).build(); } - public A addToImagePullSecrets(int index,V1LocalObjectReference item) { - if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); - } - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - if (index < 0 || index >= imagePullSecrets.size()) { - _visitables.get("imagePullSecrets").add(builder); - imagePullSecrets.add(builder); - } else { - _visitables.get("imagePullSecrets").add(builder); - imagePullSecrets.add(index, builder); - } - return (A) this; + public V1LocalObjectReference buildLastImagePullSecret() { + return this.imagePullSecrets.get(imagePullSecrets.size() - 1).build(); } - public A setToImagePullSecrets(int index,V1LocalObjectReference item) { - if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); - } - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - if (index < 0 || index >= imagePullSecrets.size()) { - _visitables.get("imagePullSecrets").add(builder); - imagePullSecrets.add(builder); - } else { - _visitables.get("imagePullSecrets").add(builder); - imagePullSecrets.set(index, builder); - } - return (A) this; + public V1Container buildLastInitContainer() { + return this.initContainers.get(initContainers.size() - 1).build(); } - public A addToImagePullSecrets(V1LocalObjectReference... items) { - if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); - } - for (V1LocalObjectReference item : items) { - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables.get("imagePullSecrets").add(builder); - this.imagePullSecrets.add(builder); - } - return (A) this; + public V1PodReadinessGate buildLastReadinessGate() { + return this.readinessGates.get(readinessGates.size() - 1).build(); } - public A addAllToImagePullSecrets(Collection items) { - if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); - } - for (V1LocalObjectReference item : items) { - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables.get("imagePullSecrets").add(builder); - this.imagePullSecrets.add(builder); - } - return (A) this; + public V1PodResourceClaim buildLastResourceClaim() { + return this.resourceClaims.get(resourceClaims.size() - 1).build(); } - public A removeFromImagePullSecrets(V1LocalObjectReference... items) { - if (this.imagePullSecrets == null) { - return (A) this; - } - for (V1LocalObjectReference item : items) { - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables.get("imagePullSecrets").remove(builder); - this.imagePullSecrets.remove(builder); - } - return (A) this; + public V1PodSchedulingGate buildLastSchedulingGate() { + return this.schedulingGates.get(schedulingGates.size() - 1).build(); } - public A removeAllFromImagePullSecrets(Collection items) { - if (this.imagePullSecrets == null) { - return (A) this; - } - for (V1LocalObjectReference item : items) { - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables.get("imagePullSecrets").remove(builder); - this.imagePullSecrets.remove(builder); - } - return (A) this; + public V1Toleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); } - public A removeMatchingFromImagePullSecrets(Predicate predicate) { - if (imagePullSecrets == null) { - return (A) this; - } - Iterator each = imagePullSecrets.iterator(); - List visitables = _visitables.get("imagePullSecrets"); - while (each.hasNext()) { - V1LocalObjectReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1TopologySpreadConstraint buildLastTopologySpreadConstraint() { + return this.topologySpreadConstraints.get(topologySpreadConstraints.size() - 1).build(); } - public List buildImagePullSecrets() { - return this.imagePullSecrets != null ? build(imagePullSecrets) : null; + public V1Volume buildLastVolume() { + return this.volumes.get(volumes.size() - 1).build(); } - public V1LocalObjectReference buildImagePullSecret(int index) { - return this.imagePullSecrets.get(index).build(); + public V1Container buildMatchingContainer(Predicate predicate) { + for (V1ContainerBuilder item : containers) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public V1LocalObjectReference buildFirstImagePullSecret() { - return this.imagePullSecrets.get(0).build(); + public V1EphemeralContainer buildMatchingEphemeralContainer(Predicate predicate) { + for (V1EphemeralContainerBuilder item : ephemeralContainers) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public V1LocalObjectReference buildLastImagePullSecret() { - return this.imagePullSecrets.get(imagePullSecrets.size() - 1).build(); + public V1HostAlias buildMatchingHostAlias(Predicate predicate) { + for (V1HostAliasBuilder item : hostAliases) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } public V1LocalObjectReference buildMatchingImagePullSecret(Predicate predicate) { @@ -1074,272 +805,224 @@ public V1LocalObjectReference buildMatchingImagePullSecret(Predicate predicate) { - for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { + public V1Container buildMatchingInitContainer(Predicate predicate) { + for (V1ContainerBuilder item : initContainers) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withImagePullSecrets(List imagePullSecrets) { - if (this.imagePullSecrets != null) { - this._visitables.get("imagePullSecrets").clear(); - } - if (imagePullSecrets != null) { - this.imagePullSecrets = new ArrayList(); - for (V1LocalObjectReference item : imagePullSecrets) { - this.addToImagePullSecrets(item); + public V1PodReadinessGate buildMatchingReadinessGate(Predicate predicate) { + for (V1PodReadinessGateBuilder item : readinessGates) { + if (predicate.test(item)) { + return item.build(); } - } else { - this.imagePullSecrets = null; - } - return (A) this; + } + return null; } - public A withImagePullSecrets(V1LocalObjectReference... imagePullSecrets) { - if (this.imagePullSecrets != null) { - this.imagePullSecrets.clear(); - _visitables.remove("imagePullSecrets"); - } - if (imagePullSecrets != null) { - for (V1LocalObjectReference item : imagePullSecrets) { - this.addToImagePullSecrets(item); + public V1PodResourceClaim buildMatchingResourceClaim(Predicate predicate) { + for (V1PodResourceClaimBuilder item : resourceClaims) { + if (predicate.test(item)) { + return item.build(); + } } - } - return (A) this; + return null; } - public boolean hasImagePullSecrets() { - return this.imagePullSecrets != null && !(this.imagePullSecrets.isEmpty()); + public V1PodSchedulingGate buildMatchingSchedulingGate(Predicate predicate) { + for (V1PodSchedulingGateBuilder item : schedulingGates) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public ImagePullSecretsNested addNewImagePullSecret() { - return new ImagePullSecretsNested(-1, null); + public V1Toleration buildMatchingToleration(Predicate predicate) { + for (V1TolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public ImagePullSecretsNested addNewImagePullSecretLike(V1LocalObjectReference item) { - return new ImagePullSecretsNested(-1, item); + public V1TopologySpreadConstraint buildMatchingTopologySpreadConstraint(Predicate predicate) { + for (V1TopologySpreadConstraintBuilder item : topologySpreadConstraints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public ImagePullSecretsNested setNewImagePullSecretLike(int index,V1LocalObjectReference item) { - return new ImagePullSecretsNested(index, item); + public V1Volume buildMatchingVolume(Predicate predicate) { + for (V1VolumeBuilder item : volumes) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public ImagePullSecretsNested editImagePullSecret(int index) { - if (index <= imagePullSecrets.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "imagePullSecrets")); - } - return this.setNewImagePullSecretLike(index, this.buildImagePullSecret(index)); + public V1PodOS buildOs() { + return this.os != null ? this.os.build() : null; } - public ImagePullSecretsNested editFirstImagePullSecret() { - if (imagePullSecrets.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "imagePullSecrets")); - } - return this.setNewImagePullSecretLike(0, this.buildImagePullSecret(0)); + public V1PodReadinessGate buildReadinessGate(int index) { + return this.readinessGates.get(index).build(); } - public ImagePullSecretsNested editLastImagePullSecret() { - int index = imagePullSecrets.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "imagePullSecrets")); - } - return this.setNewImagePullSecretLike(index, this.buildImagePullSecret(index)); + public List buildReadinessGates() { + return this.readinessGates != null ? build(readinessGates) : null; } - public ImagePullSecretsNested editMatchingImagePullSecret(Predicate predicate) { - int index = -1; - for (int i = 0;i < imagePullSecrets.size();i++) { - if (predicate.test(imagePullSecrets.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "imagePullSecrets")); - } - return this.setNewImagePullSecretLike(index, this.buildImagePullSecret(index)); + public V1PodResourceClaim buildResourceClaim(int index) { + return this.resourceClaims.get(index).build(); } - public A addToInitContainers(int index,V1Container item) { - if (this.initContainers == null) { - this.initContainers = new ArrayList(); - } - V1ContainerBuilder builder = new V1ContainerBuilder(item); - if (index < 0 || index >= initContainers.size()) { - _visitables.get("initContainers").add(builder); - initContainers.add(builder); - } else { - _visitables.get("initContainers").add(builder); - initContainers.add(index, builder); - } - return (A) this; + public List buildResourceClaims() { + return this.resourceClaims != null ? build(resourceClaims) : null; } - public A setToInitContainers(int index,V1Container item) { - if (this.initContainers == null) { - this.initContainers = new ArrayList(); - } - V1ContainerBuilder builder = new V1ContainerBuilder(item); - if (index < 0 || index >= initContainers.size()) { - _visitables.get("initContainers").add(builder); - initContainers.add(builder); - } else { - _visitables.get("initContainers").add(builder); - initContainers.set(index, builder); - } - return (A) this; + public V1ResourceRequirements buildResources() { + return this.resources != null ? this.resources.build() : null; } - public A addToInitContainers(V1Container... items) { - if (this.initContainers == null) { - this.initContainers = new ArrayList(); - } - for (V1Container item : items) { - V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("initContainers").add(builder); - this.initContainers.add(builder); - } - return (A) this; + public V1PodSchedulingGate buildSchedulingGate(int index) { + return this.schedulingGates.get(index).build(); } - public A addAllToInitContainers(Collection items) { - if (this.initContainers == null) { - this.initContainers = new ArrayList(); - } - for (V1Container item : items) { - V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("initContainers").add(builder); - this.initContainers.add(builder); - } - return (A) this; + public List buildSchedulingGates() { + return this.schedulingGates != null ? build(schedulingGates) : null; } - public A removeFromInitContainers(V1Container... items) { - if (this.initContainers == null) { - return (A) this; - } - for (V1Container item : items) { - V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("initContainers").remove(builder); - this.initContainers.remove(builder); - } - return (A) this; + public V1PodSecurityContext buildSecurityContext() { + return this.securityContext != null ? this.securityContext.build() : null; } - public A removeAllFromInitContainers(Collection items) { - if (this.initContainers == null) { - return (A) this; - } - for (V1Container item : items) { - V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("initContainers").remove(builder); - this.initContainers.remove(builder); - } - return (A) this; + public V1Toleration buildToleration(int index) { + return this.tolerations.get(index).build(); } - public A removeMatchingFromInitContainers(Predicate predicate) { - if (initContainers == null) { - return (A) this; - } - Iterator each = initContainers.iterator(); - List visitables = _visitables.get("initContainers"); - while (each.hasNext()) { - V1ContainerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; } - public List buildInitContainers() { - return this.initContainers != null ? build(initContainers) : null; + public V1TopologySpreadConstraint buildTopologySpreadConstraint(int index) { + return this.topologySpreadConstraints.get(index).build(); } - public V1Container buildInitContainer(int index) { - return this.initContainers.get(index).build(); + public List buildTopologySpreadConstraints() { + return this.topologySpreadConstraints != null ? build(topologySpreadConstraints) : null; } - public V1Container buildFirstInitContainer() { - return this.initContainers.get(0).build(); + public V1Volume buildVolume(int index) { + return this.volumes.get(index).build(); } - public V1Container buildLastInitContainer() { - return this.initContainers.get(initContainers.size() - 1).build(); + public List buildVolumes() { + return this.volumes != null ? build(volumes) : null; } - public V1Container buildMatchingInitContainer(Predicate predicate) { - for (V1ContainerBuilder item : initContainers) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + protected void copyInstance(V1PodSpec instance) { + instance = instance != null ? instance : new V1PodSpec(); + if (instance != null) { + this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); + this.withAffinity(instance.getAffinity()); + this.withAutomountServiceAccountToken(instance.getAutomountServiceAccountToken()); + this.withContainers(instance.getContainers()); + this.withDnsConfig(instance.getDnsConfig()); + this.withDnsPolicy(instance.getDnsPolicy()); + this.withEnableServiceLinks(instance.getEnableServiceLinks()); + this.withEphemeralContainers(instance.getEphemeralContainers()); + this.withHostAliases(instance.getHostAliases()); + this.withHostIPC(instance.getHostIPC()); + this.withHostNetwork(instance.getHostNetwork()); + this.withHostPID(instance.getHostPID()); + this.withHostUsers(instance.getHostUsers()); + this.withHostname(instance.getHostname()); + this.withHostnameOverride(instance.getHostnameOverride()); + this.withImagePullSecrets(instance.getImagePullSecrets()); + this.withInitContainers(instance.getInitContainers()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withOs(instance.getOs()); + this.withOverhead(instance.getOverhead()); + this.withPreemptionPolicy(instance.getPreemptionPolicy()); + this.withPriority(instance.getPriority()); + this.withPriorityClassName(instance.getPriorityClassName()); + this.withReadinessGates(instance.getReadinessGates()); + this.withResourceClaims(instance.getResourceClaims()); + this.withResources(instance.getResources()); + this.withRestartPolicy(instance.getRestartPolicy()); + this.withRuntimeClassName(instance.getRuntimeClassName()); + this.withSchedulerName(instance.getSchedulerName()); + this.withSchedulingGates(instance.getSchedulingGates()); + this.withSecurityContext(instance.getSecurityContext()); + this.withServiceAccount(instance.getServiceAccount()); + this.withServiceAccountName(instance.getServiceAccountName()); + this.withSetHostnameAsFQDN(instance.getSetHostnameAsFQDN()); + this.withShareProcessNamespace(instance.getShareProcessNamespace()); + this.withSubdomain(instance.getSubdomain()); + this.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); + this.withTolerations(instance.getTolerations()); + this.withTopologySpreadConstraints(instance.getTopologySpreadConstraints()); + this.withVolumes(instance.getVolumes()); + } } - public boolean hasMatchingInitContainer(Predicate predicate) { - for (V1ContainerBuilder item : initContainers) { - if (predicate.test(item)) { - return true; - } - } - return false; + public AffinityNested editAffinity() { + return this.withNewAffinityLike(Optional.ofNullable(this.buildAffinity()).orElse(null)); } - public A withInitContainers(List initContainers) { - if (this.initContainers != null) { - this._visitables.get("initContainers").clear(); - } - if (initContainers != null) { - this.initContainers = new ArrayList(); - for (V1Container item : initContainers) { - this.addToInitContainers(item); - } - } else { - this.initContainers = null; + public ContainersNested editContainer(int index) { + if (containers.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "containers")); } - return (A) this; + return this.setNewContainerLike(index, this.buildContainer(index)); } - public A withInitContainers(V1Container... initContainers) { - if (this.initContainers != null) { - this.initContainers.clear(); - _visitables.remove("initContainers"); - } - if (initContainers != null) { - for (V1Container item : initContainers) { - this.addToInitContainers(item); - } - } - return (A) this; + public DnsConfigNested editDnsConfig() { + return this.withNewDnsConfigLike(Optional.ofNullable(this.buildDnsConfig()).orElse(null)); } - public boolean hasInitContainers() { - return this.initContainers != null && !(this.initContainers.isEmpty()); + public EphemeralContainersNested editEphemeralContainer(int index) { + if (ephemeralContainers.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ephemeralContainers")); + } + return this.setNewEphemeralContainerLike(index, this.buildEphemeralContainer(index)); } - public InitContainersNested addNewInitContainer() { - return new InitContainersNested(-1, null); + public ContainersNested editFirstContainer() { + if (containers.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "containers")); + } + return this.setNewContainerLike(0, this.buildContainer(0)); } - public InitContainersNested addNewInitContainerLike(V1Container item) { - return new InitContainersNested(-1, item); + public EphemeralContainersNested editFirstEphemeralContainer() { + if (ephemeralContainers.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ephemeralContainers")); + } + return this.setNewEphemeralContainerLike(0, this.buildEphemeralContainer(0)); } - public InitContainersNested setNewInitContainerLike(int index,V1Container item) { - return new InitContainersNested(index, item); + public HostAliasesNested editFirstHostAlias() { + if (hostAliases.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "hostAliases")); + } + return this.setNewHostAliasLike(0, this.buildHostAlias(0)); } - public InitContainersNested editInitContainer(int index) { - if (index <= initContainers.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "initContainers")); + public ImagePullSecretsNested editFirstImagePullSecret() { + if (imagePullSecrets.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "imagePullSecrets")); } - return this.setNewInitContainerLike(index, this.buildInitContainer(index)); + return this.setNewImagePullSecretLike(0, this.buildImagePullSecret(0)); } public InitContainersNested editFirstInitContainer() { @@ -1349,858 +1032,739 @@ public InitContainersNested editFirstInitContainer() { return this.setNewInitContainerLike(0, this.buildInitContainer(0)); } - public InitContainersNested editLastInitContainer() { - int index = initContainers.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "initContainers")); + public ReadinessGatesNested editFirstReadinessGate() { + if (readinessGates.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "readinessGates")); } - return this.setNewInitContainerLike(index, this.buildInitContainer(index)); + return this.setNewReadinessGateLike(0, this.buildReadinessGate(0)); } - public InitContainersNested editMatchingInitContainer(Predicate predicate) { - int index = -1; - for (int i = 0;i < initContainers.size();i++) { - if (predicate.test(initContainers.get(i))) { - index = i; - break; - } + public ResourceClaimsNested editFirstResourceClaim() { + if (resourceClaims.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceClaims")); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "initContainers")); + return this.setNewResourceClaimLike(0, this.buildResourceClaim(0)); + } + + public SchedulingGatesNested editFirstSchedulingGate() { + if (schedulingGates.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "schedulingGates")); } - return this.setNewInitContainerLike(index, this.buildInitContainer(index)); + return this.setNewSchedulingGateLike(0, this.buildSchedulingGate(0)); } - public String getNodeName() { - return this.nodeName; + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); } - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; - } - - public boolean hasNodeName() { - return this.nodeName != null; + public TopologySpreadConstraintsNested editFirstTopologySpreadConstraint() { + if (topologySpreadConstraints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "topologySpreadConstraints")); + } + return this.setNewTopologySpreadConstraintLike(0, this.buildTopologySpreadConstraint(0)); } - public A addToNodeSelector(String key,String value) { - if (this.nodeSelector == null && key != null && value != null) { - this.nodeSelector = new LinkedHashMap(); - } - if (key != null && value != null) { - this.nodeSelector.put(key, value); + public VolumesNested editFirstVolume() { + if (volumes.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumes")); } - return (A) this; + return this.setNewVolumeLike(0, this.buildVolume(0)); } - public A addToNodeSelector(Map map) { - if (this.nodeSelector == null && map != null) { - this.nodeSelector = new LinkedHashMap(); - } - if (map != null) { - this.nodeSelector.putAll(map); + public HostAliasesNested editHostAlias(int index) { + if (hostAliases.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "hostAliases")); } - return (A) this; + return this.setNewHostAliasLike(index, this.buildHostAlias(index)); } - public A removeFromNodeSelector(String key) { - if (this.nodeSelector == null) { - return (A) this; - } - if (key != null && this.nodeSelector != null) { - this.nodeSelector.remove(key); + public ImagePullSecretsNested editImagePullSecret(int index) { + if (imagePullSecrets.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "imagePullSecrets")); } - return (A) this; + return this.setNewImagePullSecretLike(index, this.buildImagePullSecret(index)); } - public A removeFromNodeSelector(Map map) { - if (this.nodeSelector == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.nodeSelector != null) { - this.nodeSelector.remove(key); - } - } + public InitContainersNested editInitContainer(int index) { + if (initContainers.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "initContainers")); } - return (A) this; + return this.setNewInitContainerLike(index, this.buildInitContainer(index)); } - public Map getNodeSelector() { - return this.nodeSelector; + public ContainersNested editLastContainer() { + int index = containers.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "containers")); + } + return this.setNewContainerLike(index, this.buildContainer(index)); } - public A withNodeSelector(Map nodeSelector) { - if (nodeSelector == null) { - this.nodeSelector = null; - } else { - this.nodeSelector = new LinkedHashMap(nodeSelector); + public EphemeralContainersNested editLastEphemeralContainer() { + int index = ephemeralContainers.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ephemeralContainers")); } - return (A) this; + return this.setNewEphemeralContainerLike(index, this.buildEphemeralContainer(index)); } - public boolean hasNodeSelector() { - return this.nodeSelector != null; + public HostAliasesNested editLastHostAlias() { + int index = hostAliases.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "hostAliases")); + } + return this.setNewHostAliasLike(index, this.buildHostAlias(index)); } - public V1PodOS buildOs() { - return this.os != null ? this.os.build() : null; + public ImagePullSecretsNested editLastImagePullSecret() { + int index = imagePullSecrets.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "imagePullSecrets")); + } + return this.setNewImagePullSecretLike(index, this.buildImagePullSecret(index)); } - public A withOs(V1PodOS os) { - this._visitables.remove("os"); - if (os != null) { - this.os = new V1PodOSBuilder(os); - this._visitables.get("os").add(this.os); - } else { - this.os = null; - this._visitables.get("os").remove(this.os); + public InitContainersNested editLastInitContainer() { + int index = initContainers.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "initContainers")); } - return (A) this; + return this.setNewInitContainerLike(index, this.buildInitContainer(index)); } - public boolean hasOs() { - return this.os != null; + public ReadinessGatesNested editLastReadinessGate() { + int index = readinessGates.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "readinessGates")); + } + return this.setNewReadinessGateLike(index, this.buildReadinessGate(index)); } - public OsNested withNewOs() { - return new OsNested(null); + public ResourceClaimsNested editLastResourceClaim() { + int index = resourceClaims.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); } - public OsNested withNewOsLike(V1PodOS item) { - return new OsNested(item); + public SchedulingGatesNested editLastSchedulingGate() { + int index = schedulingGates.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "schedulingGates")); + } + return this.setNewSchedulingGateLike(index, this.buildSchedulingGate(index)); } - public OsNested editOs() { - return this.withNewOsLike(Optional.ofNullable(this.buildOs()).orElse(null)); + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public OsNested editOrNewOs() { - return this.withNewOsLike(Optional.ofNullable(this.buildOs()).orElse(new V1PodOSBuilder().build())); + public TopologySpreadConstraintsNested editLastTopologySpreadConstraint() { + int index = topologySpreadConstraints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "topologySpreadConstraints")); + } + return this.setNewTopologySpreadConstraintLike(index, this.buildTopologySpreadConstraint(index)); } - public OsNested editOrNewOsLike(V1PodOS item) { - return this.withNewOsLike(Optional.ofNullable(this.buildOs()).orElse(item)); + public VolumesNested editLastVolume() { + int index = volumes.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumes")); + } + return this.setNewVolumeLike(index, this.buildVolume(index)); } - public A addToOverhead(String key,Quantity value) { - if (this.overhead == null && key != null && value != null) { - this.overhead = new LinkedHashMap(); + public ContainersNested editMatchingContainer(Predicate predicate) { + int index = -1; + for (int i = 0;i < containers.size();i++) { + if (predicate.test(containers.get(i))) { + index = i; + break; + } } - if (key != null && value != null) { - this.overhead.put(key, value); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "containers")); } - return (A) this; + return this.setNewContainerLike(index, this.buildContainer(index)); } - public A addToOverhead(Map map) { - if (this.overhead == null && map != null) { - this.overhead = new LinkedHashMap(); + public EphemeralContainersNested editMatchingEphemeralContainer(Predicate predicate) { + int index = -1; + for (int i = 0;i < ephemeralContainers.size();i++) { + if (predicate.test(ephemeralContainers.get(i))) { + index = i; + break; + } } - if (map != null) { - this.overhead.putAll(map); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ephemeralContainers")); } - return (A) this; + return this.setNewEphemeralContainerLike(index, this.buildEphemeralContainer(index)); } - public A removeFromOverhead(String key) { - if (this.overhead == null) { - return (A) this; + public HostAliasesNested editMatchingHostAlias(Predicate predicate) { + int index = -1; + for (int i = 0;i < hostAliases.size();i++) { + if (predicate.test(hostAliases.get(i))) { + index = i; + break; + } } - if (key != null && this.overhead != null) { - this.overhead.remove(key); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "hostAliases")); } - return (A) this; + return this.setNewHostAliasLike(index, this.buildHostAlias(index)); } - public A removeFromOverhead(Map map) { - if (this.overhead == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.overhead != null) { - this.overhead.remove(key); - } + public ImagePullSecretsNested editMatchingImagePullSecret(Predicate predicate) { + int index = -1; + for (int i = 0;i < imagePullSecrets.size();i++) { + if (predicate.test(imagePullSecrets.get(i))) { + index = i; + break; } } - return (A) this; - } - - public Map getOverhead() { - return this.overhead; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "imagePullSecrets")); + } + return this.setNewImagePullSecretLike(index, this.buildImagePullSecret(index)); } - public A withOverhead(Map overhead) { - if (overhead == null) { - this.overhead = null; - } else { - this.overhead = new LinkedHashMap(overhead); + public InitContainersNested editMatchingInitContainer(Predicate predicate) { + int index = -1; + for (int i = 0;i < initContainers.size();i++) { + if (predicate.test(initContainers.get(i))) { + index = i; + break; + } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "initContainers")); + } + return this.setNewInitContainerLike(index, this.buildInitContainer(index)); } - public boolean hasOverhead() { - return this.overhead != null; + public ReadinessGatesNested editMatchingReadinessGate(Predicate predicate) { + int index = -1; + for (int i = 0;i < readinessGates.size();i++) { + if (predicate.test(readinessGates.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "readinessGates")); + } + return this.setNewReadinessGateLike(index, this.buildReadinessGate(index)); } - public String getPreemptionPolicy() { - return this.preemptionPolicy; - } - - public A withPreemptionPolicy(String preemptionPolicy) { - this.preemptionPolicy = preemptionPolicy; - return (A) this; - } - - public boolean hasPreemptionPolicy() { - return this.preemptionPolicy != null; - } - - public Integer getPriority() { - return this.priority; - } - - public A withPriority(Integer priority) { - this.priority = priority; - return (A) this; - } - - public boolean hasPriority() { - return this.priority != null; - } - - public String getPriorityClassName() { - return this.priorityClassName; - } - - public A withPriorityClassName(String priorityClassName) { - this.priorityClassName = priorityClassName; - return (A) this; - } - - public boolean hasPriorityClassName() { - return this.priorityClassName != null; - } - - public A addToReadinessGates(int index,V1PodReadinessGate item) { - if (this.readinessGates == null) { - this.readinessGates = new ArrayList(); - } - V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - if (index < 0 || index >= readinessGates.size()) { - _visitables.get("readinessGates").add(builder); - readinessGates.add(builder); - } else { - _visitables.get("readinessGates").add(builder); - readinessGates.add(index, builder); - } - return (A) this; - } - - public A setToReadinessGates(int index,V1PodReadinessGate item) { - if (this.readinessGates == null) { - this.readinessGates = new ArrayList(); - } - V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - if (index < 0 || index >= readinessGates.size()) { - _visitables.get("readinessGates").add(builder); - readinessGates.add(builder); - } else { - _visitables.get("readinessGates").add(builder); - readinessGates.set(index, builder); - } - return (A) this; - } - - public A addToReadinessGates(V1PodReadinessGate... items) { - if (this.readinessGates == null) { - this.readinessGates = new ArrayList(); + public ResourceClaimsNested editMatchingResourceClaim(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceClaims.size();i++) { + if (predicate.test(resourceClaims.get(i))) { + index = i; + break; + } } - for (V1PodReadinessGate item : items) { - V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - _visitables.get("readinessGates").add(builder); - this.readinessGates.add(builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceClaims")); } - return (A) this; + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); } - public A addAllToReadinessGates(Collection items) { - if (this.readinessGates == null) { - this.readinessGates = new ArrayList(); + public SchedulingGatesNested editMatchingSchedulingGate(Predicate predicate) { + int index = -1; + for (int i = 0;i < schedulingGates.size();i++) { + if (predicate.test(schedulingGates.get(i))) { + index = i; + break; + } } - for (V1PodReadinessGate item : items) { - V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - _visitables.get("readinessGates").add(builder); - this.readinessGates.add(builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "schedulingGates")); } - return (A) this; + return this.setNewSchedulingGateLike(index, this.buildSchedulingGate(index)); } - public A removeFromReadinessGates(V1PodReadinessGate... items) { - if (this.readinessGates == null) { - return (A) this; + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } } - for (V1PodReadinessGate item : items) { - V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - _visitables.get("readinessGates").remove(builder); - this.readinessGates.remove(builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A removeAllFromReadinessGates(Collection items) { - if (this.readinessGates == null) { - return (A) this; + public TopologySpreadConstraintsNested editMatchingTopologySpreadConstraint(Predicate predicate) { + int index = -1; + for (int i = 0;i < topologySpreadConstraints.size();i++) { + if (predicate.test(topologySpreadConstraints.get(i))) { + index = i; + break; + } } - for (V1PodReadinessGate item : items) { - V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - _visitables.get("readinessGates").remove(builder); - this.readinessGates.remove(builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "topologySpreadConstraints")); } - return (A) this; + return this.setNewTopologySpreadConstraintLike(index, this.buildTopologySpreadConstraint(index)); } - public A removeMatchingFromReadinessGates(Predicate predicate) { - if (readinessGates == null) { - return (A) this; + public VolumesNested editMatchingVolume(Predicate predicate) { + int index = -1; + for (int i = 0;i < volumes.size();i++) { + if (predicate.test(volumes.get(i))) { + index = i; + break; + } } - Iterator each = readinessGates.iterator(); - List visitables = _visitables.get("readinessGates"); - while (each.hasNext()) { - V1PodReadinessGateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumes")); } - return (A) this; - } - - public List buildReadinessGates() { - return this.readinessGates != null ? build(readinessGates) : null; + return this.setNewVolumeLike(index, this.buildVolume(index)); } - public V1PodReadinessGate buildReadinessGate(int index) { - return this.readinessGates.get(index).build(); + public AffinityNested editOrNewAffinity() { + return this.withNewAffinityLike(Optional.ofNullable(this.buildAffinity()).orElse(new V1AffinityBuilder().build())); } - public V1PodReadinessGate buildFirstReadinessGate() { - return this.readinessGates.get(0).build(); + public AffinityNested editOrNewAffinityLike(V1Affinity item) { + return this.withNewAffinityLike(Optional.ofNullable(this.buildAffinity()).orElse(item)); } - public V1PodReadinessGate buildLastReadinessGate() { - return this.readinessGates.get(readinessGates.size() - 1).build(); + public DnsConfigNested editOrNewDnsConfig() { + return this.withNewDnsConfigLike(Optional.ofNullable(this.buildDnsConfig()).orElse(new V1PodDNSConfigBuilder().build())); } - public V1PodReadinessGate buildMatchingReadinessGate(Predicate predicate) { - for (V1PodReadinessGateBuilder item : readinessGates) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public DnsConfigNested editOrNewDnsConfigLike(V1PodDNSConfig item) { + return this.withNewDnsConfigLike(Optional.ofNullable(this.buildDnsConfig()).orElse(item)); } - public boolean hasMatchingReadinessGate(Predicate predicate) { - for (V1PodReadinessGateBuilder item : readinessGates) { - if (predicate.test(item)) { - return true; - } - } - return false; + public OsNested editOrNewOs() { + return this.withNewOsLike(Optional.ofNullable(this.buildOs()).orElse(new V1PodOSBuilder().build())); } - public A withReadinessGates(List readinessGates) { - if (this.readinessGates != null) { - this._visitables.get("readinessGates").clear(); - } - if (readinessGates != null) { - this.readinessGates = new ArrayList(); - for (V1PodReadinessGate item : readinessGates) { - this.addToReadinessGates(item); - } - } else { - this.readinessGates = null; - } - return (A) this; + public OsNested editOrNewOsLike(V1PodOS item) { + return this.withNewOsLike(Optional.ofNullable(this.buildOs()).orElse(item)); } - public A withReadinessGates(V1PodReadinessGate... readinessGates) { - if (this.readinessGates != null) { - this.readinessGates.clear(); - _visitables.remove("readinessGates"); - } - if (readinessGates != null) { - for (V1PodReadinessGate item : readinessGates) { - this.addToReadinessGates(item); - } - } - return (A) this; + public ResourcesNested editOrNewResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); } - public boolean hasReadinessGates() { - return this.readinessGates != null && !(this.readinessGates.isEmpty()); + public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); } - public ReadinessGatesNested addNewReadinessGate() { - return new ReadinessGatesNested(-1, null); + public SecurityContextNested editOrNewSecurityContext() { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(new V1PodSecurityContextBuilder().build())); } - public ReadinessGatesNested addNewReadinessGateLike(V1PodReadinessGate item) { - return new ReadinessGatesNested(-1, item); + public SecurityContextNested editOrNewSecurityContextLike(V1PodSecurityContext item) { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(item)); } - public ReadinessGatesNested setNewReadinessGateLike(int index,V1PodReadinessGate item) { - return new ReadinessGatesNested(index, item); + public OsNested editOs() { + return this.withNewOsLike(Optional.ofNullable(this.buildOs()).orElse(null)); } public ReadinessGatesNested editReadinessGate(int index) { - if (index <= readinessGates.size()) { + if (readinessGates.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "readinessGates")); } return this.setNewReadinessGateLike(index, this.buildReadinessGate(index)); } - public ReadinessGatesNested editFirstReadinessGate() { - if (readinessGates.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "readinessGates")); + public ResourceClaimsNested editResourceClaim(int index) { + if (resourceClaims.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceClaims")); } - return this.setNewReadinessGateLike(0, this.buildReadinessGate(0)); + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); } - public ReadinessGatesNested editLastReadinessGate() { - int index = readinessGates.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "readinessGates")); - } - return this.setNewReadinessGateLike(index, this.buildReadinessGate(index)); + public ResourcesNested editResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); } - public ReadinessGatesNested editMatchingReadinessGate(Predicate predicate) { - int index = -1; - for (int i = 0;i < readinessGates.size();i++) { - if (predicate.test(readinessGates.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "readinessGates")); + public SchedulingGatesNested editSchedulingGate(int index) { + if (schedulingGates.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "schedulingGates")); } - return this.setNewReadinessGateLike(index, this.buildReadinessGate(index)); + return this.setNewSchedulingGateLike(index, this.buildSchedulingGate(index)); } - public A addToResourceClaims(int index,V1PodResourceClaim item) { - if (this.resourceClaims == null) { - this.resourceClaims = new ArrayList(); - } - V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); - if (index < 0 || index >= resourceClaims.size()) { - _visitables.get("resourceClaims").add(builder); - resourceClaims.add(builder); - } else { - _visitables.get("resourceClaims").add(builder); - resourceClaims.add(index, builder); - } - return (A) this; + public SecurityContextNested editSecurityContext() { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(null)); } - public A setToResourceClaims(int index,V1PodResourceClaim item) { - if (this.resourceClaims == null) { - this.resourceClaims = new ArrayList(); - } - V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); - if (index < 0 || index >= resourceClaims.size()) { - _visitables.get("resourceClaims").add(builder); - resourceClaims.add(builder); - } else { - _visitables.get("resourceClaims").add(builder); - resourceClaims.set(index, builder); + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A addToResourceClaims(V1PodResourceClaim... items) { - if (this.resourceClaims == null) { - this.resourceClaims = new ArrayList(); - } - for (V1PodResourceClaim item : items) { - V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); - _visitables.get("resourceClaims").add(builder); - this.resourceClaims.add(builder); + public TopologySpreadConstraintsNested editTopologySpreadConstraint(int index) { + if (topologySpreadConstraints.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "topologySpreadConstraints")); } - return (A) this; + return this.setNewTopologySpreadConstraintLike(index, this.buildTopologySpreadConstraint(index)); } - public A addAllToResourceClaims(Collection items) { - if (this.resourceClaims == null) { - this.resourceClaims = new ArrayList(); - } - for (V1PodResourceClaim item : items) { - V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); - _visitables.get("resourceClaims").add(builder); - this.resourceClaims.add(builder); + public VolumesNested editVolume(int index) { + if (volumes.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumes")); } - return (A) this; + return this.setNewVolumeLike(index, this.buildVolume(index)); } - public A removeFromResourceClaims(V1PodResourceClaim... items) { - if (this.resourceClaims == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (V1PodResourceClaim item : items) { - V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); - _visitables.get("resourceClaims").remove(builder); - this.resourceClaims.remove(builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A removeAllFromResourceClaims(Collection items) { - if (this.resourceClaims == null) { - return (A) this; + if (!(super.equals(o))) { + return false; } - for (V1PodResourceClaim item : items) { - V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); - _visitables.get("resourceClaims").remove(builder); - this.resourceClaims.remove(builder); + V1PodSpecFluent that = (V1PodSpecFluent) o; + if (!(Objects.equals(activeDeadlineSeconds, that.activeDeadlineSeconds))) { + return false; } - return (A) this; - } - - public A removeMatchingFromResourceClaims(Predicate predicate) { - if (resourceClaims == null) { - return (A) this; + if (!(Objects.equals(affinity, that.affinity))) { + return false; } - Iterator each = resourceClaims.iterator(); - List visitables = _visitables.get("resourceClaims"); - while (each.hasNext()) { - V1PodResourceClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (!(Objects.equals(automountServiceAccountToken, that.automountServiceAccountToken))) { + return false; } - return (A) this; + if (!(Objects.equals(containers, that.containers))) { + return false; + } + if (!(Objects.equals(dnsConfig, that.dnsConfig))) { + return false; + } + if (!(Objects.equals(dnsPolicy, that.dnsPolicy))) { + return false; + } + if (!(Objects.equals(enableServiceLinks, that.enableServiceLinks))) { + return false; + } + if (!(Objects.equals(ephemeralContainers, that.ephemeralContainers))) { + return false; + } + if (!(Objects.equals(hostAliases, that.hostAliases))) { + return false; + } + if (!(Objects.equals(hostIPC, that.hostIPC))) { + return false; + } + if (!(Objects.equals(hostNetwork, that.hostNetwork))) { + return false; + } + if (!(Objects.equals(hostPID, that.hostPID))) { + return false; + } + if (!(Objects.equals(hostUsers, that.hostUsers))) { + return false; + } + if (!(Objects.equals(hostname, that.hostname))) { + return false; + } + if (!(Objects.equals(hostnameOverride, that.hostnameOverride))) { + return false; + } + if (!(Objects.equals(imagePullSecrets, that.imagePullSecrets))) { + return false; + } + if (!(Objects.equals(initContainers, that.initContainers))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + if (!(Objects.equals(os, that.os))) { + return false; + } + if (!(Objects.equals(overhead, that.overhead))) { + return false; + } + if (!(Objects.equals(preemptionPolicy, that.preemptionPolicy))) { + return false; + } + if (!(Objects.equals(priority, that.priority))) { + return false; + } + if (!(Objects.equals(priorityClassName, that.priorityClassName))) { + return false; + } + if (!(Objects.equals(readinessGates, that.readinessGates))) { + return false; + } + if (!(Objects.equals(resourceClaims, that.resourceClaims))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(restartPolicy, that.restartPolicy))) { + return false; + } + if (!(Objects.equals(runtimeClassName, that.runtimeClassName))) { + return false; + } + if (!(Objects.equals(schedulerName, that.schedulerName))) { + return false; + } + if (!(Objects.equals(schedulingGates, that.schedulingGates))) { + return false; + } + if (!(Objects.equals(securityContext, that.securityContext))) { + return false; + } + if (!(Objects.equals(serviceAccount, that.serviceAccount))) { + return false; + } + if (!(Objects.equals(serviceAccountName, that.serviceAccountName))) { + return false; + } + if (!(Objects.equals(setHostnameAsFQDN, that.setHostnameAsFQDN))) { + return false; + } + if (!(Objects.equals(shareProcessNamespace, that.shareProcessNamespace))) { + return false; + } + if (!(Objects.equals(subdomain, that.subdomain))) { + return false; + } + if (!(Objects.equals(terminationGracePeriodSeconds, that.terminationGracePeriodSeconds))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + if (!(Objects.equals(topologySpreadConstraints, that.topologySpreadConstraints))) { + return false; + } + if (!(Objects.equals(volumes, that.volumes))) { + return false; + } + return true; } - public List buildResourceClaims() { - return this.resourceClaims != null ? build(resourceClaims) : null; + public Long getActiveDeadlineSeconds() { + return this.activeDeadlineSeconds; } - public V1PodResourceClaim buildResourceClaim(int index) { - return this.resourceClaims.get(index).build(); + public Boolean getAutomountServiceAccountToken() { + return this.automountServiceAccountToken; } - public V1PodResourceClaim buildFirstResourceClaim() { - return this.resourceClaims.get(0).build(); + public String getDnsPolicy() { + return this.dnsPolicy; } - public V1PodResourceClaim buildLastResourceClaim() { - return this.resourceClaims.get(resourceClaims.size() - 1).build(); + public Boolean getEnableServiceLinks() { + return this.enableServiceLinks; } - public V1PodResourceClaim buildMatchingResourceClaim(Predicate predicate) { - for (V1PodResourceClaimBuilder item : resourceClaims) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public Boolean getHostIPC() { + return this.hostIPC; } - public boolean hasMatchingResourceClaim(Predicate predicate) { - for (V1PodResourceClaimBuilder item : resourceClaims) { - if (predicate.test(item)) { - return true; - } - } - return false; + public Boolean getHostNetwork() { + return this.hostNetwork; } - public A withResourceClaims(List resourceClaims) { - if (this.resourceClaims != null) { - this._visitables.get("resourceClaims").clear(); - } - if (resourceClaims != null) { - this.resourceClaims = new ArrayList(); - for (V1PodResourceClaim item : resourceClaims) { - this.addToResourceClaims(item); - } - } else { - this.resourceClaims = null; - } - return (A) this; + public Boolean getHostPID() { + return this.hostPID; } - public A withResourceClaims(V1PodResourceClaim... resourceClaims) { - if (this.resourceClaims != null) { - this.resourceClaims.clear(); - _visitables.remove("resourceClaims"); - } - if (resourceClaims != null) { - for (V1PodResourceClaim item : resourceClaims) { - this.addToResourceClaims(item); - } - } - return (A) this; + public Boolean getHostUsers() { + return this.hostUsers; } - public boolean hasResourceClaims() { - return this.resourceClaims != null && !(this.resourceClaims.isEmpty()); + public String getHostname() { + return this.hostname; } - public ResourceClaimsNested addNewResourceClaim() { - return new ResourceClaimsNested(-1, null); + public String getHostnameOverride() { + return this.hostnameOverride; } - public ResourceClaimsNested addNewResourceClaimLike(V1PodResourceClaim item) { - return new ResourceClaimsNested(-1, item); + public String getNodeName() { + return this.nodeName; } - public ResourceClaimsNested setNewResourceClaimLike(int index,V1PodResourceClaim item) { - return new ResourceClaimsNested(index, item); + public Map getNodeSelector() { + return this.nodeSelector; } - public ResourceClaimsNested editResourceClaim(int index) { - if (index <= resourceClaims.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceClaims")); - } - return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); + public Map getOverhead() { + return this.overhead; } - public ResourceClaimsNested editFirstResourceClaim() { - if (resourceClaims.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceClaims")); - } - return this.setNewResourceClaimLike(0, this.buildResourceClaim(0)); + public String getPreemptionPolicy() { + return this.preemptionPolicy; } - public ResourceClaimsNested editLastResourceClaim() { - int index = resourceClaims.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceClaims")); - } - return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); + public Integer getPriority() { + return this.priority; } - public ResourceClaimsNested editMatchingResourceClaim(Predicate predicate) { - int index = -1; - for (int i = 0;i < resourceClaims.size();i++) { - if (predicate.test(resourceClaims.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceClaims")); - } - return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); + public String getPriorityClassName() { + return this.priorityClassName; } - public V1ResourceRequirements buildResources() { - return this.resources != null ? this.resources.build() : null; + public String getRestartPolicy() { + return this.restartPolicy; } - public A withResources(V1ResourceRequirements resources) { - this._visitables.remove("resources"); - if (resources != null) { - this.resources = new V1ResourceRequirementsBuilder(resources); - this._visitables.get("resources").add(this.resources); - } else { - this.resources = null; - this._visitables.get("resources").remove(this.resources); - } - return (A) this; + public String getRuntimeClassName() { + return this.runtimeClassName; } - public boolean hasResources() { - return this.resources != null; + public String getSchedulerName() { + return this.schedulerName; } - public ResourcesNested withNewResources() { - return new ResourcesNested(null); + public String getServiceAccount() { + return this.serviceAccount; } - public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { - return new ResourcesNested(item); + public String getServiceAccountName() { + return this.serviceAccountName; } - public ResourcesNested editResources() { - return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); + public Boolean getSetHostnameAsFQDN() { + return this.setHostnameAsFQDN; } - public ResourcesNested editOrNewResources() { - return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); + public Boolean getShareProcessNamespace() { + return this.shareProcessNamespace; } - public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { - return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); + public String getSubdomain() { + return this.subdomain; } - public String getRestartPolicy() { - return this.restartPolicy; + public Long getTerminationGracePeriodSeconds() { + return this.terminationGracePeriodSeconds; } - public A withRestartPolicy(String restartPolicy) { - this.restartPolicy = restartPolicy; - return (A) this; + public boolean hasActiveDeadlineSeconds() { + return this.activeDeadlineSeconds != null; } - public boolean hasRestartPolicy() { - return this.restartPolicy != null; + public boolean hasAffinity() { + return this.affinity != null; } - public String getRuntimeClassName() { - return this.runtimeClassName; + public boolean hasAutomountServiceAccountToken() { + return this.automountServiceAccountToken != null; } - public A withRuntimeClassName(String runtimeClassName) { - this.runtimeClassName = runtimeClassName; - return (A) this; + public boolean hasContainers() { + return this.containers != null && !(this.containers.isEmpty()); } - public boolean hasRuntimeClassName() { - return this.runtimeClassName != null; + public boolean hasDnsConfig() { + return this.dnsConfig != null; } - public String getSchedulerName() { - return this.schedulerName; + public boolean hasDnsPolicy() { + return this.dnsPolicy != null; } - public A withSchedulerName(String schedulerName) { - this.schedulerName = schedulerName; - return (A) this; + public boolean hasEnableServiceLinks() { + return this.enableServiceLinks != null; } - public boolean hasSchedulerName() { - return this.schedulerName != null; + public boolean hasEphemeralContainers() { + return this.ephemeralContainers != null && !(this.ephemeralContainers.isEmpty()); } - public A addToSchedulingGates(int index,V1PodSchedulingGate item) { - if (this.schedulingGates == null) { - this.schedulingGates = new ArrayList(); - } - V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); - if (index < 0 || index >= schedulingGates.size()) { - _visitables.get("schedulingGates").add(builder); - schedulingGates.add(builder); - } else { - _visitables.get("schedulingGates").add(builder); - schedulingGates.add(index, builder); - } - return (A) this; + public boolean hasHostAliases() { + return this.hostAliases != null && !(this.hostAliases.isEmpty()); } - public A setToSchedulingGates(int index,V1PodSchedulingGate item) { - if (this.schedulingGates == null) { - this.schedulingGates = new ArrayList(); - } - V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); - if (index < 0 || index >= schedulingGates.size()) { - _visitables.get("schedulingGates").add(builder); - schedulingGates.add(builder); - } else { - _visitables.get("schedulingGates").add(builder); - schedulingGates.set(index, builder); - } - return (A) this; + public boolean hasHostIPC() { + return this.hostIPC != null; } - public A addToSchedulingGates(V1PodSchedulingGate... items) { - if (this.schedulingGates == null) { - this.schedulingGates = new ArrayList(); - } - for (V1PodSchedulingGate item : items) { - V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); - _visitables.get("schedulingGates").add(builder); - this.schedulingGates.add(builder); - } - return (A) this; + public boolean hasHostNetwork() { + return this.hostNetwork != null; } - public A addAllToSchedulingGates(Collection items) { - if (this.schedulingGates == null) { - this.schedulingGates = new ArrayList(); - } - for (V1PodSchedulingGate item : items) { - V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); - _visitables.get("schedulingGates").add(builder); - this.schedulingGates.add(builder); - } - return (A) this; + public boolean hasHostPID() { + return this.hostPID != null; } - public A removeFromSchedulingGates(V1PodSchedulingGate... items) { - if (this.schedulingGates == null) { - return (A) this; - } - for (V1PodSchedulingGate item : items) { - V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); - _visitables.get("schedulingGates").remove(builder); - this.schedulingGates.remove(builder); - } - return (A) this; + public boolean hasHostUsers() { + return this.hostUsers != null; } - public A removeAllFromSchedulingGates(Collection items) { - if (this.schedulingGates == null) { - return (A) this; - } - for (V1PodSchedulingGate item : items) { - V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); - _visitables.get("schedulingGates").remove(builder); - this.schedulingGates.remove(builder); - } - return (A) this; + public boolean hasHostname() { + return this.hostname != null; } - public A removeMatchingFromSchedulingGates(Predicate predicate) { - if (schedulingGates == null) { - return (A) this; - } - Iterator each = schedulingGates.iterator(); - List visitables = _visitables.get("schedulingGates"); - while (each.hasNext()) { - V1PodSchedulingGateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public boolean hasHostnameOverride() { + return this.hostnameOverride != null; } - public List buildSchedulingGates() { - return this.schedulingGates != null ? build(schedulingGates) : null; + public boolean hasImagePullSecrets() { + return this.imagePullSecrets != null && !(this.imagePullSecrets.isEmpty()); } - public V1PodSchedulingGate buildSchedulingGate(int index) { - return this.schedulingGates.get(index).build(); + public boolean hasInitContainers() { + return this.initContainers != null && !(this.initContainers.isEmpty()); } - public V1PodSchedulingGate buildFirstSchedulingGate() { - return this.schedulingGates.get(0).build(); + public boolean hasMatchingContainer(Predicate predicate) { + for (V1ContainerBuilder item : containers) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public V1PodSchedulingGate buildLastSchedulingGate() { - return this.schedulingGates.get(schedulingGates.size() - 1).build(); + public boolean hasMatchingEphemeralContainer(Predicate predicate) { + for (V1EphemeralContainerBuilder item : ephemeralContainers) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public V1PodSchedulingGate buildMatchingSchedulingGate(Predicate predicate) { - for (V1PodSchedulingGateBuilder item : schedulingGates) { + public boolean hasMatchingHostAlias(Predicate predicate) { + for (V1HostAliasBuilder item : hostAliases) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } - public boolean hasMatchingSchedulingGate(Predicate predicate) { - for (V1PodSchedulingGateBuilder item : schedulingGates) { + public boolean hasMatchingImagePullSecret(Predicate predicate) { + for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { if (predicate.test(item)) { return true; } @@ -2208,266 +1772,261 @@ public boolean hasMatchingSchedulingGate(Predicate p return false; } - public A withSchedulingGates(List schedulingGates) { - if (this.schedulingGates != null) { - this._visitables.get("schedulingGates").clear(); - } - if (schedulingGates != null) { - this.schedulingGates = new ArrayList(); - for (V1PodSchedulingGate item : schedulingGates) { - this.addToSchedulingGates(item); + public boolean hasMatchingInitContainer(Predicate predicate) { + for (V1ContainerBuilder item : initContainers) { + if (predicate.test(item)) { + return true; } - } else { - this.schedulingGates = null; - } - return (A) this; + } + return false; } - public A withSchedulingGates(V1PodSchedulingGate... schedulingGates) { - if (this.schedulingGates != null) { - this.schedulingGates.clear(); - _visitables.remove("schedulingGates"); - } - if (schedulingGates != null) { - for (V1PodSchedulingGate item : schedulingGates) { - this.addToSchedulingGates(item); + public boolean hasMatchingReadinessGate(Predicate predicate) { + for (V1PodReadinessGateBuilder item : readinessGates) { + if (predicate.test(item)) { + return true; + } } - } - return (A) this; + return false; } - public boolean hasSchedulingGates() { - return this.schedulingGates != null && !(this.schedulingGates.isEmpty()); + public boolean hasMatchingResourceClaim(Predicate predicate) { + for (V1PodResourceClaimBuilder item : resourceClaims) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public SchedulingGatesNested addNewSchedulingGate() { - return new SchedulingGatesNested(-1, null); + public boolean hasMatchingSchedulingGate(Predicate predicate) { + for (V1PodSchedulingGateBuilder item : schedulingGates) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public SchedulingGatesNested addNewSchedulingGateLike(V1PodSchedulingGate item) { - return new SchedulingGatesNested(-1, item); + public boolean hasMatchingToleration(Predicate predicate) { + for (V1TolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public SchedulingGatesNested setNewSchedulingGateLike(int index,V1PodSchedulingGate item) { - return new SchedulingGatesNested(index, item); + public boolean hasMatchingTopologySpreadConstraint(Predicate predicate) { + for (V1TopologySpreadConstraintBuilder item : topologySpreadConstraints) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public SchedulingGatesNested editSchedulingGate(int index) { - if (index <= schedulingGates.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "schedulingGates")); - } - return this.setNewSchedulingGateLike(index, this.buildSchedulingGate(index)); + public boolean hasMatchingVolume(Predicate predicate) { + for (V1VolumeBuilder item : volumes) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public SchedulingGatesNested editFirstSchedulingGate() { - if (schedulingGates.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "schedulingGates")); - } - return this.setNewSchedulingGateLike(0, this.buildSchedulingGate(0)); + public boolean hasNodeName() { + return this.nodeName != null; } - public SchedulingGatesNested editLastSchedulingGate() { - int index = schedulingGates.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "schedulingGates")); - } - return this.setNewSchedulingGateLike(index, this.buildSchedulingGate(index)); + public boolean hasNodeSelector() { + return this.nodeSelector != null; } - public SchedulingGatesNested editMatchingSchedulingGate(Predicate predicate) { - int index = -1; - for (int i = 0;i < schedulingGates.size();i++) { - if (predicate.test(schedulingGates.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "schedulingGates")); - } - return this.setNewSchedulingGateLike(index, this.buildSchedulingGate(index)); + public boolean hasOs() { + return this.os != null; } - public V1PodSecurityContext buildSecurityContext() { - return this.securityContext != null ? this.securityContext.build() : null; + public boolean hasOverhead() { + return this.overhead != null; } - public A withSecurityContext(V1PodSecurityContext securityContext) { - this._visitables.remove("securityContext"); - if (securityContext != null) { - this.securityContext = new V1PodSecurityContextBuilder(securityContext); - this._visitables.get("securityContext").add(this.securityContext); - } else { - this.securityContext = null; - this._visitables.get("securityContext").remove(this.securityContext); - } - return (A) this; + public boolean hasPreemptionPolicy() { + return this.preemptionPolicy != null; } - public boolean hasSecurityContext() { - return this.securityContext != null; + public boolean hasPriority() { + return this.priority != null; } - public SecurityContextNested withNewSecurityContext() { - return new SecurityContextNested(null); + public boolean hasPriorityClassName() { + return this.priorityClassName != null; } - public SecurityContextNested withNewSecurityContextLike(V1PodSecurityContext item) { - return new SecurityContextNested(item); + public boolean hasReadinessGates() { + return this.readinessGates != null && !(this.readinessGates.isEmpty()); } - public SecurityContextNested editSecurityContext() { - return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(null)); + public boolean hasResourceClaims() { + return this.resourceClaims != null && !(this.resourceClaims.isEmpty()); } - public SecurityContextNested editOrNewSecurityContext() { - return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(new V1PodSecurityContextBuilder().build())); + public boolean hasResources() { + return this.resources != null; } - public SecurityContextNested editOrNewSecurityContextLike(V1PodSecurityContext item) { - return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(item)); + public boolean hasRestartPolicy() { + return this.restartPolicy != null; } - public String getServiceAccount() { - return this.serviceAccount; + public boolean hasRuntimeClassName() { + return this.runtimeClassName != null; } - public A withServiceAccount(String serviceAccount) { - this.serviceAccount = serviceAccount; - return (A) this; + public boolean hasSchedulerName() { + return this.schedulerName != null; } - public boolean hasServiceAccount() { - return this.serviceAccount != null; + public boolean hasSchedulingGates() { + return this.schedulingGates != null && !(this.schedulingGates.isEmpty()); } - public String getServiceAccountName() { - return this.serviceAccountName; + public boolean hasSecurityContext() { + return this.securityContext != null; } - public A withServiceAccountName(String serviceAccountName) { - this.serviceAccountName = serviceAccountName; - return (A) this; + public boolean hasServiceAccount() { + return this.serviceAccount != null; } public boolean hasServiceAccountName() { return this.serviceAccountName != null; } - public Boolean getSetHostnameAsFQDN() { - return this.setHostnameAsFQDN; - } - - public A withSetHostnameAsFQDN(Boolean setHostnameAsFQDN) { - this.setHostnameAsFQDN = setHostnameAsFQDN; - return (A) this; - } - public boolean hasSetHostnameAsFQDN() { return this.setHostnameAsFQDN != null; } - public Boolean getShareProcessNamespace() { - return this.shareProcessNamespace; - } - - public A withShareProcessNamespace(Boolean shareProcessNamespace) { - this.shareProcessNamespace = shareProcessNamespace; - return (A) this; - } - public boolean hasShareProcessNamespace() { return this.shareProcessNamespace != null; } - public String getSubdomain() { - return this.subdomain; + public boolean hasSubdomain() { + return this.subdomain != null; } - public A withSubdomain(String subdomain) { - this.subdomain = subdomain; - return (A) this; + public boolean hasTerminationGracePeriodSeconds() { + return this.terminationGracePeriodSeconds != null; } - public boolean hasSubdomain() { - return this.subdomain != null; + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); } - public Long getTerminationGracePeriodSeconds() { - return this.terminationGracePeriodSeconds; + public boolean hasTopologySpreadConstraints() { + return this.topologySpreadConstraints != null && !(this.topologySpreadConstraints.isEmpty()); } - public A withTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { - this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; - return (A) this; + public boolean hasVolumes() { + return this.volumes != null && !(this.volumes.isEmpty()); } - public boolean hasTerminationGracePeriodSeconds() { - return this.terminationGracePeriodSeconds != null; + public int hashCode() { + return Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, hostnameOverride, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, resources, restartPolicy, runtimeClassName, schedulerName, schedulingGates, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes); } - public A addToTolerations(int index,V1Toleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); + public A removeAllFromContainers(Collection items) { + if (this.containers == null) { + return (A) this; } - V1TolerationBuilder builder = new V1TolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("containers").remove(builder); + this.containers.remove(builder); } return (A) this; } - public A setToTolerations(int index,V1Toleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); + public A removeAllFromEphemeralContainers(Collection items) { + if (this.ephemeralContainers == null) { + return (A) this; } - V1TolerationBuilder builder = new V1TolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); + for (V1EphemeralContainer item : items) { + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); + _visitables.get("ephemeralContainers").remove(builder); + this.ephemeralContainers.remove(builder); } return (A) this; } - public A addToTolerations(V1Toleration... items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); + public A removeAllFromHostAliases(Collection items) { + if (this.hostAliases == null) { + return (A) this; } - for (V1Toleration item : items) { - V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); + for (V1HostAlias item : items) { + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); + _visitables.get("hostAliases").remove(builder); + this.hostAliases.remove(builder); } return (A) this; } - public A addAllToTolerations(Collection items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); + public A removeAllFromImagePullSecrets(Collection items) { + if (this.imagePullSecrets == null) { + return (A) this; } - for (V1Toleration item : items) { - V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").remove(builder); + this.imagePullSecrets.remove(builder); } return (A) this; } - public A removeFromTolerations(V1Toleration... items) { - if (this.tolerations == null) { + public A removeAllFromInitContainers(Collection items) { + if (this.initContainers == null) { return (A) this; } - for (V1Toleration item : items) { - V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - this.tolerations.remove(builder); + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("initContainers").remove(builder); + this.initContainers.remove(builder); + } + return (A) this; + } + + public A removeAllFromReadinessGates(Collection items) { + if (this.readinessGates == null) { + return (A) this; + } + for (V1PodReadinessGate item : items) { + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); + _visitables.get("readinessGates").remove(builder); + this.readinessGates.remove(builder); + } + return (A) this; + } + + public A removeAllFromResourceClaims(Collection items) { + if (this.resourceClaims == null) { + return (A) this; + } + for (V1PodResourceClaim item : items) { + V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); + _visitables.get("resourceClaims").remove(builder); + this.resourceClaims.remove(builder); + } + return (A) this; + } + + public A removeAllFromSchedulingGates(Collection items) { + if (this.schedulingGates == null) { + return (A) this; + } + for (V1PodSchedulingGate item : items) { + V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); + _visitables.get("schedulingGates").remove(builder); + this.schedulingGates.remove(builder); } return (A) this; } @@ -2484,186 +2043,182 @@ public A removeAllFromTolerations(Collection items) { return (A) this; } - public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) { + public A removeAllFromTopologySpreadConstraints(Collection items) { + if (this.topologySpreadConstraints == null) { return (A) this; } - Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); - while (each.hasNext()) { - V1TolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (V1TopologySpreadConstraint item : items) { + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); + _visitables.get("topologySpreadConstraints").remove(builder); + this.topologySpreadConstraints.remove(builder); } return (A) this; } - public List buildTolerations() { - return this.tolerations != null ? build(tolerations) : null; + public A removeAllFromVolumes(Collection items) { + if (this.volumes == null) { + return (A) this; + } + for (V1Volume item : items) { + V1VolumeBuilder builder = new V1VolumeBuilder(item); + _visitables.get("volumes").remove(builder); + this.volumes.remove(builder); + } + return (A) this; } - public V1Toleration buildToleration(int index) { - return this.tolerations.get(index).build(); + public A removeFromContainers(V1Container... items) { + if (this.containers == null) { + return (A) this; + } + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("containers").remove(builder); + this.containers.remove(builder); + } + return (A) this; } - public V1Toleration buildFirstToleration() { - return this.tolerations.get(0).build(); + public A removeFromEphemeralContainers(V1EphemeralContainer... items) { + if (this.ephemeralContainers == null) { + return (A) this; + } + for (V1EphemeralContainer item : items) { + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); + _visitables.get("ephemeralContainers").remove(builder); + this.ephemeralContainers.remove(builder); + } + return (A) this; } - public V1Toleration buildLastToleration() { - return this.tolerations.get(tolerations.size() - 1).build(); + public A removeFromHostAliases(V1HostAlias... items) { + if (this.hostAliases == null) { + return (A) this; + } + for (V1HostAlias item : items) { + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); + _visitables.get("hostAliases").remove(builder); + this.hostAliases.remove(builder); + } + return (A) this; } - public V1Toleration buildMatchingToleration(Predicate predicate) { - for (V1TolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A removeFromImagePullSecrets(V1LocalObjectReference... items) { + if (this.imagePullSecrets == null) { + return (A) this; + } + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").remove(builder); + this.imagePullSecrets.remove(builder); + } + return (A) this; } - public boolean hasMatchingToleration(Predicate predicate) { - for (V1TolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A removeFromInitContainers(V1Container... items) { + if (this.initContainers == null) { + return (A) this; + } + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("initContainers").remove(builder); + this.initContainers.remove(builder); + } + return (A) this; } - public A withTolerations(List tolerations) { - if (this.tolerations != null) { - this._visitables.get("tolerations").clear(); + public A removeFromNodeSelector(String key) { + if (this.nodeSelector == null) { + return (A) this; } - if (tolerations != null) { - this.tolerations = new ArrayList(); - for (V1Toleration item : tolerations) { - this.addToTolerations(item); - } - } else { - this.tolerations = null; + if (key != null && this.nodeSelector != null) { + this.nodeSelector.remove(key); } return (A) this; } - public A withTolerations(V1Toleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - _visitables.remove("tolerations"); + public A removeFromNodeSelector(Map map) { + if (this.nodeSelector == null) { + return (A) this; } - if (tolerations != null) { - for (V1Toleration item : tolerations) { - this.addToTolerations(item); + if (map != null) { + for (Object key : map.keySet()) { + if (this.nodeSelector != null) { + this.nodeSelector.remove(key); + } } } return (A) this; } - public boolean hasTolerations() { - return this.tolerations != null && !(this.tolerations.isEmpty()); - } - - public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); - } - - public TolerationsNested addNewTolerationLike(V1Toleration item) { - return new TolerationsNested(-1, item); + public A removeFromOverhead(String key) { + if (this.overhead == null) { + return (A) this; + } + if (key != null && this.overhead != null) { + this.overhead.remove(key); + } + return (A) this; } - public TolerationsNested setNewTolerationLike(int index,V1Toleration item) { - return new TolerationsNested(index, item); - } - - public TolerationsNested editToleration(int index) { - if (index <= tolerations.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); - } - return this.setNewTolerationLike(index, this.buildToleration(index)); - } - - public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); - } - return this.setNewTolerationLike(0, this.buildToleration(0)); - } - - public TolerationsNested editLastToleration() { - int index = tolerations.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + public A removeFromOverhead(Map map) { + if (this.overhead == null) { + return (A) this; } - return this.setNewTolerationLike(index, this.buildToleration(index)); - } - - public TolerationsNested editMatchingToleration(Predicate predicate) { - int index = -1; - for (int i = 0;i < tolerations.size();i++) { - if (predicate.test(tolerations.get(i))) { - index = i; - break; + if (map != null) { + for (Object key : map.keySet()) { + if (this.overhead != null) { + this.overhead.remove(key); + } } } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); - } - return this.setNewTolerationLike(index, this.buildToleration(index)); + return (A) this; } - public A addToTopologySpreadConstraints(int index,V1TopologySpreadConstraint item) { - if (this.topologySpreadConstraints == null) { - this.topologySpreadConstraints = new ArrayList(); + public A removeFromReadinessGates(V1PodReadinessGate... items) { + if (this.readinessGates == null) { + return (A) this; } - V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); - if (index < 0 || index >= topologySpreadConstraints.size()) { - _visitables.get("topologySpreadConstraints").add(builder); - topologySpreadConstraints.add(builder); - } else { - _visitables.get("topologySpreadConstraints").add(builder); - topologySpreadConstraints.add(index, builder); + for (V1PodReadinessGate item : items) { + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); + _visitables.get("readinessGates").remove(builder); + this.readinessGates.remove(builder); } return (A) this; } - public A setToTopologySpreadConstraints(int index,V1TopologySpreadConstraint item) { - if (this.topologySpreadConstraints == null) { - this.topologySpreadConstraints = new ArrayList(); + public A removeFromResourceClaims(V1PodResourceClaim... items) { + if (this.resourceClaims == null) { + return (A) this; } - V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); - if (index < 0 || index >= topologySpreadConstraints.size()) { - _visitables.get("topologySpreadConstraints").add(builder); - topologySpreadConstraints.add(builder); - } else { - _visitables.get("topologySpreadConstraints").add(builder); - topologySpreadConstraints.set(index, builder); + for (V1PodResourceClaim item : items) { + V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); + _visitables.get("resourceClaims").remove(builder); + this.resourceClaims.remove(builder); } return (A) this; } - public A addToTopologySpreadConstraints(V1TopologySpreadConstraint... items) { - if (this.topologySpreadConstraints == null) { - this.topologySpreadConstraints = new ArrayList(); + public A removeFromSchedulingGates(V1PodSchedulingGate... items) { + if (this.schedulingGates == null) { + return (A) this; } - for (V1TopologySpreadConstraint item : items) { - V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); - _visitables.get("topologySpreadConstraints").add(builder); - this.topologySpreadConstraints.add(builder); + for (V1PodSchedulingGate item : items) { + V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); + _visitables.get("schedulingGates").remove(builder); + this.schedulingGates.remove(builder); } return (A) this; } - public A addAllToTopologySpreadConstraints(Collection items) { - if (this.topologySpreadConstraints == null) { - this.topologySpreadConstraints = new ArrayList(); + public A removeFromTolerations(V1Toleration... items) { + if (this.tolerations == null) { + return (A) this; } - for (V1TopologySpreadConstraint item : items) { - V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); - _visitables.get("topologySpreadConstraints").add(builder); - this.topologySpreadConstraints.add(builder); + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); } return (A) this; } @@ -2680,26 +2235,26 @@ public A removeFromTopologySpreadConstraints(V1TopologySpreadConstraint... items return (A) this; } - public A removeAllFromTopologySpreadConstraints(Collection items) { - if (this.topologySpreadConstraints == null) { + public A removeFromVolumes(V1Volume... items) { + if (this.volumes == null) { return (A) this; } - for (V1TopologySpreadConstraint item : items) { - V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); - _visitables.get("topologySpreadConstraints").remove(builder); - this.topologySpreadConstraints.remove(builder); + for (V1Volume item : items) { + V1VolumeBuilder builder = new V1VolumeBuilder(item); + _visitables.get("volumes").remove(builder); + this.volumes.remove(builder); } return (A) this; } - public A removeMatchingFromTopologySpreadConstraints(Predicate predicate) { - if (topologySpreadConstraints == null) { + public A removeMatchingFromContainers(Predicate predicate) { + if (containers == null) { return (A) this; } - Iterator each = topologySpreadConstraints.iterator(); - List visitables = _visitables.get("topologySpreadConstraints"); + Iterator each = containers.iterator(); + List visitables = _visitables.get("containers"); while (each.hasNext()) { - V1TopologySpreadConstraintBuilder builder = each.next(); + V1ContainerBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -2708,194 +2263,146 @@ public A removeMatchingFromTopologySpreadConstraints(Predicate buildTopologySpreadConstraints() { - return this.topologySpreadConstraints != null ? build(topologySpreadConstraints) : null; - } - - public V1TopologySpreadConstraint buildTopologySpreadConstraint(int index) { - return this.topologySpreadConstraints.get(index).build(); + public A removeMatchingFromEphemeralContainers(Predicate predicate) { + if (ephemeralContainers == null) { + return (A) this; + } + Iterator each = ephemeralContainers.iterator(); + List visitables = _visitables.get("ephemeralContainers"); + while (each.hasNext()) { + V1EphemeralContainerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public V1TopologySpreadConstraint buildFirstTopologySpreadConstraint() { - return this.topologySpreadConstraints.get(0).build(); + public A removeMatchingFromHostAliases(Predicate predicate) { + if (hostAliases == null) { + return (A) this; + } + Iterator each = hostAliases.iterator(); + List visitables = _visitables.get("hostAliases"); + while (each.hasNext()) { + V1HostAliasBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public V1TopologySpreadConstraint buildLastTopologySpreadConstraint() { - return this.topologySpreadConstraints.get(topologySpreadConstraints.size() - 1).build(); + public A removeMatchingFromImagePullSecrets(Predicate predicate) { + if (imagePullSecrets == null) { + return (A) this; + } + Iterator each = imagePullSecrets.iterator(); + List visitables = _visitables.get("imagePullSecrets"); + while (each.hasNext()) { + V1LocalObjectReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public V1TopologySpreadConstraint buildMatchingTopologySpreadConstraint(Predicate predicate) { - for (V1TopologySpreadConstraintBuilder item : topologySpreadConstraints) { - if (predicate.test(item)) { - return item.build(); + public A removeMatchingFromInitContainers(Predicate predicate) { + if (initContainers == null) { + return (A) this; + } + Iterator each = initContainers.iterator(); + List visitables = _visitables.get("initContainers"); + while (each.hasNext()) { + V1ContainerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } - return null; + } + return (A) this; } - public boolean hasMatchingTopologySpreadConstraint(Predicate predicate) { - for (V1TopologySpreadConstraintBuilder item : topologySpreadConstraints) { - if (predicate.test(item)) { - return true; + public A removeMatchingFromReadinessGates(Predicate predicate) { + if (readinessGates == null) { + return (A) this; + } + Iterator each = readinessGates.iterator(); + List visitables = _visitables.get("readinessGates"); + while (each.hasNext()) { + V1PodReadinessGateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } - return false; + } + return (A) this; } - public A withTopologySpreadConstraints(List topologySpreadConstraints) { - if (this.topologySpreadConstraints != null) { - this._visitables.get("topologySpreadConstraints").clear(); + public A removeMatchingFromResourceClaims(Predicate predicate) { + if (resourceClaims == null) { + return (A) this; } - if (topologySpreadConstraints != null) { - this.topologySpreadConstraints = new ArrayList(); - for (V1TopologySpreadConstraint item : topologySpreadConstraints) { - this.addToTopologySpreadConstraints(item); + Iterator each = resourceClaims.iterator(); + List visitables = _visitables.get("resourceClaims"); + while (each.hasNext()) { + V1PodResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } else { - this.topologySpreadConstraints = null; } return (A) this; } - public A withTopologySpreadConstraints(V1TopologySpreadConstraint... topologySpreadConstraints) { - if (this.topologySpreadConstraints != null) { - this.topologySpreadConstraints.clear(); - _visitables.remove("topologySpreadConstraints"); + public A removeMatchingFromSchedulingGates(Predicate predicate) { + if (schedulingGates == null) { + return (A) this; } - if (topologySpreadConstraints != null) { - for (V1TopologySpreadConstraint item : topologySpreadConstraints) { - this.addToTopologySpreadConstraints(item); - } + Iterator each = schedulingGates.iterator(); + List visitables = _visitables.get("schedulingGates"); + while (each.hasNext()) { + V1PodSchedulingGateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasTopologySpreadConstraints() { - return this.topologySpreadConstraints != null && !(this.topologySpreadConstraints.isEmpty()); - } - - public TopologySpreadConstraintsNested addNewTopologySpreadConstraint() { - return new TopologySpreadConstraintsNested(-1, null); - } - - public TopologySpreadConstraintsNested addNewTopologySpreadConstraintLike(V1TopologySpreadConstraint item) { - return new TopologySpreadConstraintsNested(-1, item); - } - - public TopologySpreadConstraintsNested setNewTopologySpreadConstraintLike(int index,V1TopologySpreadConstraint item) { - return new TopologySpreadConstraintsNested(index, item); - } - - public TopologySpreadConstraintsNested editTopologySpreadConstraint(int index) { - if (index <= topologySpreadConstraints.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "topologySpreadConstraints")); - } - return this.setNewTopologySpreadConstraintLike(index, this.buildTopologySpreadConstraint(index)); - } - - public TopologySpreadConstraintsNested editFirstTopologySpreadConstraint() { - if (topologySpreadConstraints.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "topologySpreadConstraints")); - } - return this.setNewTopologySpreadConstraintLike(0, this.buildTopologySpreadConstraint(0)); - } - - public TopologySpreadConstraintsNested editLastTopologySpreadConstraint() { - int index = topologySpreadConstraints.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "topologySpreadConstraints")); - } - return this.setNewTopologySpreadConstraintLike(index, this.buildTopologySpreadConstraint(index)); - } - - public TopologySpreadConstraintsNested editMatchingTopologySpreadConstraint(Predicate predicate) { - int index = -1; - for (int i = 0;i < topologySpreadConstraints.size();i++) { - if (predicate.test(topologySpreadConstraints.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "topologySpreadConstraints")); - } - return this.setNewTopologySpreadConstraintLike(index, this.buildTopologySpreadConstraint(index)); - } - - public A addToVolumes(int index,V1Volume item) { - if (this.volumes == null) { - this.volumes = new ArrayList(); - } - V1VolumeBuilder builder = new V1VolumeBuilder(item); - if (index < 0 || index >= volumes.size()) { - _visitables.get("volumes").add(builder); - volumes.add(builder); - } else { - _visitables.get("volumes").add(builder); - volumes.add(index, builder); - } - return (A) this; - } - - public A setToVolumes(int index,V1Volume item) { - if (this.volumes == null) { - this.volumes = new ArrayList(); - } - V1VolumeBuilder builder = new V1VolumeBuilder(item); - if (index < 0 || index >= volumes.size()) { - _visitables.get("volumes").add(builder); - volumes.add(builder); - } else { - _visitables.get("volumes").add(builder); - volumes.set(index, builder); - } - return (A) this; - } - - public A addToVolumes(V1Volume... items) { - if (this.volumes == null) { - this.volumes = new ArrayList(); - } - for (V1Volume item : items) { - V1VolumeBuilder builder = new V1VolumeBuilder(item); - _visitables.get("volumes").add(builder); - this.volumes.add(builder); - } - return (A) this; - } - - public A addAllToVolumes(Collection items) { - if (this.volumes == null) { - this.volumes = new ArrayList(); - } - for (V1Volume item : items) { - V1VolumeBuilder builder = new V1VolumeBuilder(item); - _visitables.get("volumes").add(builder); - this.volumes.add(builder); - } - return (A) this; - } - - public A removeFromVolumes(V1Volume... items) { - if (this.volumes == null) { + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { return (A) this; } - for (V1Volume item : items) { - V1VolumeBuilder builder = new V1VolumeBuilder(item); - _visitables.get("volumes").remove(builder); - this.volumes.remove(builder); + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1TolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public A removeAllFromVolumes(Collection items) { - if (this.volumes == null) { + public A removeMatchingFromTopologySpreadConstraints(Predicate predicate) { + if (topologySpreadConstraints == null) { return (A) this; } - for (V1Volume item : items) { - V1VolumeBuilder builder = new V1VolumeBuilder(item); - _visitables.get("volumes").remove(builder); - this.volumes.remove(builder); + Iterator each = topologySpreadConstraints.iterator(); + List visitables = _visitables.get("topologySpreadConstraints"); + while (each.hasNext()) { + V1TopologySpreadConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -2916,259 +2423,213 @@ public A removeMatchingFromVolumes(Predicate predicate) { return (A) this; } - public List buildVolumes() { - return this.volumes != null ? build(volumes) : null; - } - - public V1Volume buildVolume(int index) { - return this.volumes.get(index).build(); + public ContainersNested setNewContainerLike(int index,V1Container item) { + return new ContainersNested(index, item); } - public V1Volume buildFirstVolume() { - return this.volumes.get(0).build(); + public EphemeralContainersNested setNewEphemeralContainerLike(int index,V1EphemeralContainer item) { + return new EphemeralContainersNested(index, item); } - public V1Volume buildLastVolume() { - return this.volumes.get(volumes.size() - 1).build(); + public HostAliasesNested setNewHostAliasLike(int index,V1HostAlias item) { + return new HostAliasesNested(index, item); } - public V1Volume buildMatchingVolume(Predicate predicate) { - for (V1VolumeBuilder item : volumes) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public ImagePullSecretsNested setNewImagePullSecretLike(int index,V1LocalObjectReference item) { + return new ImagePullSecretsNested(index, item); } - public boolean hasMatchingVolume(Predicate predicate) { - for (V1VolumeBuilder item : volumes) { - if (predicate.test(item)) { - return true; - } - } - return false; + public InitContainersNested setNewInitContainerLike(int index,V1Container item) { + return new InitContainersNested(index, item); } - public A withVolumes(List volumes) { - if (this.volumes != null) { - this._visitables.get("volumes").clear(); - } - if (volumes != null) { - this.volumes = new ArrayList(); - for (V1Volume item : volumes) { - this.addToVolumes(item); - } - } else { - this.volumes = null; - } - return (A) this; + public ReadinessGatesNested setNewReadinessGateLike(int index,V1PodReadinessGate item) { + return new ReadinessGatesNested(index, item); } - public A withVolumes(V1Volume... volumes) { - if (this.volumes != null) { - this.volumes.clear(); - _visitables.remove("volumes"); - } - if (volumes != null) { - for (V1Volume item : volumes) { - this.addToVolumes(item); - } - } - return (A) this; + public ResourceClaimsNested setNewResourceClaimLike(int index,V1PodResourceClaim item) { + return new ResourceClaimsNested(index, item); } - public boolean hasVolumes() { - return this.volumes != null && !(this.volumes.isEmpty()); + public SchedulingGatesNested setNewSchedulingGateLike(int index,V1PodSchedulingGate item) { + return new SchedulingGatesNested(index, item); } - public VolumesNested addNewVolume() { - return new VolumesNested(-1, null); + public TolerationsNested setNewTolerationLike(int index,V1Toleration item) { + return new TolerationsNested(index, item); } - public VolumesNested addNewVolumeLike(V1Volume item) { - return new VolumesNested(-1, item); + public TopologySpreadConstraintsNested setNewTopologySpreadConstraintLike(int index,V1TopologySpreadConstraint item) { + return new TopologySpreadConstraintsNested(index, item); } public VolumesNested setNewVolumeLike(int index,V1Volume item) { return new VolumesNested(index, item); } - public VolumesNested editVolume(int index) { - if (index <= volumes.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumes")); + public A setToContainers(int index,V1Container item) { + if (this.containers == null) { + this.containers = new ArrayList(); } - return this.setNewVolumeLike(index, this.buildVolume(index)); - } - - public VolumesNested editFirstVolume() { - if (volumes.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumes")); + V1ContainerBuilder builder = new V1ContainerBuilder(item); + if (index < 0 || index >= containers.size()) { + _visitables.get("containers").add(builder); + containers.add(builder); + } else { + _visitables.get("containers").add(builder); + containers.set(index, builder); } - return this.setNewVolumeLike(0, this.buildVolume(0)); + return (A) this; } - public VolumesNested editLastVolume() { - int index = volumes.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumes")); + public A setToEphemeralContainers(int index,V1EphemeralContainer item) { + if (this.ephemeralContainers == null) { + this.ephemeralContainers = new ArrayList(); } - return this.setNewVolumeLike(index, this.buildVolume(index)); + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); + if (index < 0 || index >= ephemeralContainers.size()) { + _visitables.get("ephemeralContainers").add(builder); + ephemeralContainers.add(builder); + } else { + _visitables.get("ephemeralContainers").add(builder); + ephemeralContainers.set(index, builder); + } + return (A) this; } - public VolumesNested editMatchingVolume(Predicate predicate) { - int index = -1; - for (int i = 0;i < volumes.size();i++) { - if (predicate.test(volumes.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumes")); + public A setToHostAliases(int index,V1HostAlias item) { + if (this.hostAliases == null) { + this.hostAliases = new ArrayList(); } - return this.setNewVolumeLike(index, this.buildVolume(index)); + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); + if (index < 0 || index >= hostAliases.size()) { + _visitables.get("hostAliases").add(builder); + hostAliases.add(builder); + } else { + _visitables.get("hostAliases").add(builder); + hostAliases.set(index, builder); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1PodSpecFluent that = (V1PodSpecFluent) o; - if (!(Objects.equals(activeDeadlineSeconds, that.activeDeadlineSeconds))) { - return false; - } - if (!(Objects.equals(affinity, that.affinity))) { - return false; - } - if (!(Objects.equals(automountServiceAccountToken, that.automountServiceAccountToken))) { - return false; - } - if (!(Objects.equals(containers, that.containers))) { - return false; - } - if (!(Objects.equals(dnsConfig, that.dnsConfig))) { - return false; - } - if (!(Objects.equals(dnsPolicy, that.dnsPolicy))) { - return false; - } - if (!(Objects.equals(enableServiceLinks, that.enableServiceLinks))) { - return false; - } - if (!(Objects.equals(ephemeralContainers, that.ephemeralContainers))) { - return false; - } - if (!(Objects.equals(hostAliases, that.hostAliases))) { - return false; - } - if (!(Objects.equals(hostIPC, that.hostIPC))) { - return false; - } - if (!(Objects.equals(hostNetwork, that.hostNetwork))) { - return false; - } - if (!(Objects.equals(hostPID, that.hostPID))) { - return false; - } - if (!(Objects.equals(hostUsers, that.hostUsers))) { - return false; - } - if (!(Objects.equals(hostname, that.hostname))) { - return false; - } - if (!(Objects.equals(hostnameOverride, that.hostnameOverride))) { - return false; - } - if (!(Objects.equals(imagePullSecrets, that.imagePullSecrets))) { - return false; - } - if (!(Objects.equals(initContainers, that.initContainers))) { - return false; - } - if (!(Objects.equals(nodeName, that.nodeName))) { - return false; - } - if (!(Objects.equals(nodeSelector, that.nodeSelector))) { - return false; - } - if (!(Objects.equals(os, that.os))) { - return false; - } - if (!(Objects.equals(overhead, that.overhead))) { - return false; - } - if (!(Objects.equals(preemptionPolicy, that.preemptionPolicy))) { - return false; - } - if (!(Objects.equals(priority, that.priority))) { - return false; - } - if (!(Objects.equals(priorityClassName, that.priorityClassName))) { - return false; - } - if (!(Objects.equals(readinessGates, that.readinessGates))) { - return false; - } - if (!(Objects.equals(resourceClaims, that.resourceClaims))) { - return false; - } - if (!(Objects.equals(resources, that.resources))) { - return false; - } - if (!(Objects.equals(restartPolicy, that.restartPolicy))) { - return false; + public A setToImagePullSecrets(int index,V1LocalObjectReference item) { + if (this.imagePullSecrets == null) { + this.imagePullSecrets = new ArrayList(); } - if (!(Objects.equals(runtimeClassName, that.runtimeClassName))) { - return false; + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + if (index < 0 || index >= imagePullSecrets.size()) { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.add(builder); + } else { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.set(index, builder); } - if (!(Objects.equals(schedulerName, that.schedulerName))) { - return false; + return (A) this; + } + + public A setToInitContainers(int index,V1Container item) { + if (this.initContainers == null) { + this.initContainers = new ArrayList(); } - if (!(Objects.equals(schedulingGates, that.schedulingGates))) { - return false; + V1ContainerBuilder builder = new V1ContainerBuilder(item); + if (index < 0 || index >= initContainers.size()) { + _visitables.get("initContainers").add(builder); + initContainers.add(builder); + } else { + _visitables.get("initContainers").add(builder); + initContainers.set(index, builder); } - if (!(Objects.equals(securityContext, that.securityContext))) { - return false; + return (A) this; + } + + public A setToReadinessGates(int index,V1PodReadinessGate item) { + if (this.readinessGates == null) { + this.readinessGates = new ArrayList(); } - if (!(Objects.equals(serviceAccount, that.serviceAccount))) { - return false; + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); + if (index < 0 || index >= readinessGates.size()) { + _visitables.get("readinessGates").add(builder); + readinessGates.add(builder); + } else { + _visitables.get("readinessGates").add(builder); + readinessGates.set(index, builder); } - if (!(Objects.equals(serviceAccountName, that.serviceAccountName))) { - return false; + return (A) this; + } + + public A setToResourceClaims(int index,V1PodResourceClaim item) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); } - if (!(Objects.equals(setHostnameAsFQDN, that.setHostnameAsFQDN))) { - return false; + V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); + if (index < 0 || index >= resourceClaims.size()) { + _visitables.get("resourceClaims").add(builder); + resourceClaims.add(builder); + } else { + _visitables.get("resourceClaims").add(builder); + resourceClaims.set(index, builder); } - if (!(Objects.equals(shareProcessNamespace, that.shareProcessNamespace))) { - return false; + return (A) this; + } + + public A setToSchedulingGates(int index,V1PodSchedulingGate item) { + if (this.schedulingGates == null) { + this.schedulingGates = new ArrayList(); } - if (!(Objects.equals(subdomain, that.subdomain))) { - return false; + V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); + if (index < 0 || index >= schedulingGates.size()) { + _visitables.get("schedulingGates").add(builder); + schedulingGates.add(builder); + } else { + _visitables.get("schedulingGates").add(builder); + schedulingGates.set(index, builder); } - if (!(Objects.equals(terminationGracePeriodSeconds, that.terminationGracePeriodSeconds))) { - return false; + return (A) this; + } + + public A setToTolerations(int index,V1Toleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - if (!(Objects.equals(tolerations, that.tolerations))) { - return false; + V1TolerationBuilder builder = new V1TolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); } - if (!(Objects.equals(topologySpreadConstraints, that.topologySpreadConstraints))) { - return false; + return (A) this; + } + + public A setToTopologySpreadConstraints(int index,V1TopologySpreadConstraint item) { + if (this.topologySpreadConstraints == null) { + this.topologySpreadConstraints = new ArrayList(); } - if (!(Objects.equals(volumes, that.volumes))) { - return false; + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); + if (index < 0 || index >= topologySpreadConstraints.size()) { + _visitables.get("topologySpreadConstraints").add(builder); + topologySpreadConstraints.add(builder); + } else { + _visitables.get("topologySpreadConstraints").add(builder); + topologySpreadConstraints.set(index, builder); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, hostnameOverride, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, resources, restartPolicy, runtimeClassName, schedulerName, schedulingGates, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes); + public A setToVolumes(int index,V1Volume item) { + if (this.volumes == null) { + this.volumes = new ArrayList(); + } + V1VolumeBuilder builder = new V1VolumeBuilder(item); + if (index < 0 || index >= volumes.size()) { + _visitables.get("volumes").add(builder); + volumes.add(builder); + } else { + _visitables.get("volumes").add(builder); + volumes.set(index, builder); + } + return (A) this; } public String toString() { @@ -3382,43 +2843,586 @@ public String toString() { return sb.toString(); } - public A withAutomountServiceAccountToken() { - return withAutomountServiceAccountToken(true); + public A withActiveDeadlineSeconds(Long activeDeadlineSeconds) { + this.activeDeadlineSeconds = activeDeadlineSeconds; + return (A) this; + } + + public A withAffinity(V1Affinity affinity) { + this._visitables.remove("affinity"); + if (affinity != null) { + this.affinity = new V1AffinityBuilder(affinity); + this._visitables.get("affinity").add(this.affinity); + } else { + this.affinity = null; + this._visitables.get("affinity").remove(this.affinity); + } + return (A) this; + } + + public A withAutomountServiceAccountToken() { + return withAutomountServiceAccountToken(true); + } + + public A withAutomountServiceAccountToken(Boolean automountServiceAccountToken) { + this.automountServiceAccountToken = automountServiceAccountToken; + return (A) this; + } + + public A withContainers(List containers) { + if (this.containers != null) { + this._visitables.get("containers").clear(); + } + if (containers != null) { + this.containers = new ArrayList(); + for (V1Container item : containers) { + this.addToContainers(item); + } + } else { + this.containers = null; + } + return (A) this; + } + + public A withContainers(V1Container... containers) { + if (this.containers != null) { + this.containers.clear(); + _visitables.remove("containers"); + } + if (containers != null) { + for (V1Container item : containers) { + this.addToContainers(item); + } + } + return (A) this; + } + + public A withDnsConfig(V1PodDNSConfig dnsConfig) { + this._visitables.remove("dnsConfig"); + if (dnsConfig != null) { + this.dnsConfig = new V1PodDNSConfigBuilder(dnsConfig); + this._visitables.get("dnsConfig").add(this.dnsConfig); + } else { + this.dnsConfig = null; + this._visitables.get("dnsConfig").remove(this.dnsConfig); + } + return (A) this; + } + + public A withDnsPolicy(String dnsPolicy) { + this.dnsPolicy = dnsPolicy; + return (A) this; + } + + public A withEnableServiceLinks() { + return withEnableServiceLinks(true); + } + + public A withEnableServiceLinks(Boolean enableServiceLinks) { + this.enableServiceLinks = enableServiceLinks; + return (A) this; + } + + public A withEphemeralContainers(List ephemeralContainers) { + if (this.ephemeralContainers != null) { + this._visitables.get("ephemeralContainers").clear(); + } + if (ephemeralContainers != null) { + this.ephemeralContainers = new ArrayList(); + for (V1EphemeralContainer item : ephemeralContainers) { + this.addToEphemeralContainers(item); + } + } else { + this.ephemeralContainers = null; + } + return (A) this; + } + + public A withEphemeralContainers(V1EphemeralContainer... ephemeralContainers) { + if (this.ephemeralContainers != null) { + this.ephemeralContainers.clear(); + _visitables.remove("ephemeralContainers"); + } + if (ephemeralContainers != null) { + for (V1EphemeralContainer item : ephemeralContainers) { + this.addToEphemeralContainers(item); + } + } + return (A) this; + } + + public A withHostAliases(List hostAliases) { + if (this.hostAliases != null) { + this._visitables.get("hostAliases").clear(); + } + if (hostAliases != null) { + this.hostAliases = new ArrayList(); + for (V1HostAlias item : hostAliases) { + this.addToHostAliases(item); + } + } else { + this.hostAliases = null; + } + return (A) this; + } + + public A withHostAliases(V1HostAlias... hostAliases) { + if (this.hostAliases != null) { + this.hostAliases.clear(); + _visitables.remove("hostAliases"); + } + if (hostAliases != null) { + for (V1HostAlias item : hostAliases) { + this.addToHostAliases(item); + } + } + return (A) this; + } + + public A withHostIPC() { + return withHostIPC(true); + } + + public A withHostIPC(Boolean hostIPC) { + this.hostIPC = hostIPC; + return (A) this; + } + + public A withHostNetwork() { + return withHostNetwork(true); + } + + public A withHostNetwork(Boolean hostNetwork) { + this.hostNetwork = hostNetwork; + return (A) this; + } + + public A withHostPID() { + return withHostPID(true); + } + + public A withHostPID(Boolean hostPID) { + this.hostPID = hostPID; + return (A) this; + } + + public A withHostUsers() { + return withHostUsers(true); + } + + public A withHostUsers(Boolean hostUsers) { + this.hostUsers = hostUsers; + return (A) this; + } + + public A withHostname(String hostname) { + this.hostname = hostname; + return (A) this; + } + + public A withHostnameOverride(String hostnameOverride) { + this.hostnameOverride = hostnameOverride; + return (A) this; + } + + public A withImagePullSecrets(List imagePullSecrets) { + if (this.imagePullSecrets != null) { + this._visitables.get("imagePullSecrets").clear(); + } + if (imagePullSecrets != null) { + this.imagePullSecrets = new ArrayList(); + for (V1LocalObjectReference item : imagePullSecrets) { + this.addToImagePullSecrets(item); + } + } else { + this.imagePullSecrets = null; + } + return (A) this; + } + + public A withImagePullSecrets(V1LocalObjectReference... imagePullSecrets) { + if (this.imagePullSecrets != null) { + this.imagePullSecrets.clear(); + _visitables.remove("imagePullSecrets"); + } + if (imagePullSecrets != null) { + for (V1LocalObjectReference item : imagePullSecrets) { + this.addToImagePullSecrets(item); + } + } + return (A) this; + } + + public A withInitContainers(List initContainers) { + if (this.initContainers != null) { + this._visitables.get("initContainers").clear(); + } + if (initContainers != null) { + this.initContainers = new ArrayList(); + for (V1Container item : initContainers) { + this.addToInitContainers(item); + } + } else { + this.initContainers = null; + } + return (A) this; + } + + public A withInitContainers(V1Container... initContainers) { + if (this.initContainers != null) { + this.initContainers.clear(); + _visitables.remove("initContainers"); + } + if (initContainers != null) { + for (V1Container item : initContainers) { + this.addToInitContainers(item); + } + } + return (A) this; + } + + public AffinityNested withNewAffinity() { + return new AffinityNested(null); + } + + public AffinityNested withNewAffinityLike(V1Affinity item) { + return new AffinityNested(item); + } + + public DnsConfigNested withNewDnsConfig() { + return new DnsConfigNested(null); + } + + public DnsConfigNested withNewDnsConfigLike(V1PodDNSConfig item) { + return new DnsConfigNested(item); + } + + public OsNested withNewOs() { + return new OsNested(null); + } + + public OsNested withNewOsLike(V1PodOS item) { + return new OsNested(item); + } + + public ResourcesNested withNewResources() { + return new ResourcesNested(null); + } + + public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { + return new ResourcesNested(item); + } + + public SecurityContextNested withNewSecurityContext() { + return new SecurityContextNested(null); + } + + public SecurityContextNested withNewSecurityContextLike(V1PodSecurityContext item) { + return new SecurityContextNested(item); + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + public A withNodeSelector(Map nodeSelector) { + if (nodeSelector == null) { + this.nodeSelector = null; + } else { + this.nodeSelector = new LinkedHashMap(nodeSelector); + } + return (A) this; + } + + public A withOs(V1PodOS os) { + this._visitables.remove("os"); + if (os != null) { + this.os = new V1PodOSBuilder(os); + this._visitables.get("os").add(this.os); + } else { + this.os = null; + this._visitables.get("os").remove(this.os); + } + return (A) this; + } + + public A withOverhead(Map overhead) { + if (overhead == null) { + this.overhead = null; + } else { + this.overhead = new LinkedHashMap(overhead); + } + return (A) this; + } + + public A withPreemptionPolicy(String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + return (A) this; + } + + public A withPriority(Integer priority) { + this.priority = priority; + return (A) this; + } + + public A withPriorityClassName(String priorityClassName) { + this.priorityClassName = priorityClassName; + return (A) this; + } + + public A withReadinessGates(List readinessGates) { + if (this.readinessGates != null) { + this._visitables.get("readinessGates").clear(); + } + if (readinessGates != null) { + this.readinessGates = new ArrayList(); + for (V1PodReadinessGate item : readinessGates) { + this.addToReadinessGates(item); + } + } else { + this.readinessGates = null; + } + return (A) this; + } + + public A withReadinessGates(V1PodReadinessGate... readinessGates) { + if (this.readinessGates != null) { + this.readinessGates.clear(); + _visitables.remove("readinessGates"); + } + if (readinessGates != null) { + for (V1PodReadinessGate item : readinessGates) { + this.addToReadinessGates(item); + } + } + return (A) this; + } + + public A withResourceClaims(List resourceClaims) { + if (this.resourceClaims != null) { + this._visitables.get("resourceClaims").clear(); + } + if (resourceClaims != null) { + this.resourceClaims = new ArrayList(); + for (V1PodResourceClaim item : resourceClaims) { + this.addToResourceClaims(item); + } + } else { + this.resourceClaims = null; + } + return (A) this; + } + + public A withResourceClaims(V1PodResourceClaim... resourceClaims) { + if (this.resourceClaims != null) { + this.resourceClaims.clear(); + _visitables.remove("resourceClaims"); + } + if (resourceClaims != null) { + for (V1PodResourceClaim item : resourceClaims) { + this.addToResourceClaims(item); + } + } + return (A) this; + } + + public A withResources(V1ResourceRequirements resources) { + this._visitables.remove("resources"); + if (resources != null) { + this.resources = new V1ResourceRequirementsBuilder(resources); + this._visitables.get("resources").add(this.resources); + } else { + this.resources = null; + this._visitables.get("resources").remove(this.resources); + } + return (A) this; + } + + public A withRestartPolicy(String restartPolicy) { + this.restartPolicy = restartPolicy; + return (A) this; + } + + public A withRuntimeClassName(String runtimeClassName) { + this.runtimeClassName = runtimeClassName; + return (A) this; + } + + public A withSchedulerName(String schedulerName) { + this.schedulerName = schedulerName; + return (A) this; + } + + public A withSchedulingGates(List schedulingGates) { + if (this.schedulingGates != null) { + this._visitables.get("schedulingGates").clear(); + } + if (schedulingGates != null) { + this.schedulingGates = new ArrayList(); + for (V1PodSchedulingGate item : schedulingGates) { + this.addToSchedulingGates(item); + } + } else { + this.schedulingGates = null; + } + return (A) this; + } + + public A withSchedulingGates(V1PodSchedulingGate... schedulingGates) { + if (this.schedulingGates != null) { + this.schedulingGates.clear(); + _visitables.remove("schedulingGates"); + } + if (schedulingGates != null) { + for (V1PodSchedulingGate item : schedulingGates) { + this.addToSchedulingGates(item); + } + } + return (A) this; + } + + public A withSecurityContext(V1PodSecurityContext securityContext) { + this._visitables.remove("securityContext"); + if (securityContext != null) { + this.securityContext = new V1PodSecurityContextBuilder(securityContext); + this._visitables.get("securityContext").add(this.securityContext); + } else { + this.securityContext = null; + this._visitables.get("securityContext").remove(this.securityContext); + } + return (A) this; + } + + public A withServiceAccount(String serviceAccount) { + this.serviceAccount = serviceAccount; + return (A) this; + } + + public A withServiceAccountName(String serviceAccountName) { + this.serviceAccountName = serviceAccountName; + return (A) this; } - public A withEnableServiceLinks() { - return withEnableServiceLinks(true); + public A withSetHostnameAsFQDN() { + return withSetHostnameAsFQDN(true); } - public A withHostIPC() { - return withHostIPC(true); + public A withSetHostnameAsFQDN(Boolean setHostnameAsFQDN) { + this.setHostnameAsFQDN = setHostnameAsFQDN; + return (A) this; } - public A withHostNetwork() { - return withHostNetwork(true); + public A withShareProcessNamespace() { + return withShareProcessNamespace(true); } - public A withHostPID() { - return withHostPID(true); + public A withShareProcessNamespace(Boolean shareProcessNamespace) { + this.shareProcessNamespace = shareProcessNamespace; + return (A) this; } - public A withHostUsers() { - return withHostUsers(true); + public A withSubdomain(String subdomain) { + this.subdomain = subdomain; + return (A) this; } - public A withSetHostnameAsFQDN() { - return withSetHostnameAsFQDN(true); + public A withTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { + this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; + return (A) this; } - public A withShareProcessNamespace() { - return withShareProcessNamespace(true); + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1Toleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(V1Toleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1Toleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + + public A withTopologySpreadConstraints(List topologySpreadConstraints) { + if (this.topologySpreadConstraints != null) { + this._visitables.get("topologySpreadConstraints").clear(); + } + if (topologySpreadConstraints != null) { + this.topologySpreadConstraints = new ArrayList(); + for (V1TopologySpreadConstraint item : topologySpreadConstraints) { + this.addToTopologySpreadConstraints(item); + } + } else { + this.topologySpreadConstraints = null; + } + return (A) this; + } + + public A withTopologySpreadConstraints(V1TopologySpreadConstraint... topologySpreadConstraints) { + if (this.topologySpreadConstraints != null) { + this.topologySpreadConstraints.clear(); + _visitables.remove("topologySpreadConstraints"); + } + if (topologySpreadConstraints != null) { + for (V1TopologySpreadConstraint item : topologySpreadConstraints) { + this.addToTopologySpreadConstraints(item); + } + } + return (A) this; + } + + public A withVolumes(List volumes) { + if (this.volumes != null) { + this._visitables.get("volumes").clear(); + } + if (volumes != null) { + this.volumes = new ArrayList(); + for (V1Volume item : volumes) { + this.addToVolumes(item); + } + } else { + this.volumes = null; + } + return (A) this; + } + + public A withVolumes(V1Volume... volumes) { + if (this.volumes != null) { + this.volumes.clear(); + _visitables.remove("volumes"); + } + if (volumes != null) { + for (V1Volume item : volumes) { + this.addToVolumes(item); + } + } + return (A) this; } public class AffinityNested extends V1AffinityFluent> implements Nested{ + + V1AffinityBuilder builder; + AffinityNested(V1Affinity item) { this.builder = new V1AffinityBuilder(this, item); } - V1AffinityBuilder builder; - + public N and() { return (N) V1PodSpecFluent.this.withAffinity(builder.build()); } @@ -3427,16 +3431,17 @@ public N endAffinity() { return and(); } - } public class ContainersNested extends V1ContainerFluent> implements Nested{ + + V1ContainerBuilder builder; + int index; + ContainersNested(int index,V1Container item) { this.index = index; this.builder = new V1ContainerBuilder(this, item); } - V1ContainerBuilder builder; - int index; - + public N and() { return (N) V1PodSpecFluent.this.setToContainers(index, builder.build()); } @@ -3445,14 +3450,15 @@ public N endContainer() { return and(); } - } public class DnsConfigNested extends V1PodDNSConfigFluent> implements Nested{ + + V1PodDNSConfigBuilder builder; + DnsConfigNested(V1PodDNSConfig item) { this.builder = new V1PodDNSConfigBuilder(this, item); } - V1PodDNSConfigBuilder builder; - + public N and() { return (N) V1PodSpecFluent.this.withDnsConfig(builder.build()); } @@ -3461,16 +3467,17 @@ public N endDnsConfig() { return and(); } - } public class EphemeralContainersNested extends V1EphemeralContainerFluent> implements Nested{ + + V1EphemeralContainerBuilder builder; + int index; + EphemeralContainersNested(int index,V1EphemeralContainer item) { this.index = index; this.builder = new V1EphemeralContainerBuilder(this, item); } - V1EphemeralContainerBuilder builder; - int index; - + public N and() { return (N) V1PodSpecFluent.this.setToEphemeralContainers(index, builder.build()); } @@ -3479,16 +3486,17 @@ public N endEphemeralContainer() { return and(); } - } public class HostAliasesNested extends V1HostAliasFluent> implements Nested{ + + V1HostAliasBuilder builder; + int index; + HostAliasesNested(int index,V1HostAlias item) { this.index = index; this.builder = new V1HostAliasBuilder(this, item); } - V1HostAliasBuilder builder; - int index; - + public N and() { return (N) V1PodSpecFluent.this.setToHostAliases(index, builder.build()); } @@ -3497,16 +3505,17 @@ public N endHostAlias() { return and(); } - } public class ImagePullSecretsNested extends V1LocalObjectReferenceFluent> implements Nested{ + + V1LocalObjectReferenceBuilder builder; + int index; + ImagePullSecretsNested(int index,V1LocalObjectReference item) { this.index = index; this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - int index; - + public N and() { return (N) V1PodSpecFluent.this.setToImagePullSecrets(index, builder.build()); } @@ -3515,16 +3524,17 @@ public N endImagePullSecret() { return and(); } - } public class InitContainersNested extends V1ContainerFluent> implements Nested{ + + V1ContainerBuilder builder; + int index; + InitContainersNested(int index,V1Container item) { this.index = index; this.builder = new V1ContainerBuilder(this, item); } - V1ContainerBuilder builder; - int index; - + public N and() { return (N) V1PodSpecFluent.this.setToInitContainers(index, builder.build()); } @@ -3533,14 +3543,15 @@ public N endInitContainer() { return and(); } - } public class OsNested extends V1PodOSFluent> implements Nested{ + + V1PodOSBuilder builder; + OsNested(V1PodOS item) { this.builder = new V1PodOSBuilder(this, item); } - V1PodOSBuilder builder; - + public N and() { return (N) V1PodSpecFluent.this.withOs(builder.build()); } @@ -3549,16 +3560,17 @@ public N endOs() { return and(); } - } public class ReadinessGatesNested extends V1PodReadinessGateFluent> implements Nested{ + + V1PodReadinessGateBuilder builder; + int index; + ReadinessGatesNested(int index,V1PodReadinessGate item) { this.index = index; this.builder = new V1PodReadinessGateBuilder(this, item); } - V1PodReadinessGateBuilder builder; - int index; - + public N and() { return (N) V1PodSpecFluent.this.setToReadinessGates(index, builder.build()); } @@ -3567,16 +3579,17 @@ public N endReadinessGate() { return and(); } - } public class ResourceClaimsNested extends V1PodResourceClaimFluent> implements Nested{ + + V1PodResourceClaimBuilder builder; + int index; + ResourceClaimsNested(int index,V1PodResourceClaim item) { this.index = index; this.builder = new V1PodResourceClaimBuilder(this, item); } - V1PodResourceClaimBuilder builder; - int index; - + public N and() { return (N) V1PodSpecFluent.this.setToResourceClaims(index, builder.build()); } @@ -3585,14 +3598,15 @@ public N endResourceClaim() { return and(); } - } public class ResourcesNested extends V1ResourceRequirementsFluent> implements Nested{ + + V1ResourceRequirementsBuilder builder; + ResourcesNested(V1ResourceRequirements item) { this.builder = new V1ResourceRequirementsBuilder(this, item); } - V1ResourceRequirementsBuilder builder; - + public N and() { return (N) V1PodSpecFluent.this.withResources(builder.build()); } @@ -3601,16 +3615,17 @@ public N endResources() { return and(); } - } public class SchedulingGatesNested extends V1PodSchedulingGateFluent> implements Nested{ + + V1PodSchedulingGateBuilder builder; + int index; + SchedulingGatesNested(int index,V1PodSchedulingGate item) { this.index = index; this.builder = new V1PodSchedulingGateBuilder(this, item); } - V1PodSchedulingGateBuilder builder; - int index; - + public N and() { return (N) V1PodSpecFluent.this.setToSchedulingGates(index, builder.build()); } @@ -3619,14 +3634,15 @@ public N endSchedulingGate() { return and(); } - } public class SecurityContextNested extends V1PodSecurityContextFluent> implements Nested{ + + V1PodSecurityContextBuilder builder; + SecurityContextNested(V1PodSecurityContext item) { this.builder = new V1PodSecurityContextBuilder(this, item); } - V1PodSecurityContextBuilder builder; - + public N and() { return (N) V1PodSpecFluent.this.withSecurityContext(builder.build()); } @@ -3635,16 +3651,17 @@ public N endSecurityContext() { return and(); } - } public class TolerationsNested extends V1TolerationFluent> implements Nested{ + + V1TolerationBuilder builder; + int index; + TolerationsNested(int index,V1Toleration item) { this.index = index; this.builder = new V1TolerationBuilder(this, item); } - V1TolerationBuilder builder; - int index; - + public N and() { return (N) V1PodSpecFluent.this.setToTolerations(index, builder.build()); } @@ -3653,16 +3670,17 @@ public N endToleration() { return and(); } - } public class TopologySpreadConstraintsNested extends V1TopologySpreadConstraintFluent> implements Nested{ + + V1TopologySpreadConstraintBuilder builder; + int index; + TopologySpreadConstraintsNested(int index,V1TopologySpreadConstraint item) { this.index = index; this.builder = new V1TopologySpreadConstraintBuilder(this, item); } - V1TopologySpreadConstraintBuilder builder; - int index; - + public N and() { return (N) V1PodSpecFluent.this.setToTopologySpreadConstraints(index, builder.build()); } @@ -3671,16 +3689,17 @@ public N endTopologySpreadConstraint() { return and(); } - } public class VolumesNested extends V1VolumeFluent> implements Nested{ + + V1VolumeBuilder builder; + int index; + VolumesNested(int index,V1Volume item) { this.index = index; this.builder = new V1VolumeBuilder(this, item); } - V1VolumeBuilder builder; - int index; - + public N and() { return (N) V1PodSpecFluent.this.setToVolumes(index, builder.build()); } @@ -3689,7 +3708,5 @@ public N endVolume() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java index dbb251d932..4a31f3c31d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodStatusBuilder extends V1PodStatusFluent implements VisitableBuilder{ + + V1PodStatusFluent fluent; + public V1PodStatusBuilder() { this(new V1PodStatus()); } @@ -11,17 +14,16 @@ public V1PodStatusBuilder(V1PodStatusFluent fluent) { this(fluent, new V1PodStatus()); } - public V1PodStatusBuilder(V1PodStatusFluent fluent,V1PodStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodStatusBuilder(V1PodStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1PodStatusFluent fluent; + public V1PodStatusBuilder(V1PodStatusFluent fluent,V1PodStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodStatus build() { V1PodStatus buildable = new V1PodStatus(); buildable.setConditions(fluent.buildConditions()); @@ -45,5 +47,4 @@ public V1PodStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java index f7a5251d5b..824879cee6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java @@ -1,33 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; -import java.util.List; -import java.util.Optional; -import java.time.OffsetDateTime; +import io.kubernetes.client.fluent.Nested; import java.lang.Long; -import java.util.Objects; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.RuntimeException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodStatusFluent> extends BaseFluent{ - public V1PodStatusFluent() { - } - - public V1PodStatusFluent(V1PodStatus instance) { - this.copyInstance(instance); - } + private ArrayList conditions; private ArrayList containerStatuses; private ArrayList ephemeralContainerStatuses; @@ -46,255 +41,194 @@ public V1PodStatusFluent(V1PodStatus instance) { private String resize; private ArrayList resourceClaimStatuses; private OffsetDateTime startTime; - - protected void copyInstance(V1PodStatus instance) { - instance = instance != null ? instance : new V1PodStatus(); - if (instance != null) { - this.withConditions(instance.getConditions()); - this.withContainerStatuses(instance.getContainerStatuses()); - this.withEphemeralContainerStatuses(instance.getEphemeralContainerStatuses()); - this.withExtendedResourceClaimStatus(instance.getExtendedResourceClaimStatus()); - this.withHostIP(instance.getHostIP()); - this.withHostIPs(instance.getHostIPs()); - this.withInitContainerStatuses(instance.getInitContainerStatuses()); - this.withMessage(instance.getMessage()); - this.withNominatedNodeName(instance.getNominatedNodeName()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withPhase(instance.getPhase()); - this.withPodIP(instance.getPodIP()); - this.withPodIPs(instance.getPodIPs()); - this.withQosClass(instance.getQosClass()); - this.withReason(instance.getReason()); - this.withResize(instance.getResize()); - this.withResourceClaimStatuses(instance.getResourceClaimStatuses()); - this.withStartTime(instance.getStartTime()); - } + + public V1PodStatusFluent() { } - public A addToConditions(int index,V1PodCondition item) { + public V1PodStatusFluent(V1PodStatus instance) { + this.copyInstance(instance); + } + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1PodConditionBuilder builder = new V1PodConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1PodCondition item : items) { + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1PodCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); + public A addAllToContainerStatuses(Collection items) { + if (this.containerStatuses == null) { + this.containerStatuses = new ArrayList(); } - V1PodConditionBuilder builder = new V1PodConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("containerStatuses").add(builder); + this.containerStatuses.add(builder); } return (A) this; } - public A addToConditions(V1PodCondition... items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); + public A addAllToEphemeralContainerStatuses(Collection items) { + if (this.ephemeralContainerStatuses == null) { + this.ephemeralContainerStatuses = new ArrayList(); } - for (V1PodCondition item : items) { - V1PodConditionBuilder builder = new V1PodConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("ephemeralContainerStatuses").add(builder); + this.ephemeralContainerStatuses.add(builder); } return (A) this; } - public A addAllToConditions(Collection items) { - if (this.conditions == null) { - this.conditions = new ArrayList(); + public A addAllToHostIPs(Collection items) { + if (this.hostIPs == null) { + this.hostIPs = new ArrayList(); } - for (V1PodCondition item : items) { - V1PodConditionBuilder builder = new V1PodConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); + for (V1HostIP item : items) { + V1HostIPBuilder builder = new V1HostIPBuilder(item); + _visitables.get("hostIPs").add(builder); + this.hostIPs.add(builder); } return (A) this; } - public A removeFromConditions(V1PodCondition... items) { - if (this.conditions == null) { - return (A) this; + public A addAllToInitContainerStatuses(Collection items) { + if (this.initContainerStatuses == null) { + this.initContainerStatuses = new ArrayList(); } - for (V1PodCondition item : items) { - V1PodConditionBuilder builder = new V1PodConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("initContainerStatuses").add(builder); + this.initContainerStatuses.add(builder); } return (A) this; } - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; + public A addAllToPodIPs(Collection items) { + if (this.podIPs == null) { + this.podIPs = new ArrayList(); } - for (V1PodCondition item : items) { - V1PodConditionBuilder builder = new V1PodConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + for (V1PodIP item : items) { + V1PodIPBuilder builder = new V1PodIPBuilder(item); + _visitables.get("podIPs").add(builder); + this.podIPs.add(builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; + public A addAllToResourceClaimStatuses(Collection items) { + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList(); } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1PodConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (V1PodResourceClaimStatus item : items) { + V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); + _visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(builder); } return (A) this; } - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - public V1PodCondition buildCondition(int index) { - return this.conditions.get(index).build(); + public ConditionsNested addNewConditionLike(V1PodCondition item) { + return new ConditionsNested(-1, item); } - public V1PodCondition buildFirstCondition() { - return this.conditions.get(0).build(); + public ContainerStatusesNested addNewContainerStatus() { + return new ContainerStatusesNested(-1, null); } - public V1PodCondition buildLastCondition() { - return this.conditions.get(conditions.size() - 1).build(); + public ContainerStatusesNested addNewContainerStatusLike(V1ContainerStatus item) { + return new ContainerStatusesNested(-1, item); } - public V1PodCondition buildMatchingCondition(Predicate predicate) { - for (V1PodConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public EphemeralContainerStatusesNested addNewEphemeralContainerStatus() { + return new EphemeralContainerStatusesNested(-1, null); } - public boolean hasMatchingCondition(Predicate predicate) { - for (V1PodConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public EphemeralContainerStatusesNested addNewEphemeralContainerStatusLike(V1ContainerStatus item) { + return new EphemeralContainerStatusesNested(-1, item); } - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1PodCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + public HostIPsNested addNewHostIP() { + return new HostIPsNested(-1, null); } - public A withConditions(V1PodCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1PodCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + public HostIPsNested addNewHostIPLike(V1HostIP item) { + return new HostIPsNested(-1, item); } - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); + public InitContainerStatusesNested addNewInitContainerStatus() { + return new InitContainerStatusesNested(-1, null); } - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + public InitContainerStatusesNested addNewInitContainerStatusLike(V1ContainerStatus item) { + return new InitContainerStatusesNested(-1, item); } - public ConditionsNested addNewConditionLike(V1PodCondition item) { - return new ConditionsNested(-1, item); + public PodIPsNested addNewPodIP() { + return new PodIPsNested(-1, null); } - public ConditionsNested setNewConditionLike(int index,V1PodCondition item) { - return new ConditionsNested(index, item); + public PodIPsNested addNewPodIPLike(V1PodIP item) { + return new PodIPsNested(-1, item); } - public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); - } - return this.setNewConditionLike(index, this.buildCondition(index)); + public ResourceClaimStatusesNested addNewResourceClaimStatus() { + return new ResourceClaimStatusesNested(-1, null); } - public ConditionsNested editFirstCondition() { - if (conditions.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); - } - return this.setNewConditionLike(0, this.buildCondition(0)); + public ResourceClaimStatusesNested addNewResourceClaimStatusLike(V1PodResourceClaimStatus item) { + return new ResourceClaimStatusesNested(-1, item); } - public ConditionsNested editLastCondition() { - int index = conditions.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + public A addToConditions(V1PodCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); } - return this.setNewConditionLike(index, this.buildCondition(index)); + for (V1PodCondition item : items) { + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i = 0;i < conditions.size();i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } + public A addToConditions(int index,V1PodCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } - return this.setNewConditionLike(index, this.buildCondition(index)); + return (A) this; } - public A addToContainerStatuses(int index,V1ContainerStatus item) { + public A addToContainerStatuses(V1ContainerStatus... items) { if (this.containerStatuses == null) { this.containerStatuses = new ArrayList(); } - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= containerStatuses.size()) { - _visitables.get("containerStatuses").add(builder); - containerStatuses.add(builder); - } else { + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); _visitables.get("containerStatuses").add(builder); - containerStatuses.add(index, builder); + this.containerStatuses.add(builder); } return (A) this; } - public A setToContainerStatuses(int index,V1ContainerStatus item) { + public A addToContainerStatuses(int index,V1ContainerStatus item) { if (this.containerStatuses == null) { this.containerStatuses = new ArrayList(); } @@ -304,299 +238,264 @@ public A setToContainerStatuses(int index,V1ContainerStatus item) { containerStatuses.add(builder); } else { _visitables.get("containerStatuses").add(builder); - containerStatuses.set(index, builder); + containerStatuses.add(index, builder); } return (A) this; } - public A addToContainerStatuses(V1ContainerStatus... items) { - if (this.containerStatuses == null) { - this.containerStatuses = new ArrayList(); + public A addToEphemeralContainerStatuses(V1ContainerStatus... items) { + if (this.ephemeralContainerStatuses == null) { + this.ephemeralContainerStatuses = new ArrayList(); } for (V1ContainerStatus item : items) { V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("containerStatuses").add(builder); - this.containerStatuses.add(builder); + _visitables.get("ephemeralContainerStatuses").add(builder); + this.ephemeralContainerStatuses.add(builder); } return (A) this; } - public A addAllToContainerStatuses(Collection items) { - if (this.containerStatuses == null) { - this.containerStatuses = new ArrayList(); + public A addToEphemeralContainerStatuses(int index,V1ContainerStatus item) { + if (this.ephemeralContainerStatuses == null) { + this.ephemeralContainerStatuses = new ArrayList(); } - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("containerStatuses").add(builder); - this.containerStatuses.add(builder); + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + if (index < 0 || index >= ephemeralContainerStatuses.size()) { + _visitables.get("ephemeralContainerStatuses").add(builder); + ephemeralContainerStatuses.add(builder); + } else { + _visitables.get("ephemeralContainerStatuses").add(builder); + ephemeralContainerStatuses.add(index, builder); } return (A) this; } - public A removeFromContainerStatuses(V1ContainerStatus... items) { - if (this.containerStatuses == null) { - return (A) this; + public A addToHostIPs(V1HostIP... items) { + if (this.hostIPs == null) { + this.hostIPs = new ArrayList(); } - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("containerStatuses").remove(builder); - this.containerStatuses.remove(builder); + for (V1HostIP item : items) { + V1HostIPBuilder builder = new V1HostIPBuilder(item); + _visitables.get("hostIPs").add(builder); + this.hostIPs.add(builder); } return (A) this; } - public A removeAllFromContainerStatuses(Collection items) { - if (this.containerStatuses == null) { - return (A) this; + public A addToHostIPs(int index,V1HostIP item) { + if (this.hostIPs == null) { + this.hostIPs = new ArrayList(); } - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("containerStatuses").remove(builder); - this.containerStatuses.remove(builder); + V1HostIPBuilder builder = new V1HostIPBuilder(item); + if (index < 0 || index >= hostIPs.size()) { + _visitables.get("hostIPs").add(builder); + hostIPs.add(builder); + } else { + _visitables.get("hostIPs").add(builder); + hostIPs.add(index, builder); } return (A) this; } - public A removeMatchingFromContainerStatuses(Predicate predicate) { - if (containerStatuses == null) { - return (A) this; + public A addToInitContainerStatuses(V1ContainerStatus... items) { + if (this.initContainerStatuses == null) { + this.initContainerStatuses = new ArrayList(); } - Iterator each = containerStatuses.iterator(); - List visitables = _visitables.get("containerStatuses"); - while (each.hasNext()) { - V1ContainerStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("initContainerStatuses").add(builder); + this.initContainerStatuses.add(builder); } return (A) this; } - public List buildContainerStatuses() { - return this.containerStatuses != null ? build(containerStatuses) : null; - } - - public V1ContainerStatus buildContainerStatus(int index) { - return this.containerStatuses.get(index).build(); - } - - public V1ContainerStatus buildFirstContainerStatus() { - return this.containerStatuses.get(0).build(); - } - - public V1ContainerStatus buildLastContainerStatus() { - return this.containerStatuses.get(containerStatuses.size() - 1).build(); + public A addToInitContainerStatuses(int index,V1ContainerStatus item) { + if (this.initContainerStatuses == null) { + this.initContainerStatuses = new ArrayList(); + } + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + if (index < 0 || index >= initContainerStatuses.size()) { + _visitables.get("initContainerStatuses").add(builder); + initContainerStatuses.add(builder); + } else { + _visitables.get("initContainerStatuses").add(builder); + initContainerStatuses.add(index, builder); + } + return (A) this; } - public V1ContainerStatus buildMatchingContainerStatus(Predicate predicate) { - for (V1ContainerStatusBuilder item : containerStatuses) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A addToPodIPs(V1PodIP... items) { + if (this.podIPs == null) { + this.podIPs = new ArrayList(); + } + for (V1PodIP item : items) { + V1PodIPBuilder builder = new V1PodIPBuilder(item); + _visitables.get("podIPs").add(builder); + this.podIPs.add(builder); + } + return (A) this; } - public boolean hasMatchingContainerStatus(Predicate predicate) { - for (V1ContainerStatusBuilder item : containerStatuses) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A addToPodIPs(int index,V1PodIP item) { + if (this.podIPs == null) { + this.podIPs = new ArrayList(); + } + V1PodIPBuilder builder = new V1PodIPBuilder(item); + if (index < 0 || index >= podIPs.size()) { + _visitables.get("podIPs").add(builder); + podIPs.add(builder); + } else { + _visitables.get("podIPs").add(builder); + podIPs.add(index, builder); + } + return (A) this; } - public A withContainerStatuses(List containerStatuses) { - if (this.containerStatuses != null) { - this._visitables.get("containerStatuses").clear(); + public A addToResourceClaimStatuses(V1PodResourceClaimStatus... items) { + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList(); } - if (containerStatuses != null) { - this.containerStatuses = new ArrayList(); - for (V1ContainerStatus item : containerStatuses) { - this.addToContainerStatuses(item); - } - } else { - this.containerStatuses = null; + for (V1PodResourceClaimStatus item : items) { + V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); + _visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(builder); } return (A) this; } - public A withContainerStatuses(V1ContainerStatus... containerStatuses) { - if (this.containerStatuses != null) { - this.containerStatuses.clear(); - _visitables.remove("containerStatuses"); + public A addToResourceClaimStatuses(int index,V1PodResourceClaimStatus item) { + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList(); } - if (containerStatuses != null) { - for (V1ContainerStatus item : containerStatuses) { - this.addToContainerStatuses(item); - } + V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); + if (index < 0 || index >= resourceClaimStatuses.size()) { + _visitables.get("resourceClaimStatuses").add(builder); + resourceClaimStatuses.add(builder); + } else { + _visitables.get("resourceClaimStatuses").add(builder); + resourceClaimStatuses.add(index, builder); } return (A) this; } - public boolean hasContainerStatuses() { - return this.containerStatuses != null && !(this.containerStatuses.isEmpty()); + public V1PodCondition buildCondition(int index) { + return this.conditions.get(index).build(); } - public ContainerStatusesNested addNewContainerStatus() { - return new ContainerStatusesNested(-1, null); + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; } - public ContainerStatusesNested addNewContainerStatusLike(V1ContainerStatus item) { - return new ContainerStatusesNested(-1, item); + public V1ContainerStatus buildContainerStatus(int index) { + return this.containerStatuses.get(index).build(); } - public ContainerStatusesNested setNewContainerStatusLike(int index,V1ContainerStatus item) { - return new ContainerStatusesNested(index, item); + public List buildContainerStatuses() { + return this.containerStatuses != null ? build(containerStatuses) : null; } - public ContainerStatusesNested editContainerStatus(int index) { - if (index <= containerStatuses.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "containerStatuses")); - } - return this.setNewContainerStatusLike(index, this.buildContainerStatus(index)); + public V1ContainerStatus buildEphemeralContainerStatus(int index) { + return this.ephemeralContainerStatuses.get(index).build(); } - public ContainerStatusesNested editFirstContainerStatus() { - if (containerStatuses.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "containerStatuses")); - } - return this.setNewContainerStatusLike(0, this.buildContainerStatus(0)); + public List buildEphemeralContainerStatuses() { + return this.ephemeralContainerStatuses != null ? build(ephemeralContainerStatuses) : null; } - public ContainerStatusesNested editLastContainerStatus() { - int index = containerStatuses.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "containerStatuses")); - } - return this.setNewContainerStatusLike(index, this.buildContainerStatus(index)); + public V1PodExtendedResourceClaimStatus buildExtendedResourceClaimStatus() { + return this.extendedResourceClaimStatus != null ? this.extendedResourceClaimStatus.build() : null; } - public ContainerStatusesNested editMatchingContainerStatus(Predicate predicate) { - int index = -1; - for (int i = 0;i < containerStatuses.size();i++) { - if (predicate.test(containerStatuses.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "containerStatuses")); - } - return this.setNewContainerStatusLike(index, this.buildContainerStatus(index)); + public V1PodCondition buildFirstCondition() { + return this.conditions.get(0).build(); } - public A addToEphemeralContainerStatuses(int index,V1ContainerStatus item) { - if (this.ephemeralContainerStatuses == null) { - this.ephemeralContainerStatuses = new ArrayList(); - } - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= ephemeralContainerStatuses.size()) { - _visitables.get("ephemeralContainerStatuses").add(builder); - ephemeralContainerStatuses.add(builder); - } else { - _visitables.get("ephemeralContainerStatuses").add(builder); - ephemeralContainerStatuses.add(index, builder); - } - return (A) this; + public V1ContainerStatus buildFirstContainerStatus() { + return this.containerStatuses.get(0).build(); } - public A setToEphemeralContainerStatuses(int index,V1ContainerStatus item) { - if (this.ephemeralContainerStatuses == null) { - this.ephemeralContainerStatuses = new ArrayList(); - } - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= ephemeralContainerStatuses.size()) { - _visitables.get("ephemeralContainerStatuses").add(builder); - ephemeralContainerStatuses.add(builder); - } else { - _visitables.get("ephemeralContainerStatuses").add(builder); - ephemeralContainerStatuses.set(index, builder); - } - return (A) this; + public V1ContainerStatus buildFirstEphemeralContainerStatus() { + return this.ephemeralContainerStatuses.get(0).build(); } - public A addToEphemeralContainerStatuses(V1ContainerStatus... items) { - if (this.ephemeralContainerStatuses == null) { - this.ephemeralContainerStatuses = new ArrayList(); - } - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("ephemeralContainerStatuses").add(builder); - this.ephemeralContainerStatuses.add(builder); - } - return (A) this; + public V1HostIP buildFirstHostIP() { + return this.hostIPs.get(0).build(); } - public A addAllToEphemeralContainerStatuses(Collection items) { - if (this.ephemeralContainerStatuses == null) { - this.ephemeralContainerStatuses = new ArrayList(); - } - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("ephemeralContainerStatuses").add(builder); - this.ephemeralContainerStatuses.add(builder); - } - return (A) this; + public V1ContainerStatus buildFirstInitContainerStatus() { + return this.initContainerStatuses.get(0).build(); } - public A removeFromEphemeralContainerStatuses(V1ContainerStatus... items) { - if (this.ephemeralContainerStatuses == null) { - return (A) this; - } - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("ephemeralContainerStatuses").remove(builder); - this.ephemeralContainerStatuses.remove(builder); - } - return (A) this; + public V1PodIP buildFirstPodIP() { + return this.podIPs.get(0).build(); } - public A removeAllFromEphemeralContainerStatuses(Collection items) { - if (this.ephemeralContainerStatuses == null) { - return (A) this; - } - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("ephemeralContainerStatuses").remove(builder); - this.ephemeralContainerStatuses.remove(builder); - } - return (A) this; + public V1PodResourceClaimStatus buildFirstResourceClaimStatus() { + return this.resourceClaimStatuses.get(0).build(); } - public A removeMatchingFromEphemeralContainerStatuses(Predicate predicate) { - if (ephemeralContainerStatuses == null) { - return (A) this; - } - Iterator each = ephemeralContainerStatuses.iterator(); - List visitables = _visitables.get("ephemeralContainerStatuses"); - while (each.hasNext()) { - V1ContainerStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1HostIP buildHostIP(int index) { + return this.hostIPs.get(index).build(); } - public List buildEphemeralContainerStatuses() { - return this.ephemeralContainerStatuses != null ? build(ephemeralContainerStatuses) : null; + public List buildHostIPs() { + return this.hostIPs != null ? build(hostIPs) : null; } - public V1ContainerStatus buildEphemeralContainerStatus(int index) { - return this.ephemeralContainerStatuses.get(index).build(); + public V1ContainerStatus buildInitContainerStatus(int index) { + return this.initContainerStatuses.get(index).build(); } - public V1ContainerStatus buildFirstEphemeralContainerStatus() { - return this.ephemeralContainerStatuses.get(0).build(); + public List buildInitContainerStatuses() { + return this.initContainerStatuses != null ? build(initContainerStatuses) : null; + } + + public V1PodCondition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1ContainerStatus buildLastContainerStatus() { + return this.containerStatuses.get(containerStatuses.size() - 1).build(); } public V1ContainerStatus buildLastEphemeralContainerStatus() { return this.ephemeralContainerStatuses.get(ephemeralContainerStatuses.size() - 1).build(); } + public V1HostIP buildLastHostIP() { + return this.hostIPs.get(hostIPs.size() - 1).build(); + } + + public V1ContainerStatus buildLastInitContainerStatus() { + return this.initContainerStatuses.get(initContainerStatuses.size() - 1).build(); + } + + public V1PodIP buildLastPodIP() { + return this.podIPs.get(podIPs.size() - 1).build(); + } + + public V1PodResourceClaimStatus buildLastResourceClaimStatus() { + return this.resourceClaimStatuses.get(resourceClaimStatuses.size() - 1).build(); + } + + public V1PodCondition buildMatchingCondition(Predicate predicate) { + for (V1PodConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ContainerStatus buildMatchingContainerStatus(Predicate predicate) { + for (V1ContainerStatusBuilder item : containerStatuses) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + public V1ContainerStatus buildMatchingEphemeralContainerStatus(Predicate predicate) { for (V1ContainerStatusBuilder item : ephemeralContainerStatuses) { if (predicate.test(item)) { @@ -606,691 +505,649 @@ public V1ContainerStatus buildMatchingEphemeralContainerStatus(Predicate predicate) { - for (V1ContainerStatusBuilder item : ephemeralContainerStatuses) { + public V1HostIP buildMatchingHostIP(Predicate predicate) { + for (V1HostIPBuilder item : hostIPs) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withEphemeralContainerStatuses(List ephemeralContainerStatuses) { - if (this.ephemeralContainerStatuses != null) { - this._visitables.get("ephemeralContainerStatuses").clear(); - } - if (ephemeralContainerStatuses != null) { - this.ephemeralContainerStatuses = new ArrayList(); - for (V1ContainerStatus item : ephemeralContainerStatuses) { - this.addToEphemeralContainerStatuses(item); + public V1ContainerStatus buildMatchingInitContainerStatus(Predicate predicate) { + for (V1ContainerStatusBuilder item : initContainerStatuses) { + if (predicate.test(item)) { + return item.build(); } - } else { - this.ephemeralContainerStatuses = null; - } - return (A) this; + } + return null; } - public A withEphemeralContainerStatuses(V1ContainerStatus... ephemeralContainerStatuses) { - if (this.ephemeralContainerStatuses != null) { - this.ephemeralContainerStatuses.clear(); - _visitables.remove("ephemeralContainerStatuses"); - } - if (ephemeralContainerStatuses != null) { - for (V1ContainerStatus item : ephemeralContainerStatuses) { - this.addToEphemeralContainerStatuses(item); + public V1PodIP buildMatchingPodIP(Predicate predicate) { + for (V1PodIPBuilder item : podIPs) { + if (predicate.test(item)) { + return item.build(); + } } - } - return (A) this; + return null; } - public boolean hasEphemeralContainerStatuses() { - return this.ephemeralContainerStatuses != null && !(this.ephemeralContainerStatuses.isEmpty()); + public V1PodResourceClaimStatus buildMatchingResourceClaimStatus(Predicate predicate) { + for (V1PodResourceClaimStatusBuilder item : resourceClaimStatuses) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public EphemeralContainerStatusesNested addNewEphemeralContainerStatus() { - return new EphemeralContainerStatusesNested(-1, null); + public V1PodIP buildPodIP(int index) { + return this.podIPs.get(index).build(); } - public EphemeralContainerStatusesNested addNewEphemeralContainerStatusLike(V1ContainerStatus item) { - return new EphemeralContainerStatusesNested(-1, item); + public List buildPodIPs() { + return this.podIPs != null ? build(podIPs) : null; } - public EphemeralContainerStatusesNested setNewEphemeralContainerStatusLike(int index,V1ContainerStatus item) { - return new EphemeralContainerStatusesNested(index, item); + public V1PodResourceClaimStatus buildResourceClaimStatus(int index) { + return this.resourceClaimStatuses.get(index).build(); } - public EphemeralContainerStatusesNested editEphemeralContainerStatus(int index) { - if (index <= ephemeralContainerStatuses.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ephemeralContainerStatuses")); - } - return this.setNewEphemeralContainerStatusLike(index, this.buildEphemeralContainerStatus(index)); + public List buildResourceClaimStatuses() { + return this.resourceClaimStatuses != null ? build(resourceClaimStatuses) : null; } - public EphemeralContainerStatusesNested editFirstEphemeralContainerStatus() { - if (ephemeralContainerStatuses.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ephemeralContainerStatuses")); + protected void copyInstance(V1PodStatus instance) { + instance = instance != null ? instance : new V1PodStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withContainerStatuses(instance.getContainerStatuses()); + this.withEphemeralContainerStatuses(instance.getEphemeralContainerStatuses()); + this.withExtendedResourceClaimStatus(instance.getExtendedResourceClaimStatus()); + this.withHostIP(instance.getHostIP()); + this.withHostIPs(instance.getHostIPs()); + this.withInitContainerStatuses(instance.getInitContainerStatuses()); + this.withMessage(instance.getMessage()); + this.withNominatedNodeName(instance.getNominatedNodeName()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withPhase(instance.getPhase()); + this.withPodIP(instance.getPodIP()); + this.withPodIPs(instance.getPodIPs()); + this.withQosClass(instance.getQosClass()); + this.withReason(instance.getReason()); + this.withResize(instance.getResize()); + this.withResourceClaimStatuses(instance.getResourceClaimStatuses()); + this.withStartTime(instance.getStartTime()); } - return this.setNewEphemeralContainerStatusLike(0, this.buildEphemeralContainerStatus(0)); } - public EphemeralContainerStatusesNested editLastEphemeralContainerStatus() { - int index = ephemeralContainerStatuses.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ephemeralContainerStatuses")); + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } - return this.setNewEphemeralContainerStatusLike(index, this.buildEphemeralContainerStatus(index)); + return this.setNewConditionLike(index, this.buildCondition(index)); } - public EphemeralContainerStatusesNested editMatchingEphemeralContainerStatus(Predicate predicate) { - int index = -1; - for (int i = 0;i < ephemeralContainerStatuses.size();i++) { - if (predicate.test(ephemeralContainerStatuses.get(i))) { - index = i; - break; - } + public ContainerStatusesNested editContainerStatus(int index) { + if (containerStatuses.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "containerStatuses")); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ephemeralContainerStatuses")); + return this.setNewContainerStatusLike(index, this.buildContainerStatus(index)); + } + + public EphemeralContainerStatusesNested editEphemeralContainerStatus(int index) { + if (ephemeralContainerStatuses.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ephemeralContainerStatuses")); } return this.setNewEphemeralContainerStatusLike(index, this.buildEphemeralContainerStatus(index)); } - public V1PodExtendedResourceClaimStatus buildExtendedResourceClaimStatus() { - return this.extendedResourceClaimStatus != null ? this.extendedResourceClaimStatus.build() : null; + public ExtendedResourceClaimStatusNested editExtendedResourceClaimStatus() { + return this.withNewExtendedResourceClaimStatusLike(Optional.ofNullable(this.buildExtendedResourceClaimStatus()).orElse(null)); } - public A withExtendedResourceClaimStatus(V1PodExtendedResourceClaimStatus extendedResourceClaimStatus) { - this._visitables.remove("extendedResourceClaimStatus"); - if (extendedResourceClaimStatus != null) { - this.extendedResourceClaimStatus = new V1PodExtendedResourceClaimStatusBuilder(extendedResourceClaimStatus); - this._visitables.get("extendedResourceClaimStatus").add(this.extendedResourceClaimStatus); - } else { - this.extendedResourceClaimStatus = null; - this._visitables.get("extendedResourceClaimStatus").remove(this.extendedResourceClaimStatus); + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); } - return (A) this; + return this.setNewConditionLike(0, this.buildCondition(0)); } - public boolean hasExtendedResourceClaimStatus() { - return this.extendedResourceClaimStatus != null; + public ContainerStatusesNested editFirstContainerStatus() { + if (containerStatuses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "containerStatuses")); + } + return this.setNewContainerStatusLike(0, this.buildContainerStatus(0)); } - public ExtendedResourceClaimStatusNested withNewExtendedResourceClaimStatus() { - return new ExtendedResourceClaimStatusNested(null); + public EphemeralContainerStatusesNested editFirstEphemeralContainerStatus() { + if (ephemeralContainerStatuses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ephemeralContainerStatuses")); + } + return this.setNewEphemeralContainerStatusLike(0, this.buildEphemeralContainerStatus(0)); } - public ExtendedResourceClaimStatusNested withNewExtendedResourceClaimStatusLike(V1PodExtendedResourceClaimStatus item) { - return new ExtendedResourceClaimStatusNested(item); + public HostIPsNested editFirstHostIP() { + if (hostIPs.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "hostIPs")); + } + return this.setNewHostIPLike(0, this.buildHostIP(0)); } - public ExtendedResourceClaimStatusNested editExtendedResourceClaimStatus() { - return this.withNewExtendedResourceClaimStatusLike(Optional.ofNullable(this.buildExtendedResourceClaimStatus()).orElse(null)); + public InitContainerStatusesNested editFirstInitContainerStatus() { + if (initContainerStatuses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "initContainerStatuses")); + } + return this.setNewInitContainerStatusLike(0, this.buildInitContainerStatus(0)); } - public ExtendedResourceClaimStatusNested editOrNewExtendedResourceClaimStatus() { - return this.withNewExtendedResourceClaimStatusLike(Optional.ofNullable(this.buildExtendedResourceClaimStatus()).orElse(new V1PodExtendedResourceClaimStatusBuilder().build())); + public PodIPsNested editFirstPodIP() { + if (podIPs.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "podIPs")); + } + return this.setNewPodIPLike(0, this.buildPodIP(0)); } - public ExtendedResourceClaimStatusNested editOrNewExtendedResourceClaimStatusLike(V1PodExtendedResourceClaimStatus item) { - return this.withNewExtendedResourceClaimStatusLike(Optional.ofNullable(this.buildExtendedResourceClaimStatus()).orElse(item)); + public ResourceClaimStatusesNested editFirstResourceClaimStatus() { + if (resourceClaimStatuses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceClaimStatuses")); + } + return this.setNewResourceClaimStatusLike(0, this.buildResourceClaimStatus(0)); } - public String getHostIP() { - return this.hostIP; + public HostIPsNested editHostIP(int index) { + if (hostIPs.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "hostIPs")); + } + return this.setNewHostIPLike(index, this.buildHostIP(index)); } - public A withHostIP(String hostIP) { - this.hostIP = hostIP; - return (A) this; + public InitContainerStatusesNested editInitContainerStatus(int index) { + if (initContainerStatuses.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "initContainerStatuses")); + } + return this.setNewInitContainerStatusLike(index, this.buildInitContainerStatus(index)); } - public boolean hasHostIP() { - return this.hostIP != null; + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public A addToHostIPs(int index,V1HostIP item) { - if (this.hostIPs == null) { - this.hostIPs = new ArrayList(); - } - V1HostIPBuilder builder = new V1HostIPBuilder(item); - if (index < 0 || index >= hostIPs.size()) { - _visitables.get("hostIPs").add(builder); - hostIPs.add(builder); - } else { - _visitables.get("hostIPs").add(builder); - hostIPs.add(index, builder); + public ContainerStatusesNested editLastContainerStatus() { + int index = containerStatuses.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "containerStatuses")); } - return (A) this; + return this.setNewContainerStatusLike(index, this.buildContainerStatus(index)); } - public A setToHostIPs(int index,V1HostIP item) { - if (this.hostIPs == null) { - this.hostIPs = new ArrayList(); - } - V1HostIPBuilder builder = new V1HostIPBuilder(item); - if (index < 0 || index >= hostIPs.size()) { - _visitables.get("hostIPs").add(builder); - hostIPs.add(builder); - } else { - _visitables.get("hostIPs").add(builder); - hostIPs.set(index, builder); + public EphemeralContainerStatusesNested editLastEphemeralContainerStatus() { + int index = ephemeralContainerStatuses.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ephemeralContainerStatuses")); } - return (A) this; + return this.setNewEphemeralContainerStatusLike(index, this.buildEphemeralContainerStatus(index)); } - public A addToHostIPs(V1HostIP... items) { - if (this.hostIPs == null) { - this.hostIPs = new ArrayList(); - } - for (V1HostIP item : items) { - V1HostIPBuilder builder = new V1HostIPBuilder(item); - _visitables.get("hostIPs").add(builder); - this.hostIPs.add(builder); + public HostIPsNested editLastHostIP() { + int index = hostIPs.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "hostIPs")); } - return (A) this; + return this.setNewHostIPLike(index, this.buildHostIP(index)); } - public A addAllToHostIPs(Collection items) { - if (this.hostIPs == null) { - this.hostIPs = new ArrayList(); - } - for (V1HostIP item : items) { - V1HostIPBuilder builder = new V1HostIPBuilder(item); - _visitables.get("hostIPs").add(builder); - this.hostIPs.add(builder); + public InitContainerStatusesNested editLastInitContainerStatus() { + int index = initContainerStatuses.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "initContainerStatuses")); } - return (A) this; + return this.setNewInitContainerStatusLike(index, this.buildInitContainerStatus(index)); } - public A removeFromHostIPs(V1HostIP... items) { - if (this.hostIPs == null) { - return (A) this; + public PodIPsNested editLastPodIP() { + int index = podIPs.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "podIPs")); } - for (V1HostIP item : items) { - V1HostIPBuilder builder = new V1HostIPBuilder(item); - _visitables.get("hostIPs").remove(builder); - this.hostIPs.remove(builder); + return this.setNewPodIPLike(index, this.buildPodIP(index)); + } + + public ResourceClaimStatusesNested editLastResourceClaimStatus() { + int index = resourceClaimStatuses.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceClaimStatuses")); } - return (A) this; + return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); } - public A removeAllFromHostIPs(Collection items) { - if (this.hostIPs == null) { - return (A) this; + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } } - for (V1HostIP item : items) { - V1HostIPBuilder builder = new V1HostIPBuilder(item); - _visitables.get("hostIPs").remove(builder); - this.hostIPs.remove(builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); } - return (A) this; + return this.setNewConditionLike(index, this.buildCondition(index)); } - public A removeMatchingFromHostIPs(Predicate predicate) { - if (hostIPs == null) { - return (A) this; + public ContainerStatusesNested editMatchingContainerStatus(Predicate predicate) { + int index = -1; + for (int i = 0;i < containerStatuses.size();i++) { + if (predicate.test(containerStatuses.get(i))) { + index = i; + break; + } } - Iterator each = hostIPs.iterator(); - List visitables = _visitables.get("hostIPs"); - while (each.hasNext()) { - V1HostIPBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "containerStatuses")); } - return (A) this; + return this.setNewContainerStatusLike(index, this.buildContainerStatus(index)); } - public List buildHostIPs() { - return this.hostIPs != null ? build(hostIPs) : null; + public EphemeralContainerStatusesNested editMatchingEphemeralContainerStatus(Predicate predicate) { + int index = -1; + for (int i = 0;i < ephemeralContainerStatuses.size();i++) { + if (predicate.test(ephemeralContainerStatuses.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ephemeralContainerStatuses")); + } + return this.setNewEphemeralContainerStatusLike(index, this.buildEphemeralContainerStatus(index)); } - public V1HostIP buildHostIP(int index) { - return this.hostIPs.get(index).build(); + public HostIPsNested editMatchingHostIP(Predicate predicate) { + int index = -1; + for (int i = 0;i < hostIPs.size();i++) { + if (predicate.test(hostIPs.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "hostIPs")); + } + return this.setNewHostIPLike(index, this.buildHostIP(index)); } - public V1HostIP buildFirstHostIP() { - return this.hostIPs.get(0).build(); - } - - public V1HostIP buildLastHostIP() { - return this.hostIPs.get(hostIPs.size() - 1).build(); - } - - public V1HostIP buildMatchingHostIP(Predicate predicate) { - for (V1HostIPBuilder item : hostIPs) { - if (predicate.test(item)) { - return item.build(); - } + public InitContainerStatusesNested editMatchingInitContainerStatus(Predicate predicate) { + int index = -1; + for (int i = 0;i < initContainerStatuses.size();i++) { + if (predicate.test(initContainerStatuses.get(i))) { + index = i; + break; } - return null; + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "initContainerStatuses")); + } + return this.setNewInitContainerStatusLike(index, this.buildInitContainerStatus(index)); } - public boolean hasMatchingHostIP(Predicate predicate) { - for (V1HostIPBuilder item : hostIPs) { - if (predicate.test(item)) { - return true; - } + public PodIPsNested editMatchingPodIP(Predicate predicate) { + int index = -1; + for (int i = 0;i < podIPs.size();i++) { + if (predicate.test(podIPs.get(i))) { + index = i; + break; } - return false; - } - - public A withHostIPs(List hostIPs) { - if (this.hostIPs != null) { - this._visitables.get("hostIPs").clear(); } - if (hostIPs != null) { - this.hostIPs = new ArrayList(); - for (V1HostIP item : hostIPs) { - this.addToHostIPs(item); - } - } else { - this.hostIPs = null; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "podIPs")); } - return (A) this; + return this.setNewPodIPLike(index, this.buildPodIP(index)); } - public A withHostIPs(V1HostIP... hostIPs) { - if (this.hostIPs != null) { - this.hostIPs.clear(); - _visitables.remove("hostIPs"); - } - if (hostIPs != null) { - for (V1HostIP item : hostIPs) { - this.addToHostIPs(item); + public ResourceClaimStatusesNested editMatchingResourceClaimStatus(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceClaimStatuses.size();i++) { + if (predicate.test(resourceClaimStatuses.get(i))) { + index = i; + break; } } - return (A) this; - } - - public boolean hasHostIPs() { - return this.hostIPs != null && !(this.hostIPs.isEmpty()); - } - - public HostIPsNested addNewHostIP() { - return new HostIPsNested(-1, null); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceClaimStatuses")); + } + return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); } - public HostIPsNested addNewHostIPLike(V1HostIP item) { - return new HostIPsNested(-1, item); + public ExtendedResourceClaimStatusNested editOrNewExtendedResourceClaimStatus() { + return this.withNewExtendedResourceClaimStatusLike(Optional.ofNullable(this.buildExtendedResourceClaimStatus()).orElse(new V1PodExtendedResourceClaimStatusBuilder().build())); } - public HostIPsNested setNewHostIPLike(int index,V1HostIP item) { - return new HostIPsNested(index, item); + public ExtendedResourceClaimStatusNested editOrNewExtendedResourceClaimStatusLike(V1PodExtendedResourceClaimStatus item) { + return this.withNewExtendedResourceClaimStatusLike(Optional.ofNullable(this.buildExtendedResourceClaimStatus()).orElse(item)); } - public HostIPsNested editHostIP(int index) { - if (index <= hostIPs.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "hostIPs")); + public PodIPsNested editPodIP(int index) { + if (podIPs.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "podIPs")); } - return this.setNewHostIPLike(index, this.buildHostIP(index)); + return this.setNewPodIPLike(index, this.buildPodIP(index)); } - public HostIPsNested editFirstHostIP() { - if (hostIPs.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "hostIPs")); + public ResourceClaimStatusesNested editResourceClaimStatus(int index) { + if (resourceClaimStatuses.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceClaimStatuses")); } - return this.setNewHostIPLike(0, this.buildHostIP(0)); + return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); } - public HostIPsNested editLastHostIP() { - int index = hostIPs.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "hostIPs")); + public boolean equals(Object o) { + if (this == o) { + return true; } - return this.setNewHostIPLike(index, this.buildHostIP(index)); - } - - public HostIPsNested editMatchingHostIP(Predicate predicate) { - int index = -1; - for (int i = 0;i < hostIPs.size();i++) { - if (predicate.test(hostIPs.get(i))) { - index = i; - break; - } + if (o == null || this.getClass() != o.getClass()) { + return false; } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "hostIPs")); + if (!(super.equals(o))) { + return false; } - return this.setNewHostIPLike(index, this.buildHostIP(index)); - } - - public A addToInitContainerStatuses(int index,V1ContainerStatus item) { - if (this.initContainerStatuses == null) { - this.initContainerStatuses = new ArrayList(); + V1PodStatusFluent that = (V1PodStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; } - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= initContainerStatuses.size()) { - _visitables.get("initContainerStatuses").add(builder); - initContainerStatuses.add(builder); - } else { - _visitables.get("initContainerStatuses").add(builder); - initContainerStatuses.add(index, builder); + if (!(Objects.equals(containerStatuses, that.containerStatuses))) { + return false; } - return (A) this; - } - - public A setToInitContainerStatuses(int index,V1ContainerStatus item) { - if (this.initContainerStatuses == null) { - this.initContainerStatuses = new ArrayList(); + if (!(Objects.equals(ephemeralContainerStatuses, that.ephemeralContainerStatuses))) { + return false; } - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= initContainerStatuses.size()) { - _visitables.get("initContainerStatuses").add(builder); - initContainerStatuses.add(builder); - } else { - _visitables.get("initContainerStatuses").add(builder); - initContainerStatuses.set(index, builder); + if (!(Objects.equals(extendedResourceClaimStatus, that.extendedResourceClaimStatus))) { + return false; } - return (A) this; - } - - public A addToInitContainerStatuses(V1ContainerStatus... items) { - if (this.initContainerStatuses == null) { - this.initContainerStatuses = new ArrayList(); + if (!(Objects.equals(hostIP, that.hostIP))) { + return false; } - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("initContainerStatuses").add(builder); - this.initContainerStatuses.add(builder); + if (!(Objects.equals(hostIPs, that.hostIPs))) { + return false; } - return (A) this; - } - - public A addAllToInitContainerStatuses(Collection items) { - if (this.initContainerStatuses == null) { - this.initContainerStatuses = new ArrayList(); + if (!(Objects.equals(initContainerStatuses, that.initContainerStatuses))) { + return false; } - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("initContainerStatuses").add(builder); - this.initContainerStatuses.add(builder); + if (!(Objects.equals(message, that.message))) { + return false; } - return (A) this; - } - - public A removeFromInitContainerStatuses(V1ContainerStatus... items) { - if (this.initContainerStatuses == null) { - return (A) this; + if (!(Objects.equals(nominatedNodeName, that.nominatedNodeName))) { + return false; } - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("initContainerStatuses").remove(builder); - this.initContainerStatuses.remove(builder); + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; } - return (A) this; - } - - public A removeAllFromInitContainerStatuses(Collection items) { - if (this.initContainerStatuses == null) { - return (A) this; + if (!(Objects.equals(phase, that.phase))) { + return false; } - for (V1ContainerStatus item : items) { - V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("initContainerStatuses").remove(builder); - this.initContainerStatuses.remove(builder); + if (!(Objects.equals(podIP, that.podIP))) { + return false; } - return (A) this; - } - - public A removeMatchingFromInitContainerStatuses(Predicate predicate) { - if (initContainerStatuses == null) { - return (A) this; + if (!(Objects.equals(podIPs, that.podIPs))) { + return false; } - Iterator each = initContainerStatuses.iterator(); - List visitables = _visitables.get("initContainerStatuses"); - while (each.hasNext()) { - V1ContainerStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (!(Objects.equals(qosClass, that.qosClass))) { + return false; } - return (A) this; + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(resize, that.resize))) { + return false; + } + if (!(Objects.equals(resourceClaimStatuses, that.resourceClaimStatuses))) { + return false; + } + if (!(Objects.equals(startTime, that.startTime))) { + return false; + } + return true; } - public List buildInitContainerStatuses() { - return this.initContainerStatuses != null ? build(initContainerStatuses) : null; + public String getHostIP() { + return this.hostIP; } - public V1ContainerStatus buildInitContainerStatus(int index) { - return this.initContainerStatuses.get(index).build(); + public String getMessage() { + return this.message; } - public V1ContainerStatus buildFirstInitContainerStatus() { - return this.initContainerStatuses.get(0).build(); + public String getNominatedNodeName() { + return this.nominatedNodeName; } - public V1ContainerStatus buildLastInitContainerStatus() { - return this.initContainerStatuses.get(initContainerStatuses.size() - 1).build(); + public Long getObservedGeneration() { + return this.observedGeneration; } - public V1ContainerStatus buildMatchingInitContainerStatus(Predicate predicate) { - for (V1ContainerStatusBuilder item : initContainerStatuses) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getPhase() { + return this.phase; } - public boolean hasMatchingInitContainerStatus(Predicate predicate) { - for (V1ContainerStatusBuilder item : initContainerStatuses) { - if (predicate.test(item)) { - return true; - } - } - return false; + public String getPodIP() { + return this.podIP; } - public A withInitContainerStatuses(List initContainerStatuses) { - if (this.initContainerStatuses != null) { - this._visitables.get("initContainerStatuses").clear(); - } - if (initContainerStatuses != null) { - this.initContainerStatuses = new ArrayList(); - for (V1ContainerStatus item : initContainerStatuses) { - this.addToInitContainerStatuses(item); - } - } else { - this.initContainerStatuses = null; - } - return (A) this; + public String getQosClass() { + return this.qosClass; } - public A withInitContainerStatuses(V1ContainerStatus... initContainerStatuses) { - if (this.initContainerStatuses != null) { - this.initContainerStatuses.clear(); - _visitables.remove("initContainerStatuses"); - } - if (initContainerStatuses != null) { - for (V1ContainerStatus item : initContainerStatuses) { - this.addToInitContainerStatuses(item); - } - } - return (A) this; + public String getReason() { + return this.reason; } - public boolean hasInitContainerStatuses() { - return this.initContainerStatuses != null && !(this.initContainerStatuses.isEmpty()); + public String getResize() { + return this.resize; } - public InitContainerStatusesNested addNewInitContainerStatus() { - return new InitContainerStatusesNested(-1, null); + public OffsetDateTime getStartTime() { + return this.startTime; } - public InitContainerStatusesNested addNewInitContainerStatusLike(V1ContainerStatus item) { - return new InitContainerStatusesNested(-1, item); + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); } - public InitContainerStatusesNested setNewInitContainerStatusLike(int index,V1ContainerStatus item) { - return new InitContainerStatusesNested(index, item); + public boolean hasContainerStatuses() { + return this.containerStatuses != null && !(this.containerStatuses.isEmpty()); } - public InitContainerStatusesNested editInitContainerStatus(int index) { - if (index <= initContainerStatuses.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "initContainerStatuses")); - } - return this.setNewInitContainerStatusLike(index, this.buildInitContainerStatus(index)); + public boolean hasEphemeralContainerStatuses() { + return this.ephemeralContainerStatuses != null && !(this.ephemeralContainerStatuses.isEmpty()); } - public InitContainerStatusesNested editFirstInitContainerStatus() { - if (initContainerStatuses.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "initContainerStatuses")); - } - return this.setNewInitContainerStatusLike(0, this.buildInitContainerStatus(0)); + public boolean hasExtendedResourceClaimStatus() { + return this.extendedResourceClaimStatus != null; } - public InitContainerStatusesNested editLastInitContainerStatus() { - int index = initContainerStatuses.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "initContainerStatuses")); - } - return this.setNewInitContainerStatusLike(index, this.buildInitContainerStatus(index)); + public boolean hasHostIP() { + return this.hostIP != null; } - public InitContainerStatusesNested editMatchingInitContainerStatus(Predicate predicate) { - int index = -1; - for (int i = 0;i < initContainerStatuses.size();i++) { - if (predicate.test(initContainerStatuses.get(i))) { - index = i; - break; + public boolean hasHostIPs() { + return this.hostIPs != null && !(this.hostIPs.isEmpty()); + } + + public boolean hasInitContainerStatuses() { + return this.initContainerStatuses != null && !(this.initContainerStatuses.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1PodConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "initContainerStatuses")); - } - return this.setNewInitContainerStatusLike(index, this.buildInitContainerStatus(index)); + return false; } - public String getMessage() { - return this.message; + public boolean hasMatchingContainerStatus(Predicate predicate) { + for (V1ContainerStatusBuilder item : containerStatuses) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public boolean hasMatchingEphemeralContainerStatus(Predicate predicate) { + for (V1ContainerStatusBuilder item : ephemeralContainerStatuses) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public boolean hasMessage() { - return this.message != null; + public boolean hasMatchingHostIP(Predicate predicate) { + for (V1HostIPBuilder item : hostIPs) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getNominatedNodeName() { - return this.nominatedNodeName; + public boolean hasMatchingInitContainerStatus(Predicate predicate) { + for (V1ContainerStatusBuilder item : initContainerStatuses) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A withNominatedNodeName(String nominatedNodeName) { - this.nominatedNodeName = nominatedNodeName; - return (A) this; + public boolean hasMatchingPodIP(Predicate predicate) { + for (V1PodIPBuilder item : podIPs) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public boolean hasNominatedNodeName() { - return this.nominatedNodeName != null; + public boolean hasMatchingResourceClaimStatus(Predicate predicate) { + for (V1PodResourceClaimStatusBuilder item : resourceClaimStatuses) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public Long getObservedGeneration() { - return this.observedGeneration; + public boolean hasMessage() { + return this.message != null; } - public A withObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - return (A) this; + public boolean hasNominatedNodeName() { + return this.nominatedNodeName != null; } public boolean hasObservedGeneration() { return this.observedGeneration != null; } - public String getPhase() { - return this.phase; + public boolean hasPhase() { + return this.phase != null; } - public A withPhase(String phase) { - this.phase = phase; - return (A) this; + public boolean hasPodIP() { + return this.podIP != null; } - public boolean hasPhase() { - return this.phase != null; + public boolean hasPodIPs() { + return this.podIPs != null && !(this.podIPs.isEmpty()); } - public String getPodIP() { - return this.podIP; + public boolean hasQosClass() { + return this.qosClass != null; } - public A withPodIP(String podIP) { - this.podIP = podIP; - return (A) this; + public boolean hasReason() { + return this.reason != null; } - public boolean hasPodIP() { - return this.podIP != null; + public boolean hasResize() { + return this.resize != null; } - public A addToPodIPs(int index,V1PodIP item) { - if (this.podIPs == null) { - this.podIPs = new ArrayList(); + public boolean hasResourceClaimStatuses() { + return this.resourceClaimStatuses != null && !(this.resourceClaimStatuses.isEmpty()); + } + + public boolean hasStartTime() { + return this.startTime != null; + } + + public int hashCode() { + return Objects.hash(conditions, containerStatuses, ephemeralContainerStatuses, extendedResourceClaimStatus, hostIP, hostIPs, initContainerStatuses, message, nominatedNodeName, observedGeneration, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, startTime); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; } - V1PodIPBuilder builder = new V1PodIPBuilder(item); - if (index < 0 || index >= podIPs.size()) { - _visitables.get("podIPs").add(builder); - podIPs.add(builder); - } else { - _visitables.get("podIPs").add(builder); - podIPs.add(index, builder); + for (V1PodCondition item : items) { + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } return (A) this; } - public A setToPodIPs(int index,V1PodIP item) { - if (this.podIPs == null) { - this.podIPs = new ArrayList(); + public A removeAllFromContainerStatuses(Collection items) { + if (this.containerStatuses == null) { + return (A) this; } - V1PodIPBuilder builder = new V1PodIPBuilder(item); - if (index < 0 || index >= podIPs.size()) { - _visitables.get("podIPs").add(builder); - podIPs.add(builder); - } else { - _visitables.get("podIPs").add(builder); - podIPs.set(index, builder); + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("containerStatuses").remove(builder); + this.containerStatuses.remove(builder); } return (A) this; } - public A addToPodIPs(V1PodIP... items) { - if (this.podIPs == null) { - this.podIPs = new ArrayList(); + public A removeAllFromEphemeralContainerStatuses(Collection items) { + if (this.ephemeralContainerStatuses == null) { + return (A) this; } - for (V1PodIP item : items) { - V1PodIPBuilder builder = new V1PodIPBuilder(item); - _visitables.get("podIPs").add(builder); - this.podIPs.add(builder); + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("ephemeralContainerStatuses").remove(builder); + this.ephemeralContainerStatuses.remove(builder); } return (A) this; } - public A addAllToPodIPs(Collection items) { - if (this.podIPs == null) { - this.podIPs = new ArrayList(); + public A removeAllFromHostIPs(Collection items) { + if (this.hostIPs == null) { + return (A) this; } - for (V1PodIP item : items) { - V1PodIPBuilder builder = new V1PodIPBuilder(item); - _visitables.get("podIPs").add(builder); - this.podIPs.add(builder); + for (V1HostIP item : items) { + V1HostIPBuilder builder = new V1HostIPBuilder(item); + _visitables.get("hostIPs").remove(builder); + this.hostIPs.remove(builder); } return (A) this; } - public A removeFromPodIPs(V1PodIP... items) { - if (this.podIPs == null) { + public A removeAllFromInitContainerStatuses(Collection items) { + if (this.initContainerStatuses == null) { return (A) this; } - for (V1PodIP item : items) { - V1PodIPBuilder builder = new V1PodIPBuilder(item); - _visitables.get("podIPs").remove(builder); - this.podIPs.remove(builder); + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("initContainerStatuses").remove(builder); + this.initContainerStatuses.remove(builder); } return (A) this; } @@ -1307,261 +1164,158 @@ public A removeAllFromPodIPs(Collection items) { return (A) this; } - public A removeMatchingFromPodIPs(Predicate predicate) { - if (podIPs == null) { + public A removeAllFromResourceClaimStatuses(Collection items) { + if (this.resourceClaimStatuses == null) { return (A) this; } - Iterator each = podIPs.iterator(); - List visitables = _visitables.get("podIPs"); - while (each.hasNext()) { - V1PodIPBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (V1PodResourceClaimStatus item : items) { + V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); + _visitables.get("resourceClaimStatuses").remove(builder); + this.resourceClaimStatuses.remove(builder); } return (A) this; } - public List buildPodIPs() { - return this.podIPs != null ? build(podIPs) : null; - } - - public V1PodIP buildPodIP(int index) { - return this.podIPs.get(index).build(); - } - - public V1PodIP buildFirstPodIP() { - return this.podIPs.get(0).build(); - } - - public V1PodIP buildLastPodIP() { - return this.podIPs.get(podIPs.size() - 1).build(); - } - - public V1PodIP buildMatchingPodIP(Predicate predicate) { - for (V1PodIPBuilder item : podIPs) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingPodIP(Predicate predicate) { - for (V1PodIPBuilder item : podIPs) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withPodIPs(List podIPs) { - if (this.podIPs != null) { - this._visitables.get("podIPs").clear(); + public A removeFromConditions(V1PodCondition... items) { + if (this.conditions == null) { + return (A) this; } - if (podIPs != null) { - this.podIPs = new ArrayList(); - for (V1PodIP item : podIPs) { - this.addToPodIPs(item); - } - } else { - this.podIPs = null; + for (V1PodCondition item : items) { + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } return (A) this; } - public A withPodIPs(V1PodIP... podIPs) { - if (this.podIPs != null) { - this.podIPs.clear(); - _visitables.remove("podIPs"); + public A removeFromContainerStatuses(V1ContainerStatus... items) { + if (this.containerStatuses == null) { + return (A) this; } - if (podIPs != null) { - for (V1PodIP item : podIPs) { - this.addToPodIPs(item); - } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("containerStatuses").remove(builder); + this.containerStatuses.remove(builder); } return (A) this; } - public boolean hasPodIPs() { - return this.podIPs != null && !(this.podIPs.isEmpty()); - } - - public PodIPsNested addNewPodIP() { - return new PodIPsNested(-1, null); - } - - public PodIPsNested addNewPodIPLike(V1PodIP item) { - return new PodIPsNested(-1, item); - } - - public PodIPsNested setNewPodIPLike(int index,V1PodIP item) { - return new PodIPsNested(index, item); - } - - public PodIPsNested editPodIP(int index) { - if (index <= podIPs.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "podIPs")); - } - return this.setNewPodIPLike(index, this.buildPodIP(index)); - } - - public PodIPsNested editFirstPodIP() { - if (podIPs.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "podIPs")); + public A removeFromEphemeralContainerStatuses(V1ContainerStatus... items) { + if (this.ephemeralContainerStatuses == null) { + return (A) this; } - return this.setNewPodIPLike(0, this.buildPodIP(0)); - } - - public PodIPsNested editLastPodIP() { - int index = podIPs.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "podIPs")); + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("ephemeralContainerStatuses").remove(builder); + this.ephemeralContainerStatuses.remove(builder); } - return this.setNewPodIPLike(index, this.buildPodIP(index)); + return (A) this; } - public PodIPsNested editMatchingPodIP(Predicate predicate) { - int index = -1; - for (int i = 0;i < podIPs.size();i++) { - if (predicate.test(podIPs.get(i))) { - index = i; - break; - } + public A removeFromHostIPs(V1HostIP... items) { + if (this.hostIPs == null) { + return (A) this; } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "podIPs")); + for (V1HostIP item : items) { + V1HostIPBuilder builder = new V1HostIPBuilder(item); + _visitables.get("hostIPs").remove(builder); + this.hostIPs.remove(builder); } - return this.setNewPodIPLike(index, this.buildPodIP(index)); - } - - public String getQosClass() { - return this.qosClass; - } - - public A withQosClass(String qosClass) { - this.qosClass = qosClass; - return (A) this; - } - - public boolean hasQosClass() { - return this.qosClass != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public String getResize() { - return this.resize; - } - - public A withResize(String resize) { - this.resize = resize; return (A) this; } - public boolean hasResize() { - return this.resize != null; - } - - public A addToResourceClaimStatuses(int index,V1PodResourceClaimStatus item) { - if (this.resourceClaimStatuses == null) { - this.resourceClaimStatuses = new ArrayList(); + public A removeFromInitContainerStatuses(V1ContainerStatus... items) { + if (this.initContainerStatuses == null) { + return (A) this; } - V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); - if (index < 0 || index >= resourceClaimStatuses.size()) { - _visitables.get("resourceClaimStatuses").add(builder); - resourceClaimStatuses.add(builder); - } else { - _visitables.get("resourceClaimStatuses").add(builder); - resourceClaimStatuses.add(index, builder); + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("initContainerStatuses").remove(builder); + this.initContainerStatuses.remove(builder); } return (A) this; } - public A setToResourceClaimStatuses(int index,V1PodResourceClaimStatus item) { - if (this.resourceClaimStatuses == null) { - this.resourceClaimStatuses = new ArrayList(); + public A removeFromPodIPs(V1PodIP... items) { + if (this.podIPs == null) { + return (A) this; } - V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); - if (index < 0 || index >= resourceClaimStatuses.size()) { - _visitables.get("resourceClaimStatuses").add(builder); - resourceClaimStatuses.add(builder); - } else { - _visitables.get("resourceClaimStatuses").add(builder); - resourceClaimStatuses.set(index, builder); + for (V1PodIP item : items) { + V1PodIPBuilder builder = new V1PodIPBuilder(item); + _visitables.get("podIPs").remove(builder); + this.podIPs.remove(builder); } return (A) this; } - public A addToResourceClaimStatuses(V1PodResourceClaimStatus... items) { + public A removeFromResourceClaimStatuses(V1PodResourceClaimStatus... items) { if (this.resourceClaimStatuses == null) { - this.resourceClaimStatuses = new ArrayList(); + return (A) this; } for (V1PodResourceClaimStatus item : items) { V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); - _visitables.get("resourceClaimStatuses").add(builder); - this.resourceClaimStatuses.add(builder); + _visitables.get("resourceClaimStatuses").remove(builder); + this.resourceClaimStatuses.remove(builder); } return (A) this; } - public A addAllToResourceClaimStatuses(Collection items) { - if (this.resourceClaimStatuses == null) { - this.resourceClaimStatuses = new ArrayList(); + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; } - for (V1PodResourceClaimStatus item : items) { - V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); - _visitables.get("resourceClaimStatuses").add(builder); - this.resourceClaimStatuses.add(builder); + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1PodConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public A removeFromResourceClaimStatuses(V1PodResourceClaimStatus... items) { - if (this.resourceClaimStatuses == null) { + public A removeMatchingFromContainerStatuses(Predicate predicate) { + if (containerStatuses == null) { return (A) this; } - for (V1PodResourceClaimStatus item : items) { - V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); - _visitables.get("resourceClaimStatuses").remove(builder); - this.resourceClaimStatuses.remove(builder); + Iterator each = containerStatuses.iterator(); + List visitables = _visitables.get("containerStatuses"); + while (each.hasNext()) { + V1ContainerStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public A removeAllFromResourceClaimStatuses(Collection items) { - if (this.resourceClaimStatuses == null) { + public A removeMatchingFromEphemeralContainerStatuses(Predicate predicate) { + if (ephemeralContainerStatuses == null) { return (A) this; } - for (V1PodResourceClaimStatus item : items) { - V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); - _visitables.get("resourceClaimStatuses").remove(builder); - this.resourceClaimStatuses.remove(builder); + Iterator each = ephemeralContainerStatuses.iterator(); + List visitables = _visitables.get("ephemeralContainerStatuses"); + while (each.hasNext()) { + V1ContainerStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public A removeMatchingFromResourceClaimStatuses(Predicate predicate) { - if (resourceClaimStatuses == null) { + public A removeMatchingFromHostIPs(Predicate predicate) { + if (hostIPs == null) { return (A) this; } - Iterator each = resourceClaimStatuses.iterator(); - List visitables = _visitables.get("resourceClaimStatuses"); + Iterator each = hostIPs.iterator(); + List visitables = _visitables.get("hostIPs"); while (each.hasNext()) { - V1PodResourceClaimStatusBuilder builder = each.next(); + V1HostIPBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -1570,203 +1324,185 @@ public A removeMatchingFromResourceClaimStatuses(Predicate buildResourceClaimStatuses() { - return this.resourceClaimStatuses != null ? build(resourceClaimStatuses) : null; - } - - public V1PodResourceClaimStatus buildResourceClaimStatus(int index) { - return this.resourceClaimStatuses.get(index).build(); - } - - public V1PodResourceClaimStatus buildFirstResourceClaimStatus() { - return this.resourceClaimStatuses.get(0).build(); - } - - public V1PodResourceClaimStatus buildLastResourceClaimStatus() { - return this.resourceClaimStatuses.get(resourceClaimStatuses.size() - 1).build(); - } - - public V1PodResourceClaimStatus buildMatchingResourceClaimStatus(Predicate predicate) { - for (V1PodResourceClaimStatusBuilder item : resourceClaimStatuses) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingResourceClaimStatus(Predicate predicate) { - for (V1PodResourceClaimStatusBuilder item : resourceClaimStatuses) { - if (predicate.test(item)) { - return true; + public A removeMatchingFromInitContainerStatuses(Predicate predicate) { + if (initContainerStatuses == null) { + return (A) this; + } + Iterator each = initContainerStatuses.iterator(); + List visitables = _visitables.get("initContainerStatuses"); + while (each.hasNext()) { + V1ContainerStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } - return false; + } + return (A) this; } - public A withResourceClaimStatuses(List resourceClaimStatuses) { - if (this.resourceClaimStatuses != null) { - this._visitables.get("resourceClaimStatuses").clear(); + public A removeMatchingFromPodIPs(Predicate predicate) { + if (podIPs == null) { + return (A) this; } - if (resourceClaimStatuses != null) { - this.resourceClaimStatuses = new ArrayList(); - for (V1PodResourceClaimStatus item : resourceClaimStatuses) { - this.addToResourceClaimStatuses(item); + Iterator each = podIPs.iterator(); + List visitables = _visitables.get("podIPs"); + while (each.hasNext()) { + V1PodIPBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } else { - this.resourceClaimStatuses = null; } return (A) this; } - public A withResourceClaimStatuses(V1PodResourceClaimStatus... resourceClaimStatuses) { - if (this.resourceClaimStatuses != null) { - this.resourceClaimStatuses.clear(); - _visitables.remove("resourceClaimStatuses"); + public A removeMatchingFromResourceClaimStatuses(Predicate predicate) { + if (resourceClaimStatuses == null) { + return (A) this; } - if (resourceClaimStatuses != null) { - for (V1PodResourceClaimStatus item : resourceClaimStatuses) { - this.addToResourceClaimStatuses(item); - } + Iterator each = resourceClaimStatuses.iterator(); + List visitables = _visitables.get("resourceClaimStatuses"); + while (each.hasNext()) { + V1PodResourceClaimStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasResourceClaimStatuses() { - return this.resourceClaimStatuses != null && !(this.resourceClaimStatuses.isEmpty()); + public ConditionsNested setNewConditionLike(int index,V1PodCondition item) { + return new ConditionsNested(index, item); } - public ResourceClaimStatusesNested addNewResourceClaimStatus() { - return new ResourceClaimStatusesNested(-1, null); + public ContainerStatusesNested setNewContainerStatusLike(int index,V1ContainerStatus item) { + return new ContainerStatusesNested(index, item); } - public ResourceClaimStatusesNested addNewResourceClaimStatusLike(V1PodResourceClaimStatus item) { - return new ResourceClaimStatusesNested(-1, item); + public EphemeralContainerStatusesNested setNewEphemeralContainerStatusLike(int index,V1ContainerStatus item) { + return new EphemeralContainerStatusesNested(index, item); } - public ResourceClaimStatusesNested setNewResourceClaimStatusLike(int index,V1PodResourceClaimStatus item) { - return new ResourceClaimStatusesNested(index, item); + public HostIPsNested setNewHostIPLike(int index,V1HostIP item) { + return new HostIPsNested(index, item); } - public ResourceClaimStatusesNested editResourceClaimStatus(int index) { - if (index <= resourceClaimStatuses.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceClaimStatuses")); - } - return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); + public InitContainerStatusesNested setNewInitContainerStatusLike(int index,V1ContainerStatus item) { + return new InitContainerStatusesNested(index, item); } - public ResourceClaimStatusesNested editFirstResourceClaimStatus() { - if (resourceClaimStatuses.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceClaimStatuses")); - } - return this.setNewResourceClaimStatusLike(0, this.buildResourceClaimStatus(0)); + public PodIPsNested setNewPodIPLike(int index,V1PodIP item) { + return new PodIPsNested(index, item); } - public ResourceClaimStatusesNested editLastResourceClaimStatus() { - int index = resourceClaimStatuses.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceClaimStatuses")); - } - return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); + public ResourceClaimStatusesNested setNewResourceClaimStatusLike(int index,V1PodResourceClaimStatus item) { + return new ResourceClaimStatusesNested(index, item); } - public ResourceClaimStatusesNested editMatchingResourceClaimStatus(Predicate predicate) { - int index = -1; - for (int i = 0;i < resourceClaimStatuses.size();i++) { - if (predicate.test(resourceClaimStatuses.get(i))) { - index = i; - break; - } + public A setToConditions(int index,V1PodCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceClaimStatuses")); + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); } - return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); + return (A) this; } - public OffsetDateTime getStartTime() { - return this.startTime; + public A setToContainerStatuses(int index,V1ContainerStatus item) { + if (this.containerStatuses == null) { + this.containerStatuses = new ArrayList(); + } + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + if (index < 0 || index >= containerStatuses.size()) { + _visitables.get("containerStatuses").add(builder); + containerStatuses.add(builder); + } else { + _visitables.get("containerStatuses").add(builder); + containerStatuses.set(index, builder); + } + return (A) this; } - public A withStartTime(OffsetDateTime startTime) { - this.startTime = startTime; + public A setToEphemeralContainerStatuses(int index,V1ContainerStatus item) { + if (this.ephemeralContainerStatuses == null) { + this.ephemeralContainerStatuses = new ArrayList(); + } + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + if (index < 0 || index >= ephemeralContainerStatuses.size()) { + _visitables.get("ephemeralContainerStatuses").add(builder); + ephemeralContainerStatuses.add(builder); + } else { + _visitables.get("ephemeralContainerStatuses").add(builder); + ephemeralContainerStatuses.set(index, builder); + } return (A) this; } - public boolean hasStartTime() { - return this.startTime != null; + public A setToHostIPs(int index,V1HostIP item) { + if (this.hostIPs == null) { + this.hostIPs = new ArrayList(); + } + V1HostIPBuilder builder = new V1HostIPBuilder(item); + if (index < 0 || index >= hostIPs.size()) { + _visitables.get("hostIPs").add(builder); + hostIPs.add(builder); + } else { + _visitables.get("hostIPs").add(builder); + hostIPs.set(index, builder); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; + public A setToInitContainerStatuses(int index,V1ContainerStatus item) { + if (this.initContainerStatuses == null) { + this.initContainerStatuses = new ArrayList(); } - if (o == null || this.getClass() != o.getClass()) { - return false; + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + if (index < 0 || index >= initContainerStatuses.size()) { + _visitables.get("initContainerStatuses").add(builder); + initContainerStatuses.add(builder); + } else { + _visitables.get("initContainerStatuses").add(builder); + initContainerStatuses.set(index, builder); } - if (!(super.equals(o))) { - return false; - } - V1PodStatusFluent that = (V1PodStatusFluent) o; - if (!(Objects.equals(conditions, that.conditions))) { - return false; - } - if (!(Objects.equals(containerStatuses, that.containerStatuses))) { - return false; - } - if (!(Objects.equals(ephemeralContainerStatuses, that.ephemeralContainerStatuses))) { - return false; - } - if (!(Objects.equals(extendedResourceClaimStatus, that.extendedResourceClaimStatus))) { - return false; - } - if (!(Objects.equals(hostIP, that.hostIP))) { - return false; - } - if (!(Objects.equals(hostIPs, that.hostIPs))) { - return false; - } - if (!(Objects.equals(initContainerStatuses, that.initContainerStatuses))) { - return false; - } - if (!(Objects.equals(message, that.message))) { - return false; - } - if (!(Objects.equals(nominatedNodeName, that.nominatedNodeName))) { - return false; - } - if (!(Objects.equals(observedGeneration, that.observedGeneration))) { - return false; - } - if (!(Objects.equals(phase, that.phase))) { - return false; - } - if (!(Objects.equals(podIP, that.podIP))) { - return false; - } - if (!(Objects.equals(podIPs, that.podIPs))) { - return false; - } - if (!(Objects.equals(qosClass, that.qosClass))) { - return false; - } - if (!(Objects.equals(reason, that.reason))) { - return false; - } - if (!(Objects.equals(resize, that.resize))) { - return false; - } - if (!(Objects.equals(resourceClaimStatuses, that.resourceClaimStatuses))) { - return false; + return (A) this; + } + + public A setToPodIPs(int index,V1PodIP item) { + if (this.podIPs == null) { + this.podIPs = new ArrayList(); } - if (!(Objects.equals(startTime, that.startTime))) { - return false; + V1PodIPBuilder builder = new V1PodIPBuilder(item); + if (index < 0 || index >= podIPs.size()) { + _visitables.get("podIPs").add(builder); + podIPs.add(builder); + } else { + _visitables.get("podIPs").add(builder); + podIPs.set(index, builder); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(conditions, containerStatuses, ephemeralContainerStatuses, extendedResourceClaimStatus, hostIP, hostIPs, initContainerStatuses, message, nominatedNodeName, observedGeneration, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, startTime); + public A setToResourceClaimStatuses(int index,V1PodResourceClaimStatus item) { + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList(); + } + V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); + if (index < 0 || index >= resourceClaimStatuses.size()) { + _visitables.get("resourceClaimStatuses").add(builder); + resourceClaimStatuses.add(builder); + } else { + _visitables.get("resourceClaimStatuses").add(builder); + resourceClaimStatuses.set(index, builder); + } + return (A) this; } public String toString() { @@ -1797,81 +1533,349 @@ public String toString() { sb.append(hostIP); sb.append(","); } - if (!(hostIPs == null) && !(hostIPs.isEmpty())) { - sb.append("hostIPs:"); - sb.append(hostIPs); - sb.append(","); + if (!(hostIPs == null) && !(hostIPs.isEmpty())) { + sb.append("hostIPs:"); + sb.append(hostIPs); + sb.append(","); + } + if (!(initContainerStatuses == null) && !(initContainerStatuses.isEmpty())) { + sb.append("initContainerStatuses:"); + sb.append(initContainerStatuses); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(nominatedNodeName == null)) { + sb.append("nominatedNodeName:"); + sb.append(nominatedNodeName); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + sb.append(","); + } + if (!(phase == null)) { + sb.append("phase:"); + sb.append(phase); + sb.append(","); + } + if (!(podIP == null)) { + sb.append("podIP:"); + sb.append(podIP); + sb.append(","); + } + if (!(podIPs == null) && !(podIPs.isEmpty())) { + sb.append("podIPs:"); + sb.append(podIPs); + sb.append(","); + } + if (!(qosClass == null)) { + sb.append("qosClass:"); + sb.append(qosClass); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(resize == null)) { + sb.append("resize:"); + sb.append(resize); + sb.append(","); + } + if (!(resourceClaimStatuses == null) && !(resourceClaimStatuses.isEmpty())) { + sb.append("resourceClaimStatuses:"); + sb.append(resourceClaimStatuses); + sb.append(","); + } + if (!(startTime == null)) { + sb.append("startTime:"); + sb.append(startTime); + } + sb.append("}"); + return sb.toString(); + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1PodCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1PodCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1PodCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withContainerStatuses(List containerStatuses) { + if (this.containerStatuses != null) { + this._visitables.get("containerStatuses").clear(); + } + if (containerStatuses != null) { + this.containerStatuses = new ArrayList(); + for (V1ContainerStatus item : containerStatuses) { + this.addToContainerStatuses(item); + } + } else { + this.containerStatuses = null; + } + return (A) this; + } + + public A withContainerStatuses(V1ContainerStatus... containerStatuses) { + if (this.containerStatuses != null) { + this.containerStatuses.clear(); + _visitables.remove("containerStatuses"); + } + if (containerStatuses != null) { + for (V1ContainerStatus item : containerStatuses) { + this.addToContainerStatuses(item); + } + } + return (A) this; + } + + public A withEphemeralContainerStatuses(List ephemeralContainerStatuses) { + if (this.ephemeralContainerStatuses != null) { + this._visitables.get("ephemeralContainerStatuses").clear(); + } + if (ephemeralContainerStatuses != null) { + this.ephemeralContainerStatuses = new ArrayList(); + for (V1ContainerStatus item : ephemeralContainerStatuses) { + this.addToEphemeralContainerStatuses(item); + } + } else { + this.ephemeralContainerStatuses = null; + } + return (A) this; + } + + public A withEphemeralContainerStatuses(V1ContainerStatus... ephemeralContainerStatuses) { + if (this.ephemeralContainerStatuses != null) { + this.ephemeralContainerStatuses.clear(); + _visitables.remove("ephemeralContainerStatuses"); + } + if (ephemeralContainerStatuses != null) { + for (V1ContainerStatus item : ephemeralContainerStatuses) { + this.addToEphemeralContainerStatuses(item); + } + } + return (A) this; + } + + public A withExtendedResourceClaimStatus(V1PodExtendedResourceClaimStatus extendedResourceClaimStatus) { + this._visitables.remove("extendedResourceClaimStatus"); + if (extendedResourceClaimStatus != null) { + this.extendedResourceClaimStatus = new V1PodExtendedResourceClaimStatusBuilder(extendedResourceClaimStatus); + this._visitables.get("extendedResourceClaimStatus").add(this.extendedResourceClaimStatus); + } else { + this.extendedResourceClaimStatus = null; + this._visitables.get("extendedResourceClaimStatus").remove(this.extendedResourceClaimStatus); + } + return (A) this; + } + + public A withHostIP(String hostIP) { + this.hostIP = hostIP; + return (A) this; + } + + public A withHostIPs(List hostIPs) { + if (this.hostIPs != null) { + this._visitables.get("hostIPs").clear(); + } + if (hostIPs != null) { + this.hostIPs = new ArrayList(); + for (V1HostIP item : hostIPs) { + this.addToHostIPs(item); + } + } else { + this.hostIPs = null; + } + return (A) this; + } + + public A withHostIPs(V1HostIP... hostIPs) { + if (this.hostIPs != null) { + this.hostIPs.clear(); + _visitables.remove("hostIPs"); + } + if (hostIPs != null) { + for (V1HostIP item : hostIPs) { + this.addToHostIPs(item); + } } - if (!(initContainerStatuses == null) && !(initContainerStatuses.isEmpty())) { - sb.append("initContainerStatuses:"); - sb.append(initContainerStatuses); - sb.append(","); + return (A) this; + } + + public A withInitContainerStatuses(List initContainerStatuses) { + if (this.initContainerStatuses != null) { + this._visitables.get("initContainerStatuses").clear(); } - if (!(message == null)) { - sb.append("message:"); - sb.append(message); - sb.append(","); + if (initContainerStatuses != null) { + this.initContainerStatuses = new ArrayList(); + for (V1ContainerStatus item : initContainerStatuses) { + this.addToInitContainerStatuses(item); + } + } else { + this.initContainerStatuses = null; } - if (!(nominatedNodeName == null)) { - sb.append("nominatedNodeName:"); - sb.append(nominatedNodeName); - sb.append(","); + return (A) this; + } + + public A withInitContainerStatuses(V1ContainerStatus... initContainerStatuses) { + if (this.initContainerStatuses != null) { + this.initContainerStatuses.clear(); + _visitables.remove("initContainerStatuses"); } - if (!(observedGeneration == null)) { - sb.append("observedGeneration:"); - sb.append(observedGeneration); - sb.append(","); + if (initContainerStatuses != null) { + for (V1ContainerStatus item : initContainerStatuses) { + this.addToInitContainerStatuses(item); + } } - if (!(phase == null)) { - sb.append("phase:"); - sb.append(phase); - sb.append(","); + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public ExtendedResourceClaimStatusNested withNewExtendedResourceClaimStatus() { + return new ExtendedResourceClaimStatusNested(null); + } + + public ExtendedResourceClaimStatusNested withNewExtendedResourceClaimStatusLike(V1PodExtendedResourceClaimStatus item) { + return new ExtendedResourceClaimStatusNested(item); + } + + public A withNominatedNodeName(String nominatedNodeName) { + this.nominatedNodeName = nominatedNodeName; + return (A) this; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public A withPhase(String phase) { + this.phase = phase; + return (A) this; + } + + public A withPodIP(String podIP) { + this.podIP = podIP; + return (A) this; + } + + public A withPodIPs(List podIPs) { + if (this.podIPs != null) { + this._visitables.get("podIPs").clear(); } - if (!(podIP == null)) { - sb.append("podIP:"); - sb.append(podIP); - sb.append(","); + if (podIPs != null) { + this.podIPs = new ArrayList(); + for (V1PodIP item : podIPs) { + this.addToPodIPs(item); + } + } else { + this.podIPs = null; } - if (!(podIPs == null) && !(podIPs.isEmpty())) { - sb.append("podIPs:"); - sb.append(podIPs); - sb.append(","); + return (A) this; + } + + public A withPodIPs(V1PodIP... podIPs) { + if (this.podIPs != null) { + this.podIPs.clear(); + _visitables.remove("podIPs"); } - if (!(qosClass == null)) { - sb.append("qosClass:"); - sb.append(qosClass); - sb.append(","); + if (podIPs != null) { + for (V1PodIP item : podIPs) { + this.addToPodIPs(item); + } } - if (!(reason == null)) { - sb.append("reason:"); - sb.append(reason); - sb.append(","); + return (A) this; + } + + public A withQosClass(String qosClass) { + this.qosClass = qosClass; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withResize(String resize) { + this.resize = resize; + return (A) this; + } + + public A withResourceClaimStatuses(List resourceClaimStatuses) { + if (this.resourceClaimStatuses != null) { + this._visitables.get("resourceClaimStatuses").clear(); } - if (!(resize == null)) { - sb.append("resize:"); - sb.append(resize); - sb.append(","); + if (resourceClaimStatuses != null) { + this.resourceClaimStatuses = new ArrayList(); + for (V1PodResourceClaimStatus item : resourceClaimStatuses) { + this.addToResourceClaimStatuses(item); + } + } else { + this.resourceClaimStatuses = null; } - if (!(resourceClaimStatuses == null) && !(resourceClaimStatuses.isEmpty())) { - sb.append("resourceClaimStatuses:"); - sb.append(resourceClaimStatuses); - sb.append(","); + return (A) this; + } + + public A withResourceClaimStatuses(V1PodResourceClaimStatus... resourceClaimStatuses) { + if (this.resourceClaimStatuses != null) { + this.resourceClaimStatuses.clear(); + _visitables.remove("resourceClaimStatuses"); } - if (!(startTime == null)) { - sb.append("startTime:"); - sb.append(startTime); + if (resourceClaimStatuses != null) { + for (V1PodResourceClaimStatus item : resourceClaimStatuses) { + this.addToResourceClaimStatuses(item); + } } - sb.append("}"); - return sb.toString(); + return (A) this; + } + + public A withStartTime(OffsetDateTime startTime) { + this.startTime = startTime; + return (A) this; } public class ConditionsNested extends V1PodConditionFluent> implements Nested{ + + V1PodConditionBuilder builder; + int index; + ConditionsNested(int index,V1PodCondition item) { this.index = index; this.builder = new V1PodConditionBuilder(this, item); } - V1PodConditionBuilder builder; - int index; - + public N and() { return (N) V1PodStatusFluent.this.setToConditions(index, builder.build()); } @@ -1880,16 +1884,17 @@ public N endCondition() { return and(); } - } public class ContainerStatusesNested extends V1ContainerStatusFluent> implements Nested{ + + V1ContainerStatusBuilder builder; + int index; + ContainerStatusesNested(int index,V1ContainerStatus item) { this.index = index; this.builder = new V1ContainerStatusBuilder(this, item); } - V1ContainerStatusBuilder builder; - int index; - + public N and() { return (N) V1PodStatusFluent.this.setToContainerStatuses(index, builder.build()); } @@ -1898,16 +1903,17 @@ public N endContainerStatus() { return and(); } - } public class EphemeralContainerStatusesNested extends V1ContainerStatusFluent> implements Nested{ + + V1ContainerStatusBuilder builder; + int index; + EphemeralContainerStatusesNested(int index,V1ContainerStatus item) { this.index = index; this.builder = new V1ContainerStatusBuilder(this, item); } - V1ContainerStatusBuilder builder; - int index; - + public N and() { return (N) V1PodStatusFluent.this.setToEphemeralContainerStatuses(index, builder.build()); } @@ -1916,14 +1922,15 @@ public N endEphemeralContainerStatus() { return and(); } - } public class ExtendedResourceClaimStatusNested extends V1PodExtendedResourceClaimStatusFluent> implements Nested{ + + V1PodExtendedResourceClaimStatusBuilder builder; + ExtendedResourceClaimStatusNested(V1PodExtendedResourceClaimStatus item) { this.builder = new V1PodExtendedResourceClaimStatusBuilder(this, item); } - V1PodExtendedResourceClaimStatusBuilder builder; - + public N and() { return (N) V1PodStatusFluent.this.withExtendedResourceClaimStatus(builder.build()); } @@ -1932,16 +1939,17 @@ public N endExtendedResourceClaimStatus() { return and(); } - } public class HostIPsNested extends V1HostIPFluent> implements Nested{ + + V1HostIPBuilder builder; + int index; + HostIPsNested(int index,V1HostIP item) { this.index = index; this.builder = new V1HostIPBuilder(this, item); } - V1HostIPBuilder builder; - int index; - + public N and() { return (N) V1PodStatusFluent.this.setToHostIPs(index, builder.build()); } @@ -1950,16 +1958,17 @@ public N endHostIP() { return and(); } - } public class InitContainerStatusesNested extends V1ContainerStatusFluent> implements Nested{ + + V1ContainerStatusBuilder builder; + int index; + InitContainerStatusesNested(int index,V1ContainerStatus item) { this.index = index; this.builder = new V1ContainerStatusBuilder(this, item); } - V1ContainerStatusBuilder builder; - int index; - + public N and() { return (N) V1PodStatusFluent.this.setToInitContainerStatuses(index, builder.build()); } @@ -1968,16 +1977,17 @@ public N endInitContainerStatus() { return and(); } - } public class PodIPsNested extends V1PodIPFluent> implements Nested{ + + V1PodIPBuilder builder; + int index; + PodIPsNested(int index,V1PodIP item) { this.index = index; this.builder = new V1PodIPBuilder(this, item); } - V1PodIPBuilder builder; - int index; - + public N and() { return (N) V1PodStatusFluent.this.setToPodIPs(index, builder.build()); } @@ -1986,16 +1996,17 @@ public N endPodIP() { return and(); } - } public class ResourceClaimStatusesNested extends V1PodResourceClaimStatusFluent> implements Nested{ + + V1PodResourceClaimStatusBuilder builder; + int index; + ResourceClaimStatusesNested(int index,V1PodResourceClaimStatus item) { this.index = index; this.builder = new V1PodResourceClaimStatusBuilder(this, item); } - V1PodResourceClaimStatusBuilder builder; - int index; - + public N and() { return (N) V1PodStatusFluent.this.setToResourceClaimStatuses(index, builder.build()); } @@ -2004,7 +2015,5 @@ public N endResourceClaimStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java index 51de76bab7..e2e5eab158 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodTemplateBuilder extends V1PodTemplateFluent implements VisitableBuilder{ + + V1PodTemplateFluent fluent; + public V1PodTemplateBuilder() { this(new V1PodTemplate()); } @@ -11,17 +14,16 @@ public V1PodTemplateBuilder(V1PodTemplateFluent fluent) { this(fluent, new V1PodTemplate()); } - public V1PodTemplateBuilder(V1PodTemplateFluent fluent,V1PodTemplate instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodTemplateBuilder(V1PodTemplate instance) { this.fluent = this; this.copyInstance(instance); } - V1PodTemplateFluent fluent; + public V1PodTemplateBuilder(V1PodTemplateFluent fluent,V1PodTemplate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodTemplate build() { V1PodTemplate buildable = new V1PodTemplate(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1PodTemplate build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java index 4c939a26c8..4796836d80 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodTemplateFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1PodTemplateSpecBuilder template; + public V1PodTemplateFluent() { } public V1PodTemplateFluent(V1PodTemplate instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1PodTemplateSpecBuilder template; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1PodTemplateSpec buildTemplate() { + return this.template != null ? this.template.build() : null; + } protected void copyInstance(V1PodTemplate instance) { instance = instance != null ? instance : new V1PodTemplate(); @@ -35,60 +45,6 @@ protected void copyInstance(V1PodTemplate instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; - } - - public A withTemplate(V1PodTemplateSpec template) { - this._visitables.remove("template"); - if (template != null) { - this.template = new V1PodTemplateSpecBuilder(template); - this._visitables.get("template").add(this.template); - } else { - this.template = null; - this._visitables.get("template").remove(this.template); - } - return (A) this; - } - - public boolean hasTemplate() { - return this.template != null; - } - - public TemplateNested withNewTemplate() { - return new TemplateNested(null); - } - - public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); - } - - public TemplateNested editTemplate() { - return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); - } - public TemplateNested editOrNewTemplate() { return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); } @@ -141,6 +65,10 @@ public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); } + public TemplateNested editTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasTemplate() { + return this.template != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, template); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public TemplateNested withNewTemplate() { + return new TemplateNested(null); + } + + public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { + return new TemplateNested(item); + } + + public A withTemplate(V1PodTemplateSpec template) { + this._visitables.remove("template"); + if (template != null) { + this.template = new V1PodTemplateSpecBuilder(template); + this._visitables.get("template").add(this.template); + } else { + this.template = null; + this._visitables.get("template").remove(this.template); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1PodTemplateFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class TemplateNested extends V1PodTemplateSpecFluent> implements Nested{ + + V1PodTemplateSpecBuilder builder; + TemplateNested(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - V1PodTemplateSpecBuilder builder; - + public N and() { return (N) V1PodTemplateFluent.this.withTemplate(builder.build()); } @@ -226,7 +231,5 @@ public N endTemplate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java index c0168f0b3c..def8a74173 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodTemplateListBuilder extends V1PodTemplateListFluent implements VisitableBuilder{ + + V1PodTemplateListFluent fluent; + public V1PodTemplateListBuilder() { this(new V1PodTemplateList()); } @@ -11,17 +14,16 @@ public V1PodTemplateListBuilder(V1PodTemplateListFluent fluent) { this(fluent, new V1PodTemplateList()); } - public V1PodTemplateListBuilder(V1PodTemplateListFluent fluent,V1PodTemplateList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodTemplateListBuilder(V1PodTemplateList instance) { this.fluent = this; this.copyInstance(instance); } - V1PodTemplateListFluent fluent; + public V1PodTemplateListBuilder(V1PodTemplateListFluent fluent,V1PodTemplateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodTemplateList build() { V1PodTemplateList buildable = new V1PodTemplateList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1PodTemplateList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java index f01f7620c5..a3d4469e7b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodTemplateListFluent> extends BaseFluent{ - public V1PodTemplateListFluent() { - } - - public V1PodTemplateListFluent(V1PodTemplateList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1PodTemplateList instance) { - instance = instance != null ? instance : new V1PodTemplateList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1PodTemplateListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1PodTemplateListFluent(V1PodTemplateList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1PodTemplate item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1PodTemplate item : items) { + V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1PodTemplate item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1PodTemplate item) { + return new ItemsNested(-1, item); } public A addToItems(V1PodTemplate... items) { @@ -96,68 +65,31 @@ public A addToItems(V1PodTemplate... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1PodTemplate item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1PodTemplate item : items) { - V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); + V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1PodTemplate... items) { - if (this.items == null) { - return (A) this; - } - for (V1PodTemplate item : items) { - V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1PodTemplate item : items) { - V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1PodTemplateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1PodTemplate buildFirstItem() { + return this.items.get(0).build(); } public V1PodTemplate buildItem(int index) { return this.items.get(index).build(); } - public V1PodTemplate buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1PodTemplate buildLastItem() { @@ -173,73 +105,34 @@ public V1PodTemplate buildMatchingItem(Predicate predicate return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1PodTemplateBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1PodTemplate item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1PodTemplateList instance) { + instance = instance != null ? instance : new V1PodTemplateList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1PodTemplate... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1PodTemplate item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1PodTemplate item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1PodTemplate item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1PodTemplateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1PodTemplate item : items) { + V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1PodTemplate... items) { + if (this.items == null) { + return (A) this; + } + for (V1PodTemplate item : items) { + V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1PodTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1PodTemplate item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1PodTemplate item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1PodTemplate item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1PodTemplate... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1PodTemplate item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1PodTemplateFluent> implements Nested{ + + V1PodTemplateBuilder builder; + int index; + ItemsNested(int index,V1PodTemplate item) { this.index = index; this.builder = new V1PodTemplateBuilder(this, item); } - V1PodTemplateBuilder builder; - int index; - + public N and() { return (N) V1PodTemplateListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1PodTemplateListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java index ff44200644..f48a746e60 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PodTemplateSpecBuilder extends V1PodTemplateSpecFluent implements VisitableBuilder{ + + V1PodTemplateSpecFluent fluent; + public V1PodTemplateSpecBuilder() { this(new V1PodTemplateSpec()); } @@ -11,17 +14,16 @@ public V1PodTemplateSpecBuilder(V1PodTemplateSpecFluent fluent) { this(fluent, new V1PodTemplateSpec()); } - public V1PodTemplateSpecBuilder(V1PodTemplateSpecFluent fluent,V1PodTemplateSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodTemplateSpecBuilder(V1PodTemplateSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1PodTemplateSpecFluent fluent; + public V1PodTemplateSpecBuilder(V1PodTemplateSpecFluent fluent,V1PodTemplateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodTemplateSpec build() { V1PodTemplateSpec buildable = new V1PodTemplateSpec(); buildable.setMetadata(fluent.buildMetadata()); @@ -29,5 +31,4 @@ public V1PodTemplateSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java index 47170560a3..d52b6631a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java @@ -1,27 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1PodTemplateSpecFluent> extends BaseFluent{ + + private V1ObjectMetaBuilder metadata; + private V1PodSpecBuilder spec; + public V1PodTemplateSpecFluent() { } public V1PodTemplateSpecFluent(V1PodTemplateSpec instance) { this.copyInstance(instance); } - private V1ObjectMetaBuilder metadata; - private V1PodSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1PodSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1PodTemplateSpec instance) { instance = instance != null ? instance : new V1PodTemplateSpec(); @@ -31,34 +41,6 @@ protected void copyInstance(V1PodTemplateSpec instance) { } } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -71,38 +53,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1PodSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1PodSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1PodSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1PodSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PodSpecBuilder().build())); } @@ -111,6 +61,10 @@ public SpecNested editOrNewSpecLike(V1PodSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -131,6 +85,14 @@ public boolean equals(Object o) { return true; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(metadata, spec); } @@ -150,12 +112,54 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1PodSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1PodSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1PodSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1PodTemplateSpecFluent.this.withMetadata(builder.build()); } @@ -164,14 +168,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1PodSpecFluent> implements Nested{ + + V1PodSpecBuilder builder; + SpecNested(V1PodSpec item) { this.builder = new V1PodSpecBuilder(this, item); } - V1PodSpecBuilder builder; - + public N and() { return (N) V1PodTemplateSpecFluent.this.withSpec(builder.build()); } @@ -180,7 +185,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java index 639f6e261b..821e4dda02 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PolicyRuleBuilder extends V1PolicyRuleFluent implements VisitableBuilder{ + + V1PolicyRuleFluent fluent; + public V1PolicyRuleBuilder() { this(new V1PolicyRule()); } @@ -11,17 +14,16 @@ public V1PolicyRuleBuilder(V1PolicyRuleFluent fluent) { this(fluent, new V1PolicyRule()); } - public V1PolicyRuleBuilder(V1PolicyRuleFluent fluent,V1PolicyRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PolicyRuleBuilder(V1PolicyRule instance) { this.fluent = this; this.copyInstance(instance); } - V1PolicyRuleFluent fluent; + public V1PolicyRuleBuilder(V1PolicyRuleFluent fluent,V1PolicyRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PolicyRule build() { V1PolicyRule buildable = new V1PolicyRule(); buildable.setApiGroups(fluent.getApiGroups()); @@ -32,5 +34,4 @@ public V1PolicyRule build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java index 9751179995..f4f08ae2b4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,148 +16,98 @@ */ @SuppressWarnings("unchecked") public class V1PolicyRuleFluent> extends BaseFluent{ - public V1PolicyRuleFluent() { - } - - public V1PolicyRuleFluent(V1PolicyRule instance) { - this.copyInstance(instance); - } + private List apiGroups; private List nonResourceURLs; private List resourceNames; private List resources; private List verbs; - - protected void copyInstance(V1PolicyRule instance) { - instance = instance != null ? instance : new V1PolicyRule(); - if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withNonResourceURLs(instance.getNonResourceURLs()); - this.withResourceNames(instance.getResourceNames()); - this.withResources(instance.getResources()); - this.withVerbs(instance.getVerbs()); - } + + public V1PolicyRuleFluent() { } - public A addToApiGroups(int index,String item) { + public V1PolicyRuleFluent(V1PolicyRule instance) { + this.copyInstance(instance); + } + + public A addAllToApiGroups(Collection items) { if (this.apiGroups == null) { this.apiGroups = new ArrayList(); } - this.apiGroups.add(index, item); + for (String item : items) { + this.apiGroups.add(item); + } return (A) this; } - public A setToApiGroups(int index,String item) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + public A addAllToNonResourceURLs(Collection items) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + for (String item : items) { + this.nonResourceURLs.add(item); } - this.apiGroups.set(index, item); return (A) this; } - public A addToApiGroups(String... items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + public A addAllToResourceNames(Collection items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); } for (String item : items) { - this.apiGroups.add(item); + this.resourceNames.add(item); } return (A) this; } - public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + public A addAllToResources(Collection items) { + if (this.resources == null) { + this.resources = new ArrayList(); } for (String item : items) { - this.apiGroups.add(item); + this.resources.add(item); } return (A) this; } - public A removeFromApiGroups(String... items) { - if (this.apiGroups == null) { - return (A) this; + public A addAllToVerbs(Collection items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); } for (String item : items) { - this.apiGroups.remove(item); + this.verbs.add(item); } return (A) this; } - public A removeAllFromApiGroups(Collection items) { + public A addToApiGroups(String... items) { if (this.apiGroups == null) { - return (A) this; + this.apiGroups = new ArrayList(); } for (String item : items) { - this.apiGroups.remove(item); + this.apiGroups.add(item); } return (A) this; } - public List getApiGroups() { - return this.apiGroups; - } - - public String getApiGroup(int index) { - return this.apiGroups.get(index); - } - - public String getFirstApiGroup() { - return this.apiGroups.get(0); - } - - public String getLastApiGroup() { - return this.apiGroups.get(apiGroups.size() - 1); - } - - public String getMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withApiGroups(List apiGroups) { - if (apiGroups != null) { - this.apiGroups = new ArrayList(); - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } else { - this.apiGroups = null; + public A addToApiGroups(int index,String item) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); } + this.apiGroups.add(index, item); return (A) this; } - public A withApiGroups(String... apiGroups) { - if (this.apiGroups != null) { - this.apiGroups.clear(); - _visitables.remove("apiGroups"); + public A addToNonResourceURLs(String... items) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); } - if (apiGroups != null) { - for (String item : apiGroups) { - this.addToApiGroups(item); - } + for (String item : items) { + this.nonResourceURLs.add(item); } return (A) this; } - public boolean hasApiGroups() { - return this.apiGroups != null && !(this.apiGroups.isEmpty()); - } - public A addToNonResourceURLs(int index,String item) { if (this.nonResourceURLs == null) { this.nonResourceURLs = new ArrayList(); @@ -166,200 +116,240 @@ public A addToNonResourceURLs(int index,String item) { return (A) this; } - public A setToNonResourceURLs(int index,String item) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + public A addToResourceNames(String... items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.add(item); } - this.nonResourceURLs.set(index, item); return (A) this; } - public A addToNonResourceURLs(String... items) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); - } - for (String item : items) { - this.nonResourceURLs.add(item); + public A addToResourceNames(int index,String item) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); } + this.resourceNames.add(index, item); return (A) this; } - public A addAllToNonResourceURLs(Collection items) { - if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + public A addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); } for (String item : items) { - this.nonResourceURLs.add(item); + this.resources.add(item); } return (A) this; } - public A removeFromNonResourceURLs(String... items) { - if (this.nonResourceURLs == null) { - return (A) this; - } - for (String item : items) { - this.nonResourceURLs.remove(item); + public A addToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); } + this.resources.add(index, item); return (A) this; } - public A removeAllFromNonResourceURLs(Collection items) { - if (this.nonResourceURLs == null) { - return (A) this; + public A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); } for (String item : items) { - this.nonResourceURLs.remove(item); + this.verbs.add(item); } return (A) this; } - public List getNonResourceURLs() { - return this.nonResourceURLs; + public A addToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.add(index, item); + return (A) this; } - public String getNonResourceURL(int index) { - return this.nonResourceURLs.get(index); + protected void copyInstance(V1PolicyRule instance) { + instance = instance != null ? instance : new V1PolicyRule(); + if (instance != null) { + this.withApiGroups(instance.getApiGroups()); + this.withNonResourceURLs(instance.getNonResourceURLs()); + this.withResourceNames(instance.getResourceNames()); + this.withResources(instance.getResources()); + this.withVerbs(instance.getVerbs()); + } } - public String getFirstNonResourceURL() { - return this.nonResourceURLs.get(0); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PolicyRuleFluent that = (V1PolicyRuleFluent) o; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(nonResourceURLs, that.nonResourceURLs))) { + return false; + } + if (!(Objects.equals(resourceNames, that.resourceNames))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } + return true; } - public String getLastNonResourceURL() { - return this.nonResourceURLs.get(nonResourceURLs.size() - 1); + public String getApiGroup(int index) { + return this.apiGroups.get(index); } - public String getMatchingNonResourceURL(Predicate predicate) { - for (String item : nonResourceURLs) { - if (predicate.test(item)) { - return item; - } - } - return null; + public List getApiGroups() { + return this.apiGroups; } - public boolean hasMatchingNonResourceURL(Predicate predicate) { - for (String item : nonResourceURLs) { - if (predicate.test(item)) { - return true; - } - } - return false; + public String getFirstApiGroup() { + return this.apiGroups.get(0); } - public A withNonResourceURLs(List nonResourceURLs) { - if (nonResourceURLs != null) { - this.nonResourceURLs = new ArrayList(); - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); + public String getFirstNonResourceURL() { + return this.nonResourceURLs.get(0); + } + + public String getFirstResource() { + return this.resources.get(0); + } + + public String getFirstResourceName() { + return this.resourceNames.get(0); + } + + public String getFirstVerb() { + return this.verbs.get(0); + } + + public String getLastApiGroup() { + return this.apiGroups.get(apiGroups.size() - 1); + } + + public String getLastNonResourceURL() { + return this.nonResourceURLs.get(nonResourceURLs.size() - 1); + } + + public String getLastResource() { + return this.resources.get(resources.size() - 1); + } + + public String getLastResourceName() { + return this.resourceNames.get(resourceNames.size() - 1); + } + + public String getLastVerb() { + return this.verbs.get(verbs.size() - 1); + } + + public String getMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { + if (predicate.test(item)) { + return item; } - } else { - this.nonResourceURLs = null; - } - return (A) this; + } + return null; } - public A withNonResourceURLs(String... nonResourceURLs) { - if (this.nonResourceURLs != null) { - this.nonResourceURLs.clear(); - _visitables.remove("nonResourceURLs"); - } - if (nonResourceURLs != null) { + public String getMatchingNonResourceURL(Predicate predicate) { for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); + if (predicate.test(item)) { + return item; + } } - } - return (A) this; + return null; } - public boolean hasNonResourceURLs() { - return this.nonResourceURLs != null && !(this.nonResourceURLs.isEmpty()); + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A addToResourceNames(int index,String item) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - this.resourceNames.add(index, item); - return (A) this; + public String getMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A setToResourceNames(int index,String item) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - this.resourceNames.set(index, item); - return (A) this; + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A addToResourceNames(String... items) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - for (String item : items) { - this.resourceNames.add(item); - } - return (A) this; + public String getNonResourceURL(int index) { + return this.nonResourceURLs.get(index); } - public A addAllToResourceNames(Collection items) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - for (String item : items) { - this.resourceNames.add(item); - } - return (A) this; + public List getNonResourceURLs() { + return this.nonResourceURLs; } - public A removeFromResourceNames(String... items) { - if (this.resourceNames == null) { - return (A) this; - } - for (String item : items) { - this.resourceNames.remove(item); - } - return (A) this; + public String getResource(int index) { + return this.resources.get(index); } - public A removeAllFromResourceNames(Collection items) { - if (this.resourceNames == null) { - return (A) this; - } - for (String item : items) { - this.resourceNames.remove(item); - } - return (A) this; + public String getResourceName(int index) { + return this.resourceNames.get(index); } public List getResourceNames() { return this.resourceNames; } - public String getResourceName(int index) { - return this.resourceNames.get(index); + public List getResources() { + return this.resources; } - public String getFirstResourceName() { - return this.resourceNames.get(0); + public String getVerb(int index) { + return this.verbs.get(index); } - public String getLastResourceName() { - return this.resourceNames.get(resourceNames.size() - 1); + public List getVerbs() { + return this.verbs; } - public String getMatchingResourceName(Predicate predicate) { - for (String item : resourceNames) { + public boolean hasApiGroups() { + return this.apiGroups != null && !(this.apiGroups.isEmpty()); + } + + public boolean hasMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { if (predicate.test(item)) { - return item; + return true; } } - return null; + return false; } - public boolean hasMatchingResourceName(Predicate predicate) { - for (String item : resourceNames) { + public boolean hasMatchingNonResourceURL(Predicate predicate) { + for (String item : nonResourceURLs) { if (predicate.test(item)) { return true; } @@ -367,77 +357,79 @@ public boolean hasMatchingResourceName(Predicate predicate) { return false; } - public A withResourceNames(List resourceNames) { - if (resourceNames != null) { - this.resourceNames = new ArrayList(); - for (String item : resourceNames) { - this.addToResourceNames(item); + public boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return true; } - } else { - this.resourceNames = null; - } - return (A) this; + } + return false; } - public A withResourceNames(String... resourceNames) { - if (this.resourceNames != null) { - this.resourceNames.clear(); - _visitables.remove("resourceNames"); - } - if (resourceNames != null) { + public boolean hasMatchingResourceName(Predicate predicate) { for (String item : resourceNames) { - this.addToResourceNames(item); + if (predicate.test(item)) { + return true; + } } - } - return (A) this; + return false; + } + + public boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNonResourceURLs() { + return this.nonResourceURLs != null && !(this.nonResourceURLs.isEmpty()); } public boolean hasResourceNames() { return this.resourceNames != null && !(this.resourceNames.isEmpty()); } - public A addToResources(int index,String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - this.resources.add(index, item); - return (A) this; + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); } - public A setToResources(int index,String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - this.resources.set(index, item); - return (A) this; + public boolean hasVerbs() { + return this.verbs != null && !(this.verbs.isEmpty()); } - public A addToResources(String... items) { - if (this.resources == null) { - this.resources = new ArrayList(); + public int hashCode() { + return Objects.hash(apiGroups, nonResourceURLs, resourceNames, resources, verbs); + } + + public A removeAllFromApiGroups(Collection items) { + if (this.apiGroups == null) { + return (A) this; } for (String item : items) { - this.resources.add(item); + this.apiGroups.remove(item); } return (A) this; } - public A addAllToResources(Collection items) { - if (this.resources == null) { - this.resources = new ArrayList(); + public A removeAllFromNonResourceURLs(Collection items) { + if (this.nonResourceURLs == null) { + return (A) this; } for (String item : items) { - this.resources.add(item); + this.nonResourceURLs.remove(item); } return (A) this; } - public A removeFromResources(String... items) { - if (this.resources == null) { + public A removeAllFromResourceNames(Collection items) { + if (this.resourceNames == null) { return (A) this; } for (String item : items) { - this.resources.remove(item); + this.resourceNames.remove(item); } return (A) this; } @@ -452,74 +444,95 @@ public A removeAllFromResources(Collection items) { return (A) this; } - public List getResources() { - return this.resources; - } - - public String getResource(int index) { - return this.resources.get(index); + public A removeAllFromVerbs(Collection items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; } - public String getFirstResource() { - return this.resources.get(0); + public A removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } - public String getLastResource() { - return this.resources.get(resources.size() - 1); + public A removeFromNonResourceURLs(String... items) { + if (this.nonResourceURLs == null) { + return (A) this; + } + for (String item : items) { + this.nonResourceURLs.remove(item); + } + return (A) this; } - public String getMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A removeFromResourceNames(String... items) { + if (this.resourceNames == null) { + return (A) this; + } + for (String item : items) { + this.resourceNames.remove(item); + } + return (A) this; } - public boolean hasMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } - public A withResources(List resources) { - if (resources != null) { - this.resources = new ArrayList(); - for (String item : resources) { - this.addToResources(item); - } - } else { - this.resources = null; + public A removeFromVerbs(String... items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); } return (A) this; } - public A withResources(String... resources) { - if (this.resources != null) { - this.resources.clear(); - _visitables.remove("resources"); + public A setToApiGroups(int index,String item) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); } - if (resources != null) { - for (String item : resources) { - this.addToResources(item); - } + this.apiGroups.set(index, item); + return (A) this; + } + + public A setToNonResourceURLs(int index,String item) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); } + this.nonResourceURLs.set(index, item); return (A) this; } - public boolean hasResources() { - return this.resources != null && !(this.resources.isEmpty()); + public A setToResourceNames(int index,String item) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + this.resourceNames.set(index, item); + return (A) this; } - public A addToVerbs(int index,String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); + public A setToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); } - this.verbs.add(index, item); + this.resources.set(index, item); return (A) this; } @@ -531,78 +544,135 @@ public A setToVerbs(int index,String item) { return (A) this; } - public A addToVerbs(String... items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiGroups == null) && !(apiGroups.isEmpty())) { + sb.append("apiGroups:"); + sb.append(apiGroups); + sb.append(","); } - for (String item : items) { - this.verbs.add(item); + if (!(nonResourceURLs == null) && !(nonResourceURLs.isEmpty())) { + sb.append("nonResourceURLs:"); + sb.append(nonResourceURLs); + sb.append(","); } - return (A) this; - } - - public A addAllToVerbs(Collection items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); + if (!(resourceNames == null) && !(resourceNames.isEmpty())) { + sb.append("resourceNames:"); + sb.append(resourceNames); + sb.append(","); } - for (String item : items) { - this.verbs.add(item); + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); } - return (A) this; + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + } + sb.append("}"); + return sb.toString(); } - public A removeFromVerbs(String... items) { - if (this.verbs == null) { - return (A) this; - } - for (String item : items) { - this.verbs.remove(item); + public A withApiGroups(List apiGroups) { + if (apiGroups != null) { + this.apiGroups = new ArrayList(); + for (String item : apiGroups) { + this.addToApiGroups(item); + } + } else { + this.apiGroups = null; } return (A) this; } - public A removeAllFromVerbs(Collection items) { - if (this.verbs == null) { - return (A) this; + public A withApiGroups(String... apiGroups) { + if (this.apiGroups != null) { + this.apiGroups.clear(); + _visitables.remove("apiGroups"); } - for (String item : items) { - this.verbs.remove(item); + if (apiGroups != null) { + for (String item : apiGroups) { + this.addToApiGroups(item); + } } return (A) this; } - public List getVerbs() { - return this.verbs; + public A withNonResourceURLs(List nonResourceURLs) { + if (nonResourceURLs != null) { + this.nonResourceURLs = new ArrayList(); + for (String item : nonResourceURLs) { + this.addToNonResourceURLs(item); + } + } else { + this.nonResourceURLs = null; + } + return (A) this; } - public String getVerb(int index) { - return this.verbs.get(index); + public A withNonResourceURLs(String... nonResourceURLs) { + if (this.nonResourceURLs != null) { + this.nonResourceURLs.clear(); + _visitables.remove("nonResourceURLs"); + } + if (nonResourceURLs != null) { + for (String item : nonResourceURLs) { + this.addToNonResourceURLs(item); + } + } + return (A) this; } - public String getFirstVerb() { - return this.verbs.get(0); + public A withResourceNames(List resourceNames) { + if (resourceNames != null) { + this.resourceNames = new ArrayList(); + for (String item : resourceNames) { + this.addToResourceNames(item); + } + } else { + this.resourceNames = null; + } + return (A) this; } - public String getLastVerb() { - return this.verbs.get(verbs.size() - 1); + public A withResourceNames(String... resourceNames) { + if (this.resourceNames != null) { + this.resourceNames.clear(); + _visitables.remove("resourceNames"); + } + if (resourceNames != null) { + for (String item : resourceNames) { + this.addToResourceNames(item); + } + } + return (A) this; } - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; + public A withResources(List resources) { + if (resources != null) { + this.resources = new ArrayList(); + for (String item : resources) { + this.addToResources(item); } - } - return null; + } else { + this.resources = null; + } + return (A) this; } - public boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } + public A withResources(String... resources) { + if (this.resources != null) { + this.resources.clear(); + _visitables.remove("resources"); + } + if (resources != null) { + for (String item : resources) { + this.addToResources(item); } - return false; + } + return (A) this; } public A withVerbs(List verbs) { @@ -630,73 +700,4 @@ public A withVerbs(String... verbs) { return (A) this; } - public boolean hasVerbs() { - return this.verbs != null && !(this.verbs.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1PolicyRuleFluent that = (V1PolicyRuleFluent) o; - if (!(Objects.equals(apiGroups, that.apiGroups))) { - return false; - } - if (!(Objects.equals(nonResourceURLs, that.nonResourceURLs))) { - return false; - } - if (!(Objects.equals(resourceNames, that.resourceNames))) { - return false; - } - if (!(Objects.equals(resources, that.resources))) { - return false; - } - if (!(Objects.equals(verbs, that.verbs))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(apiGroups, nonResourceURLs, resourceNames, resources, verbs); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(apiGroups == null) && !(apiGroups.isEmpty())) { - sb.append("apiGroups:"); - sb.append(apiGroups); - sb.append(","); - } - if (!(nonResourceURLs == null) && !(nonResourceURLs.isEmpty())) { - sb.append("nonResourceURLs:"); - sb.append(nonResourceURLs); - sb.append(","); - } - if (!(resourceNames == null) && !(resourceNames.isEmpty())) { - sb.append("resourceNames:"); - sb.append(resourceNames); - sb.append(","); - } - if (!(resources == null) && !(resources.isEmpty())) { - sb.append("resources:"); - sb.append(resources); - sb.append(","); - } - if (!(verbs == null) && !(verbs.isEmpty())) { - sb.append("verbs:"); - sb.append(verbs); - } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsBuilder.java index 8e92f7d872..dc71c4c639 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PolicyRulesWithSubjectsBuilder extends V1PolicyRulesWithSubjectsFluent implements VisitableBuilder{ + + V1PolicyRulesWithSubjectsFluent fluent; + public V1PolicyRulesWithSubjectsBuilder() { this(new V1PolicyRulesWithSubjects()); } @@ -11,17 +14,16 @@ public V1PolicyRulesWithSubjectsBuilder(V1PolicyRulesWithSubjectsFluent fluen this(fluent, new V1PolicyRulesWithSubjects()); } - public V1PolicyRulesWithSubjectsBuilder(V1PolicyRulesWithSubjectsFluent fluent,V1PolicyRulesWithSubjects instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PolicyRulesWithSubjectsBuilder(V1PolicyRulesWithSubjects instance) { this.fluent = this; this.copyInstance(instance); } - V1PolicyRulesWithSubjectsFluent fluent; + public V1PolicyRulesWithSubjectsBuilder(V1PolicyRulesWithSubjectsFluent fluent,V1PolicyRulesWithSubjects instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PolicyRulesWithSubjects build() { V1PolicyRulesWithSubjects buildable = new V1PolicyRulesWithSubjects(); buildable.setNonResourceRules(fluent.buildNonResourceRules()); @@ -30,5 +32,4 @@ public V1PolicyRulesWithSubjects build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsFluent.java index ac4a25fbc4..4767524517 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsFluent.java @@ -1,73 +1,96 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PolicyRulesWithSubjectsFluent> extends BaseFluent{ + + private ArrayList nonResourceRules; + private ArrayList resourceRules; + private ArrayList subjects; + public V1PolicyRulesWithSubjectsFluent() { } public V1PolicyRulesWithSubjectsFluent(V1PolicyRulesWithSubjects instance) { this.copyInstance(instance); } - private ArrayList nonResourceRules; - private ArrayList resourceRules; - private ArrayList subjects; - - protected void copyInstance(V1PolicyRulesWithSubjects instance) { - instance = instance != null ? instance : new V1PolicyRulesWithSubjects(); - if (instance != null) { - this.withNonResourceRules(instance.getNonResourceRules()); - this.withResourceRules(instance.getResourceRules()); - this.withSubjects(instance.getSubjects()); - } - } - - public A addToNonResourceRules(int index,V1NonResourcePolicyRule item) { + + public A addAllToNonResourceRules(Collection items) { if (this.nonResourceRules == null) { this.nonResourceRules = new ArrayList(); } - V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); - if (index < 0 || index >= nonResourceRules.size()) { - _visitables.get("nonResourceRules").add(builder); - nonResourceRules.add(builder); - } else { + for (V1NonResourcePolicyRule item : items) { + V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); _visitables.get("nonResourceRules").add(builder); - nonResourceRules.add(index, builder); + this.nonResourceRules.add(builder); } return (A) this; } - public A setToNonResourceRules(int index,V1NonResourcePolicyRule item) { - if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); + public A addAllToResourceRules(Collection items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); } - V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); - if (index < 0 || index >= nonResourceRules.size()) { - _visitables.get("nonResourceRules").add(builder); - nonResourceRules.add(builder); - } else { - _visitables.get("nonResourceRules").add(builder); - nonResourceRules.set(index, builder); + for (V1ResourcePolicyRule item : items) { + V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } + return (A) this; + } + + public A addAllToSubjects(Collection items) { + if (this.subjects == null) { + this.subjects = new ArrayList(); + } + for (FlowcontrolV1Subject item : items) { + FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); + _visitables.get("subjects").add(builder); + this.subjects.add(builder); } return (A) this; } + public NonResourceRulesNested addNewNonResourceRule() { + return new NonResourceRulesNested(-1, null); + } + + public NonResourceRulesNested addNewNonResourceRuleLike(V1NonResourcePolicyRule item) { + return new NonResourceRulesNested(-1, item); + } + + public ResourceRulesNested addNewResourceRule() { + return new ResourceRulesNested(-1, null); + } + + public ResourceRulesNested addNewResourceRuleLike(V1ResourcePolicyRule item) { + return new ResourceRulesNested(-1, item); + } + + public SubjectsNested addNewSubject() { + return new SubjectsNested(-1, null); + } + + public SubjectsNested addNewSubjectLike(FlowcontrolV1Subject item) { + return new SubjectsNested(-1, item); + } + public A addToNonResourceRules(V1NonResourcePolicyRule... items) { if (this.nonResourceRules == null) { this.nonResourceRules = new ArrayList(); @@ -80,74 +103,99 @@ public A addToNonResourceRules(V1NonResourcePolicyRule... items) { return (A) this; } - public A addAllToNonResourceRules(Collection items) { + public A addToNonResourceRules(int index,V1NonResourcePolicyRule item) { if (this.nonResourceRules == null) { this.nonResourceRules = new ArrayList(); } - for (V1NonResourcePolicyRule item : items) { - V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); + V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); + if (index < 0 || index >= nonResourceRules.size()) { _visitables.get("nonResourceRules").add(builder); - this.nonResourceRules.add(builder); + nonResourceRules.add(builder); + } else { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.add(index, builder); } return (A) this; } - public A removeFromNonResourceRules(V1NonResourcePolicyRule... items) { - if (this.nonResourceRules == null) { - return (A) this; + public A addToResourceRules(V1ResourcePolicyRule... items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); } - for (V1NonResourcePolicyRule item : items) { - V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); - _visitables.get("nonResourceRules").remove(builder); - this.nonResourceRules.remove(builder); + for (V1ResourcePolicyRule item : items) { + V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); } return (A) this; } - public A removeAllFromNonResourceRules(Collection items) { - if (this.nonResourceRules == null) { - return (A) this; + public A addToResourceRules(int index,V1ResourcePolicyRule item) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); } - for (V1NonResourcePolicyRule item : items) { - V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); - _visitables.get("nonResourceRules").remove(builder); - this.nonResourceRules.remove(builder); + V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.add(index, builder); } return (A) this; } - public A removeMatchingFromNonResourceRules(Predicate predicate) { - if (nonResourceRules == null) { - return (A) this; + public A addToSubjects(FlowcontrolV1Subject... items) { + if (this.subjects == null) { + this.subjects = new ArrayList(); } - Iterator each = nonResourceRules.iterator(); - List visitables = _visitables.get("nonResourceRules"); - while (each.hasNext()) { - V1NonResourcePolicyRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (FlowcontrolV1Subject item : items) { + FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); + _visitables.get("subjects").add(builder); + this.subjects.add(builder); } return (A) this; } - public List buildNonResourceRules() { - return this.nonResourceRules != null ? build(nonResourceRules) : null; - } - - public V1NonResourcePolicyRule buildNonResourceRule(int index) { - return this.nonResourceRules.get(index).build(); + public A addToSubjects(int index,FlowcontrolV1Subject item) { + if (this.subjects == null) { + this.subjects = new ArrayList(); + } + FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); + if (index < 0 || index >= subjects.size()) { + _visitables.get("subjects").add(builder); + subjects.add(builder); + } else { + _visitables.get("subjects").add(builder); + subjects.add(index, builder); + } + return (A) this; } public V1NonResourcePolicyRule buildFirstNonResourceRule() { return this.nonResourceRules.get(0).build(); } + public V1ResourcePolicyRule buildFirstResourceRule() { + return this.resourceRules.get(0).build(); + } + + public FlowcontrolV1Subject buildFirstSubject() { + return this.subjects.get(0).build(); + } + public V1NonResourcePolicyRule buildLastNonResourceRule() { return this.nonResourceRules.get(nonResourceRules.size() - 1).build(); } + public V1ResourcePolicyRule buildLastResourceRule() { + return this.resourceRules.get(resourceRules.size() - 1).build(); + } + + public FlowcontrolV1Subject buildLastSubject() { + return this.subjects.get(subjects.size() - 1).build(); + } + public V1NonResourcePolicyRule buildMatchingNonResourceRule(Predicate predicate) { for (V1NonResourcePolicyRuleBuilder item : nonResourceRules) { if (predicate.test(item)) { @@ -157,73 +205,78 @@ public V1NonResourcePolicyRule buildMatchingNonResourceRule(Predicate predicate) { - for (V1NonResourcePolicyRuleBuilder item : nonResourceRules) { + public V1ResourcePolicyRule buildMatchingResourceRule(Predicate predicate) { + for (V1ResourcePolicyRuleBuilder item : resourceRules) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withNonResourceRules(List nonResourceRules) { - if (this.nonResourceRules != null) { - this._visitables.get("nonResourceRules").clear(); - } - if (nonResourceRules != null) { - this.nonResourceRules = new ArrayList(); - for (V1NonResourcePolicyRule item : nonResourceRules) { - this.addToNonResourceRules(item); + public FlowcontrolV1Subject buildMatchingSubject(Predicate predicate) { + for (FlowcontrolV1SubjectBuilder item : subjects) { + if (predicate.test(item)) { + return item.build(); } - } else { - this.nonResourceRules = null; - } - return (A) this; + } + return null; } - public A withNonResourceRules(V1NonResourcePolicyRule... nonResourceRules) { - if (this.nonResourceRules != null) { - this.nonResourceRules.clear(); - _visitables.remove("nonResourceRules"); - } - if (nonResourceRules != null) { - for (V1NonResourcePolicyRule item : nonResourceRules) { - this.addToNonResourceRules(item); - } - } - return (A) this; + public V1NonResourcePolicyRule buildNonResourceRule(int index) { + return this.nonResourceRules.get(index).build(); } - public boolean hasNonResourceRules() { - return this.nonResourceRules != null && !(this.nonResourceRules.isEmpty()); + public List buildNonResourceRules() { + return this.nonResourceRules != null ? build(nonResourceRules) : null; } - public NonResourceRulesNested addNewNonResourceRule() { - return new NonResourceRulesNested(-1, null); + public V1ResourcePolicyRule buildResourceRule(int index) { + return this.resourceRules.get(index).build(); } - public NonResourceRulesNested addNewNonResourceRuleLike(V1NonResourcePolicyRule item) { - return new NonResourceRulesNested(-1, item); + public List buildResourceRules() { + return this.resourceRules != null ? build(resourceRules) : null; } - public NonResourceRulesNested setNewNonResourceRuleLike(int index,V1NonResourcePolicyRule item) { - return new NonResourceRulesNested(index, item); + public FlowcontrolV1Subject buildSubject(int index) { + return this.subjects.get(index).build(); } - public NonResourceRulesNested editNonResourceRule(int index) { - if (index <= nonResourceRules.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "nonResourceRules")); - } - return this.setNewNonResourceRuleLike(index, this.buildNonResourceRule(index)); + public List buildSubjects() { + return this.subjects != null ? build(subjects) : null; } - public NonResourceRulesNested editFirstNonResourceRule() { - if (nonResourceRules.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "nonResourceRules")); + protected void copyInstance(V1PolicyRulesWithSubjects instance) { + instance = instance != null ? instance : new V1PolicyRulesWithSubjects(); + if (instance != null) { + this.withNonResourceRules(instance.getNonResourceRules()); + this.withResourceRules(instance.getResourceRules()); + this.withSubjects(instance.getSubjects()); + } + } + + public NonResourceRulesNested editFirstNonResourceRule() { + if (nonResourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "nonResourceRules")); } return this.setNewNonResourceRuleLike(0, this.buildNonResourceRule(0)); } + public ResourceRulesNested editFirstResourceRule() { + if (resourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); + } + + public SubjectsNested editFirstSubject() { + if (subjects.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "subjects")); + } + return this.setNewSubjectLike(0, this.buildSubject(0)); + } + public NonResourceRulesNested editLastNonResourceRule() { int index = nonResourceRules.size() - 1; if (index < 0) { @@ -232,6 +285,22 @@ public NonResourceRulesNested editLastNonResourceRule() { return this.setNewNonResourceRuleLike(index, this.buildNonResourceRule(index)); } + public ResourceRulesNested editLastResourceRule() { + int index = resourceRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + } + + public SubjectsNested editLastSubject() { + int index = subjects.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); + } + public NonResourceRulesNested editMatchingNonResourceRule(Predicate predicate) { int index = -1; for (int i = 0;i < nonResourceRules.size();i++) { @@ -246,56 +315,165 @@ public NonResourceRulesNested editMatchingNonResourceRule(Predicate editMatchingResourceRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceRules.size();i++) { + if (predicate.test(resourceRules.get(i))) { + index = i; + break; + } } - V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); - } else { - _visitables.get("resourceRules").add(builder); - resourceRules.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceRules")); } - return (A) this; + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } - public A setToResourceRules(int index,V1ResourcePolicyRule item) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + public SubjectsNested editMatchingSubject(Predicate predicate) { + int index = -1; + for (int i = 0;i < subjects.size();i++) { + if (predicate.test(subjects.get(i))) { + index = i; + break; + } } - V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); - } else { - _visitables.get("resourceRules").add(builder); - resourceRules.set(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); + } + + public NonResourceRulesNested editNonResourceRule(int index) { + if (nonResourceRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "nonResourceRules")); + } + return this.setNewNonResourceRuleLike(index, this.buildNonResourceRule(index)); + } + + public ResourceRulesNested editResourceRule(int index) { + if (resourceRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + } + + public SubjectsNested editSubject(int index) { + if (subjects.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PolicyRulesWithSubjectsFluent that = (V1PolicyRulesWithSubjectsFluent) o; + if (!(Objects.equals(nonResourceRules, that.nonResourceRules))) { + return false; + } + if (!(Objects.equals(resourceRules, that.resourceRules))) { + return false; + } + if (!(Objects.equals(subjects, that.subjects))) { + return false; + } + return true; + } + + public boolean hasMatchingNonResourceRule(Predicate predicate) { + for (V1NonResourcePolicyRuleBuilder item : nonResourceRules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResourceRule(Predicate predicate) { + for (V1ResourcePolicyRuleBuilder item : resourceRules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingSubject(Predicate predicate) { + for (FlowcontrolV1SubjectBuilder item : subjects) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNonResourceRules() { + return this.nonResourceRules != null && !(this.nonResourceRules.isEmpty()); + } + + public boolean hasResourceRules() { + return this.resourceRules != null && !(this.resourceRules.isEmpty()); + } + + public boolean hasSubjects() { + return this.subjects != null && !(this.subjects.isEmpty()); + } + + public int hashCode() { + return Objects.hash(nonResourceRules, resourceRules, subjects); + } + + public A removeAllFromNonResourceRules(Collection items) { + if (this.nonResourceRules == null) { + return (A) this; + } + for (V1NonResourcePolicyRule item : items) { + V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); + _visitables.get("nonResourceRules").remove(builder); + this.nonResourceRules.remove(builder); } return (A) this; } - public A addToResourceRules(V1ResourcePolicyRule... items) { + public A removeAllFromResourceRules(Collection items) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + return (A) this; } for (V1ResourcePolicyRule item : items) { V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); - _visitables.get("resourceRules").add(builder); - this.resourceRules.add(builder); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); } return (A) this; } - public A addAllToResourceRules(Collection items) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + public A removeAllFromSubjects(Collection items) { + if (this.subjects == null) { + return (A) this; } - for (V1ResourcePolicyRule item : items) { - V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); - _visitables.get("resourceRules").add(builder); - this.resourceRules.add(builder); + for (FlowcontrolV1Subject item : items) { + FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); + _visitables.get("subjects").remove(builder); + this.subjects.remove(builder); + } + return (A) this; + } + + public A removeFromNonResourceRules(V1NonResourcePolicyRule... items) { + if (this.nonResourceRules == null) { + return (A) this; + } + for (V1NonResourcePolicyRule item : items) { + V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); + _visitables.get("nonResourceRules").remove(builder); + this.nonResourceRules.remove(builder); } return (A) this; } @@ -312,26 +490,26 @@ public A removeFromResourceRules(V1ResourcePolicyRule... items) { return (A) this; } - public A removeAllFromResourceRules(Collection items) { - if (this.resourceRules == null) { + public A removeFromSubjects(FlowcontrolV1Subject... items) { + if (this.subjects == null) { return (A) this; } - for (V1ResourcePolicyRule item : items) { - V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); - _visitables.get("resourceRules").remove(builder); - this.resourceRules.remove(builder); + for (FlowcontrolV1Subject item : items) { + FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); + _visitables.get("subjects").remove(builder); + this.subjects.remove(builder); } return (A) this; } - public A removeMatchingFromResourceRules(Predicate predicate) { - if (resourceRules == null) { + public A removeMatchingFromNonResourceRules(Predicate predicate) { + if (nonResourceRules == null) { return (A) this; } - Iterator each = resourceRules.iterator(); - List visitables = _visitables.get("resourceRules"); + Iterator each = nonResourceRules.iterator(); + List visitables = _visitables.get("nonResourceRules"); while (each.hasNext()) { - V1ResourcePolicyRuleBuilder builder = each.next(); + V1NonResourcePolicyRuleBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -340,131 +518,76 @@ public A removeMatchingFromResourceRules(Predicate return (A) this; } - public List buildResourceRules() { - return this.resourceRules != null ? build(resourceRules) : null; - } - - public V1ResourcePolicyRule buildResourceRule(int index) { - return this.resourceRules.get(index).build(); - } - - public V1ResourcePolicyRule buildFirstResourceRule() { - return this.resourceRules.get(0).build(); - } - - public V1ResourcePolicyRule buildLastResourceRule() { - return this.resourceRules.get(resourceRules.size() - 1).build(); - } - - public V1ResourcePolicyRule buildMatchingResourceRule(Predicate predicate) { - for (V1ResourcePolicyRuleBuilder item : resourceRules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingResourceRule(Predicate predicate) { - for (V1ResourcePolicyRuleBuilder item : resourceRules) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withResourceRules(List resourceRules) { - if (this.resourceRules != null) { - this._visitables.get("resourceRules").clear(); + public A removeMatchingFromResourceRules(Predicate predicate) { + if (resourceRules == null) { + return (A) this; } - if (resourceRules != null) { - this.resourceRules = new ArrayList(); - for (V1ResourcePolicyRule item : resourceRules) { - this.addToResourceRules(item); + Iterator each = resourceRules.iterator(); + List visitables = _visitables.get("resourceRules"); + while (each.hasNext()) { + V1ResourcePolicyRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } else { - this.resourceRules = null; } return (A) this; } - public A withResourceRules(V1ResourcePolicyRule... resourceRules) { - if (this.resourceRules != null) { - this.resourceRules.clear(); - _visitables.remove("resourceRules"); + public A removeMatchingFromSubjects(Predicate predicate) { + if (subjects == null) { + return (A) this; } - if (resourceRules != null) { - for (V1ResourcePolicyRule item : resourceRules) { - this.addToResourceRules(item); - } + Iterator each = subjects.iterator(); + List visitables = _visitables.get("subjects"); + while (each.hasNext()) { + FlowcontrolV1SubjectBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasResourceRules() { - return this.resourceRules != null && !(this.resourceRules.isEmpty()); - } - - public ResourceRulesNested addNewResourceRule() { - return new ResourceRulesNested(-1, null); - } - - public ResourceRulesNested addNewResourceRuleLike(V1ResourcePolicyRule item) { - return new ResourceRulesNested(-1, item); + public NonResourceRulesNested setNewNonResourceRuleLike(int index,V1NonResourcePolicyRule item) { + return new NonResourceRulesNested(index, item); } public ResourceRulesNested setNewResourceRuleLike(int index,V1ResourcePolicyRule item) { return new ResourceRulesNested(index, item); } - public ResourceRulesNested editResourceRule(int index) { - if (index <= resourceRules.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); - } - return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); - } - - public ResourceRulesNested editFirstResourceRule() { - if (resourceRules.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); - } - return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); - } - - public ResourceRulesNested editLastResourceRule() { - int index = resourceRules.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); - } - return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + public SubjectsNested setNewSubjectLike(int index,FlowcontrolV1Subject item) { + return new SubjectsNested(index, item); } - public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { - int index = -1; - for (int i = 0;i < resourceRules.size();i++) { - if (predicate.test(resourceRules.get(i))) { - index = i; - break; - } + public A setToNonResourceRules(int index,V1NonResourcePolicyRule item) { + if (this.nonResourceRules == null) { + this.nonResourceRules = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceRules")); + V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); + if (index < 0 || index >= nonResourceRules.size()) { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.add(builder); + } else { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.set(index, builder); } - return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + return (A) this; } - public A addToSubjects(int index,FlowcontrolV1Subject item) { - if (this.subjects == null) { - this.subjects = new ArrayList(); + public A setToResourceRules(int index,V1ResourcePolicyRule item) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); } - FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { - _visitables.get("subjects").add(builder); - subjects.add(builder); + V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); } else { - _visitables.get("subjects").add(builder); - subjects.add(index, builder); + _visitables.get("resourceRules").add(builder); + resourceRules.set(index, builder); } return (A) this; } @@ -484,102 +607,81 @@ public A setToSubjects(int index,FlowcontrolV1Subject item) { return (A) this; } - public A addToSubjects(FlowcontrolV1Subject... items) { - if (this.subjects == null) { - this.subjects = new ArrayList(); - } - for (FlowcontrolV1Subject item : items) { - FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); - _visitables.get("subjects").add(builder); - this.subjects.add(builder); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(nonResourceRules == null) && !(nonResourceRules.isEmpty())) { + sb.append("nonResourceRules:"); + sb.append(nonResourceRules); + sb.append(","); } - return (A) this; - } - - public A addAllToSubjects(Collection items) { - if (this.subjects == null) { - this.subjects = new ArrayList(); + if (!(resourceRules == null) && !(resourceRules.isEmpty())) { + sb.append("resourceRules:"); + sb.append(resourceRules); + sb.append(","); } - for (FlowcontrolV1Subject item : items) { - FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); - _visitables.get("subjects").add(builder); - this.subjects.add(builder); + if (!(subjects == null) && !(subjects.isEmpty())) { + sb.append("subjects:"); + sb.append(subjects); } - return (A) this; + sb.append("}"); + return sb.toString(); } - public A removeFromSubjects(FlowcontrolV1Subject... items) { - if (this.subjects == null) { - return (A) this; + public A withNonResourceRules(List nonResourceRules) { + if (this.nonResourceRules != null) { + this._visitables.get("nonResourceRules").clear(); } - for (FlowcontrolV1Subject item : items) { - FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); - _visitables.get("subjects").remove(builder); - this.subjects.remove(builder); + if (nonResourceRules != null) { + this.nonResourceRules = new ArrayList(); + for (V1NonResourcePolicyRule item : nonResourceRules) { + this.addToNonResourceRules(item); + } + } else { + this.nonResourceRules = null; } return (A) this; } - public A removeAllFromSubjects(Collection items) { - if (this.subjects == null) { - return (A) this; + public A withNonResourceRules(V1NonResourcePolicyRule... nonResourceRules) { + if (this.nonResourceRules != null) { + this.nonResourceRules.clear(); + _visitables.remove("nonResourceRules"); } - for (FlowcontrolV1Subject item : items) { - FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); - _visitables.get("subjects").remove(builder); - this.subjects.remove(builder); + if (nonResourceRules != null) { + for (V1NonResourcePolicyRule item : nonResourceRules) { + this.addToNonResourceRules(item); + } } return (A) this; } - public A removeMatchingFromSubjects(Predicate predicate) { - if (subjects == null) { - return (A) this; + public A withResourceRules(List resourceRules) { + if (this.resourceRules != null) { + this._visitables.get("resourceRules").clear(); } - Iterator each = subjects.iterator(); - List visitables = _visitables.get("subjects"); - while (each.hasNext()) { - FlowcontrolV1SubjectBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + if (resourceRules != null) { + this.resourceRules = new ArrayList(); + for (V1ResourcePolicyRule item : resourceRules) { + this.addToResourceRules(item); } + } else { + this.resourceRules = null; } return (A) this; } - public List buildSubjects() { - return this.subjects != null ? build(subjects) : null; - } - - public FlowcontrolV1Subject buildSubject(int index) { - return this.subjects.get(index).build(); - } - - public FlowcontrolV1Subject buildFirstSubject() { - return this.subjects.get(0).build(); - } - - public FlowcontrolV1Subject buildLastSubject() { - return this.subjects.get(subjects.size() - 1).build(); - } - - public FlowcontrolV1Subject buildMatchingSubject(Predicate predicate) { - for (FlowcontrolV1SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingSubject(Predicate predicate) { - for (FlowcontrolV1SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return true; - } + public A withResourceRules(V1ResourcePolicyRule... resourceRules) { + if (this.resourceRules != null) { + this.resourceRules.clear(); + _visitables.remove("resourceRules"); + } + if (resourceRules != null) { + for (V1ResourcePolicyRule item : resourceRules) { + this.addToResourceRules(item); } - return false; + } + return (A) this; } public A withSubjects(List subjects) { @@ -609,114 +711,16 @@ public A withSubjects(FlowcontrolV1Subject... subjects) { } return (A) this; } + public class NonResourceRulesNested extends V1NonResourcePolicyRuleFluent> implements Nested{ - public boolean hasSubjects() { - return this.subjects != null && !(this.subjects.isEmpty()); - } - - public SubjectsNested addNewSubject() { - return new SubjectsNested(-1, null); - } - - public SubjectsNested addNewSubjectLike(FlowcontrolV1Subject item) { - return new SubjectsNested(-1, item); - } - - public SubjectsNested setNewSubjectLike(int index,FlowcontrolV1Subject item) { - return new SubjectsNested(index, item); - } - - public SubjectsNested editSubject(int index) { - if (index <= subjects.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "subjects")); - } - return this.setNewSubjectLike(index, this.buildSubject(index)); - } - - public SubjectsNested editFirstSubject() { - if (subjects.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "subjects")); - } - return this.setNewSubjectLike(0, this.buildSubject(0)); - } - - public SubjectsNested editLastSubject() { - int index = subjects.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "subjects")); - } - return this.setNewSubjectLike(index, this.buildSubject(index)); - } - - public SubjectsNested editMatchingSubject(Predicate predicate) { - int index = -1; - for (int i = 0;i < subjects.size();i++) { - if (predicate.test(subjects.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "subjects")); - } - return this.setNewSubjectLike(index, this.buildSubject(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1PolicyRulesWithSubjectsFluent that = (V1PolicyRulesWithSubjectsFluent) o; - if (!(Objects.equals(nonResourceRules, that.nonResourceRules))) { - return false; - } - if (!(Objects.equals(resourceRules, that.resourceRules))) { - return false; - } - if (!(Objects.equals(subjects, that.subjects))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(nonResourceRules, resourceRules, subjects); - } + V1NonResourcePolicyRuleBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(nonResourceRules == null) && !(nonResourceRules.isEmpty())) { - sb.append("nonResourceRules:"); - sb.append(nonResourceRules); - sb.append(","); - } - if (!(resourceRules == null) && !(resourceRules.isEmpty())) { - sb.append("resourceRules:"); - sb.append(resourceRules); - sb.append(","); - } - if (!(subjects == null) && !(subjects.isEmpty())) { - sb.append("subjects:"); - sb.append(subjects); - } - sb.append("}"); - return sb.toString(); - } - public class NonResourceRulesNested extends V1NonResourcePolicyRuleFluent> implements Nested{ NonResourceRulesNested(int index,V1NonResourcePolicyRule item) { this.index = index; this.builder = new V1NonResourcePolicyRuleBuilder(this, item); } - V1NonResourcePolicyRuleBuilder builder; - int index; - + public N and() { return (N) V1PolicyRulesWithSubjectsFluent.this.setToNonResourceRules(index, builder.build()); } @@ -725,16 +729,17 @@ public N endNonResourceRule() { return and(); } - } public class ResourceRulesNested extends V1ResourcePolicyRuleFluent> implements Nested{ + + V1ResourcePolicyRuleBuilder builder; + int index; + ResourceRulesNested(int index,V1ResourcePolicyRule item) { this.index = index; this.builder = new V1ResourcePolicyRuleBuilder(this, item); } - V1ResourcePolicyRuleBuilder builder; - int index; - + public N and() { return (N) V1PolicyRulesWithSubjectsFluent.this.setToResourceRules(index, builder.build()); } @@ -743,16 +748,17 @@ public N endResourceRule() { return and(); } - } public class SubjectsNested extends FlowcontrolV1SubjectFluent> implements Nested{ + + FlowcontrolV1SubjectBuilder builder; + int index; + SubjectsNested(int index,FlowcontrolV1Subject item) { this.index = index; this.builder = new FlowcontrolV1SubjectBuilder(this, item); } - FlowcontrolV1SubjectBuilder builder; - int index; - + public N and() { return (N) V1PolicyRulesWithSubjectsFluent.this.setToSubjects(index, builder.build()); } @@ -761,7 +767,5 @@ public N endSubject() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java index f997cdbd82..01d8cf5987 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PortStatusBuilder extends V1PortStatusFluent implements VisitableBuilder{ + + V1PortStatusFluent fluent; + public V1PortStatusBuilder() { this(new V1PortStatus()); } @@ -11,17 +14,16 @@ public V1PortStatusBuilder(V1PortStatusFluent fluent) { this(fluent, new V1PortStatus()); } - public V1PortStatusBuilder(V1PortStatusFluent fluent,V1PortStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PortStatusBuilder(V1PortStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1PortStatusFluent fluent; + public V1PortStatusBuilder(V1PortStatusFluent fluent,V1PortStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PortStatus build() { V1PortStatus buildable = new V1PortStatus(); buildable.setError(fluent.getError()); @@ -30,5 +32,4 @@ public V1PortStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java index 244b404451..17884354bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1PortStatusFluent> extends BaseFluent{ + + private String error; + private Integer port; + private String protocol; + public V1PortStatusFluent() { } public V1PortStatusFluent(V1PortStatus instance) { this.copyInstance(instance); } - private String error; - private Integer port; - private String protocol; - + protected void copyInstance(V1PortStatus instance) { instance = instance != null ? instance : new V1PortStatus(); if (instance != null) { @@ -32,45 +34,6 @@ protected void copyInstance(V1PortStatus instance) { } } - public String getError() { - return this.error; - } - - public A withError(String error) { - this.error = error; - return (A) this; - } - - public boolean hasError() { - return this.error != null; - } - - public Integer getPort() { - return this.port; - } - - public A withPort(Integer port) { - this.port = port; - return (A) this; - } - - public boolean hasPort() { - return this.port != null; - } - - public String getProtocol() { - return this.protocol; - } - - public A withProtocol(String protocol) { - this.protocol = protocol; - return (A) this; - } - - public boolean hasProtocol() { - return this.protocol != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -94,6 +57,30 @@ public boolean equals(Object o) { return true; } + public String getError() { + return this.error; + } + + public Integer getPort() { + return this.port; + } + + public String getProtocol() { + return this.protocol; + } + + public boolean hasError() { + return this.error != null; + } + + public boolean hasPort() { + return this.port != null; + } + + public boolean hasProtocol() { + return this.protocol != null; + } + public int hashCode() { return Objects.hash(error, port, protocol); } @@ -119,5 +106,19 @@ public String toString() { return sb.toString(); } - + public A withError(String error) { + this.error = error; + return (A) this; + } + + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + + public A withProtocol(String protocol) { + this.protocol = protocol; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java index a42fbceae4..2739fc10fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PortworxVolumeSourceBuilder extends V1PortworxVolumeSourceFluent implements VisitableBuilder{ + + V1PortworxVolumeSourceFluent fluent; + public V1PortworxVolumeSourceBuilder() { this(new V1PortworxVolumeSource()); } @@ -11,17 +14,16 @@ public V1PortworxVolumeSourceBuilder(V1PortworxVolumeSourceFluent fluent) { this(fluent, new V1PortworxVolumeSource()); } - public V1PortworxVolumeSourceBuilder(V1PortworxVolumeSourceFluent fluent,V1PortworxVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PortworxVolumeSourceBuilder(V1PortworxVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1PortworxVolumeSourceFluent fluent; + public V1PortworxVolumeSourceBuilder(V1PortworxVolumeSourceFluent fluent,V1PortworxVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PortworxVolumeSource build() { V1PortworxVolumeSource buildable = new V1PortworxVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -30,5 +32,4 @@ public V1PortworxVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java index 8521d35ca5..ba878cd220 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1PortworxVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private Boolean readOnly; + private String volumeID; + public V1PortworxVolumeSourceFluent() { } public V1PortworxVolumeSourceFluent(V1PortworxVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private Boolean readOnly; - private String volumeID; - + protected void copyInstance(V1PortworxVolumeSource instance) { instance = instance != null ? instance : new V1PortworxVolumeSource(); if (instance != null) { @@ -32,45 +34,6 @@ protected void copyInstance(V1PortworxVolumeSource instance) { } } - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; - } - - public boolean hasFsType() { - return this.fsType != null; - } - - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - - public String getVolumeID() { - return this.volumeID; - } - - public A withVolumeID(String volumeID) { - this.volumeID = volumeID; - return (A) this; - } - - public boolean hasVolumeID() { - return this.volumeID != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -94,6 +57,30 @@ public boolean equals(Object o) { return true; } + public String getFsType() { + return this.fsType; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public String getVolumeID() { + return this.volumeID; + } + + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + + public boolean hasVolumeID() { + return this.volumeID != null; + } + public int hashCode() { return Objects.hash(fsType, readOnly, volumeID); } @@ -119,9 +106,23 @@ public String toString() { return sb.toString(); } + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withVolumeID(String volumeID) { + this.volumeID = volumeID; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java index 8bd1b575c0..b84dc9db62 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PreconditionsBuilder extends V1PreconditionsFluent implements VisitableBuilder{ + + V1PreconditionsFluent fluent; + public V1PreconditionsBuilder() { this(new V1Preconditions()); } @@ -11,17 +14,16 @@ public V1PreconditionsBuilder(V1PreconditionsFluent fluent) { this(fluent, new V1Preconditions()); } - public V1PreconditionsBuilder(V1PreconditionsFluent fluent,V1Preconditions instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PreconditionsBuilder(V1Preconditions instance) { this.fluent = this; this.copyInstance(instance); } - V1PreconditionsFluent fluent; + public V1PreconditionsBuilder(V1PreconditionsFluent fluent,V1Preconditions instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Preconditions build() { V1Preconditions buildable = new V1Preconditions(); buildable.setResourceVersion(fluent.getResourceVersion()); @@ -29,5 +31,4 @@ public V1Preconditions build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java index e96b9a6b10..d59150143e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1PreconditionsFluent> extends BaseFluent{ + + private String resourceVersion; + private String uid; + public V1PreconditionsFluent() { } public V1PreconditionsFluent(V1Preconditions instance) { this.copyInstance(instance); } - private String resourceVersion; - private String uid; - + protected void copyInstance(V1Preconditions instance) { instance = instance != null ? instance : new V1Preconditions(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1Preconditions instance) { } } - public String getResourceVersion() { - return this.resourceVersion; - } - - public A withResourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; - return (A) this; - } - - public boolean hasResourceVersion() { - return this.resourceVersion != null; - } - - public String getUid() { - return this.uid; - } - - public A withUid(String uid) { - this.uid = uid; - return (A) this; - } - - public boolean hasUid() { - return this.uid != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getResourceVersion() { + return this.resourceVersion; + } + + public String getUid() { + return this.uid; + } + + public boolean hasResourceVersion() { + return this.resourceVersion != null; + } + + public boolean hasUid() { + return this.uid != null; + } + public int hashCode() { return Objects.hash(resourceVersion, uid); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java index 732876f402..fbf0c20dee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PreferredSchedulingTermBuilder extends V1PreferredSchedulingTermFluent implements VisitableBuilder{ + + V1PreferredSchedulingTermFluent fluent; + public V1PreferredSchedulingTermBuilder() { this(new V1PreferredSchedulingTerm()); } @@ -11,17 +14,16 @@ public V1PreferredSchedulingTermBuilder(V1PreferredSchedulingTermFluent fluen this(fluent, new V1PreferredSchedulingTerm()); } - public V1PreferredSchedulingTermBuilder(V1PreferredSchedulingTermFluent fluent,V1PreferredSchedulingTerm instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PreferredSchedulingTermBuilder(V1PreferredSchedulingTerm instance) { this.fluent = this; this.copyInstance(instance); } - V1PreferredSchedulingTermFluent fluent; + public V1PreferredSchedulingTermBuilder(V1PreferredSchedulingTermFluent fluent,V1PreferredSchedulingTerm instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PreferredSchedulingTerm build() { V1PreferredSchedulingTerm buildable = new V1PreferredSchedulingTerm(); buildable.setPreference(fluent.buildPreference()); @@ -29,5 +31,4 @@ public V1PreferredSchedulingTerm build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java index 9c94ea4204..cc026e093f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java @@ -1,28 +1,34 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.String; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1PreferredSchedulingTermFluent> extends BaseFluent{ + + private V1NodeSelectorTermBuilder preference; + private Integer weight; + public V1PreferredSchedulingTermFluent() { } public V1PreferredSchedulingTermFluent(V1PreferredSchedulingTerm instance) { this.copyInstance(instance); } - private V1NodeSelectorTermBuilder preference; - private Integer weight; + + public V1NodeSelectorTerm buildPreference() { + return this.preference != null ? this.preference.build() : null; + } protected void copyInstance(V1PreferredSchedulingTerm instance) { instance = instance != null ? instance : new V1PreferredSchedulingTerm(); @@ -32,38 +38,6 @@ protected void copyInstance(V1PreferredSchedulingTerm instance) { } } - public V1NodeSelectorTerm buildPreference() { - return this.preference != null ? this.preference.build() : null; - } - - public A withPreference(V1NodeSelectorTerm preference) { - this._visitables.remove("preference"); - if (preference != null) { - this.preference = new V1NodeSelectorTermBuilder(preference); - this._visitables.get("preference").add(this.preference); - } else { - this.preference = null; - this._visitables.get("preference").remove(this.preference); - } - return (A) this; - } - - public boolean hasPreference() { - return this.preference != null; - } - - public PreferenceNested withNewPreference() { - return new PreferenceNested(null); - } - - public PreferenceNested withNewPreferenceLike(V1NodeSelectorTerm item) { - return new PreferenceNested(item); - } - - public PreferenceNested editPreference() { - return this.withNewPreferenceLike(Optional.ofNullable(this.buildPreference()).orElse(null)); - } - public PreferenceNested editOrNewPreference() { return this.withNewPreferenceLike(Optional.ofNullable(this.buildPreference()).orElse(new V1NodeSelectorTermBuilder().build())); } @@ -72,17 +46,8 @@ public PreferenceNested editOrNewPreferenceLike(V1NodeSelectorTerm item) { return this.withNewPreferenceLike(Optional.ofNullable(this.buildPreference()).orElse(item)); } - public Integer getWeight() { - return this.weight; - } - - public A withWeight(Integer weight) { - this.weight = weight; - return (A) this; - } - - public boolean hasWeight() { - return this.weight != null; + public PreferenceNested editPreference() { + return this.withNewPreferenceLike(Optional.ofNullable(this.buildPreference()).orElse(null)); } public boolean equals(Object o) { @@ -105,6 +70,18 @@ public boolean equals(Object o) { return true; } + public Integer getWeight() { + return this.weight; + } + + public boolean hasPreference() { + return this.preference != null; + } + + public boolean hasWeight() { + return this.weight != null; + } + public int hashCode() { return Objects.hash(preference, weight); } @@ -124,12 +101,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public PreferenceNested withNewPreference() { + return new PreferenceNested(null); + } + + public PreferenceNested withNewPreferenceLike(V1NodeSelectorTerm item) { + return new PreferenceNested(item); + } + + public A withPreference(V1NodeSelectorTerm preference) { + this._visitables.remove("preference"); + if (preference != null) { + this.preference = new V1NodeSelectorTermBuilder(preference); + this._visitables.get("preference").add(this.preference); + } else { + this.preference = null; + this._visitables.get("preference").remove(this.preference); + } + return (A) this; + } + + public A withWeight(Integer weight) { + this.weight = weight; + return (A) this; + } public class PreferenceNested extends V1NodeSelectorTermFluent> implements Nested{ + + V1NodeSelectorTermBuilder builder; + PreferenceNested(V1NodeSelectorTerm item) { this.builder = new V1NodeSelectorTermBuilder(this, item); } - V1NodeSelectorTermBuilder builder; - + public N and() { return (N) V1PreferredSchedulingTermFluent.this.withPreference(builder.build()); } @@ -138,7 +142,5 @@ public N endPreference() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java index ab5ea81ca8..da74b11aad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PriorityClassBuilder extends V1PriorityClassFluent implements VisitableBuilder{ + + V1PriorityClassFluent fluent; + public V1PriorityClassBuilder() { this(new V1PriorityClass()); } @@ -11,17 +14,16 @@ public V1PriorityClassBuilder(V1PriorityClassFluent fluent) { this(fluent, new V1PriorityClass()); } - public V1PriorityClassBuilder(V1PriorityClassFluent fluent,V1PriorityClass instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PriorityClassBuilder(V1PriorityClass instance) { this.fluent = this; this.copyInstance(instance); } - V1PriorityClassFluent fluent; + public V1PriorityClassBuilder(V1PriorityClassFluent fluent,V1PriorityClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PriorityClass build() { V1PriorityClass buildable = new V1PriorityClass(); buildable.setApiVersion(fluent.getApiVersion()); @@ -34,5 +36,4 @@ public V1PriorityClass build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java index e19c0143f9..eef31e2bbd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java @@ -1,27 +1,22 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.String; +import java.lang.Boolean; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; -import java.lang.Boolean; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1PriorityClassFluent> extends BaseFluent{ - public V1PriorityClassFluent() { - } - - public V1PriorityClassFluent(V1PriorityClass instance) { - this.copyInstance(instance); - } + private String apiVersion; private String description; private Boolean globalDefault; @@ -29,6 +24,17 @@ public V1PriorityClassFluent(V1PriorityClass instance) { private V1ObjectMetaBuilder metadata; private String preemptionPolicy; private Integer value; + + public V1PriorityClassFluent() { + } + + public V1PriorityClassFluent(V1PriorityClass instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } protected void copyInstance(V1PriorityClass instance) { instance = instance != null ? instance : new V1PriorityClass(); @@ -43,86 +49,6 @@ protected void copyInstance(V1PriorityClass instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getDescription() { - return this.description; - } - - public A withDescription(String description) { - this.description = description; - return (A) this; - } - - public boolean hasDescription() { - return this.description != null; - } - - public Boolean getGlobalDefault() { - return this.globalDefault; - } - - public A withGlobalDefault(Boolean globalDefault) { - this.globalDefault = globalDefault; - return (A) this; - } - - public boolean hasGlobalDefault() { - return this.globalDefault != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -135,32 +61,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public String getPreemptionPolicy() { - return this.preemptionPolicy; - } - - public A withPreemptionPolicy(String preemptionPolicy) { - this.preemptionPolicy = preemptionPolicy; - return (A) this; - } - - public boolean hasPreemptionPolicy() { - return this.preemptionPolicy != null; - } - - public Integer getValue() { - return this.value; - } - - public A withValue(Integer value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -196,6 +96,58 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getDescription() { + return this.description; + } + + public Boolean getGlobalDefault() { + return this.globalDefault; + } + + public String getKind() { + return this.kind; + } + + public String getPreemptionPolicy() { + return this.preemptionPolicy; + } + + public Integer getValue() { + return this.value; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasDescription() { + return this.description != null; + } + + public boolean hasGlobalDefault() { + return this.globalDefault != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasPreemptionPolicy() { + return this.preemptionPolicy != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(apiVersion, description, globalDefault, kind, metadata, preemptionPolicy, value); } @@ -241,15 +193,67 @@ public String toString() { return sb.toString(); } + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withDescription(String description) { + this.description = description; + return (A) this; + } + public A withGlobalDefault() { return withGlobalDefault(true); } + + public A withGlobalDefault(Boolean globalDefault) { + this.globalDefault = globalDefault; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public A withPreemptionPolicy(String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + return (A) this; + } + + public A withValue(Integer value) { + this.value = value; + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1PriorityClassFluent.this.withMetadata(builder.build()); } @@ -258,7 +262,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java index 813ac54346..698f80b359 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PriorityClassListBuilder extends V1PriorityClassListFluent implements VisitableBuilder{ + + V1PriorityClassListFluent fluent; + public V1PriorityClassListBuilder() { this(new V1PriorityClassList()); } @@ -11,17 +14,16 @@ public V1PriorityClassListBuilder(V1PriorityClassListFluent fluent) { this(fluent, new V1PriorityClassList()); } - public V1PriorityClassListBuilder(V1PriorityClassListFluent fluent,V1PriorityClassList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PriorityClassListBuilder(V1PriorityClassList instance) { this.fluent = this; this.copyInstance(instance); } - V1PriorityClassListFluent fluent; + public V1PriorityClassListBuilder(V1PriorityClassListFluent fluent,V1PriorityClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PriorityClassList build() { V1PriorityClassList buildable = new V1PriorityClassList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1PriorityClassList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java index 087843de75..76b0c2c5bd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PriorityClassListFluent> extends BaseFluent{ - public V1PriorityClassListFluent() { - } - - public V1PriorityClassListFluent(V1PriorityClassList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1PriorityClassList instance) { - instance = instance != null ? instance : new V1PriorityClassList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1PriorityClassListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1PriorityClassListFluent(V1PriorityClassList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1PriorityClass item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1PriorityClass item : items) { + V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1PriorityClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1PriorityClass item) { + return new ItemsNested(-1, item); } public A addToItems(V1PriorityClass... items) { @@ -96,68 +65,31 @@ public A addToItems(V1PriorityClass... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1PriorityClass item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1PriorityClass item : items) { - V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); + V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1PriorityClass... items) { - if (this.items == null) { - return (A) this; - } - for (V1PriorityClass item : items) { - V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1PriorityClass item : items) { - V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1PriorityClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1PriorityClass buildFirstItem() { + return this.items.get(0).build(); } public V1PriorityClass buildItem(int index) { return this.items.get(index).build(); } - public V1PriorityClass buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1PriorityClass buildLastItem() { @@ -173,73 +105,34 @@ public V1PriorityClass buildMatchingItem(Predicate predi return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1PriorityClassBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1PriorityClass item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1PriorityClassList instance) { + instance = instance != null ? instance : new V1PriorityClassList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1PriorityClass... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1PriorityClass item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1PriorityClass item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1PriorityClass item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predica return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1PriorityClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1PriorityClass item : items) { + V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1PriorityClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1PriorityClass item : items) { + V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1PriorityClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1PriorityClass item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1PriorityClass item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1PriorityClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1PriorityClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1PriorityClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1PriorityClassFluent> implements Nested{ + + V1PriorityClassBuilder builder; + int index; + ItemsNested(int index,V1PriorityClass item) { this.index = index; this.builder = new V1PriorityClassBuilder(this, item); } - V1PriorityClassBuilder builder; - int index; - + public N and() { return (N) V1PriorityClassListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1PriorityClassListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationBuilder.java index 76dcd15786..cc11e72e16 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PriorityLevelConfigurationBuilder extends V1PriorityLevelConfigurationFluent implements VisitableBuilder{ + + V1PriorityLevelConfigurationFluent fluent; + public V1PriorityLevelConfigurationBuilder() { this(new V1PriorityLevelConfiguration()); } @@ -11,17 +14,16 @@ public V1PriorityLevelConfigurationBuilder(V1PriorityLevelConfigurationFluent this(fluent, new V1PriorityLevelConfiguration()); } - public V1PriorityLevelConfigurationBuilder(V1PriorityLevelConfigurationFluent fluent,V1PriorityLevelConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PriorityLevelConfigurationBuilder(V1PriorityLevelConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1PriorityLevelConfigurationFluent fluent; + public V1PriorityLevelConfigurationBuilder(V1PriorityLevelConfigurationFluent fluent,V1PriorityLevelConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PriorityLevelConfiguration build() { V1PriorityLevelConfiguration buildable = new V1PriorityLevelConfiguration(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1PriorityLevelConfiguration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionBuilder.java index 178d4f3b16..c30e3de0ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PriorityLevelConfigurationConditionBuilder extends V1PriorityLevelConfigurationConditionFluent implements VisitableBuilder{ + + V1PriorityLevelConfigurationConditionFluent fluent; + public V1PriorityLevelConfigurationConditionBuilder() { this(new V1PriorityLevelConfigurationCondition()); } @@ -11,17 +14,16 @@ public V1PriorityLevelConfigurationConditionBuilder(V1PriorityLevelConfiguration this(fluent, new V1PriorityLevelConfigurationCondition()); } - public V1PriorityLevelConfigurationConditionBuilder(V1PriorityLevelConfigurationConditionFluent fluent,V1PriorityLevelConfigurationCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PriorityLevelConfigurationConditionBuilder(V1PriorityLevelConfigurationCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1PriorityLevelConfigurationConditionFluent fluent; + public V1PriorityLevelConfigurationConditionBuilder(V1PriorityLevelConfigurationConditionFluent fluent,V1PriorityLevelConfigurationCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PriorityLevelConfigurationCondition build() { V1PriorityLevelConfigurationCondition buildable = new V1PriorityLevelConfigurationCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -32,5 +34,4 @@ public V1PriorityLevelConfigurationCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionFluent.java index 016c4ff3aa..b90849822d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1PriorityLevelConfigurationConditionFluent> extends BaseFluent{ - public V1PriorityLevelConfigurationConditionFluent() { - } - - public V1PriorityLevelConfigurationConditionFluent(V1PriorityLevelConfigurationCondition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1PriorityLevelConfigurationConditionFluent() { + } + public V1PriorityLevelConfigurationConditionFluent(V1PriorityLevelConfigurationCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1PriorityLevelConfigurationCondition instance) { instance = instance != null ? instance : new V1PriorityLevelConfigurationCondition(); if (instance != null) { @@ -36,71 +38,6 @@ protected void copyInstance(V1PriorityLevelConfigurationCondition instance) { } } - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -130,6 +67,46 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; + } + + public String getMessage() { + return this.message; + } + + public String getReason() { + return this.reason; + } + + public String getStatus() { + return this.status; + } + + public String getType() { + return this.type; + } + + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasReason() { + return this.reason != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } @@ -165,5 +142,29 @@ public String toString() { return sb.toString(); } - + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationFluent.java index 8fed4a55de..855d884cbf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1PriorityLevelConfigurationFluent> extends BaseFluent{ - public V1PriorityLevelConfigurationFluent() { - } - - public V1PriorityLevelConfigurationFluent(V1PriorityLevelConfiguration instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1PriorityLevelConfigurationSpecBuilder spec; private V1PriorityLevelConfigurationStatusBuilder status; - - protected void copyInstance(V1PriorityLevelConfiguration instance) { - instance = instance != null ? instance : new V1PriorityLevelConfiguration(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1PriorityLevelConfigurationFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1PriorityLevelConfigurationFluent(V1PriorityLevelConfiguration instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1PriorityLevelConfigurationSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1PriorityLevelConfigurationStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1PriorityLevelConfiguration instance) { + instance = instance != null ? instance : new V1PriorityLevelConfiguration(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1PriorityLevelConfigurationSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1PriorityLevelConfigurationSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1PriorityLevelConfigurationSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1PriorityLevelConfigurationSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PriorityLevelConfigurationSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1PriorityLevelConfigurationSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1PriorityLevelConfigurationStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1PriorityLevelConfigurationStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1PriorityLevelConfigurationStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PriorityLevelConfigurationStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1PriorityLevelConfigurationStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1PriorityLevelConfigurationStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PriorityLevelConfigurationStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1PriorityLevelConfigurationStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1PriorityLevelConfigurationSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1PriorityLevelConfigurationStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1PriorityLevelConfigurationSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1PriorityLevelConfigurationSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1PriorityLevelConfigurationStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1PriorityLevelConfigurationStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1PriorityLevelConfigurationFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1PriorityLevelConfigurationSpecFluent> implements Nested{ + + V1PriorityLevelConfigurationSpecBuilder builder; + SpecNested(V1PriorityLevelConfigurationSpec item) { this.builder = new V1PriorityLevelConfigurationSpecBuilder(this, item); } - V1PriorityLevelConfigurationSpecBuilder builder; - + public N and() { return (N) V1PriorityLevelConfigurationFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1PriorityLevelConfigurationStatusFluent> implements Nested{ + + V1PriorityLevelConfigurationStatusBuilder builder; + StatusNested(V1PriorityLevelConfigurationStatus item) { this.builder = new V1PriorityLevelConfigurationStatusBuilder(this, item); } - V1PriorityLevelConfigurationStatusBuilder builder; - + public N and() { return (N) V1PriorityLevelConfigurationFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListBuilder.java index e1ae282a36..63c00f4379 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PriorityLevelConfigurationListBuilder extends V1PriorityLevelConfigurationListFluent implements VisitableBuilder{ + + V1PriorityLevelConfigurationListFluent fluent; + public V1PriorityLevelConfigurationListBuilder() { this(new V1PriorityLevelConfigurationList()); } @@ -11,17 +14,16 @@ public V1PriorityLevelConfigurationListBuilder(V1PriorityLevelConfigurationListF this(fluent, new V1PriorityLevelConfigurationList()); } - public V1PriorityLevelConfigurationListBuilder(V1PriorityLevelConfigurationListFluent fluent,V1PriorityLevelConfigurationList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PriorityLevelConfigurationListBuilder(V1PriorityLevelConfigurationList instance) { this.fluent = this; this.copyInstance(instance); } - V1PriorityLevelConfigurationListFluent fluent; + public V1PriorityLevelConfigurationListBuilder(V1PriorityLevelConfigurationListFluent fluent,V1PriorityLevelConfigurationList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PriorityLevelConfigurationList build() { V1PriorityLevelConfigurationList buildable = new V1PriorityLevelConfigurationList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1PriorityLevelConfigurationList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListFluent.java index b391d8d71d..199f612e5e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PriorityLevelConfigurationListFluent> extends BaseFluent{ - public V1PriorityLevelConfigurationListFluent() { - } - - public V1PriorityLevelConfigurationListFluent(V1PriorityLevelConfigurationList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1PriorityLevelConfigurationList instance) { - instance = instance != null ? instance : new V1PriorityLevelConfigurationList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1PriorityLevelConfigurationListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1PriorityLevelConfigurationListFluent(V1PriorityLevelConfigurationList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1PriorityLevelConfiguration item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1PriorityLevelConfiguration item : items) { + V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1PriorityLevelConfiguration item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1PriorityLevelConfiguration item) { + return new ItemsNested(-1, item); } public A addToItems(V1PriorityLevelConfiguration... items) { @@ -96,68 +65,31 @@ public A addToItems(V1PriorityLevelConfiguration... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1PriorityLevelConfiguration item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1PriorityLevelConfiguration item : items) { - V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); + V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1PriorityLevelConfiguration... items) { - if (this.items == null) { - return (A) this; - } - for (V1PriorityLevelConfiguration item : items) { - V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1PriorityLevelConfiguration item : items) { - V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1PriorityLevelConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1PriorityLevelConfiguration buildFirstItem() { + return this.items.get(0).build(); } public V1PriorityLevelConfiguration buildItem(int index) { return this.items.get(index).build(); } - public V1PriorityLevelConfiguration buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1PriorityLevelConfiguration buildLastItem() { @@ -173,73 +105,34 @@ public V1PriorityLevelConfiguration buildMatchingItem(Predicate predicate) { - for (V1PriorityLevelConfigurationBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1PriorityLevelConfiguration item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1PriorityLevelConfigurationList instance) { + instance = instance != null ? instance : new V1PriorityLevelConfigurationList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1PriorityLevelConfiguration... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1PriorityLevelConfiguration item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1PriorityLevelConfiguration item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1PriorityLevelConfiguration item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1PriorityLevelConfigurationBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1PriorityLevelConfiguration item : items) { + V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1PriorityLevelConfiguration... items) { + if (this.items == null) { + return (A) this; + } + for (V1PriorityLevelConfiguration item : items) { + V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1PriorityLevelConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1PriorityLevelConfiguration item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1PriorityLevelConfiguration item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1PriorityLevelConfiguration item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1PriorityLevelConfiguration... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1PriorityLevelConfiguration item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1PriorityLevelConfigurationFluent> implements Nested{ + + V1PriorityLevelConfigurationBuilder builder; + int index; + ItemsNested(int index,V1PriorityLevelConfiguration item) { this.index = index; this.builder = new V1PriorityLevelConfigurationBuilder(this, item); } - V1PriorityLevelConfigurationBuilder builder; - int index; - + public N and() { return (N) V1PriorityLevelConfigurationListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1PriorityLevelConfigurationListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceBuilder.java index 415ef3ac03..dda9d7338e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PriorityLevelConfigurationReferenceBuilder extends V1PriorityLevelConfigurationReferenceFluent implements VisitableBuilder{ + + V1PriorityLevelConfigurationReferenceFluent fluent; + public V1PriorityLevelConfigurationReferenceBuilder() { this(new V1PriorityLevelConfigurationReference()); } @@ -11,22 +14,20 @@ public V1PriorityLevelConfigurationReferenceBuilder(V1PriorityLevelConfiguration this(fluent, new V1PriorityLevelConfigurationReference()); } - public V1PriorityLevelConfigurationReferenceBuilder(V1PriorityLevelConfigurationReferenceFluent fluent,V1PriorityLevelConfigurationReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PriorityLevelConfigurationReferenceBuilder(V1PriorityLevelConfigurationReference instance) { this.fluent = this; this.copyInstance(instance); } - V1PriorityLevelConfigurationReferenceFluent fluent; + public V1PriorityLevelConfigurationReferenceBuilder(V1PriorityLevelConfigurationReferenceFluent fluent,V1PriorityLevelConfigurationReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PriorityLevelConfigurationReference build() { V1PriorityLevelConfigurationReference buildable = new V1PriorityLevelConfigurationReference(); buildable.setName(fluent.getName()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceFluent.java index ea1d9db87e..95f3367060 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1PriorityLevelConfigurationReferenceFluent> extends BaseFluent{ + + private String name; + public V1PriorityLevelConfigurationReferenceFluent() { } public V1PriorityLevelConfigurationReferenceFluent(V1PriorityLevelConfigurationReference instance) { this.copyInstance(instance); } - private String name; - + protected void copyInstance(V1PriorityLevelConfigurationReference instance) { instance = instance != null ? instance : new V1PriorityLevelConfigurationReference(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1PriorityLevelConfigurationReference instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(name); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecBuilder.java index cfa3ba4bd3..06071e271c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PriorityLevelConfigurationSpecBuilder extends V1PriorityLevelConfigurationSpecFluent implements VisitableBuilder{ + + V1PriorityLevelConfigurationSpecFluent fluent; + public V1PriorityLevelConfigurationSpecBuilder() { this(new V1PriorityLevelConfigurationSpec()); } @@ -11,17 +14,16 @@ public V1PriorityLevelConfigurationSpecBuilder(V1PriorityLevelConfigurationSpecF this(fluent, new V1PriorityLevelConfigurationSpec()); } - public V1PriorityLevelConfigurationSpecBuilder(V1PriorityLevelConfigurationSpecFluent fluent,V1PriorityLevelConfigurationSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PriorityLevelConfigurationSpecBuilder(V1PriorityLevelConfigurationSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1PriorityLevelConfigurationSpecFluent fluent; + public V1PriorityLevelConfigurationSpecBuilder(V1PriorityLevelConfigurationSpecFluent fluent,V1PriorityLevelConfigurationSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PriorityLevelConfigurationSpec build() { V1PriorityLevelConfigurationSpec buildable = new V1PriorityLevelConfigurationSpec(); buildable.setExempt(fluent.buildExempt()); @@ -30,5 +32,4 @@ public V1PriorityLevelConfigurationSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecFluent.java index c7cc958e3d..7f111b3360 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecFluent.java @@ -1,28 +1,38 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1PriorityLevelConfigurationSpecFluent> extends BaseFluent{ + + private V1ExemptPriorityLevelConfigurationBuilder exempt; + private V1LimitedPriorityLevelConfigurationBuilder limited; + private String type; + public V1PriorityLevelConfigurationSpecFluent() { } public V1PriorityLevelConfigurationSpecFluent(V1PriorityLevelConfigurationSpec instance) { this.copyInstance(instance); } - private V1ExemptPriorityLevelConfigurationBuilder exempt; - private V1LimitedPriorityLevelConfigurationBuilder limited; - private String type; + + public V1ExemptPriorityLevelConfiguration buildExempt() { + return this.exempt != null ? this.exempt.build() : null; + } + + public V1LimitedPriorityLevelConfiguration buildLimited() { + return this.limited != null ? this.limited.build() : null; + } protected void copyInstance(V1PriorityLevelConfigurationSpec instance) { instance = instance != null ? instance : new V1PriorityLevelConfigurationSpec(); @@ -33,38 +43,14 @@ protected void copyInstance(V1PriorityLevelConfigurationSpec instance) { } } - public V1ExemptPriorityLevelConfiguration buildExempt() { - return this.exempt != null ? this.exempt.build() : null; - } - - public A withExempt(V1ExemptPriorityLevelConfiguration exempt) { - this._visitables.remove("exempt"); - if (exempt != null) { - this.exempt = new V1ExemptPriorityLevelConfigurationBuilder(exempt); - this._visitables.get("exempt").add(this.exempt); - } else { - this.exempt = null; - this._visitables.get("exempt").remove(this.exempt); - } - return (A) this; - } - - public boolean hasExempt() { - return this.exempt != null; - } - - public ExemptNested withNewExempt() { - return new ExemptNested(null); - } - - public ExemptNested withNewExemptLike(V1ExemptPriorityLevelConfiguration item) { - return new ExemptNested(item); - } - public ExemptNested editExempt() { return this.withNewExemptLike(Optional.ofNullable(this.buildExempt()).orElse(null)); } + public LimitedNested editLimited() { + return this.withNewLimitedLike(Optional.ofNullable(this.buildLimited()).orElse(null)); + } + public ExemptNested editOrNewExempt() { return this.withNewExemptLike(Optional.ofNullable(this.buildExempt()).orElse(new V1ExemptPriorityLevelConfigurationBuilder().build())); } @@ -73,38 +59,6 @@ public ExemptNested editOrNewExemptLike(V1ExemptPriorityLevelConfiguration it return this.withNewExemptLike(Optional.ofNullable(this.buildExempt()).orElse(item)); } - public V1LimitedPriorityLevelConfiguration buildLimited() { - return this.limited != null ? this.limited.build() : null; - } - - public A withLimited(V1LimitedPriorityLevelConfiguration limited) { - this._visitables.remove("limited"); - if (limited != null) { - this.limited = new V1LimitedPriorityLevelConfigurationBuilder(limited); - this._visitables.get("limited").add(this.limited); - } else { - this.limited = null; - this._visitables.get("limited").remove(this.limited); - } - return (A) this; - } - - public boolean hasLimited() { - return this.limited != null; - } - - public LimitedNested withNewLimited() { - return new LimitedNested(null); - } - - public LimitedNested withNewLimitedLike(V1LimitedPriorityLevelConfiguration item) { - return new LimitedNested(item); - } - - public LimitedNested editLimited() { - return this.withNewLimitedLike(Optional.ofNullable(this.buildLimited()).orElse(null)); - } - public LimitedNested editOrNewLimited() { return this.withNewLimitedLike(Optional.ofNullable(this.buildLimited()).orElse(new V1LimitedPriorityLevelConfigurationBuilder().build())); } @@ -113,19 +67,6 @@ public LimitedNested editOrNewLimitedLike(V1LimitedPriorityLevelConfiguration return this.withNewLimitedLike(Optional.ofNullable(this.buildLimited()).orElse(item)); } - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -149,6 +90,22 @@ public boolean equals(Object o) { return true; } + public String getType() { + return this.type; + } + + public boolean hasExempt() { + return this.exempt != null; + } + + public boolean hasLimited() { + return this.limited != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(exempt, limited, type); } @@ -173,12 +130,59 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withExempt(V1ExemptPriorityLevelConfiguration exempt) { + this._visitables.remove("exempt"); + if (exempt != null) { + this.exempt = new V1ExemptPriorityLevelConfigurationBuilder(exempt); + this._visitables.get("exempt").add(this.exempt); + } else { + this.exempt = null; + this._visitables.get("exempt").remove(this.exempt); + } + return (A) this; + } + + public A withLimited(V1LimitedPriorityLevelConfiguration limited) { + this._visitables.remove("limited"); + if (limited != null) { + this.limited = new V1LimitedPriorityLevelConfigurationBuilder(limited); + this._visitables.get("limited").add(this.limited); + } else { + this.limited = null; + this._visitables.get("limited").remove(this.limited); + } + return (A) this; + } + + public ExemptNested withNewExempt() { + return new ExemptNested(null); + } + + public ExemptNested withNewExemptLike(V1ExemptPriorityLevelConfiguration item) { + return new ExemptNested(item); + } + + public LimitedNested withNewLimited() { + return new LimitedNested(null); + } + + public LimitedNested withNewLimitedLike(V1LimitedPriorityLevelConfiguration item) { + return new LimitedNested(item); + } + + public A withType(String type) { + this.type = type; + return (A) this; + } public class ExemptNested extends V1ExemptPriorityLevelConfigurationFluent> implements Nested{ + + V1ExemptPriorityLevelConfigurationBuilder builder; + ExemptNested(V1ExemptPriorityLevelConfiguration item) { this.builder = new V1ExemptPriorityLevelConfigurationBuilder(this, item); } - V1ExemptPriorityLevelConfigurationBuilder builder; - + public N and() { return (N) V1PriorityLevelConfigurationSpecFluent.this.withExempt(builder.build()); } @@ -187,14 +191,15 @@ public N endExempt() { return and(); } - } public class LimitedNested extends V1LimitedPriorityLevelConfigurationFluent> implements Nested{ + + V1LimitedPriorityLevelConfigurationBuilder builder; + LimitedNested(V1LimitedPriorityLevelConfiguration item) { this.builder = new V1LimitedPriorityLevelConfigurationBuilder(this, item); } - V1LimitedPriorityLevelConfigurationBuilder builder; - + public N and() { return (N) V1PriorityLevelConfigurationSpecFluent.this.withLimited(builder.build()); } @@ -203,7 +208,5 @@ public N endLimited() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusBuilder.java index 8b07883fd4..f66cee74e6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1PriorityLevelConfigurationStatusBuilder extends V1PriorityLevelConfigurationStatusFluent implements VisitableBuilder{ + + V1PriorityLevelConfigurationStatusFluent fluent; + public V1PriorityLevelConfigurationStatusBuilder() { this(new V1PriorityLevelConfigurationStatus()); } @@ -11,22 +14,20 @@ public V1PriorityLevelConfigurationStatusBuilder(V1PriorityLevelConfigurationSta this(fluent, new V1PriorityLevelConfigurationStatus()); } - public V1PriorityLevelConfigurationStatusBuilder(V1PriorityLevelConfigurationStatusFluent fluent,V1PriorityLevelConfigurationStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PriorityLevelConfigurationStatusBuilder(V1PriorityLevelConfigurationStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1PriorityLevelConfigurationStatusFluent fluent; + public V1PriorityLevelConfigurationStatusBuilder(V1PriorityLevelConfigurationStatusFluent fluent,V1PriorityLevelConfigurationStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PriorityLevelConfigurationStatus build() { V1PriorityLevelConfigurationStatus buildable = new V1PriorityLevelConfigurationStatus(); buildable.setConditions(fluent.buildConditions()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusFluent.java index d91174ed85..b0ca19a7e2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusFluent.java @@ -1,67 +1,52 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1PriorityLevelConfigurationStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + public V1PriorityLevelConfigurationStatusFluent() { } public V1PriorityLevelConfigurationStatusFluent(V1PriorityLevelConfigurationStatus instance) { this.copyInstance(instance); } - private ArrayList conditions; - - protected void copyInstance(V1PriorityLevelConfigurationStatus instance) { - instance = instance != null ? instance : new V1PriorityLevelConfigurationStatus(); - if (instance != null) { - this.withConditions(instance.getConditions()); - } - } - - public A addToConditions(int index,V1PriorityLevelConfigurationCondition item) { + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1PriorityLevelConfigurationCondition item : items) { + V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1PriorityLevelConfigurationCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1PriorityLevelConfigurationCondition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1PriorityLevelConfigurationCondition... items) { @@ -76,66 +61,29 @@ public A addToConditions(V1PriorityLevelConfigurationCondition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1PriorityLevelConfigurationCondition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1PriorityLevelConfigurationCondition item : items) { - V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); + V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1PriorityLevelConfigurationCondition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1PriorityLevelConfigurationCondition item : items) { - V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1PriorityLevelConfigurationCondition item : items) { - V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1PriorityLevelConfigurationConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1PriorityLevelConfigurationCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1PriorityLevelConfigurationCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1PriorityLevelConfigurationCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -153,61 +101,15 @@ public V1PriorityLevelConfigurationCondition buildMatchingCondition(Predicate predicate) { - for (V1PriorityLevelConfigurationConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1PriorityLevelConfigurationCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(V1PriorityLevelConfigurationCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1PriorityLevelConfigurationCondition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1PriorityLevelConfigurationStatus instance) { + instance = instance != null ? instance : new V1PriorityLevelConfigurationStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1PriorityLevelConfigurationCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1PriorityLevelConfigurationCondition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -259,10 +161,82 @@ public boolean equals(Object o) { return true; } + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1PriorityLevelConfigurationConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(conditions); } + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1PriorityLevelConfigurationCondition item : items) { + V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1PriorityLevelConfigurationCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1PriorityLevelConfigurationCondition item : items) { + V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1PriorityLevelConfigurationConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1PriorityLevelConfigurationCondition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1PriorityLevelConfigurationCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -273,14 +247,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1PriorityLevelConfigurationCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1PriorityLevelConfigurationCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1PriorityLevelConfigurationCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } public class ConditionsNested extends V1PriorityLevelConfigurationConditionFluent> implements Nested{ + + V1PriorityLevelConfigurationConditionBuilder builder; + int index; + ConditionsNested(int index,V1PriorityLevelConfigurationCondition item) { this.index = index; this.builder = new V1PriorityLevelConfigurationConditionBuilder(this, item); } - V1PriorityLevelConfigurationConditionBuilder builder; - int index; - + public N and() { return (N) V1PriorityLevelConfigurationStatusFluent.this.setToConditions(index, builder.build()); } @@ -289,7 +293,5 @@ public N endCondition() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java index a3a351c82e..a72c8f530a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ProbeBuilder extends V1ProbeFluent implements VisitableBuilder{ + + V1ProbeFluent fluent; + public V1ProbeBuilder() { this(new V1Probe()); } @@ -11,17 +14,16 @@ public V1ProbeBuilder(V1ProbeFluent fluent) { this(fluent, new V1Probe()); } - public V1ProbeBuilder(V1ProbeFluent fluent,V1Probe instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ProbeBuilder(V1Probe instance) { this.fluent = this; this.copyInstance(instance); } - V1ProbeFluent fluent; + public V1ProbeBuilder(V1ProbeFluent fluent,V1Probe instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Probe build() { V1Probe buildable = new V1Probe(); buildable.setExec(fluent.buildExec()); @@ -37,5 +39,4 @@ public V1Probe build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java index 2749c81cf4..c5c36077ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java @@ -1,27 +1,22 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import io.kubernetes.client.fluent.Nested; import java.lang.Integer; import java.lang.Long; -import java.util.Objects; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ProbeFluent> extends BaseFluent{ - public V1ProbeFluent() { - } - - public V1ProbeFluent(V1Probe instance) { - this.copyInstance(instance); - } + private V1ExecActionBuilder exec; private Integer failureThreshold; private V1GRPCActionBuilder grpc; @@ -32,6 +27,29 @@ public V1ProbeFluent(V1Probe instance) { private V1TCPSocketActionBuilder tcpSocket; private Long terminationGracePeriodSeconds; private Integer timeoutSeconds; + + public V1ProbeFluent() { + } + + public V1ProbeFluent(V1Probe instance) { + this.copyInstance(instance); + } + + public V1ExecAction buildExec() { + return this.exec != null ? this.exec.build() : null; + } + + public V1GRPCAction buildGrpc() { + return this.grpc != null ? this.grpc.build() : null; + } + + public V1HTTPGetAction buildHttpGet() { + return this.httpGet != null ? this.httpGet.build() : null; + } + + public V1TCPSocketAction buildTcpSocket() { + return this.tcpSocket != null ? this.tcpSocket.build() : null; + } protected void copyInstance(V1Probe instance) { instance = instance != null ? instance : new V1Probe(); @@ -49,36 +67,16 @@ protected void copyInstance(V1Probe instance) { } } - public V1ExecAction buildExec() { - return this.exec != null ? this.exec.build() : null; - } - - public A withExec(V1ExecAction exec) { - this._visitables.remove("exec"); - if (exec != null) { - this.exec = new V1ExecActionBuilder(exec); - this._visitables.get("exec").add(this.exec); - } else { - this.exec = null; - this._visitables.get("exec").remove(this.exec); - } - return (A) this; - } - - public boolean hasExec() { - return this.exec != null; - } - - public ExecNested withNewExec() { - return new ExecNested(null); + public ExecNested editExec() { + return this.withNewExecLike(Optional.ofNullable(this.buildExec()).orElse(null)); } - public ExecNested withNewExecLike(V1ExecAction item) { - return new ExecNested(item); + public GrpcNested editGrpc() { + return this.withNewGrpcLike(Optional.ofNullable(this.buildGrpc()).orElse(null)); } - public ExecNested editExec() { - return this.withNewExecLike(Optional.ofNullable(this.buildExec()).orElse(null)); + public HttpGetNested editHttpGet() { + return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(null)); } public ExecNested editOrNewExec() { @@ -89,51 +87,6 @@ public ExecNested editOrNewExecLike(V1ExecAction item) { return this.withNewExecLike(Optional.ofNullable(this.buildExec()).orElse(item)); } - public Integer getFailureThreshold() { - return this.failureThreshold; - } - - public A withFailureThreshold(Integer failureThreshold) { - this.failureThreshold = failureThreshold; - return (A) this; - } - - public boolean hasFailureThreshold() { - return this.failureThreshold != null; - } - - public V1GRPCAction buildGrpc() { - return this.grpc != null ? this.grpc.build() : null; - } - - public A withGrpc(V1GRPCAction grpc) { - this._visitables.remove("grpc"); - if (grpc != null) { - this.grpc = new V1GRPCActionBuilder(grpc); - this._visitables.get("grpc").add(this.grpc); - } else { - this.grpc = null; - this._visitables.get("grpc").remove(this.grpc); - } - return (A) this; - } - - public boolean hasGrpc() { - return this.grpc != null; - } - - public GrpcNested withNewGrpc() { - return new GrpcNested(null); - } - - public GrpcNested withNewGrpcLike(V1GRPCAction item) { - return new GrpcNested(item); - } - - public GrpcNested editGrpc() { - return this.withNewGrpcLike(Optional.ofNullable(this.buildGrpc()).orElse(null)); - } - public GrpcNested editOrNewGrpc() { return this.withNewGrpcLike(Optional.ofNullable(this.buildGrpc()).orElse(new V1GRPCActionBuilder().build())); } @@ -142,38 +95,6 @@ public GrpcNested editOrNewGrpcLike(V1GRPCAction item) { return this.withNewGrpcLike(Optional.ofNullable(this.buildGrpc()).orElse(item)); } - public V1HTTPGetAction buildHttpGet() { - return this.httpGet != null ? this.httpGet.build() : null; - } - - public A withHttpGet(V1HTTPGetAction httpGet) { - this._visitables.remove("httpGet"); - if (httpGet != null) { - this.httpGet = new V1HTTPGetActionBuilder(httpGet); - this._visitables.get("httpGet").add(this.httpGet); - } else { - this.httpGet = null; - this._visitables.get("httpGet").remove(this.httpGet); - } - return (A) this; - } - - public boolean hasHttpGet() { - return this.httpGet != null; - } - - public HttpGetNested withNewHttpGet() { - return new HttpGetNested(null); - } - - public HttpGetNested withNewHttpGetLike(V1HTTPGetAction item) { - return new HttpGetNested(item); - } - - public HttpGetNested editHttpGet() { - return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(null)); - } - public HttpGetNested editOrNewHttpGet() { return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(new V1HTTPGetActionBuilder().build())); } @@ -182,77 +103,6 @@ public HttpGetNested editOrNewHttpGetLike(V1HTTPGetAction item) { return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(item)); } - public Integer getInitialDelaySeconds() { - return this.initialDelaySeconds; - } - - public A withInitialDelaySeconds(Integer initialDelaySeconds) { - this.initialDelaySeconds = initialDelaySeconds; - return (A) this; - } - - public boolean hasInitialDelaySeconds() { - return this.initialDelaySeconds != null; - } - - public Integer getPeriodSeconds() { - return this.periodSeconds; - } - - public A withPeriodSeconds(Integer periodSeconds) { - this.periodSeconds = periodSeconds; - return (A) this; - } - - public boolean hasPeriodSeconds() { - return this.periodSeconds != null; - } - - public Integer getSuccessThreshold() { - return this.successThreshold; - } - - public A withSuccessThreshold(Integer successThreshold) { - this.successThreshold = successThreshold; - return (A) this; - } - - public boolean hasSuccessThreshold() { - return this.successThreshold != null; - } - - public V1TCPSocketAction buildTcpSocket() { - return this.tcpSocket != null ? this.tcpSocket.build() : null; - } - - public A withTcpSocket(V1TCPSocketAction tcpSocket) { - this._visitables.remove("tcpSocket"); - if (tcpSocket != null) { - this.tcpSocket = new V1TCPSocketActionBuilder(tcpSocket); - this._visitables.get("tcpSocket").add(this.tcpSocket); - } else { - this.tcpSocket = null; - this._visitables.get("tcpSocket").remove(this.tcpSocket); - } - return (A) this; - } - - public boolean hasTcpSocket() { - return this.tcpSocket != null; - } - - public TcpSocketNested withNewTcpSocket() { - return new TcpSocketNested(null); - } - - public TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item) { - return new TcpSocketNested(item); - } - - public TcpSocketNested editTcpSocket() { - return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(null)); - } - public TcpSocketNested editOrNewTcpSocket() { return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(new V1TCPSocketActionBuilder().build())); } @@ -261,30 +111,8 @@ public TcpSocketNested editOrNewTcpSocketLike(V1TCPSocketAction item) { return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(item)); } - public Long getTerminationGracePeriodSeconds() { - return this.terminationGracePeriodSeconds; - } - - public A withTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { - this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; - return (A) this; - } - - public boolean hasTerminationGracePeriodSeconds() { - return this.terminationGracePeriodSeconds != null; - } - - public Integer getTimeoutSeconds() { - return this.timeoutSeconds; - } - - public A withTimeoutSeconds(Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return (A) this; - } - - public boolean hasTimeoutSeconds() { - return this.timeoutSeconds != null; + public TcpSocketNested editTcpSocket() { + return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(null)); } public boolean equals(Object o) { @@ -331,6 +159,70 @@ public boolean equals(Object o) { return true; } + public Integer getFailureThreshold() { + return this.failureThreshold; + } + + public Integer getInitialDelaySeconds() { + return this.initialDelaySeconds; + } + + public Integer getPeriodSeconds() { + return this.periodSeconds; + } + + public Integer getSuccessThreshold() { + return this.successThreshold; + } + + public Long getTerminationGracePeriodSeconds() { + return this.terminationGracePeriodSeconds; + } + + public Integer getTimeoutSeconds() { + return this.timeoutSeconds; + } + + public boolean hasExec() { + return this.exec != null; + } + + public boolean hasFailureThreshold() { + return this.failureThreshold != null; + } + + public boolean hasGrpc() { + return this.grpc != null; + } + + public boolean hasHttpGet() { + return this.httpGet != null; + } + + public boolean hasInitialDelaySeconds() { + return this.initialDelaySeconds != null; + } + + public boolean hasPeriodSeconds() { + return this.periodSeconds != null; + } + + public boolean hasSuccessThreshold() { + return this.successThreshold != null; + } + + public boolean hasTcpSocket() { + return this.tcpSocket != null; + } + + public boolean hasTerminationGracePeriodSeconds() { + return this.terminationGracePeriodSeconds != null; + } + + public boolean hasTimeoutSeconds() { + return this.timeoutSeconds != null; + } + public int hashCode() { return Objects.hash(exec, failureThreshold, grpc, httpGet, initialDelaySeconds, periodSeconds, successThreshold, tcpSocket, terminationGracePeriodSeconds, timeoutSeconds); } @@ -390,12 +282,124 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withExec(V1ExecAction exec) { + this._visitables.remove("exec"); + if (exec != null) { + this.exec = new V1ExecActionBuilder(exec); + this._visitables.get("exec").add(this.exec); + } else { + this.exec = null; + this._visitables.get("exec").remove(this.exec); + } + return (A) this; + } + + public A withFailureThreshold(Integer failureThreshold) { + this.failureThreshold = failureThreshold; + return (A) this; + } + + public A withGrpc(V1GRPCAction grpc) { + this._visitables.remove("grpc"); + if (grpc != null) { + this.grpc = new V1GRPCActionBuilder(grpc); + this._visitables.get("grpc").add(this.grpc); + } else { + this.grpc = null; + this._visitables.get("grpc").remove(this.grpc); + } + return (A) this; + } + + public A withHttpGet(V1HTTPGetAction httpGet) { + this._visitables.remove("httpGet"); + if (httpGet != null) { + this.httpGet = new V1HTTPGetActionBuilder(httpGet); + this._visitables.get("httpGet").add(this.httpGet); + } else { + this.httpGet = null; + this._visitables.get("httpGet").remove(this.httpGet); + } + return (A) this; + } + + public A withInitialDelaySeconds(Integer initialDelaySeconds) { + this.initialDelaySeconds = initialDelaySeconds; + return (A) this; + } + + public ExecNested withNewExec() { + return new ExecNested(null); + } + + public ExecNested withNewExecLike(V1ExecAction item) { + return new ExecNested(item); + } + + public GrpcNested withNewGrpc() { + return new GrpcNested(null); + } + + public GrpcNested withNewGrpcLike(V1GRPCAction item) { + return new GrpcNested(item); + } + + public HttpGetNested withNewHttpGet() { + return new HttpGetNested(null); + } + + public HttpGetNested withNewHttpGetLike(V1HTTPGetAction item) { + return new HttpGetNested(item); + } + + public TcpSocketNested withNewTcpSocket() { + return new TcpSocketNested(null); + } + + public TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item) { + return new TcpSocketNested(item); + } + + public A withPeriodSeconds(Integer periodSeconds) { + this.periodSeconds = periodSeconds; + return (A) this; + } + + public A withSuccessThreshold(Integer successThreshold) { + this.successThreshold = successThreshold; + return (A) this; + } + + public A withTcpSocket(V1TCPSocketAction tcpSocket) { + this._visitables.remove("tcpSocket"); + if (tcpSocket != null) { + this.tcpSocket = new V1TCPSocketActionBuilder(tcpSocket); + this._visitables.get("tcpSocket").add(this.tcpSocket); + } else { + this.tcpSocket = null; + this._visitables.get("tcpSocket").remove(this.tcpSocket); + } + return (A) this; + } + + public A withTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { + this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; + return (A) this; + } + + public A withTimeoutSeconds(Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return (A) this; + } public class ExecNested extends V1ExecActionFluent> implements Nested{ + + V1ExecActionBuilder builder; + ExecNested(V1ExecAction item) { this.builder = new V1ExecActionBuilder(this, item); } - V1ExecActionBuilder builder; - + public N and() { return (N) V1ProbeFluent.this.withExec(builder.build()); } @@ -404,14 +408,15 @@ public N endExec() { return and(); } - } public class GrpcNested extends V1GRPCActionFluent> implements Nested{ + + V1GRPCActionBuilder builder; + GrpcNested(V1GRPCAction item) { this.builder = new V1GRPCActionBuilder(this, item); } - V1GRPCActionBuilder builder; - + public N and() { return (N) V1ProbeFluent.this.withGrpc(builder.build()); } @@ -420,14 +425,15 @@ public N endGrpc() { return and(); } - } public class HttpGetNested extends V1HTTPGetActionFluent> implements Nested{ + + V1HTTPGetActionBuilder builder; + HttpGetNested(V1HTTPGetAction item) { this.builder = new V1HTTPGetActionBuilder(this, item); } - V1HTTPGetActionBuilder builder; - + public N and() { return (N) V1ProbeFluent.this.withHttpGet(builder.build()); } @@ -436,14 +442,15 @@ public N endHttpGet() { return and(); } - } public class TcpSocketNested extends V1TCPSocketActionFluent> implements Nested{ + + V1TCPSocketActionBuilder builder; + TcpSocketNested(V1TCPSocketAction item) { this.builder = new V1TCPSocketActionBuilder(this, item); } - V1TCPSocketActionBuilder builder; - + public N and() { return (N) V1ProbeFluent.this.withTcpSocket(builder.build()); } @@ -452,7 +459,5 @@ public N endTcpSocket() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java index 16409f4d17..71df96fd21 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ProjectedVolumeSourceBuilder extends V1ProjectedVolumeSourceFluent implements VisitableBuilder{ + + V1ProjectedVolumeSourceFluent fluent; + public V1ProjectedVolumeSourceBuilder() { this(new V1ProjectedVolumeSource()); } @@ -11,17 +14,16 @@ public V1ProjectedVolumeSourceBuilder(V1ProjectedVolumeSourceFluent fluent) { this(fluent, new V1ProjectedVolumeSource()); } - public V1ProjectedVolumeSourceBuilder(V1ProjectedVolumeSourceFluent fluent,V1ProjectedVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ProjectedVolumeSourceBuilder(V1ProjectedVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1ProjectedVolumeSourceFluent fluent; + public V1ProjectedVolumeSourceBuilder(V1ProjectedVolumeSourceFluent fluent,V1ProjectedVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ProjectedVolumeSource build() { V1ProjectedVolumeSource buildable = new V1ProjectedVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); @@ -29,5 +31,4 @@ public V1ProjectedVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java index d278cf592b..85fad6396f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java @@ -1,83 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Integer; +import java.lang.Object; import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ProjectedVolumeSourceFluent> extends BaseFluent{ + + private Integer defaultMode; + private ArrayList sources; + public V1ProjectedVolumeSourceFluent() { } public V1ProjectedVolumeSourceFluent(V1ProjectedVolumeSource instance) { this.copyInstance(instance); } - private Integer defaultMode; - private ArrayList sources; - - protected void copyInstance(V1ProjectedVolumeSource instance) { - instance = instance != null ? instance : new V1ProjectedVolumeSource(); - if (instance != null) { - this.withDefaultMode(instance.getDefaultMode()); - this.withSources(instance.getSources()); - } - } - - public Integer getDefaultMode() { - return this.defaultMode; - } - - public A withDefaultMode(Integer defaultMode) { - this.defaultMode = defaultMode; - return (A) this; - } - - public boolean hasDefaultMode() { - return this.defaultMode != null; - } - - public A addToSources(int index,V1VolumeProjection item) { + + public A addAllToSources(Collection items) { if (this.sources == null) { this.sources = new ArrayList(); } - V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); - if (index < 0 || index >= sources.size()) { - _visitables.get("sources").add(builder); - sources.add(builder); - } else { + for (V1VolumeProjection item : items) { + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); _visitables.get("sources").add(builder); - sources.add(index, builder); + this.sources.add(builder); } return (A) this; } - public A setToSources(int index,V1VolumeProjection item) { - if (this.sources == null) { - this.sources = new ArrayList(); - } - V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); - if (index < 0 || index >= sources.size()) { - _visitables.get("sources").add(builder); - sources.add(builder); - } else { - _visitables.get("sources").add(builder); - sources.set(index, builder); - } - return (A) this; + public SourcesNested addNewSource() { + return new SourcesNested(-1, null); + } + + public SourcesNested addNewSourceLike(V1VolumeProjection item) { + return new SourcesNested(-1, item); } public A addToSources(V1VolumeProjection... items) { @@ -92,66 +63,21 @@ public A addToSources(V1VolumeProjection... items) { return (A) this; } - public A addAllToSources(Collection items) { + public A addToSources(int index,V1VolumeProjection item) { if (this.sources == null) { this.sources = new ArrayList(); } - for (V1VolumeProjection item : items) { - V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); + if (index < 0 || index >= sources.size()) { _visitables.get("sources").add(builder); - this.sources.add(builder); - } - return (A) this; - } - - public A removeFromSources(V1VolumeProjection... items) { - if (this.sources == null) { - return (A) this; - } - for (V1VolumeProjection item : items) { - V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); - _visitables.get("sources").remove(builder); - this.sources.remove(builder); - } - return (A) this; - } - - public A removeAllFromSources(Collection items) { - if (this.sources == null) { - return (A) this; - } - for (V1VolumeProjection item : items) { - V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); - _visitables.get("sources").remove(builder); - this.sources.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromSources(Predicate predicate) { - if (sources == null) { - return (A) this; - } - Iterator each = sources.iterator(); - List visitables = _visitables.get("sources"); - while (each.hasNext()) { - V1VolumeProjectionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + sources.add(builder); + } else { + _visitables.get("sources").add(builder); + sources.add(index, builder); } return (A) this; } - public List buildSources() { - return this.sources != null ? build(sources) : null; - } - - public V1VolumeProjection buildSource(int index) { - return this.sources.get(index).build(); - } - public V1VolumeProjection buildFirstSource() { return this.sources.get(0).build(); } @@ -169,64 +95,20 @@ public V1VolumeProjection buildMatchingSource(Predicate predicate) { - for (V1VolumeProjectionBuilder item : sources) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withSources(List sources) { - if (this.sources != null) { - this._visitables.get("sources").clear(); - } - if (sources != null) { - this.sources = new ArrayList(); - for (V1VolumeProjection item : sources) { - this.addToSources(item); - } - } else { - this.sources = null; - } - return (A) this; - } - - public A withSources(V1VolumeProjection... sources) { - if (this.sources != null) { - this.sources.clear(); - _visitables.remove("sources"); - } - if (sources != null) { - for (V1VolumeProjection item : sources) { - this.addToSources(item); - } - } - return (A) this; - } - - public boolean hasSources() { - return this.sources != null && !(this.sources.isEmpty()); - } - - public SourcesNested addNewSource() { - return new SourcesNested(-1, null); - } - - public SourcesNested addNewSourceLike(V1VolumeProjection item) { - return new SourcesNested(-1, item); + public V1VolumeProjection buildSource(int index) { + return this.sources.get(index).build(); } - public SourcesNested setNewSourceLike(int index,V1VolumeProjection item) { - return new SourcesNested(index, item); + public List buildSources() { + return this.sources != null ? build(sources) : null; } - public SourcesNested editSource(int index) { - if (index <= sources.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sources")); + protected void copyInstance(V1ProjectedVolumeSource instance) { + instance = instance != null ? instance : new V1ProjectedVolumeSource(); + if (instance != null) { + this.withDefaultMode(instance.getDefaultMode()); + this.withSources(instance.getSources()); } - return this.setNewSourceLike(index, this.buildSource(index)); } public SourcesNested editFirstSource() { @@ -258,6 +140,13 @@ public SourcesNested editMatchingSource(Predicate return this.setNewSourceLike(index, this.buildSource(index)); } + public SourcesNested editSource(int index) { + if (sources.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sources")); + } + return this.setNewSourceLike(index, this.buildSource(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -278,10 +167,90 @@ public boolean equals(Object o) { return true; } + public Integer getDefaultMode() { + return this.defaultMode; + } + + public boolean hasDefaultMode() { + return this.defaultMode != null; + } + + public boolean hasMatchingSource(Predicate predicate) { + for (V1VolumeProjectionBuilder item : sources) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasSources() { + return this.sources != null && !(this.sources.isEmpty()); + } + public int hashCode() { return Objects.hash(defaultMode, sources); } + public A removeAllFromSources(Collection items) { + if (this.sources == null) { + return (A) this; + } + for (V1VolumeProjection item : items) { + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); + _visitables.get("sources").remove(builder); + this.sources.remove(builder); + } + return (A) this; + } + + public A removeFromSources(V1VolumeProjection... items) { + if (this.sources == null) { + return (A) this; + } + for (V1VolumeProjection item : items) { + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); + _visitables.get("sources").remove(builder); + this.sources.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromSources(Predicate predicate) { + if (sources == null) { + return (A) this; + } + Iterator each = sources.iterator(); + List visitables = _visitables.get("sources"); + while (each.hasNext()) { + V1VolumeProjectionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public SourcesNested setNewSourceLike(int index,V1VolumeProjection item) { + return new SourcesNested(index, item); + } + + public A setToSources(int index,V1VolumeProjection item) { + if (this.sources == null) { + this.sources = new ArrayList(); + } + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); + if (index < 0 || index >= sources.size()) { + _visitables.get("sources").add(builder); + sources.add(builder); + } else { + _visitables.get("sources").add(builder); + sources.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -297,14 +266,49 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withDefaultMode(Integer defaultMode) { + this.defaultMode = defaultMode; + return (A) this; + } + + public A withSources(List sources) { + if (this.sources != null) { + this._visitables.get("sources").clear(); + } + if (sources != null) { + this.sources = new ArrayList(); + for (V1VolumeProjection item : sources) { + this.addToSources(item); + } + } else { + this.sources = null; + } + return (A) this; + } + + public A withSources(V1VolumeProjection... sources) { + if (this.sources != null) { + this.sources.clear(); + _visitables.remove("sources"); + } + if (sources != null) { + for (V1VolumeProjection item : sources) { + this.addToSources(item); + } + } + return (A) this; + } public class SourcesNested extends V1VolumeProjectionFluent> implements Nested{ + + V1VolumeProjectionBuilder builder; + int index; + SourcesNested(int index,V1VolumeProjection item) { this.index = index; this.builder = new V1VolumeProjectionBuilder(this, item); } - V1VolumeProjectionBuilder builder; - int index; - + public N and() { return (N) V1ProjectedVolumeSourceFluent.this.setToSources(index, builder.build()); } @@ -313,7 +317,5 @@ public N endSource() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationBuilder.java index d3e3f8a4df..d8f30e02c1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1QueuingConfigurationBuilder extends V1QueuingConfigurationFluent implements VisitableBuilder{ + + V1QueuingConfigurationFluent fluent; + public V1QueuingConfigurationBuilder() { this(new V1QueuingConfiguration()); } @@ -11,17 +14,16 @@ public V1QueuingConfigurationBuilder(V1QueuingConfigurationFluent fluent) { this(fluent, new V1QueuingConfiguration()); } - public V1QueuingConfigurationBuilder(V1QueuingConfigurationFluent fluent,V1QueuingConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1QueuingConfigurationBuilder(V1QueuingConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1QueuingConfigurationFluent fluent; + public V1QueuingConfigurationBuilder(V1QueuingConfigurationFluent fluent,V1QueuingConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1QueuingConfiguration build() { V1QueuingConfiguration buildable = new V1QueuingConfiguration(); buildable.setHandSize(fluent.getHandSize()); @@ -30,5 +32,4 @@ public V1QueuingConfiguration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationFluent.java index fa68c61ad1..57bd1c6fb0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1QueuingConfigurationFluent> extends BaseFluent{ + + private Integer handSize; + private Integer queueLengthLimit; + private Integer queues; + public V1QueuingConfigurationFluent() { } public V1QueuingConfigurationFluent(V1QueuingConfiguration instance) { this.copyInstance(instance); } - private Integer handSize; - private Integer queueLengthLimit; - private Integer queues; - + protected void copyInstance(V1QueuingConfiguration instance) { instance = instance != null ? instance : new V1QueuingConfiguration(); if (instance != null) { @@ -32,45 +34,6 @@ protected void copyInstance(V1QueuingConfiguration instance) { } } - public Integer getHandSize() { - return this.handSize; - } - - public A withHandSize(Integer handSize) { - this.handSize = handSize; - return (A) this; - } - - public boolean hasHandSize() { - return this.handSize != null; - } - - public Integer getQueueLengthLimit() { - return this.queueLengthLimit; - } - - public A withQueueLengthLimit(Integer queueLengthLimit) { - this.queueLengthLimit = queueLengthLimit; - return (A) this; - } - - public boolean hasQueueLengthLimit() { - return this.queueLengthLimit != null; - } - - public Integer getQueues() { - return this.queues; - } - - public A withQueues(Integer queues) { - this.queues = queues; - return (A) this; - } - - public boolean hasQueues() { - return this.queues != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -94,6 +57,30 @@ public boolean equals(Object o) { return true; } + public Integer getHandSize() { + return this.handSize; + } + + public Integer getQueueLengthLimit() { + return this.queueLengthLimit; + } + + public Integer getQueues() { + return this.queues; + } + + public boolean hasHandSize() { + return this.handSize != null; + } + + public boolean hasQueueLengthLimit() { + return this.queueLengthLimit != null; + } + + public boolean hasQueues() { + return this.queues != null; + } + public int hashCode() { return Objects.hash(handSize, queueLengthLimit, queues); } @@ -119,5 +106,19 @@ public String toString() { return sb.toString(); } - + public A withHandSize(Integer handSize) { + this.handSize = handSize; + return (A) this; + } + + public A withQueueLengthLimit(Integer queueLengthLimit) { + this.queueLengthLimit = queueLengthLimit; + return (A) this; + } + + public A withQueues(Integer queues) { + this.queues = queues; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java index c0bd8b0ab5..3ec5f337cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1QuobyteVolumeSourceBuilder extends V1QuobyteVolumeSourceFluent implements VisitableBuilder{ + + V1QuobyteVolumeSourceFluent fluent; + public V1QuobyteVolumeSourceBuilder() { this(new V1QuobyteVolumeSource()); } @@ -11,17 +14,16 @@ public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSourceFluent fluent) { this(fluent, new V1QuobyteVolumeSource()); } - public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSourceFluent fluent,V1QuobyteVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1QuobyteVolumeSourceFluent fluent; + public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSourceFluent fluent,V1QuobyteVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1QuobyteVolumeSource build() { V1QuobyteVolumeSource buildable = new V1QuobyteVolumeSource(); buildable.setGroup(fluent.getGroup()); @@ -33,5 +35,4 @@ public V1QuobyteVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java index 960cd77db1..27c60cd1e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java @@ -1,31 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1QuobyteVolumeSourceFluent> extends BaseFluent{ - public V1QuobyteVolumeSourceFluent() { - } - - public V1QuobyteVolumeSourceFluent(V1QuobyteVolumeSource instance) { - this.copyInstance(instance); - } + private String group; private Boolean readOnly; private String registry; private String tenant; private String user; private String volume; + + public V1QuobyteVolumeSourceFluent() { + } + public V1QuobyteVolumeSourceFluent(V1QuobyteVolumeSource instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1QuobyteVolumeSource instance) { instance = instance != null ? instance : new V1QuobyteVolumeSource(); if (instance != null) { @@ -38,116 +40,86 @@ protected void copyInstance(V1QuobyteVolumeSource instance) { } } - public String getGroup() { - return this.group; - } - - public A withGroup(String group) { - this.group = group; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1QuobyteVolumeSourceFluent that = (V1QuobyteVolumeSourceFluent) o; + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(registry, that.registry))) { + return false; + } + if (!(Objects.equals(tenant, that.tenant))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + if (!(Objects.equals(volume, that.volume))) { + return false; + } + return true; } - public boolean hasGroup() { - return this.group != null; + public String getGroup() { + return this.group; } public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - public String getRegistry() { return this.registry; } - public A withRegistry(String registry) { - this.registry = registry; - return (A) this; - } - - public boolean hasRegistry() { - return this.registry != null; - } - public String getTenant() { return this.tenant; } - public A withTenant(String tenant) { - this.tenant = tenant; - return (A) this; + public String getUser() { + return this.user; } - public boolean hasTenant() { - return this.tenant != null; + public String getVolume() { + return this.volume; } - public String getUser() { - return this.user; + public boolean hasGroup() { + return this.group != null; } - public A withUser(String user) { - this.user = user; - return (A) this; + public boolean hasReadOnly() { + return this.readOnly != null; } - public boolean hasUser() { - return this.user != null; + public boolean hasRegistry() { + return this.registry != null; } - public String getVolume() { - return this.volume; + public boolean hasTenant() { + return this.tenant != null; } - public A withVolume(String volume) { - this.volume = volume; - return (A) this; + public boolean hasUser() { + return this.user != null; } public boolean hasVolume() { return this.volume != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1QuobyteVolumeSourceFluent that = (V1QuobyteVolumeSourceFluent) o; - if (!(Objects.equals(group, that.group))) { - return false; - } - if (!(Objects.equals(readOnly, that.readOnly))) { - return false; - } - if (!(Objects.equals(registry, that.registry))) { - return false; - } - if (!(Objects.equals(tenant, that.tenant))) { - return false; - } - if (!(Objects.equals(user, that.user))) { - return false; - } - if (!(Objects.equals(volume, that.volume))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(group, readOnly, registry, tenant, user, volume); } @@ -188,9 +160,38 @@ public String toString() { return sb.toString(); } + public A withGroup(String group) { + this.group = group; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withRegistry(String registry) { + this.registry = registry; + return (A) this; + } + + public A withTenant(String tenant) { + this.tenant = tenant; + return (A) this; + } + + public A withUser(String user) { + this.user = user; + return (A) this; + } + + public A withVolume(String volume) { + this.volume = volume; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java index 3e18ffd9d6..2491d451bd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1RBDPersistentVolumeSourceBuilder extends V1RBDPersistentVolumeSourceFluent implements VisitableBuilder{ + + V1RBDPersistentVolumeSourceFluent fluent; + public V1RBDPersistentVolumeSourceBuilder() { this(new V1RBDPersistentVolumeSource()); } @@ -11,17 +14,16 @@ public V1RBDPersistentVolumeSourceBuilder(V1RBDPersistentVolumeSourceFluent f this(fluent, new V1RBDPersistentVolumeSource()); } - public V1RBDPersistentVolumeSourceBuilder(V1RBDPersistentVolumeSourceFluent fluent,V1RBDPersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RBDPersistentVolumeSourceBuilder(V1RBDPersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1RBDPersistentVolumeSourceFluent fluent; + public V1RBDPersistentVolumeSourceBuilder(V1RBDPersistentVolumeSourceFluent fluent,V1RBDPersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RBDPersistentVolumeSource build() { V1RBDPersistentVolumeSource buildable = new V1RBDPersistentVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -35,5 +37,4 @@ public V1RBDPersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java index c137b90948..55264ddab0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java @@ -1,30 +1,25 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1RBDPersistentVolumeSourceFluent> extends BaseFluent{ - public V1RBDPersistentVolumeSourceFluent() { - } - - public V1RBDPersistentVolumeSourceFluent(V1RBDPersistentVolumeSource instance) { - this.copyInstance(instance); - } + private String fsType; private String image; private String keyring; @@ -33,73 +28,21 @@ public V1RBDPersistentVolumeSourceFluent(V1RBDPersistentVolumeSource instance) { private Boolean readOnly; private V1SecretReferenceBuilder secretRef; private String user; - - protected void copyInstance(V1RBDPersistentVolumeSource instance) { - instance = instance != null ? instance : new V1RBDPersistentVolumeSource(); - if (instance != null) { - this.withFsType(instance.getFsType()); - this.withImage(instance.getImage()); - this.withKeyring(instance.getKeyring()); - this.withMonitors(instance.getMonitors()); - this.withPool(instance.getPool()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withUser(instance.getUser()); - } - } - - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; - } - - public boolean hasFsType() { - return this.fsType != null; - } - - public String getImage() { - return this.image; - } - - public A withImage(String image) { - this.image = image; - return (A) this; - } - - public boolean hasImage() { - return this.image != null; - } - - public String getKeyring() { - return this.keyring; - } - - public A withKeyring(String keyring) { - this.keyring = keyring; - return (A) this; + + public V1RBDPersistentVolumeSourceFluent() { } - public boolean hasKeyring() { - return this.keyring != null; + public V1RBDPersistentVolumeSourceFluent(V1RBDPersistentVolumeSource instance) { + this.copyInstance(instance); } - - public A addToMonitors(int index,String item) { + + public A addAllToMonitors(Collection items) { if (this.monitors == null) { this.monitors = new ArrayList(); } - this.monitors.add(index, item); - return (A) this; - } - - public A setToMonitors(int index,String item) { - if (this.monitors == null) { - this.monitors = new ArrayList(); + for (String item : items) { + this.monitors.add(item); } - this.monitors.set(index, item); return (A) this; } @@ -113,48 +56,98 @@ public A addToMonitors(String... items) { return (A) this; } - public A addAllToMonitors(Collection items) { + public A addToMonitors(int index,String item) { if (this.monitors == null) { this.monitors = new ArrayList(); } - for (String item : items) { - this.monitors.add(item); - } + this.monitors.add(index, item); return (A) this; } - public A removeFromMonitors(String... items) { - if (this.monitors == null) { - return (A) this; - } - for (String item : items) { - this.monitors.remove(item); - } - return (A) this; + public V1SecretReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; } - public A removeAllFromMonitors(Collection items) { - if (this.monitors == null) { - return (A) this; - } - for (String item : items) { - this.monitors.remove(item); + protected void copyInstance(V1RBDPersistentVolumeSource instance) { + instance = instance != null ? instance : new V1RBDPersistentVolumeSource(); + if (instance != null) { + this.withFsType(instance.getFsType()); + this.withImage(instance.getImage()); + this.withKeyring(instance.getKeyring()); + this.withMonitors(instance.getMonitors()); + this.withPool(instance.getPool()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withUser(instance.getUser()); } - return (A) this; } - public List getMonitors() { - return this.monitors; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } - public String getMonitor(int index) { - return this.monitors.get(index); + public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); + } + + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1RBDPersistentVolumeSourceFluent that = (V1RBDPersistentVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(image, that.image))) { + return false; + } + if (!(Objects.equals(keyring, that.keyring))) { + return false; + } + if (!(Objects.equals(monitors, that.monitors))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + return true; } public String getFirstMonitor() { return this.monitors.get(0); } + public String getFsType() { + return this.fsType; + } + + public String getImage() { + return this.image; + } + + public String getKeyring() { + return this.keyring; + } + public String getLastMonitor() { return this.monitors.get(monitors.size() - 1); } @@ -168,163 +161,97 @@ public String getMatchingMonitor(Predicate predicate) { return null; } - public boolean hasMatchingMonitor(Predicate predicate) { - for (String item : monitors) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withMonitors(List monitors) { - if (monitors != null) { - this.monitors = new ArrayList(); - for (String item : monitors) { - this.addToMonitors(item); - } - } else { - this.monitors = null; - } - return (A) this; - } - - public A withMonitors(String... monitors) { - if (this.monitors != null) { - this.monitors.clear(); - _visitables.remove("monitors"); - } - if (monitors != null) { - for (String item : monitors) { - this.addToMonitors(item); - } - } - return (A) this; + public String getMonitor(int index) { + return this.monitors.get(index); } - public boolean hasMonitors() { - return this.monitors != null && !(this.monitors.isEmpty()); + public List getMonitors() { + return this.monitors; } public String getPool() { return this.pool; } - public A withPool(String pool) { - this.pool = pool; - return (A) this; - } - - public boolean hasPool() { - return this.pool != null; - } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public String getUser() { + return this.user; } - public boolean hasReadOnly() { - return this.readOnly != null; + public boolean hasFsType() { + return this.fsType != null; } - public V1SecretReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + public boolean hasImage() { + return this.image != null; } - public A withSecretRef(V1SecretReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1SecretReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + public boolean hasKeyring() { + return this.keyring != null; } - public boolean hasSecretRef() { - return this.secretRef != null; + public boolean hasMatchingMonitor(Predicate predicate) { + for (String item : monitors) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + public boolean hasMonitors() { + return this.monitors != null && !(this.monitors.isEmpty()); } - public SecretRefNested withNewSecretRefLike(V1SecretReference item) { - return new SecretRefNested(item); + public boolean hasPool() { + return this.pool != null; } - public SecretRefNested editSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); + public boolean hasReadOnly() { + return this.readOnly != null; } - public SecretRefNested editOrNewSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + public boolean hasSecretRef() { + return this.secretRef != null; } - public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); + public boolean hasUser() { + return this.user != null; } - public String getUser() { - return this.user; + public int hashCode() { + return Objects.hash(fsType, image, keyring, monitors, pool, readOnly, secretRef, user); } - public A withUser(String user) { - this.user = user; + public A removeAllFromMonitors(Collection items) { + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } return (A) this; } - public boolean hasUser() { - return this.user != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1RBDPersistentVolumeSourceFluent that = (V1RBDPersistentVolumeSourceFluent) o; - if (!(Objects.equals(fsType, that.fsType))) { - return false; - } - if (!(Objects.equals(image, that.image))) { - return false; - } - if (!(Objects.equals(keyring, that.keyring))) { - return false; - } - if (!(Objects.equals(monitors, that.monitors))) { - return false; - } - if (!(Objects.equals(pool, that.pool))) { - return false; - } - if (!(Objects.equals(readOnly, that.readOnly))) { - return false; - } - if (!(Objects.equals(secretRef, that.secretRef))) { - return false; + public A removeFromMonitors(String... items) { + if (this.monitors == null) { + return (A) this; } - if (!(Objects.equals(user, that.user))) { - return false; + for (String item : items) { + this.monitors.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(fsType, image, keyring, monitors, pool, readOnly, secretRef, user); + public A setToMonitors(int index,String item) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + this.monitors.set(index, item); + return (A) this; } public String toString() { @@ -373,15 +300,92 @@ public String toString() { return sb.toString(); } + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withImage(String image) { + this.image = image; + return (A) this; + } + + public A withKeyring(String keyring) { + this.keyring = keyring; + return (A) this; + } + + public A withMonitors(List monitors) { + if (monitors != null) { + this.monitors = new ArrayList(); + for (String item : monitors) { + this.addToMonitors(item); + } + } else { + this.monitors = null; + } + return (A) this; + } + + public A withMonitors(String... monitors) { + if (this.monitors != null) { + this.monitors.clear(); + _visitables.remove("monitors"); + } + if (monitors != null) { + for (String item : monitors) { + this.addToMonitors(item); + } + } + return (A) this; + } + + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); + } + + public SecretRefNested withNewSecretRefLike(V1SecretReference item) { + return new SecretRefNested(item); + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } + + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretRef(V1SecretReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1SecretReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; + } + + public A withUser(String user) { + this.user = user; + return (A) this; + } public class SecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + SecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1RBDPersistentVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -390,7 +394,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java index d89799d6d5..3ff10a5095 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1RBDVolumeSourceBuilder extends V1RBDVolumeSourceFluent implements VisitableBuilder{ + + V1RBDVolumeSourceFluent fluent; + public V1RBDVolumeSourceBuilder() { this(new V1RBDVolumeSource()); } @@ -11,17 +14,16 @@ public V1RBDVolumeSourceBuilder(V1RBDVolumeSourceFluent fluent) { this(fluent, new V1RBDVolumeSource()); } - public V1RBDVolumeSourceBuilder(V1RBDVolumeSourceFluent fluent,V1RBDVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RBDVolumeSourceBuilder(V1RBDVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1RBDVolumeSourceFluent fluent; + public V1RBDVolumeSourceBuilder(V1RBDVolumeSourceFluent fluent,V1RBDVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RBDVolumeSource build() { V1RBDVolumeSource buildable = new V1RBDVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -35,5 +37,4 @@ public V1RBDVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java index 4afa9b226a..1225fae522 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java @@ -1,30 +1,25 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1RBDVolumeSourceFluent> extends BaseFluent{ - public V1RBDVolumeSourceFluent() { - } - - public V1RBDVolumeSourceFluent(V1RBDVolumeSource instance) { - this.copyInstance(instance); - } + private String fsType; private String image; private String keyring; @@ -33,73 +28,21 @@ public V1RBDVolumeSourceFluent(V1RBDVolumeSource instance) { private Boolean readOnly; private V1LocalObjectReferenceBuilder secretRef; private String user; - - protected void copyInstance(V1RBDVolumeSource instance) { - instance = instance != null ? instance : new V1RBDVolumeSource(); - if (instance != null) { - this.withFsType(instance.getFsType()); - this.withImage(instance.getImage()); - this.withKeyring(instance.getKeyring()); - this.withMonitors(instance.getMonitors()); - this.withPool(instance.getPool()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withUser(instance.getUser()); - } - } - - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; - } - - public boolean hasFsType() { - return this.fsType != null; - } - - public String getImage() { - return this.image; - } - - public A withImage(String image) { - this.image = image; - return (A) this; - } - - public boolean hasImage() { - return this.image != null; - } - - public String getKeyring() { - return this.keyring; - } - - public A withKeyring(String keyring) { - this.keyring = keyring; - return (A) this; + + public V1RBDVolumeSourceFluent() { } - public boolean hasKeyring() { - return this.keyring != null; + public V1RBDVolumeSourceFluent(V1RBDVolumeSource instance) { + this.copyInstance(instance); } - - public A addToMonitors(int index,String item) { + + public A addAllToMonitors(Collection items) { if (this.monitors == null) { this.monitors = new ArrayList(); } - this.monitors.add(index, item); - return (A) this; - } - - public A setToMonitors(int index,String item) { - if (this.monitors == null) { - this.monitors = new ArrayList(); + for (String item : items) { + this.monitors.add(item); } - this.monitors.set(index, item); return (A) this; } @@ -113,48 +56,98 @@ public A addToMonitors(String... items) { return (A) this; } - public A addAllToMonitors(Collection items) { + public A addToMonitors(int index,String item) { if (this.monitors == null) { this.monitors = new ArrayList(); } - for (String item : items) { - this.monitors.add(item); - } + this.monitors.add(index, item); return (A) this; } - public A removeFromMonitors(String... items) { - if (this.monitors == null) { - return (A) this; - } - for (String item : items) { - this.monitors.remove(item); - } - return (A) this; + public V1LocalObjectReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; } - public A removeAllFromMonitors(Collection items) { - if (this.monitors == null) { - return (A) this; - } - for (String item : items) { - this.monitors.remove(item); + protected void copyInstance(V1RBDVolumeSource instance) { + instance = instance != null ? instance : new V1RBDVolumeSource(); + if (instance != null) { + this.withFsType(instance.getFsType()); + this.withImage(instance.getImage()); + this.withKeyring(instance.getKeyring()); + this.withMonitors(instance.getMonitors()); + this.withPool(instance.getPool()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withUser(instance.getUser()); } - return (A) this; } - public List getMonitors() { - return this.monitors; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } - public String getMonitor(int index) { - return this.monitors.get(index); + public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); + } + + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1RBDVolumeSourceFluent that = (V1RBDVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(image, that.image))) { + return false; + } + if (!(Objects.equals(keyring, that.keyring))) { + return false; + } + if (!(Objects.equals(monitors, that.monitors))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + return true; } public String getFirstMonitor() { return this.monitors.get(0); } + public String getFsType() { + return this.fsType; + } + + public String getImage() { + return this.image; + } + + public String getKeyring() { + return this.keyring; + } + public String getLastMonitor() { return this.monitors.get(monitors.size() - 1); } @@ -168,163 +161,97 @@ public String getMatchingMonitor(Predicate predicate) { return null; } - public boolean hasMatchingMonitor(Predicate predicate) { - for (String item : monitors) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withMonitors(List monitors) { - if (monitors != null) { - this.monitors = new ArrayList(); - for (String item : monitors) { - this.addToMonitors(item); - } - } else { - this.monitors = null; - } - return (A) this; - } - - public A withMonitors(String... monitors) { - if (this.monitors != null) { - this.monitors.clear(); - _visitables.remove("monitors"); - } - if (monitors != null) { - for (String item : monitors) { - this.addToMonitors(item); - } - } - return (A) this; + public String getMonitor(int index) { + return this.monitors.get(index); } - public boolean hasMonitors() { - return this.monitors != null && !(this.monitors.isEmpty()); + public List getMonitors() { + return this.monitors; } public String getPool() { return this.pool; } - public A withPool(String pool) { - this.pool = pool; - return (A) this; - } - - public boolean hasPool() { - return this.pool != null; - } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public String getUser() { + return this.user; } - public boolean hasReadOnly() { - return this.readOnly != null; + public boolean hasFsType() { + return this.fsType != null; } - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + public boolean hasImage() { + return this.image != null; } - public A withSecretRef(V1LocalObjectReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + public boolean hasKeyring() { + return this.keyring != null; } - public boolean hasSecretRef() { - return this.secretRef != null; + public boolean hasMatchingMonitor(Predicate predicate) { + for (String item : monitors) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + public boolean hasMonitors() { + return this.monitors != null && !(this.monitors.isEmpty()); } - public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); + public boolean hasPool() { + return this.pool != null; } - public SecretRefNested editSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); + public boolean hasReadOnly() { + return this.readOnly != null; } - public SecretRefNested editOrNewSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); + public boolean hasSecretRef() { + return this.secretRef != null; } - public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); + public boolean hasUser() { + return this.user != null; } - public String getUser() { - return this.user; + public int hashCode() { + return Objects.hash(fsType, image, keyring, monitors, pool, readOnly, secretRef, user); } - public A withUser(String user) { - this.user = user; + public A removeAllFromMonitors(Collection items) { + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } return (A) this; } - public boolean hasUser() { - return this.user != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1RBDVolumeSourceFluent that = (V1RBDVolumeSourceFluent) o; - if (!(Objects.equals(fsType, that.fsType))) { - return false; - } - if (!(Objects.equals(image, that.image))) { - return false; - } - if (!(Objects.equals(keyring, that.keyring))) { - return false; - } - if (!(Objects.equals(monitors, that.monitors))) { - return false; - } - if (!(Objects.equals(pool, that.pool))) { - return false; - } - if (!(Objects.equals(readOnly, that.readOnly))) { - return false; - } - if (!(Objects.equals(secretRef, that.secretRef))) { - return false; + public A removeFromMonitors(String... items) { + if (this.monitors == null) { + return (A) this; } - if (!(Objects.equals(user, that.user))) { - return false; + for (String item : items) { + this.monitors.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(fsType, image, keyring, monitors, pool, readOnly, secretRef, user); + public A setToMonitors(int index,String item) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + this.monitors.set(index, item); + return (A) this; } public String toString() { @@ -373,15 +300,92 @@ public String toString() { return sb.toString(); } + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withImage(String image) { + this.image = image; + return (A) this; + } + + public A withKeyring(String keyring) { + this.keyring = keyring; + return (A) this; + } + + public A withMonitors(List monitors) { + if (monitors != null) { + this.monitors = new ArrayList(); + for (String item : monitors) { + this.addToMonitors(item); + } + } else { + this.monitors = null; + } + return (A) this; + } + + public A withMonitors(String... monitors) { + if (this.monitors != null) { + this.monitors.clear(); + _visitables.remove("monitors"); + } + if (monitors != null) { + for (String item : monitors) { + this.addToMonitors(item); + } + } + return (A) this; + } + + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); + } + + public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { + return new SecretRefNested(item); + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } + + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretRef(V1LocalObjectReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; + } + + public A withUser(String user) { + this.user = user; + return (A) this; + } public class SecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ + + V1LocalObjectReferenceBuilder builder; + SecretRefNested(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - + public N and() { return (N) V1RBDVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -390,7 +394,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java index d199a0f93b..4545cdab78 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ReplicaSetBuilder extends V1ReplicaSetFluent implements VisitableBuilder{ + + V1ReplicaSetFluent fluent; + public V1ReplicaSetBuilder() { this(new V1ReplicaSet()); } @@ -11,17 +14,16 @@ public V1ReplicaSetBuilder(V1ReplicaSetFluent fluent) { this(fluent, new V1ReplicaSet()); } - public V1ReplicaSetBuilder(V1ReplicaSetFluent fluent,V1ReplicaSet instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicaSetBuilder(V1ReplicaSet instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicaSetFluent fluent; + public V1ReplicaSetBuilder(V1ReplicaSetFluent fluent,V1ReplicaSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicaSet build() { V1ReplicaSet buildable = new V1ReplicaSet(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1ReplicaSet build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java index df81c04024..ab06c86f50 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ReplicaSetConditionBuilder extends V1ReplicaSetConditionFluent implements VisitableBuilder{ + + V1ReplicaSetConditionFluent fluent; + public V1ReplicaSetConditionBuilder() { this(new V1ReplicaSetCondition()); } @@ -11,17 +14,16 @@ public V1ReplicaSetConditionBuilder(V1ReplicaSetConditionFluent fluent) { this(fluent, new V1ReplicaSetCondition()); } - public V1ReplicaSetConditionBuilder(V1ReplicaSetConditionFluent fluent,V1ReplicaSetCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicaSetConditionBuilder(V1ReplicaSetCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicaSetConditionFluent fluent; + public V1ReplicaSetConditionBuilder(V1ReplicaSetConditionFluent fluent,V1ReplicaSetCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicaSetCondition build() { V1ReplicaSetCondition buildable = new V1ReplicaSetCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -32,5 +34,4 @@ public V1ReplicaSetCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java index 53ab0e243a..35826c333d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ReplicaSetConditionFluent> extends BaseFluent{ - public V1ReplicaSetConditionFluent() { - } - - public V1ReplicaSetConditionFluent(V1ReplicaSetCondition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1ReplicaSetConditionFluent() { + } + public V1ReplicaSetConditionFluent(V1ReplicaSetCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1ReplicaSetCondition instance) { instance = instance != null ? instance : new V1ReplicaSetCondition(); if (instance != null) { @@ -36,71 +38,6 @@ protected void copyInstance(V1ReplicaSetCondition instance) { } } - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -130,6 +67,46 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; + } + + public String getMessage() { + return this.message; + } + + public String getReason() { + return this.reason; + } + + public String getStatus() { + return this.status; + } + + public String getType() { + return this.type; + } + + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasReason() { + return this.reason != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } @@ -165,5 +142,29 @@ public String toString() { return sb.toString(); } - + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java index c362c9cb60..7f6004b5be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ReplicaSetFluent> extends BaseFluent{ - public V1ReplicaSetFluent() { - } - - public V1ReplicaSetFluent(V1ReplicaSet instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1ReplicaSetSpecBuilder spec; private V1ReplicaSetStatusBuilder status; - - protected void copyInstance(V1ReplicaSet instance) { - instance = instance != null ? instance : new V1ReplicaSet(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1ReplicaSetFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1ReplicaSetFluent(V1ReplicaSet instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1ReplicaSetSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1ReplicaSetStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1ReplicaSet instance) { + instance = instance != null ? instance : new V1ReplicaSet(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ReplicaSetSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1ReplicaSetSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1ReplicaSetSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1ReplicaSetSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ReplicaSetSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1ReplicaSetSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1ReplicaSetStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1ReplicaSetStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1ReplicaSetStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ReplicaSetStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1ReplicaSetStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1ReplicaSetStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ReplicaSetStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1ReplicaSetStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ReplicaSetSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1ReplicaSetStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1ReplicaSetSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ReplicaSetSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1ReplicaSetStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1ReplicaSetStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ReplicaSetFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ReplicaSetSpecFluent> implements Nested{ + + V1ReplicaSetSpecBuilder builder; + SpecNested(V1ReplicaSetSpec item) { this.builder = new V1ReplicaSetSpecBuilder(this, item); } - V1ReplicaSetSpecBuilder builder; - + public N and() { return (N) V1ReplicaSetFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1ReplicaSetStatusFluent> implements Nested{ + + V1ReplicaSetStatusBuilder builder; + StatusNested(V1ReplicaSetStatus item) { this.builder = new V1ReplicaSetStatusBuilder(this, item); } - V1ReplicaSetStatusBuilder builder; - + public N and() { return (N) V1ReplicaSetFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java index a4d0111038..70d57dfbf1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ReplicaSetListBuilder extends V1ReplicaSetListFluent implements VisitableBuilder{ + + V1ReplicaSetListFluent fluent; + public V1ReplicaSetListBuilder() { this(new V1ReplicaSetList()); } @@ -11,17 +14,16 @@ public V1ReplicaSetListBuilder(V1ReplicaSetListFluent fluent) { this(fluent, new V1ReplicaSetList()); } - public V1ReplicaSetListBuilder(V1ReplicaSetListFluent fluent,V1ReplicaSetList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicaSetListBuilder(V1ReplicaSetList instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicaSetListFluent fluent; + public V1ReplicaSetListBuilder(V1ReplicaSetListFluent fluent,V1ReplicaSetList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicaSetList build() { V1ReplicaSetList buildable = new V1ReplicaSetList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ReplicaSetList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java index 420140916a..bea981a252 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ReplicaSetListFluent> extends BaseFluent{ - public V1ReplicaSetListFluent() { - } - - public V1ReplicaSetListFluent(V1ReplicaSetList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ReplicaSetList instance) { - instance = instance != null ? instance : new V1ReplicaSetList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1ReplicaSetListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1ReplicaSetListFluent(V1ReplicaSetList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1ReplicaSet item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1ReplicaSet item : items) { + V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1ReplicaSet item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ReplicaSet item) { + return new ItemsNested(-1, item); } public A addToItems(V1ReplicaSet... items) { @@ -96,68 +65,31 @@ public A addToItems(V1ReplicaSet... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1ReplicaSet item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1ReplicaSet item : items) { - V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); + V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1ReplicaSet... items) { - if (this.items == null) { - return (A) this; - } - for (V1ReplicaSet item : items) { - V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1ReplicaSet item : items) { - V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1ReplicaSetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1ReplicaSet buildFirstItem() { + return this.items.get(0).build(); } public V1ReplicaSet buildItem(int index) { return this.items.get(index).build(); } - public V1ReplicaSet buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1ReplicaSet buildLastItem() { @@ -173,73 +105,34 @@ public V1ReplicaSet buildMatchingItem(Predicate predicate) return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1ReplicaSetBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ReplicaSet item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ReplicaSetList instance) { + instance = instance != null ? instance : new V1ReplicaSetList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1ReplicaSet... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1ReplicaSet item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ReplicaSet item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ReplicaSet item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ReplicaSetBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ReplicaSet item : items) { + V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ReplicaSet... items) { + if (this.items == null) { + return (A) this; + } + for (V1ReplicaSet item : items) { + V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ReplicaSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ReplicaSet item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1ReplicaSet item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ReplicaSet item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ReplicaSet... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ReplicaSet item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1ReplicaSetFluent> implements Nested{ + + V1ReplicaSetBuilder builder; + int index; + ItemsNested(int index,V1ReplicaSet item) { this.index = index; this.builder = new V1ReplicaSetBuilder(this, item); } - V1ReplicaSetBuilder builder; - int index; - + public N and() { return (N) V1ReplicaSetListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ReplicaSetListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java index 9c66688c63..dafdfb76f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ReplicaSetSpecBuilder extends V1ReplicaSetSpecFluent implements VisitableBuilder{ + + V1ReplicaSetSpecFluent fluent; + public V1ReplicaSetSpecBuilder() { this(new V1ReplicaSetSpec()); } @@ -11,17 +14,16 @@ public V1ReplicaSetSpecBuilder(V1ReplicaSetSpecFluent fluent) { this(fluent, new V1ReplicaSetSpec()); } - public V1ReplicaSetSpecBuilder(V1ReplicaSetSpecFluent fluent,V1ReplicaSetSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicaSetSpecBuilder(V1ReplicaSetSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicaSetSpecFluent fluent; + public V1ReplicaSetSpecBuilder(V1ReplicaSetSpecFluent fluent,V1ReplicaSetSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicaSetSpec build() { V1ReplicaSetSpec buildable = new V1ReplicaSetSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); @@ -31,5 +33,4 @@ public V1ReplicaSetSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java index 1f701b65bb..60004c5b3a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java @@ -1,30 +1,40 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.String; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ReplicaSetSpecFluent> extends BaseFluent{ + + private Integer minReadySeconds; + private Integer replicas; + private V1LabelSelectorBuilder selector; + private V1PodTemplateSpecBuilder template; + public V1ReplicaSetSpecFluent() { } public V1ReplicaSetSpecFluent(V1ReplicaSetSpec instance) { this.copyInstance(instance); } - private Integer minReadySeconds; - private Integer replicas; - private V1LabelSelectorBuilder selector; - private V1PodTemplateSpecBuilder template; + + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; + } + + public V1PodTemplateSpec buildTemplate() { + return this.template != null ? this.template.build() : null; + } protected void copyInstance(V1ReplicaSetSpec instance) { instance = instance != null ? instance : new V1ReplicaSetSpec(); @@ -36,64 +46,6 @@ protected void copyInstance(V1ReplicaSetSpec instance) { } } - public Integer getMinReadySeconds() { - return this.minReadySeconds; - } - - public A withMinReadySeconds(Integer minReadySeconds) { - this.minReadySeconds = minReadySeconds; - return (A) this; - } - - public boolean hasMinReadySeconds() { - return this.minReadySeconds != null; - } - - public Integer getReplicas() { - return this.replicas; - } - - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; - } - - public boolean hasReplicas() { - return this.replicas != null; - } - - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public A withSelector(V1LabelSelector selector) { - this._visitables.remove("selector"); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - this._visitables.get("selector").add(this.selector); - } else { - this.selector = null; - this._visitables.get("selector").remove(this.selector); - } - return (A) this; - } - - public boolean hasSelector() { - return this.selector != null; - } - - public SelectorNested withNewSelector() { - return new SelectorNested(null); - } - - public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); - } - - public SelectorNested editSelector() { - return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); - } - public SelectorNested editOrNewSelector() { return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } @@ -102,46 +54,22 @@ public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; - } - - public A withTemplate(V1PodTemplateSpec template) { - this._visitables.remove("template"); - if (template != null) { - this.template = new V1PodTemplateSpecBuilder(template); - this._visitables.get("template").add(this.template); - } else { - this.template = null; - this._visitables.get("template").remove(this.template); - } - return (A) this; - } - - public boolean hasTemplate() { - return this.template != null; + public TemplateNested editOrNewTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); } - public TemplateNested withNewTemplate() { - return new TemplateNested(null); + public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); } - public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } public TemplateNested editTemplate() { return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); } - public TemplateNested editOrNewTemplate() { - return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); - } - - public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -168,6 +96,30 @@ public boolean equals(Object o) { return true; } + public Integer getMinReadySeconds() { + return this.minReadySeconds; + } + + public Integer getReplicas() { + return this.replicas; + } + + public boolean hasMinReadySeconds() { + return this.minReadySeconds != null; + } + + public boolean hasReplicas() { + return this.replicas != null; + } + + public boolean hasSelector() { + return this.selector != null; + } + + public boolean hasTemplate() { + return this.template != null; + } + public int hashCode() { return Objects.hash(minReadySeconds, replicas, selector, template); } @@ -197,12 +149,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMinReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; + return (A) this; + } + + public SelectorNested withNewSelector() { + return new SelectorNested(null); + } + + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); + } + + public TemplateNested withNewTemplate() { + return new TemplateNested(null); + } + + public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { + return new TemplateNested(item); + } + + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; + } + + public A withSelector(V1LabelSelector selector) { + this._visitables.remove("selector"); + if (selector != null) { + this.selector = new V1LabelSelectorBuilder(selector); + this._visitables.get("selector").add(this.selector); + } else { + this.selector = null; + this._visitables.get("selector").remove(this.selector); + } + return (A) this; + } + + public A withTemplate(V1PodTemplateSpec template) { + this._visitables.remove("template"); + if (template != null) { + this.template = new V1PodTemplateSpecBuilder(template); + this._visitables.get("template").add(this.template); + } else { + this.template = null; + this._visitables.get("template").remove(this.template); + } + return (A) this; + } public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + SelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1ReplicaSetSpecFluent.this.withSelector(builder.build()); } @@ -211,14 +215,15 @@ public N endSelector() { return and(); } - } public class TemplateNested extends V1PodTemplateSpecFluent> implements Nested{ + + V1PodTemplateSpecBuilder builder; + TemplateNested(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - V1PodTemplateSpecBuilder builder; - + public N and() { return (N) V1ReplicaSetSpecFluent.this.withTemplate(builder.build()); } @@ -227,7 +232,5 @@ public N endTemplate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java index f81509bf9b..85728671a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ReplicaSetStatusBuilder extends V1ReplicaSetStatusFluent implements VisitableBuilder{ + + V1ReplicaSetStatusFluent fluent; + public V1ReplicaSetStatusBuilder() { this(new V1ReplicaSetStatus()); } @@ -11,17 +14,16 @@ public V1ReplicaSetStatusBuilder(V1ReplicaSetStatusFluent fluent) { this(fluent, new V1ReplicaSetStatus()); } - public V1ReplicaSetStatusBuilder(V1ReplicaSetStatusFluent fluent,V1ReplicaSetStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicaSetStatusBuilder(V1ReplicaSetStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicaSetStatusFluent fluent; + public V1ReplicaSetStatusBuilder(V1ReplicaSetStatusFluent fluent,V1ReplicaSetStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicaSetStatus build() { V1ReplicaSetStatus buildable = new V1ReplicaSetStatus(); buildable.setAvailableReplicas(fluent.getAvailableReplicas()); @@ -34,5 +36,4 @@ public V1ReplicaSetStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java index b12e2c6cf8..2c5c3862a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Integer; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Iterator; -import java.util.Objects; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ReplicaSetStatusFluent> extends BaseFluent{ - public V1ReplicaSetStatusFluent() { - } - - public V1ReplicaSetStatusFluent(V1ReplicaSetStatus instance) { - this.copyInstance(instance); - } + private Integer availableReplicas; private ArrayList conditions; private Integer fullyLabeledReplicas; @@ -34,61 +29,32 @@ public V1ReplicaSetStatusFluent(V1ReplicaSetStatus instance) { private Integer readyReplicas; private Integer replicas; private Integer terminatingReplicas; - - protected void copyInstance(V1ReplicaSetStatus instance) { - instance = instance != null ? instance : new V1ReplicaSetStatus(); - if (instance != null) { - this.withAvailableReplicas(instance.getAvailableReplicas()); - this.withConditions(instance.getConditions()); - this.withFullyLabeledReplicas(instance.getFullyLabeledReplicas()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withReadyReplicas(instance.getReadyReplicas()); - this.withReplicas(instance.getReplicas()); - this.withTerminatingReplicas(instance.getTerminatingReplicas()); - } - } - - public Integer getAvailableReplicas() { - return this.availableReplicas; - } - - public A withAvailableReplicas(Integer availableReplicas) { - this.availableReplicas = availableReplicas; - return (A) this; + + public V1ReplicaSetStatusFluent() { } - public boolean hasAvailableReplicas() { - return this.availableReplicas != null; + public V1ReplicaSetStatusFluent(V1ReplicaSetStatus instance) { + this.copyInstance(instance); } - - public A addToConditions(int index,V1ReplicaSetCondition item) { + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1ReplicaSetCondition item : items) { + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1ReplicaSetCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1ReplicaSetCondition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1ReplicaSetCondition... items) { @@ -103,66 +69,29 @@ public A addToConditions(V1ReplicaSetCondition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1ReplicaSetCondition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1ReplicaSetCondition item : items) { - V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1ReplicaSetCondition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1ReplicaSetCondition item : items) { - V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1ReplicaSetCondition item : items) { - V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1ReplicaSetConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1ReplicaSetCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1ReplicaSetCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1ReplicaSetCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -180,61 +109,21 @@ public V1ReplicaSetCondition buildMatchingCondition(Predicate predicate) { - for (V1ReplicaSetConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1ReplicaSetCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(V1ReplicaSetCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1ReplicaSetCondition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1ReplicaSetStatus instance) { + instance = instance != null ? instance : new V1ReplicaSetStatus(); + if (instance != null) { + this.withAvailableReplicas(instance.getAvailableReplicas()); + this.withConditions(instance.getConditions()); + this.withFullyLabeledReplicas(instance.getFullyLabeledReplicas()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withReadyReplicas(instance.getReadyReplicas()); + this.withReplicas(instance.getReplicas()); + this.withTerminatingReplicas(instance.getTerminatingReplicas()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1ReplicaSetCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1ReplicaSetCondition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -269,108 +158,163 @@ public ConditionsNested editMatchingCondition(Predicate predicate) { + for (V1ReplicaSetConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public boolean hasReplicas() { - return this.replicas != null; + public boolean hasObservedGeneration() { + return this.observedGeneration != null; } - public Integer getTerminatingReplicas() { - return this.terminatingReplicas; + public boolean hasReadyReplicas() { + return this.readyReplicas != null; } - public A withTerminatingReplicas(Integer terminatingReplicas) { - this.terminatingReplicas = terminatingReplicas; - return (A) this; + public boolean hasReplicas() { + return this.replicas != null; } public boolean hasTerminatingReplicas() { return this.terminatingReplicas != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ReplicaSetStatusFluent that = (V1ReplicaSetStatusFluent) o; - if (!(Objects.equals(availableReplicas, that.availableReplicas))) { - return false; - } - if (!(Objects.equals(conditions, that.conditions))) { - return false; + public int hashCode() { + return Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas, terminatingReplicas); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; } - if (!(Objects.equals(fullyLabeledReplicas, that.fullyLabeledReplicas))) { - return false; + for (V1ReplicaSetCondition item : items) { + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } - if (!(Objects.equals(observedGeneration, that.observedGeneration))) { - return false; + return (A) this; + } + + public A removeFromConditions(V1ReplicaSetCondition... items) { + if (this.conditions == null) { + return (A) this; } - if (!(Objects.equals(readyReplicas, that.readyReplicas))) { - return false; + for (V1ReplicaSetCondition item : items) { + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } - if (!(Objects.equals(replicas, that.replicas))) { - return false; + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; } - if (!(Objects.equals(terminatingReplicas, that.terminatingReplicas))) { - return false; + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ReplicaSetConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas, terminatingReplicas); + public ConditionsNested setNewConditionLike(int index,V1ReplicaSetCondition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1ReplicaSetCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; } public String toString() { @@ -413,14 +357,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAvailableReplicas(Integer availableReplicas) { + this.availableReplicas = availableReplicas; + return (A) this; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1ReplicaSetCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1ReplicaSetCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1ReplicaSetCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withFullyLabeledReplicas(Integer fullyLabeledReplicas) { + this.fullyLabeledReplicas = fullyLabeledReplicas; + return (A) this; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public A withReadyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; + return (A) this; + } + + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; + } + + public A withTerminatingReplicas(Integer terminatingReplicas) { + this.terminatingReplicas = terminatingReplicas; + return (A) this; + } public class ConditionsNested extends V1ReplicaSetConditionFluent> implements Nested{ + + V1ReplicaSetConditionBuilder builder; + int index; + ConditionsNested(int index,V1ReplicaSetCondition item) { this.index = index; this.builder = new V1ReplicaSetConditionBuilder(this, item); } - V1ReplicaSetConditionBuilder builder; - int index; - + public N and() { return (N) V1ReplicaSetStatusFluent.this.setToConditions(index, builder.build()); } @@ -429,7 +433,5 @@ public N endCondition() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java index bef861c111..d96cb766c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ReplicationControllerBuilder extends V1ReplicationControllerFluent implements VisitableBuilder{ + + V1ReplicationControllerFluent fluent; + public V1ReplicationControllerBuilder() { this(new V1ReplicationController()); } @@ -11,17 +14,16 @@ public V1ReplicationControllerBuilder(V1ReplicationControllerFluent fluent) { this(fluent, new V1ReplicationController()); } - public V1ReplicationControllerBuilder(V1ReplicationControllerFluent fluent,V1ReplicationController instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicationControllerBuilder(V1ReplicationController instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicationControllerFluent fluent; + public V1ReplicationControllerBuilder(V1ReplicationControllerFluent fluent,V1ReplicationController instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicationController build() { V1ReplicationController buildable = new V1ReplicationController(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1ReplicationController build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java index bc717415fe..03935dbc25 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ReplicationControllerConditionBuilder extends V1ReplicationControllerConditionFluent implements VisitableBuilder{ + + V1ReplicationControllerConditionFluent fluent; + public V1ReplicationControllerConditionBuilder() { this(new V1ReplicationControllerCondition()); } @@ -11,17 +14,16 @@ public V1ReplicationControllerConditionBuilder(V1ReplicationControllerConditionF this(fluent, new V1ReplicationControllerCondition()); } - public V1ReplicationControllerConditionBuilder(V1ReplicationControllerConditionFluent fluent,V1ReplicationControllerCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicationControllerConditionBuilder(V1ReplicationControllerCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicationControllerConditionFluent fluent; + public V1ReplicationControllerConditionBuilder(V1ReplicationControllerConditionFluent fluent,V1ReplicationControllerCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicationControllerCondition build() { V1ReplicationControllerCondition buildable = new V1ReplicationControllerCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -32,5 +34,4 @@ public V1ReplicationControllerCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java index 796b554fcf..5e65bf9401 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ReplicationControllerConditionFluent> extends BaseFluent{ - public V1ReplicationControllerConditionFluent() { - } - - public V1ReplicationControllerConditionFluent(V1ReplicationControllerCondition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1ReplicationControllerConditionFluent() { + } + public V1ReplicationControllerConditionFluent(V1ReplicationControllerCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1ReplicationControllerCondition instance) { instance = instance != null ? instance : new V1ReplicationControllerCondition(); if (instance != null) { @@ -36,71 +38,6 @@ protected void copyInstance(V1ReplicationControllerCondition instance) { } } - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -130,6 +67,46 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; + } + + public String getMessage() { + return this.message; + } + + public String getReason() { + return this.reason; + } + + public String getStatus() { + return this.status; + } + + public String getType() { + return this.type; + } + + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasReason() { + return this.reason != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } @@ -165,5 +142,29 @@ public String toString() { return sb.toString(); } - + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java index dc99b2a797..3bcfb3e7b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ReplicationControllerFluent> extends BaseFluent{ - public V1ReplicationControllerFluent() { - } - - public V1ReplicationControllerFluent(V1ReplicationController instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1ReplicationControllerSpecBuilder spec; private V1ReplicationControllerStatusBuilder status; - - protected void copyInstance(V1ReplicationController instance) { - instance = instance != null ? instance : new V1ReplicationController(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1ReplicationControllerFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1ReplicationControllerFluent(V1ReplicationController instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1ReplicationControllerSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1ReplicationControllerStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1ReplicationController instance) { + instance = instance != null ? instance : new V1ReplicationController(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ReplicationControllerSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1ReplicationControllerSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1ReplicationControllerSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1ReplicationControllerSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ReplicationControllerSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1ReplicationControllerSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1ReplicationControllerStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1ReplicationControllerStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1ReplicationControllerStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ReplicationControllerStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1ReplicationControllerStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1ReplicationControllerStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ReplicationControllerStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1ReplicationControllerStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ReplicationControllerSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1ReplicationControllerStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1ReplicationControllerSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ReplicationControllerSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1ReplicationControllerStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1ReplicationControllerStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ReplicationControllerFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ReplicationControllerSpecFluent> implements Nested{ + + V1ReplicationControllerSpecBuilder builder; + SpecNested(V1ReplicationControllerSpec item) { this.builder = new V1ReplicationControllerSpecBuilder(this, item); } - V1ReplicationControllerSpecBuilder builder; - + public N and() { return (N) V1ReplicationControllerFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1ReplicationControllerStatusFluent> implements Nested{ + + V1ReplicationControllerStatusBuilder builder; + StatusNested(V1ReplicationControllerStatus item) { this.builder = new V1ReplicationControllerStatusBuilder(this, item); } - V1ReplicationControllerStatusBuilder builder; - + public N and() { return (N) V1ReplicationControllerFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java index af6602f44c..a153a6c1a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ReplicationControllerListBuilder extends V1ReplicationControllerListFluent implements VisitableBuilder{ + + V1ReplicationControllerListFluent fluent; + public V1ReplicationControllerListBuilder() { this(new V1ReplicationControllerList()); } @@ -11,17 +14,16 @@ public V1ReplicationControllerListBuilder(V1ReplicationControllerListFluent f this(fluent, new V1ReplicationControllerList()); } - public V1ReplicationControllerListBuilder(V1ReplicationControllerListFluent fluent,V1ReplicationControllerList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicationControllerListBuilder(V1ReplicationControllerList instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicationControllerListFluent fluent; + public V1ReplicationControllerListBuilder(V1ReplicationControllerListFluent fluent,V1ReplicationControllerList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicationControllerList build() { V1ReplicationControllerList buildable = new V1ReplicationControllerList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ReplicationControllerList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java index a277a2ee38..bcfa985021 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ReplicationControllerListFluent> extends BaseFluent{ - public V1ReplicationControllerListFluent() { - } - - public V1ReplicationControllerListFluent(V1ReplicationControllerList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ReplicationControllerList instance) { - instance = instance != null ? instance : new V1ReplicationControllerList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1ReplicationControllerListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1ReplicationControllerListFluent(V1ReplicationControllerList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1ReplicationController item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1ReplicationController item : items) { + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1ReplicationController item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ReplicationController item) { + return new ItemsNested(-1, item); } public A addToItems(V1ReplicationController... items) { @@ -96,68 +65,31 @@ public A addToItems(V1ReplicationController... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1ReplicationController item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1ReplicationController item : items) { - V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1ReplicationController... items) { - if (this.items == null) { - return (A) this; - } - for (V1ReplicationController item : items) { - V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1ReplicationController item : items) { - V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1ReplicationControllerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1ReplicationController buildFirstItem() { + return this.items.get(0).build(); } public V1ReplicationController buildItem(int index) { return this.items.get(index).build(); } - public V1ReplicationController buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1ReplicationController buildLastItem() { @@ -173,73 +105,34 @@ public V1ReplicationController buildMatchingItem(Predicate predicate) { - for (V1ReplicationControllerBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ReplicationController item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ReplicationControllerList instance) { + instance = instance != null ? instance : new V1ReplicationControllerList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1ReplicationController... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1ReplicationController item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ReplicationController item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ReplicationController item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ReplicationControllerBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ReplicationController item : items) { + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ReplicationController... items) { + if (this.items == null) { + return (A) this; + } + for (V1ReplicationController item : items) { + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ReplicationControllerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ReplicationController item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1ReplicationController item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ReplicationController item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ReplicationController... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ReplicationController item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1ReplicationControllerFluent> implements Nested{ + + V1ReplicationControllerBuilder builder; + int index; + ItemsNested(int index,V1ReplicationController item) { this.index = index; this.builder = new V1ReplicationControllerBuilder(this, item); } - V1ReplicationControllerBuilder builder; - int index; - + public N and() { return (N) V1ReplicationControllerListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ReplicationControllerListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java index 5fce27f5ff..32c48f090a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ReplicationControllerSpecBuilder extends V1ReplicationControllerSpecFluent implements VisitableBuilder{ + + V1ReplicationControllerSpecFluent fluent; + public V1ReplicationControllerSpecBuilder() { this(new V1ReplicationControllerSpec()); } @@ -11,17 +14,16 @@ public V1ReplicationControllerSpecBuilder(V1ReplicationControllerSpecFluent f this(fluent, new V1ReplicationControllerSpec()); } - public V1ReplicationControllerSpecBuilder(V1ReplicationControllerSpecFluent fluent,V1ReplicationControllerSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicationControllerSpecBuilder(V1ReplicationControllerSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicationControllerSpecFluent fluent; + public V1ReplicationControllerSpecBuilder(V1ReplicationControllerSpecFluent fluent,V1ReplicationControllerSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicationControllerSpec build() { V1ReplicationControllerSpec buildable = new V1ReplicationControllerSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); @@ -31,5 +33,4 @@ public V1ReplicationControllerSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java index d040321ade..87e1db18ef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java @@ -1,79 +1,35 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.String; -import java.util.LinkedHashMap; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.LinkedHashMap; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ReplicationControllerSpecFluent> extends BaseFluent{ - public V1ReplicationControllerSpecFluent() { - } - - public V1ReplicationControllerSpecFluent(V1ReplicationControllerSpec instance) { - this.copyInstance(instance); - } + private Integer minReadySeconds; private Integer replicas; private Map selector; private V1PodTemplateSpecBuilder template; - - protected void copyInstance(V1ReplicationControllerSpec instance) { - instance = instance != null ? instance : new V1ReplicationControllerSpec(); - if (instance != null) { - this.withMinReadySeconds(instance.getMinReadySeconds()); - this.withReplicas(instance.getReplicas()); - this.withSelector(instance.getSelector()); - this.withTemplate(instance.getTemplate()); - } - } - - public Integer getMinReadySeconds() { - return this.minReadySeconds; - } - - public A withMinReadySeconds(Integer minReadySeconds) { - this.minReadySeconds = minReadySeconds; - return (A) this; - } - - public boolean hasMinReadySeconds() { - return this.minReadySeconds != null; - } - - public Integer getReplicas() { - return this.replicas; - } - - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; - } - - public boolean hasReplicas() { - return this.replicas != null; + + public V1ReplicationControllerSpecFluent() { } - public A addToSelector(String key,String value) { - if (this.selector == null && key != null && value != null) { - this.selector = new LinkedHashMap(); - } - if (key != null && value != null) { - this.selector.put(key, value); - } - return (A) this; + public V1ReplicationControllerSpecFluent(V1ReplicationControllerSpec instance) { + this.copyInstance(instance); } - + public A addToSelector(Map map) { if (this.selector == null && map != null) { this.selector = new LinkedHashMap(); @@ -84,77 +40,28 @@ public A addToSelector(Map map) { return (A) this; } - public A removeFromSelector(String key) { - if (this.selector == null) { - return (A) this; - } - if (key != null && this.selector != null) { - this.selector.remove(key); - } - return (A) this; - } - - public A removeFromSelector(Map map) { - if (this.selector == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.selector != null) { - this.selector.remove(key); - } - } + public A addToSelector(String key,String value) { + if (this.selector == null && key != null && value != null) { + this.selector = new LinkedHashMap(); } - return (A) this; - } - - public Map getSelector() { - return this.selector; - } - - public A withSelector(Map selector) { - if (selector == null) { - this.selector = null; - } else { - this.selector = new LinkedHashMap(selector); + if (key != null && value != null) { + this.selector.put(key, value); } return (A) this; } - public boolean hasSelector() { - return this.selector != null; - } - public V1PodTemplateSpec buildTemplate() { return this.template != null ? this.template.build() : null; } - public A withTemplate(V1PodTemplateSpec template) { - this._visitables.remove("template"); - if (template != null) { - this.template = new V1PodTemplateSpecBuilder(template); - this._visitables.get("template").add(this.template); - } else { - this.template = null; - this._visitables.get("template").remove(this.template); + protected void copyInstance(V1ReplicationControllerSpec instance) { + instance = instance != null ? instance : new V1ReplicationControllerSpec(); + if (instance != null) { + this.withMinReadySeconds(instance.getMinReadySeconds()); + this.withReplicas(instance.getReplicas()); + this.withSelector(instance.getSelector()); + this.withTemplate(instance.getTemplate()); } - return (A) this; - } - - public boolean hasTemplate() { - return this.template != null; - } - - public TemplateNested withNewTemplate() { - return new TemplateNested(null); - } - - public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); - } - - public TemplateNested editTemplate() { - return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); } public TemplateNested editOrNewTemplate() { @@ -165,6 +72,10 @@ public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); } + public TemplateNested editTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -191,10 +102,62 @@ public boolean equals(Object o) { return true; } + public Integer getMinReadySeconds() { + return this.minReadySeconds; + } + + public Integer getReplicas() { + return this.replicas; + } + + public Map getSelector() { + return this.selector; + } + + public boolean hasMinReadySeconds() { + return this.minReadySeconds != null; + } + + public boolean hasReplicas() { + return this.replicas != null; + } + + public boolean hasSelector() { + return this.selector != null; + } + + public boolean hasTemplate() { + return this.template != null; + } + public int hashCode() { return Objects.hash(minReadySeconds, replicas, selector, template); } + public A removeFromSelector(String key) { + if (this.selector == null) { + return (A) this; + } + if (key != null && this.selector != null) { + this.selector.remove(key); + } + return (A) this; + } + + public A removeFromSelector(Map map) { + if (this.selector == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.selector != null) { + this.selector.remove(key); + } + } + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -220,12 +183,53 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMinReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; + return (A) this; + } + + public TemplateNested withNewTemplate() { + return new TemplateNested(null); + } + + public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { + return new TemplateNested(item); + } + + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; + } + + public A withSelector(Map selector) { + if (selector == null) { + this.selector = null; + } else { + this.selector = new LinkedHashMap(selector); + } + return (A) this; + } + + public A withTemplate(V1PodTemplateSpec template) { + this._visitables.remove("template"); + if (template != null) { + this.template = new V1PodTemplateSpecBuilder(template); + this._visitables.get("template").add(this.template); + } else { + this.template = null; + this._visitables.get("template").remove(this.template); + } + return (A) this; + } public class TemplateNested extends V1PodTemplateSpecFluent> implements Nested{ + + V1PodTemplateSpecBuilder builder; + TemplateNested(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - V1PodTemplateSpecBuilder builder; - + public N and() { return (N) V1ReplicationControllerSpecFluent.this.withTemplate(builder.build()); } @@ -234,7 +238,5 @@ public N endTemplate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java index b42076ca5b..9e48a17d35 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ReplicationControllerStatusBuilder extends V1ReplicationControllerStatusFluent implements VisitableBuilder{ + + V1ReplicationControllerStatusFluent fluent; + public V1ReplicationControllerStatusBuilder() { this(new V1ReplicationControllerStatus()); } @@ -11,17 +14,16 @@ public V1ReplicationControllerStatusBuilder(V1ReplicationControllerStatusFluent< this(fluent, new V1ReplicationControllerStatus()); } - public V1ReplicationControllerStatusBuilder(V1ReplicationControllerStatusFluent fluent,V1ReplicationControllerStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicationControllerStatusBuilder(V1ReplicationControllerStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicationControllerStatusFluent fluent; + public V1ReplicationControllerStatusBuilder(V1ReplicationControllerStatusFluent fluent,V1ReplicationControllerStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicationControllerStatus build() { V1ReplicationControllerStatus buildable = new V1ReplicationControllerStatus(); buildable.setAvailableReplicas(fluent.getAvailableReplicas()); @@ -33,5 +35,4 @@ public V1ReplicationControllerStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java index f0dc0db17f..2c7e2c611e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java @@ -1,92 +1,59 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Integer; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Iterator; -import java.util.Objects; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ReplicationControllerStatusFluent> extends BaseFluent{ - public V1ReplicationControllerStatusFluent() { - } - - public V1ReplicationControllerStatusFluent(V1ReplicationControllerStatus instance) { - this.copyInstance(instance); - } + private Integer availableReplicas; private ArrayList conditions; private Integer fullyLabeledReplicas; private Long observedGeneration; private Integer readyReplicas; private Integer replicas; - - protected void copyInstance(V1ReplicationControllerStatus instance) { - instance = instance != null ? instance : new V1ReplicationControllerStatus(); - if (instance != null) { - this.withAvailableReplicas(instance.getAvailableReplicas()); - this.withConditions(instance.getConditions()); - this.withFullyLabeledReplicas(instance.getFullyLabeledReplicas()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withReadyReplicas(instance.getReadyReplicas()); - this.withReplicas(instance.getReplicas()); - } - } - - public Integer getAvailableReplicas() { - return this.availableReplicas; - } - - public A withAvailableReplicas(Integer availableReplicas) { - this.availableReplicas = availableReplicas; - return (A) this; + + public V1ReplicationControllerStatusFluent() { } - public boolean hasAvailableReplicas() { - return this.availableReplicas != null; + public V1ReplicationControllerStatusFluent(V1ReplicationControllerStatus instance) { + this.copyInstance(instance); } - - public A addToConditions(int index,V1ReplicationControllerCondition item) { + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1ReplicationControllerCondition item : items) { + V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1ReplicationControllerCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1ReplicationControllerCondition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1ReplicationControllerCondition... items) { @@ -101,66 +68,29 @@ public A addToConditions(V1ReplicationControllerCondition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1ReplicationControllerCondition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1ReplicationControllerCondition item : items) { - V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); + V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1ReplicationControllerCondition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1ReplicationControllerCondition item : items) { - V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1ReplicationControllerCondition item : items) { - V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1ReplicationControllerConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1ReplicationControllerCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1ReplicationControllerCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1ReplicationControllerCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -178,61 +108,20 @@ public V1ReplicationControllerCondition buildMatchingCondition(Predicate predicate) { - for (V1ReplicationControllerConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1ReplicationControllerCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(V1ReplicationControllerCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1ReplicationControllerCondition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1ReplicationControllerStatus instance) { + instance = instance != null ? instance : new V1ReplicationControllerStatus(); + if (instance != null) { + this.withAvailableReplicas(instance.getAvailableReplicas()); + this.withConditions(instance.getConditions()); + this.withFullyLabeledReplicas(instance.getFullyLabeledReplicas()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withReadyReplicas(instance.getReadyReplicas()); + this.withReplicas(instance.getReplicas()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1ReplicationControllerCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1ReplicationControllerCondition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -267,92 +156,152 @@ public ConditionsNested editMatchingCondition(Predicate predicate) { + for (V1ReplicationControllerConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; + public boolean hasObservedGeneration() { + return this.observedGeneration != null; + } + + public boolean hasReadyReplicas() { + return this.readyReplicas != null; } public boolean hasReplicas() { return this.replicas != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ReplicationControllerStatusFluent that = (V1ReplicationControllerStatusFluent) o; - if (!(Objects.equals(availableReplicas, that.availableReplicas))) { - return false; + public int hashCode() { + return Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; } - if (!(Objects.equals(conditions, that.conditions))) { - return false; + for (V1ReplicationControllerCondition item : items) { + V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } - if (!(Objects.equals(fullyLabeledReplicas, that.fullyLabeledReplicas))) { - return false; + return (A) this; + } + + public A removeFromConditions(V1ReplicationControllerCondition... items) { + if (this.conditions == null) { + return (A) this; } - if (!(Objects.equals(observedGeneration, that.observedGeneration))) { - return false; + for (V1ReplicationControllerCondition item : items) { + V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } - if (!(Objects.equals(readyReplicas, that.readyReplicas))) { - return false; + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; } - if (!(Objects.equals(replicas, that.replicas))) { - return false; + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ReplicationControllerConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas); + public ConditionsNested setNewConditionLike(int index,V1ReplicationControllerCondition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1ReplicationControllerCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; } public String toString() { @@ -390,14 +339,69 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAvailableReplicas(Integer availableReplicas) { + this.availableReplicas = availableReplicas; + return (A) this; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1ReplicationControllerCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1ReplicationControllerCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1ReplicationControllerCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withFullyLabeledReplicas(Integer fullyLabeledReplicas) { + this.fullyLabeledReplicas = fullyLabeledReplicas; + return (A) this; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public A withReadyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; + return (A) this; + } + + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; + } public class ConditionsNested extends V1ReplicationControllerConditionFluent> implements Nested{ + + V1ReplicationControllerConditionBuilder builder; + int index; + ConditionsNested(int index,V1ReplicationControllerCondition item) { this.index = index; this.builder = new V1ReplicationControllerConditionBuilder(this, item); } - V1ReplicationControllerConditionBuilder builder; - int index; - + public N and() { return (N) V1ReplicationControllerStatusFluent.this.setToConditions(index, builder.build()); } @@ -406,7 +410,5 @@ public N endCondition() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java index 050c3286ca..2f4e3422f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceAttributesBuilder extends V1ResourceAttributesFluent implements VisitableBuilder{ + + V1ResourceAttributesFluent fluent; + public V1ResourceAttributesBuilder() { this(new V1ResourceAttributes()); } @@ -11,17 +14,16 @@ public V1ResourceAttributesBuilder(V1ResourceAttributesFluent fluent) { this(fluent, new V1ResourceAttributes()); } - public V1ResourceAttributesBuilder(V1ResourceAttributesFluent fluent,V1ResourceAttributes instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceAttributesBuilder(V1ResourceAttributes instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceAttributesFluent fluent; + public V1ResourceAttributesBuilder(V1ResourceAttributesFluent fluent,V1ResourceAttributes instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceAttributes build() { V1ResourceAttributes buildable = new V1ResourceAttributes(); buildable.setFieldSelector(fluent.buildFieldSelector()); @@ -36,5 +38,4 @@ public V1ResourceAttributes build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java index 349c8d5cc7..1dfca7ba7c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java @@ -1,25 +1,20 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceAttributesFluent> extends BaseFluent{ - public V1ResourceAttributesFluent() { - } - - public V1ResourceAttributesFluent(V1ResourceAttributes instance) { - this.copyInstance(instance); - } + private V1FieldSelectorAttributesBuilder fieldSelector; private String group; private V1LabelSelectorAttributesBuilder labelSelector; @@ -29,6 +24,21 @@ public V1ResourceAttributesFluent(V1ResourceAttributes instance) { private String subresource; private String verb; private String version; + + public V1ResourceAttributesFluent() { + } + + public V1ResourceAttributesFluent(V1ResourceAttributes instance) { + this.copyInstance(instance); + } + + public V1FieldSelectorAttributes buildFieldSelector() { + return this.fieldSelector != null ? this.fieldSelector.build() : null; + } + + public V1LabelSelectorAttributes buildLabelSelector() { + return this.labelSelector != null ? this.labelSelector.build() : null; + } protected void copyInstance(V1ResourceAttributes instance) { instance = instance != null ? instance : new V1ResourceAttributes(); @@ -45,38 +55,14 @@ protected void copyInstance(V1ResourceAttributes instance) { } } - public V1FieldSelectorAttributes buildFieldSelector() { - return this.fieldSelector != null ? this.fieldSelector.build() : null; - } - - public A withFieldSelector(V1FieldSelectorAttributes fieldSelector) { - this._visitables.remove("fieldSelector"); - if (fieldSelector != null) { - this.fieldSelector = new V1FieldSelectorAttributesBuilder(fieldSelector); - this._visitables.get("fieldSelector").add(this.fieldSelector); - } else { - this.fieldSelector = null; - this._visitables.get("fieldSelector").remove(this.fieldSelector); - } - return (A) this; - } - - public boolean hasFieldSelector() { - return this.fieldSelector != null; - } - - public FieldSelectorNested withNewFieldSelector() { - return new FieldSelectorNested(null); - } - - public FieldSelectorNested withNewFieldSelectorLike(V1FieldSelectorAttributes item) { - return new FieldSelectorNested(item); - } - public FieldSelectorNested editFieldSelector() { return this.withNewFieldSelectorLike(Optional.ofNullable(this.buildFieldSelector()).orElse(null)); } + public LabelSelectorNested editLabelSelector() { + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(null)); + } + public FieldSelectorNested editOrNewFieldSelector() { return this.withNewFieldSelectorLike(Optional.ofNullable(this.buildFieldSelector()).orElse(new V1FieldSelectorAttributesBuilder().build())); } @@ -85,178 +71,119 @@ public FieldSelectorNested editOrNewFieldSelectorLike(V1FieldSelectorAttribut return this.withNewFieldSelectorLike(Optional.ofNullable(this.buildFieldSelector()).orElse(item)); } - public String getGroup() { - return this.group; + public LabelSelectorNested editOrNewLabelSelector() { + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(new V1LabelSelectorAttributesBuilder().build())); } - public A withGroup(String group) { - this.group = group; - return (A) this; + public LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelectorAttributes item) { + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(item)); } - public boolean hasGroup() { - return this.group != null; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceAttributesFluent that = (V1ResourceAttributesFluent) o; + if (!(Objects.equals(fieldSelector, that.fieldSelector))) { + return false; + } + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(labelSelector, that.labelSelector))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } + if (!(Objects.equals(subresource, that.subresource))) { + return false; + } + if (!(Objects.equals(verb, that.verb))) { + return false; + } + if (!(Objects.equals(version, that.version))) { + return false; + } + return true; } - public V1LabelSelectorAttributes buildLabelSelector() { - return this.labelSelector != null ? this.labelSelector.build() : null; + public String getGroup() { + return this.group; } - public A withLabelSelector(V1LabelSelectorAttributes labelSelector) { - this._visitables.remove("labelSelector"); - if (labelSelector != null) { - this.labelSelector = new V1LabelSelectorAttributesBuilder(labelSelector); - this._visitables.get("labelSelector").add(this.labelSelector); - } else { - this.labelSelector = null; - this._visitables.get("labelSelector").remove(this.labelSelector); - } - return (A) this; + public String getName() { + return this.name; } - public boolean hasLabelSelector() { - return this.labelSelector != null; + public String getNamespace() { + return this.namespace; } - public LabelSelectorNested withNewLabelSelector() { - return new LabelSelectorNested(null); + public String getResource() { + return this.resource; } - public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelectorAttributes item) { - return new LabelSelectorNested(item); + public String getSubresource() { + return this.subresource; } - public LabelSelectorNested editLabelSelector() { - return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(null)); + public String getVerb() { + return this.verb; } - public LabelSelectorNested editOrNewLabelSelector() { - return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(new V1LabelSelectorAttributesBuilder().build())); + public String getVersion() { + return this.version; } - public LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelectorAttributes item) { - return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(item)); + public boolean hasFieldSelector() { + return this.fieldSelector != null; } - public String getName() { - return this.name; + public boolean hasGroup() { + return this.group != null; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasLabelSelector() { + return this.labelSelector != null; } public boolean hasName() { return this.name != null; } - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - public boolean hasNamespace() { return this.namespace != null; } - public String getResource() { - return this.resource; - } - - public A withResource(String resource) { - this.resource = resource; - return (A) this; - } - public boolean hasResource() { return this.resource != null; } - public String getSubresource() { - return this.subresource; - } - - public A withSubresource(String subresource) { - this.subresource = subresource; - return (A) this; - } - public boolean hasSubresource() { return this.subresource != null; } - public String getVerb() { - return this.verb; - } - - public A withVerb(String verb) { - this.verb = verb; - return (A) this; - } - public boolean hasVerb() { return this.verb != null; } - public String getVersion() { - return this.version; - } - - public A withVersion(String version) { - this.version = version; - return (A) this; - } - public boolean hasVersion() { return this.version != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ResourceAttributesFluent that = (V1ResourceAttributesFluent) o; - if (!(Objects.equals(fieldSelector, that.fieldSelector))) { - return false; - } - if (!(Objects.equals(group, that.group))) { - return false; - } - if (!(Objects.equals(labelSelector, that.labelSelector))) { - return false; - } - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(namespace, that.namespace))) { - return false; - } - if (!(Objects.equals(resource, that.resource))) { - return false; - } - if (!(Objects.equals(subresource, that.subresource))) { - return false; - } - if (!(Objects.equals(verb, that.verb))) { - return false; - } - if (!(Objects.equals(version, that.version))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(fieldSelector, group, labelSelector, name, namespace, resource, subresource, verb, version); } @@ -311,12 +238,89 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withFieldSelector(V1FieldSelectorAttributes fieldSelector) { + this._visitables.remove("fieldSelector"); + if (fieldSelector != null) { + this.fieldSelector = new V1FieldSelectorAttributesBuilder(fieldSelector); + this._visitables.get("fieldSelector").add(this.fieldSelector); + } else { + this.fieldSelector = null; + this._visitables.get("fieldSelector").remove(this.fieldSelector); + } + return (A) this; + } + + public A withGroup(String group) { + this.group = group; + return (A) this; + } + + public A withLabelSelector(V1LabelSelectorAttributes labelSelector) { + this._visitables.remove("labelSelector"); + if (labelSelector != null) { + this.labelSelector = new V1LabelSelectorAttributesBuilder(labelSelector); + this._visitables.get("labelSelector").add(this.labelSelector); + } else { + this.labelSelector = null; + this._visitables.get("labelSelector").remove(this.labelSelector); + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public FieldSelectorNested withNewFieldSelector() { + return new FieldSelectorNested(null); + } + + public FieldSelectorNested withNewFieldSelectorLike(V1FieldSelectorAttributes item) { + return new FieldSelectorNested(item); + } + + public LabelSelectorNested withNewLabelSelector() { + return new LabelSelectorNested(null); + } + + public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelectorAttributes item) { + return new LabelSelectorNested(item); + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public A withSubresource(String subresource) { + this.subresource = subresource; + return (A) this; + } + + public A withVerb(String verb) { + this.verb = verb; + return (A) this; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } public class FieldSelectorNested extends V1FieldSelectorAttributesFluent> implements Nested{ + + V1FieldSelectorAttributesBuilder builder; + FieldSelectorNested(V1FieldSelectorAttributes item) { this.builder = new V1FieldSelectorAttributesBuilder(this, item); } - V1FieldSelectorAttributesBuilder builder; - + public N and() { return (N) V1ResourceAttributesFluent.this.withFieldSelector(builder.build()); } @@ -325,14 +329,15 @@ public N endFieldSelector() { return and(); } - } public class LabelSelectorNested extends V1LabelSelectorAttributesFluent> implements Nested{ + + V1LabelSelectorAttributesBuilder builder; + LabelSelectorNested(V1LabelSelectorAttributes item) { this.builder = new V1LabelSelectorAttributesBuilder(this, item); } - V1LabelSelectorAttributesBuilder builder; - + public N and() { return (N) V1ResourceAttributesFluent.this.withLabelSelector(builder.build()); } @@ -341,7 +346,5 @@ public N endLabelSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceBuilder.java index 341c1d92cc..f921d03471 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceClaimConsumerReferenceBuilder extends V1ResourceClaimConsumerReferenceFluent implements VisitableBuilder{ + + V1ResourceClaimConsumerReferenceFluent fluent; + public V1ResourceClaimConsumerReferenceBuilder() { this(new V1ResourceClaimConsumerReference()); } @@ -11,17 +14,16 @@ public V1ResourceClaimConsumerReferenceBuilder(V1ResourceClaimConsumerReferenceF this(fluent, new V1ResourceClaimConsumerReference()); } - public V1ResourceClaimConsumerReferenceBuilder(V1ResourceClaimConsumerReferenceFluent fluent,V1ResourceClaimConsumerReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceClaimConsumerReferenceBuilder(V1ResourceClaimConsumerReference instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceClaimConsumerReferenceFluent fluent; + public V1ResourceClaimConsumerReferenceBuilder(V1ResourceClaimConsumerReferenceFluent fluent,V1ResourceClaimConsumerReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceClaimConsumerReference build() { V1ResourceClaimConsumerReference buildable = new V1ResourceClaimConsumerReference(); buildable.setApiGroup(fluent.getApiGroup()); @@ -31,5 +33,4 @@ public V1ResourceClaimConsumerReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceFluent.java index 5e3e554f99..00e70d306b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceClaimConsumerReferenceFluent> extends BaseFluent{ + + private String apiGroup; + private String name; + private String resource; + private String uid; + public V1ResourceClaimConsumerReferenceFluent() { } public V1ResourceClaimConsumerReferenceFluent(V1ResourceClaimConsumerReference instance) { this.copyInstance(instance); } - private String apiGroup; - private String name; - private String resource; - private String uid; - + protected void copyInstance(V1ResourceClaimConsumerReference instance) { instance = instance != null ? instance : new V1ResourceClaimConsumerReference(); if (instance != null) { @@ -33,58 +35,6 @@ protected void copyInstance(V1ResourceClaimConsumerReference instance) { } } - public String getApiGroup() { - return this.apiGroup; - } - - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; - } - - public boolean hasApiGroup() { - return this.apiGroup != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getResource() { - return this.resource; - } - - public A withResource(String resource) { - this.resource = resource; - return (A) this; - } - - public boolean hasResource() { - return this.resource != null; - } - - public String getUid() { - return this.uid; - } - - public A withUid(String uid) { - this.uid = uid; - return (A) this; - } - - public boolean hasUid() { - return this.uid != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -111,6 +61,38 @@ public boolean equals(Object o) { return true; } + public String getApiGroup() { + return this.apiGroup; + } + + public String getName() { + return this.name; + } + + public String getResource() { + return this.resource; + } + + public String getUid() { + return this.uid; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResource() { + return this.resource != null; + } + + public boolean hasUid() { + return this.uid != null; + } + public int hashCode() { return Objects.hash(apiGroup, name, resource, uid); } @@ -141,5 +123,24 @@ public String toString() { return sb.toString(); } - + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListBuilder.java index 3acd9ed299..d48dca573a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceClaimListBuilder extends V1ResourceClaimListFluent implements VisitableBuilder{ + + V1ResourceClaimListFluent fluent; + public V1ResourceClaimListBuilder() { this(new V1ResourceClaimList()); } @@ -11,17 +14,16 @@ public V1ResourceClaimListBuilder(V1ResourceClaimListFluent fluent) { this(fluent, new V1ResourceClaimList()); } - public V1ResourceClaimListBuilder(V1ResourceClaimListFluent fluent,V1ResourceClaimList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceClaimListBuilder(V1ResourceClaimList instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceClaimListFluent fluent; + public V1ResourceClaimListBuilder(V1ResourceClaimListFluent fluent,V1ResourceClaimList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceClaimList build() { V1ResourceClaimList buildable = new V1ResourceClaimList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ResourceClaimList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListFluent.java index 6678687311..106612a91e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceClaimListFluent> extends BaseFluent{ - public V1ResourceClaimListFluent() { - } - - public V1ResourceClaimListFluent(V1ResourceClaimList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ResourceClaimList instance) { - instance = instance != null ? instance : new V1ResourceClaimList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1ResourceClaimListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1ResourceClaimListFluent(V1ResourceClaimList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,ResourceV1ResourceClaim item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (ResourceV1ResourceClaim item : items) { + ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,ResourceV1ResourceClaim item) { - if (this.items == null) { - this.items = new ArrayList(); - } - ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(ResourceV1ResourceClaim item) { + return new ItemsNested(-1, item); } public A addToItems(ResourceV1ResourceClaim... items) { @@ -96,68 +65,31 @@ public A addToItems(ResourceV1ResourceClaim... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,ResourceV1ResourceClaim item) { if (this.items == null) { this.items = new ArrayList(); } - for (ResourceV1ResourceClaim item : items) { - ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); + ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(ResourceV1ResourceClaim... items) { - if (this.items == null) { - return (A) this; - } - for (ResourceV1ResourceClaim item : items) { - ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (ResourceV1ResourceClaim item : items) { - ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - ResourceV1ResourceClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public ResourceV1ResourceClaim buildFirstItem() { + return this.items.get(0).build(); } public ResourceV1ResourceClaim buildItem(int index) { return this.items.get(index).build(); } - public ResourceV1ResourceClaim buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public ResourceV1ResourceClaim buildLastItem() { @@ -173,73 +105,34 @@ public ResourceV1ResourceClaim buildMatchingItem(Predicate predicate) { - for (ResourceV1ResourceClaimBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (ResourceV1ResourceClaim item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ResourceClaimList instance) { + instance = instance != null ? instance : new V1ResourceClaimList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(ResourceV1ResourceClaim... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (ResourceV1ResourceClaim item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(ResourceV1ResourceClaim item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,ResourceV1ResourceClaim item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (ResourceV1ResourceClaimBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (ResourceV1ResourceClaim item : items) { + ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(ResourceV1ResourceClaim... items) { + if (this.items == null) { + return (A) this; + } + for (ResourceV1ResourceClaim item : items) { + ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + ResourceV1ResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,ResourceV1ResourceClaim item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,ResourceV1ResourceClaim item) { + if (this.items == null) { + this.items = new ArrayList(); + } + ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (ResourceV1ResourceClaim item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(ResourceV1ResourceClaim... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (ResourceV1ResourceClaim item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends ResourceV1ResourceClaimFluent> implements Nested{ + + ResourceV1ResourceClaimBuilder builder; + int index; + ItemsNested(int index,ResourceV1ResourceClaim item) { this.index = index; this.builder = new ResourceV1ResourceClaimBuilder(this, item); } - ResourceV1ResourceClaimBuilder builder; - int index; - + public N and() { return (N) V1ResourceClaimListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ResourceClaimListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecBuilder.java index 848f86ee94..999e7f5f55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceClaimSpecBuilder extends V1ResourceClaimSpecFluent implements VisitableBuilder{ + + V1ResourceClaimSpecFluent fluent; + public V1ResourceClaimSpecBuilder() { this(new V1ResourceClaimSpec()); } @@ -11,22 +14,20 @@ public V1ResourceClaimSpecBuilder(V1ResourceClaimSpecFluent fluent) { this(fluent, new V1ResourceClaimSpec()); } - public V1ResourceClaimSpecBuilder(V1ResourceClaimSpecFluent fluent,V1ResourceClaimSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceClaimSpecBuilder(V1ResourceClaimSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceClaimSpecFluent fluent; + public V1ResourceClaimSpecBuilder(V1ResourceClaimSpecFluent fluent,V1ResourceClaimSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceClaimSpec build() { V1ResourceClaimSpec buildable = new V1ResourceClaimSpec(); buildable.setDevices(fluent.buildDevices()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecFluent.java index 8424de8f05..e4dd4227ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceClaimSpecFluent> extends BaseFluent{ + + private V1DeviceClaimBuilder devices; + public V1ResourceClaimSpecFluent() { } public V1ResourceClaimSpecFluent(V1ResourceClaimSpec instance) { this.copyInstance(instance); } - private V1DeviceClaimBuilder devices; + + public V1DeviceClaim buildDevices() { + return this.devices != null ? this.devices.build() : null; + } protected void copyInstance(V1ResourceClaimSpec instance) { instance = instance != null ? instance : new V1ResourceClaimSpec(); @@ -29,34 +35,6 @@ protected void copyInstance(V1ResourceClaimSpec instance) { } } - public V1DeviceClaim buildDevices() { - return this.devices != null ? this.devices.build() : null; - } - - public A withDevices(V1DeviceClaim devices) { - this._visitables.remove("devices"); - if (devices != null) { - this.devices = new V1DeviceClaimBuilder(devices); - this._visitables.get("devices").add(this.devices); - } else { - this.devices = null; - this._visitables.get("devices").remove(this.devices); - } - return (A) this; - } - - public boolean hasDevices() { - return this.devices != null; - } - - public DevicesNested withNewDevices() { - return new DevicesNested(null); - } - - public DevicesNested withNewDevicesLike(V1DeviceClaim item) { - return new DevicesNested(item); - } - public DevicesNested editDevices() { return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(null)); } @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasDevices() { + return this.devices != null; + } + public int hashCode() { return Objects.hash(devices); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withDevices(V1DeviceClaim devices) { + this._visitables.remove("devices"); + if (devices != null) { + this.devices = new V1DeviceClaimBuilder(devices); + this._visitables.get("devices").add(this.devices); + } else { + this.devices = null; + this._visitables.get("devices").remove(this.devices); + } + return (A) this; + } + + public DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1DeviceClaim item) { + return new DevicesNested(item); + } public class DevicesNested extends V1DeviceClaimFluent> implements Nested{ + + V1DeviceClaimBuilder builder; + DevicesNested(V1DeviceClaim item) { this.builder = new V1DeviceClaimBuilder(this, item); } - V1DeviceClaimBuilder builder; - + public N and() { return (N) V1ResourceClaimSpecFluent.this.withDevices(builder.build()); } @@ -114,7 +118,5 @@ public N endDevices() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusBuilder.java index 9c540fed7c..fe51c7f80f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceClaimStatusBuilder extends V1ResourceClaimStatusFluent implements VisitableBuilder{ + + V1ResourceClaimStatusFluent fluent; + public V1ResourceClaimStatusBuilder() { this(new V1ResourceClaimStatus()); } @@ -11,17 +14,16 @@ public V1ResourceClaimStatusBuilder(V1ResourceClaimStatusFluent fluent) { this(fluent, new V1ResourceClaimStatus()); } - public V1ResourceClaimStatusBuilder(V1ResourceClaimStatusFluent fluent,V1ResourceClaimStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceClaimStatusBuilder(V1ResourceClaimStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceClaimStatusFluent fluent; + public V1ResourceClaimStatusBuilder(V1ResourceClaimStatusFluent fluent,V1ResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceClaimStatus build() { V1ResourceClaimStatus buildable = new V1ResourceClaimStatus(); buildable.setAllocation(fluent.buildAllocation()); @@ -30,5 +32,4 @@ public V1ResourceClaimStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusFluent.java index 6eb1989e54..146396d82c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusFluent.java @@ -1,100 +1,90 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceClaimStatusFluent> extends BaseFluent{ + + private V1AllocationResultBuilder allocation; + private ArrayList devices; + private ArrayList reservedFor; + public V1ResourceClaimStatusFluent() { } public V1ResourceClaimStatusFluent(V1ResourceClaimStatus instance) { this.copyInstance(instance); } - private V1AllocationResultBuilder allocation; - private ArrayList devices; - private ArrayList reservedFor; - - protected void copyInstance(V1ResourceClaimStatus instance) { - instance = instance != null ? instance : new V1ResourceClaimStatus(); - if (instance != null) { - this.withAllocation(instance.getAllocation()); - this.withDevices(instance.getDevices()); - this.withReservedFor(instance.getReservedFor()); + + public A addAllToDevices(Collection items) { + if (this.devices == null) { + this.devices = new ArrayList(); } - } - - public V1AllocationResult buildAllocation() { - return this.allocation != null ? this.allocation.build() : null; - } - - public A withAllocation(V1AllocationResult allocation) { - this._visitables.remove("allocation"); - if (allocation != null) { - this.allocation = new V1AllocationResultBuilder(allocation); - this._visitables.get("allocation").add(this.allocation); - } else { - this.allocation = null; - this._visitables.get("allocation").remove(this.allocation); + for (V1AllocatedDeviceStatus item : items) { + V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); } return (A) this; } - public boolean hasAllocation() { - return this.allocation != null; - } - - public AllocationNested withNewAllocation() { - return new AllocationNested(null); + public A addAllToReservedFor(Collection items) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } + for (V1ResourceClaimConsumerReference item : items) { + V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); + } + return (A) this; } - public AllocationNested withNewAllocationLike(V1AllocationResult item) { - return new AllocationNested(item); + public DevicesNested addNewDevice() { + return new DevicesNested(-1, null); } - public AllocationNested editAllocation() { - return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(null)); + public DevicesNested addNewDeviceLike(V1AllocatedDeviceStatus item) { + return new DevicesNested(-1, item); } - public AllocationNested editOrNewAllocation() { - return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(new V1AllocationResultBuilder().build())); + public ReservedForNested addNewReservedFor() { + return new ReservedForNested(-1, null); } - public AllocationNested editOrNewAllocationLike(V1AllocationResult item) { - return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(item)); + public ReservedForNested addNewReservedForLike(V1ResourceClaimConsumerReference item) { + return new ReservedForNested(-1, item); } - public A addToDevices(int index,V1AllocatedDeviceStatus item) { + public A addToDevices(V1AllocatedDeviceStatus... items) { if (this.devices == null) { this.devices = new ArrayList(); } - V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); - } else { + for (V1AllocatedDeviceStatus item : items) { + V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); _visitables.get("devices").add(builder); - devices.add(index, builder); + this.devices.add(builder); } return (A) this; } - public A setToDevices(int index,V1AllocatedDeviceStatus item) { + public A addToDevices(int index,V1AllocatedDeviceStatus item) { if (this.devices == null) { this.devices = new ArrayList(); } @@ -104,91 +94,66 @@ public A setToDevices(int index,V1AllocatedDeviceStatus item) { devices.add(builder); } else { _visitables.get("devices").add(builder); - devices.set(index, builder); - } - return (A) this; - } - - public A addToDevices(V1AllocatedDeviceStatus... items) { - if (this.devices == null) { - this.devices = new ArrayList(); - } - for (V1AllocatedDeviceStatus item : items) { - V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); - _visitables.get("devices").add(builder); - this.devices.add(builder); + devices.add(index, builder); } return (A) this; } - public A addAllToDevices(Collection items) { - if (this.devices == null) { - this.devices = new ArrayList(); + public A addToReservedFor(V1ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); } - for (V1AllocatedDeviceStatus item : items) { - V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); - _visitables.get("devices").add(builder); - this.devices.add(builder); + for (V1ResourceClaimConsumerReference item : items) { + V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); } return (A) this; } - public A removeFromDevices(V1AllocatedDeviceStatus... items) { - if (this.devices == null) { - return (A) this; + public A addToReservedFor(int index,V1ResourceClaimConsumerReference item) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); } - for (V1AllocatedDeviceStatus item : items) { - V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); - _visitables.get("devices").remove(builder); - this.devices.remove(builder); + V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.add(index, builder); } return (A) this; } - public A removeAllFromDevices(Collection items) { - if (this.devices == null) { - return (A) this; - } - for (V1AllocatedDeviceStatus item : items) { - V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); - _visitables.get("devices").remove(builder); - this.devices.remove(builder); - } - return (A) this; + public V1AllocationResult buildAllocation() { + return this.allocation != null ? this.allocation.build() : null; } - public A removeMatchingFromDevices(Predicate predicate) { - if (devices == null) { - return (A) this; - } - Iterator each = devices.iterator(); - List visitables = _visitables.get("devices"); - while (each.hasNext()) { - V1AllocatedDeviceStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1AllocatedDeviceStatus buildDevice(int index) { + return this.devices.get(index).build(); } public List buildDevices() { return this.devices != null ? build(devices) : null; } - public V1AllocatedDeviceStatus buildDevice(int index) { - return this.devices.get(index).build(); - } - public V1AllocatedDeviceStatus buildFirstDevice() { return this.devices.get(0).build(); } + public V1ResourceClaimConsumerReference buildFirstReservedFor() { + return this.reservedFor.get(0).build(); + } + public V1AllocatedDeviceStatus buildLastDevice() { return this.devices.get(devices.size() - 1).build(); } + public V1ResourceClaimConsumerReference buildLastReservedFor() { + return this.reservedFor.get(reservedFor.size() - 1).build(); + } + public V1AllocatedDeviceStatus buildMatchingDevice(Predicate predicate) { for (V1AllocatedDeviceStatusBuilder item : devices) { if (predicate.test(item)) { @@ -198,61 +163,38 @@ public V1AllocatedDeviceStatus buildMatchingDevice(Predicate predicate) { - for (V1AllocatedDeviceStatusBuilder item : devices) { + public V1ResourceClaimConsumerReference buildMatchingReservedFor(Predicate predicate) { + for (V1ResourceClaimConsumerReferenceBuilder item : reservedFor) { if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withDevices(List devices) { - if (this.devices != null) { - this._visitables.get("devices").clear(); - } - if (devices != null) { - this.devices = new ArrayList(); - for (V1AllocatedDeviceStatus item : devices) { - this.addToDevices(item); + return item.build(); } - } else { - this.devices = null; - } - return (A) this; - } - - public A withDevices(V1AllocatedDeviceStatus... devices) { - if (this.devices != null) { - this.devices.clear(); - _visitables.remove("devices"); - } - if (devices != null) { - for (V1AllocatedDeviceStatus item : devices) { - this.addToDevices(item); } - } - return (A) this; + return null; } - public boolean hasDevices() { - return this.devices != null && !(this.devices.isEmpty()); + public List buildReservedFor() { + return this.reservedFor != null ? build(reservedFor) : null; } - public DevicesNested addNewDevice() { - return new DevicesNested(-1, null); + public V1ResourceClaimConsumerReference buildReservedFor(int index) { + return this.reservedFor.get(index).build(); } - public DevicesNested addNewDeviceLike(V1AllocatedDeviceStatus item) { - return new DevicesNested(-1, item); + protected void copyInstance(V1ResourceClaimStatus instance) { + instance = instance != null ? instance : new V1ResourceClaimStatus(); + if (instance != null) { + this.withAllocation(instance.getAllocation()); + this.withDevices(instance.getDevices()); + this.withReservedFor(instance.getReservedFor()); + } } - public DevicesNested setNewDeviceLike(int index,V1AllocatedDeviceStatus item) { - return new DevicesNested(index, item); + public AllocationNested editAllocation() { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(null)); } public DevicesNested editDevice(int index) { - if (index <= devices.size()) { + if (devices.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "devices")); } return this.setNewDeviceLike(index, this.buildDevice(index)); @@ -265,6 +207,13 @@ public DevicesNested editFirstDevice() { return this.setNewDeviceLike(0, this.buildDevice(0)); } + public ReservedForNested editFirstReservedFor() { + if (reservedFor.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "reservedFor")); + } + return this.setNewReservedForLike(0, this.buildReservedFor(0)); + } + public DevicesNested editLastDevice() { int index = devices.size() - 1; if (index < 0) { @@ -273,6 +222,14 @@ public DevicesNested editLastDevice() { return this.setNewDeviceLike(index, this.buildDevice(index)); } + public ReservedForNested editLastReservedFor() { + int index = reservedFor.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(index)); + } + public DevicesNested editMatchingDevice(Predicate predicate) { int index = -1; for (int i = 0;i < devices.size();i++) { @@ -287,56 +244,124 @@ public DevicesNested editMatchingDevice(Predicate editMatchingReservedFor(Predicate predicate) { + int index = -1; + for (int i = 0;i < reservedFor.size();i++) { + if (predicate.test(reservedFor.get(i))) { + index = i; + break; + } } - V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { - _visitables.get("reservedFor").add(builder); - reservedFor.add(builder); - } else { - _visitables.get("reservedFor").add(builder); - reservedFor.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "reservedFor")); } - return (A) this; + return this.setNewReservedForLike(index, this.buildReservedFor(index)); } - public A setToReservedFor(int index,V1ResourceClaimConsumerReference item) { - if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + public AllocationNested editOrNewAllocation() { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(new V1AllocationResultBuilder().build())); + } + + public AllocationNested editOrNewAllocationLike(V1AllocationResult item) { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(item)); + } + + public ReservedForNested editReservedFor(int index) { + if (reservedFor.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "reservedFor")); } - V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { - _visitables.get("reservedFor").add(builder); - reservedFor.add(builder); - } else { - _visitables.get("reservedFor").add(builder); - reservedFor.set(index, builder); + return this.setNewReservedForLike(index, this.buildReservedFor(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceClaimStatusFluent that = (V1ResourceClaimStatusFluent) o; + if (!(Objects.equals(allocation, that.allocation))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(reservedFor, that.reservedFor))) { + return false; + } + return true; + } + + public boolean hasAllocation() { + return this.allocation != null; + } + + public boolean hasDevices() { + return this.devices != null && !(this.devices.isEmpty()); + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingReservedFor(Predicate predicate) { + for (V1ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasReservedFor() { + return this.reservedFor != null && !(this.reservedFor.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allocation, devices, reservedFor); + } + + public A removeAllFromDevices(Collection items) { + if (this.devices == null) { + return (A) this; + } + for (V1AllocatedDeviceStatus item : items) { + V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); } return (A) this; } - public A addToReservedFor(V1ResourceClaimConsumerReference... items) { + public A removeAllFromReservedFor(Collection items) { if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + return (A) this; } for (V1ResourceClaimConsumerReference item : items) { V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); - _visitables.get("reservedFor").add(builder); - this.reservedFor.add(builder); + _visitables.get("reservedFor").remove(builder); + this.reservedFor.remove(builder); } return (A) this; } - public A addAllToReservedFor(Collection items) { - if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + public A removeFromDevices(V1AllocatedDeviceStatus... items) { + if (this.devices == null) { + return (A) this; } - for (V1ResourceClaimConsumerReference item : items) { - V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); - _visitables.get("reservedFor").add(builder); - this.reservedFor.add(builder); + for (V1AllocatedDeviceStatus item : items) { + V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); } return (A) this; } @@ -353,14 +378,18 @@ public A removeFromReservedFor(V1ResourceClaimConsumerReference... items) { return (A) this; } - public A removeAllFromReservedFor(Collection items) { - if (this.reservedFor == null) { + public A removeMatchingFromDevices(Predicate predicate) { + if (devices == null) { return (A) this; } - for (V1ResourceClaimConsumerReference item : items) { - V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); - _visitables.get("reservedFor").remove(builder); - this.reservedFor.remove(builder); + Iterator each = devices.iterator(); + List visitables = _visitables.get("devices"); + while (each.hasNext()) { + V1AllocatedDeviceStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -381,38 +410,111 @@ public A removeMatchingFromReservedFor(Predicate buildReservedFor() { - return this.reservedFor != null ? build(reservedFor) : null; + public DevicesNested setNewDeviceLike(int index,V1AllocatedDeviceStatus item) { + return new DevicesNested(index, item); } - public V1ResourceClaimConsumerReference buildReservedFor(int index) { - return this.reservedFor.get(index).build(); + public ReservedForNested setNewReservedForLike(int index,V1ResourceClaimConsumerReference item) { + return new ReservedForNested(index, item); } - public V1ResourceClaimConsumerReference buildFirstReservedFor() { - return this.reservedFor.get(0).build(); + public A setToDevices(int index,V1AllocatedDeviceStatus item) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); + } + return (A) this; } - public V1ResourceClaimConsumerReference buildLastReservedFor() { - return this.reservedFor.get(reservedFor.size() - 1).build(); + public A setToReservedFor(int index,V1ResourceClaimConsumerReference item) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } + V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.set(index, builder); + } + return (A) this; } - public V1ResourceClaimConsumerReference buildMatchingReservedFor(Predicate predicate) { - for (V1ResourceClaimConsumerReferenceBuilder item : reservedFor) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocation == null)) { + sb.append("allocation:"); + sb.append(allocation); + sb.append(","); + } + if (!(devices == null) && !(devices.isEmpty())) { + sb.append("devices:"); + sb.append(devices); + sb.append(","); + } + if (!(reservedFor == null) && !(reservedFor.isEmpty())) { + sb.append("reservedFor:"); + sb.append(reservedFor); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingReservedFor(Predicate predicate) { - for (V1ResourceClaimConsumerReferenceBuilder item : reservedFor) { - if (predicate.test(item)) { - return true; + public A withAllocation(V1AllocationResult allocation) { + this._visitables.remove("allocation"); + if (allocation != null) { + this.allocation = new V1AllocationResultBuilder(allocation); + this._visitables.get("allocation").add(this.allocation); + } else { + this.allocation = null; + this._visitables.get("allocation").remove(this.allocation); + } + return (A) this; + } + + public A withDevices(List devices) { + if (this.devices != null) { + this._visitables.get("devices").clear(); + } + if (devices != null) { + this.devices = new ArrayList(); + for (V1AllocatedDeviceStatus item : devices) { + this.addToDevices(item); } + } else { + this.devices = null; + } + return (A) this; + } + + public A withDevices(V1AllocatedDeviceStatus... devices) { + if (this.devices != null) { + this.devices.clear(); + _visitables.remove("devices"); + } + if (devices != null) { + for (V1AllocatedDeviceStatus item : devices) { + this.addToDevices(item); } - return false; + } + return (A) this; + } + + public AllocationNested withNewAllocation() { + return new AllocationNested(null); + } + + public AllocationNested withNewAllocationLike(V1AllocationResult item) { + return new AllocationNested(item); } public A withReservedFor(List reservedFor) { @@ -442,112 +544,14 @@ public A withReservedFor(V1ResourceClaimConsumerReference... reservedFor) { } return (A) this; } + public class AllocationNested extends V1AllocationResultFluent> implements Nested{ - public boolean hasReservedFor() { - return this.reservedFor != null && !(this.reservedFor.isEmpty()); - } - - public ReservedForNested addNewReservedFor() { - return new ReservedForNested(-1, null); - } - - public ReservedForNested addNewReservedForLike(V1ResourceClaimConsumerReference item) { - return new ReservedForNested(-1, item); - } - - public ReservedForNested setNewReservedForLike(int index,V1ResourceClaimConsumerReference item) { - return new ReservedForNested(index, item); - } - - public ReservedForNested editReservedFor(int index) { - if (index <= reservedFor.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "reservedFor")); - } - return this.setNewReservedForLike(index, this.buildReservedFor(index)); - } - - public ReservedForNested editFirstReservedFor() { - if (reservedFor.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "reservedFor")); - } - return this.setNewReservedForLike(0, this.buildReservedFor(0)); - } - - public ReservedForNested editLastReservedFor() { - int index = reservedFor.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "reservedFor")); - } - return this.setNewReservedForLike(index, this.buildReservedFor(index)); - } - - public ReservedForNested editMatchingReservedFor(Predicate predicate) { - int index = -1; - for (int i = 0;i < reservedFor.size();i++) { - if (predicate.test(reservedFor.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "reservedFor")); - } - return this.setNewReservedForLike(index, this.buildReservedFor(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ResourceClaimStatusFluent that = (V1ResourceClaimStatusFluent) o; - if (!(Objects.equals(allocation, that.allocation))) { - return false; - } - if (!(Objects.equals(devices, that.devices))) { - return false; - } - if (!(Objects.equals(reservedFor, that.reservedFor))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(allocation, devices, reservedFor); - } + V1AllocationResultBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(allocation == null)) { - sb.append("allocation:"); - sb.append(allocation); - sb.append(","); - } - if (!(devices == null) && !(devices.isEmpty())) { - sb.append("devices:"); - sb.append(devices); - sb.append(","); - } - if (!(reservedFor == null) && !(reservedFor.isEmpty())) { - sb.append("reservedFor:"); - sb.append(reservedFor); - } - sb.append("}"); - return sb.toString(); - } - public class AllocationNested extends V1AllocationResultFluent> implements Nested{ AllocationNested(V1AllocationResult item) { this.builder = new V1AllocationResultBuilder(this, item); } - V1AllocationResultBuilder builder; - + public N and() { return (N) V1ResourceClaimStatusFluent.this.withAllocation(builder.build()); } @@ -556,16 +560,17 @@ public N endAllocation() { return and(); } - } public class DevicesNested extends V1AllocatedDeviceStatusFluent> implements Nested{ + + V1AllocatedDeviceStatusBuilder builder; + int index; + DevicesNested(int index,V1AllocatedDeviceStatus item) { this.index = index; this.builder = new V1AllocatedDeviceStatusBuilder(this, item); } - V1AllocatedDeviceStatusBuilder builder; - int index; - + public N and() { return (N) V1ResourceClaimStatusFluent.this.setToDevices(index, builder.build()); } @@ -574,16 +579,17 @@ public N endDevice() { return and(); } - } public class ReservedForNested extends V1ResourceClaimConsumerReferenceFluent> implements Nested{ + + V1ResourceClaimConsumerReferenceBuilder builder; + int index; + ReservedForNested(int index,V1ResourceClaimConsumerReference item) { this.index = index; this.builder = new V1ResourceClaimConsumerReferenceBuilder(this, item); } - V1ResourceClaimConsumerReferenceBuilder builder; - int index; - + public N and() { return (N) V1ResourceClaimStatusFluent.this.setToReservedFor(index, builder.build()); } @@ -592,7 +598,5 @@ public N endReservedFor() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateBuilder.java index aa68d51420..1357e4d437 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceClaimTemplateBuilder extends V1ResourceClaimTemplateFluent implements VisitableBuilder{ + + V1ResourceClaimTemplateFluent fluent; + public V1ResourceClaimTemplateBuilder() { this(new V1ResourceClaimTemplate()); } @@ -11,17 +14,16 @@ public V1ResourceClaimTemplateBuilder(V1ResourceClaimTemplateFluent fluent) { this(fluent, new V1ResourceClaimTemplate()); } - public V1ResourceClaimTemplateBuilder(V1ResourceClaimTemplateFluent fluent,V1ResourceClaimTemplate instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceClaimTemplateBuilder(V1ResourceClaimTemplate instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceClaimTemplateFluent fluent; + public V1ResourceClaimTemplateBuilder(V1ResourceClaimTemplateFluent fluent,V1ResourceClaimTemplate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceClaimTemplate build() { V1ResourceClaimTemplate buildable = new V1ResourceClaimTemplate(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ResourceClaimTemplate build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateFluent.java index d7a94c9ca1..baa3b27b77 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceClaimTemplateFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ResourceClaimTemplateSpecBuilder spec; + public V1ResourceClaimTemplateFluent() { } public V1ResourceClaimTemplateFluent(V1ResourceClaimTemplate instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1ResourceClaimTemplateSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ResourceClaimTemplateSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1ResourceClaimTemplate instance) { instance = instance != null ? instance : new V1ResourceClaimTemplate(); @@ -35,60 +45,6 @@ protected void copyInstance(V1ResourceClaimTemplate instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ResourceClaimTemplateSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1ResourceClaimTemplateSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1ResourceClaimTemplateSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1ResourceClaimTemplateSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ResourceClaimTemplateSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1ResourceClaimTemplateSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ResourceClaimTemplateSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1ResourceClaimTemplateSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ResourceClaimTemplateSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ResourceClaimTemplateFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ResourceClaimTemplateSpecFluent> implements Nested{ + + V1ResourceClaimTemplateSpecBuilder builder; + SpecNested(V1ResourceClaimTemplateSpec item) { this.builder = new V1ResourceClaimTemplateSpecBuilder(this, item); } - V1ResourceClaimTemplateSpecBuilder builder; - + public N and() { return (N) V1ResourceClaimTemplateFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListBuilder.java index 389d615c0e..3cfef8191d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceClaimTemplateListBuilder extends V1ResourceClaimTemplateListFluent implements VisitableBuilder{ + + V1ResourceClaimTemplateListFluent fluent; + public V1ResourceClaimTemplateListBuilder() { this(new V1ResourceClaimTemplateList()); } @@ -11,17 +14,16 @@ public V1ResourceClaimTemplateListBuilder(V1ResourceClaimTemplateListFluent f this(fluent, new V1ResourceClaimTemplateList()); } - public V1ResourceClaimTemplateListBuilder(V1ResourceClaimTemplateListFluent fluent,V1ResourceClaimTemplateList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceClaimTemplateListBuilder(V1ResourceClaimTemplateList instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceClaimTemplateListFluent fluent; + public V1ResourceClaimTemplateListBuilder(V1ResourceClaimTemplateListFluent fluent,V1ResourceClaimTemplateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceClaimTemplateList build() { V1ResourceClaimTemplateList buildable = new V1ResourceClaimTemplateList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ResourceClaimTemplateList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListFluent.java index a5ee30dd9f..8e6951139d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceClaimTemplateListFluent> extends BaseFluent{ - public V1ResourceClaimTemplateListFluent() { - } - - public V1ResourceClaimTemplateListFluent(V1ResourceClaimTemplateList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ResourceClaimTemplateList instance) { - instance = instance != null ? instance : new V1ResourceClaimTemplateList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1ResourceClaimTemplateListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1ResourceClaimTemplateListFluent(V1ResourceClaimTemplateList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1ResourceClaimTemplate item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1ResourceClaimTemplate item : items) { + V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1ResourceClaimTemplate item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ResourceClaimTemplate item) { + return new ItemsNested(-1, item); } public A addToItems(V1ResourceClaimTemplate... items) { @@ -96,68 +65,31 @@ public A addToItems(V1ResourceClaimTemplate... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1ResourceClaimTemplate item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1ResourceClaimTemplate item : items) { - V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); + V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1ResourceClaimTemplate... items) { - if (this.items == null) { - return (A) this; - } - for (V1ResourceClaimTemplate item : items) { - V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1ResourceClaimTemplate item : items) { - V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1ResourceClaimTemplateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1ResourceClaimTemplate buildFirstItem() { + return this.items.get(0).build(); } public V1ResourceClaimTemplate buildItem(int index) { return this.items.get(index).build(); } - public V1ResourceClaimTemplate buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1ResourceClaimTemplate buildLastItem() { @@ -173,73 +105,34 @@ public V1ResourceClaimTemplate buildMatchingItem(Predicate predicate) { - for (V1ResourceClaimTemplateBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ResourceClaimTemplate item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ResourceClaimTemplateList instance) { + instance = instance != null ? instance : new V1ResourceClaimTemplateList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1ResourceClaimTemplate... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1ResourceClaimTemplate item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ResourceClaimTemplate item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ResourceClaimTemplate item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ResourceClaimTemplateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ResourceClaimTemplate item : items) { + V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ResourceClaimTemplate... items) { + if (this.items == null) { + return (A) this; + } + for (V1ResourceClaimTemplate item : items) { + V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ResourceClaimTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ResourceClaimTemplate item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1ResourceClaimTemplate item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ResourceClaimTemplate item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ResourceClaimTemplate... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ResourceClaimTemplate item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1ResourceClaimTemplateFluent> implements Nested{ + + V1ResourceClaimTemplateBuilder builder; + int index; + ItemsNested(int index,V1ResourceClaimTemplate item) { this.index = index; this.builder = new V1ResourceClaimTemplateBuilder(this, item); } - V1ResourceClaimTemplateBuilder builder; - int index; - + public N and() { return (N) V1ResourceClaimTemplateListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ResourceClaimTemplateListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecBuilder.java index df29e41773..0cf17a12fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceClaimTemplateSpecBuilder extends V1ResourceClaimTemplateSpecFluent implements VisitableBuilder{ + + V1ResourceClaimTemplateSpecFluent fluent; + public V1ResourceClaimTemplateSpecBuilder() { this(new V1ResourceClaimTemplateSpec()); } @@ -11,17 +14,16 @@ public V1ResourceClaimTemplateSpecBuilder(V1ResourceClaimTemplateSpecFluent f this(fluent, new V1ResourceClaimTemplateSpec()); } - public V1ResourceClaimTemplateSpecBuilder(V1ResourceClaimTemplateSpecFluent fluent,V1ResourceClaimTemplateSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceClaimTemplateSpecBuilder(V1ResourceClaimTemplateSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceClaimTemplateSpecFluent fluent; + public V1ResourceClaimTemplateSpecBuilder(V1ResourceClaimTemplateSpecFluent fluent,V1ResourceClaimTemplateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceClaimTemplateSpec build() { V1ResourceClaimTemplateSpec buildable = new V1ResourceClaimTemplateSpec(); buildable.setMetadata(fluent.buildMetadata()); @@ -29,5 +31,4 @@ public V1ResourceClaimTemplateSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecFluent.java index 7945b13e24..423cdee750 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecFluent.java @@ -1,27 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceClaimTemplateSpecFluent> extends BaseFluent{ + + private V1ObjectMetaBuilder metadata; + private V1ResourceClaimSpecBuilder spec; + public V1ResourceClaimTemplateSpecFluent() { } public V1ResourceClaimTemplateSpecFluent(V1ResourceClaimTemplateSpec instance) { this.copyInstance(instance); } - private V1ObjectMetaBuilder metadata; - private V1ResourceClaimSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1ResourceClaimTemplateSpec instance) { instance = instance != null ? instance : new V1ResourceClaimTemplateSpec(); @@ -31,34 +41,6 @@ protected void copyInstance(V1ResourceClaimTemplateSpec instance) { } } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -71,38 +53,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ResourceClaimSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1ResourceClaimSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1ResourceClaimSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1ResourceClaimSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ResourceClaimSpecBuilder().build())); } @@ -111,6 +61,10 @@ public SpecNested editOrNewSpecLike(V1ResourceClaimSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -131,6 +85,14 @@ public boolean equals(Object o) { return true; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(metadata, spec); } @@ -150,12 +112,54 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ResourceClaimSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1ResourceClaimSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ResourceClaimSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ResourceClaimTemplateSpecFluent.this.withMetadata(builder.build()); } @@ -164,14 +168,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ResourceClaimSpecFluent> implements Nested{ + + V1ResourceClaimSpecBuilder builder; + SpecNested(V1ResourceClaimSpec item) { this.builder = new V1ResourceClaimSpecBuilder(this, item); } - V1ResourceClaimSpecBuilder builder; - + public N and() { return (N) V1ResourceClaimTemplateSpecFluent.this.withSpec(builder.build()); } @@ -180,7 +185,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java index 1f71a65b9c..08dbf3a2ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceFieldSelectorBuilder extends V1ResourceFieldSelectorFluent implements VisitableBuilder{ + + V1ResourceFieldSelectorFluent fluent; + public V1ResourceFieldSelectorBuilder() { this(new V1ResourceFieldSelector()); } @@ -11,17 +14,16 @@ public V1ResourceFieldSelectorBuilder(V1ResourceFieldSelectorFluent fluent) { this(fluent, new V1ResourceFieldSelector()); } - public V1ResourceFieldSelectorBuilder(V1ResourceFieldSelectorFluent fluent,V1ResourceFieldSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceFieldSelectorBuilder(V1ResourceFieldSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceFieldSelectorFluent fluent; + public V1ResourceFieldSelectorBuilder(V1ResourceFieldSelectorFluent fluent,V1ResourceFieldSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceFieldSelector build() { V1ResourceFieldSelector buildable = new V1ResourceFieldSelector(); buildable.setContainerName(fluent.getContainerName()); @@ -30,5 +32,4 @@ public V1ResourceFieldSelector build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java index 5fe048875e..fb0707804f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceFieldSelectorFluent> extends BaseFluent{ + + private String containerName; + private Quantity divisor; + private String resource; + public V1ResourceFieldSelectorFluent() { } public V1ResourceFieldSelectorFluent(V1ResourceFieldSelector instance) { this.copyInstance(instance); } - private String containerName; - private Quantity divisor; - private String resource; - + protected void copyInstance(V1ResourceFieldSelector instance) { instance = instance != null ? instance : new V1ResourceFieldSelector(); if (instance != null) { @@ -32,49 +34,6 @@ protected void copyInstance(V1ResourceFieldSelector instance) { } } - public String getContainerName() { - return this.containerName; - } - - public A withContainerName(String containerName) { - this.containerName = containerName; - return (A) this; - } - - public boolean hasContainerName() { - return this.containerName != null; - } - - public Quantity getDivisor() { - return this.divisor; - } - - public A withDivisor(Quantity divisor) { - this.divisor = divisor; - return (A) this; - } - - public boolean hasDivisor() { - return this.divisor != null; - } - - public A withNewDivisor(String value) { - return (A) this.withDivisor(new Quantity(value)); - } - - public String getResource() { - return this.resource; - } - - public A withResource(String resource) { - this.resource = resource; - return (A) this; - } - - public boolean hasResource() { - return this.resource != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -98,6 +57,30 @@ public boolean equals(Object o) { return true; } + public String getContainerName() { + return this.containerName; + } + + public Quantity getDivisor() { + return this.divisor; + } + + public String getResource() { + return this.resource; + } + + public boolean hasContainerName() { + return this.containerName != null; + } + + public boolean hasDivisor() { + return this.divisor != null; + } + + public boolean hasResource() { + return this.resource != null; + } + public int hashCode() { return Objects.hash(containerName, divisor, resource); } @@ -123,5 +106,23 @@ public String toString() { return sb.toString(); } - + public A withContainerName(String containerName) { + this.containerName = containerName; + return (A) this; + } + + public A withDivisor(Quantity divisor) { + this.divisor = divisor; + return (A) this; + } + + public A withNewDivisor(String value) { + return (A) this.withDivisor(new Quantity(value)); + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthBuilder.java index 5b77780aa5..f10659e516 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceHealthBuilder extends V1ResourceHealthFluent implements VisitableBuilder{ + + V1ResourceHealthFluent fluent; + public V1ResourceHealthBuilder() { this(new V1ResourceHealth()); } @@ -11,17 +14,16 @@ public V1ResourceHealthBuilder(V1ResourceHealthFluent fluent) { this(fluent, new V1ResourceHealth()); } - public V1ResourceHealthBuilder(V1ResourceHealthFluent fluent,V1ResourceHealth instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceHealthBuilder(V1ResourceHealth instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceHealthFluent fluent; + public V1ResourceHealthBuilder(V1ResourceHealthFluent fluent,V1ResourceHealth instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceHealth build() { V1ResourceHealth buildable = new V1ResourceHealth(); buildable.setHealth(fluent.getHealth()); @@ -29,5 +31,4 @@ public V1ResourceHealth build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthFluent.java index 1e8b6133f9..c7f28eaf1d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceHealthFluent> extends BaseFluent{ + + private String health; + private String resourceID; + public V1ResourceHealthFluent() { } public V1ResourceHealthFluent(V1ResourceHealth instance) { this.copyInstance(instance); } - private String health; - private String resourceID; - + protected void copyInstance(V1ResourceHealth instance) { instance = instance != null ? instance : new V1ResourceHealth(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1ResourceHealth instance) { } } - public String getHealth() { - return this.health; - } - - public A withHealth(String health) { - this.health = health; - return (A) this; - } - - public boolean hasHealth() { - return this.health != null; - } - - public String getResourceID() { - return this.resourceID; - } - - public A withResourceID(String resourceID) { - this.resourceID = resourceID; - return (A) this; - } - - public boolean hasResourceID() { - return this.resourceID != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getHealth() { + return this.health; + } + + public String getResourceID() { + return this.resourceID; + } + + public boolean hasHealth() { + return this.health != null; + } + + public boolean hasResourceID() { + return this.resourceID != null; + } + public int hashCode() { return Objects.hash(health, resourceID); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withHealth(String health) { + this.health = health; + return (A) this; + } + + public A withResourceID(String resourceID) { + this.resourceID = resourceID; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleBuilder.java index ed014d09fb..cd5a7c5eba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourcePolicyRuleBuilder extends V1ResourcePolicyRuleFluent implements VisitableBuilder{ + + V1ResourcePolicyRuleFluent fluent; + public V1ResourcePolicyRuleBuilder() { this(new V1ResourcePolicyRule()); } @@ -11,17 +14,16 @@ public V1ResourcePolicyRuleBuilder(V1ResourcePolicyRuleFluent fluent) { this(fluent, new V1ResourcePolicyRule()); } - public V1ResourcePolicyRuleBuilder(V1ResourcePolicyRuleFluent fluent,V1ResourcePolicyRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourcePolicyRuleBuilder(V1ResourcePolicyRule instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourcePolicyRuleFluent fluent; + public V1ResourcePolicyRuleBuilder(V1ResourcePolicyRuleFluent fluent,V1ResourcePolicyRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourcePolicyRule build() { V1ResourcePolicyRule buildable = new V1ResourcePolicyRule(); buildable.setApiGroups(fluent.getApiGroups()); @@ -32,5 +34,4 @@ public V1ResourcePolicyRule build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleFluent.java index d0b938e746..188e04282d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleFluent.java @@ -1,58 +1,73 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourcePolicyRuleFluent> extends BaseFluent{ + + private List apiGroups; + private Boolean clusterScope; + private List namespaces; + private List resources; + private List verbs; + public V1ResourcePolicyRuleFluent() { } public V1ResourcePolicyRuleFluent(V1ResourcePolicyRule instance) { this.copyInstance(instance); } - private List apiGroups; - private Boolean clusterScope; - private List namespaces; - private List resources; - private List verbs; + + public A addAllToApiGroups(Collection items) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; + } - protected void copyInstance(V1ResourcePolicyRule instance) { - instance = instance != null ? instance : new V1ResourcePolicyRule(); - if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withClusterScope(instance.getClusterScope()); - this.withNamespaces(instance.getNamespaces()); - this.withResources(instance.getResources()); - this.withVerbs(instance.getVerbs()); + public A addAllToNamespaces(Collection items) { + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } + for (String item : items) { + this.namespaces.add(item); } + return (A) this; } - public A addToApiGroups(int index,String item) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + public A addAllToResources(Collection items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); } - this.apiGroups.add(index, item); return (A) this; } - public A setToApiGroups(int index,String item) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + public A addAllToVerbs(Collection items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); } - this.apiGroups.set(index, item); return (A) this; } @@ -66,52 +81,152 @@ public A addToApiGroups(String... items) { return (A) this; } - public A addAllToApiGroups(Collection items) { + public A addToApiGroups(int index,String item) { if (this.apiGroups == null) { this.apiGroups = new ArrayList(); } + this.apiGroups.add(index, item); + return (A) this; + } + + public A addToNamespaces(String... items) { + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } for (String item : items) { - this.apiGroups.add(item); + this.namespaces.add(item); } return (A) this; } - public A removeFromApiGroups(String... items) { - if (this.apiGroups == null) { - return (A) this; + public A addToNamespaces(int index,String item) { + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } + this.namespaces.add(index, item); + return (A) this; + } + + public A addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); } for (String item : items) { - this.apiGroups.remove(item); + this.resources.add(item); } return (A) this; } - public A removeAllFromApiGroups(Collection items) { - if (this.apiGroups == null) { - return (A) this; + public A addToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.add(index, item); + return (A) this; + } + + public A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); } for (String item : items) { - this.apiGroups.remove(item); + this.verbs.add(item); } return (A) this; } - public List getApiGroups() { - return this.apiGroups; + public A addToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.add(index, item); + return (A) this; + } + + protected void copyInstance(V1ResourcePolicyRule instance) { + instance = instance != null ? instance : new V1ResourcePolicyRule(); + if (instance != null) { + this.withApiGroups(instance.getApiGroups()); + this.withClusterScope(instance.getClusterScope()); + this.withNamespaces(instance.getNamespaces()); + this.withResources(instance.getResources()); + this.withVerbs(instance.getVerbs()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourcePolicyRuleFluent that = (V1ResourcePolicyRuleFluent) o; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(clusterScope, that.clusterScope))) { + return false; + } + if (!(Objects.equals(namespaces, that.namespaces))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } + return true; } public String getApiGroup(int index) { return this.apiGroups.get(index); } + public List getApiGroups() { + return this.apiGroups; + } + + public Boolean getClusterScope() { + return this.clusterScope; + } + public String getFirstApiGroup() { return this.apiGroups.get(0); } + public String getFirstNamespace() { + return this.namespaces.get(0); + } + + public String getFirstResource() { + return this.resources.get(0); + } + + public String getFirstVerb() { + return this.verbs.get(0); + } + public String getLastApiGroup() { return this.apiGroups.get(apiGroups.size() - 1); } + public String getLastNamespace() { + return this.namespaces.get(namespaces.size() - 1); + } + + public String getLastResource() { + return this.resources.get(resources.size() - 1); + } + + public String getLastVerb() { + return this.verbs.get(verbs.size() - 1); + } + public String getMatchingApiGroup(Predicate predicate) { for (String item : apiGroups) { if (predicate.test(item)) { @@ -121,136 +236,72 @@ public String getMatchingApiGroup(Predicate predicate) { return null; } - public boolean hasMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { + public String getMatchingNamespace(Predicate predicate) { + for (String item : namespaces) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withApiGroups(List apiGroups) { - if (apiGroups != null) { - this.apiGroups = new ArrayList(); - for (String item : apiGroups) { - this.addToApiGroups(item); + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return item; } - } else { - this.apiGroups = null; - } - return (A) this; + } + return null; } - public A withApiGroups(String... apiGroups) { - if (this.apiGroups != null) { - this.apiGroups.clear(); - _visitables.remove("apiGroups"); - } - if (apiGroups != null) { - for (String item : apiGroups) { - this.addToApiGroups(item); + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return item; + } } - } - return (A) this; + return null; } - public boolean hasApiGroups() { - return this.apiGroups != null && !(this.apiGroups.isEmpty()); + public String getNamespace(int index) { + return this.namespaces.get(index); } - public Boolean getClusterScope() { - return this.clusterScope; + public List getNamespaces() { + return this.namespaces; } - public A withClusterScope(Boolean clusterScope) { - this.clusterScope = clusterScope; - return (A) this; + public String getResource(int index) { + return this.resources.get(index); } - public boolean hasClusterScope() { - return this.clusterScope != null; + public List getResources() { + return this.resources; } - public A addToNamespaces(int index,String item) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } - this.namespaces.add(index, item); - return (A) this; - } - - public A setToNamespaces(int index,String item) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } - this.namespaces.set(index, item); - return (A) this; - } - - public A addToNamespaces(String... items) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } - for (String item : items) { - this.namespaces.add(item); - } - return (A) this; - } - - public A addAllToNamespaces(Collection items) { - if (this.namespaces == null) { - this.namespaces = new ArrayList(); - } - for (String item : items) { - this.namespaces.add(item); - } - return (A) this; - } - - public A removeFromNamespaces(String... items) { - if (this.namespaces == null) { - return (A) this; - } - for (String item : items) { - this.namespaces.remove(item); - } - return (A) this; - } - - public A removeAllFromNamespaces(Collection items) { - if (this.namespaces == null) { - return (A) this; - } - for (String item : items) { - this.namespaces.remove(item); - } - return (A) this; - } - - public List getNamespaces() { - return this.namespaces; + public String getVerb(int index) { + return this.verbs.get(index); } - public String getNamespace(int index) { - return this.namespaces.get(index); + public List getVerbs() { + return this.verbs; } - public String getFirstNamespace() { - return this.namespaces.get(0); + public boolean hasApiGroups() { + return this.apiGroups != null && !(this.apiGroups.isEmpty()); } - public String getLastNamespace() { - return this.namespaces.get(namespaces.size() - 1); + public boolean hasClusterScope() { + return this.clusterScope != null; } - public String getMatchingNamespace(Predicate predicate) { - for (String item : namespaces) { + public boolean hasMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { if (predicate.test(item)) { - return item; + return true; } } - return null; + return false; } public boolean hasMatchingNamespace(Predicate predicate) { @@ -262,72 +313,61 @@ public boolean hasMatchingNamespace(Predicate predicate) { return false; } - public A withNamespaces(List namespaces) { - if (namespaces != null) { - this.namespaces = new ArrayList(); - for (String item : namespaces) { - this.addToNamespaces(item); + public boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return true; } - } else { - this.namespaces = null; - } - return (A) this; + } + return false; } - public A withNamespaces(String... namespaces) { - if (this.namespaces != null) { - this.namespaces.clear(); - _visitables.remove("namespaces"); - } - if (namespaces != null) { - for (String item : namespaces) { - this.addToNamespaces(item); + public boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return true; + } } - } - return (A) this; + return false; } public boolean hasNamespaces() { return this.namespaces != null && !(this.namespaces.isEmpty()); } - public A addToResources(int index,String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - this.resources.add(index, item); - return (A) this; + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); } - public A setToResources(int index,String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - this.resources.set(index, item); - return (A) this; + public boolean hasVerbs() { + return this.verbs != null && !(this.verbs.isEmpty()); } - public A addToResources(String... items) { - if (this.resources == null) { - this.resources = new ArrayList(); + public int hashCode() { + return Objects.hash(apiGroups, clusterScope, namespaces, resources, verbs); + } + + public A removeAllFromApiGroups(Collection items) { + if (this.apiGroups == null) { + return (A) this; } for (String item : items) { - this.resources.add(item); + this.apiGroups.remove(item); } return (A) this; } - public A addAllToResources(Collection items) { - if (this.resources == null) { - this.resources = new ArrayList(); + public A removeAllFromNamespaces(Collection items) { + if (this.namespaces == null) { + return (A) this; } for (String item : items) { - this.resources.add(item); + this.namespaces.remove(item); } return (A) this; } - public A removeFromResources(String... items) { + public A removeAllFromResources(Collection items) { if (this.resources == null) { return (A) this; } @@ -337,84 +377,77 @@ public A removeFromResources(String... items) { return (A) this; } - public A removeAllFromResources(Collection items) { - if (this.resources == null) { + public A removeAllFromVerbs(Collection items) { + if (this.verbs == null) { return (A) this; } for (String item : items) { - this.resources.remove(item); + this.verbs.remove(item); } return (A) this; } - public List getResources() { - return this.resources; - } - - public String getResource(int index) { - return this.resources.get(index); - } - - public String getFirstResource() { - return this.resources.get(0); - } - - public String getLastResource() { - return this.resources.get(resources.size() - 1); + public A removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } - public String getMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A removeFromNamespaces(String... items) { + if (this.namespaces == null) { + return (A) this; + } + for (String item : items) { + this.namespaces.remove(item); + } + return (A) this; } - public boolean hasMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } - public A withResources(List resources) { - if (resources != null) { - this.resources = new ArrayList(); - for (String item : resources) { - this.addToResources(item); - } - } else { - this.resources = null; + public A removeFromVerbs(String... items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); } return (A) this; } - public A withResources(String... resources) { - if (this.resources != null) { - this.resources.clear(); - _visitables.remove("resources"); - } - if (resources != null) { - for (String item : resources) { - this.addToResources(item); - } + public A setToApiGroups(int index,String item) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); } + this.apiGroups.set(index, item); return (A) this; } - public boolean hasResources() { - return this.resources != null && !(this.resources.isEmpty()); + public A setToNamespaces(int index,String item) { + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } + this.namespaces.set(index, item); + return (A) this; } - public A addToVerbs(int index,String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); + public A setToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); } - this.verbs.add(index, item); + this.resources.set(index, item); return (A) this; } @@ -426,78 +459,119 @@ public A setToVerbs(int index,String item) { return (A) this; } - public A addToVerbs(String... items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiGroups == null) && !(apiGroups.isEmpty())) { + sb.append("apiGroups:"); + sb.append(apiGroups); + sb.append(","); } - for (String item : items) { - this.verbs.add(item); + if (!(clusterScope == null)) { + sb.append("clusterScope:"); + sb.append(clusterScope); + sb.append(","); } - return (A) this; - } - - public A addAllToVerbs(Collection items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); + if (!(namespaces == null) && !(namespaces.isEmpty())) { + sb.append("namespaces:"); + sb.append(namespaces); + sb.append(","); } - for (String item : items) { - this.verbs.add(item); + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); } - return (A) this; + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + } + sb.append("}"); + return sb.toString(); } - public A removeFromVerbs(String... items) { - if (this.verbs == null) { - return (A) this; - } - for (String item : items) { - this.verbs.remove(item); + public A withApiGroups(List apiGroups) { + if (apiGroups != null) { + this.apiGroups = new ArrayList(); + for (String item : apiGroups) { + this.addToApiGroups(item); + } + } else { + this.apiGroups = null; } return (A) this; } - public A removeAllFromVerbs(Collection items) { - if (this.verbs == null) { - return (A) this; + public A withApiGroups(String... apiGroups) { + if (this.apiGroups != null) { + this.apiGroups.clear(); + _visitables.remove("apiGroups"); } - for (String item : items) { - this.verbs.remove(item); + if (apiGroups != null) { + for (String item : apiGroups) { + this.addToApiGroups(item); + } } return (A) this; } - public List getVerbs() { - return this.verbs; + public A withClusterScope() { + return withClusterScope(true); } - public String getVerb(int index) { - return this.verbs.get(index); + public A withClusterScope(Boolean clusterScope) { + this.clusterScope = clusterScope; + return (A) this; } - public String getFirstVerb() { - return this.verbs.get(0); + public A withNamespaces(List namespaces) { + if (namespaces != null) { + this.namespaces = new ArrayList(); + for (String item : namespaces) { + this.addToNamespaces(item); + } + } else { + this.namespaces = null; + } + return (A) this; } - public String getLastVerb() { - return this.verbs.get(verbs.size() - 1); + public A withNamespaces(String... namespaces) { + if (this.namespaces != null) { + this.namespaces.clear(); + _visitables.remove("namespaces"); + } + if (namespaces != null) { + for (String item : namespaces) { + this.addToNamespaces(item); + } + } + return (A) this; } - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; + public A withResources(List resources) { + if (resources != null) { + this.resources = new ArrayList(); + for (String item : resources) { + this.addToResources(item); } - } - return null; + } else { + this.resources = null; + } + return (A) this; } - public boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } + public A withResources(String... resources) { + if (this.resources != null) { + this.resources.clear(); + _visitables.remove("resources"); + } + if (resources != null) { + for (String item : resources) { + this.addToResources(item); } - return false; + } + return (A) this; } public A withVerbs(List verbs) { @@ -525,77 +599,4 @@ public A withVerbs(String... verbs) { return (A) this; } - public boolean hasVerbs() { - return this.verbs != null && !(this.verbs.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ResourcePolicyRuleFluent that = (V1ResourcePolicyRuleFluent) o; - if (!(Objects.equals(apiGroups, that.apiGroups))) { - return false; - } - if (!(Objects.equals(clusterScope, that.clusterScope))) { - return false; - } - if (!(Objects.equals(namespaces, that.namespaces))) { - return false; - } - if (!(Objects.equals(resources, that.resources))) { - return false; - } - if (!(Objects.equals(verbs, that.verbs))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(apiGroups, clusterScope, namespaces, resources, verbs); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(apiGroups == null) && !(apiGroups.isEmpty())) { - sb.append("apiGroups:"); - sb.append(apiGroups); - sb.append(","); - } - if (!(clusterScope == null)) { - sb.append("clusterScope:"); - sb.append(clusterScope); - sb.append(","); - } - if (!(namespaces == null) && !(namespaces.isEmpty())) { - sb.append("namespaces:"); - sb.append(namespaces); - sb.append(","); - } - if (!(resources == null) && !(resources.isEmpty())) { - sb.append("resources:"); - sb.append(resources); - sb.append(","); - } - if (!(verbs == null) && !(verbs.isEmpty())) { - sb.append("verbs:"); - sb.append(verbs); - } - sb.append("}"); - return sb.toString(); - } - - public A withClusterScope() { - return withClusterScope(true); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolBuilder.java index de4beb5e5f..3291157b78 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourcePoolBuilder extends V1ResourcePoolFluent implements VisitableBuilder{ + + V1ResourcePoolFluent fluent; + public V1ResourcePoolBuilder() { this(new V1ResourcePool()); } @@ -11,17 +14,16 @@ public V1ResourcePoolBuilder(V1ResourcePoolFluent fluent) { this(fluent, new V1ResourcePool()); } - public V1ResourcePoolBuilder(V1ResourcePoolFluent fluent,V1ResourcePool instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourcePoolBuilder(V1ResourcePool instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourcePoolFluent fluent; + public V1ResourcePoolBuilder(V1ResourcePoolFluent fluent,V1ResourcePool instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourcePool build() { V1ResourcePool buildable = new V1ResourcePool(); buildable.setGeneration(fluent.getGeneration()); @@ -30,5 +32,4 @@ public V1ResourcePool build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolFluent.java index b88a47b49c..c506d2f6da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourcePoolFluent> extends BaseFluent{ + + private Long generation; + private String name; + private Long resourceSliceCount; + public V1ResourcePoolFluent() { } public V1ResourcePoolFluent(V1ResourcePool instance) { this.copyInstance(instance); } - private Long generation; - private String name; - private Long resourceSliceCount; - + protected void copyInstance(V1ResourcePool instance) { instance = instance != null ? instance : new V1ResourcePool(); if (instance != null) { @@ -32,45 +34,6 @@ protected void copyInstance(V1ResourcePool instance) { } } - public Long getGeneration() { - return this.generation; - } - - public A withGeneration(Long generation) { - this.generation = generation; - return (A) this; - } - - public boolean hasGeneration() { - return this.generation != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public Long getResourceSliceCount() { - return this.resourceSliceCount; - } - - public A withResourceSliceCount(Long resourceSliceCount) { - this.resourceSliceCount = resourceSliceCount; - return (A) this; - } - - public boolean hasResourceSliceCount() { - return this.resourceSliceCount != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -94,6 +57,30 @@ public boolean equals(Object o) { return true; } + public Long getGeneration() { + return this.generation; + } + + public String getName() { + return this.name; + } + + public Long getResourceSliceCount() { + return this.resourceSliceCount; + } + + public boolean hasGeneration() { + return this.generation != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResourceSliceCount() { + return this.resourceSliceCount != null; + } + public int hashCode() { return Objects.hash(generation, name, resourceSliceCount); } @@ -119,5 +106,19 @@ public String toString() { return sb.toString(); } - + public A withGeneration(Long generation) { + this.generation = generation; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResourceSliceCount(Long resourceSliceCount) { + this.resourceSliceCount = resourceSliceCount; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java index fdc1ce2c14..31f87740f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceQuotaBuilder extends V1ResourceQuotaFluent implements VisitableBuilder{ + + V1ResourceQuotaFluent fluent; + public V1ResourceQuotaBuilder() { this(new V1ResourceQuota()); } @@ -11,17 +14,16 @@ public V1ResourceQuotaBuilder(V1ResourceQuotaFluent fluent) { this(fluent, new V1ResourceQuota()); } - public V1ResourceQuotaBuilder(V1ResourceQuotaFluent fluent,V1ResourceQuota instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceQuotaBuilder(V1ResourceQuota instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceQuotaFluent fluent; + public V1ResourceQuotaBuilder(V1ResourceQuotaFluent fluent,V1ResourceQuota instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceQuota build() { V1ResourceQuota buildable = new V1ResourceQuota(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1ResourceQuota build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java index a3fbe7fffc..0a4d596c26 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceQuotaFluent> extends BaseFluent{ - public V1ResourceQuotaFluent() { - } - - public V1ResourceQuotaFluent(V1ResourceQuota instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1ResourceQuotaSpecBuilder spec; private V1ResourceQuotaStatusBuilder status; - - protected void copyInstance(V1ResourceQuota instance) { - instance = instance != null ? instance : new V1ResourceQuota(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1ResourceQuotaFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1ResourceQuotaFluent(V1ResourceQuota instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1ResourceQuotaSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1ResourceQuotaStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1ResourceQuota instance) { + instance = instance != null ? instance : new V1ResourceQuota(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ResourceQuotaSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1ResourceQuotaSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1ResourceQuotaSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1ResourceQuotaSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ResourceQuotaSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1ResourceQuotaSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1ResourceQuotaStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1ResourceQuotaStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1ResourceQuotaStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ResourceQuotaStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1ResourceQuotaStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1ResourceQuotaStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ResourceQuotaStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1ResourceQuotaStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ResourceQuotaSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1ResourceQuotaStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1ResourceQuotaSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ResourceQuotaSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1ResourceQuotaStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1ResourceQuotaStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ResourceQuotaFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ResourceQuotaSpecFluent> implements Nested{ + + V1ResourceQuotaSpecBuilder builder; + SpecNested(V1ResourceQuotaSpec item) { this.builder = new V1ResourceQuotaSpecBuilder(this, item); } - V1ResourceQuotaSpecBuilder builder; - + public N and() { return (N) V1ResourceQuotaFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1ResourceQuotaStatusFluent> implements Nested{ + + V1ResourceQuotaStatusBuilder builder; + StatusNested(V1ResourceQuotaStatus item) { this.builder = new V1ResourceQuotaStatusBuilder(this, item); } - V1ResourceQuotaStatusBuilder builder; - + public N and() { return (N) V1ResourceQuotaFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java index b672507639..0c9cb53174 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceQuotaListBuilder extends V1ResourceQuotaListFluent implements VisitableBuilder{ + + V1ResourceQuotaListFluent fluent; + public V1ResourceQuotaListBuilder() { this(new V1ResourceQuotaList()); } @@ -11,17 +14,16 @@ public V1ResourceQuotaListBuilder(V1ResourceQuotaListFluent fluent) { this(fluent, new V1ResourceQuotaList()); } - public V1ResourceQuotaListBuilder(V1ResourceQuotaListFluent fluent,V1ResourceQuotaList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceQuotaListBuilder(V1ResourceQuotaList instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceQuotaListFluent fluent; + public V1ResourceQuotaListBuilder(V1ResourceQuotaListFluent fluent,V1ResourceQuotaList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceQuotaList build() { V1ResourceQuotaList buildable = new V1ResourceQuotaList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ResourceQuotaList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java index 0ee0bea9b9..0b164f3f2a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceQuotaListFluent> extends BaseFluent{ - public V1ResourceQuotaListFluent() { - } - - public V1ResourceQuotaListFluent(V1ResourceQuotaList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ResourceQuotaList instance) { - instance = instance != null ? instance : new V1ResourceQuotaList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1ResourceQuotaListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1ResourceQuotaListFluent(V1ResourceQuotaList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1ResourceQuota item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1ResourceQuota item : items) { + V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1ResourceQuota item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ResourceQuota item) { + return new ItemsNested(-1, item); } public A addToItems(V1ResourceQuota... items) { @@ -96,68 +65,31 @@ public A addToItems(V1ResourceQuota... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1ResourceQuota item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1ResourceQuota item : items) { - V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); + V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1ResourceQuota... items) { - if (this.items == null) { - return (A) this; - } - for (V1ResourceQuota item : items) { - V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1ResourceQuota item : items) { - V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1ResourceQuotaBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1ResourceQuota buildFirstItem() { + return this.items.get(0).build(); } public V1ResourceQuota buildItem(int index) { return this.items.get(index).build(); } - public V1ResourceQuota buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1ResourceQuota buildLastItem() { @@ -173,73 +105,34 @@ public V1ResourceQuota buildMatchingItem(Predicate predi return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1ResourceQuotaBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ResourceQuota item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ResourceQuotaList instance) { + instance = instance != null ? instance : new V1ResourceQuotaList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1ResourceQuota... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1ResourceQuota item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ResourceQuota item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ResourceQuota item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predica return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ResourceQuotaBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ResourceQuota item : items) { + V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ResourceQuota... items) { + if (this.items == null) { + return (A) this; + } + for (V1ResourceQuota item : items) { + V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ResourceQuotaBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ResourceQuota item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1ResourceQuota item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ResourceQuota item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ResourceQuota... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ResourceQuota item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1ResourceQuotaFluent> implements Nested{ + + V1ResourceQuotaBuilder builder; + int index; + ItemsNested(int index,V1ResourceQuota item) { this.index = index; this.builder = new V1ResourceQuotaBuilder(this, item); } - V1ResourceQuotaBuilder builder; - int index; - + public N and() { return (N) V1ResourceQuotaListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ResourceQuotaListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java index a89e400594..c9f32e0f99 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceQuotaSpecBuilder extends V1ResourceQuotaSpecFluent implements VisitableBuilder{ + + V1ResourceQuotaSpecFluent fluent; + public V1ResourceQuotaSpecBuilder() { this(new V1ResourceQuotaSpec()); } @@ -11,17 +14,16 @@ public V1ResourceQuotaSpecBuilder(V1ResourceQuotaSpecFluent fluent) { this(fluent, new V1ResourceQuotaSpec()); } - public V1ResourceQuotaSpecBuilder(V1ResourceQuotaSpecFluent fluent,V1ResourceQuotaSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceQuotaSpecBuilder(V1ResourceQuotaSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceQuotaSpecFluent fluent; + public V1ResourceQuotaSpecBuilder(V1ResourceQuotaSpecFluent fluent,V1ResourceQuotaSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceQuotaSpec build() { V1ResourceQuotaSpec buildable = new V1ResourceQuotaSpec(); buildable.setHard(fluent.getHard()); @@ -30,5 +32,4 @@ public V1ResourceQuotaSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java index 5ccb5ad7d1..099b180721 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java @@ -1,51 +1,44 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import io.kubernetes.client.custom.Quantity; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceQuotaSpecFluent> extends BaseFluent{ + + private Map hard; + private V1ScopeSelectorBuilder scopeSelector; + private List scopes; + public V1ResourceQuotaSpecFluent() { } public V1ResourceQuotaSpecFluent(V1ResourceQuotaSpec instance) { this.copyInstance(instance); } - private Map hard; - private V1ScopeSelectorBuilder scopeSelector; - private List scopes; - - protected void copyInstance(V1ResourceQuotaSpec instance) { - instance = instance != null ? instance : new V1ResourceQuotaSpec(); - if (instance != null) { - this.withHard(instance.getHard()); - this.withScopeSelector(instance.getScopeSelector()); - this.withScopes(instance.getScopes()); - } - } - - public A addToHard(String key,Quantity value) { - if (this.hard == null && key != null && value != null) { - this.hard = new LinkedHashMap(); + + public A addAllToScopes(Collection items) { + if (this.scopes == null) { + this.scopes = new ArrayList(); } - if (key != null && value != null) { - this.hard.put(key, value); + for (String item : items) { + this.scopes.add(item); } return (A) this; } @@ -60,77 +53,45 @@ public A addToHard(Map map) { return (A) this; } - public A removeFromHard(String key) { - if (this.hard == null) { - return (A) this; + public A addToHard(String key,Quantity value) { + if (this.hard == null && key != null && value != null) { + this.hard = new LinkedHashMap(); } - if (key != null && this.hard != null) { - this.hard.remove(key); + if (key != null && value != null) { + this.hard.put(key, value); } return (A) this; } - public A removeFromHard(Map map) { - if (this.hard == null) { - return (A) this; + public A addToScopes(String... items) { + if (this.scopes == null) { + this.scopes = new ArrayList(); } - if (map != null) { - for (Object key : map.keySet()) { - if (this.hard != null) { - this.hard.remove(key); - } - } + for (String item : items) { + this.scopes.add(item); } return (A) this; } - public Map getHard() { - return this.hard; - } - - public A withHard(Map hard) { - if (hard == null) { - this.hard = null; - } else { - this.hard = new LinkedHashMap(hard); + public A addToScopes(int index,String item) { + if (this.scopes == null) { + this.scopes = new ArrayList(); } + this.scopes.add(index, item); return (A) this; } - public boolean hasHard() { - return this.hard != null; - } - public V1ScopeSelector buildScopeSelector() { return this.scopeSelector != null ? this.scopeSelector.build() : null; } - public A withScopeSelector(V1ScopeSelector scopeSelector) { - this._visitables.remove("scopeSelector"); - if (scopeSelector != null) { - this.scopeSelector = new V1ScopeSelectorBuilder(scopeSelector); - this._visitables.get("scopeSelector").add(this.scopeSelector); - } else { - this.scopeSelector = null; - this._visitables.get("scopeSelector").remove(this.scopeSelector); + protected void copyInstance(V1ResourceQuotaSpec instance) { + instance = instance != null ? instance : new V1ResourceQuotaSpec(); + if (instance != null) { + this.withHard(instance.getHard()); + this.withScopeSelector(instance.getScopeSelector()); + this.withScopes(instance.getScopes()); } - return (A) this; - } - - public boolean hasScopeSelector() { - return this.scopeSelector != null; - } - - public ScopeSelectorNested withNewScopeSelector() { - return new ScopeSelectorNested(null); - } - - public ScopeSelectorNested withNewScopeSelectorLike(V1ScopeSelector item) { - return new ScopeSelectorNested(item); - } - - public ScopeSelectorNested editScopeSelector() { - return this.withNewScopeSelectorLike(Optional.ofNullable(this.buildScopeSelector()).orElse(null)); } public ScopeSelectorNested editOrNewScopeSelector() { @@ -141,74 +102,41 @@ public ScopeSelectorNested editOrNewScopeSelectorLike(V1ScopeSelector item) { return this.withNewScopeSelectorLike(Optional.ofNullable(this.buildScopeSelector()).orElse(item)); } - public A addToScopes(int index,String item) { - if (this.scopes == null) { - this.scopes = new ArrayList(); - } - this.scopes.add(index, item); - return (A) this; - } - - public A setToScopes(int index,String item) { - if (this.scopes == null) { - this.scopes = new ArrayList(); - } - this.scopes.set(index, item); - return (A) this; - } - - public A addToScopes(String... items) { - if (this.scopes == null) { - this.scopes = new ArrayList(); - } - for (String item : items) { - this.scopes.add(item); - } - return (A) this; + public ScopeSelectorNested editScopeSelector() { + return this.withNewScopeSelectorLike(Optional.ofNullable(this.buildScopeSelector()).orElse(null)); } - public A addAllToScopes(Collection items) { - if (this.scopes == null) { - this.scopes = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.scopes.add(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A removeFromScopes(String... items) { - if (this.scopes == null) { - return (A) this; + if (!(super.equals(o))) { + return false; } - for (String item : items) { - this.scopes.remove(item); + V1ResourceQuotaSpecFluent that = (V1ResourceQuotaSpecFluent) o; + if (!(Objects.equals(hard, that.hard))) { + return false; } - return (A) this; - } - - public A removeAllFromScopes(Collection items) { - if (this.scopes == null) { - return (A) this; + if (!(Objects.equals(scopeSelector, that.scopeSelector))) { + return false; } - for (String item : items) { - this.scopes.remove(item); + if (!(Objects.equals(scopes, that.scopes))) { + return false; } - return (A) this; - } - - public List getScopes() { - return this.scopes; - } - - public String getScope(int index) { - return this.scopes.get(index); + return true; } public String getFirstScope() { return this.scopes.get(0); } + public Map getHard() { + return this.hard; + } + public String getLastScope() { return this.scopes.get(scopes.size() - 1); } @@ -222,6 +150,18 @@ public String getMatchingScope(Predicate predicate) { return null; } + public String getScope(int index) { + return this.scopes.get(index); + } + + public List getScopes() { + return this.scopes; + } + + public boolean hasHard() { + return this.hard != null; + } + public boolean hasMatchingScope(Predicate predicate) { for (String item : scopes) { if (predicate.test(item)) { @@ -231,60 +171,68 @@ public boolean hasMatchingScope(Predicate predicate) { return false; } - public A withScopes(List scopes) { - if (scopes != null) { - this.scopes = new ArrayList(); - for (String item : scopes) { - this.addToScopes(item); - } - } else { - this.scopes = null; - } - return (A) this; + public boolean hasScopeSelector() { + return this.scopeSelector != null; } - public A withScopes(String... scopes) { - if (this.scopes != null) { - this.scopes.clear(); - _visitables.remove("scopes"); + public boolean hasScopes() { + return this.scopes != null && !(this.scopes.isEmpty()); + } + + public int hashCode() { + return Objects.hash(hard, scopeSelector, scopes); + } + + public A removeAllFromScopes(Collection items) { + if (this.scopes == null) { + return (A) this; } - if (scopes != null) { - for (String item : scopes) { - this.addToScopes(item); - } + for (String item : items) { + this.scopes.remove(item); } return (A) this; } - public boolean hasScopes() { - return this.scopes != null && !(this.scopes.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; + public A removeFromHard(String key) { + if (this.hard == null) { + return (A) this; } - if (o == null || this.getClass() != o.getClass()) { - return false; + if (key != null && this.hard != null) { + this.hard.remove(key); } - if (!(super.equals(o))) { - return false; + return (A) this; + } + + public A removeFromHard(Map map) { + if (this.hard == null) { + return (A) this; } - V1ResourceQuotaSpecFluent that = (V1ResourceQuotaSpecFluent) o; - if (!(Objects.equals(hard, that.hard))) { - return false; + if (map != null) { + for (Object key : map.keySet()) { + if (this.hard != null) { + this.hard.remove(key); + } + } } - if (!(Objects.equals(scopeSelector, that.scopeSelector))) { - return false; + return (A) this; + } + + public A removeFromScopes(String... items) { + if (this.scopes == null) { + return (A) this; } - if (!(Objects.equals(scopes, that.scopes))) { - return false; + for (String item : items) { + this.scopes.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(hard, scopeSelector, scopes); + public A setToScopes(int index,String item) { + if (this.scopes == null) { + this.scopes = new ArrayList(); + } + this.scopes.set(index, item); + return (A) this; } public String toString() { @@ -307,12 +255,68 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withHard(Map hard) { + if (hard == null) { + this.hard = null; + } else { + this.hard = new LinkedHashMap(hard); + } + return (A) this; + } + + public ScopeSelectorNested withNewScopeSelector() { + return new ScopeSelectorNested(null); + } + + public ScopeSelectorNested withNewScopeSelectorLike(V1ScopeSelector item) { + return new ScopeSelectorNested(item); + } + + public A withScopeSelector(V1ScopeSelector scopeSelector) { + this._visitables.remove("scopeSelector"); + if (scopeSelector != null) { + this.scopeSelector = new V1ScopeSelectorBuilder(scopeSelector); + this._visitables.get("scopeSelector").add(this.scopeSelector); + } else { + this.scopeSelector = null; + this._visitables.get("scopeSelector").remove(this.scopeSelector); + } + return (A) this; + } + + public A withScopes(List scopes) { + if (scopes != null) { + this.scopes = new ArrayList(); + for (String item : scopes) { + this.addToScopes(item); + } + } else { + this.scopes = null; + } + return (A) this; + } + + public A withScopes(String... scopes) { + if (this.scopes != null) { + this.scopes.clear(); + _visitables.remove("scopes"); + } + if (scopes != null) { + for (String item : scopes) { + this.addToScopes(item); + } + } + return (A) this; + } public class ScopeSelectorNested extends V1ScopeSelectorFluent> implements Nested{ + + V1ScopeSelectorBuilder builder; + ScopeSelectorNested(V1ScopeSelector item) { this.builder = new V1ScopeSelectorBuilder(this, item); } - V1ScopeSelectorBuilder builder; - + public N and() { return (N) V1ResourceQuotaSpecFluent.this.withScopeSelector(builder.build()); } @@ -321,7 +325,5 @@ public N endScopeSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java index 930d829c36..ef4a90c439 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceQuotaStatusBuilder extends V1ResourceQuotaStatusFluent implements VisitableBuilder{ + + V1ResourceQuotaStatusFluent fluent; + public V1ResourceQuotaStatusBuilder() { this(new V1ResourceQuotaStatus()); } @@ -11,17 +14,16 @@ public V1ResourceQuotaStatusBuilder(V1ResourceQuotaStatusFluent fluent) { this(fluent, new V1ResourceQuotaStatus()); } - public V1ResourceQuotaStatusBuilder(V1ResourceQuotaStatusFluent fluent,V1ResourceQuotaStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceQuotaStatusBuilder(V1ResourceQuotaStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceQuotaStatusFluent fluent; + public V1ResourceQuotaStatusBuilder(V1ResourceQuotaStatusFluent fluent,V1ResourceQuotaStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceQuotaStatus build() { V1ResourceQuotaStatus buildable = new V1ResourceQuotaStatus(); buildable.setHard(fluent.getHard()); @@ -29,5 +31,4 @@ public V1ResourceQuotaStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java index 5253d34cd6..316116ae77 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java @@ -1,35 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; -import java.util.Map; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceQuotaStatusFluent> extends BaseFluent{ + + private Map hard; + private Map used; + public V1ResourceQuotaStatusFluent() { } public V1ResourceQuotaStatusFluent(V1ResourceQuotaStatus instance) { this.copyInstance(instance); } - private Map hard; - private Map used; - - protected void copyInstance(V1ResourceQuotaStatus instance) { - instance = instance != null ? instance : new V1ResourceQuotaStatus(); - if (instance != null) { - this.withHard(instance.getHard()); - this.withUsed(instance.getUsed()); + + public A addToHard(Map map) { + if (this.hard == null && map != null) { + this.hard = new LinkedHashMap(); + } + if (map != null) { + this.hard.putAll(map); } + return (A) this; } public A addToHard(String key,Quantity value) { @@ -42,73 +46,94 @@ public A addToHard(String key,Quantity value) { return (A) this; } - public A addToHard(Map map) { - if (this.hard == null && map != null) { - this.hard = new LinkedHashMap(); + public A addToUsed(Map map) { + if (this.used == null && map != null) { + this.used = new LinkedHashMap(); } if (map != null) { - this.hard.putAll(map); + this.used.putAll(map); } return (A) this; } - public A removeFromHard(String key) { - if (this.hard == null) { - return (A) this; + public A addToUsed(String key,Quantity value) { + if (this.used == null && key != null && value != null) { + this.used = new LinkedHashMap(); } - if (key != null && this.hard != null) { - this.hard.remove(key); + if (key != null && value != null) { + this.used.put(key, value); } return (A) this; } - public A removeFromHard(Map map) { - if (this.hard == null) { - return (A) this; + protected void copyInstance(V1ResourceQuotaStatus instance) { + instance = instance != null ? instance : new V1ResourceQuotaStatus(); + if (instance != null) { + this.withHard(instance.getHard()); + this.withUsed(instance.getUsed()); } - if (map != null) { - for (Object key : map.keySet()) { - if (this.hard != null) { - this.hard.remove(key); - } - } + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceQuotaStatusFluent that = (V1ResourceQuotaStatusFluent) o; + if (!(Objects.equals(hard, that.hard))) { + return false; + } + if (!(Objects.equals(used, that.used))) { + return false; + } + return true; } public Map getHard() { return this.hard; } - public A withHard(Map hard) { - if (hard == null) { - this.hard = null; - } else { - this.hard = new LinkedHashMap(hard); - } - return (A) this; + public Map getUsed() { + return this.used; } public boolean hasHard() { return this.hard != null; } - public A addToUsed(String key,Quantity value) { - if (this.used == null && key != null && value != null) { - this.used = new LinkedHashMap(); + public boolean hasUsed() { + return this.used != null; + } + + public int hashCode() { + return Objects.hash(hard, used); + } + + public A removeFromHard(String key) { + if (this.hard == null) { + return (A) this; } - if (key != null && value != null) { - this.used.put(key, value); + if (key != null && this.hard != null) { + this.hard.remove(key); } return (A) this; } - public A addToUsed(Map map) { - if (this.used == null && map != null) { - this.used = new LinkedHashMap(); + public A removeFromHard(Map map) { + if (this.hard == null) { + return (A) this; } if (map != null) { - this.used.putAll(map); + for (Object key : map.keySet()) { + if (this.hard != null) { + this.hard.remove(key); + } + } } return (A) this; } @@ -137,47 +162,6 @@ public A removeFromUsed(Map map) { return (A) this; } - public Map getUsed() { - return this.used; - } - - public A withUsed(Map used) { - if (used == null) { - this.used = null; - } else { - this.used = new LinkedHashMap(used); - } - return (A) this; - } - - public boolean hasUsed() { - return this.used != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ResourceQuotaStatusFluent that = (V1ResourceQuotaStatusFluent) o; - if (!(Objects.equals(hard, that.hard))) { - return false; - } - if (!(Objects.equals(used, that.used))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(hard, used); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -194,5 +178,22 @@ public String toString() { return sb.toString(); } - + public A withHard(Map hard) { + if (hard == null) { + this.hard = null; + } else { + this.hard = new LinkedHashMap(hard); + } + return (A) this; + } + + public A withUsed(Map used) { + if (used == null) { + this.used = null; + } else { + this.used = new LinkedHashMap(used); + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java index f74cf79fa4..d30a5056b7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceRequirementsBuilder extends V1ResourceRequirementsFluent implements VisitableBuilder{ + + V1ResourceRequirementsFluent fluent; + public V1ResourceRequirementsBuilder() { this(new V1ResourceRequirements()); } @@ -11,17 +14,16 @@ public V1ResourceRequirementsBuilder(V1ResourceRequirementsFluent fluent) { this(fluent, new V1ResourceRequirements()); } - public V1ResourceRequirementsBuilder(V1ResourceRequirementsFluent fluent,V1ResourceRequirements instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceRequirementsBuilder(V1ResourceRequirements instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceRequirementsFluent fluent; + public V1ResourceRequirementsBuilder(V1ResourceRequirementsFluent fluent,V1ResourceRequirements instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceRequirements build() { V1ResourceRequirements buildable = new V1ResourceRequirements(); buildable.setClaims(fluent.buildClaims()); @@ -30,5 +32,4 @@ public V1ResourceRequirements build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java index 7366bf6393..fa361f4cbc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java @@ -1,74 +1,57 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import io.kubernetes.client.custom.Quantity; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceRequirementsFluent> extends BaseFluent{ + + private ArrayList claims; + private Map limits; + private Map requests; + public V1ResourceRequirementsFluent() { } public V1ResourceRequirementsFluent(V1ResourceRequirements instance) { this.copyInstance(instance); } - private ArrayList claims; - private Map limits; - private Map requests; - - protected void copyInstance(V1ResourceRequirements instance) { - instance = instance != null ? instance : new V1ResourceRequirements(); - if (instance != null) { - this.withClaims(instance.getClaims()); - this.withLimits(instance.getLimits()); - this.withRequests(instance.getRequests()); - } - } - - public A addToClaims(int index,CoreV1ResourceClaim item) { + + public A addAllToClaims(Collection items) { if (this.claims == null) { this.claims = new ArrayList(); } - CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); - if (index < 0 || index >= claims.size()) { - _visitables.get("claims").add(builder); - claims.add(builder); - } else { + for (CoreV1ResourceClaim item : items) { + CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); _visitables.get("claims").add(builder); - claims.add(index, builder); + this.claims.add(builder); } return (A) this; } - public A setToClaims(int index,CoreV1ResourceClaim item) { - if (this.claims == null) { - this.claims = new ArrayList(); - } - CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); - if (index < 0 || index >= claims.size()) { - _visitables.get("claims").add(builder); - claims.add(builder); - } else { - _visitables.get("claims").add(builder); - claims.set(index, builder); - } - return (A) this; + public ClaimsNested addNewClaim() { + return new ClaimsNested(-1, null); + } + + public ClaimsNested addNewClaimLike(CoreV1ResourceClaim item) { + return new ClaimsNested(-1, item); } public A addToClaims(CoreV1ResourceClaim... items) { @@ -83,66 +66,69 @@ public A addToClaims(CoreV1ResourceClaim... items) { return (A) this; } - public A addAllToClaims(Collection items) { + public A addToClaims(int index,CoreV1ResourceClaim item) { if (this.claims == null) { this.claims = new ArrayList(); } - for (CoreV1ResourceClaim item : items) { - CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); + CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); + if (index < 0 || index >= claims.size()) { _visitables.get("claims").add(builder); - this.claims.add(builder); + claims.add(builder); + } else { + _visitables.get("claims").add(builder); + claims.add(index, builder); } return (A) this; } - public A removeFromClaims(CoreV1ResourceClaim... items) { - if (this.claims == null) { - return (A) this; + public A addToLimits(Map map) { + if (this.limits == null && map != null) { + this.limits = new LinkedHashMap(); } - for (CoreV1ResourceClaim item : items) { - CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); - _visitables.get("claims").remove(builder); - this.claims.remove(builder); + if (map != null) { + this.limits.putAll(map); } return (A) this; } - public A removeAllFromClaims(Collection items) { - if (this.claims == null) { - return (A) this; + public A addToLimits(String key,Quantity value) { + if (this.limits == null && key != null && value != null) { + this.limits = new LinkedHashMap(); } - for (CoreV1ResourceClaim item : items) { - CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); - _visitables.get("claims").remove(builder); - this.claims.remove(builder); + if (key != null && value != null) { + this.limits.put(key, value); } return (A) this; } - public A removeMatchingFromClaims(Predicate predicate) { - if (claims == null) { - return (A) this; + public A addToRequests(Map map) { + if (this.requests == null && map != null) { + this.requests = new LinkedHashMap(); } - Iterator each = claims.iterator(); - List visitables = _visitables.get("claims"); - while (each.hasNext()) { - CoreV1ResourceClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (map != null) { + this.requests.putAll(map); } return (A) this; } - public List buildClaims() { - return this.claims != null ? build(claims) : null; + public A addToRequests(String key,Quantity value) { + if (this.requests == null && key != null && value != null) { + this.requests = new LinkedHashMap(); + } + if (key != null && value != null) { + this.requests.put(key, value); + } + return (A) this; } public CoreV1ResourceClaim buildClaim(int index) { return this.claims.get(index).build(); } + public List buildClaims() { + return this.claims != null ? build(claims) : null; + } + public CoreV1ResourceClaim buildFirstClaim() { return this.claims.get(0).build(); } @@ -160,61 +146,17 @@ public CoreV1ResourceClaim buildMatchingClaim(Predicate predicate) { - for (CoreV1ResourceClaimBuilder item : claims) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withClaims(List claims) { - if (this.claims != null) { - this._visitables.get("claims").clear(); - } - if (claims != null) { - this.claims = new ArrayList(); - for (CoreV1ResourceClaim item : claims) { - this.addToClaims(item); - } - } else { - this.claims = null; - } - return (A) this; - } - - public A withClaims(CoreV1ResourceClaim... claims) { - if (this.claims != null) { - this.claims.clear(); - _visitables.remove("claims"); - } - if (claims != null) { - for (CoreV1ResourceClaim item : claims) { - this.addToClaims(item); - } + protected void copyInstance(V1ResourceRequirements instance) { + instance = instance != null ? instance : new V1ResourceRequirements(); + if (instance != null) { + this.withClaims(instance.getClaims()); + this.withLimits(instance.getLimits()); + this.withRequests(instance.getRequests()); } - return (A) this; - } - - public boolean hasClaims() { - return this.claims != null && !(this.claims.isEmpty()); - } - - public ClaimsNested addNewClaim() { - return new ClaimsNested(-1, null); - } - - public ClaimsNested addNewClaimLike(CoreV1ResourceClaim item) { - return new ClaimsNested(-1, item); - } - - public ClaimsNested setNewClaimLike(int index,CoreV1ResourceClaim item) { - return new ClaimsNested(index, item); } public ClaimsNested editClaim(int index) { - if (index <= claims.size()) { + if (claims.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "claims")); } return this.setNewClaimLike(index, this.buildClaim(index)); @@ -249,22 +191,82 @@ public ClaimsNested editMatchingClaim(Predicate p return this.setNewClaimLike(index, this.buildClaim(index)); } - public A addToLimits(String key,Quantity value) { - if (this.limits == null && key != null && value != null) { - this.limits = new LinkedHashMap(); + public boolean equals(Object o) { + if (this == o) { + return true; } - if (key != null && value != null) { - this.limits.put(key, value); + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceRequirementsFluent that = (V1ResourceRequirementsFluent) o; + if (!(Objects.equals(claims, that.claims))) { + return false; + } + if (!(Objects.equals(limits, that.limits))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public Map getLimits() { + return this.limits; + } + + public Map getRequests() { + return this.requests; + } + + public boolean hasClaims() { + return this.claims != null && !(this.claims.isEmpty()); + } + + public boolean hasLimits() { + return this.limits != null; + } + + public boolean hasMatchingClaim(Predicate predicate) { + for (CoreV1ResourceClaimBuilder item : claims) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRequests() { + return this.requests != null; + } + + public int hashCode() { + return Objects.hash(claims, limits, requests); + } + + public A removeAllFromClaims(Collection items) { + if (this.claims == null) { + return (A) this; + } + for (CoreV1ResourceClaim item : items) { + CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); + _visitables.get("claims").remove(builder); + this.claims.remove(builder); } return (A) this; } - public A addToLimits(Map map) { - if (this.limits == null && map != null) { - this.limits = new LinkedHashMap(); + public A removeFromClaims(CoreV1ResourceClaim... items) { + if (this.claims == null) { + return (A) this; } - if (map != null) { - this.limits.putAll(map); + for (CoreV1ResourceClaim item : items) { + CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); + _visitables.get("claims").remove(builder); + this.claims.remove(builder); } return (A) this; } @@ -293,43 +295,6 @@ public A removeFromLimits(Map map) { return (A) this; } - public Map getLimits() { - return this.limits; - } - - public A withLimits(Map limits) { - if (limits == null) { - this.limits = null; - } else { - this.limits = new LinkedHashMap(limits); - } - return (A) this; - } - - public boolean hasLimits() { - return this.limits != null; - } - - public A addToRequests(String key,Quantity value) { - if (this.requests == null && key != null && value != null) { - this.requests = new LinkedHashMap(); - } - if (key != null && value != null) { - this.requests.put(key, value); - } - return (A) this; - } - - public A addToRequests(Map map) { - if (this.requests == null && map != null) { - this.requests = new LinkedHashMap(); - } - if (map != null) { - this.requests.putAll(map); - } - return (A) this; - } - public A removeFromRequests(String key) { if (this.requests == null) { return (A) this; @@ -354,48 +319,39 @@ public A removeFromRequests(Map map) { return (A) this; } - public Map getRequests() { - return this.requests; - } - - public A withRequests(Map requests) { - if (requests == null) { - this.requests = null; - } else { - this.requests = new LinkedHashMap(requests); + public A removeMatchingFromClaims(Predicate predicate) { + if (claims == null) { + return (A) this; + } + Iterator each = claims.iterator(); + List visitables = _visitables.get("claims"); + while (each.hasNext()) { + CoreV1ResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasRequests() { - return this.requests != null; + public ClaimsNested setNewClaimLike(int index,CoreV1ResourceClaim item) { + return new ClaimsNested(index, item); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ResourceRequirementsFluent that = (V1ResourceRequirementsFluent) o; - if (!(Objects.equals(claims, that.claims))) { - return false; - } - if (!(Objects.equals(limits, that.limits))) { - return false; + public A setToClaims(int index,CoreV1ResourceClaim item) { + if (this.claims == null) { + this.claims = new ArrayList(); } - if (!(Objects.equals(requests, that.requests))) { - return false; + CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); + if (index < 0 || index >= claims.size()) { + _visitables.get("claims").add(builder); + claims.add(builder); + } else { + _visitables.get("claims").add(builder); + claims.set(index, builder); } - return true; - } - - public int hashCode() { - return Objects.hash(claims, limits, requests); + return (A) this; } public String toString() { @@ -418,14 +374,62 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withClaims(List claims) { + if (this.claims != null) { + this._visitables.get("claims").clear(); + } + if (claims != null) { + this.claims = new ArrayList(); + for (CoreV1ResourceClaim item : claims) { + this.addToClaims(item); + } + } else { + this.claims = null; + } + return (A) this; + } + + public A withClaims(CoreV1ResourceClaim... claims) { + if (this.claims != null) { + this.claims.clear(); + _visitables.remove("claims"); + } + if (claims != null) { + for (CoreV1ResourceClaim item : claims) { + this.addToClaims(item); + } + } + return (A) this; + } + + public A withLimits(Map limits) { + if (limits == null) { + this.limits = null; + } else { + this.limits = new LinkedHashMap(limits); + } + return (A) this; + } + + public A withRequests(Map requests) { + if (requests == null) { + this.requests = null; + } else { + this.requests = new LinkedHashMap(requests); + } + return (A) this; + } public class ClaimsNested extends CoreV1ResourceClaimFluent> implements Nested{ + + CoreV1ResourceClaimBuilder builder; + int index; + ClaimsNested(int index,CoreV1ResourceClaim item) { this.index = index; this.builder = new CoreV1ResourceClaimBuilder(this, item); } - CoreV1ResourceClaimBuilder builder; - int index; - + public N and() { return (N) V1ResourceRequirementsFluent.this.setToClaims(index, builder.build()); } @@ -434,7 +438,5 @@ public N endClaim() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java index 993311f50c..66d806f284 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceRuleBuilder extends V1ResourceRuleFluent implements VisitableBuilder{ + + V1ResourceRuleFluent fluent; + public V1ResourceRuleBuilder() { this(new V1ResourceRule()); } @@ -11,17 +14,16 @@ public V1ResourceRuleBuilder(V1ResourceRuleFluent fluent) { this(fluent, new V1ResourceRule()); } - public V1ResourceRuleBuilder(V1ResourceRuleFluent fluent,V1ResourceRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceRuleBuilder(V1ResourceRule instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceRuleFluent fluent; + public V1ResourceRuleBuilder(V1ResourceRuleFluent fluent,V1ResourceRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceRule build() { V1ResourceRule buildable = new V1ResourceRule(); buildable.setApiGroups(fluent.getApiGroups()); @@ -31,5 +33,4 @@ public V1ResourceRule build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java index d6430a414d..99cdb77397 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,146 +16,87 @@ */ @SuppressWarnings("unchecked") public class V1ResourceRuleFluent> extends BaseFluent{ - public V1ResourceRuleFluent() { - } - - public V1ResourceRuleFluent(V1ResourceRule instance) { - this.copyInstance(instance); - } + private List apiGroups; private List resourceNames; private List resources; private List verbs; - - protected void copyInstance(V1ResourceRule instance) { - instance = instance != null ? instance : new V1ResourceRule(); - if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withResourceNames(instance.getResourceNames()); - this.withResources(instance.getResources()); - this.withVerbs(instance.getVerbs()); - } + + public V1ResourceRuleFluent() { } - public A addToApiGroups(int index,String item) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } - this.apiGroups.add(index, item); - return (A) this; + public V1ResourceRuleFluent(V1ResourceRule instance) { + this.copyInstance(instance); } - - public A setToApiGroups(int index,String item) { + + public A addAllToApiGroups(Collection items) { if (this.apiGroups == null) { this.apiGroups = new ArrayList(); } - this.apiGroups.set(index, item); + for (String item : items) { + this.apiGroups.add(item); + } return (A) this; } - public A addToApiGroups(String... items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + public A addAllToResourceNames(Collection items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); } for (String item : items) { - this.apiGroups.add(item); + this.resourceNames.add(item); } return (A) this; } - public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + public A addAllToResources(Collection items) { + if (this.resources == null) { + this.resources = new ArrayList(); } for (String item : items) { - this.apiGroups.add(item); + this.resources.add(item); } return (A) this; } - public A removeFromApiGroups(String... items) { - if (this.apiGroups == null) { - return (A) this; + public A addAllToVerbs(Collection items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); } for (String item : items) { - this.apiGroups.remove(item); + this.verbs.add(item); } return (A) this; } - public A removeAllFromApiGroups(Collection items) { + public A addToApiGroups(String... items) { if (this.apiGroups == null) { - return (A) this; + this.apiGroups = new ArrayList(); } for (String item : items) { - this.apiGroups.remove(item); + this.apiGroups.add(item); } return (A) this; } - public List getApiGroups() { - return this.apiGroups; - } - - public String getApiGroup(int index) { - return this.apiGroups.get(index); - } - - public String getFirstApiGroup() { - return this.apiGroups.get(0); - } - - public String getLastApiGroup() { - return this.apiGroups.get(apiGroups.size() - 1); - } - - public String getMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withApiGroups(List apiGroups) { - if (apiGroups != null) { - this.apiGroups = new ArrayList(); - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } else { - this.apiGroups = null; + public A addToApiGroups(int index,String item) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); } + this.apiGroups.add(index, item); return (A) this; } - public A withApiGroups(String... apiGroups) { - if (this.apiGroups != null) { - this.apiGroups.clear(); - _visitables.remove("apiGroups"); + public A addToResourceNames(String... items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); } - if (apiGroups != null) { - for (String item : apiGroups) { - this.addToApiGroups(item); - } + for (String item : items) { + this.resourceNames.add(item); } return (A) this; } - public boolean hasApiGroups() { - return this.apiGroups != null && !(this.apiGroups.isEmpty()); - } - public A addToResourceNames(int index,String item) { if (this.resourceNames == null) { this.resourceNames = new ArrayList(); @@ -164,72 +105,120 @@ public A addToResourceNames(int index,String item) { return (A) this; } - public A setToResourceNames(int index,String item) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + public A addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); } - this.resourceNames.set(index, item); return (A) this; } - public A addToResourceNames(String... items) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - for (String item : items) { - this.resourceNames.add(item); + public A addToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); } + this.resources.add(index, item); return (A) this; } - public A addAllToResourceNames(Collection items) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); + public A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); } for (String item : items) { - this.resourceNames.add(item); + this.verbs.add(item); } return (A) this; } - public A removeFromResourceNames(String... items) { - if (this.resourceNames == null) { - return (A) this; - } - for (String item : items) { - this.resourceNames.remove(item); + public A addToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); } + this.verbs.add(index, item); return (A) this; } - public A removeAllFromResourceNames(Collection items) { - if (this.resourceNames == null) { - return (A) this; + protected void copyInstance(V1ResourceRule instance) { + instance = instance != null ? instance : new V1ResourceRule(); + if (instance != null) { + this.withApiGroups(instance.getApiGroups()); + this.withResourceNames(instance.getResourceNames()); + this.withResources(instance.getResources()); + this.withVerbs(instance.getVerbs()); } - for (String item : items) { - this.resourceNames.remove(item); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceRuleFluent that = (V1ResourceRuleFluent) o; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(resourceNames, that.resourceNames))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } + return true; } - public List getResourceNames() { - return this.resourceNames; + public String getApiGroup(int index) { + return this.apiGroups.get(index); } - public String getResourceName(int index) { - return this.resourceNames.get(index); + public List getApiGroups() { + return this.apiGroups; + } + + public String getFirstApiGroup() { + return this.apiGroups.get(0); + } + + public String getFirstResource() { + return this.resources.get(0); } public String getFirstResourceName() { return this.resourceNames.get(0); } + public String getFirstVerb() { + return this.verbs.get(0); + } + + public String getLastApiGroup() { + return this.apiGroups.get(apiGroups.size() - 1); + } + + public String getLastResource() { + return this.resources.get(resources.size() - 1); + } + public String getLastResourceName() { return this.resourceNames.get(resourceNames.size() - 1); } - public String getMatchingResourceName(Predicate predicate) { - for (String item : resourceNames) { + public String getLastVerb() { + return this.verbs.get(verbs.size() - 1); + } + + public String getMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { if (predicate.test(item)) { return item; } @@ -237,123 +226,68 @@ public String getMatchingResourceName(Predicate predicate) { return null; } - public boolean hasMatchingResourceName(Predicate predicate) { - for (String item : resourceNames) { + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withResourceNames(List resourceNames) { - if (resourceNames != null) { - this.resourceNames = new ArrayList(); - for (String item : resourceNames) { - this.addToResourceNames(item); - } - } else { - this.resourceNames = null; - } - return (A) this; - } - - public A withResourceNames(String... resourceNames) { - if (this.resourceNames != null) { - this.resourceNames.clear(); - _visitables.remove("resourceNames"); - } - if (resourceNames != null) { + public String getMatchingResourceName(Predicate predicate) { for (String item : resourceNames) { - this.addToResourceNames(item); + if (predicate.test(item)) { + return item; + } } - } - return (A) this; - } - - public boolean hasResourceNames() { - return this.resourceNames != null && !(this.resourceNames.isEmpty()); - } - - public A addToResources(int index,String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - this.resources.add(index, item); - return (A) this; - } - - public A setToResources(int index,String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - this.resources.set(index, item); - return (A) this; + return null; } - public A addToResources(String... items) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - for (String item : items) { - this.resources.add(item); - } - return (A) this; + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A addAllToResources(Collection items) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - for (String item : items) { - this.resources.add(item); - } - return (A) this; + public String getResource(int index) { + return this.resources.get(index); } - public A removeFromResources(String... items) { - if (this.resources == null) { - return (A) this; - } - for (String item : items) { - this.resources.remove(item); - } - return (A) this; + public String getResourceName(int index) { + return this.resourceNames.get(index); } - public A removeAllFromResources(Collection items) { - if (this.resources == null) { - return (A) this; - } - for (String item : items) { - this.resources.remove(item); - } - return (A) this; + public List getResourceNames() { + return this.resourceNames; } public List getResources() { return this.resources; } - public String getResource(int index) { - return this.resources.get(index); + public String getVerb(int index) { + return this.verbs.get(index); } - public String getFirstResource() { - return this.resources.get(0); + public List getVerbs() { + return this.verbs; } - public String getLastResource() { - return this.resources.get(resources.size() - 1); + public boolean hasApiGroups() { + return this.apiGroups != null && !(this.apiGroups.isEmpty()); } - public String getMatchingResource(Predicate predicate) { - for (String item : resources) { + public boolean hasMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { if (predicate.test(item)) { - return item; + return true; } } - return null; + return false; } public boolean hasMatchingResource(Predicate predicate) { @@ -365,77 +299,66 @@ public boolean hasMatchingResource(Predicate predicate) { return false; } - public A withResources(List resources) { - if (resources != null) { - this.resources = new ArrayList(); - for (String item : resources) { - this.addToResources(item); + public boolean hasMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { + if (predicate.test(item)) { + return true; } - } else { - this.resources = null; - } - return (A) this; + } + return false; } - public A withResources(String... resources) { - if (this.resources != null) { - this.resources.clear(); - _visitables.remove("resources"); - } - if (resources != null) { - for (String item : resources) { - this.addToResources(item); + public boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return true; + } } - } - return (A) this; + return false; + } + + public boolean hasResourceNames() { + return this.resourceNames != null && !(this.resourceNames.isEmpty()); } public boolean hasResources() { return this.resources != null && !(this.resources.isEmpty()); } - public A addToVerbs(int index,String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - this.verbs.add(index, item); - return (A) this; + public boolean hasVerbs() { + return this.verbs != null && !(this.verbs.isEmpty()); } - public A setToVerbs(int index,String item) { - if (this.verbs == null) { - this.verbs = new ArrayList(); - } - this.verbs.set(index, item); - return (A) this; + public int hashCode() { + return Objects.hash(apiGroups, resourceNames, resources, verbs); } - public A addToVerbs(String... items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); + public A removeAllFromApiGroups(Collection items) { + if (this.apiGroups == null) { + return (A) this; } for (String item : items) { - this.verbs.add(item); + this.apiGroups.remove(item); } return (A) this; } - public A addAllToVerbs(Collection items) { - if (this.verbs == null) { - this.verbs = new ArrayList(); + public A removeAllFromResourceNames(Collection items) { + if (this.resourceNames == null) { + return (A) this; } for (String item : items) { - this.verbs.add(item); + this.resourceNames.remove(item); } return (A) this; } - public A removeFromVerbs(String... items) { - if (this.verbs == null) { + public A removeAllFromResources(Collection items) { + if (this.resources == null) { return (A) this; } for (String item : items) { - this.verbs.remove(item); + this.resources.remove(item); } return (A) this; } @@ -450,97 +373,76 @@ public A removeAllFromVerbs(Collection items) { return (A) this; } - public List getVerbs() { - return this.verbs; - } - - public String getVerb(int index) { - return this.verbs.get(index); - } - - public String getFirstVerb() { - return this.verbs.get(0); - } - - public String getLastVerb() { - return this.verbs.get(verbs.size() - 1); - } - - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } - public boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A removeFromResourceNames(String... items) { + if (this.resourceNames == null) { + return (A) this; + } + for (String item : items) { + this.resourceNames.remove(item); + } + return (A) this; } - public A withVerbs(List verbs) { - if (verbs != null) { - this.verbs = new ArrayList(); - for (String item : verbs) { - this.addToVerbs(item); - } - } else { - this.verbs = null; + public A removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); } return (A) this; } - public A withVerbs(String... verbs) { - if (this.verbs != null) { - this.verbs.clear(); - _visitables.remove("verbs"); + public A removeFromVerbs(String... items) { + if (this.verbs == null) { + return (A) this; } - if (verbs != null) { - for (String item : verbs) { - this.addToVerbs(item); - } + for (String item : items) { + this.verbs.remove(item); } return (A) this; } - public boolean hasVerbs() { - return this.verbs != null && !(this.verbs.isEmpty()); + public A setToApiGroups(int index,String item) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + this.apiGroups.set(index, item); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ResourceRuleFluent that = (V1ResourceRuleFluent) o; - if (!(Objects.equals(apiGroups, that.apiGroups))) { - return false; - } - if (!(Objects.equals(resourceNames, that.resourceNames))) { - return false; - } - if (!(Objects.equals(resources, that.resources))) { - return false; + public A setToResourceNames(int index,String item) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); } - if (!(Objects.equals(verbs, that.verbs))) { - return false; + this.resourceNames.set(index, item); + return (A) this; + } + + public A setToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); } - return true; + this.resources.set(index, item); + return (A) this; } - public int hashCode() { - return Objects.hash(apiGroups, resourceNames, resources, verbs); + public A setToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.set(index, item); + return (A) this; } public String toString() { @@ -569,5 +471,104 @@ public String toString() { return sb.toString(); } - + public A withApiGroups(List apiGroups) { + if (apiGroups != null) { + this.apiGroups = new ArrayList(); + for (String item : apiGroups) { + this.addToApiGroups(item); + } + } else { + this.apiGroups = null; + } + return (A) this; + } + + public A withApiGroups(String... apiGroups) { + if (this.apiGroups != null) { + this.apiGroups.clear(); + _visitables.remove("apiGroups"); + } + if (apiGroups != null) { + for (String item : apiGroups) { + this.addToApiGroups(item); + } + } + return (A) this; + } + + public A withResourceNames(List resourceNames) { + if (resourceNames != null) { + this.resourceNames = new ArrayList(); + for (String item : resourceNames) { + this.addToResourceNames(item); + } + } else { + this.resourceNames = null; + } + return (A) this; + } + + public A withResourceNames(String... resourceNames) { + if (this.resourceNames != null) { + this.resourceNames.clear(); + _visitables.remove("resourceNames"); + } + if (resourceNames != null) { + for (String item : resourceNames) { + this.addToResourceNames(item); + } + } + return (A) this; + } + + public A withResources(List resources) { + if (resources != null) { + this.resources = new ArrayList(); + for (String item : resources) { + this.addToResources(item); + } + } else { + this.resources = null; + } + return (A) this; + } + + public A withResources(String... resources) { + if (this.resources != null) { + this.resources.clear(); + _visitables.remove("resources"); + } + if (resources != null) { + for (String item : resources) { + this.addToResources(item); + } + } + return (A) this; + } + + public A withVerbs(List verbs) { + if (verbs != null) { + this.verbs = new ArrayList(); + for (String item : verbs) { + this.addToVerbs(item); + } + } else { + this.verbs = null; + } + return (A) this; + } + + public A withVerbs(String... verbs) { + if (this.verbs != null) { + this.verbs.clear(); + _visitables.remove("verbs"); + } + if (verbs != null) { + for (String item : verbs) { + this.addToVerbs(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceBuilder.java index 6a92b9d9fe..df7c304f68 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceSliceBuilder extends V1ResourceSliceFluent implements VisitableBuilder{ + + V1ResourceSliceFluent fluent; + public V1ResourceSliceBuilder() { this(new V1ResourceSlice()); } @@ -11,17 +14,16 @@ public V1ResourceSliceBuilder(V1ResourceSliceFluent fluent) { this(fluent, new V1ResourceSlice()); } - public V1ResourceSliceBuilder(V1ResourceSliceFluent fluent,V1ResourceSlice instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceSliceBuilder(V1ResourceSlice instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceSliceFluent fluent; + public V1ResourceSliceBuilder(V1ResourceSliceFluent fluent,V1ResourceSlice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceSlice build() { V1ResourceSlice buildable = new V1ResourceSlice(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ResourceSlice build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceFluent.java index ffeb394e91..9f95e13891 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceSliceFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ResourceSliceSpecBuilder spec; + public V1ResourceSliceFluent() { } public V1ResourceSliceFluent(V1ResourceSlice instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1ResourceSliceSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ResourceSliceSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1ResourceSlice instance) { instance = instance != null ? instance : new V1ResourceSlice(); @@ -35,60 +45,6 @@ protected void copyInstance(V1ResourceSlice instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ResourceSliceSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1ResourceSliceSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1ResourceSliceSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1ResourceSliceSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ResourceSliceSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1ResourceSliceSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ResourceSliceSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1ResourceSliceSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ResourceSliceSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ResourceSliceFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ResourceSliceSpecFluent> implements Nested{ + + V1ResourceSliceSpecBuilder builder; + SpecNested(V1ResourceSliceSpec item) { this.builder = new V1ResourceSliceSpecBuilder(this, item); } - V1ResourceSliceSpecBuilder builder; - + public N and() { return (N) V1ResourceSliceFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListBuilder.java index f241e02f1f..06535278b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceSliceListBuilder extends V1ResourceSliceListFluent implements VisitableBuilder{ + + V1ResourceSliceListFluent fluent; + public V1ResourceSliceListBuilder() { this(new V1ResourceSliceList()); } @@ -11,17 +14,16 @@ public V1ResourceSliceListBuilder(V1ResourceSliceListFluent fluent) { this(fluent, new V1ResourceSliceList()); } - public V1ResourceSliceListBuilder(V1ResourceSliceListFluent fluent,V1ResourceSliceList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceSliceListBuilder(V1ResourceSliceList instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceSliceListFluent fluent; + public V1ResourceSliceListBuilder(V1ResourceSliceListFluent fluent,V1ResourceSliceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceSliceList build() { V1ResourceSliceList buildable = new V1ResourceSliceList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ResourceSliceList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListFluent.java index e5f4d34100..561bb6bcad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceSliceListFluent> extends BaseFluent{ - public V1ResourceSliceListFluent() { - } - - public V1ResourceSliceListFluent(V1ResourceSliceList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ResourceSliceList instance) { - instance = instance != null ? instance : new V1ResourceSliceList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1ResourceSliceListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1ResourceSliceListFluent(V1ResourceSliceList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1ResourceSlice item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1ResourceSlice item : items) { + V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1ResourceSlice item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ResourceSlice item) { + return new ItemsNested(-1, item); } public A addToItems(V1ResourceSlice... items) { @@ -96,68 +65,31 @@ public A addToItems(V1ResourceSlice... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1ResourceSlice item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1ResourceSlice item : items) { - V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); + V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1ResourceSlice... items) { - if (this.items == null) { - return (A) this; - } - for (V1ResourceSlice item : items) { - V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1ResourceSlice item : items) { - V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1ResourceSliceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1ResourceSlice buildFirstItem() { + return this.items.get(0).build(); } public V1ResourceSlice buildItem(int index) { return this.items.get(index).build(); } - public V1ResourceSlice buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1ResourceSlice buildLastItem() { @@ -173,73 +105,34 @@ public V1ResourceSlice buildMatchingItem(Predicate predi return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1ResourceSliceBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ResourceSlice item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ResourceSliceList instance) { + instance = instance != null ? instance : new V1ResourceSliceList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1ResourceSlice... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1ResourceSlice item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ResourceSlice item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ResourceSlice item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predica return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ResourceSliceBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ResourceSlice item : items) { + V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ResourceSlice... items) { + if (this.items == null) { + return (A) this; + } + for (V1ResourceSlice item : items) { + V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ResourceSliceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ResourceSlice item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1ResourceSlice item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ResourceSlice item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ResourceSlice... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ResourceSlice item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1ResourceSliceFluent> implements Nested{ + + V1ResourceSliceBuilder builder; + int index; + ItemsNested(int index,V1ResourceSlice item) { this.index = index; this.builder = new V1ResourceSliceBuilder(this, item); } - V1ResourceSliceBuilder builder; - int index; - + public N and() { return (N) V1ResourceSliceListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ResourceSliceListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecBuilder.java index 5e86e1f727..bf137f2189 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceSliceSpecBuilder extends V1ResourceSliceSpecFluent implements VisitableBuilder{ + + V1ResourceSliceSpecFluent fluent; + public V1ResourceSliceSpecBuilder() { this(new V1ResourceSliceSpec()); } @@ -11,17 +14,16 @@ public V1ResourceSliceSpecBuilder(V1ResourceSliceSpecFluent fluent) { this(fluent, new V1ResourceSliceSpec()); } - public V1ResourceSliceSpecBuilder(V1ResourceSliceSpecFluent fluent,V1ResourceSliceSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceSliceSpecBuilder(V1ResourceSliceSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceSliceSpecFluent fluent; + public V1ResourceSliceSpecBuilder(V1ResourceSliceSpecFluent fluent,V1ResourceSliceSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceSliceSpec build() { V1ResourceSliceSpec buildable = new V1ResourceSliceSpec(); buildable.setAllNodes(fluent.getAllNodes()); @@ -35,5 +37,4 @@ public V1ResourceSliceSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecFluent.java index 7f7ba3a1ff..8309d59a78 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Boolean; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceSliceSpecFluent> extends BaseFluent{ - public V1ResourceSliceSpecFluent() { - } - - public V1ResourceSliceSpecFluent(V1ResourceSliceSpec instance) { - this.copyInstance(instance); - } + private Boolean allNodes; private ArrayList devices; private String driver; @@ -35,64 +30,54 @@ public V1ResourceSliceSpecFluent(V1ResourceSliceSpec instance) { private Boolean perDeviceNodeSelection; private V1ResourcePoolBuilder pool; private ArrayList sharedCounters; - - protected void copyInstance(V1ResourceSliceSpec instance) { - instance = instance != null ? instance : new V1ResourceSliceSpec(); - if (instance != null) { - this.withAllNodes(instance.getAllNodes()); - this.withDevices(instance.getDevices()); - this.withDriver(instance.getDriver()); - this.withNodeName(instance.getNodeName()); - this.withNodeSelector(instance.getNodeSelector()); - this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); - this.withPool(instance.getPool()); - this.withSharedCounters(instance.getSharedCounters()); - } - } - - public Boolean getAllNodes() { - return this.allNodes; - } - - public A withAllNodes(Boolean allNodes) { - this.allNodes = allNodes; - return (A) this; + + public V1ResourceSliceSpecFluent() { } - public boolean hasAllNodes() { - return this.allNodes != null; + public V1ResourceSliceSpecFluent(V1ResourceSliceSpec instance) { + this.copyInstance(instance); } - - public A addToDevices(int index,V1Device item) { + + public A addAllToDevices(Collection items) { if (this.devices == null) { this.devices = new ArrayList(); } - V1DeviceBuilder builder = new V1DeviceBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); - } else { + for (V1Device item : items) { + V1DeviceBuilder builder = new V1DeviceBuilder(item); _visitables.get("devices").add(builder); - devices.add(index, builder); + this.devices.add(builder); } return (A) this; } - public A setToDevices(int index,V1Device item) { - if (this.devices == null) { - this.devices = new ArrayList(); + public A addAllToSharedCounters(Collection items) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); } - V1DeviceBuilder builder = new V1DeviceBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); - } else { - _visitables.get("devices").add(builder); - devices.set(index, builder); + for (V1CounterSet item : items) { + V1CounterSetBuilder builder = new V1CounterSetBuilder(item); + _visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); } return (A) this; } + public DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1Device item) { + return new DevicesNested(-1, item); + } + + public SharedCountersNested addNewSharedCounter() { + return new SharedCountersNested(-1, null); + } + + public SharedCountersNested addNewSharedCounterLike(V1CounterSet item) { + return new SharedCountersNested(-1, item); + } + public A addToDevices(V1Device... items) { if (this.devices == null) { this.devices = new ArrayList(); @@ -105,74 +90,72 @@ public A addToDevices(V1Device... items) { return (A) this; } - public A addAllToDevices(Collection items) { + public A addToDevices(int index,V1Device item) { if (this.devices == null) { this.devices = new ArrayList(); } - for (V1Device item : items) { - V1DeviceBuilder builder = new V1DeviceBuilder(item); + V1DeviceBuilder builder = new V1DeviceBuilder(item); + if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); - this.devices.add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.add(index, builder); } return (A) this; } - public A removeFromDevices(V1Device... items) { - if (this.devices == null) { - return (A) this; + public A addToSharedCounters(V1CounterSet... items) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); } - for (V1Device item : items) { - V1DeviceBuilder builder = new V1DeviceBuilder(item); - _visitables.get("devices").remove(builder); - this.devices.remove(builder); + for (V1CounterSet item : items) { + V1CounterSetBuilder builder = new V1CounterSetBuilder(item); + _visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); } return (A) this; } - public A removeAllFromDevices(Collection items) { - if (this.devices == null) { - return (A) this; + public A addToSharedCounters(int index,V1CounterSet item) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); } - for (V1Device item : items) { - V1DeviceBuilder builder = new V1DeviceBuilder(item); - _visitables.get("devices").remove(builder); - this.devices.remove(builder); + V1CounterSetBuilder builder = new V1CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(index, builder); } return (A) this; } - public A removeMatchingFromDevices(Predicate predicate) { - if (devices == null) { - return (A) this; - } - Iterator each = devices.iterator(); - List visitables = _visitables.get("devices"); - while (each.hasNext()) { - V1DeviceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1Device buildDevice(int index) { + return this.devices.get(index).build(); } public List buildDevices() { return this.devices != null ? build(devices) : null; } - public V1Device buildDevice(int index) { - return this.devices.get(index).build(); - } - public V1Device buildFirstDevice() { return this.devices.get(0).build(); } + public V1CounterSet buildFirstSharedCounter() { + return this.sharedCounters.get(0).build(); + } + public V1Device buildLastDevice() { return this.devices.get(devices.size() - 1).build(); } + public V1CounterSet buildLastSharedCounter() { + return this.sharedCounters.get(sharedCounters.size() - 1).build(); + } + public V1Device buildMatchingDevice(Predicate predicate) { for (V1DeviceBuilder item : devices) { if (predicate.test(item)) { @@ -182,61 +165,47 @@ public V1Device buildMatchingDevice(Predicate predicate) { return null; } - public boolean hasMatchingDevice(Predicate predicate) { - for (V1DeviceBuilder item : devices) { + public V1CounterSet buildMatchingSharedCounter(Predicate predicate) { + for (V1CounterSetBuilder item : sharedCounters) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; - } - - public A withDevices(List devices) { - if (this.devices != null) { - this._visitables.get("devices").clear(); - } - if (devices != null) { - this.devices = new ArrayList(); - for (V1Device item : devices) { - this.addToDevices(item); - } - } else { - this.devices = null; - } - return (A) this; + return null; } - public A withDevices(V1Device... devices) { - if (this.devices != null) { - this.devices.clear(); - _visitables.remove("devices"); - } - if (devices != null) { - for (V1Device item : devices) { - this.addToDevices(item); - } - } - return (A) this; + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; } - public boolean hasDevices() { - return this.devices != null && !(this.devices.isEmpty()); + public V1ResourcePool buildPool() { + return this.pool != null ? this.pool.build() : null; } - public DevicesNested addNewDevice() { - return new DevicesNested(-1, null); + public V1CounterSet buildSharedCounter(int index) { + return this.sharedCounters.get(index).build(); } - public DevicesNested addNewDeviceLike(V1Device item) { - return new DevicesNested(-1, item); + public List buildSharedCounters() { + return this.sharedCounters != null ? build(sharedCounters) : null; } - public DevicesNested setNewDeviceLike(int index,V1Device item) { - return new DevicesNested(index, item); + protected void copyInstance(V1ResourceSliceSpec instance) { + instance = instance != null ? instance : new V1ResourceSliceSpec(); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withDevices(instance.getDevices()); + this.withDriver(instance.getDriver()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); + this.withPool(instance.getPool()); + this.withSharedCounters(instance.getSharedCounters()); + } } public DevicesNested editDevice(int index) { - if (index <= devices.size()) { + if (devices.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "devices")); } return this.setNewDeviceLike(index, this.buildDevice(index)); @@ -249,6 +218,13 @@ public DevicesNested editFirstDevice() { return this.setNewDeviceLike(0, this.buildDevice(0)); } + public SharedCountersNested editFirstSharedCounter() { + if (sharedCounters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "sharedCounters")); + } + return this.setNewSharedCounterLike(0, this.buildSharedCounter(0)); + } + public DevicesNested editLastDevice() { int index = devices.size() - 1; if (index < 0) { @@ -257,6 +233,14 @@ public DevicesNested editLastDevice() { return this.setNewDeviceLike(index, this.buildDevice(index)); } + public SharedCountersNested editLastSharedCounter() { + int index = sharedCounters.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); + } + public DevicesNested editMatchingDevice(Predicate predicate) { int index = -1; for (int i = 0;i < devices.size();i++) { @@ -271,175 +255,191 @@ public DevicesNested editMatchingDevice(Predicate predicate) return this.setNewDeviceLike(index, this.buildDevice(index)); } - public String getDriver() { - return this.driver; - } - - public A withDriver(String driver) { - this.driver = driver; - return (A) this; - } - - public boolean hasDriver() { - return this.driver != null; + public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { + int index = -1; + for (int i = 0;i < sharedCounters.size();i++) { + if (predicate.test(sharedCounters.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); } - public String getNodeName() { - return this.nodeName; + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); } - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; + public NodeSelectorNested editOrNewNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); } - public boolean hasNodeName() { - return this.nodeName != null; + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); } - public V1NodeSelector buildNodeSelector() { - return this.nodeSelector != null ? this.nodeSelector.build() : null; + public PoolNested editOrNewPool() { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(new V1ResourcePoolBuilder().build())); } - public A withNodeSelector(V1NodeSelector nodeSelector) { - this._visitables.remove("nodeSelector"); - if (nodeSelector != null) { - this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); - this._visitables.get("nodeSelector").add(this.nodeSelector); - } else { - this.nodeSelector = null; - this._visitables.get("nodeSelector").remove(this.nodeSelector); - } - return (A) this; + public PoolNested editOrNewPoolLike(V1ResourcePool item) { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(item)); } - public boolean hasNodeSelector() { - return this.nodeSelector != null; + public PoolNested editPool() { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(null)); } - public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); + public SharedCountersNested editSharedCounter(int index) { + if (sharedCounters.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); } - public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceSliceSpecFluent that = (V1ResourceSliceSpecFluent) o; + if (!(Objects.equals(allNodes, that.allNodes))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + if (!(Objects.equals(perDeviceNodeSelection, that.perDeviceNodeSelection))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(sharedCounters, that.sharedCounters))) { + return false; + } + return true; } - public NodeSelectorNested editNodeSelector() { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + public Boolean getAllNodes() { + return this.allNodes; } - public NodeSelectorNested editOrNewNodeSelector() { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + public String getDriver() { + return this.driver; } - public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); + public String getNodeName() { + return this.nodeName; } public Boolean getPerDeviceNodeSelection() { return this.perDeviceNodeSelection; } - public A withPerDeviceNodeSelection(Boolean perDeviceNodeSelection) { - this.perDeviceNodeSelection = perDeviceNodeSelection; - return (A) this; + public boolean hasAllNodes() { + return this.allNodes != null; } - public boolean hasPerDeviceNodeSelection() { - return this.perDeviceNodeSelection != null; + public boolean hasDevices() { + return this.devices != null && !(this.devices.isEmpty()); } - public V1ResourcePool buildPool() { - return this.pool != null ? this.pool.build() : null; + public boolean hasDriver() { + return this.driver != null; } - public A withPool(V1ResourcePool pool) { - this._visitables.remove("pool"); - if (pool != null) { - this.pool = new V1ResourcePoolBuilder(pool); - this._visitables.get("pool").add(this.pool); - } else { - this.pool = null; - this._visitables.get("pool").remove(this.pool); - } - return (A) this; + public boolean hasMatchingDevice(Predicate predicate) { + for (V1DeviceBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public boolean hasPool() { - return this.pool != null; + public boolean hasMatchingSharedCounter(Predicate predicate) { + for (V1CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public PoolNested withNewPool() { - return new PoolNested(null); + public boolean hasNodeName() { + return this.nodeName != null; } - public PoolNested withNewPoolLike(V1ResourcePool item) { - return new PoolNested(item); + public boolean hasNodeSelector() { + return this.nodeSelector != null; } - public PoolNested editPool() { - return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(null)); + public boolean hasPerDeviceNodeSelection() { + return this.perDeviceNodeSelection != null; } - public PoolNested editOrNewPool() { - return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(new V1ResourcePoolBuilder().build())); + public boolean hasPool() { + return this.pool != null; } - public PoolNested editOrNewPoolLike(V1ResourcePool item) { - return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(item)); + public boolean hasSharedCounters() { + return this.sharedCounters != null && !(this.sharedCounters.isEmpty()); } - public A addToSharedCounters(int index,V1CounterSet item) { - if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); - } - V1CounterSetBuilder builder = new V1CounterSetBuilder(item); - if (index < 0 || index >= sharedCounters.size()) { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(builder); - } else { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(index, builder); - } - return (A) this; + public int hashCode() { + return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, perDeviceNodeSelection, pool, sharedCounters); } - public A setToSharedCounters(int index,V1CounterSet item) { - if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + public A removeAllFromDevices(Collection items) { + if (this.devices == null) { + return (A) this; } - V1CounterSetBuilder builder = new V1CounterSetBuilder(item); - if (index < 0 || index >= sharedCounters.size()) { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(builder); - } else { - _visitables.get("sharedCounters").add(builder); - sharedCounters.set(index, builder); + for (V1Device item : items) { + V1DeviceBuilder builder = new V1DeviceBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); } return (A) this; } - public A addToSharedCounters(V1CounterSet... items) { + public A removeAllFromSharedCounters(Collection items) { if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + return (A) this; } for (V1CounterSet item : items) { V1CounterSetBuilder builder = new V1CounterSetBuilder(item); - _visitables.get("sharedCounters").add(builder); - this.sharedCounters.add(builder); + _visitables.get("sharedCounters").remove(builder); + this.sharedCounters.remove(builder); } return (A) this; } - public A addAllToSharedCounters(Collection items) { - if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + public A removeFromDevices(V1Device... items) { + if (this.devices == null) { + return (A) this; } - for (V1CounterSet item : items) { - V1CounterSetBuilder builder = new V1CounterSetBuilder(item); - _visitables.get("sharedCounters").add(builder); - this.sharedCounters.add(builder); + for (V1Device item : items) { + V1DeviceBuilder builder = new V1DeviceBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); } return (A) this; } @@ -456,14 +456,18 @@ public A removeFromSharedCounters(V1CounterSet... items) { return (A) this; } - public A removeAllFromSharedCounters(Collection items) { - if (this.sharedCounters == null) { + public A removeMatchingFromDevices(Predicate predicate) { + if (devices == null) { return (A) this; } - for (V1CounterSet item : items) { - V1CounterSetBuilder builder = new V1CounterSetBuilder(item); - _visitables.get("sharedCounters").remove(builder); - this.sharedCounters.remove(builder); + Iterator each = devices.iterator(); + List visitables = _visitables.get("devices"); + while (each.hasNext()) { + V1DeviceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -476,168 +480,50 @@ public A removeMatchingFromSharedCounters(Predicate predica List visitables = _visitables.get("sharedCounters"); while (each.hasNext()) { V1CounterSetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - public List buildSharedCounters() { - return this.sharedCounters != null ? build(sharedCounters) : null; - } - - public V1CounterSet buildSharedCounter(int index) { - return this.sharedCounters.get(index).build(); - } - - public V1CounterSet buildFirstSharedCounter() { - return this.sharedCounters.get(0).build(); - } - - public V1CounterSet buildLastSharedCounter() { - return this.sharedCounters.get(sharedCounters.size() - 1).build(); - } - - public V1CounterSet buildMatchingSharedCounter(Predicate predicate) { - for (V1CounterSetBuilder item : sharedCounters) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingSharedCounter(Predicate predicate) { - for (V1CounterSetBuilder item : sharedCounters) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withSharedCounters(List sharedCounters) { - if (this.sharedCounters != null) { - this._visitables.get("sharedCounters").clear(); - } - if (sharedCounters != null) { - this.sharedCounters = new ArrayList(); - for (V1CounterSet item : sharedCounters) { - this.addToSharedCounters(item); - } - } else { - this.sharedCounters = null; - } - return (A) this; - } - - public A withSharedCounters(V1CounterSet... sharedCounters) { - if (this.sharedCounters != null) { - this.sharedCounters.clear(); - _visitables.remove("sharedCounters"); - } - if (sharedCounters != null) { - for (V1CounterSet item : sharedCounters) { - this.addToSharedCounters(item); - } + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasSharedCounters() { - return this.sharedCounters != null && !(this.sharedCounters.isEmpty()); - } - - public SharedCountersNested addNewSharedCounter() { - return new SharedCountersNested(-1, null); - } - - public SharedCountersNested addNewSharedCounterLike(V1CounterSet item) { - return new SharedCountersNested(-1, item); + public DevicesNested setNewDeviceLike(int index,V1Device item) { + return new DevicesNested(index, item); } public SharedCountersNested setNewSharedCounterLike(int index,V1CounterSet item) { return new SharedCountersNested(index, item); } - public SharedCountersNested editSharedCounter(int index) { - if (index <= sharedCounters.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sharedCounters")); - } - return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); - } - - public SharedCountersNested editFirstSharedCounter() { - if (sharedCounters.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "sharedCounters")); - } - return this.setNewSharedCounterLike(0, this.buildSharedCounter(0)); - } - - public SharedCountersNested editLastSharedCounter() { - int index = sharedCounters.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "sharedCounters")); - } - return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); - } - - public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { - int index = -1; - for (int i = 0;i < sharedCounters.size();i++) { - if (predicate.test(sharedCounters.get(i))) { - index = i; - break; - } + public A setToDevices(int index,V1Device item) { + if (this.devices == null) { + this.devices = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "sharedCounters")); + V1DeviceBuilder builder = new V1DeviceBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); } - return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ResourceSliceSpecFluent that = (V1ResourceSliceSpecFluent) o; - if (!(Objects.equals(allNodes, that.allNodes))) { - return false; - } - if (!(Objects.equals(devices, that.devices))) { - return false; - } - if (!(Objects.equals(driver, that.driver))) { - return false; - } - if (!(Objects.equals(nodeName, that.nodeName))) { - return false; - } - if (!(Objects.equals(nodeSelector, that.nodeSelector))) { - return false; - } - if (!(Objects.equals(perDeviceNodeSelection, that.perDeviceNodeSelection))) { - return false; - } - if (!(Objects.equals(pool, that.pool))) { - return false; + public A setToSharedCounters(int index,V1CounterSet item) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); } - if (!(Objects.equals(sharedCounters, that.sharedCounters))) { - return false; + V1CounterSetBuilder builder = new V1CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.set(index, builder); } - return true; - } - - public int hashCode() { - return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, perDeviceNodeSelection, pool, sharedCounters); + return (A) this; } public String toString() { @@ -690,17 +576,135 @@ public A withAllNodes() { return withAllNodes(true); } + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public A withDevices(List devices) { + if (this.devices != null) { + this._visitables.get("devices").clear(); + } + if (devices != null) { + this.devices = new ArrayList(); + for (V1Device item : devices) { + this.addToDevices(item); + } + } else { + this.devices = null; + } + return (A) this; + } + + public A withDevices(V1Device... devices) { + if (this.devices != null) { + this.devices.clear(); + _visitables.remove("devices"); + } + if (devices != null) { + for (V1Device item : devices) { + this.addToDevices(item); + } + } + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public PoolNested withNewPool() { + return new PoolNested(null); + } + + public PoolNested withNewPoolLike(V1ResourcePool item) { + return new PoolNested(item); + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + public A withNodeSelector(V1NodeSelector nodeSelector) { + this._visitables.remove("nodeSelector"); + if (nodeSelector != null) { + this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); + this._visitables.get("nodeSelector").add(this.nodeSelector); + } else { + this.nodeSelector = null; + this._visitables.get("nodeSelector").remove(this.nodeSelector); + } + return (A) this; + } + public A withPerDeviceNodeSelection() { return withPerDeviceNodeSelection(true); } + + public A withPerDeviceNodeSelection(Boolean perDeviceNodeSelection) { + this.perDeviceNodeSelection = perDeviceNodeSelection; + return (A) this; + } + + public A withPool(V1ResourcePool pool) { + this._visitables.remove("pool"); + if (pool != null) { + this.pool = new V1ResourcePoolBuilder(pool); + this._visitables.get("pool").add(this.pool); + } else { + this.pool = null; + this._visitables.get("pool").remove(this.pool); + } + return (A) this; + } + + public A withSharedCounters(List sharedCounters) { + if (this.sharedCounters != null) { + this._visitables.get("sharedCounters").clear(); + } + if (sharedCounters != null) { + this.sharedCounters = new ArrayList(); + for (V1CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } else { + this.sharedCounters = null; + } + return (A) this; + } + + public A withSharedCounters(V1CounterSet... sharedCounters) { + if (this.sharedCounters != null) { + this.sharedCounters.clear(); + _visitables.remove("sharedCounters"); + } + if (sharedCounters != null) { + for (V1CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } + return (A) this; + } public class DevicesNested extends V1DeviceFluent> implements Nested{ + + V1DeviceBuilder builder; + int index; + DevicesNested(int index,V1Device item) { this.index = index; this.builder = new V1DeviceBuilder(this, item); } - V1DeviceBuilder builder; - int index; - + public N and() { return (N) V1ResourceSliceSpecFluent.this.setToDevices(index, builder.build()); } @@ -709,14 +713,15 @@ public N endDevice() { return and(); } - } public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + NodeSelectorNested(V1NodeSelector item) { this.builder = new V1NodeSelectorBuilder(this, item); } - V1NodeSelectorBuilder builder; - + public N and() { return (N) V1ResourceSliceSpecFluent.this.withNodeSelector(builder.build()); } @@ -725,14 +730,15 @@ public N endNodeSelector() { return and(); } - } public class PoolNested extends V1ResourcePoolFluent> implements Nested{ + + V1ResourcePoolBuilder builder; + PoolNested(V1ResourcePool item) { this.builder = new V1ResourcePoolBuilder(this, item); } - V1ResourcePoolBuilder builder; - + public N and() { return (N) V1ResourceSliceSpecFluent.this.withPool(builder.build()); } @@ -741,16 +747,17 @@ public N endPool() { return and(); } - } public class SharedCountersNested extends V1CounterSetFluent> implements Nested{ + + V1CounterSetBuilder builder; + int index; + SharedCountersNested(int index,V1CounterSet item) { this.index = index; this.builder = new V1CounterSetBuilder(this, item); } - V1CounterSetBuilder builder; - int index; - + public N and() { return (N) V1ResourceSliceSpecFluent.this.setToSharedCounters(index, builder.build()); } @@ -759,7 +766,5 @@ public N endSharedCounter() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java index 2987d89e63..006ab6d5f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ResourceStatusBuilder extends V1ResourceStatusFluent implements VisitableBuilder{ + + V1ResourceStatusFluent fluent; + public V1ResourceStatusBuilder() { this(new V1ResourceStatus()); } @@ -11,17 +14,16 @@ public V1ResourceStatusBuilder(V1ResourceStatusFluent fluent) { this(fluent, new V1ResourceStatus()); } - public V1ResourceStatusBuilder(V1ResourceStatusFluent fluent,V1ResourceStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceStatusBuilder(V1ResourceStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceStatusFluent fluent; + public V1ResourceStatusBuilder(V1ResourceStatusFluent fluent,V1ResourceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceStatus build() { V1ResourceStatus buildable = new V1ResourceStatus(); buildable.setName(fluent.getName()); @@ -29,5 +31,4 @@ public V1ResourceStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusFluent.java index 94c1105106..3fec70cbeb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusFluent.java @@ -1,82 +1,53 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ResourceStatusFluent> extends BaseFluent{ + + private String name; + private ArrayList resources; + public V1ResourceStatusFluent() { } public V1ResourceStatusFluent(V1ResourceStatus instance) { this.copyInstance(instance); } - private String name; - private ArrayList resources; - - protected void copyInstance(V1ResourceStatus instance) { - instance = instance != null ? instance : new V1ResourceStatus(); - if (instance != null) { - this.withName(instance.getName()); - this.withResources(instance.getResources()); - } - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public A addToResources(int index,V1ResourceHealth item) { + + public A addAllToResources(Collection items) { if (this.resources == null) { this.resources = new ArrayList(); } - V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); - if (index < 0 || index >= resources.size()) { - _visitables.get("resources").add(builder); - resources.add(builder); - } else { + for (V1ResourceHealth item : items) { + V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); _visitables.get("resources").add(builder); - resources.add(index, builder); + this.resources.add(builder); } return (A) this; } - public A setToResources(int index,V1ResourceHealth item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); - if (index < 0 || index >= resources.size()) { - _visitables.get("resources").add(builder); - resources.add(builder); - } else { - _visitables.get("resources").add(builder); - resources.set(index, builder); - } - return (A) this; + public ResourcesNested addNewResource() { + return new ResourcesNested(-1, null); + } + + public ResourcesNested addNewResourceLike(V1ResourceHealth item) { + return new ResourcesNested(-1, item); } public A addToResources(V1ResourceHealth... items) { @@ -91,66 +62,21 @@ public A addToResources(V1ResourceHealth... items) { return (A) this; } - public A addAllToResources(Collection items) { + public A addToResources(int index,V1ResourceHealth item) { if (this.resources == null) { this.resources = new ArrayList(); } - for (V1ResourceHealth item : items) { - V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); + V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); + if (index < 0 || index >= resources.size()) { _visitables.get("resources").add(builder); - this.resources.add(builder); - } - return (A) this; - } - - public A removeFromResources(V1ResourceHealth... items) { - if (this.resources == null) { - return (A) this; - } - for (V1ResourceHealth item : items) { - V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); - _visitables.get("resources").remove(builder); - this.resources.remove(builder); - } - return (A) this; - } - - public A removeAllFromResources(Collection items) { - if (this.resources == null) { - return (A) this; - } - for (V1ResourceHealth item : items) { - V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); - _visitables.get("resources").remove(builder); - this.resources.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromResources(Predicate predicate) { - if (resources == null) { - return (A) this; - } - Iterator each = resources.iterator(); - List visitables = _visitables.get("resources"); - while (each.hasNext()) { - V1ResourceHealthBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + resources.add(builder); + } else { + _visitables.get("resources").add(builder); + resources.add(index, builder); } return (A) this; } - public List buildResources() { - return this.resources != null ? build(resources) : null; - } - - public V1ResourceHealth buildResource(int index) { - return this.resources.get(index).build(); - } - public V1ResourceHealth buildFirstResource() { return this.resources.get(0).build(); } @@ -168,64 +94,20 @@ public V1ResourceHealth buildMatchingResource(Predicate return null; } - public boolean hasMatchingResource(Predicate predicate) { - for (V1ResourceHealthBuilder item : resources) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withResources(List resources) { - if (this.resources != null) { - this._visitables.get("resources").clear(); - } - if (resources != null) { - this.resources = new ArrayList(); - for (V1ResourceHealth item : resources) { - this.addToResources(item); - } - } else { - this.resources = null; - } - return (A) this; - } - - public A withResources(V1ResourceHealth... resources) { - if (this.resources != null) { - this.resources.clear(); - _visitables.remove("resources"); - } - if (resources != null) { - for (V1ResourceHealth item : resources) { - this.addToResources(item); - } - } - return (A) this; - } - - public boolean hasResources() { - return this.resources != null && !(this.resources.isEmpty()); - } - - public ResourcesNested addNewResource() { - return new ResourcesNested(-1, null); - } - - public ResourcesNested addNewResourceLike(V1ResourceHealth item) { - return new ResourcesNested(-1, item); + public V1ResourceHealth buildResource(int index) { + return this.resources.get(index).build(); } - public ResourcesNested setNewResourceLike(int index,V1ResourceHealth item) { - return new ResourcesNested(index, item); + public List buildResources() { + return this.resources != null ? build(resources) : null; } - public ResourcesNested editResource(int index) { - if (index <= resources.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resources")); + protected void copyInstance(V1ResourceStatus instance) { + instance = instance != null ? instance : new V1ResourceStatus(); + if (instance != null) { + this.withName(instance.getName()); + this.withResources(instance.getResources()); } - return this.setNewResourceLike(index, this.buildResource(index)); } public ResourcesNested editFirstResource() { @@ -257,6 +139,13 @@ public ResourcesNested editMatchingResource(Predicate editResource(int index) { + if (resources.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resources")); + } + return this.setNewResourceLike(index, this.buildResource(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -277,10 +166,90 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public boolean hasMatchingResource(Predicate predicate) { + for (V1ResourceHealthBuilder item : resources) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); + } + public int hashCode() { return Objects.hash(name, resources); } + public A removeAllFromResources(Collection items) { + if (this.resources == null) { + return (A) this; + } + for (V1ResourceHealth item : items) { + V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); + _visitables.get("resources").remove(builder); + this.resources.remove(builder); + } + return (A) this; + } + + public A removeFromResources(V1ResourceHealth... items) { + if (this.resources == null) { + return (A) this; + } + for (V1ResourceHealth item : items) { + V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); + _visitables.get("resources").remove(builder); + this.resources.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromResources(Predicate predicate) { + if (resources == null) { + return (A) this; + } + Iterator each = resources.iterator(); + List visitables = _visitables.get("resources"); + while (each.hasNext()) { + V1ResourceHealthBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ResourcesNested setNewResourceLike(int index,V1ResourceHealth item) { + return new ResourcesNested(index, item); + } + + public A setToResources(int index,V1ResourceHealth item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); + if (index < 0 || index >= resources.size()) { + _visitables.get("resources").add(builder); + resources.add(builder); + } else { + _visitables.get("resources").add(builder); + resources.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -296,14 +265,49 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResources(List resources) { + if (this.resources != null) { + this._visitables.get("resources").clear(); + } + if (resources != null) { + this.resources = new ArrayList(); + for (V1ResourceHealth item : resources) { + this.addToResources(item); + } + } else { + this.resources = null; + } + return (A) this; + } + + public A withResources(V1ResourceHealth... resources) { + if (this.resources != null) { + this.resources.clear(); + _visitables.remove("resources"); + } + if (resources != null) { + for (V1ResourceHealth item : resources) { + this.addToResources(item); + } + } + return (A) this; + } public class ResourcesNested extends V1ResourceHealthFluent> implements Nested{ + + V1ResourceHealthBuilder builder; + int index; + ResourcesNested(int index,V1ResourceHealth item) { this.index = index; this.builder = new V1ResourceHealthBuilder(this, item); } - V1ResourceHealthBuilder builder; - int index; - + public N and() { return (N) V1ResourceStatusFluent.this.setToResources(index, builder.build()); } @@ -312,7 +316,5 @@ public N endResource() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java index 7c8cfd4ef6..7428374262 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1RoleBindingBuilder extends V1RoleBindingFluent implements VisitableBuilder{ + + V1RoleBindingFluent fluent; + public V1RoleBindingBuilder() { this(new V1RoleBinding()); } @@ -11,17 +14,16 @@ public V1RoleBindingBuilder(V1RoleBindingFluent fluent) { this(fluent, new V1RoleBinding()); } - public V1RoleBindingBuilder(V1RoleBindingFluent fluent,V1RoleBinding instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RoleBindingBuilder(V1RoleBinding instance) { this.fluent = this; this.copyInstance(instance); } - V1RoleBindingFluent fluent; + public V1RoleBindingBuilder(V1RoleBindingFluent fluent,V1RoleBinding instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RoleBinding build() { V1RoleBinding buildable = new V1RoleBinding(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1RoleBinding build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java index d0600d345e..73ae01a0eb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java @@ -1,182 +1,57 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1RoleBindingFluent> extends BaseFluent{ - public V1RoleBindingFluent() { - } - - public V1RoleBindingFluent(V1RoleBinding instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1RoleRefBuilder roleRef; private ArrayList subjects; - - protected void copyInstance(V1RoleBinding instance) { - instance = instance != null ? instance : new V1RoleBinding(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withRoleRef(instance.getRoleRef()); - this.withSubjects(instance.getSubjects()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); - } - - public V1RoleRef buildRoleRef() { - return this.roleRef != null ? this.roleRef.build() : null; - } - - public A withRoleRef(V1RoleRef roleRef) { - this._visitables.remove("roleRef"); - if (roleRef != null) { - this.roleRef = new V1RoleRefBuilder(roleRef); - this._visitables.get("roleRef").add(this.roleRef); - } else { - this.roleRef = null; - this._visitables.get("roleRef").remove(this.roleRef); - } - return (A) this; - } - - public boolean hasRoleRef() { - return this.roleRef != null; - } - - public RoleRefNested withNewRoleRef() { - return new RoleRefNested(null); - } - - public RoleRefNested withNewRoleRefLike(V1RoleRef item) { - return new RoleRefNested(item); - } - - public RoleRefNested editRoleRef() { - return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(null)); - } - - public RoleRefNested editOrNewRoleRef() { - return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(new V1RoleRefBuilder().build())); + + public V1RoleBindingFluent() { } - public RoleRefNested editOrNewRoleRefLike(V1RoleRef item) { - return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(item)); + public V1RoleBindingFluent(V1RoleBinding instance) { + this.copyInstance(instance); } - - public A addToSubjects(int index,RbacV1Subject item) { + + public A addAllToSubjects(Collection items) { if (this.subjects == null) { this.subjects = new ArrayList(); } - RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { - _visitables.get("subjects").add(builder); - subjects.add(builder); - } else { + for (RbacV1Subject item : items) { + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); _visitables.get("subjects").add(builder); - subjects.add(index, builder); + this.subjects.add(builder); } return (A) this; } - public A setToSubjects(int index,RbacV1Subject item) { - if (this.subjects == null) { - this.subjects = new ArrayList(); - } - RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { - _visitables.get("subjects").add(builder); - subjects.add(builder); - } else { - _visitables.get("subjects").add(builder); - subjects.set(index, builder); - } - return (A) this; + public SubjectsNested addNewSubject() { + return new SubjectsNested(-1, null); + } + + public SubjectsNested addNewSubjectLike(RbacV1Subject item) { + return new SubjectsNested(-1, item); } public A addToSubjects(RbacV1Subject... items) { @@ -191,66 +66,21 @@ public A addToSubjects(RbacV1Subject... items) { return (A) this; } - public A addAllToSubjects(Collection items) { + public A addToSubjects(int index,RbacV1Subject item) { if (this.subjects == null) { this.subjects = new ArrayList(); } - for (RbacV1Subject item : items) { - RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + if (index < 0 || index >= subjects.size()) { _visitables.get("subjects").add(builder); - this.subjects.add(builder); - } - return (A) this; - } - - public A removeFromSubjects(RbacV1Subject... items) { - if (this.subjects == null) { - return (A) this; - } - for (RbacV1Subject item : items) { - RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - _visitables.get("subjects").remove(builder); - this.subjects.remove(builder); - } - return (A) this; - } - - public A removeAllFromSubjects(Collection items) { - if (this.subjects == null) { - return (A) this; - } - for (RbacV1Subject item : items) { - RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - _visitables.get("subjects").remove(builder); - this.subjects.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromSubjects(Predicate predicate) { - if (subjects == null) { - return (A) this; - } - Iterator each = subjects.iterator(); - List visitables = _visitables.get("subjects"); - while (each.hasNext()) { - RbacV1SubjectBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + subjects.add(builder); + } else { + _visitables.get("subjects").add(builder); + subjects.add(index, builder); } return (A) this; } - public List buildSubjects() { - return this.subjects != null ? build(subjects) : null; - } - - public RbacV1Subject buildSubject(int index) { - return this.subjects.get(index).build(); - } - public RbacV1Subject buildFirstSubject() { return this.subjects.get(0).build(); } @@ -265,67 +95,34 @@ public RbacV1Subject buildMatchingSubject(Predicate predic return item.build(); } } - return null; - } - - public boolean hasMatchingSubject(Predicate predicate) { - for (RbacV1SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withSubjects(List subjects) { - if (this.subjects != null) { - this._visitables.get("subjects").clear(); - } - if (subjects != null) { - this.subjects = new ArrayList(); - for (RbacV1Subject item : subjects) { - this.addToSubjects(item); - } - } else { - this.subjects = null; - } - return (A) this; - } - - public A withSubjects(RbacV1Subject... subjects) { - if (this.subjects != null) { - this.subjects.clear(); - _visitables.remove("subjects"); - } - if (subjects != null) { - for (RbacV1Subject item : subjects) { - this.addToSubjects(item); - } - } - return (A) this; + return null; } - public boolean hasSubjects() { - return this.subjects != null && !(this.subjects.isEmpty()); + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public SubjectsNested addNewSubject() { - return new SubjectsNested(-1, null); + public V1RoleRef buildRoleRef() { + return this.roleRef != null ? this.roleRef.build() : null; } - public SubjectsNested addNewSubjectLike(RbacV1Subject item) { - return new SubjectsNested(-1, item); + public RbacV1Subject buildSubject(int index) { + return this.subjects.get(index).build(); } - public SubjectsNested setNewSubjectLike(int index,RbacV1Subject item) { - return new SubjectsNested(index, item); + public List buildSubjects() { + return this.subjects != null ? build(subjects) : null; } - public SubjectsNested editSubject(int index) { - if (index <= subjects.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "subjects")); + protected void copyInstance(V1RoleBinding instance) { + instance = instance != null ? instance : new V1RoleBinding(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withRoleRef(instance.getRoleRef()); + this.withSubjects(instance.getSubjects()); } - return this.setNewSubjectLike(index, this.buildSubject(index)); } public SubjectsNested editFirstSubject() { @@ -357,6 +154,37 @@ public SubjectsNested editMatchingSubject(Predicate pre return this.setNewSubjectLike(index, this.buildSubject(index)); } + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public RoleRefNested editOrNewRoleRef() { + return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(new V1RoleRefBuilder().build())); + } + + public RoleRefNested editOrNewRoleRefLike(V1RoleRef item) { + return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(item)); + } + + public RoleRefNested editRoleRef() { + return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(null)); + } + + public SubjectsNested editSubject(int index) { + if (subjects.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -386,10 +214,106 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingSubject(Predicate predicate) { + for (RbacV1SubjectBuilder item : subjects) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasRoleRef() { + return this.roleRef != null; + } + + public boolean hasSubjects() { + return this.subjects != null && !(this.subjects.isEmpty()); + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, roleRef, subjects); } + public A removeAllFromSubjects(Collection items) { + if (this.subjects == null) { + return (A) this; + } + for (RbacV1Subject item : items) { + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + _visitables.get("subjects").remove(builder); + this.subjects.remove(builder); + } + return (A) this; + } + + public A removeFromSubjects(RbacV1Subject... items) { + if (this.subjects == null) { + return (A) this; + } + for (RbacV1Subject item : items) { + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + _visitables.get("subjects").remove(builder); + this.subjects.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromSubjects(Predicate predicate) { + if (subjects == null) { + return (A) this; + } + Iterator each = subjects.iterator(); + List visitables = _visitables.get("subjects"); + while (each.hasNext()) { + RbacV1SubjectBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public SubjectsNested setNewSubjectLike(int index,RbacV1Subject item) { + return new SubjectsNested(index, item); + } + + public A setToSubjects(int index,RbacV1Subject item) { + if (this.subjects == null) { + this.subjects = new ArrayList(); + } + RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); + if (index < 0 || index >= subjects.size()) { + _visitables.get("subjects").add(builder); + subjects.add(builder); + } else { + _visitables.get("subjects").add(builder); + subjects.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -420,12 +344,92 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public RoleRefNested withNewRoleRef() { + return new RoleRefNested(null); + } + + public RoleRefNested withNewRoleRefLike(V1RoleRef item) { + return new RoleRefNested(item); + } + + public A withRoleRef(V1RoleRef roleRef) { + this._visitables.remove("roleRef"); + if (roleRef != null) { + this.roleRef = new V1RoleRefBuilder(roleRef); + this._visitables.get("roleRef").add(this.roleRef); + } else { + this.roleRef = null; + this._visitables.get("roleRef").remove(this.roleRef); + } + return (A) this; + } + + public A withSubjects(List subjects) { + if (this.subjects != null) { + this._visitables.get("subjects").clear(); + } + if (subjects != null) { + this.subjects = new ArrayList(); + for (RbacV1Subject item : subjects) { + this.addToSubjects(item); + } + } else { + this.subjects = null; + } + return (A) this; + } + + public A withSubjects(RbacV1Subject... subjects) { + if (this.subjects != null) { + this.subjects.clear(); + _visitables.remove("subjects"); + } + if (subjects != null) { + for (RbacV1Subject item : subjects) { + this.addToSubjects(item); + } + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1RoleBindingFluent.this.withMetadata(builder.build()); } @@ -434,14 +438,15 @@ public N endMetadata() { return and(); } - } public class RoleRefNested extends V1RoleRefFluent> implements Nested{ + + V1RoleRefBuilder builder; + RoleRefNested(V1RoleRef item) { this.builder = new V1RoleRefBuilder(this, item); } - V1RoleRefBuilder builder; - + public N and() { return (N) V1RoleBindingFluent.this.withRoleRef(builder.build()); } @@ -450,16 +455,17 @@ public N endRoleRef() { return and(); } - } public class SubjectsNested extends RbacV1SubjectFluent> implements Nested{ + + RbacV1SubjectBuilder builder; + int index; + SubjectsNested(int index,RbacV1Subject item) { this.index = index; this.builder = new RbacV1SubjectBuilder(this, item); } - RbacV1SubjectBuilder builder; - int index; - + public N and() { return (N) V1RoleBindingFluent.this.setToSubjects(index, builder.build()); } @@ -468,7 +474,5 @@ public N endSubject() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java index b52fccb4d7..15eecadc54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1RoleBindingListBuilder extends V1RoleBindingListFluent implements VisitableBuilder{ + + V1RoleBindingListFluent fluent; + public V1RoleBindingListBuilder() { this(new V1RoleBindingList()); } @@ -11,17 +14,16 @@ public V1RoleBindingListBuilder(V1RoleBindingListFluent fluent) { this(fluent, new V1RoleBindingList()); } - public V1RoleBindingListBuilder(V1RoleBindingListFluent fluent,V1RoleBindingList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RoleBindingListBuilder(V1RoleBindingList instance) { this.fluent = this; this.copyInstance(instance); } - V1RoleBindingListFluent fluent; + public V1RoleBindingListBuilder(V1RoleBindingListFluent fluent,V1RoleBindingList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RoleBindingList build() { V1RoleBindingList buildable = new V1RoleBindingList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1RoleBindingList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java index 559805d7ba..ce19e746ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1RoleBindingListFluent> extends BaseFluent{ - public V1RoleBindingListFluent() { - } - - public V1RoleBindingListFluent(V1RoleBindingList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1RoleBindingList instance) { - instance = instance != null ? instance : new V1RoleBindingList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1RoleBindingListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1RoleBindingListFluent(V1RoleBindingList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1RoleBinding item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1RoleBinding item : items) { + V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1RoleBinding item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1RoleBinding item) { + return new ItemsNested(-1, item); } public A addToItems(V1RoleBinding... items) { @@ -96,68 +65,31 @@ public A addToItems(V1RoleBinding... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1RoleBinding item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1RoleBinding item : items) { - V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); + V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1RoleBinding... items) { - if (this.items == null) { - return (A) this; - } - for (V1RoleBinding item : items) { - V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1RoleBinding item : items) { - V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1RoleBindingBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1RoleBinding buildFirstItem() { + return this.items.get(0).build(); } public V1RoleBinding buildItem(int index) { return this.items.get(index).build(); } - public V1RoleBinding buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1RoleBinding buildLastItem() { @@ -173,73 +105,34 @@ public V1RoleBinding buildMatchingItem(Predicate predicate return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1RoleBindingBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1RoleBinding item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1RoleBindingList instance) { + instance = instance != null ? instance : new V1RoleBindingList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1RoleBinding... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1RoleBinding item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1RoleBinding item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1RoleBinding item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1RoleBindingBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1RoleBinding item : items) { + V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1RoleBinding... items) { + if (this.items == null) { + return (A) this; + } + for (V1RoleBinding item : items) { + V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1RoleBindingBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1RoleBinding item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1RoleBinding item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1RoleBinding item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1RoleBinding... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1RoleBinding item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1RoleBindingFluent> implements Nested{ + + V1RoleBindingBuilder builder; + int index; + ItemsNested(int index,V1RoleBinding item) { this.index = index; this.builder = new V1RoleBindingBuilder(this, item); } - V1RoleBindingBuilder builder; - int index; - + public N and() { return (N) V1RoleBindingListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1RoleBindingListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java index 6a2c6c1801..189c82fd90 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1RoleBuilder extends V1RoleFluent implements VisitableBuilder{ + + V1RoleFluent fluent; + public V1RoleBuilder() { this(new V1Role()); } @@ -11,17 +14,16 @@ public V1RoleBuilder(V1RoleFluent fluent) { this(fluent, new V1Role()); } - public V1RoleBuilder(V1RoleFluent fluent,V1Role instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RoleBuilder(V1Role instance) { this.fluent = this; this.copyInstance(instance); } - V1RoleFluent fluent; + public V1RoleBuilder(V1RoleFluent fluent,V1Role instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Role build() { V1Role buildable = new V1Role(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1Role build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java index 3db87d48d6..4e668bf838 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java @@ -1,140 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1RoleFluent> extends BaseFluent{ - public V1RoleFluent() { - } - - public V1RoleFluent(V1Role instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private ArrayList rules; - - protected void copyInstance(V1Role instance) { - instance = instance != null ? instance : new V1Role(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withRules(instance.getRules()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + + public V1RoleFluent() { } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + public V1RoleFluent(V1Role instance) { + this.copyInstance(instance); } - - public A addToRules(int index,V1PolicyRule item) { + + public A addAllToRules(Collection items) { if (this.rules == null) { this.rules = new ArrayList(); } - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); - } else { + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); _visitables.get("rules").add(builder); - rules.add(index, builder); + this.rules.add(builder); } return (A) this; } - public A setToRules(int index,V1PolicyRule item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); - } else { - _visitables.get("rules").add(builder); - rules.set(index, builder); - } - return (A) this; + public RulesNested addNewRule() { + return new RulesNested(-1, null); + } + + public RulesNested addNewRuleLike(V1PolicyRule item) { + return new RulesNested(-1, item); } public A addToRules(V1PolicyRule... items) { @@ -149,66 +65,21 @@ public A addToRules(V1PolicyRule... items) { return (A) this; } - public A addAllToRules(Collection items) { + public A addToRules(int index,V1PolicyRule item) { if (this.rules == null) { this.rules = new ArrayList(); } - for (V1PolicyRule item : items) { - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; - } - - public A removeFromRules(V1PolicyRule... items) { - if (this.rules == null) { - return (A) this; - } - for (V1PolicyRule item : items) { - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - _visitables.get("rules").remove(builder); - this.rules.remove(builder); - } - return (A) this; - } - - public A removeAllFromRules(Collection items) { - if (this.rules == null) { - return (A) this; - } - for (V1PolicyRule item : items) { - V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - _visitables.get("rules").remove(builder); - this.rules.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromRules(Predicate predicate) { - if (rules == null) { - return (A) this; - } - Iterator each = rules.iterator(); - List visitables = _visitables.get("rules"); - while (each.hasNext()) { - V1PolicyRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); } return (A) this; } - public List buildRules() { - return this.rules != null ? build(rules) : null; - } - - public V1PolicyRule buildRule(int index) { - return this.rules.get(index).build(); - } - public V1PolicyRule buildFirstRule() { return this.rules.get(0).build(); } @@ -226,64 +97,26 @@ public V1PolicyRule buildMatchingRule(Predicate predicate) return null; } - public boolean hasMatchingRule(Predicate predicate) { - for (V1PolicyRuleBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRules(List rules) { - if (this.rules != null) { - this._visitables.get("rules").clear(); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1PolicyRule item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; - } - return (A) this; - } - - public A withRules(V1PolicyRule... rules) { - if (this.rules != null) { - this.rules.clear(); - _visitables.remove("rules"); - } - if (rules != null) { - for (V1PolicyRule item : rules) { - this.addToRules(item); - } - } - return (A) this; - } - - public boolean hasRules() { - return this.rules != null && !(this.rules.isEmpty()); - } - - public RulesNested addNewRule() { - return new RulesNested(-1, null); + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public RulesNested addNewRuleLike(V1PolicyRule item) { - return new RulesNested(-1, item); + public V1PolicyRule buildRule(int index) { + return this.rules.get(index).build(); } - public RulesNested setNewRuleLike(int index,V1PolicyRule item) { - return new RulesNested(index, item); + public List buildRules() { + return this.rules != null ? build(rules) : null; } - public RulesNested editRule(int index) { - if (index <= rules.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + protected void copyInstance(V1Role instance) { + instance = instance != null ? instance : new V1Role(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withRules(instance.getRules()); } - return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editFirstRule() { @@ -315,6 +148,25 @@ public RulesNested editMatchingRule(Predicate predicate) return this.setNewRuleLike(index, this.buildRule(index)); } + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public RulesNested editRule(int index) { + if (rules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingRule(Predicate predicate) { + for (V1PolicyRuleBuilder item : rules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasRules() { + return this.rules != null && !(this.rules.isEmpty()); + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, rules); } + public A removeAllFromRules(Collection items) { + if (this.rules == null) { + return (A) this; + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; + } + + public A removeFromRules(V1PolicyRule... items) { + if (this.rules == null) { + return (A) this; + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromRules(Predicate predicate) { + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); + while (each.hasNext()) { + V1PolicyRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public RulesNested setNewRuleLike(int index,V1PolicyRule item) { + return new RulesNested(index, item); + } + + public A setToRules(int index,V1PolicyRule item) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,12 +314,72 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public A withRules(List rules) { + if (this.rules != null) { + this._visitables.get("rules").clear(); + } + if (rules != null) { + this.rules = new ArrayList(); + for (V1PolicyRule item : rules) { + this.addToRules(item); + } + } else { + this.rules = null; + } + return (A) this; + } + + public A withRules(V1PolicyRule... rules) { + if (this.rules != null) { + this.rules.clear(); + _visitables.remove("rules"); + } + if (rules != null) { + for (V1PolicyRule item : rules) { + this.addToRules(item); + } + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1RoleFluent.this.withMetadata(builder.build()); } @@ -384,16 +388,17 @@ public N endMetadata() { return and(); } - } public class RulesNested extends V1PolicyRuleFluent> implements Nested{ + + V1PolicyRuleBuilder builder; + int index; + RulesNested(int index,V1PolicyRule item) { this.index = index; this.builder = new V1PolicyRuleBuilder(this, item); } - V1PolicyRuleBuilder builder; - int index; - + public N and() { return (N) V1RoleFluent.this.setToRules(index, builder.build()); } @@ -402,7 +407,5 @@ public N endRule() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java index b55f9bdcf7..3763ca76fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1RoleListBuilder extends V1RoleListFluent implements VisitableBuilder{ + + V1RoleListFluent fluent; + public V1RoleListBuilder() { this(new V1RoleList()); } @@ -11,17 +14,16 @@ public V1RoleListBuilder(V1RoleListFluent fluent) { this(fluent, new V1RoleList()); } - public V1RoleListBuilder(V1RoleListFluent fluent,V1RoleList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RoleListBuilder(V1RoleList instance) { this.fluent = this; this.copyInstance(instance); } - V1RoleListFluent fluent; + public V1RoleListBuilder(V1RoleListFluent fluent,V1RoleList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RoleList build() { V1RoleList buildable = new V1RoleList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1RoleList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java index 40bb3b5039..aeb3bfbda2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1RoleListFluent> extends BaseFluent{ - public V1RoleListFluent() { - } - - public V1RoleListFluent(V1RoleList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1RoleList instance) { - instance = instance != null ? instance : new V1RoleList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1RoleListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1RoleListFluent(V1RoleList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1Role item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1RoleBuilder builder = new V1RoleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1Role item : items) { + V1RoleBuilder builder = new V1RoleBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1Role item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1RoleBuilder builder = new V1RoleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1Role item) { + return new ItemsNested(-1, item); } public A addToItems(V1Role... items) { @@ -96,68 +65,31 @@ public A addToItems(V1Role... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1Role item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1Role item : items) { - V1RoleBuilder builder = new V1RoleBuilder(item); + V1RoleBuilder builder = new V1RoleBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1Role... items) { - if (this.items == null) { - return (A) this; - } - for (V1Role item : items) { - V1RoleBuilder builder = new V1RoleBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1Role item : items) { - V1RoleBuilder builder = new V1RoleBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1RoleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1Role buildFirstItem() { + return this.items.get(0).build(); } public V1Role buildItem(int index) { return this.items.get(index).build(); } - public V1Role buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1Role buildLastItem() { @@ -173,73 +105,34 @@ public V1Role buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1RoleBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Role item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1RoleList instance) { + instance = instance != null ? instance : new V1RoleList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1Role... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1Role item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Role item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Role item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) { return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1RoleBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Role item : items) { + V1RoleBuilder builder = new V1RoleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Role... items) { + if (this.items == null) { + return (A) this; + } + for (V1Role item : items) { + V1RoleBuilder builder = new V1RoleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1RoleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Role item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1Role item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1RoleBuilder builder = new V1RoleBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1Role item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1Role... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1Role item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1RoleFluent> implements Nested{ + + V1RoleBuilder builder; + int index; + ItemsNested(int index,V1Role item) { this.index = index; this.builder = new V1RoleBuilder(this, item); } - V1RoleBuilder builder; - int index; - + public N and() { return (N) V1RoleListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1RoleListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java index bea6a84629..815024ad4c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1RoleRefBuilder extends V1RoleRefFluent implements VisitableBuilder{ + + V1RoleRefFluent fluent; + public V1RoleRefBuilder() { this(new V1RoleRef()); } @@ -11,17 +14,16 @@ public V1RoleRefBuilder(V1RoleRefFluent fluent) { this(fluent, new V1RoleRef()); } - public V1RoleRefBuilder(V1RoleRefFluent fluent,V1RoleRef instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RoleRefBuilder(V1RoleRef instance) { this.fluent = this; this.copyInstance(instance); } - V1RoleRefFluent fluent; + public V1RoleRefBuilder(V1RoleRefFluent fluent,V1RoleRef instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RoleRef build() { V1RoleRef buildable = new V1RoleRef(); buildable.setApiGroup(fluent.getApiGroup()); @@ -30,5 +32,4 @@ public V1RoleRef build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java index 7e0928e5f6..bd1ffb5f9e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1RoleRefFluent> extends BaseFluent{ + + private String apiGroup; + private String kind; + private String name; + public V1RoleRefFluent() { } public V1RoleRefFluent(V1RoleRef instance) { this.copyInstance(instance); } - private String apiGroup; - private String kind; - private String name; - + protected void copyInstance(V1RoleRef instance) { instance = instance != null ? instance : new V1RoleRef(); if (instance != null) { @@ -31,45 +33,6 @@ protected void copyInstance(V1RoleRef instance) { } } - public String getApiGroup() { - return this.apiGroup; - } - - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; - } - - public boolean hasApiGroup() { - return this.apiGroup != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -93,6 +56,30 @@ public boolean equals(Object o) { return true; } + public String getApiGroup() { + return this.apiGroup; + } + + public String getKind() { + return this.kind; + } + + public String getName() { + return this.name; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(apiGroup, kind, name); } @@ -118,5 +105,19 @@ public String toString() { return sb.toString(); } - + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java index 96f798316e..3551d30c0e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1RollingUpdateDaemonSetBuilder extends V1RollingUpdateDaemonSetFluent implements VisitableBuilder{ + + V1RollingUpdateDaemonSetFluent fluent; + public V1RollingUpdateDaemonSetBuilder() { this(new V1RollingUpdateDaemonSet()); } @@ -11,17 +14,16 @@ public V1RollingUpdateDaemonSetBuilder(V1RollingUpdateDaemonSetFluent fluent) this(fluent, new V1RollingUpdateDaemonSet()); } - public V1RollingUpdateDaemonSetBuilder(V1RollingUpdateDaemonSetFluent fluent,V1RollingUpdateDaemonSet instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RollingUpdateDaemonSetBuilder(V1RollingUpdateDaemonSet instance) { this.fluent = this; this.copyInstance(instance); } - V1RollingUpdateDaemonSetFluent fluent; + public V1RollingUpdateDaemonSetBuilder(V1RollingUpdateDaemonSetFluent fluent,V1RollingUpdateDaemonSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RollingUpdateDaemonSet build() { V1RollingUpdateDaemonSet buildable = new V1RollingUpdateDaemonSet(); buildable.setMaxSurge(fluent.getMaxSurge()); @@ -29,5 +31,4 @@ public V1RollingUpdateDaemonSet build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java index f09c37c40b..06253f92c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; import io.kubernetes.client.custom.IntOrString; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1RollingUpdateDaemonSetFluent> extends BaseFluent{ + + private IntOrString maxSurge; + private IntOrString maxUnavailable; + public V1RollingUpdateDaemonSetFluent() { } public V1RollingUpdateDaemonSetFluent(V1RollingUpdateDaemonSet instance) { this.copyInstance(instance); } - private IntOrString maxSurge; - private IntOrString maxUnavailable; - + protected void copyInstance(V1RollingUpdateDaemonSet instance) { instance = instance != null ? instance : new V1RollingUpdateDaemonSet(); if (instance != null) { @@ -30,48 +32,6 @@ protected void copyInstance(V1RollingUpdateDaemonSet instance) { } } - public IntOrString getMaxSurge() { - return this.maxSurge; - } - - public A withMaxSurge(IntOrString maxSurge) { - this.maxSurge = maxSurge; - return (A) this; - } - - public boolean hasMaxSurge() { - return this.maxSurge != null; - } - - public A withNewMaxSurge(int value) { - return (A) this.withMaxSurge(new IntOrString(value)); - } - - public A withNewMaxSurge(String value) { - return (A) this.withMaxSurge(new IntOrString(value)); - } - - public IntOrString getMaxUnavailable() { - return this.maxUnavailable; - } - - public A withMaxUnavailable(IntOrString maxUnavailable) { - this.maxUnavailable = maxUnavailable; - return (A) this; - } - - public boolean hasMaxUnavailable() { - return this.maxUnavailable != null; - } - - public A withNewMaxUnavailable(int value) { - return (A) this.withMaxUnavailable(new IntOrString(value)); - } - - public A withNewMaxUnavailable(String value) { - return (A) this.withMaxUnavailable(new IntOrString(value)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -92,6 +52,22 @@ public boolean equals(Object o) { return true; } + public IntOrString getMaxSurge() { + return this.maxSurge; + } + + public IntOrString getMaxUnavailable() { + return this.maxUnavailable; + } + + public boolean hasMaxSurge() { + return this.maxSurge != null; + } + + public boolean hasMaxUnavailable() { + return this.maxUnavailable != null; + } + public int hashCode() { return Objects.hash(maxSurge, maxUnavailable); } @@ -112,5 +88,30 @@ public String toString() { return sb.toString(); } - + public A withMaxSurge(IntOrString maxSurge) { + this.maxSurge = maxSurge; + return (A) this; + } + + public A withMaxUnavailable(IntOrString maxUnavailable) { + this.maxUnavailable = maxUnavailable; + return (A) this; + } + + public A withNewMaxSurge(int value) { + return (A) this.withMaxSurge(new IntOrString(value)); + } + + public A withNewMaxSurge(String value) { + return (A) this.withMaxSurge(new IntOrString(value)); + } + + public A withNewMaxUnavailable(int value) { + return (A) this.withMaxUnavailable(new IntOrString(value)); + } + + public A withNewMaxUnavailable(String value) { + return (A) this.withMaxUnavailable(new IntOrString(value)); + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java index cefd5bb866..1d5d959758 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1RollingUpdateDeploymentBuilder extends V1RollingUpdateDeploymentFluent implements VisitableBuilder{ + + V1RollingUpdateDeploymentFluent fluent; + public V1RollingUpdateDeploymentBuilder() { this(new V1RollingUpdateDeployment()); } @@ -11,17 +14,16 @@ public V1RollingUpdateDeploymentBuilder(V1RollingUpdateDeploymentFluent fluen this(fluent, new V1RollingUpdateDeployment()); } - public V1RollingUpdateDeploymentBuilder(V1RollingUpdateDeploymentFluent fluent,V1RollingUpdateDeployment instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RollingUpdateDeploymentBuilder(V1RollingUpdateDeployment instance) { this.fluent = this; this.copyInstance(instance); } - V1RollingUpdateDeploymentFluent fluent; + public V1RollingUpdateDeploymentBuilder(V1RollingUpdateDeploymentFluent fluent,V1RollingUpdateDeployment instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RollingUpdateDeployment build() { V1RollingUpdateDeployment buildable = new V1RollingUpdateDeployment(); buildable.setMaxSurge(fluent.getMaxSurge()); @@ -29,5 +31,4 @@ public V1RollingUpdateDeployment build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java index 02f5d94b6f..75bd614476 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; import io.kubernetes.client.custom.IntOrString; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1RollingUpdateDeploymentFluent> extends BaseFluent{ + + private IntOrString maxSurge; + private IntOrString maxUnavailable; + public V1RollingUpdateDeploymentFluent() { } public V1RollingUpdateDeploymentFluent(V1RollingUpdateDeployment instance) { this.copyInstance(instance); } - private IntOrString maxSurge; - private IntOrString maxUnavailable; - + protected void copyInstance(V1RollingUpdateDeployment instance) { instance = instance != null ? instance : new V1RollingUpdateDeployment(); if (instance != null) { @@ -30,48 +32,6 @@ protected void copyInstance(V1RollingUpdateDeployment instance) { } } - public IntOrString getMaxSurge() { - return this.maxSurge; - } - - public A withMaxSurge(IntOrString maxSurge) { - this.maxSurge = maxSurge; - return (A) this; - } - - public boolean hasMaxSurge() { - return this.maxSurge != null; - } - - public A withNewMaxSurge(int value) { - return (A) this.withMaxSurge(new IntOrString(value)); - } - - public A withNewMaxSurge(String value) { - return (A) this.withMaxSurge(new IntOrString(value)); - } - - public IntOrString getMaxUnavailable() { - return this.maxUnavailable; - } - - public A withMaxUnavailable(IntOrString maxUnavailable) { - this.maxUnavailable = maxUnavailable; - return (A) this; - } - - public boolean hasMaxUnavailable() { - return this.maxUnavailable != null; - } - - public A withNewMaxUnavailable(int value) { - return (A) this.withMaxUnavailable(new IntOrString(value)); - } - - public A withNewMaxUnavailable(String value) { - return (A) this.withMaxUnavailable(new IntOrString(value)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -92,6 +52,22 @@ public boolean equals(Object o) { return true; } + public IntOrString getMaxSurge() { + return this.maxSurge; + } + + public IntOrString getMaxUnavailable() { + return this.maxUnavailable; + } + + public boolean hasMaxSurge() { + return this.maxSurge != null; + } + + public boolean hasMaxUnavailable() { + return this.maxUnavailable != null; + } + public int hashCode() { return Objects.hash(maxSurge, maxUnavailable); } @@ -112,5 +88,30 @@ public String toString() { return sb.toString(); } - + public A withMaxSurge(IntOrString maxSurge) { + this.maxSurge = maxSurge; + return (A) this; + } + + public A withMaxUnavailable(IntOrString maxUnavailable) { + this.maxUnavailable = maxUnavailable; + return (A) this; + } + + public A withNewMaxSurge(int value) { + return (A) this.withMaxSurge(new IntOrString(value)); + } + + public A withNewMaxSurge(String value) { + return (A) this.withMaxSurge(new IntOrString(value)); + } + + public A withNewMaxUnavailable(int value) { + return (A) this.withMaxUnavailable(new IntOrString(value)); + } + + public A withNewMaxUnavailable(String value) { + return (A) this.withMaxUnavailable(new IntOrString(value)); + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java index 6dba4e1332..03a6b47410 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1RollingUpdateStatefulSetStrategyBuilder extends V1RollingUpdateStatefulSetStrategyFluent implements VisitableBuilder{ + + V1RollingUpdateStatefulSetStrategyFluent fluent; + public V1RollingUpdateStatefulSetStrategyBuilder() { this(new V1RollingUpdateStatefulSetStrategy()); } @@ -11,17 +14,16 @@ public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrat this(fluent, new V1RollingUpdateStatefulSetStrategy()); } - public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategyFluent fluent,V1RollingUpdateStatefulSetStrategy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategy instance) { this.fluent = this; this.copyInstance(instance); } - V1RollingUpdateStatefulSetStrategyFluent fluent; + public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategyFluent fluent,V1RollingUpdateStatefulSetStrategy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RollingUpdateStatefulSetStrategy build() { V1RollingUpdateStatefulSetStrategy buildable = new V1RollingUpdateStatefulSetStrategy(); buildable.setMaxUnavailable(fluent.getMaxUnavailable()); @@ -29,5 +31,4 @@ public V1RollingUpdateStatefulSetStrategy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java index 9dc575e69f..336375fabe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.StringBuilder; import io.kubernetes.client.custom.IntOrString; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1RollingUpdateStatefulSetStrategyFluent> extends BaseFluent{ + + private IntOrString maxUnavailable; + private Integer partition; + public V1RollingUpdateStatefulSetStrategyFluent() { } public V1RollingUpdateStatefulSetStrategyFluent(V1RollingUpdateStatefulSetStrategy instance) { this.copyInstance(instance); } - private IntOrString maxUnavailable; - private Integer partition; - + protected void copyInstance(V1RollingUpdateStatefulSetStrategy instance) { instance = instance != null ? instance : new V1RollingUpdateStatefulSetStrategy(); if (instance != null) { @@ -31,40 +33,6 @@ protected void copyInstance(V1RollingUpdateStatefulSetStrategy instance) { } } - public IntOrString getMaxUnavailable() { - return this.maxUnavailable; - } - - public A withMaxUnavailable(IntOrString maxUnavailable) { - this.maxUnavailable = maxUnavailable; - return (A) this; - } - - public boolean hasMaxUnavailable() { - return this.maxUnavailable != null; - } - - public A withNewMaxUnavailable(int value) { - return (A) this.withMaxUnavailable(new IntOrString(value)); - } - - public A withNewMaxUnavailable(String value) { - return (A) this.withMaxUnavailable(new IntOrString(value)); - } - - public Integer getPartition() { - return this.partition; - } - - public A withPartition(Integer partition) { - this.partition = partition; - return (A) this; - } - - public boolean hasPartition() { - return this.partition != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -85,6 +53,22 @@ public boolean equals(Object o) { return true; } + public IntOrString getMaxUnavailable() { + return this.maxUnavailable; + } + + public Integer getPartition() { + return this.partition; + } + + public boolean hasMaxUnavailable() { + return this.maxUnavailable != null; + } + + public boolean hasPartition() { + return this.partition != null; + } + public int hashCode() { return Objects.hash(maxUnavailable, partition); } @@ -105,5 +89,22 @@ public String toString() { return sb.toString(); } - + public A withMaxUnavailable(IntOrString maxUnavailable) { + this.maxUnavailable = maxUnavailable; + return (A) this; + } + + public A withNewMaxUnavailable(int value) { + return (A) this.withMaxUnavailable(new IntOrString(value)); + } + + public A withNewMaxUnavailable(String value) { + return (A) this.withMaxUnavailable(new IntOrString(value)); + } + + public A withPartition(Integer partition) { + this.partition = partition; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java index ab8ee3ea2b..17f6563884 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1RuleWithOperationsBuilder extends V1RuleWithOperationsFluent implements VisitableBuilder{ + + V1RuleWithOperationsFluent fluent; + public V1RuleWithOperationsBuilder() { this(new V1RuleWithOperations()); } @@ -11,17 +14,16 @@ public V1RuleWithOperationsBuilder(V1RuleWithOperationsFluent fluent) { this(fluent, new V1RuleWithOperations()); } - public V1RuleWithOperationsBuilder(V1RuleWithOperationsFluent fluent,V1RuleWithOperations instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RuleWithOperationsBuilder(V1RuleWithOperations instance) { this.fluent = this; this.copyInstance(instance); } - V1RuleWithOperationsFluent fluent; + public V1RuleWithOperationsBuilder(V1RuleWithOperationsFluent fluent,V1RuleWithOperations instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RuleWithOperations build() { V1RuleWithOperations buildable = new V1RuleWithOperations(); buildable.setApiGroups(fluent.getApiGroups()); @@ -32,5 +34,4 @@ public V1RuleWithOperations build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java index 29f8cd9098..ff55896834 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,148 +16,88 @@ */ @SuppressWarnings("unchecked") public class V1RuleWithOperationsFluent> extends BaseFluent{ - public V1RuleWithOperationsFluent() { - } - - public V1RuleWithOperationsFluent(V1RuleWithOperations instance) { - this.copyInstance(instance); - } + private List apiGroups; private List apiVersions; private List operations; private List resources; private String scope; - - protected void copyInstance(V1RuleWithOperations instance) { - instance = instance != null ? instance : new V1RuleWithOperations(); - if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withApiVersions(instance.getApiVersions()); - this.withOperations(instance.getOperations()); - this.withResources(instance.getResources()); - this.withScope(instance.getScope()); - } + + public V1RuleWithOperationsFluent() { } - public A addToApiGroups(int index,String item) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); - } - this.apiGroups.add(index, item); - return (A) this; + public V1RuleWithOperationsFluent(V1RuleWithOperations instance) { + this.copyInstance(instance); } - - public A setToApiGroups(int index,String item) { + + public A addAllToApiGroups(Collection items) { if (this.apiGroups == null) { this.apiGroups = new ArrayList(); } - this.apiGroups.set(index, item); + for (String item : items) { + this.apiGroups.add(item); + } return (A) this; } - public A addToApiGroups(String... items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + public A addAllToApiVersions(Collection items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); } for (String item : items) { - this.apiGroups.add(item); + this.apiVersions.add(item); } return (A) this; } - public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + public A addAllToOperations(Collection items) { + if (this.operations == null) { + this.operations = new ArrayList(); } for (String item : items) { - this.apiGroups.add(item); + this.operations.add(item); } return (A) this; } - public A removeFromApiGroups(String... items) { - if (this.apiGroups == null) { - return (A) this; + public A addAllToResources(Collection items) { + if (this.resources == null) { + this.resources = new ArrayList(); } for (String item : items) { - this.apiGroups.remove(item); + this.resources.add(item); } return (A) this; } - public A removeAllFromApiGroups(Collection items) { + public A addToApiGroups(String... items) { if (this.apiGroups == null) { - return (A) this; + this.apiGroups = new ArrayList(); } for (String item : items) { - this.apiGroups.remove(item); + this.apiGroups.add(item); } return (A) this; } - public List getApiGroups() { - return this.apiGroups; - } - - public String getApiGroup(int index) { - return this.apiGroups.get(index); - } - - public String getFirstApiGroup() { - return this.apiGroups.get(0); - } - - public String getLastApiGroup() { - return this.apiGroups.get(apiGroups.size() - 1); - } - - public String getMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withApiGroups(List apiGroups) { - if (apiGroups != null) { - this.apiGroups = new ArrayList(); - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } else { - this.apiGroups = null; + public A addToApiGroups(int index,String item) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); } + this.apiGroups.add(index, item); return (A) this; } - public A withApiGroups(String... apiGroups) { - if (this.apiGroups != null) { - this.apiGroups.clear(); - _visitables.remove("apiGroups"); + public A addToApiVersions(String... items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); } - if (apiGroups != null) { - for (String item : apiGroups) { - this.addToApiGroups(item); - } + for (String item : items) { + this.apiVersions.add(item); } return (A) this; } - public boolean hasApiGroups() { - return this.apiGroups != null && !(this.apiGroups.isEmpty()); - } - public A addToApiVersions(int index,String item) { if (this.apiVersions == null) { this.apiVersions = new ArrayList(); @@ -166,72 +106,132 @@ public A addToApiVersions(int index,String item) { return (A) this; } - public A setToApiVersions(int index,String item) { - if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + public A addToOperations(String... items) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + for (String item : items) { + this.operations.add(item); } - this.apiVersions.set(index, item); return (A) this; } - public A addToApiVersions(String... items) { - if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); - } - for (String item : items) { - this.apiVersions.add(item); + public A addToOperations(int index,String item) { + if (this.operations == null) { + this.operations = new ArrayList(); } + this.operations.add(index, item); return (A) this; } - public A addAllToApiVersions(Collection items) { - if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + public A addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); } for (String item : items) { - this.apiVersions.add(item); + this.resources.add(item); } return (A) this; } - public A removeFromApiVersions(String... items) { - if (this.apiVersions == null) { - return (A) this; - } - for (String item : items) { - this.apiVersions.remove(item); + public A addToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); } + this.resources.add(index, item); return (A) this; } - public A removeAllFromApiVersions(Collection items) { - if (this.apiVersions == null) { - return (A) this; + protected void copyInstance(V1RuleWithOperations instance) { + instance = instance != null ? instance : new V1RuleWithOperations(); + if (instance != null) { + this.withApiGroups(instance.getApiGroups()); + this.withApiVersions(instance.getApiVersions()); + this.withOperations(instance.getOperations()); + this.withResources(instance.getResources()); + this.withScope(instance.getScope()); } - for (String item : items) { - this.apiVersions.remove(item); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1RuleWithOperationsFluent that = (V1RuleWithOperationsFluent) o; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(apiVersions, that.apiVersions))) { + return false; + } + if (!(Objects.equals(operations, that.operations))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(scope, that.scope))) { + return false; + } + return true; } - public List getApiVersions() { - return this.apiVersions; + public String getApiGroup(int index) { + return this.apiGroups.get(index); + } + + public List getApiGroups() { + return this.apiGroups; } public String getApiVersion(int index) { return this.apiVersions.get(index); } + public List getApiVersions() { + return this.apiVersions; + } + + public String getFirstApiGroup() { + return this.apiGroups.get(0); + } + public String getFirstApiVersion() { return this.apiVersions.get(0); } + public String getFirstOperation() { + return this.operations.get(0); + } + + public String getFirstResource() { + return this.resources.get(0); + } + + public String getLastApiGroup() { + return this.apiGroups.get(apiGroups.size() - 1); + } + public String getLastApiVersion() { return this.apiVersions.get(apiVersions.size() - 1); } - public String getMatchingApiVersion(Predicate predicate) { - for (String item : apiVersions) { + public String getLastOperation() { + return this.operations.get(operations.size() - 1); + } + + public String getLastResource() { + return this.resources.get(resources.size() - 1); + } + + public String getMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { if (predicate.test(item)) { return item; } @@ -239,123 +239,77 @@ public String getMatchingApiVersion(Predicate predicate) { return null; } - public boolean hasMatchingApiVersion(Predicate predicate) { + public String getMatchingApiVersion(Predicate predicate) { for (String item : apiVersions) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withApiVersions(List apiVersions) { - if (apiVersions != null) { - this.apiVersions = new ArrayList(); - for (String item : apiVersions) { - this.addToApiVersions(item); + public String getMatchingOperation(Predicate predicate) { + for (String item : operations) { + if (predicate.test(item)) { + return item; } - } else { - this.apiVersions = null; - } - return (A) this; - } - - public A withApiVersions(String... apiVersions) { - if (this.apiVersions != null) { - this.apiVersions.clear(); - _visitables.remove("apiVersions"); - } - if (apiVersions != null) { - for (String item : apiVersions) { - this.addToApiVersions(item); } - } - return (A) this; - } - - public boolean hasApiVersions() { - return this.apiVersions != null && !(this.apiVersions.isEmpty()); - } - - public A addToOperations(int index,String item) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - this.operations.add(index, item); - return (A) this; + return null; } - public A setToOperations(int index,String item) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - this.operations.set(index, item); - return (A) this; + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A addToOperations(String... items) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - for (String item : items) { - this.operations.add(item); - } - return (A) this; + public String getOperation(int index) { + return this.operations.get(index); } - public A addAllToOperations(Collection items) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - for (String item : items) { - this.operations.add(item); - } - return (A) this; + public List getOperations() { + return this.operations; } - public A removeFromOperations(String... items) { - if (this.operations == null) { - return (A) this; - } - for (String item : items) { - this.operations.remove(item); - } - return (A) this; + public String getResource(int index) { + return this.resources.get(index); } - public A removeAllFromOperations(Collection items) { - if (this.operations == null) { - return (A) this; - } - for (String item : items) { - this.operations.remove(item); - } - return (A) this; + public List getResources() { + return this.resources; } - public List getOperations() { - return this.operations; + public String getScope() { + return this.scope; } - public String getOperation(int index) { - return this.operations.get(index); + public boolean hasApiGroups() { + return this.apiGroups != null && !(this.apiGroups.isEmpty()); } - public String getFirstOperation() { - return this.operations.get(0); + public boolean hasApiVersions() { + return this.apiVersions != null && !(this.apiVersions.isEmpty()); } - public String getLastOperation() { - return this.operations.get(operations.size() - 1); + public boolean hasMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getMatchingOperation(Predicate predicate) { - for (String item : operations) { + public boolean hasMatchingApiVersion(Predicate predicate) { + for (String item : apiVersions) { if (predicate.test(item)) { - return item; + return true; } } - return null; + return false; } public boolean hasMatchingOperation(Predicate predicate) { @@ -367,77 +321,57 @@ public boolean hasMatchingOperation(Predicate predicate) { return false; } - public A withOperations(List operations) { - if (operations != null) { - this.operations = new ArrayList(); - for (String item : operations) { - this.addToOperations(item); + public boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return true; } - } else { - this.operations = null; - } - return (A) this; - } - - public A withOperations(String... operations) { - if (this.operations != null) { - this.operations.clear(); - _visitables.remove("operations"); - } - if (operations != null) { - for (String item : operations) { - this.addToOperations(item); } - } - return (A) this; + return false; } public boolean hasOperations() { return this.operations != null && !(this.operations.isEmpty()); } - public A addToResources(int index,String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - this.resources.add(index, item); - return (A) this; + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); } - public A setToResources(int index,String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - this.resources.set(index, item); - return (A) this; + public boolean hasScope() { + return this.scope != null; } - public A addToResources(String... items) { - if (this.resources == null) { - this.resources = new ArrayList(); + public int hashCode() { + return Objects.hash(apiGroups, apiVersions, operations, resources, scope); + } + + public A removeAllFromApiGroups(Collection items) { + if (this.apiGroups == null) { + return (A) this; } for (String item : items) { - this.resources.add(item); + this.apiGroups.remove(item); } return (A) this; } - public A addAllToResources(Collection items) { - if (this.resources == null) { - this.resources = new ArrayList(); + public A removeAllFromApiVersions(Collection items) { + if (this.apiVersions == null) { + return (A) this; } for (String item : items) { - this.resources.add(item); + this.apiVersions.remove(item); } return (A) this; } - public A removeFromResources(String... items) { - if (this.resources == null) { + public A removeAllFromOperations(Collection items) { + if (this.operations == null) { return (A) this; } for (String item : items) { - this.resources.remove(item); + this.operations.remove(item); } return (A) this; } @@ -452,113 +386,76 @@ public A removeAllFromResources(Collection items) { return (A) this; } - public List getResources() { - return this.resources; - } - - public String getResource(int index) { - return this.resources.get(index); - } - - public String getFirstResource() { - return this.resources.get(0); - } - - public String getLastResource() { - return this.resources.get(resources.size() - 1); - } - - public String getMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withResources(List resources) { - if (resources != null) { - this.resources = new ArrayList(); - for (String item : resources) { - this.addToResources(item); - } - } else { - this.resources = null; + public A removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); } return (A) this; } - public A withResources(String... resources) { - if (this.resources != null) { - this.resources.clear(); - _visitables.remove("resources"); + public A removeFromApiVersions(String... items) { + if (this.apiVersions == null) { + return (A) this; } - if (resources != null) { - for (String item : resources) { - this.addToResources(item); - } + for (String item : items) { + this.apiVersions.remove(item); } return (A) this; } - public boolean hasResources() { - return this.resources != null && !(this.resources.isEmpty()); + public A removeFromOperations(String... items) { + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.remove(item); + } + return (A) this; } - public String getScope() { - return this.scope; + public A removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } - public A withScope(String scope) { - this.scope = scope; + public A setToApiGroups(int index,String item) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + this.apiGroups.set(index, item); return (A) this; } - public boolean hasScope() { - return this.scope != null; + public A setToApiVersions(int index,String item) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + this.apiVersions.set(index, item); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1RuleWithOperationsFluent that = (V1RuleWithOperationsFluent) o; - if (!(Objects.equals(apiGroups, that.apiGroups))) { - return false; - } - if (!(Objects.equals(apiVersions, that.apiVersions))) { - return false; - } - if (!(Objects.equals(operations, that.operations))) { - return false; - } - if (!(Objects.equals(resources, that.resources))) { - return false; - } - if (!(Objects.equals(scope, that.scope))) { - return false; + public A setToOperations(int index,String item) { + if (this.operations == null) { + this.operations = new ArrayList(); } - return true; + this.operations.set(index, item); + return (A) this; } - public int hashCode() { - return Objects.hash(apiGroups, apiVersions, operations, resources, scope); + public A setToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.set(index, item); + return (A) this; } public String toString() { @@ -592,5 +489,109 @@ public String toString() { return sb.toString(); } - + public A withApiGroups(List apiGroups) { + if (apiGroups != null) { + this.apiGroups = new ArrayList(); + for (String item : apiGroups) { + this.addToApiGroups(item); + } + } else { + this.apiGroups = null; + } + return (A) this; + } + + public A withApiGroups(String... apiGroups) { + if (this.apiGroups != null) { + this.apiGroups.clear(); + _visitables.remove("apiGroups"); + } + if (apiGroups != null) { + for (String item : apiGroups) { + this.addToApiGroups(item); + } + } + return (A) this; + } + + public A withApiVersions(List apiVersions) { + if (apiVersions != null) { + this.apiVersions = new ArrayList(); + for (String item : apiVersions) { + this.addToApiVersions(item); + } + } else { + this.apiVersions = null; + } + return (A) this; + } + + public A withApiVersions(String... apiVersions) { + if (this.apiVersions != null) { + this.apiVersions.clear(); + _visitables.remove("apiVersions"); + } + if (apiVersions != null) { + for (String item : apiVersions) { + this.addToApiVersions(item); + } + } + return (A) this; + } + + public A withOperations(List operations) { + if (operations != null) { + this.operations = new ArrayList(); + for (String item : operations) { + this.addToOperations(item); + } + } else { + this.operations = null; + } + return (A) this; + } + + public A withOperations(String... operations) { + if (this.operations != null) { + this.operations.clear(); + _visitables.remove("operations"); + } + if (operations != null) { + for (String item : operations) { + this.addToOperations(item); + } + } + return (A) this; + } + + public A withResources(List resources) { + if (resources != null) { + this.resources = new ArrayList(); + for (String item : resources) { + this.addToResources(item); + } + } else { + this.resources = null; + } + return (A) this; + } + + public A withResources(String... resources) { + if (this.resources != null) { + this.resources.clear(); + _visitables.remove("resources"); + } + if (resources != null) { + for (String item : resources) { + this.addToResources(item); + } + } + return (A) this; + } + + public A withScope(String scope) { + this.scope = scope; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java index 8e2d5d375e..7787bbb9f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1RuntimeClassBuilder extends V1RuntimeClassFluent implements VisitableBuilder{ + + V1RuntimeClassFluent fluent; + public V1RuntimeClassBuilder() { this(new V1RuntimeClass()); } @@ -11,17 +14,16 @@ public V1RuntimeClassBuilder(V1RuntimeClassFluent fluent) { this(fluent, new V1RuntimeClass()); } - public V1RuntimeClassBuilder(V1RuntimeClassFluent fluent,V1RuntimeClass instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RuntimeClassBuilder(V1RuntimeClass instance) { this.fluent = this; this.copyInstance(instance); } - V1RuntimeClassFluent fluent; + public V1RuntimeClassBuilder(V1RuntimeClassFluent fluent,V1RuntimeClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RuntimeClass build() { V1RuntimeClass buildable = new V1RuntimeClass(); buildable.setApiVersion(fluent.getApiVersion()); @@ -33,5 +35,4 @@ public V1RuntimeClass build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java index c91762c985..714c727c9e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java @@ -1,109 +1,56 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1RuntimeClassFluent> extends BaseFluent{ - public V1RuntimeClassFluent() { - } - - public V1RuntimeClassFluent(V1RuntimeClass instance) { - this.copyInstance(instance); - } + private String apiVersion; private String handler; private String kind; private V1ObjectMetaBuilder metadata; private V1OverheadBuilder overhead; private V1SchedulingBuilder scheduling; - - protected void copyInstance(V1RuntimeClass instance) { - instance = instance != null ? instance : new V1RuntimeClass(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withHandler(instance.getHandler()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withOverhead(instance.getOverhead()); - this.withScheduling(instance.getScheduling()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getHandler() { - return this.handler; - } - - public A withHandler(String handler) { - this.handler = handler; - return (A) this; - } - - public boolean hasHandler() { - return this.handler != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1RuntimeClassFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1RuntimeClassFluent(V1RuntimeClass instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1Overhead buildOverhead() { + return this.overhead != null ? this.overhead.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1Scheduling buildScheduling() { + return this.scheduling != null ? this.scheduling.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1RuntimeClass instance) { + instance = instance != null ? instance : new V1RuntimeClass(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withHandler(instance.getHandler()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withOverhead(instance.getOverhead()); + this.withScheduling(instance.getScheduling()); + } } public MetadataNested editMetadata() { @@ -118,38 +65,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1Overhead buildOverhead() { - return this.overhead != null ? this.overhead.build() : null; - } - - public A withOverhead(V1Overhead overhead) { - this._visitables.remove("overhead"); - if (overhead != null) { - this.overhead = new V1OverheadBuilder(overhead); - this._visitables.get("overhead").add(this.overhead); - } else { - this.overhead = null; - this._visitables.get("overhead").remove(this.overhead); - } - return (A) this; - } - - public boolean hasOverhead() { - return this.overhead != null; - } - - public OverheadNested withNewOverhead() { - return new OverheadNested(null); - } - - public OverheadNested withNewOverheadLike(V1Overhead item) { - return new OverheadNested(item); - } - - public OverheadNested editOverhead() { - return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(null)); - } - public OverheadNested editOrNewOverhead() { return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(new V1OverheadBuilder().build())); } @@ -158,46 +73,22 @@ public OverheadNested editOrNewOverheadLike(V1Overhead item) { return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(item)); } - public V1Scheduling buildScheduling() { - return this.scheduling != null ? this.scheduling.build() : null; - } - - public A withScheduling(V1Scheduling scheduling) { - this._visitables.remove("scheduling"); - if (scheduling != null) { - this.scheduling = new V1SchedulingBuilder(scheduling); - this._visitables.get("scheduling").add(this.scheduling); - } else { - this.scheduling = null; - this._visitables.get("scheduling").remove(this.scheduling); - } - return (A) this; - } - - public boolean hasScheduling() { - return this.scheduling != null; + public SchedulingNested editOrNewScheduling() { + return this.withNewSchedulingLike(Optional.ofNullable(this.buildScheduling()).orElse(new V1SchedulingBuilder().build())); } - public SchedulingNested withNewScheduling() { - return new SchedulingNested(null); + public SchedulingNested editOrNewSchedulingLike(V1Scheduling item) { + return this.withNewSchedulingLike(Optional.ofNullable(this.buildScheduling()).orElse(item)); } - public SchedulingNested withNewSchedulingLike(V1Scheduling item) { - return new SchedulingNested(item); + public OverheadNested editOverhead() { + return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(null)); } public SchedulingNested editScheduling() { return this.withNewSchedulingLike(Optional.ofNullable(this.buildScheduling()).orElse(null)); } - public SchedulingNested editOrNewScheduling() { - return this.withNewSchedulingLike(Optional.ofNullable(this.buildScheduling()).orElse(new V1SchedulingBuilder().build())); - } - - public SchedulingNested editOrNewSchedulingLike(V1Scheduling item) { - return this.withNewSchedulingLike(Optional.ofNullable(this.buildScheduling()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -230,6 +121,42 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getHandler() { + return this.handler; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasHandler() { + return this.handler != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasOverhead() { + return this.overhead != null; + } + + public boolean hasScheduling() { + return this.scheduling != null; + } + public int hashCode() { return Objects.hash(apiVersion, handler, kind, metadata, overhead, scheduling); } @@ -269,12 +196,89 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withHandler(String handler) { + this.handler = handler; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public OverheadNested withNewOverhead() { + return new OverheadNested(null); + } + + public OverheadNested withNewOverheadLike(V1Overhead item) { + return new OverheadNested(item); + } + + public SchedulingNested withNewScheduling() { + return new SchedulingNested(null); + } + + public SchedulingNested withNewSchedulingLike(V1Scheduling item) { + return new SchedulingNested(item); + } + + public A withOverhead(V1Overhead overhead) { + this._visitables.remove("overhead"); + if (overhead != null) { + this.overhead = new V1OverheadBuilder(overhead); + this._visitables.get("overhead").add(this.overhead); + } else { + this.overhead = null; + this._visitables.get("overhead").remove(this.overhead); + } + return (A) this; + } + + public A withScheduling(V1Scheduling scheduling) { + this._visitables.remove("scheduling"); + if (scheduling != null) { + this.scheduling = new V1SchedulingBuilder(scheduling); + this._visitables.get("scheduling").add(this.scheduling); + } else { + this.scheduling = null; + this._visitables.get("scheduling").remove(this.scheduling); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1RuntimeClassFluent.this.withMetadata(builder.build()); } @@ -283,14 +287,15 @@ public N endMetadata() { return and(); } - } public class OverheadNested extends V1OverheadFluent> implements Nested{ + + V1OverheadBuilder builder; + OverheadNested(V1Overhead item) { this.builder = new V1OverheadBuilder(this, item); } - V1OverheadBuilder builder; - + public N and() { return (N) V1RuntimeClassFluent.this.withOverhead(builder.build()); } @@ -299,14 +304,15 @@ public N endOverhead() { return and(); } - } public class SchedulingNested extends V1SchedulingFluent> implements Nested{ + + V1SchedulingBuilder builder; + SchedulingNested(V1Scheduling item) { this.builder = new V1SchedulingBuilder(this, item); } - V1SchedulingBuilder builder; - + public N and() { return (N) V1RuntimeClassFluent.this.withScheduling(builder.build()); } @@ -315,7 +321,5 @@ public N endScheduling() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java index ee6e419287..ae5492eae7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1RuntimeClassListBuilder extends V1RuntimeClassListFluent implements VisitableBuilder{ + + V1RuntimeClassListFluent fluent; + public V1RuntimeClassListBuilder() { this(new V1RuntimeClassList()); } @@ -11,17 +14,16 @@ public V1RuntimeClassListBuilder(V1RuntimeClassListFluent fluent) { this(fluent, new V1RuntimeClassList()); } - public V1RuntimeClassListBuilder(V1RuntimeClassListFluent fluent,V1RuntimeClassList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RuntimeClassListBuilder(V1RuntimeClassList instance) { this.fluent = this; this.copyInstance(instance); } - V1RuntimeClassListFluent fluent; + public V1RuntimeClassListBuilder(V1RuntimeClassListFluent fluent,V1RuntimeClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RuntimeClassList build() { V1RuntimeClassList buildable = new V1RuntimeClassList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1RuntimeClassList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java index 0b0f6ee02f..2f9d7dc401 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1RuntimeClassListFluent> extends BaseFluent{ - public V1RuntimeClassListFluent() { - } - - public V1RuntimeClassListFluent(V1RuntimeClassList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1RuntimeClassList instance) { - instance = instance != null ? instance : new V1RuntimeClassList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1RuntimeClassListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1RuntimeClassListFluent(V1RuntimeClassList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1RuntimeClass item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1RuntimeClass item : items) { + V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1RuntimeClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1RuntimeClass item) { + return new ItemsNested(-1, item); } public A addToItems(V1RuntimeClass... items) { @@ -96,68 +65,31 @@ public A addToItems(V1RuntimeClass... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1RuntimeClass item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1RuntimeClass item : items) { - V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); + V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1RuntimeClass... items) { - if (this.items == null) { - return (A) this; - } - for (V1RuntimeClass item : items) { - V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1RuntimeClass item : items) { - V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1RuntimeClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1RuntimeClass buildFirstItem() { + return this.items.get(0).build(); } public V1RuntimeClass buildItem(int index) { return this.items.get(index).build(); } - public V1RuntimeClass buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1RuntimeClass buildLastItem() { @@ -173,73 +105,34 @@ public V1RuntimeClass buildMatchingItem(Predicate predica return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1RuntimeClassBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1RuntimeClass item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1RuntimeClassList instance) { + instance = instance != null ? instance : new V1RuntimeClassList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1RuntimeClass... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1RuntimeClass item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1RuntimeClass item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1RuntimeClass item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicat return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1RuntimeClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1RuntimeClass item : items) { + V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1RuntimeClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1RuntimeClass item : items) { + V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1RuntimeClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1RuntimeClass item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1RuntimeClass item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1RuntimeClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1RuntimeClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1RuntimeClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1RuntimeClassFluent> implements Nested{ + + V1RuntimeClassBuilder builder; + int index; + ItemsNested(int index,V1RuntimeClass item) { this.index = index; this.builder = new V1RuntimeClassBuilder(this, item); } - V1RuntimeClassBuilder builder; - int index; - + public N and() { return (N) V1RuntimeClassListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1RuntimeClassListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java index b24d1fb4e6..6536b6ebce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SELinuxOptionsBuilder extends V1SELinuxOptionsFluent implements VisitableBuilder{ + + V1SELinuxOptionsFluent fluent; + public V1SELinuxOptionsBuilder() { this(new V1SELinuxOptions()); } @@ -11,17 +14,16 @@ public V1SELinuxOptionsBuilder(V1SELinuxOptionsFluent fluent) { this(fluent, new V1SELinuxOptions()); } - public V1SELinuxOptionsBuilder(V1SELinuxOptionsFluent fluent,V1SELinuxOptions instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SELinuxOptionsBuilder(V1SELinuxOptions instance) { this.fluent = this; this.copyInstance(instance); } - V1SELinuxOptionsFluent fluent; + public V1SELinuxOptionsBuilder(V1SELinuxOptionsFluent fluent,V1SELinuxOptions instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SELinuxOptions build() { V1SELinuxOptions buildable = new V1SELinuxOptions(); buildable.setLevel(fluent.getLevel()); @@ -31,5 +33,4 @@ public V1SELinuxOptions build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java index 7cd5f1af77..8a74f60b7d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1SELinuxOptionsFluent> extends BaseFluent{ + + private String level; + private String role; + private String type; + private String user; + public V1SELinuxOptionsFluent() { } public V1SELinuxOptionsFluent(V1SELinuxOptions instance) { this.copyInstance(instance); } - private String level; - private String role; - private String type; - private String user; - + protected void copyInstance(V1SELinuxOptions instance) { instance = instance != null ? instance : new V1SELinuxOptions(); if (instance != null) { @@ -33,58 +35,6 @@ protected void copyInstance(V1SELinuxOptions instance) { } } - public String getLevel() { - return this.level; - } - - public A withLevel(String level) { - this.level = level; - return (A) this; - } - - public boolean hasLevel() { - return this.level != null; - } - - public String getRole() { - return this.role; - } - - public A withRole(String role) { - this.role = role; - return (A) this; - } - - public boolean hasRole() { - return this.role != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - - public String getUser() { - return this.user; - } - - public A withUser(String user) { - this.user = user; - return (A) this; - } - - public boolean hasUser() { - return this.user != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -111,6 +61,38 @@ public boolean equals(Object o) { return true; } + public String getLevel() { + return this.level; + } + + public String getRole() { + return this.role; + } + + public String getType() { + return this.type; + } + + public String getUser() { + return this.user; + } + + public boolean hasLevel() { + return this.level != null; + } + + public boolean hasRole() { + return this.role != null; + } + + public boolean hasType() { + return this.type != null; + } + + public boolean hasUser() { + return this.user != null; + } + public int hashCode() { return Objects.hash(level, role, type, user); } @@ -141,5 +123,24 @@ public String toString() { return sb.toString(); } - + public A withLevel(String level) { + this.level = level; + return (A) this; + } + + public A withRole(String role) { + this.role = role; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + + public A withUser(String user) { + this.user = user; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java index 8a672ef924..1de0f4dd65 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ScaleBuilder extends V1ScaleFluent implements VisitableBuilder{ + + V1ScaleFluent fluent; + public V1ScaleBuilder() { this(new V1Scale()); } @@ -11,17 +14,16 @@ public V1ScaleBuilder(V1ScaleFluent fluent) { this(fluent, new V1Scale()); } - public V1ScaleBuilder(V1ScaleFluent fluent,V1Scale instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ScaleBuilder(V1Scale instance) { this.fluent = this; this.copyInstance(instance); } - V1ScaleFluent fluent; + public V1ScaleBuilder(V1ScaleFluent fluent,V1Scale instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Scale build() { V1Scale buildable = new V1Scale(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1Scale build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java index cb70716f68..288b0702a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ScaleFluent> extends BaseFluent{ - public V1ScaleFluent() { - } - - public V1ScaleFluent(V1Scale instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1ScaleSpecBuilder spec; private V1ScaleStatusBuilder status; - - protected void copyInstance(V1Scale instance) { - instance = instance != null ? instance : new V1Scale(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1ScaleFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1ScaleFluent(V1Scale instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1ScaleSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1ScaleStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1Scale instance) { + instance = instance != null ? instance : new V1Scale(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ScaleSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1ScaleSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1ScaleSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1ScaleSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ScaleSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1ScaleSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1ScaleStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1ScaleStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1ScaleStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ScaleStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1ScaleStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1ScaleStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ScaleStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1ScaleStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ScaleSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1ScaleStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1ScaleSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ScaleSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1ScaleStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1ScaleStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ScaleFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ScaleSpecFluent> implements Nested{ + + V1ScaleSpecBuilder builder; + SpecNested(V1ScaleSpec item) { this.builder = new V1ScaleSpecBuilder(this, item); } - V1ScaleSpecBuilder builder; - + public N and() { return (N) V1ScaleFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1ScaleStatusFluent> implements Nested{ + + V1ScaleStatusBuilder builder; + StatusNested(V1ScaleStatus item) { this.builder = new V1ScaleStatusBuilder(this, item); } - V1ScaleStatusBuilder builder; - + public N and() { return (N) V1ScaleFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java index 32f5350d55..d76203a04f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ScaleIOPersistentVolumeSourceBuilder extends V1ScaleIOPersistentVolumeSourceFluent implements VisitableBuilder{ + + V1ScaleIOPersistentVolumeSourceFluent fluent; + public V1ScaleIOPersistentVolumeSourceBuilder() { this(new V1ScaleIOPersistentVolumeSource()); } @@ -11,17 +14,16 @@ public V1ScaleIOPersistentVolumeSourceBuilder(V1ScaleIOPersistentVolumeSourceFlu this(fluent, new V1ScaleIOPersistentVolumeSource()); } - public V1ScaleIOPersistentVolumeSourceBuilder(V1ScaleIOPersistentVolumeSourceFluent fluent,V1ScaleIOPersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ScaleIOPersistentVolumeSourceBuilder(V1ScaleIOPersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1ScaleIOPersistentVolumeSourceFluent fluent; + public V1ScaleIOPersistentVolumeSourceBuilder(V1ScaleIOPersistentVolumeSourceFluent fluent,V1ScaleIOPersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ScaleIOPersistentVolumeSource build() { V1ScaleIOPersistentVolumeSource buildable = new V1ScaleIOPersistentVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -37,5 +39,4 @@ public V1ScaleIOPersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java index a991eab44a..324a808fb4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java @@ -1,26 +1,21 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; -import java.lang.Boolean; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ScaleIOPersistentVolumeSourceFluent> extends BaseFluent{ - public V1ScaleIOPersistentVolumeSourceFluent() { - } - - public V1ScaleIOPersistentVolumeSourceFluent(V1ScaleIOPersistentVolumeSource instance) { - this.copyInstance(instance); - } + private String fsType; private String gateway; private String protectionDomain; @@ -31,6 +26,17 @@ public V1ScaleIOPersistentVolumeSourceFluent(V1ScaleIOPersistentVolumeSource ins private String storagePool; private String system; private String volumeName; + + public V1ScaleIOPersistentVolumeSourceFluent() { + } + + public V1ScaleIOPersistentVolumeSourceFluent(V1ScaleIOPersistentVolumeSource instance) { + this.copyInstance(instance); + } + + public V1SecretReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; + } protected void copyInstance(V1ScaleIOPersistentVolumeSource instance) { instance = instance != null ? instance : new V1ScaleIOPersistentVolumeSource(); @@ -48,207 +54,138 @@ protected void copyInstance(V1ScaleIOPersistentVolumeSource instance) { } } - public String getFsType() { - return this.fsType; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public boolean hasFsType() { - return this.fsType != null; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } - public String getGateway() { - return this.gateway; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ScaleIOPersistentVolumeSourceFluent that = (V1ScaleIOPersistentVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(gateway, that.gateway))) { + return false; + } + if (!(Objects.equals(protectionDomain, that.protectionDomain))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(sslEnabled, that.sslEnabled))) { + return false; + } + if (!(Objects.equals(storageMode, that.storageMode))) { + return false; + } + if (!(Objects.equals(storagePool, that.storagePool))) { + return false; + } + if (!(Objects.equals(system, that.system))) { + return false; + } + if (!(Objects.equals(volumeName, that.volumeName))) { + return false; + } + return true; } - public A withGateway(String gateway) { - this.gateway = gateway; - return (A) this; + public String getFsType() { + return this.fsType; } - public boolean hasGateway() { - return this.gateway != null; + public String getGateway() { + return this.gateway; } public String getProtectionDomain() { return this.protectionDomain; } - public A withProtectionDomain(String protectionDomain) { - this.protectionDomain = protectionDomain; - return (A) this; - } - - public boolean hasProtectionDomain() { - return this.protectionDomain != null; - } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - - public V1SecretReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + public Boolean getSslEnabled() { + return this.sslEnabled; } - public A withSecretRef(V1SecretReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1SecretReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + public String getStorageMode() { + return this.storageMode; } - public boolean hasSecretRef() { - return this.secretRef != null; + public String getStoragePool() { + return this.storagePool; } - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + public String getSystem() { + return this.system; } - public SecretRefNested withNewSecretRefLike(V1SecretReference item) { - return new SecretRefNested(item); + public String getVolumeName() { + return this.volumeName; } - public SecretRefNested editSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); + public boolean hasFsType() { + return this.fsType != null; } - public SecretRefNested editOrNewSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + public boolean hasGateway() { + return this.gateway != null; } - public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); + public boolean hasProtectionDomain() { + return this.protectionDomain != null; } - public Boolean getSslEnabled() { - return this.sslEnabled; + public boolean hasReadOnly() { + return this.readOnly != null; } - public A withSslEnabled(Boolean sslEnabled) { - this.sslEnabled = sslEnabled; - return (A) this; + public boolean hasSecretRef() { + return this.secretRef != null; } public boolean hasSslEnabled() { return this.sslEnabled != null; } - public String getStorageMode() { - return this.storageMode; - } - - public A withStorageMode(String storageMode) { - this.storageMode = storageMode; - return (A) this; - } - public boolean hasStorageMode() { return this.storageMode != null; } - public String getStoragePool() { - return this.storagePool; - } - - public A withStoragePool(String storagePool) { - this.storagePool = storagePool; - return (A) this; - } - public boolean hasStoragePool() { return this.storagePool != null; } - public String getSystem() { - return this.system; - } - - public A withSystem(String system) { - this.system = system; - return (A) this; - } - public boolean hasSystem() { return this.system != null; } - public String getVolumeName() { - return this.volumeName; - } - - public A withVolumeName(String volumeName) { - this.volumeName = volumeName; - return (A) this; - } - public boolean hasVolumeName() { return this.volumeName != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ScaleIOPersistentVolumeSourceFluent that = (V1ScaleIOPersistentVolumeSourceFluent) o; - if (!(Objects.equals(fsType, that.fsType))) { - return false; - } - if (!(Objects.equals(gateway, that.gateway))) { - return false; - } - if (!(Objects.equals(protectionDomain, that.protectionDomain))) { - return false; - } - if (!(Objects.equals(readOnly, that.readOnly))) { - return false; - } - if (!(Objects.equals(secretRef, that.secretRef))) { - return false; - } - if (!(Objects.equals(sslEnabled, that.sslEnabled))) { - return false; - } - if (!(Objects.equals(storageMode, that.storageMode))) { - return false; - } - if (!(Objects.equals(storagePool, that.storagePool))) { - return false; - } - if (!(Objects.equals(system, that.system))) { - return false; - } - if (!(Objects.equals(volumeName, that.volumeName))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(fsType, gateway, protectionDomain, readOnly, secretRef, sslEnabled, storageMode, storagePool, system, volumeName); } @@ -309,19 +246,86 @@ public String toString() { return sb.toString(); } + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withGateway(String gateway) { + this.gateway = gateway; + return (A) this; + } + + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); + } + + public SecretRefNested withNewSecretRefLike(V1SecretReference item) { + return new SecretRefNested(item); + } + + public A withProtectionDomain(String protectionDomain) { + this.protectionDomain = protectionDomain; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretRef(V1SecretReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1SecretReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; + } + public A withSslEnabled() { return withSslEnabled(true); } + + public A withSslEnabled(Boolean sslEnabled) { + this.sslEnabled = sslEnabled; + return (A) this; + } + + public A withStorageMode(String storageMode) { + this.storageMode = storageMode; + return (A) this; + } + + public A withStoragePool(String storagePool) { + this.storagePool = storagePool; + return (A) this; + } + + public A withSystem(String system) { + this.system = system; + return (A) this; + } + + public A withVolumeName(String volumeName) { + this.volumeName = volumeName; + return (A) this; + } public class SecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + SecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1ScaleIOPersistentVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -330,7 +334,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java index eee626a5ce..d77c026ae0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ScaleIOVolumeSourceBuilder extends V1ScaleIOVolumeSourceFluent implements VisitableBuilder{ + + V1ScaleIOVolumeSourceFluent fluent; + public V1ScaleIOVolumeSourceBuilder() { this(new V1ScaleIOVolumeSource()); } @@ -11,17 +14,16 @@ public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSourceFluent fluent) { this(fluent, new V1ScaleIOVolumeSource()); } - public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSourceFluent fluent,V1ScaleIOVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1ScaleIOVolumeSourceFluent fluent; + public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSourceFluent fluent,V1ScaleIOVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ScaleIOVolumeSource build() { V1ScaleIOVolumeSource buildable = new V1ScaleIOVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -37,5 +39,4 @@ public V1ScaleIOVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java index 2435ba2fdb..fe69008a3a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java @@ -1,26 +1,21 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; -import java.lang.Boolean; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ScaleIOVolumeSourceFluent> extends BaseFluent{ - public V1ScaleIOVolumeSourceFluent() { - } - - public V1ScaleIOVolumeSourceFluent(V1ScaleIOVolumeSource instance) { - this.copyInstance(instance); - } + private String fsType; private String gateway; private String protectionDomain; @@ -31,6 +26,17 @@ public V1ScaleIOVolumeSourceFluent(V1ScaleIOVolumeSource instance) { private String storagePool; private String system; private String volumeName; + + public V1ScaleIOVolumeSourceFluent() { + } + + public V1ScaleIOVolumeSourceFluent(V1ScaleIOVolumeSource instance) { + this.copyInstance(instance); + } + + public V1LocalObjectReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; + } protected void copyInstance(V1ScaleIOVolumeSource instance) { instance = instance != null ? instance : new V1ScaleIOVolumeSource(); @@ -48,207 +54,138 @@ protected void copyInstance(V1ScaleIOVolumeSource instance) { } } - public String getFsType() { - return this.fsType; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public boolean hasFsType() { - return this.fsType != null; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } - public String getGateway() { - return this.gateway; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ScaleIOVolumeSourceFluent that = (V1ScaleIOVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(gateway, that.gateway))) { + return false; + } + if (!(Objects.equals(protectionDomain, that.protectionDomain))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(sslEnabled, that.sslEnabled))) { + return false; + } + if (!(Objects.equals(storageMode, that.storageMode))) { + return false; + } + if (!(Objects.equals(storagePool, that.storagePool))) { + return false; + } + if (!(Objects.equals(system, that.system))) { + return false; + } + if (!(Objects.equals(volumeName, that.volumeName))) { + return false; + } + return true; } - public A withGateway(String gateway) { - this.gateway = gateway; - return (A) this; + public String getFsType() { + return this.fsType; } - public boolean hasGateway() { - return this.gateway != null; + public String getGateway() { + return this.gateway; } public String getProtectionDomain() { return this.protectionDomain; } - public A withProtectionDomain(String protectionDomain) { - this.protectionDomain = protectionDomain; - return (A) this; - } - - public boolean hasProtectionDomain() { - return this.protectionDomain != null; - } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + public Boolean getSslEnabled() { + return this.sslEnabled; } - public A withSecretRef(V1LocalObjectReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + public String getStorageMode() { + return this.storageMode; } - public boolean hasSecretRef() { - return this.secretRef != null; + public String getStoragePool() { + return this.storagePool; } - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + public String getSystem() { + return this.system; } - public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); + public String getVolumeName() { + return this.volumeName; } - public SecretRefNested editSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); + public boolean hasFsType() { + return this.fsType != null; } - public SecretRefNested editOrNewSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); + public boolean hasGateway() { + return this.gateway != null; } - public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); + public boolean hasProtectionDomain() { + return this.protectionDomain != null; } - public Boolean getSslEnabled() { - return this.sslEnabled; + public boolean hasReadOnly() { + return this.readOnly != null; } - public A withSslEnabled(Boolean sslEnabled) { - this.sslEnabled = sslEnabled; - return (A) this; + public boolean hasSecretRef() { + return this.secretRef != null; } public boolean hasSslEnabled() { return this.sslEnabled != null; } - public String getStorageMode() { - return this.storageMode; - } - - public A withStorageMode(String storageMode) { - this.storageMode = storageMode; - return (A) this; - } - public boolean hasStorageMode() { return this.storageMode != null; } - public String getStoragePool() { - return this.storagePool; - } - - public A withStoragePool(String storagePool) { - this.storagePool = storagePool; - return (A) this; - } - public boolean hasStoragePool() { return this.storagePool != null; } - public String getSystem() { - return this.system; - } - - public A withSystem(String system) { - this.system = system; - return (A) this; - } - public boolean hasSystem() { return this.system != null; } - public String getVolumeName() { - return this.volumeName; - } - - public A withVolumeName(String volumeName) { - this.volumeName = volumeName; - return (A) this; - } - public boolean hasVolumeName() { return this.volumeName != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ScaleIOVolumeSourceFluent that = (V1ScaleIOVolumeSourceFluent) o; - if (!(Objects.equals(fsType, that.fsType))) { - return false; - } - if (!(Objects.equals(gateway, that.gateway))) { - return false; - } - if (!(Objects.equals(protectionDomain, that.protectionDomain))) { - return false; - } - if (!(Objects.equals(readOnly, that.readOnly))) { - return false; - } - if (!(Objects.equals(secretRef, that.secretRef))) { - return false; - } - if (!(Objects.equals(sslEnabled, that.sslEnabled))) { - return false; - } - if (!(Objects.equals(storageMode, that.storageMode))) { - return false; - } - if (!(Objects.equals(storagePool, that.storagePool))) { - return false; - } - if (!(Objects.equals(system, that.system))) { - return false; - } - if (!(Objects.equals(volumeName, that.volumeName))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(fsType, gateway, protectionDomain, readOnly, secretRef, sslEnabled, storageMode, storagePool, system, volumeName); } @@ -309,19 +246,86 @@ public String toString() { return sb.toString(); } + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withGateway(String gateway) { + this.gateway = gateway; + return (A) this; + } + + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); + } + + public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { + return new SecretRefNested(item); + } + + public A withProtectionDomain(String protectionDomain) { + this.protectionDomain = protectionDomain; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretRef(V1LocalObjectReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; + } + public A withSslEnabled() { return withSslEnabled(true); } + + public A withSslEnabled(Boolean sslEnabled) { + this.sslEnabled = sslEnabled; + return (A) this; + } + + public A withStorageMode(String storageMode) { + this.storageMode = storageMode; + return (A) this; + } + + public A withStoragePool(String storagePool) { + this.storagePool = storagePool; + return (A) this; + } + + public A withSystem(String system) { + this.system = system; + return (A) this; + } + + public A withVolumeName(String volumeName) { + this.volumeName = volumeName; + return (A) this; + } public class SecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ + + V1LocalObjectReferenceBuilder builder; + SecretRefNested(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - + public N and() { return (N) V1ScaleIOVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -330,7 +334,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java index 9aded6a56b..91b9af2f66 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ScaleSpecBuilder extends V1ScaleSpecFluent implements VisitableBuilder{ + + V1ScaleSpecFluent fluent; + public V1ScaleSpecBuilder() { this(new V1ScaleSpec()); } @@ -11,22 +14,20 @@ public V1ScaleSpecBuilder(V1ScaleSpecFluent fluent) { this(fluent, new V1ScaleSpec()); } - public V1ScaleSpecBuilder(V1ScaleSpecFluent fluent,V1ScaleSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ScaleSpecBuilder(V1ScaleSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1ScaleSpecFluent fluent; + public V1ScaleSpecBuilder(V1ScaleSpecFluent fluent,V1ScaleSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ScaleSpec build() { V1ScaleSpec buildable = new V1ScaleSpec(); buildable.setReplicas(fluent.getReplicas()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java index bc486daa90..6441d67287 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1ScaleSpecFluent> extends BaseFluent{ + + private Integer replicas; + public V1ScaleSpecFluent() { } public V1ScaleSpecFluent(V1ScaleSpec instance) { this.copyInstance(instance); } - private Integer replicas; - + protected void copyInstance(V1ScaleSpec instance) { instance = instance != null ? instance : new V1ScaleSpec(); if (instance != null) { @@ -28,19 +30,6 @@ protected void copyInstance(V1ScaleSpec instance) { } } - public Integer getReplicas() { - return this.replicas; - } - - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; - } - - public boolean hasReplicas() { - return this.replicas != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -58,6 +47,14 @@ public boolean equals(Object o) { return true; } + public Integer getReplicas() { + return this.replicas; + } + + public boolean hasReplicas() { + return this.replicas != null; + } + public int hashCode() { return Objects.hash(replicas); } @@ -73,5 +70,9 @@ public String toString() { return sb.toString(); } - + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java index 09d6d8ff97..8356b194e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ScaleStatusBuilder extends V1ScaleStatusFluent implements VisitableBuilder{ + + V1ScaleStatusFluent fluent; + public V1ScaleStatusBuilder() { this(new V1ScaleStatus()); } @@ -11,17 +14,16 @@ public V1ScaleStatusBuilder(V1ScaleStatusFluent fluent) { this(fluent, new V1ScaleStatus()); } - public V1ScaleStatusBuilder(V1ScaleStatusFluent fluent,V1ScaleStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ScaleStatusBuilder(V1ScaleStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ScaleStatusFluent fluent; + public V1ScaleStatusBuilder(V1ScaleStatusFluent fluent,V1ScaleStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ScaleStatus build() { V1ScaleStatus buildable = new V1ScaleStatus(); buildable.setReplicas(fluent.getReplicas()); @@ -29,5 +31,4 @@ public V1ScaleStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java index 455d8b17c6..ff8dbbde84 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1ScaleStatusFluent> extends BaseFluent{ + + private Integer replicas; + private String selector; + public V1ScaleStatusFluent() { } public V1ScaleStatusFluent(V1ScaleStatus instance) { this.copyInstance(instance); } - private Integer replicas; - private String selector; - + protected void copyInstance(V1ScaleStatus instance) { instance = instance != null ? instance : new V1ScaleStatus(); if (instance != null) { @@ -30,32 +32,6 @@ protected void copyInstance(V1ScaleStatus instance) { } } - public Integer getReplicas() { - return this.replicas; - } - - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; - } - - public boolean hasReplicas() { - return this.replicas != null; - } - - public String getSelector() { - return this.selector; - } - - public A withSelector(String selector) { - this.selector = selector; - return (A) this; - } - - public boolean hasSelector() { - return this.selector != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -76,6 +52,22 @@ public boolean equals(Object o) { return true; } + public Integer getReplicas() { + return this.replicas; + } + + public String getSelector() { + return this.selector; + } + + public boolean hasReplicas() { + return this.replicas != null; + } + + public boolean hasSelector() { + return this.selector != null; + } + public int hashCode() { return Objects.hash(replicas, selector); } @@ -96,5 +88,14 @@ public String toString() { return sb.toString(); } - + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; + } + + public A withSelector(String selector) { + this.selector = selector; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java index ec2bede429..f6afe07145 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SchedulingBuilder extends V1SchedulingFluent implements VisitableBuilder{ + + V1SchedulingFluent fluent; + public V1SchedulingBuilder() { this(new V1Scheduling()); } @@ -11,17 +14,16 @@ public V1SchedulingBuilder(V1SchedulingFluent fluent) { this(fluent, new V1Scheduling()); } - public V1SchedulingBuilder(V1SchedulingFluent fluent,V1Scheduling instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SchedulingBuilder(V1Scheduling instance) { this.fluent = this; this.copyInstance(instance); } - V1SchedulingFluent fluent; + public V1SchedulingBuilder(V1SchedulingFluent fluent,V1Scheduling instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Scheduling build() { V1Scheduling buildable = new V1Scheduling(); buildable.setNodeSelector(fluent.getNodeSelector()); @@ -29,5 +31,4 @@ public V1Scheduling build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java index 72d6cec288..565a79c509 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java @@ -1,53 +1,57 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1SchedulingFluent> extends BaseFluent{ + + private Map nodeSelector; + private ArrayList tolerations; + public V1SchedulingFluent() { } public V1SchedulingFluent(V1Scheduling instance) { this.copyInstance(instance); } - private Map nodeSelector; - private ArrayList tolerations; - - protected void copyInstance(V1Scheduling instance) { - instance = instance != null ? instance : new V1Scheduling(); - if (instance != null) { - this.withNodeSelector(instance.getNodeSelector()); - this.withTolerations(instance.getTolerations()); - } - } - - public A addToNodeSelector(String key,String value) { - if (this.nodeSelector == null && key != null && value != null) { - this.nodeSelector = new LinkedHashMap(); + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - if (key != null && value != null) { - this.nodeSelector.put(key, value); + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } return (A) this; } + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1Toleration item) { + return new TolerationsNested(-1, item); + } + public A addToNodeSelector(Map map) { if (this.nodeSelector == null && map != null) { this.nodeSelector = new LinkedHashMap(); @@ -58,63 +62,29 @@ public A addToNodeSelector(Map map) { return (A) this; } - public A removeFromNodeSelector(String key) { - if (this.nodeSelector == null) { - return (A) this; - } - if (key != null && this.nodeSelector != null) { - this.nodeSelector.remove(key); - } - return (A) this; - } - - public A removeFromNodeSelector(Map map) { - if (this.nodeSelector == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.nodeSelector != null) { - this.nodeSelector.remove(key); - } - } + public A addToNodeSelector(String key,String value) { + if (this.nodeSelector == null && key != null && value != null) { + this.nodeSelector = new LinkedHashMap(); } - return (A) this; - } - - public Map getNodeSelector() { - return this.nodeSelector; - } - - public A withNodeSelector(Map nodeSelector) { - if (nodeSelector == null) { - this.nodeSelector = null; - } else { - this.nodeSelector = new LinkedHashMap(nodeSelector); + if (key != null && value != null) { + this.nodeSelector.put(key, value); } return (A) this; } - public boolean hasNodeSelector() { - return this.nodeSelector != null; - } - - public A addToTolerations(int index,V1Toleration item) { + public A addToTolerations(V1Toleration... items) { if (this.tolerations == null) { this.tolerations = new ArrayList(); } - V1TolerationBuilder builder = new V1TolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + this.tolerations.add(builder); } return (A) this; } - public A setToTolerations(int index,V1Toleration item) { + public A addToTolerations(int index,V1Toleration item) { if (this.tolerations == null) { this.tolerations = new ArrayList(); } @@ -124,83 +94,11 @@ public A setToTolerations(int index,V1Toleration item) { tolerations.add(builder); } else { _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); - } - return (A) this; - } - - public A addToTolerations(V1Toleration... items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - for (V1Toleration item : items) { - V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); - } - return (A) this; - } - - public A addAllToTolerations(Collection items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - for (V1Toleration item : items) { - V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); - } - return (A) this; - } - - public A removeFromTolerations(V1Toleration... items) { - if (this.tolerations == null) { - return (A) this; - } - for (V1Toleration item : items) { - V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - this.tolerations.remove(builder); - } - return (A) this; - } - - public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) { - return (A) this; - } - for (V1Toleration item : items) { - V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - this.tolerations.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) { - return (A) this; - } - Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); - while (each.hasNext()) { - V1TolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + tolerations.add(index, builder); } return (A) this; } - public List buildTolerations() { - return this.tolerations != null ? build(tolerations) : null; - } - - public V1Toleration buildToleration(int index) { - return this.tolerations.get(index).build(); - } - public V1Toleration buildFirstToleration() { return this.tolerations.get(0).build(); } @@ -218,64 +116,20 @@ public V1Toleration buildMatchingToleration(Predicate predi return null; } - public boolean hasMatchingToleration(Predicate predicate) { - for (V1TolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withTolerations(List tolerations) { - if (this.tolerations != null) { - this._visitables.get("tolerations").clear(); - } - if (tolerations != null) { - this.tolerations = new ArrayList(); - for (V1Toleration item : tolerations) { - this.addToTolerations(item); - } - } else { - this.tolerations = null; - } - return (A) this; - } - - public A withTolerations(V1Toleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - _visitables.remove("tolerations"); - } - if (tolerations != null) { - for (V1Toleration item : tolerations) { - this.addToTolerations(item); - } - } - return (A) this; - } - - public boolean hasTolerations() { - return this.tolerations != null && !(this.tolerations.isEmpty()); - } - - public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); - } - - public TolerationsNested addNewTolerationLike(V1Toleration item) { - return new TolerationsNested(-1, item); + public V1Toleration buildToleration(int index) { + return this.tolerations.get(index).build(); } - public TolerationsNested setNewTolerationLike(int index,V1Toleration item) { - return new TolerationsNested(index, item); + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; } - public TolerationsNested editToleration(int index) { - if (index <= tolerations.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + protected void copyInstance(V1Scheduling instance) { + instance = instance != null ? instance : new V1Scheduling(); + if (instance != null) { + this.withNodeSelector(instance.getNodeSelector()); + this.withTolerations(instance.getTolerations()); } - return this.setNewTolerationLike(index, this.buildToleration(index)); } public TolerationsNested editFirstToleration() { @@ -307,6 +161,13 @@ public TolerationsNested editMatchingToleration(Predicate editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -327,10 +188,114 @@ public boolean equals(Object o) { return true; } + public Map getNodeSelector() { + return this.nodeSelector; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1TolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + public int hashCode() { return Objects.hash(nodeSelector, tolerations); } + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeFromNodeSelector(String key) { + if (this.nodeSelector == null) { + return (A) this; + } + if (key != null && this.nodeSelector != null) { + this.nodeSelector.remove(key); + } + return (A) this; + } + + public A removeFromNodeSelector(Map map) { + if (this.nodeSelector == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.nodeSelector != null) { + this.nodeSelector.remove(key); + } + } + } + return (A) this; + } + + public A removeFromTolerations(V1Toleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1TolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public TolerationsNested setNewTolerationLike(int index,V1Toleration item) { + return new TolerationsNested(index, item); + } + + public A setToTolerations(int index,V1Toleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + V1TolerationBuilder builder = new V1TolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -346,14 +311,53 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withNodeSelector(Map nodeSelector) { + if (nodeSelector == null) { + this.nodeSelector = null; + } else { + this.nodeSelector = new LinkedHashMap(nodeSelector); + } + return (A) this; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1Toleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(V1Toleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1Toleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } public class TolerationsNested extends V1TolerationFluent> implements Nested{ + + V1TolerationBuilder builder; + int index; + TolerationsNested(int index,V1Toleration item) { this.index = index; this.builder = new V1TolerationBuilder(this, item); } - V1TolerationBuilder builder; - int index; - + public N and() { return (N) V1SchedulingFluent.this.setToTolerations(index, builder.build()); } @@ -362,7 +366,5 @@ public N endToleration() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java index f01aacf964..c152c55185 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ScopeSelectorBuilder extends V1ScopeSelectorFluent implements VisitableBuilder{ + + V1ScopeSelectorFluent fluent; + public V1ScopeSelectorBuilder() { this(new V1ScopeSelector()); } @@ -11,22 +14,20 @@ public V1ScopeSelectorBuilder(V1ScopeSelectorFluent fluent) { this(fluent, new V1ScopeSelector()); } - public V1ScopeSelectorBuilder(V1ScopeSelectorFluent fluent,V1ScopeSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ScopeSelectorBuilder(V1ScopeSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1ScopeSelectorFluent fluent; + public V1ScopeSelectorBuilder(V1ScopeSelectorFluent fluent,V1ScopeSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ScopeSelector build() { V1ScopeSelector buildable = new V1ScopeSelector(); buildable.setMatchExpressions(fluent.buildMatchExpressions()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java index 58dfe35b4a..6eba874c1a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java @@ -1,67 +1,52 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ScopeSelectorFluent> extends BaseFluent{ + + private ArrayList matchExpressions; + public V1ScopeSelectorFluent() { } public V1ScopeSelectorFluent(V1ScopeSelector instance) { this.copyInstance(instance); } - private ArrayList matchExpressions; - - protected void copyInstance(V1ScopeSelector instance) { - instance = instance != null ? instance : new V1ScopeSelector(); - if (instance != null) { - this.withMatchExpressions(instance.getMatchExpressions()); - } - } - - public A addToMatchExpressions(int index,V1ScopedResourceSelectorRequirement item) { + + public A addAllToMatchExpressions(Collection items) { if (this.matchExpressions == null) { this.matchExpressions = new ArrayList(); } - V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { - _visitables.get("matchExpressions").add(builder); - matchExpressions.add(builder); - } else { + for (V1ScopedResourceSelectorRequirement item : items) { + V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); _visitables.get("matchExpressions").add(builder); - matchExpressions.add(index, builder); + this.matchExpressions.add(builder); } return (A) this; } - public A setToMatchExpressions(int index,V1ScopedResourceSelectorRequirement item) { - if (this.matchExpressions == null) { - this.matchExpressions = new ArrayList(); - } - V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { - _visitables.get("matchExpressions").add(builder); - matchExpressions.add(builder); - } else { - _visitables.get("matchExpressions").add(builder); - matchExpressions.set(index, builder); - } - return (A) this; + public MatchExpressionsNested addNewMatchExpression() { + return new MatchExpressionsNested(-1, null); + } + + public MatchExpressionsNested addNewMatchExpressionLike(V1ScopedResourceSelectorRequirement item) { + return new MatchExpressionsNested(-1, item); } public A addToMatchExpressions(V1ScopedResourceSelectorRequirement... items) { @@ -76,72 +61,35 @@ public A addToMatchExpressions(V1ScopedResourceSelectorRequirement... items) { return (A) this; } - public A addAllToMatchExpressions(Collection items) { + public A addToMatchExpressions(int index,V1ScopedResourceSelectorRequirement item) { if (this.matchExpressions == null) { this.matchExpressions = new ArrayList(); } - for (V1ScopedResourceSelectorRequirement item : items) { - V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); + V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); + if (index < 0 || index >= matchExpressions.size()) { _visitables.get("matchExpressions").add(builder); - this.matchExpressions.add(builder); - } - return (A) this; - } - - public A removeFromMatchExpressions(V1ScopedResourceSelectorRequirement... items) { - if (this.matchExpressions == null) { - return (A) this; - } - for (V1ScopedResourceSelectorRequirement item : items) { - V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").remove(builder); - this.matchExpressions.remove(builder); - } - return (A) this; - } - - public A removeAllFromMatchExpressions(Collection items) { - if (this.matchExpressions == null) { - return (A) this; - } - for (V1ScopedResourceSelectorRequirement item : items) { - V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").remove(builder); - this.matchExpressions.remove(builder); + matchExpressions.add(builder); + } else { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(index, builder); } return (A) this; } - public A removeMatchingFromMatchExpressions(Predicate predicate) { - if (matchExpressions == null) { - return (A) this; - } - Iterator each = matchExpressions.iterator(); - List visitables = _visitables.get("matchExpressions"); - while (each.hasNext()) { - V1ScopedResourceSelectorRequirementBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1ScopedResourceSelectorRequirement buildFirstMatchExpression() { + return this.matchExpressions.get(0).build(); } - public List buildMatchExpressions() { - return this.matchExpressions != null ? build(matchExpressions) : null; + public V1ScopedResourceSelectorRequirement buildLastMatchExpression() { + return this.matchExpressions.get(matchExpressions.size() - 1).build(); } public V1ScopedResourceSelectorRequirement buildMatchExpression(int index) { return this.matchExpressions.get(index).build(); } - public V1ScopedResourceSelectorRequirement buildFirstMatchExpression() { - return this.matchExpressions.get(0).build(); - } - - public V1ScopedResourceSelectorRequirement buildLastMatchExpression() { - return this.matchExpressions.get(matchExpressions.size() - 1).build(); + public List buildMatchExpressions() { + return this.matchExpressions != null ? build(matchExpressions) : null; } public V1ScopedResourceSelectorRequirement buildMatchingMatchExpression(Predicate predicate) { @@ -153,64 +101,11 @@ public V1ScopedResourceSelectorRequirement buildMatchingMatchExpression(Predicat return null; } - public boolean hasMatchingMatchExpression(Predicate predicate) { - for (V1ScopedResourceSelectorRequirementBuilder item : matchExpressions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withMatchExpressions(List matchExpressions) { - if (this.matchExpressions != null) { - this._visitables.get("matchExpressions").clear(); - } - if (matchExpressions != null) { - this.matchExpressions = new ArrayList(); - for (V1ScopedResourceSelectorRequirement item : matchExpressions) { - this.addToMatchExpressions(item); - } - } else { - this.matchExpressions = null; - } - return (A) this; - } - - public A withMatchExpressions(V1ScopedResourceSelectorRequirement... matchExpressions) { - if (this.matchExpressions != null) { - this.matchExpressions.clear(); - _visitables.remove("matchExpressions"); - } - if (matchExpressions != null) { - for (V1ScopedResourceSelectorRequirement item : matchExpressions) { - this.addToMatchExpressions(item); - } - } - return (A) this; - } - - public boolean hasMatchExpressions() { - return this.matchExpressions != null && !(this.matchExpressions.isEmpty()); - } - - public MatchExpressionsNested addNewMatchExpression() { - return new MatchExpressionsNested(-1, null); - } - - public MatchExpressionsNested addNewMatchExpressionLike(V1ScopedResourceSelectorRequirement item) { - return new MatchExpressionsNested(-1, item); - } - - public MatchExpressionsNested setNewMatchExpressionLike(int index,V1ScopedResourceSelectorRequirement item) { - return new MatchExpressionsNested(index, item); - } - - public MatchExpressionsNested editMatchExpression(int index) { - if (index <= matchExpressions.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchExpressions")); + protected void copyInstance(V1ScopeSelector instance) { + instance = instance != null ? instance : new V1ScopeSelector(); + if (instance != null) { + this.withMatchExpressions(instance.getMatchExpressions()); } - return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } public MatchExpressionsNested editFirstMatchExpression() { @@ -228,6 +123,13 @@ public MatchExpressionsNested editLastMatchExpression() { return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } + public MatchExpressionsNested editMatchExpression(int index) { + if (matchExpressions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); + } + public MatchExpressionsNested editMatchingMatchExpression(Predicate predicate) { int index = -1; for (int i = 0;i < matchExpressions.size();i++) { @@ -259,10 +161,82 @@ public boolean equals(Object o) { return true; } + public boolean hasMatchExpressions() { + return this.matchExpressions != null && !(this.matchExpressions.isEmpty()); + } + + public boolean hasMatchingMatchExpression(Predicate predicate) { + for (V1ScopedResourceSelectorRequirementBuilder item : matchExpressions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(matchExpressions); } + public A removeAllFromMatchExpressions(Collection items) { + if (this.matchExpressions == null) { + return (A) this; + } + for (V1ScopedResourceSelectorRequirement item : items) { + V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").remove(builder); + this.matchExpressions.remove(builder); + } + return (A) this; + } + + public A removeFromMatchExpressions(V1ScopedResourceSelectorRequirement... items) { + if (this.matchExpressions == null) { + return (A) this; + } + for (V1ScopedResourceSelectorRequirement item : items) { + V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").remove(builder); + this.matchExpressions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromMatchExpressions(Predicate predicate) { + if (matchExpressions == null) { + return (A) this; + } + Iterator each = matchExpressions.iterator(); + List visitables = _visitables.get("matchExpressions"); + while (each.hasNext()) { + V1ScopedResourceSelectorRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public MatchExpressionsNested setNewMatchExpressionLike(int index,V1ScopedResourceSelectorRequirement item) { + return new MatchExpressionsNested(index, item); + } + + public A setToMatchExpressions(int index,V1ScopedResourceSelectorRequirement item) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } + V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); + if (index < 0 || index >= matchExpressions.size()) { + _visitables.get("matchExpressions").add(builder); + matchExpressions.add(builder); + } else { + _visitables.get("matchExpressions").add(builder); + matchExpressions.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -273,14 +247,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMatchExpressions(List matchExpressions) { + if (this.matchExpressions != null) { + this._visitables.get("matchExpressions").clear(); + } + if (matchExpressions != null) { + this.matchExpressions = new ArrayList(); + for (V1ScopedResourceSelectorRequirement item : matchExpressions) { + this.addToMatchExpressions(item); + } + } else { + this.matchExpressions = null; + } + return (A) this; + } + + public A withMatchExpressions(V1ScopedResourceSelectorRequirement... matchExpressions) { + if (this.matchExpressions != null) { + this.matchExpressions.clear(); + _visitables.remove("matchExpressions"); + } + if (matchExpressions != null) { + for (V1ScopedResourceSelectorRequirement item : matchExpressions) { + this.addToMatchExpressions(item); + } + } + return (A) this; + } public class MatchExpressionsNested extends V1ScopedResourceSelectorRequirementFluent> implements Nested{ + + V1ScopedResourceSelectorRequirementBuilder builder; + int index; + MatchExpressionsNested(int index,V1ScopedResourceSelectorRequirement item) { this.index = index; this.builder = new V1ScopedResourceSelectorRequirementBuilder(this, item); } - V1ScopedResourceSelectorRequirementBuilder builder; - int index; - + public N and() { return (N) V1ScopeSelectorFluent.this.setToMatchExpressions(index, builder.build()); } @@ -289,7 +293,5 @@ public N endMatchExpression() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java index 42b4089f5a..4bcae72157 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ScopedResourceSelectorRequirementBuilder extends V1ScopedResourceSelectorRequirementFluent implements VisitableBuilder{ + + V1ScopedResourceSelectorRequirementFluent fluent; + public V1ScopedResourceSelectorRequirementBuilder() { this(new V1ScopedResourceSelectorRequirement()); } @@ -11,17 +14,16 @@ public V1ScopedResourceSelectorRequirementBuilder(V1ScopedResourceSelectorRequir this(fluent, new V1ScopedResourceSelectorRequirement()); } - public V1ScopedResourceSelectorRequirementBuilder(V1ScopedResourceSelectorRequirementFluent fluent,V1ScopedResourceSelectorRequirement instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ScopedResourceSelectorRequirementBuilder(V1ScopedResourceSelectorRequirement instance) { this.fluent = this; this.copyInstance(instance); } - V1ScopedResourceSelectorRequirementFluent fluent; + public V1ScopedResourceSelectorRequirementBuilder(V1ScopedResourceSelectorRequirementFluent fluent,V1ScopedResourceSelectorRequirement instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ScopedResourceSelectorRequirement build() { V1ScopedResourceSelectorRequirement buildable = new V1ScopedResourceSelectorRequirement(); buildable.setOperator(fluent.getOperator()); @@ -30,5 +32,4 @@ public V1ScopedResourceSelectorRequirement build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java index 448277c5d7..3e35bd8243 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,64 +16,25 @@ */ @SuppressWarnings("unchecked") public class V1ScopedResourceSelectorRequirementFluent> extends BaseFluent{ - public V1ScopedResourceSelectorRequirementFluent() { - } - - public V1ScopedResourceSelectorRequirementFluent(V1ScopedResourceSelectorRequirement instance) { - this.copyInstance(instance); - } + private String operator; private String scopeName; private List values; - - protected void copyInstance(V1ScopedResourceSelectorRequirement instance) { - instance = instance != null ? instance : new V1ScopedResourceSelectorRequirement(); - if (instance != null) { - this.withOperator(instance.getOperator()); - this.withScopeName(instance.getScopeName()); - this.withValues(instance.getValues()); - } - } - - public String getOperator() { - return this.operator; - } - - public A withOperator(String operator) { - this.operator = operator; - return (A) this; - } - - public boolean hasOperator() { - return this.operator != null; - } - - public String getScopeName() { - return this.scopeName; - } - - public A withScopeName(String scopeName) { - this.scopeName = scopeName; - return (A) this; + + public V1ScopedResourceSelectorRequirementFluent() { } - public boolean hasScopeName() { - return this.scopeName != null; + public V1ScopedResourceSelectorRequirementFluent(V1ScopedResourceSelectorRequirement instance) { + this.copyInstance(instance); } - - public A addToValues(int index,String item) { + + public A addAllToValues(Collection items) { if (this.values == null) { this.values = new ArrayList(); } - this.values.add(index, item); - return (A) this; - } - - public A setToValues(int index,String item) { - if (this.values == null) { - this.values = new ArrayList(); + for (String item : items) { + this.values.add(item); } - this.values.set(index, item); return (A) this; } @@ -87,42 +48,44 @@ public A addToValues(String... items) { return (A) this; } - public A addAllToValues(Collection items) { + public A addToValues(int index,String item) { if (this.values == null) { this.values = new ArrayList(); } - for (String item : items) { - this.values.add(item); - } + this.values.add(index, item); return (A) this; } - public A removeFromValues(String... items) { - if (this.values == null) { - return (A) this; - } - for (String item : items) { - this.values.remove(item); + protected void copyInstance(V1ScopedResourceSelectorRequirement instance) { + instance = instance != null ? instance : new V1ScopedResourceSelectorRequirement(); + if (instance != null) { + this.withOperator(instance.getOperator()); + this.withScopeName(instance.getScopeName()); + this.withValues(instance.getValues()); } - return (A) this; } - public A removeAllFromValues(Collection items) { - if (this.values == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.values.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public List getValues() { - return this.values; - } - - public String getValue(int index) { - return this.values.get(index); + if (!(super.equals(o))) { + return false; + } + V1ScopedResourceSelectorRequirementFluent that = (V1ScopedResourceSelectorRequirementFluent) o; + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(scopeName, that.scopeName))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } + return true; } public String getFirstValue() { @@ -142,6 +105,22 @@ public String getMatchingValue(Predicate predicate) { return null; } + public String getOperator() { + return this.operator; + } + + public String getScopeName() { + return this.scopeName; + } + + public String getValue(int index) { + return this.values.get(index); + } + + public List getValues() { + return this.values; + } + public boolean hasMatchingValue(Predicate predicate) { for (String item : values) { if (predicate.test(item)) { @@ -151,60 +130,48 @@ public boolean hasMatchingValue(Predicate predicate) { return false; } - public A withValues(List values) { - if (values != null) { - this.values = new ArrayList(); - for (String item : values) { - this.addToValues(item); - } - } else { - this.values = null; - } - return (A) this; + public boolean hasOperator() { + return this.operator != null; } - public A withValues(String... values) { - if (this.values != null) { - this.values.clear(); - _visitables.remove("values"); - } - if (values != null) { - for (String item : values) { - this.addToValues(item); - } - } - return (A) this; + public boolean hasScopeName() { + return this.scopeName != null; } public boolean hasValues() { return this.values != null && !(this.values.isEmpty()); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; + public int hashCode() { + return Objects.hash(operator, scopeName, values); + } + + public A removeAllFromValues(Collection items) { + if (this.values == null) { + return (A) this; } - V1ScopedResourceSelectorRequirementFluent that = (V1ScopedResourceSelectorRequirementFluent) o; - if (!(Objects.equals(operator, that.operator))) { - return false; + for (String item : items) { + this.values.remove(item); } - if (!(Objects.equals(scopeName, that.scopeName))) { - return false; + return (A) this; + } + + public A removeFromValues(String... items) { + if (this.values == null) { + return (A) this; } - if (!(Objects.equals(values, that.values))) { - return false; + for (String item : items) { + this.values.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(operator, scopeName, values); + public A setToValues(int index,String item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; } public String toString() { @@ -228,5 +195,39 @@ public String toString() { return sb.toString(); } - + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public A withScopeName(String scopeName) { + this.scopeName = scopeName; + return (A) this; + } + + public A withValues(List values) { + if (values != null) { + this.values = new ArrayList(); + for (String item : values) { + this.addToValues(item); + } + } else { + this.values = null; + } + return (A) this; + } + + public A withValues(String... values) { + if (this.values != null) { + this.values.clear(); + _visitables.remove("values"); + } + if (values != null) { + for (String item : values) { + this.addToValues(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java index 3d68cdb0a6..1b38225212 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SeccompProfileBuilder extends V1SeccompProfileFluent implements VisitableBuilder{ + + V1SeccompProfileFluent fluent; + public V1SeccompProfileBuilder() { this(new V1SeccompProfile()); } @@ -11,17 +14,16 @@ public V1SeccompProfileBuilder(V1SeccompProfileFluent fluent) { this(fluent, new V1SeccompProfile()); } - public V1SeccompProfileBuilder(V1SeccompProfileFluent fluent,V1SeccompProfile instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SeccompProfileBuilder(V1SeccompProfile instance) { this.fluent = this; this.copyInstance(instance); } - V1SeccompProfileFluent fluent; + public V1SeccompProfileBuilder(V1SeccompProfileFluent fluent,V1SeccompProfile instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SeccompProfile build() { V1SeccompProfile buildable = new V1SeccompProfile(); buildable.setLocalhostProfile(fluent.getLocalhostProfile()); @@ -29,5 +31,4 @@ public V1SeccompProfile build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java index cd1e344a91..fc4211f3ba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1SeccompProfileFluent> extends BaseFluent{ + + private String localhostProfile; + private String type; + public V1SeccompProfileFluent() { } public V1SeccompProfileFluent(V1SeccompProfile instance) { this.copyInstance(instance); } - private String localhostProfile; - private String type; - + protected void copyInstance(V1SeccompProfile instance) { instance = instance != null ? instance : new V1SeccompProfile(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1SeccompProfile instance) { } } - public String getLocalhostProfile() { - return this.localhostProfile; - } - - public A withLocalhostProfile(String localhostProfile) { - this.localhostProfile = localhostProfile; - return (A) this; - } - - public boolean hasLocalhostProfile() { - return this.localhostProfile != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getLocalhostProfile() { + return this.localhostProfile; + } + + public String getType() { + return this.type; + } + + public boolean hasLocalhostProfile() { + return this.localhostProfile != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(localhostProfile, type); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withLocalhostProfile(String localhostProfile) { + this.localhostProfile = localhostProfile; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java index d85bc47434..26cc7d0cd4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SecretBuilder extends V1SecretFluent implements VisitableBuilder{ + + V1SecretFluent fluent; + public V1SecretBuilder() { this(new V1Secret()); } @@ -11,17 +14,16 @@ public V1SecretBuilder(V1SecretFluent fluent) { this(fluent, new V1Secret()); } - public V1SecretBuilder(V1SecretFluent fluent,V1Secret instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SecretBuilder(V1Secret instance) { this.fluent = this; this.copyInstance(instance); } - V1SecretFluent fluent; + public V1SecretBuilder(V1SecretFluent fluent,V1Secret instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Secret build() { V1Secret buildable = new V1Secret(); buildable.setApiVersion(fluent.getApiVersion()); @@ -34,5 +36,4 @@ public V1Secret build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java index fed82230a4..e9848a76dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SecretEnvSourceBuilder extends V1SecretEnvSourceFluent implements VisitableBuilder{ + + V1SecretEnvSourceFluent fluent; + public V1SecretEnvSourceBuilder() { this(new V1SecretEnvSource()); } @@ -11,17 +14,16 @@ public V1SecretEnvSourceBuilder(V1SecretEnvSourceFluent fluent) { this(fluent, new V1SecretEnvSource()); } - public V1SecretEnvSourceBuilder(V1SecretEnvSourceFluent fluent,V1SecretEnvSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SecretEnvSourceBuilder(V1SecretEnvSource instance) { this.fluent = this; this.copyInstance(instance); } - V1SecretEnvSourceFluent fluent; + public V1SecretEnvSourceBuilder(V1SecretEnvSourceFluent fluent,V1SecretEnvSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SecretEnvSource build() { V1SecretEnvSource buildable = new V1SecretEnvSource(); buildable.setName(fluent.getName()); @@ -29,5 +31,4 @@ public V1SecretEnvSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java index d534e76544..0d73882e06 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1SecretEnvSourceFluent> extends BaseFluent{ + + private String name; + private Boolean optional; + public V1SecretEnvSourceFluent() { } public V1SecretEnvSourceFluent(V1SecretEnvSource instance) { this.copyInstance(instance); } - private String name; - private Boolean optional; - + protected void copyInstance(V1SecretEnvSource instance) { instance = instance != null ? instance : new V1SecretEnvSource(); if (instance != null) { @@ -30,32 +32,6 @@ protected void copyInstance(V1SecretEnvSource instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public Boolean getOptional() { - return this.optional; - } - - public A withOptional(Boolean optional) { - this.optional = optional; - return (A) this; - } - - public boolean hasOptional() { - return this.optional != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -76,6 +52,22 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public Boolean getOptional() { + return this.optional; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasOptional() { + return this.optional != null; + } + public int hashCode() { return Objects.hash(name, optional); } @@ -96,9 +88,18 @@ public String toString() { return sb.toString(); } + public A withName(String name) { + this.name = name; + return (A) this; + } + public A withOptional() { return withOptional(true); } - + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java index 4e01aedea6..e7f5a818db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java @@ -1,28 +1,23 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; -import java.lang.Object; -import java.lang.Boolean; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1SecretFluent> extends BaseFluent{ - public V1SecretFluent() { - } - - public V1SecretFluent(V1Secret instance) { - this.copyInstance(instance); - } + private String apiVersion; private Map data; private Boolean immutable; @@ -30,33 +25,24 @@ public V1SecretFluent(V1Secret instance) { private V1ObjectMetaBuilder metadata; private Map stringData; private String type; - - protected void copyInstance(V1Secret instance) { - instance = instance != null ? instance : new V1Secret(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withData(instance.getData()); - this.withImmutable(instance.getImmutable()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withStringData(instance.getStringData()); - this.withType(instance.getType()); - } + + public V1SecretFluent() { } - public String getApiVersion() { - return this.apiVersion; + public V1SecretFluent(V1Secret instance) { + this.copyInstance(instance); } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; + + public A addToData(Map map) { + if (this.data == null && map != null) { + this.data = new LinkedHashMap(); + } + if (map != null) { + this.data.putAll(map); + } return (A) this; } - public boolean hasApiVersion() { - return this.apiVersion != null; - } - public A addToData(String key,byte[] value) { if (this.data == null && key != null && value != null) { this.data = new LinkedHashMap(); @@ -67,139 +53,166 @@ public A addToData(String key,byte[] value) { return (A) this; } - public A addToData(Map map) { - if (this.data == null && map != null) { - this.data = new LinkedHashMap(); + public A addToStringData(Map map) { + if (this.stringData == null && map != null) { + this.stringData = new LinkedHashMap(); } if (map != null) { - this.data.putAll(map); + this.stringData.putAll(map); } return (A) this; } - public A removeFromData(String key) { - if (this.data == null) { - return (A) this; + public A addToStringData(String key,String value) { + if (this.stringData == null && key != null && value != null) { + this.stringData = new LinkedHashMap(); } - if (key != null && this.data != null) { - this.data.remove(key); + if (key != null && value != null) { + this.stringData.put(key, value); } return (A) this; } - public A removeFromData(Map map) { - if (this.data == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.data != null) { - this.data.remove(key); - } - } + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1Secret instance) { + instance = instance != null ? instance : new V1Secret(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withData(instance.getData()); + this.withImmutable(instance.getImmutable()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withStringData(instance.getStringData()); + this.withType(instance.getType()); } - return (A) this; } - public Map getData() { - return this.data; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withData(Map data) { - if (data == null) { - this.data = null; - } else { - this.data = new LinkedHashMap(data); - } - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasData() { - return this.data != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public Boolean getImmutable() { - return this.immutable; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SecretFluent that = (V1SecretFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(data, that.data))) { + return false; + } + if (!(Objects.equals(immutable, that.immutable))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(stringData, that.stringData))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public A withImmutable(Boolean immutable) { - this.immutable = immutable; - return (A) this; + public String getApiVersion() { + return this.apiVersion; } - public boolean hasImmutable() { - return this.immutable != null; + public Map getData() { + return this.data; + } + + public Boolean getImmutable() { + return this.immutable; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public Map getStringData() { + return this.stringData; } - public boolean hasKind() { - return this.kind != null; + public String getType() { + return this.type; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasApiVersion() { + return this.apiVersion != null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; + public boolean hasData() { + return this.data != null; } - public boolean hasMetadata() { - return this.metadata != null; + public boolean hasImmutable() { + return this.immutable != null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public boolean hasKind() { + return this.kind != null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + public boolean hasMetadata() { + return this.metadata != null; } - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + public boolean hasStringData() { + return this.stringData != null; } - public MetadataNested editOrNewMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public boolean hasType() { + return this.type != null; } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + public int hashCode() { + return Objects.hash(apiVersion, data, immutable, kind, metadata, stringData, type); } - public A addToStringData(String key,String value) { - if (this.stringData == null && key != null && value != null) { - this.stringData = new LinkedHashMap(); + public A removeFromData(String key) { + if (this.data == null) { + return (A) this; } - if (key != null && value != null) { - this.stringData.put(key, value); + if (key != null && this.data != null) { + this.data.remove(key); } return (A) this; } - public A addToStringData(Map map) { - if (this.stringData == null && map != null) { - this.stringData = new LinkedHashMap(); + public A removeFromData(Map map) { + if (this.data == null) { + return (A) this; } if (map != null) { - this.stringData.putAll(map); + for (Object key : map.keySet()) { + if (this.data != null) { + this.data.remove(key); + } + } } return (A) this; } @@ -228,75 +241,6 @@ public A removeFromStringData(Map map) { return (A) this; } - public Map getStringData() { - return this.stringData; - } - - public A withStringData(Map stringData) { - if (stringData == null) { - this.stringData = null; - } else { - this.stringData = new LinkedHashMap(stringData); - } - return (A) this; - } - - public boolean hasStringData() { - return this.stringData != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1SecretFluent that = (V1SecretFluent) o; - if (!(Objects.equals(apiVersion, that.apiVersion))) { - return false; - } - if (!(Objects.equals(data, that.data))) { - return false; - } - if (!(Objects.equals(immutable, that.immutable))) { - return false; - } - if (!(Objects.equals(kind, that.kind))) { - return false; - } - if (!(Objects.equals(metadata, that.metadata))) { - return false; - } - if (!(Objects.equals(stringData, that.stringData))) { - return false; - } - if (!(Objects.equals(type, that.type))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(apiVersion, data, immutable, kind, metadata, stringData, type); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -338,15 +282,75 @@ public String toString() { return sb.toString(); } + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withData(Map data) { + if (data == null) { + this.data = null; + } else { + this.data = new LinkedHashMap(data); + } + return (A) this; + } + public A withImmutable() { return withImmutable(true); } + + public A withImmutable(Boolean immutable) { + this.immutable = immutable; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public A withStringData(Map stringData) { + if (stringData == null) { + this.stringData = null; + } else { + this.stringData = new LinkedHashMap(stringData); + } + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1SecretFluent.this.withMetadata(builder.build()); } @@ -355,7 +359,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java index 263dd4e0b9..f96be5241d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SecretKeySelectorBuilder extends V1SecretKeySelectorFluent implements VisitableBuilder{ + + V1SecretKeySelectorFluent fluent; + public V1SecretKeySelectorBuilder() { this(new V1SecretKeySelector()); } @@ -11,17 +14,16 @@ public V1SecretKeySelectorBuilder(V1SecretKeySelectorFluent fluent) { this(fluent, new V1SecretKeySelector()); } - public V1SecretKeySelectorBuilder(V1SecretKeySelectorFluent fluent,V1SecretKeySelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SecretKeySelectorBuilder(V1SecretKeySelector instance) { this.fluent = this; this.copyInstance(instance); } - V1SecretKeySelectorFluent fluent; + public V1SecretKeySelectorBuilder(V1SecretKeySelectorFluent fluent,V1SecretKeySelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SecretKeySelector build() { V1SecretKeySelector buildable = new V1SecretKeySelector(); buildable.setKey(fluent.getKey()); @@ -30,5 +32,4 @@ public V1SecretKeySelector build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java index c2d061a112..c3242d5192 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1SecretKeySelectorFluent> extends BaseFluent{ + + private String key; + private String name; + private Boolean optional; + public V1SecretKeySelectorFluent() { } public V1SecretKeySelectorFluent(V1SecretKeySelector instance) { this.copyInstance(instance); } - private String key; - private String name; - private Boolean optional; - + protected void copyInstance(V1SecretKeySelector instance) { instance = instance != null ? instance : new V1SecretKeySelector(); if (instance != null) { @@ -32,45 +34,6 @@ protected void copyInstance(V1SecretKeySelector instance) { } } - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public Boolean getOptional() { - return this.optional; - } - - public A withOptional(Boolean optional) { - this.optional = optional; - return (A) this; - } - - public boolean hasOptional() { - return this.optional != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -94,6 +57,30 @@ public boolean equals(Object o) { return true; } + public String getKey() { + return this.key; + } + + public String getName() { + return this.name; + } + + public Boolean getOptional() { + return this.optional; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasOptional() { + return this.optional != null; + } + public int hashCode() { return Objects.hash(key, name, optional); } @@ -119,9 +106,23 @@ public String toString() { return sb.toString(); } + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + public A withOptional() { return withOptional(true); } - + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java index 8d8031104b..5b51638140 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SecretListBuilder extends V1SecretListFluent implements VisitableBuilder{ + + V1SecretListFluent fluent; + public V1SecretListBuilder() { this(new V1SecretList()); } @@ -11,17 +14,16 @@ public V1SecretListBuilder(V1SecretListFluent fluent) { this(fluent, new V1SecretList()); } - public V1SecretListBuilder(V1SecretListFluent fluent,V1SecretList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SecretListBuilder(V1SecretList instance) { this.fluent = this; this.copyInstance(instance); } - V1SecretListFluent fluent; + public V1SecretListBuilder(V1SecretListFluent fluent,V1SecretList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SecretList build() { V1SecretList buildable = new V1SecretList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1SecretList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java index 3e8f816541..8e51249d05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1SecretListFluent> extends BaseFluent{ - public V1SecretListFluent() { - } - - public V1SecretListFluent(V1SecretList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1SecretList instance) { - instance = instance != null ? instance : new V1SecretList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1SecretListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1SecretListFluent(V1SecretList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1Secret item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1SecretBuilder builder = new V1SecretBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1Secret item : items) { + V1SecretBuilder builder = new V1SecretBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1Secret item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1SecretBuilder builder = new V1SecretBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1Secret item) { + return new ItemsNested(-1, item); } public A addToItems(V1Secret... items) { @@ -96,68 +65,31 @@ public A addToItems(V1Secret... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1Secret item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1Secret item : items) { - V1SecretBuilder builder = new V1SecretBuilder(item); + V1SecretBuilder builder = new V1SecretBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1Secret... items) { - if (this.items == null) { - return (A) this; - } - for (V1Secret item : items) { - V1SecretBuilder builder = new V1SecretBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1Secret item : items) { - V1SecretBuilder builder = new V1SecretBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1SecretBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1Secret buildFirstItem() { + return this.items.get(0).build(); } public V1Secret buildItem(int index) { return this.items.get(index).build(); } - public V1Secret buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1Secret buildLastItem() { @@ -173,73 +105,34 @@ public V1Secret buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1SecretBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Secret item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1SecretList instance) { + instance = instance != null ? instance : new V1SecretList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1Secret... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1Secret item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Secret item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Secret item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) { return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1SecretBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Secret item : items) { + V1SecretBuilder builder = new V1SecretBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Secret... items) { + if (this.items == null) { + return (A) this; + } + for (V1Secret item : items) { + V1SecretBuilder builder = new V1SecretBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1SecretBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Secret item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1Secret item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1SecretBuilder builder = new V1SecretBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1Secret item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1Secret... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1Secret item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1SecretFluent> implements Nested{ + + V1SecretBuilder builder; + int index; + ItemsNested(int index,V1Secret item) { this.index = index; this.builder = new V1SecretBuilder(this, item); } - V1SecretBuilder builder; - int index; - + public N and() { return (N) V1SecretListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1SecretListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java index 08bc2e494e..44d291cca7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SecretProjectionBuilder extends V1SecretProjectionFluent implements VisitableBuilder{ + + V1SecretProjectionFluent fluent; + public V1SecretProjectionBuilder() { this(new V1SecretProjection()); } @@ -11,17 +14,16 @@ public V1SecretProjectionBuilder(V1SecretProjectionFluent fluent) { this(fluent, new V1SecretProjection()); } - public V1SecretProjectionBuilder(V1SecretProjectionFluent fluent,V1SecretProjection instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SecretProjectionBuilder(V1SecretProjection instance) { this.fluent = this; this.copyInstance(instance); } - V1SecretProjectionFluent fluent; + public V1SecretProjectionBuilder(V1SecretProjectionFluent fluent,V1SecretProjection instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SecretProjection build() { V1SecretProjection buildable = new V1SecretProjection(); buildable.setItems(fluent.buildItems()); @@ -30,5 +32,4 @@ public V1SecretProjection build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java index 272b7d2266..98b003ee18 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java @@ -1,72 +1,55 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1SecretProjectionFluent> extends BaseFluent{ + + private ArrayList items; + private String name; + private Boolean optional; + public V1SecretProjectionFluent() { } public V1SecretProjectionFluent(V1SecretProjection instance) { this.copyInstance(instance); } - private ArrayList items; - private String name; - private Boolean optional; - - protected void copyInstance(V1SecretProjection instance) { - instance = instance != null ? instance : new V1SecretProjection(); - if (instance != null) { - this.withItems(instance.getItems()); - this.withName(instance.getName()); - this.withOptional(instance.getOptional()); - } - } - - public A addToItems(int index,V1KeyToPath item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1KeyToPath item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1KeyToPath item) { + return new ItemsNested(-1, item); } public A addToItems(V1KeyToPath... items) { @@ -81,68 +64,31 @@ public A addToItems(V1KeyToPath... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1KeyToPath item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1KeyToPath... items) { - if (this.items == null) { - return (A) this; - } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1KeyToPathBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1KeyToPath buildFirstItem() { + return this.items.get(0).build(); } public V1KeyToPath buildItem(int index) { return this.items.get(index).build(); } - public V1KeyToPath buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1KeyToPath buildLastItem() { @@ -158,73 +104,29 @@ public V1KeyToPath buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1KeyToPathBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1KeyToPath item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1SecretProjection instance) { + instance = instance != null ? instance : new V1SecretProjection(); + if (instance != null) { + this.withItems(instance.getItems()); + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); } - return (A) this; } - public A withItems(V1KeyToPath... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1KeyToPath item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1KeyToPath item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1KeyToPath item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -247,32 +149,6 @@ public ItemsNested editMatchingItem(Predicate predicate) return this.setNewItemLike(index, this.buildItem(index)); } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public Boolean getOptional() { - return this.optional; - } - - public A withOptional(Boolean optional) { - this.optional = optional; - return (A) this; - } - - public boolean hasOptional() { - return this.optional != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -296,10 +172,98 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public Boolean getOptional() { + return this.optional; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1KeyToPathBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasOptional() { + return this.optional != null; + } + public int hashCode() { return Objects.hash(items, name, optional); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1KeyToPath... items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1KeyToPathBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1KeyToPath item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1KeyToPath item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -321,17 +285,57 @@ public String toString() { return sb.toString(); } + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1KeyToPath item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1KeyToPath... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1KeyToPath item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + public A withOptional() { return withOptional(true); } + + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } public class ItemsNested extends V1KeyToPathFluent> implements Nested{ + + V1KeyToPathBuilder builder; + int index; + ItemsNested(int index,V1KeyToPath item) { this.index = index; this.builder = new V1KeyToPathBuilder(this, item); } - V1KeyToPathBuilder builder; - int index; - + public N and() { return (N) V1SecretProjectionFluent.this.setToItems(index, builder.build()); } @@ -340,7 +344,5 @@ public N endItem() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java index 9eb020a0a0..35adf0f0ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SecretReferenceBuilder extends V1SecretReferenceFluent implements VisitableBuilder{ + + V1SecretReferenceFluent fluent; + public V1SecretReferenceBuilder() { this(new V1SecretReference()); } @@ -11,17 +14,16 @@ public V1SecretReferenceBuilder(V1SecretReferenceFluent fluent) { this(fluent, new V1SecretReference()); } - public V1SecretReferenceBuilder(V1SecretReferenceFluent fluent,V1SecretReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SecretReferenceBuilder(V1SecretReference instance) { this.fluent = this; this.copyInstance(instance); } - V1SecretReferenceFluent fluent; + public V1SecretReferenceBuilder(V1SecretReferenceFluent fluent,V1SecretReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SecretReference build() { V1SecretReference buildable = new V1SecretReference(); buildable.setName(fluent.getName()); @@ -29,5 +31,4 @@ public V1SecretReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java index 42aae60c27..f34deaaf80 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1SecretReferenceFluent> extends BaseFluent{ + + private String name; + private String namespace; + public V1SecretReferenceFluent() { } public V1SecretReferenceFluent(V1SecretReference instance) { this.copyInstance(instance); } - private String name; - private String namespace; - + protected void copyInstance(V1SecretReference instance) { instance = instance != null ? instance : new V1SecretReference(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1SecretReference instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + public int hashCode() { return Objects.hash(name, namespace); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java index 0b127b4949..c218abb9bd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SecretVolumeSourceBuilder extends V1SecretVolumeSourceFluent implements VisitableBuilder{ + + V1SecretVolumeSourceFluent fluent; + public V1SecretVolumeSourceBuilder() { this(new V1SecretVolumeSource()); } @@ -11,17 +14,16 @@ public V1SecretVolumeSourceBuilder(V1SecretVolumeSourceFluent fluent) { this(fluent, new V1SecretVolumeSource()); } - public V1SecretVolumeSourceBuilder(V1SecretVolumeSourceFluent fluent,V1SecretVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SecretVolumeSourceBuilder(V1SecretVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1SecretVolumeSourceFluent fluent; + public V1SecretVolumeSourceBuilder(V1SecretVolumeSourceFluent fluent,V1SecretVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SecretVolumeSource build() { V1SecretVolumeSource buildable = new V1SecretVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); @@ -31,5 +33,4 @@ public V1SecretVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java index 20c8666d43..d627dad7d1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java @@ -1,88 +1,57 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; +import java.lang.Boolean; import java.lang.Integer; +import java.lang.Object; import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1SecretVolumeSourceFluent> extends BaseFluent{ - public V1SecretVolumeSourceFluent() { - } - - public V1SecretVolumeSourceFluent(V1SecretVolumeSource instance) { - this.copyInstance(instance); - } + private Integer defaultMode; private ArrayList items; private Boolean optional; private String secretName; - - protected void copyInstance(V1SecretVolumeSource instance) { - instance = instance != null ? instance : new V1SecretVolumeSource(); - if (instance != null) { - this.withDefaultMode(instance.getDefaultMode()); - this.withItems(instance.getItems()); - this.withOptional(instance.getOptional()); - this.withSecretName(instance.getSecretName()); - } - } - - public Integer getDefaultMode() { - return this.defaultMode; - } - - public A withDefaultMode(Integer defaultMode) { - this.defaultMode = defaultMode; - return (A) this; + + public V1SecretVolumeSourceFluent() { } - public boolean hasDefaultMode() { - return this.defaultMode != null; + public V1SecretVolumeSourceFluent(V1SecretVolumeSource instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1KeyToPath item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1KeyToPath item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1KeyToPath item) { + return new ItemsNested(-1, item); } public A addToItems(V1KeyToPath... items) { @@ -97,68 +66,31 @@ public A addToItems(V1KeyToPath... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1KeyToPath item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1KeyToPath... items) { - if (this.items == null) { - return (A) this; - } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1KeyToPath item : items) { - V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1KeyToPathBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1KeyToPath buildFirstItem() { + return this.items.get(0).build(); } public V1KeyToPath buildItem(int index) { return this.items.get(index).build(); } - public V1KeyToPath buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1KeyToPath buildLastItem() { @@ -174,73 +106,30 @@ public V1KeyToPath buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1KeyToPathBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1KeyToPath item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1SecretVolumeSource instance) { + instance = instance != null ? instance : new V1SecretVolumeSource(); + if (instance != null) { + this.withDefaultMode(instance.getDefaultMode()); + this.withItems(instance.getItems()); + this.withOptional(instance.getOptional()); + this.withSecretName(instance.getSecretName()); } - return (A) this; } - public A withItems(V1KeyToPath... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1KeyToPath item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1KeyToPath item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1KeyToPath item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -263,32 +152,6 @@ public ItemsNested editMatchingItem(Predicate predicate) return this.setNewItemLike(index, this.buildItem(index)); } - public Boolean getOptional() { - return this.optional; - } - - public A withOptional(Boolean optional) { - this.optional = optional; - return (A) this; - } - - public boolean hasOptional() { - return this.optional != null; - } - - public String getSecretName() { - return this.secretName; - } - - public A withSecretName(String secretName) { - this.secretName = secretName; - return (A) this; - } - - public boolean hasSecretName() { - return this.secretName != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -315,10 +178,106 @@ public boolean equals(Object o) { return true; } + public Integer getDefaultMode() { + return this.defaultMode; + } + + public Boolean getOptional() { + return this.optional; + } + + public String getSecretName() { + return this.secretName; + } + + public boolean hasDefaultMode() { + return this.defaultMode != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1KeyToPathBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasOptional() { + return this.optional != null; + } + + public boolean hasSecretName() { + return this.secretName != null; + } + public int hashCode() { return Objects.hash(defaultMode, items, optional, secretName); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1KeyToPath... items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1KeyToPathBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1KeyToPath item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1KeyToPath item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -345,17 +304,62 @@ public String toString() { return sb.toString(); } + public A withDefaultMode(Integer defaultMode) { + this.defaultMode = defaultMode; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1KeyToPath item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1KeyToPath... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1KeyToPath item : items) { + this.addToItems(item); + } + } + return (A) this; + } + public A withOptional() { return withOptional(true); } + + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } + + public A withSecretName(String secretName) { + this.secretName = secretName; + return (A) this; + } public class ItemsNested extends V1KeyToPathFluent> implements Nested{ + + V1KeyToPathBuilder builder; + int index; + ItemsNested(int index,V1KeyToPath item) { this.index = index; this.builder = new V1KeyToPathBuilder(this, item); } - V1KeyToPathBuilder builder; - int index; - + public N and() { return (N) V1SecretVolumeSourceFluent.this.setToItems(index, builder.build()); } @@ -364,7 +368,5 @@ public N endItem() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java index d5b461a4d5..4438d9a611 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SecurityContextBuilder extends V1SecurityContextFluent implements VisitableBuilder{ + + V1SecurityContextFluent fluent; + public V1SecurityContextBuilder() { this(new V1SecurityContext()); } @@ -11,17 +14,16 @@ public V1SecurityContextBuilder(V1SecurityContextFluent fluent) { this(fluent, new V1SecurityContext()); } - public V1SecurityContextBuilder(V1SecurityContextFluent fluent,V1SecurityContext instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SecurityContextBuilder(V1SecurityContext instance) { this.fluent = this; this.copyInstance(instance); } - V1SecurityContextFluent fluent; + public V1SecurityContextBuilder(V1SecurityContextFluent fluent,V1SecurityContext instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SecurityContext build() { V1SecurityContext buildable = new V1SecurityContext(); buildable.setAllowPrivilegeEscalation(fluent.getAllowPrivilegeEscalation()); @@ -39,5 +41,4 @@ public V1SecurityContext build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java index 28ab9664c0..b99c1cf5ba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java @@ -1,27 +1,22 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Boolean; -import java.util.Optional; import java.lang.Long; -import java.util.Objects; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1SecurityContextFluent> extends BaseFluent{ - public V1SecurityContextFluent() { - } - - public V1SecurityContextFluent(V1SecurityContext instance) { - this.copyInstance(instance); - } + private Boolean allowPrivilegeEscalation; private V1AppArmorProfileBuilder appArmorProfile; private V1CapabilitiesBuilder capabilities; @@ -34,6 +29,33 @@ public V1SecurityContextFluent(V1SecurityContext instance) { private V1SELinuxOptionsBuilder seLinuxOptions; private V1SeccompProfileBuilder seccompProfile; private V1WindowsSecurityContextOptionsBuilder windowsOptions; + + public V1SecurityContextFluent() { + } + + public V1SecurityContextFluent(V1SecurityContext instance) { + this.copyInstance(instance); + } + + public V1AppArmorProfile buildAppArmorProfile() { + return this.appArmorProfile != null ? this.appArmorProfile.build() : null; + } + + public V1Capabilities buildCapabilities() { + return this.capabilities != null ? this.capabilities.build() : null; + } + + public V1SELinuxOptions buildSeLinuxOptions() { + return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null; + } + + public V1SeccompProfile buildSeccompProfile() { + return this.seccompProfile != null ? this.seccompProfile.build() : null; + } + + public V1WindowsSecurityContextOptions buildWindowsOptions() { + return this.windowsOptions != null ? this.windowsOptions.build() : null; + } protected void copyInstance(V1SecurityContext instance) { instance = instance != null ? instance : new V1SecurityContext(); @@ -53,51 +75,14 @@ protected void copyInstance(V1SecurityContext instance) { } } - public Boolean getAllowPrivilegeEscalation() { - return this.allowPrivilegeEscalation; - } - - public A withAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { - this.allowPrivilegeEscalation = allowPrivilegeEscalation; - return (A) this; - } - - public boolean hasAllowPrivilegeEscalation() { - return this.allowPrivilegeEscalation != null; - } - - public V1AppArmorProfile buildAppArmorProfile() { - return this.appArmorProfile != null ? this.appArmorProfile.build() : null; - } - - public A withAppArmorProfile(V1AppArmorProfile appArmorProfile) { - this._visitables.remove("appArmorProfile"); - if (appArmorProfile != null) { - this.appArmorProfile = new V1AppArmorProfileBuilder(appArmorProfile); - this._visitables.get("appArmorProfile").add(this.appArmorProfile); - } else { - this.appArmorProfile = null; - this._visitables.get("appArmorProfile").remove(this.appArmorProfile); - } - return (A) this; - } - - public boolean hasAppArmorProfile() { - return this.appArmorProfile != null; - } - - public AppArmorProfileNested withNewAppArmorProfile() { - return new AppArmorProfileNested(null); - } - - public AppArmorProfileNested withNewAppArmorProfileLike(V1AppArmorProfile item) { - return new AppArmorProfileNested(item); - } - public AppArmorProfileNested editAppArmorProfile() { return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(null)); } + public CapabilitiesNested editCapabilities() { + return this.withNewCapabilitiesLike(Optional.ofNullable(this.buildCapabilities()).orElse(null)); + } + public AppArmorProfileNested editOrNewAppArmorProfile() { return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(new V1AppArmorProfileBuilder().build())); } @@ -106,38 +91,6 @@ public AppArmorProfileNested editOrNewAppArmorProfileLike(V1AppArmorProfile i return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(item)); } - public V1Capabilities buildCapabilities() { - return this.capabilities != null ? this.capabilities.build() : null; - } - - public A withCapabilities(V1Capabilities capabilities) { - this._visitables.remove("capabilities"); - if (capabilities != null) { - this.capabilities = new V1CapabilitiesBuilder(capabilities); - this._visitables.get("capabilities").add(this.capabilities); - } else { - this.capabilities = null; - this._visitables.get("capabilities").remove(this.capabilities); - } - return (A) this; - } - - public boolean hasCapabilities() { - return this.capabilities != null; - } - - public CapabilitiesNested withNewCapabilities() { - return new CapabilitiesNested(null); - } - - public CapabilitiesNested withNewCapabilitiesLike(V1Capabilities item) { - return new CapabilitiesNested(item); - } - - public CapabilitiesNested editCapabilities() { - return this.withNewCapabilitiesLike(Optional.ofNullable(this.buildCapabilities()).orElse(null)); - } - public CapabilitiesNested editOrNewCapabilities() { return this.withNewCapabilitiesLike(Optional.ofNullable(this.buildCapabilities()).orElse(new V1CapabilitiesBuilder().build())); } @@ -146,116 +99,6 @@ public CapabilitiesNested editOrNewCapabilitiesLike(V1Capabilities item) { return this.withNewCapabilitiesLike(Optional.ofNullable(this.buildCapabilities()).orElse(item)); } - public Boolean getPrivileged() { - return this.privileged; - } - - public A withPrivileged(Boolean privileged) { - this.privileged = privileged; - return (A) this; - } - - public boolean hasPrivileged() { - return this.privileged != null; - } - - public String getProcMount() { - return this.procMount; - } - - public A withProcMount(String procMount) { - this.procMount = procMount; - return (A) this; - } - - public boolean hasProcMount() { - return this.procMount != null; - } - - public Boolean getReadOnlyRootFilesystem() { - return this.readOnlyRootFilesystem; - } - - public A withReadOnlyRootFilesystem(Boolean readOnlyRootFilesystem) { - this.readOnlyRootFilesystem = readOnlyRootFilesystem; - return (A) this; - } - - public boolean hasReadOnlyRootFilesystem() { - return this.readOnlyRootFilesystem != null; - } - - public Long getRunAsGroup() { - return this.runAsGroup; - } - - public A withRunAsGroup(Long runAsGroup) { - this.runAsGroup = runAsGroup; - return (A) this; - } - - public boolean hasRunAsGroup() { - return this.runAsGroup != null; - } - - public Boolean getRunAsNonRoot() { - return this.runAsNonRoot; - } - - public A withRunAsNonRoot(Boolean runAsNonRoot) { - this.runAsNonRoot = runAsNonRoot; - return (A) this; - } - - public boolean hasRunAsNonRoot() { - return this.runAsNonRoot != null; - } - - public Long getRunAsUser() { - return this.runAsUser; - } - - public A withRunAsUser(Long runAsUser) { - this.runAsUser = runAsUser; - return (A) this; - } - - public boolean hasRunAsUser() { - return this.runAsUser != null; - } - - public V1SELinuxOptions buildSeLinuxOptions() { - return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null; - } - - public A withSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { - this._visitables.remove("seLinuxOptions"); - if (seLinuxOptions != null) { - this.seLinuxOptions = new V1SELinuxOptionsBuilder(seLinuxOptions); - this._visitables.get("seLinuxOptions").add(this.seLinuxOptions); - } else { - this.seLinuxOptions = null; - this._visitables.get("seLinuxOptions").remove(this.seLinuxOptions); - } - return (A) this; - } - - public boolean hasSeLinuxOptions() { - return this.seLinuxOptions != null; - } - - public SeLinuxOptionsNested withNewSeLinuxOptions() { - return new SeLinuxOptionsNested(null); - } - - public SeLinuxOptionsNested withNewSeLinuxOptionsLike(V1SELinuxOptions item) { - return new SeLinuxOptionsNested(item); - } - - public SeLinuxOptionsNested editSeLinuxOptions() { - return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(null)); - } - public SeLinuxOptionsNested editOrNewSeLinuxOptions() { return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(new V1SELinuxOptionsBuilder().build())); } @@ -264,38 +107,6 @@ public SeLinuxOptionsNested editOrNewSeLinuxOptionsLike(V1SELinuxOptions item return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(item)); } - public V1SeccompProfile buildSeccompProfile() { - return this.seccompProfile != null ? this.seccompProfile.build() : null; - } - - public A withSeccompProfile(V1SeccompProfile seccompProfile) { - this._visitables.remove("seccompProfile"); - if (seccompProfile != null) { - this.seccompProfile = new V1SeccompProfileBuilder(seccompProfile); - this._visitables.get("seccompProfile").add(this.seccompProfile); - } else { - this.seccompProfile = null; - this._visitables.get("seccompProfile").remove(this.seccompProfile); - } - return (A) this; - } - - public boolean hasSeccompProfile() { - return this.seccompProfile != null; - } - - public SeccompProfileNested withNewSeccompProfile() { - return new SeccompProfileNested(null); - } - - public SeccompProfileNested withNewSeccompProfileLike(V1SeccompProfile item) { - return new SeccompProfileNested(item); - } - - public SeccompProfileNested editSeccompProfile() { - return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(null)); - } - public SeccompProfileNested editOrNewSeccompProfile() { return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(new V1SeccompProfileBuilder().build())); } @@ -304,44 +115,24 @@ public SeccompProfileNested editOrNewSeccompProfileLike(V1SeccompProfile item return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(item)); } - public V1WindowsSecurityContextOptions buildWindowsOptions() { - return this.windowsOptions != null ? this.windowsOptions.build() : null; - } - - public A withWindowsOptions(V1WindowsSecurityContextOptions windowsOptions) { - this._visitables.remove("windowsOptions"); - if (windowsOptions != null) { - this.windowsOptions = new V1WindowsSecurityContextOptionsBuilder(windowsOptions); - this._visitables.get("windowsOptions").add(this.windowsOptions); - } else { - this.windowsOptions = null; - this._visitables.get("windowsOptions").remove(this.windowsOptions); - } - return (A) this; - } - - public boolean hasWindowsOptions() { - return this.windowsOptions != null; - } - - public WindowsOptionsNested withNewWindowsOptions() { - return new WindowsOptionsNested(null); + public WindowsOptionsNested editOrNewWindowsOptions() { + return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(new V1WindowsSecurityContextOptionsBuilder().build())); } - public WindowsOptionsNested withNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { - return new WindowsOptionsNested(item); + public WindowsOptionsNested editOrNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { + return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(item)); } - public WindowsOptionsNested editWindowsOptions() { - return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(null)); + public SeLinuxOptionsNested editSeLinuxOptions() { + return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(null)); } - public WindowsOptionsNested editOrNewWindowsOptions() { - return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(new V1WindowsSecurityContextOptionsBuilder().build())); + public SeccompProfileNested editSeccompProfile() { + return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(null)); } - public WindowsOptionsNested editOrNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { - return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(item)); + public WindowsOptionsNested editWindowsOptions() { + return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(null)); } public boolean equals(Object o) { @@ -394,6 +185,82 @@ public boolean equals(Object o) { return true; } + public Boolean getAllowPrivilegeEscalation() { + return this.allowPrivilegeEscalation; + } + + public Boolean getPrivileged() { + return this.privileged; + } + + public String getProcMount() { + return this.procMount; + } + + public Boolean getReadOnlyRootFilesystem() { + return this.readOnlyRootFilesystem; + } + + public Long getRunAsGroup() { + return this.runAsGroup; + } + + public Boolean getRunAsNonRoot() { + return this.runAsNonRoot; + } + + public Long getRunAsUser() { + return this.runAsUser; + } + + public boolean hasAllowPrivilegeEscalation() { + return this.allowPrivilegeEscalation != null; + } + + public boolean hasAppArmorProfile() { + return this.appArmorProfile != null; + } + + public boolean hasCapabilities() { + return this.capabilities != null; + } + + public boolean hasPrivileged() { + return this.privileged != null; + } + + public boolean hasProcMount() { + return this.procMount != null; + } + + public boolean hasReadOnlyRootFilesystem() { + return this.readOnlyRootFilesystem != null; + } + + public boolean hasRunAsGroup() { + return this.runAsGroup != null; + } + + public boolean hasRunAsNonRoot() { + return this.runAsNonRoot != null; + } + + public boolean hasRunAsUser() { + return this.runAsUser != null; + } + + public boolean hasSeLinuxOptions() { + return this.seLinuxOptions != null; + } + + public boolean hasSeccompProfile() { + return this.seccompProfile != null; + } + + public boolean hasWindowsOptions() { + return this.windowsOptions != null; + } + public int hashCode() { return Objects.hash(allowPrivilegeEscalation, appArmorProfile, capabilities, privileged, procMount, readOnlyRootFilesystem, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, seccompProfile, windowsOptions); } @@ -468,23 +335,160 @@ public A withAllowPrivilegeEscalation() { return withAllowPrivilegeEscalation(true); } + public A withAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { + this.allowPrivilegeEscalation = allowPrivilegeEscalation; + return (A) this; + } + + public A withAppArmorProfile(V1AppArmorProfile appArmorProfile) { + this._visitables.remove("appArmorProfile"); + if (appArmorProfile != null) { + this.appArmorProfile = new V1AppArmorProfileBuilder(appArmorProfile); + this._visitables.get("appArmorProfile").add(this.appArmorProfile); + } else { + this.appArmorProfile = null; + this._visitables.get("appArmorProfile").remove(this.appArmorProfile); + } + return (A) this; + } + + public A withCapabilities(V1Capabilities capabilities) { + this._visitables.remove("capabilities"); + if (capabilities != null) { + this.capabilities = new V1CapabilitiesBuilder(capabilities); + this._visitables.get("capabilities").add(this.capabilities); + } else { + this.capabilities = null; + this._visitables.get("capabilities").remove(this.capabilities); + } + return (A) this; + } + + public AppArmorProfileNested withNewAppArmorProfile() { + return new AppArmorProfileNested(null); + } + + public AppArmorProfileNested withNewAppArmorProfileLike(V1AppArmorProfile item) { + return new AppArmorProfileNested(item); + } + + public CapabilitiesNested withNewCapabilities() { + return new CapabilitiesNested(null); + } + + public CapabilitiesNested withNewCapabilitiesLike(V1Capabilities item) { + return new CapabilitiesNested(item); + } + + public SeLinuxOptionsNested withNewSeLinuxOptions() { + return new SeLinuxOptionsNested(null); + } + + public SeLinuxOptionsNested withNewSeLinuxOptionsLike(V1SELinuxOptions item) { + return new SeLinuxOptionsNested(item); + } + + public SeccompProfileNested withNewSeccompProfile() { + return new SeccompProfileNested(null); + } + + public SeccompProfileNested withNewSeccompProfileLike(V1SeccompProfile item) { + return new SeccompProfileNested(item); + } + + public WindowsOptionsNested withNewWindowsOptions() { + return new WindowsOptionsNested(null); + } + + public WindowsOptionsNested withNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { + return new WindowsOptionsNested(item); + } + public A withPrivileged() { return withPrivileged(true); } + public A withPrivileged(Boolean privileged) { + this.privileged = privileged; + return (A) this; + } + + public A withProcMount(String procMount) { + this.procMount = procMount; + return (A) this; + } + public A withReadOnlyRootFilesystem() { return withReadOnlyRootFilesystem(true); } + public A withReadOnlyRootFilesystem(Boolean readOnlyRootFilesystem) { + this.readOnlyRootFilesystem = readOnlyRootFilesystem; + return (A) this; + } + + public A withRunAsGroup(Long runAsGroup) { + this.runAsGroup = runAsGroup; + return (A) this; + } + public A withRunAsNonRoot() { return withRunAsNonRoot(true); } + + public A withRunAsNonRoot(Boolean runAsNonRoot) { + this.runAsNonRoot = runAsNonRoot; + return (A) this; + } + + public A withRunAsUser(Long runAsUser) { + this.runAsUser = runAsUser; + return (A) this; + } + + public A withSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { + this._visitables.remove("seLinuxOptions"); + if (seLinuxOptions != null) { + this.seLinuxOptions = new V1SELinuxOptionsBuilder(seLinuxOptions); + this._visitables.get("seLinuxOptions").add(this.seLinuxOptions); + } else { + this.seLinuxOptions = null; + this._visitables.get("seLinuxOptions").remove(this.seLinuxOptions); + } + return (A) this; + } + + public A withSeccompProfile(V1SeccompProfile seccompProfile) { + this._visitables.remove("seccompProfile"); + if (seccompProfile != null) { + this.seccompProfile = new V1SeccompProfileBuilder(seccompProfile); + this._visitables.get("seccompProfile").add(this.seccompProfile); + } else { + this.seccompProfile = null; + this._visitables.get("seccompProfile").remove(this.seccompProfile); + } + return (A) this; + } + + public A withWindowsOptions(V1WindowsSecurityContextOptions windowsOptions) { + this._visitables.remove("windowsOptions"); + if (windowsOptions != null) { + this.windowsOptions = new V1WindowsSecurityContextOptionsBuilder(windowsOptions); + this._visitables.get("windowsOptions").add(this.windowsOptions); + } else { + this.windowsOptions = null; + this._visitables.get("windowsOptions").remove(this.windowsOptions); + } + return (A) this; + } public class AppArmorProfileNested extends V1AppArmorProfileFluent> implements Nested{ + + V1AppArmorProfileBuilder builder; + AppArmorProfileNested(V1AppArmorProfile item) { this.builder = new V1AppArmorProfileBuilder(this, item); } - V1AppArmorProfileBuilder builder; - + public N and() { return (N) V1SecurityContextFluent.this.withAppArmorProfile(builder.build()); } @@ -493,14 +497,15 @@ public N endAppArmorProfile() { return and(); } - } public class CapabilitiesNested extends V1CapabilitiesFluent> implements Nested{ + + V1CapabilitiesBuilder builder; + CapabilitiesNested(V1Capabilities item) { this.builder = new V1CapabilitiesBuilder(this, item); } - V1CapabilitiesBuilder builder; - + public N and() { return (N) V1SecurityContextFluent.this.withCapabilities(builder.build()); } @@ -509,14 +514,15 @@ public N endCapabilities() { return and(); } - } public class SeLinuxOptionsNested extends V1SELinuxOptionsFluent> implements Nested{ + + V1SELinuxOptionsBuilder builder; + SeLinuxOptionsNested(V1SELinuxOptions item) { this.builder = new V1SELinuxOptionsBuilder(this, item); } - V1SELinuxOptionsBuilder builder; - + public N and() { return (N) V1SecurityContextFluent.this.withSeLinuxOptions(builder.build()); } @@ -525,14 +531,15 @@ public N endSeLinuxOptions() { return and(); } - } public class SeccompProfileNested extends V1SeccompProfileFluent> implements Nested{ + + V1SeccompProfileBuilder builder; + SeccompProfileNested(V1SeccompProfile item) { this.builder = new V1SeccompProfileBuilder(this, item); } - V1SeccompProfileBuilder builder; - + public N and() { return (N) V1SecurityContextFluent.this.withSeccompProfile(builder.build()); } @@ -541,14 +548,15 @@ public N endSeccompProfile() { return and(); } - } public class WindowsOptionsNested extends V1WindowsSecurityContextOptionsFluent> implements Nested{ + + V1WindowsSecurityContextOptionsBuilder builder; + WindowsOptionsNested(V1WindowsSecurityContextOptions item) { this.builder = new V1WindowsSecurityContextOptionsBuilder(this, item); } - V1WindowsSecurityContextOptionsBuilder builder; - + public N and() { return (N) V1SecurityContextFluent.this.withWindowsOptions(builder.build()); } @@ -557,7 +565,5 @@ public N endWindowsOptions() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldBuilder.java index 5312792e7b..a856e6ed47 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SelectableFieldBuilder extends V1SelectableFieldFluent implements VisitableBuilder{ + + V1SelectableFieldFluent fluent; + public V1SelectableFieldBuilder() { this(new V1SelectableField()); } @@ -11,22 +14,20 @@ public V1SelectableFieldBuilder(V1SelectableFieldFluent fluent) { this(fluent, new V1SelectableField()); } - public V1SelectableFieldBuilder(V1SelectableFieldFluent fluent,V1SelectableField instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SelectableFieldBuilder(V1SelectableField instance) { this.fluent = this; this.copyInstance(instance); } - V1SelectableFieldFluent fluent; + public V1SelectableFieldBuilder(V1SelectableFieldFluent fluent,V1SelectableField instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SelectableField build() { V1SelectableField buildable = new V1SelectableField(); buildable.setJsonPath(fluent.getJsonPath()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldFluent.java index 4fbb8fcad0..bc2062518b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1SelectableFieldFluent> extends BaseFluent{ + + private String jsonPath; + public V1SelectableFieldFluent() { } public V1SelectableFieldFluent(V1SelectableField instance) { this.copyInstance(instance); } - private String jsonPath; - + protected void copyInstance(V1SelectableField instance) { instance = instance != null ? instance : new V1SelectableField(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1SelectableField instance) { } } - public String getJsonPath() { - return this.jsonPath; - } - - public A withJsonPath(String jsonPath) { - this.jsonPath = jsonPath; - return (A) this; - } - - public boolean hasJsonPath() { - return this.jsonPath != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getJsonPath() { + return this.jsonPath; + } + + public boolean hasJsonPath() { + return this.jsonPath != null; + } + public int hashCode() { return Objects.hash(jsonPath); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withJsonPath(String jsonPath) { + this.jsonPath = jsonPath; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java index b796bbfb73..78fad13fce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SelfSubjectAccessReviewBuilder extends V1SelfSubjectAccessReviewFluent implements VisitableBuilder{ + + V1SelfSubjectAccessReviewFluent fluent; + public V1SelfSubjectAccessReviewBuilder() { this(new V1SelfSubjectAccessReview()); } @@ -11,17 +14,16 @@ public V1SelfSubjectAccessReviewBuilder(V1SelfSubjectAccessReviewFluent fluen this(fluent, new V1SelfSubjectAccessReview()); } - public V1SelfSubjectAccessReviewBuilder(V1SelfSubjectAccessReviewFluent fluent,V1SelfSubjectAccessReview instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SelfSubjectAccessReviewBuilder(V1SelfSubjectAccessReview instance) { this.fluent = this; this.copyInstance(instance); } - V1SelfSubjectAccessReviewFluent fluent; + public V1SelfSubjectAccessReviewBuilder(V1SelfSubjectAccessReviewFluent fluent,V1SelfSubjectAccessReview instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SelfSubjectAccessReview build() { V1SelfSubjectAccessReview buildable = new V1SelfSubjectAccessReview(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1SelfSubjectAccessReview build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java index 3e3553f1fe..2f7eb771d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1SelfSubjectAccessReviewFluent> extends BaseFluent{ - public V1SelfSubjectAccessReviewFluent() { - } - - public V1SelfSubjectAccessReviewFluent(V1SelfSubjectAccessReview instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1SelfSubjectAccessReviewSpecBuilder spec; private V1SubjectAccessReviewStatusBuilder status; - - protected void copyInstance(V1SelfSubjectAccessReview instance) { - instance = instance != null ? instance : new V1SelfSubjectAccessReview(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1SelfSubjectAccessReviewFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1SelfSubjectAccessReviewFluent(V1SelfSubjectAccessReview instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1SelfSubjectAccessReviewSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1SubjectAccessReviewStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1SelfSubjectAccessReview instance) { + instance = instance != null ? instance : new V1SelfSubjectAccessReview(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1SelfSubjectAccessReviewSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1SelfSubjectAccessReviewSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1SelfSubjectAccessReviewSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1SelfSubjectAccessReviewSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1SelfSubjectAccessReviewSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1SelfSubjectAccessReviewSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1SubjectAccessReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1SubjectAccessReviewStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1SubjectAccessReviewStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SubjectAccessReviewStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SubjectAccessReviewStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1SelfSubjectAccessReviewSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1SelfSubjectAccessReviewSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1SelfSubjectAccessReviewSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1SubjectAccessReviewStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1SubjectAccessReviewStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1SelfSubjectAccessReviewFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1SelfSubjectAccessReviewSpecFluent> implements Nested{ + + V1SelfSubjectAccessReviewSpecBuilder builder; + SpecNested(V1SelfSubjectAccessReviewSpec item) { this.builder = new V1SelfSubjectAccessReviewSpecBuilder(this, item); } - V1SelfSubjectAccessReviewSpecBuilder builder; - + public N and() { return (N) V1SelfSubjectAccessReviewFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1SubjectAccessReviewStatusFluent> implements Nested{ + + V1SubjectAccessReviewStatusBuilder builder; + StatusNested(V1SubjectAccessReviewStatus item) { this.builder = new V1SubjectAccessReviewStatusBuilder(this, item); } - V1SubjectAccessReviewStatusBuilder builder; - + public N and() { return (N) V1SelfSubjectAccessReviewFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java index 1211188ddd..e7148ccb88 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SelfSubjectAccessReviewSpecBuilder extends V1SelfSubjectAccessReviewSpecFluent implements VisitableBuilder{ + + V1SelfSubjectAccessReviewSpecFluent fluent; + public V1SelfSubjectAccessReviewSpecBuilder() { this(new V1SelfSubjectAccessReviewSpec()); } @@ -11,17 +14,16 @@ public V1SelfSubjectAccessReviewSpecBuilder(V1SelfSubjectAccessReviewSpecFluent< this(fluent, new V1SelfSubjectAccessReviewSpec()); } - public V1SelfSubjectAccessReviewSpecBuilder(V1SelfSubjectAccessReviewSpecFluent fluent,V1SelfSubjectAccessReviewSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SelfSubjectAccessReviewSpecBuilder(V1SelfSubjectAccessReviewSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1SelfSubjectAccessReviewSpecFluent fluent; + public V1SelfSubjectAccessReviewSpecBuilder(V1SelfSubjectAccessReviewSpecFluent fluent,V1SelfSubjectAccessReviewSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SelfSubjectAccessReviewSpec build() { V1SelfSubjectAccessReviewSpec buildable = new V1SelfSubjectAccessReviewSpec(); buildable.setNonResourceAttributes(fluent.buildNonResourceAttributes()); @@ -29,5 +31,4 @@ public V1SelfSubjectAccessReviewSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java index 0f1dc6ab29..9e4f10286c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java @@ -1,27 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1SelfSubjectAccessReviewSpecFluent> extends BaseFluent{ + + private V1NonResourceAttributesBuilder nonResourceAttributes; + private V1ResourceAttributesBuilder resourceAttributes; + public V1SelfSubjectAccessReviewSpecFluent() { } public V1SelfSubjectAccessReviewSpecFluent(V1SelfSubjectAccessReviewSpec instance) { this.copyInstance(instance); } - private V1NonResourceAttributesBuilder nonResourceAttributes; - private V1ResourceAttributesBuilder resourceAttributes; + + public V1NonResourceAttributes buildNonResourceAttributes() { + return this.nonResourceAttributes != null ? this.nonResourceAttributes.build() : null; + } + + public V1ResourceAttributes buildResourceAttributes() { + return this.resourceAttributes != null ? this.resourceAttributes.build() : null; + } protected void copyInstance(V1SelfSubjectAccessReviewSpec instance) { instance = instance != null ? instance : new V1SelfSubjectAccessReviewSpec(); @@ -31,34 +41,6 @@ protected void copyInstance(V1SelfSubjectAccessReviewSpec instance) { } } - public V1NonResourceAttributes buildNonResourceAttributes() { - return this.nonResourceAttributes != null ? this.nonResourceAttributes.build() : null; - } - - public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { - this._visitables.remove("nonResourceAttributes"); - if (nonResourceAttributes != null) { - this.nonResourceAttributes = new V1NonResourceAttributesBuilder(nonResourceAttributes); - this._visitables.get("nonResourceAttributes").add(this.nonResourceAttributes); - } else { - this.nonResourceAttributes = null; - this._visitables.get("nonResourceAttributes").remove(this.nonResourceAttributes); - } - return (A) this; - } - - public boolean hasNonResourceAttributes() { - return this.nonResourceAttributes != null; - } - - public NonResourceAttributesNested withNewNonResourceAttributes() { - return new NonResourceAttributesNested(null); - } - - public NonResourceAttributesNested withNewNonResourceAttributesLike(V1NonResourceAttributes item) { - return new NonResourceAttributesNested(item); - } - public NonResourceAttributesNested editNonResourceAttributes() { return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(null)); } @@ -71,38 +53,6 @@ public NonResourceAttributesNested editOrNewNonResourceAttributesLike(V1NonRe return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(item)); } - public V1ResourceAttributes buildResourceAttributes() { - return this.resourceAttributes != null ? this.resourceAttributes.build() : null; - } - - public A withResourceAttributes(V1ResourceAttributes resourceAttributes) { - this._visitables.remove("resourceAttributes"); - if (resourceAttributes != null) { - this.resourceAttributes = new V1ResourceAttributesBuilder(resourceAttributes); - this._visitables.get("resourceAttributes").add(this.resourceAttributes); - } else { - this.resourceAttributes = null; - this._visitables.get("resourceAttributes").remove(this.resourceAttributes); - } - return (A) this; - } - - public boolean hasResourceAttributes() { - return this.resourceAttributes != null; - } - - public ResourceAttributesNested withNewResourceAttributes() { - return new ResourceAttributesNested(null); - } - - public ResourceAttributesNested withNewResourceAttributesLike(V1ResourceAttributes item) { - return new ResourceAttributesNested(item); - } - - public ResourceAttributesNested editResourceAttributes() { - return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(null)); - } - public ResourceAttributesNested editOrNewResourceAttributes() { return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(new V1ResourceAttributesBuilder().build())); } @@ -111,6 +61,10 @@ public ResourceAttributesNested editOrNewResourceAttributesLike(V1ResourceAtt return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(item)); } + public ResourceAttributesNested editResourceAttributes() { + return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -131,6 +85,14 @@ public boolean equals(Object o) { return true; } + public boolean hasNonResourceAttributes() { + return this.nonResourceAttributes != null; + } + + public boolean hasResourceAttributes() { + return this.resourceAttributes != null; + } + public int hashCode() { return Objects.hash(nonResourceAttributes, resourceAttributes); } @@ -150,12 +112,54 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public NonResourceAttributesNested withNewNonResourceAttributes() { + return new NonResourceAttributesNested(null); + } + + public NonResourceAttributesNested withNewNonResourceAttributesLike(V1NonResourceAttributes item) { + return new NonResourceAttributesNested(item); + } + + public ResourceAttributesNested withNewResourceAttributes() { + return new ResourceAttributesNested(null); + } + + public ResourceAttributesNested withNewResourceAttributesLike(V1ResourceAttributes item) { + return new ResourceAttributesNested(item); + } + + public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { + this._visitables.remove("nonResourceAttributes"); + if (nonResourceAttributes != null) { + this.nonResourceAttributes = new V1NonResourceAttributesBuilder(nonResourceAttributes); + this._visitables.get("nonResourceAttributes").add(this.nonResourceAttributes); + } else { + this.nonResourceAttributes = null; + this._visitables.get("nonResourceAttributes").remove(this.nonResourceAttributes); + } + return (A) this; + } + + public A withResourceAttributes(V1ResourceAttributes resourceAttributes) { + this._visitables.remove("resourceAttributes"); + if (resourceAttributes != null) { + this.resourceAttributes = new V1ResourceAttributesBuilder(resourceAttributes); + this._visitables.get("resourceAttributes").add(this.resourceAttributes); + } else { + this.resourceAttributes = null; + this._visitables.get("resourceAttributes").remove(this.resourceAttributes); + } + return (A) this; + } public class NonResourceAttributesNested extends V1NonResourceAttributesFluent> implements Nested{ + + V1NonResourceAttributesBuilder builder; + NonResourceAttributesNested(V1NonResourceAttributes item) { this.builder = new V1NonResourceAttributesBuilder(this, item); } - V1NonResourceAttributesBuilder builder; - + public N and() { return (N) V1SelfSubjectAccessReviewSpecFluent.this.withNonResourceAttributes(builder.build()); } @@ -164,14 +168,15 @@ public N endNonResourceAttributes() { return and(); } - } public class ResourceAttributesNested extends V1ResourceAttributesFluent> implements Nested{ + + V1ResourceAttributesBuilder builder; + ResourceAttributesNested(V1ResourceAttributes item) { this.builder = new V1ResourceAttributesBuilder(this, item); } - V1ResourceAttributesBuilder builder; - + public N and() { return (N) V1SelfSubjectAccessReviewSpecFluent.this.withResourceAttributes(builder.build()); } @@ -180,7 +185,5 @@ public N endResourceAttributes() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewBuilder.java index 89bb154c05..6e71b19141 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SelfSubjectReviewBuilder extends V1SelfSubjectReviewFluent implements VisitableBuilder{ + + V1SelfSubjectReviewFluent fluent; + public V1SelfSubjectReviewBuilder() { this(new V1SelfSubjectReview()); } @@ -11,17 +14,16 @@ public V1SelfSubjectReviewBuilder(V1SelfSubjectReviewFluent fluent) { this(fluent, new V1SelfSubjectReview()); } - public V1SelfSubjectReviewBuilder(V1SelfSubjectReviewFluent fluent,V1SelfSubjectReview instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SelfSubjectReviewBuilder(V1SelfSubjectReview instance) { this.fluent = this; this.copyInstance(instance); } - V1SelfSubjectReviewFluent fluent; + public V1SelfSubjectReviewBuilder(V1SelfSubjectReviewFluent fluent,V1SelfSubjectReview instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SelfSubjectReview build() { V1SelfSubjectReview buildable = new V1SelfSubjectReview(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1SelfSubjectReview build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewFluent.java index c534784a65..7149c5c358 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1SelfSubjectReviewFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1SelfSubjectReviewStatusBuilder status; + public V1SelfSubjectReviewFluent() { } public V1SelfSubjectReviewFluent(V1SelfSubjectReview instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1SelfSubjectReviewStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1SelfSubjectReviewStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1SelfSubjectReview instance) { instance = instance != null ? instance : new V1SelfSubjectReview(); @@ -35,60 +45,6 @@ protected void copyInstance(V1SelfSubjectReview instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1SelfSubjectReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1SelfSubjectReviewStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1SelfSubjectReviewStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1SelfSubjectReviewStatus item) { - return new StatusNested(item); - } - - public StatusNested editStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); - } - public StatusNested editOrNewStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SelfSubjectReviewStatusBuilder().build())); } @@ -141,6 +65,10 @@ public StatusNested editOrNewStatusLike(V1SelfSubjectReviewStatus item) { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, status); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1SelfSubjectReviewStatus item) { + return new StatusNested(item); + } + + public A withStatus(V1SelfSubjectReviewStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1SelfSubjectReviewStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1SelfSubjectReviewFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class StatusNested extends V1SelfSubjectReviewStatusFluent> implements Nested{ + + V1SelfSubjectReviewStatusBuilder builder; + StatusNested(V1SelfSubjectReviewStatus item) { this.builder = new V1SelfSubjectReviewStatusBuilder(this, item); } - V1SelfSubjectReviewStatusBuilder builder; - + public N and() { return (N) V1SelfSubjectReviewFluent.this.withStatus(builder.build()); } @@ -226,7 +231,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusBuilder.java index 842341bf02..c2f2fb5c60 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SelfSubjectReviewStatusBuilder extends V1SelfSubjectReviewStatusFluent implements VisitableBuilder{ + + V1SelfSubjectReviewStatusFluent fluent; + public V1SelfSubjectReviewStatusBuilder() { this(new V1SelfSubjectReviewStatus()); } @@ -11,22 +14,20 @@ public V1SelfSubjectReviewStatusBuilder(V1SelfSubjectReviewStatusFluent fluen this(fluent, new V1SelfSubjectReviewStatus()); } - public V1SelfSubjectReviewStatusBuilder(V1SelfSubjectReviewStatusFluent fluent,V1SelfSubjectReviewStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SelfSubjectReviewStatusBuilder(V1SelfSubjectReviewStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1SelfSubjectReviewStatusFluent fluent; + public V1SelfSubjectReviewStatusBuilder(V1SelfSubjectReviewStatusFluent fluent,V1SelfSubjectReviewStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SelfSubjectReviewStatus build() { V1SelfSubjectReviewStatus buildable = new V1SelfSubjectReviewStatus(); buildable.setUserInfo(fluent.buildUserInfo()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusFluent.java index 3dc9c2e201..7c478b2843 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1SelfSubjectReviewStatusFluent> extends BaseFluent{ + + private V1UserInfoBuilder userInfo; + public V1SelfSubjectReviewStatusFluent() { } public V1SelfSubjectReviewStatusFluent(V1SelfSubjectReviewStatus instance) { this.copyInstance(instance); } - private V1UserInfoBuilder userInfo; + + public V1UserInfo buildUserInfo() { + return this.userInfo != null ? this.userInfo.build() : null; + } protected void copyInstance(V1SelfSubjectReviewStatus instance) { instance = instance != null ? instance : new V1SelfSubjectReviewStatus(); @@ -29,38 +35,6 @@ protected void copyInstance(V1SelfSubjectReviewStatus instance) { } } - public V1UserInfo buildUserInfo() { - return this.userInfo != null ? this.userInfo.build() : null; - } - - public A withUserInfo(V1UserInfo userInfo) { - this._visitables.remove("userInfo"); - if (userInfo != null) { - this.userInfo = new V1UserInfoBuilder(userInfo); - this._visitables.get("userInfo").add(this.userInfo); - } else { - this.userInfo = null; - this._visitables.get("userInfo").remove(this.userInfo); - } - return (A) this; - } - - public boolean hasUserInfo() { - return this.userInfo != null; - } - - public UserInfoNested withNewUserInfo() { - return new UserInfoNested(null); - } - - public UserInfoNested withNewUserInfoLike(V1UserInfo item) { - return new UserInfoNested(item); - } - - public UserInfoNested editUserInfo() { - return this.withNewUserInfoLike(Optional.ofNullable(this.buildUserInfo()).orElse(null)); - } - public UserInfoNested editOrNewUserInfo() { return this.withNewUserInfoLike(Optional.ofNullable(this.buildUserInfo()).orElse(new V1UserInfoBuilder().build())); } @@ -69,6 +43,10 @@ public UserInfoNested editOrNewUserInfoLike(V1UserInfo item) { return this.withNewUserInfoLike(Optional.ofNullable(this.buildUserInfo()).orElse(item)); } + public UserInfoNested editUserInfo() { + return this.withNewUserInfoLike(Optional.ofNullable(this.buildUserInfo()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasUserInfo() { + return this.userInfo != null; + } + public int hashCode() { return Objects.hash(userInfo); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public UserInfoNested withNewUserInfo() { + return new UserInfoNested(null); + } + + public UserInfoNested withNewUserInfoLike(V1UserInfo item) { + return new UserInfoNested(item); + } + + public A withUserInfo(V1UserInfo userInfo) { + this._visitables.remove("userInfo"); + if (userInfo != null) { + this.userInfo = new V1UserInfoBuilder(userInfo); + this._visitables.get("userInfo").add(this.userInfo); + } else { + this.userInfo = null; + this._visitables.get("userInfo").remove(this.userInfo); + } + return (A) this; + } public class UserInfoNested extends V1UserInfoFluent> implements Nested{ + + V1UserInfoBuilder builder; + UserInfoNested(V1UserInfo item) { this.builder = new V1UserInfoBuilder(this, item); } - V1UserInfoBuilder builder; - + public N and() { return (N) V1SelfSubjectReviewStatusFluent.this.withUserInfo(builder.build()); } @@ -114,7 +118,5 @@ public N endUserInfo() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java index 8e7e5ae084..e342dd6f86 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SelfSubjectRulesReviewBuilder extends V1SelfSubjectRulesReviewFluent implements VisitableBuilder{ + + V1SelfSubjectRulesReviewFluent fluent; + public V1SelfSubjectRulesReviewBuilder() { this(new V1SelfSubjectRulesReview()); } @@ -11,17 +14,16 @@ public V1SelfSubjectRulesReviewBuilder(V1SelfSubjectRulesReviewFluent fluent) this(fluent, new V1SelfSubjectRulesReview()); } - public V1SelfSubjectRulesReviewBuilder(V1SelfSubjectRulesReviewFluent fluent,V1SelfSubjectRulesReview instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SelfSubjectRulesReviewBuilder(V1SelfSubjectRulesReview instance) { this.fluent = this; this.copyInstance(instance); } - V1SelfSubjectRulesReviewFluent fluent; + public V1SelfSubjectRulesReviewBuilder(V1SelfSubjectRulesReviewFluent fluent,V1SelfSubjectRulesReview instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SelfSubjectRulesReview build() { V1SelfSubjectRulesReview buildable = new V1SelfSubjectRulesReview(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1SelfSubjectRulesReview build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java index 114e960959..a860e70bc0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1SelfSubjectRulesReviewFluent> extends BaseFluent{ - public V1SelfSubjectRulesReviewFluent() { - } - - public V1SelfSubjectRulesReviewFluent(V1SelfSubjectRulesReview instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1SelfSubjectRulesReviewSpecBuilder spec; private V1SubjectRulesReviewStatusBuilder status; - - protected void copyInstance(V1SelfSubjectRulesReview instance) { - instance = instance != null ? instance : new V1SelfSubjectRulesReview(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1SelfSubjectRulesReviewFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1SelfSubjectRulesReviewFluent(V1SelfSubjectRulesReview instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1SelfSubjectRulesReviewSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1SubjectRulesReviewStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1SelfSubjectRulesReview instance) { + instance = instance != null ? instance : new V1SelfSubjectRulesReview(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1SelfSubjectRulesReviewSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1SelfSubjectRulesReviewSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1SelfSubjectRulesReviewSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1SelfSubjectRulesReviewSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1SelfSubjectRulesReviewSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1SelfSubjectRulesReviewSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1SubjectRulesReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1SubjectRulesReviewStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1SubjectRulesReviewStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SubjectRulesReviewStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1SubjectRulesReviewStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1SubjectRulesReviewStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SubjectRulesReviewStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1SubjectRulesReviewStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1SelfSubjectRulesReviewSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1SubjectRulesReviewStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1SelfSubjectRulesReviewSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1SelfSubjectRulesReviewSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1SubjectRulesReviewStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1SubjectRulesReviewStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1SelfSubjectRulesReviewFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1SelfSubjectRulesReviewSpecFluent> implements Nested{ + + V1SelfSubjectRulesReviewSpecBuilder builder; + SpecNested(V1SelfSubjectRulesReviewSpec item) { this.builder = new V1SelfSubjectRulesReviewSpecBuilder(this, item); } - V1SelfSubjectRulesReviewSpecBuilder builder; - + public N and() { return (N) V1SelfSubjectRulesReviewFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1SubjectRulesReviewStatusFluent> implements Nested{ + + V1SubjectRulesReviewStatusBuilder builder; + StatusNested(V1SubjectRulesReviewStatus item) { this.builder = new V1SubjectRulesReviewStatusBuilder(this, item); } - V1SubjectRulesReviewStatusBuilder builder; - + public N and() { return (N) V1SelfSubjectRulesReviewFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java index 8ce16ee2c1..34fc492263 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SelfSubjectRulesReviewSpecBuilder extends V1SelfSubjectRulesReviewSpecFluent implements VisitableBuilder{ + + V1SelfSubjectRulesReviewSpecFluent fluent; + public V1SelfSubjectRulesReviewSpecBuilder() { this(new V1SelfSubjectRulesReviewSpec()); } @@ -11,22 +14,20 @@ public V1SelfSubjectRulesReviewSpecBuilder(V1SelfSubjectRulesReviewSpecFluent this(fluent, new V1SelfSubjectRulesReviewSpec()); } - public V1SelfSubjectRulesReviewSpecBuilder(V1SelfSubjectRulesReviewSpecFluent fluent,V1SelfSubjectRulesReviewSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SelfSubjectRulesReviewSpecBuilder(V1SelfSubjectRulesReviewSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1SelfSubjectRulesReviewSpecFluent fluent; + public V1SelfSubjectRulesReviewSpecBuilder(V1SelfSubjectRulesReviewSpecFluent fluent,V1SelfSubjectRulesReviewSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SelfSubjectRulesReviewSpec build() { V1SelfSubjectRulesReviewSpec buildable = new V1SelfSubjectRulesReviewSpec(); buildable.setNamespace(fluent.getNamespace()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java index b15cf2c189..119984c334 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1SelfSubjectRulesReviewSpecFluent> extends BaseFluent{ + + private String namespace; + public V1SelfSubjectRulesReviewSpecFluent() { } public V1SelfSubjectRulesReviewSpecFluent(V1SelfSubjectRulesReviewSpec instance) { this.copyInstance(instance); } - private String namespace; - + protected void copyInstance(V1SelfSubjectRulesReviewSpec instance) { instance = instance != null ? instance : new V1SelfSubjectRulesReviewSpec(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1SelfSubjectRulesReviewSpec instance) { } } - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getNamespace() { + return this.namespace; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + public int hashCode() { return Objects.hash(namespace); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java index 4307a13a08..8af24bc88e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ServerAddressByClientCIDRBuilder extends V1ServerAddressByClientCIDRFluent implements VisitableBuilder{ + + V1ServerAddressByClientCIDRFluent fluent; + public V1ServerAddressByClientCIDRBuilder() { this(new V1ServerAddressByClientCIDR()); } @@ -11,17 +14,16 @@ public V1ServerAddressByClientCIDRBuilder(V1ServerAddressByClientCIDRFluent f this(fluent, new V1ServerAddressByClientCIDR()); } - public V1ServerAddressByClientCIDRBuilder(V1ServerAddressByClientCIDRFluent fluent,V1ServerAddressByClientCIDR instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServerAddressByClientCIDRBuilder(V1ServerAddressByClientCIDR instance) { this.fluent = this; this.copyInstance(instance); } - V1ServerAddressByClientCIDRFluent fluent; + public V1ServerAddressByClientCIDRBuilder(V1ServerAddressByClientCIDRFluent fluent,V1ServerAddressByClientCIDR instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServerAddressByClientCIDR build() { V1ServerAddressByClientCIDR buildable = new V1ServerAddressByClientCIDR(); buildable.setClientCIDR(fluent.getClientCIDR()); @@ -29,5 +31,4 @@ public V1ServerAddressByClientCIDR build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java index e72bcc7821..963c0aca49 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ServerAddressByClientCIDRFluent> extends BaseFluent{ + + private String clientCIDR; + private String serverAddress; + public V1ServerAddressByClientCIDRFluent() { } public V1ServerAddressByClientCIDRFluent(V1ServerAddressByClientCIDR instance) { this.copyInstance(instance); } - private String clientCIDR; - private String serverAddress; - + protected void copyInstance(V1ServerAddressByClientCIDR instance) { instance = instance != null ? instance : new V1ServerAddressByClientCIDR(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1ServerAddressByClientCIDR instance) { } } - public String getClientCIDR() { - return this.clientCIDR; - } - - public A withClientCIDR(String clientCIDR) { - this.clientCIDR = clientCIDR; - return (A) this; - } - - public boolean hasClientCIDR() { - return this.clientCIDR != null; - } - - public String getServerAddress() { - return this.serverAddress; - } - - public A withServerAddress(String serverAddress) { - this.serverAddress = serverAddress; - return (A) this; - } - - public boolean hasServerAddress() { - return this.serverAddress != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getClientCIDR() { + return this.clientCIDR; + } + + public String getServerAddress() { + return this.serverAddress; + } + + public boolean hasClientCIDR() { + return this.clientCIDR != null; + } + + public boolean hasServerAddress() { + return this.serverAddress != null; + } + public int hashCode() { return Objects.hash(clientCIDR, serverAddress); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withClientCIDR(String clientCIDR) { + this.clientCIDR = clientCIDR; + return (A) this; + } + + public A withServerAddress(String serverAddress) { + this.serverAddress = serverAddress; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java index a72a4db728..3fb61fcf15 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ServiceAccountBuilder extends V1ServiceAccountFluent implements VisitableBuilder{ + + V1ServiceAccountFluent fluent; + public V1ServiceAccountBuilder() { this(new V1ServiceAccount()); } @@ -11,17 +14,16 @@ public V1ServiceAccountBuilder(V1ServiceAccountFluent fluent) { this(fluent, new V1ServiceAccount()); } - public V1ServiceAccountBuilder(V1ServiceAccountFluent fluent,V1ServiceAccount instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceAccountBuilder(V1ServiceAccount instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceAccountFluent fluent; + public V1ServiceAccountBuilder(V1ServiceAccountFluent fluent,V1ServiceAccount instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceAccount build() { V1ServiceAccount buildable = new V1ServiceAccount(); buildable.setApiVersion(fluent.getApiVersion()); @@ -33,5 +35,4 @@ public V1ServiceAccount build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java index 2fcd80983c..fe014f3892 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java @@ -1,107 +1,81 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Boolean; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ServiceAccountFluent> extends BaseFluent{ - public V1ServiceAccountFluent() { - } - - public V1ServiceAccountFluent(V1ServiceAccount instance) { - this.copyInstance(instance); - } + private String apiVersion; private Boolean automountServiceAccountToken; private ArrayList imagePullSecrets; private String kind; private V1ObjectMetaBuilder metadata; private ArrayList secrets; - - protected void copyInstance(V1ServiceAccount instance) { - instance = instance != null ? instance : new V1ServiceAccount(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withAutomountServiceAccountToken(instance.getAutomountServiceAccountToken()); - this.withImagePullSecrets(instance.getImagePullSecrets()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSecrets(instance.getSecrets()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public Boolean getAutomountServiceAccountToken() { - return this.automountServiceAccountToken; - } - - public A withAutomountServiceAccountToken(Boolean automountServiceAccountToken) { - this.automountServiceAccountToken = automountServiceAccountToken; - return (A) this; + + public V1ServiceAccountFluent() { } - public boolean hasAutomountServiceAccountToken() { - return this.automountServiceAccountToken != null; + public V1ServiceAccountFluent(V1ServiceAccount instance) { + this.copyInstance(instance); } - - public A addToImagePullSecrets(int index,V1LocalObjectReference item) { + + public A addAllToImagePullSecrets(Collection items) { if (this.imagePullSecrets == null) { this.imagePullSecrets = new ArrayList(); } - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - if (index < 0 || index >= imagePullSecrets.size()) { - _visitables.get("imagePullSecrets").add(builder); - imagePullSecrets.add(builder); - } else { + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); _visitables.get("imagePullSecrets").add(builder); - imagePullSecrets.add(index, builder); + this.imagePullSecrets.add(builder); } return (A) this; } - public A setToImagePullSecrets(int index,V1LocalObjectReference item) { - if (this.imagePullSecrets == null) { - this.imagePullSecrets = new ArrayList(); + public A addAllToSecrets(Collection items) { + if (this.secrets == null) { + this.secrets = new ArrayList(); } - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - if (index < 0 || index >= imagePullSecrets.size()) { - _visitables.get("imagePullSecrets").add(builder); - imagePullSecrets.add(builder); - } else { - _visitables.get("imagePullSecrets").add(builder); - imagePullSecrets.set(index, builder); + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("secrets").add(builder); + this.secrets.add(builder); } return (A) this; } + public ImagePullSecretsNested addNewImagePullSecret() { + return new ImagePullSecretsNested(-1, null); + } + + public ImagePullSecretsNested addNewImagePullSecretLike(V1LocalObjectReference item) { + return new ImagePullSecretsNested(-1, item); + } + + public SecretsNested addNewSecret() { + return new SecretsNested(-1, null); + } + + public SecretsNested addNewSecretLike(V1ObjectReference item) { + return new SecretsNested(-1, item); + } + public A addToImagePullSecrets(V1LocalObjectReference... items) { if (this.imagePullSecrets == null) { this.imagePullSecrets = new ArrayList(); @@ -114,74 +88,72 @@ public A addToImagePullSecrets(V1LocalObjectReference... items) { return (A) this; } - public A addAllToImagePullSecrets(Collection items) { + public A addToImagePullSecrets(int index,V1LocalObjectReference item) { if (this.imagePullSecrets == null) { this.imagePullSecrets = new ArrayList(); } - for (V1LocalObjectReference item : items) { - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + if (index < 0 || index >= imagePullSecrets.size()) { _visitables.get("imagePullSecrets").add(builder); - this.imagePullSecrets.add(builder); + imagePullSecrets.add(builder); + } else { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.add(index, builder); } return (A) this; } - public A removeFromImagePullSecrets(V1LocalObjectReference... items) { - if (this.imagePullSecrets == null) { - return (A) this; + public A addToSecrets(V1ObjectReference... items) { + if (this.secrets == null) { + this.secrets = new ArrayList(); } - for (V1LocalObjectReference item : items) { - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables.get("imagePullSecrets").remove(builder); - this.imagePullSecrets.remove(builder); + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("secrets").add(builder); + this.secrets.add(builder); } return (A) this; } - public A removeAllFromImagePullSecrets(Collection items) { - if (this.imagePullSecrets == null) { - return (A) this; + public A addToSecrets(int index,V1ObjectReference item) { + if (this.secrets == null) { + this.secrets = new ArrayList(); } - for (V1LocalObjectReference item : items) { - V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables.get("imagePullSecrets").remove(builder); - this.imagePullSecrets.remove(builder); + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + if (index < 0 || index >= secrets.size()) { + _visitables.get("secrets").add(builder); + secrets.add(builder); + } else { + _visitables.get("secrets").add(builder); + secrets.add(index, builder); } return (A) this; } - public A removeMatchingFromImagePullSecrets(Predicate predicate) { - if (imagePullSecrets == null) { - return (A) this; - } - Iterator each = imagePullSecrets.iterator(); - List visitables = _visitables.get("imagePullSecrets"); - while (each.hasNext()) { - V1LocalObjectReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1LocalObjectReference buildFirstImagePullSecret() { + return this.imagePullSecrets.get(0).build(); } - public List buildImagePullSecrets() { - return this.imagePullSecrets != null ? build(imagePullSecrets) : null; + public V1ObjectReference buildFirstSecret() { + return this.secrets.get(0).build(); } public V1LocalObjectReference buildImagePullSecret(int index) { return this.imagePullSecrets.get(index).build(); } - public V1LocalObjectReference buildFirstImagePullSecret() { - return this.imagePullSecrets.get(0).build(); + public List buildImagePullSecrets() { + return this.imagePullSecrets != null ? build(imagePullSecrets) : null; } public V1LocalObjectReference buildLastImagePullSecret() { return this.imagePullSecrets.get(imagePullSecrets.size() - 1).build(); } + public V1ObjectReference buildLastSecret() { + return this.secrets.get(secrets.size() - 1).build(); + } + public V1LocalObjectReference buildMatchingImagePullSecret(Predicate predicate) { for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { if (predicate.test(item)) { @@ -191,73 +163,60 @@ public V1LocalObjectReference buildMatchingImagePullSecret(Predicate predicate) { - for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { + public V1ObjectReference buildMatchingSecret(Predicate predicate) { + for (V1ObjectReferenceBuilder item : secrets) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withImagePullSecrets(List imagePullSecrets) { - if (this.imagePullSecrets != null) { - this._visitables.get("imagePullSecrets").clear(); - } - if (imagePullSecrets != null) { - this.imagePullSecrets = new ArrayList(); - for (V1LocalObjectReference item : imagePullSecrets) { - this.addToImagePullSecrets(item); - } - } else { - this.imagePullSecrets = null; - } - return (A) this; + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withImagePullSecrets(V1LocalObjectReference... imagePullSecrets) { - if (this.imagePullSecrets != null) { - this.imagePullSecrets.clear(); - _visitables.remove("imagePullSecrets"); - } - if (imagePullSecrets != null) { - for (V1LocalObjectReference item : imagePullSecrets) { - this.addToImagePullSecrets(item); - } - } - return (A) this; + public V1ObjectReference buildSecret(int index) { + return this.secrets.get(index).build(); } - public boolean hasImagePullSecrets() { - return this.imagePullSecrets != null && !(this.imagePullSecrets.isEmpty()); + public List buildSecrets() { + return this.secrets != null ? build(secrets) : null; } - public ImagePullSecretsNested addNewImagePullSecret() { - return new ImagePullSecretsNested(-1, null); + protected void copyInstance(V1ServiceAccount instance) { + instance = instance != null ? instance : new V1ServiceAccount(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withAutomountServiceAccountToken(instance.getAutomountServiceAccountToken()); + this.withImagePullSecrets(instance.getImagePullSecrets()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSecrets(instance.getSecrets()); + } } - public ImagePullSecretsNested addNewImagePullSecretLike(V1LocalObjectReference item) { - return new ImagePullSecretsNested(-1, item); + public ImagePullSecretsNested editFirstImagePullSecret() { + if (imagePullSecrets.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "imagePullSecrets")); + } + return this.setNewImagePullSecretLike(0, this.buildImagePullSecret(0)); } - public ImagePullSecretsNested setNewImagePullSecretLike(int index,V1LocalObjectReference item) { - return new ImagePullSecretsNested(index, item); + public SecretsNested editFirstSecret() { + if (secrets.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "secrets")); + } + return this.setNewSecretLike(0, this.buildSecret(0)); } public ImagePullSecretsNested editImagePullSecret(int index) { - if (index <= imagePullSecrets.size()) { + if (imagePullSecrets.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "imagePullSecrets")); } return this.setNewImagePullSecretLike(index, this.buildImagePullSecret(index)); } - public ImagePullSecretsNested editFirstImagePullSecret() { - if (imagePullSecrets.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "imagePullSecrets")); - } - return this.setNewImagePullSecretLike(0, this.buildImagePullSecret(0)); - } - public ImagePullSecretsNested editLastImagePullSecret() { int index = imagePullSecrets.size() - 1; if (index < 0) { @@ -266,9 +225,17 @@ public ImagePullSecretsNested editLastImagePullSecret() { return this.setNewImagePullSecretLike(index, this.buildImagePullSecret(index)); } - public ImagePullSecretsNested editMatchingImagePullSecret(Predicate predicate) { - int index = -1; - for (int i = 0;i < imagePullSecrets.size();i++) { + public SecretsNested editLastSecret() { + int index = secrets.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "secrets")); + } + return this.setNewSecretLike(index, this.buildSecret(index)); + } + + public ImagePullSecretsNested editMatchingImagePullSecret(Predicate predicate) { + int index = -1; + for (int i = 0;i < imagePullSecrets.size();i++) { if (predicate.test(imagePullSecrets.get(i))) { index = i; break; @@ -280,109 +247,161 @@ public ImagePullSecretsNested editMatchingImagePullSecret(Predicate editMatchingSecret(Predicate predicate) { + int index = -1; + for (int i = 0;i < secrets.size();i++) { + if (predicate.test(secrets.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "secrets")); + } + return this.setNewSecretLike(index, this.buildSecret(index)); } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public boolean hasKind() { - return this.kind != null; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); + public SecretsNested editSecret(int index) { + if (secrets.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "secrets")); } - return (A) this; + return this.setNewSecretLike(index, this.buildSecret(index)); } - public boolean hasMetadata() { - return this.metadata != null; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ServiceAccountFluent that = (V1ServiceAccountFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(automountServiceAccountToken, that.automountServiceAccountToken))) { + return false; + } + if (!(Objects.equals(imagePullSecrets, that.imagePullSecrets))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(secrets, that.secrets))) { + return false; + } + return true; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public String getApiVersion() { + return this.apiVersion; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + public Boolean getAutomountServiceAccountToken() { + return this.automountServiceAccountToken; } - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + public String getKind() { + return this.kind; } - public MetadataNested editOrNewMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public boolean hasApiVersion() { + return this.apiVersion != null; } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + public boolean hasAutomountServiceAccountToken() { + return this.automountServiceAccountToken != null; } - public A addToSecrets(int index,V1ObjectReference item) { - if (this.secrets == null) { - this.secrets = new ArrayList(); - } - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - if (index < 0 || index >= secrets.size()) { - _visitables.get("secrets").add(builder); - secrets.add(builder); - } else { - _visitables.get("secrets").add(builder); - secrets.add(index, builder); - } - return (A) this; + public boolean hasImagePullSecrets() { + return this.imagePullSecrets != null && !(this.imagePullSecrets.isEmpty()); } - public A setToSecrets(int index,V1ObjectReference item) { - if (this.secrets == null) { - this.secrets = new ArrayList(); + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingImagePullSecret(Predicate predicate) { + for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingSecret(Predicate predicate) { + for (V1ObjectReferenceBuilder item : secrets) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSecrets() { + return this.secrets != null && !(this.secrets.isEmpty()); + } + + public int hashCode() { + return Objects.hash(apiVersion, automountServiceAccountToken, imagePullSecrets, kind, metadata, secrets); + } + + public A removeAllFromImagePullSecrets(Collection items) { + if (this.imagePullSecrets == null) { + return (A) this; } - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - if (index < 0 || index >= secrets.size()) { - _visitables.get("secrets").add(builder); - secrets.add(builder); - } else { - _visitables.get("secrets").add(builder); - secrets.set(index, builder); + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").remove(builder); + this.imagePullSecrets.remove(builder); } return (A) this; } - public A addToSecrets(V1ObjectReference... items) { + public A removeAllFromSecrets(Collection items) { if (this.secrets == null) { - this.secrets = new ArrayList(); + return (A) this; } for (V1ObjectReference item : items) { V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("secrets").add(builder); - this.secrets.add(builder); + _visitables.get("secrets").remove(builder); + this.secrets.remove(builder); } return (A) this; } - public A addAllToSecrets(Collection items) { - if (this.secrets == null) { - this.secrets = new ArrayList(); + public A removeFromImagePullSecrets(V1LocalObjectReference... items) { + if (this.imagePullSecrets == null) { + return (A) this; } - for (V1ObjectReference item : items) { - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("secrets").add(builder); - this.secrets.add(builder); + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").remove(builder); + this.imagePullSecrets.remove(builder); } return (A) this; } @@ -399,14 +418,18 @@ public A removeFromSecrets(V1ObjectReference... items) { return (A) this; } - public A removeAllFromSecrets(Collection items) { - if (this.secrets == null) { + public A removeMatchingFromImagePullSecrets(Predicate predicate) { + if (imagePullSecrets == null) { return (A) this; } - for (V1ObjectReference item : items) { - V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("secrets").remove(builder); - this.secrets.remove(builder); + Iterator each = imagePullSecrets.iterator(); + List visitables = _visitables.get("imagePullSecrets"); + while (each.hasNext()) { + V1LocalObjectReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -427,156 +450,44 @@ public A removeMatchingFromSecrets(Predicate predicate return (A) this; } - public List buildSecrets() { - return this.secrets != null ? build(secrets) : null; - } - - public V1ObjectReference buildSecret(int index) { - return this.secrets.get(index).build(); - } - - public V1ObjectReference buildFirstSecret() { - return this.secrets.get(0).build(); - } - - public V1ObjectReference buildLastSecret() { - return this.secrets.get(secrets.size() - 1).build(); - } - - public V1ObjectReference buildMatchingSecret(Predicate predicate) { - for (V1ObjectReferenceBuilder item : secrets) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public ImagePullSecretsNested setNewImagePullSecretLike(int index,V1LocalObjectReference item) { + return new ImagePullSecretsNested(index, item); } - public boolean hasMatchingSecret(Predicate predicate) { - for (V1ObjectReferenceBuilder item : secrets) { - if (predicate.test(item)) { - return true; - } - } - return false; + public SecretsNested setNewSecretLike(int index,V1ObjectReference item) { + return new SecretsNested(index, item); } - public A withSecrets(List secrets) { - if (this.secrets != null) { - this._visitables.get("secrets").clear(); + public A setToImagePullSecrets(int index,V1LocalObjectReference item) { + if (this.imagePullSecrets == null) { + this.imagePullSecrets = new ArrayList(); } - if (secrets != null) { - this.secrets = new ArrayList(); - for (V1ObjectReference item : secrets) { - this.addToSecrets(item); - } + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + if (index < 0 || index >= imagePullSecrets.size()) { + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.add(builder); } else { - this.secrets = null; + _visitables.get("imagePullSecrets").add(builder); + imagePullSecrets.set(index, builder); } return (A) this; } - public A withSecrets(V1ObjectReference... secrets) { - if (this.secrets != null) { - this.secrets.clear(); - _visitables.remove("secrets"); + public A setToSecrets(int index,V1ObjectReference item) { + if (this.secrets == null) { + this.secrets = new ArrayList(); } - if (secrets != null) { - for (V1ObjectReference item : secrets) { - this.addToSecrets(item); - } + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + if (index < 0 || index >= secrets.size()) { + _visitables.get("secrets").add(builder); + secrets.add(builder); + } else { + _visitables.get("secrets").add(builder); + secrets.set(index, builder); } return (A) this; } - public boolean hasSecrets() { - return this.secrets != null && !(this.secrets.isEmpty()); - } - - public SecretsNested addNewSecret() { - return new SecretsNested(-1, null); - } - - public SecretsNested addNewSecretLike(V1ObjectReference item) { - return new SecretsNested(-1, item); - } - - public SecretsNested setNewSecretLike(int index,V1ObjectReference item) { - return new SecretsNested(index, item); - } - - public SecretsNested editSecret(int index) { - if (index <= secrets.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "secrets")); - } - return this.setNewSecretLike(index, this.buildSecret(index)); - } - - public SecretsNested editFirstSecret() { - if (secrets.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "secrets")); - } - return this.setNewSecretLike(0, this.buildSecret(0)); - } - - public SecretsNested editLastSecret() { - int index = secrets.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "secrets")); - } - return this.setNewSecretLike(index, this.buildSecret(index)); - } - - public SecretsNested editMatchingSecret(Predicate predicate) { - int index = -1; - for (int i = 0;i < secrets.size();i++) { - if (predicate.test(secrets.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "secrets")); - } - return this.setNewSecretLike(index, this.buildSecret(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ServiceAccountFluent that = (V1ServiceAccountFluent) o; - if (!(Objects.equals(apiVersion, that.apiVersion))) { - return false; - } - if (!(Objects.equals(automountServiceAccountToken, that.automountServiceAccountToken))) { - return false; - } - if (!(Objects.equals(imagePullSecrets, that.imagePullSecrets))) { - return false; - } - if (!(Objects.equals(kind, that.kind))) { - return false; - } - if (!(Objects.equals(metadata, that.metadata))) { - return false; - } - if (!(Objects.equals(secrets, that.secrets))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(apiVersion, automountServiceAccountToken, imagePullSecrets, kind, metadata, secrets); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -613,17 +524,110 @@ public String toString() { return sb.toString(); } + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withAutomountServiceAccountToken() { return withAutomountServiceAccountToken(true); } + + public A withAutomountServiceAccountToken(Boolean automountServiceAccountToken) { + this.automountServiceAccountToken = automountServiceAccountToken; + return (A) this; + } + + public A withImagePullSecrets(List imagePullSecrets) { + if (this.imagePullSecrets != null) { + this._visitables.get("imagePullSecrets").clear(); + } + if (imagePullSecrets != null) { + this.imagePullSecrets = new ArrayList(); + for (V1LocalObjectReference item : imagePullSecrets) { + this.addToImagePullSecrets(item); + } + } else { + this.imagePullSecrets = null; + } + return (A) this; + } + + public A withImagePullSecrets(V1LocalObjectReference... imagePullSecrets) { + if (this.imagePullSecrets != null) { + this.imagePullSecrets.clear(); + _visitables.remove("imagePullSecrets"); + } + if (imagePullSecrets != null) { + for (V1LocalObjectReference item : imagePullSecrets) { + this.addToImagePullSecrets(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public A withSecrets(List secrets) { + if (this.secrets != null) { + this._visitables.get("secrets").clear(); + } + if (secrets != null) { + this.secrets = new ArrayList(); + for (V1ObjectReference item : secrets) { + this.addToSecrets(item); + } + } else { + this.secrets = null; + } + return (A) this; + } + + public A withSecrets(V1ObjectReference... secrets) { + if (this.secrets != null) { + this.secrets.clear(); + _visitables.remove("secrets"); + } + if (secrets != null) { + for (V1ObjectReference item : secrets) { + this.addToSecrets(item); + } + } + return (A) this; + } public class ImagePullSecretsNested extends V1LocalObjectReferenceFluent> implements Nested{ + + V1LocalObjectReferenceBuilder builder; + int index; + ImagePullSecretsNested(int index,V1LocalObjectReference item) { this.index = index; this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - int index; - + public N and() { return (N) V1ServiceAccountFluent.this.setToImagePullSecrets(index, builder.build()); } @@ -632,14 +636,15 @@ public N endImagePullSecret() { return and(); } - } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ServiceAccountFluent.this.withMetadata(builder.build()); } @@ -648,16 +653,17 @@ public N endMetadata() { return and(); } - } public class SecretsNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + int index; + SecretsNested(int index,V1ObjectReference item) { this.index = index; this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - int index; - + public N and() { return (N) V1ServiceAccountFluent.this.setToSecrets(index, builder.build()); } @@ -666,7 +672,5 @@ public N endSecret() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java index 8fa9f3157d..2672927f60 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ServiceAccountListBuilder extends V1ServiceAccountListFluent implements VisitableBuilder{ + + V1ServiceAccountListFluent fluent; + public V1ServiceAccountListBuilder() { this(new V1ServiceAccountList()); } @@ -11,17 +14,16 @@ public V1ServiceAccountListBuilder(V1ServiceAccountListFluent fluent) { this(fluent, new V1ServiceAccountList()); } - public V1ServiceAccountListBuilder(V1ServiceAccountListFluent fluent,V1ServiceAccountList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceAccountListBuilder(V1ServiceAccountList instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceAccountListFluent fluent; + public V1ServiceAccountListBuilder(V1ServiceAccountListFluent fluent,V1ServiceAccountList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceAccountList build() { V1ServiceAccountList buildable = new V1ServiceAccountList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ServiceAccountList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java index 4bcd55731e..a33a92a076 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ServiceAccountListFluent> extends BaseFluent{ - public V1ServiceAccountListFluent() { - } - - public V1ServiceAccountListFluent(V1ServiceAccountList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ServiceAccountList instance) { - instance = instance != null ? instance : new V1ServiceAccountList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1ServiceAccountListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1ServiceAccountListFluent(V1ServiceAccountList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1ServiceAccount item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1ServiceAccount item : items) { + V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1ServiceAccount item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ServiceAccount item) { + return new ItemsNested(-1, item); } public A addToItems(V1ServiceAccount... items) { @@ -96,68 +65,31 @@ public A addToItems(V1ServiceAccount... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1ServiceAccount item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1ServiceAccount item : items) { - V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); + V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1ServiceAccount... items) { - if (this.items == null) { - return (A) this; - } - for (V1ServiceAccount item : items) { - V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1ServiceAccount item : items) { - V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1ServiceAccountBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1ServiceAccount buildFirstItem() { + return this.items.get(0).build(); } public V1ServiceAccount buildItem(int index) { return this.items.get(index).build(); } - public V1ServiceAccount buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1ServiceAccount buildLastItem() { @@ -173,73 +105,34 @@ public V1ServiceAccount buildMatchingItem(Predicate pre return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1ServiceAccountBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ServiceAccount item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ServiceAccountList instance) { + instance = instance != null ? instance : new V1ServiceAccountList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1ServiceAccount... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1ServiceAccount item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ServiceAccount item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ServiceAccount item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predic return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ServiceAccountBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ServiceAccount item : items) { + V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ServiceAccount... items) { + if (this.items == null) { + return (A) this; + } + for (V1ServiceAccount item : items) { + V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ServiceAccountBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ServiceAccount item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1ServiceAccount item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ServiceAccount item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ServiceAccount... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ServiceAccount item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1ServiceAccountFluent> implements Nested{ + + V1ServiceAccountBuilder builder; + int index; + ItemsNested(int index,V1ServiceAccount item) { this.index = index; this.builder = new V1ServiceAccountBuilder(this, item); } - V1ServiceAccountBuilder builder; - int index; - + public N and() { return (N) V1ServiceAccountListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ServiceAccountListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectBuilder.java index b4085cafbd..98a50f1c7a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ServiceAccountSubjectBuilder extends V1ServiceAccountSubjectFluent implements VisitableBuilder{ + + V1ServiceAccountSubjectFluent fluent; + public V1ServiceAccountSubjectBuilder() { this(new V1ServiceAccountSubject()); } @@ -11,17 +14,16 @@ public V1ServiceAccountSubjectBuilder(V1ServiceAccountSubjectFluent fluent) { this(fluent, new V1ServiceAccountSubject()); } - public V1ServiceAccountSubjectBuilder(V1ServiceAccountSubjectFluent fluent,V1ServiceAccountSubject instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceAccountSubjectBuilder(V1ServiceAccountSubject instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceAccountSubjectFluent fluent; + public V1ServiceAccountSubjectBuilder(V1ServiceAccountSubjectFluent fluent,V1ServiceAccountSubject instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceAccountSubject build() { V1ServiceAccountSubject buildable = new V1ServiceAccountSubject(); buildable.setName(fluent.getName()); @@ -29,5 +31,4 @@ public V1ServiceAccountSubject build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectFluent.java index 5d14c0a74c..7736b321b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ServiceAccountSubjectFluent> extends BaseFluent{ + + private String name; + private String namespace; + public V1ServiceAccountSubjectFluent() { } public V1ServiceAccountSubjectFluent(V1ServiceAccountSubject instance) { this.copyInstance(instance); } - private String name; - private String namespace; - + protected void copyInstance(V1ServiceAccountSubject instance) { instance = instance != null ? instance : new V1ServiceAccountSubject(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1ServiceAccountSubject instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + public int hashCode() { return Objects.hash(name, namespace); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java index a855d1ef4d..fec1ef7b85 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ServiceAccountTokenProjectionBuilder extends V1ServiceAccountTokenProjectionFluent implements VisitableBuilder{ + + V1ServiceAccountTokenProjectionFluent fluent; + public V1ServiceAccountTokenProjectionBuilder() { this(new V1ServiceAccountTokenProjection()); } @@ -11,17 +14,16 @@ public V1ServiceAccountTokenProjectionBuilder(V1ServiceAccountTokenProjectionFlu this(fluent, new V1ServiceAccountTokenProjection()); } - public V1ServiceAccountTokenProjectionBuilder(V1ServiceAccountTokenProjectionFluent fluent,V1ServiceAccountTokenProjection instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceAccountTokenProjectionBuilder(V1ServiceAccountTokenProjection instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceAccountTokenProjectionFluent fluent; + public V1ServiceAccountTokenProjectionBuilder(V1ServiceAccountTokenProjectionFluent fluent,V1ServiceAccountTokenProjection instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceAccountTokenProjection build() { V1ServiceAccountTokenProjection buildable = new V1ServiceAccountTokenProjection(); buildable.setAudience(fluent.getAudience()); @@ -30,5 +32,4 @@ public V1ServiceAccountTokenProjection build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java index 916e62b876..819e0a9c80 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ServiceAccountTokenProjectionFluent> extends BaseFluent{ + + private String audience; + private Long expirationSeconds; + private String path; + public V1ServiceAccountTokenProjectionFluent() { } public V1ServiceAccountTokenProjectionFluent(V1ServiceAccountTokenProjection instance) { this.copyInstance(instance); } - private String audience; - private Long expirationSeconds; - private String path; - + protected void copyInstance(V1ServiceAccountTokenProjection instance) { instance = instance != null ? instance : new V1ServiceAccountTokenProjection(); if (instance != null) { @@ -32,45 +34,6 @@ protected void copyInstance(V1ServiceAccountTokenProjection instance) { } } - public String getAudience() { - return this.audience; - } - - public A withAudience(String audience) { - this.audience = audience; - return (A) this; - } - - public boolean hasAudience() { - return this.audience != null; - } - - public Long getExpirationSeconds() { - return this.expirationSeconds; - } - - public A withExpirationSeconds(Long expirationSeconds) { - this.expirationSeconds = expirationSeconds; - return (A) this; - } - - public boolean hasExpirationSeconds() { - return this.expirationSeconds != null; - } - - public String getPath() { - return this.path; - } - - public A withPath(String path) { - this.path = path; - return (A) this; - } - - public boolean hasPath() { - return this.path != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -94,6 +57,30 @@ public boolean equals(Object o) { return true; } + public String getAudience() { + return this.audience; + } + + public Long getExpirationSeconds() { + return this.expirationSeconds; + } + + public String getPath() { + return this.path; + } + + public boolean hasAudience() { + return this.audience != null; + } + + public boolean hasExpirationSeconds() { + return this.expirationSeconds != null; + } + + public boolean hasPath() { + return this.path != null; + } + public int hashCode() { return Objects.hash(audience, expirationSeconds, path); } @@ -119,5 +106,19 @@ public String toString() { return sb.toString(); } - + public A withAudience(String audience) { + this.audience = audience; + return (A) this; + } + + public A withExpirationSeconds(Long expirationSeconds) { + this.expirationSeconds = expirationSeconds; + return (A) this; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java index 70f9012a4c..584c2f4101 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ServiceBackendPortBuilder extends V1ServiceBackendPortFluent implements VisitableBuilder{ + + V1ServiceBackendPortFluent fluent; + public V1ServiceBackendPortBuilder() { this(new V1ServiceBackendPort()); } @@ -11,17 +14,16 @@ public V1ServiceBackendPortBuilder(V1ServiceBackendPortFluent fluent) { this(fluent, new V1ServiceBackendPort()); } - public V1ServiceBackendPortBuilder(V1ServiceBackendPortFluent fluent,V1ServiceBackendPort instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceBackendPortBuilder(V1ServiceBackendPort instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceBackendPortFluent fluent; + public V1ServiceBackendPortBuilder(V1ServiceBackendPortFluent fluent,V1ServiceBackendPort instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceBackendPort build() { V1ServiceBackendPort buildable = new V1ServiceBackendPort(); buildable.setName(fluent.getName()); @@ -29,5 +31,4 @@ public V1ServiceBackendPort build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java index 07b089fbf8..4303c75ab8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1ServiceBackendPortFluent> extends BaseFluent{ + + private String name; + private Integer number; + public V1ServiceBackendPortFluent() { } public V1ServiceBackendPortFluent(V1ServiceBackendPort instance) { this.copyInstance(instance); } - private String name; - private Integer number; - + protected void copyInstance(V1ServiceBackendPort instance) { instance = instance != null ? instance : new V1ServiceBackendPort(); if (instance != null) { @@ -30,32 +32,6 @@ protected void copyInstance(V1ServiceBackendPort instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public Integer getNumber() { - return this.number; - } - - public A withNumber(Integer number) { - this.number = number; - return (A) this; - } - - public boolean hasNumber() { - return this.number != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -76,6 +52,22 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public Integer getNumber() { + return this.number; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNumber() { + return this.number != null; + } + public int hashCode() { return Objects.hash(name, number); } @@ -96,5 +88,14 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNumber(Integer number) { + this.number = number; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java index 360a947e4d..4b65e67142 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ServiceBuilder extends V1ServiceFluent implements VisitableBuilder{ + + V1ServiceFluent fluent; + public V1ServiceBuilder() { this(new V1Service()); } @@ -11,17 +14,16 @@ public V1ServiceBuilder(V1ServiceFluent fluent) { this(fluent, new V1Service()); } - public V1ServiceBuilder(V1ServiceFluent fluent,V1Service instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceBuilder(V1Service instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceFluent fluent; + public V1ServiceBuilder(V1ServiceFluent fluent,V1Service instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Service build() { V1Service buildable = new V1Service(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1Service build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRBuilder.java index 8152363638..10731085b4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ServiceCIDRBuilder extends V1ServiceCIDRFluent implements VisitableBuilder{ + + V1ServiceCIDRFluent fluent; + public V1ServiceCIDRBuilder() { this(new V1ServiceCIDR()); } @@ -11,17 +14,16 @@ public V1ServiceCIDRBuilder(V1ServiceCIDRFluent fluent) { this(fluent, new V1ServiceCIDR()); } - public V1ServiceCIDRBuilder(V1ServiceCIDRFluent fluent,V1ServiceCIDR instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceCIDRBuilder(V1ServiceCIDR instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceCIDRFluent fluent; + public V1ServiceCIDRBuilder(V1ServiceCIDRFluent fluent,V1ServiceCIDR instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceCIDR build() { V1ServiceCIDR buildable = new V1ServiceCIDR(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1ServiceCIDR build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java index 93ee65aa45..58d0b913b2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ServiceCIDRFluent> extends BaseFluent{ - public V1ServiceCIDRFluent() { - } - - public V1ServiceCIDRFluent(V1ServiceCIDR instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1ServiceCIDRSpecBuilder spec; private V1ServiceCIDRStatusBuilder status; - - protected void copyInstance(V1ServiceCIDR instance) { - instance = instance != null ? instance : new V1ServiceCIDR(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1ServiceCIDRFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1ServiceCIDRFluent(V1ServiceCIDR instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1ServiceCIDRSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1ServiceCIDRStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1ServiceCIDR instance) { + instance = instance != null ? instance : new V1ServiceCIDR(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ServiceCIDRSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1ServiceCIDRSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1ServiceCIDRSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1ServiceCIDRSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ServiceCIDRSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1ServiceCIDRSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1ServiceCIDRStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1ServiceCIDRStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1ServiceCIDRStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ServiceCIDRStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1ServiceCIDRStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1ServiceCIDRStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ServiceCIDRStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1ServiceCIDRStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ServiceCIDRSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1ServiceCIDRStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1ServiceCIDRSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ServiceCIDRSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1ServiceCIDRStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1ServiceCIDRStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ServiceCIDRFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ServiceCIDRSpecFluent> implements Nested{ + + V1ServiceCIDRSpecBuilder builder; + SpecNested(V1ServiceCIDRSpec item) { this.builder = new V1ServiceCIDRSpecBuilder(this, item); } - V1ServiceCIDRSpecBuilder builder; - + public N and() { return (N) V1ServiceCIDRFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1ServiceCIDRStatusFluent> implements Nested{ + + V1ServiceCIDRStatusBuilder builder; + StatusNested(V1ServiceCIDRStatus item) { this.builder = new V1ServiceCIDRStatusBuilder(this, item); } - V1ServiceCIDRStatusBuilder builder; - + public N and() { return (N) V1ServiceCIDRFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListBuilder.java index cc9569b343..3071772f6f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ServiceCIDRListBuilder extends V1ServiceCIDRListFluent implements VisitableBuilder{ + + V1ServiceCIDRListFluent fluent; + public V1ServiceCIDRListBuilder() { this(new V1ServiceCIDRList()); } @@ -11,17 +14,16 @@ public V1ServiceCIDRListBuilder(V1ServiceCIDRListFluent fluent) { this(fluent, new V1ServiceCIDRList()); } - public V1ServiceCIDRListBuilder(V1ServiceCIDRListFluent fluent,V1ServiceCIDRList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceCIDRListBuilder(V1ServiceCIDRList instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceCIDRListFluent fluent; + public V1ServiceCIDRListBuilder(V1ServiceCIDRListFluent fluent,V1ServiceCIDRList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceCIDRList build() { V1ServiceCIDRList buildable = new V1ServiceCIDRList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ServiceCIDRList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListFluent.java index 7c8f7e31a1..15ee855a91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ServiceCIDRListFluent> extends BaseFluent{ - public V1ServiceCIDRListFluent() { - } - - public V1ServiceCIDRListFluent(V1ServiceCIDRList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ServiceCIDRList instance) { - instance = instance != null ? instance : new V1ServiceCIDRList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1ServiceCIDRListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1ServiceCIDRListFluent(V1ServiceCIDRList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1ServiceCIDR item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1ServiceCIDR item : items) { + V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1ServiceCIDR item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ServiceCIDR item) { + return new ItemsNested(-1, item); } public A addToItems(V1ServiceCIDR... items) { @@ -96,68 +65,31 @@ public A addToItems(V1ServiceCIDR... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1ServiceCIDR item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1ServiceCIDR item : items) { - V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); + V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1ServiceCIDR... items) { - if (this.items == null) { - return (A) this; - } - for (V1ServiceCIDR item : items) { - V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1ServiceCIDR item : items) { - V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1ServiceCIDRBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1ServiceCIDR buildFirstItem() { + return this.items.get(0).build(); } public V1ServiceCIDR buildItem(int index) { return this.items.get(index).build(); } - public V1ServiceCIDR buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1ServiceCIDR buildLastItem() { @@ -173,73 +105,34 @@ public V1ServiceCIDR buildMatchingItem(Predicate predicate return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1ServiceCIDRBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ServiceCIDR item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ServiceCIDRList instance) { + instance = instance != null ? instance : new V1ServiceCIDRList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1ServiceCIDR... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1ServiceCIDR item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ServiceCIDR item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ServiceCIDR item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ServiceCIDRBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ServiceCIDR item : items) { + V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ServiceCIDR... items) { + if (this.items == null) { + return (A) this; + } + for (V1ServiceCIDR item : items) { + V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ServiceCIDRBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ServiceCIDR item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1ServiceCIDR item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ServiceCIDR item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ServiceCIDR... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ServiceCIDR item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1ServiceCIDRFluent> implements Nested{ + + V1ServiceCIDRBuilder builder; + int index; + ItemsNested(int index,V1ServiceCIDR item) { this.index = index; this.builder = new V1ServiceCIDRBuilder(this, item); } - V1ServiceCIDRBuilder builder; - int index; - + public N and() { return (N) V1ServiceCIDRListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ServiceCIDRListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecBuilder.java index 90ae679ecc..17a4e1820f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ServiceCIDRSpecBuilder extends V1ServiceCIDRSpecFluent implements VisitableBuilder{ + + V1ServiceCIDRSpecFluent fluent; + public V1ServiceCIDRSpecBuilder() { this(new V1ServiceCIDRSpec()); } @@ -11,22 +14,20 @@ public V1ServiceCIDRSpecBuilder(V1ServiceCIDRSpecFluent fluent) { this(fluent, new V1ServiceCIDRSpec()); } - public V1ServiceCIDRSpecBuilder(V1ServiceCIDRSpecFluent fluent,V1ServiceCIDRSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceCIDRSpecBuilder(V1ServiceCIDRSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceCIDRSpecFluent fluent; + public V1ServiceCIDRSpecBuilder(V1ServiceCIDRSpecFluent fluent,V1ServiceCIDRSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceCIDRSpec build() { V1ServiceCIDRSpec buildable = new V1ServiceCIDRSpec(); buildable.setCidrs(fluent.getCidrs()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecFluent.java index 0f91ac2646..560663fe00 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,34 +16,23 @@ */ @SuppressWarnings("unchecked") public class V1ServiceCIDRSpecFluent> extends BaseFluent{ + + private List cidrs; + public V1ServiceCIDRSpecFluent() { } public V1ServiceCIDRSpecFluent(V1ServiceCIDRSpec instance) { this.copyInstance(instance); } - private List cidrs; - - protected void copyInstance(V1ServiceCIDRSpec instance) { - instance = instance != null ? instance : new V1ServiceCIDRSpec(); - if (instance != null) { - this.withCidrs(instance.getCidrs()); - } - } - - public A addToCidrs(int index,String item) { + + public A addAllToCidrs(Collection items) { if (this.cidrs == null) { this.cidrs = new ArrayList(); } - this.cidrs.add(index, item); - return (A) this; - } - - public A setToCidrs(int index,String item) { - if (this.cidrs == null) { - this.cidrs = new ArrayList(); + for (String item : items) { + this.cidrs.add(item); } - this.cidrs.set(index, item); return (A) this; } @@ -57,44 +46,46 @@ public A addToCidrs(String... items) { return (A) this; } - public A addAllToCidrs(Collection items) { + public A addToCidrs(int index,String item) { if (this.cidrs == null) { this.cidrs = new ArrayList(); } - for (String item : items) { - this.cidrs.add(item); - } + this.cidrs.add(index, item); return (A) this; } - public A removeFromCidrs(String... items) { - if (this.cidrs == null) { - return (A) this; - } - for (String item : items) { - this.cidrs.remove(item); + protected void copyInstance(V1ServiceCIDRSpec instance) { + instance = instance != null ? instance : new V1ServiceCIDRSpec(); + if (instance != null) { + this.withCidrs(instance.getCidrs()); } - return (A) this; } - public A removeAllFromCidrs(Collection items) { - if (this.cidrs == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.cidrs.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public List getCidrs() { - return this.cidrs; + if (!(super.equals(o))) { + return false; + } + V1ServiceCIDRSpecFluent that = (V1ServiceCIDRSpecFluent) o; + if (!(Objects.equals(cidrs, that.cidrs))) { + return false; + } + return true; } public String getCidr(int index) { return this.cidrs.get(index); } + public List getCidrs() { + return this.cidrs; + } + public String getFirstCidr() { return this.cidrs.get(0); } @@ -112,6 +103,10 @@ public String getMatchingCidr(Predicate predicate) { return null; } + public boolean hasCidrs() { + return this.cidrs != null && !(this.cidrs.isEmpty()); + } + public boolean hasMatchingCidr(Predicate predicate) { for (String item : cidrs) { if (predicate.test(item)) { @@ -121,6 +116,49 @@ public boolean hasMatchingCidr(Predicate predicate) { return false; } + public int hashCode() { + return Objects.hash(cidrs); + } + + public A removeAllFromCidrs(Collection items) { + if (this.cidrs == null) { + return (A) this; + } + for (String item : items) { + this.cidrs.remove(item); + } + return (A) this; + } + + public A removeFromCidrs(String... items) { + if (this.cidrs == null) { + return (A) this; + } + for (String item : items) { + this.cidrs.remove(item); + } + return (A) this; + } + + public A setToCidrs(int index,String item) { + if (this.cidrs == null) { + this.cidrs = new ArrayList(); + } + this.cidrs.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(cidrs == null) && !(cidrs.isEmpty())) { + sb.append("cidrs:"); + sb.append(cidrs); + } + sb.append("}"); + return sb.toString(); + } + public A withCidrs(List cidrs) { if (cidrs != null) { this.cidrs = new ArrayList(); @@ -146,41 +184,4 @@ public A withCidrs(String... cidrs) { return (A) this; } - public boolean hasCidrs() { - return this.cidrs != null && !(this.cidrs.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ServiceCIDRSpecFluent that = (V1ServiceCIDRSpecFluent) o; - if (!(Objects.equals(cidrs, that.cidrs))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(cidrs); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(cidrs == null) && !(cidrs.isEmpty())) { - sb.append("cidrs:"); - sb.append(cidrs); - } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusBuilder.java index 0ab3c76892..987598e1a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ServiceCIDRStatusBuilder extends V1ServiceCIDRStatusFluent implements VisitableBuilder{ + + V1ServiceCIDRStatusFluent fluent; + public V1ServiceCIDRStatusBuilder() { this(new V1ServiceCIDRStatus()); } @@ -11,22 +14,20 @@ public V1ServiceCIDRStatusBuilder(V1ServiceCIDRStatusFluent fluent) { this(fluent, new V1ServiceCIDRStatus()); } - public V1ServiceCIDRStatusBuilder(V1ServiceCIDRStatusFluent fluent,V1ServiceCIDRStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceCIDRStatusBuilder(V1ServiceCIDRStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceCIDRStatusFluent fluent; + public V1ServiceCIDRStatusBuilder(V1ServiceCIDRStatusFluent fluent,V1ServiceCIDRStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceCIDRStatus build() { V1ServiceCIDRStatus buildable = new V1ServiceCIDRStatus(); buildable.setConditions(fluent.buildConditions()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusFluent.java index fed4623fd3..c82e63ef24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusFluent.java @@ -1,67 +1,52 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ServiceCIDRStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + public V1ServiceCIDRStatusFluent() { } public V1ServiceCIDRStatusFluent(V1ServiceCIDRStatus instance) { this.copyInstance(instance); } - private ArrayList conditions; - - protected void copyInstance(V1ServiceCIDRStatus instance) { - instance = instance != null ? instance : new V1ServiceCIDRStatus(); - if (instance != null) { - this.withConditions(instance.getConditions()); - } - } - - public A addToConditions(int index,V1Condition item) { + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1Condition... items) { @@ -76,66 +61,29 @@ public A addToConditions(V1Condition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1Condition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1Condition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -153,61 +101,15 @@ public V1Condition buildMatchingCondition(Predicate predicat return null; } - public boolean hasMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(V1Condition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1Condition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1ServiceCIDRStatus instance) { + instance = instance != null ? instance : new V1ServiceCIDRStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -259,10 +161,82 @@ public boolean equals(Object o) { return true; } + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(conditions); } + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1Condition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -273,14 +247,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + ConditionsNested(int index,V1Condition item) { this.index = index; this.builder = new V1ConditionBuilder(this, item); } - V1ConditionBuilder builder; - int index; - + public N and() { return (N) V1ServiceCIDRStatusFluent.this.setToConditions(index, builder.build()); } @@ -289,7 +293,5 @@ public N endCondition() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java index 0b2e084820..2673acf149 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ServiceFluent> extends BaseFluent{ - public V1ServiceFluent() { - } - - public V1ServiceFluent(V1Service instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1ServiceSpecBuilder spec; private V1ServiceStatusBuilder status; - - protected void copyInstance(V1Service instance) { - instance = instance != null ? instance : new V1Service(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1ServiceFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1ServiceFluent(V1Service instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1ServiceSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1ServiceStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1Service instance) { + instance = instance != null ? instance : new V1Service(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ServiceSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1ServiceSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1ServiceSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1ServiceSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ServiceSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1ServiceSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1ServiceStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1ServiceStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1ServiceStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ServiceStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1ServiceStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1ServiceStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ServiceStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1ServiceStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ServiceSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1ServiceStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1ServiceSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ServiceSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1ServiceStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1ServiceStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ServiceFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ServiceSpecFluent> implements Nested{ + + V1ServiceSpecBuilder builder; + SpecNested(V1ServiceSpec item) { this.builder = new V1ServiceSpecBuilder(this, item); } - V1ServiceSpecBuilder builder; - + public N and() { return (N) V1ServiceFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1ServiceStatusFluent> implements Nested{ + + V1ServiceStatusBuilder builder; + StatusNested(V1ServiceStatus item) { this.builder = new V1ServiceStatusBuilder(this, item); } - V1ServiceStatusBuilder builder; - + public N and() { return (N) V1ServiceFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java index 3d68ed0eca..debd391f90 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ServiceListBuilder extends V1ServiceListFluent implements VisitableBuilder{ + + V1ServiceListFluent fluent; + public V1ServiceListBuilder() { this(new V1ServiceList()); } @@ -11,17 +14,16 @@ public V1ServiceListBuilder(V1ServiceListFluent fluent) { this(fluent, new V1ServiceList()); } - public V1ServiceListBuilder(V1ServiceListFluent fluent,V1ServiceList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceListBuilder(V1ServiceList instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceListFluent fluent; + public V1ServiceListBuilder(V1ServiceListFluent fluent,V1ServiceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceList build() { V1ServiceList buildable = new V1ServiceList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ServiceList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java index dd4b9bf2f5..18c8923ce3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ServiceListFluent> extends BaseFluent{ - public V1ServiceListFluent() { - } - - public V1ServiceListFluent(V1ServiceList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ServiceList instance) { - instance = instance != null ? instance : new V1ServiceList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1ServiceListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1ServiceListFluent(V1ServiceList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1Service item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1ServiceBuilder builder = new V1ServiceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1Service item : items) { + V1ServiceBuilder builder = new V1ServiceBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1Service item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ServiceBuilder builder = new V1ServiceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1Service item) { + return new ItemsNested(-1, item); } public A addToItems(V1Service... items) { @@ -96,68 +65,31 @@ public A addToItems(V1Service... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1Service item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1Service item : items) { - V1ServiceBuilder builder = new V1ServiceBuilder(item); + V1ServiceBuilder builder = new V1ServiceBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1Service... items) { - if (this.items == null) { - return (A) this; - } - for (V1Service item : items) { - V1ServiceBuilder builder = new V1ServiceBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1Service item : items) { - V1ServiceBuilder builder = new V1ServiceBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1ServiceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1Service buildFirstItem() { + return this.items.get(0).build(); } public V1Service buildItem(int index) { return this.items.get(index).build(); } - public V1Service buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1Service buildLastItem() { @@ -173,73 +105,34 @@ public V1Service buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1ServiceBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1Service item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ServiceList instance) { + instance = instance != null ? instance : new V1ServiceList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1Service... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1Service item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Service item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Service item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate) { return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ServiceBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Service item : items) { + V1ServiceBuilder builder = new V1ServiceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Service... items) { + if (this.items == null) { + return (A) this; + } + for (V1Service item : items) { + V1ServiceBuilder builder = new V1ServiceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ServiceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Service item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1Service item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ServiceBuilder builder = new V1ServiceBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1Service item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1Service... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1Service item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1ServiceFluent> implements Nested{ + + V1ServiceBuilder builder; + int index; + ItemsNested(int index,V1Service item) { this.index = index; this.builder = new V1ServiceBuilder(this, item); } - V1ServiceBuilder builder; - int index; - + public N and() { return (N) V1ServiceListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ServiceListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java index eeb76fe25a..643e8e53a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ServicePortBuilder extends V1ServicePortFluent implements VisitableBuilder{ + + V1ServicePortFluent fluent; + public V1ServicePortBuilder() { this(new V1ServicePort()); } @@ -11,17 +14,16 @@ public V1ServicePortBuilder(V1ServicePortFluent fluent) { this(fluent, new V1ServicePort()); } - public V1ServicePortBuilder(V1ServicePortFluent fluent,V1ServicePort instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServicePortBuilder(V1ServicePort instance) { this.fluent = this; this.copyInstance(instance); } - V1ServicePortFluent fluent; + public V1ServicePortBuilder(V1ServicePortFluent fluent,V1ServicePort instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServicePort build() { V1ServicePort buildable = new V1ServicePort(); buildable.setAppProtocol(fluent.getAppProtocol()); @@ -33,5 +35,4 @@ public V1ServicePort build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java index 1e17a55dbc..bd735b3de6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java @@ -1,32 +1,34 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.StringBuilder; import io.kubernetes.client.custom.IntOrString; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ServicePortFluent> extends BaseFluent{ - public V1ServicePortFluent() { - } - - public V1ServicePortFluent(V1ServicePort instance) { - this.copyInstance(instance); - } + private String appProtocol; private String name; private Integer nodePort; private Integer port; private String protocol; private IntOrString targetPort; + + public V1ServicePortFluent() { + } + public V1ServicePortFluent(V1ServicePort instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1ServicePort instance) { instance = instance != null ? instance : new V1ServicePort(); if (instance != null) { @@ -39,122 +41,84 @@ protected void copyInstance(V1ServicePort instance) { } } - public String getAppProtocol() { - return this.appProtocol; - } - - public A withAppProtocol(String appProtocol) { - this.appProtocol = appProtocol; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ServicePortFluent that = (V1ServicePortFluent) o; + if (!(Objects.equals(appProtocol, that.appProtocol))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(nodePort, that.nodePort))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + if (!(Objects.equals(protocol, that.protocol))) { + return false; + } + if (!(Objects.equals(targetPort, that.targetPort))) { + return false; + } + return true; } - public boolean hasAppProtocol() { - return this.appProtocol != null; + public String getAppProtocol() { + return this.appProtocol; } public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public Integer getNodePort() { return this.nodePort; } - public A withNodePort(Integer nodePort) { - this.nodePort = nodePort; - return (A) this; - } - - public boolean hasNodePort() { - return this.nodePort != null; - } - public Integer getPort() { return this.port; } - public A withPort(Integer port) { - this.port = port; - return (A) this; - } - - public boolean hasPort() { - return this.port != null; - } - public String getProtocol() { return this.protocol; } - public A withProtocol(String protocol) { - this.protocol = protocol; - return (A) this; - } - - public boolean hasProtocol() { - return this.protocol != null; - } - public IntOrString getTargetPort() { return this.targetPort; } - public A withTargetPort(IntOrString targetPort) { - this.targetPort = targetPort; - return (A) this; + public boolean hasAppProtocol() { + return this.appProtocol != null; } - public boolean hasTargetPort() { - return this.targetPort != null; + public boolean hasName() { + return this.name != null; } - public A withNewTargetPort(int value) { - return (A) this.withTargetPort(new IntOrString(value)); + public boolean hasNodePort() { + return this.nodePort != null; } - public A withNewTargetPort(String value) { - return (A) this.withTargetPort(new IntOrString(value)); + public boolean hasPort() { + return this.port != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ServicePortFluent that = (V1ServicePortFluent) o; - if (!(Objects.equals(appProtocol, that.appProtocol))) { - return false; - } - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(nodePort, that.nodePort))) { - return false; - } - if (!(Objects.equals(port, that.port))) { - return false; - } - if (!(Objects.equals(protocol, that.protocol))) { - return false; - } - if (!(Objects.equals(targetPort, that.targetPort))) { - return false; - } - return true; + public boolean hasProtocol() { + return this.protocol != null; + } + + public boolean hasTargetPort() { + return this.targetPort != null; } public int hashCode() { @@ -197,5 +161,42 @@ public String toString() { return sb.toString(); } - + public A withAppProtocol(String appProtocol) { + this.appProtocol = appProtocol; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNewTargetPort(int value) { + return (A) this.withTargetPort(new IntOrString(value)); + } + + public A withNewTargetPort(String value) { + return (A) this.withTargetPort(new IntOrString(value)); + } + + public A withNodePort(Integer nodePort) { + this.nodePort = nodePort; + return (A) this; + } + + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + + public A withProtocol(String protocol) { + this.protocol = protocol; + return (A) this; + } + + public A withTargetPort(IntOrString targetPort) { + this.targetPort = targetPort; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java index ac4317761c..f22c7208c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ServiceSpecBuilder extends V1ServiceSpecFluent implements VisitableBuilder{ + + V1ServiceSpecFluent fluent; + public V1ServiceSpecBuilder() { this(new V1ServiceSpec()); } @@ -11,17 +14,16 @@ public V1ServiceSpecBuilder(V1ServiceSpecFluent fluent) { this(fluent, new V1ServiceSpec()); } - public V1ServiceSpecBuilder(V1ServiceSpecFluent fluent,V1ServiceSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceSpecBuilder(V1ServiceSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceSpecFluent fluent; + public V1ServiceSpecBuilder(V1ServiceSpecFluent fluent,V1ServiceSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceSpec build() { V1ServiceSpec buildable = new V1ServiceSpec(); buildable.setAllocateLoadBalancerNodePorts(fluent.getAllocateLoadBalancerNodePorts()); @@ -47,5 +49,4 @@ public V1ServiceSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java index 404ddfcce5..9033692e55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java @@ -1,35 +1,30 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; -import java.lang.Boolean; -import java.util.Optional; -import java.lang.Integer; -import java.util.Objects; -import java.util.Collection; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ServiceSpecFluent> extends BaseFluent{ - public V1ServiceSpecFluent() { - } - - public V1ServiceSpecFluent(V1ServiceSpec instance) { - this.copyInstance(instance); - } + private Boolean allocateLoadBalancerNodePorts; private String clusterIP; private List clusterIPs; @@ -50,178 +45,102 @@ public V1ServiceSpecFluent(V1ServiceSpec instance) { private V1SessionAffinityConfigBuilder sessionAffinityConfig; private String trafficDistribution; private String type; - - protected void copyInstance(V1ServiceSpec instance) { - instance = instance != null ? instance : new V1ServiceSpec(); - if (instance != null) { - this.withAllocateLoadBalancerNodePorts(instance.getAllocateLoadBalancerNodePorts()); - this.withClusterIP(instance.getClusterIP()); - this.withClusterIPs(instance.getClusterIPs()); - this.withExternalIPs(instance.getExternalIPs()); - this.withExternalName(instance.getExternalName()); - this.withExternalTrafficPolicy(instance.getExternalTrafficPolicy()); - this.withHealthCheckNodePort(instance.getHealthCheckNodePort()); - this.withInternalTrafficPolicy(instance.getInternalTrafficPolicy()); - this.withIpFamilies(instance.getIpFamilies()); - this.withIpFamilyPolicy(instance.getIpFamilyPolicy()); - this.withLoadBalancerClass(instance.getLoadBalancerClass()); - this.withLoadBalancerIP(instance.getLoadBalancerIP()); - this.withLoadBalancerSourceRanges(instance.getLoadBalancerSourceRanges()); - this.withPorts(instance.getPorts()); - this.withPublishNotReadyAddresses(instance.getPublishNotReadyAddresses()); - this.withSelector(instance.getSelector()); - this.withSessionAffinity(instance.getSessionAffinity()); - this.withSessionAffinityConfig(instance.getSessionAffinityConfig()); - this.withTrafficDistribution(instance.getTrafficDistribution()); - this.withType(instance.getType()); - } - } - - public Boolean getAllocateLoadBalancerNodePorts() { - return this.allocateLoadBalancerNodePorts; - } - - public A withAllocateLoadBalancerNodePorts(Boolean allocateLoadBalancerNodePorts) { - this.allocateLoadBalancerNodePorts = allocateLoadBalancerNodePorts; - return (A) this; - } - - public boolean hasAllocateLoadBalancerNodePorts() { - return this.allocateLoadBalancerNodePorts != null; - } - - public String getClusterIP() { - return this.clusterIP; - } - - public A withClusterIP(String clusterIP) { - this.clusterIP = clusterIP; - return (A) this; + + public V1ServiceSpecFluent() { } - public boolean hasClusterIP() { - return this.clusterIP != null; + public V1ServiceSpecFluent(V1ServiceSpec instance) { + this.copyInstance(instance); } - - public A addToClusterIPs(int index,String item) { + + public A addAllToClusterIPs(Collection items) { if (this.clusterIPs == null) { this.clusterIPs = new ArrayList(); } - this.clusterIPs.add(index, item); - return (A) this; - } - - public A setToClusterIPs(int index,String item) { - if (this.clusterIPs == null) { - this.clusterIPs = new ArrayList(); + for (String item : items) { + this.clusterIPs.add(item); } - this.clusterIPs.set(index, item); return (A) this; } - public A addToClusterIPs(String... items) { - if (this.clusterIPs == null) { - this.clusterIPs = new ArrayList(); + public A addAllToExternalIPs(Collection items) { + if (this.externalIPs == null) { + this.externalIPs = new ArrayList(); } for (String item : items) { - this.clusterIPs.add(item); + this.externalIPs.add(item); } return (A) this; } - public A addAllToClusterIPs(Collection items) { - if (this.clusterIPs == null) { - this.clusterIPs = new ArrayList(); + public A addAllToIpFamilies(Collection items) { + if (this.ipFamilies == null) { + this.ipFamilies = new ArrayList(); } for (String item : items) { - this.clusterIPs.add(item); + this.ipFamilies.add(item); } return (A) this; } - public A removeFromClusterIPs(String... items) { - if (this.clusterIPs == null) { - return (A) this; + public A addAllToLoadBalancerSourceRanges(Collection items) { + if (this.loadBalancerSourceRanges == null) { + this.loadBalancerSourceRanges = new ArrayList(); } for (String item : items) { - this.clusterIPs.remove(item); + this.loadBalancerSourceRanges.add(item); } return (A) this; } - public A removeAllFromClusterIPs(Collection items) { - if (this.clusterIPs == null) { - return (A) this; + public A addAllToPorts(Collection items) { + if (this.ports == null) { + this.ports = new ArrayList(); } - for (String item : items) { - this.clusterIPs.remove(item); + for (V1ServicePort item : items) { + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); } return (A) this; } - public List getClusterIPs() { - return this.clusterIPs; - } - - public String getClusterIP(int index) { - return this.clusterIPs.get(index); - } - - public String getFirstClusterIP() { - return this.clusterIPs.get(0); - } - - public String getLastClusterIP() { - return this.clusterIPs.get(clusterIPs.size() - 1); + public PortsNested addNewPort() { + return new PortsNested(-1, null); } - public String getMatchingClusterIP(Predicate predicate) { - for (String item : clusterIPs) { - if (predicate.test(item)) { - return item; - } - } - return null; + public PortsNested addNewPortLike(V1ServicePort item) { + return new PortsNested(-1, item); } - public boolean hasMatchingClusterIP(Predicate predicate) { - for (String item : clusterIPs) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A addToClusterIPs(String... items) { + if (this.clusterIPs == null) { + this.clusterIPs = new ArrayList(); + } + for (String item : items) { + this.clusterIPs.add(item); + } + return (A) this; } - public A withClusterIPs(List clusterIPs) { - if (clusterIPs != null) { - this.clusterIPs = new ArrayList(); - for (String item : clusterIPs) { - this.addToClusterIPs(item); - } - } else { - this.clusterIPs = null; + public A addToClusterIPs(int index,String item) { + if (this.clusterIPs == null) { + this.clusterIPs = new ArrayList(); } + this.clusterIPs.add(index, item); return (A) this; } - public A withClusterIPs(String... clusterIPs) { - if (this.clusterIPs != null) { - this.clusterIPs.clear(); - _visitables.remove("clusterIPs"); + public A addToExternalIPs(String... items) { + if (this.externalIPs == null) { + this.externalIPs = new ArrayList(); } - if (clusterIPs != null) { - for (String item : clusterIPs) { - this.addToClusterIPs(item); - } + for (String item : items) { + this.externalIPs.add(item); } return (A) this; } - public boolean hasClusterIPs() { - return this.clusterIPs != null && !(this.clusterIPs.isEmpty()); - } - public A addToExternalIPs(int index,String item) { if (this.externalIPs == null) { this.externalIPs = new ArrayList(); @@ -230,401 +149,386 @@ public A addToExternalIPs(int index,String item) { return (A) this; } - public A setToExternalIPs(int index,String item) { - if (this.externalIPs == null) { - this.externalIPs = new ArrayList(); + public A addToIpFamilies(String... items) { + if (this.ipFamilies == null) { + this.ipFamilies = new ArrayList(); + } + for (String item : items) { + this.ipFamilies.add(item); } - this.externalIPs.set(index, item); return (A) this; } - public A addToExternalIPs(String... items) { - if (this.externalIPs == null) { - this.externalIPs = new ArrayList(); - } - for (String item : items) { - this.externalIPs.add(item); + public A addToIpFamilies(int index,String item) { + if (this.ipFamilies == null) { + this.ipFamilies = new ArrayList(); } + this.ipFamilies.add(index, item); return (A) this; } - public A addAllToExternalIPs(Collection items) { - if (this.externalIPs == null) { - this.externalIPs = new ArrayList(); + public A addToLoadBalancerSourceRanges(String... items) { + if (this.loadBalancerSourceRanges == null) { + this.loadBalancerSourceRanges = new ArrayList(); } for (String item : items) { - this.externalIPs.add(item); + this.loadBalancerSourceRanges.add(item); } return (A) this; } - public A removeFromExternalIPs(String... items) { - if (this.externalIPs == null) { - return (A) this; - } - for (String item : items) { - this.externalIPs.remove(item); + public A addToLoadBalancerSourceRanges(int index,String item) { + if (this.loadBalancerSourceRanges == null) { + this.loadBalancerSourceRanges = new ArrayList(); } + this.loadBalancerSourceRanges.add(index, item); return (A) this; } - public A removeAllFromExternalIPs(Collection items) { - if (this.externalIPs == null) { - return (A) this; + public A addToPorts(V1ServicePort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); } - for (String item : items) { - this.externalIPs.remove(item); + for (V1ServicePort item : items) { + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); } return (A) this; } - public List getExternalIPs() { - return this.externalIPs; - } - - public String getExternalIP(int index) { - return this.externalIPs.get(index); - } - - public String getFirstExternalIP() { - return this.externalIPs.get(0); - } - - public String getLastExternalIP() { - return this.externalIPs.get(externalIPs.size() - 1); - } - - public String getMatchingExternalIP(Predicate predicate) { - for (String item : externalIPs) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingExternalIP(Predicate predicate) { - for (String item : externalIPs) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withExternalIPs(List externalIPs) { - if (externalIPs != null) { - this.externalIPs = new ArrayList(); - for (String item : externalIPs) { - this.addToExternalIPs(item); - } + public A addToPorts(int index,V1ServicePort item) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); } else { - this.externalIPs = null; + _visitables.get("ports").add(builder); + ports.add(index, builder); } return (A) this; } - public A withExternalIPs(String... externalIPs) { - if (this.externalIPs != null) { - this.externalIPs.clear(); - _visitables.remove("externalIPs"); + public A addToSelector(Map map) { + if (this.selector == null && map != null) { + this.selector = new LinkedHashMap(); } - if (externalIPs != null) { - for (String item : externalIPs) { - this.addToExternalIPs(item); - } + if (map != null) { + this.selector.putAll(map); } return (A) this; } - public boolean hasExternalIPs() { - return this.externalIPs != null && !(this.externalIPs.isEmpty()); + public A addToSelector(String key,String value) { + if (this.selector == null && key != null && value != null) { + this.selector = new LinkedHashMap(); + } + if (key != null && value != null) { + this.selector.put(key, value); + } + return (A) this; } - public String getExternalName() { - return this.externalName; + public V1ServicePort buildFirstPort() { + return this.ports.get(0).build(); } - public A withExternalName(String externalName) { - this.externalName = externalName; - return (A) this; + public V1ServicePort buildLastPort() { + return this.ports.get(ports.size() - 1).build(); } - public boolean hasExternalName() { - return this.externalName != null; + public V1ServicePort buildMatchingPort(Predicate predicate) { + for (V1ServicePortBuilder item : ports) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public String getExternalTrafficPolicy() { - return this.externalTrafficPolicy; + public V1ServicePort buildPort(int index) { + return this.ports.get(index).build(); } - public A withExternalTrafficPolicy(String externalTrafficPolicy) { - this.externalTrafficPolicy = externalTrafficPolicy; - return (A) this; + public List buildPorts() { + return this.ports != null ? build(ports) : null; } - public boolean hasExternalTrafficPolicy() { - return this.externalTrafficPolicy != null; + public V1SessionAffinityConfig buildSessionAffinityConfig() { + return this.sessionAffinityConfig != null ? this.sessionAffinityConfig.build() : null; } - public Integer getHealthCheckNodePort() { - return this.healthCheckNodePort; + protected void copyInstance(V1ServiceSpec instance) { + instance = instance != null ? instance : new V1ServiceSpec(); + if (instance != null) { + this.withAllocateLoadBalancerNodePorts(instance.getAllocateLoadBalancerNodePorts()); + this.withClusterIP(instance.getClusterIP()); + this.withClusterIPs(instance.getClusterIPs()); + this.withExternalIPs(instance.getExternalIPs()); + this.withExternalName(instance.getExternalName()); + this.withExternalTrafficPolicy(instance.getExternalTrafficPolicy()); + this.withHealthCheckNodePort(instance.getHealthCheckNodePort()); + this.withInternalTrafficPolicy(instance.getInternalTrafficPolicy()); + this.withIpFamilies(instance.getIpFamilies()); + this.withIpFamilyPolicy(instance.getIpFamilyPolicy()); + this.withLoadBalancerClass(instance.getLoadBalancerClass()); + this.withLoadBalancerIP(instance.getLoadBalancerIP()); + this.withLoadBalancerSourceRanges(instance.getLoadBalancerSourceRanges()); + this.withPorts(instance.getPorts()); + this.withPublishNotReadyAddresses(instance.getPublishNotReadyAddresses()); + this.withSelector(instance.getSelector()); + this.withSessionAffinity(instance.getSessionAffinity()); + this.withSessionAffinityConfig(instance.getSessionAffinityConfig()); + this.withTrafficDistribution(instance.getTrafficDistribution()); + this.withType(instance.getType()); + } } - public A withHealthCheckNodePort(Integer healthCheckNodePort) { - this.healthCheckNodePort = healthCheckNodePort; - return (A) this; + public PortsNested editFirstPort() { + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); } - public boolean hasHealthCheckNodePort() { - return this.healthCheckNodePort != null; + public PortsNested editLastPort() { + int index = ports.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public String getInternalTrafficPolicy() { - return this.internalTrafficPolicy; + public PortsNested editMatchingPort(Predicate predicate) { + int index = -1; + for (int i = 0;i < ports.size();i++) { + if (predicate.test(ports.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public A withInternalTrafficPolicy(String internalTrafficPolicy) { - this.internalTrafficPolicy = internalTrafficPolicy; - return (A) this; + public SessionAffinityConfigNested editOrNewSessionAffinityConfig() { + return this.withNewSessionAffinityConfigLike(Optional.ofNullable(this.buildSessionAffinityConfig()).orElse(new V1SessionAffinityConfigBuilder().build())); } - public boolean hasInternalTrafficPolicy() { - return this.internalTrafficPolicy != null; + public SessionAffinityConfigNested editOrNewSessionAffinityConfigLike(V1SessionAffinityConfig item) { + return this.withNewSessionAffinityConfigLike(Optional.ofNullable(this.buildSessionAffinityConfig()).orElse(item)); } - public A addToIpFamilies(int index,String item) { - if (this.ipFamilies == null) { - this.ipFamilies = new ArrayList(); + public PortsNested editPort(int index) { + if (ports.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); } - this.ipFamilies.add(index, item); - return (A) this; + return this.setNewPortLike(index, this.buildPort(index)); } - public A setToIpFamilies(int index,String item) { - if (this.ipFamilies == null) { - this.ipFamilies = new ArrayList(); - } - this.ipFamilies.set(index, item); - return (A) this; + public SessionAffinityConfigNested editSessionAffinityConfig() { + return this.withNewSessionAffinityConfigLike(Optional.ofNullable(this.buildSessionAffinityConfig()).orElse(null)); } - public A addToIpFamilies(String... items) { - if (this.ipFamilies == null) { - this.ipFamilies = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.ipFamilies.add(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A addAllToIpFamilies(Collection items) { - if (this.ipFamilies == null) { - this.ipFamilies = new ArrayList(); + if (!(super.equals(o))) { + return false; } - for (String item : items) { - this.ipFamilies.add(item); + V1ServiceSpecFluent that = (V1ServiceSpecFluent) o; + if (!(Objects.equals(allocateLoadBalancerNodePorts, that.allocateLoadBalancerNodePorts))) { + return false; } - return (A) this; - } - - public A removeFromIpFamilies(String... items) { - if (this.ipFamilies == null) { - return (A) this; + if (!(Objects.equals(clusterIP, that.clusterIP))) { + return false; } - for (String item : items) { - this.ipFamilies.remove(item); + if (!(Objects.equals(clusterIPs, that.clusterIPs))) { + return false; } - return (A) this; - } - - public A removeAllFromIpFamilies(Collection items) { - if (this.ipFamilies == null) { - return (A) this; + if (!(Objects.equals(externalIPs, that.externalIPs))) { + return false; } - for (String item : items) { - this.ipFamilies.remove(item); + if (!(Objects.equals(externalName, that.externalName))) { + return false; } - return (A) this; + if (!(Objects.equals(externalTrafficPolicy, that.externalTrafficPolicy))) { + return false; + } + if (!(Objects.equals(healthCheckNodePort, that.healthCheckNodePort))) { + return false; + } + if (!(Objects.equals(internalTrafficPolicy, that.internalTrafficPolicy))) { + return false; + } + if (!(Objects.equals(ipFamilies, that.ipFamilies))) { + return false; + } + if (!(Objects.equals(ipFamilyPolicy, that.ipFamilyPolicy))) { + return false; + } + if (!(Objects.equals(loadBalancerClass, that.loadBalancerClass))) { + return false; + } + if (!(Objects.equals(loadBalancerIP, that.loadBalancerIP))) { + return false; + } + if (!(Objects.equals(loadBalancerSourceRanges, that.loadBalancerSourceRanges))) { + return false; + } + if (!(Objects.equals(ports, that.ports))) { + return false; + } + if (!(Objects.equals(publishNotReadyAddresses, that.publishNotReadyAddresses))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(sessionAffinity, that.sessionAffinity))) { + return false; + } + if (!(Objects.equals(sessionAffinityConfig, that.sessionAffinityConfig))) { + return false; + } + if (!(Objects.equals(trafficDistribution, that.trafficDistribution))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public List getIpFamilies() { - return this.ipFamilies; + public Boolean getAllocateLoadBalancerNodePorts() { + return this.allocateLoadBalancerNodePorts; } - public String getIpFamily(int index) { - return this.ipFamilies.get(index); + public String getClusterIP() { + return this.clusterIP; } - public String getFirstIpFamily() { - return this.ipFamilies.get(0); + public String getClusterIP(int index) { + return this.clusterIPs.get(index); } - public String getLastIpFamily() { - return this.ipFamilies.get(ipFamilies.size() - 1); + public List getClusterIPs() { + return this.clusterIPs; } - public String getMatchingIpFamily(Predicate predicate) { - for (String item : ipFamilies) { - if (predicate.test(item)) { - return item; - } - } - return null; + public String getExternalIP(int index) { + return this.externalIPs.get(index); } - public boolean hasMatchingIpFamily(Predicate predicate) { - for (String item : ipFamilies) { - if (predicate.test(item)) { - return true; - } - } - return false; + public List getExternalIPs() { + return this.externalIPs; } - public A withIpFamilies(List ipFamilies) { - if (ipFamilies != null) { - this.ipFamilies = new ArrayList(); - for (String item : ipFamilies) { - this.addToIpFamilies(item); - } - } else { - this.ipFamilies = null; - } - return (A) this; + public String getExternalName() { + return this.externalName; } - public A withIpFamilies(String... ipFamilies) { - if (this.ipFamilies != null) { - this.ipFamilies.clear(); - _visitables.remove("ipFamilies"); - } - if (ipFamilies != null) { - for (String item : ipFamilies) { - this.addToIpFamilies(item); - } - } - return (A) this; + public String getExternalTrafficPolicy() { + return this.externalTrafficPolicy; } - public boolean hasIpFamilies() { - return this.ipFamilies != null && !(this.ipFamilies.isEmpty()); + public String getFirstClusterIP() { + return this.clusterIPs.get(0); } - public String getIpFamilyPolicy() { - return this.ipFamilyPolicy; + public String getFirstExternalIP() { + return this.externalIPs.get(0); } - public A withIpFamilyPolicy(String ipFamilyPolicy) { - this.ipFamilyPolicy = ipFamilyPolicy; - return (A) this; + public String getFirstIpFamily() { + return this.ipFamilies.get(0); } - public boolean hasIpFamilyPolicy() { - return this.ipFamilyPolicy != null; + public String getFirstLoadBalancerSourceRange() { + return this.loadBalancerSourceRanges.get(0); } - public String getLoadBalancerClass() { - return this.loadBalancerClass; + public Integer getHealthCheckNodePort() { + return this.healthCheckNodePort; } - public A withLoadBalancerClass(String loadBalancerClass) { - this.loadBalancerClass = loadBalancerClass; - return (A) this; + public String getInternalTrafficPolicy() { + return this.internalTrafficPolicy; } - public boolean hasLoadBalancerClass() { - return this.loadBalancerClass != null; + public List getIpFamilies() { + return this.ipFamilies; } - public String getLoadBalancerIP() { - return this.loadBalancerIP; + public String getIpFamily(int index) { + return this.ipFamilies.get(index); } - public A withLoadBalancerIP(String loadBalancerIP) { - this.loadBalancerIP = loadBalancerIP; - return (A) this; + public String getIpFamilyPolicy() { + return this.ipFamilyPolicy; } - public boolean hasLoadBalancerIP() { - return this.loadBalancerIP != null; + public String getLastClusterIP() { + return this.clusterIPs.get(clusterIPs.size() - 1); } - public A addToLoadBalancerSourceRanges(int index,String item) { - if (this.loadBalancerSourceRanges == null) { - this.loadBalancerSourceRanges = new ArrayList(); - } - this.loadBalancerSourceRanges.add(index, item); - return (A) this; + public String getLastExternalIP() { + return this.externalIPs.get(externalIPs.size() - 1); } - public A setToLoadBalancerSourceRanges(int index,String item) { - if (this.loadBalancerSourceRanges == null) { - this.loadBalancerSourceRanges = new ArrayList(); - } - this.loadBalancerSourceRanges.set(index, item); - return (A) this; + public String getLastIpFamily() { + return this.ipFamilies.get(ipFamilies.size() - 1); } - public A addToLoadBalancerSourceRanges(String... items) { - if (this.loadBalancerSourceRanges == null) { - this.loadBalancerSourceRanges = new ArrayList(); - } - for (String item : items) { - this.loadBalancerSourceRanges.add(item); - } - return (A) this; + public String getLastLoadBalancerSourceRange() { + return this.loadBalancerSourceRanges.get(loadBalancerSourceRanges.size() - 1); } - public A addAllToLoadBalancerSourceRanges(Collection items) { - if (this.loadBalancerSourceRanges == null) { - this.loadBalancerSourceRanges = new ArrayList(); - } - for (String item : items) { - this.loadBalancerSourceRanges.add(item); - } - return (A) this; + public String getLoadBalancerClass() { + return this.loadBalancerClass; } - public A removeFromLoadBalancerSourceRanges(String... items) { - if (this.loadBalancerSourceRanges == null) { - return (A) this; - } - for (String item : items) { - this.loadBalancerSourceRanges.remove(item); - } - return (A) this; + public String getLoadBalancerIP() { + return this.loadBalancerIP; } - public A removeAllFromLoadBalancerSourceRanges(Collection items) { - if (this.loadBalancerSourceRanges == null) { - return (A) this; - } - for (String item : items) { - this.loadBalancerSourceRanges.remove(item); - } - return (A) this; + public String getLoadBalancerSourceRange(int index) { + return this.loadBalancerSourceRanges.get(index); } public List getLoadBalancerSourceRanges() { return this.loadBalancerSourceRanges; } - public String getLoadBalancerSourceRange(int index) { - return this.loadBalancerSourceRanges.get(index); - } - - public String getFirstLoadBalancerSourceRange() { - return this.loadBalancerSourceRanges.get(0); + public String getMatchingClusterIP(Predicate predicate) { + for (String item : clusterIPs) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public String getLastLoadBalancerSourceRange() { - return this.loadBalancerSourceRanges.get(loadBalancerSourceRanges.size() - 1); + public String getMatchingExternalIP(Predicate predicate) { + for (String item : externalIPs) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public String getMatchingLoadBalancerSourceRange(Predicate predicate) { - for (String item : loadBalancerSourceRanges) { + public String getMatchingIpFamily(Predicate predicate) { + for (String item : ipFamilies) { if (predicate.test(item)) { return item; } @@ -632,165 +536,107 @@ public String getMatchingLoadBalancerSourceRange(Predicate predicate) { return null; } - public boolean hasMatchingLoadBalancerSourceRange(Predicate predicate) { + public String getMatchingLoadBalancerSourceRange(Predicate predicate) { for (String item : loadBalancerSourceRanges) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; + } + + public Boolean getPublishNotReadyAddresses() { + return this.publishNotReadyAddresses; + } + + public Map getSelector() { + return this.selector; + } + + public String getSessionAffinity() { + return this.sessionAffinity; + } + + public String getTrafficDistribution() { + return this.trafficDistribution; + } + + public String getType() { + return this.type; } - public A withLoadBalancerSourceRanges(List loadBalancerSourceRanges) { - if (loadBalancerSourceRanges != null) { - this.loadBalancerSourceRanges = new ArrayList(); - for (String item : loadBalancerSourceRanges) { - this.addToLoadBalancerSourceRanges(item); - } - } else { - this.loadBalancerSourceRanges = null; - } - return (A) this; + public boolean hasAllocateLoadBalancerNodePorts() { + return this.allocateLoadBalancerNodePorts != null; } - public A withLoadBalancerSourceRanges(String... loadBalancerSourceRanges) { - if (this.loadBalancerSourceRanges != null) { - this.loadBalancerSourceRanges.clear(); - _visitables.remove("loadBalancerSourceRanges"); - } - if (loadBalancerSourceRanges != null) { - for (String item : loadBalancerSourceRanges) { - this.addToLoadBalancerSourceRanges(item); - } - } - return (A) this; + public boolean hasClusterIP() { + return this.clusterIP != null; } - public boolean hasLoadBalancerSourceRanges() { - return this.loadBalancerSourceRanges != null && !(this.loadBalancerSourceRanges.isEmpty()); + public boolean hasClusterIPs() { + return this.clusterIPs != null && !(this.clusterIPs.isEmpty()); } - public A addToPorts(int index,V1ServicePort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); - } else { - _visitables.get("ports").add(builder); - ports.add(index, builder); - } - return (A) this; + public boolean hasExternalIPs() { + return this.externalIPs != null && !(this.externalIPs.isEmpty()); } - public A setToPorts(int index,V1ServicePort item) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); - } else { - _visitables.get("ports").add(builder); - ports.set(index, builder); - } - return (A) this; + public boolean hasExternalName() { + return this.externalName != null; } - public A addToPorts(V1ServicePort... items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (V1ServicePort item : items) { - V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; + public boolean hasExternalTrafficPolicy() { + return this.externalTrafficPolicy != null; } - public A addAllToPorts(Collection items) { - if (this.ports == null) { - this.ports = new ArrayList(); - } - for (V1ServicePort item : items) { - V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; + public boolean hasHealthCheckNodePort() { + return this.healthCheckNodePort != null; } - public A removeFromPorts(V1ServicePort... items) { - if (this.ports == null) { - return (A) this; - } - for (V1ServicePort item : items) { - V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - _visitables.get("ports").remove(builder); - this.ports.remove(builder); - } - return (A) this; + public boolean hasInternalTrafficPolicy() { + return this.internalTrafficPolicy != null; } - public A removeAllFromPorts(Collection items) { - if (this.ports == null) { - return (A) this; - } - for (V1ServicePort item : items) { - V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - _visitables.get("ports").remove(builder); - this.ports.remove(builder); - } - return (A) this; + public boolean hasIpFamilies() { + return this.ipFamilies != null && !(this.ipFamilies.isEmpty()); } - public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) { - return (A) this; - } - Iterator each = ports.iterator(); - List visitables = _visitables.get("ports"); - while (each.hasNext()) { - V1ServicePortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public boolean hasIpFamilyPolicy() { + return this.ipFamilyPolicy != null; } - public List buildPorts() { - return this.ports != null ? build(ports) : null; + public boolean hasLoadBalancerClass() { + return this.loadBalancerClass != null; } - public V1ServicePort buildPort(int index) { - return this.ports.get(index).build(); + public boolean hasLoadBalancerIP() { + return this.loadBalancerIP != null; } - public V1ServicePort buildFirstPort() { - return this.ports.get(0).build(); + public boolean hasLoadBalancerSourceRanges() { + return this.loadBalancerSourceRanges != null && !(this.loadBalancerSourceRanges.isEmpty()); } - public V1ServicePort buildLastPort() { - return this.ports.get(ports.size() - 1).build(); + public boolean hasMatchingClusterIP(Predicate predicate) { + for (String item : clusterIPs) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public V1ServicePort buildMatchingPort(Predicate predicate) { - for (V1ServicePortBuilder item : ports) { + public boolean hasMatchingExternalIP(Predicate predicate) { + for (String item : externalIPs) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } - public boolean hasMatchingPort(Predicate predicate) { - for (V1ServicePortBuilder item : ports) { + public boolean hasMatchingIpFamily(Predicate predicate) { + for (String item : ipFamilies) { if (predicate.test(item)) { return true; } @@ -798,115 +644,156 @@ public boolean hasMatchingPort(Predicate predicate) { return false; } - public A withPorts(List ports) { - if (this.ports != null) { - this._visitables.get("ports").clear(); - } - if (ports != null) { - this.ports = new ArrayList(); - for (V1ServicePort item : ports) { - this.addToPorts(item); + public boolean hasMatchingLoadBalancerSourceRange(Predicate predicate) { + for (String item : loadBalancerSourceRanges) { + if (predicate.test(item)) { + return true; } - } else { - this.ports = null; - } - return (A) this; + } + return false; } - public A withPorts(V1ServicePort... ports) { - if (this.ports != null) { - this.ports.clear(); - _visitables.remove("ports"); - } - if (ports != null) { - for (V1ServicePort item : ports) { - this.addToPorts(item); + public boolean hasMatchingPort(Predicate predicate) { + for (V1ServicePortBuilder item : ports) { + if (predicate.test(item)) { + return true; + } } - } - return (A) this; + return false; } public boolean hasPorts() { return this.ports != null && !(this.ports.isEmpty()); } - public PortsNested addNewPort() { - return new PortsNested(-1, null); + public boolean hasPublishNotReadyAddresses() { + return this.publishNotReadyAddresses != null; } - public PortsNested addNewPortLike(V1ServicePort item) { - return new PortsNested(-1, item); + public boolean hasSelector() { + return this.selector != null; } - public PortsNested setNewPortLike(int index,V1ServicePort item) { - return new PortsNested(index, item); + public boolean hasSessionAffinity() { + return this.sessionAffinity != null; } - public PortsNested editPort(int index) { - if (index <= ports.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + public boolean hasSessionAffinityConfig() { + return this.sessionAffinityConfig != null; + } + + public boolean hasTrafficDistribution() { + return this.trafficDistribution != null; + } + + public boolean hasType() { + return this.type != null; + } + + public int hashCode() { + return Objects.hash(allocateLoadBalancerNodePorts, clusterIP, clusterIPs, externalIPs, externalName, externalTrafficPolicy, healthCheckNodePort, internalTrafficPolicy, ipFamilies, ipFamilyPolicy, loadBalancerClass, loadBalancerIP, loadBalancerSourceRanges, ports, publishNotReadyAddresses, selector, sessionAffinity, sessionAffinityConfig, trafficDistribution, type); + } + + public A removeAllFromClusterIPs(Collection items) { + if (this.clusterIPs == null) { + return (A) this; } - return this.setNewPortLike(index, this.buildPort(index)); + for (String item : items) { + this.clusterIPs.remove(item); + } + return (A) this; } - public PortsNested editFirstPort() { - if (ports.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + public A removeAllFromExternalIPs(Collection items) { + if (this.externalIPs == null) { + return (A) this; } - return this.setNewPortLike(0, this.buildPort(0)); + for (String item : items) { + this.externalIPs.remove(item); + } + return (A) this; } - public PortsNested editLastPort() { - int index = ports.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + public A removeAllFromIpFamilies(Collection items) { + if (this.ipFamilies == null) { + return (A) this; + } + for (String item : items) { + this.ipFamilies.remove(item); + } + return (A) this; + } + + public A removeAllFromLoadBalancerSourceRanges(Collection items) { + if (this.loadBalancerSourceRanges == null) { + return (A) this; } - return this.setNewPortLike(index, this.buildPort(index)); + for (String item : items) { + this.loadBalancerSourceRanges.remove(item); + } + return (A) this; } - public PortsNested editMatchingPort(Predicate predicate) { - int index = -1; - for (int i = 0;i < ports.size();i++) { - if (predicate.test(ports.get(i))) { - index = i; - break; - } + public A removeAllFromPorts(Collection items) { + if (this.ports == null) { + return (A) this; } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ports")); + for (V1ServicePort item : items) { + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); } - return this.setNewPortLike(index, this.buildPort(index)); + return (A) this; } - public Boolean getPublishNotReadyAddresses() { - return this.publishNotReadyAddresses; + public A removeFromClusterIPs(String... items) { + if (this.clusterIPs == null) { + return (A) this; + } + for (String item : items) { + this.clusterIPs.remove(item); + } + return (A) this; } - public A withPublishNotReadyAddresses(Boolean publishNotReadyAddresses) { - this.publishNotReadyAddresses = publishNotReadyAddresses; + public A removeFromExternalIPs(String... items) { + if (this.externalIPs == null) { + return (A) this; + } + for (String item : items) { + this.externalIPs.remove(item); + } return (A) this; } - public boolean hasPublishNotReadyAddresses() { - return this.publishNotReadyAddresses != null; + public A removeFromIpFamilies(String... items) { + if (this.ipFamilies == null) { + return (A) this; + } + for (String item : items) { + this.ipFamilies.remove(item); + } + return (A) this; } - public A addToSelector(String key,String value) { - if (this.selector == null && key != null && value != null) { - this.selector = new LinkedHashMap(); + public A removeFromLoadBalancerSourceRanges(String... items) { + if (this.loadBalancerSourceRanges == null) { + return (A) this; } - if (key != null && value != null) { - this.selector.put(key, value); + for (String item : items) { + this.loadBalancerSourceRanges.remove(item); } return (A) this; } - public A addToSelector(Map map) { - if (this.selector == null && map != null) { - this.selector = new LinkedHashMap(); + public A removeFromPorts(V1ServicePort... items) { + if (this.ports == null) { + return (A) this; } - if (map != null) { - this.selector.putAll(map); + for (V1ServicePort item : items) { + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); } return (A) this; } @@ -935,178 +822,71 @@ public A removeFromSelector(Map map) { return (A) this; } - public Map getSelector() { - return this.selector; - } - - public A withSelector(Map selector) { - if (selector == null) { - this.selector = null; - } else { - this.selector = new LinkedHashMap(selector); + public A removeMatchingFromPorts(Predicate predicate) { + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); + while (each.hasNext()) { + V1ServicePortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasSelector() { - return this.selector != null; - } - - public String getSessionAffinity() { - return this.sessionAffinity; - } - - public A withSessionAffinity(String sessionAffinity) { - this.sessionAffinity = sessionAffinity; - return (A) this; - } - - public boolean hasSessionAffinity() { - return this.sessionAffinity != null; - } - - public V1SessionAffinityConfig buildSessionAffinityConfig() { - return this.sessionAffinityConfig != null ? this.sessionAffinityConfig.build() : null; + public PortsNested setNewPortLike(int index,V1ServicePort item) { + return new PortsNested(index, item); } - public A withSessionAffinityConfig(V1SessionAffinityConfig sessionAffinityConfig) { - this._visitables.remove("sessionAffinityConfig"); - if (sessionAffinityConfig != null) { - this.sessionAffinityConfig = new V1SessionAffinityConfigBuilder(sessionAffinityConfig); - this._visitables.get("sessionAffinityConfig").add(this.sessionAffinityConfig); - } else { - this.sessionAffinityConfig = null; - this._visitables.get("sessionAffinityConfig").remove(this.sessionAffinityConfig); + public A setToClusterIPs(int index,String item) { + if (this.clusterIPs == null) { + this.clusterIPs = new ArrayList(); } + this.clusterIPs.set(index, item); return (A) this; } - public boolean hasSessionAffinityConfig() { - return this.sessionAffinityConfig != null; - } - - public SessionAffinityConfigNested withNewSessionAffinityConfig() { - return new SessionAffinityConfigNested(null); - } - - public SessionAffinityConfigNested withNewSessionAffinityConfigLike(V1SessionAffinityConfig item) { - return new SessionAffinityConfigNested(item); - } - - public SessionAffinityConfigNested editSessionAffinityConfig() { - return this.withNewSessionAffinityConfigLike(Optional.ofNullable(this.buildSessionAffinityConfig()).orElse(null)); - } - - public SessionAffinityConfigNested editOrNewSessionAffinityConfig() { - return this.withNewSessionAffinityConfigLike(Optional.ofNullable(this.buildSessionAffinityConfig()).orElse(new V1SessionAffinityConfigBuilder().build())); - } - - public SessionAffinityConfigNested editOrNewSessionAffinityConfigLike(V1SessionAffinityConfig item) { - return this.withNewSessionAffinityConfigLike(Optional.ofNullable(this.buildSessionAffinityConfig()).orElse(item)); - } - - public String getTrafficDistribution() { - return this.trafficDistribution; - } - - public A withTrafficDistribution(String trafficDistribution) { - this.trafficDistribution = trafficDistribution; + public A setToExternalIPs(int index,String item) { + if (this.externalIPs == null) { + this.externalIPs = new ArrayList(); + } + this.externalIPs.set(index, item); return (A) this; } - public boolean hasTrafficDistribution() { - return this.trafficDistribution != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; + public A setToIpFamilies(int index,String item) { + if (this.ipFamilies == null) { + this.ipFamilies = new ArrayList(); + } + this.ipFamilies.set(index, item); return (A) this; } - public boolean hasType() { - return this.type != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ServiceSpecFluent that = (V1ServiceSpecFluent) o; - if (!(Objects.equals(allocateLoadBalancerNodePorts, that.allocateLoadBalancerNodePorts))) { - return false; - } - if (!(Objects.equals(clusterIP, that.clusterIP))) { - return false; - } - if (!(Objects.equals(clusterIPs, that.clusterIPs))) { - return false; - } - if (!(Objects.equals(externalIPs, that.externalIPs))) { - return false; - } - if (!(Objects.equals(externalName, that.externalName))) { - return false; - } - if (!(Objects.equals(externalTrafficPolicy, that.externalTrafficPolicy))) { - return false; - } - if (!(Objects.equals(healthCheckNodePort, that.healthCheckNodePort))) { - return false; - } - if (!(Objects.equals(internalTrafficPolicy, that.internalTrafficPolicy))) { - return false; - } - if (!(Objects.equals(ipFamilies, that.ipFamilies))) { - return false; - } - if (!(Objects.equals(ipFamilyPolicy, that.ipFamilyPolicy))) { - return false; - } - if (!(Objects.equals(loadBalancerClass, that.loadBalancerClass))) { - return false; - } - if (!(Objects.equals(loadBalancerIP, that.loadBalancerIP))) { - return false; - } - if (!(Objects.equals(loadBalancerSourceRanges, that.loadBalancerSourceRanges))) { - return false; - } - if (!(Objects.equals(ports, that.ports))) { - return false; - } - if (!(Objects.equals(publishNotReadyAddresses, that.publishNotReadyAddresses))) { - return false; - } - if (!(Objects.equals(selector, that.selector))) { - return false; - } - if (!(Objects.equals(sessionAffinity, that.sessionAffinity))) { - return false; - } - if (!(Objects.equals(sessionAffinityConfig, that.sessionAffinityConfig))) { - return false; - } - if (!(Objects.equals(trafficDistribution, that.trafficDistribution))) { - return false; - } - if (!(Objects.equals(type, that.type))) { - return false; + public A setToLoadBalancerSourceRanges(int index,String item) { + if (this.loadBalancerSourceRanges == null) { + this.loadBalancerSourceRanges = new ArrayList(); } - return true; + this.loadBalancerSourceRanges.set(index, item); + return (A) this; } - public int hashCode() { - return Objects.hash(allocateLoadBalancerNodePorts, clusterIP, clusterIPs, externalIPs, externalName, externalTrafficPolicy, healthCheckNodePort, internalTrafficPolicy, ipFamilies, ipFamilyPolicy, loadBalancerClass, loadBalancerIP, loadBalancerSourceRanges, ports, publishNotReadyAddresses, selector, sessionAffinity, sessionAffinityConfig, trafficDistribution, type); + public A setToPorts(int index,V1ServicePort item) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); + if (index < 0 || index >= ports.size()) { + _visitables.get("ports").add(builder); + ports.add(builder); + } else { + _visitables.get("ports").add(builder); + ports.set(index, builder); + } + return (A) this; } public String toString() { @@ -1219,17 +999,241 @@ public A withAllocateLoadBalancerNodePorts() { return withAllocateLoadBalancerNodePorts(true); } + public A withAllocateLoadBalancerNodePorts(Boolean allocateLoadBalancerNodePorts) { + this.allocateLoadBalancerNodePorts = allocateLoadBalancerNodePorts; + return (A) this; + } + + public A withClusterIP(String clusterIP) { + this.clusterIP = clusterIP; + return (A) this; + } + + public A withClusterIPs(List clusterIPs) { + if (clusterIPs != null) { + this.clusterIPs = new ArrayList(); + for (String item : clusterIPs) { + this.addToClusterIPs(item); + } + } else { + this.clusterIPs = null; + } + return (A) this; + } + + public A withClusterIPs(String... clusterIPs) { + if (this.clusterIPs != null) { + this.clusterIPs.clear(); + _visitables.remove("clusterIPs"); + } + if (clusterIPs != null) { + for (String item : clusterIPs) { + this.addToClusterIPs(item); + } + } + return (A) this; + } + + public A withExternalIPs(List externalIPs) { + if (externalIPs != null) { + this.externalIPs = new ArrayList(); + for (String item : externalIPs) { + this.addToExternalIPs(item); + } + } else { + this.externalIPs = null; + } + return (A) this; + } + + public A withExternalIPs(String... externalIPs) { + if (this.externalIPs != null) { + this.externalIPs.clear(); + _visitables.remove("externalIPs"); + } + if (externalIPs != null) { + for (String item : externalIPs) { + this.addToExternalIPs(item); + } + } + return (A) this; + } + + public A withExternalName(String externalName) { + this.externalName = externalName; + return (A) this; + } + + public A withExternalTrafficPolicy(String externalTrafficPolicy) { + this.externalTrafficPolicy = externalTrafficPolicy; + return (A) this; + } + + public A withHealthCheckNodePort(Integer healthCheckNodePort) { + this.healthCheckNodePort = healthCheckNodePort; + return (A) this; + } + + public A withInternalTrafficPolicy(String internalTrafficPolicy) { + this.internalTrafficPolicy = internalTrafficPolicy; + return (A) this; + } + + public A withIpFamilies(List ipFamilies) { + if (ipFamilies != null) { + this.ipFamilies = new ArrayList(); + for (String item : ipFamilies) { + this.addToIpFamilies(item); + } + } else { + this.ipFamilies = null; + } + return (A) this; + } + + public A withIpFamilies(String... ipFamilies) { + if (this.ipFamilies != null) { + this.ipFamilies.clear(); + _visitables.remove("ipFamilies"); + } + if (ipFamilies != null) { + for (String item : ipFamilies) { + this.addToIpFamilies(item); + } + } + return (A) this; + } + + public A withIpFamilyPolicy(String ipFamilyPolicy) { + this.ipFamilyPolicy = ipFamilyPolicy; + return (A) this; + } + + public A withLoadBalancerClass(String loadBalancerClass) { + this.loadBalancerClass = loadBalancerClass; + return (A) this; + } + + public A withLoadBalancerIP(String loadBalancerIP) { + this.loadBalancerIP = loadBalancerIP; + return (A) this; + } + + public A withLoadBalancerSourceRanges(List loadBalancerSourceRanges) { + if (loadBalancerSourceRanges != null) { + this.loadBalancerSourceRanges = new ArrayList(); + for (String item : loadBalancerSourceRanges) { + this.addToLoadBalancerSourceRanges(item); + } + } else { + this.loadBalancerSourceRanges = null; + } + return (A) this; + } + + public A withLoadBalancerSourceRanges(String... loadBalancerSourceRanges) { + if (this.loadBalancerSourceRanges != null) { + this.loadBalancerSourceRanges.clear(); + _visitables.remove("loadBalancerSourceRanges"); + } + if (loadBalancerSourceRanges != null) { + for (String item : loadBalancerSourceRanges) { + this.addToLoadBalancerSourceRanges(item); + } + } + return (A) this; + } + + public SessionAffinityConfigNested withNewSessionAffinityConfig() { + return new SessionAffinityConfigNested(null); + } + + public SessionAffinityConfigNested withNewSessionAffinityConfigLike(V1SessionAffinityConfig item) { + return new SessionAffinityConfigNested(item); + } + + public A withPorts(List ports) { + if (this.ports != null) { + this._visitables.get("ports").clear(); + } + if (ports != null) { + this.ports = new ArrayList(); + for (V1ServicePort item : ports) { + this.addToPorts(item); + } + } else { + this.ports = null; + } + return (A) this; + } + + public A withPorts(V1ServicePort... ports) { + if (this.ports != null) { + this.ports.clear(); + _visitables.remove("ports"); + } + if (ports != null) { + for (V1ServicePort item : ports) { + this.addToPorts(item); + } + } + return (A) this; + } + public A withPublishNotReadyAddresses() { return withPublishNotReadyAddresses(true); } + + public A withPublishNotReadyAddresses(Boolean publishNotReadyAddresses) { + this.publishNotReadyAddresses = publishNotReadyAddresses; + return (A) this; + } + + public A withSelector(Map selector) { + if (selector == null) { + this.selector = null; + } else { + this.selector = new LinkedHashMap(selector); + } + return (A) this; + } + + public A withSessionAffinity(String sessionAffinity) { + this.sessionAffinity = sessionAffinity; + return (A) this; + } + + public A withSessionAffinityConfig(V1SessionAffinityConfig sessionAffinityConfig) { + this._visitables.remove("sessionAffinityConfig"); + if (sessionAffinityConfig != null) { + this.sessionAffinityConfig = new V1SessionAffinityConfigBuilder(sessionAffinityConfig); + this._visitables.get("sessionAffinityConfig").add(this.sessionAffinityConfig); + } else { + this.sessionAffinityConfig = null; + this._visitables.get("sessionAffinityConfig").remove(this.sessionAffinityConfig); + } + return (A) this; + } + + public A withTrafficDistribution(String trafficDistribution) { + this.trafficDistribution = trafficDistribution; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } public class PortsNested extends V1ServicePortFluent> implements Nested{ + + V1ServicePortBuilder builder; + int index; + PortsNested(int index,V1ServicePort item) { this.index = index; this.builder = new V1ServicePortBuilder(this, item); } - V1ServicePortBuilder builder; - int index; - + public N and() { return (N) V1ServiceSpecFluent.this.setToPorts(index, builder.build()); } @@ -1238,14 +1242,15 @@ public N endPort() { return and(); } - } public class SessionAffinityConfigNested extends V1SessionAffinityConfigFluent> implements Nested{ + + V1SessionAffinityConfigBuilder builder; + SessionAffinityConfigNested(V1SessionAffinityConfig item) { this.builder = new V1SessionAffinityConfigBuilder(this, item); } - V1SessionAffinityConfigBuilder builder; - + public N and() { return (N) V1ServiceSpecFluent.this.withSessionAffinityConfig(builder.build()); } @@ -1254,7 +1259,5 @@ public N endSessionAffinityConfig() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java index 74833a9c26..20750c2d47 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ServiceStatusBuilder extends V1ServiceStatusFluent implements VisitableBuilder{ + + V1ServiceStatusFluent fluent; + public V1ServiceStatusBuilder() { this(new V1ServiceStatus()); } @@ -11,17 +14,16 @@ public V1ServiceStatusBuilder(V1ServiceStatusFluent fluent) { this(fluent, new V1ServiceStatus()); } - public V1ServiceStatusBuilder(V1ServiceStatusFluent fluent,V1ServiceStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceStatusBuilder(V1ServiceStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceStatusFluent fluent; + public V1ServiceStatusBuilder(V1ServiceStatusFluent fluent,V1ServiceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceStatus build() { V1ServiceStatus buildable = new V1ServiceStatus(); buildable.setConditions(fluent.buildConditions()); @@ -29,5 +31,4 @@ public V1ServiceStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java index 574c5fb757..1c72822eda 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java @@ -1,70 +1,54 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ServiceStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + private V1LoadBalancerStatusBuilder loadBalancer; + public V1ServiceStatusFluent() { } public V1ServiceStatusFluent(V1ServiceStatus instance) { this.copyInstance(instance); } - private ArrayList conditions; - private V1LoadBalancerStatusBuilder loadBalancer; - - protected void copyInstance(V1ServiceStatus instance) { - instance = instance != null ? instance : new V1ServiceStatus(); - if (instance != null) { - this.withConditions(instance.getConditions()); - this.withLoadBalancer(instance.getLoadBalancer()); - } - } - - public A addToConditions(int index,V1Condition item) { + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1Condition... items) { @@ -79,66 +63,29 @@ public A addToConditions(V1Condition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1Condition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1Condition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -147,6 +94,10 @@ public V1Condition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } + public V1LoadBalancerStatus buildLoadBalancer() { + return this.loadBalancer != null ? this.loadBalancer.build() : null; + } + public V1Condition buildMatchingCondition(Predicate predicate) { for (V1ConditionBuilder item : conditions) { if (predicate.test(item)) { @@ -156,61 +107,16 @@ public V1Condition buildMatchingCondition(Predicate predicat return null; } - public boolean hasMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(V1Condition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1Condition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1ServiceStatus instance) { + instance = instance != null ? instance : new V1ServiceStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withLoadBalancer(instance.getLoadBalancer()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -231,6 +137,10 @@ public ConditionsNested editLastCondition() { return this.setNewConditionLike(index, this.buildCondition(index)); } + public LoadBalancerNested editLoadBalancer() { + return this.withNewLoadBalancerLike(Optional.ofNullable(this.buildLoadBalancer()).orElse(null)); + } + public ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; for (int i = 0;i < conditions.size();i++) { @@ -245,38 +155,6 @@ public ConditionsNested editMatchingCondition(Predicate p return this.setNewConditionLike(index, this.buildCondition(index)); } - public V1LoadBalancerStatus buildLoadBalancer() { - return this.loadBalancer != null ? this.loadBalancer.build() : null; - } - - public A withLoadBalancer(V1LoadBalancerStatus loadBalancer) { - this._visitables.remove("loadBalancer"); - if (loadBalancer != null) { - this.loadBalancer = new V1LoadBalancerStatusBuilder(loadBalancer); - this._visitables.get("loadBalancer").add(this.loadBalancer); - } else { - this.loadBalancer = null; - this._visitables.get("loadBalancer").remove(this.loadBalancer); - } - return (A) this; - } - - public boolean hasLoadBalancer() { - return this.loadBalancer != null; - } - - public LoadBalancerNested withNewLoadBalancer() { - return new LoadBalancerNested(null); - } - - public LoadBalancerNested withNewLoadBalancerLike(V1LoadBalancerStatus item) { - return new LoadBalancerNested(item); - } - - public LoadBalancerNested editLoadBalancer() { - return this.withNewLoadBalancerLike(Optional.ofNullable(this.buildLoadBalancer()).orElse(null)); - } - public LoadBalancerNested editOrNewLoadBalancer() { return this.withNewLoadBalancerLike(Optional.ofNullable(this.buildLoadBalancer()).orElse(new V1LoadBalancerStatusBuilder().build())); } @@ -305,10 +183,86 @@ public boolean equals(Object o) { return true; } + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasLoadBalancer() { + return this.loadBalancer != null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(conditions, loadBalancer); } + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1Condition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -324,14 +278,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withLoadBalancer(V1LoadBalancerStatus loadBalancer) { + this._visitables.remove("loadBalancer"); + if (loadBalancer != null) { + this.loadBalancer = new V1LoadBalancerStatusBuilder(loadBalancer); + this._visitables.get("loadBalancer").add(this.loadBalancer); + } else { + this.loadBalancer = null; + this._visitables.get("loadBalancer").remove(this.loadBalancer); + } + return (A) this; + } + + public LoadBalancerNested withNewLoadBalancer() { + return new LoadBalancerNested(null); + } + + public LoadBalancerNested withNewLoadBalancerLike(V1LoadBalancerStatus item) { + return new LoadBalancerNested(item); + } public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + ConditionsNested(int index,V1Condition item) { this.index = index; this.builder = new V1ConditionBuilder(this, item); } - V1ConditionBuilder builder; - int index; - + public N and() { return (N) V1ServiceStatusFluent.this.setToConditions(index, builder.build()); } @@ -340,14 +344,15 @@ public N endCondition() { return and(); } - } public class LoadBalancerNested extends V1LoadBalancerStatusFluent> implements Nested{ + + V1LoadBalancerStatusBuilder builder; + LoadBalancerNested(V1LoadBalancerStatus item) { this.builder = new V1LoadBalancerStatusBuilder(this, item); } - V1LoadBalancerStatusBuilder builder; - + public N and() { return (N) V1ServiceStatusFluent.this.withLoadBalancer(builder.build()); } @@ -356,7 +361,5 @@ public N endLoadBalancer() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java index 18787763fe..ff0f53200c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SessionAffinityConfigBuilder extends V1SessionAffinityConfigFluent implements VisitableBuilder{ + + V1SessionAffinityConfigFluent fluent; + public V1SessionAffinityConfigBuilder() { this(new V1SessionAffinityConfig()); } @@ -11,22 +14,20 @@ public V1SessionAffinityConfigBuilder(V1SessionAffinityConfigFluent fluent) { this(fluent, new V1SessionAffinityConfig()); } - public V1SessionAffinityConfigBuilder(V1SessionAffinityConfigFluent fluent,V1SessionAffinityConfig instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SessionAffinityConfigBuilder(V1SessionAffinityConfig instance) { this.fluent = this; this.copyInstance(instance); } - V1SessionAffinityConfigFluent fluent; + public V1SessionAffinityConfigBuilder(V1SessionAffinityConfigFluent fluent,V1SessionAffinityConfig instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SessionAffinityConfig build() { V1SessionAffinityConfig buildable = new V1SessionAffinityConfig(); buildable.setClientIP(fluent.buildClientIP()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java index 04812381ac..50bcb81b09 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1SessionAffinityConfigFluent> extends BaseFluent{ + + private V1ClientIPConfigBuilder clientIP; + public V1SessionAffinityConfigFluent() { } public V1SessionAffinityConfigFluent(V1SessionAffinityConfig instance) { this.copyInstance(instance); } - private V1ClientIPConfigBuilder clientIP; + + public V1ClientIPConfig buildClientIP() { + return this.clientIP != null ? this.clientIP.build() : null; + } protected void copyInstance(V1SessionAffinityConfig instance) { instance = instance != null ? instance : new V1SessionAffinityConfig(); @@ -29,34 +35,6 @@ protected void copyInstance(V1SessionAffinityConfig instance) { } } - public V1ClientIPConfig buildClientIP() { - return this.clientIP != null ? this.clientIP.build() : null; - } - - public A withClientIP(V1ClientIPConfig clientIP) { - this._visitables.remove("clientIP"); - if (clientIP != null) { - this.clientIP = new V1ClientIPConfigBuilder(clientIP); - this._visitables.get("clientIP").add(this.clientIP); - } else { - this.clientIP = null; - this._visitables.get("clientIP").remove(this.clientIP); - } - return (A) this; - } - - public boolean hasClientIP() { - return this.clientIP != null; - } - - public ClientIPNested withNewClientIP() { - return new ClientIPNested(null); - } - - public ClientIPNested withNewClientIPLike(V1ClientIPConfig item) { - return new ClientIPNested(item); - } - public ClientIPNested editClientIP() { return this.withNewClientIPLike(Optional.ofNullable(this.buildClientIP()).orElse(null)); } @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasClientIP() { + return this.clientIP != null; + } + public int hashCode() { return Objects.hash(clientIP); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withClientIP(V1ClientIPConfig clientIP) { + this._visitables.remove("clientIP"); + if (clientIP != null) { + this.clientIP = new V1ClientIPConfigBuilder(clientIP); + this._visitables.get("clientIP").add(this.clientIP); + } else { + this.clientIP = null; + this._visitables.get("clientIP").remove(this.clientIP); + } + return (A) this; + } + + public ClientIPNested withNewClientIP() { + return new ClientIPNested(null); + } + + public ClientIPNested withNewClientIPLike(V1ClientIPConfig item) { + return new ClientIPNested(item); + } public class ClientIPNested extends V1ClientIPConfigFluent> implements Nested{ + + V1ClientIPConfigBuilder builder; + ClientIPNested(V1ClientIPConfig item) { this.builder = new V1ClientIPConfigBuilder(this, item); } - V1ClientIPConfigBuilder builder; - + public N and() { return (N) V1SessionAffinityConfigFluent.this.withClientIP(builder.build()); } @@ -114,7 +118,5 @@ public N endClientIP() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionBuilder.java index a307a74b44..ea9490a572 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SleepActionBuilder extends V1SleepActionFluent implements VisitableBuilder{ + + V1SleepActionFluent fluent; + public V1SleepActionBuilder() { this(new V1SleepAction()); } @@ -11,22 +14,20 @@ public V1SleepActionBuilder(V1SleepActionFluent fluent) { this(fluent, new V1SleepAction()); } - public V1SleepActionBuilder(V1SleepActionFluent fluent,V1SleepAction instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SleepActionBuilder(V1SleepAction instance) { this.fluent = this; this.copyInstance(instance); } - V1SleepActionFluent fluent; + public V1SleepActionBuilder(V1SleepActionFluent fluent,V1SleepAction instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SleepAction build() { V1SleepAction buildable = new V1SleepAction(); buildable.setSeconds(fluent.getSeconds()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionFluent.java index e11e2500db..3c5aa23df2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1SleepActionFluent> extends BaseFluent{ + + private Long seconds; + public V1SleepActionFluent() { } public V1SleepActionFluent(V1SleepAction instance) { this.copyInstance(instance); } - private Long seconds; - + protected void copyInstance(V1SleepAction instance) { instance = instance != null ? instance : new V1SleepAction(); if (instance != null) { @@ -28,19 +30,6 @@ protected void copyInstance(V1SleepAction instance) { } } - public Long getSeconds() { - return this.seconds; - } - - public A withSeconds(Long seconds) { - this.seconds = seconds; - return (A) this; - } - - public boolean hasSeconds() { - return this.seconds != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -58,6 +47,14 @@ public boolean equals(Object o) { return true; } + public Long getSeconds() { + return this.seconds; + } + + public boolean hasSeconds() { + return this.seconds != null; + } + public int hashCode() { return Objects.hash(seconds); } @@ -73,5 +70,9 @@ public String toString() { return sb.toString(); } - + public A withSeconds(Long seconds) { + this.seconds = seconds; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java index 98c633db0d..cbd9241296 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1StatefulSetBuilder extends V1StatefulSetFluent implements VisitableBuilder{ + + V1StatefulSetFluent fluent; + public V1StatefulSetBuilder() { this(new V1StatefulSet()); } @@ -11,17 +14,16 @@ public V1StatefulSetBuilder(V1StatefulSetFluent fluent) { this(fluent, new V1StatefulSet()); } - public V1StatefulSetBuilder(V1StatefulSetFluent fluent,V1StatefulSet instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatefulSetBuilder(V1StatefulSet instance) { this.fluent = this; this.copyInstance(instance); } - V1StatefulSetFluent fluent; + public V1StatefulSetBuilder(V1StatefulSetFluent fluent,V1StatefulSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatefulSet build() { V1StatefulSet buildable = new V1StatefulSet(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1StatefulSet build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java index 47e398cc7e..675dc0444b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1StatefulSetConditionBuilder extends V1StatefulSetConditionFluent implements VisitableBuilder{ + + V1StatefulSetConditionFluent fluent; + public V1StatefulSetConditionBuilder() { this(new V1StatefulSetCondition()); } @@ -11,17 +14,16 @@ public V1StatefulSetConditionBuilder(V1StatefulSetConditionFluent fluent) { this(fluent, new V1StatefulSetCondition()); } - public V1StatefulSetConditionBuilder(V1StatefulSetConditionFluent fluent,V1StatefulSetCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatefulSetConditionBuilder(V1StatefulSetCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1StatefulSetConditionFluent fluent; + public V1StatefulSetConditionBuilder(V1StatefulSetConditionFluent fluent,V1StatefulSetCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatefulSetCondition build() { V1StatefulSetCondition buildable = new V1StatefulSetCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -32,5 +34,4 @@ public V1StatefulSetCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java index a177093f28..4a63b752ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1StatefulSetConditionFluent> extends BaseFluent{ - public V1StatefulSetConditionFluent() { - } - - public V1StatefulSetConditionFluent(V1StatefulSetCondition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1StatefulSetConditionFluent() { + } + public V1StatefulSetConditionFluent(V1StatefulSetCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1StatefulSetCondition instance) { instance = instance != null ? instance : new V1StatefulSetCondition(); if (instance != null) { @@ -36,71 +38,6 @@ protected void copyInstance(V1StatefulSetCondition instance) { } } - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -130,6 +67,46 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; + } + + public String getMessage() { + return this.message; + } + + public String getReason() { + return this.reason; + } + + public String getStatus() { + return this.status; + } + + public String getType() { + return this.type; + } + + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasReason() { + return this.reason != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } @@ -165,5 +142,29 @@ public String toString() { return sb.toString(); } - + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java index ccc2fa0f30..25d5cf48fd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1StatefulSetFluent> extends BaseFluent{ - public V1StatefulSetFluent() { - } - - public V1StatefulSetFluent(V1StatefulSet instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1StatefulSetSpecBuilder spec; private V1StatefulSetStatusBuilder status; - - protected void copyInstance(V1StatefulSet instance) { - instance = instance != null ? instance : new V1StatefulSet(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1StatefulSetFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1StatefulSetFluent(V1StatefulSet instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1StatefulSetSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1StatefulSetStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1StatefulSet instance) { + instance = instance != null ? instance : new V1StatefulSet(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1StatefulSetSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1StatefulSetSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1StatefulSetSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1StatefulSetSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1StatefulSetSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1StatefulSetSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1StatefulSetStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1StatefulSetStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1StatefulSetStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1StatefulSetStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1StatefulSetStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1StatefulSetStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1StatefulSetStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1StatefulSetStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1StatefulSetSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1StatefulSetStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1StatefulSetSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1StatefulSetSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1StatefulSetStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1StatefulSetStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1StatefulSetFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1StatefulSetSpecFluent> implements Nested{ + + V1StatefulSetSpecBuilder builder; + SpecNested(V1StatefulSetSpec item) { this.builder = new V1StatefulSetSpecBuilder(this, item); } - V1StatefulSetSpecBuilder builder; - + public N and() { return (N) V1StatefulSetFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1StatefulSetStatusFluent> implements Nested{ + + V1StatefulSetStatusBuilder builder; + StatusNested(V1StatefulSetStatus item) { this.builder = new V1StatefulSetStatusBuilder(this, item); } - V1StatefulSetStatusBuilder builder; - + public N and() { return (N) V1StatefulSetFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java index 1d53289596..c783af7599 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1StatefulSetListBuilder extends V1StatefulSetListFluent implements VisitableBuilder{ + + V1StatefulSetListFluent fluent; + public V1StatefulSetListBuilder() { this(new V1StatefulSetList()); } @@ -11,17 +14,16 @@ public V1StatefulSetListBuilder(V1StatefulSetListFluent fluent) { this(fluent, new V1StatefulSetList()); } - public V1StatefulSetListBuilder(V1StatefulSetListFluent fluent,V1StatefulSetList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatefulSetListBuilder(V1StatefulSetList instance) { this.fluent = this; this.copyInstance(instance); } - V1StatefulSetListFluent fluent; + public V1StatefulSetListBuilder(V1StatefulSetListFluent fluent,V1StatefulSetList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatefulSetList build() { V1StatefulSetList buildable = new V1StatefulSetList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1StatefulSetList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java index 38c40a551a..97f4bfeac8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1StatefulSetListFluent> extends BaseFluent{ - public V1StatefulSetListFluent() { - } - - public V1StatefulSetListFluent(V1StatefulSetList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1StatefulSetList instance) { - instance = instance != null ? instance : new V1StatefulSetList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1StatefulSetListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1StatefulSetListFluent(V1StatefulSetList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1StatefulSet item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1StatefulSet item : items) { + V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1StatefulSet item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1StatefulSet item) { + return new ItemsNested(-1, item); } public A addToItems(V1StatefulSet... items) { @@ -96,68 +65,31 @@ public A addToItems(V1StatefulSet... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1StatefulSet item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1StatefulSet item : items) { - V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); + V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1StatefulSet... items) { - if (this.items == null) { - return (A) this; - } - for (V1StatefulSet item : items) { - V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1StatefulSet item : items) { - V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1StatefulSetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1StatefulSet buildFirstItem() { + return this.items.get(0).build(); } public V1StatefulSet buildItem(int index) { return this.items.get(index).build(); } - public V1StatefulSet buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1StatefulSet buildLastItem() { @@ -173,73 +105,34 @@ public V1StatefulSet buildMatchingItem(Predicate predicate return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1StatefulSetBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1StatefulSet item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1StatefulSetList instance) { + instance = instance != null ? instance : new V1StatefulSetList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1StatefulSet... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1StatefulSet item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1StatefulSet item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1StatefulSet item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicate return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1StatefulSetBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1StatefulSet item : items) { + V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1StatefulSet... items) { + if (this.items == null) { + return (A) this; + } + for (V1StatefulSet item : items) { + V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1StatefulSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1StatefulSet item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1StatefulSet item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1StatefulSet item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1StatefulSet... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1StatefulSet item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1StatefulSetFluent> implements Nested{ + + V1StatefulSetBuilder builder; + int index; + ItemsNested(int index,V1StatefulSet item) { this.index = index; this.builder = new V1StatefulSetBuilder(this, item); } - V1StatefulSetBuilder builder; - int index; - + public N and() { return (N) V1StatefulSetListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1StatefulSetListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsBuilder.java index 6dbc7bc512..232103ca49 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1StatefulSetOrdinalsBuilder extends V1StatefulSetOrdinalsFluent implements VisitableBuilder{ + + V1StatefulSetOrdinalsFluent fluent; + public V1StatefulSetOrdinalsBuilder() { this(new V1StatefulSetOrdinals()); } @@ -11,22 +14,20 @@ public V1StatefulSetOrdinalsBuilder(V1StatefulSetOrdinalsFluent fluent) { this(fluent, new V1StatefulSetOrdinals()); } - public V1StatefulSetOrdinalsBuilder(V1StatefulSetOrdinalsFluent fluent,V1StatefulSetOrdinals instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatefulSetOrdinalsBuilder(V1StatefulSetOrdinals instance) { this.fluent = this; this.copyInstance(instance); } - V1StatefulSetOrdinalsFluent fluent; + public V1StatefulSetOrdinalsBuilder(V1StatefulSetOrdinalsFluent fluent,V1StatefulSetOrdinals instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatefulSetOrdinals build() { V1StatefulSetOrdinals buildable = new V1StatefulSetOrdinals(); buildable.setStart(fluent.getStart()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsFluent.java index 33049c196d..2bd1ab87a3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1StatefulSetOrdinalsFluent> extends BaseFluent{ + + private Integer start; + public V1StatefulSetOrdinalsFluent() { } public V1StatefulSetOrdinalsFluent(V1StatefulSetOrdinals instance) { this.copyInstance(instance); } - private Integer start; - + protected void copyInstance(V1StatefulSetOrdinals instance) { instance = instance != null ? instance : new V1StatefulSetOrdinals(); if (instance != null) { @@ -28,19 +30,6 @@ protected void copyInstance(V1StatefulSetOrdinals instance) { } } - public Integer getStart() { - return this.start; - } - - public A withStart(Integer start) { - this.start = start; - return (A) this; - } - - public boolean hasStart() { - return this.start != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -58,6 +47,14 @@ public boolean equals(Object o) { return true; } + public Integer getStart() { + return this.start; + } + + public boolean hasStart() { + return this.start != null; + } + public int hashCode() { return Objects.hash(start); } @@ -73,5 +70,9 @@ public String toString() { return sb.toString(); } - + public A withStart(Integer start) { + this.start = start; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java index 342905619d..d61d61f7d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder extends V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent implements VisitableBuilder{ + + V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent; + public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder() { this(new V1StatefulSetPersistentVolumeClaimRetentionPolicy()); } @@ -11,17 +14,16 @@ public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(V1StatefulSetPer this(fluent, new V1StatefulSetPersistentVolumeClaimRetentionPolicy()); } - public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent,V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { this.fluent = this; this.copyInstance(instance); } - V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent; + public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent,V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatefulSetPersistentVolumeClaimRetentionPolicy build() { V1StatefulSetPersistentVolumeClaimRetentionPolicy buildable = new V1StatefulSetPersistentVolumeClaimRetentionPolicy(); buildable.setWhenDeleted(fluent.getWhenDeleted()); @@ -29,5 +31,4 @@ public V1StatefulSetPersistentVolumeClaimRetentionPolicy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java index dadc7cbd2d..2e2e0e4b51 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent> extends BaseFluent{ + + private String whenDeleted; + private String whenScaled; + public V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent() { } public V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent(V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { this.copyInstance(instance); } - private String whenDeleted; - private String whenScaled; - + protected void copyInstance(V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { instance = instance != null ? instance : new V1StatefulSetPersistentVolumeClaimRetentionPolicy(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1StatefulSetPersistentVolumeClaimRetentionPolicy in } } - public String getWhenDeleted() { - return this.whenDeleted; - } - - public A withWhenDeleted(String whenDeleted) { - this.whenDeleted = whenDeleted; - return (A) this; - } - - public boolean hasWhenDeleted() { - return this.whenDeleted != null; - } - - public String getWhenScaled() { - return this.whenScaled; - } - - public A withWhenScaled(String whenScaled) { - this.whenScaled = whenScaled; - return (A) this; - } - - public boolean hasWhenScaled() { - return this.whenScaled != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getWhenDeleted() { + return this.whenDeleted; + } + + public String getWhenScaled() { + return this.whenScaled; + } + + public boolean hasWhenDeleted() { + return this.whenDeleted != null; + } + + public boolean hasWhenScaled() { + return this.whenScaled != null; + } + public int hashCode() { return Objects.hash(whenDeleted, whenScaled); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withWhenDeleted(String whenDeleted) { + this.whenDeleted = whenDeleted; + return (A) this; + } + + public A withWhenScaled(String whenScaled) { + this.whenScaled = whenScaled; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java index a0fa642aa1..16339f95d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1StatefulSetSpecBuilder extends V1StatefulSetSpecFluent implements VisitableBuilder{ + + V1StatefulSetSpecFluent fluent; + public V1StatefulSetSpecBuilder() { this(new V1StatefulSetSpec()); } @@ -11,17 +14,16 @@ public V1StatefulSetSpecBuilder(V1StatefulSetSpecFluent fluent) { this(fluent, new V1StatefulSetSpec()); } - public V1StatefulSetSpecBuilder(V1StatefulSetSpecFluent fluent,V1StatefulSetSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatefulSetSpecBuilder(V1StatefulSetSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1StatefulSetSpecFluent fluent; + public V1StatefulSetSpecBuilder(V1StatefulSetSpecFluent fluent,V1StatefulSetSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatefulSetSpec build() { V1StatefulSetSpec buildable = new V1StatefulSetSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); @@ -38,5 +40,4 @@ public V1StatefulSetSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java index c63dfdc980..d92b8fb87a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; -import java.lang.Integer; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1StatefulSetSpecFluent> extends BaseFluent{ - public V1StatefulSetSpecFluent() { - } - - public V1StatefulSetSpecFluent(V1StatefulSetSpec instance) { - this.copyInstance(instance); - } + private Integer minReadySeconds; private V1StatefulSetOrdinalsBuilder ordinals; private V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder persistentVolumeClaimRetentionPolicy; @@ -38,331 +33,14 @@ public V1StatefulSetSpecFluent(V1StatefulSetSpec instance) { private V1PodTemplateSpecBuilder template; private V1StatefulSetUpdateStrategyBuilder updateStrategy; private ArrayList volumeClaimTemplates; - - protected void copyInstance(V1StatefulSetSpec instance) { - instance = instance != null ? instance : new V1StatefulSetSpec(); - if (instance != null) { - this.withMinReadySeconds(instance.getMinReadySeconds()); - this.withOrdinals(instance.getOrdinals()); - this.withPersistentVolumeClaimRetentionPolicy(instance.getPersistentVolumeClaimRetentionPolicy()); - this.withPodManagementPolicy(instance.getPodManagementPolicy()); - this.withReplicas(instance.getReplicas()); - this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); - this.withSelector(instance.getSelector()); - this.withServiceName(instance.getServiceName()); - this.withTemplate(instance.getTemplate()); - this.withUpdateStrategy(instance.getUpdateStrategy()); - this.withVolumeClaimTemplates(instance.getVolumeClaimTemplates()); - } - } - - public Integer getMinReadySeconds() { - return this.minReadySeconds; - } - - public A withMinReadySeconds(Integer minReadySeconds) { - this.minReadySeconds = minReadySeconds; - return (A) this; - } - - public boolean hasMinReadySeconds() { - return this.minReadySeconds != null; - } - - public V1StatefulSetOrdinals buildOrdinals() { - return this.ordinals != null ? this.ordinals.build() : null; - } - - public A withOrdinals(V1StatefulSetOrdinals ordinals) { - this._visitables.remove("ordinals"); - if (ordinals != null) { - this.ordinals = new V1StatefulSetOrdinalsBuilder(ordinals); - this._visitables.get("ordinals").add(this.ordinals); - } else { - this.ordinals = null; - this._visitables.get("ordinals").remove(this.ordinals); - } - return (A) this; - } - - public boolean hasOrdinals() { - return this.ordinals != null; - } - - public OrdinalsNested withNewOrdinals() { - return new OrdinalsNested(null); - } - - public OrdinalsNested withNewOrdinalsLike(V1StatefulSetOrdinals item) { - return new OrdinalsNested(item); - } - - public OrdinalsNested editOrdinals() { - return this.withNewOrdinalsLike(Optional.ofNullable(this.buildOrdinals()).orElse(null)); - } - - public OrdinalsNested editOrNewOrdinals() { - return this.withNewOrdinalsLike(Optional.ofNullable(this.buildOrdinals()).orElse(new V1StatefulSetOrdinalsBuilder().build())); - } - - public OrdinalsNested editOrNewOrdinalsLike(V1StatefulSetOrdinals item) { - return this.withNewOrdinalsLike(Optional.ofNullable(this.buildOrdinals()).orElse(item)); - } - - public V1StatefulSetPersistentVolumeClaimRetentionPolicy buildPersistentVolumeClaimRetentionPolicy() { - return this.persistentVolumeClaimRetentionPolicy != null ? this.persistentVolumeClaimRetentionPolicy.build() : null; - } - - public A withPersistentVolumeClaimRetentionPolicy(V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) { - this._visitables.remove("persistentVolumeClaimRetentionPolicy"); - if (persistentVolumeClaimRetentionPolicy != null) { - this.persistentVolumeClaimRetentionPolicy = new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(persistentVolumeClaimRetentionPolicy); - this._visitables.get("persistentVolumeClaimRetentionPolicy").add(this.persistentVolumeClaimRetentionPolicy); - } else { - this.persistentVolumeClaimRetentionPolicy = null; - this._visitables.get("persistentVolumeClaimRetentionPolicy").remove(this.persistentVolumeClaimRetentionPolicy); - } - return (A) this; - } - - public boolean hasPersistentVolumeClaimRetentionPolicy() { - return this.persistentVolumeClaimRetentionPolicy != null; - } - - public PersistentVolumeClaimRetentionPolicyNested withNewPersistentVolumeClaimRetentionPolicy() { - return new PersistentVolumeClaimRetentionPolicyNested(null); - } - - public PersistentVolumeClaimRetentionPolicyNested withNewPersistentVolumeClaimRetentionPolicyLike(V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { - return new PersistentVolumeClaimRetentionPolicyNested(item); - } - - public PersistentVolumeClaimRetentionPolicyNested editPersistentVolumeClaimRetentionPolicy() { - return this.withNewPersistentVolumeClaimRetentionPolicyLike(Optional.ofNullable(this.buildPersistentVolumeClaimRetentionPolicy()).orElse(null)); - } - - public PersistentVolumeClaimRetentionPolicyNested editOrNewPersistentVolumeClaimRetentionPolicy() { - return this.withNewPersistentVolumeClaimRetentionPolicyLike(Optional.ofNullable(this.buildPersistentVolumeClaimRetentionPolicy()).orElse(new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder().build())); - } - - public PersistentVolumeClaimRetentionPolicyNested editOrNewPersistentVolumeClaimRetentionPolicyLike(V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { - return this.withNewPersistentVolumeClaimRetentionPolicyLike(Optional.ofNullable(this.buildPersistentVolumeClaimRetentionPolicy()).orElse(item)); - } - - public String getPodManagementPolicy() { - return this.podManagementPolicy; - } - - public A withPodManagementPolicy(String podManagementPolicy) { - this.podManagementPolicy = podManagementPolicy; - return (A) this; - } - - public boolean hasPodManagementPolicy() { - return this.podManagementPolicy != null; - } - - public Integer getReplicas() { - return this.replicas; - } - - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; - } - - public boolean hasReplicas() { - return this.replicas != null; - } - - public Integer getRevisionHistoryLimit() { - return this.revisionHistoryLimit; - } - - public A withRevisionHistoryLimit(Integer revisionHistoryLimit) { - this.revisionHistoryLimit = revisionHistoryLimit; - return (A) this; - } - - public boolean hasRevisionHistoryLimit() { - return this.revisionHistoryLimit != null; - } - - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public A withSelector(V1LabelSelector selector) { - this._visitables.remove("selector"); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - this._visitables.get("selector").add(this.selector); - } else { - this.selector = null; - this._visitables.get("selector").remove(this.selector); - } - return (A) this; - } - - public boolean hasSelector() { - return this.selector != null; - } - - public SelectorNested withNewSelector() { - return new SelectorNested(null); - } - - public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); - } - - public SelectorNested editSelector() { - return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); - } - - public SelectorNested editOrNewSelector() { - return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); - } - - public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); - } - - public String getServiceName() { - return this.serviceName; - } - - public A withServiceName(String serviceName) { - this.serviceName = serviceName; - return (A) this; - } - - public boolean hasServiceName() { - return this.serviceName != null; - } - - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; - } - - public A withTemplate(V1PodTemplateSpec template) { - this._visitables.remove("template"); - if (template != null) { - this.template = new V1PodTemplateSpecBuilder(template); - this._visitables.get("template").add(this.template); - } else { - this.template = null; - this._visitables.get("template").remove(this.template); - } - return (A) this; - } - - public boolean hasTemplate() { - return this.template != null; - } - - public TemplateNested withNewTemplate() { - return new TemplateNested(null); - } - - public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); - } - - public TemplateNested editTemplate() { - return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); - } - - public TemplateNested editOrNewTemplate() { - return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); - } - - public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); - } - - public V1StatefulSetUpdateStrategy buildUpdateStrategy() { - return this.updateStrategy != null ? this.updateStrategy.build() : null; - } - - public A withUpdateStrategy(V1StatefulSetUpdateStrategy updateStrategy) { - this._visitables.remove("updateStrategy"); - if (updateStrategy != null) { - this.updateStrategy = new V1StatefulSetUpdateStrategyBuilder(updateStrategy); - this._visitables.get("updateStrategy").add(this.updateStrategy); - } else { - this.updateStrategy = null; - this._visitables.get("updateStrategy").remove(this.updateStrategy); - } - return (A) this; - } - - public boolean hasUpdateStrategy() { - return this.updateStrategy != null; - } - - public UpdateStrategyNested withNewUpdateStrategy() { - return new UpdateStrategyNested(null); - } - - public UpdateStrategyNested withNewUpdateStrategyLike(V1StatefulSetUpdateStrategy item) { - return new UpdateStrategyNested(item); - } - - public UpdateStrategyNested editUpdateStrategy() { - return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(null)); - } - - public UpdateStrategyNested editOrNewUpdateStrategy() { - return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(new V1StatefulSetUpdateStrategyBuilder().build())); - } - - public UpdateStrategyNested editOrNewUpdateStrategyLike(V1StatefulSetUpdateStrategy item) { - return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(item)); - } - - public A addToVolumeClaimTemplates(int index,V1PersistentVolumeClaim item) { - if (this.volumeClaimTemplates == null) { - this.volumeClaimTemplates = new ArrayList(); - } - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - if (index < 0 || index >= volumeClaimTemplates.size()) { - _visitables.get("volumeClaimTemplates").add(builder); - volumeClaimTemplates.add(builder); - } else { - _visitables.get("volumeClaimTemplates").add(builder); - volumeClaimTemplates.add(index, builder); - } - return (A) this; - } - - public A setToVolumeClaimTemplates(int index,V1PersistentVolumeClaim item) { - if (this.volumeClaimTemplates == null) { - this.volumeClaimTemplates = new ArrayList(); - } - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - if (index < 0 || index >= volumeClaimTemplates.size()) { - _visitables.get("volumeClaimTemplates").add(builder); - volumeClaimTemplates.add(builder); - } else { - _visitables.get("volumeClaimTemplates").add(builder); - volumeClaimTemplates.set(index, builder); - } - return (A) this; + + public V1StatefulSetSpecFluent() { } - public A addToVolumeClaimTemplates(V1PersistentVolumeClaim... items) { - if (this.volumeClaimTemplates == null) { - this.volumeClaimTemplates = new ArrayList(); - } - for (V1PersistentVolumeClaim item : items) { - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables.get("volumeClaimTemplates").add(builder); - this.volumeClaimTemplates.add(builder); - } - return (A) this; + public V1StatefulSetSpecFluent(V1StatefulSetSpec instance) { + this.copyInstance(instance); } - + public A addAllToVolumeClaimTemplates(Collection items) { if (this.volumeClaimTemplates == null) { this.volumeClaimTemplates = new ArrayList(); @@ -375,52 +53,39 @@ public A addAllToVolumeClaimTemplates(Collection items) return (A) this; } - public A removeFromVolumeClaimTemplates(V1PersistentVolumeClaim... items) { - if (this.volumeClaimTemplates == null) { - return (A) this; - } - for (V1PersistentVolumeClaim item : items) { - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables.get("volumeClaimTemplates").remove(builder); - this.volumeClaimTemplates.remove(builder); - } - return (A) this; + public VolumeClaimTemplatesNested addNewVolumeClaimTemplate() { + return new VolumeClaimTemplatesNested(-1, null); } - public A removeAllFromVolumeClaimTemplates(Collection items) { - if (this.volumeClaimTemplates == null) { - return (A) this; - } - for (V1PersistentVolumeClaim item : items) { - V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables.get("volumeClaimTemplates").remove(builder); - this.volumeClaimTemplates.remove(builder); - } - return (A) this; + public VolumeClaimTemplatesNested addNewVolumeClaimTemplateLike(V1PersistentVolumeClaim item) { + return new VolumeClaimTemplatesNested(-1, item); } - public A removeMatchingFromVolumeClaimTemplates(Predicate predicate) { - if (volumeClaimTemplates == null) { - return (A) this; - } - Iterator each = volumeClaimTemplates.iterator(); - List visitables = _visitables.get("volumeClaimTemplates"); - while (each.hasNext()) { - V1PersistentVolumeClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToVolumeClaimTemplates(V1PersistentVolumeClaim... items) { + if (this.volumeClaimTemplates == null) { + this.volumeClaimTemplates = new ArrayList(); + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("volumeClaimTemplates").add(builder); + this.volumeClaimTemplates.add(builder); } return (A) this; } - public List buildVolumeClaimTemplates() { - return this.volumeClaimTemplates != null ? build(volumeClaimTemplates) : null; - } - - public V1PersistentVolumeClaim buildVolumeClaimTemplate(int index) { - return this.volumeClaimTemplates.get(index).build(); + public A addToVolumeClaimTemplates(int index,V1PersistentVolumeClaim item) { + if (this.volumeClaimTemplates == null) { + this.volumeClaimTemplates = new ArrayList(); + } + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + if (index < 0 || index >= volumeClaimTemplates.size()) { + _visitables.get("volumeClaimTemplates").add(builder); + volumeClaimTemplates.add(builder); + } else { + _visitables.get("volumeClaimTemplates").add(builder); + volumeClaimTemplates.add(index, builder); + } + return (A) this; } public V1PersistentVolumeClaim buildFirstVolumeClaimTemplate() { @@ -440,64 +105,49 @@ public V1PersistentVolumeClaim buildMatchingVolumeClaimTemplate(Predicate predicate) { - for (V1PersistentVolumeClaimBuilder item : volumeClaimTemplates) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1StatefulSetOrdinals buildOrdinals() { + return this.ordinals != null ? this.ordinals.build() : null; } - public A withVolumeClaimTemplates(List volumeClaimTemplates) { - if (this.volumeClaimTemplates != null) { - this._visitables.get("volumeClaimTemplates").clear(); - } - if (volumeClaimTemplates != null) { - this.volumeClaimTemplates = new ArrayList(); - for (V1PersistentVolumeClaim item : volumeClaimTemplates) { - this.addToVolumeClaimTemplates(item); - } - } else { - this.volumeClaimTemplates = null; - } - return (A) this; + public V1StatefulSetPersistentVolumeClaimRetentionPolicy buildPersistentVolumeClaimRetentionPolicy() { + return this.persistentVolumeClaimRetentionPolicy != null ? this.persistentVolumeClaimRetentionPolicy.build() : null; } - public A withVolumeClaimTemplates(V1PersistentVolumeClaim... volumeClaimTemplates) { - if (this.volumeClaimTemplates != null) { - this.volumeClaimTemplates.clear(); - _visitables.remove("volumeClaimTemplates"); - } - if (volumeClaimTemplates != null) { - for (V1PersistentVolumeClaim item : volumeClaimTemplates) { - this.addToVolumeClaimTemplates(item); - } - } - return (A) this; + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; } - public boolean hasVolumeClaimTemplates() { - return this.volumeClaimTemplates != null && !(this.volumeClaimTemplates.isEmpty()); + public V1PodTemplateSpec buildTemplate() { + return this.template != null ? this.template.build() : null; } - public VolumeClaimTemplatesNested addNewVolumeClaimTemplate() { - return new VolumeClaimTemplatesNested(-1, null); + public V1StatefulSetUpdateStrategy buildUpdateStrategy() { + return this.updateStrategy != null ? this.updateStrategy.build() : null; } - public VolumeClaimTemplatesNested addNewVolumeClaimTemplateLike(V1PersistentVolumeClaim item) { - return new VolumeClaimTemplatesNested(-1, item); + public V1PersistentVolumeClaim buildVolumeClaimTemplate(int index) { + return this.volumeClaimTemplates.get(index).build(); } - public VolumeClaimTemplatesNested setNewVolumeClaimTemplateLike(int index,V1PersistentVolumeClaim item) { - return new VolumeClaimTemplatesNested(index, item); + public List buildVolumeClaimTemplates() { + return this.volumeClaimTemplates != null ? build(volumeClaimTemplates) : null; } - public VolumeClaimTemplatesNested editVolumeClaimTemplate(int index) { - if (index <= volumeClaimTemplates.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeClaimTemplates")); + protected void copyInstance(V1StatefulSetSpec instance) { + instance = instance != null ? instance : new V1StatefulSetSpec(); + if (instance != null) { + this.withMinReadySeconds(instance.getMinReadySeconds()); + this.withOrdinals(instance.getOrdinals()); + this.withPersistentVolumeClaimRetentionPolicy(instance.getPersistentVolumeClaimRetentionPolicy()); + this.withPodManagementPolicy(instance.getPodManagementPolicy()); + this.withReplicas(instance.getReplicas()); + this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); + this.withSelector(instance.getSelector()); + this.withServiceName(instance.getServiceName()); + this.withTemplate(instance.getTemplate()); + this.withUpdateStrategy(instance.getUpdateStrategy()); + this.withVolumeClaimTemplates(instance.getVolumeClaimTemplates()); } - return this.setNewVolumeClaimTemplateLike(index, this.buildVolumeClaimTemplate(index)); } public VolumeClaimTemplatesNested editFirstVolumeClaimTemplate() { @@ -529,6 +179,73 @@ public VolumeClaimTemplatesNested editMatchingVolumeClaimTemplate(Predicate editOrNewOrdinals() { + return this.withNewOrdinalsLike(Optional.ofNullable(this.buildOrdinals()).orElse(new V1StatefulSetOrdinalsBuilder().build())); + } + + public OrdinalsNested editOrNewOrdinalsLike(V1StatefulSetOrdinals item) { + return this.withNewOrdinalsLike(Optional.ofNullable(this.buildOrdinals()).orElse(item)); + } + + public PersistentVolumeClaimRetentionPolicyNested editOrNewPersistentVolumeClaimRetentionPolicy() { + return this.withNewPersistentVolumeClaimRetentionPolicyLike(Optional.ofNullable(this.buildPersistentVolumeClaimRetentionPolicy()).orElse(new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder().build())); + } + + public PersistentVolumeClaimRetentionPolicyNested editOrNewPersistentVolumeClaimRetentionPolicyLike(V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { + return this.withNewPersistentVolumeClaimRetentionPolicyLike(Optional.ofNullable(this.buildPersistentVolumeClaimRetentionPolicy()).orElse(item)); + } + + public SelectorNested editOrNewSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + } + + public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); + } + + public TemplateNested editOrNewTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); + } + + public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); + } + + public UpdateStrategyNested editOrNewUpdateStrategy() { + return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(new V1StatefulSetUpdateStrategyBuilder().build())); + } + + public UpdateStrategyNested editOrNewUpdateStrategyLike(V1StatefulSetUpdateStrategy item) { + return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(item)); + } + + public OrdinalsNested editOrdinals() { + return this.withNewOrdinalsLike(Optional.ofNullable(this.buildOrdinals()).orElse(null)); + } + + public PersistentVolumeClaimRetentionPolicyNested editPersistentVolumeClaimRetentionPolicy() { + return this.withNewPersistentVolumeClaimRetentionPolicyLike(Optional.ofNullable(this.buildPersistentVolumeClaimRetentionPolicy()).orElse(null)); + } + + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); + } + + public TemplateNested editTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); + } + + public UpdateStrategyNested editUpdateStrategy() { + return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(null)); + } + + public VolumeClaimTemplatesNested editVolumeClaimTemplate(int index) { + if (volumeClaimTemplates.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeClaimTemplates")); + } + return this.setNewVolumeClaimTemplateLike(index, this.buildVolumeClaimTemplate(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -561,23 +278,155 @@ public boolean equals(Object o) { if (!(Objects.equals(selector, that.selector))) { return false; } - if (!(Objects.equals(serviceName, that.serviceName))) { - return false; + if (!(Objects.equals(serviceName, that.serviceName))) { + return false; + } + if (!(Objects.equals(template, that.template))) { + return false; + } + if (!(Objects.equals(updateStrategy, that.updateStrategy))) { + return false; + } + if (!(Objects.equals(volumeClaimTemplates, that.volumeClaimTemplates))) { + return false; + } + return true; + } + + public Integer getMinReadySeconds() { + return this.minReadySeconds; + } + + public String getPodManagementPolicy() { + return this.podManagementPolicy; + } + + public Integer getReplicas() { + return this.replicas; + } + + public Integer getRevisionHistoryLimit() { + return this.revisionHistoryLimit; + } + + public String getServiceName() { + return this.serviceName; + } + + public boolean hasMatchingVolumeClaimTemplate(Predicate predicate) { + for (V1PersistentVolumeClaimBuilder item : volumeClaimTemplates) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMinReadySeconds() { + return this.minReadySeconds != null; + } + + public boolean hasOrdinals() { + return this.ordinals != null; + } + + public boolean hasPersistentVolumeClaimRetentionPolicy() { + return this.persistentVolumeClaimRetentionPolicy != null; + } + + public boolean hasPodManagementPolicy() { + return this.podManagementPolicy != null; + } + + public boolean hasReplicas() { + return this.replicas != null; + } + + public boolean hasRevisionHistoryLimit() { + return this.revisionHistoryLimit != null; + } + + public boolean hasSelector() { + return this.selector != null; + } + + public boolean hasServiceName() { + return this.serviceName != null; + } + + public boolean hasTemplate() { + return this.template != null; + } + + public boolean hasUpdateStrategy() { + return this.updateStrategy != null; + } + + public boolean hasVolumeClaimTemplates() { + return this.volumeClaimTemplates != null && !(this.volumeClaimTemplates.isEmpty()); + } + + public int hashCode() { + return Objects.hash(minReadySeconds, ordinals, persistentVolumeClaimRetentionPolicy, podManagementPolicy, replicas, revisionHistoryLimit, selector, serviceName, template, updateStrategy, volumeClaimTemplates); + } + + public A removeAllFromVolumeClaimTemplates(Collection items) { + if (this.volumeClaimTemplates == null) { + return (A) this; + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("volumeClaimTemplates").remove(builder); + this.volumeClaimTemplates.remove(builder); } - if (!(Objects.equals(template, that.template))) { - return false; + return (A) this; + } + + public A removeFromVolumeClaimTemplates(V1PersistentVolumeClaim... items) { + if (this.volumeClaimTemplates == null) { + return (A) this; } - if (!(Objects.equals(updateStrategy, that.updateStrategy))) { - return false; + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("volumeClaimTemplates").remove(builder); + this.volumeClaimTemplates.remove(builder); } - if (!(Objects.equals(volumeClaimTemplates, that.volumeClaimTemplates))) { - return false; + return (A) this; + } + + public A removeMatchingFromVolumeClaimTemplates(Predicate predicate) { + if (volumeClaimTemplates == null) { + return (A) this; } - return true; + Iterator each = volumeClaimTemplates.iterator(); + List visitables = _visitables.get("volumeClaimTemplates"); + while (each.hasNext()) { + V1PersistentVolumeClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public int hashCode() { - return Objects.hash(minReadySeconds, ordinals, persistentVolumeClaimRetentionPolicy, podManagementPolicy, replicas, revisionHistoryLimit, selector, serviceName, template, updateStrategy, volumeClaimTemplates); + public VolumeClaimTemplatesNested setNewVolumeClaimTemplateLike(int index,V1PersistentVolumeClaim item) { + return new VolumeClaimTemplatesNested(index, item); + } + + public A setToVolumeClaimTemplates(int index,V1PersistentVolumeClaim item) { + if (this.volumeClaimTemplates == null) { + this.volumeClaimTemplates = new ArrayList(); + } + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + if (index < 0 || index >= volumeClaimTemplates.size()) { + _visitables.get("volumeClaimTemplates").add(builder); + volumeClaimTemplates.add(builder); + } else { + _visitables.get("volumeClaimTemplates").add(builder); + volumeClaimTemplates.set(index, builder); + } + return (A) this; } public String toString() { @@ -640,12 +489,167 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMinReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; + return (A) this; + } + + public OrdinalsNested withNewOrdinals() { + return new OrdinalsNested(null); + } + + public OrdinalsNested withNewOrdinalsLike(V1StatefulSetOrdinals item) { + return new OrdinalsNested(item); + } + + public PersistentVolumeClaimRetentionPolicyNested withNewPersistentVolumeClaimRetentionPolicy() { + return new PersistentVolumeClaimRetentionPolicyNested(null); + } + + public PersistentVolumeClaimRetentionPolicyNested withNewPersistentVolumeClaimRetentionPolicyLike(V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { + return new PersistentVolumeClaimRetentionPolicyNested(item); + } + + public SelectorNested withNewSelector() { + return new SelectorNested(null); + } + + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); + } + + public TemplateNested withNewTemplate() { + return new TemplateNested(null); + } + + public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { + return new TemplateNested(item); + } + + public UpdateStrategyNested withNewUpdateStrategy() { + return new UpdateStrategyNested(null); + } + + public UpdateStrategyNested withNewUpdateStrategyLike(V1StatefulSetUpdateStrategy item) { + return new UpdateStrategyNested(item); + } + + public A withOrdinals(V1StatefulSetOrdinals ordinals) { + this._visitables.remove("ordinals"); + if (ordinals != null) { + this.ordinals = new V1StatefulSetOrdinalsBuilder(ordinals); + this._visitables.get("ordinals").add(this.ordinals); + } else { + this.ordinals = null; + this._visitables.get("ordinals").remove(this.ordinals); + } + return (A) this; + } + + public A withPersistentVolumeClaimRetentionPolicy(V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) { + this._visitables.remove("persistentVolumeClaimRetentionPolicy"); + if (persistentVolumeClaimRetentionPolicy != null) { + this.persistentVolumeClaimRetentionPolicy = new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(persistentVolumeClaimRetentionPolicy); + this._visitables.get("persistentVolumeClaimRetentionPolicy").add(this.persistentVolumeClaimRetentionPolicy); + } else { + this.persistentVolumeClaimRetentionPolicy = null; + this._visitables.get("persistentVolumeClaimRetentionPolicy").remove(this.persistentVolumeClaimRetentionPolicy); + } + return (A) this; + } + + public A withPodManagementPolicy(String podManagementPolicy) { + this.podManagementPolicy = podManagementPolicy; + return (A) this; + } + + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; + } + + public A withRevisionHistoryLimit(Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; + return (A) this; + } + + public A withSelector(V1LabelSelector selector) { + this._visitables.remove("selector"); + if (selector != null) { + this.selector = new V1LabelSelectorBuilder(selector); + this._visitables.get("selector").add(this.selector); + } else { + this.selector = null; + this._visitables.get("selector").remove(this.selector); + } + return (A) this; + } + + public A withServiceName(String serviceName) { + this.serviceName = serviceName; + return (A) this; + } + + public A withTemplate(V1PodTemplateSpec template) { + this._visitables.remove("template"); + if (template != null) { + this.template = new V1PodTemplateSpecBuilder(template); + this._visitables.get("template").add(this.template); + } else { + this.template = null; + this._visitables.get("template").remove(this.template); + } + return (A) this; + } + + public A withUpdateStrategy(V1StatefulSetUpdateStrategy updateStrategy) { + this._visitables.remove("updateStrategy"); + if (updateStrategy != null) { + this.updateStrategy = new V1StatefulSetUpdateStrategyBuilder(updateStrategy); + this._visitables.get("updateStrategy").add(this.updateStrategy); + } else { + this.updateStrategy = null; + this._visitables.get("updateStrategy").remove(this.updateStrategy); + } + return (A) this; + } + + public A withVolumeClaimTemplates(List volumeClaimTemplates) { + if (this.volumeClaimTemplates != null) { + this._visitables.get("volumeClaimTemplates").clear(); + } + if (volumeClaimTemplates != null) { + this.volumeClaimTemplates = new ArrayList(); + for (V1PersistentVolumeClaim item : volumeClaimTemplates) { + this.addToVolumeClaimTemplates(item); + } + } else { + this.volumeClaimTemplates = null; + } + return (A) this; + } + + public A withVolumeClaimTemplates(V1PersistentVolumeClaim... volumeClaimTemplates) { + if (this.volumeClaimTemplates != null) { + this.volumeClaimTemplates.clear(); + _visitables.remove("volumeClaimTemplates"); + } + if (volumeClaimTemplates != null) { + for (V1PersistentVolumeClaim item : volumeClaimTemplates) { + this.addToVolumeClaimTemplates(item); + } + } + return (A) this; + } public class OrdinalsNested extends V1StatefulSetOrdinalsFluent> implements Nested{ + + V1StatefulSetOrdinalsBuilder builder; + OrdinalsNested(V1StatefulSetOrdinals item) { this.builder = new V1StatefulSetOrdinalsBuilder(this, item); } - V1StatefulSetOrdinalsBuilder builder; - + public N and() { return (N) V1StatefulSetSpecFluent.this.withOrdinals(builder.build()); } @@ -654,14 +658,15 @@ public N endOrdinals() { return and(); } - } public class PersistentVolumeClaimRetentionPolicyNested extends V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent> implements Nested{ + + V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder builder; + PersistentVolumeClaimRetentionPolicyNested(V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { this.builder = new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(this, item); } - V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder builder; - + public N and() { return (N) V1StatefulSetSpecFluent.this.withPersistentVolumeClaimRetentionPolicy(builder.build()); } @@ -670,14 +675,15 @@ public N endPersistentVolumeClaimRetentionPolicy() { return and(); } - } public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + SelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1StatefulSetSpecFluent.this.withSelector(builder.build()); } @@ -686,14 +692,15 @@ public N endSelector() { return and(); } - } public class TemplateNested extends V1PodTemplateSpecFluent> implements Nested{ + + V1PodTemplateSpecBuilder builder; + TemplateNested(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - V1PodTemplateSpecBuilder builder; - + public N and() { return (N) V1StatefulSetSpecFluent.this.withTemplate(builder.build()); } @@ -702,14 +709,15 @@ public N endTemplate() { return and(); } - } public class UpdateStrategyNested extends V1StatefulSetUpdateStrategyFluent> implements Nested{ + + V1StatefulSetUpdateStrategyBuilder builder; + UpdateStrategyNested(V1StatefulSetUpdateStrategy item) { this.builder = new V1StatefulSetUpdateStrategyBuilder(this, item); } - V1StatefulSetUpdateStrategyBuilder builder; - + public N and() { return (N) V1StatefulSetSpecFluent.this.withUpdateStrategy(builder.build()); } @@ -718,16 +726,17 @@ public N endUpdateStrategy() { return and(); } - } public class VolumeClaimTemplatesNested extends V1PersistentVolumeClaimFluent> implements Nested{ + + V1PersistentVolumeClaimBuilder builder; + int index; + VolumeClaimTemplatesNested(int index,V1PersistentVolumeClaim item) { this.index = index; this.builder = new V1PersistentVolumeClaimBuilder(this, item); } - V1PersistentVolumeClaimBuilder builder; - int index; - + public N and() { return (N) V1StatefulSetSpecFluent.this.setToVolumeClaimTemplates(index, builder.build()); } @@ -736,7 +745,5 @@ public N endVolumeClaimTemplate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java index c965403350..941644ae1a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1StatefulSetStatusBuilder extends V1StatefulSetStatusFluent implements VisitableBuilder{ + + V1StatefulSetStatusFluent fluent; + public V1StatefulSetStatusBuilder() { this(new V1StatefulSetStatus()); } @@ -11,17 +14,16 @@ public V1StatefulSetStatusBuilder(V1StatefulSetStatusFluent fluent) { this(fluent, new V1StatefulSetStatus()); } - public V1StatefulSetStatusBuilder(V1StatefulSetStatusFluent fluent,V1StatefulSetStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatefulSetStatusBuilder(V1StatefulSetStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1StatefulSetStatusFluent fluent; + public V1StatefulSetStatusBuilder(V1StatefulSetStatusFluent fluent,V1StatefulSetStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatefulSetStatus build() { V1StatefulSetStatus buildable = new V1StatefulSetStatus(); buildable.setAvailableReplicas(fluent.getAvailableReplicas()); @@ -37,5 +39,4 @@ public V1StatefulSetStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java index 54793f868c..5067e39fc1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Integer; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Iterator; -import java.util.Objects; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1StatefulSetStatusFluent> extends BaseFluent{ - public V1StatefulSetStatusFluent() { - } - - public V1StatefulSetStatusFluent(V1StatefulSetStatus instance) { - this.copyInstance(instance); - } + private Integer availableReplicas; private Integer collisionCount; private ArrayList conditions; @@ -37,77 +32,32 @@ public V1StatefulSetStatusFluent(V1StatefulSetStatus instance) { private Integer replicas; private String updateRevision; private Integer updatedReplicas; - - protected void copyInstance(V1StatefulSetStatus instance) { - instance = instance != null ? instance : new V1StatefulSetStatus(); - if (instance != null) { - this.withAvailableReplicas(instance.getAvailableReplicas()); - this.withCollisionCount(instance.getCollisionCount()); - this.withConditions(instance.getConditions()); - this.withCurrentReplicas(instance.getCurrentReplicas()); - this.withCurrentRevision(instance.getCurrentRevision()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withReadyReplicas(instance.getReadyReplicas()); - this.withReplicas(instance.getReplicas()); - this.withUpdateRevision(instance.getUpdateRevision()); - this.withUpdatedReplicas(instance.getUpdatedReplicas()); - } - } - - public Integer getAvailableReplicas() { - return this.availableReplicas; - } - - public A withAvailableReplicas(Integer availableReplicas) { - this.availableReplicas = availableReplicas; - return (A) this; - } - - public boolean hasAvailableReplicas() { - return this.availableReplicas != null; - } - - public Integer getCollisionCount() { - return this.collisionCount; - } - - public A withCollisionCount(Integer collisionCount) { - this.collisionCount = collisionCount; - return (A) this; + + public V1StatefulSetStatusFluent() { } - public boolean hasCollisionCount() { - return this.collisionCount != null; + public V1StatefulSetStatusFluent(V1StatefulSetStatus instance) { + this.copyInstance(instance); } - - public A addToConditions(int index,V1StatefulSetCondition item) { + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1StatefulSetCondition item : items) { + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1StatefulSetCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1StatefulSetCondition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1StatefulSetCondition... items) { @@ -122,66 +72,29 @@ public A addToConditions(V1StatefulSetCondition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1StatefulSetCondition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1StatefulSetCondition item : items) { - V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1StatefulSetCondition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1StatefulSetCondition item : items) { - V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1StatefulSetCondition item : items) { - V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1StatefulSetConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1StatefulSetCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1StatefulSetCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1StatefulSetCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -199,184 +112,56 @@ public V1StatefulSetCondition buildMatchingCondition(Predicate predicate) { - for (V1StatefulSetConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1StatefulSetCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(V1StatefulSetCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1StatefulSetCondition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1StatefulSetStatus instance) { + instance = instance != null ? instance : new V1StatefulSetStatus(); + if (instance != null) { + this.withAvailableReplicas(instance.getAvailableReplicas()); + this.withCollisionCount(instance.getCollisionCount()); + this.withConditions(instance.getConditions()); + this.withCurrentReplicas(instance.getCurrentReplicas()); + this.withCurrentRevision(instance.getCurrentRevision()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withReadyReplicas(instance.getReadyReplicas()); + this.withReplicas(instance.getReplicas()); + this.withUpdateRevision(instance.getUpdateRevision()); + this.withUpdatedReplicas(instance.getUpdatedReplicas()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1StatefulSetCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1StatefulSetCondition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); } - - public ConditionsNested editFirstCondition() { - if (conditions.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); - } - return this.setNewConditionLike(0, this.buildCondition(0)); - } - - public ConditionsNested editLastCondition() { - int index = conditions.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); - } - return this.setNewConditionLike(index, this.buildCondition(index)); - } - - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i = 0;i < conditions.size();i++) { - if (predicate.test(conditions.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); - } - return this.setNewConditionLike(index, this.buildCondition(index)); - } - - public Integer getCurrentReplicas() { - return this.currentReplicas; - } - - public A withCurrentReplicas(Integer currentReplicas) { - this.currentReplicas = currentReplicas; - return (A) this; - } - - public boolean hasCurrentReplicas() { - return this.currentReplicas != null; - } - - public String getCurrentRevision() { - return this.currentRevision; - } - - public A withCurrentRevision(String currentRevision) { - this.currentRevision = currentRevision; - return (A) this; - } - - public boolean hasCurrentRevision() { - return this.currentRevision != null; - } - - public Long getObservedGeneration() { - return this.observedGeneration; - } - - public A withObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - return (A) this; - } - - public boolean hasObservedGeneration() { - return this.observedGeneration != null; - } - - public Integer getReadyReplicas() { - return this.readyReplicas; - } - - public A withReadyReplicas(Integer readyReplicas) { - this.readyReplicas = readyReplicas; - return (A) this; - } - - public boolean hasReadyReplicas() { - return this.readyReplicas != null; - } - - public Integer getReplicas() { - return this.replicas; - } - - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; - } - - public boolean hasReplicas() { - return this.replicas != null; - } - - public String getUpdateRevision() { - return this.updateRevision; - } - - public A withUpdateRevision(String updateRevision) { - this.updateRevision = updateRevision; - return (A) this; - } - - public boolean hasUpdateRevision() { - return this.updateRevision != null; - } - - public Integer getUpdatedReplicas() { - return this.updatedReplicas; + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); } - public A withUpdatedReplicas(Integer updatedReplicas) { - this.updatedReplicas = updatedReplicas; - return (A) this; + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public boolean hasUpdatedReplicas() { - return this.updatedReplicas != null; + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } public boolean equals(Object o) { @@ -423,10 +208,154 @@ public boolean equals(Object o) { return true; } + public Integer getAvailableReplicas() { + return this.availableReplicas; + } + + public Integer getCollisionCount() { + return this.collisionCount; + } + + public Integer getCurrentReplicas() { + return this.currentReplicas; + } + + public String getCurrentRevision() { + return this.currentRevision; + } + + public Long getObservedGeneration() { + return this.observedGeneration; + } + + public Integer getReadyReplicas() { + return this.readyReplicas; + } + + public Integer getReplicas() { + return this.replicas; + } + + public String getUpdateRevision() { + return this.updateRevision; + } + + public Integer getUpdatedReplicas() { + return this.updatedReplicas; + } + + public boolean hasAvailableReplicas() { + return this.availableReplicas != null; + } + + public boolean hasCollisionCount() { + return this.collisionCount != null; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasCurrentReplicas() { + return this.currentReplicas != null; + } + + public boolean hasCurrentRevision() { + return this.currentRevision != null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1StatefulSetConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasObservedGeneration() { + return this.observedGeneration != null; + } + + public boolean hasReadyReplicas() { + return this.readyReplicas != null; + } + + public boolean hasReplicas() { + return this.replicas != null; + } + + public boolean hasUpdateRevision() { + return this.updateRevision != null; + } + + public boolean hasUpdatedReplicas() { + return this.updatedReplicas != null; + } + public int hashCode() { return Objects.hash(availableReplicas, collisionCount, conditions, currentReplicas, currentRevision, observedGeneration, readyReplicas, replicas, updateRevision, updatedReplicas); } + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1StatefulSetCondition item : items) { + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1StatefulSetCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1StatefulSetCondition item : items) { + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1StatefulSetConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1StatefulSetCondition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1StatefulSetCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -482,14 +411,89 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAvailableReplicas(Integer availableReplicas) { + this.availableReplicas = availableReplicas; + return (A) this; + } + + public A withCollisionCount(Integer collisionCount) { + this.collisionCount = collisionCount; + return (A) this; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1StatefulSetCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1StatefulSetCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1StatefulSetCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withCurrentReplicas(Integer currentReplicas) { + this.currentReplicas = currentReplicas; + return (A) this; + } + + public A withCurrentRevision(String currentRevision) { + this.currentRevision = currentRevision; + return (A) this; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public A withReadyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; + return (A) this; + } + + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; + } + + public A withUpdateRevision(String updateRevision) { + this.updateRevision = updateRevision; + return (A) this; + } + + public A withUpdatedReplicas(Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; + return (A) this; + } public class ConditionsNested extends V1StatefulSetConditionFluent> implements Nested{ + + V1StatefulSetConditionBuilder builder; + int index; + ConditionsNested(int index,V1StatefulSetCondition item) { this.index = index; this.builder = new V1StatefulSetConditionBuilder(this, item); } - V1StatefulSetConditionBuilder builder; - int index; - + public N and() { return (N) V1StatefulSetStatusFluent.this.setToConditions(index, builder.build()); } @@ -498,7 +502,5 @@ public N endCondition() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java index 5173f2082a..69b6f17342 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1StatefulSetUpdateStrategyBuilder extends V1StatefulSetUpdateStrategyFluent implements VisitableBuilder{ + + V1StatefulSetUpdateStrategyFluent fluent; + public V1StatefulSetUpdateStrategyBuilder() { this(new V1StatefulSetUpdateStrategy()); } @@ -11,17 +14,16 @@ public V1StatefulSetUpdateStrategyBuilder(V1StatefulSetUpdateStrategyFluent f this(fluent, new V1StatefulSetUpdateStrategy()); } - public V1StatefulSetUpdateStrategyBuilder(V1StatefulSetUpdateStrategyFluent fluent,V1StatefulSetUpdateStrategy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatefulSetUpdateStrategyBuilder(V1StatefulSetUpdateStrategy instance) { this.fluent = this; this.copyInstance(instance); } - V1StatefulSetUpdateStrategyFluent fluent; + public V1StatefulSetUpdateStrategyBuilder(V1StatefulSetUpdateStrategyFluent fluent,V1StatefulSetUpdateStrategy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatefulSetUpdateStrategy build() { V1StatefulSetUpdateStrategy buildable = new V1StatefulSetUpdateStrategy(); buildable.setRollingUpdate(fluent.buildRollingUpdate()); @@ -29,5 +31,4 @@ public V1StatefulSetUpdateStrategy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java index 0a71b8fd98..f2638cf15a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java @@ -1,27 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1StatefulSetUpdateStrategyFluent> extends BaseFluent{ + + private V1RollingUpdateStatefulSetStrategyBuilder rollingUpdate; + private String type; + public V1StatefulSetUpdateStrategyFluent() { } public V1StatefulSetUpdateStrategyFluent(V1StatefulSetUpdateStrategy instance) { this.copyInstance(instance); } - private V1RollingUpdateStatefulSetStrategyBuilder rollingUpdate; - private String type; + + public V1RollingUpdateStatefulSetStrategy buildRollingUpdate() { + return this.rollingUpdate != null ? this.rollingUpdate.build() : null; + } protected void copyInstance(V1StatefulSetUpdateStrategy instance) { instance = instance != null ? instance : new V1StatefulSetUpdateStrategy(); @@ -31,38 +37,6 @@ protected void copyInstance(V1StatefulSetUpdateStrategy instance) { } } - public V1RollingUpdateStatefulSetStrategy buildRollingUpdate() { - return this.rollingUpdate != null ? this.rollingUpdate.build() : null; - } - - public A withRollingUpdate(V1RollingUpdateStatefulSetStrategy rollingUpdate) { - this._visitables.remove("rollingUpdate"); - if (rollingUpdate != null) { - this.rollingUpdate = new V1RollingUpdateStatefulSetStrategyBuilder(rollingUpdate); - this._visitables.get("rollingUpdate").add(this.rollingUpdate); - } else { - this.rollingUpdate = null; - this._visitables.get("rollingUpdate").remove(this.rollingUpdate); - } - return (A) this; - } - - public boolean hasRollingUpdate() { - return this.rollingUpdate != null; - } - - public RollingUpdateNested withNewRollingUpdate() { - return new RollingUpdateNested(null); - } - - public RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateStatefulSetStrategy item) { - return new RollingUpdateNested(item); - } - - public RollingUpdateNested editRollingUpdate() { - return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(null)); - } - public RollingUpdateNested editOrNewRollingUpdate() { return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(new V1RollingUpdateStatefulSetStrategyBuilder().build())); } @@ -71,17 +45,8 @@ public RollingUpdateNested editOrNewRollingUpdateLike(V1RollingUpdateStateful return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(item)); } - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; + public RollingUpdateNested editRollingUpdate() { + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(null)); } public boolean equals(Object o) { @@ -104,6 +69,18 @@ public boolean equals(Object o) { return true; } + public String getType() { + return this.type; + } + + public boolean hasRollingUpdate() { + return this.rollingUpdate != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(rollingUpdate, type); } @@ -123,12 +100,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public RollingUpdateNested withNewRollingUpdate() { + return new RollingUpdateNested(null); + } + + public RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateStatefulSetStrategy item) { + return new RollingUpdateNested(item); + } + + public A withRollingUpdate(V1RollingUpdateStatefulSetStrategy rollingUpdate) { + this._visitables.remove("rollingUpdate"); + if (rollingUpdate != null) { + this.rollingUpdate = new V1RollingUpdateStatefulSetStrategyBuilder(rollingUpdate); + this._visitables.get("rollingUpdate").add(this.rollingUpdate); + } else { + this.rollingUpdate = null; + this._visitables.get("rollingUpdate").remove(this.rollingUpdate); + } + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } public class RollingUpdateNested extends V1RollingUpdateStatefulSetStrategyFluent> implements Nested{ + + V1RollingUpdateStatefulSetStrategyBuilder builder; + RollingUpdateNested(V1RollingUpdateStatefulSetStrategy item) { this.builder = new V1RollingUpdateStatefulSetStrategyBuilder(this, item); } - V1RollingUpdateStatefulSetStrategyBuilder builder; - + public N and() { return (N) V1StatefulSetUpdateStrategyFluent.this.withRollingUpdate(builder.build()); } @@ -137,7 +141,5 @@ public N endRollingUpdate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java index d0e4445104..33573fe434 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1StatusBuilder extends V1StatusFluent implements VisitableBuilder{ + + V1StatusFluent fluent; + public V1StatusBuilder() { this(new V1Status()); } @@ -11,17 +14,16 @@ public V1StatusBuilder(V1StatusFluent fluent) { this(fluent, new V1Status()); } - public V1StatusBuilder(V1StatusFluent fluent,V1Status instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatusBuilder(V1Status instance) { this.fluent = this; this.copyInstance(instance); } - V1StatusFluent fluent; + public V1StatusBuilder(V1StatusFluent fluent,V1Status instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Status build() { V1Status buildable = new V1Status(); buildable.setApiVersion(fluent.getApiVersion()); @@ -35,5 +37,4 @@ public V1Status build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java index d12456fd72..05e47c994c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1StatusCauseBuilder extends V1StatusCauseFluent implements VisitableBuilder{ + + V1StatusCauseFluent fluent; + public V1StatusCauseBuilder() { this(new V1StatusCause()); } @@ -11,17 +14,16 @@ public V1StatusCauseBuilder(V1StatusCauseFluent fluent) { this(fluent, new V1StatusCause()); } - public V1StatusCauseBuilder(V1StatusCauseFluent fluent,V1StatusCause instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatusCauseBuilder(V1StatusCause instance) { this.fluent = this; this.copyInstance(instance); } - V1StatusCauseFluent fluent; + public V1StatusCauseBuilder(V1StatusCauseFluent fluent,V1StatusCause instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatusCause build() { V1StatusCause buildable = new V1StatusCause(); buildable.setField(fluent.getField()); @@ -30,5 +32,4 @@ public V1StatusCause build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java index 1fa4f79f95..76b71a35f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1StatusCauseFluent> extends BaseFluent{ + + private String field; + private String message; + private String reason; + public V1StatusCauseFluent() { } public V1StatusCauseFluent(V1StatusCause instance) { this.copyInstance(instance); } - private String field; - private String message; - private String reason; - + protected void copyInstance(V1StatusCause instance) { instance = instance != null ? instance : new V1StatusCause(); if (instance != null) { @@ -31,45 +33,6 @@ protected void copyInstance(V1StatusCause instance) { } } - public String getField() { - return this.field; - } - - public A withField(String field) { - this.field = field; - return (A) this; - } - - public boolean hasField() { - return this.field != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -93,6 +56,30 @@ public boolean equals(Object o) { return true; } + public String getField() { + return this.field; + } + + public String getMessage() { + return this.message; + } + + public String getReason() { + return this.reason; + } + + public boolean hasField() { + return this.field != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasReason() { + return this.reason != null; + } + public int hashCode() { return Objects.hash(field, message, reason); } @@ -118,5 +105,19 @@ public String toString() { return sb.toString(); } - + public A withField(String field) { + this.field = field; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java index 3f4215d77d..ecc01b928e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1StatusDetailsBuilder extends V1StatusDetailsFluent implements VisitableBuilder{ + + V1StatusDetailsFluent fluent; + public V1StatusDetailsBuilder() { this(new V1StatusDetails()); } @@ -11,17 +14,16 @@ public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent) { this(fluent, new V1StatusDetails()); } - public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent,V1StatusDetails instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatusDetailsBuilder(V1StatusDetails instance) { this.fluent = this; this.copyInstance(instance); } - V1StatusDetailsFluent fluent; + public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent,V1StatusDetails instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatusDetails build() { V1StatusDetails buildable = new V1StatusDetails(); buildable.setCauses(fluent.buildCauses()); @@ -33,5 +35,4 @@ public V1StatusDetails build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java index 870bdcd060..8ea672d6ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java @@ -1,78 +1,58 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Integer; +import java.lang.Object; import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1StatusDetailsFluent> extends BaseFluent{ - public V1StatusDetailsFluent() { - } - - public V1StatusDetailsFluent(V1StatusDetails instance) { - this.copyInstance(instance); - } + private ArrayList causes; private String group; private String kind; private String name; private Integer retryAfterSeconds; private String uid; - - protected void copyInstance(V1StatusDetails instance) { - instance = instance != null ? instance : new V1StatusDetails(); - if (instance != null) { - this.withCauses(instance.getCauses()); - this.withGroup(instance.getGroup()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withRetryAfterSeconds(instance.getRetryAfterSeconds()); - this.withUid(instance.getUid()); - } + + public V1StatusDetailsFluent() { } - public A addToCauses(int index,V1StatusCause item) { + public V1StatusDetailsFluent(V1StatusDetails instance) { + this.copyInstance(instance); + } + + public A addAllToCauses(Collection items) { if (this.causes == null) { this.causes = new ArrayList(); } - V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); - if (index < 0 || index >= causes.size()) { - _visitables.get("causes").add(builder); - causes.add(builder); - } else { + for (V1StatusCause item : items) { + V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); _visitables.get("causes").add(builder); - causes.add(index, builder); + this.causes.add(builder); } return (A) this; } - public A setToCauses(int index,V1StatusCause item) { - if (this.causes == null) { - this.causes = new ArrayList(); - } - V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); - if (index < 0 || index >= causes.size()) { - _visitables.get("causes").add(builder); - causes.add(builder); - } else { - _visitables.get("causes").add(builder); - causes.set(index, builder); - } - return (A) this; + public CausesNested addNewCause() { + return new CausesNested(-1, null); + } + + public CausesNested addNewCauseLike(V1StatusCause item) { + return new CausesNested(-1, item); } public A addToCauses(V1StatusCause... items) { @@ -87,66 +67,29 @@ public A addToCauses(V1StatusCause... items) { return (A) this; } - public A addAllToCauses(Collection items) { + public A addToCauses(int index,V1StatusCause item) { if (this.causes == null) { this.causes = new ArrayList(); } - for (V1StatusCause item : items) { - V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); + V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); + if (index < 0 || index >= causes.size()) { _visitables.get("causes").add(builder); - this.causes.add(builder); - } - return (A) this; - } - - public A removeFromCauses(V1StatusCause... items) { - if (this.causes == null) { - return (A) this; - } - for (V1StatusCause item : items) { - V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); - _visitables.get("causes").remove(builder); - this.causes.remove(builder); - } - return (A) this; - } - - public A removeAllFromCauses(Collection items) { - if (this.causes == null) { - return (A) this; - } - for (V1StatusCause item : items) { - V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); - _visitables.get("causes").remove(builder); - this.causes.remove(builder); + causes.add(builder); + } else { + _visitables.get("causes").add(builder); + causes.add(index, builder); } return (A) this; } - public A removeMatchingFromCauses(Predicate predicate) { - if (causes == null) { - return (A) this; - } - Iterator each = causes.iterator(); - List visitables = _visitables.get("causes"); - while (each.hasNext()) { - V1StatusCauseBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1StatusCause buildCause(int index) { + return this.causes.get(index).build(); } public List buildCauses() { return this.causes != null ? build(causes) : null; } - public V1StatusCause buildCause(int index) { - return this.causes.get(index).build(); - } - public V1StatusCause buildFirstCause() { return this.causes.get(0).build(); } @@ -164,61 +107,20 @@ public V1StatusCause buildMatchingCause(Predicate predicat return null; } - public boolean hasMatchingCause(Predicate predicate) { - for (V1StatusCauseBuilder item : causes) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withCauses(List causes) { - if (this.causes != null) { - this._visitables.get("causes").clear(); - } - if (causes != null) { - this.causes = new ArrayList(); - for (V1StatusCause item : causes) { - this.addToCauses(item); - } - } else { - this.causes = null; - } - return (A) this; - } - - public A withCauses(V1StatusCause... causes) { - if (this.causes != null) { - this.causes.clear(); - _visitables.remove("causes"); - } - if (causes != null) { - for (V1StatusCause item : causes) { - this.addToCauses(item); - } + protected void copyInstance(V1StatusDetails instance) { + instance = instance != null ? instance : new V1StatusDetails(); + if (instance != null) { + this.withCauses(instance.getCauses()); + this.withGroup(instance.getGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withRetryAfterSeconds(instance.getRetryAfterSeconds()); + this.withUid(instance.getUid()); } - return (A) this; - } - - public boolean hasCauses() { - return this.causes != null && !(this.causes.isEmpty()); - } - - public CausesNested addNewCause() { - return new CausesNested(-1, null); - } - - public CausesNested addNewCauseLike(V1StatusCause item) { - return new CausesNested(-1, item); - } - - public CausesNested setNewCauseLike(int index,V1StatusCause item) { - return new CausesNested(index, item); } public CausesNested editCause(int index) { - if (index <= causes.size()) { + if (causes.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "causes")); } return this.setNewCauseLike(index, this.buildCause(index)); @@ -253,105 +155,152 @@ public CausesNested editMatchingCause(Predicate predica return this.setNewCauseLike(index, this.buildCause(index)); } - public String getGroup() { - return this.group; - } - - public A withGroup(String group) { - this.group = group; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StatusDetailsFluent that = (V1StatusDetailsFluent) o; + if (!(Objects.equals(causes, that.causes))) { + return false; + } + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(retryAfterSeconds, that.retryAfterSeconds))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; } - public boolean hasGroup() { - return this.group != null; + public String getGroup() { + return this.group; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + public Integer getRetryAfterSeconds() { + return this.retryAfterSeconds; } - public boolean hasName() { - return this.name != null; + public String getUid() { + return this.uid; } - public Integer getRetryAfterSeconds() { - return this.retryAfterSeconds; + public boolean hasCauses() { + return this.causes != null && !(this.causes.isEmpty()); } - public A withRetryAfterSeconds(Integer retryAfterSeconds) { - this.retryAfterSeconds = retryAfterSeconds; - return (A) this; + public boolean hasGroup() { + return this.group != null; } - public boolean hasRetryAfterSeconds() { - return this.retryAfterSeconds != null; + public boolean hasKind() { + return this.kind != null; } - public String getUid() { - return this.uid; + public boolean hasMatchingCause(Predicate predicate) { + for (V1StatusCauseBuilder item : causes) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A withUid(String uid) { - this.uid = uid; - return (A) this; + public boolean hasName() { + return this.name != null; + } + + public boolean hasRetryAfterSeconds() { + return this.retryAfterSeconds != null; } public boolean hasUid() { return this.uid != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1StatusDetailsFluent that = (V1StatusDetailsFluent) o; - if (!(Objects.equals(causes, that.causes))) { - return false; + public int hashCode() { + return Objects.hash(causes, group, kind, name, retryAfterSeconds, uid); + } + + public A removeAllFromCauses(Collection items) { + if (this.causes == null) { + return (A) this; } - if (!(Objects.equals(group, that.group))) { - return false; + for (V1StatusCause item : items) { + V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); + _visitables.get("causes").remove(builder); + this.causes.remove(builder); } - if (!(Objects.equals(kind, that.kind))) { - return false; + return (A) this; + } + + public A removeFromCauses(V1StatusCause... items) { + if (this.causes == null) { + return (A) this; } - if (!(Objects.equals(name, that.name))) { - return false; + for (V1StatusCause item : items) { + V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); + _visitables.get("causes").remove(builder); + this.causes.remove(builder); } - if (!(Objects.equals(retryAfterSeconds, that.retryAfterSeconds))) { - return false; + return (A) this; + } + + public A removeMatchingFromCauses(Predicate predicate) { + if (causes == null) { + return (A) this; } - if (!(Objects.equals(uid, that.uid))) { - return false; + Iterator each = causes.iterator(); + List visitables = _visitables.get("causes"); + while (each.hasNext()) { + V1StatusCauseBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(causes, group, kind, name, retryAfterSeconds, uid); + public CausesNested setNewCauseLike(int index,V1StatusCause item) { + return new CausesNested(index, item); + } + + public A setToCauses(int index,V1StatusCause item) { + if (this.causes == null) { + this.causes = new ArrayList(); + } + V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); + if (index < 0 || index >= causes.size()) { + _visitables.get("causes").add(builder); + causes.add(builder); + } else { + _visitables.get("causes").add(builder); + causes.set(index, builder); + } + return (A) this; } public String toString() { @@ -389,14 +338,69 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withCauses(List causes) { + if (this.causes != null) { + this._visitables.get("causes").clear(); + } + if (causes != null) { + this.causes = new ArrayList(); + for (V1StatusCause item : causes) { + this.addToCauses(item); + } + } else { + this.causes = null; + } + return (A) this; + } + + public A withCauses(V1StatusCause... causes) { + if (this.causes != null) { + this.causes.clear(); + _visitables.remove("causes"); + } + if (causes != null) { + for (V1StatusCause item : causes) { + this.addToCauses(item); + } + } + return (A) this; + } + + public A withGroup(String group) { + this.group = group; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withRetryAfterSeconds(Integer retryAfterSeconds) { + this.retryAfterSeconds = retryAfterSeconds; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } public class CausesNested extends V1StatusCauseFluent> implements Nested{ + + V1StatusCauseBuilder builder; + int index; + CausesNested(int index,V1StatusCause item) { this.index = index; this.builder = new V1StatusCauseBuilder(this, item); } - V1StatusCauseBuilder builder; - int index; - + public N and() { return (N) V1StatusDetailsFluent.this.setToCauses(index, builder.build()); } @@ -405,7 +409,5 @@ public N endCause() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java index 0e2267acd4..78be5c4944 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java @@ -1,26 +1,21 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.String; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1StatusFluent> extends BaseFluent{ - public V1StatusFluent() { - } - - public V1StatusFluent(V1Status instance) { - this.copyInstance(instance); - } + private String apiVersion; private Integer code; private V1StatusDetailsBuilder details; @@ -29,6 +24,21 @@ public V1StatusFluent(V1Status instance) { private V1ListMetaBuilder metadata; private String reason; private String status; + + public V1StatusFluent() { + } + + public V1StatusFluent(V1Status instance) { + this.copyInstance(instance); + } + + public V1StatusDetails buildDetails() { + return this.details != null ? this.details.build() : null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } protected void copyInstance(V1Status instance) { instance = instance != null ? instance : new V1Status(); @@ -44,64 +54,14 @@ protected void copyInstance(V1Status instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public Integer getCode() { - return this.code; - } - - public A withCode(Integer code) { - this.code = code; - return (A) this; - } - - public boolean hasCode() { - return this.code != null; - } - - public V1StatusDetails buildDetails() { - return this.details != null ? this.details.build() : null; - } - - public A withDetails(V1StatusDetails details) { - this._visitables.remove("details"); - if (details != null) { - this.details = new V1StatusDetailsBuilder(details); - this._visitables.get("details").add(this.details); - } else { - this.details = null; - this._visitables.get("details").remove(this.details); - } - return (A) this; - } - - public boolean hasDetails() { - return this.details != null; - } - - public DetailsNested withNewDetails() { - return new DetailsNested(null); - } - - public DetailsNested withNewDetailsLike(V1StatusDetails item) { - return new DetailsNested(item); - } - public DetailsNested editDetails() { return this.withNewDetailsLike(Optional.ofNullable(this.buildDetails()).orElse(null)); } + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + public DetailsNested editOrNewDetails() { return this.withNewDetailsLike(Optional.ofNullable(this.buildDetails()).orElse(new V1StatusDetailsBuilder().build())); } @@ -110,64 +70,6 @@ public DetailsNested editOrNewDetailsLike(V1StatusDetails item) { return this.withNewDetailsLike(Optional.ofNullable(this.buildDetails()).orElse(item)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); - } - public MetadataNested editOrNewMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } @@ -176,32 +78,6 @@ public MetadataNested editOrNewMetadataLike(V1ListMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -240,6 +116,62 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public Integer getCode() { + return this.code; + } + + public String getKind() { + return this.kind; + } + + public String getMessage() { + return this.message; + } + + public String getReason() { + return this.reason; + } + + public String getStatus() { + return this.status; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasCode() { + return this.code != null; + } + + public boolean hasDetails() { + return this.details != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasReason() { + return this.reason != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, code, details, kind, message, metadata, reason, status); } @@ -289,12 +221,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withCode(Integer code) { + this.code = code; + return (A) this; + } + + public A withDetails(V1StatusDetails details) { + this._visitables.remove("details"); + if (details != null) { + this.details = new V1StatusDetailsBuilder(details); + this._visitables.get("details").add(this.details); + } else { + this.details = null; + this._visitables.get("details").remove(this.details); + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public DetailsNested withNewDetails() { + return new DetailsNested(null); + } + + public DetailsNested withNewDetailsLike(V1StatusDetails item) { + return new DetailsNested(item); + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } public class DetailsNested extends V1StatusDetailsFluent> implements Nested{ + + V1StatusDetailsBuilder builder; + DetailsNested(V1StatusDetails item) { this.builder = new V1StatusDetailsBuilder(this, item); } - V1StatusDetailsBuilder builder; - + public N and() { return (N) V1StatusFluent.this.withDetails(builder.build()); } @@ -303,14 +307,15 @@ public N endDetails() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1StatusFluent.this.withMetadata(builder.build()); } @@ -319,7 +324,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java index 2d1ea3feb1..e86662f8dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1StorageClassBuilder extends V1StorageClassFluent implements VisitableBuilder{ + + V1StorageClassFluent fluent; + public V1StorageClassBuilder() { this(new V1StorageClass()); } @@ -11,17 +14,16 @@ public V1StorageClassBuilder(V1StorageClassFluent fluent) { this(fluent, new V1StorageClass()); } - public V1StorageClassBuilder(V1StorageClassFluent fluent,V1StorageClass instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StorageClassBuilder(V1StorageClass instance) { this.fluent = this; this.copyInstance(instance); } - V1StorageClassFluent fluent; + public V1StorageClassBuilder(V1StorageClassFluent fluent,V1StorageClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StorageClass build() { V1StorageClass buildable = new V1StorageClass(); buildable.setAllowVolumeExpansion(fluent.getAllowVolumeExpansion()); @@ -37,5 +39,4 @@ public V1StorageClass build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java index 82cebf1847..efd1105689 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java @@ -1,34 +1,29 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; -import java.lang.Boolean; -import java.util.Optional; -import java.util.Objects; -import java.util.Collection; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1StorageClassFluent> extends BaseFluent{ - public V1StorageClassFluent() { - } - - public V1StorageClassFluent(V1StorageClass instance) { - this.copyInstance(instance); - } + private Boolean allowVolumeExpansion; private ArrayList allowedTopologies; private String apiVersion; @@ -39,66 +34,44 @@ public V1StorageClassFluent(V1StorageClass instance) { private String provisioner; private String reclaimPolicy; private String volumeBindingMode; - - protected void copyInstance(V1StorageClass instance) { - instance = instance != null ? instance : new V1StorageClass(); - if (instance != null) { - this.withAllowVolumeExpansion(instance.getAllowVolumeExpansion()); - this.withAllowedTopologies(instance.getAllowedTopologies()); - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withMountOptions(instance.getMountOptions()); - this.withParameters(instance.getParameters()); - this.withProvisioner(instance.getProvisioner()); - this.withReclaimPolicy(instance.getReclaimPolicy()); - this.withVolumeBindingMode(instance.getVolumeBindingMode()); - } - } - - public Boolean getAllowVolumeExpansion() { - return this.allowVolumeExpansion; - } - - public A withAllowVolumeExpansion(Boolean allowVolumeExpansion) { - this.allowVolumeExpansion = allowVolumeExpansion; - return (A) this; + + public V1StorageClassFluent() { } - public boolean hasAllowVolumeExpansion() { - return this.allowVolumeExpansion != null; + public V1StorageClassFluent(V1StorageClass instance) { + this.copyInstance(instance); } - - public A addToAllowedTopologies(int index,V1TopologySelectorTerm item) { + + public A addAllToAllowedTopologies(Collection items) { if (this.allowedTopologies == null) { this.allowedTopologies = new ArrayList(); } - V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); - if (index < 0 || index >= allowedTopologies.size()) { - _visitables.get("allowedTopologies").add(builder); - allowedTopologies.add(builder); - } else { + for (V1TopologySelectorTerm item : items) { + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); _visitables.get("allowedTopologies").add(builder); - allowedTopologies.add(index, builder); + this.allowedTopologies.add(builder); } return (A) this; } - public A setToAllowedTopologies(int index,V1TopologySelectorTerm item) { - if (this.allowedTopologies == null) { - this.allowedTopologies = new ArrayList(); + public A addAllToMountOptions(Collection items) { + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); } - V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); - if (index < 0 || index >= allowedTopologies.size()) { - _visitables.get("allowedTopologies").add(builder); - allowedTopologies.add(builder); - } else { - _visitables.get("allowedTopologies").add(builder); - allowedTopologies.set(index, builder); + for (String item : items) { + this.mountOptions.add(item); } return (A) this; } + public AllowedTopologiesNested addNewAllowedTopology() { + return new AllowedTopologiesNested(-1, null); + } + + public AllowedTopologiesNested addNewAllowedTopologyLike(V1TopologySelectorTerm item) { + return new AllowedTopologiesNested(-1, item); + } + public A addToAllowedTopologies(V1TopologySelectorTerm... items) { if (this.allowedTopologies == null) { this.allowedTopologies = new ArrayList(); @@ -111,54 +84,55 @@ public A addToAllowedTopologies(V1TopologySelectorTerm... items) { return (A) this; } - public A addAllToAllowedTopologies(Collection items) { + public A addToAllowedTopologies(int index,V1TopologySelectorTerm item) { if (this.allowedTopologies == null) { this.allowedTopologies = new ArrayList(); } - for (V1TopologySelectorTerm item : items) { - V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); + if (index < 0 || index >= allowedTopologies.size()) { _visitables.get("allowedTopologies").add(builder); - this.allowedTopologies.add(builder); + allowedTopologies.add(builder); + } else { + _visitables.get("allowedTopologies").add(builder); + allowedTopologies.add(index, builder); } return (A) this; } - public A removeFromAllowedTopologies(V1TopologySelectorTerm... items) { - if (this.allowedTopologies == null) { - return (A) this; + public A addToMountOptions(String... items) { + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); } - for (V1TopologySelectorTerm item : items) { - V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); - _visitables.get("allowedTopologies").remove(builder); - this.allowedTopologies.remove(builder); + for (String item : items) { + this.mountOptions.add(item); } return (A) this; } - public A removeAllFromAllowedTopologies(Collection items) { - if (this.allowedTopologies == null) { - return (A) this; + public A addToMountOptions(int index,String item) { + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); } - for (V1TopologySelectorTerm item : items) { - V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); - _visitables.get("allowedTopologies").remove(builder); - this.allowedTopologies.remove(builder); + this.mountOptions.add(index, item); + return (A) this; + } + + public A addToParameters(Map map) { + if (this.parameters == null && map != null) { + this.parameters = new LinkedHashMap(); + } + if (map != null) { + this.parameters.putAll(map); } return (A) this; } - public A removeMatchingFromAllowedTopologies(Predicate predicate) { - if (allowedTopologies == null) { - return (A) this; + public A addToParameters(String key,String value) { + if (this.parameters == null && key != null && value != null) { + this.parameters = new LinkedHashMap(); } - Iterator each = allowedTopologies.iterator(); - List visitables = _visitables.get("allowedTopologies"); - while (each.hasNext()) { - V1TopologySelectorTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (key != null && value != null) { + this.parameters.put(key, value); } return (A) this; } @@ -188,61 +162,28 @@ public V1TopologySelectorTerm buildMatchingAllowedTopology(Predicate predicate) { - for (V1TopologySelectorTermBuilder item : allowedTopologies) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withAllowedTopologies(List allowedTopologies) { - if (this.allowedTopologies != null) { - this._visitables.get("allowedTopologies").clear(); - } - if (allowedTopologies != null) { - this.allowedTopologies = new ArrayList(); - for (V1TopologySelectorTerm item : allowedTopologies) { - this.addToAllowedTopologies(item); - } - } else { - this.allowedTopologies = null; - } - return (A) this; + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withAllowedTopologies(V1TopologySelectorTerm... allowedTopologies) { - if (this.allowedTopologies != null) { - this.allowedTopologies.clear(); - _visitables.remove("allowedTopologies"); - } - if (allowedTopologies != null) { - for (V1TopologySelectorTerm item : allowedTopologies) { - this.addToAllowedTopologies(item); - } + protected void copyInstance(V1StorageClass instance) { + instance = instance != null ? instance : new V1StorageClass(); + if (instance != null) { + this.withAllowVolumeExpansion(instance.getAllowVolumeExpansion()); + this.withAllowedTopologies(instance.getAllowedTopologies()); + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withMountOptions(instance.getMountOptions()); + this.withParameters(instance.getParameters()); + this.withProvisioner(instance.getProvisioner()); + this.withReclaimPolicy(instance.getReclaimPolicy()); + this.withVolumeBindingMode(instance.getVolumeBindingMode()); } - return (A) this; - } - - public boolean hasAllowedTopologies() { - return this.allowedTopologies != null && !(this.allowedTopologies.isEmpty()); - } - - public AllowedTopologiesNested addNewAllowedTopology() { - return new AllowedTopologiesNested(-1, null); - } - - public AllowedTopologiesNested addNewAllowedTopologyLike(V1TopologySelectorTerm item) { - return new AllowedTopologiesNested(-1, item); - } - - public AllowedTopologiesNested setNewAllowedTopologyLike(int index,V1TopologySelectorTerm item) { - return new AllowedTopologiesNested(index, item); } public AllowedTopologiesNested editAllowedTopology(int index) { - if (index <= allowedTopologies.size()) { + if (allowedTopologies.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "allowedTopologies")); } return this.setNewAllowedTopologyLike(index, this.buildAllowedTopology(index)); @@ -277,151 +218,138 @@ public AllowedTopologiesNested editMatchingAllowedTopology(Predicate editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public boolean hasKind() { - return this.kind != null; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StorageClassFluent that = (V1StorageClassFluent) o; + if (!(Objects.equals(allowVolumeExpansion, that.allowVolumeExpansion))) { + return false; + } + if (!(Objects.equals(allowedTopologies, that.allowedTopologies))) { + return false; + } + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(mountOptions, that.mountOptions))) { + return false; + } + if (!(Objects.equals(parameters, that.parameters))) { + return false; + } + if (!(Objects.equals(provisioner, that.provisioner))) { + return false; + } + if (!(Objects.equals(reclaimPolicy, that.reclaimPolicy))) { + return false; + } + if (!(Objects.equals(volumeBindingMode, that.volumeBindingMode))) { + return false; + } + return true; } - public boolean hasMetadata() { - return this.metadata != null; + public Boolean getAllowVolumeExpansion() { + return this.allowVolumeExpansion; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public String getApiVersion() { + return this.apiVersion; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + public String getFirstMountOption() { + return this.mountOptions.get(0); } - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + public String getKind() { + return this.kind; } - public MetadataNested editOrNewMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public String getLastMountOption() { + return this.mountOptions.get(mountOptions.size() - 1); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + public String getMatchingMountOption(Predicate predicate) { + for (String item : mountOptions) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A addToMountOptions(int index,String item) { - if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); - } - this.mountOptions.add(index, item); - return (A) this; + public String getMountOption(int index) { + return this.mountOptions.get(index); } - public A setToMountOptions(int index,String item) { - if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); - } - this.mountOptions.set(index, item); - return (A) this; + public List getMountOptions() { + return this.mountOptions; } - public A addToMountOptions(String... items) { - if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); - } - for (String item : items) { - this.mountOptions.add(item); - } - return (A) this; + public Map getParameters() { + return this.parameters; } - public A addAllToMountOptions(Collection items) { - if (this.mountOptions == null) { - this.mountOptions = new ArrayList(); - } - for (String item : items) { - this.mountOptions.add(item); - } - return (A) this; + public String getProvisioner() { + return this.provisioner; } - public A removeFromMountOptions(String... items) { - if (this.mountOptions == null) { - return (A) this; - } - for (String item : items) { - this.mountOptions.remove(item); - } - return (A) this; + public String getReclaimPolicy() { + return this.reclaimPolicy; } - public A removeAllFromMountOptions(Collection items) { - if (this.mountOptions == null) { - return (A) this; - } - for (String item : items) { - this.mountOptions.remove(item); - } - return (A) this; + public String getVolumeBindingMode() { + return this.volumeBindingMode; } - public List getMountOptions() { - return this.mountOptions; + public boolean hasAllowVolumeExpansion() { + return this.allowVolumeExpansion != null; } - public String getMountOption(int index) { - return this.mountOptions.get(index); + public boolean hasAllowedTopologies() { + return this.allowedTopologies != null && !(this.allowedTopologies.isEmpty()); } - public String getFirstMountOption() { - return this.mountOptions.get(0); + public boolean hasApiVersion() { + return this.apiVersion != null; } - public String getLastMountOption() { - return this.mountOptions.get(mountOptions.size() - 1); + public boolean hasKind() { + return this.kind != null; } - public String getMatchingMountOption(Predicate predicate) { - for (String item : mountOptions) { + public boolean hasMatchingAllowedTopology(Predicate predicate) { + for (V1TopologySelectorTermBuilder item : allowedTopologies) { if (predicate.test(item)) { - return item; + return true; } } - return null; + return false; } public boolean hasMatchingMountOption(Predicate predicate) { @@ -433,51 +361,74 @@ public boolean hasMatchingMountOption(Predicate predicate) { return false; } - public A withMountOptions(List mountOptions) { - if (mountOptions != null) { - this.mountOptions = new ArrayList(); - for (String item : mountOptions) { - this.addToMountOptions(item); - } - } else { - this.mountOptions = null; - } - return (A) this; + public boolean hasMetadata() { + return this.metadata != null; } - public A withMountOptions(String... mountOptions) { - if (this.mountOptions != null) { - this.mountOptions.clear(); - _visitables.remove("mountOptions"); + public boolean hasMountOptions() { + return this.mountOptions != null && !(this.mountOptions.isEmpty()); + } + + public boolean hasParameters() { + return this.parameters != null; + } + + public boolean hasProvisioner() { + return this.provisioner != null; + } + + public boolean hasReclaimPolicy() { + return this.reclaimPolicy != null; + } + + public boolean hasVolumeBindingMode() { + return this.volumeBindingMode != null; + } + + public int hashCode() { + return Objects.hash(allowVolumeExpansion, allowedTopologies, apiVersion, kind, metadata, mountOptions, parameters, provisioner, reclaimPolicy, volumeBindingMode); + } + + public A removeAllFromAllowedTopologies(Collection items) { + if (this.allowedTopologies == null) { + return (A) this; } - if (mountOptions != null) { - for (String item : mountOptions) { - this.addToMountOptions(item); - } + for (V1TopologySelectorTerm item : items) { + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); + _visitables.get("allowedTopologies").remove(builder); + this.allowedTopologies.remove(builder); } return (A) this; } - public boolean hasMountOptions() { - return this.mountOptions != null && !(this.mountOptions.isEmpty()); + public A removeAllFromMountOptions(Collection items) { + if (this.mountOptions == null) { + return (A) this; + } + for (String item : items) { + this.mountOptions.remove(item); + } + return (A) this; } - public A addToParameters(String key,String value) { - if (this.parameters == null && key != null && value != null) { - this.parameters = new LinkedHashMap(); + public A removeFromAllowedTopologies(V1TopologySelectorTerm... items) { + if (this.allowedTopologies == null) { + return (A) this; } - if (key != null && value != null) { - this.parameters.put(key, value); + for (V1TopologySelectorTerm item : items) { + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); + _visitables.get("allowedTopologies").remove(builder); + this.allowedTopologies.remove(builder); } return (A) this; } - public A addToParameters(Map map) { - if (this.parameters == null && map != null) { - this.parameters = new LinkedHashMap(); + public A removeFromMountOptions(String... items) { + if (this.mountOptions == null) { + return (A) this; } - if (map != null) { - this.parameters.putAll(map); + for (String item : items) { + this.mountOptions.remove(item); } return (A) this; } @@ -506,108 +457,47 @@ public A removeFromParameters(Map map) { return (A) this; } - public Map getParameters() { - return this.parameters; - } - - public A withParameters(Map parameters) { - if (parameters == null) { - this.parameters = null; - } else { - this.parameters = new LinkedHashMap(parameters); + public A removeMatchingFromAllowedTopologies(Predicate predicate) { + if (allowedTopologies == null) { + return (A) this; + } + Iterator each = allowedTopologies.iterator(); + List visitables = _visitables.get("allowedTopologies"); + while (each.hasNext()) { + V1TopologySelectorTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasParameters() { - return this.parameters != null; - } - - public String getProvisioner() { - return this.provisioner; - } - - public A withProvisioner(String provisioner) { - this.provisioner = provisioner; - return (A) this; - } - - public boolean hasProvisioner() { - return this.provisioner != null; - } - - public String getReclaimPolicy() { - return this.reclaimPolicy; - } - - public A withReclaimPolicy(String reclaimPolicy) { - this.reclaimPolicy = reclaimPolicy; - return (A) this; - } - - public boolean hasReclaimPolicy() { - return this.reclaimPolicy != null; - } - - public String getVolumeBindingMode() { - return this.volumeBindingMode; - } - - public A withVolumeBindingMode(String volumeBindingMode) { - this.volumeBindingMode = volumeBindingMode; - return (A) this; - } - - public boolean hasVolumeBindingMode() { - return this.volumeBindingMode != null; + public AllowedTopologiesNested setNewAllowedTopologyLike(int index,V1TopologySelectorTerm item) { + return new AllowedTopologiesNested(index, item); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1StorageClassFluent that = (V1StorageClassFluent) o; - if (!(Objects.equals(allowVolumeExpansion, that.allowVolumeExpansion))) { - return false; - } - if (!(Objects.equals(allowedTopologies, that.allowedTopologies))) { - return false; - } - if (!(Objects.equals(apiVersion, that.apiVersion))) { - return false; - } - if (!(Objects.equals(kind, that.kind))) { - return false; - } - if (!(Objects.equals(metadata, that.metadata))) { - return false; - } - if (!(Objects.equals(mountOptions, that.mountOptions))) { - return false; - } - if (!(Objects.equals(parameters, that.parameters))) { - return false; - } - if (!(Objects.equals(provisioner, that.provisioner))) { - return false; - } - if (!(Objects.equals(reclaimPolicy, that.reclaimPolicy))) { - return false; + public A setToAllowedTopologies(int index,V1TopologySelectorTerm item) { + if (this.allowedTopologies == null) { + this.allowedTopologies = new ArrayList(); } - if (!(Objects.equals(volumeBindingMode, that.volumeBindingMode))) { - return false; + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); + if (index < 0 || index >= allowedTopologies.size()) { + _visitables.get("allowedTopologies").add(builder); + allowedTopologies.add(builder); + } else { + _visitables.get("allowedTopologies").add(builder); + allowedTopologies.set(index, builder); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(allowVolumeExpansion, allowedTopologies, apiVersion, kind, metadata, mountOptions, parameters, provisioner, reclaimPolicy, volumeBindingMode); + public A setToMountOptions(int index,String item) { + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } + this.mountOptions.set(index, item); + return (A) this; } public String toString() { @@ -669,14 +559,128 @@ public String toString() { public A withAllowVolumeExpansion() { return withAllowVolumeExpansion(true); } + + public A withAllowVolumeExpansion(Boolean allowVolumeExpansion) { + this.allowVolumeExpansion = allowVolumeExpansion; + return (A) this; + } + + public A withAllowedTopologies(List allowedTopologies) { + if (this.allowedTopologies != null) { + this._visitables.get("allowedTopologies").clear(); + } + if (allowedTopologies != null) { + this.allowedTopologies = new ArrayList(); + for (V1TopologySelectorTerm item : allowedTopologies) { + this.addToAllowedTopologies(item); + } + } else { + this.allowedTopologies = null; + } + return (A) this; + } + + public A withAllowedTopologies(V1TopologySelectorTerm... allowedTopologies) { + if (this.allowedTopologies != null) { + this.allowedTopologies.clear(); + _visitables.remove("allowedTopologies"); + } + if (allowedTopologies != null) { + for (V1TopologySelectorTerm item : allowedTopologies) { + this.addToAllowedTopologies(item); + } + } + return (A) this; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public A withMountOptions(List mountOptions) { + if (mountOptions != null) { + this.mountOptions = new ArrayList(); + for (String item : mountOptions) { + this.addToMountOptions(item); + } + } else { + this.mountOptions = null; + } + return (A) this; + } + + public A withMountOptions(String... mountOptions) { + if (this.mountOptions != null) { + this.mountOptions.clear(); + _visitables.remove("mountOptions"); + } + if (mountOptions != null) { + for (String item : mountOptions) { + this.addToMountOptions(item); + } + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public A withParameters(Map parameters) { + if (parameters == null) { + this.parameters = null; + } else { + this.parameters = new LinkedHashMap(parameters); + } + return (A) this; + } + + public A withProvisioner(String provisioner) { + this.provisioner = provisioner; + return (A) this; + } + + public A withReclaimPolicy(String reclaimPolicy) { + this.reclaimPolicy = reclaimPolicy; + return (A) this; + } + + public A withVolumeBindingMode(String volumeBindingMode) { + this.volumeBindingMode = volumeBindingMode; + return (A) this; + } public class AllowedTopologiesNested extends V1TopologySelectorTermFluent> implements Nested{ + + V1TopologySelectorTermBuilder builder; + int index; + AllowedTopologiesNested(int index,V1TopologySelectorTerm item) { this.index = index; this.builder = new V1TopologySelectorTermBuilder(this, item); } - V1TopologySelectorTermBuilder builder; - int index; - + public N and() { return (N) V1StorageClassFluent.this.setToAllowedTopologies(index, builder.build()); } @@ -685,14 +689,15 @@ public N endAllowedTopology() { return and(); } - } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1StorageClassFluent.this.withMetadata(builder.build()); } @@ -701,7 +706,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java index 7fb02c7026..131c4381c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1StorageClassListBuilder extends V1StorageClassListFluent implements VisitableBuilder{ + + V1StorageClassListFluent fluent; + public V1StorageClassListBuilder() { this(new V1StorageClassList()); } @@ -11,17 +14,16 @@ public V1StorageClassListBuilder(V1StorageClassListFluent fluent) { this(fluent, new V1StorageClassList()); } - public V1StorageClassListBuilder(V1StorageClassListFluent fluent,V1StorageClassList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StorageClassListBuilder(V1StorageClassList instance) { this.fluent = this; this.copyInstance(instance); } - V1StorageClassListFluent fluent; + public V1StorageClassListBuilder(V1StorageClassListFluent fluent,V1StorageClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StorageClassList build() { V1StorageClassList buildable = new V1StorageClassList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1StorageClassList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java index 849939f873..64e5ef44f1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1StorageClassListFluent> extends BaseFluent{ - public V1StorageClassListFluent() { - } - - public V1StorageClassListFluent(V1StorageClassList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1StorageClassList instance) { - instance = instance != null ? instance : new V1StorageClassList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1StorageClassListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1StorageClassListFluent(V1StorageClassList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1StorageClass item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1StorageClassBuilder builder = new V1StorageClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1StorageClass item : items) { + V1StorageClassBuilder builder = new V1StorageClassBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1StorageClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1StorageClassBuilder builder = new V1StorageClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1StorageClass item) { + return new ItemsNested(-1, item); } public A addToItems(V1StorageClass... items) { @@ -96,68 +65,31 @@ public A addToItems(V1StorageClass... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1StorageClass item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1StorageClass item : items) { - V1StorageClassBuilder builder = new V1StorageClassBuilder(item); + V1StorageClassBuilder builder = new V1StorageClassBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1StorageClass... items) { - if (this.items == null) { - return (A) this; - } - for (V1StorageClass item : items) { - V1StorageClassBuilder builder = new V1StorageClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1StorageClass item : items) { - V1StorageClassBuilder builder = new V1StorageClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1StorageClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1StorageClass buildFirstItem() { + return this.items.get(0).build(); } public V1StorageClass buildItem(int index) { return this.items.get(index).build(); } - public V1StorageClass buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1StorageClass buildLastItem() { @@ -173,73 +105,34 @@ public V1StorageClass buildMatchingItem(Predicate predica return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1StorageClassBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1StorageClass item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1StorageClassList instance) { + instance = instance != null ? instance : new V1StorageClassList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1StorageClass... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1StorageClass item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1StorageClass item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1StorageClass item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predicat return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1StorageClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1StorageClass item : items) { + V1StorageClassBuilder builder = new V1StorageClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1StorageClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1StorageClass item : items) { + V1StorageClassBuilder builder = new V1StorageClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1StorageClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1StorageClass item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1StorageClass item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1StorageClassBuilder builder = new V1StorageClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1StorageClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1StorageClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1StorageClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1StorageClassFluent> implements Nested{ + + V1StorageClassBuilder builder; + int index; + ItemsNested(int index,V1StorageClass item) { this.index = index; this.builder = new V1StorageClassBuilder(this, item); } - V1StorageClassBuilder builder; - int index; - + public N and() { return (N) V1StorageClassListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1StorageClassListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java index 395a16b403..74574a1949 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1StorageOSPersistentVolumeSourceBuilder extends V1StorageOSPersistentVolumeSourceFluent implements VisitableBuilder{ + + V1StorageOSPersistentVolumeSourceFluent fluent; + public V1StorageOSPersistentVolumeSourceBuilder() { this(new V1StorageOSPersistentVolumeSource()); } @@ -11,17 +14,16 @@ public V1StorageOSPersistentVolumeSourceBuilder(V1StorageOSPersistentVolumeSourc this(fluent, new V1StorageOSPersistentVolumeSource()); } - public V1StorageOSPersistentVolumeSourceBuilder(V1StorageOSPersistentVolumeSourceFluent fluent,V1StorageOSPersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StorageOSPersistentVolumeSourceBuilder(V1StorageOSPersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1StorageOSPersistentVolumeSourceFluent fluent; + public V1StorageOSPersistentVolumeSourceBuilder(V1StorageOSPersistentVolumeSourceFluent fluent,V1StorageOSPersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StorageOSPersistentVolumeSource build() { V1StorageOSPersistentVolumeSource buildable = new V1StorageOSPersistentVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -32,5 +34,4 @@ public V1StorageOSPersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java index aa674e0ada..55c9056f9e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java @@ -1,31 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; -import java.lang.Boolean; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1StorageOSPersistentVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private Boolean readOnly; + private V1ObjectReferenceBuilder secretRef; + private String volumeName; + private String volumeNamespace; + public V1StorageOSPersistentVolumeSourceFluent() { } public V1StorageOSPersistentVolumeSourceFluent(V1StorageOSPersistentVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private Boolean readOnly; - private V1ObjectReferenceBuilder secretRef; - private String volumeName; - private String volumeNamespace; + + public V1ObjectReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; + } protected void copyInstance(V1StorageOSPersistentVolumeSource instance) { instance = instance != null ? instance : new V1StorageOSPersistentVolumeSource(); @@ -38,64 +44,6 @@ protected void copyInstance(V1StorageOSPersistentVolumeSource instance) { } } - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; - } - - public boolean hasFsType() { - return this.fsType != null; - } - - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - - public V1ObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; - } - - public A withSecretRef(V1ObjectReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1ObjectReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; - } - - public boolean hasSecretRef() { - return this.secretRef != null; - } - - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); - } - - public SecretRefNested withNewSecretRefLike(V1ObjectReference item) { - return new SecretRefNested(item); - } - - public SecretRefNested editSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); - } - public SecretRefNested editOrNewSecretRef() { return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1ObjectReferenceBuilder().build())); } @@ -104,30 +52,8 @@ public SecretRefNested editOrNewSecretRefLike(V1ObjectReference item) { return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public String getVolumeName() { - return this.volumeName; - } - - public A withVolumeName(String volumeName) { - this.volumeName = volumeName; - return (A) this; - } - - public boolean hasVolumeName() { - return this.volumeName != null; - } - - public String getVolumeNamespace() { - return this.volumeNamespace; - } - - public A withVolumeNamespace(String volumeNamespace) { - this.volumeNamespace = volumeNamespace; - return (A) this; - } - - public boolean hasVolumeNamespace() { - return this.volumeNamespace != null; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public boolean equals(Object o) { @@ -159,6 +85,42 @@ public boolean equals(Object o) { return true; } + public String getFsType() { + return this.fsType; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public String getVolumeName() { + return this.volumeName; + } + + public String getVolumeNamespace() { + return this.volumeNamespace; + } + + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + + public boolean hasSecretRef() { + return this.secretRef != null; + } + + public boolean hasVolumeName() { + return this.volumeName != null; + } + + public boolean hasVolumeNamespace() { + return this.volumeNamespace != null; + } + public int hashCode() { return Objects.hash(fsType, readOnly, secretRef, volumeName, volumeNamespace); } @@ -194,15 +156,57 @@ public String toString() { return sb.toString(); } + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); + } + + public SecretRefNested withNewSecretRefLike(V1ObjectReference item) { + return new SecretRefNested(item); + } + public A withReadOnly() { return withReadOnly(true); } + + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretRef(V1ObjectReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1ObjectReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; + } + + public A withVolumeName(String volumeName) { + this.volumeName = volumeName; + return (A) this; + } + + public A withVolumeNamespace(String volumeNamespace) { + this.volumeNamespace = volumeNamespace; + return (A) this; + } public class SecretRefNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + SecretRefNested(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - + public N and() { return (N) V1StorageOSPersistentVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -211,7 +215,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java index 9565e7b40b..6e0c75341d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1StorageOSVolumeSourceBuilder extends V1StorageOSVolumeSourceFluent implements VisitableBuilder{ + + V1StorageOSVolumeSourceFluent fluent; + public V1StorageOSVolumeSourceBuilder() { this(new V1StorageOSVolumeSource()); } @@ -11,17 +14,16 @@ public V1StorageOSVolumeSourceBuilder(V1StorageOSVolumeSourceFluent fluent) { this(fluent, new V1StorageOSVolumeSource()); } - public V1StorageOSVolumeSourceBuilder(V1StorageOSVolumeSourceFluent fluent,V1StorageOSVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StorageOSVolumeSourceBuilder(V1StorageOSVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1StorageOSVolumeSourceFluent fluent; + public V1StorageOSVolumeSourceBuilder(V1StorageOSVolumeSourceFluent fluent,V1StorageOSVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StorageOSVolumeSource build() { V1StorageOSVolumeSource buildable = new V1StorageOSVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -32,5 +34,4 @@ public V1StorageOSVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java index 533162013e..f938994a62 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java @@ -1,31 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; -import java.lang.Boolean; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1StorageOSVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private Boolean readOnly; + private V1LocalObjectReferenceBuilder secretRef; + private String volumeName; + private String volumeNamespace; + public V1StorageOSVolumeSourceFluent() { } public V1StorageOSVolumeSourceFluent(V1StorageOSVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private Boolean readOnly; - private V1LocalObjectReferenceBuilder secretRef; - private String volumeName; - private String volumeNamespace; + + public V1LocalObjectReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; + } protected void copyInstance(V1StorageOSVolumeSource instance) { instance = instance != null ? instance : new V1StorageOSVolumeSource(); @@ -38,64 +44,6 @@ protected void copyInstance(V1StorageOSVolumeSource instance) { } } - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; - } - - public boolean hasFsType() { - return this.fsType != null; - } - - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; - } - - public A withSecretRef(V1LocalObjectReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; - } - - public boolean hasSecretRef() { - return this.secretRef != null; - } - - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); - } - - public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); - } - - public SecretRefNested editSecretRef() { - return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); - } - public SecretRefNested editOrNewSecretRef() { return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } @@ -104,30 +52,8 @@ public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public String getVolumeName() { - return this.volumeName; - } - - public A withVolumeName(String volumeName) { - this.volumeName = volumeName; - return (A) this; - } - - public boolean hasVolumeName() { - return this.volumeName != null; - } - - public String getVolumeNamespace() { - return this.volumeNamespace; - } - - public A withVolumeNamespace(String volumeNamespace) { - this.volumeNamespace = volumeNamespace; - return (A) this; - } - - public boolean hasVolumeNamespace() { - return this.volumeNamespace != null; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } public boolean equals(Object o) { @@ -159,6 +85,42 @@ public boolean equals(Object o) { return true; } + public String getFsType() { + return this.fsType; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public String getVolumeName() { + return this.volumeName; + } + + public String getVolumeNamespace() { + return this.volumeNamespace; + } + + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + + public boolean hasSecretRef() { + return this.secretRef != null; + } + + public boolean hasVolumeName() { + return this.volumeName != null; + } + + public boolean hasVolumeNamespace() { + return this.volumeNamespace != null; + } + public int hashCode() { return Objects.hash(fsType, readOnly, secretRef, volumeName, volumeNamespace); } @@ -194,15 +156,57 @@ public String toString() { return sb.toString(); } + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); + } + + public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { + return new SecretRefNested(item); + } + public A withReadOnly() { return withReadOnly(true); } + + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretRef(V1LocalObjectReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; + } + + public A withVolumeName(String volumeName) { + this.volumeName = volumeName; + return (A) this; + } + + public A withVolumeNamespace(String volumeNamespace) { + this.volumeNamespace = volumeNamespace; + return (A) this; + } public class SecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ + + V1LocalObjectReferenceBuilder builder; + SecretRefNested(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - + public N and() { return (N) V1StorageOSVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -211,7 +215,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java index 21e0bb9600..68ea45522c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SubjectAccessReviewBuilder extends V1SubjectAccessReviewFluent implements VisitableBuilder{ + + V1SubjectAccessReviewFluent fluent; + public V1SubjectAccessReviewBuilder() { this(new V1SubjectAccessReview()); } @@ -11,17 +14,16 @@ public V1SubjectAccessReviewBuilder(V1SubjectAccessReviewFluent fluent) { this(fluent, new V1SubjectAccessReview()); } - public V1SubjectAccessReviewBuilder(V1SubjectAccessReviewFluent fluent,V1SubjectAccessReview instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SubjectAccessReviewBuilder(V1SubjectAccessReview instance) { this.fluent = this; this.copyInstance(instance); } - V1SubjectAccessReviewFluent fluent; + public V1SubjectAccessReviewBuilder(V1SubjectAccessReviewFluent fluent,V1SubjectAccessReview instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SubjectAccessReview build() { V1SubjectAccessReview buildable = new V1SubjectAccessReview(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1SubjectAccessReview build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java index 6b86a1423f..d8135a650f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1SubjectAccessReviewFluent> extends BaseFluent{ - public V1SubjectAccessReviewFluent() { - } - - public V1SubjectAccessReviewFluent(V1SubjectAccessReview instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1SubjectAccessReviewSpecBuilder spec; private V1SubjectAccessReviewStatusBuilder status; - - protected void copyInstance(V1SubjectAccessReview instance) { - instance = instance != null ? instance : new V1SubjectAccessReview(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1SubjectAccessReviewFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1SubjectAccessReviewFluent(V1SubjectAccessReview instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1SubjectAccessReviewSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1SubjectAccessReviewStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1SubjectAccessReview instance) { + instance = instance != null ? instance : new V1SubjectAccessReview(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1SubjectAccessReviewSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1SubjectAccessReviewSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1SubjectAccessReviewSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1SubjectAccessReviewSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1SubjectAccessReviewSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1SubjectAccessReviewSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1SubjectAccessReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1SubjectAccessReviewStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1SubjectAccessReviewStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SubjectAccessReviewStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SubjectAccessReviewStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1SubjectAccessReviewSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1SubjectAccessReviewSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1SubjectAccessReviewSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1SubjectAccessReviewStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1SubjectAccessReviewStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1SubjectAccessReviewFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1SubjectAccessReviewSpecFluent> implements Nested{ + + V1SubjectAccessReviewSpecBuilder builder; + SpecNested(V1SubjectAccessReviewSpec item) { this.builder = new V1SubjectAccessReviewSpecBuilder(this, item); } - V1SubjectAccessReviewSpecBuilder builder; - + public N and() { return (N) V1SubjectAccessReviewFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1SubjectAccessReviewStatusFluent> implements Nested{ + + V1SubjectAccessReviewStatusBuilder builder; + StatusNested(V1SubjectAccessReviewStatus item) { this.builder = new V1SubjectAccessReviewStatusBuilder(this, item); } - V1SubjectAccessReviewStatusBuilder builder; - + public N and() { return (N) V1SubjectAccessReviewFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java index 43b0b1e076..3d0b057a5e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SubjectAccessReviewSpecBuilder extends V1SubjectAccessReviewSpecFluent implements VisitableBuilder{ + + V1SubjectAccessReviewSpecFluent fluent; + public V1SubjectAccessReviewSpecBuilder() { this(new V1SubjectAccessReviewSpec()); } @@ -11,17 +14,16 @@ public V1SubjectAccessReviewSpecBuilder(V1SubjectAccessReviewSpecFluent fluen this(fluent, new V1SubjectAccessReviewSpec()); } - public V1SubjectAccessReviewSpecBuilder(V1SubjectAccessReviewSpecFluent fluent,V1SubjectAccessReviewSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SubjectAccessReviewSpecBuilder(V1SubjectAccessReviewSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1SubjectAccessReviewSpecFluent fluent; + public V1SubjectAccessReviewSpecBuilder(V1SubjectAccessReviewSpecFluent fluent,V1SubjectAccessReviewSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SubjectAccessReviewSpec build() { V1SubjectAccessReviewSpec buildable = new V1SubjectAccessReviewSpec(); buildable.setExtra(fluent.getExtra()); @@ -33,5 +35,4 @@ public V1SubjectAccessReviewSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java index ad718dd798..b3afa02085 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java @@ -1,56 +1,46 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; +import java.util.Collection; import java.util.LinkedHashMap; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; import java.util.List; -import java.util.Optional; -import java.util.Objects; -import java.util.Collection; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1SubjectAccessReviewSpecFluent> extends BaseFluent{ - public V1SubjectAccessReviewSpecFluent() { - } - - public V1SubjectAccessReviewSpecFluent(V1SubjectAccessReviewSpec instance) { - this.copyInstance(instance); - } + private Map> extra; private List groups; private V1NonResourceAttributesBuilder nonResourceAttributes; private V1ResourceAttributesBuilder resourceAttributes; private String uid; private String user; - - protected void copyInstance(V1SubjectAccessReviewSpec instance) { - instance = instance != null ? instance : new V1SubjectAccessReviewSpec(); - if (instance != null) { - this.withExtra(instance.getExtra()); - this.withGroups(instance.getGroups()); - this.withNonResourceAttributes(instance.getNonResourceAttributes()); - this.withResourceAttributes(instance.getResourceAttributes()); - this.withUid(instance.getUid()); - this.withUser(instance.getUser()); - } + + public V1SubjectAccessReviewSpecFluent() { } - public A addToExtra(String key,List value) { - if (this.extra == null && key != null && value != null) { - this.extra = new LinkedHashMap(); + public V1SubjectAccessReviewSpecFluent(V1SubjectAccessReviewSpec instance) { + this.copyInstance(instance); + } + + public A addAllToGroups(Collection items) { + if (this.groups == null) { + this.groups = new ArrayList(); } - if (key != null && value != null) { - this.extra.put(key, value); + for (String item : items) { + this.groups.add(item); } return (A) this; } @@ -65,47 +55,26 @@ public A addToExtra(Map> map) { return (A) this; } - public A removeFromExtra(String key) { - if (this.extra == null) { - return (A) this; + public A addToExtra(String key,List value) { + if (this.extra == null && key != null && value != null) { + this.extra = new LinkedHashMap(); } - if (key != null && this.extra != null) { - this.extra.remove(key); + if (key != null && value != null) { + this.extra.put(key, value); } return (A) this; } - public A removeFromExtra(Map> map) { - if (this.extra == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.extra != null) { - this.extra.remove(key); - } - } + public A addToGroups(String... items) { + if (this.groups == null) { + this.groups = new ArrayList(); } - return (A) this; - } - - public Map> getExtra() { - return this.extra; - } - - public A withExtra(Map> extra) { - if (extra == null) { - this.extra = null; - } else { - this.extra = new LinkedHashMap(extra); + for (String item : items) { + this.groups.add(item); } return (A) this; } - public boolean hasExtra() { - return this.extra != null; - } - public A addToGroups(int index,String item) { if (this.groups == null) { this.groups = new ArrayList(); @@ -114,64 +83,96 @@ public A addToGroups(int index,String item) { return (A) this; } - public A setToGroups(int index,String item) { - if (this.groups == null) { - this.groups = new ArrayList(); - } - this.groups.set(index, item); - return (A) this; + public V1NonResourceAttributes buildNonResourceAttributes() { + return this.nonResourceAttributes != null ? this.nonResourceAttributes.build() : null; } - public A addToGroups(String... items) { - if (this.groups == null) { - this.groups = new ArrayList(); - } - for (String item : items) { - this.groups.add(item); - } - return (A) this; + public V1ResourceAttributes buildResourceAttributes() { + return this.resourceAttributes != null ? this.resourceAttributes.build() : null; } - public A addAllToGroups(Collection items) { - if (this.groups == null) { - this.groups = new ArrayList(); - } - for (String item : items) { - this.groups.add(item); + protected void copyInstance(V1SubjectAccessReviewSpec instance) { + instance = instance != null ? instance : new V1SubjectAccessReviewSpec(); + if (instance != null) { + this.withExtra(instance.getExtra()); + this.withGroups(instance.getGroups()); + this.withNonResourceAttributes(instance.getNonResourceAttributes()); + this.withResourceAttributes(instance.getResourceAttributes()); + this.withUid(instance.getUid()); + this.withUser(instance.getUser()); } - return (A) this; } - public A removeFromGroups(String... items) { - if (this.groups == null) { - return (A) this; - } - for (String item : items) { - this.groups.remove(item); - } - return (A) this; + public NonResourceAttributesNested editNonResourceAttributes() { + return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(null)); } - public A removeAllFromGroups(Collection items) { - if (this.groups == null) { - return (A) this; + public NonResourceAttributesNested editOrNewNonResourceAttributes() { + return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(new V1NonResourceAttributesBuilder().build())); + } + + public NonResourceAttributesNested editOrNewNonResourceAttributesLike(V1NonResourceAttributes item) { + return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(item)); + } + + public ResourceAttributesNested editOrNewResourceAttributes() { + return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(new V1ResourceAttributesBuilder().build())); + } + + public ResourceAttributesNested editOrNewResourceAttributesLike(V1ResourceAttributes item) { + return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(item)); + } + + public ResourceAttributesNested editResourceAttributes() { + return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.groups.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1SubjectAccessReviewSpecFluent that = (V1SubjectAccessReviewSpecFluent) o; + if (!(Objects.equals(extra, that.extra))) { + return false; + } + if (!(Objects.equals(groups, that.groups))) { + return false; + } + if (!(Objects.equals(nonResourceAttributes, that.nonResourceAttributes))) { + return false; + } + if (!(Objects.equals(resourceAttributes, that.resourceAttributes))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + return true; } - public List getGroups() { - return this.groups; + public Map> getExtra() { + return this.extra; + } + + public String getFirstGroup() { + return this.groups.get(0); } public String getGroup(int index) { return this.groups.get(index); } - public String getFirstGroup() { - return this.groups.get(0); + public List getGroups() { + return this.groups; } public String getLastGroup() { @@ -187,184 +188,101 @@ public String getMatchingGroup(Predicate predicate) { return null; } - public boolean hasMatchingGroup(Predicate predicate) { - for (String item : groups) { - if (predicate.test(item)) { - return true; - } - } - return false; + public String getUid() { + return this.uid; } - public A withGroups(List groups) { - if (groups != null) { - this.groups = new ArrayList(); - for (String item : groups) { - this.addToGroups(item); - } - } else { - this.groups = null; - } - return (A) this; + public String getUser() { + return this.user; } - public A withGroups(String... groups) { - if (this.groups != null) { - this.groups.clear(); - _visitables.remove("groups"); - } - if (groups != null) { - for (String item : groups) { - this.addToGroups(item); - } - } - return (A) this; + public boolean hasExtra() { + return this.extra != null; } public boolean hasGroups() { return this.groups != null && !(this.groups.isEmpty()); } - public V1NonResourceAttributes buildNonResourceAttributes() { - return this.nonResourceAttributes != null ? this.nonResourceAttributes.build() : null; - } - - public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { - this._visitables.remove("nonResourceAttributes"); - if (nonResourceAttributes != null) { - this.nonResourceAttributes = new V1NonResourceAttributesBuilder(nonResourceAttributes); - this._visitables.get("nonResourceAttributes").add(this.nonResourceAttributes); - } else { - this.nonResourceAttributes = null; - this._visitables.get("nonResourceAttributes").remove(this.nonResourceAttributes); - } - return (A) this; + public boolean hasMatchingGroup(Predicate predicate) { + for (String item : groups) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasNonResourceAttributes() { return this.nonResourceAttributes != null; } - public NonResourceAttributesNested withNewNonResourceAttributes() { - return new NonResourceAttributesNested(null); - } - - public NonResourceAttributesNested withNewNonResourceAttributesLike(V1NonResourceAttributes item) { - return new NonResourceAttributesNested(item); - } - - public NonResourceAttributesNested editNonResourceAttributes() { - return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(null)); - } - - public NonResourceAttributesNested editOrNewNonResourceAttributes() { - return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(new V1NonResourceAttributesBuilder().build())); - } - - public NonResourceAttributesNested editOrNewNonResourceAttributesLike(V1NonResourceAttributes item) { - return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(item)); - } - - public V1ResourceAttributes buildResourceAttributes() { - return this.resourceAttributes != null ? this.resourceAttributes.build() : null; - } - - public A withResourceAttributes(V1ResourceAttributes resourceAttributes) { - this._visitables.remove("resourceAttributes"); - if (resourceAttributes != null) { - this.resourceAttributes = new V1ResourceAttributesBuilder(resourceAttributes); - this._visitables.get("resourceAttributes").add(this.resourceAttributes); - } else { - this.resourceAttributes = null; - this._visitables.get("resourceAttributes").remove(this.resourceAttributes); - } - return (A) this; - } - public boolean hasResourceAttributes() { return this.resourceAttributes != null; } - public ResourceAttributesNested withNewResourceAttributes() { - return new ResourceAttributesNested(null); - } - - public ResourceAttributesNested withNewResourceAttributesLike(V1ResourceAttributes item) { - return new ResourceAttributesNested(item); - } - - public ResourceAttributesNested editResourceAttributes() { - return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(null)); - } - - public ResourceAttributesNested editOrNewResourceAttributes() { - return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(new V1ResourceAttributesBuilder().build())); - } - - public ResourceAttributesNested editOrNewResourceAttributesLike(V1ResourceAttributes item) { - return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(item)); - } - - public String getUid() { - return this.uid; - } - - public A withUid(String uid) { - this.uid = uid; - return (A) this; - } - public boolean hasUid() { return this.uid != null; } - public String getUser() { - return this.user; - } - - public A withUser(String user) { - this.user = user; - return (A) this; - } - public boolean hasUser() { return this.user != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; + public int hashCode() { + return Objects.hash(extra, groups, nonResourceAttributes, resourceAttributes, uid, user); + } + + public A removeAllFromGroups(Collection items) { + if (this.groups == null) { + return (A) this; } - if (!(super.equals(o))) { - return false; + for (String item : items) { + this.groups.remove(item); } - V1SubjectAccessReviewSpecFluent that = (V1SubjectAccessReviewSpecFluent) o; - if (!(Objects.equals(extra, that.extra))) { - return false; + return (A) this; + } + + public A removeFromExtra(String key) { + if (this.extra == null) { + return (A) this; } - if (!(Objects.equals(groups, that.groups))) { - return false; + if (key != null && this.extra != null) { + this.extra.remove(key); } - if (!(Objects.equals(nonResourceAttributes, that.nonResourceAttributes))) { - return false; + return (A) this; + } + + public A removeFromExtra(Map> map) { + if (this.extra == null) { + return (A) this; } - if (!(Objects.equals(resourceAttributes, that.resourceAttributes))) { - return false; + if (map != null) { + for (Object key : map.keySet()) { + if (this.extra != null) { + this.extra.remove(key); + } + } } - if (!(Objects.equals(uid, that.uid))) { - return false; + return (A) this; + } + + public A removeFromGroups(String... items) { + if (this.groups == null) { + return (A) this; } - if (!(Objects.equals(user, that.user))) { - return false; + for (String item : items) { + this.groups.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(extra, groups, nonResourceAttributes, resourceAttributes, uid, user); + public A setToGroups(int index,String item) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + this.groups.set(index, item); + return (A) this; } public String toString() { @@ -402,12 +320,98 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withExtra(Map> extra) { + if (extra == null) { + this.extra = null; + } else { + this.extra = new LinkedHashMap(extra); + } + return (A) this; + } + + public A withGroups(List groups) { + if (groups != null) { + this.groups = new ArrayList(); + for (String item : groups) { + this.addToGroups(item); + } + } else { + this.groups = null; + } + return (A) this; + } + + public A withGroups(String... groups) { + if (this.groups != null) { + this.groups.clear(); + _visitables.remove("groups"); + } + if (groups != null) { + for (String item : groups) { + this.addToGroups(item); + } + } + return (A) this; + } + + public NonResourceAttributesNested withNewNonResourceAttributes() { + return new NonResourceAttributesNested(null); + } + + public NonResourceAttributesNested withNewNonResourceAttributesLike(V1NonResourceAttributes item) { + return new NonResourceAttributesNested(item); + } + + public ResourceAttributesNested withNewResourceAttributes() { + return new ResourceAttributesNested(null); + } + + public ResourceAttributesNested withNewResourceAttributesLike(V1ResourceAttributes item) { + return new ResourceAttributesNested(item); + } + + public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { + this._visitables.remove("nonResourceAttributes"); + if (nonResourceAttributes != null) { + this.nonResourceAttributes = new V1NonResourceAttributesBuilder(nonResourceAttributes); + this._visitables.get("nonResourceAttributes").add(this.nonResourceAttributes); + } else { + this.nonResourceAttributes = null; + this._visitables.get("nonResourceAttributes").remove(this.nonResourceAttributes); + } + return (A) this; + } + + public A withResourceAttributes(V1ResourceAttributes resourceAttributes) { + this._visitables.remove("resourceAttributes"); + if (resourceAttributes != null) { + this.resourceAttributes = new V1ResourceAttributesBuilder(resourceAttributes); + this._visitables.get("resourceAttributes").add(this.resourceAttributes); + } else { + this.resourceAttributes = null; + this._visitables.get("resourceAttributes").remove(this.resourceAttributes); + } + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + + public A withUser(String user) { + this.user = user; + return (A) this; + } public class NonResourceAttributesNested extends V1NonResourceAttributesFluent> implements Nested{ + + V1NonResourceAttributesBuilder builder; + NonResourceAttributesNested(V1NonResourceAttributes item) { this.builder = new V1NonResourceAttributesBuilder(this, item); } - V1NonResourceAttributesBuilder builder; - + public N and() { return (N) V1SubjectAccessReviewSpecFluent.this.withNonResourceAttributes(builder.build()); } @@ -416,14 +420,15 @@ public N endNonResourceAttributes() { return and(); } - } public class ResourceAttributesNested extends V1ResourceAttributesFluent> implements Nested{ + + V1ResourceAttributesBuilder builder; + ResourceAttributesNested(V1ResourceAttributes item) { this.builder = new V1ResourceAttributesBuilder(this, item); } - V1ResourceAttributesBuilder builder; - + public N and() { return (N) V1SubjectAccessReviewSpecFluent.this.withResourceAttributes(builder.build()); } @@ -432,7 +437,5 @@ public N endResourceAttributes() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java index b33b1b2d26..d61594761d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SubjectAccessReviewStatusBuilder extends V1SubjectAccessReviewStatusFluent implements VisitableBuilder{ + + V1SubjectAccessReviewStatusFluent fluent; + public V1SubjectAccessReviewStatusBuilder() { this(new V1SubjectAccessReviewStatus()); } @@ -11,17 +14,16 @@ public V1SubjectAccessReviewStatusBuilder(V1SubjectAccessReviewStatusFluent f this(fluent, new V1SubjectAccessReviewStatus()); } - public V1SubjectAccessReviewStatusBuilder(V1SubjectAccessReviewStatusFluent fluent,V1SubjectAccessReviewStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SubjectAccessReviewStatusBuilder(V1SubjectAccessReviewStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1SubjectAccessReviewStatusFluent fluent; + public V1SubjectAccessReviewStatusBuilder(V1SubjectAccessReviewStatusFluent fluent,V1SubjectAccessReviewStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SubjectAccessReviewStatus build() { V1SubjectAccessReviewStatus buildable = new V1SubjectAccessReviewStatus(); buildable.setAllowed(fluent.getAllowed()); @@ -31,5 +33,4 @@ public V1SubjectAccessReviewStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java index 3033f2771b..3d008fc449 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1SubjectAccessReviewStatusFluent> extends BaseFluent{ + + private Boolean allowed; + private Boolean denied; + private String evaluationError; + private String reason; + public V1SubjectAccessReviewStatusFluent() { } public V1SubjectAccessReviewStatusFluent(V1SubjectAccessReviewStatus instance) { this.copyInstance(instance); } - private Boolean allowed; - private Boolean denied; - private String evaluationError; - private String reason; - + protected void copyInstance(V1SubjectAccessReviewStatus instance) { instance = instance != null ? instance : new V1SubjectAccessReviewStatus(); if (instance != null) { @@ -34,58 +36,6 @@ protected void copyInstance(V1SubjectAccessReviewStatus instance) { } } - public Boolean getAllowed() { - return this.allowed; - } - - public A withAllowed(Boolean allowed) { - this.allowed = allowed; - return (A) this; - } - - public boolean hasAllowed() { - return this.allowed != null; - } - - public Boolean getDenied() { - return this.denied; - } - - public A withDenied(Boolean denied) { - this.denied = denied; - return (A) this; - } - - public boolean hasDenied() { - return this.denied != null; - } - - public String getEvaluationError() { - return this.evaluationError; - } - - public A withEvaluationError(String evaluationError) { - this.evaluationError = evaluationError; - return (A) this; - } - - public boolean hasEvaluationError() { - return this.evaluationError != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -112,6 +62,38 @@ public boolean equals(Object o) { return true; } + public Boolean getAllowed() { + return this.allowed; + } + + public Boolean getDenied() { + return this.denied; + } + + public String getEvaluationError() { + return this.evaluationError; + } + + public String getReason() { + return this.reason; + } + + public boolean hasAllowed() { + return this.allowed != null; + } + + public boolean hasDenied() { + return this.denied != null; + } + + public boolean hasEvaluationError() { + return this.evaluationError != null; + } + + public boolean hasReason() { + return this.reason != null; + } + public int hashCode() { return Objects.hash(allowed, denied, evaluationError, reason); } @@ -146,9 +128,28 @@ public A withAllowed() { return withAllowed(true); } + public A withAllowed(Boolean allowed) { + this.allowed = allowed; + return (A) this; + } + public A withDenied() { return withDenied(true); } - + public A withDenied(Boolean denied) { + this.denied = denied; + return (A) this; + } + + public A withEvaluationError(String evaluationError) { + this.evaluationError = evaluationError; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java index 8a2806f6e2..c507c6891b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SubjectRulesReviewStatusBuilder extends V1SubjectRulesReviewStatusFluent implements VisitableBuilder{ + + V1SubjectRulesReviewStatusFluent fluent; + public V1SubjectRulesReviewStatusBuilder() { this(new V1SubjectRulesReviewStatus()); } @@ -11,17 +14,16 @@ public V1SubjectRulesReviewStatusBuilder(V1SubjectRulesReviewStatusFluent flu this(fluent, new V1SubjectRulesReviewStatus()); } - public V1SubjectRulesReviewStatusBuilder(V1SubjectRulesReviewStatusFluent fluent,V1SubjectRulesReviewStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SubjectRulesReviewStatusBuilder(V1SubjectRulesReviewStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1SubjectRulesReviewStatusFluent fluent; + public V1SubjectRulesReviewStatusBuilder(V1SubjectRulesReviewStatusFluent fluent,V1SubjectRulesReviewStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SubjectRulesReviewStatus build() { V1SubjectRulesReviewStatus buildable = new V1SubjectRulesReviewStatus(); buildable.setEvaluationError(fluent.getEvaluationError()); @@ -31,5 +33,4 @@ public V1SubjectRulesReviewStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java index 3c238db207..ac63b69c84 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java @@ -1,88 +1,91 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Boolean; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1SubjectRulesReviewStatusFluent> extends BaseFluent{ + + private String evaluationError; + private Boolean incomplete; + private ArrayList nonResourceRules; + private ArrayList resourceRules; + public V1SubjectRulesReviewStatusFluent() { } public V1SubjectRulesReviewStatusFluent(V1SubjectRulesReviewStatus instance) { this.copyInstance(instance); } - private String evaluationError; - private Boolean incomplete; - private ArrayList nonResourceRules; - private ArrayList resourceRules; - - protected void copyInstance(V1SubjectRulesReviewStatus instance) { - instance = instance != null ? instance : new V1SubjectRulesReviewStatus(); - if (instance != null) { - this.withEvaluationError(instance.getEvaluationError()); - this.withIncomplete(instance.getIncomplete()); - this.withNonResourceRules(instance.getNonResourceRules()); - this.withResourceRules(instance.getResourceRules()); + + public A addAllToNonResourceRules(Collection items) { + if (this.nonResourceRules == null) { + this.nonResourceRules = new ArrayList(); } + for (V1NonResourceRule item : items) { + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); + _visitables.get("nonResourceRules").add(builder); + this.nonResourceRules.add(builder); + } + return (A) this; } - public String getEvaluationError() { - return this.evaluationError; - } - - public A withEvaluationError(String evaluationError) { - this.evaluationError = evaluationError; + public A addAllToResourceRules(Collection items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + for (V1ResourceRule item : items) { + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } return (A) this; } - public boolean hasEvaluationError() { - return this.evaluationError != null; + public NonResourceRulesNested addNewNonResourceRule() { + return new NonResourceRulesNested(-1, null); } - public Boolean getIncomplete() { - return this.incomplete; + public NonResourceRulesNested addNewNonResourceRuleLike(V1NonResourceRule item) { + return new NonResourceRulesNested(-1, item); } - public A withIncomplete(Boolean incomplete) { - this.incomplete = incomplete; - return (A) this; + public ResourceRulesNested addNewResourceRule() { + return new ResourceRulesNested(-1, null); } - public boolean hasIncomplete() { - return this.incomplete != null; + public ResourceRulesNested addNewResourceRuleLike(V1ResourceRule item) { + return new ResourceRulesNested(-1, item); } - public A addToNonResourceRules(int index,V1NonResourceRule item) { + public A addToNonResourceRules(V1NonResourceRule... items) { if (this.nonResourceRules == null) { this.nonResourceRules = new ArrayList(); } - V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - if (index < 0 || index >= nonResourceRules.size()) { - _visitables.get("nonResourceRules").add(builder); - nonResourceRules.add(builder); - } else { + for (V1NonResourceRule item : items) { + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); _visitables.get("nonResourceRules").add(builder); - nonResourceRules.add(index, builder); + this.nonResourceRules.add(builder); } return (A) this; } - public A setToNonResourceRules(int index,V1NonResourceRule item) { + public A addToNonResourceRules(int index,V1NonResourceRule item) { if (this.nonResourceRules == null) { this.nonResourceRules = new ArrayList(); } @@ -92,91 +95,54 @@ public A setToNonResourceRules(int index,V1NonResourceRule item) { nonResourceRules.add(builder); } else { _visitables.get("nonResourceRules").add(builder); - nonResourceRules.set(index, builder); - } - return (A) this; - } - - public A addToNonResourceRules(V1NonResourceRule... items) { - if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); - } - for (V1NonResourceRule item : items) { - V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - _visitables.get("nonResourceRules").add(builder); - this.nonResourceRules.add(builder); - } - return (A) this; - } - - public A addAllToNonResourceRules(Collection items) { - if (this.nonResourceRules == null) { - this.nonResourceRules = new ArrayList(); - } - for (V1NonResourceRule item : items) { - V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - _visitables.get("nonResourceRules").add(builder); - this.nonResourceRules.add(builder); - } - return (A) this; - } - - public A removeFromNonResourceRules(V1NonResourceRule... items) { - if (this.nonResourceRules == null) { - return (A) this; - } - for (V1NonResourceRule item : items) { - V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - _visitables.get("nonResourceRules").remove(builder); - this.nonResourceRules.remove(builder); + nonResourceRules.add(index, builder); } return (A) this; } - public A removeAllFromNonResourceRules(Collection items) { - if (this.nonResourceRules == null) { - return (A) this; + public A addToResourceRules(V1ResourceRule... items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); } - for (V1NonResourceRule item : items) { - V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - _visitables.get("nonResourceRules").remove(builder); - this.nonResourceRules.remove(builder); + for (V1ResourceRule item : items) { + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); } return (A) this; } - public A removeMatchingFromNonResourceRules(Predicate predicate) { - if (nonResourceRules == null) { - return (A) this; + public A addToResourceRules(int index,V1ResourceRule item) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); } - Iterator each = nonResourceRules.iterator(); - List visitables = _visitables.get("nonResourceRules"); - while (each.hasNext()) { - V1NonResourceRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.add(index, builder); } return (A) this; } - public List buildNonResourceRules() { - return this.nonResourceRules != null ? build(nonResourceRules) : null; - } - - public V1NonResourceRule buildNonResourceRule(int index) { - return this.nonResourceRules.get(index).build(); - } - public V1NonResourceRule buildFirstNonResourceRule() { return this.nonResourceRules.get(0).build(); } + public V1ResourceRule buildFirstResourceRule() { + return this.resourceRules.get(0).build(); + } + public V1NonResourceRule buildLastNonResourceRule() { return this.nonResourceRules.get(nonResourceRules.size() - 1).build(); } + public V1ResourceRule buildLastResourceRule() { + return this.resourceRules.get(resourceRules.size() - 1).build(); + } + public V1NonResourceRule buildMatchingNonResourceRule(Predicate predicate) { for (V1NonResourceRuleBuilder item : nonResourceRules) { if (predicate.test(item)) { @@ -186,64 +152,39 @@ public V1NonResourceRule buildMatchingNonResourceRule(Predicate predicate) { - for (V1NonResourceRuleBuilder item : nonResourceRules) { + public V1ResourceRule buildMatchingResourceRule(Predicate predicate) { + for (V1ResourceRuleBuilder item : resourceRules) { if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withNonResourceRules(List nonResourceRules) { - if (this.nonResourceRules != null) { - this._visitables.get("nonResourceRules").clear(); - } - if (nonResourceRules != null) { - this.nonResourceRules = new ArrayList(); - for (V1NonResourceRule item : nonResourceRules) { - this.addToNonResourceRules(item); + return item.build(); } - } else { - this.nonResourceRules = null; - } - return (A) this; - } - - public A withNonResourceRules(V1NonResourceRule... nonResourceRules) { - if (this.nonResourceRules != null) { - this.nonResourceRules.clear(); - _visitables.remove("nonResourceRules"); - } - if (nonResourceRules != null) { - for (V1NonResourceRule item : nonResourceRules) { - this.addToNonResourceRules(item); } - } - return (A) this; + return null; } - public boolean hasNonResourceRules() { - return this.nonResourceRules != null && !(this.nonResourceRules.isEmpty()); + public V1NonResourceRule buildNonResourceRule(int index) { + return this.nonResourceRules.get(index).build(); } - public NonResourceRulesNested addNewNonResourceRule() { - return new NonResourceRulesNested(-1, null); + public List buildNonResourceRules() { + return this.nonResourceRules != null ? build(nonResourceRules) : null; } - public NonResourceRulesNested addNewNonResourceRuleLike(V1NonResourceRule item) { - return new NonResourceRulesNested(-1, item); + public V1ResourceRule buildResourceRule(int index) { + return this.resourceRules.get(index).build(); } - public NonResourceRulesNested setNewNonResourceRuleLike(int index,V1NonResourceRule item) { - return new NonResourceRulesNested(index, item); + public List buildResourceRules() { + return this.resourceRules != null ? build(resourceRules) : null; } - public NonResourceRulesNested editNonResourceRule(int index) { - if (index <= nonResourceRules.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "nonResourceRules")); + protected void copyInstance(V1SubjectRulesReviewStatus instance) { + instance = instance != null ? instance : new V1SubjectRulesReviewStatus(); + if (instance != null) { + this.withEvaluationError(instance.getEvaluationError()); + this.withIncomplete(instance.getIncomplete()); + this.withNonResourceRules(instance.getNonResourceRules()); + this.withResourceRules(instance.getResourceRules()); } - return this.setNewNonResourceRuleLike(index, this.buildNonResourceRule(index)); } public NonResourceRulesNested editFirstNonResourceRule() { @@ -253,6 +194,13 @@ public NonResourceRulesNested editFirstNonResourceRule() { return this.setNewNonResourceRuleLike(0, this.buildNonResourceRule(0)); } + public ResourceRulesNested editFirstResourceRule() { + if (resourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); + } + public NonResourceRulesNested editLastNonResourceRule() { int index = nonResourceRules.size() - 1; if (index < 0) { @@ -261,6 +209,14 @@ public NonResourceRulesNested editLastNonResourceRule() { return this.setNewNonResourceRuleLike(index, this.buildNonResourceRule(index)); } + public ResourceRulesNested editLastResourceRule() { + int index = resourceRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + } + public NonResourceRulesNested editMatchingNonResourceRule(Predicate predicate) { int index = -1; for (int i = 0;i < nonResourceRules.size();i++) { @@ -275,123 +231,83 @@ public NonResourceRulesNested editMatchingNonResourceRule(Predicate editMatchingResourceRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceRules.size();i++) { + if (predicate.test(resourceRules.get(i))) { + index = i; + break; + } } - V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); - } else { - _visitables.get("resourceRules").add(builder); - resourceRules.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceRules")); } - return (A) this; + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } - public A setToResourceRules(int index,V1ResourceRule item) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); - } - V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); - } else { - _visitables.get("resourceRules").add(builder); - resourceRules.set(index, builder); + public NonResourceRulesNested editNonResourceRule(int index) { + if (nonResourceRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "nonResourceRules")); } - return (A) this; + return this.setNewNonResourceRuleLike(index, this.buildNonResourceRule(index)); } - public A addToResourceRules(V1ResourceRule... items) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); - } - for (V1ResourceRule item : items) { - V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - _visitables.get("resourceRules").add(builder); - this.resourceRules.add(builder); + public ResourceRulesNested editResourceRule(int index) { + if (resourceRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); } - return (A) this; + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } - public A addAllToResourceRules(Collection items) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); - } - for (V1ResourceRule item : items) { - V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - _visitables.get("resourceRules").add(builder); - this.resourceRules.add(builder); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; - } - - public A removeFromResourceRules(V1ResourceRule... items) { - if (this.resourceRules == null) { - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; } - for (V1ResourceRule item : items) { - V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - _visitables.get("resourceRules").remove(builder); - this.resourceRules.remove(builder); + if (!(super.equals(o))) { + return false; } - return (A) this; - } - - public A removeAllFromResourceRules(Collection items) { - if (this.resourceRules == null) { - return (A) this; + V1SubjectRulesReviewStatusFluent that = (V1SubjectRulesReviewStatusFluent) o; + if (!(Objects.equals(evaluationError, that.evaluationError))) { + return false; } - for (V1ResourceRule item : items) { - V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - _visitables.get("resourceRules").remove(builder); - this.resourceRules.remove(builder); + if (!(Objects.equals(incomplete, that.incomplete))) { + return false; } - return (A) this; - } - - public A removeMatchingFromResourceRules(Predicate predicate) { - if (resourceRules == null) { - return (A) this; + if (!(Objects.equals(nonResourceRules, that.nonResourceRules))) { + return false; } - Iterator each = resourceRules.iterator(); - List visitables = _visitables.get("resourceRules"); - while (each.hasNext()) { - V1ResourceRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (!(Objects.equals(resourceRules, that.resourceRules))) { + return false; } - return (A) this; + return true; } - public List buildResourceRules() { - return this.resourceRules != null ? build(resourceRules) : null; + public String getEvaluationError() { + return this.evaluationError; } - public V1ResourceRule buildResourceRule(int index) { - return this.resourceRules.get(index).build(); + public Boolean getIncomplete() { + return this.incomplete; } - public V1ResourceRule buildFirstResourceRule() { - return this.resourceRules.get(0).build(); + public boolean hasEvaluationError() { + return this.evaluationError != null; } - public V1ResourceRule buildLastResourceRule() { - return this.resourceRules.get(resourceRules.size() - 1).build(); + public boolean hasIncomplete() { + return this.incomplete != null; } - public V1ResourceRule buildMatchingResourceRule(Predicate predicate) { - for (V1ResourceRuleBuilder item : resourceRules) { + public boolean hasMatchingNonResourceRule(Predicate predicate) { + for (V1NonResourceRuleBuilder item : nonResourceRules) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingResourceRule(Predicate predicate) { @@ -403,114 +319,134 @@ public boolean hasMatchingResourceRule(Predicate predicat return false; } - public A withResourceRules(List resourceRules) { - if (this.resourceRules != null) { - this._visitables.get("resourceRules").clear(); - } - if (resourceRules != null) { - this.resourceRules = new ArrayList(); - for (V1ResourceRule item : resourceRules) { - this.addToResourceRules(item); - } - } else { - this.resourceRules = null; - } - return (A) this; - } - - public A withResourceRules(V1ResourceRule... resourceRules) { - if (this.resourceRules != null) { - this.resourceRules.clear(); - _visitables.remove("resourceRules"); - } - if (resourceRules != null) { - for (V1ResourceRule item : resourceRules) { - this.addToResourceRules(item); - } - } - return (A) this; + public boolean hasNonResourceRules() { + return this.nonResourceRules != null && !(this.nonResourceRules.isEmpty()); } public boolean hasResourceRules() { return this.resourceRules != null && !(this.resourceRules.isEmpty()); } - public ResourceRulesNested addNewResourceRule() { - return new ResourceRulesNested(-1, null); - } - - public ResourceRulesNested addNewResourceRuleLike(V1ResourceRule item) { - return new ResourceRulesNested(-1, item); - } - - public ResourceRulesNested setNewResourceRuleLike(int index,V1ResourceRule item) { - return new ResourceRulesNested(index, item); + public int hashCode() { + return Objects.hash(evaluationError, incomplete, nonResourceRules, resourceRules); } - public ResourceRulesNested editResourceRule(int index) { - if (index <= resourceRules.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); + public A removeAllFromNonResourceRules(Collection items) { + if (this.nonResourceRules == null) { + return (A) this; } - return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + for (V1NonResourceRule item : items) { + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); + _visitables.get("nonResourceRules").remove(builder); + this.nonResourceRules.remove(builder); + } + return (A) this; } - public ResourceRulesNested editFirstResourceRule() { - if (resourceRules.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); + public A removeAllFromResourceRules(Collection items) { + if (this.resourceRules == null) { + return (A) this; } - return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); + for (V1ResourceRule item : items) { + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); + } + return (A) this; } - public ResourceRulesNested editLastResourceRule() { - int index = resourceRules.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + public A removeFromNonResourceRules(V1NonResourceRule... items) { + if (this.nonResourceRules == null) { + return (A) this; } - return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + for (V1NonResourceRule item : items) { + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); + _visitables.get("nonResourceRules").remove(builder); + this.nonResourceRules.remove(builder); + } + return (A) this; } - public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { - int index = -1; - for (int i = 0;i < resourceRules.size();i++) { - if (predicate.test(resourceRules.get(i))) { - index = i; - break; - } + public A removeFromResourceRules(V1ResourceRule... items) { + if (this.resourceRules == null) { + return (A) this; } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceRules")); + for (V1ResourceRule item : items) { + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); } - return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; + public A removeMatchingFromNonResourceRules(Predicate predicate) { + if (nonResourceRules == null) { + return (A) this; } - if (!(super.equals(o))) { - return false; + Iterator each = nonResourceRules.iterator(); + List visitables = _visitables.get("nonResourceRules"); + while (each.hasNext()) { + V1NonResourceRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - V1SubjectRulesReviewStatusFluent that = (V1SubjectRulesReviewStatusFluent) o; - if (!(Objects.equals(evaluationError, that.evaluationError))) { - return false; + return (A) this; + } + + public A removeMatchingFromResourceRules(Predicate predicate) { + if (resourceRules == null) { + return (A) this; } - if (!(Objects.equals(incomplete, that.incomplete))) { - return false; + Iterator each = resourceRules.iterator(); + List visitables = _visitables.get("resourceRules"); + while (each.hasNext()) { + V1ResourceRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - if (!(Objects.equals(nonResourceRules, that.nonResourceRules))) { - return false; + return (A) this; + } + + public NonResourceRulesNested setNewNonResourceRuleLike(int index,V1NonResourceRule item) { + return new NonResourceRulesNested(index, item); + } + + public ResourceRulesNested setNewResourceRuleLike(int index,V1ResourceRule item) { + return new ResourceRulesNested(index, item); + } + + public A setToNonResourceRules(int index,V1NonResourceRule item) { + if (this.nonResourceRules == null) { + this.nonResourceRules = new ArrayList(); } - if (!(Objects.equals(resourceRules, that.resourceRules))) { - return false; + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); + if (index < 0 || index >= nonResourceRules.size()) { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.add(builder); + } else { + _visitables.get("nonResourceRules").add(builder); + nonResourceRules.set(index, builder); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(evaluationError, incomplete, nonResourceRules, resourceRules); + public A setToResourceRules(int index,V1ResourceRule item) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.set(index, builder); + } + return (A) this; } public String toString() { @@ -539,17 +475,85 @@ public String toString() { return sb.toString(); } + public A withEvaluationError(String evaluationError) { + this.evaluationError = evaluationError; + return (A) this; + } + public A withIncomplete() { return withIncomplete(true); } + + public A withIncomplete(Boolean incomplete) { + this.incomplete = incomplete; + return (A) this; + } + + public A withNonResourceRules(List nonResourceRules) { + if (this.nonResourceRules != null) { + this._visitables.get("nonResourceRules").clear(); + } + if (nonResourceRules != null) { + this.nonResourceRules = new ArrayList(); + for (V1NonResourceRule item : nonResourceRules) { + this.addToNonResourceRules(item); + } + } else { + this.nonResourceRules = null; + } + return (A) this; + } + + public A withNonResourceRules(V1NonResourceRule... nonResourceRules) { + if (this.nonResourceRules != null) { + this.nonResourceRules.clear(); + _visitables.remove("nonResourceRules"); + } + if (nonResourceRules != null) { + for (V1NonResourceRule item : nonResourceRules) { + this.addToNonResourceRules(item); + } + } + return (A) this; + } + + public A withResourceRules(List resourceRules) { + if (this.resourceRules != null) { + this._visitables.get("resourceRules").clear(); + } + if (resourceRules != null) { + this.resourceRules = new ArrayList(); + for (V1ResourceRule item : resourceRules) { + this.addToResourceRules(item); + } + } else { + this.resourceRules = null; + } + return (A) this; + } + + public A withResourceRules(V1ResourceRule... resourceRules) { + if (this.resourceRules != null) { + this.resourceRules.clear(); + _visitables.remove("resourceRules"); + } + if (resourceRules != null) { + for (V1ResourceRule item : resourceRules) { + this.addToResourceRules(item); + } + } + return (A) this; + } public class NonResourceRulesNested extends V1NonResourceRuleFluent> implements Nested{ + + V1NonResourceRuleBuilder builder; + int index; + NonResourceRulesNested(int index,V1NonResourceRule item) { this.index = index; this.builder = new V1NonResourceRuleBuilder(this, item); } - V1NonResourceRuleBuilder builder; - int index; - + public N and() { return (N) V1SubjectRulesReviewStatusFluent.this.setToNonResourceRules(index, builder.build()); } @@ -558,16 +562,17 @@ public N endNonResourceRule() { return and(); } - } public class ResourceRulesNested extends V1ResourceRuleFluent> implements Nested{ + + V1ResourceRuleBuilder builder; + int index; + ResourceRulesNested(int index,V1ResourceRule item) { this.index = index; this.builder = new V1ResourceRuleBuilder(this, item); } - V1ResourceRuleBuilder builder; - int index; - + public N and() { return (N) V1SubjectRulesReviewStatusFluent.this.setToResourceRules(index, builder.build()); } @@ -576,7 +581,5 @@ public N endResourceRule() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyBuilder.java index eae1ff2c43..b7552030ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SuccessPolicyBuilder extends V1SuccessPolicyFluent implements VisitableBuilder{ + + V1SuccessPolicyFluent fluent; + public V1SuccessPolicyBuilder() { this(new V1SuccessPolicy()); } @@ -11,22 +14,20 @@ public V1SuccessPolicyBuilder(V1SuccessPolicyFluent fluent) { this(fluent, new V1SuccessPolicy()); } - public V1SuccessPolicyBuilder(V1SuccessPolicyFluent fluent,V1SuccessPolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SuccessPolicyBuilder(V1SuccessPolicy instance) { this.fluent = this; this.copyInstance(instance); } - V1SuccessPolicyFluent fluent; + public V1SuccessPolicyBuilder(V1SuccessPolicyFluent fluent,V1SuccessPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SuccessPolicy build() { V1SuccessPolicy buildable = new V1SuccessPolicy(); buildable.setRules(fluent.buildRules()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyFluent.java index 3f1f194606..7a540a121e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyFluent.java @@ -1,67 +1,52 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1SuccessPolicyFluent> extends BaseFluent{ + + private ArrayList rules; + public V1SuccessPolicyFluent() { } public V1SuccessPolicyFluent(V1SuccessPolicy instance) { this.copyInstance(instance); } - private ArrayList rules; - - protected void copyInstance(V1SuccessPolicy instance) { - instance = instance != null ? instance : new V1SuccessPolicy(); - if (instance != null) { - this.withRules(instance.getRules()); - } - } - - public A addToRules(int index,V1SuccessPolicyRule item) { + + public A addAllToRules(Collection items) { if (this.rules == null) { this.rules = new ArrayList(); } - V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); - } else { + for (V1SuccessPolicyRule item : items) { + V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); _visitables.get("rules").add(builder); - rules.add(index, builder); + this.rules.add(builder); } return (A) this; } - public A setToRules(int index,V1SuccessPolicyRule item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); - } else { - _visitables.get("rules").add(builder); - rules.set(index, builder); - } - return (A) this; + public RulesNested addNewRule() { + return new RulesNested(-1, null); + } + + public RulesNested addNewRuleLike(V1SuccessPolicyRule item) { + return new RulesNested(-1, item); } public A addToRules(V1SuccessPolicyRule... items) { @@ -76,66 +61,21 @@ public A addToRules(V1SuccessPolicyRule... items) { return (A) this; } - public A addAllToRules(Collection items) { + public A addToRules(int index,V1SuccessPolicyRule item) { if (this.rules == null) { this.rules = new ArrayList(); } - for (V1SuccessPolicyRule item : items) { - V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); + V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); + if (index < 0 || index >= rules.size()) { _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; - } - - public A removeFromRules(V1SuccessPolicyRule... items) { - if (this.rules == null) { - return (A) this; - } - for (V1SuccessPolicyRule item : items) { - V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); - _visitables.get("rules").remove(builder); - this.rules.remove(builder); - } - return (A) this; - } - - public A removeAllFromRules(Collection items) { - if (this.rules == null) { - return (A) this; - } - for (V1SuccessPolicyRule item : items) { - V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); - _visitables.get("rules").remove(builder); - this.rules.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromRules(Predicate predicate) { - if (rules == null) { - return (A) this; - } - Iterator each = rules.iterator(); - List visitables = _visitables.get("rules"); - while (each.hasNext()) { - V1SuccessPolicyRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); } return (A) this; } - public List buildRules() { - return this.rules != null ? build(rules) : null; - } - - public V1SuccessPolicyRule buildRule(int index) { - return this.rules.get(index).build(); - } - public V1SuccessPolicyRule buildFirstRule() { return this.rules.get(0).build(); } @@ -153,64 +93,19 @@ public V1SuccessPolicyRule buildMatchingRule(Predicate predicate) { - for (V1SuccessPolicyRuleBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRules(List rules) { - if (this.rules != null) { - this._visitables.get("rules").clear(); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1SuccessPolicyRule item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; - } - return (A) this; - } - - public A withRules(V1SuccessPolicyRule... rules) { - if (this.rules != null) { - this.rules.clear(); - _visitables.remove("rules"); - } - if (rules != null) { - for (V1SuccessPolicyRule item : rules) { - this.addToRules(item); - } - } - return (A) this; - } - - public boolean hasRules() { - return this.rules != null && !(this.rules.isEmpty()); - } - - public RulesNested addNewRule() { - return new RulesNested(-1, null); - } - - public RulesNested addNewRuleLike(V1SuccessPolicyRule item) { - return new RulesNested(-1, item); + public V1SuccessPolicyRule buildRule(int index) { + return this.rules.get(index).build(); } - public RulesNested setNewRuleLike(int index,V1SuccessPolicyRule item) { - return new RulesNested(index, item); + public List buildRules() { + return this.rules != null ? build(rules) : null; } - public RulesNested editRule(int index) { - if (index <= rules.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + protected void copyInstance(V1SuccessPolicy instance) { + instance = instance != null ? instance : new V1SuccessPolicy(); + if (instance != null) { + this.withRules(instance.getRules()); } - return this.setNewRuleLike(index, this.buildRule(index)); } public RulesNested editFirstRule() { @@ -242,6 +137,13 @@ public RulesNested editMatchingRule(Predicate pre return this.setNewRuleLike(index, this.buildRule(index)); } + public RulesNested editRule(int index) { + if (rules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -259,10 +161,82 @@ public boolean equals(Object o) { return true; } + public boolean hasMatchingRule(Predicate predicate) { + for (V1SuccessPolicyRuleBuilder item : rules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRules() { + return this.rules != null && !(this.rules.isEmpty()); + } + public int hashCode() { return Objects.hash(rules); } + public A removeAllFromRules(Collection items) { + if (this.rules == null) { + return (A) this; + } + for (V1SuccessPolicyRule item : items) { + V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; + } + + public A removeFromRules(V1SuccessPolicyRule... items) { + if (this.rules == null) { + return (A) this; + } + for (V1SuccessPolicyRule item : items) { + V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromRules(Predicate predicate) { + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); + while (each.hasNext()) { + V1SuccessPolicyRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public RulesNested setNewRuleLike(int index,V1SuccessPolicyRule item) { + return new RulesNested(index, item); + } + + public A setToRules(int index,V1SuccessPolicyRule item) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -273,14 +247,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withRules(List rules) { + if (this.rules != null) { + this._visitables.get("rules").clear(); + } + if (rules != null) { + this.rules = new ArrayList(); + for (V1SuccessPolicyRule item : rules) { + this.addToRules(item); + } + } else { + this.rules = null; + } + return (A) this; + } + + public A withRules(V1SuccessPolicyRule... rules) { + if (this.rules != null) { + this.rules.clear(); + _visitables.remove("rules"); + } + if (rules != null) { + for (V1SuccessPolicyRule item : rules) { + this.addToRules(item); + } + } + return (A) this; + } public class RulesNested extends V1SuccessPolicyRuleFluent> implements Nested{ + + V1SuccessPolicyRuleBuilder builder; + int index; + RulesNested(int index,V1SuccessPolicyRule item) { this.index = index; this.builder = new V1SuccessPolicyRuleBuilder(this, item); } - V1SuccessPolicyRuleBuilder builder; - int index; - + public N and() { return (N) V1SuccessPolicyFluent.this.setToRules(index, builder.build()); } @@ -289,7 +293,5 @@ public N endRule() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleBuilder.java index ebbd483805..b4c5c2425a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SuccessPolicyRuleBuilder extends V1SuccessPolicyRuleFluent implements VisitableBuilder{ + + V1SuccessPolicyRuleFluent fluent; + public V1SuccessPolicyRuleBuilder() { this(new V1SuccessPolicyRule()); } @@ -11,17 +14,16 @@ public V1SuccessPolicyRuleBuilder(V1SuccessPolicyRuleFluent fluent) { this(fluent, new V1SuccessPolicyRule()); } - public V1SuccessPolicyRuleBuilder(V1SuccessPolicyRuleFluent fluent,V1SuccessPolicyRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SuccessPolicyRuleBuilder(V1SuccessPolicyRule instance) { this.fluent = this; this.copyInstance(instance); } - V1SuccessPolicyRuleFluent fluent; + public V1SuccessPolicyRuleBuilder(V1SuccessPolicyRuleFluent fluent,V1SuccessPolicyRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SuccessPolicyRule build() { V1SuccessPolicyRule buildable = new V1SuccessPolicyRule(); buildable.setSucceededCount(fluent.getSucceededCount()); @@ -29,5 +31,4 @@ public V1SuccessPolicyRule build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleFluent.java index 9674aaa0f7..90d88e68de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1SuccessPolicyRuleFluent> extends BaseFluent{ + + private Integer succeededCount; + private String succeededIndexes; + public V1SuccessPolicyRuleFluent() { } public V1SuccessPolicyRuleFluent(V1SuccessPolicyRule instance) { this.copyInstance(instance); } - private Integer succeededCount; - private String succeededIndexes; - + protected void copyInstance(V1SuccessPolicyRule instance) { instance = instance != null ? instance : new V1SuccessPolicyRule(); if (instance != null) { @@ -30,32 +32,6 @@ protected void copyInstance(V1SuccessPolicyRule instance) { } } - public Integer getSucceededCount() { - return this.succeededCount; - } - - public A withSucceededCount(Integer succeededCount) { - this.succeededCount = succeededCount; - return (A) this; - } - - public boolean hasSucceededCount() { - return this.succeededCount != null; - } - - public String getSucceededIndexes() { - return this.succeededIndexes; - } - - public A withSucceededIndexes(String succeededIndexes) { - this.succeededIndexes = succeededIndexes; - return (A) this; - } - - public boolean hasSucceededIndexes() { - return this.succeededIndexes != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -76,6 +52,22 @@ public boolean equals(Object o) { return true; } + public Integer getSucceededCount() { + return this.succeededCount; + } + + public String getSucceededIndexes() { + return this.succeededIndexes; + } + + public boolean hasSucceededCount() { + return this.succeededCount != null; + } + + public boolean hasSucceededIndexes() { + return this.succeededIndexes != null; + } + public int hashCode() { return Objects.hash(succeededCount, succeededIndexes); } @@ -96,5 +88,14 @@ public String toString() { return sb.toString(); } - + public A withSucceededCount(Integer succeededCount) { + this.succeededCount = succeededCount; + return (A) this; + } + + public A withSucceededIndexes(String succeededIndexes) { + this.succeededIndexes = succeededIndexes; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java index 6605a1cef1..2fc45fad58 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1SysctlBuilder extends V1SysctlFluent implements VisitableBuilder{ + + V1SysctlFluent fluent; + public V1SysctlBuilder() { this(new V1Sysctl()); } @@ -11,17 +14,16 @@ public V1SysctlBuilder(V1SysctlFluent fluent) { this(fluent, new V1Sysctl()); } - public V1SysctlBuilder(V1SysctlFluent fluent,V1Sysctl instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SysctlBuilder(V1Sysctl instance) { this.fluent = this; this.copyInstance(instance); } - V1SysctlFluent fluent; + public V1SysctlBuilder(V1SysctlFluent fluent,V1Sysctl instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Sysctl build() { V1Sysctl buildable = new V1Sysctl(); buildable.setName(fluent.getName()); @@ -29,5 +31,4 @@ public V1Sysctl build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java index f4dae997f9..e230b4bae7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1SysctlFluent> extends BaseFluent{ + + private String name; + private String value; + public V1SysctlFluent() { } public V1SysctlFluent(V1Sysctl instance) { this.copyInstance(instance); } - private String name; - private String value; - + protected void copyInstance(V1Sysctl instance) { instance = instance != null ? instance : new V1Sysctl(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1Sysctl instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getValue() { - return this.value; - } - - public A withValue(String value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public String getValue() { + return this.value; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(name, value); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java index 9e5eb08537..bad8cf8914 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1TCPSocketActionBuilder extends V1TCPSocketActionFluent implements VisitableBuilder{ + + V1TCPSocketActionFluent fluent; + public V1TCPSocketActionBuilder() { this(new V1TCPSocketAction()); } @@ -11,17 +14,16 @@ public V1TCPSocketActionBuilder(V1TCPSocketActionFluent fluent) { this(fluent, new V1TCPSocketAction()); } - public V1TCPSocketActionBuilder(V1TCPSocketActionFluent fluent,V1TCPSocketAction instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TCPSocketActionBuilder(V1TCPSocketAction instance) { this.fluent = this; this.copyInstance(instance); } - V1TCPSocketActionFluent fluent; + public V1TCPSocketActionBuilder(V1TCPSocketActionFluent fluent,V1TCPSocketAction instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TCPSocketAction build() { V1TCPSocketAction buildable = new V1TCPSocketAction(); buildable.setHost(fluent.getHost()); @@ -29,5 +31,4 @@ public V1TCPSocketAction build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java index ef59846d1a..10c88c9b49 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; import io.kubernetes.client.custom.IntOrString; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1TCPSocketActionFluent> extends BaseFluent{ + + private String host; + private IntOrString port; + public V1TCPSocketActionFluent() { } public V1TCPSocketActionFluent(V1TCPSocketAction instance) { this.copyInstance(instance); } - private String host; - private IntOrString port; - + protected void copyInstance(V1TCPSocketAction instance) { instance = instance != null ? instance : new V1TCPSocketAction(); if (instance != null) { @@ -30,40 +32,6 @@ protected void copyInstance(V1TCPSocketAction instance) { } } - public String getHost() { - return this.host; - } - - public A withHost(String host) { - this.host = host; - return (A) this; - } - - public boolean hasHost() { - return this.host != null; - } - - public IntOrString getPort() { - return this.port; - } - - public A withPort(IntOrString port) { - this.port = port; - return (A) this; - } - - public boolean hasPort() { - return this.port != null; - } - - public A withNewPort(int value) { - return (A) this.withPort(new IntOrString(value)); - } - - public A withNewPort(String value) { - return (A) this.withPort(new IntOrString(value)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -84,6 +52,22 @@ public boolean equals(Object o) { return true; } + public String getHost() { + return this.host; + } + + public IntOrString getPort() { + return this.port; + } + + public boolean hasHost() { + return this.host != null; + } + + public boolean hasPort() { + return this.port != null; + } + public int hashCode() { return Objects.hash(host, port); } @@ -104,5 +88,22 @@ public String toString() { return sb.toString(); } - + public A withHost(String host) { + this.host = host; + return (A) this; + } + + public A withNewPort(int value) { + return (A) this.withPort(new IntOrString(value)); + } + + public A withNewPort(String value) { + return (A) this.withPort(new IntOrString(value)); + } + + public A withPort(IntOrString port) { + this.port = port; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java index 12ed35098b..266a955f19 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1TaintBuilder extends V1TaintFluent implements VisitableBuilder{ + + V1TaintFluent fluent; + public V1TaintBuilder() { this(new V1Taint()); } @@ -11,17 +14,16 @@ public V1TaintBuilder(V1TaintFluent fluent) { this(fluent, new V1Taint()); } - public V1TaintBuilder(V1TaintFluent fluent,V1Taint instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TaintBuilder(V1Taint instance) { this.fluent = this; this.copyInstance(instance); } - V1TaintFluent fluent; + public V1TaintBuilder(V1TaintFluent fluent,V1Taint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Taint build() { V1Taint buildable = new V1Taint(); buildable.setEffect(fluent.getEffect()); @@ -31,5 +33,4 @@ public V1Taint build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java index f0d8802691..1b16ed7567 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1TaintFluent> extends BaseFluent{ + + private String effect; + private String key; + private OffsetDateTime timeAdded; + private String value; + public V1TaintFluent() { } public V1TaintFluent(V1Taint instance) { this.copyInstance(instance); } - private String effect; - private String key; - private OffsetDateTime timeAdded; - private String value; - + protected void copyInstance(V1Taint instance) { instance = instance != null ? instance : new V1Taint(); if (instance != null) { @@ -34,58 +36,6 @@ protected void copyInstance(V1Taint instance) { } } - public String getEffect() { - return this.effect; - } - - public A withEffect(String effect) { - this.effect = effect; - return (A) this; - } - - public boolean hasEffect() { - return this.effect != null; - } - - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public OffsetDateTime getTimeAdded() { - return this.timeAdded; - } - - public A withTimeAdded(OffsetDateTime timeAdded) { - this.timeAdded = timeAdded; - return (A) this; - } - - public boolean hasTimeAdded() { - return this.timeAdded != null; - } - - public String getValue() { - return this.value; - } - - public A withValue(String value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -112,6 +62,38 @@ public boolean equals(Object o) { return true; } + public String getEffect() { + return this.effect; + } + + public String getKey() { + return this.key; + } + + public OffsetDateTime getTimeAdded() { + return this.timeAdded; + } + + public String getValue() { + return this.value; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasTimeAdded() { + return this.timeAdded != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(effect, key, timeAdded, value); } @@ -142,5 +124,24 @@ public String toString() { return sb.toString(); } - + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withTimeAdded(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java index 9ca8b80a27..2dc3074c81 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1TokenRequestSpecBuilder extends V1TokenRequestSpecFluent implements VisitableBuilder{ + + V1TokenRequestSpecFluent fluent; + public V1TokenRequestSpecBuilder() { this(new V1TokenRequestSpec()); } @@ -11,17 +14,16 @@ public V1TokenRequestSpecBuilder(V1TokenRequestSpecFluent fluent) { this(fluent, new V1TokenRequestSpec()); } - public V1TokenRequestSpecBuilder(V1TokenRequestSpecFluent fluent,V1TokenRequestSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TokenRequestSpecBuilder(V1TokenRequestSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1TokenRequestSpecFluent fluent; + public V1TokenRequestSpecBuilder(V1TokenRequestSpecFluent fluent,V1TokenRequestSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TokenRequestSpec build() { V1TokenRequestSpec buildable = new V1TokenRequestSpec(); buildable.setAudiences(fluent.getAudiences()); @@ -30,5 +32,4 @@ public V1TokenRequestSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java index da06b56c0e..801bf1d2f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java @@ -1,56 +1,43 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Long; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1TokenRequestSpecFluent> extends BaseFluent{ + + private List audiences; + private V1BoundObjectReferenceBuilder boundObjectRef; + private Long expirationSeconds; + public V1TokenRequestSpecFluent() { } public V1TokenRequestSpecFluent(V1TokenRequestSpec instance) { this.copyInstance(instance); } - private List audiences; - private V1BoundObjectReferenceBuilder boundObjectRef; - private Long expirationSeconds; - - protected void copyInstance(V1TokenRequestSpec instance) { - instance = instance != null ? instance : new V1TokenRequestSpec(); - if (instance != null) { - this.withAudiences(instance.getAudiences()); - this.withBoundObjectRef(instance.getBoundObjectRef()); - this.withExpirationSeconds(instance.getExpirationSeconds()); - } - } - - public A addToAudiences(int index,String item) { + + public A addAllToAudiences(Collection items) { if (this.audiences == null) { this.audiences = new ArrayList(); } - this.audiences.add(index, item); - return (A) this; - } - - public A setToAudiences(int index,String item) { - if (this.audiences == null) { - this.audiences = new ArrayList(); + for (String item : items) { + this.audiences.add(item); } - this.audiences.set(index, item); return (A) this; } @@ -64,42 +51,72 @@ public A addToAudiences(String... items) { return (A) this; } - public A addAllToAudiences(Collection items) { + public A addToAudiences(int index,String item) { if (this.audiences == null) { this.audiences = new ArrayList(); } - for (String item : items) { - this.audiences.add(item); - } + this.audiences.add(index, item); return (A) this; } - public A removeFromAudiences(String... items) { - if (this.audiences == null) { - return (A) this; - } - for (String item : items) { - this.audiences.remove(item); + public V1BoundObjectReference buildBoundObjectRef() { + return this.boundObjectRef != null ? this.boundObjectRef.build() : null; + } + + protected void copyInstance(V1TokenRequestSpec instance) { + instance = instance != null ? instance : new V1TokenRequestSpec(); + if (instance != null) { + this.withAudiences(instance.getAudiences()); + this.withBoundObjectRef(instance.getBoundObjectRef()); + this.withExpirationSeconds(instance.getExpirationSeconds()); } - return (A) this; } - public A removeAllFromAudiences(Collection items) { - if (this.audiences == null) { - return (A) this; + public BoundObjectRefNested editBoundObjectRef() { + return this.withNewBoundObjectRefLike(Optional.ofNullable(this.buildBoundObjectRef()).orElse(null)); + } + + public BoundObjectRefNested editOrNewBoundObjectRef() { + return this.withNewBoundObjectRefLike(Optional.ofNullable(this.buildBoundObjectRef()).orElse(new V1BoundObjectReferenceBuilder().build())); + } + + public BoundObjectRefNested editOrNewBoundObjectRefLike(V1BoundObjectReference item) { + return this.withNewBoundObjectRefLike(Optional.ofNullable(this.buildBoundObjectRef()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.audiences.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1TokenRequestSpecFluent that = (V1TokenRequestSpecFluent) o; + if (!(Objects.equals(audiences, that.audiences))) { + return false; + } + if (!(Objects.equals(boundObjectRef, that.boundObjectRef))) { + return false; + } + if (!(Objects.equals(expirationSeconds, that.expirationSeconds))) { + return false; + } + return true; + } + + public String getAudience(int index) { + return this.audiences.get(index); } public List getAudiences() { return this.audiences; } - public String getAudience(int index) { - return this.audiences.get(index); + public Long getExpirationSeconds() { + return this.expirationSeconds; } public String getFirstAudience() { @@ -119,6 +136,18 @@ public String getMatchingAudience(Predicate predicate) { return null; } + public boolean hasAudiences() { + return this.audiences != null && !(this.audiences.isEmpty()); + } + + public boolean hasBoundObjectRef() { + return this.boundObjectRef != null; + } + + public boolean hasExpirationSeconds() { + return this.expirationSeconds != null; + } + public boolean hasMatchingAudience(Predicate predicate) { for (String item : audiences) { if (predicate.test(item)) { @@ -128,6 +157,59 @@ public boolean hasMatchingAudience(Predicate predicate) { return false; } + public int hashCode() { + return Objects.hash(audiences, boundObjectRef, expirationSeconds); + } + + public A removeAllFromAudiences(Collection items) { + if (this.audiences == null) { + return (A) this; + } + for (String item : items) { + this.audiences.remove(item); + } + return (A) this; + } + + public A removeFromAudiences(String... items) { + if (this.audiences == null) { + return (A) this; + } + for (String item : items) { + this.audiences.remove(item); + } + return (A) this; + } + + public A setToAudiences(int index,String item) { + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + this.audiences.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(audiences == null) && !(audiences.isEmpty())) { + sb.append("audiences:"); + sb.append(audiences); + sb.append(","); + } + if (!(boundObjectRef == null)) { + sb.append("boundObjectRef:"); + sb.append(boundObjectRef); + sb.append(","); + } + if (!(expirationSeconds == null)) { + sb.append("expirationSeconds:"); + sb.append(expirationSeconds); + } + sb.append("}"); + return sb.toString(); + } + public A withAudiences(List audiences) { if (audiences != null) { this.audiences = new ArrayList(); @@ -153,14 +235,6 @@ public A withAudiences(String... audiences) { return (A) this; } - public boolean hasAudiences() { - return this.audiences != null && !(this.audiences.isEmpty()); - } - - public V1BoundObjectReference buildBoundObjectRef() { - return this.boundObjectRef != null ? this.boundObjectRef.build() : null; - } - public A withBoundObjectRef(V1BoundObjectReference boundObjectRef) { this._visitables.remove("boundObjectRef"); if (boundObjectRef != null) { @@ -173,8 +247,9 @@ public A withBoundObjectRef(V1BoundObjectReference boundObjectRef) { return (A) this; } - public boolean hasBoundObjectRef() { - return this.boundObjectRef != null; + public A withExpirationSeconds(Long expirationSeconds) { + this.expirationSeconds = expirationSeconds; + return (A) this; } public BoundObjectRefNested withNewBoundObjectRef() { @@ -184,85 +259,14 @@ public BoundObjectRefNested withNewBoundObjectRef() { public BoundObjectRefNested withNewBoundObjectRefLike(V1BoundObjectReference item) { return new BoundObjectRefNested(item); } + public class BoundObjectRefNested extends V1BoundObjectReferenceFluent> implements Nested{ - public BoundObjectRefNested editBoundObjectRef() { - return this.withNewBoundObjectRefLike(Optional.ofNullable(this.buildBoundObjectRef()).orElse(null)); - } - - public BoundObjectRefNested editOrNewBoundObjectRef() { - return this.withNewBoundObjectRefLike(Optional.ofNullable(this.buildBoundObjectRef()).orElse(new V1BoundObjectReferenceBuilder().build())); - } - - public BoundObjectRefNested editOrNewBoundObjectRefLike(V1BoundObjectReference item) { - return this.withNewBoundObjectRefLike(Optional.ofNullable(this.buildBoundObjectRef()).orElse(item)); - } - - public Long getExpirationSeconds() { - return this.expirationSeconds; - } - - public A withExpirationSeconds(Long expirationSeconds) { - this.expirationSeconds = expirationSeconds; - return (A) this; - } - - public boolean hasExpirationSeconds() { - return this.expirationSeconds != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1TokenRequestSpecFluent that = (V1TokenRequestSpecFluent) o; - if (!(Objects.equals(audiences, that.audiences))) { - return false; - } - if (!(Objects.equals(boundObjectRef, that.boundObjectRef))) { - return false; - } - if (!(Objects.equals(expirationSeconds, that.expirationSeconds))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(audiences, boundObjectRef, expirationSeconds); - } + V1BoundObjectReferenceBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(audiences == null) && !(audiences.isEmpty())) { - sb.append("audiences:"); - sb.append(audiences); - sb.append(","); - } - if (!(boundObjectRef == null)) { - sb.append("boundObjectRef:"); - sb.append(boundObjectRef); - sb.append(","); - } - if (!(expirationSeconds == null)) { - sb.append("expirationSeconds:"); - sb.append(expirationSeconds); - } - sb.append("}"); - return sb.toString(); - } - public class BoundObjectRefNested extends V1BoundObjectReferenceFluent> implements Nested{ BoundObjectRefNested(V1BoundObjectReference item) { this.builder = new V1BoundObjectReferenceBuilder(this, item); } - V1BoundObjectReferenceBuilder builder; - + public N and() { return (N) V1TokenRequestSpecFluent.this.withBoundObjectRef(builder.build()); } @@ -271,7 +275,5 @@ public N endBoundObjectRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java index 1239c55cd6..68fe31ea57 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1TokenRequestStatusBuilder extends V1TokenRequestStatusFluent implements VisitableBuilder{ + + V1TokenRequestStatusFluent fluent; + public V1TokenRequestStatusBuilder() { this(new V1TokenRequestStatus()); } @@ -11,17 +14,16 @@ public V1TokenRequestStatusBuilder(V1TokenRequestStatusFluent fluent) { this(fluent, new V1TokenRequestStatus()); } - public V1TokenRequestStatusBuilder(V1TokenRequestStatusFluent fluent,V1TokenRequestStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TokenRequestStatusBuilder(V1TokenRequestStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1TokenRequestStatusFluent fluent; + public V1TokenRequestStatusBuilder(V1TokenRequestStatusFluent fluent,V1TokenRequestStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TokenRequestStatus build() { V1TokenRequestStatus buildable = new V1TokenRequestStatus(); buildable.setExpirationTimestamp(fluent.getExpirationTimestamp()); @@ -29,5 +31,4 @@ public V1TokenRequestStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java index cbc55c1554..3a402f13a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1TokenRequestStatusFluent> extends BaseFluent{ + + private OffsetDateTime expirationTimestamp; + private String token; + public V1TokenRequestStatusFluent() { } public V1TokenRequestStatusFluent(V1TokenRequestStatus instance) { this.copyInstance(instance); } - private OffsetDateTime expirationTimestamp; - private String token; - + protected void copyInstance(V1TokenRequestStatus instance) { instance = instance != null ? instance : new V1TokenRequestStatus(); if (instance != null) { @@ -30,32 +32,6 @@ protected void copyInstance(V1TokenRequestStatus instance) { } } - public OffsetDateTime getExpirationTimestamp() { - return this.expirationTimestamp; - } - - public A withExpirationTimestamp(OffsetDateTime expirationTimestamp) { - this.expirationTimestamp = expirationTimestamp; - return (A) this; - } - - public boolean hasExpirationTimestamp() { - return this.expirationTimestamp != null; - } - - public String getToken() { - return this.token; - } - - public A withToken(String token) { - this.token = token; - return (A) this; - } - - public boolean hasToken() { - return this.token != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -76,6 +52,22 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getExpirationTimestamp() { + return this.expirationTimestamp; + } + + public String getToken() { + return this.token; + } + + public boolean hasExpirationTimestamp() { + return this.expirationTimestamp != null; + } + + public boolean hasToken() { + return this.token != null; + } + public int hashCode() { return Objects.hash(expirationTimestamp, token); } @@ -96,5 +88,14 @@ public String toString() { return sb.toString(); } - + public A withExpirationTimestamp(OffsetDateTime expirationTimestamp) { + this.expirationTimestamp = expirationTimestamp; + return (A) this; + } + + public A withToken(String token) { + this.token = token; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java index 0d3913ec23..de5c95ee08 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1TokenReviewBuilder extends V1TokenReviewFluent implements VisitableBuilder{ + + V1TokenReviewFluent fluent; + public V1TokenReviewBuilder() { this(new V1TokenReview()); } @@ -11,17 +14,16 @@ public V1TokenReviewBuilder(V1TokenReviewFluent fluent) { this(fluent, new V1TokenReview()); } - public V1TokenReviewBuilder(V1TokenReviewFluent fluent,V1TokenReview instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TokenReviewBuilder(V1TokenReview instance) { this.fluent = this; this.copyInstance(instance); } - V1TokenReviewFluent fluent; + public V1TokenReviewBuilder(V1TokenReviewFluent fluent,V1TokenReview instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TokenReview build() { V1TokenReview buildable = new V1TokenReview(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1TokenReview build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java index cd83a07bda..0e8f53314d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1TokenReviewFluent> extends BaseFluent{ - public V1TokenReviewFluent() { - } - - public V1TokenReviewFluent(V1TokenReview instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1TokenReviewSpecBuilder spec; private V1TokenReviewStatusBuilder status; - - protected void copyInstance(V1TokenReview instance) { - instance = instance != null ? instance : new V1TokenReview(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1TokenReviewFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1TokenReviewFluent(V1TokenReview instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1TokenReviewSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1TokenReviewStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1TokenReview instance) { + instance = instance != null ? instance : new V1TokenReview(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1TokenReviewSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1TokenReviewSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1TokenReviewSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1TokenReviewSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1TokenReviewSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1TokenReviewSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1TokenReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1TokenReviewStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1TokenReviewStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1TokenReviewStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1TokenReviewStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1TokenReviewStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1TokenReviewStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1TokenReviewStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1TokenReviewSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1TokenReviewStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1TokenReviewSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1TokenReviewSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1TokenReviewStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1TokenReviewStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1TokenReviewFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1TokenReviewSpecFluent> implements Nested{ + + V1TokenReviewSpecBuilder builder; + SpecNested(V1TokenReviewSpec item) { this.builder = new V1TokenReviewSpecBuilder(this, item); } - V1TokenReviewSpecBuilder builder; - + public N and() { return (N) V1TokenReviewFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1TokenReviewStatusFluent> implements Nested{ + + V1TokenReviewStatusBuilder builder; + StatusNested(V1TokenReviewStatus item) { this.builder = new V1TokenReviewStatusBuilder(this, item); } - V1TokenReviewStatusBuilder builder; - + public N and() { return (N) V1TokenReviewFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java index 154f32e055..08f06095dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1TokenReviewSpecBuilder extends V1TokenReviewSpecFluent implements VisitableBuilder{ + + V1TokenReviewSpecFluent fluent; + public V1TokenReviewSpecBuilder() { this(new V1TokenReviewSpec()); } @@ -11,17 +14,16 @@ public V1TokenReviewSpecBuilder(V1TokenReviewSpecFluent fluent) { this(fluent, new V1TokenReviewSpec()); } - public V1TokenReviewSpecBuilder(V1TokenReviewSpecFluent fluent,V1TokenReviewSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TokenReviewSpecBuilder(V1TokenReviewSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1TokenReviewSpecFluent fluent; + public V1TokenReviewSpecBuilder(V1TokenReviewSpecFluent fluent,V1TokenReviewSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TokenReviewSpec build() { V1TokenReviewSpec buildable = new V1TokenReviewSpec(); buildable.setAudiences(fluent.getAudiences()); @@ -29,5 +31,4 @@ public V1TokenReviewSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java index 8f4f9eb8e5..58e422bcbf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,36 +16,24 @@ */ @SuppressWarnings("unchecked") public class V1TokenReviewSpecFluent> extends BaseFluent{ + + private List audiences; + private String token; + public V1TokenReviewSpecFluent() { } public V1TokenReviewSpecFluent(V1TokenReviewSpec instance) { this.copyInstance(instance); } - private List audiences; - private String token; - - protected void copyInstance(V1TokenReviewSpec instance) { - instance = instance != null ? instance : new V1TokenReviewSpec(); - if (instance != null) { - this.withAudiences(instance.getAudiences()); - this.withToken(instance.getToken()); - } - } - - public A addToAudiences(int index,String item) { + + public A addAllToAudiences(Collection items) { if (this.audiences == null) { this.audiences = new ArrayList(); } - this.audiences.add(index, item); - return (A) this; - } - - public A setToAudiences(int index,String item) { - if (this.audiences == null) { - this.audiences = new ArrayList(); + for (String item : items) { + this.audiences.add(item); } - this.audiences.set(index, item); return (A) this; } @@ -59,44 +47,50 @@ public A addToAudiences(String... items) { return (A) this; } - public A addAllToAudiences(Collection items) { + public A addToAudiences(int index,String item) { if (this.audiences == null) { this.audiences = new ArrayList(); } - for (String item : items) { - this.audiences.add(item); - } + this.audiences.add(index, item); return (A) this; } - public A removeFromAudiences(String... items) { - if (this.audiences == null) { - return (A) this; - } - for (String item : items) { - this.audiences.remove(item); + protected void copyInstance(V1TokenReviewSpec instance) { + instance = instance != null ? instance : new V1TokenReviewSpec(); + if (instance != null) { + this.withAudiences(instance.getAudiences()); + this.withToken(instance.getToken()); } - return (A) this; } - public A removeAllFromAudiences(Collection items) { - if (this.audiences == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.audiences.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public List getAudiences() { - return this.audiences; + if (!(super.equals(o))) { + return false; + } + V1TokenReviewSpecFluent that = (V1TokenReviewSpecFluent) o; + if (!(Objects.equals(audiences, that.audiences))) { + return false; + } + if (!(Objects.equals(token, that.token))) { + return false; + } + return true; } public String getAudience(int index) { return this.audiences.get(index); } + public List getAudiences() { + return this.audiences; + } + public String getFirstAudience() { return this.audiences.get(0); } @@ -114,6 +108,14 @@ public String getMatchingAudience(Predicate predicate) { return null; } + public String getToken() { + return this.token; + } + + public boolean hasAudiences() { + return this.audiences != null && !(this.audiences.isEmpty()); + } + public boolean hasMatchingAudience(Predicate predicate) { for (String item : audiences) { if (predicate.test(item)) { @@ -123,6 +125,58 @@ public boolean hasMatchingAudience(Predicate predicate) { return false; } + public boolean hasToken() { + return this.token != null; + } + + public int hashCode() { + return Objects.hash(audiences, token); + } + + public A removeAllFromAudiences(Collection items) { + if (this.audiences == null) { + return (A) this; + } + for (String item : items) { + this.audiences.remove(item); + } + return (A) this; + } + + public A removeFromAudiences(String... items) { + if (this.audiences == null) { + return (A) this; + } + for (String item : items) { + this.audiences.remove(item); + } + return (A) this; + } + + public A setToAudiences(int index,String item) { + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + this.audiences.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(audiences == null) && !(audiences.isEmpty())) { + sb.append("audiences:"); + sb.append(audiences); + sb.append(","); + } + if (!(token == null)) { + sb.append("token:"); + sb.append(token); + } + sb.append("}"); + return sb.toString(); + } + public A withAudiences(List audiences) { if (audiences != null) { this.audiences = new ArrayList(); @@ -148,62 +202,9 @@ public A withAudiences(String... audiences) { return (A) this; } - public boolean hasAudiences() { - return this.audiences != null && !(this.audiences.isEmpty()); - } - - public String getToken() { - return this.token; - } - public A withToken(String token) { this.token = token; return (A) this; } - public boolean hasToken() { - return this.token != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1TokenReviewSpecFluent that = (V1TokenReviewSpecFluent) o; - if (!(Objects.equals(audiences, that.audiences))) { - return false; - } - if (!(Objects.equals(token, that.token))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(audiences, token); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(audiences == null) && !(audiences.isEmpty())) { - sb.append("audiences:"); - sb.append(audiences); - sb.append(","); - } - if (!(token == null)) { - sb.append("token:"); - sb.append(token); - } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java index 8598e9a438..5b5d77f78c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1TokenReviewStatusBuilder extends V1TokenReviewStatusFluent implements VisitableBuilder{ + + V1TokenReviewStatusFluent fluent; + public V1TokenReviewStatusBuilder() { this(new V1TokenReviewStatus()); } @@ -11,17 +14,16 @@ public V1TokenReviewStatusBuilder(V1TokenReviewStatusFluent fluent) { this(fluent, new V1TokenReviewStatus()); } - public V1TokenReviewStatusBuilder(V1TokenReviewStatusFluent fluent,V1TokenReviewStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TokenReviewStatusBuilder(V1TokenReviewStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1TokenReviewStatusFluent fluent; + public V1TokenReviewStatusBuilder(V1TokenReviewStatusFluent fluent,V1TokenReviewStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TokenReviewStatus build() { V1TokenReviewStatus buildable = new V1TokenReviewStatus(); buildable.setAudiences(fluent.getAudiences()); @@ -31,5 +33,4 @@ public V1TokenReviewStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java index fffe5a37c9..8867987742 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java @@ -1,58 +1,44 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1TokenReviewStatusFluent> extends BaseFluent{ - public V1TokenReviewStatusFluent() { - } - - public V1TokenReviewStatusFluent(V1TokenReviewStatus instance) { - this.copyInstance(instance); - } + private List audiences; private Boolean authenticated; private String error; private V1UserInfoBuilder user; - - protected void copyInstance(V1TokenReviewStatus instance) { - instance = instance != null ? instance : new V1TokenReviewStatus(); - if (instance != null) { - this.withAudiences(instance.getAudiences()); - this.withAuthenticated(instance.getAuthenticated()); - this.withError(instance.getError()); - this.withUser(instance.getUser()); - } + + public V1TokenReviewStatusFluent() { } - public A addToAudiences(int index,String item) { - if (this.audiences == null) { - this.audiences = new ArrayList(); - } - this.audiences.add(index, item); - return (A) this; + public V1TokenReviewStatusFluent(V1TokenReviewStatus instance) { + this.copyInstance(instance); } - - public A setToAudiences(int index,String item) { + + public A addAllToAudiences(Collection items) { if (this.audiences == null) { this.audiences = new ArrayList(); } - this.audiences.set(index, item); + for (String item : items) { + this.audiences.add(item); + } return (A) this; } @@ -66,42 +52,80 @@ public A addToAudiences(String... items) { return (A) this; } - public A addAllToAudiences(Collection items) { + public A addToAudiences(int index,String item) { if (this.audiences == null) { this.audiences = new ArrayList(); } - for (String item : items) { - this.audiences.add(item); - } + this.audiences.add(index, item); return (A) this; } - public A removeFromAudiences(String... items) { - if (this.audiences == null) { - return (A) this; - } - for (String item : items) { - this.audiences.remove(item); + public V1UserInfo buildUser() { + return this.user != null ? this.user.build() : null; + } + + protected void copyInstance(V1TokenReviewStatus instance) { + instance = instance != null ? instance : new V1TokenReviewStatus(); + if (instance != null) { + this.withAudiences(instance.getAudiences()); + this.withAuthenticated(instance.getAuthenticated()); + this.withError(instance.getError()); + this.withUser(instance.getUser()); } - return (A) this; } - public A removeAllFromAudiences(Collection items) { - if (this.audiences == null) { - return (A) this; + public UserNested editOrNewUser() { + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(new V1UserInfoBuilder().build())); + } + + public UserNested editOrNewUserLike(V1UserInfo item) { + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(item)); + } + + public UserNested editUser() { + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.audiences.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1TokenReviewStatusFluent that = (V1TokenReviewStatusFluent) o; + if (!(Objects.equals(audiences, that.audiences))) { + return false; + } + if (!(Objects.equals(authenticated, that.authenticated))) { + return false; + } + if (!(Objects.equals(error, that.error))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + return true; + } + + public String getAudience(int index) { + return this.audiences.get(index); } public List getAudiences() { return this.audiences; } - public String getAudience(int index) { - return this.audiences.get(index); + public Boolean getAuthenticated() { + return this.authenticated; + } + + public String getError() { + return this.error; } public String getFirstAudience() { @@ -121,6 +145,18 @@ public String getMatchingAudience(Predicate predicate) { return null; } + public boolean hasAudiences() { + return this.audiences != null && !(this.audiences.isEmpty()); + } + + public boolean hasAuthenticated() { + return this.authenticated != null; + } + + public boolean hasError() { + return this.error != null; + } + public boolean hasMatchingAudience(Predicate predicate) { for (String item : audiences) { if (predicate.test(item)) { @@ -130,6 +166,68 @@ public boolean hasMatchingAudience(Predicate predicate) { return false; } + public boolean hasUser() { + return this.user != null; + } + + public int hashCode() { + return Objects.hash(audiences, authenticated, error, user); + } + + public A removeAllFromAudiences(Collection items) { + if (this.audiences == null) { + return (A) this; + } + for (String item : items) { + this.audiences.remove(item); + } + return (A) this; + } + + public A removeFromAudiences(String... items) { + if (this.audiences == null) { + return (A) this; + } + for (String item : items) { + this.audiences.remove(item); + } + return (A) this; + } + + public A setToAudiences(int index,String item) { + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + this.audiences.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(audiences == null) && !(audiences.isEmpty())) { + sb.append("audiences:"); + sb.append(audiences); + sb.append(","); + } + if (!(authenticated == null)) { + sb.append("authenticated:"); + sb.append(authenticated); + sb.append(","); + } + if (!(error == null)) { + sb.append("error:"); + sb.append(error); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + } + sb.append("}"); + return sb.toString(); + } + public A withAudiences(List audiences) { if (audiences != null) { this.audiences = new ArrayList(); @@ -155,12 +253,8 @@ public A withAudiences(String... audiences) { return (A) this; } - public boolean hasAudiences() { - return this.audiences != null && !(this.audiences.isEmpty()); - } - - public Boolean getAuthenticated() { - return this.authenticated; + public A withAuthenticated() { + return withAuthenticated(true); } public A withAuthenticated(Boolean authenticated) { @@ -168,25 +262,17 @@ public A withAuthenticated(Boolean authenticated) { return (A) this; } - public boolean hasAuthenticated() { - return this.authenticated != null; - } - - public String getError() { - return this.error; - } - public A withError(String error) { this.error = error; return (A) this; } - public boolean hasError() { - return this.error != null; + public UserNested withNewUser() { + return new UserNested(null); } - public V1UserInfo buildUser() { - return this.user != null ? this.user.build() : null; + public UserNested withNewUserLike(V1UserInfo item) { + return new UserNested(item); } public A withUser(V1UserInfo user) { @@ -200,96 +286,14 @@ public A withUser(V1UserInfo user) { } return (A) this; } + public class UserNested extends V1UserInfoFluent> implements Nested{ - public boolean hasUser() { - return this.user != null; - } - - public UserNested withNewUser() { - return new UserNested(null); - } - - public UserNested withNewUserLike(V1UserInfo item) { - return new UserNested(item); - } - - public UserNested editUser() { - return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(null)); - } - - public UserNested editOrNewUser() { - return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(new V1UserInfoBuilder().build())); - } - - public UserNested editOrNewUserLike(V1UserInfo item) { - return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(item)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1TokenReviewStatusFluent that = (V1TokenReviewStatusFluent) o; - if (!(Objects.equals(audiences, that.audiences))) { - return false; - } - if (!(Objects.equals(authenticated, that.authenticated))) { - return false; - } - if (!(Objects.equals(error, that.error))) { - return false; - } - if (!(Objects.equals(user, that.user))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(audiences, authenticated, error, user); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(audiences == null) && !(audiences.isEmpty())) { - sb.append("audiences:"); - sb.append(audiences); - sb.append(","); - } - if (!(authenticated == null)) { - sb.append("authenticated:"); - sb.append(authenticated); - sb.append(","); - } - if (!(error == null)) { - sb.append("error:"); - sb.append(error); - sb.append(","); - } - if (!(user == null)) { - sb.append("user:"); - sb.append(user); - } - sb.append("}"); - return sb.toString(); - } + V1UserInfoBuilder builder; - public A withAuthenticated() { - return withAuthenticated(true); - } - public class UserNested extends V1UserInfoFluent> implements Nested{ UserNested(V1UserInfo item) { this.builder = new V1UserInfoBuilder(this, item); } - V1UserInfoBuilder builder; - + public N and() { return (N) V1TokenReviewStatusFluent.this.withUser(builder.build()); } @@ -298,7 +302,5 @@ public N endUser() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java index 5d8a64971e..aad06ed147 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1TolerationBuilder extends V1TolerationFluent implements VisitableBuilder{ + + V1TolerationFluent fluent; + public V1TolerationBuilder() { this(new V1Toleration()); } @@ -11,17 +14,16 @@ public V1TolerationBuilder(V1TolerationFluent fluent) { this(fluent, new V1Toleration()); } - public V1TolerationBuilder(V1TolerationFluent fluent,V1Toleration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TolerationBuilder(V1Toleration instance) { this.fluent = this; this.copyInstance(instance); } - V1TolerationFluent fluent; + public V1TolerationBuilder(V1TolerationFluent fluent,V1Toleration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Toleration build() { V1Toleration buildable = new V1Toleration(); buildable.setEffect(fluent.getEffect()); @@ -32,5 +34,4 @@ public V1Toleration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java index 5a2d816494..4d84fd4d35 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1TolerationFluent> extends BaseFluent{ - public V1TolerationFluent() { - } - - public V1TolerationFluent(V1Toleration instance) { - this.copyInstance(instance); - } + private String effect; private String key; private String operator; private Long tolerationSeconds; private String value; + + public V1TolerationFluent() { + } + public V1TolerationFluent(V1Toleration instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1Toleration instance) { instance = instance != null ? instance : new V1Toleration(); if (instance != null) { @@ -36,71 +38,6 @@ protected void copyInstance(V1Toleration instance) { } } - public String getEffect() { - return this.effect; - } - - public A withEffect(String effect) { - this.effect = effect; - return (A) this; - } - - public boolean hasEffect() { - return this.effect != null; - } - - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public String getOperator() { - return this.operator; - } - - public A withOperator(String operator) { - this.operator = operator; - return (A) this; - } - - public boolean hasOperator() { - return this.operator != null; - } - - public Long getTolerationSeconds() { - return this.tolerationSeconds; - } - - public A withTolerationSeconds(Long tolerationSeconds) { - this.tolerationSeconds = tolerationSeconds; - return (A) this; - } - - public boolean hasTolerationSeconds() { - return this.tolerationSeconds != null; - } - - public String getValue() { - return this.value; - } - - public A withValue(String value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -130,6 +67,46 @@ public boolean equals(Object o) { return true; } + public String getEffect() { + return this.effect; + } + + public String getKey() { + return this.key; + } + + public String getOperator() { + return this.operator; + } + + public Long getTolerationSeconds() { + return this.tolerationSeconds; + } + + public String getValue() { + return this.value; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasOperator() { + return this.operator != null; + } + + public boolean hasTolerationSeconds() { + return this.tolerationSeconds != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(effect, key, operator, tolerationSeconds, value); } @@ -165,5 +142,29 @@ public String toString() { return sb.toString(); } - + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public A withTolerationSeconds(Long tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java index eb92e1b633..f7c814e013 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1TopologySelectorLabelRequirementBuilder extends V1TopologySelectorLabelRequirementFluent implements VisitableBuilder{ + + V1TopologySelectorLabelRequirementFluent fluent; + public V1TopologySelectorLabelRequirementBuilder() { this(new V1TopologySelectorLabelRequirement()); } @@ -11,17 +14,16 @@ public V1TopologySelectorLabelRequirementBuilder(V1TopologySelectorLabelRequirem this(fluent, new V1TopologySelectorLabelRequirement()); } - public V1TopologySelectorLabelRequirementBuilder(V1TopologySelectorLabelRequirementFluent fluent,V1TopologySelectorLabelRequirement instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TopologySelectorLabelRequirementBuilder(V1TopologySelectorLabelRequirement instance) { this.fluent = this; this.copyInstance(instance); } - V1TopologySelectorLabelRequirementFluent fluent; + public V1TopologySelectorLabelRequirementBuilder(V1TopologySelectorLabelRequirementFluent fluent,V1TopologySelectorLabelRequirement instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TopologySelectorLabelRequirement build() { V1TopologySelectorLabelRequirement buildable = new V1TopologySelectorLabelRequirement(); buildable.setKey(fluent.getKey()); @@ -29,5 +31,4 @@ public V1TopologySelectorLabelRequirement build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java index df549bdd5f..b8eb55f796 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,49 +16,24 @@ */ @SuppressWarnings("unchecked") public class V1TopologySelectorLabelRequirementFluent> extends BaseFluent{ + + private String key; + private List values; + public V1TopologySelectorLabelRequirementFluent() { } public V1TopologySelectorLabelRequirementFluent(V1TopologySelectorLabelRequirement instance) { this.copyInstance(instance); } - private String key; - private List values; - - protected void copyInstance(V1TopologySelectorLabelRequirement instance) { - instance = instance != null ? instance : new V1TopologySelectorLabelRequirement(); - if (instance != null) { - this.withKey(instance.getKey()); - this.withValues(instance.getValues()); - } - } - - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public A addToValues(int index,String item) { + + public A addAllToValues(Collection items) { if (this.values == null) { this.values = new ArrayList(); } - this.values.add(index, item); - return (A) this; - } - - public A setToValues(int index,String item) { - if (this.values == null) { - this.values = new ArrayList(); + for (String item : items) { + this.values.add(item); } - this.values.set(index, item); return (A) this; } @@ -72,48 +47,50 @@ public A addToValues(String... items) { return (A) this; } - public A addAllToValues(Collection items) { + public A addToValues(int index,String item) { if (this.values == null) { this.values = new ArrayList(); } - for (String item : items) { - this.values.add(item); - } + this.values.add(index, item); return (A) this; } - public A removeFromValues(String... items) { - if (this.values == null) { - return (A) this; - } - for (String item : items) { - this.values.remove(item); + protected void copyInstance(V1TopologySelectorLabelRequirement instance) { + instance = instance != null ? instance : new V1TopologySelectorLabelRequirement(); + if (instance != null) { + this.withKey(instance.getKey()); + this.withValues(instance.getValues()); } - return (A) this; } - public A removeAllFromValues(Collection items) { - if (this.values == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.values.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public List getValues() { - return this.values; - } - - public String getValue(int index) { - return this.values.get(index); + if (!(super.equals(o))) { + return false; + } + V1TopologySelectorLabelRequirementFluent that = (V1TopologySelectorLabelRequirementFluent) o; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } + return true; } public String getFirstValue() { return this.values.get(0); } + public String getKey() { + return this.key; + } + public String getLastValue() { return this.values.get(values.size() - 1); } @@ -127,6 +104,18 @@ public String getMatchingValue(Predicate predicate) { return null; } + public String getValue(int index) { + return this.values.get(index); + } + + public List getValues() { + return this.values; + } + + public boolean hasKey() { + return this.key != null; + } + public boolean hasMatchingValue(Predicate predicate) { for (String item : values) { if (predicate.test(item)) { @@ -136,57 +125,40 @@ public boolean hasMatchingValue(Predicate predicate) { return false; } - public A withValues(List values) { - if (values != null) { - this.values = new ArrayList(); - for (String item : values) { - this.addToValues(item); - } - } else { - this.values = null; - } - return (A) this; + public boolean hasValues() { + return this.values != null && !(this.values.isEmpty()); } - public A withValues(String... values) { - if (this.values != null) { - this.values.clear(); - _visitables.remove("values"); + public int hashCode() { + return Objects.hash(key, values); + } + + public A removeAllFromValues(Collection items) { + if (this.values == null) { + return (A) this; } - if (values != null) { - for (String item : values) { - this.addToValues(item); - } + for (String item : items) { + this.values.remove(item); } return (A) this; } - public boolean hasValues() { - return this.values != null && !(this.values.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1TopologySelectorLabelRequirementFluent that = (V1TopologySelectorLabelRequirementFluent) o; - if (!(Objects.equals(key, that.key))) { - return false; + public A removeFromValues(String... items) { + if (this.values == null) { + return (A) this; } - if (!(Objects.equals(values, that.values))) { - return false; + for (String item : items) { + this.values.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(key, values); + public A setToValues(int index,String item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; } public String toString() { @@ -205,5 +177,34 @@ public String toString() { return sb.toString(); } - + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withValues(List values) { + if (values != null) { + this.values = new ArrayList(); + for (String item : values) { + this.addToValues(item); + } + } else { + this.values = null; + } + return (A) this; + } + + public A withValues(String... values) { + if (this.values != null) { + this.values.clear(); + _visitables.remove("values"); + } + if (values != null) { + for (String item : values) { + this.addToValues(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java index 442f14b741..2803f016b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1TopologySelectorTermBuilder extends V1TopologySelectorTermFluent implements VisitableBuilder{ + + V1TopologySelectorTermFluent fluent; + public V1TopologySelectorTermBuilder() { this(new V1TopologySelectorTerm()); } @@ -11,22 +14,20 @@ public V1TopologySelectorTermBuilder(V1TopologySelectorTermFluent fluent) { this(fluent, new V1TopologySelectorTerm()); } - public V1TopologySelectorTermBuilder(V1TopologySelectorTermFluent fluent,V1TopologySelectorTerm instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TopologySelectorTermBuilder(V1TopologySelectorTerm instance) { this.fluent = this; this.copyInstance(instance); } - V1TopologySelectorTermFluent fluent; + public V1TopologySelectorTermBuilder(V1TopologySelectorTermFluent fluent,V1TopologySelectorTerm instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TopologySelectorTerm build() { V1TopologySelectorTerm buildable = new V1TopologySelectorTerm(); buildable.setMatchLabelExpressions(fluent.buildMatchLabelExpressions()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java index 6bad0b3bc8..929b20012d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java @@ -1,67 +1,52 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1TopologySelectorTermFluent> extends BaseFluent{ + + private ArrayList matchLabelExpressions; + public V1TopologySelectorTermFluent() { } public V1TopologySelectorTermFluent(V1TopologySelectorTerm instance) { this.copyInstance(instance); } - private ArrayList matchLabelExpressions; - - protected void copyInstance(V1TopologySelectorTerm instance) { - instance = instance != null ? instance : new V1TopologySelectorTerm(); - if (instance != null) { - this.withMatchLabelExpressions(instance.getMatchLabelExpressions()); - } - } - - public A addToMatchLabelExpressions(int index,V1TopologySelectorLabelRequirement item) { + + public A addAllToMatchLabelExpressions(Collection items) { if (this.matchLabelExpressions == null) { this.matchLabelExpressions = new ArrayList(); } - V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); - if (index < 0 || index >= matchLabelExpressions.size()) { - _visitables.get("matchLabelExpressions").add(builder); - matchLabelExpressions.add(builder); - } else { + for (V1TopologySelectorLabelRequirement item : items) { + V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); _visitables.get("matchLabelExpressions").add(builder); - matchLabelExpressions.add(index, builder); + this.matchLabelExpressions.add(builder); } return (A) this; } - public A setToMatchLabelExpressions(int index,V1TopologySelectorLabelRequirement item) { - if (this.matchLabelExpressions == null) { - this.matchLabelExpressions = new ArrayList(); - } - V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); - if (index < 0 || index >= matchLabelExpressions.size()) { - _visitables.get("matchLabelExpressions").add(builder); - matchLabelExpressions.add(builder); - } else { - _visitables.get("matchLabelExpressions").add(builder); - matchLabelExpressions.set(index, builder); - } - return (A) this; + public MatchLabelExpressionsNested addNewMatchLabelExpression() { + return new MatchLabelExpressionsNested(-1, null); + } + + public MatchLabelExpressionsNested addNewMatchLabelExpressionLike(V1TopologySelectorLabelRequirement item) { + return new MatchLabelExpressionsNested(-1, item); } public A addToMatchLabelExpressions(V1TopologySelectorLabelRequirement... items) { @@ -76,72 +61,35 @@ public A addToMatchLabelExpressions(V1TopologySelectorLabelRequirement... items) return (A) this; } - public A addAllToMatchLabelExpressions(Collection items) { + public A addToMatchLabelExpressions(int index,V1TopologySelectorLabelRequirement item) { if (this.matchLabelExpressions == null) { this.matchLabelExpressions = new ArrayList(); } - for (V1TopologySelectorLabelRequirement item : items) { - V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); + V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); + if (index < 0 || index >= matchLabelExpressions.size()) { _visitables.get("matchLabelExpressions").add(builder); - this.matchLabelExpressions.add(builder); - } - return (A) this; - } - - public A removeFromMatchLabelExpressions(V1TopologySelectorLabelRequirement... items) { - if (this.matchLabelExpressions == null) { - return (A) this; - } - for (V1TopologySelectorLabelRequirement item : items) { - V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); - _visitables.get("matchLabelExpressions").remove(builder); - this.matchLabelExpressions.remove(builder); - } - return (A) this; - } - - public A removeAllFromMatchLabelExpressions(Collection items) { - if (this.matchLabelExpressions == null) { - return (A) this; - } - for (V1TopologySelectorLabelRequirement item : items) { - V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); - _visitables.get("matchLabelExpressions").remove(builder); - this.matchLabelExpressions.remove(builder); + matchLabelExpressions.add(builder); + } else { + _visitables.get("matchLabelExpressions").add(builder); + matchLabelExpressions.add(index, builder); } return (A) this; } - public A removeMatchingFromMatchLabelExpressions(Predicate predicate) { - if (matchLabelExpressions == null) { - return (A) this; - } - Iterator each = matchLabelExpressions.iterator(); - List visitables = _visitables.get("matchLabelExpressions"); - while (each.hasNext()) { - V1TopologySelectorLabelRequirementBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1TopologySelectorLabelRequirement buildFirstMatchLabelExpression() { + return this.matchLabelExpressions.get(0).build(); } - public List buildMatchLabelExpressions() { - return this.matchLabelExpressions != null ? build(matchLabelExpressions) : null; + public V1TopologySelectorLabelRequirement buildLastMatchLabelExpression() { + return this.matchLabelExpressions.get(matchLabelExpressions.size() - 1).build(); } public V1TopologySelectorLabelRequirement buildMatchLabelExpression(int index) { return this.matchLabelExpressions.get(index).build(); } - public V1TopologySelectorLabelRequirement buildFirstMatchLabelExpression() { - return this.matchLabelExpressions.get(0).build(); - } - - public V1TopologySelectorLabelRequirement buildLastMatchLabelExpression() { - return this.matchLabelExpressions.get(matchLabelExpressions.size() - 1).build(); + public List buildMatchLabelExpressions() { + return this.matchLabelExpressions != null ? build(matchLabelExpressions) : null; } public V1TopologySelectorLabelRequirement buildMatchingMatchLabelExpression(Predicate predicate) { @@ -153,64 +101,11 @@ public V1TopologySelectorLabelRequirement buildMatchingMatchLabelExpression(Pred return null; } - public boolean hasMatchingMatchLabelExpression(Predicate predicate) { - for (V1TopologySelectorLabelRequirementBuilder item : matchLabelExpressions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withMatchLabelExpressions(List matchLabelExpressions) { - if (this.matchLabelExpressions != null) { - this._visitables.get("matchLabelExpressions").clear(); - } - if (matchLabelExpressions != null) { - this.matchLabelExpressions = new ArrayList(); - for (V1TopologySelectorLabelRequirement item : matchLabelExpressions) { - this.addToMatchLabelExpressions(item); - } - } else { - this.matchLabelExpressions = null; - } - return (A) this; - } - - public A withMatchLabelExpressions(V1TopologySelectorLabelRequirement... matchLabelExpressions) { - if (this.matchLabelExpressions != null) { - this.matchLabelExpressions.clear(); - _visitables.remove("matchLabelExpressions"); - } - if (matchLabelExpressions != null) { - for (V1TopologySelectorLabelRequirement item : matchLabelExpressions) { - this.addToMatchLabelExpressions(item); - } - } - return (A) this; - } - - public boolean hasMatchLabelExpressions() { - return this.matchLabelExpressions != null && !(this.matchLabelExpressions.isEmpty()); - } - - public MatchLabelExpressionsNested addNewMatchLabelExpression() { - return new MatchLabelExpressionsNested(-1, null); - } - - public MatchLabelExpressionsNested addNewMatchLabelExpressionLike(V1TopologySelectorLabelRequirement item) { - return new MatchLabelExpressionsNested(-1, item); - } - - public MatchLabelExpressionsNested setNewMatchLabelExpressionLike(int index,V1TopologySelectorLabelRequirement item) { - return new MatchLabelExpressionsNested(index, item); - } - - public MatchLabelExpressionsNested editMatchLabelExpression(int index) { - if (index <= matchLabelExpressions.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchLabelExpressions")); + protected void copyInstance(V1TopologySelectorTerm instance) { + instance = instance != null ? instance : new V1TopologySelectorTerm(); + if (instance != null) { + this.withMatchLabelExpressions(instance.getMatchLabelExpressions()); } - return this.setNewMatchLabelExpressionLike(index, this.buildMatchLabelExpression(index)); } public MatchLabelExpressionsNested editFirstMatchLabelExpression() { @@ -228,6 +123,13 @@ public MatchLabelExpressionsNested editLastMatchLabelExpression() { return this.setNewMatchLabelExpressionLike(index, this.buildMatchLabelExpression(index)); } + public MatchLabelExpressionsNested editMatchLabelExpression(int index) { + if (matchLabelExpressions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchLabelExpressions")); + } + return this.setNewMatchLabelExpressionLike(index, this.buildMatchLabelExpression(index)); + } + public MatchLabelExpressionsNested editMatchingMatchLabelExpression(Predicate predicate) { int index = -1; for (int i = 0;i < matchLabelExpressions.size();i++) { @@ -259,10 +161,82 @@ public boolean equals(Object o) { return true; } + public boolean hasMatchLabelExpressions() { + return this.matchLabelExpressions != null && !(this.matchLabelExpressions.isEmpty()); + } + + public boolean hasMatchingMatchLabelExpression(Predicate predicate) { + for (V1TopologySelectorLabelRequirementBuilder item : matchLabelExpressions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(matchLabelExpressions); } + public A removeAllFromMatchLabelExpressions(Collection items) { + if (this.matchLabelExpressions == null) { + return (A) this; + } + for (V1TopologySelectorLabelRequirement item : items) { + V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); + _visitables.get("matchLabelExpressions").remove(builder); + this.matchLabelExpressions.remove(builder); + } + return (A) this; + } + + public A removeFromMatchLabelExpressions(V1TopologySelectorLabelRequirement... items) { + if (this.matchLabelExpressions == null) { + return (A) this; + } + for (V1TopologySelectorLabelRequirement item : items) { + V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); + _visitables.get("matchLabelExpressions").remove(builder); + this.matchLabelExpressions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromMatchLabelExpressions(Predicate predicate) { + if (matchLabelExpressions == null) { + return (A) this; + } + Iterator each = matchLabelExpressions.iterator(); + List visitables = _visitables.get("matchLabelExpressions"); + while (each.hasNext()) { + V1TopologySelectorLabelRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public MatchLabelExpressionsNested setNewMatchLabelExpressionLike(int index,V1TopologySelectorLabelRequirement item) { + return new MatchLabelExpressionsNested(index, item); + } + + public A setToMatchLabelExpressions(int index,V1TopologySelectorLabelRequirement item) { + if (this.matchLabelExpressions == null) { + this.matchLabelExpressions = new ArrayList(); + } + V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); + if (index < 0 || index >= matchLabelExpressions.size()) { + _visitables.get("matchLabelExpressions").add(builder); + matchLabelExpressions.add(builder); + } else { + _visitables.get("matchLabelExpressions").add(builder); + matchLabelExpressions.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -273,14 +247,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMatchLabelExpressions(List matchLabelExpressions) { + if (this.matchLabelExpressions != null) { + this._visitables.get("matchLabelExpressions").clear(); + } + if (matchLabelExpressions != null) { + this.matchLabelExpressions = new ArrayList(); + for (V1TopologySelectorLabelRequirement item : matchLabelExpressions) { + this.addToMatchLabelExpressions(item); + } + } else { + this.matchLabelExpressions = null; + } + return (A) this; + } + + public A withMatchLabelExpressions(V1TopologySelectorLabelRequirement... matchLabelExpressions) { + if (this.matchLabelExpressions != null) { + this.matchLabelExpressions.clear(); + _visitables.remove("matchLabelExpressions"); + } + if (matchLabelExpressions != null) { + for (V1TopologySelectorLabelRequirement item : matchLabelExpressions) { + this.addToMatchLabelExpressions(item); + } + } + return (A) this; + } public class MatchLabelExpressionsNested extends V1TopologySelectorLabelRequirementFluent> implements Nested{ + + V1TopologySelectorLabelRequirementBuilder builder; + int index; + MatchLabelExpressionsNested(int index,V1TopologySelectorLabelRequirement item) { this.index = index; this.builder = new V1TopologySelectorLabelRequirementBuilder(this, item); } - V1TopologySelectorLabelRequirementBuilder builder; - int index; - + public N and() { return (N) V1TopologySelectorTermFluent.this.setToMatchLabelExpressions(index, builder.build()); } @@ -289,7 +293,5 @@ public N endMatchLabelExpression() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java index 7c254ea11a..4e2f6a6aa2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1TopologySpreadConstraintBuilder extends V1TopologySpreadConstraintFluent implements VisitableBuilder{ + + V1TopologySpreadConstraintFluent fluent; + public V1TopologySpreadConstraintBuilder() { this(new V1TopologySpreadConstraint()); } @@ -11,17 +14,16 @@ public V1TopologySpreadConstraintBuilder(V1TopologySpreadConstraintFluent flu this(fluent, new V1TopologySpreadConstraint()); } - public V1TopologySpreadConstraintBuilder(V1TopologySpreadConstraintFluent fluent,V1TopologySpreadConstraint instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TopologySpreadConstraintBuilder(V1TopologySpreadConstraint instance) { this.fluent = this; this.copyInstance(instance); } - V1TopologySpreadConstraintFluent fluent; + public V1TopologySpreadConstraintBuilder(V1TopologySpreadConstraintFluent fluent,V1TopologySpreadConstraint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TopologySpreadConstraint build() { V1TopologySpreadConstraint buildable = new V1TopologySpreadConstraint(); buildable.setLabelSelector(fluent.buildLabelSelector()); @@ -35,5 +37,4 @@ public V1TopologySpreadConstraint build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java index 76f8b6dc09..1a7989fec5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java @@ -1,30 +1,25 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1TopologySpreadConstraintFluent> extends BaseFluent{ - public V1TopologySpreadConstraintFluent() { - } - - public V1TopologySpreadConstraintFluent(V1TopologySpreadConstraint instance) { - this.copyInstance(instance); - } + private V1LabelSelectorBuilder labelSelector; private List matchLabelKeys; private Integer maxSkew; @@ -33,6 +28,45 @@ public V1TopologySpreadConstraintFluent(V1TopologySpreadConstraint instance) { private String nodeTaintsPolicy; private String topologyKey; private String whenUnsatisfiable; + + public V1TopologySpreadConstraintFluent() { + } + + public V1TopologySpreadConstraintFluent(V1TopologySpreadConstraint instance) { + this.copyInstance(instance); + } + + public A addAllToMatchLabelKeys(Collection items) { + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } + for (String item : items) { + this.matchLabelKeys.add(item); + } + return (A) this; + } + + public A addToMatchLabelKeys(String... items) { + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } + for (String item : items) { + this.matchLabelKeys.add(item); + } + return (A) this; + } + + public A addToMatchLabelKeys(int index,String item) { + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } + this.matchLabelKeys.add(index, item); + return (A) this; + } + + public V1LabelSelector buildLabelSelector() { + return this.labelSelector != null ? this.labelSelector.build() : null; + } protected void copyInstance(V1TopologySpreadConstraint instance) { instance = instance != null ? instance : new V1TopologySpreadConstraint(); @@ -48,34 +82,6 @@ protected void copyInstance(V1TopologySpreadConstraint instance) { } } - public V1LabelSelector buildLabelSelector() { - return this.labelSelector != null ? this.labelSelector.build() : null; - } - - public A withLabelSelector(V1LabelSelector labelSelector) { - this._visitables.remove("labelSelector"); - if (labelSelector != null) { - this.labelSelector = new V1LabelSelectorBuilder(labelSelector); - this._visitables.get("labelSelector").add(this.labelSelector); - } else { - this.labelSelector = null; - this._visitables.get("labelSelector").remove(this.labelSelector); - } - return (A) this; - } - - public boolean hasLabelSelector() { - return this.labelSelector != null; - } - - public LabelSelectorNested withNewLabelSelector() { - return new LabelSelectorNested(null); - } - - public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { - return new LabelSelectorNested(item); - } - public LabelSelectorNested editLabelSelector() { return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(null)); } @@ -88,68 +94,42 @@ public LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelector item) { return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(item)); } - public A addToMatchLabelKeys(int index,String item) { - if (this.matchLabelKeys == null) { - this.matchLabelKeys = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - this.matchLabelKeys.add(index, item); - return (A) this; - } - - public A setToMatchLabelKeys(int index,String item) { - if (this.matchLabelKeys == null) { - this.matchLabelKeys = new ArrayList(); + if (o == null || this.getClass() != o.getClass()) { + return false; } - this.matchLabelKeys.set(index, item); - return (A) this; - } - - public A addToMatchLabelKeys(String... items) { - if (this.matchLabelKeys == null) { - this.matchLabelKeys = new ArrayList(); + if (!(super.equals(o))) { + return false; } - for (String item : items) { - this.matchLabelKeys.add(item); + V1TopologySpreadConstraintFluent that = (V1TopologySpreadConstraintFluent) o; + if (!(Objects.equals(labelSelector, that.labelSelector))) { + return false; } - return (A) this; - } - - public A addAllToMatchLabelKeys(Collection items) { - if (this.matchLabelKeys == null) { - this.matchLabelKeys = new ArrayList(); + if (!(Objects.equals(matchLabelKeys, that.matchLabelKeys))) { + return false; } - for (String item : items) { - this.matchLabelKeys.add(item); + if (!(Objects.equals(maxSkew, that.maxSkew))) { + return false; } - return (A) this; - } - - public A removeFromMatchLabelKeys(String... items) { - if (this.matchLabelKeys == null) { - return (A) this; + if (!(Objects.equals(minDomains, that.minDomains))) { + return false; } - for (String item : items) { - this.matchLabelKeys.remove(item); + if (!(Objects.equals(nodeAffinityPolicy, that.nodeAffinityPolicy))) { + return false; } - return (A) this; - } - - public A removeAllFromMatchLabelKeys(Collection items) { - if (this.matchLabelKeys == null) { - return (A) this; + if (!(Objects.equals(nodeTaintsPolicy, that.nodeTaintsPolicy))) { + return false; } - for (String item : items) { - this.matchLabelKeys.remove(item); + if (!(Objects.equals(topologyKey, that.topologyKey))) { + return false; } - return (A) this; - } - - public List getMatchLabelKeys() { - return this.matchLabelKeys; - } - - public String getMatchLabelKey(int index) { - return this.matchLabelKeys.get(index); + if (!(Objects.equals(whenUnsatisfiable, that.whenUnsatisfiable))) { + return false; + } + return true; } public String getFirstMatchLabelKey() { @@ -160,6 +140,14 @@ public String getLastMatchLabelKey() { return this.matchLabelKeys.get(matchLabelKeys.size() - 1); } + public String getMatchLabelKey(int index) { + return this.matchLabelKeys.get(index); + } + + public List getMatchLabelKeys() { + return this.matchLabelKeys; + } + public String getMatchingMatchLabelKey(Predicate predicate) { for (String item : matchLabelKeys) { if (predicate.test(item)) { @@ -169,162 +157,101 @@ public String getMatchingMatchLabelKey(Predicate predicate) { return null; } - public boolean hasMatchingMatchLabelKey(Predicate predicate) { - for (String item : matchLabelKeys) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withMatchLabelKeys(List matchLabelKeys) { - if (matchLabelKeys != null) { - this.matchLabelKeys = new ArrayList(); - for (String item : matchLabelKeys) { - this.addToMatchLabelKeys(item); - } - } else { - this.matchLabelKeys = null; - } - return (A) this; + public Integer getMaxSkew() { + return this.maxSkew; } - public A withMatchLabelKeys(String... matchLabelKeys) { - if (this.matchLabelKeys != null) { - this.matchLabelKeys.clear(); - _visitables.remove("matchLabelKeys"); - } - if (matchLabelKeys != null) { - for (String item : matchLabelKeys) { - this.addToMatchLabelKeys(item); - } - } - return (A) this; + public Integer getMinDomains() { + return this.minDomains; } - public boolean hasMatchLabelKeys() { - return this.matchLabelKeys != null && !(this.matchLabelKeys.isEmpty()); + public String getNodeAffinityPolicy() { + return this.nodeAffinityPolicy; } - public Integer getMaxSkew() { - return this.maxSkew; + public String getNodeTaintsPolicy() { + return this.nodeTaintsPolicy; } - public A withMaxSkew(Integer maxSkew) { - this.maxSkew = maxSkew; - return (A) this; + public String getTopologyKey() { + return this.topologyKey; } - public boolean hasMaxSkew() { - return this.maxSkew != null; + public String getWhenUnsatisfiable() { + return this.whenUnsatisfiable; } - public Integer getMinDomains() { - return this.minDomains; + public boolean hasLabelSelector() { + return this.labelSelector != null; } - public A withMinDomains(Integer minDomains) { - this.minDomains = minDomains; - return (A) this; + public boolean hasMatchLabelKeys() { + return this.matchLabelKeys != null && !(this.matchLabelKeys.isEmpty()); } - public boolean hasMinDomains() { - return this.minDomains != null; + public boolean hasMatchingMatchLabelKey(Predicate predicate) { + for (String item : matchLabelKeys) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getNodeAffinityPolicy() { - return this.nodeAffinityPolicy; + public boolean hasMaxSkew() { + return this.maxSkew != null; } - public A withNodeAffinityPolicy(String nodeAffinityPolicy) { - this.nodeAffinityPolicy = nodeAffinityPolicy; - return (A) this; + public boolean hasMinDomains() { + return this.minDomains != null; } public boolean hasNodeAffinityPolicy() { return this.nodeAffinityPolicy != null; } - public String getNodeTaintsPolicy() { - return this.nodeTaintsPolicy; - } - - public A withNodeTaintsPolicy(String nodeTaintsPolicy) { - this.nodeTaintsPolicy = nodeTaintsPolicy; - return (A) this; - } - public boolean hasNodeTaintsPolicy() { return this.nodeTaintsPolicy != null; } - public String getTopologyKey() { - return this.topologyKey; - } - - public A withTopologyKey(String topologyKey) { - this.topologyKey = topologyKey; - return (A) this; - } - public boolean hasTopologyKey() { return this.topologyKey != null; } - public String getWhenUnsatisfiable() { - return this.whenUnsatisfiable; - } - - public A withWhenUnsatisfiable(String whenUnsatisfiable) { - this.whenUnsatisfiable = whenUnsatisfiable; - return (A) this; - } - public boolean hasWhenUnsatisfiable() { return this.whenUnsatisfiable != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1TopologySpreadConstraintFluent that = (V1TopologySpreadConstraintFluent) o; - if (!(Objects.equals(labelSelector, that.labelSelector))) { - return false; - } - if (!(Objects.equals(matchLabelKeys, that.matchLabelKeys))) { - return false; - } - if (!(Objects.equals(maxSkew, that.maxSkew))) { - return false; - } - if (!(Objects.equals(minDomains, that.minDomains))) { - return false; - } - if (!(Objects.equals(nodeAffinityPolicy, that.nodeAffinityPolicy))) { - return false; + public int hashCode() { + return Objects.hash(labelSelector, matchLabelKeys, maxSkew, minDomains, nodeAffinityPolicy, nodeTaintsPolicy, topologyKey, whenUnsatisfiable); + } + + public A removeAllFromMatchLabelKeys(Collection items) { + if (this.matchLabelKeys == null) { + return (A) this; } - if (!(Objects.equals(nodeTaintsPolicy, that.nodeTaintsPolicy))) { - return false; + for (String item : items) { + this.matchLabelKeys.remove(item); } - if (!(Objects.equals(topologyKey, that.topologyKey))) { - return false; + return (A) this; + } + + public A removeFromMatchLabelKeys(String... items) { + if (this.matchLabelKeys == null) { + return (A) this; } - if (!(Objects.equals(whenUnsatisfiable, that.whenUnsatisfiable))) { - return false; + for (String item : items) { + this.matchLabelKeys.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(labelSelector, matchLabelKeys, maxSkew, minDomains, nodeAffinityPolicy, nodeTaintsPolicy, topologyKey, whenUnsatisfiable); + public A setToMatchLabelKeys(int index,String item) { + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } + this.matchLabelKeys.set(index, item); + return (A) this; } public String toString() { @@ -372,12 +299,89 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withLabelSelector(V1LabelSelector labelSelector) { + this._visitables.remove("labelSelector"); + if (labelSelector != null) { + this.labelSelector = new V1LabelSelectorBuilder(labelSelector); + this._visitables.get("labelSelector").add(this.labelSelector); + } else { + this.labelSelector = null; + this._visitables.get("labelSelector").remove(this.labelSelector); + } + return (A) this; + } + + public A withMatchLabelKeys(List matchLabelKeys) { + if (matchLabelKeys != null) { + this.matchLabelKeys = new ArrayList(); + for (String item : matchLabelKeys) { + this.addToMatchLabelKeys(item); + } + } else { + this.matchLabelKeys = null; + } + return (A) this; + } + + public A withMatchLabelKeys(String... matchLabelKeys) { + if (this.matchLabelKeys != null) { + this.matchLabelKeys.clear(); + _visitables.remove("matchLabelKeys"); + } + if (matchLabelKeys != null) { + for (String item : matchLabelKeys) { + this.addToMatchLabelKeys(item); + } + } + return (A) this; + } + + public A withMaxSkew(Integer maxSkew) { + this.maxSkew = maxSkew; + return (A) this; + } + + public A withMinDomains(Integer minDomains) { + this.minDomains = minDomains; + return (A) this; + } + + public LabelSelectorNested withNewLabelSelector() { + return new LabelSelectorNested(null); + } + + public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { + return new LabelSelectorNested(item); + } + + public A withNodeAffinityPolicy(String nodeAffinityPolicy) { + this.nodeAffinityPolicy = nodeAffinityPolicy; + return (A) this; + } + + public A withNodeTaintsPolicy(String nodeTaintsPolicy) { + this.nodeTaintsPolicy = nodeTaintsPolicy; + return (A) this; + } + + public A withTopologyKey(String topologyKey) { + this.topologyKey = topologyKey; + return (A) this; + } + + public A withWhenUnsatisfiable(String whenUnsatisfiable) { + this.whenUnsatisfiable = whenUnsatisfiable; + return (A) this; + } public class LabelSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + LabelSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1TopologySpreadConstraintFluent.this.withLabelSelector(builder.build()); } @@ -386,7 +390,5 @@ public N endLabelSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingBuilder.java index aac079a172..6392f596b2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1TypeCheckingBuilder extends V1TypeCheckingFluent implements VisitableBuilder{ + + V1TypeCheckingFluent fluent; + public V1TypeCheckingBuilder() { this(new V1TypeChecking()); } @@ -11,22 +14,20 @@ public V1TypeCheckingBuilder(V1TypeCheckingFluent fluent) { this(fluent, new V1TypeChecking()); } - public V1TypeCheckingBuilder(V1TypeCheckingFluent fluent,V1TypeChecking instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TypeCheckingBuilder(V1TypeChecking instance) { this.fluent = this; this.copyInstance(instance); } - V1TypeCheckingFluent fluent; + public V1TypeCheckingBuilder(V1TypeCheckingFluent fluent,V1TypeChecking instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TypeChecking build() { V1TypeChecking buildable = new V1TypeChecking(); buildable.setExpressionWarnings(fluent.buildExpressionWarnings()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingFluent.java index b8c480d8e6..83d84e2383 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingFluent.java @@ -1,67 +1,52 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1TypeCheckingFluent> extends BaseFluent{ + + private ArrayList expressionWarnings; + public V1TypeCheckingFluent() { } public V1TypeCheckingFluent(V1TypeChecking instance) { this.copyInstance(instance); } - private ArrayList expressionWarnings; - - protected void copyInstance(V1TypeChecking instance) { - instance = instance != null ? instance : new V1TypeChecking(); - if (instance != null) { - this.withExpressionWarnings(instance.getExpressionWarnings()); - } - } - - public A addToExpressionWarnings(int index,V1ExpressionWarning item) { + + public A addAllToExpressionWarnings(Collection items) { if (this.expressionWarnings == null) { this.expressionWarnings = new ArrayList(); } - V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); - if (index < 0 || index >= expressionWarnings.size()) { - _visitables.get("expressionWarnings").add(builder); - expressionWarnings.add(builder); - } else { + for (V1ExpressionWarning item : items) { + V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); _visitables.get("expressionWarnings").add(builder); - expressionWarnings.add(index, builder); + this.expressionWarnings.add(builder); } return (A) this; } - public A setToExpressionWarnings(int index,V1ExpressionWarning item) { - if (this.expressionWarnings == null) { - this.expressionWarnings = new ArrayList(); - } - V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); - if (index < 0 || index >= expressionWarnings.size()) { - _visitables.get("expressionWarnings").add(builder); - expressionWarnings.add(builder); - } else { - _visitables.get("expressionWarnings").add(builder); - expressionWarnings.set(index, builder); - } - return (A) this; + public ExpressionWarningsNested addNewExpressionWarning() { + return new ExpressionWarningsNested(-1, null); + } + + public ExpressionWarningsNested addNewExpressionWarningLike(V1ExpressionWarning item) { + return new ExpressionWarningsNested(-1, item); } public A addToExpressionWarnings(V1ExpressionWarning... items) { @@ -76,66 +61,29 @@ public A addToExpressionWarnings(V1ExpressionWarning... items) { return (A) this; } - public A addAllToExpressionWarnings(Collection items) { + public A addToExpressionWarnings(int index,V1ExpressionWarning item) { if (this.expressionWarnings == null) { this.expressionWarnings = new ArrayList(); } - for (V1ExpressionWarning item : items) { - V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); + V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); + if (index < 0 || index >= expressionWarnings.size()) { _visitables.get("expressionWarnings").add(builder); - this.expressionWarnings.add(builder); - } - return (A) this; - } - - public A removeFromExpressionWarnings(V1ExpressionWarning... items) { - if (this.expressionWarnings == null) { - return (A) this; - } - for (V1ExpressionWarning item : items) { - V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); - _visitables.get("expressionWarnings").remove(builder); - this.expressionWarnings.remove(builder); - } - return (A) this; - } - - public A removeAllFromExpressionWarnings(Collection items) { - if (this.expressionWarnings == null) { - return (A) this; - } - for (V1ExpressionWarning item : items) { - V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); - _visitables.get("expressionWarnings").remove(builder); - this.expressionWarnings.remove(builder); + expressionWarnings.add(builder); + } else { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.add(index, builder); } return (A) this; } - public A removeMatchingFromExpressionWarnings(Predicate predicate) { - if (expressionWarnings == null) { - return (A) this; - } - Iterator each = expressionWarnings.iterator(); - List visitables = _visitables.get("expressionWarnings"); - while (each.hasNext()) { - V1ExpressionWarningBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1ExpressionWarning buildExpressionWarning(int index) { + return this.expressionWarnings.get(index).build(); } public List buildExpressionWarnings() { return this.expressionWarnings != null ? build(expressionWarnings) : null; } - public V1ExpressionWarning buildExpressionWarning(int index) { - return this.expressionWarnings.get(index).build(); - } - public V1ExpressionWarning buildFirstExpressionWarning() { return this.expressionWarnings.get(0).build(); } @@ -153,61 +101,15 @@ public V1ExpressionWarning buildMatchingExpressionWarning(Predicate predicate) { - for (V1ExpressionWarningBuilder item : expressionWarnings) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withExpressionWarnings(List expressionWarnings) { - if (this.expressionWarnings != null) { - this._visitables.get("expressionWarnings").clear(); - } - if (expressionWarnings != null) { - this.expressionWarnings = new ArrayList(); - for (V1ExpressionWarning item : expressionWarnings) { - this.addToExpressionWarnings(item); - } - } else { - this.expressionWarnings = null; - } - return (A) this; - } - - public A withExpressionWarnings(V1ExpressionWarning... expressionWarnings) { - if (this.expressionWarnings != null) { - this.expressionWarnings.clear(); - _visitables.remove("expressionWarnings"); - } - if (expressionWarnings != null) { - for (V1ExpressionWarning item : expressionWarnings) { - this.addToExpressionWarnings(item); - } + protected void copyInstance(V1TypeChecking instance) { + instance = instance != null ? instance : new V1TypeChecking(); + if (instance != null) { + this.withExpressionWarnings(instance.getExpressionWarnings()); } - return (A) this; - } - - public boolean hasExpressionWarnings() { - return this.expressionWarnings != null && !(this.expressionWarnings.isEmpty()); - } - - public ExpressionWarningsNested addNewExpressionWarning() { - return new ExpressionWarningsNested(-1, null); - } - - public ExpressionWarningsNested addNewExpressionWarningLike(V1ExpressionWarning item) { - return new ExpressionWarningsNested(-1, item); - } - - public ExpressionWarningsNested setNewExpressionWarningLike(int index,V1ExpressionWarning item) { - return new ExpressionWarningsNested(index, item); } public ExpressionWarningsNested editExpressionWarning(int index) { - if (index <= expressionWarnings.size()) { + if (expressionWarnings.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "expressionWarnings")); } return this.setNewExpressionWarningLike(index, this.buildExpressionWarning(index)); @@ -259,10 +161,82 @@ public boolean equals(Object o) { return true; } + public boolean hasExpressionWarnings() { + return this.expressionWarnings != null && !(this.expressionWarnings.isEmpty()); + } + + public boolean hasMatchingExpressionWarning(Predicate predicate) { + for (V1ExpressionWarningBuilder item : expressionWarnings) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(expressionWarnings); } + public A removeAllFromExpressionWarnings(Collection items) { + if (this.expressionWarnings == null) { + return (A) this; + } + for (V1ExpressionWarning item : items) { + V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); + _visitables.get("expressionWarnings").remove(builder); + this.expressionWarnings.remove(builder); + } + return (A) this; + } + + public A removeFromExpressionWarnings(V1ExpressionWarning... items) { + if (this.expressionWarnings == null) { + return (A) this; + } + for (V1ExpressionWarning item : items) { + V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); + _visitables.get("expressionWarnings").remove(builder); + this.expressionWarnings.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromExpressionWarnings(Predicate predicate) { + if (expressionWarnings == null) { + return (A) this; + } + Iterator each = expressionWarnings.iterator(); + List visitables = _visitables.get("expressionWarnings"); + while (each.hasNext()) { + V1ExpressionWarningBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ExpressionWarningsNested setNewExpressionWarningLike(int index,V1ExpressionWarning item) { + return new ExpressionWarningsNested(index, item); + } + + public A setToExpressionWarnings(int index,V1ExpressionWarning item) { + if (this.expressionWarnings == null) { + this.expressionWarnings = new ArrayList(); + } + V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); + if (index < 0 || index >= expressionWarnings.size()) { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.add(builder); + } else { + _visitables.get("expressionWarnings").add(builder); + expressionWarnings.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -273,14 +247,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withExpressionWarnings(List expressionWarnings) { + if (this.expressionWarnings != null) { + this._visitables.get("expressionWarnings").clear(); + } + if (expressionWarnings != null) { + this.expressionWarnings = new ArrayList(); + for (V1ExpressionWarning item : expressionWarnings) { + this.addToExpressionWarnings(item); + } + } else { + this.expressionWarnings = null; + } + return (A) this; + } + + public A withExpressionWarnings(V1ExpressionWarning... expressionWarnings) { + if (this.expressionWarnings != null) { + this.expressionWarnings.clear(); + _visitables.remove("expressionWarnings"); + } + if (expressionWarnings != null) { + for (V1ExpressionWarning item : expressionWarnings) { + this.addToExpressionWarnings(item); + } + } + return (A) this; + } public class ExpressionWarningsNested extends V1ExpressionWarningFluent> implements Nested{ + + V1ExpressionWarningBuilder builder; + int index; + ExpressionWarningsNested(int index,V1ExpressionWarning item) { this.index = index; this.builder = new V1ExpressionWarningBuilder(this, item); } - V1ExpressionWarningBuilder builder; - int index; - + public N and() { return (N) V1TypeCheckingFluent.this.setToExpressionWarnings(index, builder.build()); } @@ -289,7 +293,5 @@ public N endExpressionWarning() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java index 6df1bf9a9a..c556ab206f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1TypedLocalObjectReferenceBuilder extends V1TypedLocalObjectReferenceFluent implements VisitableBuilder{ + + V1TypedLocalObjectReferenceFluent fluent; + public V1TypedLocalObjectReferenceBuilder() { this(new V1TypedLocalObjectReference()); } @@ -11,17 +14,16 @@ public V1TypedLocalObjectReferenceBuilder(V1TypedLocalObjectReferenceFluent f this(fluent, new V1TypedLocalObjectReference()); } - public V1TypedLocalObjectReferenceBuilder(V1TypedLocalObjectReferenceFluent fluent,V1TypedLocalObjectReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TypedLocalObjectReferenceBuilder(V1TypedLocalObjectReference instance) { this.fluent = this; this.copyInstance(instance); } - V1TypedLocalObjectReferenceFluent fluent; + public V1TypedLocalObjectReferenceBuilder(V1TypedLocalObjectReferenceFluent fluent,V1TypedLocalObjectReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TypedLocalObjectReference build() { V1TypedLocalObjectReference buildable = new V1TypedLocalObjectReference(); buildable.setApiGroup(fluent.getApiGroup()); @@ -30,5 +32,4 @@ public V1TypedLocalObjectReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java index 2942d8cc77..0c256ea22d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1TypedLocalObjectReferenceFluent> extends BaseFluent{ + + private String apiGroup; + private String kind; + private String name; + public V1TypedLocalObjectReferenceFluent() { } public V1TypedLocalObjectReferenceFluent(V1TypedLocalObjectReference instance) { this.copyInstance(instance); } - private String apiGroup; - private String kind; - private String name; - + protected void copyInstance(V1TypedLocalObjectReference instance) { instance = instance != null ? instance : new V1TypedLocalObjectReference(); if (instance != null) { @@ -31,45 +33,6 @@ protected void copyInstance(V1TypedLocalObjectReference instance) { } } - public String getApiGroup() { - return this.apiGroup; - } - - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; - } - - public boolean hasApiGroup() { - return this.apiGroup != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -93,6 +56,30 @@ public boolean equals(Object o) { return true; } + public String getApiGroup() { + return this.apiGroup; + } + + public String getKind() { + return this.kind; + } + + public String getName() { + return this.name; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(apiGroup, kind, name); } @@ -118,5 +105,19 @@ public String toString() { return sb.toString(); } - + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceBuilder.java index e8fef8bd3d..8149092b53 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1TypedObjectReferenceBuilder extends V1TypedObjectReferenceFluent implements VisitableBuilder{ + + V1TypedObjectReferenceFluent fluent; + public V1TypedObjectReferenceBuilder() { this(new V1TypedObjectReference()); } @@ -11,17 +14,16 @@ public V1TypedObjectReferenceBuilder(V1TypedObjectReferenceFluent fluent) { this(fluent, new V1TypedObjectReference()); } - public V1TypedObjectReferenceBuilder(V1TypedObjectReferenceFluent fluent,V1TypedObjectReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TypedObjectReferenceBuilder(V1TypedObjectReference instance) { this.fluent = this; this.copyInstance(instance); } - V1TypedObjectReferenceFluent fluent; + public V1TypedObjectReferenceBuilder(V1TypedObjectReferenceFluent fluent,V1TypedObjectReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TypedObjectReference build() { V1TypedObjectReference buildable = new V1TypedObjectReference(); buildable.setApiGroup(fluent.getApiGroup()); @@ -31,5 +33,4 @@ public V1TypedObjectReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceFluent.java index 375e287164..295a3d34ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1TypedObjectReferenceFluent> extends BaseFluent{ + + private String apiGroup; + private String kind; + private String name; + private String namespace; + public V1TypedObjectReferenceFluent() { } public V1TypedObjectReferenceFluent(V1TypedObjectReference instance) { this.copyInstance(instance); } - private String apiGroup; - private String kind; - private String name; - private String namespace; - + protected void copyInstance(V1TypedObjectReference instance) { instance = instance != null ? instance : new V1TypedObjectReference(); if (instance != null) { @@ -33,58 +35,6 @@ protected void copyInstance(V1TypedObjectReference instance) { } } - public String getApiGroup() { - return this.apiGroup; - } - - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; - } - - public boolean hasApiGroup() { - return this.apiGroup != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -111,6 +61,38 @@ public boolean equals(Object o) { return true; } + public String getApiGroup() { + return this.apiGroup; + } + + public String getKind() { + return this.kind; + } + + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + public int hashCode() { return Objects.hash(apiGroup, kind, name, namespace); } @@ -141,5 +123,24 @@ public String toString() { return sb.toString(); } - + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java index 65c60ae3aa..b0f734fdd1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1UncountedTerminatedPodsBuilder extends V1UncountedTerminatedPodsFluent implements VisitableBuilder{ + + V1UncountedTerminatedPodsFluent fluent; + public V1UncountedTerminatedPodsBuilder() { this(new V1UncountedTerminatedPods()); } @@ -11,17 +14,16 @@ public V1UncountedTerminatedPodsBuilder(V1UncountedTerminatedPodsFluent fluen this(fluent, new V1UncountedTerminatedPods()); } - public V1UncountedTerminatedPodsBuilder(V1UncountedTerminatedPodsFluent fluent,V1UncountedTerminatedPods instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1UncountedTerminatedPodsBuilder(V1UncountedTerminatedPods instance) { this.fluent = this; this.copyInstance(instance); } - V1UncountedTerminatedPodsFluent fluent; + public V1UncountedTerminatedPodsBuilder(V1UncountedTerminatedPodsFluent fluent,V1UncountedTerminatedPods instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1UncountedTerminatedPods build() { V1UncountedTerminatedPods buildable = new V1UncountedTerminatedPods(); buildable.setFailed(fluent.getFailed()); @@ -29,5 +31,4 @@ public V1UncountedTerminatedPods build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java index 3cc7afa1ac..ab3362c387 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,36 +16,34 @@ */ @SuppressWarnings("unchecked") public class V1UncountedTerminatedPodsFluent> extends BaseFluent{ + + private List failed; + private List succeeded; + public V1UncountedTerminatedPodsFluent() { } public V1UncountedTerminatedPodsFluent(V1UncountedTerminatedPods instance) { this.copyInstance(instance); } - private List failed; - private List succeeded; - - protected void copyInstance(V1UncountedTerminatedPods instance) { - instance = instance != null ? instance : new V1UncountedTerminatedPods(); - if (instance != null) { - this.withFailed(instance.getFailed()); - this.withSucceeded(instance.getSucceeded()); - } - } - - public A addToFailed(int index,String item) { + + public A addAllToFailed(Collection items) { if (this.failed == null) { this.failed = new ArrayList(); } - this.failed.add(index, item); + for (String item : items) { + this.failed.add(item); + } return (A) this; } - public A setToFailed(int index,String item) { - if (this.failed == null) { - this.failed = new ArrayList(); + public A addAllToSucceeded(Collection items) { + if (this.succeeded == null) { + this.succeeded = new ArrayList(); + } + for (String item : items) { + this.succeeded.add(item); } - this.failed.set(index, item); return (A) this; } @@ -59,36 +57,60 @@ public A addToFailed(String... items) { return (A) this; } - public A addAllToFailed(Collection items) { + public A addToFailed(int index,String item) { if (this.failed == null) { this.failed = new ArrayList(); } - for (String item : items) { - this.failed.add(item); - } + this.failed.add(index, item); return (A) this; } - public A removeFromFailed(String... items) { - if (this.failed == null) { - return (A) this; + public A addToSucceeded(String... items) { + if (this.succeeded == null) { + this.succeeded = new ArrayList(); } for (String item : items) { - this.failed.remove(item); + this.succeeded.add(item); } return (A) this; } - public A removeAllFromFailed(Collection items) { - if (this.failed == null) { - return (A) this; - } - for (String item : items) { - this.failed.remove(item); + public A addToSucceeded(int index,String item) { + if (this.succeeded == null) { + this.succeeded = new ArrayList(); } + this.succeeded.add(index, item); return (A) this; } + protected void copyInstance(V1UncountedTerminatedPods instance) { + instance = instance != null ? instance : new V1UncountedTerminatedPods(); + if (instance != null) { + this.withFailed(instance.getFailed()); + this.withSucceeded(instance.getSucceeded()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1UncountedTerminatedPodsFluent that = (V1UncountedTerminatedPodsFluent) o; + if (!(Objects.equals(failed, that.failed))) { + return false; + } + if (!(Objects.equals(succeeded, that.succeeded))) { + return false; + } + return true; + } + public List getFailed() { return this.failed; } @@ -101,10 +123,18 @@ public String getFirstFailed() { return this.failed.get(0); } + public String getFirstSucceeded() { + return this.succeeded.get(0); + } + public String getLastFailed() { return this.failed.get(failed.size() - 1); } + public String getLastSucceeded() { + return this.succeeded.get(succeeded.size() - 1); + } + public String getMatchingFailed(Predicate predicate) { for (String item : failed) { if (predicate.test(item)) { @@ -114,91 +144,84 @@ public String getMatchingFailed(Predicate predicate) { return null; } - public boolean hasMatchingFailed(Predicate predicate) { - for (String item : failed) { + public String getMatchingSucceeded(Predicate predicate) { + for (String item : succeeded) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withFailed(List failed) { - if (failed != null) { - this.failed = new ArrayList(); - for (String item : failed) { - this.addToFailed(item); - } - } else { - this.failed = null; - } - return (A) this; + public List getSucceeded() { + return this.succeeded; } - public A withFailed(String... failed) { - if (this.failed != null) { - this.failed.clear(); - _visitables.remove("failed"); - } - if (failed != null) { - for (String item : failed) { - this.addToFailed(item); - } - } - return (A) this; + public String getSucceeded(int index) { + return this.succeeded.get(index); } public boolean hasFailed() { return this.failed != null && !(this.failed.isEmpty()); } - public A addToSucceeded(int index,String item) { - if (this.succeeded == null) { - this.succeeded = new ArrayList(); - } - this.succeeded.add(index, item); - return (A) this; + public boolean hasMatchingFailed(Predicate predicate) { + for (String item : failed) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A setToSucceeded(int index,String item) { - if (this.succeeded == null) { - this.succeeded = new ArrayList(); - } - this.succeeded.set(index, item); - return (A) this; + public boolean hasMatchingSucceeded(Predicate predicate) { + for (String item : succeeded) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addToSucceeded(String... items) { - if (this.succeeded == null) { - this.succeeded = new ArrayList(); + public boolean hasSucceeded() { + return this.succeeded != null && !(this.succeeded.isEmpty()); + } + + public int hashCode() { + return Objects.hash(failed, succeeded); + } + + public A removeAllFromFailed(Collection items) { + if (this.failed == null) { + return (A) this; } for (String item : items) { - this.succeeded.add(item); + this.failed.remove(item); } return (A) this; } - public A addAllToSucceeded(Collection items) { + public A removeAllFromSucceeded(Collection items) { if (this.succeeded == null) { - this.succeeded = new ArrayList(); + return (A) this; } for (String item : items) { - this.succeeded.add(item); + this.succeeded.remove(item); } return (A) this; } - public A removeFromSucceeded(String... items) { - if (this.succeeded == null) { + public A removeFromFailed(String... items) { + if (this.failed == null) { return (A) this; } for (String item : items) { - this.succeeded.remove(item); + this.failed.remove(item); } return (A) this; } - public A removeAllFromSucceeded(Collection items) { + public A removeFromSucceeded(String... items) { if (this.succeeded == null) { return (A) this; } @@ -208,38 +231,61 @@ public A removeAllFromSucceeded(Collection items) { return (A) this; } - public List getSucceeded() { - return this.succeeded; - } - - public String getSucceeded(int index) { - return this.succeeded.get(index); + public A setToFailed(int index,String item) { + if (this.failed == null) { + this.failed = new ArrayList(); + } + this.failed.set(index, item); + return (A) this; } - public String getFirstSucceeded() { - return this.succeeded.get(0); + public A setToSucceeded(int index,String item) { + if (this.succeeded == null) { + this.succeeded = new ArrayList(); + } + this.succeeded.set(index, item); + return (A) this; } - public String getLastSucceeded() { - return this.succeeded.get(succeeded.size() - 1); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(failed == null) && !(failed.isEmpty())) { + sb.append("failed:"); + sb.append(failed); + sb.append(","); + } + if (!(succeeded == null) && !(succeeded.isEmpty())) { + sb.append("succeeded:"); + sb.append(succeeded); + } + sb.append("}"); + return sb.toString(); } - public String getMatchingSucceeded(Predicate predicate) { - for (String item : succeeded) { - if (predicate.test(item)) { - return item; + public A withFailed(List failed) { + if (failed != null) { + this.failed = new ArrayList(); + for (String item : failed) { + this.addToFailed(item); } - } - return null; + } else { + this.failed = null; + } + return (A) this; } - public boolean hasMatchingSucceeded(Predicate predicate) { - for (String item : succeeded) { - if (predicate.test(item)) { - return true; - } + public A withFailed(String... failed) { + if (this.failed != null) { + this.failed.clear(); + _visitables.remove("failed"); + } + if (failed != null) { + for (String item : failed) { + this.addToFailed(item); } - return false; + } + return (A) this; } public A withSucceeded(List succeeded) { @@ -267,49 +313,4 @@ public A withSucceeded(String... succeeded) { return (A) this; } - public boolean hasSucceeded() { - return this.succeeded != null && !(this.succeeded.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1UncountedTerminatedPodsFluent that = (V1UncountedTerminatedPodsFluent) o; - if (!(Objects.equals(failed, that.failed))) { - return false; - } - if (!(Objects.equals(succeeded, that.succeeded))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(failed, succeeded); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(failed == null) && !(failed.isEmpty())) { - sb.append("failed:"); - sb.append(failed); - sb.append(","); - } - if (!(succeeded == null) && !(succeeded.isEmpty())) { - sb.append("succeeded:"); - sb.append(succeeded); - } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java index bd278b8bde..8ba8ba7af9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1UserInfoBuilder extends V1UserInfoFluent implements VisitableBuilder{ + + V1UserInfoFluent fluent; + public V1UserInfoBuilder() { this(new V1UserInfo()); } @@ -11,17 +14,16 @@ public V1UserInfoBuilder(V1UserInfoFluent fluent) { this(fluent, new V1UserInfo()); } - public V1UserInfoBuilder(V1UserInfoFluent fluent,V1UserInfo instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1UserInfoBuilder(V1UserInfo instance) { this.fluent = this; this.copyInstance(instance); } - V1UserInfoFluent fluent; + public V1UserInfoBuilder(V1UserInfoFluent fluent,V1UserInfo instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1UserInfo build() { V1UserInfo buildable = new V1UserInfo(); buildable.setExtra(fluent.getExtra()); @@ -31,5 +33,4 @@ public V1UserInfo build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java index 2601a91eef..5805bec3b0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java @@ -1,50 +1,42 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1UserInfoFluent> extends BaseFluent{ - public V1UserInfoFluent() { - } - - public V1UserInfoFluent(V1UserInfo instance) { - this.copyInstance(instance); - } + private Map> extra; private List groups; private String uid; private String username; - - protected void copyInstance(V1UserInfo instance) { - instance = instance != null ? instance : new V1UserInfo(); - if (instance != null) { - this.withExtra(instance.getExtra()); - this.withGroups(instance.getGroups()); - this.withUid(instance.getUid()); - this.withUsername(instance.getUsername()); - } + + public V1UserInfoFluent() { } - public A addToExtra(String key,List value) { - if (this.extra == null && key != null && value != null) { - this.extra = new LinkedHashMap(); + public V1UserInfoFluent(V1UserInfo instance) { + this.copyInstance(instance); + } + + public A addAllToGroups(Collection items) { + if (this.groups == null) { + this.groups = new ArrayList(); } - if (key != null && value != null) { - this.extra.put(key, value); + for (String item : items) { + this.groups.add(item); } return (A) this; } @@ -59,47 +51,26 @@ public A addToExtra(Map> map) { return (A) this; } - public A removeFromExtra(String key) { - if (this.extra == null) { - return (A) this; + public A addToExtra(String key,List value) { + if (this.extra == null && key != null && value != null) { + this.extra = new LinkedHashMap(); } - if (key != null && this.extra != null) { - this.extra.remove(key); + if (key != null && value != null) { + this.extra.put(key, value); } return (A) this; } - public A removeFromExtra(Map> map) { - if (this.extra == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.extra != null) { - this.extra.remove(key); - } - } + public A addToGroups(String... items) { + if (this.groups == null) { + this.groups = new ArrayList(); } - return (A) this; - } - - public Map> getExtra() { - return this.extra; - } - - public A withExtra(Map> extra) { - if (extra == null) { - this.extra = null; - } else { - this.extra = new LinkedHashMap(extra); + for (String item : items) { + this.groups.add(item); } return (A) this; } - public boolean hasExtra() { - return this.extra != null; - } - public A addToGroups(int index,String item) { if (this.groups == null) { this.groups = new ArrayList(); @@ -108,64 +79,56 @@ public A addToGroups(int index,String item) { return (A) this; } - public A setToGroups(int index,String item) { - if (this.groups == null) { - this.groups = new ArrayList(); + protected void copyInstance(V1UserInfo instance) { + instance = instance != null ? instance : new V1UserInfo(); + if (instance != null) { + this.withExtra(instance.getExtra()); + this.withGroups(instance.getGroups()); + this.withUid(instance.getUid()); + this.withUsername(instance.getUsername()); } - this.groups.set(index, item); - return (A) this; } - public A addToGroups(String... items) { - if (this.groups == null) { - this.groups = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.groups.add(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A addAllToGroups(Collection items) { - if (this.groups == null) { - this.groups = new ArrayList(); + if (!(super.equals(o))) { + return false; } - for (String item : items) { - this.groups.add(item); + V1UserInfoFluent that = (V1UserInfoFluent) o; + if (!(Objects.equals(extra, that.extra))) { + return false; } - return (A) this; - } - - public A removeFromGroups(String... items) { - if (this.groups == null) { - return (A) this; + if (!(Objects.equals(groups, that.groups))) { + return false; } - for (String item : items) { - this.groups.remove(item); + if (!(Objects.equals(uid, that.uid))) { + return false; } - return (A) this; + if (!(Objects.equals(username, that.username))) { + return false; + } + return true; } - public A removeAllFromGroups(Collection items) { - if (this.groups == null) { - return (A) this; - } - for (String item : items) { - this.groups.remove(item); - } - return (A) this; + public Map> getExtra() { + return this.extra; } - public List getGroups() { - return this.groups; + public String getFirstGroup() { + return this.groups.get(0); } public String getGroup(int index) { return this.groups.get(index); } - public String getFirstGroup() { - return this.groups.get(0); + public List getGroups() { + return this.groups; } public String getLastGroup() { @@ -181,98 +144,93 @@ public String getMatchingGroup(Predicate predicate) { return null; } - public boolean hasMatchingGroup(Predicate predicate) { - for (String item : groups) { - if (predicate.test(item)) { - return true; - } - } - return false; + public String getUid() { + return this.uid; } - public A withGroups(List groups) { - if (groups != null) { - this.groups = new ArrayList(); - for (String item : groups) { - this.addToGroups(item); - } - } else { - this.groups = null; - } - return (A) this; + public String getUsername() { + return this.username; } - public A withGroups(String... groups) { - if (this.groups != null) { - this.groups.clear(); - _visitables.remove("groups"); - } - if (groups != null) { - for (String item : groups) { - this.addToGroups(item); - } - } - return (A) this; + public boolean hasExtra() { + return this.extra != null; } public boolean hasGroups() { return this.groups != null && !(this.groups.isEmpty()); } - public String getUid() { - return this.uid; - } - - public A withUid(String uid) { - this.uid = uid; - return (A) this; + public boolean hasMatchingGroup(Predicate predicate) { + for (String item : groups) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasUid() { return this.uid != null; } - public String getUsername() { - return this.username; + public boolean hasUsername() { + return this.username != null; } - public A withUsername(String username) { - this.username = username; - return (A) this; + public int hashCode() { + return Objects.hash(extra, groups, uid, username); } - public boolean hasUsername() { - return this.username != null; + public A removeAllFromGroups(Collection items) { + if (this.groups == null) { + return (A) this; + } + for (String item : items) { + this.groups.remove(item); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; + public A removeFromExtra(String key) { + if (this.extra == null) { + return (A) this; } - if (!(super.equals(o))) { - return false; + if (key != null && this.extra != null) { + this.extra.remove(key); } - V1UserInfoFluent that = (V1UserInfoFluent) o; - if (!(Objects.equals(extra, that.extra))) { - return false; + return (A) this; + } + + public A removeFromExtra(Map> map) { + if (this.extra == null) { + return (A) this; } - if (!(Objects.equals(groups, that.groups))) { - return false; + if (map != null) { + for (Object key : map.keySet()) { + if (this.extra != null) { + this.extra.remove(key); + } + } } - if (!(Objects.equals(uid, that.uid))) { - return false; + return (A) this; + } + + public A removeFromGroups(String... items) { + if (this.groups == null) { + return (A) this; } - if (!(Objects.equals(username, that.username))) { - return false; + for (String item : items) { + this.groups.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(extra, groups, uid, username); + public A setToGroups(int index,String item) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + this.groups.set(index, item); + return (A) this; } public String toString() { @@ -301,5 +259,48 @@ public String toString() { return sb.toString(); } - + public A withExtra(Map> extra) { + if (extra == null) { + this.extra = null; + } else { + this.extra = new LinkedHashMap(extra); + } + return (A) this; + } + + public A withGroups(List groups) { + if (groups != null) { + this.groups = new ArrayList(); + for (String item : groups) { + this.addToGroups(item); + } + } else { + this.groups = null; + } + return (A) this; + } + + public A withGroups(String... groups) { + if (this.groups != null) { + this.groups.clear(); + _visitables.remove("groups"); + } + if (groups != null) { + for (String item : groups) { + this.addToGroups(item); + } + } + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + + public A withUsername(String username) { + this.username = username; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectBuilder.java index 92479117e6..006e44b436 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1UserSubjectBuilder extends V1UserSubjectFluent implements VisitableBuilder{ + + V1UserSubjectFluent fluent; + public V1UserSubjectBuilder() { this(new V1UserSubject()); } @@ -11,22 +14,20 @@ public V1UserSubjectBuilder(V1UserSubjectFluent fluent) { this(fluent, new V1UserSubject()); } - public V1UserSubjectBuilder(V1UserSubjectFluent fluent,V1UserSubject instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1UserSubjectBuilder(V1UserSubject instance) { this.fluent = this; this.copyInstance(instance); } - V1UserSubjectFluent fluent; + public V1UserSubjectBuilder(V1UserSubjectFluent fluent,V1UserSubject instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1UserSubject build() { V1UserSubject buildable = new V1UserSubject(); buildable.setName(fluent.getName()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectFluent.java index fce8023127..5199c7502f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1UserSubjectFluent> extends BaseFluent{ + + private String name; + public V1UserSubjectFluent() { } public V1UserSubjectFluent(V1UserSubject instance) { this.copyInstance(instance); } - private String name; - + protected void copyInstance(V1UserSubject instance) { instance = instance != null ? instance : new V1UserSubject(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1UserSubject instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(name); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingBuilder.java index c1d4ceac8e..0715325810 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ValidatingAdmissionPolicyBindingBuilder extends V1ValidatingAdmissionPolicyBindingFluent implements VisitableBuilder{ + + V1ValidatingAdmissionPolicyBindingFluent fluent; + public V1ValidatingAdmissionPolicyBindingBuilder() { this(new V1ValidatingAdmissionPolicyBinding()); } @@ -11,17 +14,16 @@ public V1ValidatingAdmissionPolicyBindingBuilder(V1ValidatingAdmissionPolicyBind this(fluent, new V1ValidatingAdmissionPolicyBinding()); } - public V1ValidatingAdmissionPolicyBindingBuilder(V1ValidatingAdmissionPolicyBindingFluent fluent,V1ValidatingAdmissionPolicyBinding instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ValidatingAdmissionPolicyBindingBuilder(V1ValidatingAdmissionPolicyBinding instance) { this.fluent = this; this.copyInstance(instance); } - V1ValidatingAdmissionPolicyBindingFluent fluent; + public V1ValidatingAdmissionPolicyBindingBuilder(V1ValidatingAdmissionPolicyBindingFluent fluent,V1ValidatingAdmissionPolicyBinding instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingAdmissionPolicyBinding build() { V1ValidatingAdmissionPolicyBinding buildable = new V1ValidatingAdmissionPolicyBinding(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ValidatingAdmissionPolicyBinding build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingFluent.java index 3ae261a0ea..7ce536c9c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ValidatingAdmissionPolicyBindingFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ValidatingAdmissionPolicyBindingSpecBuilder spec; + public V1ValidatingAdmissionPolicyBindingFluent() { } public V1ValidatingAdmissionPolicyBindingFluent(V1ValidatingAdmissionPolicyBinding instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1ValidatingAdmissionPolicyBindingSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ValidatingAdmissionPolicyBindingSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1ValidatingAdmissionPolicyBinding instance) { instance = instance != null ? instance : new V1ValidatingAdmissionPolicyBinding(); @@ -35,60 +45,6 @@ protected void copyInstance(V1ValidatingAdmissionPolicyBinding instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ValidatingAdmissionPolicyBindingSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1ValidatingAdmissionPolicyBindingSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1ValidatingAdmissionPolicyBindingSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1ValidatingAdmissionPolicyBindingSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ValidatingAdmissionPolicyBindingSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1ValidatingAdmissionPolicyBindingSpec it return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ValidatingAdmissionPolicyBindingSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1ValidatingAdmissionPolicyBindingSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ValidatingAdmissionPolicyBindingSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicyBindingFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ValidatingAdmissionPolicyBindingSpecFluent> implements Nested{ + + V1ValidatingAdmissionPolicyBindingSpecBuilder builder; + SpecNested(V1ValidatingAdmissionPolicyBindingSpec item) { this.builder = new V1ValidatingAdmissionPolicyBindingSpecBuilder(this, item); } - V1ValidatingAdmissionPolicyBindingSpecBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicyBindingFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListBuilder.java index 3b4f0d7637..16e6c42d1b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ValidatingAdmissionPolicyBindingListBuilder extends V1ValidatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ + + V1ValidatingAdmissionPolicyBindingListFluent fluent; + public V1ValidatingAdmissionPolicyBindingListBuilder() { this(new V1ValidatingAdmissionPolicyBindingList()); } @@ -11,17 +14,16 @@ public V1ValidatingAdmissionPolicyBindingListBuilder(V1ValidatingAdmissionPolicy this(fluent, new V1ValidatingAdmissionPolicyBindingList()); } - public V1ValidatingAdmissionPolicyBindingListBuilder(V1ValidatingAdmissionPolicyBindingListFluent fluent,V1ValidatingAdmissionPolicyBindingList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ValidatingAdmissionPolicyBindingListBuilder(V1ValidatingAdmissionPolicyBindingList instance) { this.fluent = this; this.copyInstance(instance); } - V1ValidatingAdmissionPolicyBindingListFluent fluent; + public V1ValidatingAdmissionPolicyBindingListBuilder(V1ValidatingAdmissionPolicyBindingListFluent fluent,V1ValidatingAdmissionPolicyBindingList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingAdmissionPolicyBindingList build() { V1ValidatingAdmissionPolicyBindingList buildable = new V1ValidatingAdmissionPolicyBindingList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ValidatingAdmissionPolicyBindingList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListFluent.java index 7845cce75c..a0eac0a8ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ValidatingAdmissionPolicyBindingListFluent> extends BaseFluent{ - public V1ValidatingAdmissionPolicyBindingListFluent() { - } - - public V1ValidatingAdmissionPolicyBindingListFluent(V1ValidatingAdmissionPolicyBindingList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ValidatingAdmissionPolicyBindingList instance) { - instance = instance != null ? instance : new V1ValidatingAdmissionPolicyBindingList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1ValidatingAdmissionPolicyBindingListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1ValidatingAdmissionPolicyBindingListFluent(V1ValidatingAdmissionPolicyBindingList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1ValidatingAdmissionPolicyBinding item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1ValidatingAdmissionPolicyBinding item : items) { + V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1ValidatingAdmissionPolicyBinding item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ValidatingAdmissionPolicyBinding item) { + return new ItemsNested(-1, item); } public A addToItems(V1ValidatingAdmissionPolicyBinding... items) { @@ -96,68 +65,31 @@ public A addToItems(V1ValidatingAdmissionPolicyBinding... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1ValidatingAdmissionPolicyBinding item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1ValidatingAdmissionPolicyBinding item : items) { - V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); + V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1ValidatingAdmissionPolicyBinding... items) { - if (this.items == null) { - return (A) this; - } - for (V1ValidatingAdmissionPolicyBinding item : items) { - V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1ValidatingAdmissionPolicyBinding item : items) { - V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1ValidatingAdmissionPolicyBindingBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1ValidatingAdmissionPolicyBinding buildFirstItem() { + return this.items.get(0).build(); } public V1ValidatingAdmissionPolicyBinding buildItem(int index) { return this.items.get(index).build(); } - public V1ValidatingAdmissionPolicyBinding buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1ValidatingAdmissionPolicyBinding buildLastItem() { @@ -173,73 +105,34 @@ public V1ValidatingAdmissionPolicyBinding buildMatchingItem(Predicate predicate) { - for (V1ValidatingAdmissionPolicyBindingBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ValidatingAdmissionPolicyBinding item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ValidatingAdmissionPolicyBindingList instance) { + instance = instance != null ? instance : new V1ValidatingAdmissionPolicyBindingList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1ValidatingAdmissionPolicyBinding... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1ValidatingAdmissionPolicyBinding item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ValidatingAdmissionPolicyBinding item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ValidatingAdmissionPolicyBinding item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ValidatingAdmissionPolicyBindingBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ValidatingAdmissionPolicyBinding item : items) { + V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ValidatingAdmissionPolicyBinding... items) { + if (this.items == null) { + return (A) this; + } + for (V1ValidatingAdmissionPolicyBinding item : items) { + V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ValidatingAdmissionPolicyBindingBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ValidatingAdmissionPolicyBinding item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1ValidatingAdmissionPolicyBinding item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ValidatingAdmissionPolicyBinding item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ValidatingAdmissionPolicyBinding... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ValidatingAdmissionPolicyBinding item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1ValidatingAdmissionPolicyBindingFluent> implements Nested{ + + V1ValidatingAdmissionPolicyBindingBuilder builder; + int index; + ItemsNested(int index,V1ValidatingAdmissionPolicyBinding item) { this.index = index; this.builder = new V1ValidatingAdmissionPolicyBindingBuilder(this, item); } - V1ValidatingAdmissionPolicyBindingBuilder builder; - int index; - + public N and() { return (N) V1ValidatingAdmissionPolicyBindingListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicyBindingListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecBuilder.java index 1cb7b9c693..7f0202aa69 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ValidatingAdmissionPolicyBindingSpecBuilder extends V1ValidatingAdmissionPolicyBindingSpecFluent implements VisitableBuilder{ + + V1ValidatingAdmissionPolicyBindingSpecFluent fluent; + public V1ValidatingAdmissionPolicyBindingSpecBuilder() { this(new V1ValidatingAdmissionPolicyBindingSpec()); } @@ -11,17 +14,16 @@ public V1ValidatingAdmissionPolicyBindingSpecBuilder(V1ValidatingAdmissionPolicy this(fluent, new V1ValidatingAdmissionPolicyBindingSpec()); } - public V1ValidatingAdmissionPolicyBindingSpecBuilder(V1ValidatingAdmissionPolicyBindingSpecFluent fluent,V1ValidatingAdmissionPolicyBindingSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ValidatingAdmissionPolicyBindingSpecBuilder(V1ValidatingAdmissionPolicyBindingSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1ValidatingAdmissionPolicyBindingSpecFluent fluent; + public V1ValidatingAdmissionPolicyBindingSpecBuilder(V1ValidatingAdmissionPolicyBindingSpecFluent fluent,V1ValidatingAdmissionPolicyBindingSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingAdmissionPolicyBindingSpec build() { V1ValidatingAdmissionPolicyBindingSpec buildable = new V1ValidatingAdmissionPolicyBindingSpec(); buildable.setMatchResources(fluent.buildMatchResources()); @@ -31,5 +33,4 @@ public V1ValidatingAdmissionPolicyBindingSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecFluent.java index 0179dd6c05..71d30d073a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecFluent.java @@ -1,70 +1,80 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ValidatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ + + private V1MatchResourcesBuilder matchResources; + private V1ParamRefBuilder paramRef; + private String policyName; + private List validationActions; + public V1ValidatingAdmissionPolicyBindingSpecFluent() { } public V1ValidatingAdmissionPolicyBindingSpecFluent(V1ValidatingAdmissionPolicyBindingSpec instance) { this.copyInstance(instance); } - private V1MatchResourcesBuilder matchResources; - private V1ParamRefBuilder paramRef; - private String policyName; - private List validationActions; - - protected void copyInstance(V1ValidatingAdmissionPolicyBindingSpec instance) { - instance = instance != null ? instance : new V1ValidatingAdmissionPolicyBindingSpec(); - if (instance != null) { - this.withMatchResources(instance.getMatchResources()); - this.withParamRef(instance.getParamRef()); - this.withPolicyName(instance.getPolicyName()); - this.withValidationActions(instance.getValidationActions()); + + public A addAllToValidationActions(Collection items) { + if (this.validationActions == null) { + this.validationActions = new ArrayList(); + } + for (String item : items) { + this.validationActions.add(item); } + return (A) this; } - public V1MatchResources buildMatchResources() { - return this.matchResources != null ? this.matchResources.build() : null; + public A addToValidationActions(String... items) { + if (this.validationActions == null) { + this.validationActions = new ArrayList(); + } + for (String item : items) { + this.validationActions.add(item); + } + return (A) this; } - public A withMatchResources(V1MatchResources matchResources) { - this._visitables.remove("matchResources"); - if (matchResources != null) { - this.matchResources = new V1MatchResourcesBuilder(matchResources); - this._visitables.get("matchResources").add(this.matchResources); - } else { - this.matchResources = null; - this._visitables.get("matchResources").remove(this.matchResources); + public A addToValidationActions(int index,String item) { + if (this.validationActions == null) { + this.validationActions = new ArrayList(); } + this.validationActions.add(index, item); return (A) this; } - public boolean hasMatchResources() { - return this.matchResources != null; + public V1MatchResources buildMatchResources() { + return this.matchResources != null ? this.matchResources.build() : null; } - public MatchResourcesNested withNewMatchResources() { - return new MatchResourcesNested(null); + public V1ParamRef buildParamRef() { + return this.paramRef != null ? this.paramRef.build() : null; } - public MatchResourcesNested withNewMatchResourcesLike(V1MatchResources item) { - return new MatchResourcesNested(item); + protected void copyInstance(V1ValidatingAdmissionPolicyBindingSpec instance) { + instance = instance != null ? instance : new V1ValidatingAdmissionPolicyBindingSpec(); + if (instance != null) { + this.withMatchResources(instance.getMatchResources()); + this.withParamRef(instance.getParamRef()); + this.withPolicyName(instance.getPolicyName()); + this.withValidationActions(instance.getValidationActions()); + } } public MatchResourcesNested editMatchResources() { @@ -79,147 +89,199 @@ public MatchResourcesNested editOrNewMatchResourcesLike(V1MatchResources item return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(item)); } - public V1ParamRef buildParamRef() { - return this.paramRef != null ? this.paramRef.build() : null; + public ParamRefNested editOrNewParamRef() { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(new V1ParamRefBuilder().build())); } - public A withParamRef(V1ParamRef paramRef) { - this._visitables.remove("paramRef"); - if (paramRef != null) { - this.paramRef = new V1ParamRefBuilder(paramRef); - this._visitables.get("paramRef").add(this.paramRef); - } else { - this.paramRef = null; - this._visitables.get("paramRef").remove(this.paramRef); + public ParamRefNested editOrNewParamRefLike(V1ParamRef item) { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(item)); + } + + public ParamRefNested editParamRef() { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ValidatingAdmissionPolicyBindingSpecFluent that = (V1ValidatingAdmissionPolicyBindingSpecFluent) o; + if (!(Objects.equals(matchResources, that.matchResources))) { + return false; + } + if (!(Objects.equals(paramRef, that.paramRef))) { + return false; + } + if (!(Objects.equals(policyName, that.policyName))) { + return false; + } + if (!(Objects.equals(validationActions, that.validationActions))) { + return false; + } + return true; } - public boolean hasParamRef() { - return this.paramRef != null; + public String getFirstValidationAction() { + return this.validationActions.get(0); } - public ParamRefNested withNewParamRef() { - return new ParamRefNested(null); + public String getLastValidationAction() { + return this.validationActions.get(validationActions.size() - 1); } - public ParamRefNested withNewParamRefLike(V1ParamRef item) { - return new ParamRefNested(item); + public String getMatchingValidationAction(Predicate predicate) { + for (String item : validationActions) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public ParamRefNested editParamRef() { - return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(null)); + public String getPolicyName() { + return this.policyName; } - public ParamRefNested editOrNewParamRef() { - return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(new V1ParamRefBuilder().build())); + public String getValidationAction(int index) { + return this.validationActions.get(index); } - public ParamRefNested editOrNewParamRefLike(V1ParamRef item) { - return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(item)); + public List getValidationActions() { + return this.validationActions; } - public String getPolicyName() { - return this.policyName; + public boolean hasMatchResources() { + return this.matchResources != null; } - public A withPolicyName(String policyName) { - this.policyName = policyName; - return (A) this; + public boolean hasMatchingValidationAction(Predicate predicate) { + for (String item : validationActions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasParamRef() { + return this.paramRef != null; } public boolean hasPolicyName() { return this.policyName != null; } - public A addToValidationActions(int index,String item) { - if (this.validationActions == null) { - this.validationActions = new ArrayList(); - } - this.validationActions.add(index, item); - return (A) this; + public boolean hasValidationActions() { + return this.validationActions != null && !(this.validationActions.isEmpty()); } - public A setToValidationActions(int index,String item) { - if (this.validationActions == null) { - this.validationActions = new ArrayList(); - } - this.validationActions.set(index, item); - return (A) this; + public int hashCode() { + return Objects.hash(matchResources, paramRef, policyName, validationActions); } - public A addToValidationActions(String... items) { + public A removeAllFromValidationActions(Collection items) { if (this.validationActions == null) { - this.validationActions = new ArrayList(); + return (A) this; } for (String item : items) { - this.validationActions.add(item); + this.validationActions.remove(item); } return (A) this; } - public A addAllToValidationActions(Collection items) { + public A removeFromValidationActions(String... items) { if (this.validationActions == null) { - this.validationActions = new ArrayList(); + return (A) this; } for (String item : items) { - this.validationActions.add(item); + this.validationActions.remove(item); } return (A) this; } - public A removeFromValidationActions(String... items) { + public A setToValidationActions(int index,String item) { if (this.validationActions == null) { - return (A) this; - } - for (String item : items) { - this.validationActions.remove(item); + this.validationActions = new ArrayList(); } + this.validationActions.set(index, item); return (A) this; } - public A removeAllFromValidationActions(Collection items) { - if (this.validationActions == null) { - return (A) this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(matchResources == null)) { + sb.append("matchResources:"); + sb.append(matchResources); + sb.append(","); } - for (String item : items) { - this.validationActions.remove(item); + if (!(paramRef == null)) { + sb.append("paramRef:"); + sb.append(paramRef); + sb.append(","); + } + if (!(policyName == null)) { + sb.append("policyName:"); + sb.append(policyName); + sb.append(","); + } + if (!(validationActions == null) && !(validationActions.isEmpty())) { + sb.append("validationActions:"); + sb.append(validationActions); + } + sb.append("}"); + return sb.toString(); + } + + public A withMatchResources(V1MatchResources matchResources) { + this._visitables.remove("matchResources"); + if (matchResources != null) { + this.matchResources = new V1MatchResourcesBuilder(matchResources); + this._visitables.get("matchResources").add(this.matchResources); + } else { + this.matchResources = null; + this._visitables.get("matchResources").remove(this.matchResources); } return (A) this; } - public List getValidationActions() { - return this.validationActions; + public MatchResourcesNested withNewMatchResources() { + return new MatchResourcesNested(null); } - public String getValidationAction(int index) { - return this.validationActions.get(index); + public MatchResourcesNested withNewMatchResourcesLike(V1MatchResources item) { + return new MatchResourcesNested(item); } - public String getFirstValidationAction() { - return this.validationActions.get(0); + public ParamRefNested withNewParamRef() { + return new ParamRefNested(null); } - public String getLastValidationAction() { - return this.validationActions.get(validationActions.size() - 1); + public ParamRefNested withNewParamRefLike(V1ParamRef item) { + return new ParamRefNested(item); } - public String getMatchingValidationAction(Predicate predicate) { - for (String item : validationActions) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A withParamRef(V1ParamRef paramRef) { + this._visitables.remove("paramRef"); + if (paramRef != null) { + this.paramRef = new V1ParamRefBuilder(paramRef); + this._visitables.get("paramRef").add(this.paramRef); + } else { + this.paramRef = null; + this._visitables.get("paramRef").remove(this.paramRef); + } + return (A) this; } - public boolean hasMatchingValidationAction(Predicate predicate) { - for (String item : validationActions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withPolicyName(String policyName) { + this.policyName = policyName; + return (A) this; } public A withValidationActions(List validationActions) { @@ -246,72 +308,14 @@ public A withValidationActions(String... validationActions) { } return (A) this; } + public class MatchResourcesNested extends V1MatchResourcesFluent> implements Nested{ - public boolean hasValidationActions() { - return this.validationActions != null && !(this.validationActions.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ValidatingAdmissionPolicyBindingSpecFluent that = (V1ValidatingAdmissionPolicyBindingSpecFluent) o; - if (!(Objects.equals(matchResources, that.matchResources))) { - return false; - } - if (!(Objects.equals(paramRef, that.paramRef))) { - return false; - } - if (!(Objects.equals(policyName, that.policyName))) { - return false; - } - if (!(Objects.equals(validationActions, that.validationActions))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(matchResources, paramRef, policyName, validationActions); - } + V1MatchResourcesBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(matchResources == null)) { - sb.append("matchResources:"); - sb.append(matchResources); - sb.append(","); - } - if (!(paramRef == null)) { - sb.append("paramRef:"); - sb.append(paramRef); - sb.append(","); - } - if (!(policyName == null)) { - sb.append("policyName:"); - sb.append(policyName); - sb.append(","); - } - if (!(validationActions == null) && !(validationActions.isEmpty())) { - sb.append("validationActions:"); - sb.append(validationActions); - } - sb.append("}"); - return sb.toString(); - } - public class MatchResourcesNested extends V1MatchResourcesFluent> implements Nested{ MatchResourcesNested(V1MatchResources item) { this.builder = new V1MatchResourcesBuilder(this, item); } - V1MatchResourcesBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicyBindingSpecFluent.this.withMatchResources(builder.build()); } @@ -320,14 +324,15 @@ public N endMatchResources() { return and(); } - } public class ParamRefNested extends V1ParamRefFluent> implements Nested{ + + V1ParamRefBuilder builder; + ParamRefNested(V1ParamRef item) { this.builder = new V1ParamRefBuilder(this, item); } - V1ParamRefBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicyBindingSpecFluent.this.withParamRef(builder.build()); } @@ -336,7 +341,5 @@ public N endParamRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBuilder.java index 9c34436f48..f673639798 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ValidatingAdmissionPolicyBuilder extends V1ValidatingAdmissionPolicyFluent implements VisitableBuilder{ + + V1ValidatingAdmissionPolicyFluent fluent; + public V1ValidatingAdmissionPolicyBuilder() { this(new V1ValidatingAdmissionPolicy()); } @@ -11,17 +14,16 @@ public V1ValidatingAdmissionPolicyBuilder(V1ValidatingAdmissionPolicyFluent f this(fluent, new V1ValidatingAdmissionPolicy()); } - public V1ValidatingAdmissionPolicyBuilder(V1ValidatingAdmissionPolicyFluent fluent,V1ValidatingAdmissionPolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ValidatingAdmissionPolicyBuilder(V1ValidatingAdmissionPolicy instance) { this.fluent = this; this.copyInstance(instance); } - V1ValidatingAdmissionPolicyFluent fluent; + public V1ValidatingAdmissionPolicyBuilder(V1ValidatingAdmissionPolicyFluent fluent,V1ValidatingAdmissionPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingAdmissionPolicy build() { V1ValidatingAdmissionPolicy buildable = new V1ValidatingAdmissionPolicy(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1ValidatingAdmissionPolicy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyFluent.java index dd1864f3f6..12ea175d8d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1ValidatingAdmissionPolicyFluent> extends BaseFluent{ - public V1ValidatingAdmissionPolicyFluent() { - } - - public V1ValidatingAdmissionPolicyFluent(V1ValidatingAdmissionPolicy instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1ValidatingAdmissionPolicySpecBuilder spec; private V1ValidatingAdmissionPolicyStatusBuilder status; - - protected void copyInstance(V1ValidatingAdmissionPolicy instance) { - instance = instance != null ? instance : new V1ValidatingAdmissionPolicy(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1ValidatingAdmissionPolicyFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1ValidatingAdmissionPolicyFluent(V1ValidatingAdmissionPolicy instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1ValidatingAdmissionPolicySpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1ValidatingAdmissionPolicyStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1ValidatingAdmissionPolicy instance) { + instance = instance != null ? instance : new V1ValidatingAdmissionPolicy(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ValidatingAdmissionPolicySpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1ValidatingAdmissionPolicySpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1ValidatingAdmissionPolicySpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1ValidatingAdmissionPolicySpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ValidatingAdmissionPolicySpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1ValidatingAdmissionPolicySpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1ValidatingAdmissionPolicyStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1ValidatingAdmissionPolicyStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1ValidatingAdmissionPolicyStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ValidatingAdmissionPolicyStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1ValidatingAdmissionPolicyStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1ValidatingAdmissionPolicyStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ValidatingAdmissionPolicyStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1ValidatingAdmissionPolicyStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ValidatingAdmissionPolicySpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1ValidatingAdmissionPolicyStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1ValidatingAdmissionPolicySpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ValidatingAdmissionPolicySpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1ValidatingAdmissionPolicyStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1ValidatingAdmissionPolicyStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicyFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ValidatingAdmissionPolicySpecFluent> implements Nested{ + + V1ValidatingAdmissionPolicySpecBuilder builder; + SpecNested(V1ValidatingAdmissionPolicySpec item) { this.builder = new V1ValidatingAdmissionPolicySpecBuilder(this, item); } - V1ValidatingAdmissionPolicySpecBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicyFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1ValidatingAdmissionPolicyStatusFluent> implements Nested{ + + V1ValidatingAdmissionPolicyStatusBuilder builder; + StatusNested(V1ValidatingAdmissionPolicyStatus item) { this.builder = new V1ValidatingAdmissionPolicyStatusBuilder(this, item); } - V1ValidatingAdmissionPolicyStatusBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicyFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListBuilder.java index 2c145cb676..2a4bc31667 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ValidatingAdmissionPolicyListBuilder extends V1ValidatingAdmissionPolicyListFluent implements VisitableBuilder{ + + V1ValidatingAdmissionPolicyListFluent fluent; + public V1ValidatingAdmissionPolicyListBuilder() { this(new V1ValidatingAdmissionPolicyList()); } @@ -11,17 +14,16 @@ public V1ValidatingAdmissionPolicyListBuilder(V1ValidatingAdmissionPolicyListFlu this(fluent, new V1ValidatingAdmissionPolicyList()); } - public V1ValidatingAdmissionPolicyListBuilder(V1ValidatingAdmissionPolicyListFluent fluent,V1ValidatingAdmissionPolicyList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ValidatingAdmissionPolicyListBuilder(V1ValidatingAdmissionPolicyList instance) { this.fluent = this; this.copyInstance(instance); } - V1ValidatingAdmissionPolicyListFluent fluent; + public V1ValidatingAdmissionPolicyListBuilder(V1ValidatingAdmissionPolicyListFluent fluent,V1ValidatingAdmissionPolicyList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingAdmissionPolicyList build() { V1ValidatingAdmissionPolicyList buildable = new V1ValidatingAdmissionPolicyList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ValidatingAdmissionPolicyList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListFluent.java index 4df6470f09..34e1bc03a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ValidatingAdmissionPolicyListFluent> extends BaseFluent{ - public V1ValidatingAdmissionPolicyListFluent() { - } - - public V1ValidatingAdmissionPolicyListFluent(V1ValidatingAdmissionPolicyList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ValidatingAdmissionPolicyList instance) { - instance = instance != null ? instance : new V1ValidatingAdmissionPolicyList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1ValidatingAdmissionPolicyListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1ValidatingAdmissionPolicyListFluent(V1ValidatingAdmissionPolicyList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1ValidatingAdmissionPolicy item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1ValidatingAdmissionPolicy item : items) { + V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1ValidatingAdmissionPolicy item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ValidatingAdmissionPolicy item) { + return new ItemsNested(-1, item); } public A addToItems(V1ValidatingAdmissionPolicy... items) { @@ -96,68 +65,31 @@ public A addToItems(V1ValidatingAdmissionPolicy... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1ValidatingAdmissionPolicy item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1ValidatingAdmissionPolicy item : items) { - V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); + V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1ValidatingAdmissionPolicy... items) { - if (this.items == null) { - return (A) this; - } - for (V1ValidatingAdmissionPolicy item : items) { - V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1ValidatingAdmissionPolicy item : items) { - V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1ValidatingAdmissionPolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1ValidatingAdmissionPolicy buildFirstItem() { + return this.items.get(0).build(); } public V1ValidatingAdmissionPolicy buildItem(int index) { return this.items.get(index).build(); } - public V1ValidatingAdmissionPolicy buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1ValidatingAdmissionPolicy buildLastItem() { @@ -173,73 +105,34 @@ public V1ValidatingAdmissionPolicy buildMatchingItem(Predicate predicate) { - for (V1ValidatingAdmissionPolicyBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ValidatingAdmissionPolicy item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ValidatingAdmissionPolicyList instance) { + instance = instance != null ? instance : new V1ValidatingAdmissionPolicyList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1ValidatingAdmissionPolicy... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1ValidatingAdmissionPolicy item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ValidatingAdmissionPolicy item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ValidatingAdmissionPolicy item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ValidatingAdmissionPolicyBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ValidatingAdmissionPolicy item : items) { + V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ValidatingAdmissionPolicy... items) { + if (this.items == null) { + return (A) this; + } + for (V1ValidatingAdmissionPolicy item : items) { + V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ValidatingAdmissionPolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ValidatingAdmissionPolicy item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1ValidatingAdmissionPolicy item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ValidatingAdmissionPolicy item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ValidatingAdmissionPolicy... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ValidatingAdmissionPolicy item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1ValidatingAdmissionPolicyFluent> implements Nested{ + + V1ValidatingAdmissionPolicyBuilder builder; + int index; + ItemsNested(int index,V1ValidatingAdmissionPolicy item) { this.index = index; this.builder = new V1ValidatingAdmissionPolicyBuilder(this, item); } - V1ValidatingAdmissionPolicyBuilder builder; - int index; - + public N and() { return (N) V1ValidatingAdmissionPolicyListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicyListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecBuilder.java index c71be1cc79..25925c02f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ValidatingAdmissionPolicySpecBuilder extends V1ValidatingAdmissionPolicySpecFluent implements VisitableBuilder{ + + V1ValidatingAdmissionPolicySpecFluent fluent; + public V1ValidatingAdmissionPolicySpecBuilder() { this(new V1ValidatingAdmissionPolicySpec()); } @@ -11,17 +14,16 @@ public V1ValidatingAdmissionPolicySpecBuilder(V1ValidatingAdmissionPolicySpecFlu this(fluent, new V1ValidatingAdmissionPolicySpec()); } - public V1ValidatingAdmissionPolicySpecBuilder(V1ValidatingAdmissionPolicySpecFluent fluent,V1ValidatingAdmissionPolicySpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ValidatingAdmissionPolicySpecBuilder(V1ValidatingAdmissionPolicySpec instance) { this.fluent = this; this.copyInstance(instance); } - V1ValidatingAdmissionPolicySpecFluent fluent; + public V1ValidatingAdmissionPolicySpecBuilder(V1ValidatingAdmissionPolicySpecFluent fluent,V1ValidatingAdmissionPolicySpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingAdmissionPolicySpec build() { V1ValidatingAdmissionPolicySpec buildable = new V1ValidatingAdmissionPolicySpec(); buildable.setAuditAnnotations(fluent.buildAuditAnnotations()); @@ -34,5 +36,4 @@ public V1ValidatingAdmissionPolicySpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecFluent.java index 5a1e35e893..19d6e10a29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecFluent.java @@ -1,31 +1,26 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ValidatingAdmissionPolicySpecFluent> extends BaseFluent{ - public V1ValidatingAdmissionPolicySpecFluent() { - } - - public V1ValidatingAdmissionPolicySpecFluent(V1ValidatingAdmissionPolicySpec instance) { - this.copyInstance(instance); - } + private ArrayList auditAnnotations; private String failurePolicy; private ArrayList matchConditions; @@ -33,50 +28,94 @@ public V1ValidatingAdmissionPolicySpecFluent(V1ValidatingAdmissionPolicySpec ins private V1ParamKindBuilder paramKind; private ArrayList validations; private ArrayList variables; - - protected void copyInstance(V1ValidatingAdmissionPolicySpec instance) { - instance = instance != null ? instance : new V1ValidatingAdmissionPolicySpec(); - if (instance != null) { - this.withAuditAnnotations(instance.getAuditAnnotations()); - this.withFailurePolicy(instance.getFailurePolicy()); - this.withMatchConditions(instance.getMatchConditions()); - this.withMatchConstraints(instance.getMatchConstraints()); - this.withParamKind(instance.getParamKind()); - this.withValidations(instance.getValidations()); - this.withVariables(instance.getVariables()); - } + + public V1ValidatingAdmissionPolicySpecFluent() { } - public A addToAuditAnnotations(int index,V1AuditAnnotation item) { + public V1ValidatingAdmissionPolicySpecFluent(V1ValidatingAdmissionPolicySpec instance) { + this.copyInstance(instance); + } + + public A addAllToAuditAnnotations(Collection items) { if (this.auditAnnotations == null) { this.auditAnnotations = new ArrayList(); } - V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); - if (index < 0 || index >= auditAnnotations.size()) { - _visitables.get("auditAnnotations").add(builder); - auditAnnotations.add(builder); - } else { + for (V1AuditAnnotation item : items) { + V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); _visitables.get("auditAnnotations").add(builder); - auditAnnotations.add(index, builder); + this.auditAnnotations.add(builder); } return (A) this; } - public A setToAuditAnnotations(int index,V1AuditAnnotation item) { - if (this.auditAnnotations == null) { - this.auditAnnotations = new ArrayList(); + public A addAllToMatchConditions(Collection items) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); } - V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); - if (index < 0 || index >= auditAnnotations.size()) { - _visitables.get("auditAnnotations").add(builder); - auditAnnotations.add(builder); - } else { - _visitables.get("auditAnnotations").add(builder); - auditAnnotations.set(index, builder); + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } + return (A) this; + } + + public A addAllToValidations(Collection items) { + if (this.validations == null) { + this.validations = new ArrayList(); + } + for (V1Validation item : items) { + V1ValidationBuilder builder = new V1ValidationBuilder(item); + _visitables.get("validations").add(builder); + this.validations.add(builder); + } + return (A) this; + } + + public A addAllToVariables(Collection items) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + for (V1Variable item : items) { + V1VariableBuilder builder = new V1VariableBuilder(item); + _visitables.get("variables").add(builder); + this.variables.add(builder); } return (A) this; } + public AuditAnnotationsNested addNewAuditAnnotation() { + return new AuditAnnotationsNested(-1, null); + } + + public AuditAnnotationsNested addNewAuditAnnotationLike(V1AuditAnnotation item) { + return new AuditAnnotationsNested(-1, item); + } + + public MatchConditionsNested addNewMatchCondition() { + return new MatchConditionsNested(-1, null); + } + + public MatchConditionsNested addNewMatchConditionLike(V1MatchCondition item) { + return new MatchConditionsNested(-1, item); + } + + public ValidationsNested addNewValidation() { + return new ValidationsNested(-1, null); + } + + public ValidationsNested addNewValidationLike(V1Validation item) { + return new ValidationsNested(-1, item); + } + + public VariablesNested addNewVariable() { + return new VariablesNested(-1, null); + } + + public VariablesNested addNewVariableLike(V1Variable item) { + return new VariablesNested(-1, item); + } + public A addToAuditAnnotations(V1AuditAnnotation... items) { if (this.auditAnnotations == null) { this.auditAnnotations = new ArrayList(); @@ -89,377 +128,313 @@ public A addToAuditAnnotations(V1AuditAnnotation... items) { return (A) this; } - public A addAllToAuditAnnotations(Collection items) { + public A addToAuditAnnotations(int index,V1AuditAnnotation item) { if (this.auditAnnotations == null) { this.auditAnnotations = new ArrayList(); } - for (V1AuditAnnotation item : items) { - V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); + V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); + if (index < 0 || index >= auditAnnotations.size()) { _visitables.get("auditAnnotations").add(builder); - this.auditAnnotations.add(builder); + auditAnnotations.add(builder); + } else { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.add(index, builder); } return (A) this; } - public A removeFromAuditAnnotations(V1AuditAnnotation... items) { - if (this.auditAnnotations == null) { - return (A) this; + public A addToMatchConditions(V1MatchCondition... items) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); } - for (V1AuditAnnotation item : items) { - V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); - _visitables.get("auditAnnotations").remove(builder); - this.auditAnnotations.remove(builder); + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); } return (A) this; } - public A removeAllFromAuditAnnotations(Collection items) { - if (this.auditAnnotations == null) { - return (A) this; + public A addToMatchConditions(int index,V1MatchCondition item) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); } - for (V1AuditAnnotation item : items) { - V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); - _visitables.get("auditAnnotations").remove(builder); - this.auditAnnotations.remove(builder); + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.add(index, builder); } return (A) this; } - public A removeMatchingFromAuditAnnotations(Predicate predicate) { - if (auditAnnotations == null) { - return (A) this; + public A addToValidations(V1Validation... items) { + if (this.validations == null) { + this.validations = new ArrayList(); } - Iterator each = auditAnnotations.iterator(); - List visitables = _visitables.get("auditAnnotations"); - while (each.hasNext()) { - V1AuditAnnotationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (V1Validation item : items) { + V1ValidationBuilder builder = new V1ValidationBuilder(item); + _visitables.get("validations").add(builder); + this.validations.add(builder); } return (A) this; } - public List buildAuditAnnotations() { - return this.auditAnnotations != null ? build(auditAnnotations) : null; + public A addToValidations(int index,V1Validation item) { + if (this.validations == null) { + this.validations = new ArrayList(); + } + V1ValidationBuilder builder = new V1ValidationBuilder(item); + if (index < 0 || index >= validations.size()) { + _visitables.get("validations").add(builder); + validations.add(builder); + } else { + _visitables.get("validations").add(builder); + validations.add(index, builder); + } + return (A) this; + } + + public A addToVariables(V1Variable... items) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + for (V1Variable item : items) { + V1VariableBuilder builder = new V1VariableBuilder(item); + _visitables.get("variables").add(builder); + this.variables.add(builder); + } + return (A) this; + } + + public A addToVariables(int index,V1Variable item) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + V1VariableBuilder builder = new V1VariableBuilder(item); + if (index < 0 || index >= variables.size()) { + _visitables.get("variables").add(builder); + variables.add(builder); + } else { + _visitables.get("variables").add(builder); + variables.add(index, builder); + } + return (A) this; } public V1AuditAnnotation buildAuditAnnotation(int index) { return this.auditAnnotations.get(index).build(); } + public List buildAuditAnnotations() { + return this.auditAnnotations != null ? build(auditAnnotations) : null; + } + public V1AuditAnnotation buildFirstAuditAnnotation() { return this.auditAnnotations.get(0).build(); } - public V1AuditAnnotation buildLastAuditAnnotation() { - return this.auditAnnotations.get(auditAnnotations.size() - 1).build(); + public V1MatchCondition buildFirstMatchCondition() { + return this.matchConditions.get(0).build(); } - public V1AuditAnnotation buildMatchingAuditAnnotation(Predicate predicate) { - for (V1AuditAnnotationBuilder item : auditAnnotations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1Validation buildFirstValidation() { + return this.validations.get(0).build(); } - public boolean hasMatchingAuditAnnotation(Predicate predicate) { - for (V1AuditAnnotationBuilder item : auditAnnotations) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1Variable buildFirstVariable() { + return this.variables.get(0).build(); } - public A withAuditAnnotations(List auditAnnotations) { - if (this.auditAnnotations != null) { - this._visitables.get("auditAnnotations").clear(); - } - if (auditAnnotations != null) { - this.auditAnnotations = new ArrayList(); - for (V1AuditAnnotation item : auditAnnotations) { - this.addToAuditAnnotations(item); - } - } else { - this.auditAnnotations = null; - } - return (A) this; + public V1AuditAnnotation buildLastAuditAnnotation() { + return this.auditAnnotations.get(auditAnnotations.size() - 1).build(); } - public A withAuditAnnotations(V1AuditAnnotation... auditAnnotations) { - if (this.auditAnnotations != null) { - this.auditAnnotations.clear(); - _visitables.remove("auditAnnotations"); - } - if (auditAnnotations != null) { - for (V1AuditAnnotation item : auditAnnotations) { - this.addToAuditAnnotations(item); - } - } - return (A) this; + public V1MatchCondition buildLastMatchCondition() { + return this.matchConditions.get(matchConditions.size() - 1).build(); } - public boolean hasAuditAnnotations() { - return this.auditAnnotations != null && !(this.auditAnnotations.isEmpty()); + public V1Validation buildLastValidation() { + return this.validations.get(validations.size() - 1).build(); } - public AuditAnnotationsNested addNewAuditAnnotation() { - return new AuditAnnotationsNested(-1, null); + public V1Variable buildLastVariable() { + return this.variables.get(variables.size() - 1).build(); } - public AuditAnnotationsNested addNewAuditAnnotationLike(V1AuditAnnotation item) { - return new AuditAnnotationsNested(-1, item); + public V1MatchCondition buildMatchCondition(int index) { + return this.matchConditions.get(index).build(); } - public AuditAnnotationsNested setNewAuditAnnotationLike(int index,V1AuditAnnotation item) { - return new AuditAnnotationsNested(index, item); + public List buildMatchConditions() { + return this.matchConditions != null ? build(matchConditions) : null; } - public AuditAnnotationsNested editAuditAnnotation(int index) { - if (index <= auditAnnotations.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "auditAnnotations")); - } - return this.setNewAuditAnnotationLike(index, this.buildAuditAnnotation(index)); + public V1MatchResources buildMatchConstraints() { + return this.matchConstraints != null ? this.matchConstraints.build() : null; } - public AuditAnnotationsNested editFirstAuditAnnotation() { - if (auditAnnotations.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "auditAnnotations")); - } - return this.setNewAuditAnnotationLike(0, this.buildAuditAnnotation(0)); + public V1AuditAnnotation buildMatchingAuditAnnotation(Predicate predicate) { + for (V1AuditAnnotationBuilder item : auditAnnotations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public AuditAnnotationsNested editLastAuditAnnotation() { - int index = auditAnnotations.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "auditAnnotations")); - } - return this.setNewAuditAnnotationLike(index, this.buildAuditAnnotation(index)); + public V1MatchCondition buildMatchingMatchCondition(Predicate predicate) { + for (V1MatchConditionBuilder item : matchConditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public AuditAnnotationsNested editMatchingAuditAnnotation(Predicate predicate) { - int index = -1; - for (int i = 0;i < auditAnnotations.size();i++) { - if (predicate.test(auditAnnotations.get(i))) { - index = i; - break; + public V1Validation buildMatchingValidation(Predicate predicate) { + for (V1ValidationBuilder item : validations) { + if (predicate.test(item)) { + return item.build(); + } } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "auditAnnotations")); - } - return this.setNewAuditAnnotationLike(index, this.buildAuditAnnotation(index)); + return null; } - public String getFailurePolicy() { - return this.failurePolicy; + public V1Variable buildMatchingVariable(Predicate predicate) { + for (V1VariableBuilder item : variables) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public A withFailurePolicy(String failurePolicy) { - this.failurePolicy = failurePolicy; - return (A) this; + public V1ParamKind buildParamKind() { + return this.paramKind != null ? this.paramKind.build() : null; } - public boolean hasFailurePolicy() { - return this.failurePolicy != null; + public V1Validation buildValidation(int index) { + return this.validations.get(index).build(); } - public A addToMatchConditions(int index,V1MatchCondition item) { - if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); - } - V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); - } else { - _visitables.get("matchConditions").add(builder); - matchConditions.add(index, builder); - } - return (A) this; + public List buildValidations() { + return this.validations != null ? build(validations) : null; } - public A setToMatchConditions(int index,V1MatchCondition item) { - if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); - } - V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); - } else { - _visitables.get("matchConditions").add(builder); - matchConditions.set(index, builder); - } - return (A) this; + public V1Variable buildVariable(int index) { + return this.variables.get(index).build(); } - public A addToMatchConditions(V1MatchCondition... items) { - if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); - } - for (V1MatchCondition item : items) { - V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); - this.matchConditions.add(builder); - } - return (A) this; + public List buildVariables() { + return this.variables != null ? build(variables) : null; } - public A addAllToMatchConditions(Collection items) { - if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); - } - for (V1MatchCondition item : items) { - V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); - this.matchConditions.add(builder); + protected void copyInstance(V1ValidatingAdmissionPolicySpec instance) { + instance = instance != null ? instance : new V1ValidatingAdmissionPolicySpec(); + if (instance != null) { + this.withAuditAnnotations(instance.getAuditAnnotations()); + this.withFailurePolicy(instance.getFailurePolicy()); + this.withMatchConditions(instance.getMatchConditions()); + this.withMatchConstraints(instance.getMatchConstraints()); + this.withParamKind(instance.getParamKind()); + this.withValidations(instance.getValidations()); + this.withVariables(instance.getVariables()); } - return (A) this; } - public A removeFromMatchConditions(V1MatchCondition... items) { - if (this.matchConditions == null) { - return (A) this; - } - for (V1MatchCondition item : items) { - V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - _visitables.get("matchConditions").remove(builder); - this.matchConditions.remove(builder); + public AuditAnnotationsNested editAuditAnnotation(int index) { + if (auditAnnotations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "auditAnnotations")); } - return (A) this; + return this.setNewAuditAnnotationLike(index, this.buildAuditAnnotation(index)); } - public A removeAllFromMatchConditions(Collection items) { - if (this.matchConditions == null) { - return (A) this; - } - for (V1MatchCondition item : items) { - V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - _visitables.get("matchConditions").remove(builder); - this.matchConditions.remove(builder); + public AuditAnnotationsNested editFirstAuditAnnotation() { + if (auditAnnotations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "auditAnnotations")); } - return (A) this; + return this.setNewAuditAnnotationLike(0, this.buildAuditAnnotation(0)); } - public A removeMatchingFromMatchConditions(Predicate predicate) { - if (matchConditions == null) { - return (A) this; - } - Iterator each = matchConditions.iterator(); - List visitables = _visitables.get("matchConditions"); - while (each.hasNext()) { - V1MatchConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public MatchConditionsNested editFirstMatchCondition() { + if (matchConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchConditions")); } - return (A) this; - } - - public List buildMatchConditions() { - return this.matchConditions != null ? build(matchConditions) : null; - } - - public V1MatchCondition buildMatchCondition(int index) { - return this.matchConditions.get(index).build(); - } - - public V1MatchCondition buildFirstMatchCondition() { - return this.matchConditions.get(0).build(); - } - - public V1MatchCondition buildLastMatchCondition() { - return this.matchConditions.get(matchConditions.size() - 1).build(); - } - - public V1MatchCondition buildMatchingMatchCondition(Predicate predicate) { - for (V1MatchConditionBuilder item : matchConditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingMatchCondition(Predicate predicate) { - for (V1MatchConditionBuilder item : matchConditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); } - public A withMatchConditions(List matchConditions) { - if (this.matchConditions != null) { - this._visitables.get("matchConditions").clear(); - } - if (matchConditions != null) { - this.matchConditions = new ArrayList(); - for (V1MatchCondition item : matchConditions) { - this.addToMatchConditions(item); - } - } else { - this.matchConditions = null; + public ValidationsNested editFirstValidation() { + if (validations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "validations")); } - return (A) this; + return this.setNewValidationLike(0, this.buildValidation(0)); } - public A withMatchConditions(V1MatchCondition... matchConditions) { - if (this.matchConditions != null) { - this.matchConditions.clear(); - _visitables.remove("matchConditions"); - } - if (matchConditions != null) { - for (V1MatchCondition item : matchConditions) { - this.addToMatchConditions(item); - } + public VariablesNested editFirstVariable() { + if (variables.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "variables")); } - return (A) this; + return this.setNewVariableLike(0, this.buildVariable(0)); } - public boolean hasMatchConditions() { - return this.matchConditions != null && !(this.matchConditions.isEmpty()); + public AuditAnnotationsNested editLastAuditAnnotation() { + int index = auditAnnotations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "auditAnnotations")); + } + return this.setNewAuditAnnotationLike(index, this.buildAuditAnnotation(index)); } - public MatchConditionsNested addNewMatchCondition() { - return new MatchConditionsNested(-1, null); + public MatchConditionsNested editLastMatchCondition() { + int index = matchConditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } - public MatchConditionsNested addNewMatchConditionLike(V1MatchCondition item) { - return new MatchConditionsNested(-1, item); + public ValidationsNested editLastValidation() { + int index = validations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "validations")); + } + return this.setNewValidationLike(index, this.buildValidation(index)); } - public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondition item) { - return new MatchConditionsNested(index, item); + public VariablesNested editLastVariable() { + int index = variables.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); } public MatchConditionsNested editMatchCondition(int index) { - if (index <= matchConditions.size()) { + if (matchConditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchConditions")); } return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } - public MatchConditionsNested editFirstMatchCondition() { - if (matchConditions.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchConditions")); - } - return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); + public MatchConstraintsNested editMatchConstraints() { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(null)); } - public MatchConditionsNested editLastMatchCondition() { - int index = matchConditions.size() - 1; + public AuditAnnotationsNested editMatchingAuditAnnotation(Predicate predicate) { + int index = -1; + for (int i = 0;i < auditAnnotations.size();i++) { + if (predicate.test(auditAnnotations.get(i))) { + index = i; + break; + } + } if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchConditions")); + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "auditAnnotations")); } - return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); + return this.setNewAuditAnnotationLike(index, this.buildAuditAnnotation(index)); } public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { @@ -476,36 +451,32 @@ public MatchConditionsNested editMatchingMatchCondition(Predicate editMatchingValidation(Predicate predicate) { + int index = -1; + for (int i = 0;i < validations.size();i++) { + if (predicate.test(validations.get(i))) { + index = i; + break; + } } - return (A) this; - } - - public boolean hasMatchConstraints() { - return this.matchConstraints != null; - } - - public MatchConstraintsNested withNewMatchConstraints() { - return new MatchConstraintsNested(null); - } - - public MatchConstraintsNested withNewMatchConstraintsLike(V1MatchResources item) { - return new MatchConstraintsNested(item); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "validations")); + } + return this.setNewValidationLike(index, this.buildValidation(index)); } - public MatchConstraintsNested editMatchConstraints() { - return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(null)); + public VariablesNested editMatchingVariable(Predicate predicate) { + int index = -1; + for (int i = 0;i < variables.size();i++) { + if (predicate.test(variables.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); } public MatchConstraintsNested editOrNewMatchConstraints() { @@ -516,163 +487,103 @@ public MatchConstraintsNested editOrNewMatchConstraintsLike(V1MatchResources return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(item)); } - public V1ParamKind buildParamKind() { - return this.paramKind != null ? this.paramKind.build() : null; - } - - public A withParamKind(V1ParamKind paramKind) { - this._visitables.remove("paramKind"); - if (paramKind != null) { - this.paramKind = new V1ParamKindBuilder(paramKind); - this._visitables.get("paramKind").add(this.paramKind); - } else { - this.paramKind = null; - this._visitables.get("paramKind").remove(this.paramKind); - } - return (A) this; - } - - public boolean hasParamKind() { - return this.paramKind != null; - } - - public ParamKindNested withNewParamKind() { - return new ParamKindNested(null); + public ParamKindNested editOrNewParamKind() { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(new V1ParamKindBuilder().build())); } - public ParamKindNested withNewParamKindLike(V1ParamKind item) { - return new ParamKindNested(item); + public ParamKindNested editOrNewParamKindLike(V1ParamKind item) { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(item)); } public ParamKindNested editParamKind() { return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(null)); } - public ParamKindNested editOrNewParamKind() { - return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(new V1ParamKindBuilder().build())); + public ValidationsNested editValidation(int index) { + if (validations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "validations")); + } + return this.setNewValidationLike(index, this.buildValidation(index)); } - public ParamKindNested editOrNewParamKindLike(V1ParamKind item) { - return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(item)); + public VariablesNested editVariable(int index) { + if (variables.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); } - public A addToValidations(int index,V1Validation item) { - if (this.validations == null) { - this.validations = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - V1ValidationBuilder builder = new V1ValidationBuilder(item); - if (index < 0 || index >= validations.size()) { - _visitables.get("validations").add(builder); - validations.add(builder); - } else { - _visitables.get("validations").add(builder); - validations.add(index, builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A setToValidations(int index,V1Validation item) { - if (this.validations == null) { - this.validations = new ArrayList(); + if (!(super.equals(o))) { + return false; } - V1ValidationBuilder builder = new V1ValidationBuilder(item); - if (index < 0 || index >= validations.size()) { - _visitables.get("validations").add(builder); - validations.add(builder); - } else { - _visitables.get("validations").add(builder); - validations.set(index, builder); + V1ValidatingAdmissionPolicySpecFluent that = (V1ValidatingAdmissionPolicySpecFluent) o; + if (!(Objects.equals(auditAnnotations, that.auditAnnotations))) { + return false; } - return (A) this; - } - - public A addToValidations(V1Validation... items) { - if (this.validations == null) { - this.validations = new ArrayList(); + if (!(Objects.equals(failurePolicy, that.failurePolicy))) { + return false; } - for (V1Validation item : items) { - V1ValidationBuilder builder = new V1ValidationBuilder(item); - _visitables.get("validations").add(builder); - this.validations.add(builder); + if (!(Objects.equals(matchConditions, that.matchConditions))) { + return false; } - return (A) this; - } - - public A addAllToValidations(Collection items) { - if (this.validations == null) { - this.validations = new ArrayList(); + if (!(Objects.equals(matchConstraints, that.matchConstraints))) { + return false; } - for (V1Validation item : items) { - V1ValidationBuilder builder = new V1ValidationBuilder(item); - _visitables.get("validations").add(builder); - this.validations.add(builder); + if (!(Objects.equals(paramKind, that.paramKind))) { + return false; } - return (A) this; - } - - public A removeFromValidations(V1Validation... items) { - if (this.validations == null) { - return (A) this; + if (!(Objects.equals(validations, that.validations))) { + return false; } - for (V1Validation item : items) { - V1ValidationBuilder builder = new V1ValidationBuilder(item); - _visitables.get("validations").remove(builder); - this.validations.remove(builder); + if (!(Objects.equals(variables, that.variables))) { + return false; } - return (A) this; + return true; } - public A removeAllFromValidations(Collection items) { - if (this.validations == null) { - return (A) this; - } - for (V1Validation item : items) { - V1ValidationBuilder builder = new V1ValidationBuilder(item); - _visitables.get("validations").remove(builder); - this.validations.remove(builder); - } - return (A) this; + public String getFailurePolicy() { + return this.failurePolicy; } - public A removeMatchingFromValidations(Predicate predicate) { - if (validations == null) { - return (A) this; - } - Iterator each = validations.iterator(); - List visitables = _visitables.get("validations"); - while (each.hasNext()) { - V1ValidationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public boolean hasAuditAnnotations() { + return this.auditAnnotations != null && !(this.auditAnnotations.isEmpty()); } - public List buildValidations() { - return this.validations != null ? build(validations) : null; + public boolean hasFailurePolicy() { + return this.failurePolicy != null; } - public V1Validation buildValidation(int index) { - return this.validations.get(index).build(); + public boolean hasMatchConditions() { + return this.matchConditions != null && !(this.matchConditions.isEmpty()); } - public V1Validation buildFirstValidation() { - return this.validations.get(0).build(); + public boolean hasMatchConstraints() { + return this.matchConstraints != null; } - public V1Validation buildLastValidation() { - return this.validations.get(validations.size() - 1).build(); + public boolean hasMatchingAuditAnnotation(Predicate predicate) { + for (V1AuditAnnotationBuilder item : auditAnnotations) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public V1Validation buildMatchingValidation(Predicate predicate) { - for (V1ValidationBuilder item : validations) { + public boolean hasMatchingMatchCondition(Predicate predicate) { + for (V1MatchConditionBuilder item : matchConditions) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingValidation(Predicate predicate) { @@ -684,153 +595,116 @@ public boolean hasMatchingValidation(Predicate predicate) { return false; } - public A withValidations(List validations) { - if (this.validations != null) { - this._visitables.get("validations").clear(); - } - if (validations != null) { - this.validations = new ArrayList(); - for (V1Validation item : validations) { - this.addToValidations(item); + public boolean hasMatchingVariable(Predicate predicate) { + for (V1VariableBuilder item : variables) { + if (predicate.test(item)) { + return true; } - } else { - this.validations = null; - } - return (A) this; + } + return false; } - public A withValidations(V1Validation... validations) { - if (this.validations != null) { - this.validations.clear(); - _visitables.remove("validations"); - } - if (validations != null) { - for (V1Validation item : validations) { - this.addToValidations(item); - } - } - return (A) this; + public boolean hasParamKind() { + return this.paramKind != null; } public boolean hasValidations() { return this.validations != null && !(this.validations.isEmpty()); } - public ValidationsNested addNewValidation() { - return new ValidationsNested(-1, null); - } - - public ValidationsNested addNewValidationLike(V1Validation item) { - return new ValidationsNested(-1, item); - } - - public ValidationsNested setNewValidationLike(int index,V1Validation item) { - return new ValidationsNested(index, item); - } - - public ValidationsNested editValidation(int index) { - if (index <= validations.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "validations")); - } - return this.setNewValidationLike(index, this.buildValidation(index)); - } - - public ValidationsNested editFirstValidation() { - if (validations.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "validations")); - } - return this.setNewValidationLike(0, this.buildValidation(0)); + public boolean hasVariables() { + return this.variables != null && !(this.variables.isEmpty()); } - public ValidationsNested editLastValidation() { - int index = validations.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "validations")); - } - return this.setNewValidationLike(index, this.buildValidation(index)); + public int hashCode() { + return Objects.hash(auditAnnotations, failurePolicy, matchConditions, matchConstraints, paramKind, validations, variables); } - public ValidationsNested editMatchingValidation(Predicate predicate) { - int index = -1; - for (int i = 0;i < validations.size();i++) { - if (predicate.test(validations.get(i))) { - index = i; - break; - } + public A removeAllFromAuditAnnotations(Collection items) { + if (this.auditAnnotations == null) { + return (A) this; } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "validations")); + for (V1AuditAnnotation item : items) { + V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); + _visitables.get("auditAnnotations").remove(builder); + this.auditAnnotations.remove(builder); } - return this.setNewValidationLike(index, this.buildValidation(index)); + return (A) this; } - public A addToVariables(int index,V1Variable item) { - if (this.variables == null) { - this.variables = new ArrayList(); + public A removeAllFromMatchConditions(Collection items) { + if (this.matchConditions == null) { + return (A) this; } - V1VariableBuilder builder = new V1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { - _visitables.get("variables").add(builder); - variables.add(builder); - } else { - _visitables.get("variables").add(builder); - variables.add(index, builder); + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); } return (A) this; } - public A setToVariables(int index,V1Variable item) { - if (this.variables == null) { - this.variables = new ArrayList(); + public A removeAllFromValidations(Collection items) { + if (this.validations == null) { + return (A) this; } - V1VariableBuilder builder = new V1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { - _visitables.get("variables").add(builder); - variables.add(builder); - } else { - _visitables.get("variables").add(builder); - variables.set(index, builder); + for (V1Validation item : items) { + V1ValidationBuilder builder = new V1ValidationBuilder(item); + _visitables.get("validations").remove(builder); + this.validations.remove(builder); } return (A) this; } - public A addToVariables(V1Variable... items) { + public A removeAllFromVariables(Collection items) { if (this.variables == null) { - this.variables = new ArrayList(); + return (A) this; } for (V1Variable item : items) { V1VariableBuilder builder = new V1VariableBuilder(item); - _visitables.get("variables").add(builder); - this.variables.add(builder); + _visitables.get("variables").remove(builder); + this.variables.remove(builder); } return (A) this; } - public A addAllToVariables(Collection items) { - if (this.variables == null) { - this.variables = new ArrayList(); + public A removeFromAuditAnnotations(V1AuditAnnotation... items) { + if (this.auditAnnotations == null) { + return (A) this; } - for (V1Variable item : items) { - V1VariableBuilder builder = new V1VariableBuilder(item); - _visitables.get("variables").add(builder); - this.variables.add(builder); + for (V1AuditAnnotation item : items) { + V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); + _visitables.get("auditAnnotations").remove(builder); + this.auditAnnotations.remove(builder); } return (A) this; } - public A removeFromVariables(V1Variable... items) { - if (this.variables == null) { + public A removeFromMatchConditions(V1MatchCondition... items) { + if (this.matchConditions == null) { return (A) this; } - for (V1Variable item : items) { - V1VariableBuilder builder = new V1VariableBuilder(item); - _visitables.get("variables").remove(builder); - this.variables.remove(builder); + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); } return (A) this; } - public A removeAllFromVariables(Collection items) { + public A removeFromValidations(V1Validation... items) { + if (this.validations == null) { + return (A) this; + } + for (V1Validation item : items) { + V1ValidationBuilder builder = new V1ValidationBuilder(item); + _visitables.get("validations").remove(builder); + this.validations.remove(builder); + } + return (A) this; + } + + public A removeFromVariables(V1Variable... items) { if (this.variables == null) { return (A) this; } @@ -842,14 +716,14 @@ public A removeAllFromVariables(Collection items) { return (A) this; } - public A removeMatchingFromVariables(Predicate predicate) { - if (variables == null) { + public A removeMatchingFromAuditAnnotations(Predicate predicate) { + if (auditAnnotations == null) { return (A) this; } - Iterator each = variables.iterator(); - List visitables = _visitables.get("variables"); + Iterator each = auditAnnotations.iterator(); + List visitables = _visitables.get("auditAnnotations"); while (each.hasNext()) { - V1VariableBuilder builder = each.next(); + V1AuditAnnotationBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -858,157 +732,128 @@ public A removeMatchingFromVariables(Predicate predicate) { return (A) this; } - public List buildVariables() { - return this.variables != null ? build(variables) : null; - } - - public V1Variable buildVariable(int index) { - return this.variables.get(index).build(); - } - - public V1Variable buildFirstVariable() { - return this.variables.get(0).build(); - } - - public V1Variable buildLastVariable() { - return this.variables.get(variables.size() - 1).build(); - } - - public V1Variable buildMatchingVariable(Predicate predicate) { - for (V1VariableBuilder item : variables) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingVariable(Predicate predicate) { - for (V1VariableBuilder item : variables) { - if (predicate.test(item)) { - return true; + public A removeMatchingFromMatchConditions(Predicate predicate) { + if (matchConditions == null) { + return (A) this; + } + Iterator each = matchConditions.iterator(); + List visitables = _visitables.get("matchConditions"); + while (each.hasNext()) { + V1MatchConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } - return false; + } + return (A) this; } - public A withVariables(List variables) { - if (this.variables != null) { - this._visitables.get("variables").clear(); + public A removeMatchingFromValidations(Predicate predicate) { + if (validations == null) { + return (A) this; } - if (variables != null) { - this.variables = new ArrayList(); - for (V1Variable item : variables) { - this.addToVariables(item); + Iterator each = validations.iterator(); + List visitables = _visitables.get("validations"); + while (each.hasNext()) { + V1ValidationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } else { - this.variables = null; } return (A) this; } - public A withVariables(V1Variable... variables) { - if (this.variables != null) { - this.variables.clear(); - _visitables.remove("variables"); + public A removeMatchingFromVariables(Predicate predicate) { + if (variables == null) { + return (A) this; } - if (variables != null) { - for (V1Variable item : variables) { - this.addToVariables(item); - } + Iterator each = variables.iterator(); + List visitables = _visitables.get("variables"); + while (each.hasNext()) { + V1VariableBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasVariables() { - return this.variables != null && !(this.variables.isEmpty()); + public AuditAnnotationsNested setNewAuditAnnotationLike(int index,V1AuditAnnotation item) { + return new AuditAnnotationsNested(index, item); } - public VariablesNested addNewVariable() { - return new VariablesNested(-1, null); + public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondition item) { + return new MatchConditionsNested(index, item); } - public VariablesNested addNewVariableLike(V1Variable item) { - return new VariablesNested(-1, item); + public ValidationsNested setNewValidationLike(int index,V1Validation item) { + return new ValidationsNested(index, item); } public VariablesNested setNewVariableLike(int index,V1Variable item) { return new VariablesNested(index, item); } - public VariablesNested editVariable(int index) { - if (index <= variables.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "variables")); - } - return this.setNewVariableLike(index, this.buildVariable(index)); - } - - public VariablesNested editFirstVariable() { - if (variables.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "variables")); - } - return this.setNewVariableLike(0, this.buildVariable(0)); - } - - public VariablesNested editLastVariable() { - int index = variables.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "variables")); - } - return this.setNewVariableLike(index, this.buildVariable(index)); - } - - public VariablesNested editMatchingVariable(Predicate predicate) { - int index = -1; - for (int i = 0;i < variables.size();i++) { - if (predicate.test(variables.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "variables")); - } - return this.setNewVariableLike(index, this.buildVariable(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ValidatingAdmissionPolicySpecFluent that = (V1ValidatingAdmissionPolicySpecFluent) o; - if (!(Objects.equals(auditAnnotations, that.auditAnnotations))) { - return false; - } - if (!(Objects.equals(failurePolicy, that.failurePolicy))) { - return false; + public A setToAuditAnnotations(int index,V1AuditAnnotation item) { + if (this.auditAnnotations == null) { + this.auditAnnotations = new ArrayList(); } - if (!(Objects.equals(matchConditions, that.matchConditions))) { - return false; + V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); + if (index < 0 || index >= auditAnnotations.size()) { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.add(builder); + } else { + _visitables.get("auditAnnotations").add(builder); + auditAnnotations.set(index, builder); } - if (!(Objects.equals(matchConstraints, that.matchConstraints))) { - return false; + return (A) this; + } + + public A setToMatchConditions(int index,V1MatchCondition item) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); } - if (!(Objects.equals(paramKind, that.paramKind))) { - return false; + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.set(index, builder); } - if (!(Objects.equals(validations, that.validations))) { - return false; + return (A) this; + } + + public A setToValidations(int index,V1Validation item) { + if (this.validations == null) { + this.validations = new ArrayList(); } - if (!(Objects.equals(variables, that.variables))) { - return false; + V1ValidationBuilder builder = new V1ValidationBuilder(item); + if (index < 0 || index >= validations.size()) { + _visitables.get("validations").add(builder); + validations.add(builder); + } else { + _visitables.get("validations").add(builder); + validations.set(index, builder); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(auditAnnotations, failurePolicy, matchConditions, matchConstraints, paramKind, validations, variables); + public A setToVariables(int index,V1Variable item) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + V1VariableBuilder builder = new V1VariableBuilder(item); + if (index < 0 || index >= variables.size()) { + _visitables.get("variables").add(builder); + variables.add(builder); + } else { + _visitables.get("variables").add(builder); + variables.set(index, builder); + } + return (A) this; } public String toString() { @@ -1051,14 +896,173 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAuditAnnotations(List auditAnnotations) { + if (this.auditAnnotations != null) { + this._visitables.get("auditAnnotations").clear(); + } + if (auditAnnotations != null) { + this.auditAnnotations = new ArrayList(); + for (V1AuditAnnotation item : auditAnnotations) { + this.addToAuditAnnotations(item); + } + } else { + this.auditAnnotations = null; + } + return (A) this; + } + + public A withAuditAnnotations(V1AuditAnnotation... auditAnnotations) { + if (this.auditAnnotations != null) { + this.auditAnnotations.clear(); + _visitables.remove("auditAnnotations"); + } + if (auditAnnotations != null) { + for (V1AuditAnnotation item : auditAnnotations) { + this.addToAuditAnnotations(item); + } + } + return (A) this; + } + + public A withFailurePolicy(String failurePolicy) { + this.failurePolicy = failurePolicy; + return (A) this; + } + + public A withMatchConditions(List matchConditions) { + if (this.matchConditions != null) { + this._visitables.get("matchConditions").clear(); + } + if (matchConditions != null) { + this.matchConditions = new ArrayList(); + for (V1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } else { + this.matchConditions = null; + } + return (A) this; + } + + public A withMatchConditions(V1MatchCondition... matchConditions) { + if (this.matchConditions != null) { + this.matchConditions.clear(); + _visitables.remove("matchConditions"); + } + if (matchConditions != null) { + for (V1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } + return (A) this; + } + + public A withMatchConstraints(V1MatchResources matchConstraints) { + this._visitables.remove("matchConstraints"); + if (matchConstraints != null) { + this.matchConstraints = new V1MatchResourcesBuilder(matchConstraints); + this._visitables.get("matchConstraints").add(this.matchConstraints); + } else { + this.matchConstraints = null; + this._visitables.get("matchConstraints").remove(this.matchConstraints); + } + return (A) this; + } + + public MatchConstraintsNested withNewMatchConstraints() { + return new MatchConstraintsNested(null); + } + + public MatchConstraintsNested withNewMatchConstraintsLike(V1MatchResources item) { + return new MatchConstraintsNested(item); + } + + public ParamKindNested withNewParamKind() { + return new ParamKindNested(null); + } + + public ParamKindNested withNewParamKindLike(V1ParamKind item) { + return new ParamKindNested(item); + } + + public A withParamKind(V1ParamKind paramKind) { + this._visitables.remove("paramKind"); + if (paramKind != null) { + this.paramKind = new V1ParamKindBuilder(paramKind); + this._visitables.get("paramKind").add(this.paramKind); + } else { + this.paramKind = null; + this._visitables.get("paramKind").remove(this.paramKind); + } + return (A) this; + } + + public A withValidations(List validations) { + if (this.validations != null) { + this._visitables.get("validations").clear(); + } + if (validations != null) { + this.validations = new ArrayList(); + for (V1Validation item : validations) { + this.addToValidations(item); + } + } else { + this.validations = null; + } + return (A) this; + } + + public A withValidations(V1Validation... validations) { + if (this.validations != null) { + this.validations.clear(); + _visitables.remove("validations"); + } + if (validations != null) { + for (V1Validation item : validations) { + this.addToValidations(item); + } + } + return (A) this; + } + + public A withVariables(List variables) { + if (this.variables != null) { + this._visitables.get("variables").clear(); + } + if (variables != null) { + this.variables = new ArrayList(); + for (V1Variable item : variables) { + this.addToVariables(item); + } + } else { + this.variables = null; + } + return (A) this; + } + + public A withVariables(V1Variable... variables) { + if (this.variables != null) { + this.variables.clear(); + _visitables.remove("variables"); + } + if (variables != null) { + for (V1Variable item : variables) { + this.addToVariables(item); + } + } + return (A) this; + } public class AuditAnnotationsNested extends V1AuditAnnotationFluent> implements Nested{ + + V1AuditAnnotationBuilder builder; + int index; + AuditAnnotationsNested(int index,V1AuditAnnotation item) { this.index = index; this.builder = new V1AuditAnnotationBuilder(this, item); } - V1AuditAnnotationBuilder builder; - int index; - + public N and() { return (N) V1ValidatingAdmissionPolicySpecFluent.this.setToAuditAnnotations(index, builder.build()); } @@ -1067,16 +1071,17 @@ public N endAuditAnnotation() { return and(); } - } public class MatchConditionsNested extends V1MatchConditionFluent> implements Nested{ + + V1MatchConditionBuilder builder; + int index; + MatchConditionsNested(int index,V1MatchCondition item) { this.index = index; this.builder = new V1MatchConditionBuilder(this, item); } - V1MatchConditionBuilder builder; - int index; - + public N and() { return (N) V1ValidatingAdmissionPolicySpecFluent.this.setToMatchConditions(index, builder.build()); } @@ -1085,14 +1090,15 @@ public N endMatchCondition() { return and(); } - } public class MatchConstraintsNested extends V1MatchResourcesFluent> implements Nested{ + + V1MatchResourcesBuilder builder; + MatchConstraintsNested(V1MatchResources item) { this.builder = new V1MatchResourcesBuilder(this, item); } - V1MatchResourcesBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicySpecFluent.this.withMatchConstraints(builder.build()); } @@ -1101,14 +1107,15 @@ public N endMatchConstraints() { return and(); } - } public class ParamKindNested extends V1ParamKindFluent> implements Nested{ + + V1ParamKindBuilder builder; + ParamKindNested(V1ParamKind item) { this.builder = new V1ParamKindBuilder(this, item); } - V1ParamKindBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicySpecFluent.this.withParamKind(builder.build()); } @@ -1117,16 +1124,17 @@ public N endParamKind() { return and(); } - } public class ValidationsNested extends V1ValidationFluent> implements Nested{ + + V1ValidationBuilder builder; + int index; + ValidationsNested(int index,V1Validation item) { this.index = index; this.builder = new V1ValidationBuilder(this, item); } - V1ValidationBuilder builder; - int index; - + public N and() { return (N) V1ValidatingAdmissionPolicySpecFluent.this.setToValidations(index, builder.build()); } @@ -1135,16 +1143,17 @@ public N endValidation() { return and(); } - } public class VariablesNested extends V1VariableFluent> implements Nested{ + + V1VariableBuilder builder; + int index; + VariablesNested(int index,V1Variable item) { this.index = index; this.builder = new V1VariableBuilder(this, item); } - V1VariableBuilder builder; - int index; - + public N and() { return (N) V1ValidatingAdmissionPolicySpecFluent.this.setToVariables(index, builder.build()); } @@ -1153,7 +1162,5 @@ public N endVariable() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusBuilder.java index a21fcf6f7d..0a3c80769b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ValidatingAdmissionPolicyStatusBuilder extends V1ValidatingAdmissionPolicyStatusFluent implements VisitableBuilder{ + + V1ValidatingAdmissionPolicyStatusFluent fluent; + public V1ValidatingAdmissionPolicyStatusBuilder() { this(new V1ValidatingAdmissionPolicyStatus()); } @@ -11,17 +14,16 @@ public V1ValidatingAdmissionPolicyStatusBuilder(V1ValidatingAdmissionPolicyStatu this(fluent, new V1ValidatingAdmissionPolicyStatus()); } - public V1ValidatingAdmissionPolicyStatusBuilder(V1ValidatingAdmissionPolicyStatusFluent fluent,V1ValidatingAdmissionPolicyStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ValidatingAdmissionPolicyStatusBuilder(V1ValidatingAdmissionPolicyStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ValidatingAdmissionPolicyStatusFluent fluent; + public V1ValidatingAdmissionPolicyStatusBuilder(V1ValidatingAdmissionPolicyStatusFluent fluent,V1ValidatingAdmissionPolicyStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingAdmissionPolicyStatus build() { V1ValidatingAdmissionPolicyStatus buildable = new V1ValidatingAdmissionPolicyStatus(); buildable.setConditions(fluent.buildConditions()); @@ -30,5 +32,4 @@ public V1ValidatingAdmissionPolicyStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusFluent.java index 5e6af2c572..3ae878e8d1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusFluent.java @@ -1,73 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; -import java.lang.Long; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ValidatingAdmissionPolicyStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + private Long observedGeneration; + private V1TypeCheckingBuilder typeChecking; + public V1ValidatingAdmissionPolicyStatusFluent() { } public V1ValidatingAdmissionPolicyStatusFluent(V1ValidatingAdmissionPolicyStatus instance) { this.copyInstance(instance); } - private ArrayList conditions; - private Long observedGeneration; - private V1TypeCheckingBuilder typeChecking; - - protected void copyInstance(V1ValidatingAdmissionPolicyStatus instance) { - instance = instance != null ? instance : new V1ValidatingAdmissionPolicyStatus(); - if (instance != null) { - this.withConditions(instance.getConditions()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withTypeChecking(instance.getTypeChecking()); - } - } - - public A addToConditions(int index,V1Condition item) { + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1Condition... items) { @@ -82,66 +65,29 @@ public A addToConditions(V1Condition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1Condition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1Condition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -159,61 +105,21 @@ public V1Condition buildMatchingCondition(Predicate predicat return null; } - public boolean hasMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + public V1TypeChecking buildTypeChecking() { + return this.typeChecking != null ? this.typeChecking.build() : null; } - public A withConditions(V1Condition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1Condition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1ValidatingAdmissionPolicyStatus instance) { + instance = instance != null ? instance : new V1ValidatingAdmissionPolicyStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withTypeChecking(instance.getTypeChecking()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -248,51 +154,6 @@ public ConditionsNested editMatchingCondition(Predicate p return this.setNewConditionLike(index, this.buildCondition(index)); } - public Long getObservedGeneration() { - return this.observedGeneration; - } - - public A withObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - return (A) this; - } - - public boolean hasObservedGeneration() { - return this.observedGeneration != null; - } - - public V1TypeChecking buildTypeChecking() { - return this.typeChecking != null ? this.typeChecking.build() : null; - } - - public A withTypeChecking(V1TypeChecking typeChecking) { - this._visitables.remove("typeChecking"); - if (typeChecking != null) { - this.typeChecking = new V1TypeCheckingBuilder(typeChecking); - this._visitables.get("typeChecking").add(this.typeChecking); - } else { - this.typeChecking = null; - this._visitables.get("typeChecking").remove(this.typeChecking); - } - return (A) this; - } - - public boolean hasTypeChecking() { - return this.typeChecking != null; - } - - public TypeCheckingNested withNewTypeChecking() { - return new TypeCheckingNested(null); - } - - public TypeCheckingNested withNewTypeCheckingLike(V1TypeChecking item) { - return new TypeCheckingNested(item); - } - - public TypeCheckingNested editTypeChecking() { - return this.withNewTypeCheckingLike(Optional.ofNullable(this.buildTypeChecking()).orElse(null)); - } - public TypeCheckingNested editOrNewTypeChecking() { return this.withNewTypeCheckingLike(Optional.ofNullable(this.buildTypeChecking()).orElse(new V1TypeCheckingBuilder().build())); } @@ -301,6 +162,10 @@ public TypeCheckingNested editOrNewTypeCheckingLike(V1TypeChecking item) { return this.withNewTypeCheckingLike(Optional.ofNullable(this.buildTypeChecking()).orElse(item)); } + public TypeCheckingNested editTypeChecking() { + return this.withNewTypeCheckingLike(Optional.ofNullable(this.buildTypeChecking()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -324,10 +189,94 @@ public boolean equals(Object o) { return true; } + public Long getObservedGeneration() { + return this.observedGeneration; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasObservedGeneration() { + return this.observedGeneration != null; + } + + public boolean hasTypeChecking() { + return this.typeChecking != null; + } + public int hashCode() { return Objects.hash(conditions, observedGeneration, typeChecking); } + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1Condition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -348,14 +297,69 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public TypeCheckingNested withNewTypeChecking() { + return new TypeCheckingNested(null); + } + + public TypeCheckingNested withNewTypeCheckingLike(V1TypeChecking item) { + return new TypeCheckingNested(item); + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public A withTypeChecking(V1TypeChecking typeChecking) { + this._visitables.remove("typeChecking"); + if (typeChecking != null) { + this.typeChecking = new V1TypeCheckingBuilder(typeChecking); + this._visitables.get("typeChecking").add(this.typeChecking); + } else { + this.typeChecking = null; + this._visitables.get("typeChecking").remove(this.typeChecking); + } + return (A) this; + } public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + ConditionsNested(int index,V1Condition item) { this.index = index; this.builder = new V1ConditionBuilder(this, item); } - V1ConditionBuilder builder; - int index; - + public N and() { return (N) V1ValidatingAdmissionPolicyStatusFluent.this.setToConditions(index, builder.build()); } @@ -364,14 +368,15 @@ public N endCondition() { return and(); } - } public class TypeCheckingNested extends V1TypeCheckingFluent> implements Nested{ + + V1TypeCheckingBuilder builder; + TypeCheckingNested(V1TypeChecking item) { this.builder = new V1TypeCheckingBuilder(this, item); } - V1TypeCheckingBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicyStatusFluent.this.withTypeChecking(builder.build()); } @@ -380,7 +385,5 @@ public N endTypeChecking() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java index c8f2782016..ff17de02ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ValidatingWebhookBuilder extends V1ValidatingWebhookFluent implements VisitableBuilder{ + + V1ValidatingWebhookFluent fluent; + public V1ValidatingWebhookBuilder() { this(new V1ValidatingWebhook()); } @@ -11,17 +14,16 @@ public V1ValidatingWebhookBuilder(V1ValidatingWebhookFluent fluent) { this(fluent, new V1ValidatingWebhook()); } - public V1ValidatingWebhookBuilder(V1ValidatingWebhookFluent fluent,V1ValidatingWebhook instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ValidatingWebhookBuilder(V1ValidatingWebhook instance) { this.fluent = this; this.copyInstance(instance); } - V1ValidatingWebhookFluent fluent; + public V1ValidatingWebhookBuilder(V1ValidatingWebhookFluent fluent,V1ValidatingWebhook instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingWebhook build() { V1ValidatingWebhook buildable = new V1ValidatingWebhook(); buildable.setAdmissionReviewVersions(fluent.getAdmissionReviewVersions()); @@ -38,5 +40,4 @@ public V1ValidatingWebhook build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java index 3dd3d20e21..53c719003e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ValidatingWebhookConfigurationBuilder extends V1ValidatingWebhookConfigurationFluent implements VisitableBuilder{ + + V1ValidatingWebhookConfigurationFluent fluent; + public V1ValidatingWebhookConfigurationBuilder() { this(new V1ValidatingWebhookConfiguration()); } @@ -11,17 +14,16 @@ public V1ValidatingWebhookConfigurationBuilder(V1ValidatingWebhookConfigurationF this(fluent, new V1ValidatingWebhookConfiguration()); } - public V1ValidatingWebhookConfigurationBuilder(V1ValidatingWebhookConfigurationFluent fluent,V1ValidatingWebhookConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ValidatingWebhookConfigurationBuilder(V1ValidatingWebhookConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1ValidatingWebhookConfigurationFluent fluent; + public V1ValidatingWebhookConfigurationBuilder(V1ValidatingWebhookConfigurationFluent fluent,V1ValidatingWebhookConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingWebhookConfiguration build() { V1ValidatingWebhookConfiguration buildable = new V1ValidatingWebhookConfiguration(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ValidatingWebhookConfiguration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java index 136018909b..36e41e796e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java @@ -1,140 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ValidatingWebhookConfigurationFluent> extends BaseFluent{ - public V1ValidatingWebhookConfigurationFluent() { - } - - public V1ValidatingWebhookConfigurationFluent(V1ValidatingWebhookConfiguration instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private ArrayList webhooks; - - protected void copyInstance(V1ValidatingWebhookConfiguration instance) { - instance = instance != null ? instance : new V1ValidatingWebhookConfiguration(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withWebhooks(instance.getWebhooks()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + + public V1ValidatingWebhookConfigurationFluent() { } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + public V1ValidatingWebhookConfigurationFluent(V1ValidatingWebhookConfiguration instance) { + this.copyInstance(instance); } - - public A addToWebhooks(int index,V1ValidatingWebhook item) { + + public A addAllToWebhooks(Collection items) { if (this.webhooks == null) { this.webhooks = new ArrayList(); } - V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); - if (index < 0 || index >= webhooks.size()) { - _visitables.get("webhooks").add(builder); - webhooks.add(builder); - } else { + for (V1ValidatingWebhook item : items) { + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); _visitables.get("webhooks").add(builder); - webhooks.add(index, builder); + this.webhooks.add(builder); } return (A) this; } - public A setToWebhooks(int index,V1ValidatingWebhook item) { - if (this.webhooks == null) { - this.webhooks = new ArrayList(); - } - V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); - if (index < 0 || index >= webhooks.size()) { - _visitables.get("webhooks").add(builder); - webhooks.add(builder); - } else { - _visitables.get("webhooks").add(builder); - webhooks.set(index, builder); - } - return (A) this; + public WebhooksNested addNewWebhook() { + return new WebhooksNested(-1, null); + } + + public WebhooksNested addNewWebhookLike(V1ValidatingWebhook item) { + return new WebhooksNested(-1, item); } public A addToWebhooks(V1ValidatingWebhook... items) { @@ -149,66 +65,21 @@ public A addToWebhooks(V1ValidatingWebhook... items) { return (A) this; } - public A addAllToWebhooks(Collection items) { + public A addToWebhooks(int index,V1ValidatingWebhook item) { if (this.webhooks == null) { this.webhooks = new ArrayList(); } - for (V1ValidatingWebhook item : items) { - V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); + if (index < 0 || index >= webhooks.size()) { _visitables.get("webhooks").add(builder); - this.webhooks.add(builder); - } - return (A) this; - } - - public A removeFromWebhooks(V1ValidatingWebhook... items) { - if (this.webhooks == null) { - return (A) this; - } - for (V1ValidatingWebhook item : items) { - V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); - _visitables.get("webhooks").remove(builder); - this.webhooks.remove(builder); - } - return (A) this; - } - - public A removeAllFromWebhooks(Collection items) { - if (this.webhooks == null) { - return (A) this; - } - for (V1ValidatingWebhook item : items) { - V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); - _visitables.get("webhooks").remove(builder); - this.webhooks.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromWebhooks(Predicate predicate) { - if (webhooks == null) { - return (A) this; - } - Iterator each = webhooks.iterator(); - List visitables = _visitables.get("webhooks"); - while (each.hasNext()) { - V1ValidatingWebhookBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + webhooks.add(builder); + } else { + _visitables.get("webhooks").add(builder); + webhooks.add(index, builder); } return (A) this; } - public List buildWebhooks() { - return this.webhooks != null ? build(webhooks) : null; - } - - public V1ValidatingWebhook buildWebhook(int index) { - return this.webhooks.get(index).build(); - } - public V1ValidatingWebhook buildFirstWebhook() { return this.webhooks.get(0).build(); } @@ -226,64 +97,26 @@ public V1ValidatingWebhook buildMatchingWebhook(Predicate predicate) { - for (V1ValidatingWebhookBuilder item : webhooks) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withWebhooks(List webhooks) { - if (this.webhooks != null) { - this._visitables.get("webhooks").clear(); - } - if (webhooks != null) { - this.webhooks = new ArrayList(); - for (V1ValidatingWebhook item : webhooks) { - this.addToWebhooks(item); - } - } else { - this.webhooks = null; - } - return (A) this; - } - - public A withWebhooks(V1ValidatingWebhook... webhooks) { - if (this.webhooks != null) { - this.webhooks.clear(); - _visitables.remove("webhooks"); - } - if (webhooks != null) { - for (V1ValidatingWebhook item : webhooks) { - this.addToWebhooks(item); - } - } - return (A) this; - } - - public boolean hasWebhooks() { - return this.webhooks != null && !(this.webhooks.isEmpty()); - } - - public WebhooksNested addNewWebhook() { - return new WebhooksNested(-1, null); + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public WebhooksNested addNewWebhookLike(V1ValidatingWebhook item) { - return new WebhooksNested(-1, item); + public V1ValidatingWebhook buildWebhook(int index) { + return this.webhooks.get(index).build(); } - public WebhooksNested setNewWebhookLike(int index,V1ValidatingWebhook item) { - return new WebhooksNested(index, item); + public List buildWebhooks() { + return this.webhooks != null ? build(webhooks) : null; } - public WebhooksNested editWebhook(int index) { - if (index <= webhooks.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "webhooks")); + protected void copyInstance(V1ValidatingWebhookConfiguration instance) { + instance = instance != null ? instance : new V1ValidatingWebhookConfiguration(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withWebhooks(instance.getWebhooks()); } - return this.setNewWebhookLike(index, this.buildWebhook(index)); } public WebhooksNested editFirstWebhook() { @@ -315,6 +148,25 @@ public WebhooksNested editMatchingWebhook(Predicate editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public WebhooksNested editWebhook(int index) { + if (webhooks.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "webhooks")); + } + return this.setNewWebhookLike(index, this.buildWebhook(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingWebhook(Predicate predicate) { + for (V1ValidatingWebhookBuilder item : webhooks) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasWebhooks() { + return this.webhooks != null && !(this.webhooks.isEmpty()); + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, webhooks); } + public A removeAllFromWebhooks(Collection items) { + if (this.webhooks == null) { + return (A) this; + } + for (V1ValidatingWebhook item : items) { + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); + _visitables.get("webhooks").remove(builder); + this.webhooks.remove(builder); + } + return (A) this; + } + + public A removeFromWebhooks(V1ValidatingWebhook... items) { + if (this.webhooks == null) { + return (A) this; + } + for (V1ValidatingWebhook item : items) { + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); + _visitables.get("webhooks").remove(builder); + this.webhooks.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromWebhooks(Predicate predicate) { + if (webhooks == null) { + return (A) this; + } + Iterator each = webhooks.iterator(); + List visitables = _visitables.get("webhooks"); + while (each.hasNext()) { + V1ValidatingWebhookBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public WebhooksNested setNewWebhookLike(int index,V1ValidatingWebhook item) { + return new WebhooksNested(index, item); + } + + public A setToWebhooks(int index,V1ValidatingWebhook item) { + if (this.webhooks == null) { + this.webhooks = new ArrayList(); + } + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); + if (index < 0 || index >= webhooks.size()) { + _visitables.get("webhooks").add(builder); + webhooks.add(builder); + } else { + _visitables.get("webhooks").add(builder); + webhooks.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,12 +314,72 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public A withWebhooks(List webhooks) { + if (this.webhooks != null) { + this._visitables.get("webhooks").clear(); + } + if (webhooks != null) { + this.webhooks = new ArrayList(); + for (V1ValidatingWebhook item : webhooks) { + this.addToWebhooks(item); + } + } else { + this.webhooks = null; + } + return (A) this; + } + + public A withWebhooks(V1ValidatingWebhook... webhooks) { + if (this.webhooks != null) { + this.webhooks.clear(); + _visitables.remove("webhooks"); + } + if (webhooks != null) { + for (V1ValidatingWebhook item : webhooks) { + this.addToWebhooks(item); + } + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ValidatingWebhookConfigurationFluent.this.withMetadata(builder.build()); } @@ -384,16 +388,17 @@ public N endMetadata() { return and(); } - } public class WebhooksNested extends V1ValidatingWebhookFluent> implements Nested{ + + V1ValidatingWebhookBuilder builder; + int index; + WebhooksNested(int index,V1ValidatingWebhook item) { this.index = index; this.builder = new V1ValidatingWebhookBuilder(this, item); } - V1ValidatingWebhookBuilder builder; - int index; - + public N and() { return (N) V1ValidatingWebhookConfigurationFluent.this.setToWebhooks(index, builder.build()); } @@ -402,7 +407,5 @@ public N endWebhook() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java index 6cdd0f61a0..94009a720f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ValidatingWebhookConfigurationListBuilder extends V1ValidatingWebhookConfigurationListFluent implements VisitableBuilder{ + + V1ValidatingWebhookConfigurationListFluent fluent; + public V1ValidatingWebhookConfigurationListBuilder() { this(new V1ValidatingWebhookConfigurationList()); } @@ -11,17 +14,16 @@ public V1ValidatingWebhookConfigurationListBuilder(V1ValidatingWebhookConfigurat this(fluent, new V1ValidatingWebhookConfigurationList()); } - public V1ValidatingWebhookConfigurationListBuilder(V1ValidatingWebhookConfigurationListFluent fluent,V1ValidatingWebhookConfigurationList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ValidatingWebhookConfigurationListBuilder(V1ValidatingWebhookConfigurationList instance) { this.fluent = this; this.copyInstance(instance); } - V1ValidatingWebhookConfigurationListFluent fluent; + public V1ValidatingWebhookConfigurationListBuilder(V1ValidatingWebhookConfigurationListFluent fluent,V1ValidatingWebhookConfigurationList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingWebhookConfigurationList build() { V1ValidatingWebhookConfigurationList buildable = new V1ValidatingWebhookConfigurationList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1ValidatingWebhookConfigurationList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java index 5786b1ccf1..43db929c58 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ValidatingWebhookConfigurationListFluent> extends BaseFluent{ - public V1ValidatingWebhookConfigurationListFluent() { - } - - public V1ValidatingWebhookConfigurationListFluent(V1ValidatingWebhookConfigurationList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ValidatingWebhookConfigurationList instance) { - instance = instance != null ? instance : new V1ValidatingWebhookConfigurationList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1ValidatingWebhookConfigurationListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1ValidatingWebhookConfigurationListFluent(V1ValidatingWebhookConfigurationList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1ValidatingWebhookConfiguration item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1ValidatingWebhookConfiguration item : items) { + V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1ValidatingWebhookConfiguration item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ValidatingWebhookConfiguration item) { + return new ItemsNested(-1, item); } public A addToItems(V1ValidatingWebhookConfiguration... items) { @@ -96,68 +65,31 @@ public A addToItems(V1ValidatingWebhookConfiguration... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1ValidatingWebhookConfiguration item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1ValidatingWebhookConfiguration item : items) { - V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); + V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1ValidatingWebhookConfiguration... items) { - if (this.items == null) { - return (A) this; - } - for (V1ValidatingWebhookConfiguration item : items) { - V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1ValidatingWebhookConfiguration item : items) { - V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1ValidatingWebhookConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1ValidatingWebhookConfiguration buildFirstItem() { + return this.items.get(0).build(); } public V1ValidatingWebhookConfiguration buildItem(int index) { return this.items.get(index).build(); } - public V1ValidatingWebhookConfiguration buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1ValidatingWebhookConfiguration buildLastItem() { @@ -173,73 +105,34 @@ public V1ValidatingWebhookConfiguration buildMatchingItem(Predicate predicate) { - for (V1ValidatingWebhookConfigurationBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1ValidatingWebhookConfiguration item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1ValidatingWebhookConfigurationList instance) { + instance = instance != null ? instance : new V1ValidatingWebhookConfigurationList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1ValidatingWebhookConfiguration... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1ValidatingWebhookConfiguration item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ValidatingWebhookConfiguration item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ValidatingWebhookConfiguration item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ValidatingWebhookConfigurationBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ValidatingWebhookConfiguration item : items) { + V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ValidatingWebhookConfiguration... items) { + if (this.items == null) { + return (A) this; + } + for (V1ValidatingWebhookConfiguration item : items) { + V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ValidatingWebhookConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ValidatingWebhookConfiguration item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1ValidatingWebhookConfiguration item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ValidatingWebhookConfiguration item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ValidatingWebhookConfiguration... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ValidatingWebhookConfiguration item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1ValidatingWebhookConfigurationFluent> implements Nested{ + + V1ValidatingWebhookConfigurationBuilder builder; + int index; + ItemsNested(int index,V1ValidatingWebhookConfiguration item) { this.index = index; this.builder = new V1ValidatingWebhookConfigurationBuilder(this, item); } - V1ValidatingWebhookConfigurationBuilder builder; - int index; - + public N and() { return (N) V1ValidatingWebhookConfigurationListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ValidatingWebhookConfigurationListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java index 1d8bc891e8..da3b9c913c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; -import java.lang.Integer; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1ValidatingWebhookFluent> extends BaseFluent{ - public V1ValidatingWebhookFluent() { - } - - public V1ValidatingWebhookFluent(V1ValidatingWebhook instance) { - this.copyInstance(instance); - } + private List admissionReviewVersions; private AdmissionregistrationV1WebhookClientConfigBuilder clientConfig; private String failurePolicy; @@ -38,41 +33,15 @@ public V1ValidatingWebhookFluent(V1ValidatingWebhook instance) { private ArrayList rules; private String sideEffects; private Integer timeoutSeconds; - - protected void copyInstance(V1ValidatingWebhook instance) { - instance = instance != null ? instance : new V1ValidatingWebhook(); - if (instance != null) { - this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); - this.withClientConfig(instance.getClientConfig()); - this.withFailurePolicy(instance.getFailurePolicy()); - this.withMatchConditions(instance.getMatchConditions()); - this.withMatchPolicy(instance.getMatchPolicy()); - this.withName(instance.getName()); - this.withNamespaceSelector(instance.getNamespaceSelector()); - this.withObjectSelector(instance.getObjectSelector()); - this.withRules(instance.getRules()); - this.withSideEffects(instance.getSideEffects()); - this.withTimeoutSeconds(instance.getTimeoutSeconds()); - } - } - - public A addToAdmissionReviewVersions(int index,String item) { - if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); - } - this.admissionReviewVersions.add(index, item); - return (A) this; + + public V1ValidatingWebhookFluent() { } - public A setToAdmissionReviewVersions(int index,String item) { - if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); - } - this.admissionReviewVersions.set(index, item); - return (A) this; + public V1ValidatingWebhookFluent(V1ValidatingWebhook instance) { + this.copyInstance(instance); } - - public A addToAdmissionReviewVersions(String... items) { + + public A addAllToAdmissionReviewVersions(Collection items) { if (this.admissionReviewVersions == null) { this.admissionReviewVersions = new ArrayList(); } @@ -82,346 +51,238 @@ public A addToAdmissionReviewVersions(String... items) { return (A) this; } - public A addAllToAdmissionReviewVersions(Collection items) { - if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new ArrayList(); + public A addAllToMatchConditions(Collection items) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); } - for (String item : items) { - this.admissionReviewVersions.add(item); + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); } return (A) this; } - public A removeFromAdmissionReviewVersions(String... items) { - if (this.admissionReviewVersions == null) { - return (A) this; + public A addAllToRules(Collection items) { + if (this.rules == null) { + this.rules = new ArrayList(); } - for (String item : items) { - this.admissionReviewVersions.remove(item); + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); } return (A) this; } - public A removeAllFromAdmissionReviewVersions(Collection items) { - if (this.admissionReviewVersions == null) { - return (A) this; - } - for (String item : items) { - this.admissionReviewVersions.remove(item); - } - return (A) this; + public MatchConditionsNested addNewMatchCondition() { + return new MatchConditionsNested(-1, null); } - public List getAdmissionReviewVersions() { - return this.admissionReviewVersions; + public MatchConditionsNested addNewMatchConditionLike(V1MatchCondition item) { + return new MatchConditionsNested(-1, item); } - public String getAdmissionReviewVersion(int index) { - return this.admissionReviewVersions.get(index); + public RulesNested addNewRule() { + return new RulesNested(-1, null); } - public String getFirstAdmissionReviewVersion() { - return this.admissionReviewVersions.get(0); + public RulesNested addNewRuleLike(V1RuleWithOperations item) { + return new RulesNested(-1, item); } - public String getLastAdmissionReviewVersion() { - return this.admissionReviewVersions.get(admissionReviewVersions.size() - 1); + public A addToAdmissionReviewVersions(String... items) { + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } + for (String item : items) { + this.admissionReviewVersions.add(item); + } + return (A) this; } - public String getMatchingAdmissionReviewVersion(Predicate predicate) { - for (String item : admissionReviewVersions) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A addToAdmissionReviewVersions(int index,String item) { + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } + this.admissionReviewVersions.add(index, item); + return (A) this; } - public boolean hasMatchingAdmissionReviewVersion(Predicate predicate) { - for (String item : admissionReviewVersions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A addToMatchConditions(V1MatchCondition... items) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } + return (A) this; } - public A withAdmissionReviewVersions(List admissionReviewVersions) { - if (admissionReviewVersions != null) { - this.admissionReviewVersions = new ArrayList(); - for (String item : admissionReviewVersions) { - this.addToAdmissionReviewVersions(item); - } + public A addToMatchConditions(int index,V1MatchCondition item) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); } else { - this.admissionReviewVersions = null; + _visitables.get("matchConditions").add(builder); + matchConditions.add(index, builder); } return (A) this; } - public A withAdmissionReviewVersions(String... admissionReviewVersions) { - if (this.admissionReviewVersions != null) { - this.admissionReviewVersions.clear(); - _visitables.remove("admissionReviewVersions"); + public A addToRules(V1RuleWithOperations... items) { + if (this.rules == null) { + this.rules = new ArrayList(); } - if (admissionReviewVersions != null) { - for (String item : admissionReviewVersions) { - this.addToAdmissionReviewVersions(item); - } + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); } return (A) this; } - public boolean hasAdmissionReviewVersions() { - return this.admissionReviewVersions != null && !(this.admissionReviewVersions.isEmpty()); + public A addToRules(int index,V1RuleWithOperations item) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.add(index, builder); + } + return (A) this; } public AdmissionregistrationV1WebhookClientConfig buildClientConfig() { return this.clientConfig != null ? this.clientConfig.build() : null; } - public A withClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig) { - this._visitables.remove("clientConfig"); - if (clientConfig != null) { - this.clientConfig = new AdmissionregistrationV1WebhookClientConfigBuilder(clientConfig); - this._visitables.get("clientConfig").add(this.clientConfig); - } else { - this.clientConfig = null; - this._visitables.get("clientConfig").remove(this.clientConfig); - } - return (A) this; + public V1MatchCondition buildFirstMatchCondition() { + return this.matchConditions.get(0).build(); } - public boolean hasClientConfig() { - return this.clientConfig != null; + public V1RuleWithOperations buildFirstRule() { + return this.rules.get(0).build(); } - public ClientConfigNested withNewClientConfig() { - return new ClientConfigNested(null); + public V1MatchCondition buildLastMatchCondition() { + return this.matchConditions.get(matchConditions.size() - 1).build(); } - public ClientConfigNested withNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { - return new ClientConfigNested(item); + public V1RuleWithOperations buildLastRule() { + return this.rules.get(rules.size() - 1).build(); } - public ClientConfigNested editClientConfig() { - return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(null)); + public V1MatchCondition buildMatchCondition(int index) { + return this.matchConditions.get(index).build(); } - public ClientConfigNested editOrNewClientConfig() { - return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(new AdmissionregistrationV1WebhookClientConfigBuilder().build())); + public List buildMatchConditions() { + return this.matchConditions != null ? build(matchConditions) : null; } - public ClientConfigNested editOrNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { - return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(item)); + public V1MatchCondition buildMatchingMatchCondition(Predicate predicate) { + for (V1MatchConditionBuilder item : matchConditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public String getFailurePolicy() { - return this.failurePolicy; + public V1RuleWithOperations buildMatchingRule(Predicate predicate) { + for (V1RuleWithOperationsBuilder item : rules) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public A withFailurePolicy(String failurePolicy) { - this.failurePolicy = failurePolicy; - return (A) this; + public V1LabelSelector buildNamespaceSelector() { + return this.namespaceSelector != null ? this.namespaceSelector.build() : null; } - public boolean hasFailurePolicy() { - return this.failurePolicy != null; + public V1LabelSelector buildObjectSelector() { + return this.objectSelector != null ? this.objectSelector.build() : null; } - public A addToMatchConditions(int index,V1MatchCondition item) { - if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); - } - V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); - } else { - _visitables.get("matchConditions").add(builder); - matchConditions.add(index, builder); - } - return (A) this; - } - - public A setToMatchConditions(int index,V1MatchCondition item) { - if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); - } - V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); - } else { - _visitables.get("matchConditions").add(builder); - matchConditions.set(index, builder); - } - return (A) this; + public V1RuleWithOperations buildRule(int index) { + return this.rules.get(index).build(); } - public A addToMatchConditions(V1MatchCondition... items) { - if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); - } - for (V1MatchCondition item : items) { - V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); - this.matchConditions.add(builder); - } - return (A) this; + public List buildRules() { + return this.rules != null ? build(rules) : null; } - public A addAllToMatchConditions(Collection items) { - if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); - } - for (V1MatchCondition item : items) { - V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); - this.matchConditions.add(builder); + protected void copyInstance(V1ValidatingWebhook instance) { + instance = instance != null ? instance : new V1ValidatingWebhook(); + if (instance != null) { + this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); + this.withClientConfig(instance.getClientConfig()); + this.withFailurePolicy(instance.getFailurePolicy()); + this.withMatchConditions(instance.getMatchConditions()); + this.withMatchPolicy(instance.getMatchPolicy()); + this.withName(instance.getName()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withObjectSelector(instance.getObjectSelector()); + this.withRules(instance.getRules()); + this.withSideEffects(instance.getSideEffects()); + this.withTimeoutSeconds(instance.getTimeoutSeconds()); } - return (A) this; } - public A removeFromMatchConditions(V1MatchCondition... items) { - if (this.matchConditions == null) { - return (A) this; - } - for (V1MatchCondition item : items) { - V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - _visitables.get("matchConditions").remove(builder); - this.matchConditions.remove(builder); - } - return (A) this; + public ClientConfigNested editClientConfig() { + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(null)); } - public A removeAllFromMatchConditions(Collection items) { - if (this.matchConditions == null) { - return (A) this; - } - for (V1MatchCondition item : items) { - V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - _visitables.get("matchConditions").remove(builder); - this.matchConditions.remove(builder); + public MatchConditionsNested editFirstMatchCondition() { + if (matchConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchConditions")); } - return (A) this; + return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); } - public A removeMatchingFromMatchConditions(Predicate predicate) { - if (matchConditions == null) { - return (A) this; - } - Iterator each = matchConditions.iterator(); - List visitables = _visitables.get("matchConditions"); - while (each.hasNext()) { - V1MatchConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public RulesNested editFirstRule() { + if (rules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); } - return (A) this; - } - - public List buildMatchConditions() { - return this.matchConditions != null ? build(matchConditions) : null; - } - - public V1MatchCondition buildMatchCondition(int index) { - return this.matchConditions.get(index).build(); - } - - public V1MatchCondition buildFirstMatchCondition() { - return this.matchConditions.get(0).build(); - } - - public V1MatchCondition buildLastMatchCondition() { - return this.matchConditions.get(matchConditions.size() - 1).build(); - } - - public V1MatchCondition buildMatchingMatchCondition(Predicate predicate) { - for (V1MatchConditionBuilder item : matchConditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingMatchCondition(Predicate predicate) { - for (V1MatchConditionBuilder item : matchConditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + return this.setNewRuleLike(0, this.buildRule(0)); } - public A withMatchConditions(List matchConditions) { - if (this.matchConditions != null) { - this._visitables.get("matchConditions").clear(); - } - if (matchConditions != null) { - this.matchConditions = new ArrayList(); - for (V1MatchCondition item : matchConditions) { - this.addToMatchConditions(item); - } - } else { - this.matchConditions = null; + public MatchConditionsNested editLastMatchCondition() { + int index = matchConditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchConditions")); } - return (A) this; + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } - public A withMatchConditions(V1MatchCondition... matchConditions) { - if (this.matchConditions != null) { - this.matchConditions.clear(); - _visitables.remove("matchConditions"); - } - if (matchConditions != null) { - for (V1MatchCondition item : matchConditions) { - this.addToMatchConditions(item); - } + public RulesNested editLastRule() { + int index = rules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); } - return (A) this; - } - - public boolean hasMatchConditions() { - return this.matchConditions != null && !(this.matchConditions.isEmpty()); - } - - public MatchConditionsNested addNewMatchCondition() { - return new MatchConditionsNested(-1, null); - } - - public MatchConditionsNested addNewMatchConditionLike(V1MatchCondition item) { - return new MatchConditionsNested(-1, item); - } - - public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondition item) { - return new MatchConditionsNested(index, item); + return this.setNewRuleLike(index, this.buildRule(index)); } public MatchConditionsNested editMatchCondition(int index) { - if (index <= matchConditions.size()) { + if (matchConditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchConditions")); } return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } - public MatchConditionsNested editFirstMatchCondition() { - if (matchConditions.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchConditions")); - } - return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); - } - - public MatchConditionsNested editLastMatchCondition() { - int index = matchConditions.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchConditions")); - } - return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); - } - public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { int index = -1; for (int i = 0;i < matchConditions.size();i++) { @@ -436,62 +297,34 @@ public MatchConditionsNested editMatchingMatchCondition(Predicate editMatchingRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < rules.size();i++) { + if (predicate.test(rules.get(i))) { + index = i; + break; + } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - public boolean hasNamespaceSelector() { - return this.namespaceSelector != null; + public NamespaceSelectorNested editNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); } - public NamespaceSelectorNested withNewNamespaceSelector() { - return new NamespaceSelectorNested(null); + public ObjectSelectorNested editObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); } - public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { - return new NamespaceSelectorNested(item); + public ClientConfigNested editOrNewClientConfig() { + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(new AdmissionregistrationV1WebhookClientConfigBuilder().build())); } - public NamespaceSelectorNested editNamespaceSelector() { - return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); + public ClientConfigNested editOrNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(item)); } public NamespaceSelectorNested editOrNewNamespaceSelector() { @@ -502,163 +335,149 @@ public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); } - public V1LabelSelector buildObjectSelector() { - return this.objectSelector != null ? this.objectSelector.build() : null; + public ObjectSelectorNested editOrNewObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public A withObjectSelector(V1LabelSelector objectSelector) { - this._visitables.remove("objectSelector"); - if (objectSelector != null) { - this.objectSelector = new V1LabelSelectorBuilder(objectSelector); - this._visitables.get("objectSelector").add(this.objectSelector); - } else { - this.objectSelector = null; - this._visitables.get("objectSelector").remove(this.objectSelector); - } - return (A) this; + public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); } - public boolean hasObjectSelector() { - return this.objectSelector != null; + public RulesNested editRule(int index) { + if (rules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - public ObjectSelectorNested withNewObjectSelector() { - return new ObjectSelectorNested(null); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ValidatingWebhookFluent that = (V1ValidatingWebhookFluent) o; + if (!(Objects.equals(admissionReviewVersions, that.admissionReviewVersions))) { + return false; + } + if (!(Objects.equals(clientConfig, that.clientConfig))) { + return false; + } + if (!(Objects.equals(failurePolicy, that.failurePolicy))) { + return false; + } + if (!(Objects.equals(matchConditions, that.matchConditions))) { + return false; + } + if (!(Objects.equals(matchPolicy, that.matchPolicy))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { + return false; + } + if (!(Objects.equals(objectSelector, that.objectSelector))) { + return false; + } + if (!(Objects.equals(rules, that.rules))) { + return false; + } + if (!(Objects.equals(sideEffects, that.sideEffects))) { + return false; + } + if (!(Objects.equals(timeoutSeconds, that.timeoutSeconds))) { + return false; + } + return true; } - public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { - return new ObjectSelectorNested(item); + public String getAdmissionReviewVersion(int index) { + return this.admissionReviewVersions.get(index); } - public ObjectSelectorNested editObjectSelector() { - return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); + public List getAdmissionReviewVersions() { + return this.admissionReviewVersions; } - public ObjectSelectorNested editOrNewObjectSelector() { - return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); + public String getFailurePolicy() { + return this.failurePolicy; } - public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { - return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); + public String getFirstAdmissionReviewVersion() { + return this.admissionReviewVersions.get(0); } - public A addToRules(int index,V1RuleWithOperations item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); - } else { - _visitables.get("rules").add(builder); - rules.add(index, builder); - } - return (A) this; + public String getLastAdmissionReviewVersion() { + return this.admissionReviewVersions.get(admissionReviewVersions.size() - 1); } - public A setToRules(int index,V1RuleWithOperations item) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); - } else { - _visitables.get("rules").add(builder); - rules.set(index, builder); - } - return (A) this; + public String getMatchPolicy() { + return this.matchPolicy; } - public A addToRules(V1RuleWithOperations... items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1RuleWithOperations item : items) { - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + public String getMatchingAdmissionReviewVersion(Predicate predicate) { + for (String item : admissionReviewVersions) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A addAllToRules(Collection items) { - if (this.rules == null) { - this.rules = new ArrayList(); - } - for (V1RuleWithOperations item : items) { - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").add(builder); - this.rules.add(builder); - } - return (A) this; + public String getName() { + return this.name; } - public A removeFromRules(V1RuleWithOperations... items) { - if (this.rules == null) { - return (A) this; - } - for (V1RuleWithOperations item : items) { - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").remove(builder); - this.rules.remove(builder); - } - return (A) this; + public String getSideEffects() { + return this.sideEffects; } - public A removeAllFromRules(Collection items) { - if (this.rules == null) { - return (A) this; - } - for (V1RuleWithOperations item : items) { - V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").remove(builder); - this.rules.remove(builder); - } - return (A) this; + public Integer getTimeoutSeconds() { + return this.timeoutSeconds; } - public A removeMatchingFromRules(Predicate predicate) { - if (rules == null) { - return (A) this; - } - Iterator each = rules.iterator(); - List visitables = _visitables.get("rules"); - while (each.hasNext()) { - V1RuleWithOperationsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public boolean hasAdmissionReviewVersions() { + return this.admissionReviewVersions != null && !(this.admissionReviewVersions.isEmpty()); } - public List buildRules() { - return this.rules != null ? build(rules) : null; + public boolean hasClientConfig() { + return this.clientConfig != null; } - public V1RuleWithOperations buildRule(int index) { - return this.rules.get(index).build(); + public boolean hasFailurePolicy() { + return this.failurePolicy != null; } - public V1RuleWithOperations buildFirstRule() { - return this.rules.get(0).build(); + public boolean hasMatchConditions() { + return this.matchConditions != null && !(this.matchConditions.isEmpty()); } - public V1RuleWithOperations buildLastRule() { - return this.rules.get(rules.size() - 1).build(); + public boolean hasMatchPolicy() { + return this.matchPolicy != null; } - public V1RuleWithOperations buildMatchingRule(Predicate predicate) { - for (V1RuleWithOperationsBuilder item : rules) { + public boolean hasMatchingAdmissionReviewVersion(Predicate predicate) { + for (String item : admissionReviewVersions) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; + } + + public boolean hasMatchingMatchCondition(Predicate predicate) { + for (V1MatchConditionBuilder item : matchConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasMatchingRule(Predicate predicate) { @@ -670,161 +489,178 @@ public boolean hasMatchingRule(Predicate predicate) return false; } - public A withRules(List rules) { - if (this.rules != null) { - this._visitables.get("rules").clear(); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1RuleWithOperations item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; - } - return (A) this; + public boolean hasName() { + return this.name != null; } - public A withRules(V1RuleWithOperations... rules) { - if (this.rules != null) { - this.rules.clear(); - _visitables.remove("rules"); - } - if (rules != null) { - for (V1RuleWithOperations item : rules) { - this.addToRules(item); - } - } - return (A) this; + public boolean hasNamespaceSelector() { + return this.namespaceSelector != null; + } + + public boolean hasObjectSelector() { + return this.objectSelector != null; } public boolean hasRules() { return this.rules != null && !(this.rules.isEmpty()); } - public RulesNested addNewRule() { - return new RulesNested(-1, null); + public boolean hasSideEffects() { + return this.sideEffects != null; } - public RulesNested addNewRuleLike(V1RuleWithOperations item) { - return new RulesNested(-1, item); + public boolean hasTimeoutSeconds() { + return this.timeoutSeconds != null; } - public RulesNested setNewRuleLike(int index,V1RuleWithOperations item) { - return new RulesNested(index, item); + public int hashCode() { + return Objects.hash(admissionReviewVersions, clientConfig, failurePolicy, matchConditions, matchPolicy, name, namespaceSelector, objectSelector, rules, sideEffects, timeoutSeconds); } - public RulesNested editRule(int index) { - if (index <= rules.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + public A removeAllFromAdmissionReviewVersions(Collection items) { + if (this.admissionReviewVersions == null) { + return (A) this; } - return this.setNewRuleLike(index, this.buildRule(index)); - } - - public RulesNested editFirstRule() { - if (rules.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); + for (String item : items) { + this.admissionReviewVersions.remove(item); } - return this.setNewRuleLike(0, this.buildRule(0)); + return (A) this; } - public RulesNested editLastRule() { - int index = rules.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); + public A removeAllFromMatchConditions(Collection items) { + if (this.matchConditions == null) { + return (A) this; } - return this.setNewRuleLike(index, this.buildRule(index)); + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; } - public RulesNested editMatchingRule(Predicate predicate) { - int index = -1; - for (int i = 0;i < rules.size();i++) { - if (predicate.test(rules.get(i))) { - index = i; - break; - } + public A removeAllFromRules(Collection items) { + if (this.rules == null) { + return (A) this; } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "rules")); + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); } - return this.setNewRuleLike(index, this.buildRule(index)); - } - - public String getSideEffects() { - return this.sideEffects; - } - - public A withSideEffects(String sideEffects) { - this.sideEffects = sideEffects; return (A) this; } - public boolean hasSideEffects() { - return this.sideEffects != null; - } - - public Integer getTimeoutSeconds() { - return this.timeoutSeconds; - } - - public A withTimeoutSeconds(Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; + public A removeFromAdmissionReviewVersions(String... items) { + if (this.admissionReviewVersions == null) { + return (A) this; + } + for (String item : items) { + this.admissionReviewVersions.remove(item); + } return (A) this; } - public boolean hasTimeoutSeconds() { - return this.timeoutSeconds != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ValidatingWebhookFluent that = (V1ValidatingWebhookFluent) o; - if (!(Objects.equals(admissionReviewVersions, that.admissionReviewVersions))) { - return false; - } - if (!(Objects.equals(clientConfig, that.clientConfig))) { - return false; + public A removeFromMatchConditions(V1MatchCondition... items) { + if (this.matchConditions == null) { + return (A) this; } - if (!(Objects.equals(failurePolicy, that.failurePolicy))) { - return false; + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); } - if (!(Objects.equals(matchConditions, that.matchConditions))) { - return false; + return (A) this; + } + + public A removeFromRules(V1RuleWithOperations... items) { + if (this.rules == null) { + return (A) this; } - if (!(Objects.equals(matchPolicy, that.matchPolicy))) { - return false; + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); } - if (!(Objects.equals(name, that.name))) { - return false; + return (A) this; + } + + public A removeMatchingFromMatchConditions(Predicate predicate) { + if (matchConditions == null) { + return (A) this; } - if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { - return false; + Iterator each = matchConditions.iterator(); + List visitables = _visitables.get("matchConditions"); + while (each.hasNext()) { + V1MatchConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - if (!(Objects.equals(objectSelector, that.objectSelector))) { - return false; + return (A) this; + } + + public A removeMatchingFromRules(Predicate predicate) { + if (rules == null) { + return (A) this; } - if (!(Objects.equals(rules, that.rules))) { - return false; + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); + while (each.hasNext()) { + V1RuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - if (!(Objects.equals(sideEffects, that.sideEffects))) { - return false; + return (A) this; + } + + public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondition item) { + return new MatchConditionsNested(index, item); + } + + public RulesNested setNewRuleLike(int index,V1RuleWithOperations item) { + return new RulesNested(index, item); + } + + public A setToAdmissionReviewVersions(int index,String item) { + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); } - if (!(Objects.equals(timeoutSeconds, that.timeoutSeconds))) { - return false; + this.admissionReviewVersions.set(index, item); + return (A) this; + } + + public A setToMatchConditions(int index,V1MatchCondition item) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); } - return true; + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.set(index, builder); + } + return (A) this; } - public int hashCode() { - return Objects.hash(admissionReviewVersions, clientConfig, failurePolicy, matchConditions, matchPolicy, name, namespaceSelector, objectSelector, rules, sideEffects, timeoutSeconds); + public A setToRules(int index,V1RuleWithOperations item) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + if (index < 0 || index >= rules.size()) { + _visitables.get("rules").add(builder); + rules.add(builder); + } else { + _visitables.get("rules").add(builder); + rules.set(index, builder); + } + return (A) this; } public String toString() { @@ -887,12 +723,180 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAdmissionReviewVersions(List admissionReviewVersions) { + if (admissionReviewVersions != null) { + this.admissionReviewVersions = new ArrayList(); + for (String item : admissionReviewVersions) { + this.addToAdmissionReviewVersions(item); + } + } else { + this.admissionReviewVersions = null; + } + return (A) this; + } + + public A withAdmissionReviewVersions(String... admissionReviewVersions) { + if (this.admissionReviewVersions != null) { + this.admissionReviewVersions.clear(); + _visitables.remove("admissionReviewVersions"); + } + if (admissionReviewVersions != null) { + for (String item : admissionReviewVersions) { + this.addToAdmissionReviewVersions(item); + } + } + return (A) this; + } + + public A withClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig) { + this._visitables.remove("clientConfig"); + if (clientConfig != null) { + this.clientConfig = new AdmissionregistrationV1WebhookClientConfigBuilder(clientConfig); + this._visitables.get("clientConfig").add(this.clientConfig); + } else { + this.clientConfig = null; + this._visitables.get("clientConfig").remove(this.clientConfig); + } + return (A) this; + } + + public A withFailurePolicy(String failurePolicy) { + this.failurePolicy = failurePolicy; + return (A) this; + } + + public A withMatchConditions(List matchConditions) { + if (this.matchConditions != null) { + this._visitables.get("matchConditions").clear(); + } + if (matchConditions != null) { + this.matchConditions = new ArrayList(); + for (V1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } else { + this.matchConditions = null; + } + return (A) this; + } + + public A withMatchConditions(V1MatchCondition... matchConditions) { + if (this.matchConditions != null) { + this.matchConditions.clear(); + _visitables.remove("matchConditions"); + } + if (matchConditions != null) { + for (V1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } + return (A) this; + } + + public A withMatchPolicy(String matchPolicy) { + this.matchPolicy = matchPolicy; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespaceSelector(V1LabelSelector namespaceSelector) { + this._visitables.remove("namespaceSelector"); + if (namespaceSelector != null) { + this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); + this._visitables.get("namespaceSelector").add(this.namespaceSelector); + } else { + this.namespaceSelector = null; + this._visitables.get("namespaceSelector").remove(this.namespaceSelector); + } + return (A) this; + } + + public ClientConfigNested withNewClientConfig() { + return new ClientConfigNested(null); + } + + public ClientConfigNested withNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { + return new ClientConfigNested(item); + } + + public NamespaceSelectorNested withNewNamespaceSelector() { + return new NamespaceSelectorNested(null); + } + + public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { + return new NamespaceSelectorNested(item); + } + + public ObjectSelectorNested withNewObjectSelector() { + return new ObjectSelectorNested(null); + } + + public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { + return new ObjectSelectorNested(item); + } + + public A withObjectSelector(V1LabelSelector objectSelector) { + this._visitables.remove("objectSelector"); + if (objectSelector != null) { + this.objectSelector = new V1LabelSelectorBuilder(objectSelector); + this._visitables.get("objectSelector").add(this.objectSelector); + } else { + this.objectSelector = null; + this._visitables.get("objectSelector").remove(this.objectSelector); + } + return (A) this; + } + + public A withRules(List rules) { + if (this.rules != null) { + this._visitables.get("rules").clear(); + } + if (rules != null) { + this.rules = new ArrayList(); + for (V1RuleWithOperations item : rules) { + this.addToRules(item); + } + } else { + this.rules = null; + } + return (A) this; + } + + public A withRules(V1RuleWithOperations... rules) { + if (this.rules != null) { + this.rules.clear(); + _visitables.remove("rules"); + } + if (rules != null) { + for (V1RuleWithOperations item : rules) { + this.addToRules(item); + } + } + return (A) this; + } + + public A withSideEffects(String sideEffects) { + this.sideEffects = sideEffects; + return (A) this; + } + + public A withTimeoutSeconds(Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return (A) this; + } public class ClientConfigNested extends AdmissionregistrationV1WebhookClientConfigFluent> implements Nested{ + + AdmissionregistrationV1WebhookClientConfigBuilder builder; + ClientConfigNested(AdmissionregistrationV1WebhookClientConfig item) { this.builder = new AdmissionregistrationV1WebhookClientConfigBuilder(this, item); } - AdmissionregistrationV1WebhookClientConfigBuilder builder; - + public N and() { return (N) V1ValidatingWebhookFluent.this.withClientConfig(builder.build()); } @@ -901,16 +905,17 @@ public N endClientConfig() { return and(); } - } public class MatchConditionsNested extends V1MatchConditionFluent> implements Nested{ + + V1MatchConditionBuilder builder; + int index; + MatchConditionsNested(int index,V1MatchCondition item) { this.index = index; this.builder = new V1MatchConditionBuilder(this, item); } - V1MatchConditionBuilder builder; - int index; - + public N and() { return (N) V1ValidatingWebhookFluent.this.setToMatchConditions(index, builder.build()); } @@ -919,14 +924,15 @@ public N endMatchCondition() { return and(); } - } public class NamespaceSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + NamespaceSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1ValidatingWebhookFluent.this.withNamespaceSelector(builder.build()); } @@ -935,14 +941,15 @@ public N endNamespaceSelector() { return and(); } - } public class ObjectSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + ObjectSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1ValidatingWebhookFluent.this.withObjectSelector(builder.build()); } @@ -951,16 +958,17 @@ public N endObjectSelector() { return and(); } - } public class RulesNested extends V1RuleWithOperationsFluent> implements Nested{ + + V1RuleWithOperationsBuilder builder; + int index; + RulesNested(int index,V1RuleWithOperations item) { this.index = index; this.builder = new V1RuleWithOperationsBuilder(this, item); } - V1RuleWithOperationsBuilder builder; - int index; - + public N and() { return (N) V1ValidatingWebhookFluent.this.setToRules(index, builder.build()); } @@ -969,7 +977,5 @@ public N endRule() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationBuilder.java index 269efd87aa..c471f5e355 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ValidationBuilder extends V1ValidationFluent implements VisitableBuilder{ + + V1ValidationFluent fluent; + public V1ValidationBuilder() { this(new V1Validation()); } @@ -11,17 +14,16 @@ public V1ValidationBuilder(V1ValidationFluent fluent) { this(fluent, new V1Validation()); } - public V1ValidationBuilder(V1ValidationFluent fluent,V1Validation instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ValidationBuilder(V1Validation instance) { this.fluent = this; this.copyInstance(instance); } - V1ValidationFluent fluent; + public V1ValidationBuilder(V1ValidationFluent fluent,V1Validation instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Validation build() { V1Validation buildable = new V1Validation(); buildable.setExpression(fluent.getExpression()); @@ -31,5 +33,4 @@ public V1Validation build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationFluent.java index aa2edae101..f8fb7d3c47 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ValidationFluent> extends BaseFluent{ + + private String expression; + private String message; + private String messageExpression; + private String reason; + public V1ValidationFluent() { } public V1ValidationFluent(V1Validation instance) { this.copyInstance(instance); } - private String expression; - private String message; - private String messageExpression; - private String reason; - + protected void copyInstance(V1Validation instance) { instance = instance != null ? instance : new V1Validation(); if (instance != null) { @@ -33,58 +35,6 @@ protected void copyInstance(V1Validation instance) { } } - public String getExpression() { - return this.expression; - } - - public A withExpression(String expression) { - this.expression = expression; - return (A) this; - } - - public boolean hasExpression() { - return this.expression != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getMessageExpression() { - return this.messageExpression; - } - - public A withMessageExpression(String messageExpression) { - this.messageExpression = messageExpression; - return (A) this; - } - - public boolean hasMessageExpression() { - return this.messageExpression != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -111,6 +61,38 @@ public boolean equals(Object o) { return true; } + public String getExpression() { + return this.expression; + } + + public String getMessage() { + return this.message; + } + + public String getMessageExpression() { + return this.messageExpression; + } + + public String getReason() { + return this.reason; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasMessageExpression() { + return this.messageExpression != null; + } + + public boolean hasReason() { + return this.reason != null; + } + public int hashCode() { return Objects.hash(expression, message, messageExpression, reason); } @@ -141,5 +123,24 @@ public String toString() { return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withMessageExpression(String messageExpression) { + this.messageExpression = messageExpression; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java index b532ec02c3..6070d53016 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1ValidationRuleBuilder extends V1ValidationRuleFluent implements VisitableBuilder{ + + V1ValidationRuleFluent fluent; + public V1ValidationRuleBuilder() { this(new V1ValidationRule()); } @@ -11,17 +14,16 @@ public V1ValidationRuleBuilder(V1ValidationRuleFluent fluent) { this(fluent, new V1ValidationRule()); } - public V1ValidationRuleBuilder(V1ValidationRuleFluent fluent,V1ValidationRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ValidationRuleBuilder(V1ValidationRule instance) { this.fluent = this; this.copyInstance(instance); } - V1ValidationRuleFluent fluent; + public V1ValidationRuleBuilder(V1ValidationRuleFluent fluent,V1ValidationRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidationRule build() { V1ValidationRule buildable = new V1ValidationRule(); buildable.setFieldPath(fluent.getFieldPath()); @@ -33,5 +35,4 @@ public V1ValidationRule build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java index 2e3d135c91..aec59b1c1e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java @@ -1,31 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1ValidationRuleFluent> extends BaseFluent{ - public V1ValidationRuleFluent() { - } - - public V1ValidationRuleFluent(V1ValidationRule instance) { - this.copyInstance(instance); - } + private String fieldPath; private String message; private String messageExpression; private Boolean optionalOldSelf; private String reason; private String rule; + + public V1ValidationRuleFluent() { + } + public V1ValidationRuleFluent(V1ValidationRule instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1ValidationRule instance) { instance = instance != null ? instance : new V1ValidationRule(); if (instance != null) { @@ -38,116 +40,86 @@ protected void copyInstance(V1ValidationRule instance) { } } - public String getFieldPath() { - return this.fieldPath; - } - - public A withFieldPath(String fieldPath) { - this.fieldPath = fieldPath; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ValidationRuleFluent that = (V1ValidationRuleFluent) o; + if (!(Objects.equals(fieldPath, that.fieldPath))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(messageExpression, that.messageExpression))) { + return false; + } + if (!(Objects.equals(optionalOldSelf, that.optionalOldSelf))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(rule, that.rule))) { + return false; + } + return true; } - public boolean hasFieldPath() { - return this.fieldPath != null; + public String getFieldPath() { + return this.fieldPath; } public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - public String getMessageExpression() { return this.messageExpression; } - public A withMessageExpression(String messageExpression) { - this.messageExpression = messageExpression; - return (A) this; - } - - public boolean hasMessageExpression() { - return this.messageExpression != null; - } - public Boolean getOptionalOldSelf() { return this.optionalOldSelf; } - public A withOptionalOldSelf(Boolean optionalOldSelf) { - this.optionalOldSelf = optionalOldSelf; - return (A) this; + public String getReason() { + return this.reason; } - public boolean hasOptionalOldSelf() { - return this.optionalOldSelf != null; + public String getRule() { + return this.rule; } - public String getReason() { - return this.reason; + public boolean hasFieldPath() { + return this.fieldPath != null; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasMessage() { + return this.message != null; } - public boolean hasReason() { - return this.reason != null; + public boolean hasMessageExpression() { + return this.messageExpression != null; } - public String getRule() { - return this.rule; + public boolean hasOptionalOldSelf() { + return this.optionalOldSelf != null; } - public A withRule(String rule) { - this.rule = rule; - return (A) this; + public boolean hasReason() { + return this.reason != null; } public boolean hasRule() { return this.rule != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1ValidationRuleFluent that = (V1ValidationRuleFluent) o; - if (!(Objects.equals(fieldPath, that.fieldPath))) { - return false; - } - if (!(Objects.equals(message, that.message))) { - return false; - } - if (!(Objects.equals(messageExpression, that.messageExpression))) { - return false; - } - if (!(Objects.equals(optionalOldSelf, that.optionalOldSelf))) { - return false; - } - if (!(Objects.equals(reason, that.reason))) { - return false; - } - if (!(Objects.equals(rule, that.rule))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(fieldPath, message, messageExpression, optionalOldSelf, reason, rule); } @@ -188,9 +160,38 @@ public String toString() { return sb.toString(); } + public A withFieldPath(String fieldPath) { + this.fieldPath = fieldPath; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withMessageExpression(String messageExpression) { + this.messageExpression = messageExpression; + return (A) this; + } + public A withOptionalOldSelf() { return withOptionalOldSelf(true); } - + public A withOptionalOldSelf(Boolean optionalOldSelf) { + this.optionalOldSelf = optionalOldSelf; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withRule(String rule) { + this.rule = rule; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableBuilder.java index 3d3ed2bab5..dd3127da0d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1VariableBuilder extends V1VariableFluent implements VisitableBuilder{ + + V1VariableFluent fluent; + public V1VariableBuilder() { this(new V1Variable()); } @@ -11,17 +14,16 @@ public V1VariableBuilder(V1VariableFluent fluent) { this(fluent, new V1Variable()); } - public V1VariableBuilder(V1VariableFluent fluent,V1Variable instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VariableBuilder(V1Variable instance) { this.fluent = this; this.copyInstance(instance); } - V1VariableFluent fluent; + public V1VariableBuilder(V1VariableFluent fluent,V1Variable instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Variable build() { V1Variable buildable = new V1Variable(); buildable.setExpression(fluent.getExpression()); @@ -29,5 +31,4 @@ public V1Variable build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableFluent.java index 1b4c133588..85684635c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1VariableFluent> extends BaseFluent{ + + private String expression; + private String name; + public V1VariableFluent() { } public V1VariableFluent(V1Variable instance) { this.copyInstance(instance); } - private String expression; - private String name; - + protected void copyInstance(V1Variable instance) { instance = instance != null ? instance : new V1Variable(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1Variable instance) { } } - public String getExpression() { - return this.expression; - } - - public A withExpression(String expression) { - this.expression = expression; - return (A) this; - } - - public boolean hasExpression() { - return this.expression != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getExpression() { + return this.expression; + } + + public String getName() { + return this.name; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(expression, name); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java index 5e761d1ba1..3fb880f6db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1VolumeAttachmentBuilder extends V1VolumeAttachmentFluent implements VisitableBuilder{ + + V1VolumeAttachmentFluent fluent; + public V1VolumeAttachmentBuilder() { this(new V1VolumeAttachment()); } @@ -11,17 +14,16 @@ public V1VolumeAttachmentBuilder(V1VolumeAttachmentFluent fluent) { this(fluent, new V1VolumeAttachment()); } - public V1VolumeAttachmentBuilder(V1VolumeAttachmentFluent fluent,V1VolumeAttachment instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeAttachmentBuilder(V1VolumeAttachment instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeAttachmentFluent fluent; + public V1VolumeAttachmentBuilder(V1VolumeAttachmentFluent fluent,V1VolumeAttachment instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeAttachment build() { V1VolumeAttachment buildable = new V1VolumeAttachment(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1VolumeAttachment build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java index 7099cdbca3..fe80e8d706 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1VolumeAttachmentFluent> extends BaseFluent{ - public V1VolumeAttachmentFluent() { - } - - public V1VolumeAttachmentFluent(V1VolumeAttachment instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1VolumeAttachmentSpecBuilder spec; private V1VolumeAttachmentStatusBuilder status; - - protected void copyInstance(V1VolumeAttachment instance) { - instance = instance != null ? instance : new V1VolumeAttachment(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1VolumeAttachmentFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1VolumeAttachmentFluent(V1VolumeAttachment instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1VolumeAttachmentSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1VolumeAttachmentStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1VolumeAttachment instance) { + instance = instance != null ? instance : new V1VolumeAttachment(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1VolumeAttachmentSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1VolumeAttachmentSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1VolumeAttachmentSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1VolumeAttachmentSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1VolumeAttachmentSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1VolumeAttachmentSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1VolumeAttachmentStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1VolumeAttachmentStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1VolumeAttachmentStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1VolumeAttachmentStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1VolumeAttachmentStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1VolumeAttachmentStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1VolumeAttachmentStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1VolumeAttachmentStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1VolumeAttachmentSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1VolumeAttachmentStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1VolumeAttachmentSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1VolumeAttachmentSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1VolumeAttachmentStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1VolumeAttachmentStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1VolumeAttachmentFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1VolumeAttachmentSpecFluent> implements Nested{ + + V1VolumeAttachmentSpecBuilder builder; + SpecNested(V1VolumeAttachmentSpec item) { this.builder = new V1VolumeAttachmentSpecBuilder(this, item); } - V1VolumeAttachmentSpecBuilder builder; - + public N and() { return (N) V1VolumeAttachmentFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1VolumeAttachmentStatusFluent> implements Nested{ + + V1VolumeAttachmentStatusBuilder builder; + StatusNested(V1VolumeAttachmentStatus item) { this.builder = new V1VolumeAttachmentStatusBuilder(this, item); } - V1VolumeAttachmentStatusBuilder builder; - + public N and() { return (N) V1VolumeAttachmentFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java index fe66c4f88b..a98edbf2e6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1VolumeAttachmentListBuilder extends V1VolumeAttachmentListFluent implements VisitableBuilder{ + + V1VolumeAttachmentListFluent fluent; + public V1VolumeAttachmentListBuilder() { this(new V1VolumeAttachmentList()); } @@ -11,17 +14,16 @@ public V1VolumeAttachmentListBuilder(V1VolumeAttachmentListFluent fluent) { this(fluent, new V1VolumeAttachmentList()); } - public V1VolumeAttachmentListBuilder(V1VolumeAttachmentListFluent fluent,V1VolumeAttachmentList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeAttachmentListBuilder(V1VolumeAttachmentList instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeAttachmentListFluent fluent; + public V1VolumeAttachmentListBuilder(V1VolumeAttachmentListFluent fluent,V1VolumeAttachmentList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeAttachmentList build() { V1VolumeAttachmentList buildable = new V1VolumeAttachmentList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1VolumeAttachmentList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java index 249fb5c560..9aeac1fd5e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1VolumeAttachmentListFluent> extends BaseFluent{ - public V1VolumeAttachmentListFluent() { - } - - public V1VolumeAttachmentListFluent(V1VolumeAttachmentList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1VolumeAttachmentList instance) { - instance = instance != null ? instance : new V1VolumeAttachmentList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1VolumeAttachmentListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1VolumeAttachmentListFluent(V1VolumeAttachmentList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1VolumeAttachment item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1VolumeAttachment item : items) { + V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1VolumeAttachment item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1VolumeAttachment item) { + return new ItemsNested(-1, item); } public A addToItems(V1VolumeAttachment... items) { @@ -96,68 +65,31 @@ public A addToItems(V1VolumeAttachment... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1VolumeAttachment item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1VolumeAttachment item : items) { - V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); + V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1VolumeAttachment... items) { - if (this.items == null) { - return (A) this; - } - for (V1VolumeAttachment item : items) { - V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1VolumeAttachment item : items) { - V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1VolumeAttachmentBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1VolumeAttachment buildFirstItem() { + return this.items.get(0).build(); } public V1VolumeAttachment buildItem(int index) { return this.items.get(index).build(); } - public V1VolumeAttachment buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1VolumeAttachment buildLastItem() { @@ -173,73 +105,34 @@ public V1VolumeAttachment buildMatchingItem(Predicate return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1VolumeAttachmentBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1VolumeAttachment item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1VolumeAttachmentList instance) { + instance = instance != null ? instance : new V1VolumeAttachmentList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1VolumeAttachment... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1VolumeAttachment item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1VolumeAttachment item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1VolumeAttachment item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate pred return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1VolumeAttachmentBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1VolumeAttachment item : items) { + V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1VolumeAttachment... items) { + if (this.items == null) { + return (A) this; + } + for (V1VolumeAttachment item : items) { + V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1VolumeAttachmentBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1VolumeAttachment item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1VolumeAttachment item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1VolumeAttachment item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1VolumeAttachment... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1VolumeAttachment item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1VolumeAttachmentFluent> implements Nested{ + + V1VolumeAttachmentBuilder builder; + int index; + ItemsNested(int index,V1VolumeAttachment item) { this.index = index; this.builder = new V1VolumeAttachmentBuilder(this, item); } - V1VolumeAttachmentBuilder builder; - int index; - + public N and() { return (N) V1VolumeAttachmentListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1VolumeAttachmentListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java index e61a3b4f3a..033cf77465 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1VolumeAttachmentSourceBuilder extends V1VolumeAttachmentSourceFluent implements VisitableBuilder{ + + V1VolumeAttachmentSourceFluent fluent; + public V1VolumeAttachmentSourceBuilder() { this(new V1VolumeAttachmentSource()); } @@ -11,17 +14,16 @@ public V1VolumeAttachmentSourceBuilder(V1VolumeAttachmentSourceFluent fluent) this(fluent, new V1VolumeAttachmentSource()); } - public V1VolumeAttachmentSourceBuilder(V1VolumeAttachmentSourceFluent fluent,V1VolumeAttachmentSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeAttachmentSourceBuilder(V1VolumeAttachmentSource instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeAttachmentSourceFluent fluent; + public V1VolumeAttachmentSourceBuilder(V1VolumeAttachmentSourceFluent fluent,V1VolumeAttachmentSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeAttachmentSource build() { V1VolumeAttachmentSource buildable = new V1VolumeAttachmentSource(); buildable.setInlineVolumeSpec(fluent.buildInlineVolumeSpec()); @@ -29,5 +31,4 @@ public V1VolumeAttachmentSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java index f61af931b3..d5eeb7d79a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java @@ -1,27 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1VolumeAttachmentSourceFluent> extends BaseFluent{ + + private V1PersistentVolumeSpecBuilder inlineVolumeSpec; + private String persistentVolumeName; + public V1VolumeAttachmentSourceFluent() { } public V1VolumeAttachmentSourceFluent(V1VolumeAttachmentSource instance) { this.copyInstance(instance); } - private V1PersistentVolumeSpecBuilder inlineVolumeSpec; - private String persistentVolumeName; + + public V1PersistentVolumeSpec buildInlineVolumeSpec() { + return this.inlineVolumeSpec != null ? this.inlineVolumeSpec.build() : null; + } protected void copyInstance(V1VolumeAttachmentSource instance) { instance = instance != null ? instance : new V1VolumeAttachmentSource(); @@ -31,34 +37,6 @@ protected void copyInstance(V1VolumeAttachmentSource instance) { } } - public V1PersistentVolumeSpec buildInlineVolumeSpec() { - return this.inlineVolumeSpec != null ? this.inlineVolumeSpec.build() : null; - } - - public A withInlineVolumeSpec(V1PersistentVolumeSpec inlineVolumeSpec) { - this._visitables.remove("inlineVolumeSpec"); - if (inlineVolumeSpec != null) { - this.inlineVolumeSpec = new V1PersistentVolumeSpecBuilder(inlineVolumeSpec); - this._visitables.get("inlineVolumeSpec").add(this.inlineVolumeSpec); - } else { - this.inlineVolumeSpec = null; - this._visitables.get("inlineVolumeSpec").remove(this.inlineVolumeSpec); - } - return (A) this; - } - - public boolean hasInlineVolumeSpec() { - return this.inlineVolumeSpec != null; - } - - public InlineVolumeSpecNested withNewInlineVolumeSpec() { - return new InlineVolumeSpecNested(null); - } - - public InlineVolumeSpecNested withNewInlineVolumeSpecLike(V1PersistentVolumeSpec item) { - return new InlineVolumeSpecNested(item); - } - public InlineVolumeSpecNested editInlineVolumeSpec() { return this.withNewInlineVolumeSpecLike(Optional.ofNullable(this.buildInlineVolumeSpec()).orElse(null)); } @@ -71,19 +49,6 @@ public InlineVolumeSpecNested editOrNewInlineVolumeSpecLike(V1PersistentVolum return this.withNewInlineVolumeSpecLike(Optional.ofNullable(this.buildInlineVolumeSpec()).orElse(item)); } - public String getPersistentVolumeName() { - return this.persistentVolumeName; - } - - public A withPersistentVolumeName(String persistentVolumeName) { - this.persistentVolumeName = persistentVolumeName; - return (A) this; - } - - public boolean hasPersistentVolumeName() { - return this.persistentVolumeName != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -104,6 +69,18 @@ public boolean equals(Object o) { return true; } + public String getPersistentVolumeName() { + return this.persistentVolumeName; + } + + public boolean hasInlineVolumeSpec() { + return this.inlineVolumeSpec != null; + } + + public boolean hasPersistentVolumeName() { + return this.persistentVolumeName != null; + } + public int hashCode() { return Objects.hash(inlineVolumeSpec, persistentVolumeName); } @@ -123,12 +100,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withInlineVolumeSpec(V1PersistentVolumeSpec inlineVolumeSpec) { + this._visitables.remove("inlineVolumeSpec"); + if (inlineVolumeSpec != null) { + this.inlineVolumeSpec = new V1PersistentVolumeSpecBuilder(inlineVolumeSpec); + this._visitables.get("inlineVolumeSpec").add(this.inlineVolumeSpec); + } else { + this.inlineVolumeSpec = null; + this._visitables.get("inlineVolumeSpec").remove(this.inlineVolumeSpec); + } + return (A) this; + } + + public InlineVolumeSpecNested withNewInlineVolumeSpec() { + return new InlineVolumeSpecNested(null); + } + + public InlineVolumeSpecNested withNewInlineVolumeSpecLike(V1PersistentVolumeSpec item) { + return new InlineVolumeSpecNested(item); + } + + public A withPersistentVolumeName(String persistentVolumeName) { + this.persistentVolumeName = persistentVolumeName; + return (A) this; + } public class InlineVolumeSpecNested extends V1PersistentVolumeSpecFluent> implements Nested{ + + V1PersistentVolumeSpecBuilder builder; + InlineVolumeSpecNested(V1PersistentVolumeSpec item) { this.builder = new V1PersistentVolumeSpecBuilder(this, item); } - V1PersistentVolumeSpecBuilder builder; - + public N and() { return (N) V1VolumeAttachmentSourceFluent.this.withInlineVolumeSpec(builder.build()); } @@ -137,7 +141,5 @@ public N endInlineVolumeSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java index 9496d44845..03d44d5155 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1VolumeAttachmentSpecBuilder extends V1VolumeAttachmentSpecFluent implements VisitableBuilder{ + + V1VolumeAttachmentSpecFluent fluent; + public V1VolumeAttachmentSpecBuilder() { this(new V1VolumeAttachmentSpec()); } @@ -11,17 +14,16 @@ public V1VolumeAttachmentSpecBuilder(V1VolumeAttachmentSpecFluent fluent) { this(fluent, new V1VolumeAttachmentSpec()); } - public V1VolumeAttachmentSpecBuilder(V1VolumeAttachmentSpecFluent fluent,V1VolumeAttachmentSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeAttachmentSpecBuilder(V1VolumeAttachmentSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeAttachmentSpecFluent fluent; + public V1VolumeAttachmentSpecBuilder(V1VolumeAttachmentSpecFluent fluent,V1VolumeAttachmentSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeAttachmentSpec build() { V1VolumeAttachmentSpec buildable = new V1VolumeAttachmentSpec(); buildable.setAttacher(fluent.getAttacher()); @@ -30,5 +32,4 @@ public V1VolumeAttachmentSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java index bc9c2efe11..6934abdfff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java @@ -1,28 +1,34 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1VolumeAttachmentSpecFluent> extends BaseFluent{ + + private String attacher; + private String nodeName; + private V1VolumeAttachmentSourceBuilder source; + public V1VolumeAttachmentSpecFluent() { } public V1VolumeAttachmentSpecFluent(V1VolumeAttachmentSpec instance) { this.copyInstance(instance); } - private String attacher; - private String nodeName; - private V1VolumeAttachmentSourceBuilder source; + + public V1VolumeAttachmentSource buildSource() { + return this.source != null ? this.source.build() : null; + } protected void copyInstance(V1VolumeAttachmentSpec instance) { instance = instance != null ? instance : new V1VolumeAttachmentSpec(); @@ -33,64 +39,6 @@ protected void copyInstance(V1VolumeAttachmentSpec instance) { } } - public String getAttacher() { - return this.attacher; - } - - public A withAttacher(String attacher) { - this.attacher = attacher; - return (A) this; - } - - public boolean hasAttacher() { - return this.attacher != null; - } - - public String getNodeName() { - return this.nodeName; - } - - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; - } - - public boolean hasNodeName() { - return this.nodeName != null; - } - - public V1VolumeAttachmentSource buildSource() { - return this.source != null ? this.source.build() : null; - } - - public A withSource(V1VolumeAttachmentSource source) { - this._visitables.remove("source"); - if (source != null) { - this.source = new V1VolumeAttachmentSourceBuilder(source); - this._visitables.get("source").add(this.source); - } else { - this.source = null; - this._visitables.get("source").remove(this.source); - } - return (A) this; - } - - public boolean hasSource() { - return this.source != null; - } - - public SourceNested withNewSource() { - return new SourceNested(null); - } - - public SourceNested withNewSourceLike(V1VolumeAttachmentSource item) { - return new SourceNested(item); - } - - public SourceNested editSource() { - return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(null)); - } - public SourceNested editOrNewSource() { return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(new V1VolumeAttachmentSourceBuilder().build())); } @@ -99,6 +47,10 @@ public SourceNested editOrNewSourceLike(V1VolumeAttachmentSource item) { return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(item)); } + public SourceNested editSource() { + return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -122,6 +74,26 @@ public boolean equals(Object o) { return true; } + public String getAttacher() { + return this.attacher; + } + + public String getNodeName() { + return this.nodeName; + } + + public boolean hasAttacher() { + return this.attacher != null; + } + + public boolean hasNodeName() { + return this.nodeName != null; + } + + public boolean hasSource() { + return this.source != null; + } + public int hashCode() { return Objects.hash(attacher, nodeName, source); } @@ -146,12 +118,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAttacher(String attacher) { + this.attacher = attacher; + return (A) this; + } + + public SourceNested withNewSource() { + return new SourceNested(null); + } + + public SourceNested withNewSourceLike(V1VolumeAttachmentSource item) { + return new SourceNested(item); + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + public A withSource(V1VolumeAttachmentSource source) { + this._visitables.remove("source"); + if (source != null) { + this.source = new V1VolumeAttachmentSourceBuilder(source); + this._visitables.get("source").add(this.source); + } else { + this.source = null; + this._visitables.get("source").remove(this.source); + } + return (A) this; + } public class SourceNested extends V1VolumeAttachmentSourceFluent> implements Nested{ + + V1VolumeAttachmentSourceBuilder builder; + SourceNested(V1VolumeAttachmentSource item) { this.builder = new V1VolumeAttachmentSourceBuilder(this, item); } - V1VolumeAttachmentSourceBuilder builder; - + public N and() { return (N) V1VolumeAttachmentSpecFluent.this.withSource(builder.build()); } @@ -160,7 +164,5 @@ public N endSource() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java index 257381cddd..cb4f119c05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1VolumeAttachmentStatusBuilder extends V1VolumeAttachmentStatusFluent implements VisitableBuilder{ + + V1VolumeAttachmentStatusFluent fluent; + public V1VolumeAttachmentStatusBuilder() { this(new V1VolumeAttachmentStatus()); } @@ -11,17 +14,16 @@ public V1VolumeAttachmentStatusBuilder(V1VolumeAttachmentStatusFluent fluent) this(fluent, new V1VolumeAttachmentStatus()); } - public V1VolumeAttachmentStatusBuilder(V1VolumeAttachmentStatusFluent fluent,V1VolumeAttachmentStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeAttachmentStatusBuilder(V1VolumeAttachmentStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeAttachmentStatusFluent fluent; + public V1VolumeAttachmentStatusBuilder(V1VolumeAttachmentStatusFluent fluent,V1VolumeAttachmentStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeAttachmentStatus build() { V1VolumeAttachmentStatus buildable = new V1VolumeAttachmentStatus(); buildable.setAttachError(fluent.buildAttachError()); @@ -31,5 +33,4 @@ public V1VolumeAttachmentStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java index b26b9104c5..64cb478ca4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java @@ -1,106 +1,35 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; -import java.lang.Object; -import java.lang.Boolean; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1VolumeAttachmentStatusFluent> extends BaseFluent{ - public V1VolumeAttachmentStatusFluent() { - } - - public V1VolumeAttachmentStatusFluent(V1VolumeAttachmentStatus instance) { - this.copyInstance(instance); - } + private V1VolumeErrorBuilder attachError; private Boolean attached; private Map attachmentMetadata; private V1VolumeErrorBuilder detachError; - - protected void copyInstance(V1VolumeAttachmentStatus instance) { - instance = instance != null ? instance : new V1VolumeAttachmentStatus(); - if (instance != null) { - this.withAttachError(instance.getAttachError()); - this.withAttached(instance.getAttached()); - this.withAttachmentMetadata(instance.getAttachmentMetadata()); - this.withDetachError(instance.getDetachError()); - } - } - - public V1VolumeError buildAttachError() { - return this.attachError != null ? this.attachError.build() : null; - } - - public A withAttachError(V1VolumeError attachError) { - this._visitables.remove("attachError"); - if (attachError != null) { - this.attachError = new V1VolumeErrorBuilder(attachError); - this._visitables.get("attachError").add(this.attachError); - } else { - this.attachError = null; - this._visitables.get("attachError").remove(this.attachError); - } - return (A) this; - } - - public boolean hasAttachError() { - return this.attachError != null; - } - - public AttachErrorNested withNewAttachError() { - return new AttachErrorNested(null); - } - - public AttachErrorNested withNewAttachErrorLike(V1VolumeError item) { - return new AttachErrorNested(item); - } - - public AttachErrorNested editAttachError() { - return this.withNewAttachErrorLike(Optional.ofNullable(this.buildAttachError()).orElse(null)); - } - - public AttachErrorNested editOrNewAttachError() { - return this.withNewAttachErrorLike(Optional.ofNullable(this.buildAttachError()).orElse(new V1VolumeErrorBuilder().build())); - } - - public AttachErrorNested editOrNewAttachErrorLike(V1VolumeError item) { - return this.withNewAttachErrorLike(Optional.ofNullable(this.buildAttachError()).orElse(item)); - } - - public Boolean getAttached() { - return this.attached; - } - - public A withAttached(Boolean attached) { - this.attached = attached; - return (A) this; - } - - public boolean hasAttached() { - return this.attached != null; + + public V1VolumeAttachmentStatusFluent() { } - public A addToAttachmentMetadata(String key,String value) { - if (this.attachmentMetadata == null && key != null && value != null) { - this.attachmentMetadata = new LinkedHashMap(); - } - if (key != null && value != null) { - this.attachmentMetadata.put(key, value); - } - return (A) this; + public V1VolumeAttachmentStatusFluent(V1VolumeAttachmentStatus instance) { + this.copyInstance(instance); } - + public A addToAttachmentMetadata(Map map) { if (this.attachmentMetadata == null && map != null) { this.attachmentMetadata = new LinkedHashMap(); @@ -111,77 +40,48 @@ public A addToAttachmentMetadata(Map map) { return (A) this; } - public A removeFromAttachmentMetadata(String key) { - if (this.attachmentMetadata == null) { - return (A) this; - } - if (key != null && this.attachmentMetadata != null) { - this.attachmentMetadata.remove(key); - } - return (A) this; - } - - public A removeFromAttachmentMetadata(Map map) { - if (this.attachmentMetadata == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.attachmentMetadata != null) { - this.attachmentMetadata.remove(key); - } - } + public A addToAttachmentMetadata(String key,String value) { + if (this.attachmentMetadata == null && key != null && value != null) { + this.attachmentMetadata = new LinkedHashMap(); } - return (A) this; - } - - public Map getAttachmentMetadata() { - return this.attachmentMetadata; - } - - public A withAttachmentMetadata(Map attachmentMetadata) { - if (attachmentMetadata == null) { - this.attachmentMetadata = null; - } else { - this.attachmentMetadata = new LinkedHashMap(attachmentMetadata); + if (key != null && value != null) { + this.attachmentMetadata.put(key, value); } return (A) this; } - public boolean hasAttachmentMetadata() { - return this.attachmentMetadata != null; + public V1VolumeError buildAttachError() { + return this.attachError != null ? this.attachError.build() : null; } public V1VolumeError buildDetachError() { return this.detachError != null ? this.detachError.build() : null; } - public A withDetachError(V1VolumeError detachError) { - this._visitables.remove("detachError"); - if (detachError != null) { - this.detachError = new V1VolumeErrorBuilder(detachError); - this._visitables.get("detachError").add(this.detachError); - } else { - this.detachError = null; - this._visitables.get("detachError").remove(this.detachError); + protected void copyInstance(V1VolumeAttachmentStatus instance) { + instance = instance != null ? instance : new V1VolumeAttachmentStatus(); + if (instance != null) { + this.withAttachError(instance.getAttachError()); + this.withAttached(instance.getAttached()); + this.withAttachmentMetadata(instance.getAttachmentMetadata()); + this.withDetachError(instance.getDetachError()); } - return (A) this; } - public boolean hasDetachError() { - return this.detachError != null; + public AttachErrorNested editAttachError() { + return this.withNewAttachErrorLike(Optional.ofNullable(this.buildAttachError()).orElse(null)); } - public DetachErrorNested withNewDetachError() { - return new DetachErrorNested(null); + public DetachErrorNested editDetachError() { + return this.withNewDetachErrorLike(Optional.ofNullable(this.buildDetachError()).orElse(null)); } - public DetachErrorNested withNewDetachErrorLike(V1VolumeError item) { - return new DetachErrorNested(item); + public AttachErrorNested editOrNewAttachError() { + return this.withNewAttachErrorLike(Optional.ofNullable(this.buildAttachError()).orElse(new V1VolumeErrorBuilder().build())); } - public DetachErrorNested editDetachError() { - return this.withNewDetachErrorLike(Optional.ofNullable(this.buildDetachError()).orElse(null)); + public AttachErrorNested editOrNewAttachErrorLike(V1VolumeError item) { + return this.withNewAttachErrorLike(Optional.ofNullable(this.buildAttachError()).orElse(item)); } public DetachErrorNested editOrNewDetachError() { @@ -218,10 +118,58 @@ public boolean equals(Object o) { return true; } + public Boolean getAttached() { + return this.attached; + } + + public Map getAttachmentMetadata() { + return this.attachmentMetadata; + } + + public boolean hasAttachError() { + return this.attachError != null; + } + + public boolean hasAttached() { + return this.attached != null; + } + + public boolean hasAttachmentMetadata() { + return this.attachmentMetadata != null; + } + + public boolean hasDetachError() { + return this.detachError != null; + } + public int hashCode() { return Objects.hash(attachError, attached, attachmentMetadata, detachError); } + public A removeFromAttachmentMetadata(String key) { + if (this.attachmentMetadata == null) { + return (A) this; + } + if (key != null && this.attachmentMetadata != null) { + this.attachmentMetadata.remove(key); + } + return (A) this; + } + + public A removeFromAttachmentMetadata(Map map) { + if (this.attachmentMetadata == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.attachmentMetadata != null) { + this.attachmentMetadata.remove(key); + } + } + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -248,15 +196,71 @@ public String toString() { return sb.toString(); } + public A withAttachError(V1VolumeError attachError) { + this._visitables.remove("attachError"); + if (attachError != null) { + this.attachError = new V1VolumeErrorBuilder(attachError); + this._visitables.get("attachError").add(this.attachError); + } else { + this.attachError = null; + this._visitables.get("attachError").remove(this.attachError); + } + return (A) this; + } + public A withAttached() { return withAttached(true); } + + public A withAttached(Boolean attached) { + this.attached = attached; + return (A) this; + } + + public A withAttachmentMetadata(Map attachmentMetadata) { + if (attachmentMetadata == null) { + this.attachmentMetadata = null; + } else { + this.attachmentMetadata = new LinkedHashMap(attachmentMetadata); + } + return (A) this; + } + + public A withDetachError(V1VolumeError detachError) { + this._visitables.remove("detachError"); + if (detachError != null) { + this.detachError = new V1VolumeErrorBuilder(detachError); + this._visitables.get("detachError").add(this.detachError); + } else { + this.detachError = null; + this._visitables.get("detachError").remove(this.detachError); + } + return (A) this; + } + + public AttachErrorNested withNewAttachError() { + return new AttachErrorNested(null); + } + + public AttachErrorNested withNewAttachErrorLike(V1VolumeError item) { + return new AttachErrorNested(item); + } + + public DetachErrorNested withNewDetachError() { + return new DetachErrorNested(null); + } + + public DetachErrorNested withNewDetachErrorLike(V1VolumeError item) { + return new DetachErrorNested(item); + } public class AttachErrorNested extends V1VolumeErrorFluent> implements Nested{ + + V1VolumeErrorBuilder builder; + AttachErrorNested(V1VolumeError item) { this.builder = new V1VolumeErrorBuilder(this, item); } - V1VolumeErrorBuilder builder; - + public N and() { return (N) V1VolumeAttachmentStatusFluent.this.withAttachError(builder.build()); } @@ -265,14 +269,15 @@ public N endAttachError() { return and(); } - } public class DetachErrorNested extends V1VolumeErrorFluent> implements Nested{ + + V1VolumeErrorBuilder builder; + DetachErrorNested(V1VolumeError item) { this.builder = new V1VolumeErrorBuilder(this, item); } - V1VolumeErrorBuilder builder; - + public N and() { return (N) V1VolumeAttachmentStatusFluent.this.withDetachError(builder.build()); } @@ -281,7 +286,5 @@ public N endDetachError() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassBuilder.java index 01c8b3d6ae..97e97b6265 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1VolumeAttributesClassBuilder extends V1VolumeAttributesClassFluent implements VisitableBuilder{ + + V1VolumeAttributesClassFluent fluent; + public V1VolumeAttributesClassBuilder() { this(new V1VolumeAttributesClass()); } @@ -11,17 +14,16 @@ public V1VolumeAttributesClassBuilder(V1VolumeAttributesClassFluent fluent) { this(fluent, new V1VolumeAttributesClass()); } - public V1VolumeAttributesClassBuilder(V1VolumeAttributesClassFluent fluent,V1VolumeAttributesClass instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeAttributesClassBuilder(V1VolumeAttributesClass instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeAttributesClassFluent fluent; + public V1VolumeAttributesClassBuilder(V1VolumeAttributesClassFluent fluent,V1VolumeAttributesClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeAttributesClass build() { V1VolumeAttributesClass buildable = new V1VolumeAttributesClass(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1VolumeAttributesClass build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassFluent.java index 931f4af3cd..875b05db44 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassFluent.java @@ -1,32 +1,58 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1VolumeAttributesClassFluent> extends BaseFluent{ + + private String apiVersion; + private String driverName; + private String kind; + private V1ObjectMetaBuilder metadata; + private Map parameters; + public V1VolumeAttributesClassFluent() { } public V1VolumeAttributesClassFluent(V1VolumeAttributesClass instance) { this.copyInstance(instance); } - private String apiVersion; - private String driverName; - private String kind; - private V1ObjectMetaBuilder metadata; - private Map parameters; + + public A addToParameters(Map map) { + if (this.parameters == null && map != null) { + this.parameters = new LinkedHashMap(); + } + if (map != null) { + this.parameters.putAll(map); + } + return (A) this; + } + + public A addToParameters(String key,String value) { + if (this.parameters == null && key != null && value != null) { + this.parameters = new LinkedHashMap(); + } + if (key != null && value != null) { + this.parameters.put(key, value); + } + return (A) this; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } protected void copyInstance(V1VolumeAttributesClass instance) { instance = instance != null ? instance : new V1VolumeAttributesClass(); @@ -39,103 +65,85 @@ protected void copyInstance(V1VolumeAttributesClass instance) { } } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public String getDriverName() { - return this.driverName; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeAttributesClassFluent that = (V1VolumeAttributesClassFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(driverName, that.driverName))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(parameters, that.parameters))) { + return false; + } + return true; } - public A withDriverName(String driverName) { - this.driverName = driverName; - return (A) this; + public String getApiVersion() { + return this.apiVersion; } - public boolean hasDriverName() { - return this.driverName != null; + public String getDriverName() { + return this.driverName; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public Map getParameters() { + return this.parameters; } - public boolean hasKind() { - return this.kind != null; + public boolean hasApiVersion() { + return this.apiVersion != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasDriverName() { + return this.driverName != null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; + public boolean hasKind() { + return this.kind != null; } public boolean hasMetadata() { return this.metadata != null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); - } - - public A addToParameters(String key,String value) { - if (this.parameters == null && key != null && value != null) { - this.parameters = new LinkedHashMap(); - } - if (key != null && value != null) { - this.parameters.put(key, value); - } - return (A) this; + public boolean hasParameters() { + return this.parameters != null; } - public A addToParameters(Map map) { - if (this.parameters == null && map != null) { - this.parameters = new LinkedHashMap(); - } - if (map != null) { - this.parameters.putAll(map); - } - return (A) this; + public int hashCode() { + return Objects.hash(apiVersion, driverName, kind, metadata, parameters); } public A removeFromParameters(String key) { @@ -162,56 +170,6 @@ public A removeFromParameters(Map map) { return (A) this; } - public Map getParameters() { - return this.parameters; - } - - public A withParameters(Map parameters) { - if (parameters == null) { - this.parameters = null; - } else { - this.parameters = new LinkedHashMap(parameters); - } - return (A) this; - } - - public boolean hasParameters() { - return this.parameters != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1VolumeAttributesClassFluent that = (V1VolumeAttributesClassFluent) o; - if (!(Objects.equals(apiVersion, that.apiVersion))) { - return false; - } - if (!(Objects.equals(driverName, that.driverName))) { - return false; - } - if (!(Objects.equals(kind, that.kind))) { - return false; - } - if (!(Objects.equals(metadata, that.metadata))) { - return false; - } - if (!(Objects.equals(parameters, that.parameters))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(apiVersion, driverName, kind, metadata, parameters); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -242,12 +200,58 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withDriverName(String driverName) { + this.driverName = driverName; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public A withParameters(Map parameters) { + if (parameters == null) { + this.parameters = null; + } else { + this.parameters = new LinkedHashMap(parameters); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1VolumeAttributesClassFluent.this.withMetadata(builder.build()); } @@ -256,7 +260,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListBuilder.java index 2f0c24d072..01f95f23ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1VolumeAttributesClassListBuilder extends V1VolumeAttributesClassListFluent implements VisitableBuilder{ + + V1VolumeAttributesClassListFluent fluent; + public V1VolumeAttributesClassListBuilder() { this(new V1VolumeAttributesClassList()); } @@ -11,17 +14,16 @@ public V1VolumeAttributesClassListBuilder(V1VolumeAttributesClassListFluent f this(fluent, new V1VolumeAttributesClassList()); } - public V1VolumeAttributesClassListBuilder(V1VolumeAttributesClassListFluent fluent,V1VolumeAttributesClassList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeAttributesClassListBuilder(V1VolumeAttributesClassList instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeAttributesClassListFluent fluent; + public V1VolumeAttributesClassListBuilder(V1VolumeAttributesClassListFluent fluent,V1VolumeAttributesClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeAttributesClassList build() { V1VolumeAttributesClassList buildable = new V1VolumeAttributesClassList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1VolumeAttributesClassList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListFluent.java index 00dcccec22..c318a5961a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1VolumeAttributesClassListFluent> extends BaseFluent{ - public V1VolumeAttributesClassListFluent() { - } - - public V1VolumeAttributesClassListFluent(V1VolumeAttributesClassList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1VolumeAttributesClassList instance) { - instance = instance != null ? instance : new V1VolumeAttributesClassList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1VolumeAttributesClassListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1VolumeAttributesClassListFluent(V1VolumeAttributesClassList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1VolumeAttributesClass item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1VolumeAttributesClass item : items) { + V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1VolumeAttributesClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1VolumeAttributesClass item) { + return new ItemsNested(-1, item); } public A addToItems(V1VolumeAttributesClass... items) { @@ -96,68 +65,31 @@ public A addToItems(V1VolumeAttributesClass... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1VolumeAttributesClass item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1VolumeAttributesClass item : items) { - V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); + V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1VolumeAttributesClass... items) { - if (this.items == null) { - return (A) this; - } - for (V1VolumeAttributesClass item : items) { - V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1VolumeAttributesClass item : items) { - V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1VolumeAttributesClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1VolumeAttributesClass buildFirstItem() { + return this.items.get(0).build(); } public V1VolumeAttributesClass buildItem(int index) { return this.items.get(index).build(); } - public V1VolumeAttributesClass buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1VolumeAttributesClass buildLastItem() { @@ -173,73 +105,34 @@ public V1VolumeAttributesClass buildMatchingItem(Predicate predicate) { - for (V1VolumeAttributesClassBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1VolumeAttributesClass item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1VolumeAttributesClassList instance) { + instance = instance != null ? instance : new V1VolumeAttributesClassList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1VolumeAttributesClass... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1VolumeAttributesClass item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1VolumeAttributesClass item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1VolumeAttributesClass item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1VolumeAttributesClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1VolumeAttributesClass item : items) { + V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1VolumeAttributesClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1VolumeAttributesClass item : items) { + V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1VolumeAttributesClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1VolumeAttributesClass item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1VolumeAttributesClass item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1VolumeAttributesClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1VolumeAttributesClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1VolumeAttributesClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1VolumeAttributesClassFluent> implements Nested{ + + V1VolumeAttributesClassBuilder builder; + int index; + ItemsNested(int index,V1VolumeAttributesClass item) { this.index = index; this.builder = new V1VolumeAttributesClassBuilder(this, item); } - V1VolumeAttributesClassBuilder builder; - int index; - + public N and() { return (N) V1VolumeAttributesClassListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1VolumeAttributesClassListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java index 0668dc3922..21173d92cf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1VolumeBuilder extends V1VolumeFluent implements VisitableBuilder{ + + V1VolumeFluent fluent; + public V1VolumeBuilder() { this(new V1Volume()); } @@ -11,17 +14,16 @@ public V1VolumeBuilder(V1VolumeFluent fluent) { this(fluent, new V1Volume()); } - public V1VolumeBuilder(V1VolumeFluent fluent,V1Volume instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeBuilder(V1Volume instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeFluent fluent; + public V1VolumeBuilder(V1VolumeFluent fluent,V1Volume instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Volume build() { V1Volume buildable = new V1Volume(); buildable.setAwsElasticBlockStore(fluent.buildAwsElasticBlockStore()); @@ -58,5 +60,4 @@ public V1Volume build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java index 061f5213fe..89b8467ca5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1VolumeDeviceBuilder extends V1VolumeDeviceFluent implements VisitableBuilder{ + + V1VolumeDeviceFluent fluent; + public V1VolumeDeviceBuilder() { this(new V1VolumeDevice()); } @@ -11,17 +14,16 @@ public V1VolumeDeviceBuilder(V1VolumeDeviceFluent fluent) { this(fluent, new V1VolumeDevice()); } - public V1VolumeDeviceBuilder(V1VolumeDeviceFluent fluent,V1VolumeDevice instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeDeviceBuilder(V1VolumeDevice instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeDeviceFluent fluent; + public V1VolumeDeviceBuilder(V1VolumeDeviceFluent fluent,V1VolumeDevice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeDevice build() { V1VolumeDevice buildable = new V1VolumeDevice(); buildable.setDevicePath(fluent.getDevicePath()); @@ -29,5 +31,4 @@ public V1VolumeDevice build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java index 3b3ef1f366..e975642d2c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1VolumeDeviceFluent> extends BaseFluent{ + + private String devicePath; + private String name; + public V1VolumeDeviceFluent() { } public V1VolumeDeviceFluent(V1VolumeDevice instance) { this.copyInstance(instance); } - private String devicePath; - private String name; - + protected void copyInstance(V1VolumeDevice instance) { instance = instance != null ? instance : new V1VolumeDevice(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1VolumeDevice instance) { } } - public String getDevicePath() { - return this.devicePath; - } - - public A withDevicePath(String devicePath) { - this.devicePath = devicePath; - return (A) this; - } - - public boolean hasDevicePath() { - return this.devicePath != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getDevicePath() { + return this.devicePath; + } + + public String getName() { + return this.name; + } + + public boolean hasDevicePath() { + return this.devicePath != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(devicePath, name); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withDevicePath(String devicePath) { + this.devicePath = devicePath; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java index 8083da8ef3..c34d2cfd09 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1VolumeErrorBuilder extends V1VolumeErrorFluent implements VisitableBuilder{ + + V1VolumeErrorFluent fluent; + public V1VolumeErrorBuilder() { this(new V1VolumeError()); } @@ -11,17 +14,16 @@ public V1VolumeErrorBuilder(V1VolumeErrorFluent fluent) { this(fluent, new V1VolumeError()); } - public V1VolumeErrorBuilder(V1VolumeErrorFluent fluent,V1VolumeError instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeErrorBuilder(V1VolumeError instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeErrorFluent fluent; + public V1VolumeErrorBuilder(V1VolumeErrorFluent fluent,V1VolumeError instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeError build() { V1VolumeError buildable = new V1VolumeError(); buildable.setErrorCode(fluent.getErrorCode()); @@ -30,5 +32,4 @@ public V1VolumeError build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java index 4695d7d938..bb088f1d64 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.time.OffsetDateTime; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; +import java.time.OffsetDateTime; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1VolumeErrorFluent> extends BaseFluent{ + + private Integer errorCode; + private String message; + private OffsetDateTime time; + public V1VolumeErrorFluent() { } public V1VolumeErrorFluent(V1VolumeError instance) { this.copyInstance(instance); } - private Integer errorCode; - private String message; - private OffsetDateTime time; - + protected void copyInstance(V1VolumeError instance) { instance = instance != null ? instance : new V1VolumeError(); if (instance != null) { @@ -33,45 +35,6 @@ protected void copyInstance(V1VolumeError instance) { } } - public Integer getErrorCode() { - return this.errorCode; - } - - public A withErrorCode(Integer errorCode) { - this.errorCode = errorCode; - return (A) this; - } - - public boolean hasErrorCode() { - return this.errorCode != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public OffsetDateTime getTime() { - return this.time; - } - - public A withTime(OffsetDateTime time) { - this.time = time; - return (A) this; - } - - public boolean hasTime() { - return this.time != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -95,6 +58,30 @@ public boolean equals(Object o) { return true; } + public Integer getErrorCode() { + return this.errorCode; + } + + public String getMessage() { + return this.message; + } + + public OffsetDateTime getTime() { + return this.time; + } + + public boolean hasErrorCode() { + return this.errorCode != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasTime() { + return this.time != null; + } + public int hashCode() { return Objects.hash(errorCode, message, time); } @@ -120,5 +107,19 @@ public String toString() { return sb.toString(); } - + public A withErrorCode(Integer errorCode) { + this.errorCode = errorCode; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withTime(OffsetDateTime time) { + this.time = time; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java index eb3b3f1552..2b3920ff85 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java @@ -1,25 +1,20 @@ package io.kubernetes.client.openapi.models; -import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Object; -import java.util.Optional; -import java.util.Objects; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1VolumeFluent> extends BaseFluent{ - public V1VolumeFluent() { - } - - public V1VolumeFluent(V1Volume instance) { - this.copyInstance(instance); - } + private V1AWSElasticBlockStoreVolumeSourceBuilder awsElasticBlockStore; private V1AzureDiskVolumeSourceBuilder azureDisk; private V1AzureFileVolumeSourceBuilder azureFile; @@ -51,6 +46,133 @@ public V1VolumeFluent(V1Volume instance) { private V1SecretVolumeSourceBuilder secret; private V1StorageOSVolumeSourceBuilder storageos; private V1VsphereVirtualDiskVolumeSourceBuilder vsphereVolume; + + public V1VolumeFluent() { + } + + public V1VolumeFluent(V1Volume instance) { + this.copyInstance(instance); + } + + public V1AWSElasticBlockStoreVolumeSource buildAwsElasticBlockStore() { + return this.awsElasticBlockStore != null ? this.awsElasticBlockStore.build() : null; + } + + public V1AzureDiskVolumeSource buildAzureDisk() { + return this.azureDisk != null ? this.azureDisk.build() : null; + } + + public V1AzureFileVolumeSource buildAzureFile() { + return this.azureFile != null ? this.azureFile.build() : null; + } + + public V1CephFSVolumeSource buildCephfs() { + return this.cephfs != null ? this.cephfs.build() : null; + } + + public V1CinderVolumeSource buildCinder() { + return this.cinder != null ? this.cinder.build() : null; + } + + public V1ConfigMapVolumeSource buildConfigMap() { + return this.configMap != null ? this.configMap.build() : null; + } + + public V1CSIVolumeSource buildCsi() { + return this.csi != null ? this.csi.build() : null; + } + + public V1DownwardAPIVolumeSource buildDownwardAPI() { + return this.downwardAPI != null ? this.downwardAPI.build() : null; + } + + public V1EmptyDirVolumeSource buildEmptyDir() { + return this.emptyDir != null ? this.emptyDir.build() : null; + } + + public V1EphemeralVolumeSource buildEphemeral() { + return this.ephemeral != null ? this.ephemeral.build() : null; + } + + public V1FCVolumeSource buildFc() { + return this.fc != null ? this.fc.build() : null; + } + + public V1FlexVolumeSource buildFlexVolume() { + return this.flexVolume != null ? this.flexVolume.build() : null; + } + + public V1FlockerVolumeSource buildFlocker() { + return this.flocker != null ? this.flocker.build() : null; + } + + public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk() { + return this.gcePersistentDisk != null ? this.gcePersistentDisk.build() : null; + } + + public V1GitRepoVolumeSource buildGitRepo() { + return this.gitRepo != null ? this.gitRepo.build() : null; + } + + public V1GlusterfsVolumeSource buildGlusterfs() { + return this.glusterfs != null ? this.glusterfs.build() : null; + } + + public V1HostPathVolumeSource buildHostPath() { + return this.hostPath != null ? this.hostPath.build() : null; + } + + public V1ImageVolumeSource buildImage() { + return this.image != null ? this.image.build() : null; + } + + public V1ISCSIVolumeSource buildIscsi() { + return this.iscsi != null ? this.iscsi.build() : null; + } + + public V1NFSVolumeSource buildNfs() { + return this.nfs != null ? this.nfs.build() : null; + } + + public V1PersistentVolumeClaimVolumeSource buildPersistentVolumeClaim() { + return this.persistentVolumeClaim != null ? this.persistentVolumeClaim.build() : null; + } + + public V1PhotonPersistentDiskVolumeSource buildPhotonPersistentDisk() { + return this.photonPersistentDisk != null ? this.photonPersistentDisk.build() : null; + } + + public V1PortworxVolumeSource buildPortworxVolume() { + return this.portworxVolume != null ? this.portworxVolume.build() : null; + } + + public V1ProjectedVolumeSource buildProjected() { + return this.projected != null ? this.projected.build() : null; + } + + public V1QuobyteVolumeSource buildQuobyte() { + return this.quobyte != null ? this.quobyte.build() : null; + } + + public V1RBDVolumeSource buildRbd() { + return this.rbd != null ? this.rbd.build() : null; + } + + public V1ScaleIOVolumeSource buildScaleIO() { + return this.scaleIO != null ? this.scaleIO.build() : null; + } + + public V1SecretVolumeSource buildSecret() { + return this.secret != null ? this.secret.build() : null; + } + + public V1StorageOSVolumeSource buildStorageos() { + return this.storageos != null ? this.storageos.build() : null; + } + + public V1VsphereVirtualDiskVolumeSource buildVsphereVolume() { + return this.vsphereVolume != null ? this.vsphereVolume.build() : null; + } protected void copyInstance(V1Volume instance) { instance = instance != null ? instance : new V1Volume(); @@ -89,1197 +211,1229 @@ protected void copyInstance(V1Volume instance) { } } - public V1AWSElasticBlockStoreVolumeSource buildAwsElasticBlockStore() { - return this.awsElasticBlockStore != null ? this.awsElasticBlockStore.build() : null; + public AwsElasticBlockStoreNested editAwsElasticBlockStore() { + return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(null)); } - public A withAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { - this._visitables.remove("awsElasticBlockStore"); - if (awsElasticBlockStore != null) { - this.awsElasticBlockStore = new V1AWSElasticBlockStoreVolumeSourceBuilder(awsElasticBlockStore); - this._visitables.get("awsElasticBlockStore").add(this.awsElasticBlockStore); - } else { - this.awsElasticBlockStore = null; - this._visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); - } - return (A) this; + public AzureDiskNested editAzureDisk() { + return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(null)); } - public boolean hasAwsElasticBlockStore() { - return this.awsElasticBlockStore != null; + public AzureFileNested editAzureFile() { + return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(null)); } - public AwsElasticBlockStoreNested withNewAwsElasticBlockStore() { - return new AwsElasticBlockStoreNested(null); + public CephfsNested editCephfs() { + return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(null)); } - public AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { - return new AwsElasticBlockStoreNested(item); + public CinderNested editCinder() { + return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(null)); } - public AwsElasticBlockStoreNested editAwsElasticBlockStore() { - return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(null)); + public ConfigMapNested editConfigMap() { + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(null)); } - public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore() { - return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(new V1AWSElasticBlockStoreVolumeSourceBuilder().build())); + public CsiNested editCsi() { + return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(null)); } - public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { - return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(item)); + public DownwardAPINested editDownwardAPI() { + return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(null)); } - public V1AzureDiskVolumeSource buildAzureDisk() { - return this.azureDisk != null ? this.azureDisk.build() : null; + public EmptyDirNested editEmptyDir() { + return this.withNewEmptyDirLike(Optional.ofNullable(this.buildEmptyDir()).orElse(null)); } - public A withAzureDisk(V1AzureDiskVolumeSource azureDisk) { - this._visitables.remove("azureDisk"); - if (azureDisk != null) { - this.azureDisk = new V1AzureDiskVolumeSourceBuilder(azureDisk); - this._visitables.get("azureDisk").add(this.azureDisk); - } else { - this.azureDisk = null; - this._visitables.get("azureDisk").remove(this.azureDisk); - } - return (A) this; + public EphemeralNested editEphemeral() { + return this.withNewEphemeralLike(Optional.ofNullable(this.buildEphemeral()).orElse(null)); } - public boolean hasAzureDisk() { - return this.azureDisk != null; + public FcNested editFc() { + return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(null)); } - public AzureDiskNested withNewAzureDisk() { - return new AzureDiskNested(null); + public FlexVolumeNested editFlexVolume() { + return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(null)); } - public AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item) { - return new AzureDiskNested(item); + public FlockerNested editFlocker() { + return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(null)); } - public AzureDiskNested editAzureDisk() { - return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(null)); + public GcePersistentDiskNested editGcePersistentDisk() { + return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(null)); } - public AzureDiskNested editOrNewAzureDisk() { - return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(new V1AzureDiskVolumeSourceBuilder().build())); + public GitRepoNested editGitRepo() { + return this.withNewGitRepoLike(Optional.ofNullable(this.buildGitRepo()).orElse(null)); } - public AzureDiskNested editOrNewAzureDiskLike(V1AzureDiskVolumeSource item) { - return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(item)); + public GlusterfsNested editGlusterfs() { + return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(null)); } - public V1AzureFileVolumeSource buildAzureFile() { - return this.azureFile != null ? this.azureFile.build() : null; + public HostPathNested editHostPath() { + return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(null)); } - public A withAzureFile(V1AzureFileVolumeSource azureFile) { - this._visitables.remove("azureFile"); - if (azureFile != null) { - this.azureFile = new V1AzureFileVolumeSourceBuilder(azureFile); - this._visitables.get("azureFile").add(this.azureFile); - } else { - this.azureFile = null; - this._visitables.get("azureFile").remove(this.azureFile); - } - return (A) this; + public ImageNested editImage() { + return this.withNewImageLike(Optional.ofNullable(this.buildImage()).orElse(null)); } - public boolean hasAzureFile() { - return this.azureFile != null; + public IscsiNested editIscsi() { + return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(null)); } - public AzureFileNested withNewAzureFile() { - return new AzureFileNested(null); + public NfsNested editNfs() { + return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(null)); } - public AzureFileNested withNewAzureFileLike(V1AzureFileVolumeSource item) { - return new AzureFileNested(item); + public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore() { + return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(new V1AWSElasticBlockStoreVolumeSourceBuilder().build())); } - public AzureFileNested editAzureFile() { - return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(null)); + public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { + return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(item)); } - public AzureFileNested editOrNewAzureFile() { - return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(new V1AzureFileVolumeSourceBuilder().build())); + public AzureDiskNested editOrNewAzureDisk() { + return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(new V1AzureDiskVolumeSourceBuilder().build())); + } + + public AzureDiskNested editOrNewAzureDiskLike(V1AzureDiskVolumeSource item) { + return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(item)); + } + + public AzureFileNested editOrNewAzureFile() { + return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(new V1AzureFileVolumeSourceBuilder().build())); } public AzureFileNested editOrNewAzureFileLike(V1AzureFileVolumeSource item) { return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(item)); } - public V1CephFSVolumeSource buildCephfs() { - return this.cephfs != null ? this.cephfs.build() : null; + public CephfsNested editOrNewCephfs() { + return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(new V1CephFSVolumeSourceBuilder().build())); } - public A withCephfs(V1CephFSVolumeSource cephfs) { - this._visitables.remove("cephfs"); - if (cephfs != null) { - this.cephfs = new V1CephFSVolumeSourceBuilder(cephfs); - this._visitables.get("cephfs").add(this.cephfs); - } else { - this.cephfs = null; - this._visitables.get("cephfs").remove(this.cephfs); - } - return (A) this; + public CephfsNested editOrNewCephfsLike(V1CephFSVolumeSource item) { + return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(item)); } - public boolean hasCephfs() { - return this.cephfs != null; + public CinderNested editOrNewCinder() { + return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(new V1CinderVolumeSourceBuilder().build())); } - public CephfsNested withNewCephfs() { - return new CephfsNested(null); + public CinderNested editOrNewCinderLike(V1CinderVolumeSource item) { + return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(item)); } - public CephfsNested withNewCephfsLike(V1CephFSVolumeSource item) { - return new CephfsNested(item); + public ConfigMapNested editOrNewConfigMap() { + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(new V1ConfigMapVolumeSourceBuilder().build())); } - public CephfsNested editCephfs() { - return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(null)); + public ConfigMapNested editOrNewConfigMapLike(V1ConfigMapVolumeSource item) { + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(item)); } - public CephfsNested editOrNewCephfs() { - return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(new V1CephFSVolumeSourceBuilder().build())); + public CsiNested editOrNewCsi() { + return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(new V1CSIVolumeSourceBuilder().build())); } - public CephfsNested editOrNewCephfsLike(V1CephFSVolumeSource item) { - return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(item)); + public CsiNested editOrNewCsiLike(V1CSIVolumeSource item) { + return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(item)); } - public V1CinderVolumeSource buildCinder() { - return this.cinder != null ? this.cinder.build() : null; + public DownwardAPINested editOrNewDownwardAPI() { + return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(new V1DownwardAPIVolumeSourceBuilder().build())); } - public A withCinder(V1CinderVolumeSource cinder) { - this._visitables.remove("cinder"); - if (cinder != null) { - this.cinder = new V1CinderVolumeSourceBuilder(cinder); - this._visitables.get("cinder").add(this.cinder); - } else { - this.cinder = null; - this._visitables.get("cinder").remove(this.cinder); - } - return (A) this; + public DownwardAPINested editOrNewDownwardAPILike(V1DownwardAPIVolumeSource item) { + return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(item)); } - public boolean hasCinder() { - return this.cinder != null; + public EmptyDirNested editOrNewEmptyDir() { + return this.withNewEmptyDirLike(Optional.ofNullable(this.buildEmptyDir()).orElse(new V1EmptyDirVolumeSourceBuilder().build())); } - public CinderNested withNewCinder() { - return new CinderNested(null); + public EmptyDirNested editOrNewEmptyDirLike(V1EmptyDirVolumeSource item) { + return this.withNewEmptyDirLike(Optional.ofNullable(this.buildEmptyDir()).orElse(item)); } - public CinderNested withNewCinderLike(V1CinderVolumeSource item) { - return new CinderNested(item); + public EphemeralNested editOrNewEphemeral() { + return this.withNewEphemeralLike(Optional.ofNullable(this.buildEphemeral()).orElse(new V1EphemeralVolumeSourceBuilder().build())); } - public CinderNested editCinder() { - return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(null)); + public EphemeralNested editOrNewEphemeralLike(V1EphemeralVolumeSource item) { + return this.withNewEphemeralLike(Optional.ofNullable(this.buildEphemeral()).orElse(item)); } - public CinderNested editOrNewCinder() { - return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(new V1CinderVolumeSourceBuilder().build())); + public FcNested editOrNewFc() { + return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(new V1FCVolumeSourceBuilder().build())); } - public CinderNested editOrNewCinderLike(V1CinderVolumeSource item) { - return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(item)); + public FcNested editOrNewFcLike(V1FCVolumeSource item) { + return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(item)); } - public V1ConfigMapVolumeSource buildConfigMap() { - return this.configMap != null ? this.configMap.build() : null; + public FlexVolumeNested editOrNewFlexVolume() { + return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(new V1FlexVolumeSourceBuilder().build())); } - public A withConfigMap(V1ConfigMapVolumeSource configMap) { - this._visitables.remove("configMap"); - if (configMap != null) { - this.configMap = new V1ConfigMapVolumeSourceBuilder(configMap); - this._visitables.get("configMap").add(this.configMap); - } else { - this.configMap = null; - this._visitables.get("configMap").remove(this.configMap); - } - return (A) this; + public FlexVolumeNested editOrNewFlexVolumeLike(V1FlexVolumeSource item) { + return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(item)); } - public boolean hasConfigMap() { - return this.configMap != null; + public FlockerNested editOrNewFlocker() { + return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(new V1FlockerVolumeSourceBuilder().build())); } - public ConfigMapNested withNewConfigMap() { - return new ConfigMapNested(null); + public FlockerNested editOrNewFlockerLike(V1FlockerVolumeSource item) { + return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(item)); } - public ConfigMapNested withNewConfigMapLike(V1ConfigMapVolumeSource item) { - return new ConfigMapNested(item); + public GcePersistentDiskNested editOrNewGcePersistentDisk() { + return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(new V1GCEPersistentDiskVolumeSourceBuilder().build())); } - public ConfigMapNested editConfigMap() { - return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(null)); + public GcePersistentDiskNested editOrNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { + return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(item)); } - public ConfigMapNested editOrNewConfigMap() { - return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(new V1ConfigMapVolumeSourceBuilder().build())); + public GitRepoNested editOrNewGitRepo() { + return this.withNewGitRepoLike(Optional.ofNullable(this.buildGitRepo()).orElse(new V1GitRepoVolumeSourceBuilder().build())); } - public ConfigMapNested editOrNewConfigMapLike(V1ConfigMapVolumeSource item) { - return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(item)); + public GitRepoNested editOrNewGitRepoLike(V1GitRepoVolumeSource item) { + return this.withNewGitRepoLike(Optional.ofNullable(this.buildGitRepo()).orElse(item)); } - public V1CSIVolumeSource buildCsi() { - return this.csi != null ? this.csi.build() : null; + public GlusterfsNested editOrNewGlusterfs() { + return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(new V1GlusterfsVolumeSourceBuilder().build())); } - public A withCsi(V1CSIVolumeSource csi) { - this._visitables.remove("csi"); - if (csi != null) { - this.csi = new V1CSIVolumeSourceBuilder(csi); - this._visitables.get("csi").add(this.csi); - } else { - this.csi = null; - this._visitables.get("csi").remove(this.csi); - } - return (A) this; + public GlusterfsNested editOrNewGlusterfsLike(V1GlusterfsVolumeSource item) { + return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(item)); } - public boolean hasCsi() { - return this.csi != null; + public HostPathNested editOrNewHostPath() { + return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(new V1HostPathVolumeSourceBuilder().build())); } - public CsiNested withNewCsi() { - return new CsiNested(null); + public HostPathNested editOrNewHostPathLike(V1HostPathVolumeSource item) { + return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(item)); } - public CsiNested withNewCsiLike(V1CSIVolumeSource item) { - return new CsiNested(item); + public ImageNested editOrNewImage() { + return this.withNewImageLike(Optional.ofNullable(this.buildImage()).orElse(new V1ImageVolumeSourceBuilder().build())); } - public CsiNested editCsi() { - return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(null)); + public ImageNested editOrNewImageLike(V1ImageVolumeSource item) { + return this.withNewImageLike(Optional.ofNullable(this.buildImage()).orElse(item)); } - public CsiNested editOrNewCsi() { - return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(new V1CSIVolumeSourceBuilder().build())); + public IscsiNested editOrNewIscsi() { + return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(new V1ISCSIVolumeSourceBuilder().build())); } - public CsiNested editOrNewCsiLike(V1CSIVolumeSource item) { - return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(item)); + public IscsiNested editOrNewIscsiLike(V1ISCSIVolumeSource item) { + return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(item)); } - public V1DownwardAPIVolumeSource buildDownwardAPI() { - return this.downwardAPI != null ? this.downwardAPI.build() : null; + public NfsNested editOrNewNfs() { + return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(new V1NFSVolumeSourceBuilder().build())); } - public A withDownwardAPI(V1DownwardAPIVolumeSource downwardAPI) { - this._visitables.remove("downwardAPI"); - if (downwardAPI != null) { - this.downwardAPI = new V1DownwardAPIVolumeSourceBuilder(downwardAPI); - this._visitables.get("downwardAPI").add(this.downwardAPI); - } else { - this.downwardAPI = null; - this._visitables.get("downwardAPI").remove(this.downwardAPI); - } - return (A) this; + public NfsNested editOrNewNfsLike(V1NFSVolumeSource item) { + return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(item)); } - public boolean hasDownwardAPI() { - return this.downwardAPI != null; + public PersistentVolumeClaimNested editOrNewPersistentVolumeClaim() { + return this.withNewPersistentVolumeClaimLike(Optional.ofNullable(this.buildPersistentVolumeClaim()).orElse(new V1PersistentVolumeClaimVolumeSourceBuilder().build())); } - public DownwardAPINested withNewDownwardAPI() { - return new DownwardAPINested(null); + public PersistentVolumeClaimNested editOrNewPersistentVolumeClaimLike(V1PersistentVolumeClaimVolumeSource item) { + return this.withNewPersistentVolumeClaimLike(Optional.ofNullable(this.buildPersistentVolumeClaim()).orElse(item)); } - public DownwardAPINested withNewDownwardAPILike(V1DownwardAPIVolumeSource item) { - return new DownwardAPINested(item); + public PhotonPersistentDiskNested editOrNewPhotonPersistentDisk() { + return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(new V1PhotonPersistentDiskVolumeSourceBuilder().build())); } - public DownwardAPINested editDownwardAPI() { - return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(null)); + public PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { + return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(item)); } - public DownwardAPINested editOrNewDownwardAPI() { - return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(new V1DownwardAPIVolumeSourceBuilder().build())); + public PortworxVolumeNested editOrNewPortworxVolume() { + return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(new V1PortworxVolumeSourceBuilder().build())); } - public DownwardAPINested editOrNewDownwardAPILike(V1DownwardAPIVolumeSource item) { - return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(item)); + public PortworxVolumeNested editOrNewPortworxVolumeLike(V1PortworxVolumeSource item) { + return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(item)); } - public V1EmptyDirVolumeSource buildEmptyDir() { - return this.emptyDir != null ? this.emptyDir.build() : null; + public ProjectedNested editOrNewProjected() { + return this.withNewProjectedLike(Optional.ofNullable(this.buildProjected()).orElse(new V1ProjectedVolumeSourceBuilder().build())); } - public A withEmptyDir(V1EmptyDirVolumeSource emptyDir) { - this._visitables.remove("emptyDir"); - if (emptyDir != null) { - this.emptyDir = new V1EmptyDirVolumeSourceBuilder(emptyDir); - this._visitables.get("emptyDir").add(this.emptyDir); - } else { - this.emptyDir = null; - this._visitables.get("emptyDir").remove(this.emptyDir); - } - return (A) this; + public ProjectedNested editOrNewProjectedLike(V1ProjectedVolumeSource item) { + return this.withNewProjectedLike(Optional.ofNullable(this.buildProjected()).orElse(item)); } - public boolean hasEmptyDir() { - return this.emptyDir != null; + public QuobyteNested editOrNewQuobyte() { + return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(new V1QuobyteVolumeSourceBuilder().build())); } - public EmptyDirNested withNewEmptyDir() { - return new EmptyDirNested(null); + public QuobyteNested editOrNewQuobyteLike(V1QuobyteVolumeSource item) { + return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(item)); } - public EmptyDirNested withNewEmptyDirLike(V1EmptyDirVolumeSource item) { - return new EmptyDirNested(item); + public RbdNested editOrNewRbd() { + return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(new V1RBDVolumeSourceBuilder().build())); } - public EmptyDirNested editEmptyDir() { - return this.withNewEmptyDirLike(Optional.ofNullable(this.buildEmptyDir()).orElse(null)); + public RbdNested editOrNewRbdLike(V1RBDVolumeSource item) { + return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(item)); } - public EmptyDirNested editOrNewEmptyDir() { - return this.withNewEmptyDirLike(Optional.ofNullable(this.buildEmptyDir()).orElse(new V1EmptyDirVolumeSourceBuilder().build())); + public ScaleIONested editOrNewScaleIO() { + return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(new V1ScaleIOVolumeSourceBuilder().build())); } - public EmptyDirNested editOrNewEmptyDirLike(V1EmptyDirVolumeSource item) { - return this.withNewEmptyDirLike(Optional.ofNullable(this.buildEmptyDir()).orElse(item)); + public ScaleIONested editOrNewScaleIOLike(V1ScaleIOVolumeSource item) { + return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(item)); } - public V1EphemeralVolumeSource buildEphemeral() { - return this.ephemeral != null ? this.ephemeral.build() : null; + public SecretNested editOrNewSecret() { + return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(new V1SecretVolumeSourceBuilder().build())); } - public A withEphemeral(V1EphemeralVolumeSource ephemeral) { - this._visitables.remove("ephemeral"); - if (ephemeral != null) { - this.ephemeral = new V1EphemeralVolumeSourceBuilder(ephemeral); - this._visitables.get("ephemeral").add(this.ephemeral); - } else { - this.ephemeral = null; - this._visitables.get("ephemeral").remove(this.ephemeral); - } - return (A) this; - } - - public boolean hasEphemeral() { - return this.ephemeral != null; + public SecretNested editOrNewSecretLike(V1SecretVolumeSource item) { + return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(item)); } - public EphemeralNested withNewEphemeral() { - return new EphemeralNested(null); + public StorageosNested editOrNewStorageos() { + return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(new V1StorageOSVolumeSourceBuilder().build())); } - public EphemeralNested withNewEphemeralLike(V1EphemeralVolumeSource item) { - return new EphemeralNested(item); + public StorageosNested editOrNewStorageosLike(V1StorageOSVolumeSource item) { + return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(item)); } - public EphemeralNested editEphemeral() { - return this.withNewEphemeralLike(Optional.ofNullable(this.buildEphemeral()).orElse(null)); + public VsphereVolumeNested editOrNewVsphereVolume() { + return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(new V1VsphereVirtualDiskVolumeSourceBuilder().build())); } - public EphemeralNested editOrNewEphemeral() { - return this.withNewEphemeralLike(Optional.ofNullable(this.buildEphemeral()).orElse(new V1EphemeralVolumeSourceBuilder().build())); + public VsphereVolumeNested editOrNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { + return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(item)); } - public EphemeralNested editOrNewEphemeralLike(V1EphemeralVolumeSource item) { - return this.withNewEphemeralLike(Optional.ofNullable(this.buildEphemeral()).orElse(item)); + public PersistentVolumeClaimNested editPersistentVolumeClaim() { + return this.withNewPersistentVolumeClaimLike(Optional.ofNullable(this.buildPersistentVolumeClaim()).orElse(null)); } - public V1FCVolumeSource buildFc() { - return this.fc != null ? this.fc.build() : null; + public PhotonPersistentDiskNested editPhotonPersistentDisk() { + return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(null)); } - public A withFc(V1FCVolumeSource fc) { - this._visitables.remove("fc"); - if (fc != null) { - this.fc = new V1FCVolumeSourceBuilder(fc); - this._visitables.get("fc").add(this.fc); - } else { - this.fc = null; - this._visitables.get("fc").remove(this.fc); - } - return (A) this; + public PortworxVolumeNested editPortworxVolume() { + return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(null)); } - public boolean hasFc() { - return this.fc != null; + public ProjectedNested editProjected() { + return this.withNewProjectedLike(Optional.ofNullable(this.buildProjected()).orElse(null)); } - public FcNested withNewFc() { - return new FcNested(null); + public QuobyteNested editQuobyte() { + return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(null)); } - public FcNested withNewFcLike(V1FCVolumeSource item) { - return new FcNested(item); + public RbdNested editRbd() { + return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(null)); } - public FcNested editFc() { - return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(null)); + public ScaleIONested editScaleIO() { + return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(null)); } - public FcNested editOrNewFc() { - return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(new V1FCVolumeSourceBuilder().build())); + public SecretNested editSecret() { + return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(null)); } - public FcNested editOrNewFcLike(V1FCVolumeSource item) { - return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(item)); + public StorageosNested editStorageos() { + return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(null)); } - public V1FlexVolumeSource buildFlexVolume() { - return this.flexVolume != null ? this.flexVolume.build() : null; + public VsphereVolumeNested editVsphereVolume() { + return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(null)); } - public A withFlexVolume(V1FlexVolumeSource flexVolume) { - this._visitables.remove("flexVolume"); - if (flexVolume != null) { - this.flexVolume = new V1FlexVolumeSourceBuilder(flexVolume); - this._visitables.get("flexVolume").add(this.flexVolume); - } else { - this.flexVolume = null; - this._visitables.get("flexVolume").remove(this.flexVolume); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeFluent that = (V1VolumeFluent) o; + if (!(Objects.equals(awsElasticBlockStore, that.awsElasticBlockStore))) { + return false; + } + if (!(Objects.equals(azureDisk, that.azureDisk))) { + return false; + } + if (!(Objects.equals(azureFile, that.azureFile))) { + return false; + } + if (!(Objects.equals(cephfs, that.cephfs))) { + return false; + } + if (!(Objects.equals(cinder, that.cinder))) { + return false; + } + if (!(Objects.equals(configMap, that.configMap))) { + return false; + } + if (!(Objects.equals(csi, that.csi))) { + return false; + } + if (!(Objects.equals(downwardAPI, that.downwardAPI))) { + return false; + } + if (!(Objects.equals(emptyDir, that.emptyDir))) { + return false; + } + if (!(Objects.equals(ephemeral, that.ephemeral))) { + return false; + } + if (!(Objects.equals(fc, that.fc))) { + return false; + } + if (!(Objects.equals(flexVolume, that.flexVolume))) { + return false; + } + if (!(Objects.equals(flocker, that.flocker))) { + return false; + } + if (!(Objects.equals(gcePersistentDisk, that.gcePersistentDisk))) { + return false; + } + if (!(Objects.equals(gitRepo, that.gitRepo))) { + return false; + } + if (!(Objects.equals(glusterfs, that.glusterfs))) { + return false; + } + if (!(Objects.equals(hostPath, that.hostPath))) { + return false; + } + if (!(Objects.equals(image, that.image))) { + return false; + } + if (!(Objects.equals(iscsi, that.iscsi))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(nfs, that.nfs))) { + return false; + } + if (!(Objects.equals(persistentVolumeClaim, that.persistentVolumeClaim))) { + return false; + } + if (!(Objects.equals(photonPersistentDisk, that.photonPersistentDisk))) { + return false; + } + if (!(Objects.equals(portworxVolume, that.portworxVolume))) { + return false; + } + if (!(Objects.equals(projected, that.projected))) { + return false; + } + if (!(Objects.equals(quobyte, that.quobyte))) { + return false; + } + if (!(Objects.equals(rbd, that.rbd))) { + return false; + } + if (!(Objects.equals(scaleIO, that.scaleIO))) { + return false; + } + if (!(Objects.equals(secret, that.secret))) { + return false; + } + if (!(Objects.equals(storageos, that.storageos))) { + return false; + } + if (!(Objects.equals(vsphereVolume, that.vsphereVolume))) { + return false; + } + return true; } - public boolean hasFlexVolume() { - return this.flexVolume != null; + public String getName() { + return this.name; } - public FlexVolumeNested withNewFlexVolume() { - return new FlexVolumeNested(null); + public boolean hasAwsElasticBlockStore() { + return this.awsElasticBlockStore != null; } - public FlexVolumeNested withNewFlexVolumeLike(V1FlexVolumeSource item) { - return new FlexVolumeNested(item); + public boolean hasAzureDisk() { + return this.azureDisk != null; } - public FlexVolumeNested editFlexVolume() { - return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(null)); + public boolean hasAzureFile() { + return this.azureFile != null; } - public FlexVolumeNested editOrNewFlexVolume() { - return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(new V1FlexVolumeSourceBuilder().build())); + public boolean hasCephfs() { + return this.cephfs != null; } - public FlexVolumeNested editOrNewFlexVolumeLike(V1FlexVolumeSource item) { - return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(item)); + public boolean hasCinder() { + return this.cinder != null; } - public V1FlockerVolumeSource buildFlocker() { - return this.flocker != null ? this.flocker.build() : null; + public boolean hasConfigMap() { + return this.configMap != null; } - public A withFlocker(V1FlockerVolumeSource flocker) { - this._visitables.remove("flocker"); - if (flocker != null) { - this.flocker = new V1FlockerVolumeSourceBuilder(flocker); - this._visitables.get("flocker").add(this.flocker); - } else { - this.flocker = null; - this._visitables.get("flocker").remove(this.flocker); - } - return (A) this; + public boolean hasCsi() { + return this.csi != null; } - public boolean hasFlocker() { - return this.flocker != null; + public boolean hasDownwardAPI() { + return this.downwardAPI != null; } - public FlockerNested withNewFlocker() { - return new FlockerNested(null); + public boolean hasEmptyDir() { + return this.emptyDir != null; } - public FlockerNested withNewFlockerLike(V1FlockerVolumeSource item) { - return new FlockerNested(item); + public boolean hasEphemeral() { + return this.ephemeral != null; } - public FlockerNested editFlocker() { - return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(null)); + public boolean hasFc() { + return this.fc != null; } - public FlockerNested editOrNewFlocker() { - return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(new V1FlockerVolumeSourceBuilder().build())); + public boolean hasFlexVolume() { + return this.flexVolume != null; } - public FlockerNested editOrNewFlockerLike(V1FlockerVolumeSource item) { - return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(item)); - } - - public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk() { - return this.gcePersistentDisk != null ? this.gcePersistentDisk.build() : null; - } - - public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { - this._visitables.remove("gcePersistentDisk"); - if (gcePersistentDisk != null) { - this.gcePersistentDisk = new V1GCEPersistentDiskVolumeSourceBuilder(gcePersistentDisk); - this._visitables.get("gcePersistentDisk").add(this.gcePersistentDisk); - } else { - this.gcePersistentDisk = null; - this._visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); - } - return (A) this; + public boolean hasFlocker() { + return this.flocker != null; } public boolean hasGcePersistentDisk() { return this.gcePersistentDisk != null; } - public GcePersistentDiskNested withNewGcePersistentDisk() { - return new GcePersistentDiskNested(null); - } - - public GcePersistentDiskNested withNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { - return new GcePersistentDiskNested(item); - } - - public GcePersistentDiskNested editGcePersistentDisk() { - return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(null)); - } - - public GcePersistentDiskNested editOrNewGcePersistentDisk() { - return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(new V1GCEPersistentDiskVolumeSourceBuilder().build())); - } - - public GcePersistentDiskNested editOrNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { - return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(item)); - } - - public V1GitRepoVolumeSource buildGitRepo() { - return this.gitRepo != null ? this.gitRepo.build() : null; - } - - public A withGitRepo(V1GitRepoVolumeSource gitRepo) { - this._visitables.remove("gitRepo"); - if (gitRepo != null) { - this.gitRepo = new V1GitRepoVolumeSourceBuilder(gitRepo); - this._visitables.get("gitRepo").add(this.gitRepo); - } else { - this.gitRepo = null; - this._visitables.get("gitRepo").remove(this.gitRepo); - } - return (A) this; - } - public boolean hasGitRepo() { return this.gitRepo != null; } - public GitRepoNested withNewGitRepo() { - return new GitRepoNested(null); - } - - public GitRepoNested withNewGitRepoLike(V1GitRepoVolumeSource item) { - return new GitRepoNested(item); - } - - public GitRepoNested editGitRepo() { - return this.withNewGitRepoLike(Optional.ofNullable(this.buildGitRepo()).orElse(null)); - } - - public GitRepoNested editOrNewGitRepo() { - return this.withNewGitRepoLike(Optional.ofNullable(this.buildGitRepo()).orElse(new V1GitRepoVolumeSourceBuilder().build())); - } - - public GitRepoNested editOrNewGitRepoLike(V1GitRepoVolumeSource item) { - return this.withNewGitRepoLike(Optional.ofNullable(this.buildGitRepo()).orElse(item)); - } - - public V1GlusterfsVolumeSource buildGlusterfs() { - return this.glusterfs != null ? this.glusterfs.build() : null; - } - - public A withGlusterfs(V1GlusterfsVolumeSource glusterfs) { - this._visitables.remove("glusterfs"); - if (glusterfs != null) { - this.glusterfs = new V1GlusterfsVolumeSourceBuilder(glusterfs); - this._visitables.get("glusterfs").add(this.glusterfs); - } else { - this.glusterfs = null; - this._visitables.get("glusterfs").remove(this.glusterfs); - } - return (A) this; - } - public boolean hasGlusterfs() { return this.glusterfs != null; } - public GlusterfsNested withNewGlusterfs() { - return new GlusterfsNested(null); - } - - public GlusterfsNested withNewGlusterfsLike(V1GlusterfsVolumeSource item) { - return new GlusterfsNested(item); - } - - public GlusterfsNested editGlusterfs() { - return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(null)); - } - - public GlusterfsNested editOrNewGlusterfs() { - return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(new V1GlusterfsVolumeSourceBuilder().build())); - } - - public GlusterfsNested editOrNewGlusterfsLike(V1GlusterfsVolumeSource item) { - return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(item)); - } - - public V1HostPathVolumeSource buildHostPath() { - return this.hostPath != null ? this.hostPath.build() : null; - } - - public A withHostPath(V1HostPathVolumeSource hostPath) { - this._visitables.remove("hostPath"); - if (hostPath != null) { - this.hostPath = new V1HostPathVolumeSourceBuilder(hostPath); - this._visitables.get("hostPath").add(this.hostPath); - } else { - this.hostPath = null; - this._visitables.get("hostPath").remove(this.hostPath); - } - return (A) this; - } - public boolean hasHostPath() { return this.hostPath != null; } - public HostPathNested withNewHostPath() { - return new HostPathNested(null); - } - - public HostPathNested withNewHostPathLike(V1HostPathVolumeSource item) { - return new HostPathNested(item); - } - - public HostPathNested editHostPath() { - return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(null)); - } - - public HostPathNested editOrNewHostPath() { - return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(new V1HostPathVolumeSourceBuilder().build())); - } - - public HostPathNested editOrNewHostPathLike(V1HostPathVolumeSource item) { - return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(item)); - } - - public V1ImageVolumeSource buildImage() { - return this.image != null ? this.image.build() : null; - } - - public A withImage(V1ImageVolumeSource image) { - this._visitables.remove("image"); - if (image != null) { - this.image = new V1ImageVolumeSourceBuilder(image); - this._visitables.get("image").add(this.image); - } else { - this.image = null; - this._visitables.get("image").remove(this.image); - } - return (A) this; - } - public boolean hasImage() { return this.image != null; } - public ImageNested withNewImage() { - return new ImageNested(null); - } - - public ImageNested withNewImageLike(V1ImageVolumeSource item) { - return new ImageNested(item); - } - - public ImageNested editImage() { - return this.withNewImageLike(Optional.ofNullable(this.buildImage()).orElse(null)); - } - - public ImageNested editOrNewImage() { - return this.withNewImageLike(Optional.ofNullable(this.buildImage()).orElse(new V1ImageVolumeSourceBuilder().build())); - } - - public ImageNested editOrNewImageLike(V1ImageVolumeSource item) { - return this.withNewImageLike(Optional.ofNullable(this.buildImage()).orElse(item)); - } - - public V1ISCSIVolumeSource buildIscsi() { - return this.iscsi != null ? this.iscsi.build() : null; - } - - public A withIscsi(V1ISCSIVolumeSource iscsi) { - this._visitables.remove("iscsi"); - if (iscsi != null) { - this.iscsi = new V1ISCSIVolumeSourceBuilder(iscsi); - this._visitables.get("iscsi").add(this.iscsi); - } else { - this.iscsi = null; - this._visitables.get("iscsi").remove(this.iscsi); - } - return (A) this; - } - public boolean hasIscsi() { return this.iscsi != null; } - public IscsiNested withNewIscsi() { - return new IscsiNested(null); + public boolean hasName() { + return this.name != null; } - public IscsiNested withNewIscsiLike(V1ISCSIVolumeSource item) { - return new IscsiNested(item); + public boolean hasNfs() { + return this.nfs != null; } - public IscsiNested editIscsi() { - return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(null)); + public boolean hasPersistentVolumeClaim() { + return this.persistentVolumeClaim != null; } - public IscsiNested editOrNewIscsi() { - return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(new V1ISCSIVolumeSourceBuilder().build())); + public boolean hasPhotonPersistentDisk() { + return this.photonPersistentDisk != null; } - public IscsiNested editOrNewIscsiLike(V1ISCSIVolumeSource item) { - return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(item)); + public boolean hasPortworxVolume() { + return this.portworxVolume != null; } - public String getName() { - return this.name; + public boolean hasProjected() { + return this.projected != null; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasQuobyte() { + return this.quobyte != null; } - public boolean hasName() { - return this.name != null; + public boolean hasRbd() { + return this.rbd != null; } - public V1NFSVolumeSource buildNfs() { - return this.nfs != null ? this.nfs.build() : null; + public boolean hasScaleIO() { + return this.scaleIO != null; } - public A withNfs(V1NFSVolumeSource nfs) { - this._visitables.remove("nfs"); - if (nfs != null) { - this.nfs = new V1NFSVolumeSourceBuilder(nfs); - this._visitables.get("nfs").add(this.nfs); - } else { - this.nfs = null; - this._visitables.get("nfs").remove(this.nfs); - } - return (A) this; + public boolean hasSecret() { + return this.secret != null; } - public boolean hasNfs() { - return this.nfs != null; + public boolean hasStorageos() { + return this.storageos != null; } - public NfsNested withNewNfs() { - return new NfsNested(null); + public boolean hasVsphereVolume() { + return this.vsphereVolume != null; } - public NfsNested withNewNfsLike(V1NFSVolumeSource item) { - return new NfsNested(item); + public int hashCode() { + return Objects.hash(awsElasticBlockStore, azureDisk, azureFile, cephfs, cinder, configMap, csi, downwardAPI, emptyDir, ephemeral, fc, flexVolume, flocker, gcePersistentDisk, gitRepo, glusterfs, hostPath, image, iscsi, name, nfs, persistentVolumeClaim, photonPersistentDisk, portworxVolume, projected, quobyte, rbd, scaleIO, secret, storageos, vsphereVolume); } - public NfsNested editNfs() { - return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(null)); - } - - public NfsNested editOrNewNfs() { - return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(new V1NFSVolumeSourceBuilder().build())); - } - - public NfsNested editOrNewNfsLike(V1NFSVolumeSource item) { - return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(item)); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(awsElasticBlockStore == null)) { + sb.append("awsElasticBlockStore:"); + sb.append(awsElasticBlockStore); + sb.append(","); + } + if (!(azureDisk == null)) { + sb.append("azureDisk:"); + sb.append(azureDisk); + sb.append(","); + } + if (!(azureFile == null)) { + sb.append("azureFile:"); + sb.append(azureFile); + sb.append(","); + } + if (!(cephfs == null)) { + sb.append("cephfs:"); + sb.append(cephfs); + sb.append(","); + } + if (!(cinder == null)) { + sb.append("cinder:"); + sb.append(cinder); + sb.append(","); + } + if (!(configMap == null)) { + sb.append("configMap:"); + sb.append(configMap); + sb.append(","); + } + if (!(csi == null)) { + sb.append("csi:"); + sb.append(csi); + sb.append(","); + } + if (!(downwardAPI == null)) { + sb.append("downwardAPI:"); + sb.append(downwardAPI); + sb.append(","); + } + if (!(emptyDir == null)) { + sb.append("emptyDir:"); + sb.append(emptyDir); + sb.append(","); + } + if (!(ephemeral == null)) { + sb.append("ephemeral:"); + sb.append(ephemeral); + sb.append(","); + } + if (!(fc == null)) { + sb.append("fc:"); + sb.append(fc); + sb.append(","); + } + if (!(flexVolume == null)) { + sb.append("flexVolume:"); + sb.append(flexVolume); + sb.append(","); + } + if (!(flocker == null)) { + sb.append("flocker:"); + sb.append(flocker); + sb.append(","); + } + if (!(gcePersistentDisk == null)) { + sb.append("gcePersistentDisk:"); + sb.append(gcePersistentDisk); + sb.append(","); + } + if (!(gitRepo == null)) { + sb.append("gitRepo:"); + sb.append(gitRepo); + sb.append(","); + } + if (!(glusterfs == null)) { + sb.append("glusterfs:"); + sb.append(glusterfs); + sb.append(","); + } + if (!(hostPath == null)) { + sb.append("hostPath:"); + sb.append(hostPath); + sb.append(","); + } + if (!(image == null)) { + sb.append("image:"); + sb.append(image); + sb.append(","); + } + if (!(iscsi == null)) { + sb.append("iscsi:"); + sb.append(iscsi); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(nfs == null)) { + sb.append("nfs:"); + sb.append(nfs); + sb.append(","); + } + if (!(persistentVolumeClaim == null)) { + sb.append("persistentVolumeClaim:"); + sb.append(persistentVolumeClaim); + sb.append(","); + } + if (!(photonPersistentDisk == null)) { + sb.append("photonPersistentDisk:"); + sb.append(photonPersistentDisk); + sb.append(","); + } + if (!(portworxVolume == null)) { + sb.append("portworxVolume:"); + sb.append(portworxVolume); + sb.append(","); + } + if (!(projected == null)) { + sb.append("projected:"); + sb.append(projected); + sb.append(","); + } + if (!(quobyte == null)) { + sb.append("quobyte:"); + sb.append(quobyte); + sb.append(","); + } + if (!(rbd == null)) { + sb.append("rbd:"); + sb.append(rbd); + sb.append(","); + } + if (!(scaleIO == null)) { + sb.append("scaleIO:"); + sb.append(scaleIO); + sb.append(","); + } + if (!(secret == null)) { + sb.append("secret:"); + sb.append(secret); + sb.append(","); + } + if (!(storageos == null)) { + sb.append("storageos:"); + sb.append(storageos); + sb.append(","); + } + if (!(vsphereVolume == null)) { + sb.append("vsphereVolume:"); + sb.append(vsphereVolume); + } + sb.append("}"); + return sb.toString(); } - public V1PersistentVolumeClaimVolumeSource buildPersistentVolumeClaim() { - return this.persistentVolumeClaim != null ? this.persistentVolumeClaim.build() : null; + public A withAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { + this._visitables.remove("awsElasticBlockStore"); + if (awsElasticBlockStore != null) { + this.awsElasticBlockStore = new V1AWSElasticBlockStoreVolumeSourceBuilder(awsElasticBlockStore); + this._visitables.get("awsElasticBlockStore").add(this.awsElasticBlockStore); + } else { + this.awsElasticBlockStore = null; + this._visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); + } + return (A) this; } - public A withPersistentVolumeClaim(V1PersistentVolumeClaimVolumeSource persistentVolumeClaim) { - this._visitables.remove("persistentVolumeClaim"); - if (persistentVolumeClaim != null) { - this.persistentVolumeClaim = new V1PersistentVolumeClaimVolumeSourceBuilder(persistentVolumeClaim); - this._visitables.get("persistentVolumeClaim").add(this.persistentVolumeClaim); + public A withAzureDisk(V1AzureDiskVolumeSource azureDisk) { + this._visitables.remove("azureDisk"); + if (azureDisk != null) { + this.azureDisk = new V1AzureDiskVolumeSourceBuilder(azureDisk); + this._visitables.get("azureDisk").add(this.azureDisk); } else { - this.persistentVolumeClaim = null; - this._visitables.get("persistentVolumeClaim").remove(this.persistentVolumeClaim); + this.azureDisk = null; + this._visitables.get("azureDisk").remove(this.azureDisk); } return (A) this; } - public boolean hasPersistentVolumeClaim() { - return this.persistentVolumeClaim != null; + public A withAzureFile(V1AzureFileVolumeSource azureFile) { + this._visitables.remove("azureFile"); + if (azureFile != null) { + this.azureFile = new V1AzureFileVolumeSourceBuilder(azureFile); + this._visitables.get("azureFile").add(this.azureFile); + } else { + this.azureFile = null; + this._visitables.get("azureFile").remove(this.azureFile); + } + return (A) this; } - public PersistentVolumeClaimNested withNewPersistentVolumeClaim() { - return new PersistentVolumeClaimNested(null); + public A withCephfs(V1CephFSVolumeSource cephfs) { + this._visitables.remove("cephfs"); + if (cephfs != null) { + this.cephfs = new V1CephFSVolumeSourceBuilder(cephfs); + this._visitables.get("cephfs").add(this.cephfs); + } else { + this.cephfs = null; + this._visitables.get("cephfs").remove(this.cephfs); + } + return (A) this; } - public PersistentVolumeClaimNested withNewPersistentVolumeClaimLike(V1PersistentVolumeClaimVolumeSource item) { - return new PersistentVolumeClaimNested(item); + public A withCinder(V1CinderVolumeSource cinder) { + this._visitables.remove("cinder"); + if (cinder != null) { + this.cinder = new V1CinderVolumeSourceBuilder(cinder); + this._visitables.get("cinder").add(this.cinder); + } else { + this.cinder = null; + this._visitables.get("cinder").remove(this.cinder); + } + return (A) this; } - public PersistentVolumeClaimNested editPersistentVolumeClaim() { - return this.withNewPersistentVolumeClaimLike(Optional.ofNullable(this.buildPersistentVolumeClaim()).orElse(null)); + public A withConfigMap(V1ConfigMapVolumeSource configMap) { + this._visitables.remove("configMap"); + if (configMap != null) { + this.configMap = new V1ConfigMapVolumeSourceBuilder(configMap); + this._visitables.get("configMap").add(this.configMap); + } else { + this.configMap = null; + this._visitables.get("configMap").remove(this.configMap); + } + return (A) this; } - public PersistentVolumeClaimNested editOrNewPersistentVolumeClaim() { - return this.withNewPersistentVolumeClaimLike(Optional.ofNullable(this.buildPersistentVolumeClaim()).orElse(new V1PersistentVolumeClaimVolumeSourceBuilder().build())); + public A withCsi(V1CSIVolumeSource csi) { + this._visitables.remove("csi"); + if (csi != null) { + this.csi = new V1CSIVolumeSourceBuilder(csi); + this._visitables.get("csi").add(this.csi); + } else { + this.csi = null; + this._visitables.get("csi").remove(this.csi); + } + return (A) this; } - public PersistentVolumeClaimNested editOrNewPersistentVolumeClaimLike(V1PersistentVolumeClaimVolumeSource item) { - return this.withNewPersistentVolumeClaimLike(Optional.ofNullable(this.buildPersistentVolumeClaim()).orElse(item)); + public A withDownwardAPI(V1DownwardAPIVolumeSource downwardAPI) { + this._visitables.remove("downwardAPI"); + if (downwardAPI != null) { + this.downwardAPI = new V1DownwardAPIVolumeSourceBuilder(downwardAPI); + this._visitables.get("downwardAPI").add(this.downwardAPI); + } else { + this.downwardAPI = null; + this._visitables.get("downwardAPI").remove(this.downwardAPI); + } + return (A) this; } - public V1PhotonPersistentDiskVolumeSource buildPhotonPersistentDisk() { - return this.photonPersistentDisk != null ? this.photonPersistentDisk.build() : null; + public A withEmptyDir(V1EmptyDirVolumeSource emptyDir) { + this._visitables.remove("emptyDir"); + if (emptyDir != null) { + this.emptyDir = new V1EmptyDirVolumeSourceBuilder(emptyDir); + this._visitables.get("emptyDir").add(this.emptyDir); + } else { + this.emptyDir = null; + this._visitables.get("emptyDir").remove(this.emptyDir); + } + return (A) this; } - public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { - this._visitables.remove("photonPersistentDisk"); - if (photonPersistentDisk != null) { - this.photonPersistentDisk = new V1PhotonPersistentDiskVolumeSourceBuilder(photonPersistentDisk); - this._visitables.get("photonPersistentDisk").add(this.photonPersistentDisk); + public A withEphemeral(V1EphemeralVolumeSource ephemeral) { + this._visitables.remove("ephemeral"); + if (ephemeral != null) { + this.ephemeral = new V1EphemeralVolumeSourceBuilder(ephemeral); + this._visitables.get("ephemeral").add(this.ephemeral); } else { - this.photonPersistentDisk = null; - this._visitables.get("photonPersistentDisk").remove(this.photonPersistentDisk); + this.ephemeral = null; + this._visitables.get("ephemeral").remove(this.ephemeral); } return (A) this; } - public boolean hasPhotonPersistentDisk() { - return this.photonPersistentDisk != null; + public A withFc(V1FCVolumeSource fc) { + this._visitables.remove("fc"); + if (fc != null) { + this.fc = new V1FCVolumeSourceBuilder(fc); + this._visitables.get("fc").add(this.fc); + } else { + this.fc = null; + this._visitables.get("fc").remove(this.fc); + } + return (A) this; } - public PhotonPersistentDiskNested withNewPhotonPersistentDisk() { - return new PhotonPersistentDiskNested(null); + public A withFlexVolume(V1FlexVolumeSource flexVolume) { + this._visitables.remove("flexVolume"); + if (flexVolume != null) { + this.flexVolume = new V1FlexVolumeSourceBuilder(flexVolume); + this._visitables.get("flexVolume").add(this.flexVolume); + } else { + this.flexVolume = null; + this._visitables.get("flexVolume").remove(this.flexVolume); + } + return (A) this; } - public PhotonPersistentDiskNested withNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { - return new PhotonPersistentDiskNested(item); + public A withFlocker(V1FlockerVolumeSource flocker) { + this._visitables.remove("flocker"); + if (flocker != null) { + this.flocker = new V1FlockerVolumeSourceBuilder(flocker); + this._visitables.get("flocker").add(this.flocker); + } else { + this.flocker = null; + this._visitables.get("flocker").remove(this.flocker); + } + return (A) this; } - public PhotonPersistentDiskNested editPhotonPersistentDisk() { - return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(null)); + public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { + this._visitables.remove("gcePersistentDisk"); + if (gcePersistentDisk != null) { + this.gcePersistentDisk = new V1GCEPersistentDiskVolumeSourceBuilder(gcePersistentDisk); + this._visitables.get("gcePersistentDisk").add(this.gcePersistentDisk); + } else { + this.gcePersistentDisk = null; + this._visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); + } + return (A) this; } - public PhotonPersistentDiskNested editOrNewPhotonPersistentDisk() { - return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(new V1PhotonPersistentDiskVolumeSourceBuilder().build())); + public A withGitRepo(V1GitRepoVolumeSource gitRepo) { + this._visitables.remove("gitRepo"); + if (gitRepo != null) { + this.gitRepo = new V1GitRepoVolumeSourceBuilder(gitRepo); + this._visitables.get("gitRepo").add(this.gitRepo); + } else { + this.gitRepo = null; + this._visitables.get("gitRepo").remove(this.gitRepo); + } + return (A) this; } - public PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { - return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(item)); + public A withGlusterfs(V1GlusterfsVolumeSource glusterfs) { + this._visitables.remove("glusterfs"); + if (glusterfs != null) { + this.glusterfs = new V1GlusterfsVolumeSourceBuilder(glusterfs); + this._visitables.get("glusterfs").add(this.glusterfs); + } else { + this.glusterfs = null; + this._visitables.get("glusterfs").remove(this.glusterfs); + } + return (A) this; } - public V1PortworxVolumeSource buildPortworxVolume() { - return this.portworxVolume != null ? this.portworxVolume.build() : null; + public A withHostPath(V1HostPathVolumeSource hostPath) { + this._visitables.remove("hostPath"); + if (hostPath != null) { + this.hostPath = new V1HostPathVolumeSourceBuilder(hostPath); + this._visitables.get("hostPath").add(this.hostPath); + } else { + this.hostPath = null; + this._visitables.get("hostPath").remove(this.hostPath); + } + return (A) this; } - public A withPortworxVolume(V1PortworxVolumeSource portworxVolume) { - this._visitables.remove("portworxVolume"); - if (portworxVolume != null) { - this.portworxVolume = new V1PortworxVolumeSourceBuilder(portworxVolume); - this._visitables.get("portworxVolume").add(this.portworxVolume); + public A withImage(V1ImageVolumeSource image) { + this._visitables.remove("image"); + if (image != null) { + this.image = new V1ImageVolumeSourceBuilder(image); + this._visitables.get("image").add(this.image); } else { - this.portworxVolume = null; - this._visitables.get("portworxVolume").remove(this.portworxVolume); + this.image = null; + this._visitables.get("image").remove(this.image); } return (A) this; } - public boolean hasPortworxVolume() { - return this.portworxVolume != null; + public A withIscsi(V1ISCSIVolumeSource iscsi) { + this._visitables.remove("iscsi"); + if (iscsi != null) { + this.iscsi = new V1ISCSIVolumeSourceBuilder(iscsi); + this._visitables.get("iscsi").add(this.iscsi); + } else { + this.iscsi = null; + this._visitables.get("iscsi").remove(this.iscsi); + } + return (A) this; } - public PortworxVolumeNested withNewPortworxVolume() { - return new PortworxVolumeNested(null); + public A withName(String name) { + this.name = name; + return (A) this; } - public PortworxVolumeNested withNewPortworxVolumeLike(V1PortworxVolumeSource item) { - return new PortworxVolumeNested(item); + public AwsElasticBlockStoreNested withNewAwsElasticBlockStore() { + return new AwsElasticBlockStoreNested(null); } - public PortworxVolumeNested editPortworxVolume() { - return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(null)); + public AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { + return new AwsElasticBlockStoreNested(item); } - public PortworxVolumeNested editOrNewPortworxVolume() { - return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(new V1PortworxVolumeSourceBuilder().build())); + public AzureDiskNested withNewAzureDisk() { + return new AzureDiskNested(null); } - public PortworxVolumeNested editOrNewPortworxVolumeLike(V1PortworxVolumeSource item) { - return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(item)); + public AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item) { + return new AzureDiskNested(item); } - public V1ProjectedVolumeSource buildProjected() { - return this.projected != null ? this.projected.build() : null; + public AzureFileNested withNewAzureFile() { + return new AzureFileNested(null); } - public A withProjected(V1ProjectedVolumeSource projected) { - this._visitables.remove("projected"); - if (projected != null) { - this.projected = new V1ProjectedVolumeSourceBuilder(projected); - this._visitables.get("projected").add(this.projected); - } else { - this.projected = null; - this._visitables.get("projected").remove(this.projected); - } - return (A) this; + public AzureFileNested withNewAzureFileLike(V1AzureFileVolumeSource item) { + return new AzureFileNested(item); } - public boolean hasProjected() { - return this.projected != null; + public CephfsNested withNewCephfs() { + return new CephfsNested(null); } - public ProjectedNested withNewProjected() { - return new ProjectedNested(null); + public CephfsNested withNewCephfsLike(V1CephFSVolumeSource item) { + return new CephfsNested(item); } - public ProjectedNested withNewProjectedLike(V1ProjectedVolumeSource item) { - return new ProjectedNested(item); + public CinderNested withNewCinder() { + return new CinderNested(null); } - public ProjectedNested editProjected() { - return this.withNewProjectedLike(Optional.ofNullable(this.buildProjected()).orElse(null)); + public CinderNested withNewCinderLike(V1CinderVolumeSource item) { + return new CinderNested(item); } - public ProjectedNested editOrNewProjected() { - return this.withNewProjectedLike(Optional.ofNullable(this.buildProjected()).orElse(new V1ProjectedVolumeSourceBuilder().build())); + public ConfigMapNested withNewConfigMap() { + return new ConfigMapNested(null); } - public ProjectedNested editOrNewProjectedLike(V1ProjectedVolumeSource item) { - return this.withNewProjectedLike(Optional.ofNullable(this.buildProjected()).orElse(item)); + public ConfigMapNested withNewConfigMapLike(V1ConfigMapVolumeSource item) { + return new ConfigMapNested(item); } - public V1QuobyteVolumeSource buildQuobyte() { - return this.quobyte != null ? this.quobyte.build() : null; + public CsiNested withNewCsi() { + return new CsiNested(null); } - public A withQuobyte(V1QuobyteVolumeSource quobyte) { - this._visitables.remove("quobyte"); - if (quobyte != null) { - this.quobyte = new V1QuobyteVolumeSourceBuilder(quobyte); - this._visitables.get("quobyte").add(this.quobyte); - } else { - this.quobyte = null; - this._visitables.get("quobyte").remove(this.quobyte); - } - return (A) this; + public CsiNested withNewCsiLike(V1CSIVolumeSource item) { + return new CsiNested(item); } - public boolean hasQuobyte() { - return this.quobyte != null; + public DownwardAPINested withNewDownwardAPI() { + return new DownwardAPINested(null); } - public QuobyteNested withNewQuobyte() { - return new QuobyteNested(null); + public DownwardAPINested withNewDownwardAPILike(V1DownwardAPIVolumeSource item) { + return new DownwardAPINested(item); } - public QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item) { - return new QuobyteNested(item); + public EmptyDirNested withNewEmptyDir() { + return new EmptyDirNested(null); } - public QuobyteNested editQuobyte() { - return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(null)); + public EmptyDirNested withNewEmptyDirLike(V1EmptyDirVolumeSource item) { + return new EmptyDirNested(item); } - public QuobyteNested editOrNewQuobyte() { - return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(new V1QuobyteVolumeSourceBuilder().build())); + public EphemeralNested withNewEphemeral() { + return new EphemeralNested(null); } - public QuobyteNested editOrNewQuobyteLike(V1QuobyteVolumeSource item) { - return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(item)); + public EphemeralNested withNewEphemeralLike(V1EphemeralVolumeSource item) { + return new EphemeralNested(item); } - public V1RBDVolumeSource buildRbd() { - return this.rbd != null ? this.rbd.build() : null; + public FcNested withNewFc() { + return new FcNested(null); } - public A withRbd(V1RBDVolumeSource rbd) { - this._visitables.remove("rbd"); - if (rbd != null) { - this.rbd = new V1RBDVolumeSourceBuilder(rbd); - this._visitables.get("rbd").add(this.rbd); - } else { - this.rbd = null; - this._visitables.get("rbd").remove(this.rbd); - } - return (A) this; + public FcNested withNewFcLike(V1FCVolumeSource item) { + return new FcNested(item); } - public boolean hasRbd() { - return this.rbd != null; + public FlexVolumeNested withNewFlexVolume() { + return new FlexVolumeNested(null); } - public RbdNested withNewRbd() { - return new RbdNested(null); + public FlexVolumeNested withNewFlexVolumeLike(V1FlexVolumeSource item) { + return new FlexVolumeNested(item); } - public RbdNested withNewRbdLike(V1RBDVolumeSource item) { - return new RbdNested(item); + public FlockerNested withNewFlocker() { + return new FlockerNested(null); } - public RbdNested editRbd() { - return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(null)); + public FlockerNested withNewFlockerLike(V1FlockerVolumeSource item) { + return new FlockerNested(item); } - public RbdNested editOrNewRbd() { - return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(new V1RBDVolumeSourceBuilder().build())); + public GcePersistentDiskNested withNewGcePersistentDisk() { + return new GcePersistentDiskNested(null); } - public RbdNested editOrNewRbdLike(V1RBDVolumeSource item) { - return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(item)); + public GcePersistentDiskNested withNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { + return new GcePersistentDiskNested(item); } - public V1ScaleIOVolumeSource buildScaleIO() { - return this.scaleIO != null ? this.scaleIO.build() : null; + public GitRepoNested withNewGitRepo() { + return new GitRepoNested(null); } - public A withScaleIO(V1ScaleIOVolumeSource scaleIO) { - this._visitables.remove("scaleIO"); - if (scaleIO != null) { - this.scaleIO = new V1ScaleIOVolumeSourceBuilder(scaleIO); - this._visitables.get("scaleIO").add(this.scaleIO); - } else { - this.scaleIO = null; - this._visitables.get("scaleIO").remove(this.scaleIO); - } - return (A) this; + public GitRepoNested withNewGitRepoLike(V1GitRepoVolumeSource item) { + return new GitRepoNested(item); } - public boolean hasScaleIO() { - return this.scaleIO != null; + public GlusterfsNested withNewGlusterfs() { + return new GlusterfsNested(null); } - public ScaleIONested withNewScaleIO() { - return new ScaleIONested(null); + public GlusterfsNested withNewGlusterfsLike(V1GlusterfsVolumeSource item) { + return new GlusterfsNested(item); } - public ScaleIONested withNewScaleIOLike(V1ScaleIOVolumeSource item) { - return new ScaleIONested(item); + public HostPathNested withNewHostPath() { + return new HostPathNested(null); } - public ScaleIONested editScaleIO() { - return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(null)); + public HostPathNested withNewHostPathLike(V1HostPathVolumeSource item) { + return new HostPathNested(item); } - public ScaleIONested editOrNewScaleIO() { - return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(new V1ScaleIOVolumeSourceBuilder().build())); + public ImageNested withNewImage() { + return new ImageNested(null); } - public ScaleIONested editOrNewScaleIOLike(V1ScaleIOVolumeSource item) { - return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(item)); + public ImageNested withNewImageLike(V1ImageVolumeSource item) { + return new ImageNested(item); } - public V1SecretVolumeSource buildSecret() { - return this.secret != null ? this.secret.build() : null; + public IscsiNested withNewIscsi() { + return new IscsiNested(null); } - public A withSecret(V1SecretVolumeSource secret) { - this._visitables.remove("secret"); - if (secret != null) { - this.secret = new V1SecretVolumeSourceBuilder(secret); - this._visitables.get("secret").add(this.secret); - } else { - this.secret = null; - this._visitables.get("secret").remove(this.secret); - } - return (A) this; + public IscsiNested withNewIscsiLike(V1ISCSIVolumeSource item) { + return new IscsiNested(item); } - public boolean hasSecret() { - return this.secret != null; + public NfsNested withNewNfs() { + return new NfsNested(null); } - public SecretNested withNewSecret() { - return new SecretNested(null); + public NfsNested withNewNfsLike(V1NFSVolumeSource item) { + return new NfsNested(item); } - public SecretNested withNewSecretLike(V1SecretVolumeSource item) { - return new SecretNested(item); + public PersistentVolumeClaimNested withNewPersistentVolumeClaim() { + return new PersistentVolumeClaimNested(null); } - public SecretNested editSecret() { - return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(null)); + public PersistentVolumeClaimNested withNewPersistentVolumeClaimLike(V1PersistentVolumeClaimVolumeSource item) { + return new PersistentVolumeClaimNested(item); } - public SecretNested editOrNewSecret() { - return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(new V1SecretVolumeSourceBuilder().build())); + public PhotonPersistentDiskNested withNewPhotonPersistentDisk() { + return new PhotonPersistentDiskNested(null); } - public SecretNested editOrNewSecretLike(V1SecretVolumeSource item) { - return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(item)); + public PhotonPersistentDiskNested withNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { + return new PhotonPersistentDiskNested(item); } - public V1StorageOSVolumeSource buildStorageos() { - return this.storageos != null ? this.storageos.build() : null; + public PortworxVolumeNested withNewPortworxVolume() { + return new PortworxVolumeNested(null); } - public A withStorageos(V1StorageOSVolumeSource storageos) { - this._visitables.remove("storageos"); - if (storageos != null) { - this.storageos = new V1StorageOSVolumeSourceBuilder(storageos); - this._visitables.get("storageos").add(this.storageos); - } else { - this.storageos = null; - this._visitables.get("storageos").remove(this.storageos); - } - return (A) this; + public PortworxVolumeNested withNewPortworxVolumeLike(V1PortworxVolumeSource item) { + return new PortworxVolumeNested(item); } - public boolean hasStorageos() { - return this.storageos != null; + public ProjectedNested withNewProjected() { + return new ProjectedNested(null); } - public StorageosNested withNewStorageos() { - return new StorageosNested(null); + public ProjectedNested withNewProjectedLike(V1ProjectedVolumeSource item) { + return new ProjectedNested(item); } - public StorageosNested withNewStorageosLike(V1StorageOSVolumeSource item) { - return new StorageosNested(item); + public QuobyteNested withNewQuobyte() { + return new QuobyteNested(null); } - public StorageosNested editStorageos() { - return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(null)); + public QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item) { + return new QuobyteNested(item); } - public StorageosNested editOrNewStorageos() { - return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(new V1StorageOSVolumeSourceBuilder().build())); + public RbdNested withNewRbd() { + return new RbdNested(null); } - public StorageosNested editOrNewStorageosLike(V1StorageOSVolumeSource item) { - return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(item)); + public RbdNested withNewRbdLike(V1RBDVolumeSource item) { + return new RbdNested(item); } - public V1VsphereVirtualDiskVolumeSource buildVsphereVolume() { - return this.vsphereVolume != null ? this.vsphereVolume.build() : null; + public ScaleIONested withNewScaleIO() { + return new ScaleIONested(null); } - public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { - this._visitables.remove("vsphereVolume"); - if (vsphereVolume != null) { - this.vsphereVolume = new V1VsphereVirtualDiskVolumeSourceBuilder(vsphereVolume); - this._visitables.get("vsphereVolume").add(this.vsphereVolume); - } else { - this.vsphereVolume = null; - this._visitables.get("vsphereVolume").remove(this.vsphereVolume); - } - return (A) this; + public ScaleIONested withNewScaleIOLike(V1ScaleIOVolumeSource item) { + return new ScaleIONested(item); } - public boolean hasVsphereVolume() { - return this.vsphereVolume != null; + public SecretNested withNewSecret() { + return new SecretNested(null); + } + + public SecretNested withNewSecretLike(V1SecretVolumeSource item) { + return new SecretNested(item); + } + + public StorageosNested withNewStorageos() { + return new StorageosNested(null); + } + + public StorageosNested withNewStorageosLike(V1StorageOSVolumeSource item) { + return new StorageosNested(item); } public VsphereVolumeNested withNewVsphereVolume() { @@ -1290,295 +1444,145 @@ public VsphereVolumeNested withNewVsphereVolumeLike(V1VsphereVirtualDiskVolum return new VsphereVolumeNested(item); } - public VsphereVolumeNested editVsphereVolume() { - return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(null)); + public A withNfs(V1NFSVolumeSource nfs) { + this._visitables.remove("nfs"); + if (nfs != null) { + this.nfs = new V1NFSVolumeSourceBuilder(nfs); + this._visitables.get("nfs").add(this.nfs); + } else { + this.nfs = null; + this._visitables.get("nfs").remove(this.nfs); + } + return (A) this; } - public VsphereVolumeNested editOrNewVsphereVolume() { - return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(new V1VsphereVirtualDiskVolumeSourceBuilder().build())); + public A withPersistentVolumeClaim(V1PersistentVolumeClaimVolumeSource persistentVolumeClaim) { + this._visitables.remove("persistentVolumeClaim"); + if (persistentVolumeClaim != null) { + this.persistentVolumeClaim = new V1PersistentVolumeClaimVolumeSourceBuilder(persistentVolumeClaim); + this._visitables.get("persistentVolumeClaim").add(this.persistentVolumeClaim); + } else { + this.persistentVolumeClaim = null; + this._visitables.get("persistentVolumeClaim").remove(this.persistentVolumeClaim); + } + return (A) this; } - public VsphereVolumeNested editOrNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { - return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(item)); + public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { + this._visitables.remove("photonPersistentDisk"); + if (photonPersistentDisk != null) { + this.photonPersistentDisk = new V1PhotonPersistentDiskVolumeSourceBuilder(photonPersistentDisk); + this._visitables.get("photonPersistentDisk").add(this.photonPersistentDisk); + } else { + this.photonPersistentDisk = null; + this._visitables.get("photonPersistentDisk").remove(this.photonPersistentDisk); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1VolumeFluent that = (V1VolumeFluent) o; - if (!(Objects.equals(awsElasticBlockStore, that.awsElasticBlockStore))) { - return false; + public A withPortworxVolume(V1PortworxVolumeSource portworxVolume) { + this._visitables.remove("portworxVolume"); + if (portworxVolume != null) { + this.portworxVolume = new V1PortworxVolumeSourceBuilder(portworxVolume); + this._visitables.get("portworxVolume").add(this.portworxVolume); + } else { + this.portworxVolume = null; + this._visitables.get("portworxVolume").remove(this.portworxVolume); } - if (!(Objects.equals(azureDisk, that.azureDisk))) { - return false; + return (A) this; + } + + public A withProjected(V1ProjectedVolumeSource projected) { + this._visitables.remove("projected"); + if (projected != null) { + this.projected = new V1ProjectedVolumeSourceBuilder(projected); + this._visitables.get("projected").add(this.projected); + } else { + this.projected = null; + this._visitables.get("projected").remove(this.projected); } - if (!(Objects.equals(azureFile, that.azureFile))) { - return false; - } - if (!(Objects.equals(cephfs, that.cephfs))) { - return false; - } - if (!(Objects.equals(cinder, that.cinder))) { - return false; - } - if (!(Objects.equals(configMap, that.configMap))) { - return false; - } - if (!(Objects.equals(csi, that.csi))) { - return false; - } - if (!(Objects.equals(downwardAPI, that.downwardAPI))) { - return false; - } - if (!(Objects.equals(emptyDir, that.emptyDir))) { - return false; - } - if (!(Objects.equals(ephemeral, that.ephemeral))) { - return false; - } - if (!(Objects.equals(fc, that.fc))) { - return false; - } - if (!(Objects.equals(flexVolume, that.flexVolume))) { - return false; - } - if (!(Objects.equals(flocker, that.flocker))) { - return false; - } - if (!(Objects.equals(gcePersistentDisk, that.gcePersistentDisk))) { - return false; - } - if (!(Objects.equals(gitRepo, that.gitRepo))) { - return false; - } - if (!(Objects.equals(glusterfs, that.glusterfs))) { - return false; - } - if (!(Objects.equals(hostPath, that.hostPath))) { - return false; - } - if (!(Objects.equals(image, that.image))) { - return false; - } - if (!(Objects.equals(iscsi, that.iscsi))) { - return false; - } - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(nfs, that.nfs))) { - return false; - } - if (!(Objects.equals(persistentVolumeClaim, that.persistentVolumeClaim))) { - return false; - } - if (!(Objects.equals(photonPersistentDisk, that.photonPersistentDisk))) { - return false; - } - if (!(Objects.equals(portworxVolume, that.portworxVolume))) { - return false; - } - if (!(Objects.equals(projected, that.projected))) { - return false; - } - if (!(Objects.equals(quobyte, that.quobyte))) { - return false; - } - if (!(Objects.equals(rbd, that.rbd))) { - return false; - } - if (!(Objects.equals(scaleIO, that.scaleIO))) { - return false; - } - if (!(Objects.equals(secret, that.secret))) { - return false; - } - if (!(Objects.equals(storageos, that.storageos))) { - return false; - } - if (!(Objects.equals(vsphereVolume, that.vsphereVolume))) { - return false; - } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(awsElasticBlockStore, azureDisk, azureFile, cephfs, cinder, configMap, csi, downwardAPI, emptyDir, ephemeral, fc, flexVolume, flocker, gcePersistentDisk, gitRepo, glusterfs, hostPath, image, iscsi, name, nfs, persistentVolumeClaim, photonPersistentDisk, portworxVolume, projected, quobyte, rbd, scaleIO, secret, storageos, vsphereVolume); + public A withQuobyte(V1QuobyteVolumeSource quobyte) { + this._visitables.remove("quobyte"); + if (quobyte != null) { + this.quobyte = new V1QuobyteVolumeSourceBuilder(quobyte); + this._visitables.get("quobyte").add(this.quobyte); + } else { + this.quobyte = null; + this._visitables.get("quobyte").remove(this.quobyte); + } + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(awsElasticBlockStore == null)) { - sb.append("awsElasticBlockStore:"); - sb.append(awsElasticBlockStore); - sb.append(","); - } - if (!(azureDisk == null)) { - sb.append("azureDisk:"); - sb.append(azureDisk); - sb.append(","); - } - if (!(azureFile == null)) { - sb.append("azureFile:"); - sb.append(azureFile); - sb.append(","); - } - if (!(cephfs == null)) { - sb.append("cephfs:"); - sb.append(cephfs); - sb.append(","); - } - if (!(cinder == null)) { - sb.append("cinder:"); - sb.append(cinder); - sb.append(","); - } - if (!(configMap == null)) { - sb.append("configMap:"); - sb.append(configMap); - sb.append(","); - } - if (!(csi == null)) { - sb.append("csi:"); - sb.append(csi); - sb.append(","); - } - if (!(downwardAPI == null)) { - sb.append("downwardAPI:"); - sb.append(downwardAPI); - sb.append(","); - } - if (!(emptyDir == null)) { - sb.append("emptyDir:"); - sb.append(emptyDir); - sb.append(","); - } - if (!(ephemeral == null)) { - sb.append("ephemeral:"); - sb.append(ephemeral); - sb.append(","); - } - if (!(fc == null)) { - sb.append("fc:"); - sb.append(fc); - sb.append(","); - } - if (!(flexVolume == null)) { - sb.append("flexVolume:"); - sb.append(flexVolume); - sb.append(","); - } - if (!(flocker == null)) { - sb.append("flocker:"); - sb.append(flocker); - sb.append(","); - } - if (!(gcePersistentDisk == null)) { - sb.append("gcePersistentDisk:"); - sb.append(gcePersistentDisk); - sb.append(","); - } - if (!(gitRepo == null)) { - sb.append("gitRepo:"); - sb.append(gitRepo); - sb.append(","); - } - if (!(glusterfs == null)) { - sb.append("glusterfs:"); - sb.append(glusterfs); - sb.append(","); - } - if (!(hostPath == null)) { - sb.append("hostPath:"); - sb.append(hostPath); - sb.append(","); - } - if (!(image == null)) { - sb.append("image:"); - sb.append(image); - sb.append(","); - } - if (!(iscsi == null)) { - sb.append("iscsi:"); - sb.append(iscsi); - sb.append(","); - } - if (!(name == null)) { - sb.append("name:"); - sb.append(name); - sb.append(","); - } - if (!(nfs == null)) { - sb.append("nfs:"); - sb.append(nfs); - sb.append(","); - } - if (!(persistentVolumeClaim == null)) { - sb.append("persistentVolumeClaim:"); - sb.append(persistentVolumeClaim); - sb.append(","); - } - if (!(photonPersistentDisk == null)) { - sb.append("photonPersistentDisk:"); - sb.append(photonPersistentDisk); - sb.append(","); - } - if (!(portworxVolume == null)) { - sb.append("portworxVolume:"); - sb.append(portworxVolume); - sb.append(","); - } - if (!(projected == null)) { - sb.append("projected:"); - sb.append(projected); - sb.append(","); - } - if (!(quobyte == null)) { - sb.append("quobyte:"); - sb.append(quobyte); - sb.append(","); - } - if (!(rbd == null)) { - sb.append("rbd:"); - sb.append(rbd); - sb.append(","); - } - if (!(scaleIO == null)) { - sb.append("scaleIO:"); - sb.append(scaleIO); - sb.append(","); + public A withRbd(V1RBDVolumeSource rbd) { + this._visitables.remove("rbd"); + if (rbd != null) { + this.rbd = new V1RBDVolumeSourceBuilder(rbd); + this._visitables.get("rbd").add(this.rbd); + } else { + this.rbd = null; + this._visitables.get("rbd").remove(this.rbd); } - if (!(secret == null)) { - sb.append("secret:"); - sb.append(secret); - sb.append(","); + return (A) this; + } + + public A withScaleIO(V1ScaleIOVolumeSource scaleIO) { + this._visitables.remove("scaleIO"); + if (scaleIO != null) { + this.scaleIO = new V1ScaleIOVolumeSourceBuilder(scaleIO); + this._visitables.get("scaleIO").add(this.scaleIO); + } else { + this.scaleIO = null; + this._visitables.get("scaleIO").remove(this.scaleIO); } - if (!(storageos == null)) { - sb.append("storageos:"); - sb.append(storageos); - sb.append(","); + return (A) this; + } + + public A withSecret(V1SecretVolumeSource secret) { + this._visitables.remove("secret"); + if (secret != null) { + this.secret = new V1SecretVolumeSourceBuilder(secret); + this._visitables.get("secret").add(this.secret); + } else { + this.secret = null; + this._visitables.get("secret").remove(this.secret); } - if (!(vsphereVolume == null)) { - sb.append("vsphereVolume:"); - sb.append(vsphereVolume); + return (A) this; + } + + public A withStorageos(V1StorageOSVolumeSource storageos) { + this._visitables.remove("storageos"); + if (storageos != null) { + this.storageos = new V1StorageOSVolumeSourceBuilder(storageos); + this._visitables.get("storageos").add(this.storageos); + } else { + this.storageos = null; + this._visitables.get("storageos").remove(this.storageos); } - sb.append("}"); - return sb.toString(); + return (A) this; + } + + public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { + this._visitables.remove("vsphereVolume"); + if (vsphereVolume != null) { + this.vsphereVolume = new V1VsphereVirtualDiskVolumeSourceBuilder(vsphereVolume); + this._visitables.get("vsphereVolume").add(this.vsphereVolume); + } else { + this.vsphereVolume = null; + this._visitables.get("vsphereVolume").remove(this.vsphereVolume); + } + return (A) this; } public class AwsElasticBlockStoreNested extends V1AWSElasticBlockStoreVolumeSourceFluent> implements Nested{ + + V1AWSElasticBlockStoreVolumeSourceBuilder builder; + AwsElasticBlockStoreNested(V1AWSElasticBlockStoreVolumeSource item) { this.builder = new V1AWSElasticBlockStoreVolumeSourceBuilder(this, item); } - V1AWSElasticBlockStoreVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withAwsElasticBlockStore(builder.build()); } @@ -1587,14 +1591,15 @@ public N endAwsElasticBlockStore() { return and(); } - } public class AzureDiskNested extends V1AzureDiskVolumeSourceFluent> implements Nested{ + + V1AzureDiskVolumeSourceBuilder builder; + AzureDiskNested(V1AzureDiskVolumeSource item) { this.builder = new V1AzureDiskVolumeSourceBuilder(this, item); } - V1AzureDiskVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withAzureDisk(builder.build()); } @@ -1603,14 +1608,15 @@ public N endAzureDisk() { return and(); } - } public class AzureFileNested extends V1AzureFileVolumeSourceFluent> implements Nested{ + + V1AzureFileVolumeSourceBuilder builder; + AzureFileNested(V1AzureFileVolumeSource item) { this.builder = new V1AzureFileVolumeSourceBuilder(this, item); } - V1AzureFileVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withAzureFile(builder.build()); } @@ -1619,14 +1625,15 @@ public N endAzureFile() { return and(); } - } public class CephfsNested extends V1CephFSVolumeSourceFluent> implements Nested{ + + V1CephFSVolumeSourceBuilder builder; + CephfsNested(V1CephFSVolumeSource item) { this.builder = new V1CephFSVolumeSourceBuilder(this, item); } - V1CephFSVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withCephfs(builder.build()); } @@ -1635,14 +1642,15 @@ public N endCephfs() { return and(); } - } public class CinderNested extends V1CinderVolumeSourceFluent> implements Nested{ + + V1CinderVolumeSourceBuilder builder; + CinderNested(V1CinderVolumeSource item) { this.builder = new V1CinderVolumeSourceBuilder(this, item); } - V1CinderVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withCinder(builder.build()); } @@ -1651,14 +1659,15 @@ public N endCinder() { return and(); } - } public class ConfigMapNested extends V1ConfigMapVolumeSourceFluent> implements Nested{ + + V1ConfigMapVolumeSourceBuilder builder; + ConfigMapNested(V1ConfigMapVolumeSource item) { this.builder = new V1ConfigMapVolumeSourceBuilder(this, item); } - V1ConfigMapVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withConfigMap(builder.build()); } @@ -1667,14 +1676,15 @@ public N endConfigMap() { return and(); } - } public class CsiNested extends V1CSIVolumeSourceFluent> implements Nested{ + + V1CSIVolumeSourceBuilder builder; + CsiNested(V1CSIVolumeSource item) { this.builder = new V1CSIVolumeSourceBuilder(this, item); } - V1CSIVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withCsi(builder.build()); } @@ -1683,14 +1693,15 @@ public N endCsi() { return and(); } - } public class DownwardAPINested extends V1DownwardAPIVolumeSourceFluent> implements Nested{ + + V1DownwardAPIVolumeSourceBuilder builder; + DownwardAPINested(V1DownwardAPIVolumeSource item) { this.builder = new V1DownwardAPIVolumeSourceBuilder(this, item); } - V1DownwardAPIVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withDownwardAPI(builder.build()); } @@ -1699,14 +1710,15 @@ public N endDownwardAPI() { return and(); } - } public class EmptyDirNested extends V1EmptyDirVolumeSourceFluent> implements Nested{ + + V1EmptyDirVolumeSourceBuilder builder; + EmptyDirNested(V1EmptyDirVolumeSource item) { this.builder = new V1EmptyDirVolumeSourceBuilder(this, item); } - V1EmptyDirVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withEmptyDir(builder.build()); } @@ -1715,14 +1727,15 @@ public N endEmptyDir() { return and(); } - } public class EphemeralNested extends V1EphemeralVolumeSourceFluent> implements Nested{ + + V1EphemeralVolumeSourceBuilder builder; + EphemeralNested(V1EphemeralVolumeSource item) { this.builder = new V1EphemeralVolumeSourceBuilder(this, item); } - V1EphemeralVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withEphemeral(builder.build()); } @@ -1731,14 +1744,15 @@ public N endEphemeral() { return and(); } - } public class FcNested extends V1FCVolumeSourceFluent> implements Nested{ + + V1FCVolumeSourceBuilder builder; + FcNested(V1FCVolumeSource item) { this.builder = new V1FCVolumeSourceBuilder(this, item); } - V1FCVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withFc(builder.build()); } @@ -1747,14 +1761,15 @@ public N endFc() { return and(); } - } public class FlexVolumeNested extends V1FlexVolumeSourceFluent> implements Nested{ + + V1FlexVolumeSourceBuilder builder; + FlexVolumeNested(V1FlexVolumeSource item) { this.builder = new V1FlexVolumeSourceBuilder(this, item); } - V1FlexVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withFlexVolume(builder.build()); } @@ -1763,14 +1778,15 @@ public N endFlexVolume() { return and(); } - } public class FlockerNested extends V1FlockerVolumeSourceFluent> implements Nested{ + + V1FlockerVolumeSourceBuilder builder; + FlockerNested(V1FlockerVolumeSource item) { this.builder = new V1FlockerVolumeSourceBuilder(this, item); } - V1FlockerVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withFlocker(builder.build()); } @@ -1779,14 +1795,15 @@ public N endFlocker() { return and(); } - } public class GcePersistentDiskNested extends V1GCEPersistentDiskVolumeSourceFluent> implements Nested{ + + V1GCEPersistentDiskVolumeSourceBuilder builder; + GcePersistentDiskNested(V1GCEPersistentDiskVolumeSource item) { this.builder = new V1GCEPersistentDiskVolumeSourceBuilder(this, item); } - V1GCEPersistentDiskVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withGcePersistentDisk(builder.build()); } @@ -1795,14 +1812,15 @@ public N endGcePersistentDisk() { return and(); } - } public class GitRepoNested extends V1GitRepoVolumeSourceFluent> implements Nested{ + + V1GitRepoVolumeSourceBuilder builder; + GitRepoNested(V1GitRepoVolumeSource item) { this.builder = new V1GitRepoVolumeSourceBuilder(this, item); } - V1GitRepoVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withGitRepo(builder.build()); } @@ -1811,14 +1829,15 @@ public N endGitRepo() { return and(); } - } public class GlusterfsNested extends V1GlusterfsVolumeSourceFluent> implements Nested{ + + V1GlusterfsVolumeSourceBuilder builder; + GlusterfsNested(V1GlusterfsVolumeSource item) { this.builder = new V1GlusterfsVolumeSourceBuilder(this, item); } - V1GlusterfsVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withGlusterfs(builder.build()); } @@ -1827,14 +1846,15 @@ public N endGlusterfs() { return and(); } - } public class HostPathNested extends V1HostPathVolumeSourceFluent> implements Nested{ + + V1HostPathVolumeSourceBuilder builder; + HostPathNested(V1HostPathVolumeSource item) { this.builder = new V1HostPathVolumeSourceBuilder(this, item); } - V1HostPathVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withHostPath(builder.build()); } @@ -1843,14 +1863,15 @@ public N endHostPath() { return and(); } - } public class ImageNested extends V1ImageVolumeSourceFluent> implements Nested{ + + V1ImageVolumeSourceBuilder builder; + ImageNested(V1ImageVolumeSource item) { this.builder = new V1ImageVolumeSourceBuilder(this, item); } - V1ImageVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withImage(builder.build()); } @@ -1859,14 +1880,15 @@ public N endImage() { return and(); } - } public class IscsiNested extends V1ISCSIVolumeSourceFluent> implements Nested{ + + V1ISCSIVolumeSourceBuilder builder; + IscsiNested(V1ISCSIVolumeSource item) { this.builder = new V1ISCSIVolumeSourceBuilder(this, item); } - V1ISCSIVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withIscsi(builder.build()); } @@ -1875,14 +1897,15 @@ public N endIscsi() { return and(); } - } public class NfsNested extends V1NFSVolumeSourceFluent> implements Nested{ + + V1NFSVolumeSourceBuilder builder; + NfsNested(V1NFSVolumeSource item) { this.builder = new V1NFSVolumeSourceBuilder(this, item); } - V1NFSVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withNfs(builder.build()); } @@ -1891,14 +1914,15 @@ public N endNfs() { return and(); } - } public class PersistentVolumeClaimNested extends V1PersistentVolumeClaimVolumeSourceFluent> implements Nested{ + + V1PersistentVolumeClaimVolumeSourceBuilder builder; + PersistentVolumeClaimNested(V1PersistentVolumeClaimVolumeSource item) { this.builder = new V1PersistentVolumeClaimVolumeSourceBuilder(this, item); } - V1PersistentVolumeClaimVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withPersistentVolumeClaim(builder.build()); } @@ -1907,14 +1931,15 @@ public N endPersistentVolumeClaim() { return and(); } - } public class PhotonPersistentDiskNested extends V1PhotonPersistentDiskVolumeSourceFluent> implements Nested{ + + V1PhotonPersistentDiskVolumeSourceBuilder builder; + PhotonPersistentDiskNested(V1PhotonPersistentDiskVolumeSource item) { this.builder = new V1PhotonPersistentDiskVolumeSourceBuilder(this, item); } - V1PhotonPersistentDiskVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withPhotonPersistentDisk(builder.build()); } @@ -1923,14 +1948,15 @@ public N endPhotonPersistentDisk() { return and(); } - } public class PortworxVolumeNested extends V1PortworxVolumeSourceFluent> implements Nested{ + + V1PortworxVolumeSourceBuilder builder; + PortworxVolumeNested(V1PortworxVolumeSource item) { this.builder = new V1PortworxVolumeSourceBuilder(this, item); } - V1PortworxVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withPortworxVolume(builder.build()); } @@ -1939,14 +1965,15 @@ public N endPortworxVolume() { return and(); } - } public class ProjectedNested extends V1ProjectedVolumeSourceFluent> implements Nested{ + + V1ProjectedVolumeSourceBuilder builder; + ProjectedNested(V1ProjectedVolumeSource item) { this.builder = new V1ProjectedVolumeSourceBuilder(this, item); } - V1ProjectedVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withProjected(builder.build()); } @@ -1955,14 +1982,15 @@ public N endProjected() { return and(); } - } public class QuobyteNested extends V1QuobyteVolumeSourceFluent> implements Nested{ + + V1QuobyteVolumeSourceBuilder builder; + QuobyteNested(V1QuobyteVolumeSource item) { this.builder = new V1QuobyteVolumeSourceBuilder(this, item); } - V1QuobyteVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withQuobyte(builder.build()); } @@ -1971,14 +1999,15 @@ public N endQuobyte() { return and(); } - } public class RbdNested extends V1RBDVolumeSourceFluent> implements Nested{ + + V1RBDVolumeSourceBuilder builder; + RbdNested(V1RBDVolumeSource item) { this.builder = new V1RBDVolumeSourceBuilder(this, item); } - V1RBDVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withRbd(builder.build()); } @@ -1987,14 +2016,15 @@ public N endRbd() { return and(); } - } public class ScaleIONested extends V1ScaleIOVolumeSourceFluent> implements Nested{ + + V1ScaleIOVolumeSourceBuilder builder; + ScaleIONested(V1ScaleIOVolumeSource item) { this.builder = new V1ScaleIOVolumeSourceBuilder(this, item); } - V1ScaleIOVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withScaleIO(builder.build()); } @@ -2003,14 +2033,15 @@ public N endScaleIO() { return and(); } - } public class SecretNested extends V1SecretVolumeSourceFluent> implements Nested{ + + V1SecretVolumeSourceBuilder builder; + SecretNested(V1SecretVolumeSource item) { this.builder = new V1SecretVolumeSourceBuilder(this, item); } - V1SecretVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withSecret(builder.build()); } @@ -2019,14 +2050,15 @@ public N endSecret() { return and(); } - } public class StorageosNested extends V1StorageOSVolumeSourceFluent> implements Nested{ + + V1StorageOSVolumeSourceBuilder builder; + StorageosNested(V1StorageOSVolumeSource item) { this.builder = new V1StorageOSVolumeSourceBuilder(this, item); } - V1StorageOSVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withStorageos(builder.build()); } @@ -2035,14 +2067,15 @@ public N endStorageos() { return and(); } - } public class VsphereVolumeNested extends V1VsphereVirtualDiskVolumeSourceFluent> implements Nested{ + + V1VsphereVirtualDiskVolumeSourceBuilder builder; + VsphereVolumeNested(V1VsphereVirtualDiskVolumeSource item) { this.builder = new V1VsphereVirtualDiskVolumeSourceBuilder(this, item); } - V1VsphereVirtualDiskVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withVsphereVolume(builder.build()); } @@ -2051,7 +2084,5 @@ public N endVsphereVolume() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java index 62268336ec..3cffd1e7c3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1VolumeMountBuilder extends V1VolumeMountFluent implements VisitableBuilder{ + + V1VolumeMountFluent fluent; + public V1VolumeMountBuilder() { this(new V1VolumeMount()); } @@ -11,17 +14,16 @@ public V1VolumeMountBuilder(V1VolumeMountFluent fluent) { this(fluent, new V1VolumeMount()); } - public V1VolumeMountBuilder(V1VolumeMountFluent fluent,V1VolumeMount instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeMountBuilder(V1VolumeMount instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeMountFluent fluent; + public V1VolumeMountBuilder(V1VolumeMountFluent fluent,V1VolumeMount instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeMount build() { V1VolumeMount buildable = new V1VolumeMount(); buildable.setMountPath(fluent.getMountPath()); @@ -34,5 +36,4 @@ public V1VolumeMount build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java index c7d5405650..7ee20ebaeb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java @@ -1,24 +1,19 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1VolumeMountFluent> extends BaseFluent{ - public V1VolumeMountFluent() { - } - - public V1VolumeMountFluent(V1VolumeMount instance) { - this.copyInstance(instance); - } + private String mountPath; private String mountPropagation; private String name; @@ -26,7 +21,14 @@ public V1VolumeMountFluent(V1VolumeMount instance) { private String recursiveReadOnly; private String subPath; private String subPathExpr; + + public V1VolumeMountFluent() { + } + public V1VolumeMountFluent(V1VolumeMount instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1VolumeMount instance) { instance = instance != null ? instance : new V1VolumeMount(); if (instance != null) { @@ -40,130 +42,95 @@ protected void copyInstance(V1VolumeMount instance) { } } - public String getMountPath() { - return this.mountPath; - } - - public A withMountPath(String mountPath) { - this.mountPath = mountPath; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeMountFluent that = (V1VolumeMountFluent) o; + if (!(Objects.equals(mountPath, that.mountPath))) { + return false; + } + if (!(Objects.equals(mountPropagation, that.mountPropagation))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(recursiveReadOnly, that.recursiveReadOnly))) { + return false; + } + if (!(Objects.equals(subPath, that.subPath))) { + return false; + } + if (!(Objects.equals(subPathExpr, that.subPathExpr))) { + return false; + } + return true; } - public boolean hasMountPath() { - return this.mountPath != null; + public String getMountPath() { + return this.mountPath; } public String getMountPropagation() { return this.mountPropagation; } - public A withMountPropagation(String mountPropagation) { - this.mountPropagation = mountPropagation; - return (A) this; - } - - public boolean hasMountPropagation() { - return this.mountPropagation != null; - } - public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - public String getRecursiveReadOnly() { return this.recursiveReadOnly; } - public A withRecursiveReadOnly(String recursiveReadOnly) { - this.recursiveReadOnly = recursiveReadOnly; - return (A) this; + public String getSubPath() { + return this.subPath; } - public boolean hasRecursiveReadOnly() { - return this.recursiveReadOnly != null; + public String getSubPathExpr() { + return this.subPathExpr; } - public String getSubPath() { - return this.subPath; + public boolean hasMountPath() { + return this.mountPath != null; } - public A withSubPath(String subPath) { - this.subPath = subPath; - return (A) this; + public boolean hasMountPropagation() { + return this.mountPropagation != null; } - public boolean hasSubPath() { - return this.subPath != null; + public boolean hasName() { + return this.name != null; } - public String getSubPathExpr() { - return this.subPathExpr; + public boolean hasReadOnly() { + return this.readOnly != null; } - public A withSubPathExpr(String subPathExpr) { - this.subPathExpr = subPathExpr; - return (A) this; + public boolean hasRecursiveReadOnly() { + return this.recursiveReadOnly != null; } - public boolean hasSubPathExpr() { - return this.subPathExpr != null; + public boolean hasSubPath() { + return this.subPath != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1VolumeMountFluent that = (V1VolumeMountFluent) o; - if (!(Objects.equals(mountPath, that.mountPath))) { - return false; - } - if (!(Objects.equals(mountPropagation, that.mountPropagation))) { - return false; - } - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(readOnly, that.readOnly))) { - return false; - } - if (!(Objects.equals(recursiveReadOnly, that.recursiveReadOnly))) { - return false; - } - if (!(Objects.equals(subPath, that.subPath))) { - return false; - } - if (!(Objects.equals(subPathExpr, that.subPathExpr))) { - return false; - } - return true; + public boolean hasSubPathExpr() { + return this.subPathExpr != null; } public int hashCode() { @@ -211,9 +178,43 @@ public String toString() { return sb.toString(); } + public A withMountPath(String mountPath) { + this.mountPath = mountPath; + return (A) this; + } + + public A withMountPropagation(String mountPropagation) { + this.mountPropagation = mountPropagation; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withRecursiveReadOnly(String recursiveReadOnly) { + this.recursiveReadOnly = recursiveReadOnly; + return (A) this; + } + + public A withSubPath(String subPath) { + this.subPath = subPath; + return (A) this; + } + + public A withSubPathExpr(String subPathExpr) { + this.subPathExpr = subPathExpr; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusBuilder.java index da2d2502e6..637b9d2025 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1VolumeMountStatusBuilder extends V1VolumeMountStatusFluent implements VisitableBuilder{ + + V1VolumeMountStatusFluent fluent; + public V1VolumeMountStatusBuilder() { this(new V1VolumeMountStatus()); } @@ -11,17 +14,16 @@ public V1VolumeMountStatusBuilder(V1VolumeMountStatusFluent fluent) { this(fluent, new V1VolumeMountStatus()); } - public V1VolumeMountStatusBuilder(V1VolumeMountStatusFluent fluent,V1VolumeMountStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeMountStatusBuilder(V1VolumeMountStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeMountStatusFluent fluent; + public V1VolumeMountStatusBuilder(V1VolumeMountStatusFluent fluent,V1VolumeMountStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeMountStatus build() { V1VolumeMountStatus buildable = new V1VolumeMountStatus(); buildable.setMountPath(fluent.getMountPath()); @@ -31,5 +33,4 @@ public V1VolumeMountStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusFluent.java index 178040ff93..bce4adc72c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1VolumeMountStatusFluent> extends BaseFluent{ + + private String mountPath; + private String name; + private Boolean readOnly; + private String recursiveReadOnly; + public V1VolumeMountStatusFluent() { } public V1VolumeMountStatusFluent(V1VolumeMountStatus instance) { this.copyInstance(instance); } - private String mountPath; - private String name; - private Boolean readOnly; - private String recursiveReadOnly; - + protected void copyInstance(V1VolumeMountStatus instance) { instance = instance != null ? instance : new V1VolumeMountStatus(); if (instance != null) { @@ -34,58 +36,6 @@ protected void copyInstance(V1VolumeMountStatus instance) { } } - public String getMountPath() { - return this.mountPath; - } - - public A withMountPath(String mountPath) { - this.mountPath = mountPath; - return (A) this; - } - - public boolean hasMountPath() { - return this.mountPath != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public boolean hasReadOnly() { - return this.readOnly != null; - } - - public String getRecursiveReadOnly() { - return this.recursiveReadOnly; - } - - public A withRecursiveReadOnly(String recursiveReadOnly) { - this.recursiveReadOnly = recursiveReadOnly; - return (A) this; - } - - public boolean hasRecursiveReadOnly() { - return this.recursiveReadOnly != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -112,6 +62,38 @@ public boolean equals(Object o) { return true; } + public String getMountPath() { + return this.mountPath; + } + + public String getName() { + return this.name; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public String getRecursiveReadOnly() { + return this.recursiveReadOnly; + } + + public boolean hasMountPath() { + return this.mountPath != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + + public boolean hasRecursiveReadOnly() { + return this.recursiveReadOnly != null; + } + public int hashCode() { return Objects.hash(mountPath, name, readOnly, recursiveReadOnly); } @@ -142,9 +124,28 @@ public String toString() { return sb.toString(); } + public A withMountPath(String mountPath) { + this.mountPath = mountPath; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withRecursiveReadOnly(String recursiveReadOnly) { + this.recursiveReadOnly = recursiveReadOnly; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java index bd6e41a7ef..710d10807b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1VolumeNodeAffinityBuilder extends V1VolumeNodeAffinityFluent implements VisitableBuilder{ + + V1VolumeNodeAffinityFluent fluent; + public V1VolumeNodeAffinityBuilder() { this(new V1VolumeNodeAffinity()); } @@ -11,22 +14,20 @@ public V1VolumeNodeAffinityBuilder(V1VolumeNodeAffinityFluent fluent) { this(fluent, new V1VolumeNodeAffinity()); } - public V1VolumeNodeAffinityBuilder(V1VolumeNodeAffinityFluent fluent,V1VolumeNodeAffinity instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeNodeAffinityBuilder(V1VolumeNodeAffinity instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeNodeAffinityFluent fluent; + public V1VolumeNodeAffinityBuilder(V1VolumeNodeAffinityFluent fluent,V1VolumeNodeAffinity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeNodeAffinity build() { V1VolumeNodeAffinity buildable = new V1VolumeNodeAffinity(); buildable.setRequired(fluent.buildRequired()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java index 44bd6198b2..c75f25d6c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1VolumeNodeAffinityFluent> extends BaseFluent{ + + private V1NodeSelectorBuilder required; + public V1VolumeNodeAffinityFluent() { } public V1VolumeNodeAffinityFluent(V1VolumeNodeAffinity instance) { this.copyInstance(instance); } - private V1NodeSelectorBuilder required; + + public V1NodeSelector buildRequired() { + return this.required != null ? this.required.build() : null; + } protected void copyInstance(V1VolumeNodeAffinity instance) { instance = instance != null ? instance : new V1VolumeNodeAffinity(); @@ -29,38 +35,6 @@ protected void copyInstance(V1VolumeNodeAffinity instance) { } } - public V1NodeSelector buildRequired() { - return this.required != null ? this.required.build() : null; - } - - public A withRequired(V1NodeSelector required) { - this._visitables.remove("required"); - if (required != null) { - this.required = new V1NodeSelectorBuilder(required); - this._visitables.get("required").add(this.required); - } else { - this.required = null; - this._visitables.get("required").remove(this.required); - } - return (A) this; - } - - public boolean hasRequired() { - return this.required != null; - } - - public RequiredNested withNewRequired() { - return new RequiredNested(null); - } - - public RequiredNested withNewRequiredLike(V1NodeSelector item) { - return new RequiredNested(item); - } - - public RequiredNested editRequired() { - return this.withNewRequiredLike(Optional.ofNullable(this.buildRequired()).orElse(null)); - } - public RequiredNested editOrNewRequired() { return this.withNewRequiredLike(Optional.ofNullable(this.buildRequired()).orElse(new V1NodeSelectorBuilder().build())); } @@ -69,6 +43,10 @@ public RequiredNested editOrNewRequiredLike(V1NodeSelector item) { return this.withNewRequiredLike(Optional.ofNullable(this.buildRequired()).orElse(item)); } + public RequiredNested editRequired() { + return this.withNewRequiredLike(Optional.ofNullable(this.buildRequired()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasRequired() { + return this.required != null; + } + public int hashCode() { return Objects.hash(required); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public RequiredNested withNewRequired() { + return new RequiredNested(null); + } + + public RequiredNested withNewRequiredLike(V1NodeSelector item) { + return new RequiredNested(item); + } + + public A withRequired(V1NodeSelector required) { + this._visitables.remove("required"); + if (required != null) { + this.required = new V1NodeSelectorBuilder(required); + this._visitables.get("required").add(this.required); + } else { + this.required = null; + this._visitables.get("required").remove(this.required); + } + return (A) this; + } public class RequiredNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + RequiredNested(V1NodeSelector item) { this.builder = new V1NodeSelectorBuilder(this, item); } - V1NodeSelectorBuilder builder; - + public N and() { return (N) V1VolumeNodeAffinityFluent.this.withRequired(builder.build()); } @@ -114,7 +118,5 @@ public N endRequired() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java index 89edf57595..bd21e0592f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1VolumeNodeResourcesBuilder extends V1VolumeNodeResourcesFluent implements VisitableBuilder{ + + V1VolumeNodeResourcesFluent fluent; + public V1VolumeNodeResourcesBuilder() { this(new V1VolumeNodeResources()); } @@ -11,22 +14,20 @@ public V1VolumeNodeResourcesBuilder(V1VolumeNodeResourcesFluent fluent) { this(fluent, new V1VolumeNodeResources()); } - public V1VolumeNodeResourcesBuilder(V1VolumeNodeResourcesFluent fluent,V1VolumeNodeResources instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeNodeResourcesBuilder(V1VolumeNodeResources instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeNodeResourcesFluent fluent; + public V1VolumeNodeResourcesBuilder(V1VolumeNodeResourcesFluent fluent,V1VolumeNodeResources instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeNodeResources build() { V1VolumeNodeResources buildable = new V1VolumeNodeResources(); buildable.setCount(fluent.getCount()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java index 7dcf24fa2f..aed1a05e6a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V1VolumeNodeResourcesFluent> extends BaseFluent{ + + private Integer count; + public V1VolumeNodeResourcesFluent() { } public V1VolumeNodeResourcesFluent(V1VolumeNodeResources instance) { this.copyInstance(instance); } - private Integer count; - + protected void copyInstance(V1VolumeNodeResources instance) { instance = instance != null ? instance : new V1VolumeNodeResources(); if (instance != null) { @@ -28,19 +30,6 @@ protected void copyInstance(V1VolumeNodeResources instance) { } } - public Integer getCount() { - return this.count; - } - - public A withCount(Integer count) { - this.count = count; - return (A) this; - } - - public boolean hasCount() { - return this.count != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -58,6 +47,14 @@ public boolean equals(Object o) { return true; } + public Integer getCount() { + return this.count; + } + + public boolean hasCount() { + return this.count != null; + } + public int hashCode() { return Objects.hash(count); } @@ -73,5 +70,9 @@ public String toString() { return sb.toString(); } - + public A withCount(Integer count) { + this.count = count; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java index bf49e8c9fb..a6400fba52 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1VolumeProjectionBuilder extends V1VolumeProjectionFluent implements VisitableBuilder{ + + V1VolumeProjectionFluent fluent; + public V1VolumeProjectionBuilder() { this(new V1VolumeProjection()); } @@ -11,17 +14,16 @@ public V1VolumeProjectionBuilder(V1VolumeProjectionFluent fluent) { this(fluent, new V1VolumeProjection()); } - public V1VolumeProjectionBuilder(V1VolumeProjectionFluent fluent,V1VolumeProjection instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeProjectionBuilder(V1VolumeProjection instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeProjectionFluent fluent; + public V1VolumeProjectionBuilder(V1VolumeProjectionFluent fluent,V1VolumeProjection instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeProjection build() { V1VolumeProjection buildable = new V1VolumeProjection(); buildable.setClusterTrustBundle(fluent.buildClusterTrustBundle()); @@ -33,5 +35,4 @@ public V1VolumeProjection build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java index 70853aa46c..a38ba0c893 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java @@ -1,114 +1,88 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1VolumeProjectionFluent> extends BaseFluent{ - public V1VolumeProjectionFluent() { - } - - public V1VolumeProjectionFluent(V1VolumeProjection instance) { - this.copyInstance(instance); - } + private V1ClusterTrustBundleProjectionBuilder clusterTrustBundle; private V1ConfigMapProjectionBuilder configMap; private V1DownwardAPIProjectionBuilder downwardAPI; private V1PodCertificateProjectionBuilder podCertificate; private V1SecretProjectionBuilder secret; private V1ServiceAccountTokenProjectionBuilder serviceAccountToken; - - protected void copyInstance(V1VolumeProjection instance) { - instance = instance != null ? instance : new V1VolumeProjection(); - if (instance != null) { - this.withClusterTrustBundle(instance.getClusterTrustBundle()); - this.withConfigMap(instance.getConfigMap()); - this.withDownwardAPI(instance.getDownwardAPI()); - this.withPodCertificate(instance.getPodCertificate()); - this.withSecret(instance.getSecret()); - this.withServiceAccountToken(instance.getServiceAccountToken()); - } + + public V1VolumeProjectionFluent() { } + public V1VolumeProjectionFluent(V1VolumeProjection instance) { + this.copyInstance(instance); + } + public V1ClusterTrustBundleProjection buildClusterTrustBundle() { return this.clusterTrustBundle != null ? this.clusterTrustBundle.build() : null; } - public A withClusterTrustBundle(V1ClusterTrustBundleProjection clusterTrustBundle) { - this._visitables.remove("clusterTrustBundle"); - if (clusterTrustBundle != null) { - this.clusterTrustBundle = new V1ClusterTrustBundleProjectionBuilder(clusterTrustBundle); - this._visitables.get("clusterTrustBundle").add(this.clusterTrustBundle); - } else { - this.clusterTrustBundle = null; - this._visitables.get("clusterTrustBundle").remove(this.clusterTrustBundle); - } - return (A) this; - } - - public boolean hasClusterTrustBundle() { - return this.clusterTrustBundle != null; - } - - public ClusterTrustBundleNested withNewClusterTrustBundle() { - return new ClusterTrustBundleNested(null); + public V1ConfigMapProjection buildConfigMap() { + return this.configMap != null ? this.configMap.build() : null; } - public ClusterTrustBundleNested withNewClusterTrustBundleLike(V1ClusterTrustBundleProjection item) { - return new ClusterTrustBundleNested(item); + public V1DownwardAPIProjection buildDownwardAPI() { + return this.downwardAPI != null ? this.downwardAPI.build() : null; } - public ClusterTrustBundleNested editClusterTrustBundle() { - return this.withNewClusterTrustBundleLike(Optional.ofNullable(this.buildClusterTrustBundle()).orElse(null)); + public V1PodCertificateProjection buildPodCertificate() { + return this.podCertificate != null ? this.podCertificate.build() : null; } - public ClusterTrustBundleNested editOrNewClusterTrustBundle() { - return this.withNewClusterTrustBundleLike(Optional.ofNullable(this.buildClusterTrustBundle()).orElse(new V1ClusterTrustBundleProjectionBuilder().build())); + public V1SecretProjection buildSecret() { + return this.secret != null ? this.secret.build() : null; } - public ClusterTrustBundleNested editOrNewClusterTrustBundleLike(V1ClusterTrustBundleProjection item) { - return this.withNewClusterTrustBundleLike(Optional.ofNullable(this.buildClusterTrustBundle()).orElse(item)); + public V1ServiceAccountTokenProjection buildServiceAccountToken() { + return this.serviceAccountToken != null ? this.serviceAccountToken.build() : null; } - public V1ConfigMapProjection buildConfigMap() { - return this.configMap != null ? this.configMap.build() : null; + protected void copyInstance(V1VolumeProjection instance) { + instance = instance != null ? instance : new V1VolumeProjection(); + if (instance != null) { + this.withClusterTrustBundle(instance.getClusterTrustBundle()); + this.withConfigMap(instance.getConfigMap()); + this.withDownwardAPI(instance.getDownwardAPI()); + this.withPodCertificate(instance.getPodCertificate()); + this.withSecret(instance.getSecret()); + this.withServiceAccountToken(instance.getServiceAccountToken()); + } } - public A withConfigMap(V1ConfigMapProjection configMap) { - this._visitables.remove("configMap"); - if (configMap != null) { - this.configMap = new V1ConfigMapProjectionBuilder(configMap); - this._visitables.get("configMap").add(this.configMap); - } else { - this.configMap = null; - this._visitables.get("configMap").remove(this.configMap); - } - return (A) this; + public ClusterTrustBundleNested editClusterTrustBundle() { + return this.withNewClusterTrustBundleLike(Optional.ofNullable(this.buildClusterTrustBundle()).orElse(null)); } - public boolean hasConfigMap() { - return this.configMap != null; + public ConfigMapNested editConfigMap() { + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(null)); } - public ConfigMapNested withNewConfigMap() { - return new ConfigMapNested(null); + public DownwardAPINested editDownwardAPI() { + return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(null)); } - public ConfigMapNested withNewConfigMapLike(V1ConfigMapProjection item) { - return new ConfigMapNested(item); + public ClusterTrustBundleNested editOrNewClusterTrustBundle() { + return this.withNewClusterTrustBundleLike(Optional.ofNullable(this.buildClusterTrustBundle()).orElse(new V1ClusterTrustBundleProjectionBuilder().build())); } - public ConfigMapNested editConfigMap() { - return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(null)); + public ClusterTrustBundleNested editOrNewClusterTrustBundleLike(V1ClusterTrustBundleProjection item) { + return this.withNewClusterTrustBundleLike(Optional.ofNullable(this.buildClusterTrustBundle()).orElse(item)); } public ConfigMapNested editOrNewConfigMap() { @@ -119,38 +93,6 @@ public ConfigMapNested editOrNewConfigMapLike(V1ConfigMapProjection item) { return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(item)); } - public V1DownwardAPIProjection buildDownwardAPI() { - return this.downwardAPI != null ? this.downwardAPI.build() : null; - } - - public A withDownwardAPI(V1DownwardAPIProjection downwardAPI) { - this._visitables.remove("downwardAPI"); - if (downwardAPI != null) { - this.downwardAPI = new V1DownwardAPIProjectionBuilder(downwardAPI); - this._visitables.get("downwardAPI").add(this.downwardAPI); - } else { - this.downwardAPI = null; - this._visitables.get("downwardAPI").remove(this.downwardAPI); - } - return (A) this; - } - - public boolean hasDownwardAPI() { - return this.downwardAPI != null; - } - - public DownwardAPINested withNewDownwardAPI() { - return new DownwardAPINested(null); - } - - public DownwardAPINested withNewDownwardAPILike(V1DownwardAPIProjection item) { - return new DownwardAPINested(item); - } - - public DownwardAPINested editDownwardAPI() { - return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(null)); - } - public DownwardAPINested editOrNewDownwardAPI() { return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(new V1DownwardAPIProjectionBuilder().build())); } @@ -159,38 +101,6 @@ public DownwardAPINested editOrNewDownwardAPILike(V1DownwardAPIProjection ite return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(item)); } - public V1PodCertificateProjection buildPodCertificate() { - return this.podCertificate != null ? this.podCertificate.build() : null; - } - - public A withPodCertificate(V1PodCertificateProjection podCertificate) { - this._visitables.remove("podCertificate"); - if (podCertificate != null) { - this.podCertificate = new V1PodCertificateProjectionBuilder(podCertificate); - this._visitables.get("podCertificate").add(this.podCertificate); - } else { - this.podCertificate = null; - this._visitables.get("podCertificate").remove(this.podCertificate); - } - return (A) this; - } - - public boolean hasPodCertificate() { - return this.podCertificate != null; - } - - public PodCertificateNested withNewPodCertificate() { - return new PodCertificateNested(null); - } - - public PodCertificateNested withNewPodCertificateLike(V1PodCertificateProjection item) { - return new PodCertificateNested(item); - } - - public PodCertificateNested editPodCertificate() { - return this.withNewPodCertificateLike(Optional.ofNullable(this.buildPodCertificate()).orElse(null)); - } - public PodCertificateNested editOrNewPodCertificate() { return this.withNewPodCertificateLike(Optional.ofNullable(this.buildPodCertificate()).orElse(new V1PodCertificateProjectionBuilder().build())); } @@ -199,38 +109,6 @@ public PodCertificateNested editOrNewPodCertificateLike(V1PodCertificateProje return this.withNewPodCertificateLike(Optional.ofNullable(this.buildPodCertificate()).orElse(item)); } - public V1SecretProjection buildSecret() { - return this.secret != null ? this.secret.build() : null; - } - - public A withSecret(V1SecretProjection secret) { - this._visitables.remove("secret"); - if (secret != null) { - this.secret = new V1SecretProjectionBuilder(secret); - this._visitables.get("secret").add(this.secret); - } else { - this.secret = null; - this._visitables.get("secret").remove(this.secret); - } - return (A) this; - } - - public boolean hasSecret() { - return this.secret != null; - } - - public SecretNested withNewSecret() { - return new SecretNested(null); - } - - public SecretNested withNewSecretLike(V1SecretProjection item) { - return new SecretNested(item); - } - - public SecretNested editSecret() { - return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(null)); - } - public SecretNested editOrNewSecret() { return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(new V1SecretProjectionBuilder().build())); } @@ -239,46 +117,26 @@ public SecretNested editOrNewSecretLike(V1SecretProjection item) { return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(item)); } - public V1ServiceAccountTokenProjection buildServiceAccountToken() { - return this.serviceAccountToken != null ? this.serviceAccountToken.build() : null; - } - - public A withServiceAccountToken(V1ServiceAccountTokenProjection serviceAccountToken) { - this._visitables.remove("serviceAccountToken"); - if (serviceAccountToken != null) { - this.serviceAccountToken = new V1ServiceAccountTokenProjectionBuilder(serviceAccountToken); - this._visitables.get("serviceAccountToken").add(this.serviceAccountToken); - } else { - this.serviceAccountToken = null; - this._visitables.get("serviceAccountToken").remove(this.serviceAccountToken); - } - return (A) this; + public ServiceAccountTokenNested editOrNewServiceAccountToken() { + return this.withNewServiceAccountTokenLike(Optional.ofNullable(this.buildServiceAccountToken()).orElse(new V1ServiceAccountTokenProjectionBuilder().build())); } - public boolean hasServiceAccountToken() { - return this.serviceAccountToken != null; + public ServiceAccountTokenNested editOrNewServiceAccountTokenLike(V1ServiceAccountTokenProjection item) { + return this.withNewServiceAccountTokenLike(Optional.ofNullable(this.buildServiceAccountToken()).orElse(item)); } - public ServiceAccountTokenNested withNewServiceAccountToken() { - return new ServiceAccountTokenNested(null); + public PodCertificateNested editPodCertificate() { + return this.withNewPodCertificateLike(Optional.ofNullable(this.buildPodCertificate()).orElse(null)); } - public ServiceAccountTokenNested withNewServiceAccountTokenLike(V1ServiceAccountTokenProjection item) { - return new ServiceAccountTokenNested(item); + public SecretNested editSecret() { + return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(null)); } public ServiceAccountTokenNested editServiceAccountToken() { return this.withNewServiceAccountTokenLike(Optional.ofNullable(this.buildServiceAccountToken()).orElse(null)); } - public ServiceAccountTokenNested editOrNewServiceAccountToken() { - return this.withNewServiceAccountTokenLike(Optional.ofNullable(this.buildServiceAccountToken()).orElse(new V1ServiceAccountTokenProjectionBuilder().build())); - } - - public ServiceAccountTokenNested editOrNewServiceAccountTokenLike(V1ServiceAccountTokenProjection item) { - return this.withNewServiceAccountTokenLike(Optional.ofNullable(this.buildServiceAccountToken()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -311,6 +169,30 @@ public boolean equals(Object o) { return true; } + public boolean hasClusterTrustBundle() { + return this.clusterTrustBundle != null; + } + + public boolean hasConfigMap() { + return this.configMap != null; + } + + public boolean hasDownwardAPI() { + return this.downwardAPI != null; + } + + public boolean hasPodCertificate() { + return this.podCertificate != null; + } + + public boolean hasSecret() { + return this.secret != null; + } + + public boolean hasServiceAccountToken() { + return this.serviceAccountToken != null; + } + public int hashCode() { return Objects.hash(clusterTrustBundle, configMap, downwardAPI, podCertificate, secret, serviceAccountToken); } @@ -350,12 +232,134 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withClusterTrustBundle(V1ClusterTrustBundleProjection clusterTrustBundle) { + this._visitables.remove("clusterTrustBundle"); + if (clusterTrustBundle != null) { + this.clusterTrustBundle = new V1ClusterTrustBundleProjectionBuilder(clusterTrustBundle); + this._visitables.get("clusterTrustBundle").add(this.clusterTrustBundle); + } else { + this.clusterTrustBundle = null; + this._visitables.get("clusterTrustBundle").remove(this.clusterTrustBundle); + } + return (A) this; + } + + public A withConfigMap(V1ConfigMapProjection configMap) { + this._visitables.remove("configMap"); + if (configMap != null) { + this.configMap = new V1ConfigMapProjectionBuilder(configMap); + this._visitables.get("configMap").add(this.configMap); + } else { + this.configMap = null; + this._visitables.get("configMap").remove(this.configMap); + } + return (A) this; + } + + public A withDownwardAPI(V1DownwardAPIProjection downwardAPI) { + this._visitables.remove("downwardAPI"); + if (downwardAPI != null) { + this.downwardAPI = new V1DownwardAPIProjectionBuilder(downwardAPI); + this._visitables.get("downwardAPI").add(this.downwardAPI); + } else { + this.downwardAPI = null; + this._visitables.get("downwardAPI").remove(this.downwardAPI); + } + return (A) this; + } + + public ClusterTrustBundleNested withNewClusterTrustBundle() { + return new ClusterTrustBundleNested(null); + } + + public ClusterTrustBundleNested withNewClusterTrustBundleLike(V1ClusterTrustBundleProjection item) { + return new ClusterTrustBundleNested(item); + } + + public ConfigMapNested withNewConfigMap() { + return new ConfigMapNested(null); + } + + public ConfigMapNested withNewConfigMapLike(V1ConfigMapProjection item) { + return new ConfigMapNested(item); + } + + public DownwardAPINested withNewDownwardAPI() { + return new DownwardAPINested(null); + } + + public DownwardAPINested withNewDownwardAPILike(V1DownwardAPIProjection item) { + return new DownwardAPINested(item); + } + + public PodCertificateNested withNewPodCertificate() { + return new PodCertificateNested(null); + } + + public PodCertificateNested withNewPodCertificateLike(V1PodCertificateProjection item) { + return new PodCertificateNested(item); + } + + public SecretNested withNewSecret() { + return new SecretNested(null); + } + + public SecretNested withNewSecretLike(V1SecretProjection item) { + return new SecretNested(item); + } + + public ServiceAccountTokenNested withNewServiceAccountToken() { + return new ServiceAccountTokenNested(null); + } + + public ServiceAccountTokenNested withNewServiceAccountTokenLike(V1ServiceAccountTokenProjection item) { + return new ServiceAccountTokenNested(item); + } + + public A withPodCertificate(V1PodCertificateProjection podCertificate) { + this._visitables.remove("podCertificate"); + if (podCertificate != null) { + this.podCertificate = new V1PodCertificateProjectionBuilder(podCertificate); + this._visitables.get("podCertificate").add(this.podCertificate); + } else { + this.podCertificate = null; + this._visitables.get("podCertificate").remove(this.podCertificate); + } + return (A) this; + } + + public A withSecret(V1SecretProjection secret) { + this._visitables.remove("secret"); + if (secret != null) { + this.secret = new V1SecretProjectionBuilder(secret); + this._visitables.get("secret").add(this.secret); + } else { + this.secret = null; + this._visitables.get("secret").remove(this.secret); + } + return (A) this; + } + + public A withServiceAccountToken(V1ServiceAccountTokenProjection serviceAccountToken) { + this._visitables.remove("serviceAccountToken"); + if (serviceAccountToken != null) { + this.serviceAccountToken = new V1ServiceAccountTokenProjectionBuilder(serviceAccountToken); + this._visitables.get("serviceAccountToken").add(this.serviceAccountToken); + } else { + this.serviceAccountToken = null; + this._visitables.get("serviceAccountToken").remove(this.serviceAccountToken); + } + return (A) this; + } public class ClusterTrustBundleNested extends V1ClusterTrustBundleProjectionFluent> implements Nested{ + + V1ClusterTrustBundleProjectionBuilder builder; + ClusterTrustBundleNested(V1ClusterTrustBundleProjection item) { this.builder = new V1ClusterTrustBundleProjectionBuilder(this, item); } - V1ClusterTrustBundleProjectionBuilder builder; - + public N and() { return (N) V1VolumeProjectionFluent.this.withClusterTrustBundle(builder.build()); } @@ -364,14 +368,15 @@ public N endClusterTrustBundle() { return and(); } - } public class ConfigMapNested extends V1ConfigMapProjectionFluent> implements Nested{ + + V1ConfigMapProjectionBuilder builder; + ConfigMapNested(V1ConfigMapProjection item) { this.builder = new V1ConfigMapProjectionBuilder(this, item); } - V1ConfigMapProjectionBuilder builder; - + public N and() { return (N) V1VolumeProjectionFluent.this.withConfigMap(builder.build()); } @@ -380,14 +385,15 @@ public N endConfigMap() { return and(); } - } public class DownwardAPINested extends V1DownwardAPIProjectionFluent> implements Nested{ + + V1DownwardAPIProjectionBuilder builder; + DownwardAPINested(V1DownwardAPIProjection item) { this.builder = new V1DownwardAPIProjectionBuilder(this, item); } - V1DownwardAPIProjectionBuilder builder; - + public N and() { return (N) V1VolumeProjectionFluent.this.withDownwardAPI(builder.build()); } @@ -396,14 +402,15 @@ public N endDownwardAPI() { return and(); } - } public class PodCertificateNested extends V1PodCertificateProjectionFluent> implements Nested{ + + V1PodCertificateProjectionBuilder builder; + PodCertificateNested(V1PodCertificateProjection item) { this.builder = new V1PodCertificateProjectionBuilder(this, item); } - V1PodCertificateProjectionBuilder builder; - + public N and() { return (N) V1VolumeProjectionFluent.this.withPodCertificate(builder.build()); } @@ -412,14 +419,15 @@ public N endPodCertificate() { return and(); } - } public class SecretNested extends V1SecretProjectionFluent> implements Nested{ + + V1SecretProjectionBuilder builder; + SecretNested(V1SecretProjection item) { this.builder = new V1SecretProjectionBuilder(this, item); } - V1SecretProjectionBuilder builder; - + public N and() { return (N) V1VolumeProjectionFluent.this.withSecret(builder.build()); } @@ -428,14 +436,15 @@ public N endSecret() { return and(); } - } public class ServiceAccountTokenNested extends V1ServiceAccountTokenProjectionFluent> implements Nested{ + + V1ServiceAccountTokenProjectionBuilder builder; + ServiceAccountTokenNested(V1ServiceAccountTokenProjection item) { this.builder = new V1ServiceAccountTokenProjectionBuilder(this, item); } - V1ServiceAccountTokenProjectionBuilder builder; - + public N and() { return (N) V1VolumeProjectionFluent.this.withServiceAccountToken(builder.build()); } @@ -444,7 +453,5 @@ public N endServiceAccountToken() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsBuilder.java index 60f7c9436e..4abee73f85 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1VolumeResourceRequirementsBuilder extends V1VolumeResourceRequirementsFluent implements VisitableBuilder{ + + V1VolumeResourceRequirementsFluent fluent; + public V1VolumeResourceRequirementsBuilder() { this(new V1VolumeResourceRequirements()); } @@ -11,17 +14,16 @@ public V1VolumeResourceRequirementsBuilder(V1VolumeResourceRequirementsFluent this(fluent, new V1VolumeResourceRequirements()); } - public V1VolumeResourceRequirementsBuilder(V1VolumeResourceRequirementsFluent fluent,V1VolumeResourceRequirements instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeResourceRequirementsBuilder(V1VolumeResourceRequirements instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeResourceRequirementsFluent fluent; + public V1VolumeResourceRequirementsBuilder(V1VolumeResourceRequirementsFluent fluent,V1VolumeResourceRequirements instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeResourceRequirements build() { V1VolumeResourceRequirements buildable = new V1VolumeResourceRequirements(); buildable.setLimits(fluent.getLimits()); @@ -29,5 +31,4 @@ public V1VolumeResourceRequirements build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsFluent.java index 39e971e3fe..acf85c5f72 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsFluent.java @@ -1,35 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; -import java.util.Map; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1VolumeResourceRequirementsFluent> extends BaseFluent{ + + private Map limits; + private Map requests; + public V1VolumeResourceRequirementsFluent() { } public V1VolumeResourceRequirementsFluent(V1VolumeResourceRequirements instance) { this.copyInstance(instance); } - private Map limits; - private Map requests; - - protected void copyInstance(V1VolumeResourceRequirements instance) { - instance = instance != null ? instance : new V1VolumeResourceRequirements(); - if (instance != null) { - this.withLimits(instance.getLimits()); - this.withRequests(instance.getRequests()); + + public A addToLimits(Map map) { + if (this.limits == null && map != null) { + this.limits = new LinkedHashMap(); + } + if (map != null) { + this.limits.putAll(map); } + return (A) this; } public A addToLimits(String key,Quantity value) { @@ -42,73 +46,94 @@ public A addToLimits(String key,Quantity value) { return (A) this; } - public A addToLimits(Map map) { - if (this.limits == null && map != null) { - this.limits = new LinkedHashMap(); + public A addToRequests(Map map) { + if (this.requests == null && map != null) { + this.requests = new LinkedHashMap(); } if (map != null) { - this.limits.putAll(map); + this.requests.putAll(map); } return (A) this; } - public A removeFromLimits(String key) { - if (this.limits == null) { - return (A) this; + public A addToRequests(String key,Quantity value) { + if (this.requests == null && key != null && value != null) { + this.requests = new LinkedHashMap(); } - if (key != null && this.limits != null) { - this.limits.remove(key); + if (key != null && value != null) { + this.requests.put(key, value); } return (A) this; } - public A removeFromLimits(Map map) { - if (this.limits == null) { - return (A) this; + protected void copyInstance(V1VolumeResourceRequirements instance) { + instance = instance != null ? instance : new V1VolumeResourceRequirements(); + if (instance != null) { + this.withLimits(instance.getLimits()); + this.withRequests(instance.getRequests()); } - if (map != null) { - for (Object key : map.keySet()) { - if (this.limits != null) { - this.limits.remove(key); - } - } + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeResourceRequirementsFluent that = (V1VolumeResourceRequirementsFluent) o; + if (!(Objects.equals(limits, that.limits))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; } public Map getLimits() { return this.limits; } - public A withLimits(Map limits) { - if (limits == null) { - this.limits = null; - } else { - this.limits = new LinkedHashMap(limits); - } - return (A) this; + public Map getRequests() { + return this.requests; } public boolean hasLimits() { return this.limits != null; } - public A addToRequests(String key,Quantity value) { - if (this.requests == null && key != null && value != null) { - this.requests = new LinkedHashMap(); + public boolean hasRequests() { + return this.requests != null; + } + + public int hashCode() { + return Objects.hash(limits, requests); + } + + public A removeFromLimits(String key) { + if (this.limits == null) { + return (A) this; } - if (key != null && value != null) { - this.requests.put(key, value); + if (key != null && this.limits != null) { + this.limits.remove(key); } return (A) this; } - public A addToRequests(Map map) { - if (this.requests == null && map != null) { - this.requests = new LinkedHashMap(); + public A removeFromLimits(Map map) { + if (this.limits == null) { + return (A) this; } if (map != null) { - this.requests.putAll(map); + for (Object key : map.keySet()) { + if (this.limits != null) { + this.limits.remove(key); + } + } } return (A) this; } @@ -137,47 +162,6 @@ public A removeFromRequests(Map map) { return (A) this; } - public Map getRequests() { - return this.requests; - } - - public A withRequests(Map requests) { - if (requests == null) { - this.requests = null; - } else { - this.requests = new LinkedHashMap(requests); - } - return (A) this; - } - - public boolean hasRequests() { - return this.requests != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1VolumeResourceRequirementsFluent that = (V1VolumeResourceRequirementsFluent) o; - if (!(Objects.equals(limits, that.limits))) { - return false; - } - if (!(Objects.equals(requests, that.requests))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(limits, requests); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -194,5 +178,22 @@ public String toString() { return sb.toString(); } - + public A withLimits(Map limits) { + if (limits == null) { + this.limits = null; + } else { + this.limits = new LinkedHashMap(limits); + } + return (A) this; + } + + public A withRequests(Map requests) { + if (requests == null) { + this.requests = null; + } else { + this.requests = new LinkedHashMap(requests); + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java index a636ff12ff..77a1a1cd91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1VsphereVirtualDiskVolumeSourceBuilder extends V1VsphereVirtualDiskVolumeSourceFluent implements VisitableBuilder{ + + V1VsphereVirtualDiskVolumeSourceFluent fluent; + public V1VsphereVirtualDiskVolumeSourceBuilder() { this(new V1VsphereVirtualDiskVolumeSource()); } @@ -11,17 +14,16 @@ public V1VsphereVirtualDiskVolumeSourceBuilder(V1VsphereVirtualDiskVolumeSourceF this(fluent, new V1VsphereVirtualDiskVolumeSource()); } - public V1VsphereVirtualDiskVolumeSourceBuilder(V1VsphereVirtualDiskVolumeSourceFluent fluent,V1VsphereVirtualDiskVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VsphereVirtualDiskVolumeSourceBuilder(V1VsphereVirtualDiskVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1VsphereVirtualDiskVolumeSourceFluent fluent; + public V1VsphereVirtualDiskVolumeSourceBuilder(V1VsphereVirtualDiskVolumeSourceFluent fluent,V1VsphereVirtualDiskVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VsphereVirtualDiskVolumeSource build() { V1VsphereVirtualDiskVolumeSource buildable = new V1VsphereVirtualDiskVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -31,5 +33,4 @@ public V1VsphereVirtualDiskVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java index 7689091914..cfdbeffad7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1VsphereVirtualDiskVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private String storagePolicyID; + private String storagePolicyName; + private String volumePath; + public V1VsphereVirtualDiskVolumeSourceFluent() { } public V1VsphereVirtualDiskVolumeSourceFluent(V1VsphereVirtualDiskVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private String storagePolicyID; - private String storagePolicyName; - private String volumePath; - + protected void copyInstance(V1VsphereVirtualDiskVolumeSource instance) { instance = instance != null ? instance : new V1VsphereVirtualDiskVolumeSource(); if (instance != null) { @@ -33,58 +35,6 @@ protected void copyInstance(V1VsphereVirtualDiskVolumeSource instance) { } } - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; - } - - public boolean hasFsType() { - return this.fsType != null; - } - - public String getStoragePolicyID() { - return this.storagePolicyID; - } - - public A withStoragePolicyID(String storagePolicyID) { - this.storagePolicyID = storagePolicyID; - return (A) this; - } - - public boolean hasStoragePolicyID() { - return this.storagePolicyID != null; - } - - public String getStoragePolicyName() { - return this.storagePolicyName; - } - - public A withStoragePolicyName(String storagePolicyName) { - this.storagePolicyName = storagePolicyName; - return (A) this; - } - - public boolean hasStoragePolicyName() { - return this.storagePolicyName != null; - } - - public String getVolumePath() { - return this.volumePath; - } - - public A withVolumePath(String volumePath) { - this.volumePath = volumePath; - return (A) this; - } - - public boolean hasVolumePath() { - return this.volumePath != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -111,6 +61,38 @@ public boolean equals(Object o) { return true; } + public String getFsType() { + return this.fsType; + } + + public String getStoragePolicyID() { + return this.storagePolicyID; + } + + public String getStoragePolicyName() { + return this.storagePolicyName; + } + + public String getVolumePath() { + return this.volumePath; + } + + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasStoragePolicyID() { + return this.storagePolicyID != null; + } + + public boolean hasStoragePolicyName() { + return this.storagePolicyName != null; + } + + public boolean hasVolumePath() { + return this.volumePath != null; + } + public int hashCode() { return Objects.hash(fsType, storagePolicyID, storagePolicyName, volumePath); } @@ -141,5 +123,24 @@ public String toString() { return sb.toString(); } - + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withStoragePolicyID(String storagePolicyID) { + this.storagePolicyID = storagePolicyID; + return (A) this; + } + + public A withStoragePolicyName(String storagePolicyName) { + this.storagePolicyName = storagePolicyName; + return (A) this; + } + + public A withVolumePath(String volumePath) { + this.volumePath = volumePath; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java index 31111651d1..13ff448b31 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1WatchEventBuilder extends V1WatchEventFluent implements VisitableBuilder{ + + V1WatchEventFluent fluent; + public V1WatchEventBuilder() { this(new V1WatchEvent()); } @@ -11,17 +14,16 @@ public V1WatchEventBuilder(V1WatchEventFluent fluent) { this(fluent, new V1WatchEvent()); } - public V1WatchEventBuilder(V1WatchEventFluent fluent,V1WatchEvent instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1WatchEventBuilder(V1WatchEvent instance) { this.fluent = this; this.copyInstance(instance); } - V1WatchEventFluent fluent; + public V1WatchEventBuilder(V1WatchEventFluent fluent,V1WatchEvent instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1WatchEvent build() { V1WatchEvent buildable = new V1WatchEvent(); buildable.setObject(fluent.getObject()); @@ -29,5 +31,4 @@ public V1WatchEvent build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java index 9acf3e8e81..ae1ac6962b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1WatchEventFluent> extends BaseFluent{ + + private Object _object; + private String type; + public V1WatchEventFluent() { } public V1WatchEventFluent(V1WatchEvent instance) { this.copyInstance(instance); } - private Object _object; - private String type; - + protected void copyInstance(V1WatchEvent instance) { instance = instance != null ? instance : new V1WatchEvent(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1WatchEvent instance) { } } - public Object getObject() { - return this._object; - } - - public A withObject(Object _object) { - this._object = _object; - return (A) this; - } - - public boolean hasObject() { - return this._object != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public Object getObject() { + return this._object; + } + + public String getType() { + return this.type; + } + + public boolean hasObject() { + return this._object != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(_object, type); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withObject(Object _object) { + this._object = _object; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java index d7d1bb6502..2296be0ae3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1WebhookConversionBuilder extends V1WebhookConversionFluent implements VisitableBuilder{ + + V1WebhookConversionFluent fluent; + public V1WebhookConversionBuilder() { this(new V1WebhookConversion()); } @@ -11,17 +14,16 @@ public V1WebhookConversionBuilder(V1WebhookConversionFluent fluent) { this(fluent, new V1WebhookConversion()); } - public V1WebhookConversionBuilder(V1WebhookConversionFluent fluent,V1WebhookConversion instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1WebhookConversionBuilder(V1WebhookConversion instance) { this.fluent = this; this.copyInstance(instance); } - V1WebhookConversionFluent fluent; + public V1WebhookConversionBuilder(V1WebhookConversionFluent fluent,V1WebhookConversion instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1WebhookConversion build() { V1WebhookConversion buildable = new V1WebhookConversion(); buildable.setClientConfig(fluent.buildClientConfig()); @@ -29,5 +31,4 @@ public V1WebhookConversion build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java index 6cafa46e69..79f3674909 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java @@ -1,66 +1,72 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1WebhookConversionFluent> extends BaseFluent{ + + private ApiextensionsV1WebhookClientConfigBuilder clientConfig; + private List conversionReviewVersions; + public V1WebhookConversionFluent() { } public V1WebhookConversionFluent(V1WebhookConversion instance) { this.copyInstance(instance); } - private ApiextensionsV1WebhookClientConfigBuilder clientConfig; - private List conversionReviewVersions; - - protected void copyInstance(V1WebhookConversion instance) { - instance = instance != null ? instance : new V1WebhookConversion(); - if (instance != null) { - this.withClientConfig(instance.getClientConfig()); - this.withConversionReviewVersions(instance.getConversionReviewVersions()); + + public A addAllToConversionReviewVersions(Collection items) { + if (this.conversionReviewVersions == null) { + this.conversionReviewVersions = new ArrayList(); } + for (String item : items) { + this.conversionReviewVersions.add(item); + } + return (A) this; } - public ApiextensionsV1WebhookClientConfig buildClientConfig() { - return this.clientConfig != null ? this.clientConfig.build() : null; - } - - public A withClientConfig(ApiextensionsV1WebhookClientConfig clientConfig) { - this._visitables.remove("clientConfig"); - if (clientConfig != null) { - this.clientConfig = new ApiextensionsV1WebhookClientConfigBuilder(clientConfig); - this._visitables.get("clientConfig").add(this.clientConfig); - } else { - this.clientConfig = null; - this._visitables.get("clientConfig").remove(this.clientConfig); + public A addToConversionReviewVersions(String... items) { + if (this.conversionReviewVersions == null) { + this.conversionReviewVersions = new ArrayList(); + } + for (String item : items) { + this.conversionReviewVersions.add(item); } return (A) this; } - public boolean hasClientConfig() { - return this.clientConfig != null; + public A addToConversionReviewVersions(int index,String item) { + if (this.conversionReviewVersions == null) { + this.conversionReviewVersions = new ArrayList(); + } + this.conversionReviewVersions.add(index, item); + return (A) this; } - public ClientConfigNested withNewClientConfig() { - return new ClientConfigNested(null); + public ApiextensionsV1WebhookClientConfig buildClientConfig() { + return this.clientConfig != null ? this.clientConfig.build() : null; } - public ClientConfigNested withNewClientConfigLike(ApiextensionsV1WebhookClientConfig item) { - return new ClientConfigNested(item); + protected void copyInstance(V1WebhookConversion instance) { + instance = instance != null ? instance : new V1WebhookConversion(); + if (instance != null) { + this.withClientConfig(instance.getClientConfig()); + this.withConversionReviewVersions(instance.getConversionReviewVersions()); + } } public ClientConfigNested editClientConfig() { @@ -75,70 +81,34 @@ public ClientConfigNested editOrNewClientConfigLike(ApiextensionsV1WebhookCli return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(item)); } - public A addToConversionReviewVersions(int index,String item) { - if (this.conversionReviewVersions == null) { - this.conversionReviewVersions = new ArrayList(); - } - this.conversionReviewVersions.add(index, item); - return (A) this; - } - - public A setToConversionReviewVersions(int index,String item) { - if (this.conversionReviewVersions == null) { - this.conversionReviewVersions = new ArrayList(); - } - this.conversionReviewVersions.set(index, item); - return (A) this; - } - - public A addToConversionReviewVersions(String... items) { - if (this.conversionReviewVersions == null) { - this.conversionReviewVersions = new ArrayList(); - } - for (String item : items) { - this.conversionReviewVersions.add(item); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; - } - - public A addAllToConversionReviewVersions(Collection items) { - if (this.conversionReviewVersions == null) { - this.conversionReviewVersions = new ArrayList(); + if (o == null || this.getClass() != o.getClass()) { + return false; } - for (String item : items) { - this.conversionReviewVersions.add(item); + if (!(super.equals(o))) { + return false; } - return (A) this; - } - - public A removeFromConversionReviewVersions(String... items) { - if (this.conversionReviewVersions == null) { - return (A) this; + V1WebhookConversionFluent that = (V1WebhookConversionFluent) o; + if (!(Objects.equals(clientConfig, that.clientConfig))) { + return false; } - for (String item : items) { - this.conversionReviewVersions.remove(item); + if (!(Objects.equals(conversionReviewVersions, that.conversionReviewVersions))) { + return false; } - return (A) this; + return true; } - public A removeAllFromConversionReviewVersions(Collection items) { - if (this.conversionReviewVersions == null) { - return (A) this; - } - for (String item : items) { - this.conversionReviewVersions.remove(item); - } - return (A) this; + public String getConversionReviewVersion(int index) { + return this.conversionReviewVersions.get(index); } public List getConversionReviewVersions() { return this.conversionReviewVersions; } - public String getConversionReviewVersion(int index) { - return this.conversionReviewVersions.get(index); - } - public String getFirstConversionReviewVersion() { return this.conversionReviewVersions.get(0); } @@ -156,6 +126,14 @@ public String getMatchingConversionReviewVersion(Predicate predicate) { return null; } + public boolean hasClientConfig() { + return this.clientConfig != null; + } + + public boolean hasConversionReviewVersions() { + return this.conversionReviewVersions != null && !(this.conversionReviewVersions.isEmpty()); + } + public boolean hasMatchingConversionReviewVersion(Predicate predicate) { for (String item : conversionReviewVersions) { if (predicate.test(item)) { @@ -165,6 +143,66 @@ public boolean hasMatchingConversionReviewVersion(Predicate predicate) { return false; } + public int hashCode() { + return Objects.hash(clientConfig, conversionReviewVersions); + } + + public A removeAllFromConversionReviewVersions(Collection items) { + if (this.conversionReviewVersions == null) { + return (A) this; + } + for (String item : items) { + this.conversionReviewVersions.remove(item); + } + return (A) this; + } + + public A removeFromConversionReviewVersions(String... items) { + if (this.conversionReviewVersions == null) { + return (A) this; + } + for (String item : items) { + this.conversionReviewVersions.remove(item); + } + return (A) this; + } + + public A setToConversionReviewVersions(int index,String item) { + if (this.conversionReviewVersions == null) { + this.conversionReviewVersions = new ArrayList(); + } + this.conversionReviewVersions.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(clientConfig == null)) { + sb.append("clientConfig:"); + sb.append(clientConfig); + sb.append(","); + } + if (!(conversionReviewVersions == null) && !(conversionReviewVersions.isEmpty())) { + sb.append("conversionReviewVersions:"); + sb.append(conversionReviewVersions); + } + sb.append("}"); + return sb.toString(); + } + + public A withClientConfig(ApiextensionsV1WebhookClientConfig clientConfig) { + this._visitables.remove("clientConfig"); + if (clientConfig != null) { + this.clientConfig = new ApiextensionsV1WebhookClientConfigBuilder(clientConfig); + this._visitables.get("clientConfig").add(this.clientConfig); + } else { + this.clientConfig = null; + this._visitables.get("clientConfig").remove(this.clientConfig); + } + return (A) this; + } + public A withConversionReviewVersions(List conversionReviewVersions) { if (conversionReviewVersions != null) { this.conversionReviewVersions = new ArrayList(); @@ -190,55 +228,21 @@ public A withConversionReviewVersions(String... conversionReviewVersions) { return (A) this; } - public boolean hasConversionReviewVersions() { - return this.conversionReviewVersions != null && !(this.conversionReviewVersions.isEmpty()); + public ClientConfigNested withNewClientConfig() { + return new ClientConfigNested(null); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1WebhookConversionFluent that = (V1WebhookConversionFluent) o; - if (!(Objects.equals(clientConfig, that.clientConfig))) { - return false; - } - if (!(Objects.equals(conversionReviewVersions, that.conversionReviewVersions))) { - return false; - } - return true; + public ClientConfigNested withNewClientConfigLike(ApiextensionsV1WebhookClientConfig item) { + return new ClientConfigNested(item); } + public class ClientConfigNested extends ApiextensionsV1WebhookClientConfigFluent> implements Nested{ - public int hashCode() { - return Objects.hash(clientConfig, conversionReviewVersions); - } + ApiextensionsV1WebhookClientConfigBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(clientConfig == null)) { - sb.append("clientConfig:"); - sb.append(clientConfig); - sb.append(","); - } - if (!(conversionReviewVersions == null) && !(conversionReviewVersions.isEmpty())) { - sb.append("conversionReviewVersions:"); - sb.append(conversionReviewVersions); - } - sb.append("}"); - return sb.toString(); - } - public class ClientConfigNested extends ApiextensionsV1WebhookClientConfigFluent> implements Nested{ ClientConfigNested(ApiextensionsV1WebhookClientConfig item) { this.builder = new ApiextensionsV1WebhookClientConfigBuilder(this, item); } - ApiextensionsV1WebhookClientConfigBuilder builder; - + public N and() { return (N) V1WebhookConversionFluent.this.withClientConfig(builder.build()); } @@ -247,7 +251,5 @@ public N endClientConfig() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java index 54386e14bf..ebe8e7ab9d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1WeightedPodAffinityTermBuilder extends V1WeightedPodAffinityTermFluent implements VisitableBuilder{ + + V1WeightedPodAffinityTermFluent fluent; + public V1WeightedPodAffinityTermBuilder() { this(new V1WeightedPodAffinityTerm()); } @@ -11,17 +14,16 @@ public V1WeightedPodAffinityTermBuilder(V1WeightedPodAffinityTermFluent fluen this(fluent, new V1WeightedPodAffinityTerm()); } - public V1WeightedPodAffinityTermBuilder(V1WeightedPodAffinityTermFluent fluent,V1WeightedPodAffinityTerm instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1WeightedPodAffinityTermBuilder(V1WeightedPodAffinityTerm instance) { this.fluent = this; this.copyInstance(instance); } - V1WeightedPodAffinityTermFluent fluent; + public V1WeightedPodAffinityTermBuilder(V1WeightedPodAffinityTermFluent fluent,V1WeightedPodAffinityTerm instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1WeightedPodAffinityTerm build() { V1WeightedPodAffinityTerm buildable = new V1WeightedPodAffinityTerm(); buildable.setPodAffinityTerm(fluent.buildPodAffinityTerm()); @@ -29,5 +31,4 @@ public V1WeightedPodAffinityTerm build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java index cf41a96a9f..a722801f3a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java @@ -1,28 +1,34 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.lang.String; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1WeightedPodAffinityTermFluent> extends BaseFluent{ + + private V1PodAffinityTermBuilder podAffinityTerm; + private Integer weight; + public V1WeightedPodAffinityTermFluent() { } public V1WeightedPodAffinityTermFluent(V1WeightedPodAffinityTerm instance) { this.copyInstance(instance); } - private V1PodAffinityTermBuilder podAffinityTerm; - private Integer weight; + + public V1PodAffinityTerm buildPodAffinityTerm() { + return this.podAffinityTerm != null ? this.podAffinityTerm.build() : null; + } protected void copyInstance(V1WeightedPodAffinityTerm instance) { instance = instance != null ? instance : new V1WeightedPodAffinityTerm(); @@ -32,38 +38,6 @@ protected void copyInstance(V1WeightedPodAffinityTerm instance) { } } - public V1PodAffinityTerm buildPodAffinityTerm() { - return this.podAffinityTerm != null ? this.podAffinityTerm.build() : null; - } - - public A withPodAffinityTerm(V1PodAffinityTerm podAffinityTerm) { - this._visitables.remove("podAffinityTerm"); - if (podAffinityTerm != null) { - this.podAffinityTerm = new V1PodAffinityTermBuilder(podAffinityTerm); - this._visitables.get("podAffinityTerm").add(this.podAffinityTerm); - } else { - this.podAffinityTerm = null; - this._visitables.get("podAffinityTerm").remove(this.podAffinityTerm); - } - return (A) this; - } - - public boolean hasPodAffinityTerm() { - return this.podAffinityTerm != null; - } - - public PodAffinityTermNested withNewPodAffinityTerm() { - return new PodAffinityTermNested(null); - } - - public PodAffinityTermNested withNewPodAffinityTermLike(V1PodAffinityTerm item) { - return new PodAffinityTermNested(item); - } - - public PodAffinityTermNested editPodAffinityTerm() { - return this.withNewPodAffinityTermLike(Optional.ofNullable(this.buildPodAffinityTerm()).orElse(null)); - } - public PodAffinityTermNested editOrNewPodAffinityTerm() { return this.withNewPodAffinityTermLike(Optional.ofNullable(this.buildPodAffinityTerm()).orElse(new V1PodAffinityTermBuilder().build())); } @@ -72,17 +46,8 @@ public PodAffinityTermNested editOrNewPodAffinityTermLike(V1PodAffinityTerm i return this.withNewPodAffinityTermLike(Optional.ofNullable(this.buildPodAffinityTerm()).orElse(item)); } - public Integer getWeight() { - return this.weight; - } - - public A withWeight(Integer weight) { - this.weight = weight; - return (A) this; - } - - public boolean hasWeight() { - return this.weight != null; + public PodAffinityTermNested editPodAffinityTerm() { + return this.withNewPodAffinityTermLike(Optional.ofNullable(this.buildPodAffinityTerm()).orElse(null)); } public boolean equals(Object o) { @@ -105,6 +70,18 @@ public boolean equals(Object o) { return true; } + public Integer getWeight() { + return this.weight; + } + + public boolean hasPodAffinityTerm() { + return this.podAffinityTerm != null; + } + + public boolean hasWeight() { + return this.weight != null; + } + public int hashCode() { return Objects.hash(podAffinityTerm, weight); } @@ -124,12 +101,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public PodAffinityTermNested withNewPodAffinityTerm() { + return new PodAffinityTermNested(null); + } + + public PodAffinityTermNested withNewPodAffinityTermLike(V1PodAffinityTerm item) { + return new PodAffinityTermNested(item); + } + + public A withPodAffinityTerm(V1PodAffinityTerm podAffinityTerm) { + this._visitables.remove("podAffinityTerm"); + if (podAffinityTerm != null) { + this.podAffinityTerm = new V1PodAffinityTermBuilder(podAffinityTerm); + this._visitables.get("podAffinityTerm").add(this.podAffinityTerm); + } else { + this.podAffinityTerm = null; + this._visitables.get("podAffinityTerm").remove(this.podAffinityTerm); + } + return (A) this; + } + + public A withWeight(Integer weight) { + this.weight = weight; + return (A) this; + } public class PodAffinityTermNested extends V1PodAffinityTermFluent> implements Nested{ + + V1PodAffinityTermBuilder builder; + PodAffinityTermNested(V1PodAffinityTerm item) { this.builder = new V1PodAffinityTermBuilder(this, item); } - V1PodAffinityTermBuilder builder; - + public N and() { return (N) V1WeightedPodAffinityTermFluent.this.withPodAffinityTerm(builder.build()); } @@ -138,7 +142,5 @@ public N endPodAffinityTerm() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java index 46fabdaf4d..3a6c7350e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1WindowsSecurityContextOptionsBuilder extends V1WindowsSecurityContextOptionsFluent implements VisitableBuilder{ + + V1WindowsSecurityContextOptionsFluent fluent; + public V1WindowsSecurityContextOptionsBuilder() { this(new V1WindowsSecurityContextOptions()); } @@ -11,17 +14,16 @@ public V1WindowsSecurityContextOptionsBuilder(V1WindowsSecurityContextOptionsFlu this(fluent, new V1WindowsSecurityContextOptions()); } - public V1WindowsSecurityContextOptionsBuilder(V1WindowsSecurityContextOptionsFluent fluent,V1WindowsSecurityContextOptions instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1WindowsSecurityContextOptionsBuilder(V1WindowsSecurityContextOptions instance) { this.fluent = this; this.copyInstance(instance); } - V1WindowsSecurityContextOptionsFluent fluent; + public V1WindowsSecurityContextOptionsBuilder(V1WindowsSecurityContextOptionsFluent fluent,V1WindowsSecurityContextOptions instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1WindowsSecurityContextOptions build() { V1WindowsSecurityContextOptions buildable = new V1WindowsSecurityContextOptions(); buildable.setGmsaCredentialSpec(fluent.getGmsaCredentialSpec()); @@ -31,5 +33,4 @@ public V1WindowsSecurityContextOptions build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java index c1023affea..8a79f094ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1WindowsSecurityContextOptionsFluent> extends BaseFluent{ + + private String gmsaCredentialSpec; + private String gmsaCredentialSpecName; + private Boolean hostProcess; + private String runAsUserName; + public V1WindowsSecurityContextOptionsFluent() { } public V1WindowsSecurityContextOptionsFluent(V1WindowsSecurityContextOptions instance) { this.copyInstance(instance); } - private String gmsaCredentialSpec; - private String gmsaCredentialSpecName; - private Boolean hostProcess; - private String runAsUserName; - + protected void copyInstance(V1WindowsSecurityContextOptions instance) { instance = instance != null ? instance : new V1WindowsSecurityContextOptions(); if (instance != null) { @@ -34,58 +36,6 @@ protected void copyInstance(V1WindowsSecurityContextOptions instance) { } } - public String getGmsaCredentialSpec() { - return this.gmsaCredentialSpec; - } - - public A withGmsaCredentialSpec(String gmsaCredentialSpec) { - this.gmsaCredentialSpec = gmsaCredentialSpec; - return (A) this; - } - - public boolean hasGmsaCredentialSpec() { - return this.gmsaCredentialSpec != null; - } - - public String getGmsaCredentialSpecName() { - return this.gmsaCredentialSpecName; - } - - public A withGmsaCredentialSpecName(String gmsaCredentialSpecName) { - this.gmsaCredentialSpecName = gmsaCredentialSpecName; - return (A) this; - } - - public boolean hasGmsaCredentialSpecName() { - return this.gmsaCredentialSpecName != null; - } - - public Boolean getHostProcess() { - return this.hostProcess; - } - - public A withHostProcess(Boolean hostProcess) { - this.hostProcess = hostProcess; - return (A) this; - } - - public boolean hasHostProcess() { - return this.hostProcess != null; - } - - public String getRunAsUserName() { - return this.runAsUserName; - } - - public A withRunAsUserName(String runAsUserName) { - this.runAsUserName = runAsUserName; - return (A) this; - } - - public boolean hasRunAsUserName() { - return this.runAsUserName != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -112,6 +62,38 @@ public boolean equals(Object o) { return true; } + public String getGmsaCredentialSpec() { + return this.gmsaCredentialSpec; + } + + public String getGmsaCredentialSpecName() { + return this.gmsaCredentialSpecName; + } + + public Boolean getHostProcess() { + return this.hostProcess; + } + + public String getRunAsUserName() { + return this.runAsUserName; + } + + public boolean hasGmsaCredentialSpec() { + return this.gmsaCredentialSpec != null; + } + + public boolean hasGmsaCredentialSpecName() { + return this.gmsaCredentialSpecName != null; + } + + public boolean hasHostProcess() { + return this.hostProcess != null; + } + + public boolean hasRunAsUserName() { + return this.runAsUserName != null; + } + public int hashCode() { return Objects.hash(gmsaCredentialSpec, gmsaCredentialSpecName, hostProcess, runAsUserName); } @@ -142,9 +124,28 @@ public String toString() { return sb.toString(); } + public A withGmsaCredentialSpec(String gmsaCredentialSpec) { + this.gmsaCredentialSpec = gmsaCredentialSpec; + return (A) this; + } + + public A withGmsaCredentialSpecName(String gmsaCredentialSpecName) { + this.gmsaCredentialSpecName = gmsaCredentialSpecName; + return (A) this; + } + public A withHostProcess() { return withHostProcess(true); } - + public A withHostProcess(Boolean hostProcess) { + this.hostProcess = hostProcess; + return (A) this; + } + + public A withRunAsUserName(String runAsUserName) { + this.runAsUserName = runAsUserName; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationBuilder.java index 1fd832cf84..e533c85bd0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1ApplyConfigurationBuilder extends V1alpha1ApplyConfigurationFluent implements VisitableBuilder{ + + V1alpha1ApplyConfigurationFluent fluent; + public V1alpha1ApplyConfigurationBuilder() { this(new V1alpha1ApplyConfiguration()); } @@ -11,22 +14,20 @@ public V1alpha1ApplyConfigurationBuilder(V1alpha1ApplyConfigurationFluent flu this(fluent, new V1alpha1ApplyConfiguration()); } - public V1alpha1ApplyConfigurationBuilder(V1alpha1ApplyConfigurationFluent fluent,V1alpha1ApplyConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1ApplyConfigurationBuilder(V1alpha1ApplyConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1ApplyConfigurationFluent fluent; + public V1alpha1ApplyConfigurationBuilder(V1alpha1ApplyConfigurationFluent fluent,V1alpha1ApplyConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1ApplyConfiguration build() { V1alpha1ApplyConfiguration buildable = new V1alpha1ApplyConfiguration(); buildable.setExpression(fluent.getExpression()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationFluent.java index b90fdfb1d2..b751aa7786 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1ApplyConfigurationFluent> extends BaseFluent{ + + private String expression; + public V1alpha1ApplyConfigurationFluent() { } public V1alpha1ApplyConfigurationFluent(V1alpha1ApplyConfiguration instance) { this.copyInstance(instance); } - private String expression; - + protected void copyInstance(V1alpha1ApplyConfiguration instance) { instance = instance != null ? instance : new V1alpha1ApplyConfiguration(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1alpha1ApplyConfiguration instance) { } } - public String getExpression() { - return this.expression; - } - - public A withExpression(String expression) { - this.expression = expression; - return (A) this; - } - - public boolean hasExpression() { - return this.expression != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getExpression() { + return this.expression; + } + + public boolean hasExpression() { + return this.expression != null; + } + public int hashCode() { return Objects.hash(expression); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleBuilder.java index d00857e67f..becce09ed9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1ClusterTrustBundleBuilder extends V1alpha1ClusterTrustBundleFluent implements VisitableBuilder{ + + V1alpha1ClusterTrustBundleFluent fluent; + public V1alpha1ClusterTrustBundleBuilder() { this(new V1alpha1ClusterTrustBundle()); } @@ -11,17 +14,16 @@ public V1alpha1ClusterTrustBundleBuilder(V1alpha1ClusterTrustBundleFluent flu this(fluent, new V1alpha1ClusterTrustBundle()); } - public V1alpha1ClusterTrustBundleBuilder(V1alpha1ClusterTrustBundleFluent fluent,V1alpha1ClusterTrustBundle instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1ClusterTrustBundleBuilder(V1alpha1ClusterTrustBundle instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1ClusterTrustBundleFluent fluent; + public V1alpha1ClusterTrustBundleBuilder(V1alpha1ClusterTrustBundleFluent fluent,V1alpha1ClusterTrustBundle instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1ClusterTrustBundle build() { V1alpha1ClusterTrustBundle buildable = new V1alpha1ClusterTrustBundle(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1alpha1ClusterTrustBundle build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleFluent.java index 445c660ff5..6e8ec63e47 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1ClusterTrustBundleFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha1ClusterTrustBundleSpecBuilder spec; + public V1alpha1ClusterTrustBundleFluent() { } public V1alpha1ClusterTrustBundleFluent(V1alpha1ClusterTrustBundle instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1alpha1ClusterTrustBundleSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1alpha1ClusterTrustBundleSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1alpha1ClusterTrustBundle instance) { instance = instance != null ? instance : new V1alpha1ClusterTrustBundle(); @@ -35,60 +45,6 @@ protected void copyInstance(V1alpha1ClusterTrustBundle instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1alpha1ClusterTrustBundleSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1alpha1ClusterTrustBundleSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1alpha1ClusterTrustBundleSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1alpha1ClusterTrustBundleSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha1ClusterTrustBundleSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1alpha1ClusterTrustBundleSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha1ClusterTrustBundleSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1alpha1ClusterTrustBundleSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha1ClusterTrustBundleSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1alpha1ClusterTrustBundleFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1alpha1ClusterTrustBundleSpecFluent> implements Nested{ + + V1alpha1ClusterTrustBundleSpecBuilder builder; + SpecNested(V1alpha1ClusterTrustBundleSpec item) { this.builder = new V1alpha1ClusterTrustBundleSpecBuilder(this, item); } - V1alpha1ClusterTrustBundleSpecBuilder builder; - + public N and() { return (N) V1alpha1ClusterTrustBundleFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListBuilder.java index 8508f20b8d..a188de512c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1ClusterTrustBundleListBuilder extends V1alpha1ClusterTrustBundleListFluent implements VisitableBuilder{ + + V1alpha1ClusterTrustBundleListFluent fluent; + public V1alpha1ClusterTrustBundleListBuilder() { this(new V1alpha1ClusterTrustBundleList()); } @@ -11,17 +14,16 @@ public V1alpha1ClusterTrustBundleListBuilder(V1alpha1ClusterTrustBundleListFluen this(fluent, new V1alpha1ClusterTrustBundleList()); } - public V1alpha1ClusterTrustBundleListBuilder(V1alpha1ClusterTrustBundleListFluent fluent,V1alpha1ClusterTrustBundleList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1ClusterTrustBundleListBuilder(V1alpha1ClusterTrustBundleList instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1ClusterTrustBundleListFluent fluent; + public V1alpha1ClusterTrustBundleListBuilder(V1alpha1ClusterTrustBundleListFluent fluent,V1alpha1ClusterTrustBundleList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1ClusterTrustBundleList build() { V1alpha1ClusterTrustBundleList buildable = new V1alpha1ClusterTrustBundleList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1alpha1ClusterTrustBundleList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java index db1fccb47e..bd356a6542 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1ClusterTrustBundleListFluent> extends BaseFluent{ - public V1alpha1ClusterTrustBundleListFluent() { - } - - public V1alpha1ClusterTrustBundleListFluent(V1alpha1ClusterTrustBundleList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha1ClusterTrustBundleList instance) { - instance = instance != null ? instance : new V1alpha1ClusterTrustBundleList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1alpha1ClusterTrustBundleListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1alpha1ClusterTrustBundleListFluent(V1alpha1ClusterTrustBundleList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1alpha1ClusterTrustBundle item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1alpha1ClusterTrustBundle item : items) { + V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1alpha1ClusterTrustBundle item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha1ClusterTrustBundle item) { + return new ItemsNested(-1, item); } public A addToItems(V1alpha1ClusterTrustBundle... items) { @@ -96,68 +65,31 @@ public A addToItems(V1alpha1ClusterTrustBundle... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1alpha1ClusterTrustBundle item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1alpha1ClusterTrustBundle item : items) { - V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1alpha1ClusterTrustBundle... items) { - if (this.items == null) { - return (A) this; - } - for (V1alpha1ClusterTrustBundle item : items) { - V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1alpha1ClusterTrustBundle item : items) { - V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha1ClusterTrustBundleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1alpha1ClusterTrustBundle buildFirstItem() { + return this.items.get(0).build(); } public V1alpha1ClusterTrustBundle buildItem(int index) { return this.items.get(index).build(); } - public V1alpha1ClusterTrustBundle buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1alpha1ClusterTrustBundle buildLastItem() { @@ -173,73 +105,34 @@ public V1alpha1ClusterTrustBundle buildMatchingItem(Predicate predicate) { - for (V1alpha1ClusterTrustBundleBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha1ClusterTrustBundle item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1alpha1ClusterTrustBundleList instance) { + instance = instance != null ? instance : new V1alpha1ClusterTrustBundleList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1alpha1ClusterTrustBundle... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha1ClusterTrustBundle item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha1ClusterTrustBundle item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha1ClusterTrustBundle item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1ClusterTrustBundleBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1ClusterTrustBundle item : items) { + V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1alpha1ClusterTrustBundle... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1ClusterTrustBundle item : items) { + V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha1ClusterTrustBundleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1alpha1ClusterTrustBundle item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1alpha1ClusterTrustBundle item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha1ClusterTrustBundle item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1alpha1ClusterTrustBundle... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha1ClusterTrustBundle item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1alpha1ClusterTrustBundleFluent> implements Nested{ + + V1alpha1ClusterTrustBundleBuilder builder; + int index; + ItemsNested(int index,V1alpha1ClusterTrustBundle item) { this.index = index; this.builder = new V1alpha1ClusterTrustBundleBuilder(this, item); } - V1alpha1ClusterTrustBundleBuilder builder; - int index; - + public N and() { return (N) V1alpha1ClusterTrustBundleListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1alpha1ClusterTrustBundleListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecBuilder.java index bbf1ceb37a..eb8edd5e5d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1ClusterTrustBundleSpecBuilder extends V1alpha1ClusterTrustBundleSpecFluent implements VisitableBuilder{ + + V1alpha1ClusterTrustBundleSpecFluent fluent; + public V1alpha1ClusterTrustBundleSpecBuilder() { this(new V1alpha1ClusterTrustBundleSpec()); } @@ -11,17 +14,16 @@ public V1alpha1ClusterTrustBundleSpecBuilder(V1alpha1ClusterTrustBundleSpecFluen this(fluent, new V1alpha1ClusterTrustBundleSpec()); } - public V1alpha1ClusterTrustBundleSpecBuilder(V1alpha1ClusterTrustBundleSpecFluent fluent,V1alpha1ClusterTrustBundleSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1ClusterTrustBundleSpecBuilder(V1alpha1ClusterTrustBundleSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1ClusterTrustBundleSpecFluent fluent; + public V1alpha1ClusterTrustBundleSpecBuilder(V1alpha1ClusterTrustBundleSpecFluent fluent,V1alpha1ClusterTrustBundleSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1ClusterTrustBundleSpec build() { V1alpha1ClusterTrustBundleSpec buildable = new V1alpha1ClusterTrustBundleSpec(); buildable.setSignerName(fluent.getSignerName()); @@ -29,5 +31,4 @@ public V1alpha1ClusterTrustBundleSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java index a856719c24..eec98f7b69 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1ClusterTrustBundleSpecFluent> extends BaseFluent{ + + private String signerName; + private String trustBundle; + public V1alpha1ClusterTrustBundleSpecFluent() { } public V1alpha1ClusterTrustBundleSpecFluent(V1alpha1ClusterTrustBundleSpec instance) { this.copyInstance(instance); } - private String signerName; - private String trustBundle; - + protected void copyInstance(V1alpha1ClusterTrustBundleSpec instance) { instance = instance != null ? instance : new V1alpha1ClusterTrustBundleSpec(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1alpha1ClusterTrustBundleSpec instance) { } } - public String getSignerName() { - return this.signerName; - } - - public A withSignerName(String signerName) { - this.signerName = signerName; - return (A) this; - } - - public boolean hasSignerName() { - return this.signerName != null; - } - - public String getTrustBundle() { - return this.trustBundle; - } - - public A withTrustBundle(String trustBundle) { - this.trustBundle = trustBundle; - return (A) this; - } - - public boolean hasTrustBundle() { - return this.trustBundle != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getSignerName() { + return this.signerName; + } + + public String getTrustBundle() { + return this.trustBundle; + } + + public boolean hasSignerName() { + return this.signerName != null; + } + + public boolean hasTrustBundle() { + return this.trustBundle != null; + } + public int hashCode() { return Objects.hash(signerName, trustBundle); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withSignerName(String signerName) { + this.signerName = signerName; + return (A) this; + } + + public A withTrustBundle(String trustBundle) { + this.trustBundle = trustBundle; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceBuilder.java index eeb1c72b63..e75e6b5992 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1GroupVersionResourceBuilder extends V1alpha1GroupVersionResourceFluent implements VisitableBuilder{ + + V1alpha1GroupVersionResourceFluent fluent; + public V1alpha1GroupVersionResourceBuilder() { this(new V1alpha1GroupVersionResource()); } @@ -11,17 +14,16 @@ public V1alpha1GroupVersionResourceBuilder(V1alpha1GroupVersionResourceFluent this(fluent, new V1alpha1GroupVersionResource()); } - public V1alpha1GroupVersionResourceBuilder(V1alpha1GroupVersionResourceFluent fluent,V1alpha1GroupVersionResource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1GroupVersionResourceBuilder(V1alpha1GroupVersionResource instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1GroupVersionResourceFluent fluent; + public V1alpha1GroupVersionResourceBuilder(V1alpha1GroupVersionResourceFluent fluent,V1alpha1GroupVersionResource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1GroupVersionResource build() { V1alpha1GroupVersionResource buildable = new V1alpha1GroupVersionResource(); buildable.setGroup(fluent.getGroup()); @@ -30,5 +32,4 @@ public V1alpha1GroupVersionResource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceFluent.java index d92ea2a9cf..49298e4838 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1GroupVersionResourceFluent> extends BaseFluent{ + + private String group; + private String resource; + private String version; + public V1alpha1GroupVersionResourceFluent() { } public V1alpha1GroupVersionResourceFluent(V1alpha1GroupVersionResource instance) { this.copyInstance(instance); } - private String group; - private String resource; - private String version; - + protected void copyInstance(V1alpha1GroupVersionResource instance) { instance = instance != null ? instance : new V1alpha1GroupVersionResource(); if (instance != null) { @@ -31,45 +33,6 @@ protected void copyInstance(V1alpha1GroupVersionResource instance) { } } - public String getGroup() { - return this.group; - } - - public A withGroup(String group) { - this.group = group; - return (A) this; - } - - public boolean hasGroup() { - return this.group != null; - } - - public String getResource() { - return this.resource; - } - - public A withResource(String resource) { - this.resource = resource; - return (A) this; - } - - public boolean hasResource() { - return this.resource != null; - } - - public String getVersion() { - return this.version; - } - - public A withVersion(String version) { - this.version = version; - return (A) this; - } - - public boolean hasVersion() { - return this.version != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -93,6 +56,30 @@ public boolean equals(Object o) { return true; } + public String getGroup() { + return this.group; + } + + public String getResource() { + return this.resource; + } + + public String getVersion() { + return this.version; + } + + public boolean hasGroup() { + return this.group != null; + } + + public boolean hasResource() { + return this.resource != null; + } + + public boolean hasVersion() { + return this.version != null; + } + public int hashCode() { return Objects.hash(group, resource, version); } @@ -118,5 +105,19 @@ public String toString() { return sb.toString(); } - + public A withGroup(String group) { + this.group = group; + return (A) this; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchBuilder.java index 9c45f30b2a..109e746c15 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1JSONPatchBuilder extends V1alpha1JSONPatchFluent implements VisitableBuilder{ + + V1alpha1JSONPatchFluent fluent; + public V1alpha1JSONPatchBuilder() { this(new V1alpha1JSONPatch()); } @@ -11,22 +14,20 @@ public V1alpha1JSONPatchBuilder(V1alpha1JSONPatchFluent fluent) { this(fluent, new V1alpha1JSONPatch()); } - public V1alpha1JSONPatchBuilder(V1alpha1JSONPatchFluent fluent,V1alpha1JSONPatch instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1JSONPatchBuilder(V1alpha1JSONPatch instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1JSONPatchFluent fluent; + public V1alpha1JSONPatchBuilder(V1alpha1JSONPatchFluent fluent,V1alpha1JSONPatch instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1JSONPatch build() { V1alpha1JSONPatch buildable = new V1alpha1JSONPatch(); buildable.setExpression(fluent.getExpression()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchFluent.java index 0b063d178d..352ce982e2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1JSONPatchFluent> extends BaseFluent{ + + private String expression; + public V1alpha1JSONPatchFluent() { } public V1alpha1JSONPatchFluent(V1alpha1JSONPatch instance) { this.copyInstance(instance); } - private String expression; - + protected void copyInstance(V1alpha1JSONPatch instance) { instance = instance != null ? instance : new V1alpha1JSONPatch(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1alpha1JSONPatch instance) { } } - public String getExpression() { - return this.expression; - } - - public A withExpression(String expression) { - this.expression = expression; - return (A) this; - } - - public boolean hasExpression() { - return this.expression != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getExpression() { + return this.expression; + } + + public boolean hasExpression() { + return this.expression != null; + } + public int hashCode() { return Objects.hash(expression); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionBuilder.java index 00dafe9187..f2e9d06e88 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1MatchConditionBuilder extends V1alpha1MatchConditionFluent implements VisitableBuilder{ + + V1alpha1MatchConditionFluent fluent; + public V1alpha1MatchConditionBuilder() { this(new V1alpha1MatchCondition()); } @@ -11,17 +14,16 @@ public V1alpha1MatchConditionBuilder(V1alpha1MatchConditionFluent fluent) { this(fluent, new V1alpha1MatchCondition()); } - public V1alpha1MatchConditionBuilder(V1alpha1MatchConditionFluent fluent,V1alpha1MatchCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1MatchConditionBuilder(V1alpha1MatchCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1MatchConditionFluent fluent; + public V1alpha1MatchConditionBuilder(V1alpha1MatchConditionFluent fluent,V1alpha1MatchCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1MatchCondition build() { V1alpha1MatchCondition buildable = new V1alpha1MatchCondition(); buildable.setExpression(fluent.getExpression()); @@ -29,5 +31,4 @@ public V1alpha1MatchCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionFluent.java index 77440a9a15..9ff240af88 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1MatchConditionFluent> extends BaseFluent{ + + private String expression; + private String name; + public V1alpha1MatchConditionFluent() { } public V1alpha1MatchConditionFluent(V1alpha1MatchCondition instance) { this.copyInstance(instance); } - private String expression; - private String name; - + protected void copyInstance(V1alpha1MatchCondition instance) { instance = instance != null ? instance : new V1alpha1MatchCondition(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1alpha1MatchCondition instance) { } } - public String getExpression() { - return this.expression; - } - - public A withExpression(String expression) { - this.expression = expression; - return (A) this; - } - - public boolean hasExpression() { - return this.expression != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getExpression() { + return this.expression; + } + + public String getName() { + return this.name; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(expression, name); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesBuilder.java index 572d6d3650..6a036d0379 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1MatchResourcesBuilder extends V1alpha1MatchResourcesFluent implements VisitableBuilder{ + + V1alpha1MatchResourcesFluent fluent; + public V1alpha1MatchResourcesBuilder() { this(new V1alpha1MatchResources()); } @@ -11,17 +14,16 @@ public V1alpha1MatchResourcesBuilder(V1alpha1MatchResourcesFluent fluent) { this(fluent, new V1alpha1MatchResources()); } - public V1alpha1MatchResourcesBuilder(V1alpha1MatchResourcesFluent fluent,V1alpha1MatchResources instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1MatchResourcesBuilder(V1alpha1MatchResources instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1MatchResourcesFluent fluent; + public V1alpha1MatchResourcesBuilder(V1alpha1MatchResourcesFluent fluent,V1alpha1MatchResources instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1MatchResources build() { V1alpha1MatchResources buildable = new V1alpha1MatchResources(); buildable.setExcludeResourceRules(fluent.buildExcludeResourceRules()); @@ -32,5 +34,4 @@ public V1alpha1MatchResources build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesFluent.java index 1cbda26a63..05f4a13794 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesFluent.java @@ -1,78 +1,79 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1MatchResourcesFluent> extends BaseFluent{ - public V1alpha1MatchResourcesFluent() { - } - - public V1alpha1MatchResourcesFluent(V1alpha1MatchResources instance) { - this.copyInstance(instance); - } + private ArrayList excludeResourceRules; private String matchPolicy; private V1LabelSelectorBuilder namespaceSelector; private V1LabelSelectorBuilder objectSelector; private ArrayList resourceRules; - - protected void copyInstance(V1alpha1MatchResources instance) { - instance = instance != null ? instance : new V1alpha1MatchResources(); - if (instance != null) { - this.withExcludeResourceRules(instance.getExcludeResourceRules()); - this.withMatchPolicy(instance.getMatchPolicy()); - this.withNamespaceSelector(instance.getNamespaceSelector()); - this.withObjectSelector(instance.getObjectSelector()); - this.withResourceRules(instance.getResourceRules()); - } + + public V1alpha1MatchResourcesFluent() { } - public A addToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations item) { + public V1alpha1MatchResourcesFluent(V1alpha1MatchResources instance) { + this.copyInstance(instance); + } + + public A addAllToExcludeResourceRules(Collection items) { if (this.excludeResourceRules == null) { this.excludeResourceRules = new ArrayList(); } - V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.add(builder); - } else { + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.add(index, builder); + this.excludeResourceRules.add(builder); } return (A) this; } - public A setToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations item) { - if (this.excludeResourceRules == null) { - this.excludeResourceRules = new ArrayList(); + public A addAllToResourceRules(Collection items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); } - V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.add(builder); - } else { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.set(index, builder); + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); } return (A) this; } + public ExcludeResourceRulesNested addNewExcludeResourceRule() { + return new ExcludeResourceRulesNested(-1, null); + } + + public ExcludeResourceRulesNested addNewExcludeResourceRuleLike(V1alpha1NamedRuleWithOperations item) { + return new ExcludeResourceRulesNested(-1, item); + } + + public ResourceRulesNested addNewResourceRule() { + return new ResourceRulesNested(-1, null); + } + + public ResourceRulesNested addNewResourceRuleLike(V1alpha1NamedRuleWithOperations item) { + return new ResourceRulesNested(-1, item); + } + public A addToExcludeResourceRules(V1alpha1NamedRuleWithOperations... items) { if (this.excludeResourceRules == null) { this.excludeResourceRules = new ArrayList(); @@ -85,74 +86,72 @@ public A addToExcludeResourceRules(V1alpha1NamedRuleWithOperations... items) { return (A) this; } - public A addAllToExcludeResourceRules(Collection items) { + public A addToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) { this.excludeResourceRules = new ArrayList(); } - for (V1alpha1NamedRuleWithOperations item : items) { - V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); - this.excludeResourceRules.add(builder); + excludeResourceRules.add(builder); + } else { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(index, builder); } return (A) this; } - public A removeFromExcludeResourceRules(V1alpha1NamedRuleWithOperations... items) { - if (this.excludeResourceRules == null) { - return (A) this; + public A addToResourceRules(V1alpha1NamedRuleWithOperations... items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); } for (V1alpha1NamedRuleWithOperations item : items) { V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - _visitables.get("excludeResourceRules").remove(builder); - this.excludeResourceRules.remove(builder); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); } return (A) this; } - public A removeAllFromExcludeResourceRules(Collection items) { - if (this.excludeResourceRules == null) { - return (A) this; + public A addToResourceRules(int index,V1alpha1NamedRuleWithOperations item) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); } - for (V1alpha1NamedRuleWithOperations item : items) { - V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - _visitables.get("excludeResourceRules").remove(builder); - this.excludeResourceRules.remove(builder); + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.add(index, builder); } return (A) this; } - public A removeMatchingFromExcludeResourceRules(Predicate predicate) { - if (excludeResourceRules == null) { - return (A) this; - } - Iterator each = excludeResourceRules.iterator(); - List visitables = _visitables.get("excludeResourceRules"); - while (each.hasNext()) { - V1alpha1NamedRuleWithOperationsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1alpha1NamedRuleWithOperations buildExcludeResourceRule(int index) { + return this.excludeResourceRules.get(index).build(); } public List buildExcludeResourceRules() { return this.excludeResourceRules != null ? build(excludeResourceRules) : null; } - public V1alpha1NamedRuleWithOperations buildExcludeResourceRule(int index) { - return this.excludeResourceRules.get(index).build(); - } - public V1alpha1NamedRuleWithOperations buildFirstExcludeResourceRule() { return this.excludeResourceRules.get(0).build(); } + public V1alpha1NamedRuleWithOperations buildFirstResourceRule() { + return this.resourceRules.get(0).build(); + } + public V1alpha1NamedRuleWithOperations buildLastExcludeResourceRule() { return this.excludeResourceRules.get(excludeResourceRules.size() - 1).build(); } + public V1alpha1NamedRuleWithOperations buildLastResourceRule() { + return this.resourceRules.get(resourceRules.size() - 1).build(); + } + public V1alpha1NamedRuleWithOperations buildMatchingExcludeResourceRule(Predicate predicate) { for (V1alpha1NamedRuleWithOperationsBuilder item : excludeResourceRules) { if (predicate.test(item)) { @@ -162,61 +161,44 @@ public V1alpha1NamedRuleWithOperations buildMatchingExcludeResourceRule(Predicat return null; } - public boolean hasMatchingExcludeResourceRule(Predicate predicate) { - for (V1alpha1NamedRuleWithOperationsBuilder item : excludeResourceRules) { + public V1alpha1NamedRuleWithOperations buildMatchingResourceRule(Predicate predicate) { + for (V1alpha1NamedRuleWithOperationsBuilder item : resourceRules) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; - } - - public A withExcludeResourceRules(List excludeResourceRules) { - if (this.excludeResourceRules != null) { - this._visitables.get("excludeResourceRules").clear(); - } - if (excludeResourceRules != null) { - this.excludeResourceRules = new ArrayList(); - for (V1alpha1NamedRuleWithOperations item : excludeResourceRules) { - this.addToExcludeResourceRules(item); - } - } else { - this.excludeResourceRules = null; - } - return (A) this; + return null; } - public A withExcludeResourceRules(V1alpha1NamedRuleWithOperations... excludeResourceRules) { - if (this.excludeResourceRules != null) { - this.excludeResourceRules.clear(); - _visitables.remove("excludeResourceRules"); - } - if (excludeResourceRules != null) { - for (V1alpha1NamedRuleWithOperations item : excludeResourceRules) { - this.addToExcludeResourceRules(item); - } - } - return (A) this; + public V1LabelSelector buildNamespaceSelector() { + return this.namespaceSelector != null ? this.namespaceSelector.build() : null; } - public boolean hasExcludeResourceRules() { - return this.excludeResourceRules != null && !(this.excludeResourceRules.isEmpty()); + public V1LabelSelector buildObjectSelector() { + return this.objectSelector != null ? this.objectSelector.build() : null; } - public ExcludeResourceRulesNested addNewExcludeResourceRule() { - return new ExcludeResourceRulesNested(-1, null); + public V1alpha1NamedRuleWithOperations buildResourceRule(int index) { + return this.resourceRules.get(index).build(); } - public ExcludeResourceRulesNested addNewExcludeResourceRuleLike(V1alpha1NamedRuleWithOperations item) { - return new ExcludeResourceRulesNested(-1, item); + public List buildResourceRules() { + return this.resourceRules != null ? build(resourceRules) : null; } - public ExcludeResourceRulesNested setNewExcludeResourceRuleLike(int index,V1alpha1NamedRuleWithOperations item) { - return new ExcludeResourceRulesNested(index, item); + protected void copyInstance(V1alpha1MatchResources instance) { + instance = instance != null ? instance : new V1alpha1MatchResources(); + if (instance != null) { + this.withExcludeResourceRules(instance.getExcludeResourceRules()); + this.withMatchPolicy(instance.getMatchPolicy()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withObjectSelector(instance.getObjectSelector()); + this.withResourceRules(instance.getResourceRules()); + } } public ExcludeResourceRulesNested editExcludeResourceRule(int index) { - if (index <= excludeResourceRules.size()) { + if (excludeResourceRules.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "excludeResourceRules")); } return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); @@ -229,6 +211,13 @@ public ExcludeResourceRulesNested editFirstExcludeResourceRule() { return this.setNewExcludeResourceRuleLike(0, this.buildExcludeResourceRule(0)); } + public ResourceRulesNested editFirstResourceRule() { + if (resourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); + } + public ExcludeResourceRulesNested editLastExcludeResourceRule() { int index = excludeResourceRules.size() - 1; if (index < 0) { @@ -237,6 +226,14 @@ public ExcludeResourceRulesNested editLastExcludeResourceRule() { return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); } + public ResourceRulesNested editLastResourceRule() { + int index = resourceRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + } + public ExcludeResourceRulesNested editMatchingExcludeResourceRule(Predicate predicate) { int index = -1; for (int i = 0;i < excludeResourceRules.size();i++) { @@ -251,149 +248,158 @@ public ExcludeResourceRulesNested editMatchingExcludeResourceRule(Predicate editMatchingResourceRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceRules.size();i++) { + if (predicate.test(resourceRules.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } - public A withMatchPolicy(String matchPolicy) { - this.matchPolicy = matchPolicy; - return (A) this; + public NamespaceSelectorNested editNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); } - public boolean hasMatchPolicy() { - return this.matchPolicy != null; + public ObjectSelectorNested editObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); } - public V1LabelSelector buildNamespaceSelector() { - return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + public NamespaceSelectorNested editOrNewNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public A withNamespaceSelector(V1LabelSelector namespaceSelector) { - this._visitables.remove("namespaceSelector"); - if (namespaceSelector != null) { - this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); - this._visitables.get("namespaceSelector").add(this.namespaceSelector); - } else { - this.namespaceSelector = null; - this._visitables.get("namespaceSelector").remove(this.namespaceSelector); - } - return (A) this; - } - - public boolean hasNamespaceSelector() { - return this.namespaceSelector != null; - } - - public NamespaceSelectorNested withNewNamespaceSelector() { - return new NamespaceSelectorNested(null); + public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); } - public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { - return new NamespaceSelectorNested(item); + public ObjectSelectorNested editOrNewObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public NamespaceSelectorNested editNamespaceSelector() { - return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); + public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); } - public NamespaceSelectorNested editOrNewNamespaceSelector() { - return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + public ResourceRulesNested editResourceRule(int index) { + if (resourceRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } - public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { - return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1MatchResourcesFluent that = (V1alpha1MatchResourcesFluent) o; + if (!(Objects.equals(excludeResourceRules, that.excludeResourceRules))) { + return false; + } + if (!(Objects.equals(matchPolicy, that.matchPolicy))) { + return false; + } + if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { + return false; + } + if (!(Objects.equals(objectSelector, that.objectSelector))) { + return false; + } + if (!(Objects.equals(resourceRules, that.resourceRules))) { + return false; + } + return true; } - public V1LabelSelector buildObjectSelector() { - return this.objectSelector != null ? this.objectSelector.build() : null; + public String getMatchPolicy() { + return this.matchPolicy; } - public A withObjectSelector(V1LabelSelector objectSelector) { - this._visitables.remove("objectSelector"); - if (objectSelector != null) { - this.objectSelector = new V1LabelSelectorBuilder(objectSelector); - this._visitables.get("objectSelector").add(this.objectSelector); - } else { - this.objectSelector = null; - this._visitables.get("objectSelector").remove(this.objectSelector); - } - return (A) this; + public boolean hasExcludeResourceRules() { + return this.excludeResourceRules != null && !(this.excludeResourceRules.isEmpty()); } - public boolean hasObjectSelector() { - return this.objectSelector != null; + public boolean hasMatchPolicy() { + return this.matchPolicy != null; } - public ObjectSelectorNested withNewObjectSelector() { - return new ObjectSelectorNested(null); + public boolean hasMatchingExcludeResourceRule(Predicate predicate) { + for (V1alpha1NamedRuleWithOperationsBuilder item : excludeResourceRules) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { - return new ObjectSelectorNested(item); + public boolean hasMatchingResourceRule(Predicate predicate) { + for (V1alpha1NamedRuleWithOperationsBuilder item : resourceRules) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public ObjectSelectorNested editObjectSelector() { - return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); + public boolean hasNamespaceSelector() { + return this.namespaceSelector != null; } - public ObjectSelectorNested editOrNewObjectSelector() { - return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); + public boolean hasObjectSelector() { + return this.objectSelector != null; } - public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { - return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); + public boolean hasResourceRules() { + return this.resourceRules != null && !(this.resourceRules.isEmpty()); } - public A addToResourceRules(int index,V1alpha1NamedRuleWithOperations item) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); - } - V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); - } else { - _visitables.get("resourceRules").add(builder); - resourceRules.add(index, builder); - } - return (A) this; + public int hashCode() { + return Objects.hash(excludeResourceRules, matchPolicy, namespaceSelector, objectSelector, resourceRules); } - public A setToResourceRules(int index,V1alpha1NamedRuleWithOperations item) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + public A removeAllFromExcludeResourceRules(Collection items) { + if (this.excludeResourceRules == null) { + return (A) this; } - V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); - } else { - _visitables.get("resourceRules").add(builder); - resourceRules.set(index, builder); + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").remove(builder); + this.excludeResourceRules.remove(builder); } return (A) this; } - public A addToResourceRules(V1alpha1NamedRuleWithOperations... items) { + public A removeAllFromResourceRules(Collection items) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + return (A) this; } for (V1alpha1NamedRuleWithOperations item : items) { V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - _visitables.get("resourceRules").add(builder); - this.resourceRules.add(builder); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); } return (A) this; } - public A addAllToResourceRules(Collection items) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + public A removeFromExcludeResourceRules(V1alpha1NamedRuleWithOperations... items) { + if (this.excludeResourceRules == null) { + return (A) this; } for (V1alpha1NamedRuleWithOperations item : items) { V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - _visitables.get("resourceRules").add(builder); - this.resourceRules.add(builder); + _visitables.get("excludeResourceRules").remove(builder); + this.excludeResourceRules.remove(builder); } return (A) this; } @@ -410,14 +416,18 @@ public A removeFromResourceRules(V1alpha1NamedRuleWithOperations... items) { return (A) this; } - public A removeAllFromResourceRules(Collection items) { - if (this.resourceRules == null) { + public A removeMatchingFromExcludeResourceRules(Predicate predicate) { + if (excludeResourceRules == null) { return (A) this; } - for (V1alpha1NamedRuleWithOperations item : items) { - V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - _visitables.get("resourceRules").remove(builder); - this.resourceRules.remove(builder); + Iterator each = excludeResourceRules.iterator(); + List visitables = _visitables.get("excludeResourceRules"); + while (each.hasNext()) { + V1alpha1NamedRuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -438,191 +448,185 @@ public A removeMatchingFromResourceRules(Predicate buildResourceRules() { - return this.resourceRules != null ? build(resourceRules) : null; - } - - public V1alpha1NamedRuleWithOperations buildResourceRule(int index) { - return this.resourceRules.get(index).build(); + public ExcludeResourceRulesNested setNewExcludeResourceRuleLike(int index,V1alpha1NamedRuleWithOperations item) { + return new ExcludeResourceRulesNested(index, item); } - public V1alpha1NamedRuleWithOperations buildFirstResourceRule() { - return this.resourceRules.get(0).build(); + public ResourceRulesNested setNewResourceRuleLike(int index,V1alpha1NamedRuleWithOperations item) { + return new ResourceRulesNested(index, item); } - public V1alpha1NamedRuleWithOperations buildLastResourceRule() { - return this.resourceRules.get(resourceRules.size() - 1).build(); + public A setToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations item) { + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + if (index < 0 || index >= excludeResourceRules.size()) { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(builder); + } else { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.set(index, builder); + } + return (A) this; } - public V1alpha1NamedRuleWithOperations buildMatchingResourceRule(Predicate predicate) { - for (V1alpha1NamedRuleWithOperationsBuilder item : resourceRules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A setToResourceRules(int index,V1alpha1NamedRuleWithOperations item) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.set(index, builder); + } + return (A) this; } - public boolean hasMatchingResourceRule(Predicate predicate) { - for (V1alpha1NamedRuleWithOperationsBuilder item : resourceRules) { - if (predicate.test(item)) { - return true; - } - } - return false; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(excludeResourceRules == null) && !(excludeResourceRules.isEmpty())) { + sb.append("excludeResourceRules:"); + sb.append(excludeResourceRules); + sb.append(","); + } + if (!(matchPolicy == null)) { + sb.append("matchPolicy:"); + sb.append(matchPolicy); + sb.append(","); + } + if (!(namespaceSelector == null)) { + sb.append("namespaceSelector:"); + sb.append(namespaceSelector); + sb.append(","); + } + if (!(objectSelector == null)) { + sb.append("objectSelector:"); + sb.append(objectSelector); + sb.append(","); + } + if (!(resourceRules == null) && !(resourceRules.isEmpty())) { + sb.append("resourceRules:"); + sb.append(resourceRules); + } + sb.append("}"); + return sb.toString(); } - public A withResourceRules(List resourceRules) { - if (this.resourceRules != null) { - this._visitables.get("resourceRules").clear(); + public A withExcludeResourceRules(List excludeResourceRules) { + if (this.excludeResourceRules != null) { + this._visitables.get("excludeResourceRules").clear(); } - if (resourceRules != null) { - this.resourceRules = new ArrayList(); - for (V1alpha1NamedRuleWithOperations item : resourceRules) { - this.addToResourceRules(item); + if (excludeResourceRules != null) { + this.excludeResourceRules = new ArrayList(); + for (V1alpha1NamedRuleWithOperations item : excludeResourceRules) { + this.addToExcludeResourceRules(item); } } else { - this.resourceRules = null; + this.excludeResourceRules = null; } return (A) this; } - public A withResourceRules(V1alpha1NamedRuleWithOperations... resourceRules) { - if (this.resourceRules != null) { - this.resourceRules.clear(); - _visitables.remove("resourceRules"); + public A withExcludeResourceRules(V1alpha1NamedRuleWithOperations... excludeResourceRules) { + if (this.excludeResourceRules != null) { + this.excludeResourceRules.clear(); + _visitables.remove("excludeResourceRules"); } - if (resourceRules != null) { - for (V1alpha1NamedRuleWithOperations item : resourceRules) { - this.addToResourceRules(item); + if (excludeResourceRules != null) { + for (V1alpha1NamedRuleWithOperations item : excludeResourceRules) { + this.addToExcludeResourceRules(item); } } return (A) this; } - public boolean hasResourceRules() { - return this.resourceRules != null && !(this.resourceRules.isEmpty()); + public A withMatchPolicy(String matchPolicy) { + this.matchPolicy = matchPolicy; + return (A) this; } - public ResourceRulesNested addNewResourceRule() { - return new ResourceRulesNested(-1, null); + public A withNamespaceSelector(V1LabelSelector namespaceSelector) { + this._visitables.remove("namespaceSelector"); + if (namespaceSelector != null) { + this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); + this._visitables.get("namespaceSelector").add(this.namespaceSelector); + } else { + this.namespaceSelector = null; + this._visitables.get("namespaceSelector").remove(this.namespaceSelector); + } + return (A) this; } - public ResourceRulesNested addNewResourceRuleLike(V1alpha1NamedRuleWithOperations item) { - return new ResourceRulesNested(-1, item); + public NamespaceSelectorNested withNewNamespaceSelector() { + return new NamespaceSelectorNested(null); } - public ResourceRulesNested setNewResourceRuleLike(int index,V1alpha1NamedRuleWithOperations item) { - return new ResourceRulesNested(index, item); + public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { + return new NamespaceSelectorNested(item); } - public ResourceRulesNested editResourceRule(int index) { - if (index <= resourceRules.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); - } - return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + public ObjectSelectorNested withNewObjectSelector() { + return new ObjectSelectorNested(null); } - public ResourceRulesNested editFirstResourceRule() { - if (resourceRules.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); - } - return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); + public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { + return new ObjectSelectorNested(item); } - public ResourceRulesNested editLastResourceRule() { - int index = resourceRules.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + public A withObjectSelector(V1LabelSelector objectSelector) { + this._visitables.remove("objectSelector"); + if (objectSelector != null) { + this.objectSelector = new V1LabelSelectorBuilder(objectSelector); + this._visitables.get("objectSelector").add(this.objectSelector); + } else { + this.objectSelector = null; + this._visitables.get("objectSelector").remove(this.objectSelector); } - return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + return (A) this; } - public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { - int index = -1; - for (int i = 0;i < resourceRules.size();i++) { - if (predicate.test(resourceRules.get(i))) { - index = i; - break; - } + public A withResourceRules(List resourceRules) { + if (this.resourceRules != null) { + this._visitables.get("resourceRules").clear(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceRules")); + if (resourceRules != null) { + this.resourceRules = new ArrayList(); + for (V1alpha1NamedRuleWithOperations item : resourceRules) { + this.addToResourceRules(item); + } + } else { + this.resourceRules = null; } - return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1alpha1MatchResourcesFluent that = (V1alpha1MatchResourcesFluent) o; - if (!(Objects.equals(excludeResourceRules, that.excludeResourceRules))) { - return false; - } - if (!(Objects.equals(matchPolicy, that.matchPolicy))) { - return false; - } - if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { - return false; - } - if (!(Objects.equals(objectSelector, that.objectSelector))) { - return false; + public A withResourceRules(V1alpha1NamedRuleWithOperations... resourceRules) { + if (this.resourceRules != null) { + this.resourceRules.clear(); + _visitables.remove("resourceRules"); } - if (!(Objects.equals(resourceRules, that.resourceRules))) { - return false; + if (resourceRules != null) { + for (V1alpha1NamedRuleWithOperations item : resourceRules) { + this.addToResourceRules(item); + } } - return true; + return (A) this; } + public class ExcludeResourceRulesNested extends V1alpha1NamedRuleWithOperationsFluent> implements Nested{ - public int hashCode() { - return Objects.hash(excludeResourceRules, matchPolicy, namespaceSelector, objectSelector, resourceRules); - } + V1alpha1NamedRuleWithOperationsBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(excludeResourceRules == null) && !(excludeResourceRules.isEmpty())) { - sb.append("excludeResourceRules:"); - sb.append(excludeResourceRules); - sb.append(","); - } - if (!(matchPolicy == null)) { - sb.append("matchPolicy:"); - sb.append(matchPolicy); - sb.append(","); - } - if (!(namespaceSelector == null)) { - sb.append("namespaceSelector:"); - sb.append(namespaceSelector); - sb.append(","); - } - if (!(objectSelector == null)) { - sb.append("objectSelector:"); - sb.append(objectSelector); - sb.append(","); - } - if (!(resourceRules == null) && !(resourceRules.isEmpty())) { - sb.append("resourceRules:"); - sb.append(resourceRules); - } - sb.append("}"); - return sb.toString(); - } - public class ExcludeResourceRulesNested extends V1alpha1NamedRuleWithOperationsFluent> implements Nested{ ExcludeResourceRulesNested(int index,V1alpha1NamedRuleWithOperations item) { this.index = index; this.builder = new V1alpha1NamedRuleWithOperationsBuilder(this, item); } - V1alpha1NamedRuleWithOperationsBuilder builder; - int index; - + public N and() { return (N) V1alpha1MatchResourcesFluent.this.setToExcludeResourceRules(index, builder.build()); } @@ -631,14 +635,15 @@ public N endExcludeResourceRule() { return and(); } - } public class NamespaceSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + NamespaceSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1alpha1MatchResourcesFluent.this.withNamespaceSelector(builder.build()); } @@ -647,14 +652,15 @@ public N endNamespaceSelector() { return and(); } - } public class ObjectSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + ObjectSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1alpha1MatchResourcesFluent.this.withObjectSelector(builder.build()); } @@ -663,16 +669,17 @@ public N endObjectSelector() { return and(); } - } public class ResourceRulesNested extends V1alpha1NamedRuleWithOperationsFluent> implements Nested{ + + V1alpha1NamedRuleWithOperationsBuilder builder; + int index; + ResourceRulesNested(int index,V1alpha1NamedRuleWithOperations item) { this.index = index; this.builder = new V1alpha1NamedRuleWithOperationsBuilder(this, item); } - V1alpha1NamedRuleWithOperationsBuilder builder; - int index; - + public N and() { return (N) V1alpha1MatchResourcesFluent.this.setToResourceRules(index, builder.build()); } @@ -681,7 +688,5 @@ public N endResourceRule() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionBuilder.java index 5bb338525d..104bde136d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1MigrationConditionBuilder extends V1alpha1MigrationConditionFluent implements VisitableBuilder{ + + V1alpha1MigrationConditionFluent fluent; + public V1alpha1MigrationConditionBuilder() { this(new V1alpha1MigrationCondition()); } @@ -11,17 +14,16 @@ public V1alpha1MigrationConditionBuilder(V1alpha1MigrationConditionFluent flu this(fluent, new V1alpha1MigrationCondition()); } - public V1alpha1MigrationConditionBuilder(V1alpha1MigrationConditionFluent fluent,V1alpha1MigrationCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1MigrationConditionBuilder(V1alpha1MigrationCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1MigrationConditionFluent fluent; + public V1alpha1MigrationConditionBuilder(V1alpha1MigrationConditionFluent fluent,V1alpha1MigrationCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1MigrationCondition build() { V1alpha1MigrationCondition buildable = new V1alpha1MigrationCondition(); buildable.setLastUpdateTime(fluent.getLastUpdateTime()); @@ -32,5 +34,4 @@ public V1alpha1MigrationCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionFluent.java index 719d813778..81d52b3167 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1MigrationConditionFluent> extends BaseFluent{ - public V1alpha1MigrationConditionFluent() { - } - - public V1alpha1MigrationConditionFluent(V1alpha1MigrationCondition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastUpdateTime; private String message; private String reason; private String status; private String type; + + public V1alpha1MigrationConditionFluent() { + } + public V1alpha1MigrationConditionFluent(V1alpha1MigrationCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1alpha1MigrationCondition instance) { instance = instance != null ? instance : new V1alpha1MigrationCondition(); if (instance != null) { @@ -36,71 +38,6 @@ protected void copyInstance(V1alpha1MigrationCondition instance) { } } - public OffsetDateTime getLastUpdateTime() { - return this.lastUpdateTime; - } - - public A withLastUpdateTime(OffsetDateTime lastUpdateTime) { - this.lastUpdateTime = lastUpdateTime; - return (A) this; - } - - public boolean hasLastUpdateTime() { - return this.lastUpdateTime != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -130,6 +67,46 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getLastUpdateTime() { + return this.lastUpdateTime; + } + + public String getMessage() { + return this.message; + } + + public String getReason() { + return this.reason; + } + + public String getStatus() { + return this.status; + } + + public String getType() { + return this.type; + } + + public boolean hasLastUpdateTime() { + return this.lastUpdateTime != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasReason() { + return this.reason != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(lastUpdateTime, message, reason, status, type); } @@ -165,5 +142,29 @@ public String toString() { return sb.toString(); } - + public A withLastUpdateTime(OffsetDateTime lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingBuilder.java index 232699bab9..f9e2f7709f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1MutatingAdmissionPolicyBindingBuilder extends V1alpha1MutatingAdmissionPolicyBindingFluent implements VisitableBuilder{ + + V1alpha1MutatingAdmissionPolicyBindingFluent fluent; + public V1alpha1MutatingAdmissionPolicyBindingBuilder() { this(new V1alpha1MutatingAdmissionPolicyBinding()); } @@ -11,17 +14,16 @@ public V1alpha1MutatingAdmissionPolicyBindingBuilder(V1alpha1MutatingAdmissionPo this(fluent, new V1alpha1MutatingAdmissionPolicyBinding()); } - public V1alpha1MutatingAdmissionPolicyBindingBuilder(V1alpha1MutatingAdmissionPolicyBindingFluent fluent,V1alpha1MutatingAdmissionPolicyBinding instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1MutatingAdmissionPolicyBindingBuilder(V1alpha1MutatingAdmissionPolicyBinding instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1MutatingAdmissionPolicyBindingFluent fluent; + public V1alpha1MutatingAdmissionPolicyBindingBuilder(V1alpha1MutatingAdmissionPolicyBindingFluent fluent,V1alpha1MutatingAdmissionPolicyBinding instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1MutatingAdmissionPolicyBinding build() { V1alpha1MutatingAdmissionPolicyBinding buildable = new V1alpha1MutatingAdmissionPolicyBinding(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1alpha1MutatingAdmissionPolicyBinding build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingFluent.java index 477e1ee43b..2f6f7ec8c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1MutatingAdmissionPolicyBindingFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha1MutatingAdmissionPolicyBindingSpecBuilder spec; + public V1alpha1MutatingAdmissionPolicyBindingFluent() { } public V1alpha1MutatingAdmissionPolicyBindingFluent(V1alpha1MutatingAdmissionPolicyBinding instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1alpha1MutatingAdmissionPolicyBindingSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1alpha1MutatingAdmissionPolicyBindingSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1alpha1MutatingAdmissionPolicyBinding instance) { instance = instance != null ? instance : new V1alpha1MutatingAdmissionPolicyBinding(); @@ -35,60 +45,6 @@ protected void copyInstance(V1alpha1MutatingAdmissionPolicyBinding instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1alpha1MutatingAdmissionPolicyBindingSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1alpha1MutatingAdmissionPolicyBindingSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1alpha1MutatingAdmissionPolicyBindingSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1alpha1MutatingAdmissionPolicyBindingSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha1MutatingAdmissionPolicyBindingSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1alpha1MutatingAdmissionPolicyBindingSpe return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha1MutatingAdmissionPolicyBindingSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1alpha1MutatingAdmissionPolicyBindingSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha1MutatingAdmissionPolicyBindingSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1alpha1MutatingAdmissionPolicyBindingFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1alpha1MutatingAdmissionPolicyBindingSpecFluent> implements Nested{ + + V1alpha1MutatingAdmissionPolicyBindingSpecBuilder builder; + SpecNested(V1alpha1MutatingAdmissionPolicyBindingSpec item) { this.builder = new V1alpha1MutatingAdmissionPolicyBindingSpecBuilder(this, item); } - V1alpha1MutatingAdmissionPolicyBindingSpecBuilder builder; - + public N and() { return (N) V1alpha1MutatingAdmissionPolicyBindingFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListBuilder.java index 300bcf2082..b256594c95 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1MutatingAdmissionPolicyBindingListBuilder extends V1alpha1MutatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ + + V1alpha1MutatingAdmissionPolicyBindingListFluent fluent; + public V1alpha1MutatingAdmissionPolicyBindingListBuilder() { this(new V1alpha1MutatingAdmissionPolicyBindingList()); } @@ -11,17 +14,16 @@ public V1alpha1MutatingAdmissionPolicyBindingListBuilder(V1alpha1MutatingAdmissi this(fluent, new V1alpha1MutatingAdmissionPolicyBindingList()); } - public V1alpha1MutatingAdmissionPolicyBindingListBuilder(V1alpha1MutatingAdmissionPolicyBindingListFluent fluent,V1alpha1MutatingAdmissionPolicyBindingList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1MutatingAdmissionPolicyBindingListBuilder(V1alpha1MutatingAdmissionPolicyBindingList instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1MutatingAdmissionPolicyBindingListFluent fluent; + public V1alpha1MutatingAdmissionPolicyBindingListBuilder(V1alpha1MutatingAdmissionPolicyBindingListFluent fluent,V1alpha1MutatingAdmissionPolicyBindingList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1MutatingAdmissionPolicyBindingList build() { V1alpha1MutatingAdmissionPolicyBindingList buildable = new V1alpha1MutatingAdmissionPolicyBindingList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1alpha1MutatingAdmissionPolicyBindingList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListFluent.java index 9a652d59ad..fecb752923 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1MutatingAdmissionPolicyBindingListFluent> extends BaseFluent{ - public V1alpha1MutatingAdmissionPolicyBindingListFluent() { - } - - public V1alpha1MutatingAdmissionPolicyBindingListFluent(V1alpha1MutatingAdmissionPolicyBindingList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha1MutatingAdmissionPolicyBindingList instance) { - instance = instance != null ? instance : new V1alpha1MutatingAdmissionPolicyBindingList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1alpha1MutatingAdmissionPolicyBindingListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1alpha1MutatingAdmissionPolicyBindingListFluent(V1alpha1MutatingAdmissionPolicyBindingList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1alpha1MutatingAdmissionPolicyBinding item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1alpha1MutatingAdmissionPolicyBinding item : items) { + V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1alpha1MutatingAdmissionPolicyBinding item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha1MutatingAdmissionPolicyBinding item) { + return new ItemsNested(-1, item); } public A addToItems(V1alpha1MutatingAdmissionPolicyBinding... items) { @@ -96,68 +65,31 @@ public A addToItems(V1alpha1MutatingAdmissionPolicyBinding... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1alpha1MutatingAdmissionPolicyBinding item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1alpha1MutatingAdmissionPolicyBinding item : items) { - V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); + V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1alpha1MutatingAdmissionPolicyBinding... items) { - if (this.items == null) { - return (A) this; - } - for (V1alpha1MutatingAdmissionPolicyBinding item : items) { - V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1alpha1MutatingAdmissionPolicyBinding item : items) { - V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha1MutatingAdmissionPolicyBindingBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1alpha1MutatingAdmissionPolicyBinding buildFirstItem() { + return this.items.get(0).build(); } public V1alpha1MutatingAdmissionPolicyBinding buildItem(int index) { return this.items.get(index).build(); } - public V1alpha1MutatingAdmissionPolicyBinding buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1alpha1MutatingAdmissionPolicyBinding buildLastItem() { @@ -173,73 +105,34 @@ public V1alpha1MutatingAdmissionPolicyBinding buildMatchingItem(Predicate predicate) { - for (V1alpha1MutatingAdmissionPolicyBindingBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha1MutatingAdmissionPolicyBinding item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1alpha1MutatingAdmissionPolicyBindingList instance) { + instance = instance != null ? instance : new V1alpha1MutatingAdmissionPolicyBindingList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1alpha1MutatingAdmissionPolicyBinding... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha1MutatingAdmissionPolicyBinding item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha1MutatingAdmissionPolicyBinding item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha1MutatingAdmissionPolicyBinding item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1MutatingAdmissionPolicyBindingBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1MutatingAdmissionPolicyBinding item : items) { + V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1alpha1MutatingAdmissionPolicyBinding... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1MutatingAdmissionPolicyBinding item : items) { + V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha1MutatingAdmissionPolicyBindingBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1alpha1MutatingAdmissionPolicyBinding item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1alpha1MutatingAdmissionPolicyBinding item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha1MutatingAdmissionPolicyBinding item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1alpha1MutatingAdmissionPolicyBinding... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha1MutatingAdmissionPolicyBinding item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1alpha1MutatingAdmissionPolicyBindingFluent> implements Nested{ + + V1alpha1MutatingAdmissionPolicyBindingBuilder builder; + int index; + ItemsNested(int index,V1alpha1MutatingAdmissionPolicyBinding item) { this.index = index; this.builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(this, item); } - V1alpha1MutatingAdmissionPolicyBindingBuilder builder; - int index; - + public N and() { return (N) V1alpha1MutatingAdmissionPolicyBindingListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1alpha1MutatingAdmissionPolicyBindingListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecBuilder.java index 81eed44b62..cdae9318c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1MutatingAdmissionPolicyBindingSpecBuilder extends V1alpha1MutatingAdmissionPolicyBindingSpecFluent implements VisitableBuilder{ + + V1alpha1MutatingAdmissionPolicyBindingSpecFluent fluent; + public V1alpha1MutatingAdmissionPolicyBindingSpecBuilder() { this(new V1alpha1MutatingAdmissionPolicyBindingSpec()); } @@ -11,17 +14,16 @@ public V1alpha1MutatingAdmissionPolicyBindingSpecBuilder(V1alpha1MutatingAdmissi this(fluent, new V1alpha1MutatingAdmissionPolicyBindingSpec()); } - public V1alpha1MutatingAdmissionPolicyBindingSpecBuilder(V1alpha1MutatingAdmissionPolicyBindingSpecFluent fluent,V1alpha1MutatingAdmissionPolicyBindingSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1MutatingAdmissionPolicyBindingSpecBuilder(V1alpha1MutatingAdmissionPolicyBindingSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1MutatingAdmissionPolicyBindingSpecFluent fluent; + public V1alpha1MutatingAdmissionPolicyBindingSpecBuilder(V1alpha1MutatingAdmissionPolicyBindingSpecFluent fluent,V1alpha1MutatingAdmissionPolicyBindingSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1MutatingAdmissionPolicyBindingSpec build() { V1alpha1MutatingAdmissionPolicyBindingSpec buildable = new V1alpha1MutatingAdmissionPolicyBindingSpec(); buildable.setMatchResources(fluent.buildMatchResources()); @@ -30,5 +32,4 @@ public V1alpha1MutatingAdmissionPolicyBindingSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecFluent.java index f3c28bd052..ea25b7ebf9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecFluent.java @@ -1,28 +1,38 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1MutatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ + + private V1alpha1MatchResourcesBuilder matchResources; + private V1alpha1ParamRefBuilder paramRef; + private String policyName; + public V1alpha1MutatingAdmissionPolicyBindingSpecFluent() { } public V1alpha1MutatingAdmissionPolicyBindingSpecFluent(V1alpha1MutatingAdmissionPolicyBindingSpec instance) { this.copyInstance(instance); } - private V1alpha1MatchResourcesBuilder matchResources; - private V1alpha1ParamRefBuilder paramRef; - private String policyName; + + public V1alpha1MatchResources buildMatchResources() { + return this.matchResources != null ? this.matchResources.build() : null; + } + + public V1alpha1ParamRef buildParamRef() { + return this.paramRef != null ? this.paramRef.build() : null; + } protected void copyInstance(V1alpha1MutatingAdmissionPolicyBindingSpec instance) { instance = instance != null ? instance : new V1alpha1MutatingAdmissionPolicyBindingSpec(); @@ -33,34 +43,6 @@ protected void copyInstance(V1alpha1MutatingAdmissionPolicyBindingSpec instance) } } - public V1alpha1MatchResources buildMatchResources() { - return this.matchResources != null ? this.matchResources.build() : null; - } - - public A withMatchResources(V1alpha1MatchResources matchResources) { - this._visitables.remove("matchResources"); - if (matchResources != null) { - this.matchResources = new V1alpha1MatchResourcesBuilder(matchResources); - this._visitables.get("matchResources").add(this.matchResources); - } else { - this.matchResources = null; - this._visitables.get("matchResources").remove(this.matchResources); - } - return (A) this; - } - - public boolean hasMatchResources() { - return this.matchResources != null; - } - - public MatchResourcesNested withNewMatchResources() { - return new MatchResourcesNested(null); - } - - public MatchResourcesNested withNewMatchResourcesLike(V1alpha1MatchResources item) { - return new MatchResourcesNested(item); - } - public MatchResourcesNested editMatchResources() { return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(null)); } @@ -73,38 +55,6 @@ public MatchResourcesNested editOrNewMatchResourcesLike(V1alpha1MatchResource return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(item)); } - public V1alpha1ParamRef buildParamRef() { - return this.paramRef != null ? this.paramRef.build() : null; - } - - public A withParamRef(V1alpha1ParamRef paramRef) { - this._visitables.remove("paramRef"); - if (paramRef != null) { - this.paramRef = new V1alpha1ParamRefBuilder(paramRef); - this._visitables.get("paramRef").add(this.paramRef); - } else { - this.paramRef = null; - this._visitables.get("paramRef").remove(this.paramRef); - } - return (A) this; - } - - public boolean hasParamRef() { - return this.paramRef != null; - } - - public ParamRefNested withNewParamRef() { - return new ParamRefNested(null); - } - - public ParamRefNested withNewParamRefLike(V1alpha1ParamRef item) { - return new ParamRefNested(item); - } - - public ParamRefNested editParamRef() { - return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(null)); - } - public ParamRefNested editOrNewParamRef() { return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(new V1alpha1ParamRefBuilder().build())); } @@ -113,17 +63,8 @@ public ParamRefNested editOrNewParamRefLike(V1alpha1ParamRef item) { return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(item)); } - public String getPolicyName() { - return this.policyName; - } - - public A withPolicyName(String policyName) { - this.policyName = policyName; - return (A) this; - } - - public boolean hasPolicyName() { - return this.policyName != null; + public ParamRefNested editParamRef() { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(null)); } public boolean equals(Object o) { @@ -149,6 +90,22 @@ public boolean equals(Object o) { return true; } + public String getPolicyName() { + return this.policyName; + } + + public boolean hasMatchResources() { + return this.matchResources != null; + } + + public boolean hasParamRef() { + return this.paramRef != null; + } + + public boolean hasPolicyName() { + return this.policyName != null; + } + public int hashCode() { return Objects.hash(matchResources, paramRef, policyName); } @@ -173,12 +130,59 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMatchResources(V1alpha1MatchResources matchResources) { + this._visitables.remove("matchResources"); + if (matchResources != null) { + this.matchResources = new V1alpha1MatchResourcesBuilder(matchResources); + this._visitables.get("matchResources").add(this.matchResources); + } else { + this.matchResources = null; + this._visitables.get("matchResources").remove(this.matchResources); + } + return (A) this; + } + + public MatchResourcesNested withNewMatchResources() { + return new MatchResourcesNested(null); + } + + public MatchResourcesNested withNewMatchResourcesLike(V1alpha1MatchResources item) { + return new MatchResourcesNested(item); + } + + public ParamRefNested withNewParamRef() { + return new ParamRefNested(null); + } + + public ParamRefNested withNewParamRefLike(V1alpha1ParamRef item) { + return new ParamRefNested(item); + } + + public A withParamRef(V1alpha1ParamRef paramRef) { + this._visitables.remove("paramRef"); + if (paramRef != null) { + this.paramRef = new V1alpha1ParamRefBuilder(paramRef); + this._visitables.get("paramRef").add(this.paramRef); + } else { + this.paramRef = null; + this._visitables.get("paramRef").remove(this.paramRef); + } + return (A) this; + } + + public A withPolicyName(String policyName) { + this.policyName = policyName; + return (A) this; + } public class MatchResourcesNested extends V1alpha1MatchResourcesFluent> implements Nested{ + + V1alpha1MatchResourcesBuilder builder; + MatchResourcesNested(V1alpha1MatchResources item) { this.builder = new V1alpha1MatchResourcesBuilder(this, item); } - V1alpha1MatchResourcesBuilder builder; - + public N and() { return (N) V1alpha1MutatingAdmissionPolicyBindingSpecFluent.this.withMatchResources(builder.build()); } @@ -187,14 +191,15 @@ public N endMatchResources() { return and(); } - } public class ParamRefNested extends V1alpha1ParamRefFluent> implements Nested{ + + V1alpha1ParamRefBuilder builder; + ParamRefNested(V1alpha1ParamRef item) { this.builder = new V1alpha1ParamRefBuilder(this, item); } - V1alpha1ParamRefBuilder builder; - + public N and() { return (N) V1alpha1MutatingAdmissionPolicyBindingSpecFluent.this.withParamRef(builder.build()); } @@ -203,7 +208,5 @@ public N endParamRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBuilder.java index 7c55d1c091..8b34ae7eaa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1MutatingAdmissionPolicyBuilder extends V1alpha1MutatingAdmissionPolicyFluent implements VisitableBuilder{ + + V1alpha1MutatingAdmissionPolicyFluent fluent; + public V1alpha1MutatingAdmissionPolicyBuilder() { this(new V1alpha1MutatingAdmissionPolicy()); } @@ -11,17 +14,16 @@ public V1alpha1MutatingAdmissionPolicyBuilder(V1alpha1MutatingAdmissionPolicyFlu this(fluent, new V1alpha1MutatingAdmissionPolicy()); } - public V1alpha1MutatingAdmissionPolicyBuilder(V1alpha1MutatingAdmissionPolicyFluent fluent,V1alpha1MutatingAdmissionPolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1MutatingAdmissionPolicyBuilder(V1alpha1MutatingAdmissionPolicy instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1MutatingAdmissionPolicyFluent fluent; + public V1alpha1MutatingAdmissionPolicyBuilder(V1alpha1MutatingAdmissionPolicyFluent fluent,V1alpha1MutatingAdmissionPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1MutatingAdmissionPolicy build() { V1alpha1MutatingAdmissionPolicy buildable = new V1alpha1MutatingAdmissionPolicy(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1alpha1MutatingAdmissionPolicy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyFluent.java index 0e0b03bd85..64a95cbdf8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1MutatingAdmissionPolicyFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha1MutatingAdmissionPolicySpecBuilder spec; + public V1alpha1MutatingAdmissionPolicyFluent() { } public V1alpha1MutatingAdmissionPolicyFluent(V1alpha1MutatingAdmissionPolicy instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1alpha1MutatingAdmissionPolicySpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1alpha1MutatingAdmissionPolicySpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1alpha1MutatingAdmissionPolicy instance) { instance = instance != null ? instance : new V1alpha1MutatingAdmissionPolicy(); @@ -35,60 +45,6 @@ protected void copyInstance(V1alpha1MutatingAdmissionPolicy instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1alpha1MutatingAdmissionPolicySpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1alpha1MutatingAdmissionPolicySpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1alpha1MutatingAdmissionPolicySpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1alpha1MutatingAdmissionPolicySpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha1MutatingAdmissionPolicySpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1alpha1MutatingAdmissionPolicySpec item) return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha1MutatingAdmissionPolicySpec item) { + return new SpecNested(item); + } + + public A withSpec(V1alpha1MutatingAdmissionPolicySpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha1MutatingAdmissionPolicySpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1alpha1MutatingAdmissionPolicyFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1alpha1MutatingAdmissionPolicySpecFluent> implements Nested{ + + V1alpha1MutatingAdmissionPolicySpecBuilder builder; + SpecNested(V1alpha1MutatingAdmissionPolicySpec item) { this.builder = new V1alpha1MutatingAdmissionPolicySpecBuilder(this, item); } - V1alpha1MutatingAdmissionPolicySpecBuilder builder; - + public N and() { return (N) V1alpha1MutatingAdmissionPolicyFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListBuilder.java index 45078d10ed..90920624a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1MutatingAdmissionPolicyListBuilder extends V1alpha1MutatingAdmissionPolicyListFluent implements VisitableBuilder{ + + V1alpha1MutatingAdmissionPolicyListFluent fluent; + public V1alpha1MutatingAdmissionPolicyListBuilder() { this(new V1alpha1MutatingAdmissionPolicyList()); } @@ -11,17 +14,16 @@ public V1alpha1MutatingAdmissionPolicyListBuilder(V1alpha1MutatingAdmissionPolic this(fluent, new V1alpha1MutatingAdmissionPolicyList()); } - public V1alpha1MutatingAdmissionPolicyListBuilder(V1alpha1MutatingAdmissionPolicyListFluent fluent,V1alpha1MutatingAdmissionPolicyList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1MutatingAdmissionPolicyListBuilder(V1alpha1MutatingAdmissionPolicyList instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1MutatingAdmissionPolicyListFluent fluent; + public V1alpha1MutatingAdmissionPolicyListBuilder(V1alpha1MutatingAdmissionPolicyListFluent fluent,V1alpha1MutatingAdmissionPolicyList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1MutatingAdmissionPolicyList build() { V1alpha1MutatingAdmissionPolicyList buildable = new V1alpha1MutatingAdmissionPolicyList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1alpha1MutatingAdmissionPolicyList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListFluent.java index 58f8972142..a80c47a562 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1MutatingAdmissionPolicyListFluent> extends BaseFluent{ - public V1alpha1MutatingAdmissionPolicyListFluent() { - } - - public V1alpha1MutatingAdmissionPolicyListFluent(V1alpha1MutatingAdmissionPolicyList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha1MutatingAdmissionPolicyList instance) { - instance = instance != null ? instance : new V1alpha1MutatingAdmissionPolicyList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1alpha1MutatingAdmissionPolicyListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1alpha1MutatingAdmissionPolicyListFluent(V1alpha1MutatingAdmissionPolicyList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1alpha1MutatingAdmissionPolicy item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1alpha1MutatingAdmissionPolicy item : items) { + V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1alpha1MutatingAdmissionPolicy item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha1MutatingAdmissionPolicy item) { + return new ItemsNested(-1, item); } public A addToItems(V1alpha1MutatingAdmissionPolicy... items) { @@ -96,68 +65,31 @@ public A addToItems(V1alpha1MutatingAdmissionPolicy... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1alpha1MutatingAdmissionPolicy item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1alpha1MutatingAdmissionPolicy item : items) { - V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); + V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1alpha1MutatingAdmissionPolicy... items) { - if (this.items == null) { - return (A) this; - } - for (V1alpha1MutatingAdmissionPolicy item : items) { - V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1alpha1MutatingAdmissionPolicy item : items) { - V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha1MutatingAdmissionPolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1alpha1MutatingAdmissionPolicy buildFirstItem() { + return this.items.get(0).build(); } public V1alpha1MutatingAdmissionPolicy buildItem(int index) { return this.items.get(index).build(); } - public V1alpha1MutatingAdmissionPolicy buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1alpha1MutatingAdmissionPolicy buildLastItem() { @@ -173,73 +105,34 @@ public V1alpha1MutatingAdmissionPolicy buildMatchingItem(Predicate predicate) { - for (V1alpha1MutatingAdmissionPolicyBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha1MutatingAdmissionPolicy item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1alpha1MutatingAdmissionPolicyList instance) { + instance = instance != null ? instance : new V1alpha1MutatingAdmissionPolicyList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1alpha1MutatingAdmissionPolicy... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha1MutatingAdmissionPolicy item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha1MutatingAdmissionPolicy item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha1MutatingAdmissionPolicy item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1MutatingAdmissionPolicyBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1MutatingAdmissionPolicy item : items) { + V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1alpha1MutatingAdmissionPolicy... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1MutatingAdmissionPolicy item : items) { + V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha1MutatingAdmissionPolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1alpha1MutatingAdmissionPolicy item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1alpha1MutatingAdmissionPolicy item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha1MutatingAdmissionPolicy item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1alpha1MutatingAdmissionPolicy... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha1MutatingAdmissionPolicy item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1alpha1MutatingAdmissionPolicyFluent> implements Nested{ + + V1alpha1MutatingAdmissionPolicyBuilder builder; + int index; + ItemsNested(int index,V1alpha1MutatingAdmissionPolicy item) { this.index = index; this.builder = new V1alpha1MutatingAdmissionPolicyBuilder(this, item); } - V1alpha1MutatingAdmissionPolicyBuilder builder; - int index; - + public N and() { return (N) V1alpha1MutatingAdmissionPolicyListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1alpha1MutatingAdmissionPolicyListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecBuilder.java index 70e1557be8..6dc8273661 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1MutatingAdmissionPolicySpecBuilder extends V1alpha1MutatingAdmissionPolicySpecFluent implements VisitableBuilder{ + + V1alpha1MutatingAdmissionPolicySpecFluent fluent; + public V1alpha1MutatingAdmissionPolicySpecBuilder() { this(new V1alpha1MutatingAdmissionPolicySpec()); } @@ -11,17 +14,16 @@ public V1alpha1MutatingAdmissionPolicySpecBuilder(V1alpha1MutatingAdmissionPolic this(fluent, new V1alpha1MutatingAdmissionPolicySpec()); } - public V1alpha1MutatingAdmissionPolicySpecBuilder(V1alpha1MutatingAdmissionPolicySpecFluent fluent,V1alpha1MutatingAdmissionPolicySpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1MutatingAdmissionPolicySpecBuilder(V1alpha1MutatingAdmissionPolicySpec instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1MutatingAdmissionPolicySpecFluent fluent; + public V1alpha1MutatingAdmissionPolicySpecBuilder(V1alpha1MutatingAdmissionPolicySpecFluent fluent,V1alpha1MutatingAdmissionPolicySpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1MutatingAdmissionPolicySpec build() { V1alpha1MutatingAdmissionPolicySpec buildable = new V1alpha1MutatingAdmissionPolicySpec(); buildable.setFailurePolicy(fluent.getFailurePolicy()); @@ -34,5 +36,4 @@ public V1alpha1MutatingAdmissionPolicySpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecFluent.java index 19f9827ecd..7c5fabf6bc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecFluent.java @@ -1,31 +1,26 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1MutatingAdmissionPolicySpecFluent> extends BaseFluent{ - public V1alpha1MutatingAdmissionPolicySpecFluent() { - } - - public V1alpha1MutatingAdmissionPolicySpecFluent(V1alpha1MutatingAdmissionPolicySpec instance) { - this.copyInstance(instance); - } + private String failurePolicy; private ArrayList matchConditions; private V1alpha1MatchResourcesBuilder matchConstraints; @@ -33,49 +28,87 @@ public V1alpha1MutatingAdmissionPolicySpecFluent(V1alpha1MutatingAdmissionPolicy private V1alpha1ParamKindBuilder paramKind; private String reinvocationPolicy; private ArrayList variables; + + public V1alpha1MutatingAdmissionPolicySpecFluent() { + } - protected void copyInstance(V1alpha1MutatingAdmissionPolicySpec instance) { - instance = instance != null ? instance : new V1alpha1MutatingAdmissionPolicySpec(); - if (instance != null) { - this.withFailurePolicy(instance.getFailurePolicy()); - this.withMatchConditions(instance.getMatchConditions()); - this.withMatchConstraints(instance.getMatchConstraints()); - this.withMutations(instance.getMutations()); - this.withParamKind(instance.getParamKind()); - this.withReinvocationPolicy(instance.getReinvocationPolicy()); - this.withVariables(instance.getVariables()); + public V1alpha1MutatingAdmissionPolicySpecFluent(V1alpha1MutatingAdmissionPolicySpec instance) { + this.copyInstance(instance); + } + + public A addAllToMatchConditions(Collection items) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + for (V1alpha1MatchCondition item : items) { + V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); } + return (A) this; } - public String getFailurePolicy() { - return this.failurePolicy; + public A addAllToMutations(Collection items) { + if (this.mutations == null) { + this.mutations = new ArrayList(); + } + for (V1alpha1Mutation item : items) { + V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); + _visitables.get("mutations").add(builder); + this.mutations.add(builder); + } + return (A) this; } - public A withFailurePolicy(String failurePolicy) { - this.failurePolicy = failurePolicy; + public A addAllToVariables(Collection items) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + for (V1alpha1Variable item : items) { + V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); + _visitables.get("variables").add(builder); + this.variables.add(builder); + } return (A) this; } - public boolean hasFailurePolicy() { - return this.failurePolicy != null; + public MatchConditionsNested addNewMatchCondition() { + return new MatchConditionsNested(-1, null); } - public A addToMatchConditions(int index,V1alpha1MatchCondition item) { + public MatchConditionsNested addNewMatchConditionLike(V1alpha1MatchCondition item) { + return new MatchConditionsNested(-1, item); + } + + public MutationsNested addNewMutation() { + return new MutationsNested(-1, null); + } + + public MutationsNested addNewMutationLike(V1alpha1Mutation item) { + return new MutationsNested(-1, item); + } + + public VariablesNested addNewVariable() { + return new VariablesNested(-1, null); + } + + public VariablesNested addNewVariableLike(V1alpha1Variable item) { + return new VariablesNested(-1, item); + } + + public A addToMatchConditions(V1alpha1MatchCondition... items) { if (this.matchConditions == null) { this.matchConditions = new ArrayList(); } - V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); - } else { + for (V1alpha1MatchCondition item : items) { + V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); _visitables.get("matchConditions").add(builder); - matchConditions.add(index, builder); + this.matchConditions.add(builder); } return (A) this; } - public A setToMatchConditions(int index,V1alpha1MatchCondition item) { + public A addToMatchConditions(int index,V1alpha1MatchCondition item) { if (this.matchConditions == null) { this.matchConditions = new ArrayList(); } @@ -85,89 +118,99 @@ public A setToMatchConditions(int index,V1alpha1MatchCondition item) { matchConditions.add(builder); } else { _visitables.get("matchConditions").add(builder); - matchConditions.set(index, builder); + matchConditions.add(index, builder); } return (A) this; } - public A addToMatchConditions(V1alpha1MatchCondition... items) { - if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + public A addToMutations(V1alpha1Mutation... items) { + if (this.mutations == null) { + this.mutations = new ArrayList(); } - for (V1alpha1MatchCondition item : items) { - V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); - this.matchConditions.add(builder); + for (V1alpha1Mutation item : items) { + V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); + _visitables.get("mutations").add(builder); + this.mutations.add(builder); } return (A) this; } - public A addAllToMatchConditions(Collection items) { - if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + public A addToMutations(int index,V1alpha1Mutation item) { + if (this.mutations == null) { + this.mutations = new ArrayList(); } - for (V1alpha1MatchCondition item : items) { - V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); - this.matchConditions.add(builder); + V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); + if (index < 0 || index >= mutations.size()) { + _visitables.get("mutations").add(builder); + mutations.add(builder); + } else { + _visitables.get("mutations").add(builder); + mutations.add(index, builder); } return (A) this; } - public A removeFromMatchConditions(V1alpha1MatchCondition... items) { - if (this.matchConditions == null) { - return (A) this; + public A addToVariables(V1alpha1Variable... items) { + if (this.variables == null) { + this.variables = new ArrayList(); } - for (V1alpha1MatchCondition item : items) { - V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); - _visitables.get("matchConditions").remove(builder); - this.matchConditions.remove(builder); + for (V1alpha1Variable item : items) { + V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); + _visitables.get("variables").add(builder); + this.variables.add(builder); } return (A) this; } - public A removeAllFromMatchConditions(Collection items) { - if (this.matchConditions == null) { - return (A) this; + public A addToVariables(int index,V1alpha1Variable item) { + if (this.variables == null) { + this.variables = new ArrayList(); } - for (V1alpha1MatchCondition item : items) { - V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); - _visitables.get("matchConditions").remove(builder); - this.matchConditions.remove(builder); + V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); + if (index < 0 || index >= variables.size()) { + _visitables.get("variables").add(builder); + variables.add(builder); + } else { + _visitables.get("variables").add(builder); + variables.add(index, builder); } return (A) this; } - public A removeMatchingFromMatchConditions(Predicate predicate) { - if (matchConditions == null) { - return (A) this; - } - Iterator each = matchConditions.iterator(); - List visitables = _visitables.get("matchConditions"); - while (each.hasNext()) { - V1alpha1MatchConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1alpha1MatchCondition buildFirstMatchCondition() { + return this.matchConditions.get(0).build(); } - public List buildMatchConditions() { - return this.matchConditions != null ? build(matchConditions) : null; + public V1alpha1Mutation buildFirstMutation() { + return this.mutations.get(0).build(); + } + + public V1alpha1Variable buildFirstVariable() { + return this.variables.get(0).build(); + } + + public V1alpha1MatchCondition buildLastMatchCondition() { + return this.matchConditions.get(matchConditions.size() - 1).build(); + } + + public V1alpha1Mutation buildLastMutation() { + return this.mutations.get(mutations.size() - 1).build(); + } + + public V1alpha1Variable buildLastVariable() { + return this.variables.get(variables.size() - 1).build(); } public V1alpha1MatchCondition buildMatchCondition(int index) { return this.matchConditions.get(index).build(); } - public V1alpha1MatchCondition buildFirstMatchCondition() { - return this.matchConditions.get(0).build(); + public List buildMatchConditions() { + return this.matchConditions != null ? build(matchConditions) : null; } - public V1alpha1MatchCondition buildLastMatchCondition() { - return this.matchConditions.get(matchConditions.size() - 1).build(); + public V1alpha1MatchResources buildMatchConstraints() { + return this.matchConstraints != null ? this.matchConstraints.build() : null; } public V1alpha1MatchCondition buildMatchingMatchCondition(Predicate predicate) { @@ -179,64 +222,55 @@ public V1alpha1MatchCondition buildMatchingMatchCondition(Predicate predicate) { - for (V1alpha1MatchConditionBuilder item : matchConditions) { + public V1alpha1Mutation buildMatchingMutation(Predicate predicate) { + for (V1alpha1MutationBuilder item : mutations) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withMatchConditions(List matchConditions) { - if (this.matchConditions != null) { - this._visitables.get("matchConditions").clear(); - } - if (matchConditions != null) { - this.matchConditions = new ArrayList(); - for (V1alpha1MatchCondition item : matchConditions) { - this.addToMatchConditions(item); + public V1alpha1Variable buildMatchingVariable(Predicate predicate) { + for (V1alpha1VariableBuilder item : variables) { + if (predicate.test(item)) { + return item.build(); } - } else { - this.matchConditions = null; - } - return (A) this; + } + return null; } - public A withMatchConditions(V1alpha1MatchCondition... matchConditions) { - if (this.matchConditions != null) { - this.matchConditions.clear(); - _visitables.remove("matchConditions"); - } - if (matchConditions != null) { - for (V1alpha1MatchCondition item : matchConditions) { - this.addToMatchConditions(item); - } - } - return (A) this; + public V1alpha1Mutation buildMutation(int index) { + return this.mutations.get(index).build(); } - public boolean hasMatchConditions() { - return this.matchConditions != null && !(this.matchConditions.isEmpty()); + public List buildMutations() { + return this.mutations != null ? build(mutations) : null; } - public MatchConditionsNested addNewMatchCondition() { - return new MatchConditionsNested(-1, null); + public V1alpha1ParamKind buildParamKind() { + return this.paramKind != null ? this.paramKind.build() : null; } - public MatchConditionsNested addNewMatchConditionLike(V1alpha1MatchCondition item) { - return new MatchConditionsNested(-1, item); + public V1alpha1Variable buildVariable(int index) { + return this.variables.get(index).build(); } - public MatchConditionsNested setNewMatchConditionLike(int index,V1alpha1MatchCondition item) { - return new MatchConditionsNested(index, item); + public List buildVariables() { + return this.variables != null ? build(variables) : null; } - public MatchConditionsNested editMatchCondition(int index) { - if (index <= matchConditions.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchConditions")); + protected void copyInstance(V1alpha1MutatingAdmissionPolicySpec instance) { + instance = instance != null ? instance : new V1alpha1MutatingAdmissionPolicySpec(); + if (instance != null) { + this.withFailurePolicy(instance.getFailurePolicy()); + this.withMatchConditions(instance.getMatchConditions()); + this.withMatchConstraints(instance.getMatchConstraints()); + this.withMutations(instance.getMutations()); + this.withParamKind(instance.getParamKind()); + this.withReinvocationPolicy(instance.getReinvocationPolicy()); + this.withVariables(instance.getVariables()); } - return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } public MatchConditionsNested editFirstMatchCondition() { @@ -246,6 +280,20 @@ public MatchConditionsNested editFirstMatchCondition() { return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); } + public MutationsNested editFirstMutation() { + if (mutations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "mutations")); + } + return this.setNewMutationLike(0, this.buildMutation(0)); + } + + public VariablesNested editFirstVariable() { + if (variables.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(0, this.buildVariable(0)); + } + public MatchConditionsNested editLastMatchCondition() { int index = matchConditions.size() - 1; if (index < 0) { @@ -254,6 +302,33 @@ public MatchConditionsNested editLastMatchCondition() { return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } + public MutationsNested editLastMutation() { + int index = mutations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); + } + + public VariablesNested editLastVariable() { + int index = variables.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); + } + + public MatchConditionsNested editMatchCondition(int index) { + if (matchConditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); + } + + public MatchConstraintsNested editMatchConstraints() { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(null)); + } + public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { int index = -1; for (int i = 0;i < matchConditions.size();i++) { @@ -268,163 +343,130 @@ public MatchConditionsNested editMatchingMatchCondition(Predicate editMatchingMutation(Predicate predicate) { + int index = -1; + for (int i = 0;i < mutations.size();i++) { + if (predicate.test(mutations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); } - public A withMatchConstraints(V1alpha1MatchResources matchConstraints) { - this._visitables.remove("matchConstraints"); - if (matchConstraints != null) { - this.matchConstraints = new V1alpha1MatchResourcesBuilder(matchConstraints); - this._visitables.get("matchConstraints").add(this.matchConstraints); - } else { - this.matchConstraints = null; - this._visitables.get("matchConstraints").remove(this.matchConstraints); + public VariablesNested editMatchingVariable(Predicate predicate) { + int index = -1; + for (int i = 0;i < variables.size();i++) { + if (predicate.test(variables.get(i))) { + index = i; + break; + } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); } - public boolean hasMatchConstraints() { - return this.matchConstraints != null; + public MutationsNested editMutation(int index) { + if (mutations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); } - public MatchConstraintsNested withNewMatchConstraints() { - return new MatchConstraintsNested(null); + public MatchConstraintsNested editOrNewMatchConstraints() { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(new V1alpha1MatchResourcesBuilder().build())); } - public MatchConstraintsNested withNewMatchConstraintsLike(V1alpha1MatchResources item) { - return new MatchConstraintsNested(item); + public MatchConstraintsNested editOrNewMatchConstraintsLike(V1alpha1MatchResources item) { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(item)); } - public MatchConstraintsNested editMatchConstraints() { - return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(null)); + public ParamKindNested editOrNewParamKind() { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(new V1alpha1ParamKindBuilder().build())); } - public MatchConstraintsNested editOrNewMatchConstraints() { - return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(new V1alpha1MatchResourcesBuilder().build())); + public ParamKindNested editOrNewParamKindLike(V1alpha1ParamKind item) { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(item)); } - public MatchConstraintsNested editOrNewMatchConstraintsLike(V1alpha1MatchResources item) { - return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(item)); + public ParamKindNested editParamKind() { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(null)); } - public A addToMutations(int index,V1alpha1Mutation item) { - if (this.mutations == null) { - this.mutations = new ArrayList(); - } - V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); - if (index < 0 || index >= mutations.size()) { - _visitables.get("mutations").add(builder); - mutations.add(builder); - } else { - _visitables.get("mutations").add(builder); - mutations.add(index, builder); + public VariablesNested editVariable(int index) { + if (variables.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "variables")); } - return (A) this; + return this.setNewVariableLike(index, this.buildVariable(index)); } - public A setToMutations(int index,V1alpha1Mutation item) { - if (this.mutations == null) { - this.mutations = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); - if (index < 0 || index >= mutations.size()) { - _visitables.get("mutations").add(builder); - mutations.add(builder); - } else { - _visitables.get("mutations").add(builder); - mutations.set(index, builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A addToMutations(V1alpha1Mutation... items) { - if (this.mutations == null) { - this.mutations = new ArrayList(); + if (!(super.equals(o))) { + return false; } - for (V1alpha1Mutation item : items) { - V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); - _visitables.get("mutations").add(builder); - this.mutations.add(builder); + V1alpha1MutatingAdmissionPolicySpecFluent that = (V1alpha1MutatingAdmissionPolicySpecFluent) o; + if (!(Objects.equals(failurePolicy, that.failurePolicy))) { + return false; } - return (A) this; - } - - public A addAllToMutations(Collection items) { - if (this.mutations == null) { - this.mutations = new ArrayList(); + if (!(Objects.equals(matchConditions, that.matchConditions))) { + return false; } - for (V1alpha1Mutation item : items) { - V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); - _visitables.get("mutations").add(builder); - this.mutations.add(builder); + if (!(Objects.equals(matchConstraints, that.matchConstraints))) { + return false; } - return (A) this; - } - - public A removeFromMutations(V1alpha1Mutation... items) { - if (this.mutations == null) { - return (A) this; + if (!(Objects.equals(mutations, that.mutations))) { + return false; } - for (V1alpha1Mutation item : items) { - V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); - _visitables.get("mutations").remove(builder); - this.mutations.remove(builder); + if (!(Objects.equals(paramKind, that.paramKind))) { + return false; } - return (A) this; - } - - public A removeAllFromMutations(Collection items) { - if (this.mutations == null) { - return (A) this; + if (!(Objects.equals(reinvocationPolicy, that.reinvocationPolicy))) { + return false; } - for (V1alpha1Mutation item : items) { - V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); - _visitables.get("mutations").remove(builder); - this.mutations.remove(builder); + if (!(Objects.equals(variables, that.variables))) { + return false; } - return (A) this; + return true; } - public A removeMatchingFromMutations(Predicate predicate) { - if (mutations == null) { - return (A) this; - } - Iterator each = mutations.iterator(); - List visitables = _visitables.get("mutations"); - while (each.hasNext()) { - V1alpha1MutationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public String getFailurePolicy() { + return this.failurePolicy; } - public List buildMutations() { - return this.mutations != null ? build(mutations) : null; + public String getReinvocationPolicy() { + return this.reinvocationPolicy; } - public V1alpha1Mutation buildMutation(int index) { - return this.mutations.get(index).build(); + public boolean hasFailurePolicy() { + return this.failurePolicy != null; } - public V1alpha1Mutation buildFirstMutation() { - return this.mutations.get(0).build(); + public boolean hasMatchConditions() { + return this.matchConditions != null && !(this.matchConditions.isEmpty()); } - public V1alpha1Mutation buildLastMutation() { - return this.mutations.get(mutations.size() - 1).build(); + public boolean hasMatchConstraints() { + return this.matchConstraints != null; } - public V1alpha1Mutation buildMatchingMutation(Predicate predicate) { - for (V1alpha1MutationBuilder item : mutations) { + public boolean hasMatchingMatchCondition(Predicate predicate) { + for (V1alpha1MatchConditionBuilder item : matchConditions) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingMutation(Predicate predicate) { @@ -436,150 +478,193 @@ public boolean hasMatchingMutation(Predicate predicate) return false; } - public A withMutations(List mutations) { - if (this.mutations != null) { - this._visitables.get("mutations").clear(); - } - if (mutations != null) { - this.mutations = new ArrayList(); - for (V1alpha1Mutation item : mutations) { - this.addToMutations(item); + public boolean hasMatchingVariable(Predicate predicate) { + for (V1alpha1VariableBuilder item : variables) { + if (predicate.test(item)) { + return true; } - } else { - this.mutations = null; - } - return (A) this; - } - - public A withMutations(V1alpha1Mutation... mutations) { - if (this.mutations != null) { - this.mutations.clear(); - _visitables.remove("mutations"); - } - if (mutations != null) { - for (V1alpha1Mutation item : mutations) { - this.addToMutations(item); } - } - return (A) this; + return false; } public boolean hasMutations() { return this.mutations != null && !(this.mutations.isEmpty()); } - public MutationsNested addNewMutation() { - return new MutationsNested(-1, null); + public boolean hasParamKind() { + return this.paramKind != null; } - public MutationsNested addNewMutationLike(V1alpha1Mutation item) { - return new MutationsNested(-1, item); + public boolean hasReinvocationPolicy() { + return this.reinvocationPolicy != null; } - public MutationsNested setNewMutationLike(int index,V1alpha1Mutation item) { - return new MutationsNested(index, item); + public boolean hasVariables() { + return this.variables != null && !(this.variables.isEmpty()); } - public MutationsNested editMutation(int index) { - if (index <= mutations.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "mutations")); - } - return this.setNewMutationLike(index, this.buildMutation(index)); + public int hashCode() { + return Objects.hash(failurePolicy, matchConditions, matchConstraints, mutations, paramKind, reinvocationPolicy, variables); } - public MutationsNested editFirstMutation() { - if (mutations.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "mutations")); + public A removeAllFromMatchConditions(Collection items) { + if (this.matchConditions == null) { + return (A) this; } - return this.setNewMutationLike(0, this.buildMutation(0)); + for (V1alpha1MatchCondition item : items) { + V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; } - public MutationsNested editLastMutation() { - int index = mutations.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "mutations")); + public A removeAllFromMutations(Collection items) { + if (this.mutations == null) { + return (A) this; } - return this.setNewMutationLike(index, this.buildMutation(index)); + for (V1alpha1Mutation item : items) { + V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); + _visitables.get("mutations").remove(builder); + this.mutations.remove(builder); + } + return (A) this; } - public MutationsNested editMatchingMutation(Predicate predicate) { - int index = -1; - for (int i = 0;i < mutations.size();i++) { - if (predicate.test(mutations.get(i))) { - index = i; - break; - } + public A removeAllFromVariables(Collection items) { + if (this.variables == null) { + return (A) this; } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "mutations")); + for (V1alpha1Variable item : items) { + V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); + _visitables.get("variables").remove(builder); + this.variables.remove(builder); } - return this.setNewMutationLike(index, this.buildMutation(index)); + return (A) this; } - public V1alpha1ParamKind buildParamKind() { - return this.paramKind != null ? this.paramKind.build() : null; + public A removeFromMatchConditions(V1alpha1MatchCondition... items) { + if (this.matchConditions == null) { + return (A) this; + } + for (V1alpha1MatchCondition item : items) { + V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; } - public A withParamKind(V1alpha1ParamKind paramKind) { - this._visitables.remove("paramKind"); - if (paramKind != null) { - this.paramKind = new V1alpha1ParamKindBuilder(paramKind); - this._visitables.get("paramKind").add(this.paramKind); - } else { - this.paramKind = null; - this._visitables.get("paramKind").remove(this.paramKind); + public A removeFromMutations(V1alpha1Mutation... items) { + if (this.mutations == null) { + return (A) this; + } + for (V1alpha1Mutation item : items) { + V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); + _visitables.get("mutations").remove(builder); + this.mutations.remove(builder); } return (A) this; } - public boolean hasParamKind() { - return this.paramKind != null; + public A removeFromVariables(V1alpha1Variable... items) { + if (this.variables == null) { + return (A) this; + } + for (V1alpha1Variable item : items) { + V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); + _visitables.get("variables").remove(builder); + this.variables.remove(builder); + } + return (A) this; } - public ParamKindNested withNewParamKind() { - return new ParamKindNested(null); + public A removeMatchingFromMatchConditions(Predicate predicate) { + if (matchConditions == null) { + return (A) this; + } + Iterator each = matchConditions.iterator(); + List visitables = _visitables.get("matchConditions"); + while (each.hasNext()) { + V1alpha1MatchConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public ParamKindNested withNewParamKindLike(V1alpha1ParamKind item) { - return new ParamKindNested(item); + public A removeMatchingFromMutations(Predicate predicate) { + if (mutations == null) { + return (A) this; + } + Iterator each = mutations.iterator(); + List visitables = _visitables.get("mutations"); + while (each.hasNext()) { + V1alpha1MutationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public ParamKindNested editParamKind() { - return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(null)); + public A removeMatchingFromVariables(Predicate predicate) { + if (variables == null) { + return (A) this; + } + Iterator each = variables.iterator(); + List visitables = _visitables.get("variables"); + while (each.hasNext()) { + V1alpha1VariableBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public ParamKindNested editOrNewParamKind() { - return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(new V1alpha1ParamKindBuilder().build())); + public MatchConditionsNested setNewMatchConditionLike(int index,V1alpha1MatchCondition item) { + return new MatchConditionsNested(index, item); } - public ParamKindNested editOrNewParamKindLike(V1alpha1ParamKind item) { - return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(item)); + public MutationsNested setNewMutationLike(int index,V1alpha1Mutation item) { + return new MutationsNested(index, item); } - public String getReinvocationPolicy() { - return this.reinvocationPolicy; + public VariablesNested setNewVariableLike(int index,V1alpha1Variable item) { + return new VariablesNested(index, item); } - public A withReinvocationPolicy(String reinvocationPolicy) { - this.reinvocationPolicy = reinvocationPolicy; + public A setToMatchConditions(int index,V1alpha1MatchCondition item) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.set(index, builder); + } return (A) this; } - public boolean hasReinvocationPolicy() { - return this.reinvocationPolicy != null; - } - - public A addToVariables(int index,V1alpha1Variable item) { - if (this.variables == null) { - this.variables = new ArrayList(); + public A setToMutations(int index,V1alpha1Mutation item) { + if (this.mutations == null) { + this.mutations = new ArrayList(); } - V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { - _visitables.get("variables").add(builder); - variables.add(builder); + V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); + if (index < 0 || index >= mutations.size()) { + _visitables.get("mutations").add(builder); + mutations.add(builder); } else { - _visitables.get("variables").add(builder); - variables.add(index, builder); + _visitables.get("mutations").add(builder); + mutations.set(index, builder); } return (A) this; } @@ -599,102 +684,151 @@ public A setToVariables(int index,V1alpha1Variable item) { return (A) this; } - public A addToVariables(V1alpha1Variable... items) { - if (this.variables == null) { - this.variables = new ArrayList(); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(failurePolicy == null)) { + sb.append("failurePolicy:"); + sb.append(failurePolicy); + sb.append(","); } - for (V1alpha1Variable item : items) { - V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); - _visitables.get("variables").add(builder); - this.variables.add(builder); + if (!(matchConditions == null) && !(matchConditions.isEmpty())) { + sb.append("matchConditions:"); + sb.append(matchConditions); + sb.append(","); + } + if (!(matchConstraints == null)) { + sb.append("matchConstraints:"); + sb.append(matchConstraints); + sb.append(","); + } + if (!(mutations == null) && !(mutations.isEmpty())) { + sb.append("mutations:"); + sb.append(mutations); + sb.append(","); + } + if (!(paramKind == null)) { + sb.append("paramKind:"); + sb.append(paramKind); + sb.append(","); + } + if (!(reinvocationPolicy == null)) { + sb.append("reinvocationPolicy:"); + sb.append(reinvocationPolicy); + sb.append(","); + } + if (!(variables == null) && !(variables.isEmpty())) { + sb.append("variables:"); + sb.append(variables); } + sb.append("}"); + return sb.toString(); + } + + public A withFailurePolicy(String failurePolicy) { + this.failurePolicy = failurePolicy; return (A) this; } - public A addAllToVariables(Collection items) { - if (this.variables == null) { - this.variables = new ArrayList(); + public A withMatchConditions(List matchConditions) { + if (this.matchConditions != null) { + this._visitables.get("matchConditions").clear(); } - for (V1alpha1Variable item : items) { - V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); - _visitables.get("variables").add(builder); - this.variables.add(builder); + if (matchConditions != null) { + this.matchConditions = new ArrayList(); + for (V1alpha1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } else { + this.matchConditions = null; } return (A) this; } - public A removeFromVariables(V1alpha1Variable... items) { - if (this.variables == null) { - return (A) this; + public A withMatchConditions(V1alpha1MatchCondition... matchConditions) { + if (this.matchConditions != null) { + this.matchConditions.clear(); + _visitables.remove("matchConditions"); } - for (V1alpha1Variable item : items) { - V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); - _visitables.get("variables").remove(builder); - this.variables.remove(builder); + if (matchConditions != null) { + for (V1alpha1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } + return (A) this; + } + + public A withMatchConstraints(V1alpha1MatchResources matchConstraints) { + this._visitables.remove("matchConstraints"); + if (matchConstraints != null) { + this.matchConstraints = new V1alpha1MatchResourcesBuilder(matchConstraints); + this._visitables.get("matchConstraints").add(this.matchConstraints); + } else { + this.matchConstraints = null; + this._visitables.get("matchConstraints").remove(this.matchConstraints); } return (A) this; } - public A removeAllFromVariables(Collection items) { - if (this.variables == null) { - return (A) this; + public A withMutations(List mutations) { + if (this.mutations != null) { + this._visitables.get("mutations").clear(); } - for (V1alpha1Variable item : items) { - V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); - _visitables.get("variables").remove(builder); - this.variables.remove(builder); + if (mutations != null) { + this.mutations = new ArrayList(); + for (V1alpha1Mutation item : mutations) { + this.addToMutations(item); + } + } else { + this.mutations = null; } return (A) this; } - public A removeMatchingFromVariables(Predicate predicate) { - if (variables == null) { - return (A) this; + public A withMutations(V1alpha1Mutation... mutations) { + if (this.mutations != null) { + this.mutations.clear(); + _visitables.remove("mutations"); } - Iterator each = variables.iterator(); - List visitables = _visitables.get("variables"); - while (each.hasNext()) { - V1alpha1VariableBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (mutations != null) { + for (V1alpha1Mutation item : mutations) { + this.addToMutations(item); + } } return (A) this; } - public List buildVariables() { - return this.variables != null ? build(variables) : null; + public MatchConstraintsNested withNewMatchConstraints() { + return new MatchConstraintsNested(null); } - public V1alpha1Variable buildVariable(int index) { - return this.variables.get(index).build(); + public MatchConstraintsNested withNewMatchConstraintsLike(V1alpha1MatchResources item) { + return new MatchConstraintsNested(item); } - public V1alpha1Variable buildFirstVariable() { - return this.variables.get(0).build(); + public ParamKindNested withNewParamKind() { + return new ParamKindNested(null); } - public V1alpha1Variable buildLastVariable() { - return this.variables.get(variables.size() - 1).build(); + public ParamKindNested withNewParamKindLike(V1alpha1ParamKind item) { + return new ParamKindNested(item); } - public V1alpha1Variable buildMatchingVariable(Predicate predicate) { - for (V1alpha1VariableBuilder item : variables) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A withParamKind(V1alpha1ParamKind paramKind) { + this._visitables.remove("paramKind"); + if (paramKind != null) { + this.paramKind = new V1alpha1ParamKindBuilder(paramKind); + this._visitables.get("paramKind").add(this.paramKind); + } else { + this.paramKind = null; + this._visitables.get("paramKind").remove(this.paramKind); + } + return (A) this; } - public boolean hasMatchingVariable(Predicate predicate) { - for (V1alpha1VariableBuilder item : variables) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withReinvocationPolicy(String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; + return (A) this; } public A withVariables(List variables) { @@ -724,146 +858,16 @@ public A withVariables(V1alpha1Variable... variables) { } return (A) this; } + public class MatchConditionsNested extends V1alpha1MatchConditionFluent> implements Nested{ - public boolean hasVariables() { - return this.variables != null && !(this.variables.isEmpty()); - } - - public VariablesNested addNewVariable() { - return new VariablesNested(-1, null); - } - - public VariablesNested addNewVariableLike(V1alpha1Variable item) { - return new VariablesNested(-1, item); - } - - public VariablesNested setNewVariableLike(int index,V1alpha1Variable item) { - return new VariablesNested(index, item); - } - - public VariablesNested editVariable(int index) { - if (index <= variables.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "variables")); - } - return this.setNewVariableLike(index, this.buildVariable(index)); - } - - public VariablesNested editFirstVariable() { - if (variables.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "variables")); - } - return this.setNewVariableLike(0, this.buildVariable(0)); - } - - public VariablesNested editLastVariable() { - int index = variables.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "variables")); - } - return this.setNewVariableLike(index, this.buildVariable(index)); - } - - public VariablesNested editMatchingVariable(Predicate predicate) { - int index = -1; - for (int i = 0;i < variables.size();i++) { - if (predicate.test(variables.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "variables")); - } - return this.setNewVariableLike(index, this.buildVariable(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1alpha1MutatingAdmissionPolicySpecFluent that = (V1alpha1MutatingAdmissionPolicySpecFluent) o; - if (!(Objects.equals(failurePolicy, that.failurePolicy))) { - return false; - } - if (!(Objects.equals(matchConditions, that.matchConditions))) { - return false; - } - if (!(Objects.equals(matchConstraints, that.matchConstraints))) { - return false; - } - if (!(Objects.equals(mutations, that.mutations))) { - return false; - } - if (!(Objects.equals(paramKind, that.paramKind))) { - return false; - } - if (!(Objects.equals(reinvocationPolicy, that.reinvocationPolicy))) { - return false; - } - if (!(Objects.equals(variables, that.variables))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(failurePolicy, matchConditions, matchConstraints, mutations, paramKind, reinvocationPolicy, variables); - } + V1alpha1MatchConditionBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(failurePolicy == null)) { - sb.append("failurePolicy:"); - sb.append(failurePolicy); - sb.append(","); - } - if (!(matchConditions == null) && !(matchConditions.isEmpty())) { - sb.append("matchConditions:"); - sb.append(matchConditions); - sb.append(","); - } - if (!(matchConstraints == null)) { - sb.append("matchConstraints:"); - sb.append(matchConstraints); - sb.append(","); - } - if (!(mutations == null) && !(mutations.isEmpty())) { - sb.append("mutations:"); - sb.append(mutations); - sb.append(","); - } - if (!(paramKind == null)) { - sb.append("paramKind:"); - sb.append(paramKind); - sb.append(","); - } - if (!(reinvocationPolicy == null)) { - sb.append("reinvocationPolicy:"); - sb.append(reinvocationPolicy); - sb.append(","); - } - if (!(variables == null) && !(variables.isEmpty())) { - sb.append("variables:"); - sb.append(variables); - } - sb.append("}"); - return sb.toString(); - } - public class MatchConditionsNested extends V1alpha1MatchConditionFluent> implements Nested{ MatchConditionsNested(int index,V1alpha1MatchCondition item) { this.index = index; this.builder = new V1alpha1MatchConditionBuilder(this, item); } - V1alpha1MatchConditionBuilder builder; - int index; - + public N and() { return (N) V1alpha1MutatingAdmissionPolicySpecFluent.this.setToMatchConditions(index, builder.build()); } @@ -872,14 +876,15 @@ public N endMatchCondition() { return and(); } - } public class MatchConstraintsNested extends V1alpha1MatchResourcesFluent> implements Nested{ + + V1alpha1MatchResourcesBuilder builder; + MatchConstraintsNested(V1alpha1MatchResources item) { this.builder = new V1alpha1MatchResourcesBuilder(this, item); } - V1alpha1MatchResourcesBuilder builder; - + public N and() { return (N) V1alpha1MutatingAdmissionPolicySpecFluent.this.withMatchConstraints(builder.build()); } @@ -888,16 +893,17 @@ public N endMatchConstraints() { return and(); } - } public class MutationsNested extends V1alpha1MutationFluent> implements Nested{ + + V1alpha1MutationBuilder builder; + int index; + MutationsNested(int index,V1alpha1Mutation item) { this.index = index; this.builder = new V1alpha1MutationBuilder(this, item); } - V1alpha1MutationBuilder builder; - int index; - + public N and() { return (N) V1alpha1MutatingAdmissionPolicySpecFluent.this.setToMutations(index, builder.build()); } @@ -906,14 +912,15 @@ public N endMutation() { return and(); } - } public class ParamKindNested extends V1alpha1ParamKindFluent> implements Nested{ + + V1alpha1ParamKindBuilder builder; + ParamKindNested(V1alpha1ParamKind item) { this.builder = new V1alpha1ParamKindBuilder(this, item); } - V1alpha1ParamKindBuilder builder; - + public N and() { return (N) V1alpha1MutatingAdmissionPolicySpecFluent.this.withParamKind(builder.build()); } @@ -922,16 +929,17 @@ public N endParamKind() { return and(); } - } public class VariablesNested extends V1alpha1VariableFluent> implements Nested{ + + V1alpha1VariableBuilder builder; + int index; + VariablesNested(int index,V1alpha1Variable item) { this.index = index; this.builder = new V1alpha1VariableBuilder(this, item); } - V1alpha1VariableBuilder builder; - int index; - + public N and() { return (N) V1alpha1MutatingAdmissionPolicySpecFluent.this.setToVariables(index, builder.build()); } @@ -940,7 +948,5 @@ public N endVariable() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationBuilder.java index 458ba9cb5a..e0f2fae8a0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1MutationBuilder extends V1alpha1MutationFluent implements VisitableBuilder{ + + V1alpha1MutationFluent fluent; + public V1alpha1MutationBuilder() { this(new V1alpha1Mutation()); } @@ -11,17 +14,16 @@ public V1alpha1MutationBuilder(V1alpha1MutationFluent fluent) { this(fluent, new V1alpha1Mutation()); } - public V1alpha1MutationBuilder(V1alpha1MutationFluent fluent,V1alpha1Mutation instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1MutationBuilder(V1alpha1Mutation instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1MutationFluent fluent; + public V1alpha1MutationBuilder(V1alpha1MutationFluent fluent,V1alpha1Mutation instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1Mutation build() { V1alpha1Mutation buildable = new V1alpha1Mutation(); buildable.setApplyConfiguration(fluent.buildApplyConfiguration()); @@ -30,5 +32,4 @@ public V1alpha1Mutation build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationFluent.java index 56692b7f0c..b20449cbc3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationFluent.java @@ -1,28 +1,38 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1MutationFluent> extends BaseFluent{ + + private V1alpha1ApplyConfigurationBuilder applyConfiguration; + private V1alpha1JSONPatchBuilder jsonPatch; + private String patchType; + public V1alpha1MutationFluent() { } public V1alpha1MutationFluent(V1alpha1Mutation instance) { this.copyInstance(instance); } - private V1alpha1ApplyConfigurationBuilder applyConfiguration; - private V1alpha1JSONPatchBuilder jsonPatch; - private String patchType; + + public V1alpha1ApplyConfiguration buildApplyConfiguration() { + return this.applyConfiguration != null ? this.applyConfiguration.build() : null; + } + + public V1alpha1JSONPatch buildJsonPatch() { + return this.jsonPatch != null ? this.jsonPatch.build() : null; + } protected void copyInstance(V1alpha1Mutation instance) { instance = instance != null ? instance : new V1alpha1Mutation(); @@ -33,38 +43,14 @@ protected void copyInstance(V1alpha1Mutation instance) { } } - public V1alpha1ApplyConfiguration buildApplyConfiguration() { - return this.applyConfiguration != null ? this.applyConfiguration.build() : null; - } - - public A withApplyConfiguration(V1alpha1ApplyConfiguration applyConfiguration) { - this._visitables.remove("applyConfiguration"); - if (applyConfiguration != null) { - this.applyConfiguration = new V1alpha1ApplyConfigurationBuilder(applyConfiguration); - this._visitables.get("applyConfiguration").add(this.applyConfiguration); - } else { - this.applyConfiguration = null; - this._visitables.get("applyConfiguration").remove(this.applyConfiguration); - } - return (A) this; - } - - public boolean hasApplyConfiguration() { - return this.applyConfiguration != null; - } - - public ApplyConfigurationNested withNewApplyConfiguration() { - return new ApplyConfigurationNested(null); - } - - public ApplyConfigurationNested withNewApplyConfigurationLike(V1alpha1ApplyConfiguration item) { - return new ApplyConfigurationNested(item); - } - public ApplyConfigurationNested editApplyConfiguration() { return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(null)); } + public JsonPatchNested editJsonPatch() { + return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(null)); + } + public ApplyConfigurationNested editOrNewApplyConfiguration() { return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(new V1alpha1ApplyConfigurationBuilder().build())); } @@ -73,38 +59,6 @@ public ApplyConfigurationNested editOrNewApplyConfigurationLike(V1alpha1Apply return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(item)); } - public V1alpha1JSONPatch buildJsonPatch() { - return this.jsonPatch != null ? this.jsonPatch.build() : null; - } - - public A withJsonPatch(V1alpha1JSONPatch jsonPatch) { - this._visitables.remove("jsonPatch"); - if (jsonPatch != null) { - this.jsonPatch = new V1alpha1JSONPatchBuilder(jsonPatch); - this._visitables.get("jsonPatch").add(this.jsonPatch); - } else { - this.jsonPatch = null; - this._visitables.get("jsonPatch").remove(this.jsonPatch); - } - return (A) this; - } - - public boolean hasJsonPatch() { - return this.jsonPatch != null; - } - - public JsonPatchNested withNewJsonPatch() { - return new JsonPatchNested(null); - } - - public JsonPatchNested withNewJsonPatchLike(V1alpha1JSONPatch item) { - return new JsonPatchNested(item); - } - - public JsonPatchNested editJsonPatch() { - return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(null)); - } - public JsonPatchNested editOrNewJsonPatch() { return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(new V1alpha1JSONPatchBuilder().build())); } @@ -113,19 +67,6 @@ public JsonPatchNested editOrNewJsonPatchLike(V1alpha1JSONPatch item) { return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(item)); } - public String getPatchType() { - return this.patchType; - } - - public A withPatchType(String patchType) { - this.patchType = patchType; - return (A) this; - } - - public boolean hasPatchType() { - return this.patchType != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -149,6 +90,22 @@ public boolean equals(Object o) { return true; } + public String getPatchType() { + return this.patchType; + } + + public boolean hasApplyConfiguration() { + return this.applyConfiguration != null; + } + + public boolean hasJsonPatch() { + return this.jsonPatch != null; + } + + public boolean hasPatchType() { + return this.patchType != null; + } + public int hashCode() { return Objects.hash(applyConfiguration, jsonPatch, patchType); } @@ -173,12 +130,59 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApplyConfiguration(V1alpha1ApplyConfiguration applyConfiguration) { + this._visitables.remove("applyConfiguration"); + if (applyConfiguration != null) { + this.applyConfiguration = new V1alpha1ApplyConfigurationBuilder(applyConfiguration); + this._visitables.get("applyConfiguration").add(this.applyConfiguration); + } else { + this.applyConfiguration = null; + this._visitables.get("applyConfiguration").remove(this.applyConfiguration); + } + return (A) this; + } + + public A withJsonPatch(V1alpha1JSONPatch jsonPatch) { + this._visitables.remove("jsonPatch"); + if (jsonPatch != null) { + this.jsonPatch = new V1alpha1JSONPatchBuilder(jsonPatch); + this._visitables.get("jsonPatch").add(this.jsonPatch); + } else { + this.jsonPatch = null; + this._visitables.get("jsonPatch").remove(this.jsonPatch); + } + return (A) this; + } + + public ApplyConfigurationNested withNewApplyConfiguration() { + return new ApplyConfigurationNested(null); + } + + public ApplyConfigurationNested withNewApplyConfigurationLike(V1alpha1ApplyConfiguration item) { + return new ApplyConfigurationNested(item); + } + + public JsonPatchNested withNewJsonPatch() { + return new JsonPatchNested(null); + } + + public JsonPatchNested withNewJsonPatchLike(V1alpha1JSONPatch item) { + return new JsonPatchNested(item); + } + + public A withPatchType(String patchType) { + this.patchType = patchType; + return (A) this; + } public class ApplyConfigurationNested extends V1alpha1ApplyConfigurationFluent> implements Nested{ + + V1alpha1ApplyConfigurationBuilder builder; + ApplyConfigurationNested(V1alpha1ApplyConfiguration item) { this.builder = new V1alpha1ApplyConfigurationBuilder(this, item); } - V1alpha1ApplyConfigurationBuilder builder; - + public N and() { return (N) V1alpha1MutationFluent.this.withApplyConfiguration(builder.build()); } @@ -187,14 +191,15 @@ public N endApplyConfiguration() { return and(); } - } public class JsonPatchNested extends V1alpha1JSONPatchFluent> implements Nested{ + + V1alpha1JSONPatchBuilder builder; + JsonPatchNested(V1alpha1JSONPatch item) { this.builder = new V1alpha1JSONPatchBuilder(this, item); } - V1alpha1JSONPatchBuilder builder; - + public N and() { return (N) V1alpha1MutationFluent.this.withJsonPatch(builder.build()); } @@ -203,7 +208,5 @@ public N endJsonPatch() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsBuilder.java index bac5534f89..3ac6307ac7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1NamedRuleWithOperationsBuilder extends V1alpha1NamedRuleWithOperationsFluent implements VisitableBuilder{ + + V1alpha1NamedRuleWithOperationsFluent fluent; + public V1alpha1NamedRuleWithOperationsBuilder() { this(new V1alpha1NamedRuleWithOperations()); } @@ -11,17 +14,16 @@ public V1alpha1NamedRuleWithOperationsBuilder(V1alpha1NamedRuleWithOperationsFlu this(fluent, new V1alpha1NamedRuleWithOperations()); } - public V1alpha1NamedRuleWithOperationsBuilder(V1alpha1NamedRuleWithOperationsFluent fluent,V1alpha1NamedRuleWithOperations instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1NamedRuleWithOperationsBuilder(V1alpha1NamedRuleWithOperations instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1NamedRuleWithOperationsFluent fluent; + public V1alpha1NamedRuleWithOperationsBuilder(V1alpha1NamedRuleWithOperationsFluent fluent,V1alpha1NamedRuleWithOperations instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1NamedRuleWithOperations build() { V1alpha1NamedRuleWithOperations buildable = new V1alpha1NamedRuleWithOperations(); buildable.setApiGroups(fluent.getApiGroups()); @@ -33,5 +35,4 @@ public V1alpha1NamedRuleWithOperations build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsFluent.java index c5b041c1bf..347b2e082f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,150 +16,99 @@ */ @SuppressWarnings("unchecked") public class V1alpha1NamedRuleWithOperationsFluent> extends BaseFluent{ - public V1alpha1NamedRuleWithOperationsFluent() { - } - - public V1alpha1NamedRuleWithOperationsFluent(V1alpha1NamedRuleWithOperations instance) { - this.copyInstance(instance); - } + private List apiGroups; private List apiVersions; private List operations; private List resourceNames; private List resources; private String scope; - - protected void copyInstance(V1alpha1NamedRuleWithOperations instance) { - instance = instance != null ? instance : new V1alpha1NamedRuleWithOperations(); - if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withApiVersions(instance.getApiVersions()); - this.withOperations(instance.getOperations()); - this.withResourceNames(instance.getResourceNames()); - this.withResources(instance.getResources()); - this.withScope(instance.getScope()); - } + + public V1alpha1NamedRuleWithOperationsFluent() { } - public A addToApiGroups(int index,String item) { + public V1alpha1NamedRuleWithOperationsFluent(V1alpha1NamedRuleWithOperations instance) { + this.copyInstance(instance); + } + + public A addAllToApiGroups(Collection items) { if (this.apiGroups == null) { this.apiGroups = new ArrayList(); } - this.apiGroups.add(index, item); + for (String item : items) { + this.apiGroups.add(item); + } return (A) this; } - public A setToApiGroups(int index,String item) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + public A addAllToApiVersions(Collection items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.add(item); } - this.apiGroups.set(index, item); return (A) this; } - public A addToApiGroups(String... items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + public A addAllToOperations(Collection items) { + if (this.operations == null) { + this.operations = new ArrayList(); } for (String item : items) { - this.apiGroups.add(item); + this.operations.add(item); } return (A) this; } - public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + public A addAllToResourceNames(Collection items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); } for (String item : items) { - this.apiGroups.add(item); + this.resourceNames.add(item); } return (A) this; } - public A removeFromApiGroups(String... items) { - if (this.apiGroups == null) { - return (A) this; + public A addAllToResources(Collection items) { + if (this.resources == null) { + this.resources = new ArrayList(); } for (String item : items) { - this.apiGroups.remove(item); + this.resources.add(item); } return (A) this; } - public A removeAllFromApiGroups(Collection items) { + public A addToApiGroups(String... items) { if (this.apiGroups == null) { - return (A) this; + this.apiGroups = new ArrayList(); } for (String item : items) { - this.apiGroups.remove(item); + this.apiGroups.add(item); } return (A) this; } - public List getApiGroups() { - return this.apiGroups; - } - - public String getApiGroup(int index) { - return this.apiGroups.get(index); - } - - public String getFirstApiGroup() { - return this.apiGroups.get(0); - } - - public String getLastApiGroup() { - return this.apiGroups.get(apiGroups.size() - 1); - } - - public String getMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withApiGroups(List apiGroups) { - if (apiGroups != null) { - this.apiGroups = new ArrayList(); - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } else { - this.apiGroups = null; + public A addToApiGroups(int index,String item) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); } + this.apiGroups.add(index, item); return (A) this; } - public A withApiGroups(String... apiGroups) { - if (this.apiGroups != null) { - this.apiGroups.clear(); - _visitables.remove("apiGroups"); + public A addToApiVersions(String... items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); } - if (apiGroups != null) { - for (String item : apiGroups) { - this.addToApiGroups(item); - } + for (String item : items) { + this.apiVersions.add(item); } return (A) this; } - public boolean hasApiGroups() { - return this.apiGroups != null && !(this.apiGroups.isEmpty()); - } - public A addToApiVersions(int index,String item) { if (this.apiVersions == null) { this.apiVersions = new ArrayList(); @@ -168,187 +117,176 @@ public A addToApiVersions(int index,String item) { return (A) this; } - public A setToApiVersions(int index,String item) { - if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + public A addToOperations(String... items) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + for (String item : items) { + this.operations.add(item); } - this.apiVersions.set(index, item); return (A) this; } - public A addToApiVersions(String... items) { - if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); - } - for (String item : items) { - this.apiVersions.add(item); + public A addToOperations(int index,String item) { + if (this.operations == null) { + this.operations = new ArrayList(); } + this.operations.add(index, item); return (A) this; } - public A addAllToApiVersions(Collection items) { - if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + public A addToResourceNames(String... items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); } for (String item : items) { - this.apiVersions.add(item); + this.resourceNames.add(item); } return (A) this; } - public A removeFromApiVersions(String... items) { - if (this.apiVersions == null) { - return (A) this; - } - for (String item : items) { - this.apiVersions.remove(item); + public A addToResourceNames(int index,String item) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); } + this.resourceNames.add(index, item); return (A) this; } - public A removeAllFromApiVersions(Collection items) { - if (this.apiVersions == null) { - return (A) this; + public A addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); } for (String item : items) { - this.apiVersions.remove(item); + this.resources.add(item); } return (A) this; } - public List getApiVersions() { - return this.apiVersions; + public A addToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.add(index, item); + return (A) this; } - public String getApiVersion(int index) { - return this.apiVersions.get(index); + protected void copyInstance(V1alpha1NamedRuleWithOperations instance) { + instance = instance != null ? instance : new V1alpha1NamedRuleWithOperations(); + if (instance != null) { + this.withApiGroups(instance.getApiGroups()); + this.withApiVersions(instance.getApiVersions()); + this.withOperations(instance.getOperations()); + this.withResourceNames(instance.getResourceNames()); + this.withResources(instance.getResources()); + this.withScope(instance.getScope()); + } } - public String getFirstApiVersion() { - return this.apiVersions.get(0); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1NamedRuleWithOperationsFluent that = (V1alpha1NamedRuleWithOperationsFluent) o; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(apiVersions, that.apiVersions))) { + return false; + } + if (!(Objects.equals(operations, that.operations))) { + return false; + } + if (!(Objects.equals(resourceNames, that.resourceNames))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(scope, that.scope))) { + return false; + } + return true; } - public String getLastApiVersion() { - return this.apiVersions.get(apiVersions.size() - 1); + public String getApiGroup(int index) { + return this.apiGroups.get(index); } - public String getMatchingApiVersion(Predicate predicate) { - for (String item : apiVersions) { - if (predicate.test(item)) { - return item; - } - } - return null; + public List getApiGroups() { + return this.apiGroups; } - public boolean hasMatchingApiVersion(Predicate predicate) { - for (String item : apiVersions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public String getApiVersion(int index) { + return this.apiVersions.get(index); } - public A withApiVersions(List apiVersions) { - if (apiVersions != null) { - this.apiVersions = new ArrayList(); - for (String item : apiVersions) { - this.addToApiVersions(item); - } - } else { - this.apiVersions = null; - } - return (A) this; + public List getApiVersions() { + return this.apiVersions; } - public A withApiVersions(String... apiVersions) { - if (this.apiVersions != null) { - this.apiVersions.clear(); - _visitables.remove("apiVersions"); - } - if (apiVersions != null) { - for (String item : apiVersions) { - this.addToApiVersions(item); - } - } - return (A) this; + public String getFirstApiGroup() { + return this.apiGroups.get(0); } - public boolean hasApiVersions() { - return this.apiVersions != null && !(this.apiVersions.isEmpty()); + public String getFirstApiVersion() { + return this.apiVersions.get(0); } - public A addToOperations(int index,String item) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - this.operations.add(index, item); - return (A) this; + public String getFirstOperation() { + return this.operations.get(0); } - public A setToOperations(int index,String item) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - this.operations.set(index, item); - return (A) this; + public String getFirstResource() { + return this.resources.get(0); } - public A addToOperations(String... items) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - for (String item : items) { - this.operations.add(item); - } - return (A) this; + public String getFirstResourceName() { + return this.resourceNames.get(0); } - public A addAllToOperations(Collection items) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - for (String item : items) { - this.operations.add(item); - } - return (A) this; + public String getLastApiGroup() { + return this.apiGroups.get(apiGroups.size() - 1); } - public A removeFromOperations(String... items) { - if (this.operations == null) { - return (A) this; - } - for (String item : items) { - this.operations.remove(item); - } - return (A) this; + public String getLastApiVersion() { + return this.apiVersions.get(apiVersions.size() - 1); } - public A removeAllFromOperations(Collection items) { - if (this.operations == null) { - return (A) this; - } - for (String item : items) { - this.operations.remove(item); - } - return (A) this; + public String getLastOperation() { + return this.operations.get(operations.size() - 1); } - public List getOperations() { - return this.operations; + public String getLastResource() { + return this.resources.get(resources.size() - 1); } - public String getOperation(int index) { - return this.operations.get(index); + public String getLastResourceName() { + return this.resourceNames.get(resourceNames.size() - 1); } - public String getFirstOperation() { - return this.operations.get(0); + public String getMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public String getLastOperation() { - return this.operations.get(operations.size() - 1); + public String getMatchingApiVersion(Predicate predicate) { + for (String item : apiVersions) { + if (predicate.test(item)) { + return item; + } + } + return null; } public String getMatchingOperation(Predicate predicate) { @@ -360,123 +298,94 @@ public String getMatchingOperation(Predicate predicate) { return null; } - public boolean hasMatchingOperation(Predicate predicate) { - for (String item : operations) { + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withOperations(List operations) { - if (operations != null) { - this.operations = new ArrayList(); - for (String item : operations) { - this.addToOperations(item); + public String getMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { + if (predicate.test(item)) { + return item; } - } else { - this.operations = null; - } - return (A) this; + } + return null; } - public A withOperations(String... operations) { - if (this.operations != null) { - this.operations.clear(); - _visitables.remove("operations"); - } - if (operations != null) { - for (String item : operations) { - this.addToOperations(item); - } - } - return (A) this; + public String getOperation(int index) { + return this.operations.get(index); } - public boolean hasOperations() { - return this.operations != null && !(this.operations.isEmpty()); + public List getOperations() { + return this.operations; } - public A addToResourceNames(int index,String item) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - this.resourceNames.add(index, item); - return (A) this; + public String getResource(int index) { + return this.resources.get(index); } - public A setToResourceNames(int index,String item) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - this.resourceNames.set(index, item); - return (A) this; + public String getResourceName(int index) { + return this.resourceNames.get(index); } - public A addToResourceNames(String... items) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - for (String item : items) { - this.resourceNames.add(item); - } - return (A) this; + public List getResourceNames() { + return this.resourceNames; } - public A addAllToResourceNames(Collection items) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - for (String item : items) { - this.resourceNames.add(item); - } - return (A) this; + public List getResources() { + return this.resources; } - public A removeFromResourceNames(String... items) { - if (this.resourceNames == null) { - return (A) this; - } - for (String item : items) { - this.resourceNames.remove(item); - } - return (A) this; + public String getScope() { + return this.scope; } - public A removeAllFromResourceNames(Collection items) { - if (this.resourceNames == null) { - return (A) this; - } - for (String item : items) { - this.resourceNames.remove(item); - } - return (A) this; + public boolean hasApiGroups() { + return this.apiGroups != null && !(this.apiGroups.isEmpty()); } - public List getResourceNames() { - return this.resourceNames; + public boolean hasApiVersions() { + return this.apiVersions != null && !(this.apiVersions.isEmpty()); } - public String getResourceName(int index) { - return this.resourceNames.get(index); + public boolean hasMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getFirstResourceName() { - return this.resourceNames.get(0); + public boolean hasMatchingApiVersion(Predicate predicate) { + for (String item : apiVersions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getLastResourceName() { - return this.resourceNames.get(resourceNames.size() - 1); + public boolean hasMatchingOperation(Predicate predicate) { + for (String item : operations) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getMatchingResourceName(Predicate predicate) { - for (String item : resourceNames) { + public boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { - return item; + return true; } } - return null; + return false; } public boolean hasMatchingResourceName(Predicate predicate) { @@ -488,77 +397,62 @@ public boolean hasMatchingResourceName(Predicate predicate) { return false; } - public A withResourceNames(List resourceNames) { - if (resourceNames != null) { - this.resourceNames = new ArrayList(); - for (String item : resourceNames) { - this.addToResourceNames(item); - } - } else { - this.resourceNames = null; - } - return (A) this; - } - - public A withResourceNames(String... resourceNames) { - if (this.resourceNames != null) { - this.resourceNames.clear(); - _visitables.remove("resourceNames"); - } - if (resourceNames != null) { - for (String item : resourceNames) { - this.addToResourceNames(item); - } - } - return (A) this; + public boolean hasOperations() { + return this.operations != null && !(this.operations.isEmpty()); } public boolean hasResourceNames() { return this.resourceNames != null && !(this.resourceNames.isEmpty()); } - public A addToResources(int index,String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - this.resources.add(index, item); - return (A) this; + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); } - public A setToResources(int index,String item) { - if (this.resources == null) { - this.resources = new ArrayList(); + public boolean hasScope() { + return this.scope != null; + } + + public int hashCode() { + return Objects.hash(apiGroups, apiVersions, operations, resourceNames, resources, scope); + } + + public A removeAllFromApiGroups(Collection items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); } - this.resources.set(index, item); return (A) this; } - public A addToResources(String... items) { - if (this.resources == null) { - this.resources = new ArrayList(); + public A removeAllFromApiVersions(Collection items) { + if (this.apiVersions == null) { + return (A) this; } for (String item : items) { - this.resources.add(item); + this.apiVersions.remove(item); } return (A) this; } - public A addAllToResources(Collection items) { - if (this.resources == null) { - this.resources = new ArrayList(); + public A removeAllFromOperations(Collection items) { + if (this.operations == null) { + return (A) this; } for (String item : items) { - this.resources.add(item); + this.operations.remove(item); } return (A) this; } - public A removeFromResources(String... items) { - if (this.resources == null) { + public A removeAllFromResourceNames(Collection items) { + if (this.resourceNames == null) { return (A) this; } for (String item : items) { - this.resources.remove(item); + this.resourceNames.remove(item); } return (A) this; } @@ -573,116 +467,94 @@ public A removeAllFromResources(Collection items) { return (A) this; } - public List getResources() { - return this.resources; - } - - public String getResource(int index) { - return this.resources.get(index); - } - - public String getFirstResource() { - return this.resources.get(0); - } - - public String getLastResource() { - return this.resources.get(resources.size() - 1); - } - - public String getMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } - public boolean hasMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A removeFromApiVersions(String... items) { + if (this.apiVersions == null) { + return (A) this; + } + for (String item : items) { + this.apiVersions.remove(item); + } + return (A) this; } - public A withResources(List resources) { - if (resources != null) { - this.resources = new ArrayList(); - for (String item : resources) { - this.addToResources(item); - } - } else { - this.resources = null; + public A removeFromOperations(String... items) { + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.remove(item); } return (A) this; } - public A withResources(String... resources) { - if (this.resources != null) { - this.resources.clear(); - _visitables.remove("resources"); + public A removeFromResourceNames(String... items) { + if (this.resourceNames == null) { + return (A) this; } - if (resources != null) { - for (String item : resources) { - this.addToResources(item); - } + for (String item : items) { + this.resourceNames.remove(item); } return (A) this; } - public boolean hasResources() { - return this.resources != null && !(this.resources.isEmpty()); + public A removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } - public String getScope() { - return this.scope; + public A setToApiGroups(int index,String item) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + this.apiGroups.set(index, item); + return (A) this; } - public A withScope(String scope) { - this.scope = scope; + public A setToApiVersions(int index,String item) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + this.apiVersions.set(index, item); return (A) this; } - public boolean hasScope() { - return this.scope != null; + public A setToOperations(int index,String item) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + this.operations.set(index, item); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1alpha1NamedRuleWithOperationsFluent that = (V1alpha1NamedRuleWithOperationsFluent) o; - if (!(Objects.equals(apiGroups, that.apiGroups))) { - return false; - } - if (!(Objects.equals(apiVersions, that.apiVersions))) { - return false; - } - if (!(Objects.equals(operations, that.operations))) { - return false; - } - if (!(Objects.equals(resourceNames, that.resourceNames))) { - return false; - } - if (!(Objects.equals(resources, that.resources))) { - return false; - } - if (!(Objects.equals(scope, that.scope))) { - return false; + public A setToResourceNames(int index,String item) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); } - return true; + this.resourceNames.set(index, item); + return (A) this; } - public int hashCode() { - return Objects.hash(apiGroups, apiVersions, operations, resourceNames, resources, scope); + public A setToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.set(index, item); + return (A) this; } public String toString() { @@ -721,5 +593,134 @@ public String toString() { return sb.toString(); } - + public A withApiGroups(List apiGroups) { + if (apiGroups != null) { + this.apiGroups = new ArrayList(); + for (String item : apiGroups) { + this.addToApiGroups(item); + } + } else { + this.apiGroups = null; + } + return (A) this; + } + + public A withApiGroups(String... apiGroups) { + if (this.apiGroups != null) { + this.apiGroups.clear(); + _visitables.remove("apiGroups"); + } + if (apiGroups != null) { + for (String item : apiGroups) { + this.addToApiGroups(item); + } + } + return (A) this; + } + + public A withApiVersions(List apiVersions) { + if (apiVersions != null) { + this.apiVersions = new ArrayList(); + for (String item : apiVersions) { + this.addToApiVersions(item); + } + } else { + this.apiVersions = null; + } + return (A) this; + } + + public A withApiVersions(String... apiVersions) { + if (this.apiVersions != null) { + this.apiVersions.clear(); + _visitables.remove("apiVersions"); + } + if (apiVersions != null) { + for (String item : apiVersions) { + this.addToApiVersions(item); + } + } + return (A) this; + } + + public A withOperations(List operations) { + if (operations != null) { + this.operations = new ArrayList(); + for (String item : operations) { + this.addToOperations(item); + } + } else { + this.operations = null; + } + return (A) this; + } + + public A withOperations(String... operations) { + if (this.operations != null) { + this.operations.clear(); + _visitables.remove("operations"); + } + if (operations != null) { + for (String item : operations) { + this.addToOperations(item); + } + } + return (A) this; + } + + public A withResourceNames(List resourceNames) { + if (resourceNames != null) { + this.resourceNames = new ArrayList(); + for (String item : resourceNames) { + this.addToResourceNames(item); + } + } else { + this.resourceNames = null; + } + return (A) this; + } + + public A withResourceNames(String... resourceNames) { + if (this.resourceNames != null) { + this.resourceNames.clear(); + _visitables.remove("resourceNames"); + } + if (resourceNames != null) { + for (String item : resourceNames) { + this.addToResourceNames(item); + } + } + return (A) this; + } + + public A withResources(List resources) { + if (resources != null) { + this.resources = new ArrayList(); + for (String item : resources) { + this.addToResources(item); + } + } else { + this.resources = null; + } + return (A) this; + } + + public A withResources(String... resources) { + if (this.resources != null) { + this.resources.clear(); + _visitables.remove("resources"); + } + if (resources != null) { + for (String item : resources) { + this.addToResources(item); + } + } + return (A) this; + } + + public A withScope(String scope) { + this.scope = scope; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindBuilder.java index d16c9e9e65..dac4c528f9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1ParamKindBuilder extends V1alpha1ParamKindFluent implements VisitableBuilder{ + + V1alpha1ParamKindFluent fluent; + public V1alpha1ParamKindBuilder() { this(new V1alpha1ParamKind()); } @@ -11,17 +14,16 @@ public V1alpha1ParamKindBuilder(V1alpha1ParamKindFluent fluent) { this(fluent, new V1alpha1ParamKind()); } - public V1alpha1ParamKindBuilder(V1alpha1ParamKindFluent fluent,V1alpha1ParamKind instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1ParamKindBuilder(V1alpha1ParamKind instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1ParamKindFluent fluent; + public V1alpha1ParamKindBuilder(V1alpha1ParamKindFluent fluent,V1alpha1ParamKind instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1ParamKind build() { V1alpha1ParamKind buildable = new V1alpha1ParamKind(); buildable.setApiVersion(fluent.getApiVersion()); @@ -29,5 +31,4 @@ public V1alpha1ParamKind build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindFluent.java index db2085e0b5..7d1d591cd7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1ParamKindFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + public V1alpha1ParamKindFluent() { } public V1alpha1ParamKindFluent(V1alpha1ParamKind instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - + protected void copyInstance(V1alpha1ParamKind instance) { instance = instance != null ? instance : new V1alpha1ParamKind(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1alpha1ParamKind instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefBuilder.java index 5072a3167d..7a41459a29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1ParamRefBuilder extends V1alpha1ParamRefFluent implements VisitableBuilder{ + + V1alpha1ParamRefFluent fluent; + public V1alpha1ParamRefBuilder() { this(new V1alpha1ParamRef()); } @@ -11,17 +14,16 @@ public V1alpha1ParamRefBuilder(V1alpha1ParamRefFluent fluent) { this(fluent, new V1alpha1ParamRef()); } - public V1alpha1ParamRefBuilder(V1alpha1ParamRefFluent fluent,V1alpha1ParamRef instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1ParamRefBuilder(V1alpha1ParamRef instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1ParamRefFluent fluent; + public V1alpha1ParamRefBuilder(V1alpha1ParamRefFluent fluent,V1alpha1ParamRef instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1ParamRef build() { V1alpha1ParamRef buildable = new V1alpha1ParamRef(); buildable.setName(fluent.getName()); @@ -31,5 +33,4 @@ public V1alpha1ParamRef build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefFluent.java index 185e3d1619..c833d779e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefFluent.java @@ -1,29 +1,35 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1ParamRefFluent> extends BaseFluent{ + + private String name; + private String namespace; + private String parameterNotFoundAction; + private V1LabelSelectorBuilder selector; + public V1alpha1ParamRefFluent() { } public V1alpha1ParamRefFluent(V1alpha1ParamRef instance) { this.copyInstance(instance); } - private String name; - private String namespace; - private String parameterNotFoundAction; - private V1LabelSelectorBuilder selector; + + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; + } protected void copyInstance(V1alpha1ParamRef instance) { instance = instance != null ? instance : new V1alpha1ParamRef(); @@ -35,77 +41,6 @@ protected void copyInstance(V1alpha1ParamRef instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - - public String getParameterNotFoundAction() { - return this.parameterNotFoundAction; - } - - public A withParameterNotFoundAction(String parameterNotFoundAction) { - this.parameterNotFoundAction = parameterNotFoundAction; - return (A) this; - } - - public boolean hasParameterNotFoundAction() { - return this.parameterNotFoundAction != null; - } - - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public A withSelector(V1LabelSelector selector) { - this._visitables.remove("selector"); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - this._visitables.get("selector").add(this.selector); - } else { - this.selector = null; - this._visitables.get("selector").remove(this.selector); - } - return (A) this; - } - - public boolean hasSelector() { - return this.selector != null; - } - - public SelectorNested withNewSelector() { - return new SelectorNested(null); - } - - public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); - } - - public SelectorNested editSelector() { - return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); - } - public SelectorNested editOrNewSelector() { return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } @@ -114,6 +49,10 @@ public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -140,6 +79,34 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; + } + + public String getParameterNotFoundAction() { + return this.parameterNotFoundAction; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public boolean hasParameterNotFoundAction() { + return this.parameterNotFoundAction != null; + } + + public boolean hasSelector() { + return this.selector != null; + } + public int hashCode() { return Objects.hash(name, namespace, parameterNotFoundAction, selector); } @@ -169,12 +136,49 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public SelectorNested withNewSelector() { + return new SelectorNested(null); + } + + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); + } + + public A withParameterNotFoundAction(String parameterNotFoundAction) { + this.parameterNotFoundAction = parameterNotFoundAction; + return (A) this; + } + + public A withSelector(V1LabelSelector selector) { + this._visitables.remove("selector"); + if (selector != null) { + this.selector = new V1LabelSelectorBuilder(selector); + this._visitables.get("selector").add(this.selector); + } else { + this.selector = null; + this._visitables.get("selector").remove(this.selector); + } + return (A) this; + } public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + SelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1alpha1ParamRefFluent.this.withSelector(builder.build()); } @@ -183,7 +187,5 @@ public N endSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestBuilder.java index b6b4d0cd79..73bf187fd0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1PodCertificateRequestBuilder extends V1alpha1PodCertificateRequestFluent implements VisitableBuilder{ + + V1alpha1PodCertificateRequestFluent fluent; + public V1alpha1PodCertificateRequestBuilder() { this(new V1alpha1PodCertificateRequest()); } @@ -11,17 +14,16 @@ public V1alpha1PodCertificateRequestBuilder(V1alpha1PodCertificateRequestFluent< this(fluent, new V1alpha1PodCertificateRequest()); } - public V1alpha1PodCertificateRequestBuilder(V1alpha1PodCertificateRequestFluent fluent,V1alpha1PodCertificateRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1PodCertificateRequestBuilder(V1alpha1PodCertificateRequest instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1PodCertificateRequestFluent fluent; + public V1alpha1PodCertificateRequestBuilder(V1alpha1PodCertificateRequestFluent fluent,V1alpha1PodCertificateRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1PodCertificateRequest build() { V1alpha1PodCertificateRequest buildable = new V1alpha1PodCertificateRequest(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1alpha1PodCertificateRequest build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestFluent.java index 7b1a6acb3b..b17f4ad8e5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1PodCertificateRequestFluent> extends BaseFluent{ - public V1alpha1PodCertificateRequestFluent() { - } - - public V1alpha1PodCertificateRequestFluent(V1alpha1PodCertificateRequest instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1alpha1PodCertificateRequestSpecBuilder spec; private V1alpha1PodCertificateRequestStatusBuilder status; - - protected void copyInstance(V1alpha1PodCertificateRequest instance) { - instance = instance != null ? instance : new V1alpha1PodCertificateRequest(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1alpha1PodCertificateRequestFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1alpha1PodCertificateRequestFluent(V1alpha1PodCertificateRequest instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1alpha1PodCertificateRequestSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1alpha1PodCertificateRequestStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1alpha1PodCertificateRequest instance) { + instance = instance != null ? instance : new V1alpha1PodCertificateRequest(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1alpha1PodCertificateRequestSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1alpha1PodCertificateRequestSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1alpha1PodCertificateRequestSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1alpha1PodCertificateRequestSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha1PodCertificateRequestSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1alpha1PodCertificateRequestSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1alpha1PodCertificateRequestStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1alpha1PodCertificateRequestStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1alpha1PodCertificateRequestStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1alpha1PodCertificateRequestStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1alpha1PodCertificateRequestStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1alpha1PodCertificateRequestStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1alpha1PodCertificateRequestStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1alpha1PodCertificateRequestStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha1PodCertificateRequestSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1alpha1PodCertificateRequestStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1alpha1PodCertificateRequestSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha1PodCertificateRequestSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1alpha1PodCertificateRequestStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1alpha1PodCertificateRequestStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1alpha1PodCertificateRequestFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1alpha1PodCertificateRequestSpecFluent> implements Nested{ + + V1alpha1PodCertificateRequestSpecBuilder builder; + SpecNested(V1alpha1PodCertificateRequestSpec item) { this.builder = new V1alpha1PodCertificateRequestSpecBuilder(this, item); } - V1alpha1PodCertificateRequestSpecBuilder builder; - + public N and() { return (N) V1alpha1PodCertificateRequestFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1alpha1PodCertificateRequestStatusFluent> implements Nested{ + + V1alpha1PodCertificateRequestStatusBuilder builder; + StatusNested(V1alpha1PodCertificateRequestStatus item) { this.builder = new V1alpha1PodCertificateRequestStatusBuilder(this, item); } - V1alpha1PodCertificateRequestStatusBuilder builder; - + public N and() { return (N) V1alpha1PodCertificateRequestFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestListBuilder.java index aeaa911eff..a78876516b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1PodCertificateRequestListBuilder extends V1alpha1PodCertificateRequestListFluent implements VisitableBuilder{ + + V1alpha1PodCertificateRequestListFluent fluent; + public V1alpha1PodCertificateRequestListBuilder() { this(new V1alpha1PodCertificateRequestList()); } @@ -11,17 +14,16 @@ public V1alpha1PodCertificateRequestListBuilder(V1alpha1PodCertificateRequestLis this(fluent, new V1alpha1PodCertificateRequestList()); } - public V1alpha1PodCertificateRequestListBuilder(V1alpha1PodCertificateRequestListFluent fluent,V1alpha1PodCertificateRequestList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1PodCertificateRequestListBuilder(V1alpha1PodCertificateRequestList instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1PodCertificateRequestListFluent fluent; + public V1alpha1PodCertificateRequestListBuilder(V1alpha1PodCertificateRequestListFluent fluent,V1alpha1PodCertificateRequestList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1PodCertificateRequestList build() { V1alpha1PodCertificateRequestList buildable = new V1alpha1PodCertificateRequestList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1alpha1PodCertificateRequestList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestListFluent.java index 06a25ab817..c000bada27 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1PodCertificateRequestListFluent> extends BaseFluent{ - public V1alpha1PodCertificateRequestListFluent() { - } - - public V1alpha1PodCertificateRequestListFluent(V1alpha1PodCertificateRequestList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha1PodCertificateRequestList instance) { - instance = instance != null ? instance : new V1alpha1PodCertificateRequestList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1alpha1PodCertificateRequestListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1alpha1PodCertificateRequestListFluent(V1alpha1PodCertificateRequestList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1alpha1PodCertificateRequest item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1alpha1PodCertificateRequestBuilder builder = new V1alpha1PodCertificateRequestBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1alpha1PodCertificateRequest item : items) { + V1alpha1PodCertificateRequestBuilder builder = new V1alpha1PodCertificateRequestBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1alpha1PodCertificateRequest item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1alpha1PodCertificateRequestBuilder builder = new V1alpha1PodCertificateRequestBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha1PodCertificateRequest item) { + return new ItemsNested(-1, item); } public A addToItems(V1alpha1PodCertificateRequest... items) { @@ -96,68 +65,31 @@ public A addToItems(V1alpha1PodCertificateRequest... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1alpha1PodCertificateRequest item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1alpha1PodCertificateRequest item : items) { - V1alpha1PodCertificateRequestBuilder builder = new V1alpha1PodCertificateRequestBuilder(item); + V1alpha1PodCertificateRequestBuilder builder = new V1alpha1PodCertificateRequestBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1alpha1PodCertificateRequest... items) { - if (this.items == null) { - return (A) this; - } - for (V1alpha1PodCertificateRequest item : items) { - V1alpha1PodCertificateRequestBuilder builder = new V1alpha1PodCertificateRequestBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1alpha1PodCertificateRequest item : items) { - V1alpha1PodCertificateRequestBuilder builder = new V1alpha1PodCertificateRequestBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha1PodCertificateRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1alpha1PodCertificateRequest buildFirstItem() { + return this.items.get(0).build(); } public V1alpha1PodCertificateRequest buildItem(int index) { return this.items.get(index).build(); } - public V1alpha1PodCertificateRequest buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1alpha1PodCertificateRequest buildLastItem() { @@ -173,73 +105,34 @@ public V1alpha1PodCertificateRequest buildMatchingItem(Predicate predicate) { - for (V1alpha1PodCertificateRequestBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha1PodCertificateRequest item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1alpha1PodCertificateRequestList instance) { + instance = instance != null ? instance : new V1alpha1PodCertificateRequestList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1alpha1PodCertificateRequest... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha1PodCertificateRequest item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha1PodCertificateRequest item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha1PodCertificateRequest item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1PodCertificateRequestBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1PodCertificateRequest item : items) { + V1alpha1PodCertificateRequestBuilder builder = new V1alpha1PodCertificateRequestBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1alpha1PodCertificateRequest... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1PodCertificateRequest item : items) { + V1alpha1PodCertificateRequestBuilder builder = new V1alpha1PodCertificateRequestBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha1PodCertificateRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1alpha1PodCertificateRequest item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1alpha1PodCertificateRequest item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha1PodCertificateRequestBuilder builder = new V1alpha1PodCertificateRequestBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha1PodCertificateRequest item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1alpha1PodCertificateRequest... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha1PodCertificateRequest item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1alpha1PodCertificateRequestFluent> implements Nested{ + + V1alpha1PodCertificateRequestBuilder builder; + int index; + ItemsNested(int index,V1alpha1PodCertificateRequest item) { this.index = index; this.builder = new V1alpha1PodCertificateRequestBuilder(this, item); } - V1alpha1PodCertificateRequestBuilder builder; - int index; - + public N and() { return (N) V1alpha1PodCertificateRequestListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1alpha1PodCertificateRequestListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpecBuilder.java index 80ad69b1cd..a751bb1866 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1PodCertificateRequestSpecBuilder extends V1alpha1PodCertificateRequestSpecFluent implements VisitableBuilder{ + + V1alpha1PodCertificateRequestSpecFluent fluent; + public V1alpha1PodCertificateRequestSpecBuilder() { this(new V1alpha1PodCertificateRequestSpec()); } @@ -11,17 +14,16 @@ public V1alpha1PodCertificateRequestSpecBuilder(V1alpha1PodCertificateRequestSpe this(fluent, new V1alpha1PodCertificateRequestSpec()); } - public V1alpha1PodCertificateRequestSpecBuilder(V1alpha1PodCertificateRequestSpecFluent fluent,V1alpha1PodCertificateRequestSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1PodCertificateRequestSpecBuilder(V1alpha1PodCertificateRequestSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1PodCertificateRequestSpecFluent fluent; + public V1alpha1PodCertificateRequestSpecBuilder(V1alpha1PodCertificateRequestSpecFluent fluent,V1alpha1PodCertificateRequestSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1PodCertificateRequestSpec build() { V1alpha1PodCertificateRequestSpec buildable = new V1alpha1PodCertificateRequestSpec(); buildable.setMaxExpirationSeconds(fluent.getMaxExpirationSeconds()); @@ -37,5 +39,4 @@ public V1alpha1PodCertificateRequestSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpecFluent.java index 62ec63bdd4..56fd00c7d1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpecFluent.java @@ -1,28 +1,23 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Byte; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.ArrayList; -import java.lang.String; -import java.lang.Integer; -import java.lang.Byte; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1PodCertificateRequestSpecFluent> extends BaseFluent{ - public V1alpha1PodCertificateRequestSpecFluent() { - } - - public V1alpha1PodCertificateRequestSpecFluent(V1alpha1PodCertificateRequestSpec instance) { - this.copyInstance(instance); - } + private Integer maxExpirationSeconds; private String nodeName; private String nodeUID; @@ -33,6 +28,69 @@ public V1alpha1PodCertificateRequestSpecFluent(V1alpha1PodCertificateRequestSpec private String serviceAccountName; private String serviceAccountUID; private String signerName; + + public V1alpha1PodCertificateRequestSpecFluent() { + } + + public V1alpha1PodCertificateRequestSpecFluent(V1alpha1PodCertificateRequestSpec instance) { + this.copyInstance(instance); + } + + public A addAllToPkixPublicKey(Collection items) { + if (this.pkixPublicKey == null) { + this.pkixPublicKey = new ArrayList(); + } + for (Byte item : items) { + this.pkixPublicKey.add(item); + } + return (A) this; + } + + public A addAllToProofOfPossession(Collection items) { + if (this.proofOfPossession == null) { + this.proofOfPossession = new ArrayList(); + } + for (Byte item : items) { + this.proofOfPossession.add(item); + } + return (A) this; + } + + public A addToPkixPublicKey(Byte... items) { + if (this.pkixPublicKey == null) { + this.pkixPublicKey = new ArrayList(); + } + for (Byte item : items) { + this.pkixPublicKey.add(item); + } + return (A) this; + } + + public A addToPkixPublicKey(int index,Byte item) { + if (this.pkixPublicKey == null) { + this.pkixPublicKey = new ArrayList(); + } + this.pkixPublicKey.add(index, item); + return (A) this; + } + + public A addToProofOfPossession(Byte... items) { + if (this.proofOfPossession == null) { + this.proofOfPossession = new ArrayList(); + } + for (Byte item : items) { + this.proofOfPossession.add(item); + } + return (A) this; + } + + public A addToProofOfPossession(int index,Byte item) { + if (this.proofOfPossession == null) { + this.proofOfPossession = new ArrayList(); + } + this.proofOfPossession.add(index, item); + return (A) this; + } protected void copyInstance(V1alpha1PodCertificateRequestSpec instance) { instance = instance != null ? instance : new V1alpha1PodCertificateRequestSpec(); @@ -50,58 +108,62 @@ protected void copyInstance(V1alpha1PodCertificateRequestSpec instance) { } } - public Integer getMaxExpirationSeconds() { - return this.maxExpirationSeconds; - } - - public A withMaxExpirationSeconds(Integer maxExpirationSeconds) { - this.maxExpirationSeconds = maxExpirationSeconds; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1PodCertificateRequestSpecFluent that = (V1alpha1PodCertificateRequestSpecFluent) o; + if (!(Objects.equals(maxExpirationSeconds, that.maxExpirationSeconds))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(nodeUID, that.nodeUID))) { + return false; + } + if (!(Objects.equals(pkixPublicKey, that.pkixPublicKey))) { + return false; + } + if (!(Objects.equals(podName, that.podName))) { + return false; + } + if (!(Objects.equals(podUID, that.podUID))) { + return false; + } + if (!(Objects.equals(proofOfPossession, that.proofOfPossession))) { + return false; + } + if (!(Objects.equals(serviceAccountName, that.serviceAccountName))) { + return false; + } + if (!(Objects.equals(serviceAccountUID, that.serviceAccountUID))) { + return false; + } + if (!(Objects.equals(signerName, that.signerName))) { + return false; + } + return true; } - public boolean hasMaxExpirationSeconds() { - return this.maxExpirationSeconds != null; + public Integer getMaxExpirationSeconds() { + return this.maxExpirationSeconds; } public String getNodeName() { return this.nodeName; } - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; - } - - public boolean hasNodeName() { - return this.nodeName != null; - } - public String getNodeUID() { return this.nodeUID; } - public A withNodeUID(String nodeUID) { - this.nodeUID = nodeUID; - return (A) this; - } - - public boolean hasNodeUID() { - return this.nodeUID != null; - } - - public A withPkixPublicKey(byte... pkixPublicKey) { - if (this.pkixPublicKey != null) { - this.pkixPublicKey.clear(); - _visitables.remove("pkixPublicKey"); - } - if (pkixPublicKey != null) { - for (byte item : pkixPublicKey) { - this.addToPkixPublicKey(item); - } - } - return (A) this; - } - public byte[] getPkixPublicKey() { int size = pkixPublicKey != null ? pkixPublicKey.size() : 0; byte[] result = new byte[size]; @@ -115,165 +177,114 @@ public byte[] getPkixPublicKey() { return result; } - public A addToPkixPublicKey(int index,Byte item) { - if (this.pkixPublicKey == null) { - this.pkixPublicKey = new ArrayList(); - } - this.pkixPublicKey.add(index, item); - return (A) this; - } - - public A setToPkixPublicKey(int index,Byte item) { - if (this.pkixPublicKey == null) { - this.pkixPublicKey = new ArrayList(); - } - this.pkixPublicKey.set(index, item); - return (A) this; + public String getPodName() { + return this.podName; } - public A addToPkixPublicKey(Byte... items) { - if (this.pkixPublicKey == null) { - this.pkixPublicKey = new ArrayList(); - } - for (Byte item : items) { - this.pkixPublicKey.add(item); - } - return (A) this; + public String getPodUID() { + return this.podUID; } - public A addAllToPkixPublicKey(Collection items) { - if (this.pkixPublicKey == null) { - this.pkixPublicKey = new ArrayList(); + public byte[] getProofOfPossession() { + int size = proofOfPossession != null ? proofOfPossession.size() : 0; + byte[] result = new byte[size]; + if (size == 0) { + return result; } - for (Byte item : items) { - this.pkixPublicKey.add(item); + int index = 0; + for (byte item : proofOfPossession) { + result[index++] = item; } - return (A) this; + return result; } - public A removeFromPkixPublicKey(Byte... items) { - if (this.pkixPublicKey == null) { - return (A) this; - } - for (Byte item : items) { - this.pkixPublicKey.remove(item); - } - return (A) this; + public String getServiceAccountName() { + return this.serviceAccountName; } - public A removeAllFromPkixPublicKey(Collection items) { - if (this.pkixPublicKey == null) { - return (A) this; - } - for (Byte item : items) { - this.pkixPublicKey.remove(item); - } - return (A) this; + public String getServiceAccountUID() { + return this.serviceAccountUID; } - public boolean hasPkixPublicKey() { - return this.pkixPublicKey != null && !(this.pkixPublicKey.isEmpty()); + public String getSignerName() { + return this.signerName; } - public String getPodName() { - return this.podName; + public boolean hasMaxExpirationSeconds() { + return this.maxExpirationSeconds != null; } - public A withPodName(String podName) { - this.podName = podName; - return (A) this; + public boolean hasNodeName() { + return this.nodeName != null; } - public boolean hasPodName() { - return this.podName != null; + public boolean hasNodeUID() { + return this.nodeUID != null; } - public String getPodUID() { - return this.podUID; + public boolean hasPkixPublicKey() { + return this.pkixPublicKey != null && !(this.pkixPublicKey.isEmpty()); } - public A withPodUID(String podUID) { - this.podUID = podUID; - return (A) this; + public boolean hasPodName() { + return this.podName != null; } public boolean hasPodUID() { return this.podUID != null; } - public A withProofOfPossession(byte... proofOfPossession) { - if (this.proofOfPossession != null) { - this.proofOfPossession.clear(); - _visitables.remove("proofOfPossession"); - } - if (proofOfPossession != null) { - for (byte item : proofOfPossession) { - this.addToProofOfPossession(item); - } - } - return (A) this; + public boolean hasProofOfPossession() { + return this.proofOfPossession != null && !(this.proofOfPossession.isEmpty()); } - public byte[] getProofOfPossession() { - int size = proofOfPossession != null ? proofOfPossession.size() : 0; - byte[] result = new byte[size]; - if (size == 0) { - return result; - } - int index = 0; - for (byte item : proofOfPossession) { - result[index++] = item; - } - return result; + public boolean hasServiceAccountName() { + return this.serviceAccountName != null; } - public A addToProofOfPossession(int index,Byte item) { - if (this.proofOfPossession == null) { - this.proofOfPossession = new ArrayList(); - } - this.proofOfPossession.add(index, item); - return (A) this; + public boolean hasServiceAccountUID() { + return this.serviceAccountUID != null; } - public A setToProofOfPossession(int index,Byte item) { - if (this.proofOfPossession == null) { - this.proofOfPossession = new ArrayList(); - } - this.proofOfPossession.set(index, item); - return (A) this; + public boolean hasSignerName() { + return this.signerName != null; } - public A addToProofOfPossession(Byte... items) { - if (this.proofOfPossession == null) { - this.proofOfPossession = new ArrayList(); + public int hashCode() { + return Objects.hash(maxExpirationSeconds, nodeName, nodeUID, pkixPublicKey, podName, podUID, proofOfPossession, serviceAccountName, serviceAccountUID, signerName); + } + + public A removeAllFromPkixPublicKey(Collection items) { + if (this.pkixPublicKey == null) { + return (A) this; } for (Byte item : items) { - this.proofOfPossession.add(item); + this.pkixPublicKey.remove(item); } return (A) this; } - public A addAllToProofOfPossession(Collection items) { + public A removeAllFromProofOfPossession(Collection items) { if (this.proofOfPossession == null) { - this.proofOfPossession = new ArrayList(); + return (A) this; } for (Byte item : items) { - this.proofOfPossession.add(item); + this.proofOfPossession.remove(item); } return (A) this; } - public A removeFromProofOfPossession(Byte... items) { - if (this.proofOfPossession == null) { + public A removeFromPkixPublicKey(Byte... items) { + if (this.pkixPublicKey == null) { return (A) this; } for (Byte item : items) { - this.proofOfPossession.remove(item); + this.pkixPublicKey.remove(item); } return (A) this; } - public A removeAllFromProofOfPossession(Collection items) { + public A removeFromProofOfPossession(Byte... items) { if (this.proofOfPossession == null) { return (A) this; } @@ -283,95 +294,20 @@ public A removeAllFromProofOfPossession(Collection items) { return (A) this; } - public boolean hasProofOfPossession() { - return this.proofOfPossession != null && !(this.proofOfPossession.isEmpty()); - } - - public String getServiceAccountName() { - return this.serviceAccountName; - } - - public A withServiceAccountName(String serviceAccountName) { - this.serviceAccountName = serviceAccountName; - return (A) this; - } - - public boolean hasServiceAccountName() { - return this.serviceAccountName != null; - } - - public String getServiceAccountUID() { - return this.serviceAccountUID; - } - - public A withServiceAccountUID(String serviceAccountUID) { - this.serviceAccountUID = serviceAccountUID; - return (A) this; - } - - public boolean hasServiceAccountUID() { - return this.serviceAccountUID != null; - } - - public String getSignerName() { - return this.signerName; - } - - public A withSignerName(String signerName) { - this.signerName = signerName; + public A setToPkixPublicKey(int index,Byte item) { + if (this.pkixPublicKey == null) { + this.pkixPublicKey = new ArrayList(); + } + this.pkixPublicKey.set(index, item); return (A) this; } - public boolean hasSignerName() { - return this.signerName != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1alpha1PodCertificateRequestSpecFluent that = (V1alpha1PodCertificateRequestSpecFluent) o; - if (!(Objects.equals(maxExpirationSeconds, that.maxExpirationSeconds))) { - return false; - } - if (!(Objects.equals(nodeName, that.nodeName))) { - return false; - } - if (!(Objects.equals(nodeUID, that.nodeUID))) { - return false; - } - if (!(Objects.equals(pkixPublicKey, that.pkixPublicKey))) { - return false; - } - if (!(Objects.equals(podName, that.podName))) { - return false; - } - if (!(Objects.equals(podUID, that.podUID))) { - return false; - } - if (!(Objects.equals(proofOfPossession, that.proofOfPossession))) { - return false; - } - if (!(Objects.equals(serviceAccountName, that.serviceAccountName))) { - return false; - } - if (!(Objects.equals(serviceAccountUID, that.serviceAccountUID))) { - return false; - } - if (!(Objects.equals(signerName, that.signerName))) { - return false; + public A setToProofOfPossession(int index,Byte item) { + if (this.proofOfPossession == null) { + this.proofOfPossession = new ArrayList(); } - return true; - } - - public int hashCode() { - return Objects.hash(maxExpirationSeconds, nodeName, nodeUID, pkixPublicKey, podName, podUID, proofOfPossession, serviceAccountName, serviceAccountUID, signerName); + this.proofOfPossession.set(index, item); + return (A) this; } public String toString() { @@ -430,5 +366,70 @@ public String toString() { return sb.toString(); } - + public A withMaxExpirationSeconds(Integer maxExpirationSeconds) { + this.maxExpirationSeconds = maxExpirationSeconds; + return (A) this; + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + public A withNodeUID(String nodeUID) { + this.nodeUID = nodeUID; + return (A) this; + } + + public A withPkixPublicKey(byte... pkixPublicKey) { + if (this.pkixPublicKey != null) { + this.pkixPublicKey.clear(); + _visitables.remove("pkixPublicKey"); + } + if (pkixPublicKey != null) { + for (byte item : pkixPublicKey) { + this.addToPkixPublicKey(item); + } + } + return (A) this; + } + + public A withPodName(String podName) { + this.podName = podName; + return (A) this; + } + + public A withPodUID(String podUID) { + this.podUID = podUID; + return (A) this; + } + + public A withProofOfPossession(byte... proofOfPossession) { + if (this.proofOfPossession != null) { + this.proofOfPossession.clear(); + _visitables.remove("proofOfPossession"); + } + if (proofOfPossession != null) { + for (byte item : proofOfPossession) { + this.addToProofOfPossession(item); + } + } + return (A) this; + } + + public A withServiceAccountName(String serviceAccountName) { + this.serviceAccountName = serviceAccountName; + return (A) this; + } + + public A withServiceAccountUID(String serviceAccountUID) { + this.serviceAccountUID = serviceAccountUID; + return (A) this; + } + + public A withSignerName(String signerName) { + this.signerName = signerName; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatusBuilder.java index 39668a7078..51c1045d09 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1PodCertificateRequestStatusBuilder extends V1alpha1PodCertificateRequestStatusFluent implements VisitableBuilder{ + + V1alpha1PodCertificateRequestStatusFluent fluent; + public V1alpha1PodCertificateRequestStatusBuilder() { this(new V1alpha1PodCertificateRequestStatus()); } @@ -11,17 +14,16 @@ public V1alpha1PodCertificateRequestStatusBuilder(V1alpha1PodCertificateRequestS this(fluent, new V1alpha1PodCertificateRequestStatus()); } - public V1alpha1PodCertificateRequestStatusBuilder(V1alpha1PodCertificateRequestStatusFluent fluent,V1alpha1PodCertificateRequestStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1PodCertificateRequestStatusBuilder(V1alpha1PodCertificateRequestStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1PodCertificateRequestStatusFluent fluent; + public V1alpha1PodCertificateRequestStatusBuilder(V1alpha1PodCertificateRequestStatusFluent fluent,V1alpha1PodCertificateRequestStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1PodCertificateRequestStatus build() { V1alpha1PodCertificateRequestStatus buildable = new V1alpha1PodCertificateRequestStatus(); buildable.setBeginRefreshAt(fluent.getBeginRefreshAt()); @@ -32,5 +34,4 @@ public V1alpha1PodCertificateRequestStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatusFluent.java index 2dc94e78f8..0defe7fe82 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatusFluent.java @@ -1,102 +1,57 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; +import java.lang.Object; import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1PodCertificateRequestStatusFluent> extends BaseFluent{ - public V1alpha1PodCertificateRequestStatusFluent() { - } - - public V1alpha1PodCertificateRequestStatusFluent(V1alpha1PodCertificateRequestStatus instance) { - this.copyInstance(instance); - } + private OffsetDateTime beginRefreshAt; private String certificateChain; private ArrayList conditions; private OffsetDateTime notAfter; private OffsetDateTime notBefore; - - protected void copyInstance(V1alpha1PodCertificateRequestStatus instance) { - instance = instance != null ? instance : new V1alpha1PodCertificateRequestStatus(); - if (instance != null) { - this.withBeginRefreshAt(instance.getBeginRefreshAt()); - this.withCertificateChain(instance.getCertificateChain()); - this.withConditions(instance.getConditions()); - this.withNotAfter(instance.getNotAfter()); - this.withNotBefore(instance.getNotBefore()); - } - } - - public OffsetDateTime getBeginRefreshAt() { - return this.beginRefreshAt; - } - - public A withBeginRefreshAt(OffsetDateTime beginRefreshAt) { - this.beginRefreshAt = beginRefreshAt; - return (A) this; - } - - public boolean hasBeginRefreshAt() { - return this.beginRefreshAt != null; - } - - public String getCertificateChain() { - return this.certificateChain; - } - - public A withCertificateChain(String certificateChain) { - this.certificateChain = certificateChain; - return (A) this; + + public V1alpha1PodCertificateRequestStatusFluent() { } - public boolean hasCertificateChain() { - return this.certificateChain != null; + public V1alpha1PodCertificateRequestStatusFluent(V1alpha1PodCertificateRequestStatus instance) { + this.copyInstance(instance); } - - public A addToConditions(int index,V1Condition item) { + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1Condition... items) { @@ -111,66 +66,29 @@ public A addToConditions(V1Condition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1Condition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1Condition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -188,61 +106,19 @@ public V1Condition buildMatchingCondition(Predicate predicat return null; } - public boolean hasMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(V1Condition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1Condition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1alpha1PodCertificateRequestStatus instance) { + instance = instance != null ? instance : new V1alpha1PodCertificateRequestStatus(); + if (instance != null) { + this.withBeginRefreshAt(instance.getBeginRefreshAt()); + this.withCertificateChain(instance.getCertificateChain()); + this.withConditions(instance.getConditions()); + this.withNotAfter(instance.getNotAfter()); + this.withNotBefore(instance.getNotBefore()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -277,32 +153,6 @@ public ConditionsNested editMatchingCondition(Predicate p return this.setNewConditionLike(index, this.buildCondition(index)); } - public OffsetDateTime getNotAfter() { - return this.notAfter; - } - - public A withNotAfter(OffsetDateTime notAfter) { - this.notAfter = notAfter; - return (A) this; - } - - public boolean hasNotAfter() { - return this.notAfter != null; - } - - public OffsetDateTime getNotBefore() { - return this.notBefore; - } - - public A withNotBefore(OffsetDateTime notBefore) { - this.notBefore = notBefore; - return (A) this; - } - - public boolean hasNotBefore() { - return this.notBefore != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -332,10 +182,114 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getBeginRefreshAt() { + return this.beginRefreshAt; + } + + public String getCertificateChain() { + return this.certificateChain; + } + + public OffsetDateTime getNotAfter() { + return this.notAfter; + } + + public OffsetDateTime getNotBefore() { + return this.notBefore; + } + + public boolean hasBeginRefreshAt() { + return this.beginRefreshAt != null; + } + + public boolean hasCertificateChain() { + return this.certificateChain != null; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNotAfter() { + return this.notAfter != null; + } + + public boolean hasNotBefore() { + return this.notBefore != null; + } + public int hashCode() { return Objects.hash(beginRefreshAt, certificateChain, conditions, notAfter, notBefore); } + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1Condition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -366,14 +320,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withBeginRefreshAt(OffsetDateTime beginRefreshAt) { + this.beginRefreshAt = beginRefreshAt; + return (A) this; + } + + public A withCertificateChain(String certificateChain) { + this.certificateChain = certificateChain; + return (A) this; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withNotAfter(OffsetDateTime notAfter) { + this.notAfter = notAfter; + return (A) this; + } + + public A withNotBefore(OffsetDateTime notBefore) { + this.notBefore = notBefore; + return (A) this; + } public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + ConditionsNested(int index,V1Condition item) { this.index = index; this.builder = new V1ConditionBuilder(this, item); } - V1ConditionBuilder builder; - int index; - + public N and() { return (N) V1alpha1PodCertificateRequestStatusFluent.this.setToConditions(index, builder.build()); } @@ -382,7 +386,5 @@ public N endCondition() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java index d50cd43115..288d39fc86 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1ServerStorageVersionBuilder extends V1alpha1ServerStorageVersionFluent implements VisitableBuilder{ + + V1alpha1ServerStorageVersionFluent fluent; + public V1alpha1ServerStorageVersionBuilder() { this(new V1alpha1ServerStorageVersion()); } @@ -11,17 +14,16 @@ public V1alpha1ServerStorageVersionBuilder(V1alpha1ServerStorageVersionFluent this(fluent, new V1alpha1ServerStorageVersion()); } - public V1alpha1ServerStorageVersionBuilder(V1alpha1ServerStorageVersionFluent fluent,V1alpha1ServerStorageVersion instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1ServerStorageVersionBuilder(V1alpha1ServerStorageVersion instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1ServerStorageVersionFluent fluent; + public V1alpha1ServerStorageVersionBuilder(V1alpha1ServerStorageVersionFluent fluent,V1alpha1ServerStorageVersion instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1ServerStorageVersion build() { V1alpha1ServerStorageVersion buildable = new V1alpha1ServerStorageVersion(); buildable.setApiServerID(fluent.getApiServerID()); @@ -31,5 +33,4 @@ public V1alpha1ServerStorageVersion build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java index 2df638cfef..180266dc54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,53 +16,36 @@ */ @SuppressWarnings("unchecked") public class V1alpha1ServerStorageVersionFluent> extends BaseFluent{ - public V1alpha1ServerStorageVersionFluent() { - } - - public V1alpha1ServerStorageVersionFluent(V1alpha1ServerStorageVersion instance) { - this.copyInstance(instance); - } + private String apiServerID; private List decodableVersions; private String encodingVersion; private List servedVersions; - - protected void copyInstance(V1alpha1ServerStorageVersion instance) { - instance = instance != null ? instance : new V1alpha1ServerStorageVersion(); - if (instance != null) { - this.withApiServerID(instance.getApiServerID()); - this.withDecodableVersions(instance.getDecodableVersions()); - this.withEncodingVersion(instance.getEncodingVersion()); - this.withServedVersions(instance.getServedVersions()); - } - } - - public String getApiServerID() { - return this.apiServerID; - } - - public A withApiServerID(String apiServerID) { - this.apiServerID = apiServerID; - return (A) this; + + public V1alpha1ServerStorageVersionFluent() { } - public boolean hasApiServerID() { - return this.apiServerID != null; + public V1alpha1ServerStorageVersionFluent(V1alpha1ServerStorageVersion instance) { + this.copyInstance(instance); } - - public A addToDecodableVersions(int index,String item) { + + public A addAllToDecodableVersions(Collection items) { if (this.decodableVersions == null) { this.decodableVersions = new ArrayList(); } - this.decodableVersions.add(index, item); + for (String item : items) { + this.decodableVersions.add(item); + } return (A) this; } - public A setToDecodableVersions(int index,String item) { - if (this.decodableVersions == null) { - this.decodableVersions = new ArrayList(); + public A addAllToServedVersions(Collection items) { + if (this.servedVersions == null) { + this.servedVersions = new ArrayList(); + } + for (String item : items) { + this.servedVersions.add(item); } - this.decodableVersions.set(index, item); return (A) this; } @@ -76,52 +59,100 @@ public A addToDecodableVersions(String... items) { return (A) this; } - public A addAllToDecodableVersions(Collection items) { + public A addToDecodableVersions(int index,String item) { if (this.decodableVersions == null) { this.decodableVersions = new ArrayList(); } - for (String item : items) { - this.decodableVersions.add(item); - } + this.decodableVersions.add(index, item); return (A) this; } - public A removeFromDecodableVersions(String... items) { - if (this.decodableVersions == null) { - return (A) this; + public A addToServedVersions(String... items) { + if (this.servedVersions == null) { + this.servedVersions = new ArrayList(); } for (String item : items) { - this.decodableVersions.remove(item); + this.servedVersions.add(item); } return (A) this; } - public A removeAllFromDecodableVersions(Collection items) { - if (this.decodableVersions == null) { - return (A) this; - } - for (String item : items) { - this.decodableVersions.remove(item); + public A addToServedVersions(int index,String item) { + if (this.servedVersions == null) { + this.servedVersions = new ArrayList(); } + this.servedVersions.add(index, item); return (A) this; } - public List getDecodableVersions() { - return this.decodableVersions; + protected void copyInstance(V1alpha1ServerStorageVersion instance) { + instance = instance != null ? instance : new V1alpha1ServerStorageVersion(); + if (instance != null) { + this.withApiServerID(instance.getApiServerID()); + this.withDecodableVersions(instance.getDecodableVersions()); + this.withEncodingVersion(instance.getEncodingVersion()); + this.withServedVersions(instance.getServedVersions()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1ServerStorageVersionFluent that = (V1alpha1ServerStorageVersionFluent) o; + if (!(Objects.equals(apiServerID, that.apiServerID))) { + return false; + } + if (!(Objects.equals(decodableVersions, that.decodableVersions))) { + return false; + } + if (!(Objects.equals(encodingVersion, that.encodingVersion))) { + return false; + } + if (!(Objects.equals(servedVersions, that.servedVersions))) { + return false; + } + return true; + } + + public String getApiServerID() { + return this.apiServerID; } public String getDecodableVersion(int index) { return this.decodableVersions.get(index); } + public List getDecodableVersions() { + return this.decodableVersions; + } + + public String getEncodingVersion() { + return this.encodingVersion; + } + public String getFirstDecodableVersion() { return this.decodableVersions.get(0); } + public String getFirstServedVersion() { + return this.servedVersions.get(0); + } + public String getLastDecodableVersion() { return this.decodableVersions.get(decodableVersions.size() - 1); } + public String getLastServedVersion() { + return this.servedVersions.get(servedVersions.size() - 1); + } + public String getMatchingDecodableVersion(Predicate predicate) { for (String item : decodableVersions) { if (predicate.test(item)) { @@ -131,104 +162,92 @@ public String getMatchingDecodableVersion(Predicate predicate) { return null; } - public boolean hasMatchingDecodableVersion(Predicate predicate) { - for (String item : decodableVersions) { + public String getMatchingServedVersion(Predicate predicate) { + for (String item : servedVersions) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withDecodableVersions(List decodableVersions) { - if (decodableVersions != null) { - this.decodableVersions = new ArrayList(); - for (String item : decodableVersions) { - this.addToDecodableVersions(item); - } - } else { - this.decodableVersions = null; - } - return (A) this; + public String getServedVersion(int index) { + return this.servedVersions.get(index); } - public A withDecodableVersions(String... decodableVersions) { - if (this.decodableVersions != null) { - this.decodableVersions.clear(); - _visitables.remove("decodableVersions"); - } - if (decodableVersions != null) { - for (String item : decodableVersions) { - this.addToDecodableVersions(item); - } - } - return (A) this; + public List getServedVersions() { + return this.servedVersions; + } + + public boolean hasApiServerID() { + return this.apiServerID != null; } public boolean hasDecodableVersions() { return this.decodableVersions != null && !(this.decodableVersions.isEmpty()); } - public String getEncodingVersion() { - return this.encodingVersion; + public boolean hasEncodingVersion() { + return this.encodingVersion != null; } - public A withEncodingVersion(String encodingVersion) { - this.encodingVersion = encodingVersion; - return (A) this; + public boolean hasMatchingDecodableVersion(Predicate predicate) { + for (String item : decodableVersions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public boolean hasEncodingVersion() { - return this.encodingVersion != null; + public boolean hasMatchingServedVersion(Predicate predicate) { + for (String item : servedVersions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addToServedVersions(int index,String item) { - if (this.servedVersions == null) { - this.servedVersions = new ArrayList(); - } - this.servedVersions.add(index, item); - return (A) this; + public boolean hasServedVersions() { + return this.servedVersions != null && !(this.servedVersions.isEmpty()); } - public A setToServedVersions(int index,String item) { - if (this.servedVersions == null) { - this.servedVersions = new ArrayList(); - } - this.servedVersions.set(index, item); - return (A) this; + public int hashCode() { + return Objects.hash(apiServerID, decodableVersions, encodingVersion, servedVersions); } - public A addToServedVersions(String... items) { - if (this.servedVersions == null) { - this.servedVersions = new ArrayList(); + public A removeAllFromDecodableVersions(Collection items) { + if (this.decodableVersions == null) { + return (A) this; } for (String item : items) { - this.servedVersions.add(item); + this.decodableVersions.remove(item); } return (A) this; } - public A addAllToServedVersions(Collection items) { + public A removeAllFromServedVersions(Collection items) { if (this.servedVersions == null) { - this.servedVersions = new ArrayList(); + return (A) this; } for (String item : items) { - this.servedVersions.add(item); + this.servedVersions.remove(item); } return (A) this; } - public A removeFromServedVersions(String... items) { - if (this.servedVersions == null) { + public A removeFromDecodableVersions(String... items) { + if (this.decodableVersions == null) { return (A) this; } for (String item : items) { - this.servedVersions.remove(item); + this.decodableVersions.remove(item); } return (A) this; } - public A removeAllFromServedVersions(Collection items) { + public A removeFromServedVersions(String... items) { if (this.servedVersions == null) { return (A) this; } @@ -238,38 +257,81 @@ public A removeAllFromServedVersions(Collection items) { return (A) this; } - public List getServedVersions() { - return this.servedVersions; + public A setToDecodableVersions(int index,String item) { + if (this.decodableVersions == null) { + this.decodableVersions = new ArrayList(); + } + this.decodableVersions.set(index, item); + return (A) this; } - public String getServedVersion(int index) { - return this.servedVersions.get(index); + public A setToServedVersions(int index,String item) { + if (this.servedVersions == null) { + this.servedVersions = new ArrayList(); + } + this.servedVersions.set(index, item); + return (A) this; } - public String getFirstServedVersion() { - return this.servedVersions.get(0); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiServerID == null)) { + sb.append("apiServerID:"); + sb.append(apiServerID); + sb.append(","); + } + if (!(decodableVersions == null) && !(decodableVersions.isEmpty())) { + sb.append("decodableVersions:"); + sb.append(decodableVersions); + sb.append(","); + } + if (!(encodingVersion == null)) { + sb.append("encodingVersion:"); + sb.append(encodingVersion); + sb.append(","); + } + if (!(servedVersions == null) && !(servedVersions.isEmpty())) { + sb.append("servedVersions:"); + sb.append(servedVersions); + } + sb.append("}"); + return sb.toString(); } - public String getLastServedVersion() { - return this.servedVersions.get(servedVersions.size() - 1); + public A withApiServerID(String apiServerID) { + this.apiServerID = apiServerID; + return (A) this; } - public String getMatchingServedVersion(Predicate predicate) { - for (String item : servedVersions) { - if (predicate.test(item)) { - return item; + public A withDecodableVersions(List decodableVersions) { + if (decodableVersions != null) { + this.decodableVersions = new ArrayList(); + for (String item : decodableVersions) { + this.addToDecodableVersions(item); } - } - return null; + } else { + this.decodableVersions = null; + } + return (A) this; } - public boolean hasMatchingServedVersion(Predicate predicate) { - for (String item : servedVersions) { - if (predicate.test(item)) { - return true; - } + public A withDecodableVersions(String... decodableVersions) { + if (this.decodableVersions != null) { + this.decodableVersions.clear(); + _visitables.remove("decodableVersions"); + } + if (decodableVersions != null) { + for (String item : decodableVersions) { + this.addToDecodableVersions(item); } - return false; + } + return (A) this; + } + + public A withEncodingVersion(String encodingVersion) { + this.encodingVersion = encodingVersion; + return (A) this; } public A withServedVersions(List servedVersions) { @@ -297,65 +359,4 @@ public A withServedVersions(String... servedVersions) { return (A) this; } - public boolean hasServedVersions() { - return this.servedVersions != null && !(this.servedVersions.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1alpha1ServerStorageVersionFluent that = (V1alpha1ServerStorageVersionFluent) o; - if (!(Objects.equals(apiServerID, that.apiServerID))) { - return false; - } - if (!(Objects.equals(decodableVersions, that.decodableVersions))) { - return false; - } - if (!(Objects.equals(encodingVersion, that.encodingVersion))) { - return false; - } - if (!(Objects.equals(servedVersions, that.servedVersions))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(apiServerID, decodableVersions, encodingVersion, servedVersions); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(apiServerID == null)) { - sb.append("apiServerID:"); - sb.append(apiServerID); - sb.append(","); - } - if (!(decodableVersions == null) && !(decodableVersions.isEmpty())) { - sb.append("decodableVersions:"); - sb.append(decodableVersions); - sb.append(","); - } - if (!(encodingVersion == null)) { - sb.append("encodingVersion:"); - sb.append(encodingVersion); - sb.append(","); - } - if (!(servedVersions == null) && !(servedVersions.isEmpty())) { - sb.append("servedVersions:"); - sb.append(servedVersions); - } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java index 04fb3ffbd1..d641bcbb71 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1StorageVersionBuilder extends V1alpha1StorageVersionFluent implements VisitableBuilder{ + + V1alpha1StorageVersionFluent fluent; + public V1alpha1StorageVersionBuilder() { this(new V1alpha1StorageVersion()); } @@ -11,17 +14,16 @@ public V1alpha1StorageVersionBuilder(V1alpha1StorageVersionFluent fluent) { this(fluent, new V1alpha1StorageVersion()); } - public V1alpha1StorageVersionBuilder(V1alpha1StorageVersionFluent fluent,V1alpha1StorageVersion instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1StorageVersionBuilder(V1alpha1StorageVersion instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1StorageVersionFluent fluent; + public V1alpha1StorageVersionBuilder(V1alpha1StorageVersionFluent fluent,V1alpha1StorageVersion instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1StorageVersion build() { V1alpha1StorageVersion buildable = new V1alpha1StorageVersion(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1alpha1StorageVersion build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java index bb647e76c0..56ed256af1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1StorageVersionConditionBuilder extends V1alpha1StorageVersionConditionFluent implements VisitableBuilder{ + + V1alpha1StorageVersionConditionFluent fluent; + public V1alpha1StorageVersionConditionBuilder() { this(new V1alpha1StorageVersionCondition()); } @@ -11,17 +14,16 @@ public V1alpha1StorageVersionConditionBuilder(V1alpha1StorageVersionConditionFlu this(fluent, new V1alpha1StorageVersionCondition()); } - public V1alpha1StorageVersionConditionBuilder(V1alpha1StorageVersionConditionFluent fluent,V1alpha1StorageVersionCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1StorageVersionConditionBuilder(V1alpha1StorageVersionCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1StorageVersionConditionFluent fluent; + public V1alpha1StorageVersionConditionBuilder(V1alpha1StorageVersionConditionFluent fluent,V1alpha1StorageVersionCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1StorageVersionCondition build() { V1alpha1StorageVersionCondition buildable = new V1alpha1StorageVersionCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -33,5 +35,4 @@ public V1alpha1StorageVersionCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java index 8918926356..08c4672f13 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java @@ -1,32 +1,34 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1StorageVersionConditionFluent> extends BaseFluent{ - public V1alpha1StorageVersionConditionFluent() { - } - - public V1alpha1StorageVersionConditionFluent(V1alpha1StorageVersionCondition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastTransitionTime; private String message; private Long observedGeneration; private String reason; private String status; private String type; + + public V1alpha1StorageVersionConditionFluent() { + } + public V1alpha1StorageVersionConditionFluent(V1alpha1StorageVersionCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1alpha1StorageVersionCondition instance) { instance = instance != null ? instance : new V1alpha1StorageVersionCondition(); if (instance != null) { @@ -39,116 +41,86 @@ protected void copyInstance(V1alpha1StorageVersionCondition instance) { } } - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1StorageVersionConditionFluent that = (V1alpha1StorageVersionConditionFluent) o; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - public Long getObservedGeneration() { return this.observedGeneration; } - public A withObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - return (A) this; - } - - public boolean hasObservedGeneration() { - return this.observedGeneration != null; - } - public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public String getStatus() { + return this.status; } - public boolean hasReason() { - return this.reason != null; + public String getType() { + return this.type; } - public String getStatus() { - return this.status; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasMessage() { + return this.message != null; } - public boolean hasStatus() { - return this.status != null; + public boolean hasObservedGeneration() { + return this.observedGeneration != null; } - public String getType() { - return this.type; + public boolean hasReason() { + return this.reason != null; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasStatus() { + return this.status != null; } public boolean hasType() { return this.type != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1alpha1StorageVersionConditionFluent that = (V1alpha1StorageVersionConditionFluent) o; - if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { - return false; - } - if (!(Objects.equals(message, that.message))) { - return false; - } - if (!(Objects.equals(observedGeneration, that.observedGeneration))) { - return false; - } - if (!(Objects.equals(reason, that.reason))) { - return false; - } - if (!(Objects.equals(status, that.status))) { - return false; - } - if (!(Objects.equals(type, that.type))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type); } @@ -189,5 +161,34 @@ public String toString() { return sb.toString(); } - + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java index 803d52434d..8d20d63bc8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java @@ -1,30 +1,40 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1StorageVersionFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private Object spec; + private V1alpha1StorageVersionStatusBuilder status; + public V1alpha1StorageVersionFluent() { } public V1alpha1StorageVersionFluent(V1alpha1StorageVersion instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private Object spec; - private V1alpha1StorageVersionStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1alpha1StorageVersionStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1alpha1StorageVersion instance) { instance = instance != null ? instance : new V1alpha1StorageVersion(); @@ -37,60 +47,6 @@ protected void copyInstance(V1alpha1StorageVersion instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -103,51 +59,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public Object getSpec() { - return this.spec; - } - - public A withSpec(Object spec) { - this.spec = spec; - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public V1alpha1StorageVersionStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1alpha1StorageVersionStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1alpha1StorageVersionStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1alpha1StorageVersionStatus item) { - return new StatusNested(item); - } - - public StatusNested editStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); - } - public StatusNested editOrNewStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1alpha1StorageVersionStatusBuilder().build())); } @@ -156,6 +67,10 @@ public StatusNested editOrNewStatusLike(V1alpha1StorageVersionStatus item) { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -185,6 +100,38 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public Object getSpec() { + return this.spec; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -219,12 +166,69 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1alpha1StorageVersionStatus item) { + return new StatusNested(item); + } + + public A withSpec(Object spec) { + this.spec = spec; + return (A) this; + } + + public A withStatus(V1alpha1StorageVersionStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1alpha1StorageVersionStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1alpha1StorageVersionFluent.this.withMetadata(builder.build()); } @@ -233,14 +237,15 @@ public N endMetadata() { return and(); } - } public class StatusNested extends V1alpha1StorageVersionStatusFluent> implements Nested{ + + V1alpha1StorageVersionStatusBuilder builder; + StatusNested(V1alpha1StorageVersionStatus item) { this.builder = new V1alpha1StorageVersionStatusBuilder(this, item); } - V1alpha1StorageVersionStatusBuilder builder; - + public N and() { return (N) V1alpha1StorageVersionFluent.this.withStatus(builder.build()); } @@ -249,7 +254,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java index 457e9dfbf3..6ad5af7cd4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1StorageVersionListBuilder extends V1alpha1StorageVersionListFluent implements VisitableBuilder{ + + V1alpha1StorageVersionListFluent fluent; + public V1alpha1StorageVersionListBuilder() { this(new V1alpha1StorageVersionList()); } @@ -11,17 +14,16 @@ public V1alpha1StorageVersionListBuilder(V1alpha1StorageVersionListFluent flu this(fluent, new V1alpha1StorageVersionList()); } - public V1alpha1StorageVersionListBuilder(V1alpha1StorageVersionListFluent fluent,V1alpha1StorageVersionList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1StorageVersionListBuilder(V1alpha1StorageVersionList instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1StorageVersionListFluent fluent; + public V1alpha1StorageVersionListBuilder(V1alpha1StorageVersionListFluent fluent,V1alpha1StorageVersionList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1StorageVersionList build() { V1alpha1StorageVersionList buildable = new V1alpha1StorageVersionList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1alpha1StorageVersionList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java index 1cee6bdf65..45ed933aa2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1StorageVersionListFluent> extends BaseFluent{ - public V1alpha1StorageVersionListFluent() { - } - - public V1alpha1StorageVersionListFluent(V1alpha1StorageVersionList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha1StorageVersionList instance) { - instance = instance != null ? instance : new V1alpha1StorageVersionList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1alpha1StorageVersionListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1alpha1StorageVersionListFluent(V1alpha1StorageVersionList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1alpha1StorageVersion item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1alpha1StorageVersion item : items) { + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1alpha1StorageVersion item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha1StorageVersion item) { + return new ItemsNested(-1, item); } public A addToItems(V1alpha1StorageVersion... items) { @@ -96,68 +65,31 @@ public A addToItems(V1alpha1StorageVersion... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1alpha1StorageVersion item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1alpha1StorageVersion item : items) { - V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1alpha1StorageVersion... items) { - if (this.items == null) { - return (A) this; - } - for (V1alpha1StorageVersion item : items) { - V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1alpha1StorageVersion item : items) { - V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha1StorageVersionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1alpha1StorageVersion buildFirstItem() { + return this.items.get(0).build(); } public V1alpha1StorageVersion buildItem(int index) { return this.items.get(index).build(); } - public V1alpha1StorageVersion buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1alpha1StorageVersion buildLastItem() { @@ -173,73 +105,34 @@ public V1alpha1StorageVersion buildMatchingItem(Predicate predicate) { - for (V1alpha1StorageVersionBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha1StorageVersion item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1alpha1StorageVersionList instance) { + instance = instance != null ? instance : new V1alpha1StorageVersionList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1alpha1StorageVersion... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha1StorageVersion item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha1StorageVersion item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha1StorageVersion item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1StorageVersionBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1StorageVersion item : items) { + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1alpha1StorageVersion... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1StorageVersion item : items) { + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha1StorageVersionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1alpha1StorageVersion item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1alpha1StorageVersion item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha1StorageVersion item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1alpha1StorageVersion... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha1StorageVersion item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1alpha1StorageVersionFluent> implements Nested{ + + V1alpha1StorageVersionBuilder builder; + int index; + ItemsNested(int index,V1alpha1StorageVersion item) { this.index = index; this.builder = new V1alpha1StorageVersionBuilder(this, item); } - V1alpha1StorageVersionBuilder builder; - int index; - + public N and() { return (N) V1alpha1StorageVersionListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1alpha1StorageVersionListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationBuilder.java index 26c0cc4378..1e9dd04398 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1StorageVersionMigrationBuilder extends V1alpha1StorageVersionMigrationFluent implements VisitableBuilder{ + + V1alpha1StorageVersionMigrationFluent fluent; + public V1alpha1StorageVersionMigrationBuilder() { this(new V1alpha1StorageVersionMigration()); } @@ -11,17 +14,16 @@ public V1alpha1StorageVersionMigrationBuilder(V1alpha1StorageVersionMigrationFlu this(fluent, new V1alpha1StorageVersionMigration()); } - public V1alpha1StorageVersionMigrationBuilder(V1alpha1StorageVersionMigrationFluent fluent,V1alpha1StorageVersionMigration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1StorageVersionMigrationBuilder(V1alpha1StorageVersionMigration instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1StorageVersionMigrationFluent fluent; + public V1alpha1StorageVersionMigrationBuilder(V1alpha1StorageVersionMigrationFluent fluent,V1alpha1StorageVersionMigration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1StorageVersionMigration build() { V1alpha1StorageVersionMigration buildable = new V1alpha1StorageVersionMigration(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1alpha1StorageVersionMigration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationFluent.java index 5d1d57cd22..ebe9d4e5cb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1StorageVersionMigrationFluent> extends BaseFluent{ - public V1alpha1StorageVersionMigrationFluent() { - } - - public V1alpha1StorageVersionMigrationFluent(V1alpha1StorageVersionMigration instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1alpha1StorageVersionMigrationSpecBuilder spec; private V1alpha1StorageVersionMigrationStatusBuilder status; - - protected void copyInstance(V1alpha1StorageVersionMigration instance) { - instance = instance != null ? instance : new V1alpha1StorageVersionMigration(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1alpha1StorageVersionMigrationFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1alpha1StorageVersionMigrationFluent(V1alpha1StorageVersionMigration instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1alpha1StorageVersionMigrationSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1alpha1StorageVersionMigrationStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1alpha1StorageVersionMigration instance) { + instance = instance != null ? instance : new V1alpha1StorageVersionMigration(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1alpha1StorageVersionMigrationSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1alpha1StorageVersionMigrationSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1alpha1StorageVersionMigrationSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1alpha1StorageVersionMigrationSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha1StorageVersionMigrationSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1alpha1StorageVersionMigrationSpec item) return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1alpha1StorageVersionMigrationStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1alpha1StorageVersionMigrationStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1alpha1StorageVersionMigrationStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1alpha1StorageVersionMigrationStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1alpha1StorageVersionMigrationStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1alpha1StorageVersionMigrationStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1alpha1StorageVersionMigrationStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1alpha1StorageVersionMigrationStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha1StorageVersionMigrationSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1alpha1StorageVersionMigrationStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1alpha1StorageVersionMigrationSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha1StorageVersionMigrationSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1alpha1StorageVersionMigrationStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1alpha1StorageVersionMigrationStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1alpha1StorageVersionMigrationFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1alpha1StorageVersionMigrationSpecFluent> implements Nested{ + + V1alpha1StorageVersionMigrationSpecBuilder builder; + SpecNested(V1alpha1StorageVersionMigrationSpec item) { this.builder = new V1alpha1StorageVersionMigrationSpecBuilder(this, item); } - V1alpha1StorageVersionMigrationSpecBuilder builder; - + public N and() { return (N) V1alpha1StorageVersionMigrationFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1alpha1StorageVersionMigrationStatusFluent> implements Nested{ + + V1alpha1StorageVersionMigrationStatusBuilder builder; + StatusNested(V1alpha1StorageVersionMigrationStatus item) { this.builder = new V1alpha1StorageVersionMigrationStatusBuilder(this, item); } - V1alpha1StorageVersionMigrationStatusBuilder builder; - + public N and() { return (N) V1alpha1StorageVersionMigrationFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListBuilder.java index cd49a8f5c9..3fbc98e6e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1StorageVersionMigrationListBuilder extends V1alpha1StorageVersionMigrationListFluent implements VisitableBuilder{ + + V1alpha1StorageVersionMigrationListFluent fluent; + public V1alpha1StorageVersionMigrationListBuilder() { this(new V1alpha1StorageVersionMigrationList()); } @@ -11,17 +14,16 @@ public V1alpha1StorageVersionMigrationListBuilder(V1alpha1StorageVersionMigratio this(fluent, new V1alpha1StorageVersionMigrationList()); } - public V1alpha1StorageVersionMigrationListBuilder(V1alpha1StorageVersionMigrationListFluent fluent,V1alpha1StorageVersionMigrationList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1StorageVersionMigrationListBuilder(V1alpha1StorageVersionMigrationList instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1StorageVersionMigrationListFluent fluent; + public V1alpha1StorageVersionMigrationListBuilder(V1alpha1StorageVersionMigrationListFluent fluent,V1alpha1StorageVersionMigrationList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1StorageVersionMigrationList build() { V1alpha1StorageVersionMigrationList buildable = new V1alpha1StorageVersionMigrationList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1alpha1StorageVersionMigrationList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListFluent.java index 98a7c18d38..a9be02a2d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1StorageVersionMigrationListFluent> extends BaseFluent{ - public V1alpha1StorageVersionMigrationListFluent() { - } - - public V1alpha1StorageVersionMigrationListFluent(V1alpha1StorageVersionMigrationList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha1StorageVersionMigrationList instance) { - instance = instance != null ? instance : new V1alpha1StorageVersionMigrationList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1alpha1StorageVersionMigrationListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1alpha1StorageVersionMigrationListFluent(V1alpha1StorageVersionMigrationList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1alpha1StorageVersionMigration item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1alpha1StorageVersionMigration item : items) { + V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1alpha1StorageVersionMigration item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha1StorageVersionMigration item) { + return new ItemsNested(-1, item); } public A addToItems(V1alpha1StorageVersionMigration... items) { @@ -96,68 +65,31 @@ public A addToItems(V1alpha1StorageVersionMigration... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1alpha1StorageVersionMigration item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1alpha1StorageVersionMigration item : items) { - V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); + V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1alpha1StorageVersionMigration... items) { - if (this.items == null) { - return (A) this; - } - for (V1alpha1StorageVersionMigration item : items) { - V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1alpha1StorageVersionMigration item : items) { - V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha1StorageVersionMigrationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1alpha1StorageVersionMigration buildFirstItem() { + return this.items.get(0).build(); } public V1alpha1StorageVersionMigration buildItem(int index) { return this.items.get(index).build(); } - public V1alpha1StorageVersionMigration buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1alpha1StorageVersionMigration buildLastItem() { @@ -173,73 +105,34 @@ public V1alpha1StorageVersionMigration buildMatchingItem(Predicate predicate) { - for (V1alpha1StorageVersionMigrationBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha1StorageVersionMigration item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1alpha1StorageVersionMigrationList instance) { + instance = instance != null ? instance : new V1alpha1StorageVersionMigrationList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1alpha1StorageVersionMigration... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha1StorageVersionMigration item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha1StorageVersionMigration item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha1StorageVersionMigration item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1StorageVersionMigrationBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1StorageVersionMigration item : items) { + V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1alpha1StorageVersionMigration... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1StorageVersionMigration item : items) { + V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha1StorageVersionMigrationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1alpha1StorageVersionMigration item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1alpha1StorageVersionMigration item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha1StorageVersionMigrationBuilder builder = new V1alpha1StorageVersionMigrationBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha1StorageVersionMigration item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1alpha1StorageVersionMigration... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha1StorageVersionMigration item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1alpha1StorageVersionMigrationFluent> implements Nested{ + + V1alpha1StorageVersionMigrationBuilder builder; + int index; + ItemsNested(int index,V1alpha1StorageVersionMigration item) { this.index = index; this.builder = new V1alpha1StorageVersionMigrationBuilder(this, item); } - V1alpha1StorageVersionMigrationBuilder builder; - int index; - + public N and() { return (N) V1alpha1StorageVersionMigrationListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1alpha1StorageVersionMigrationListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecBuilder.java index 6457c13388..3de460332d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1StorageVersionMigrationSpecBuilder extends V1alpha1StorageVersionMigrationSpecFluent implements VisitableBuilder{ + + V1alpha1StorageVersionMigrationSpecFluent fluent; + public V1alpha1StorageVersionMigrationSpecBuilder() { this(new V1alpha1StorageVersionMigrationSpec()); } @@ -11,17 +14,16 @@ public V1alpha1StorageVersionMigrationSpecBuilder(V1alpha1StorageVersionMigratio this(fluent, new V1alpha1StorageVersionMigrationSpec()); } - public V1alpha1StorageVersionMigrationSpecBuilder(V1alpha1StorageVersionMigrationSpecFluent fluent,V1alpha1StorageVersionMigrationSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1StorageVersionMigrationSpecBuilder(V1alpha1StorageVersionMigrationSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1StorageVersionMigrationSpecFluent fluent; + public V1alpha1StorageVersionMigrationSpecBuilder(V1alpha1StorageVersionMigrationSpecFluent fluent,V1alpha1StorageVersionMigrationSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1StorageVersionMigrationSpec build() { V1alpha1StorageVersionMigrationSpec buildable = new V1alpha1StorageVersionMigrationSpec(); buildable.setContinueToken(fluent.getContinueToken()); @@ -29,5 +31,4 @@ public V1alpha1StorageVersionMigrationSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecFluent.java index 8c1b2e9a10..4431f82431 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecFluent.java @@ -1,27 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1StorageVersionMigrationSpecFluent> extends BaseFluent{ + + private String continueToken; + private V1alpha1GroupVersionResourceBuilder resource; + public V1alpha1StorageVersionMigrationSpecFluent() { } public V1alpha1StorageVersionMigrationSpecFluent(V1alpha1StorageVersionMigrationSpec instance) { this.copyInstance(instance); } - private String continueToken; - private V1alpha1GroupVersionResourceBuilder resource; + + public V1alpha1GroupVersionResource buildResource() { + return this.resource != null ? this.resource.build() : null; + } protected void copyInstance(V1alpha1StorageVersionMigrationSpec instance) { instance = instance != null ? instance : new V1alpha1StorageVersionMigrationSpec(); @@ -31,51 +37,6 @@ protected void copyInstance(V1alpha1StorageVersionMigrationSpec instance) { } } - public String getContinueToken() { - return this.continueToken; - } - - public A withContinueToken(String continueToken) { - this.continueToken = continueToken; - return (A) this; - } - - public boolean hasContinueToken() { - return this.continueToken != null; - } - - public V1alpha1GroupVersionResource buildResource() { - return this.resource != null ? this.resource.build() : null; - } - - public A withResource(V1alpha1GroupVersionResource resource) { - this._visitables.remove("resource"); - if (resource != null) { - this.resource = new V1alpha1GroupVersionResourceBuilder(resource); - this._visitables.get("resource").add(this.resource); - } else { - this.resource = null; - this._visitables.get("resource").remove(this.resource); - } - return (A) this; - } - - public boolean hasResource() { - return this.resource != null; - } - - public ResourceNested withNewResource() { - return new ResourceNested(null); - } - - public ResourceNested withNewResourceLike(V1alpha1GroupVersionResource item) { - return new ResourceNested(item); - } - - public ResourceNested editResource() { - return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(null)); - } - public ResourceNested editOrNewResource() { return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(new V1alpha1GroupVersionResourceBuilder().build())); } @@ -84,6 +45,10 @@ public ResourceNested editOrNewResourceLike(V1alpha1GroupVersionResource item return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(item)); } + public ResourceNested editResource() { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -104,6 +69,18 @@ public boolean equals(Object o) { return true; } + public String getContinueToken() { + return this.continueToken; + } + + public boolean hasContinueToken() { + return this.continueToken != null; + } + + public boolean hasResource() { + return this.resource != null; + } + public int hashCode() { return Objects.hash(continueToken, resource); } @@ -123,12 +100,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withContinueToken(String continueToken) { + this.continueToken = continueToken; + return (A) this; + } + + public ResourceNested withNewResource() { + return new ResourceNested(null); + } + + public ResourceNested withNewResourceLike(V1alpha1GroupVersionResource item) { + return new ResourceNested(item); + } + + public A withResource(V1alpha1GroupVersionResource resource) { + this._visitables.remove("resource"); + if (resource != null) { + this.resource = new V1alpha1GroupVersionResourceBuilder(resource); + this._visitables.get("resource").add(this.resource); + } else { + this.resource = null; + this._visitables.get("resource").remove(this.resource); + } + return (A) this; + } public class ResourceNested extends V1alpha1GroupVersionResourceFluent> implements Nested{ + + V1alpha1GroupVersionResourceBuilder builder; + ResourceNested(V1alpha1GroupVersionResource item) { this.builder = new V1alpha1GroupVersionResourceBuilder(this, item); } - V1alpha1GroupVersionResourceBuilder builder; - + public N and() { return (N) V1alpha1StorageVersionMigrationSpecFluent.this.withResource(builder.build()); } @@ -137,7 +141,5 @@ public N endResource() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusBuilder.java index 82041b8ef8..074885bf26 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1StorageVersionMigrationStatusBuilder extends V1alpha1StorageVersionMigrationStatusFluent implements VisitableBuilder{ + + V1alpha1StorageVersionMigrationStatusFluent fluent; + public V1alpha1StorageVersionMigrationStatusBuilder() { this(new V1alpha1StorageVersionMigrationStatus()); } @@ -11,17 +14,16 @@ public V1alpha1StorageVersionMigrationStatusBuilder(V1alpha1StorageVersionMigrat this(fluent, new V1alpha1StorageVersionMigrationStatus()); } - public V1alpha1StorageVersionMigrationStatusBuilder(V1alpha1StorageVersionMigrationStatusFluent fluent,V1alpha1StorageVersionMigrationStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1StorageVersionMigrationStatusBuilder(V1alpha1StorageVersionMigrationStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1StorageVersionMigrationStatusFluent fluent; + public V1alpha1StorageVersionMigrationStatusBuilder(V1alpha1StorageVersionMigrationStatusFluent fluent,V1alpha1StorageVersionMigrationStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1StorageVersionMigrationStatus build() { V1alpha1StorageVersionMigrationStatus buildable = new V1alpha1StorageVersionMigrationStatus(); buildable.setConditions(fluent.buildConditions()); @@ -29,5 +31,4 @@ public V1alpha1StorageVersionMigrationStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusFluent.java index 71c112a813..4c2c7841e1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusFluent.java @@ -1,69 +1,53 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1StorageVersionMigrationStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + private String resourceVersion; + public V1alpha1StorageVersionMigrationStatusFluent() { } public V1alpha1StorageVersionMigrationStatusFluent(V1alpha1StorageVersionMigrationStatus instance) { this.copyInstance(instance); } - private ArrayList conditions; - private String resourceVersion; - - protected void copyInstance(V1alpha1StorageVersionMigrationStatus instance) { - instance = instance != null ? instance : new V1alpha1StorageVersionMigrationStatus(); - if (instance != null) { - this.withConditions(instance.getConditions()); - this.withResourceVersion(instance.getResourceVersion()); - } - } - - public A addToConditions(int index,V1alpha1MigrationCondition item) { + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1alpha1MigrationCondition item : items) { + V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1alpha1MigrationCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1alpha1MigrationCondition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1alpha1MigrationCondition... items) { @@ -78,66 +62,29 @@ public A addToConditions(V1alpha1MigrationCondition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1alpha1MigrationCondition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1alpha1MigrationCondition item : items) { - V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); + V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1alpha1MigrationCondition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1alpha1MigrationCondition item : items) { - V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1alpha1MigrationCondition item : items) { - V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1alpha1MigrationConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1alpha1MigrationCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1alpha1MigrationCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1alpha1MigrationCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -155,61 +102,16 @@ public V1alpha1MigrationCondition buildMatchingCondition(Predicate predicate) { - for (V1alpha1MigrationConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1alpha1MigrationCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(V1alpha1MigrationCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1alpha1MigrationCondition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1alpha1StorageVersionMigrationStatus instance) { + instance = instance != null ? instance : new V1alpha1StorageVersionMigrationStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withResourceVersion(instance.getResourceVersion()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1alpha1MigrationCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1alpha1MigrationCondition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -244,19 +146,6 @@ public ConditionsNested editMatchingCondition(Predicate predicate) { + for (V1alpha1MigrationConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResourceVersion() { + return this.resourceVersion != null; + } + public int hashCode() { return Objects.hash(conditions, resourceVersion); } + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1alpha1MigrationCondition item : items) { + V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1alpha1MigrationCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1alpha1MigrationCondition item : items) { + V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1alpha1MigrationConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1alpha1MigrationCondition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1alpha1MigrationCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1alpha1MigrationConditionBuilder builder = new V1alpha1MigrationConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -296,14 +265,49 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1alpha1MigrationCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1alpha1MigrationCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1alpha1MigrationCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + return (A) this; + } public class ConditionsNested extends V1alpha1MigrationConditionFluent> implements Nested{ + + V1alpha1MigrationConditionBuilder builder; + int index; + ConditionsNested(int index,V1alpha1MigrationCondition item) { this.index = index; this.builder = new V1alpha1MigrationConditionBuilder(this, item); } - V1alpha1MigrationConditionBuilder builder; - int index; - + public N and() { return (N) V1alpha1StorageVersionMigrationStatusFluent.this.setToConditions(index, builder.build()); } @@ -312,7 +316,5 @@ public N endCondition() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java index 9f1ef9f9da..e2d235cb05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1StorageVersionStatusBuilder extends V1alpha1StorageVersionStatusFluent implements VisitableBuilder{ + + V1alpha1StorageVersionStatusFluent fluent; + public V1alpha1StorageVersionStatusBuilder() { this(new V1alpha1StorageVersionStatus()); } @@ -11,17 +14,16 @@ public V1alpha1StorageVersionStatusBuilder(V1alpha1StorageVersionStatusFluent this(fluent, new V1alpha1StorageVersionStatus()); } - public V1alpha1StorageVersionStatusBuilder(V1alpha1StorageVersionStatusFluent fluent,V1alpha1StorageVersionStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1StorageVersionStatusBuilder(V1alpha1StorageVersionStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1StorageVersionStatusFluent fluent; + public V1alpha1StorageVersionStatusBuilder(V1alpha1StorageVersionStatusFluent fluent,V1alpha1StorageVersionStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1StorageVersionStatus build() { V1alpha1StorageVersionStatus buildable = new V1alpha1StorageVersionStatus(); buildable.setCommonEncodingVersion(fluent.getCommonEncodingVersion()); @@ -30,5 +32,4 @@ public V1alpha1StorageVersionStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java index 2f48b6ec20..67c9ab34c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java @@ -1,86 +1,76 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1StorageVersionStatusFluent> extends BaseFluent{ - public V1alpha1StorageVersionStatusFluent() { - } - - public V1alpha1StorageVersionStatusFluent(V1alpha1StorageVersionStatus instance) { - this.copyInstance(instance); - } + private String commonEncodingVersion; private ArrayList conditions; private ArrayList storageVersions; - - protected void copyInstance(V1alpha1StorageVersionStatus instance) { - instance = instance != null ? instance : new V1alpha1StorageVersionStatus(); - if (instance != null) { - this.withCommonEncodingVersion(instance.getCommonEncodingVersion()); - this.withConditions(instance.getConditions()); - this.withStorageVersions(instance.getStorageVersions()); - } - } - - public String getCommonEncodingVersion() { - return this.commonEncodingVersion; - } - - public A withCommonEncodingVersion(String commonEncodingVersion) { - this.commonEncodingVersion = commonEncodingVersion; - return (A) this; + + public V1alpha1StorageVersionStatusFluent() { } - public boolean hasCommonEncodingVersion() { - return this.commonEncodingVersion != null; + public V1alpha1StorageVersionStatusFluent(V1alpha1StorageVersionStatus instance) { + this.copyInstance(instance); } - - public A addToConditions(int index,V1alpha1StorageVersionCondition item) { + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1alpha1StorageVersionCondition item : items) { + V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1alpha1StorageVersionCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); + public A addAllToStorageVersions(Collection items) { + if (this.storageVersions == null) { + this.storageVersions = new ArrayList(); } - V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + for (V1alpha1ServerStorageVersion item : items) { + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); + _visitables.get("storageVersions").add(builder); + this.storageVersions.add(builder); } return (A) this; } + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1alpha1StorageVersionCondition item) { + return new ConditionsNested(-1, item); + } + + public StorageVersionsNested addNewStorageVersion() { + return new StorageVersionsNested(-1, null); + } + + public StorageVersionsNested addNewStorageVersionLike(V1alpha1ServerStorageVersion item) { + return new StorageVersionsNested(-1, item); + } + public A addToConditions(V1alpha1StorageVersionCondition... items) { if (this.conditions == null) { this.conditions = new ArrayList(); @@ -93,74 +83,72 @@ public A addToConditions(V1alpha1StorageVersionCondition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1alpha1StorageVersionCondition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1alpha1StorageVersionCondition item : items) { - V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); + V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeFromConditions(V1alpha1StorageVersionCondition... items) { - if (this.conditions == null) { - return (A) this; + public A addToStorageVersions(V1alpha1ServerStorageVersion... items) { + if (this.storageVersions == null) { + this.storageVersions = new ArrayList(); } - for (V1alpha1StorageVersionCondition item : items) { - V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + for (V1alpha1ServerStorageVersion item : items) { + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); + _visitables.get("storageVersions").add(builder); + this.storageVersions.add(builder); } return (A) this; } - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; + public A addToStorageVersions(int index,V1alpha1ServerStorageVersion item) { + if (this.storageVersions == null) { + this.storageVersions = new ArrayList(); } - for (V1alpha1StorageVersionCondition item : items) { - V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); + if (index < 0 || index >= storageVersions.size()) { + _visitables.get("storageVersions").add(builder); + storageVersions.add(builder); + } else { + _visitables.get("storageVersions").add(builder); + storageVersions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1alpha1StorageVersionConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1alpha1StorageVersionCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1alpha1StorageVersionCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1alpha1StorageVersionCondition buildFirstCondition() { return this.conditions.get(0).build(); } + public V1alpha1ServerStorageVersion buildFirstStorageVersion() { + return this.storageVersions.get(0).build(); + } + public V1alpha1StorageVersionCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } + public V1alpha1ServerStorageVersion buildLastStorageVersion() { + return this.storageVersions.get(storageVersions.size() - 1).build(); + } + public V1alpha1StorageVersionCondition buildMatchingCondition(Predicate predicate) { for (V1alpha1StorageVersionConditionBuilder item : conditions) { if (predicate.test(item)) { @@ -170,61 +158,34 @@ public V1alpha1StorageVersionCondition buildMatchingCondition(Predicate predicate) { - for (V1alpha1StorageVersionConditionBuilder item : conditions) { + public V1alpha1ServerStorageVersion buildMatchingStorageVersion(Predicate predicate) { + for (V1alpha1ServerStorageVersionBuilder item : storageVersions) { if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1alpha1StorageVersionCondition item : conditions) { - this.addToConditions(item); + return item.build(); } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(V1alpha1StorageVersionCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1alpha1StorageVersionCondition item : conditions) { - this.addToConditions(item); } - } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); + return null; } - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + public V1alpha1ServerStorageVersion buildStorageVersion(int index) { + return this.storageVersions.get(index).build(); } - public ConditionsNested addNewConditionLike(V1alpha1StorageVersionCondition item) { - return new ConditionsNested(-1, item); + public List buildStorageVersions() { + return this.storageVersions != null ? build(storageVersions) : null; } - public ConditionsNested setNewConditionLike(int index,V1alpha1StorageVersionCondition item) { - return new ConditionsNested(index, item); + protected void copyInstance(V1alpha1StorageVersionStatus instance) { + instance = instance != null ? instance : new V1alpha1StorageVersionStatus(); + if (instance != null) { + this.withCommonEncodingVersion(instance.getCommonEncodingVersion()); + this.withConditions(instance.getConditions()); + this.withStorageVersions(instance.getStorageVersions()); + } } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -237,6 +198,13 @@ public ConditionsNested editFirstCondition() { return this.setNewConditionLike(0, this.buildCondition(0)); } + public StorageVersionsNested editFirstStorageVersion() { + if (storageVersions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "storageVersions")); + } + return this.setNewStorageVersionLike(0, this.buildStorageVersion(0)); + } + public ConditionsNested editLastCondition() { int index = conditions.size() - 1; if (index < 0) { @@ -245,6 +213,14 @@ public ConditionsNested editLastCondition() { return this.setNewConditionLike(index, this.buildCondition(index)); } + public StorageVersionsNested editLastStorageVersion() { + int index = storageVersions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "storageVersions")); + } + return this.setNewStorageVersionLike(index, this.buildStorageVersion(index)); + } + public ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; for (int i = 0;i < conditions.size();i++) { @@ -259,56 +235,120 @@ public ConditionsNested editMatchingCondition(Predicate editMatchingStorageVersion(Predicate predicate) { + int index = -1; + for (int i = 0;i < storageVersions.size();i++) { + if (predicate.test(storageVersions.get(i))) { + index = i; + break; + } } - V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - if (index < 0 || index >= storageVersions.size()) { - _visitables.get("storageVersions").add(builder); - storageVersions.add(builder); - } else { - _visitables.get("storageVersions").add(builder); - storageVersions.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "storageVersions")); } - return (A) this; + return this.setNewStorageVersionLike(index, this.buildStorageVersion(index)); } - public A setToStorageVersions(int index,V1alpha1ServerStorageVersion item) { - if (this.storageVersions == null) { - this.storageVersions = new ArrayList(); + public StorageVersionsNested editStorageVersion(int index) { + if (storageVersions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "storageVersions")); } - V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - if (index < 0 || index >= storageVersions.size()) { - _visitables.get("storageVersions").add(builder); - storageVersions.add(builder); - } else { - _visitables.get("storageVersions").add(builder); - storageVersions.set(index, builder); + return this.setNewStorageVersionLike(index, this.buildStorageVersion(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1StorageVersionStatusFluent that = (V1alpha1StorageVersionStatusFluent) o; + if (!(Objects.equals(commonEncodingVersion, that.commonEncodingVersion))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(storageVersions, that.storageVersions))) { + return false; + } + return true; + } + + public String getCommonEncodingVersion() { + return this.commonEncodingVersion; + } + + public boolean hasCommonEncodingVersion() { + return this.commonEncodingVersion != null; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1alpha1StorageVersionConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingStorageVersion(Predicate predicate) { + for (V1alpha1ServerStorageVersionBuilder item : storageVersions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasStorageVersions() { + return this.storageVersions != null && !(this.storageVersions.isEmpty()); + } + + public int hashCode() { + return Objects.hash(commonEncodingVersion, conditions, storageVersions); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1alpha1StorageVersionCondition item : items) { + V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } return (A) this; } - public A addToStorageVersions(V1alpha1ServerStorageVersion... items) { + public A removeAllFromStorageVersions(Collection items) { if (this.storageVersions == null) { - this.storageVersions = new ArrayList(); + return (A) this; } for (V1alpha1ServerStorageVersion item : items) { V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - _visitables.get("storageVersions").add(builder); - this.storageVersions.add(builder); + _visitables.get("storageVersions").remove(builder); + this.storageVersions.remove(builder); } return (A) this; } - public A addAllToStorageVersions(Collection items) { - if (this.storageVersions == null) { - this.storageVersions = new ArrayList(); + public A removeFromConditions(V1alpha1StorageVersionCondition... items) { + if (this.conditions == null) { + return (A) this; } - for (V1alpha1ServerStorageVersion item : items) { - V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - _visitables.get("storageVersions").add(builder); - this.storageVersions.add(builder); + for (V1alpha1StorageVersionCondition item : items) { + V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } return (A) this; } @@ -325,14 +365,18 @@ public A removeFromStorageVersions(V1alpha1ServerStorageVersion... items) { return (A) this; } - public A removeAllFromStorageVersions(Collection items) { - if (this.storageVersions == null) { + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { return (A) this; } - for (V1alpha1ServerStorageVersion item : items) { - V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - _visitables.get("storageVersions").remove(builder); - this.storageVersions.remove(builder); + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1alpha1StorageVersionConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -353,38 +397,96 @@ public A removeMatchingFromStorageVersions(Predicate buildStorageVersions() { - return this.storageVersions != null ? build(storageVersions) : null; + public ConditionsNested setNewConditionLike(int index,V1alpha1StorageVersionCondition item) { + return new ConditionsNested(index, item); } - public V1alpha1ServerStorageVersion buildStorageVersion(int index) { - return this.storageVersions.get(index).build(); + public StorageVersionsNested setNewStorageVersionLike(int index,V1alpha1ServerStorageVersion item) { + return new StorageVersionsNested(index, item); } - public V1alpha1ServerStorageVersion buildFirstStorageVersion() { - return this.storageVersions.get(0).build(); + public A setToConditions(int index,V1alpha1StorageVersionCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; } - public V1alpha1ServerStorageVersion buildLastStorageVersion() { - return this.storageVersions.get(storageVersions.size() - 1).build(); + public A setToStorageVersions(int index,V1alpha1ServerStorageVersion item) { + if (this.storageVersions == null) { + this.storageVersions = new ArrayList(); + } + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); + if (index < 0 || index >= storageVersions.size()) { + _visitables.get("storageVersions").add(builder); + storageVersions.add(builder); + } else { + _visitables.get("storageVersions").add(builder); + storageVersions.set(index, builder); + } + return (A) this; } - public V1alpha1ServerStorageVersion buildMatchingStorageVersion(Predicate predicate) { - for (V1alpha1ServerStorageVersionBuilder item : storageVersions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(commonEncodingVersion == null)) { + sb.append("commonEncodingVersion:"); + sb.append(commonEncodingVersion); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(storageVersions == null) && !(storageVersions.isEmpty())) { + sb.append("storageVersions:"); + sb.append(storageVersions); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingStorageVersion(Predicate predicate) { - for (V1alpha1ServerStorageVersionBuilder item : storageVersions) { - if (predicate.test(item)) { - return true; + public A withCommonEncodingVersion(String commonEncodingVersion) { + this.commonEncodingVersion = commonEncodingVersion; + return (A) this; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1alpha1StorageVersionCondition item : conditions) { + this.addToConditions(item); } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1alpha1StorageVersionCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1alpha1StorageVersionCondition item : conditions) { + this.addToConditions(item); } - return false; + } + return (A) this; } public A withStorageVersions(List storageVersions) { @@ -414,114 +516,16 @@ public A withStorageVersions(V1alpha1ServerStorageVersion... storageVersions) { } return (A) this; } + public class ConditionsNested extends V1alpha1StorageVersionConditionFluent> implements Nested{ - public boolean hasStorageVersions() { - return this.storageVersions != null && !(this.storageVersions.isEmpty()); - } - - public StorageVersionsNested addNewStorageVersion() { - return new StorageVersionsNested(-1, null); - } - - public StorageVersionsNested addNewStorageVersionLike(V1alpha1ServerStorageVersion item) { - return new StorageVersionsNested(-1, item); - } - - public StorageVersionsNested setNewStorageVersionLike(int index,V1alpha1ServerStorageVersion item) { - return new StorageVersionsNested(index, item); - } - - public StorageVersionsNested editStorageVersion(int index) { - if (index <= storageVersions.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "storageVersions")); - } - return this.setNewStorageVersionLike(index, this.buildStorageVersion(index)); - } - - public StorageVersionsNested editFirstStorageVersion() { - if (storageVersions.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "storageVersions")); - } - return this.setNewStorageVersionLike(0, this.buildStorageVersion(0)); - } - - public StorageVersionsNested editLastStorageVersion() { - int index = storageVersions.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "storageVersions")); - } - return this.setNewStorageVersionLike(index, this.buildStorageVersion(index)); - } - - public StorageVersionsNested editMatchingStorageVersion(Predicate predicate) { - int index = -1; - for (int i = 0;i < storageVersions.size();i++) { - if (predicate.test(storageVersions.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "storageVersions")); - } - return this.setNewStorageVersionLike(index, this.buildStorageVersion(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1alpha1StorageVersionStatusFluent that = (V1alpha1StorageVersionStatusFluent) o; - if (!(Objects.equals(commonEncodingVersion, that.commonEncodingVersion))) { - return false; - } - if (!(Objects.equals(conditions, that.conditions))) { - return false; - } - if (!(Objects.equals(storageVersions, that.storageVersions))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(commonEncodingVersion, conditions, storageVersions); - } + V1alpha1StorageVersionConditionBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(commonEncodingVersion == null)) { - sb.append("commonEncodingVersion:"); - sb.append(commonEncodingVersion); - sb.append(","); - } - if (!(conditions == null) && !(conditions.isEmpty())) { - sb.append("conditions:"); - sb.append(conditions); - sb.append(","); - } - if (!(storageVersions == null) && !(storageVersions.isEmpty())) { - sb.append("storageVersions:"); - sb.append(storageVersions); - } - sb.append("}"); - return sb.toString(); - } - public class ConditionsNested extends V1alpha1StorageVersionConditionFluent> implements Nested{ ConditionsNested(int index,V1alpha1StorageVersionCondition item) { this.index = index; this.builder = new V1alpha1StorageVersionConditionBuilder(this, item); } - V1alpha1StorageVersionConditionBuilder builder; - int index; - + public N and() { return (N) V1alpha1StorageVersionStatusFluent.this.setToConditions(index, builder.build()); } @@ -530,16 +534,17 @@ public N endCondition() { return and(); } - } public class StorageVersionsNested extends V1alpha1ServerStorageVersionFluent> implements Nested{ + + V1alpha1ServerStorageVersionBuilder builder; + int index; + StorageVersionsNested(int index,V1alpha1ServerStorageVersion item) { this.index = index; this.builder = new V1alpha1ServerStorageVersionBuilder(this, item); } - V1alpha1ServerStorageVersionBuilder builder; - int index; - + public N and() { return (N) V1alpha1StorageVersionStatusFluent.this.setToStorageVersions(index, builder.build()); } @@ -548,7 +553,5 @@ public N endStorageVersion() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableBuilder.java index 825a91b75b..c88d9d5d5f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1VariableBuilder extends V1alpha1VariableFluent implements VisitableBuilder{ + + V1alpha1VariableFluent fluent; + public V1alpha1VariableBuilder() { this(new V1alpha1Variable()); } @@ -11,17 +14,16 @@ public V1alpha1VariableBuilder(V1alpha1VariableFluent fluent) { this(fluent, new V1alpha1Variable()); } - public V1alpha1VariableBuilder(V1alpha1VariableFluent fluent,V1alpha1Variable instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1VariableBuilder(V1alpha1Variable instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1VariableFluent fluent; + public V1alpha1VariableBuilder(V1alpha1VariableFluent fluent,V1alpha1Variable instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1Variable build() { V1alpha1Variable buildable = new V1alpha1Variable(); buildable.setExpression(fluent.getExpression()); @@ -29,5 +31,4 @@ public V1alpha1Variable build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableFluent.java index 914074f32e..9864529fc0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1VariableFluent> extends BaseFluent{ + + private String expression; + private String name; + public V1alpha1VariableFluent() { } public V1alpha1VariableFluent(V1alpha1Variable instance) { this.copyInstance(instance); } - private String expression; - private String name; - + protected void copyInstance(V1alpha1Variable instance) { instance = instance != null ? instance : new V1alpha1Variable(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1alpha1Variable instance) { } } - public String getExpression() { - return this.expression; - } - - public A withExpression(String expression) { - this.expression = expression; - return (A) this; - } - - public boolean hasExpression() { - return this.expression != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getExpression() { + return this.expression; + } + + public String getName() { + return this.name; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(expression, name); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassBuilder.java index b3617fbaa0..731008a8d3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1VolumeAttributesClassBuilder extends V1alpha1VolumeAttributesClassFluent implements VisitableBuilder{ + + V1alpha1VolumeAttributesClassFluent fluent; + public V1alpha1VolumeAttributesClassBuilder() { this(new V1alpha1VolumeAttributesClass()); } @@ -11,17 +14,16 @@ public V1alpha1VolumeAttributesClassBuilder(V1alpha1VolumeAttributesClassFluent< this(fluent, new V1alpha1VolumeAttributesClass()); } - public V1alpha1VolumeAttributesClassBuilder(V1alpha1VolumeAttributesClassFluent fluent,V1alpha1VolumeAttributesClass instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1VolumeAttributesClassBuilder(V1alpha1VolumeAttributesClass instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1VolumeAttributesClassFluent fluent; + public V1alpha1VolumeAttributesClassBuilder(V1alpha1VolumeAttributesClassFluent fluent,V1alpha1VolumeAttributesClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1VolumeAttributesClass build() { V1alpha1VolumeAttributesClass buildable = new V1alpha1VolumeAttributesClass(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1alpha1VolumeAttributesClass build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassFluent.java index 23d2c67163..dd973cbdc1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassFluent.java @@ -1,32 +1,58 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1VolumeAttributesClassFluent> extends BaseFluent{ + + private String apiVersion; + private String driverName; + private String kind; + private V1ObjectMetaBuilder metadata; + private Map parameters; + public V1alpha1VolumeAttributesClassFluent() { } public V1alpha1VolumeAttributesClassFluent(V1alpha1VolumeAttributesClass instance) { this.copyInstance(instance); } - private String apiVersion; - private String driverName; - private String kind; - private V1ObjectMetaBuilder metadata; - private Map parameters; + + public A addToParameters(Map map) { + if (this.parameters == null && map != null) { + this.parameters = new LinkedHashMap(); + } + if (map != null) { + this.parameters.putAll(map); + } + return (A) this; + } + + public A addToParameters(String key,String value) { + if (this.parameters == null && key != null && value != null) { + this.parameters = new LinkedHashMap(); + } + if (key != null && value != null) { + this.parameters.put(key, value); + } + return (A) this; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } protected void copyInstance(V1alpha1VolumeAttributesClass instance) { instance = instance != null ? instance : new V1alpha1VolumeAttributesClass(); @@ -39,103 +65,85 @@ protected void copyInstance(V1alpha1VolumeAttributesClass instance) { } } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public String getDriverName() { - return this.driverName; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1VolumeAttributesClassFluent that = (V1alpha1VolumeAttributesClassFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(driverName, that.driverName))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(parameters, that.parameters))) { + return false; + } + return true; } - public A withDriverName(String driverName) { - this.driverName = driverName; - return (A) this; + public String getApiVersion() { + return this.apiVersion; } - public boolean hasDriverName() { - return this.driverName != null; + public String getDriverName() { + return this.driverName; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public Map getParameters() { + return this.parameters; } - public boolean hasKind() { - return this.kind != null; + public boolean hasApiVersion() { + return this.apiVersion != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasDriverName() { + return this.driverName != null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; + public boolean hasKind() { + return this.kind != null; } public boolean hasMetadata() { return this.metadata != null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); - } - - public A addToParameters(String key,String value) { - if (this.parameters == null && key != null && value != null) { - this.parameters = new LinkedHashMap(); - } - if (key != null && value != null) { - this.parameters.put(key, value); - } - return (A) this; + public boolean hasParameters() { + return this.parameters != null; } - public A addToParameters(Map map) { - if (this.parameters == null && map != null) { - this.parameters = new LinkedHashMap(); - } - if (map != null) { - this.parameters.putAll(map); - } - return (A) this; + public int hashCode() { + return Objects.hash(apiVersion, driverName, kind, metadata, parameters); } public A removeFromParameters(String key) { @@ -162,56 +170,6 @@ public A removeFromParameters(Map map) { return (A) this; } - public Map getParameters() { - return this.parameters; - } - - public A withParameters(Map parameters) { - if (parameters == null) { - this.parameters = null; - } else { - this.parameters = new LinkedHashMap(parameters); - } - return (A) this; - } - - public boolean hasParameters() { - return this.parameters != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1alpha1VolumeAttributesClassFluent that = (V1alpha1VolumeAttributesClassFluent) o; - if (!(Objects.equals(apiVersion, that.apiVersion))) { - return false; - } - if (!(Objects.equals(driverName, that.driverName))) { - return false; - } - if (!(Objects.equals(kind, that.kind))) { - return false; - } - if (!(Objects.equals(metadata, that.metadata))) { - return false; - } - if (!(Objects.equals(parameters, that.parameters))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(apiVersion, driverName, kind, metadata, parameters); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -242,12 +200,58 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withDriverName(String driverName) { + this.driverName = driverName; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public A withParameters(Map parameters) { + if (parameters == null) { + this.parameters = null; + } else { + this.parameters = new LinkedHashMap(parameters); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1alpha1VolumeAttributesClassFluent.this.withMetadata(builder.build()); } @@ -256,7 +260,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListBuilder.java index 3f5d9ed501..7f21162e09 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha1VolumeAttributesClassListBuilder extends V1alpha1VolumeAttributesClassListFluent implements VisitableBuilder{ + + V1alpha1VolumeAttributesClassListFluent fluent; + public V1alpha1VolumeAttributesClassListBuilder() { this(new V1alpha1VolumeAttributesClassList()); } @@ -11,17 +14,16 @@ public V1alpha1VolumeAttributesClassListBuilder(V1alpha1VolumeAttributesClassLis this(fluent, new V1alpha1VolumeAttributesClassList()); } - public V1alpha1VolumeAttributesClassListBuilder(V1alpha1VolumeAttributesClassListFluent fluent,V1alpha1VolumeAttributesClassList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1VolumeAttributesClassListBuilder(V1alpha1VolumeAttributesClassList instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1VolumeAttributesClassListFluent fluent; + public V1alpha1VolumeAttributesClassListBuilder(V1alpha1VolumeAttributesClassListFluent fluent,V1alpha1VolumeAttributesClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1VolumeAttributesClassList build() { V1alpha1VolumeAttributesClassList buildable = new V1alpha1VolumeAttributesClassList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1alpha1VolumeAttributesClassList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListFluent.java index 2af3a169ca..bb35c2f1ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha1VolumeAttributesClassListFluent> extends BaseFluent{ - public V1alpha1VolumeAttributesClassListFluent() { - } - - public V1alpha1VolumeAttributesClassListFluent(V1alpha1VolumeAttributesClassList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha1VolumeAttributesClassList instance) { - instance = instance != null ? instance : new V1alpha1VolumeAttributesClassList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1alpha1VolumeAttributesClassListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1alpha1VolumeAttributesClassListFluent(V1alpha1VolumeAttributesClassList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1alpha1VolumeAttributesClass item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1alpha1VolumeAttributesClass item : items) { + V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1alpha1VolumeAttributesClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha1VolumeAttributesClass item) { + return new ItemsNested(-1, item); } public A addToItems(V1alpha1VolumeAttributesClass... items) { @@ -96,68 +65,31 @@ public A addToItems(V1alpha1VolumeAttributesClass... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1alpha1VolumeAttributesClass item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1alpha1VolumeAttributesClass item : items) { - V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); + V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1alpha1VolumeAttributesClass... items) { - if (this.items == null) { - return (A) this; - } - for (V1alpha1VolumeAttributesClass item : items) { - V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1alpha1VolumeAttributesClass item : items) { - V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha1VolumeAttributesClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1alpha1VolumeAttributesClass buildFirstItem() { + return this.items.get(0).build(); } public V1alpha1VolumeAttributesClass buildItem(int index) { return this.items.get(index).build(); } - public V1alpha1VolumeAttributesClass buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1alpha1VolumeAttributesClass buildLastItem() { @@ -173,73 +105,34 @@ public V1alpha1VolumeAttributesClass buildMatchingItem(Predicate predicate) { - for (V1alpha1VolumeAttributesClassBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha1VolumeAttributesClass item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1alpha1VolumeAttributesClassList instance) { + instance = instance != null ? instance : new V1alpha1VolumeAttributesClassList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1alpha1VolumeAttributesClass... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha1VolumeAttributesClass item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha1VolumeAttributesClass item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha1VolumeAttributesClass item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1VolumeAttributesClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1VolumeAttributesClass item : items) { + V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1alpha1VolumeAttributesClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1VolumeAttributesClass item : items) { + V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha1VolumeAttributesClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1alpha1VolumeAttributesClass item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1alpha1VolumeAttributesClass item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha1VolumeAttributesClassBuilder builder = new V1alpha1VolumeAttributesClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha1VolumeAttributesClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1alpha1VolumeAttributesClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha1VolumeAttributesClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1alpha1VolumeAttributesClassFluent> implements Nested{ + + V1alpha1VolumeAttributesClassBuilder builder; + int index; + ItemsNested(int index,V1alpha1VolumeAttributesClass item) { this.index = index; this.builder = new V1alpha1VolumeAttributesClassBuilder(this, item); } - V1alpha1VolumeAttributesClassBuilder builder; - int index; - + public N and() { return (N) V1alpha1VolumeAttributesClassListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1alpha1VolumeAttributesClassListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateBuilder.java index 305b882f22..73a5b7ee4c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha2LeaseCandidateBuilder extends V1alpha2LeaseCandidateFluent implements VisitableBuilder{ + + V1alpha2LeaseCandidateFluent fluent; + public V1alpha2LeaseCandidateBuilder() { this(new V1alpha2LeaseCandidate()); } @@ -11,17 +14,16 @@ public V1alpha2LeaseCandidateBuilder(V1alpha2LeaseCandidateFluent fluent) { this(fluent, new V1alpha2LeaseCandidate()); } - public V1alpha2LeaseCandidateBuilder(V1alpha2LeaseCandidateFluent fluent,V1alpha2LeaseCandidate instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha2LeaseCandidateBuilder(V1alpha2LeaseCandidate instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha2LeaseCandidateFluent fluent; + public V1alpha2LeaseCandidateBuilder(V1alpha2LeaseCandidateFluent fluent,V1alpha2LeaseCandidate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha2LeaseCandidate build() { V1alpha2LeaseCandidate buildable = new V1alpha2LeaseCandidate(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1alpha2LeaseCandidate build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateFluent.java index 8caf1e42a7..271295b48b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha2LeaseCandidateFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha2LeaseCandidateSpecBuilder spec; + public V1alpha2LeaseCandidateFluent() { } public V1alpha2LeaseCandidateFluent(V1alpha2LeaseCandidate instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1alpha2LeaseCandidateSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1alpha2LeaseCandidateSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1alpha2LeaseCandidate instance) { instance = instance != null ? instance : new V1alpha2LeaseCandidate(); @@ -35,60 +45,6 @@ protected void copyInstance(V1alpha2LeaseCandidate instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1alpha2LeaseCandidateSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1alpha2LeaseCandidateSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1alpha2LeaseCandidateSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1alpha2LeaseCandidateSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha2LeaseCandidateSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1alpha2LeaseCandidateSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha2LeaseCandidateSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1alpha2LeaseCandidateSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha2LeaseCandidateSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1alpha2LeaseCandidateFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1alpha2LeaseCandidateSpecFluent> implements Nested{ + + V1alpha2LeaseCandidateSpecBuilder builder; + SpecNested(V1alpha2LeaseCandidateSpec item) { this.builder = new V1alpha2LeaseCandidateSpecBuilder(this, item); } - V1alpha2LeaseCandidateSpecBuilder builder; - + public N and() { return (N) V1alpha2LeaseCandidateFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListBuilder.java index 2910bdaf5a..c1a1ed9493 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha2LeaseCandidateListBuilder extends V1alpha2LeaseCandidateListFluent implements VisitableBuilder{ + + V1alpha2LeaseCandidateListFluent fluent; + public V1alpha2LeaseCandidateListBuilder() { this(new V1alpha2LeaseCandidateList()); } @@ -11,17 +14,16 @@ public V1alpha2LeaseCandidateListBuilder(V1alpha2LeaseCandidateListFluent flu this(fluent, new V1alpha2LeaseCandidateList()); } - public V1alpha2LeaseCandidateListBuilder(V1alpha2LeaseCandidateListFluent fluent,V1alpha2LeaseCandidateList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha2LeaseCandidateListBuilder(V1alpha2LeaseCandidateList instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha2LeaseCandidateListFluent fluent; + public V1alpha2LeaseCandidateListBuilder(V1alpha2LeaseCandidateListFluent fluent,V1alpha2LeaseCandidateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha2LeaseCandidateList build() { V1alpha2LeaseCandidateList buildable = new V1alpha2LeaseCandidateList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1alpha2LeaseCandidateList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListFluent.java index 269cc629cd..9945514296 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha2LeaseCandidateListFluent> extends BaseFluent{ - public V1alpha2LeaseCandidateListFluent() { - } - - public V1alpha2LeaseCandidateListFluent(V1alpha2LeaseCandidateList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha2LeaseCandidateList instance) { - instance = instance != null ? instance : new V1alpha2LeaseCandidateList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1alpha2LeaseCandidateListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1alpha2LeaseCandidateListFluent(V1alpha2LeaseCandidateList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1alpha2LeaseCandidate item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1alpha2LeaseCandidate item : items) { + V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1alpha2LeaseCandidate item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha2LeaseCandidate item) { + return new ItemsNested(-1, item); } public A addToItems(V1alpha2LeaseCandidate... items) { @@ -96,68 +65,31 @@ public A addToItems(V1alpha2LeaseCandidate... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1alpha2LeaseCandidate item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1alpha2LeaseCandidate item : items) { - V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); + V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1alpha2LeaseCandidate... items) { - if (this.items == null) { - return (A) this; - } - for (V1alpha2LeaseCandidate item : items) { - V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1alpha2LeaseCandidate item : items) { - V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha2LeaseCandidateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1alpha2LeaseCandidate buildFirstItem() { + return this.items.get(0).build(); } public V1alpha2LeaseCandidate buildItem(int index) { return this.items.get(index).build(); } - public V1alpha2LeaseCandidate buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1alpha2LeaseCandidate buildLastItem() { @@ -173,73 +105,34 @@ public V1alpha2LeaseCandidate buildMatchingItem(Predicate predicate) { - for (V1alpha2LeaseCandidateBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha2LeaseCandidate item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1alpha2LeaseCandidateList instance) { + instance = instance != null ? instance : new V1alpha2LeaseCandidateList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1alpha2LeaseCandidate... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha2LeaseCandidate item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha2LeaseCandidate item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha2LeaseCandidate item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha2LeaseCandidateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha2LeaseCandidate item : items) { + V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1alpha2LeaseCandidate... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha2LeaseCandidate item : items) { + V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha2LeaseCandidateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1alpha2LeaseCandidate item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1alpha2LeaseCandidate item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha2LeaseCandidate item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1alpha2LeaseCandidate... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha2LeaseCandidate item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1alpha2LeaseCandidateFluent> implements Nested{ + + V1alpha2LeaseCandidateBuilder builder; + int index; + ItemsNested(int index,V1alpha2LeaseCandidate item) { this.index = index; this.builder = new V1alpha2LeaseCandidateBuilder(this, item); } - V1alpha2LeaseCandidateBuilder builder; - int index; - + public N and() { return (N) V1alpha2LeaseCandidateListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1alpha2LeaseCandidateListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecBuilder.java index a9fbe51052..51994c11a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha2LeaseCandidateSpecBuilder extends V1alpha2LeaseCandidateSpecFluent implements VisitableBuilder{ + + V1alpha2LeaseCandidateSpecFluent fluent; + public V1alpha2LeaseCandidateSpecBuilder() { this(new V1alpha2LeaseCandidateSpec()); } @@ -11,17 +14,16 @@ public V1alpha2LeaseCandidateSpecBuilder(V1alpha2LeaseCandidateSpecFluent flu this(fluent, new V1alpha2LeaseCandidateSpec()); } - public V1alpha2LeaseCandidateSpecBuilder(V1alpha2LeaseCandidateSpecFluent fluent,V1alpha2LeaseCandidateSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha2LeaseCandidateSpecBuilder(V1alpha2LeaseCandidateSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha2LeaseCandidateSpecFluent fluent; + public V1alpha2LeaseCandidateSpecBuilder(V1alpha2LeaseCandidateSpecFluent fluent,V1alpha2LeaseCandidateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha2LeaseCandidateSpec build() { V1alpha2LeaseCandidateSpec buildable = new V1alpha2LeaseCandidateSpec(); buildable.setBinaryVersion(fluent.getBinaryVersion()); @@ -33,5 +35,4 @@ public V1alpha2LeaseCandidateSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecFluent.java index 10e2cdb6ff..65cfc6e776 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecFluent.java @@ -1,31 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha2LeaseCandidateSpecFluent> extends BaseFluent{ - public V1alpha2LeaseCandidateSpecFluent() { - } - - public V1alpha2LeaseCandidateSpecFluent(V1alpha2LeaseCandidateSpec instance) { - this.copyInstance(instance); - } + private String binaryVersion; private String emulationVersion; private String leaseName; private OffsetDateTime pingTime; private OffsetDateTime renewTime; private String strategy; + + public V1alpha2LeaseCandidateSpecFluent() { + } + public V1alpha2LeaseCandidateSpecFluent(V1alpha2LeaseCandidateSpec instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1alpha2LeaseCandidateSpec instance) { instance = instance != null ? instance : new V1alpha2LeaseCandidateSpec(); if (instance != null) { @@ -38,116 +40,86 @@ protected void copyInstance(V1alpha2LeaseCandidateSpec instance) { } } - public String getBinaryVersion() { - return this.binaryVersion; - } - - public A withBinaryVersion(String binaryVersion) { - this.binaryVersion = binaryVersion; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha2LeaseCandidateSpecFluent that = (V1alpha2LeaseCandidateSpecFluent) o; + if (!(Objects.equals(binaryVersion, that.binaryVersion))) { + return false; + } + if (!(Objects.equals(emulationVersion, that.emulationVersion))) { + return false; + } + if (!(Objects.equals(leaseName, that.leaseName))) { + return false; + } + if (!(Objects.equals(pingTime, that.pingTime))) { + return false; + } + if (!(Objects.equals(renewTime, that.renewTime))) { + return false; + } + if (!(Objects.equals(strategy, that.strategy))) { + return false; + } + return true; } - public boolean hasBinaryVersion() { - return this.binaryVersion != null; + public String getBinaryVersion() { + return this.binaryVersion; } public String getEmulationVersion() { return this.emulationVersion; } - public A withEmulationVersion(String emulationVersion) { - this.emulationVersion = emulationVersion; - return (A) this; - } - - public boolean hasEmulationVersion() { - return this.emulationVersion != null; - } - public String getLeaseName() { return this.leaseName; } - public A withLeaseName(String leaseName) { - this.leaseName = leaseName; - return (A) this; - } - - public boolean hasLeaseName() { - return this.leaseName != null; - } - public OffsetDateTime getPingTime() { return this.pingTime; } - public A withPingTime(OffsetDateTime pingTime) { - this.pingTime = pingTime; - return (A) this; + public OffsetDateTime getRenewTime() { + return this.renewTime; } - public boolean hasPingTime() { - return this.pingTime != null; + public String getStrategy() { + return this.strategy; } - public OffsetDateTime getRenewTime() { - return this.renewTime; + public boolean hasBinaryVersion() { + return this.binaryVersion != null; } - public A withRenewTime(OffsetDateTime renewTime) { - this.renewTime = renewTime; - return (A) this; + public boolean hasEmulationVersion() { + return this.emulationVersion != null; } - public boolean hasRenewTime() { - return this.renewTime != null; + public boolean hasLeaseName() { + return this.leaseName != null; } - public String getStrategy() { - return this.strategy; + public boolean hasPingTime() { + return this.pingTime != null; } - public A withStrategy(String strategy) { - this.strategy = strategy; - return (A) this; + public boolean hasRenewTime() { + return this.renewTime != null; } public boolean hasStrategy() { return this.strategy != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1alpha2LeaseCandidateSpecFluent that = (V1alpha2LeaseCandidateSpecFluent) o; - if (!(Objects.equals(binaryVersion, that.binaryVersion))) { - return false; - } - if (!(Objects.equals(emulationVersion, that.emulationVersion))) { - return false; - } - if (!(Objects.equals(leaseName, that.leaseName))) { - return false; - } - if (!(Objects.equals(pingTime, that.pingTime))) { - return false; - } - if (!(Objects.equals(renewTime, that.renewTime))) { - return false; - } - if (!(Objects.equals(strategy, that.strategy))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(binaryVersion, emulationVersion, leaseName, pingTime, renewTime, strategy); } @@ -188,5 +160,34 @@ public String toString() { return sb.toString(); } - + public A withBinaryVersion(String binaryVersion) { + this.binaryVersion = binaryVersion; + return (A) this; + } + + public A withEmulationVersion(String emulationVersion) { + this.emulationVersion = emulationVersion; + return (A) this; + } + + public A withLeaseName(String leaseName) { + this.leaseName = leaseName; + return (A) this; + } + + public A withPingTime(OffsetDateTime pingTime) { + this.pingTime = pingTime; + return (A) this; + } + + public A withRenewTime(OffsetDateTime renewTime) { + this.renewTime = renewTime; + return (A) this; + } + + public A withStrategy(String strategy) { + this.strategy = strategy; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorBuilder.java index b1315f31cb..274c61f41e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha3CELDeviceSelectorBuilder extends V1alpha3CELDeviceSelectorFluent implements VisitableBuilder{ + + V1alpha3CELDeviceSelectorFluent fluent; + public V1alpha3CELDeviceSelectorBuilder() { this(new V1alpha3CELDeviceSelector()); } @@ -11,22 +14,20 @@ public V1alpha3CELDeviceSelectorBuilder(V1alpha3CELDeviceSelectorFluent fluen this(fluent, new V1alpha3CELDeviceSelector()); } - public V1alpha3CELDeviceSelectorBuilder(V1alpha3CELDeviceSelectorFluent fluent,V1alpha3CELDeviceSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha3CELDeviceSelectorBuilder(V1alpha3CELDeviceSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha3CELDeviceSelectorFluent fluent; + public V1alpha3CELDeviceSelectorBuilder(V1alpha3CELDeviceSelectorFluent fluent,V1alpha3CELDeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha3CELDeviceSelector build() { V1alpha3CELDeviceSelector buildable = new V1alpha3CELDeviceSelector(); buildable.setExpression(fluent.getExpression()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorFluent.java index 3c4cf6b918..51cd7197b0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelectorFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha3CELDeviceSelectorFluent> extends BaseFluent{ + + private String expression; + public V1alpha3CELDeviceSelectorFluent() { } public V1alpha3CELDeviceSelectorFluent(V1alpha3CELDeviceSelector instance) { this.copyInstance(instance); } - private String expression; - + protected void copyInstance(V1alpha3CELDeviceSelector instance) { instance = instance != null ? instance : new V1alpha3CELDeviceSelector(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1alpha3CELDeviceSelector instance) { } } - public String getExpression() { - return this.expression; - } - - public A withExpression(String expression) { - this.expression = expression; - return (A) this; - } - - public boolean hasExpression() { - return this.expression != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getExpression() { + return this.expression; + } + + public boolean hasExpression() { + return this.expression != null; + } + public int hashCode() { return Objects.hash(expression); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorBuilder.java index 9769e4a9b1..6e8ec8c339 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha3DeviceSelectorBuilder extends V1alpha3DeviceSelectorFluent implements VisitableBuilder{ + + V1alpha3DeviceSelectorFluent fluent; + public V1alpha3DeviceSelectorBuilder() { this(new V1alpha3DeviceSelector()); } @@ -11,22 +14,20 @@ public V1alpha3DeviceSelectorBuilder(V1alpha3DeviceSelectorFluent fluent) { this(fluent, new V1alpha3DeviceSelector()); } - public V1alpha3DeviceSelectorBuilder(V1alpha3DeviceSelectorFluent fluent,V1alpha3DeviceSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha3DeviceSelectorBuilder(V1alpha3DeviceSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha3DeviceSelectorFluent fluent; + public V1alpha3DeviceSelectorBuilder(V1alpha3DeviceSelectorFluent fluent,V1alpha3DeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha3DeviceSelector build() { V1alpha3DeviceSelector buildable = new V1alpha3DeviceSelector(); buildable.setCel(fluent.buildCel()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorFluent.java index 908851fc9e..c0407e01c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelectorFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha3DeviceSelectorFluent> extends BaseFluent{ + + private V1alpha3CELDeviceSelectorBuilder cel; + public V1alpha3DeviceSelectorFluent() { } public V1alpha3DeviceSelectorFluent(V1alpha3DeviceSelector instance) { this.copyInstance(instance); } - private V1alpha3CELDeviceSelectorBuilder cel; + + public V1alpha3CELDeviceSelector buildCel() { + return this.cel != null ? this.cel.build() : null; + } protected void copyInstance(V1alpha3DeviceSelector instance) { instance = instance != null ? instance : new V1alpha3DeviceSelector(); @@ -29,34 +35,6 @@ protected void copyInstance(V1alpha3DeviceSelector instance) { } } - public V1alpha3CELDeviceSelector buildCel() { - return this.cel != null ? this.cel.build() : null; - } - - public A withCel(V1alpha3CELDeviceSelector cel) { - this._visitables.remove("cel"); - if (cel != null) { - this.cel = new V1alpha3CELDeviceSelectorBuilder(cel); - this._visitables.get("cel").add(this.cel); - } else { - this.cel = null; - this._visitables.get("cel").remove(this.cel); - } - return (A) this; - } - - public boolean hasCel() { - return this.cel != null; - } - - public CelNested withNewCel() { - return new CelNested(null); - } - - public CelNested withNewCelLike(V1alpha3CELDeviceSelector item) { - return new CelNested(item); - } - public CelNested editCel() { return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(null)); } @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasCel() { + return this.cel != null; + } + public int hashCode() { return Objects.hash(cel); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withCel(V1alpha3CELDeviceSelector cel) { + this._visitables.remove("cel"); + if (cel != null) { + this.cel = new V1alpha3CELDeviceSelectorBuilder(cel); + this._visitables.get("cel").add(this.cel); + } else { + this.cel = null; + this._visitables.get("cel").remove(this.cel); + } + return (A) this; + } + + public CelNested withNewCel() { + return new CelNested(null); + } + + public CelNested withNewCelLike(V1alpha3CELDeviceSelector item) { + return new CelNested(item); + } public class CelNested extends V1alpha3CELDeviceSelectorFluent> implements Nested{ + + V1alpha3CELDeviceSelectorBuilder builder; + CelNested(V1alpha3CELDeviceSelector item) { this.builder = new V1alpha3CELDeviceSelectorBuilder(this, item); } - V1alpha3CELDeviceSelectorBuilder builder; - + public N and() { return (N) V1alpha3DeviceSelectorFluent.this.withCel(builder.build()); } @@ -114,7 +118,5 @@ public N endCel() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java index cd474e9a23..c59b6a48e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha3DeviceTaintBuilder extends V1alpha3DeviceTaintFluent implements VisitableBuilder{ + + V1alpha3DeviceTaintFluent fluent; + public V1alpha3DeviceTaintBuilder() { this(new V1alpha3DeviceTaint()); } @@ -11,17 +14,16 @@ public V1alpha3DeviceTaintBuilder(V1alpha3DeviceTaintFluent fluent) { this(fluent, new V1alpha3DeviceTaint()); } - public V1alpha3DeviceTaintBuilder(V1alpha3DeviceTaintFluent fluent,V1alpha3DeviceTaint instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha3DeviceTaintBuilder(V1alpha3DeviceTaint instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha3DeviceTaintFluent fluent; + public V1alpha3DeviceTaintBuilder(V1alpha3DeviceTaintFluent fluent,V1alpha3DeviceTaint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha3DeviceTaint build() { V1alpha3DeviceTaint buildable = new V1alpha3DeviceTaint(); buildable.setEffect(fluent.getEffect()); @@ -31,5 +33,4 @@ public V1alpha3DeviceTaint build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintFluent.java index 29ec644352..22f7c3d970 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha3DeviceTaintFluent> extends BaseFluent{ + + private String effect; + private String key; + private OffsetDateTime timeAdded; + private String value; + public V1alpha3DeviceTaintFluent() { } public V1alpha3DeviceTaintFluent(V1alpha3DeviceTaint instance) { this.copyInstance(instance); } - private String effect; - private String key; - private OffsetDateTime timeAdded; - private String value; - + protected void copyInstance(V1alpha3DeviceTaint instance) { instance = instance != null ? instance : new V1alpha3DeviceTaint(); if (instance != null) { @@ -34,58 +36,6 @@ protected void copyInstance(V1alpha3DeviceTaint instance) { } } - public String getEffect() { - return this.effect; - } - - public A withEffect(String effect) { - this.effect = effect; - return (A) this; - } - - public boolean hasEffect() { - return this.effect != null; - } - - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public OffsetDateTime getTimeAdded() { - return this.timeAdded; - } - - public A withTimeAdded(OffsetDateTime timeAdded) { - this.timeAdded = timeAdded; - return (A) this; - } - - public boolean hasTimeAdded() { - return this.timeAdded != null; - } - - public String getValue() { - return this.value; - } - - public A withValue(String value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -112,6 +62,38 @@ public boolean equals(Object o) { return true; } + public String getEffect() { + return this.effect; + } + + public String getKey() { + return this.key; + } + + public OffsetDateTime getTimeAdded() { + return this.timeAdded; + } + + public String getValue() { + return this.value; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasTimeAdded() { + return this.timeAdded != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(effect, key, timeAdded, value); } @@ -142,5 +124,24 @@ public String toString() { return sb.toString(); } - + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withTimeAdded(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleBuilder.java index 70ff0e2248..500a04feca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha3DeviceTaintRuleBuilder extends V1alpha3DeviceTaintRuleFluent implements VisitableBuilder{ + + V1alpha3DeviceTaintRuleFluent fluent; + public V1alpha3DeviceTaintRuleBuilder() { this(new V1alpha3DeviceTaintRule()); } @@ -11,17 +14,16 @@ public V1alpha3DeviceTaintRuleBuilder(V1alpha3DeviceTaintRuleFluent fluent) { this(fluent, new V1alpha3DeviceTaintRule()); } - public V1alpha3DeviceTaintRuleBuilder(V1alpha3DeviceTaintRuleFluent fluent,V1alpha3DeviceTaintRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha3DeviceTaintRuleBuilder(V1alpha3DeviceTaintRule instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha3DeviceTaintRuleFluent fluent; + public V1alpha3DeviceTaintRuleBuilder(V1alpha3DeviceTaintRuleFluent fluent,V1alpha3DeviceTaintRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha3DeviceTaintRule build() { V1alpha3DeviceTaintRule buildable = new V1alpha3DeviceTaintRule(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1alpha3DeviceTaintRule build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleFluent.java index ced5193a19..24a184979b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha3DeviceTaintRuleFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha3DeviceTaintRuleSpecBuilder spec; + public V1alpha3DeviceTaintRuleFluent() { } public V1alpha3DeviceTaintRuleFluent(V1alpha3DeviceTaintRule instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1alpha3DeviceTaintRuleSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1alpha3DeviceTaintRuleSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1alpha3DeviceTaintRule instance) { instance = instance != null ? instance : new V1alpha3DeviceTaintRule(); @@ -35,60 +45,6 @@ protected void copyInstance(V1alpha3DeviceTaintRule instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1alpha3DeviceTaintRuleSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1alpha3DeviceTaintRuleSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1alpha3DeviceTaintRuleSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1alpha3DeviceTaintRuleSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha3DeviceTaintRuleSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1alpha3DeviceTaintRuleSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha3DeviceTaintRuleSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1alpha3DeviceTaintRuleSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha3DeviceTaintRuleSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1alpha3DeviceTaintRuleFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1alpha3DeviceTaintRuleSpecFluent> implements Nested{ + + V1alpha3DeviceTaintRuleSpecBuilder builder; + SpecNested(V1alpha3DeviceTaintRuleSpec item) { this.builder = new V1alpha3DeviceTaintRuleSpecBuilder(this, item); } - V1alpha3DeviceTaintRuleSpecBuilder builder; - + public N and() { return (N) V1alpha3DeviceTaintRuleFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListBuilder.java index be059ed3ba..96e479f422 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha3DeviceTaintRuleListBuilder extends V1alpha3DeviceTaintRuleListFluent implements VisitableBuilder{ + + V1alpha3DeviceTaintRuleListFluent fluent; + public V1alpha3DeviceTaintRuleListBuilder() { this(new V1alpha3DeviceTaintRuleList()); } @@ -11,17 +14,16 @@ public V1alpha3DeviceTaintRuleListBuilder(V1alpha3DeviceTaintRuleListFluent f this(fluent, new V1alpha3DeviceTaintRuleList()); } - public V1alpha3DeviceTaintRuleListBuilder(V1alpha3DeviceTaintRuleListFluent fluent,V1alpha3DeviceTaintRuleList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha3DeviceTaintRuleListBuilder(V1alpha3DeviceTaintRuleList instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha3DeviceTaintRuleListFluent fluent; + public V1alpha3DeviceTaintRuleListBuilder(V1alpha3DeviceTaintRuleListFluent fluent,V1alpha3DeviceTaintRuleList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha3DeviceTaintRuleList build() { V1alpha3DeviceTaintRuleList buildable = new V1alpha3DeviceTaintRuleList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1alpha3DeviceTaintRuleList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListFluent.java index b0faa9685d..2b11a10ad7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha3DeviceTaintRuleListFluent> extends BaseFluent{ - public V1alpha3DeviceTaintRuleListFluent() { - } - - public V1alpha3DeviceTaintRuleListFluent(V1alpha3DeviceTaintRuleList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha3DeviceTaintRuleList instance) { - instance = instance != null ? instance : new V1alpha3DeviceTaintRuleList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1alpha3DeviceTaintRuleListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1alpha3DeviceTaintRuleListFluent(V1alpha3DeviceTaintRuleList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1alpha3DeviceTaintRule item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1alpha3DeviceTaintRule item : items) { + V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1alpha3DeviceTaintRule item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha3DeviceTaintRule item) { + return new ItemsNested(-1, item); } public A addToItems(V1alpha3DeviceTaintRule... items) { @@ -96,68 +65,31 @@ public A addToItems(V1alpha3DeviceTaintRule... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1alpha3DeviceTaintRule item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1alpha3DeviceTaintRule item : items) { - V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); + V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1alpha3DeviceTaintRule... items) { - if (this.items == null) { - return (A) this; - } - for (V1alpha3DeviceTaintRule item : items) { - V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1alpha3DeviceTaintRule item : items) { - V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1alpha3DeviceTaintRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1alpha3DeviceTaintRule buildFirstItem() { + return this.items.get(0).build(); } public V1alpha3DeviceTaintRule buildItem(int index) { return this.items.get(index).build(); } - public V1alpha3DeviceTaintRule buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1alpha3DeviceTaintRule buildLastItem() { @@ -173,73 +105,34 @@ public V1alpha3DeviceTaintRule buildMatchingItem(Predicate predicate) { - for (V1alpha3DeviceTaintRuleBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1alpha3DeviceTaintRule item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1alpha3DeviceTaintRuleList instance) { + instance = instance != null ? instance : new V1alpha3DeviceTaintRuleList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1alpha3DeviceTaintRule... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha3DeviceTaintRule item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha3DeviceTaintRule item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha3DeviceTaintRule item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha3DeviceTaintRuleBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha3DeviceTaintRule item : items) { + V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1alpha3DeviceTaintRule... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha3DeviceTaintRule item : items) { + V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha3DeviceTaintRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1alpha3DeviceTaintRule item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1alpha3DeviceTaintRule item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha3DeviceTaintRule item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1alpha3DeviceTaintRule... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha3DeviceTaintRule item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1alpha3DeviceTaintRuleFluent> implements Nested{ + + V1alpha3DeviceTaintRuleBuilder builder; + int index; + ItemsNested(int index,V1alpha3DeviceTaintRule item) { this.index = index; this.builder = new V1alpha3DeviceTaintRuleBuilder(this, item); } - V1alpha3DeviceTaintRuleBuilder builder; - int index; - + public N and() { return (N) V1alpha3DeviceTaintRuleListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1alpha3DeviceTaintRuleListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecBuilder.java index 2e461b2c30..24ef7eae07 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha3DeviceTaintRuleSpecBuilder extends V1alpha3DeviceTaintRuleSpecFluent implements VisitableBuilder{ + + V1alpha3DeviceTaintRuleSpecFluent fluent; + public V1alpha3DeviceTaintRuleSpecBuilder() { this(new V1alpha3DeviceTaintRuleSpec()); } @@ -11,17 +14,16 @@ public V1alpha3DeviceTaintRuleSpecBuilder(V1alpha3DeviceTaintRuleSpecFluent f this(fluent, new V1alpha3DeviceTaintRuleSpec()); } - public V1alpha3DeviceTaintRuleSpecBuilder(V1alpha3DeviceTaintRuleSpecFluent fluent,V1alpha3DeviceTaintRuleSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha3DeviceTaintRuleSpecBuilder(V1alpha3DeviceTaintRuleSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha3DeviceTaintRuleSpecFluent fluent; + public V1alpha3DeviceTaintRuleSpecBuilder(V1alpha3DeviceTaintRuleSpecFluent fluent,V1alpha3DeviceTaintRuleSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha3DeviceTaintRuleSpec build() { V1alpha3DeviceTaintRuleSpec buildable = new V1alpha3DeviceTaintRuleSpec(); buildable.setDeviceSelector(fluent.buildDeviceSelector()); @@ -29,5 +31,4 @@ public V1alpha3DeviceTaintRuleSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecFluent.java index 65b890bf18..33c1d520ad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecFluent.java @@ -1,27 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha3DeviceTaintRuleSpecFluent> extends BaseFluent{ + + private V1alpha3DeviceTaintSelectorBuilder deviceSelector; + private V1alpha3DeviceTaintBuilder taint; + public V1alpha3DeviceTaintRuleSpecFluent() { } public V1alpha3DeviceTaintRuleSpecFluent(V1alpha3DeviceTaintRuleSpec instance) { this.copyInstance(instance); } - private V1alpha3DeviceTaintSelectorBuilder deviceSelector; - private V1alpha3DeviceTaintBuilder taint; + + public V1alpha3DeviceTaintSelector buildDeviceSelector() { + return this.deviceSelector != null ? this.deviceSelector.build() : null; + } + + public V1alpha3DeviceTaint buildTaint() { + return this.taint != null ? this.taint.build() : null; + } protected void copyInstance(V1alpha3DeviceTaintRuleSpec instance) { instance = instance != null ? instance : new V1alpha3DeviceTaintRuleSpec(); @@ -31,34 +41,6 @@ protected void copyInstance(V1alpha3DeviceTaintRuleSpec instance) { } } - public V1alpha3DeviceTaintSelector buildDeviceSelector() { - return this.deviceSelector != null ? this.deviceSelector.build() : null; - } - - public A withDeviceSelector(V1alpha3DeviceTaintSelector deviceSelector) { - this._visitables.remove("deviceSelector"); - if (deviceSelector != null) { - this.deviceSelector = new V1alpha3DeviceTaintSelectorBuilder(deviceSelector); - this._visitables.get("deviceSelector").add(this.deviceSelector); - } else { - this.deviceSelector = null; - this._visitables.get("deviceSelector").remove(this.deviceSelector); - } - return (A) this; - } - - public boolean hasDeviceSelector() { - return this.deviceSelector != null; - } - - public DeviceSelectorNested withNewDeviceSelector() { - return new DeviceSelectorNested(null); - } - - public DeviceSelectorNested withNewDeviceSelectorLike(V1alpha3DeviceTaintSelector item) { - return new DeviceSelectorNested(item); - } - public DeviceSelectorNested editDeviceSelector() { return this.withNewDeviceSelectorLike(Optional.ofNullable(this.buildDeviceSelector()).orElse(null)); } @@ -71,38 +53,6 @@ public DeviceSelectorNested editOrNewDeviceSelectorLike(V1alpha3DeviceTaintSe return this.withNewDeviceSelectorLike(Optional.ofNullable(this.buildDeviceSelector()).orElse(item)); } - public V1alpha3DeviceTaint buildTaint() { - return this.taint != null ? this.taint.build() : null; - } - - public A withTaint(V1alpha3DeviceTaint taint) { - this._visitables.remove("taint"); - if (taint != null) { - this.taint = new V1alpha3DeviceTaintBuilder(taint); - this._visitables.get("taint").add(this.taint); - } else { - this.taint = null; - this._visitables.get("taint").remove(this.taint); - } - return (A) this; - } - - public boolean hasTaint() { - return this.taint != null; - } - - public TaintNested withNewTaint() { - return new TaintNested(null); - } - - public TaintNested withNewTaintLike(V1alpha3DeviceTaint item) { - return new TaintNested(item); - } - - public TaintNested editTaint() { - return this.withNewTaintLike(Optional.ofNullable(this.buildTaint()).orElse(null)); - } - public TaintNested editOrNewTaint() { return this.withNewTaintLike(Optional.ofNullable(this.buildTaint()).orElse(new V1alpha3DeviceTaintBuilder().build())); } @@ -111,6 +61,10 @@ public TaintNested editOrNewTaintLike(V1alpha3DeviceTaint item) { return this.withNewTaintLike(Optional.ofNullable(this.buildTaint()).orElse(item)); } + public TaintNested editTaint() { + return this.withNewTaintLike(Optional.ofNullable(this.buildTaint()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -131,6 +85,14 @@ public boolean equals(Object o) { return true; } + public boolean hasDeviceSelector() { + return this.deviceSelector != null; + } + + public boolean hasTaint() { + return this.taint != null; + } + public int hashCode() { return Objects.hash(deviceSelector, taint); } @@ -150,12 +112,54 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withDeviceSelector(V1alpha3DeviceTaintSelector deviceSelector) { + this._visitables.remove("deviceSelector"); + if (deviceSelector != null) { + this.deviceSelector = new V1alpha3DeviceTaintSelectorBuilder(deviceSelector); + this._visitables.get("deviceSelector").add(this.deviceSelector); + } else { + this.deviceSelector = null; + this._visitables.get("deviceSelector").remove(this.deviceSelector); + } + return (A) this; + } + + public DeviceSelectorNested withNewDeviceSelector() { + return new DeviceSelectorNested(null); + } + + public DeviceSelectorNested withNewDeviceSelectorLike(V1alpha3DeviceTaintSelector item) { + return new DeviceSelectorNested(item); + } + + public TaintNested withNewTaint() { + return new TaintNested(null); + } + + public TaintNested withNewTaintLike(V1alpha3DeviceTaint item) { + return new TaintNested(item); + } + + public A withTaint(V1alpha3DeviceTaint taint) { + this._visitables.remove("taint"); + if (taint != null) { + this.taint = new V1alpha3DeviceTaintBuilder(taint); + this._visitables.get("taint").add(this.taint); + } else { + this.taint = null; + this._visitables.get("taint").remove(this.taint); + } + return (A) this; + } public class DeviceSelectorNested extends V1alpha3DeviceTaintSelectorFluent> implements Nested{ + + V1alpha3DeviceTaintSelectorBuilder builder; + DeviceSelectorNested(V1alpha3DeviceTaintSelector item) { this.builder = new V1alpha3DeviceTaintSelectorBuilder(this, item); } - V1alpha3DeviceTaintSelectorBuilder builder; - + public N and() { return (N) V1alpha3DeviceTaintRuleSpecFluent.this.withDeviceSelector(builder.build()); } @@ -164,14 +168,15 @@ public N endDeviceSelector() { return and(); } - } public class TaintNested extends V1alpha3DeviceTaintFluent> implements Nested{ + + V1alpha3DeviceTaintBuilder builder; + TaintNested(V1alpha3DeviceTaint item) { this.builder = new V1alpha3DeviceTaintBuilder(this, item); } - V1alpha3DeviceTaintBuilder builder; - + public N and() { return (N) V1alpha3DeviceTaintRuleSpecFluent.this.withTaint(builder.build()); } @@ -180,7 +185,5 @@ public N endTaint() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorBuilder.java index e456814dac..01eaffaaea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1alpha3DeviceTaintSelectorBuilder extends V1alpha3DeviceTaintSelectorFluent implements VisitableBuilder{ + + V1alpha3DeviceTaintSelectorFluent fluent; + public V1alpha3DeviceTaintSelectorBuilder() { this(new V1alpha3DeviceTaintSelector()); } @@ -11,17 +14,16 @@ public V1alpha3DeviceTaintSelectorBuilder(V1alpha3DeviceTaintSelectorFluent f this(fluent, new V1alpha3DeviceTaintSelector()); } - public V1alpha3DeviceTaintSelectorBuilder(V1alpha3DeviceTaintSelectorFluent fluent,V1alpha3DeviceTaintSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha3DeviceTaintSelectorBuilder(V1alpha3DeviceTaintSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha3DeviceTaintSelectorFluent fluent; + public V1alpha3DeviceTaintSelectorBuilder(V1alpha3DeviceTaintSelectorFluent fluent,V1alpha3DeviceTaintSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha3DeviceTaintSelector build() { V1alpha3DeviceTaintSelector buildable = new V1alpha3DeviceTaintSelector(); buildable.setDevice(fluent.getDevice()); @@ -32,5 +34,4 @@ public V1alpha3DeviceTaintSelector build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorFluent.java index 34d849a027..441dcc6042 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorFluent.java @@ -1,127 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1alpha3DeviceTaintSelectorFluent> extends BaseFluent{ - public V1alpha3DeviceTaintSelectorFluent() { - } - - public V1alpha3DeviceTaintSelectorFluent(V1alpha3DeviceTaintSelector instance) { - this.copyInstance(instance); - } + private String device; private String deviceClassName; private String driver; private String pool; private ArrayList selectors; - - protected void copyInstance(V1alpha3DeviceTaintSelector instance) { - instance = instance != null ? instance : new V1alpha3DeviceTaintSelector(); - if (instance != null) { - this.withDevice(instance.getDevice()); - this.withDeviceClassName(instance.getDeviceClassName()); - this.withDriver(instance.getDriver()); - this.withPool(instance.getPool()); - this.withSelectors(instance.getSelectors()); - } - } - - public String getDevice() { - return this.device; - } - - public A withDevice(String device) { - this.device = device; - return (A) this; - } - - public boolean hasDevice() { - return this.device != null; - } - - public String getDeviceClassName() { - return this.deviceClassName; - } - - public A withDeviceClassName(String deviceClassName) { - this.deviceClassName = deviceClassName; - return (A) this; - } - - public boolean hasDeviceClassName() { - return this.deviceClassName != null; - } - - public String getDriver() { - return this.driver; - } - - public A withDriver(String driver) { - this.driver = driver; - return (A) this; - } - - public boolean hasDriver() { - return this.driver != null; - } - - public String getPool() { - return this.pool; - } - - public A withPool(String pool) { - this.pool = pool; - return (A) this; + + public V1alpha3DeviceTaintSelectorFluent() { } - public boolean hasPool() { - return this.pool != null; + public V1alpha3DeviceTaintSelectorFluent(V1alpha3DeviceTaintSelector instance) { + this.copyInstance(instance); } - - public A addToSelectors(int index,V1alpha3DeviceSelector item) { + + public A addAllToSelectors(Collection items) { if (this.selectors == null) { this.selectors = new ArrayList(); } - V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { + for (V1alpha3DeviceSelector item : items) { + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); _visitables.get("selectors").add(builder); - selectors.add(index, builder); + this.selectors.add(builder); } return (A) this; } - public A setToSelectors(int index,V1alpha3DeviceSelector item) { - if (this.selectors == null) { - this.selectors = new ArrayList(); - } - V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { - _visitables.get("selectors").add(builder); - selectors.set(index, builder); - } - return (A) this; + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1alpha3DeviceSelector item) { + return new SelectorsNested(-1, item); } public A addToSelectors(V1alpha3DeviceSelector... items) { @@ -136,66 +65,21 @@ public A addToSelectors(V1alpha3DeviceSelector... items) { return (A) this; } - public A addAllToSelectors(Collection items) { + public A addToSelectors(int index,V1alpha3DeviceSelector item) { if (this.selectors == null) { this.selectors = new ArrayList(); } - for (V1alpha3DeviceSelector item : items) { - V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { _visitables.get("selectors").add(builder); - this.selectors.add(builder); - } - return (A) this; - } - - public A removeFromSelectors(V1alpha3DeviceSelector... items) { - if (this.selectors == null) { - return (A) this; - } - for (V1alpha3DeviceSelector item : items) { - V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); - _visitables.get("selectors").remove(builder); - this.selectors.remove(builder); - } - return (A) this; - } - - public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) { - return (A) this; - } - for (V1alpha3DeviceSelector item : items) { - V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); - _visitables.get("selectors").remove(builder); - this.selectors.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromSelectors(Predicate predicate) { - if (selectors == null) { - return (A) this; - } - Iterator each = selectors.iterator(); - List visitables = _visitables.get("selectors"); - while (each.hasNext()) { - V1alpha3DeviceSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); } return (A) this; } - public List buildSelectors() { - return this.selectors != null ? build(selectors) : null; - } - - public V1alpha3DeviceSelector buildSelector(int index) { - return this.selectors.get(index).build(); - } - public V1alpha3DeviceSelector buildFirstSelector() { return this.selectors.get(0).build(); } @@ -213,64 +97,23 @@ public V1alpha3DeviceSelector buildMatchingSelector(Predicate predicate) { - for (V1alpha3DeviceSelectorBuilder item : selectors) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withSelectors(List selectors) { - if (this.selectors != null) { - this._visitables.get("selectors").clear(); - } - if (selectors != null) { - this.selectors = new ArrayList(); - for (V1alpha3DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } else { - this.selectors = null; - } - return (A) this; - } - - public A withSelectors(V1alpha3DeviceSelector... selectors) { - if (this.selectors != null) { - this.selectors.clear(); - _visitables.remove("selectors"); - } - if (selectors != null) { - for (V1alpha3DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } - return (A) this; - } - - public boolean hasSelectors() { - return this.selectors != null && !(this.selectors.isEmpty()); - } - - public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); - } - - public SelectorsNested addNewSelectorLike(V1alpha3DeviceSelector item) { - return new SelectorsNested(-1, item); + public V1alpha3DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); } - public SelectorsNested setNewSelectorLike(int index,V1alpha3DeviceSelector item) { - return new SelectorsNested(index, item); + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; } - public SelectorsNested editSelector(int index) { - if (index <= selectors.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + protected void copyInstance(V1alpha3DeviceTaintSelector instance) { + instance = instance != null ? instance : new V1alpha3DeviceTaintSelector(); + if (instance != null) { + this.withDevice(instance.getDevice()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + this.withSelectors(instance.getSelectors()); } - return this.setNewSelectorLike(index, this.buildSelector(index)); } public SelectorsNested editFirstSelector() { @@ -302,6 +145,13 @@ public SelectorsNested editMatchingSelector(Predicate editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -331,10 +181,114 @@ public boolean equals(Object o) { return true; } + public String getDevice() { + return this.device; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public String getDriver() { + return this.driver; + } + + public String getPool() { + return this.pool; + } + + public boolean hasDevice() { + return this.device != null; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1alpha3DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + public int hashCode() { return Objects.hash(device, deviceClassName, driver, pool, selectors); } + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) { + return (A) this; + } + for (V1alpha3DeviceSelector item : items) { + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeFromSelectors(V1alpha3DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1alpha3DeviceSelector item : items) { + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1alpha3DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public SelectorsNested setNewSelectorLike(int index,V1alpha3DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public A setToSelectors(int index,V1alpha3DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + V1alpha3DeviceSelectorBuilder builder = new V1alpha3DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -365,14 +319,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1alpha3DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(V1alpha3DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1alpha3DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } public class SelectorsNested extends V1alpha3DeviceSelectorFluent> implements Nested{ + + V1alpha3DeviceSelectorBuilder builder; + int index; + SelectorsNested(int index,V1alpha3DeviceSelector item) { this.index = index; this.builder = new V1alpha3DeviceSelectorBuilder(this, item); } - V1alpha3DeviceSelectorBuilder builder; - int index; - + public N and() { return (N) V1alpha3DeviceTaintSelectorFluent.this.setToSelectors(index, builder.build()); } @@ -381,7 +385,5 @@ public N endSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusBuilder.java index f8d6066f22..821a4b6040 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1AllocatedDeviceStatusBuilder extends V1beta1AllocatedDeviceStatusFluent implements VisitableBuilder{ + + V1beta1AllocatedDeviceStatusFluent fluent; + public V1beta1AllocatedDeviceStatusBuilder() { this(new V1beta1AllocatedDeviceStatus()); } @@ -11,17 +14,16 @@ public V1beta1AllocatedDeviceStatusBuilder(V1beta1AllocatedDeviceStatusFluent this(fluent, new V1beta1AllocatedDeviceStatus()); } - public V1beta1AllocatedDeviceStatusBuilder(V1beta1AllocatedDeviceStatusFluent fluent,V1beta1AllocatedDeviceStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1AllocatedDeviceStatusBuilder(V1beta1AllocatedDeviceStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1AllocatedDeviceStatusFluent fluent; + public V1beta1AllocatedDeviceStatusBuilder(V1beta1AllocatedDeviceStatusFluent fluent,V1beta1AllocatedDeviceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1AllocatedDeviceStatus build() { V1beta1AllocatedDeviceStatus buildable = new V1beta1AllocatedDeviceStatus(); buildable.setConditions(fluent.buildConditions()); @@ -34,5 +36,4 @@ public V1beta1AllocatedDeviceStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusFluent.java index 83f1fb0651..46b1d40948 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusFluent.java @@ -1,31 +1,26 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1AllocatedDeviceStatusFluent> extends BaseFluent{ - public V1beta1AllocatedDeviceStatusFluent() { - } - - public V1beta1AllocatedDeviceStatusFluent(V1beta1AllocatedDeviceStatus instance) { - this.copyInstance(instance); - } + private ArrayList conditions; private Object data; private String device; @@ -33,48 +28,32 @@ public V1beta1AllocatedDeviceStatusFluent(V1beta1AllocatedDeviceStatus instance) private V1beta1NetworkDeviceDataBuilder networkData; private String pool; private String shareID; - - protected void copyInstance(V1beta1AllocatedDeviceStatus instance) { - instance = instance != null ? instance : new V1beta1AllocatedDeviceStatus(); - if (instance != null) { - this.withConditions(instance.getConditions()); - this.withData(instance.getData()); - this.withDevice(instance.getDevice()); - this.withDriver(instance.getDriver()); - this.withNetworkData(instance.getNetworkData()); - this.withPool(instance.getPool()); - this.withShareID(instance.getShareID()); - } + + public V1beta1AllocatedDeviceStatusFluent() { } - public A addToConditions(int index,V1Condition item) { + public V1beta1AllocatedDeviceStatusFluent(V1beta1AllocatedDeviceStatus instance) { + this.copyInstance(instance); + } + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1Condition... items) { @@ -89,66 +68,29 @@ public A addToConditions(V1Condition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1Condition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1Condition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -166,61 +108,25 @@ public V1Condition buildMatchingCondition(Predicate predicat return null; } - public boolean hasMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + public V1beta1NetworkDeviceData buildNetworkData() { + return this.networkData != null ? this.networkData.build() : null; } - public A withConditions(V1Condition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1Condition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1beta1AllocatedDeviceStatus instance) { + instance = instance != null ? instance : new V1beta1AllocatedDeviceStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withData(instance.getData()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withNetworkData(instance.getNetworkData()); + this.withPool(instance.getPool()); + this.withShareID(instance.getShareID()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -255,148 +161,171 @@ public ConditionsNested editMatchingCondition(Predicate p return this.setNewConditionLike(index, this.buildCondition(index)); } - public Object getData() { - return this.data; + public NetworkDataNested editNetworkData() { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(null)); } - public A withData(Object data) { - this.data = data; - return (A) this; + public NetworkDataNested editOrNewNetworkData() { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(new V1beta1NetworkDeviceDataBuilder().build())); } - public boolean hasData() { - return this.data != null; + public NetworkDataNested editOrNewNetworkDataLike(V1beta1NetworkDeviceData item) { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(item)); } - public String getDevice() { - return this.device; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1AllocatedDeviceStatusFluent that = (V1beta1AllocatedDeviceStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(data, that.data))) { + return false; + } + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(networkData, that.networkData))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(shareID, that.shareID))) { + return false; + } + return true; } - public A withDevice(String device) { - this.device = device; - return (A) this; + public Object getData() { + return this.data; } - public boolean hasDevice() { - return this.device != null; + public String getDevice() { + return this.device; } public String getDriver() { return this.driver; } - public A withDriver(String driver) { - this.driver = driver; - return (A) this; + public String getPool() { + return this.pool; } - public boolean hasDriver() { - return this.driver != null; + public String getShareID() { + return this.shareID; } - public V1beta1NetworkDeviceData buildNetworkData() { - return this.networkData != null ? this.networkData.build() : null; + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); } - public A withNetworkData(V1beta1NetworkDeviceData networkData) { - this._visitables.remove("networkData"); - if (networkData != null) { - this.networkData = new V1beta1NetworkDeviceDataBuilder(networkData); - this._visitables.get("networkData").add(this.networkData); - } else { - this.networkData = null; - this._visitables.get("networkData").remove(this.networkData); - } - return (A) this; + public boolean hasData() { + return this.data != null; } - public boolean hasNetworkData() { - return this.networkData != null; + public boolean hasDevice() { + return this.device != null; } - public NetworkDataNested withNewNetworkData() { - return new NetworkDataNested(null); + public boolean hasDriver() { + return this.driver != null; } - public NetworkDataNested withNewNetworkDataLike(V1beta1NetworkDeviceData item) { - return new NetworkDataNested(item); + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public NetworkDataNested editNetworkData() { - return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(null)); + public boolean hasNetworkData() { + return this.networkData != null; } - public NetworkDataNested editOrNewNetworkData() { - return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(new V1beta1NetworkDeviceDataBuilder().build())); + public boolean hasPool() { + return this.pool != null; } - public NetworkDataNested editOrNewNetworkDataLike(V1beta1NetworkDeviceData item) { - return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(item)); + public boolean hasShareID() { + return this.shareID != null; } - public String getPool() { - return this.pool; + public int hashCode() { + return Objects.hash(conditions, data, device, driver, networkData, pool, shareID); } - public A withPool(String pool) { - this.pool = pool; + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } return (A) this; } - public boolean hasPool() { - return this.pool != null; - } - - public String getShareID() { - return this.shareID; + public A removeFromConditions(V1Condition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } - public A withShareID(String shareID) { - this.shareID = shareID; + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } return (A) this; } - public boolean hasShareID() { - return this.shareID != null; + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1AllocatedDeviceStatusFluent that = (V1beta1AllocatedDeviceStatusFluent) o; - if (!(Objects.equals(conditions, that.conditions))) { - return false; - } - if (!(Objects.equals(data, that.data))) { - return false; - } - if (!(Objects.equals(device, that.device))) { - return false; - } - if (!(Objects.equals(driver, that.driver))) { - return false; - } - if (!(Objects.equals(networkData, that.networkData))) { - return false; - } - if (!(Objects.equals(pool, that.pool))) { - return false; + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); } - if (!(Objects.equals(shareID, that.shareID))) { - return false; + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); } - return true; - } - - public int hashCode() { - return Objects.hash(conditions, data, device, driver, networkData, pool, shareID); + return (A) this; } public String toString() { @@ -439,14 +368,89 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withData(Object data) { + this.data = data; + return (A) this; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withNetworkData(V1beta1NetworkDeviceData networkData) { + this._visitables.remove("networkData"); + if (networkData != null) { + this.networkData = new V1beta1NetworkDeviceDataBuilder(networkData); + this._visitables.get("networkData").add(this.networkData); + } else { + this.networkData = null; + this._visitables.get("networkData").remove(this.networkData); + } + return (A) this; + } + + public NetworkDataNested withNewNetworkData() { + return new NetworkDataNested(null); + } + + public NetworkDataNested withNewNetworkDataLike(V1beta1NetworkDeviceData item) { + return new NetworkDataNested(item); + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public A withShareID(String shareID) { + this.shareID = shareID; + return (A) this; + } public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + ConditionsNested(int index,V1Condition item) { this.index = index; this.builder = new V1ConditionBuilder(this, item); } - V1ConditionBuilder builder; - int index; - + public N and() { return (N) V1beta1AllocatedDeviceStatusFluent.this.setToConditions(index, builder.build()); } @@ -455,14 +459,15 @@ public N endCondition() { return and(); } - } public class NetworkDataNested extends V1beta1NetworkDeviceDataFluent> implements Nested{ + + V1beta1NetworkDeviceDataBuilder builder; + NetworkDataNested(V1beta1NetworkDeviceData item) { this.builder = new V1beta1NetworkDeviceDataBuilder(this, item); } - V1beta1NetworkDeviceDataBuilder builder; - + public N and() { return (N) V1beta1AllocatedDeviceStatusFluent.this.withNetworkData(builder.build()); } @@ -471,7 +476,5 @@ public N endNetworkData() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultBuilder.java index 8ef3fdfb40..a218494575 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1AllocationResultBuilder extends V1beta1AllocationResultFluent implements VisitableBuilder{ + + V1beta1AllocationResultFluent fluent; + public V1beta1AllocationResultBuilder() { this(new V1beta1AllocationResult()); } @@ -11,17 +14,16 @@ public V1beta1AllocationResultBuilder(V1beta1AllocationResultFluent fluent) { this(fluent, new V1beta1AllocationResult()); } - public V1beta1AllocationResultBuilder(V1beta1AllocationResultFluent fluent,V1beta1AllocationResult instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1AllocationResultBuilder(V1beta1AllocationResult instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1AllocationResultFluent fluent; + public V1beta1AllocationResultBuilder(V1beta1AllocationResultFluent fluent,V1beta1AllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1AllocationResult build() { V1beta1AllocationResult buildable = new V1beta1AllocationResult(); buildable.setAllocationTimestamp(fluent.getAllocationTimestamp()); @@ -30,5 +32,4 @@ public V1beta1AllocationResult build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultFluent.java index f42125d613..7d59d1d10d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1AllocationResultFluent> extends BaseFluent{ + + private OffsetDateTime allocationTimestamp; + private V1beta1DeviceAllocationResultBuilder devices; + private V1NodeSelectorBuilder nodeSelector; + public V1beta1AllocationResultFluent() { } public V1beta1AllocationResultFluent(V1beta1AllocationResult instance) { this.copyInstance(instance); } - private OffsetDateTime allocationTimestamp; - private V1beta1DeviceAllocationResultBuilder devices; - private V1NodeSelectorBuilder nodeSelector; + + public V1beta1DeviceAllocationResult buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } protected void copyInstance(V1beta1AllocationResult instance) { instance = instance != null ? instance : new V1beta1AllocationResult(); @@ -34,51 +44,14 @@ protected void copyInstance(V1beta1AllocationResult instance) { } } - public OffsetDateTime getAllocationTimestamp() { - return this.allocationTimestamp; - } - - public A withAllocationTimestamp(OffsetDateTime allocationTimestamp) { - this.allocationTimestamp = allocationTimestamp; - return (A) this; - } - - public boolean hasAllocationTimestamp() { - return this.allocationTimestamp != null; - } - - public V1beta1DeviceAllocationResult buildDevices() { - return this.devices != null ? this.devices.build() : null; - } - - public A withDevices(V1beta1DeviceAllocationResult devices) { - this._visitables.remove("devices"); - if (devices != null) { - this.devices = new V1beta1DeviceAllocationResultBuilder(devices); - this._visitables.get("devices").add(this.devices); - } else { - this.devices = null; - this._visitables.get("devices").remove(this.devices); - } - return (A) this; - } - - public boolean hasDevices() { - return this.devices != null; - } - - public DevicesNested withNewDevices() { - return new DevicesNested(null); - } - - public DevicesNested withNewDevicesLike(V1beta1DeviceAllocationResult item) { - return new DevicesNested(item); - } - public DevicesNested editDevices() { return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(null)); } + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + } + public DevicesNested editOrNewDevices() { return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(new V1beta1DeviceAllocationResultBuilder().build())); } @@ -87,38 +60,6 @@ public DevicesNested editOrNewDevicesLike(V1beta1DeviceAllocationResult item) return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(item)); } - public V1NodeSelector buildNodeSelector() { - return this.nodeSelector != null ? this.nodeSelector.build() : null; - } - - public A withNodeSelector(V1NodeSelector nodeSelector) { - this._visitables.remove("nodeSelector"); - if (nodeSelector != null) { - this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); - this._visitables.get("nodeSelector").add(this.nodeSelector); - } else { - this.nodeSelector = null; - this._visitables.get("nodeSelector").remove(this.nodeSelector); - } - return (A) this; - } - - public boolean hasNodeSelector() { - return this.nodeSelector != null; - } - - public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); - } - - public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); - } - - public NodeSelectorNested editNodeSelector() { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); - } - public NodeSelectorNested editOrNewNodeSelector() { return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); } @@ -150,6 +91,22 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getAllocationTimestamp() { + return this.allocationTimestamp; + } + + public boolean hasAllocationTimestamp() { + return this.allocationTimestamp != null; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + public int hashCode() { return Objects.hash(allocationTimestamp, devices, nodeSelector); } @@ -174,12 +131,59 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAllocationTimestamp(OffsetDateTime allocationTimestamp) { + this.allocationTimestamp = allocationTimestamp; + return (A) this; + } + + public A withDevices(V1beta1DeviceAllocationResult devices) { + this._visitables.remove("devices"); + if (devices != null) { + this.devices = new V1beta1DeviceAllocationResultBuilder(devices); + this._visitables.get("devices").add(this.devices); + } else { + this.devices = null; + this._visitables.get("devices").remove(this.devices); + } + return (A) this; + } + + public DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1beta1DeviceAllocationResult item) { + return new DevicesNested(item); + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public A withNodeSelector(V1NodeSelector nodeSelector) { + this._visitables.remove("nodeSelector"); + if (nodeSelector != null) { + this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); + this._visitables.get("nodeSelector").add(this.nodeSelector); + } else { + this.nodeSelector = null; + this._visitables.get("nodeSelector").remove(this.nodeSelector); + } + return (A) this; + } public class DevicesNested extends V1beta1DeviceAllocationResultFluent> implements Nested{ + + V1beta1DeviceAllocationResultBuilder builder; + DevicesNested(V1beta1DeviceAllocationResult item) { this.builder = new V1beta1DeviceAllocationResultBuilder(this, item); } - V1beta1DeviceAllocationResultBuilder builder; - + public N and() { return (N) V1beta1AllocationResultFluent.this.withDevices(builder.build()); } @@ -188,14 +192,15 @@ public N endDevices() { return and(); } - } public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + NodeSelectorNested(V1NodeSelector item) { this.builder = new V1NodeSelectorBuilder(this, item); } - V1NodeSelectorBuilder builder; - + public N and() { return (N) V1beta1AllocationResultFluent.this.withNodeSelector(builder.build()); } @@ -204,7 +209,5 @@ public N endNodeSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationBuilder.java index 777be33f91..1b60a69197 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ApplyConfigurationBuilder extends V1beta1ApplyConfigurationFluent implements VisitableBuilder{ + + V1beta1ApplyConfigurationFluent fluent; + public V1beta1ApplyConfigurationBuilder() { this(new V1beta1ApplyConfiguration()); } @@ -11,22 +14,20 @@ public V1beta1ApplyConfigurationBuilder(V1beta1ApplyConfigurationFluent fluen this(fluent, new V1beta1ApplyConfiguration()); } - public V1beta1ApplyConfigurationBuilder(V1beta1ApplyConfigurationFluent fluent,V1beta1ApplyConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ApplyConfigurationBuilder(V1beta1ApplyConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ApplyConfigurationFluent fluent; + public V1beta1ApplyConfigurationBuilder(V1beta1ApplyConfigurationFluent fluent,V1beta1ApplyConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ApplyConfiguration build() { V1beta1ApplyConfiguration buildable = new V1beta1ApplyConfiguration(); buildable.setExpression(fluent.getExpression()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationFluent.java index 23d48b786b..6246154f4d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ApplyConfigurationFluent> extends BaseFluent{ + + private String expression; + public V1beta1ApplyConfigurationFluent() { } public V1beta1ApplyConfigurationFluent(V1beta1ApplyConfiguration instance) { this.copyInstance(instance); } - private String expression; - + protected void copyInstance(V1beta1ApplyConfiguration instance) { instance = instance != null ? instance : new V1beta1ApplyConfiguration(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1beta1ApplyConfiguration instance) { } } - public String getExpression() { - return this.expression; - } - - public A withExpression(String expression) { - this.expression = expression; - return (A) this; - } - - public boolean hasExpression() { - return this.expression != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getExpression() { + return this.expression; + } + + public boolean hasExpression() { + return this.expression != null; + } + public int hashCode() { return Objects.hash(expression); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceBuilder.java index 595116ad0a..67080dbafb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1BasicDeviceBuilder extends V1beta1BasicDeviceFluent implements VisitableBuilder{ + + V1beta1BasicDeviceFluent fluent; + public V1beta1BasicDeviceBuilder() { this(new V1beta1BasicDevice()); } @@ -11,17 +14,16 @@ public V1beta1BasicDeviceBuilder(V1beta1BasicDeviceFluent fluent) { this(fluent, new V1beta1BasicDevice()); } - public V1beta1BasicDeviceBuilder(V1beta1BasicDeviceFluent fluent,V1beta1BasicDevice instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1BasicDeviceBuilder(V1beta1BasicDevice instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1BasicDeviceFluent fluent; + public V1beta1BasicDeviceBuilder(V1beta1BasicDeviceFluent fluent,V1beta1BasicDevice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1BasicDevice build() { V1beta1BasicDevice buildable = new V1beta1BasicDevice(); buildable.setAllNodes(fluent.getAllNodes()); @@ -38,5 +40,4 @@ public V1beta1BasicDevice build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceFluent.java index 0bb4392b21..2917d14716 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceFluent.java @@ -1,34 +1,29 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; -import java.lang.Boolean; -import java.util.Optional; -import java.util.Objects; -import java.util.Collection; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1BasicDeviceFluent> extends BaseFluent{ - public V1beta1BasicDeviceFluent() { - } - - public V1beta1BasicDeviceFluent(V1beta1BasicDevice instance) { - this.copyInstance(instance); - } + private Boolean allNodes; private Boolean allowMultipleAllocations; private Map attributes; @@ -40,58 +35,72 @@ public V1beta1BasicDeviceFluent(V1beta1BasicDevice instance) { private String nodeName; private V1NodeSelectorBuilder nodeSelector; private ArrayList taints; + + public V1beta1BasicDeviceFluent() { + } - protected void copyInstance(V1beta1BasicDevice instance) { - instance = instance != null ? instance : new V1beta1BasicDevice(); - if (instance != null) { - this.withAllNodes(instance.getAllNodes()); - this.withAllowMultipleAllocations(instance.getAllowMultipleAllocations()); - this.withAttributes(instance.getAttributes()); - this.withBindingConditions(instance.getBindingConditions()); - this.withBindingFailureConditions(instance.getBindingFailureConditions()); - this.withBindsToNode(instance.getBindsToNode()); - this.withCapacity(instance.getCapacity()); - this.withConsumesCounters(instance.getConsumesCounters()); - this.withNodeName(instance.getNodeName()); - this.withNodeSelector(instance.getNodeSelector()); - this.withTaints(instance.getTaints()); + public V1beta1BasicDeviceFluent(V1beta1BasicDevice instance) { + this.copyInstance(instance); + } + + public A addAllToBindingConditions(Collection items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); } + return (A) this; } - public Boolean getAllNodes() { - return this.allNodes; + public A addAllToBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; } - public A withAllNodes(Boolean allNodes) { - this.allNodes = allNodes; + public A addAllToConsumesCounters(Collection items) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } + for (V1beta1DeviceCounterConsumption item : items) { + V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); + } return (A) this; } - public boolean hasAllNodes() { - return this.allNodes != null; + public A addAllToTaints(Collection items) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + for (V1beta1DeviceTaint item : items) { + V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); + } + return (A) this; } - public Boolean getAllowMultipleAllocations() { - return this.allowMultipleAllocations; + public ConsumesCountersNested addNewConsumesCounter() { + return new ConsumesCountersNested(-1, null); } - public A withAllowMultipleAllocations(Boolean allowMultipleAllocations) { - this.allowMultipleAllocations = allowMultipleAllocations; - return (A) this; + public ConsumesCountersNested addNewConsumesCounterLike(V1beta1DeviceCounterConsumption item) { + return new ConsumesCountersNested(-1, item); } - public boolean hasAllowMultipleAllocations() { - return this.allowMultipleAllocations != null; + public TaintsNested addNewTaint() { + return new TaintsNested(-1, null); } - public A addToAttributes(String key,V1beta1DeviceAttribute value) { - if (this.attributes == null && key != null && value != null) { - this.attributes = new LinkedHashMap(); - } - if (key != null && value != null) { - this.attributes.put(key, value); - } - return (A) this; + public TaintsNested addNewTaintLike(V1beta1DeviceTaint item) { + return new TaintsNested(-1, item); } public A addToAttributes(Map map) { @@ -104,240 +113,382 @@ public A addToAttributes(Map map) { return (A) this; } - public A removeFromAttributes(String key) { - if (this.attributes == null) { - return (A) this; + public A addToAttributes(String key,V1beta1DeviceAttribute value) { + if (this.attributes == null && key != null && value != null) { + this.attributes = new LinkedHashMap(); } - if (key != null && this.attributes != null) { - this.attributes.remove(key); + if (key != null && value != null) { + this.attributes.put(key, value); } return (A) this; } - public A removeFromAttributes(Map map) { - if (this.attributes == null) { - return (A) this; + public A addToBindingConditions(String... items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); } - if (map != null) { - for (Object key : map.keySet()) { - if (this.attributes != null) { - this.attributes.remove(key); - } - } + for (String item : items) { + this.bindingConditions.add(item); } return (A) this; } - public Map getAttributes() { - return this.attributes; + public A addToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.add(index, item); + return (A) this; } - public A withAttributes(Map attributes) { - if (attributes == null) { - this.attributes = null; - } else { - this.attributes = new LinkedHashMap(attributes); + public A addToBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); } return (A) this; } - public boolean hasAttributes() { - return this.attributes != null; + public A addToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.add(index, item); + return (A) this; } - public A addToBindingConditions(int index,String item) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + public A addToCapacity(Map map) { + if (this.capacity == null && map != null) { + this.capacity = new LinkedHashMap(); + } + if (map != null) { + this.capacity.putAll(map); } - this.bindingConditions.add(index, item); return (A) this; } - public A setToBindingConditions(int index,String item) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + public A addToCapacity(String key,V1beta1DeviceCapacity value) { + if (this.capacity == null && key != null && value != null) { + this.capacity = new LinkedHashMap(); + } + if (key != null && value != null) { + this.capacity.put(key, value); } - this.bindingConditions.set(index, item); return (A) this; } - public A addToBindingConditions(String... items) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + public A addToConsumesCounters(V1beta1DeviceCounterConsumption... items) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); } - for (String item : items) { - this.bindingConditions.add(item); + for (V1beta1DeviceCounterConsumption item : items) { + V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); } return (A) this; } - public A addAllToBindingConditions(Collection items) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + public A addToConsumesCounters(int index,V1beta1DeviceCounterConsumption item) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); } - for (String item : items) { - this.bindingConditions.add(item); + V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(index, builder); } return (A) this; } - public A removeFromBindingConditions(String... items) { - if (this.bindingConditions == null) { - return (A) this; + public A addToTaints(V1beta1DeviceTaint... items) { + if (this.taints == null) { + this.taints = new ArrayList(); } - for (String item : items) { - this.bindingConditions.remove(item); + for (V1beta1DeviceTaint item : items) { + V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); } return (A) this; } - public A removeAllFromBindingConditions(Collection items) { - if (this.bindingConditions == null) { - return (A) this; + public A addToTaints(int index,V1beta1DeviceTaint item) { + if (this.taints == null) { + this.taints = new ArrayList(); } - for (String item : items) { - this.bindingConditions.remove(item); + V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.add(index, builder); } return (A) this; } - public List getBindingConditions() { - return this.bindingConditions; + public V1beta1DeviceCounterConsumption buildConsumesCounter(int index) { + return this.consumesCounters.get(index).build(); } - public String getBindingCondition(int index) { - return this.bindingConditions.get(index); + public List buildConsumesCounters() { + return this.consumesCounters != null ? build(consumesCounters) : null; } - public String getFirstBindingCondition() { - return this.bindingConditions.get(0); + public V1beta1DeviceCounterConsumption buildFirstConsumesCounter() { + return this.consumesCounters.get(0).build(); } - public String getLastBindingCondition() { - return this.bindingConditions.get(bindingConditions.size() - 1); + public V1beta1DeviceTaint buildFirstTaint() { + return this.taints.get(0).build(); } - public String getMatchingBindingCondition(Predicate predicate) { - for (String item : bindingConditions) { + public V1beta1DeviceCounterConsumption buildLastConsumesCounter() { + return this.consumesCounters.get(consumesCounters.size() - 1).build(); + } + + public V1beta1DeviceTaint buildLastTaint() { + return this.taints.get(taints.size() - 1).build(); + } + + public V1beta1DeviceCounterConsumption buildMatchingConsumesCounter(Predicate predicate) { + for (V1beta1DeviceCounterConsumptionBuilder item : consumesCounters) { if (predicate.test(item)) { - return item; + return item.build(); } } return null; } - public boolean hasMatchingBindingCondition(Predicate predicate) { - for (String item : bindingConditions) { + public V1beta1DeviceTaint buildMatchingTaint(Predicate predicate) { + for (V1beta1DeviceTaintBuilder item : taints) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withBindingConditions(List bindingConditions) { - if (bindingConditions != null) { - this.bindingConditions = new ArrayList(); - for (String item : bindingConditions) { - this.addToBindingConditions(item); - } - } else { - this.bindingConditions = null; + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + public V1beta1DeviceTaint buildTaint(int index) { + return this.taints.get(index).build(); + } + + public List buildTaints() { + return this.taints != null ? build(taints) : null; + } + + protected void copyInstance(V1beta1BasicDevice instance) { + instance = instance != null ? instance : new V1beta1BasicDevice(); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withAllowMultipleAllocations(instance.getAllowMultipleAllocations()); + this.withAttributes(instance.getAttributes()); + this.withBindingConditions(instance.getBindingConditions()); + this.withBindingFailureConditions(instance.getBindingFailureConditions()); + this.withBindsToNode(instance.getBindsToNode()); + this.withCapacity(instance.getCapacity()); + this.withConsumesCounters(instance.getConsumesCounters()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withTaints(instance.getTaints()); } - return (A) this; } - public A withBindingConditions(String... bindingConditions) { - if (this.bindingConditions != null) { - this.bindingConditions.clear(); - _visitables.remove("bindingConditions"); + public ConsumesCountersNested editConsumesCounter(int index) { + if (consumesCounters.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "consumesCounters")); } - if (bindingConditions != null) { - for (String item : bindingConditions) { - this.addToBindingConditions(item); - } + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + } + + public ConsumesCountersNested editFirstConsumesCounter() { + if (consumesCounters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "consumesCounters")); } - return (A) this; + return this.setNewConsumesCounterLike(0, this.buildConsumesCounter(0)); } - public boolean hasBindingConditions() { - return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); + public TaintsNested editFirstTaint() { + if (taints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "taints")); + } + return this.setNewTaintLike(0, this.buildTaint(0)); } - public A addToBindingFailureConditions(int index,String item) { - if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + public ConsumesCountersNested editLastConsumesCounter() { + int index = consumesCounters.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "consumesCounters")); } - this.bindingFailureConditions.add(index, item); - return (A) this; + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); } - public A setToBindingFailureConditions(int index,String item) { - if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + public TaintsNested editLastTaint() { + int index = taints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "taints")); } - this.bindingFailureConditions.set(index, item); - return (A) this; + return this.setNewTaintLike(index, this.buildTaint(index)); } - public A addToBindingFailureConditions(String... items) { - if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { + int index = -1; + for (int i = 0;i < consumesCounters.size();i++) { + if (predicate.test(consumesCounters.get(i))) { + index = i; + break; + } } - for (String item : items) { - this.bindingFailureConditions.add(item); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "consumesCounters")); } - return (A) this; + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); } - public A addAllToBindingFailureConditions(Collection items) { - if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + public TaintsNested editMatchingTaint(Predicate predicate) { + int index = -1; + for (int i = 0;i < taints.size();i++) { + if (predicate.test(taints.get(i))) { + index = i; + break; + } } - for (String item : items) { - this.bindingFailureConditions.add(item); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "taints")); } - return (A) this; + return this.setNewTaintLike(index, this.buildTaint(index)); } - public A removeFromBindingFailureConditions(String... items) { - if (this.bindingFailureConditions == null) { - return (A) this; - } - for (String item : items) { - this.bindingFailureConditions.remove(item); + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); + } + + public TaintsNested editTaint(int index) { + if (taints.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "taints")); } - return (A) this; + return this.setNewTaintLike(index, this.buildTaint(index)); } - public A removeAllFromBindingFailureConditions(Collection items) { - if (this.bindingFailureConditions == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.bindingFailureConditions.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1beta1BasicDeviceFluent that = (V1beta1BasicDeviceFluent) o; + if (!(Objects.equals(allNodes, that.allNodes))) { + return false; + } + if (!(Objects.equals(allowMultipleAllocations, that.allowMultipleAllocations))) { + return false; + } + if (!(Objects.equals(attributes, that.attributes))) { + return false; + } + if (!(Objects.equals(bindingConditions, that.bindingConditions))) { + return false; + } + if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { + return false; + } + if (!(Objects.equals(bindsToNode, that.bindsToNode))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(consumesCounters, that.consumesCounters))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + if (!(Objects.equals(taints, that.taints))) { + return false; + } + return true; } - public List getBindingFailureConditions() { - return this.bindingFailureConditions; + public Boolean getAllNodes() { + return this.allNodes; + } + + public Boolean getAllowMultipleAllocations() { + return this.allowMultipleAllocations; + } + + public Map getAttributes() { + return this.attributes; + } + + public String getBindingCondition(int index) { + return this.bindingConditions.get(index); + } + + public List getBindingConditions() { + return this.bindingConditions; } public String getBindingFailureCondition(int index) { return this.bindingFailureConditions.get(index); } + public List getBindingFailureConditions() { + return this.bindingFailureConditions; + } + + public Boolean getBindsToNode() { + return this.bindsToNode; + } + + public Map getCapacity() { + return this.capacity; + } + + public String getFirstBindingCondition() { + return this.bindingConditions.get(0); + } + public String getFirstBindingFailureCondition() { return this.bindingFailureConditions.get(0); } + public String getLastBindingCondition() { + return this.bindingConditions.get(bindingConditions.size() - 1); + } + public String getLastBindingFailureCondition() { return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); } - public String getMatchingBindingFailureCondition(Predicate predicate) { - for (String item : bindingFailureConditions) { + public String getMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { if (predicate.test(item)) { return item; } @@ -345,235 +496,67 @@ public String getMatchingBindingFailureCondition(Predicate predicate) { return null; } - public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + public String getMatchingBindingFailureCondition(Predicate predicate) { for (String item : bindingFailureConditions) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withBindingFailureConditions(List bindingFailureConditions) { - if (bindingFailureConditions != null) { - this.bindingFailureConditions = new ArrayList(); - for (String item : bindingFailureConditions) { - this.addToBindingFailureConditions(item); - } - } else { - this.bindingFailureConditions = null; - } - return (A) this; - } - - public A withBindingFailureConditions(String... bindingFailureConditions) { - if (this.bindingFailureConditions != null) { - this.bindingFailureConditions.clear(); - _visitables.remove("bindingFailureConditions"); - } - if (bindingFailureConditions != null) { - for (String item : bindingFailureConditions) { - this.addToBindingFailureConditions(item); - } - } - return (A) this; - } - - public boolean hasBindingFailureConditions() { - return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); - } - - public Boolean getBindsToNode() { - return this.bindsToNode; - } - - public A withBindsToNode(Boolean bindsToNode) { - this.bindsToNode = bindsToNode; - return (A) this; - } - - public boolean hasBindsToNode() { - return this.bindsToNode != null; + public String getNodeName() { + return this.nodeName; } - public A addToCapacity(String key,V1beta1DeviceCapacity value) { - if (this.capacity == null && key != null && value != null) { - this.capacity = new LinkedHashMap(); - } - if (key != null && value != null) { - this.capacity.put(key, value); - } - return (A) this; + public boolean hasAllNodes() { + return this.allNodes != null; } - public A addToCapacity(Map map) { - if (this.capacity == null && map != null) { - this.capacity = new LinkedHashMap(); - } - if (map != null) { - this.capacity.putAll(map); - } - return (A) this; + public boolean hasAllowMultipleAllocations() { + return this.allowMultipleAllocations != null; } - public A removeFromCapacity(String key) { - if (this.capacity == null) { - return (A) this; - } - if (key != null && this.capacity != null) { - this.capacity.remove(key); - } - return (A) this; + public boolean hasAttributes() { + return this.attributes != null; } - public A removeFromCapacity(Map map) { - if (this.capacity == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.capacity != null) { - this.capacity.remove(key); - } - } - } - return (A) this; + public boolean hasBindingConditions() { + return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); } - public Map getCapacity() { - return this.capacity; + public boolean hasBindingFailureConditions() { + return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); } - public A withCapacity(Map capacity) { - if (capacity == null) { - this.capacity = null; - } else { - this.capacity = new LinkedHashMap(capacity); - } - return (A) this; + public boolean hasBindsToNode() { + return this.bindsToNode != null; } public boolean hasCapacity() { return this.capacity != null; } - public A addToConsumesCounters(int index,V1beta1DeviceCounterConsumption item) { - if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); - } - V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); - if (index < 0 || index >= consumesCounters.size()) { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(builder); - } else { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(index, builder); - } - return (A) this; - } - - public A setToConsumesCounters(int index,V1beta1DeviceCounterConsumption item) { - if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); - } - V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); - if (index < 0 || index >= consumesCounters.size()) { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(builder); - } else { - _visitables.get("consumesCounters").add(builder); - consumesCounters.set(index, builder); - } - return (A) this; - } - - public A addToConsumesCounters(V1beta1DeviceCounterConsumption... items) { - if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); - } - for (V1beta1DeviceCounterConsumption item : items) { - V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); - _visitables.get("consumesCounters").add(builder); - this.consumesCounters.add(builder); - } - return (A) this; - } - - public A addAllToConsumesCounters(Collection items) { - if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); - } - for (V1beta1DeviceCounterConsumption item : items) { - V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); - _visitables.get("consumesCounters").add(builder); - this.consumesCounters.add(builder); - } - return (A) this; - } - - public A removeFromConsumesCounters(V1beta1DeviceCounterConsumption... items) { - if (this.consumesCounters == null) { - return (A) this; - } - for (V1beta1DeviceCounterConsumption item : items) { - V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); - _visitables.get("consumesCounters").remove(builder); - this.consumesCounters.remove(builder); - } - return (A) this; - } - - public A removeAllFromConsumesCounters(Collection items) { - if (this.consumesCounters == null) { - return (A) this; - } - for (V1beta1DeviceCounterConsumption item : items) { - V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); - _visitables.get("consumesCounters").remove(builder); - this.consumesCounters.remove(builder); - } - return (A) this; + public boolean hasConsumesCounters() { + return this.consumesCounters != null && !(this.consumesCounters.isEmpty()); } - public A removeMatchingFromConsumesCounters(Predicate predicate) { - if (consumesCounters == null) { - return (A) this; - } - Iterator each = consumesCounters.iterator(); - List visitables = _visitables.get("consumesCounters"); - while (each.hasNext()) { - V1beta1DeviceCounterConsumptionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public boolean hasMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return true; } - } - return (A) this; - } - - public List buildConsumesCounters() { - return this.consumesCounters != null ? build(consumesCounters) : null; - } - - public V1beta1DeviceCounterConsumption buildConsumesCounter(int index) { - return this.consumesCounters.get(index).build(); - } - - public V1beta1DeviceCounterConsumption buildFirstConsumesCounter() { - return this.consumesCounters.get(0).build(); - } - - public V1beta1DeviceCounterConsumption buildLastConsumesCounter() { - return this.consumesCounters.get(consumesCounters.size() - 1).build(); + } + return false; } - public V1beta1DeviceCounterConsumption buildMatchingConsumesCounter(Predicate predicate) { - for (V1beta1DeviceCounterConsumptionBuilder item : consumesCounters) { + public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingConsumesCounter(Predicate predicate) { @@ -585,201 +568,59 @@ public boolean hasMatchingConsumesCounter(Predicate consumesCounters) { - if (this.consumesCounters != null) { - this._visitables.get("consumesCounters").clear(); - } - if (consumesCounters != null) { - this.consumesCounters = new ArrayList(); - for (V1beta1DeviceCounterConsumption item : consumesCounters) { - this.addToConsumesCounters(item); + public boolean hasMatchingTaint(Predicate predicate) { + for (V1beta1DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return true; } - } else { - this.consumesCounters = null; - } - return (A) this; - } - - public A withConsumesCounters(V1beta1DeviceCounterConsumption... consumesCounters) { - if (this.consumesCounters != null) { - this.consumesCounters.clear(); - _visitables.remove("consumesCounters"); - } - if (consumesCounters != null) { - for (V1beta1DeviceCounterConsumption item : consumesCounters) { - this.addToConsumesCounters(item); - } - } - return (A) this; - } - - public boolean hasConsumesCounters() { - return this.consumesCounters != null && !(this.consumesCounters.isEmpty()); - } - - public ConsumesCountersNested addNewConsumesCounter() { - return new ConsumesCountersNested(-1, null); - } - - public ConsumesCountersNested addNewConsumesCounterLike(V1beta1DeviceCounterConsumption item) { - return new ConsumesCountersNested(-1, item); - } - - public ConsumesCountersNested setNewConsumesCounterLike(int index,V1beta1DeviceCounterConsumption item) { - return new ConsumesCountersNested(index, item); - } - - public ConsumesCountersNested editConsumesCounter(int index) { - if (index <= consumesCounters.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "consumesCounters")); - } - return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); - } - - public ConsumesCountersNested editFirstConsumesCounter() { - if (consumesCounters.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "consumesCounters")); - } - return this.setNewConsumesCounterLike(0, this.buildConsumesCounter(0)); - } - - public ConsumesCountersNested editLastConsumesCounter() { - int index = consumesCounters.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "consumesCounters")); - } - return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); - } - - public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { - int index = -1; - for (int i = 0;i < consumesCounters.size();i++) { - if (predicate.test(consumesCounters.get(i))) { - index = i; - break; } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "consumesCounters")); - } - return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); - } - - public String getNodeName() { - return this.nodeName; - } - - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; + return false; } public boolean hasNodeName() { return this.nodeName != null; } - public V1NodeSelector buildNodeSelector() { - return this.nodeSelector != null ? this.nodeSelector.build() : null; - } - - public A withNodeSelector(V1NodeSelector nodeSelector) { - this._visitables.remove("nodeSelector"); - if (nodeSelector != null) { - this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); - this._visitables.get("nodeSelector").add(this.nodeSelector); - } else { - this.nodeSelector = null; - this._visitables.get("nodeSelector").remove(this.nodeSelector); - } - return (A) this; - } - public boolean hasNodeSelector() { return this.nodeSelector != null; } - - public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); - } - - public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); - } - - public NodeSelectorNested editNodeSelector() { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); - } - - public NodeSelectorNested editOrNewNodeSelector() { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); - } - - public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); - } - - public A addToTaints(int index,V1beta1DeviceTaint item) { - if (this.taints == null) { - this.taints = new ArrayList(); - } - V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); - if (index < 0 || index >= taints.size()) { - _visitables.get("taints").add(builder); - taints.add(builder); - } else { - _visitables.get("taints").add(builder); - taints.add(index, builder); - } - return (A) this; + + public boolean hasTaints() { + return this.taints != null && !(this.taints.isEmpty()); } - public A setToTaints(int index,V1beta1DeviceTaint item) { - if (this.taints == null) { - this.taints = new ArrayList(); - } - V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); - if (index < 0 || index >= taints.size()) { - _visitables.get("taints").add(builder); - taints.add(builder); - } else { - _visitables.get("taints").add(builder); - taints.set(index, builder); - } - return (A) this; + public int hashCode() { + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, nodeName, nodeSelector, taints); } - public A addToTaints(V1beta1DeviceTaint... items) { - if (this.taints == null) { - this.taints = new ArrayList(); + public A removeAllFromBindingConditions(Collection items) { + if (this.bindingConditions == null) { + return (A) this; } - for (V1beta1DeviceTaint item : items) { - V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); - _visitables.get("taints").add(builder); - this.taints.add(builder); + for (String item : items) { + this.bindingConditions.remove(item); } return (A) this; } - public A addAllToTaints(Collection items) { - if (this.taints == null) { - this.taints = new ArrayList(); + public A removeAllFromBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + return (A) this; } - for (V1beta1DeviceTaint item : items) { - V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); - _visitables.get("taints").add(builder); - this.taints.add(builder); + for (String item : items) { + this.bindingFailureConditions.remove(item); } return (A) this; } - public A removeFromTaints(V1beta1DeviceTaint... items) { - if (this.taints == null) { + public A removeAllFromConsumesCounters(Collection items) { + if (this.consumesCounters == null) { return (A) this; } - for (V1beta1DeviceTaint item : items) { - V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); - _visitables.get("taints").remove(builder); - this.taints.remove(builder); + for (V1beta1DeviceCounterConsumption item : items) { + V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").remove(builder); + this.consumesCounters.remove(builder); } return (A) this; } @@ -796,185 +637,182 @@ public A removeAllFromTaints(Collection items) { return (A) this; } - public A removeMatchingFromTaints(Predicate predicate) { - if (taints == null) { + public A removeFromAttributes(String key) { + if (this.attributes == null) { return (A) this; } - Iterator each = taints.iterator(); - List visitables = _visitables.get("taints"); - while (each.hasNext()) { - V1beta1DeviceTaintBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (key != null && this.attributes != null) { + this.attributes.remove(key); } return (A) this; } - public List buildTaints() { - return this.taints != null ? build(taints) : null; - } - - public V1beta1DeviceTaint buildTaint(int index) { - return this.taints.get(index).build(); - } - - public V1beta1DeviceTaint buildFirstTaint() { - return this.taints.get(0).build(); - } - - public V1beta1DeviceTaint buildLastTaint() { - return this.taints.get(taints.size() - 1).build(); - } - - public V1beta1DeviceTaint buildMatchingTaint(Predicate predicate) { - for (V1beta1DeviceTaintBuilder item : taints) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingTaint(Predicate predicate) { - for (V1beta1DeviceTaintBuilder item : taints) { - if (predicate.test(item)) { - return true; + public A removeFromAttributes(Map map) { + if (this.attributes == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.attributes != null) { + this.attributes.remove(key); } } - return false; + } + return (A) this; } - public A withTaints(List taints) { - if (this.taints != null) { - this._visitables.get("taints").clear(); + public A removeFromBindingConditions(String... items) { + if (this.bindingConditions == null) { + return (A) this; } - if (taints != null) { - this.taints = new ArrayList(); - for (V1beta1DeviceTaint item : taints) { - this.addToTaints(item); - } - } else { - this.taints = null; + for (String item : items) { + this.bindingConditions.remove(item); } return (A) this; } - public A withTaints(V1beta1DeviceTaint... taints) { - if (this.taints != null) { - this.taints.clear(); - _visitables.remove("taints"); + public A removeFromBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + return (A) this; } - if (taints != null) { - for (V1beta1DeviceTaint item : taints) { - this.addToTaints(item); - } + for (String item : items) { + this.bindingFailureConditions.remove(item); } return (A) this; } - public boolean hasTaints() { - return this.taints != null && !(this.taints.isEmpty()); - } - - public TaintsNested addNewTaint() { - return new TaintsNested(-1, null); - } - - public TaintsNested addNewTaintLike(V1beta1DeviceTaint item) { - return new TaintsNested(-1, item); - } - - public TaintsNested setNewTaintLike(int index,V1beta1DeviceTaint item) { - return new TaintsNested(index, item); - } - - public TaintsNested editTaint(int index) { - if (index <= taints.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "taints")); + public A removeFromCapacity(String key) { + if (this.capacity == null) { + return (A) this; } - return this.setNewTaintLike(index, this.buildTaint(index)); - } - - public TaintsNested editFirstTaint() { - if (taints.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "taints")); + if (key != null && this.capacity != null) { + this.capacity.remove(key); } - return this.setNewTaintLike(0, this.buildTaint(0)); + return (A) this; } - public TaintsNested editLastTaint() { - int index = taints.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "taints")); + public A removeFromCapacity(Map map) { + if (this.capacity == null) { + return (A) this; } - return this.setNewTaintLike(index, this.buildTaint(index)); - } - - public TaintsNested editMatchingTaint(Predicate predicate) { - int index = -1; - for (int i = 0;i < taints.size();i++) { - if (predicate.test(taints.get(i))) { - index = i; - break; + if (map != null) { + for (Object key : map.keySet()) { + if (this.capacity != null) { + this.capacity.remove(key); + } } } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "taints")); - } - return this.setNewTaintLike(index, this.buildTaint(index)); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; + public A removeFromConsumesCounters(V1beta1DeviceCounterConsumption... items) { + if (this.consumesCounters == null) { + return (A) this; } - V1beta1BasicDeviceFluent that = (V1beta1BasicDeviceFluent) o; - if (!(Objects.equals(allNodes, that.allNodes))) { - return false; + for (V1beta1DeviceCounterConsumption item : items) { + V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").remove(builder); + this.consumesCounters.remove(builder); } - if (!(Objects.equals(allowMultipleAllocations, that.allowMultipleAllocations))) { - return false; + return (A) this; + } + + public A removeFromTaints(V1beta1DeviceTaint... items) { + if (this.taints == null) { + return (A) this; } - if (!(Objects.equals(attributes, that.attributes))) { - return false; + for (V1beta1DeviceTaint item : items) { + V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); + _visitables.get("taints").remove(builder); + this.taints.remove(builder); } - if (!(Objects.equals(bindingConditions, that.bindingConditions))) { - return false; + return (A) this; + } + + public A removeMatchingFromConsumesCounters(Predicate predicate) { + if (consumesCounters == null) { + return (A) this; } - if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { - return false; + Iterator each = consumesCounters.iterator(); + List visitables = _visitables.get("consumesCounters"); + while (each.hasNext()) { + V1beta1DeviceCounterConsumptionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - if (!(Objects.equals(bindsToNode, that.bindsToNode))) { - return false; + return (A) this; + } + + public A removeMatchingFromTaints(Predicate predicate) { + if (taints == null) { + return (A) this; } - if (!(Objects.equals(capacity, that.capacity))) { - return false; + Iterator each = taints.iterator(); + List visitables = _visitables.get("taints"); + while (each.hasNext()) { + V1beta1DeviceTaintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - if (!(Objects.equals(consumesCounters, that.consumesCounters))) { - return false; + return (A) this; + } + + public ConsumesCountersNested setNewConsumesCounterLike(int index,V1beta1DeviceCounterConsumption item) { + return new ConsumesCountersNested(index, item); + } + + public TaintsNested setNewTaintLike(int index,V1beta1DeviceTaint item) { + return new TaintsNested(index, item); + } + + public A setToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); } - if (!(Objects.equals(nodeName, that.nodeName))) { - return false; + this.bindingConditions.set(index, item); + return (A) this; + } + + public A setToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); } - if (!(Objects.equals(nodeSelector, that.nodeSelector))) { - return false; + this.bindingFailureConditions.set(index, item); + return (A) this; + } + + public A setToConsumesCounters(int index,V1beta1DeviceCounterConsumption item) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); } - if (!(Objects.equals(taints, that.taints))) { - return false; + V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.set(index, builder); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, nodeName, nodeSelector, taints); + public A setToTaints(int index,V1beta1DeviceTaint item) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.set(index, builder); + } + return (A) this; } public String toString() { @@ -1042,21 +880,187 @@ public A withAllNodes() { return withAllNodes(true); } + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + public A withAllowMultipleAllocations() { return withAllowMultipleAllocations(true); } + public A withAllowMultipleAllocations(Boolean allowMultipleAllocations) { + this.allowMultipleAllocations = allowMultipleAllocations; + return (A) this; + } + + public A withAttributes(Map attributes) { + if (attributes == null) { + this.attributes = null; + } else { + this.attributes = new LinkedHashMap(attributes); + } + return (A) this; + } + + public A withBindingConditions(List bindingConditions) { + if (bindingConditions != null) { + this.bindingConditions = new ArrayList(); + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } else { + this.bindingConditions = null; + } + return (A) this; + } + + public A withBindingConditions(String... bindingConditions) { + if (this.bindingConditions != null) { + this.bindingConditions.clear(); + _visitables.remove("bindingConditions"); + } + if (bindingConditions != null) { + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } + return (A) this; + } + + public A withBindingFailureConditions(List bindingFailureConditions) { + if (bindingFailureConditions != null) { + this.bindingFailureConditions = new ArrayList(); + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } else { + this.bindingFailureConditions = null; + } + return (A) this; + } + + public A withBindingFailureConditions(String... bindingFailureConditions) { + if (this.bindingFailureConditions != null) { + this.bindingFailureConditions.clear(); + _visitables.remove("bindingFailureConditions"); + } + if (bindingFailureConditions != null) { + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } + return (A) this; + } + public A withBindsToNode() { return withBindsToNode(true); } + + public A withBindsToNode(Boolean bindsToNode) { + this.bindsToNode = bindsToNode; + return (A) this; + } + + public A withCapacity(Map capacity) { + if (capacity == null) { + this.capacity = null; + } else { + this.capacity = new LinkedHashMap(capacity); + } + return (A) this; + } + + public A withConsumesCounters(List consumesCounters) { + if (this.consumesCounters != null) { + this._visitables.get("consumesCounters").clear(); + } + if (consumesCounters != null) { + this.consumesCounters = new ArrayList(); + for (V1beta1DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } else { + this.consumesCounters = null; + } + return (A) this; + } + + public A withConsumesCounters(V1beta1DeviceCounterConsumption... consumesCounters) { + if (this.consumesCounters != null) { + this.consumesCounters.clear(); + _visitables.remove("consumesCounters"); + } + if (consumesCounters != null) { + for (V1beta1DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } + return (A) this; + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + public A withNodeSelector(V1NodeSelector nodeSelector) { + this._visitables.remove("nodeSelector"); + if (nodeSelector != null) { + this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); + this._visitables.get("nodeSelector").add(this.nodeSelector); + } else { + this.nodeSelector = null; + this._visitables.get("nodeSelector").remove(this.nodeSelector); + } + return (A) this; + } + + public A withTaints(List taints) { + if (this.taints != null) { + this._visitables.get("taints").clear(); + } + if (taints != null) { + this.taints = new ArrayList(); + for (V1beta1DeviceTaint item : taints) { + this.addToTaints(item); + } + } else { + this.taints = null; + } + return (A) this; + } + + public A withTaints(V1beta1DeviceTaint... taints) { + if (this.taints != null) { + this.taints.clear(); + _visitables.remove("taints"); + } + if (taints != null) { + for (V1beta1DeviceTaint item : taints) { + this.addToTaints(item); + } + } + return (A) this; + } public class ConsumesCountersNested extends V1beta1DeviceCounterConsumptionFluent> implements Nested{ + + V1beta1DeviceCounterConsumptionBuilder builder; + int index; + ConsumesCountersNested(int index,V1beta1DeviceCounterConsumption item) { this.index = index; this.builder = new V1beta1DeviceCounterConsumptionBuilder(this, item); } - V1beta1DeviceCounterConsumptionBuilder builder; - int index; - + public N and() { return (N) V1beta1BasicDeviceFluent.this.setToConsumesCounters(index, builder.build()); } @@ -1065,14 +1069,15 @@ public N endConsumesCounter() { return and(); } - } public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + NodeSelectorNested(V1NodeSelector item) { this.builder = new V1NodeSelectorBuilder(this, item); } - V1NodeSelectorBuilder builder; - + public N and() { return (N) V1beta1BasicDeviceFluent.this.withNodeSelector(builder.build()); } @@ -1081,16 +1086,17 @@ public N endNodeSelector() { return and(); } - } public class TaintsNested extends V1beta1DeviceTaintFluent> implements Nested{ + + V1beta1DeviceTaintBuilder builder; + int index; + TaintsNested(int index,V1beta1DeviceTaint item) { this.index = index; this.builder = new V1beta1DeviceTaintBuilder(this, item); } - V1beta1DeviceTaintBuilder builder; - int index; - + public N and() { return (N) V1beta1BasicDeviceFluent.this.setToTaints(index, builder.build()); } @@ -1099,7 +1105,5 @@ public N endTaint() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorBuilder.java index 285f2a242d..8ace464ec7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1CELDeviceSelectorBuilder extends V1beta1CELDeviceSelectorFluent implements VisitableBuilder{ + + V1beta1CELDeviceSelectorFluent fluent; + public V1beta1CELDeviceSelectorBuilder() { this(new V1beta1CELDeviceSelector()); } @@ -11,22 +14,20 @@ public V1beta1CELDeviceSelectorBuilder(V1beta1CELDeviceSelectorFluent fluent) this(fluent, new V1beta1CELDeviceSelector()); } - public V1beta1CELDeviceSelectorBuilder(V1beta1CELDeviceSelectorFluent fluent,V1beta1CELDeviceSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1CELDeviceSelectorBuilder(V1beta1CELDeviceSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1CELDeviceSelectorFluent fluent; + public V1beta1CELDeviceSelectorBuilder(V1beta1CELDeviceSelectorFluent fluent,V1beta1CELDeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1CELDeviceSelector build() { V1beta1CELDeviceSelector buildable = new V1beta1CELDeviceSelector(); buildable.setExpression(fluent.getExpression()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorFluent.java index ee581416f5..01e019c341 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1CELDeviceSelectorFluent> extends BaseFluent{ + + private String expression; + public V1beta1CELDeviceSelectorFluent() { } public V1beta1CELDeviceSelectorFluent(V1beta1CELDeviceSelector instance) { this.copyInstance(instance); } - private String expression; - + protected void copyInstance(V1beta1CELDeviceSelector instance) { instance = instance != null ? instance : new V1beta1CELDeviceSelector(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1beta1CELDeviceSelector instance) { } } - public String getExpression() { - return this.expression; - } - - public A withExpression(String expression) { - this.expression = expression; - return (A) this; - } - - public boolean hasExpression() { - return this.expression != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getExpression() { + return this.expression; + } + + public boolean hasExpression() { + return this.expression != null; + } + public int hashCode() { return Objects.hash(expression); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyBuilder.java index 9f5dabd182..5598577098 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1CapacityRequestPolicyBuilder extends V1beta1CapacityRequestPolicyFluent implements VisitableBuilder{ + + V1beta1CapacityRequestPolicyFluent fluent; + public V1beta1CapacityRequestPolicyBuilder() { this(new V1beta1CapacityRequestPolicy()); } @@ -11,17 +14,16 @@ public V1beta1CapacityRequestPolicyBuilder(V1beta1CapacityRequestPolicyFluent this(fluent, new V1beta1CapacityRequestPolicy()); } - public V1beta1CapacityRequestPolicyBuilder(V1beta1CapacityRequestPolicyFluent fluent,V1beta1CapacityRequestPolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1CapacityRequestPolicyBuilder(V1beta1CapacityRequestPolicy instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1CapacityRequestPolicyFluent fluent; + public V1beta1CapacityRequestPolicyBuilder(V1beta1CapacityRequestPolicyFluent fluent,V1beta1CapacityRequestPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1CapacityRequestPolicy build() { V1beta1CapacityRequestPolicy buildable = new V1beta1CapacityRequestPolicy(); buildable.setDefault(fluent.getDefault()); @@ -30,5 +32,4 @@ public V1beta1CapacityRequestPolicy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyFluent.java index b1068beb59..fe96416cef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyFluent.java @@ -1,90 +1,79 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import io.kubernetes.client.custom.Quantity; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1CapacityRequestPolicyFluent> extends BaseFluent{ + + private Quantity _default; + private V1beta1CapacityRequestPolicyRangeBuilder validRange; + private List validValues; + public V1beta1CapacityRequestPolicyFluent() { } public V1beta1CapacityRequestPolicyFluent(V1beta1CapacityRequestPolicy instance) { this.copyInstance(instance); } - private Quantity _default; - private V1beta1CapacityRequestPolicyRangeBuilder validRange; - private List validValues; - - protected void copyInstance(V1beta1CapacityRequestPolicy instance) { - instance = instance != null ? instance : new V1beta1CapacityRequestPolicy(); - if (instance != null) { - this.withDefault(instance.getDefault()); - this.withValidRange(instance.getValidRange()); - this.withValidValues(instance.getValidValues()); + + public A addAllToValidValues(Collection items) { + if (this.validValues == null) { + this.validValues = new ArrayList(); } + for (Quantity item : items) { + this.validValues.add(item); + } + return (A) this; } - public Quantity getDefault() { - return this._default; + public A addNewValidValue(String value) { + return (A) this.addToValidValues(new Quantity(value)); } - public A withDefault(Quantity _default) { - this._default = _default; + public A addToValidValues(Quantity... items) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + for (Quantity item : items) { + this.validValues.add(item); + } return (A) this; } - public boolean hasDefault() { - return this._default != null; - } - - public A withNewDefault(String value) { - return (A) this.withDefault(new Quantity(value)); + public A addToValidValues(int index,Quantity item) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + this.validValues.add(index, item); + return (A) this; } public V1beta1CapacityRequestPolicyRange buildValidRange() { return this.validRange != null ? this.validRange.build() : null; } - public A withValidRange(V1beta1CapacityRequestPolicyRange validRange) { - this._visitables.remove("validRange"); - if (validRange != null) { - this.validRange = new V1beta1CapacityRequestPolicyRangeBuilder(validRange); - this._visitables.get("validRange").add(this.validRange); - } else { - this.validRange = null; - this._visitables.get("validRange").remove(this.validRange); + protected void copyInstance(V1beta1CapacityRequestPolicy instance) { + instance = instance != null ? instance : new V1beta1CapacityRequestPolicy(); + if (instance != null) { + this.withDefault(instance.getDefault()); + this.withValidRange(instance.getValidRange()); + this.withValidValues(instance.getValidValues()); } - return (A) this; - } - - public boolean hasValidRange() { - return this.validRange != null; - } - - public ValidRangeNested withNewValidRange() { - return new ValidRangeNested(null); - } - - public ValidRangeNested withNewValidRangeLike(V1beta1CapacityRequestPolicyRange item) { - return new ValidRangeNested(item); - } - - public ValidRangeNested editValidRange() { - return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(null)); } public ValidRangeNested editOrNewValidRange() { @@ -95,68 +84,35 @@ public ValidRangeNested editOrNewValidRangeLike(V1beta1CapacityRequestPolicyR return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(item)); } - public A addToValidValues(int index,Quantity item) { - if (this.validValues == null) { - this.validValues = new ArrayList(); - } - this.validValues.add(index, item); - return (A) this; - } - - public A setToValidValues(int index,Quantity item) { - if (this.validValues == null) { - this.validValues = new ArrayList(); - } - this.validValues.set(index, item); - return (A) this; - } - - public A addToValidValues(Quantity... items) { - if (this.validValues == null) { - this.validValues = new ArrayList(); - } - for (Quantity item : items) { - this.validValues.add(item); - } - return (A) this; + public ValidRangeNested editValidRange() { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(null)); } - public A addAllToValidValues(Collection items) { - if (this.validValues == null) { - this.validValues = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - for (Quantity item : items) { - this.validValues.add(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A removeFromValidValues(Quantity... items) { - if (this.validValues == null) { - return (A) this; + if (!(super.equals(o))) { + return false; } - for (Quantity item : items) { - this.validValues.remove(item); + V1beta1CapacityRequestPolicyFluent that = (V1beta1CapacityRequestPolicyFluent) o; + if (!(Objects.equals(_default, that._default))) { + return false; } - return (A) this; - } - - public A removeAllFromValidValues(Collection items) { - if (this.validValues == null) { - return (A) this; + if (!(Objects.equals(validRange, that.validRange))) { + return false; } - for (Quantity item : items) { - this.validValues.remove(item); + if (!(Objects.equals(validValues, that.validValues))) { + return false; } - return (A) this; - } - - public List getValidValues() { - return this.validValues; + return true; } - public Quantity getValidValue(int index) { - return this.validValues.get(index); + public Quantity getDefault() { + return this._default; } public Quantity getFirstValidValue() { @@ -176,6 +132,18 @@ public Quantity getMatchingValidValue(Predicate predicate) { return null; } + public Quantity getValidValue(int index) { + return this.validValues.get(index); + } + + public List getValidValues() { + return this.validValues; + } + + public boolean hasDefault() { + return this._default != null; + } + public boolean hasMatchingValidValue(Predicate predicate) { for (Quantity item : validValues) { if (predicate.test(item)) { @@ -185,64 +153,44 @@ public boolean hasMatchingValidValue(Predicate predicate) { return false; } - public A withValidValues(List validValues) { - if (validValues != null) { - this.validValues = new ArrayList(); - for (Quantity item : validValues) { - this.addToValidValues(item); - } - } else { - this.validValues = null; - } - return (A) this; - } - - public A withValidValues(Quantity... validValues) { - if (this.validValues != null) { - this.validValues.clear(); - _visitables.remove("validValues"); - } - if (validValues != null) { - for (Quantity item : validValues) { - this.addToValidValues(item); - } - } - return (A) this; + public boolean hasValidRange() { + return this.validRange != null; } public boolean hasValidValues() { return this.validValues != null && !(this.validValues.isEmpty()); } - public A addNewValidValue(String value) { - return (A) this.addToValidValues(new Quantity(value)); + public int hashCode() { + return Objects.hash(_default, validRange, validValues); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; + public A removeAllFromValidValues(Collection items) { + if (this.validValues == null) { + return (A) this; } - V1beta1CapacityRequestPolicyFluent that = (V1beta1CapacityRequestPolicyFluent) o; - if (!(Objects.equals(_default, that._default))) { - return false; + for (Quantity item : items) { + this.validValues.remove(item); } - if (!(Objects.equals(validRange, that.validRange))) { - return false; + return (A) this; + } + + public A removeFromValidValues(Quantity... items) { + if (this.validValues == null) { + return (A) this; } - if (!(Objects.equals(validValues, that.validValues))) { - return false; + for (Quantity item : items) { + this.validValues.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(_default, validRange, validValues); + public A setToValidValues(int index,Quantity item) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + this.validValues.set(index, item); + return (A) this; } public String toString() { @@ -265,12 +213,68 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withDefault(Quantity _default) { + this._default = _default; + return (A) this; + } + + public A withNewDefault(String value) { + return (A) this.withDefault(new Quantity(value)); + } + + public ValidRangeNested withNewValidRange() { + return new ValidRangeNested(null); + } + + public ValidRangeNested withNewValidRangeLike(V1beta1CapacityRequestPolicyRange item) { + return new ValidRangeNested(item); + } + + public A withValidRange(V1beta1CapacityRequestPolicyRange validRange) { + this._visitables.remove("validRange"); + if (validRange != null) { + this.validRange = new V1beta1CapacityRequestPolicyRangeBuilder(validRange); + this._visitables.get("validRange").add(this.validRange); + } else { + this.validRange = null; + this._visitables.get("validRange").remove(this.validRange); + } + return (A) this; + } + + public A withValidValues(List validValues) { + if (validValues != null) { + this.validValues = new ArrayList(); + for (Quantity item : validValues) { + this.addToValidValues(item); + } + } else { + this.validValues = null; + } + return (A) this; + } + + public A withValidValues(Quantity... validValues) { + if (this.validValues != null) { + this.validValues.clear(); + _visitables.remove("validValues"); + } + if (validValues != null) { + for (Quantity item : validValues) { + this.addToValidValues(item); + } + } + return (A) this; + } public class ValidRangeNested extends V1beta1CapacityRequestPolicyRangeFluent> implements Nested{ + + V1beta1CapacityRequestPolicyRangeBuilder builder; + ValidRangeNested(V1beta1CapacityRequestPolicyRange item) { this.builder = new V1beta1CapacityRequestPolicyRangeBuilder(this, item); } - V1beta1CapacityRequestPolicyRangeBuilder builder; - + public N and() { return (N) V1beta1CapacityRequestPolicyFluent.this.withValidRange(builder.build()); } @@ -279,7 +283,5 @@ public N endValidRange() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeBuilder.java index 8ea681b2c8..0a8db9231f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1CapacityRequestPolicyRangeBuilder extends V1beta1CapacityRequestPolicyRangeFluent implements VisitableBuilder{ + + V1beta1CapacityRequestPolicyRangeFluent fluent; + public V1beta1CapacityRequestPolicyRangeBuilder() { this(new V1beta1CapacityRequestPolicyRange()); } @@ -11,17 +14,16 @@ public V1beta1CapacityRequestPolicyRangeBuilder(V1beta1CapacityRequestPolicyRang this(fluent, new V1beta1CapacityRequestPolicyRange()); } - public V1beta1CapacityRequestPolicyRangeBuilder(V1beta1CapacityRequestPolicyRangeFluent fluent,V1beta1CapacityRequestPolicyRange instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1CapacityRequestPolicyRangeBuilder(V1beta1CapacityRequestPolicyRange instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1CapacityRequestPolicyRangeFluent fluent; + public V1beta1CapacityRequestPolicyRangeBuilder(V1beta1CapacityRequestPolicyRangeFluent fluent,V1beta1CapacityRequestPolicyRange instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1CapacityRequestPolicyRange build() { V1beta1CapacityRequestPolicyRange buildable = new V1beta1CapacityRequestPolicyRange(); buildable.setMax(fluent.getMax()); @@ -30,5 +32,4 @@ public V1beta1CapacityRequestPolicyRange build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeFluent.java index 4969de604a..b73f8f2ff5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1CapacityRequestPolicyRangeFluent> extends BaseFluent{ + + private Quantity max; + private Quantity min; + private Quantity step; + public V1beta1CapacityRequestPolicyRangeFluent() { } public V1beta1CapacityRequestPolicyRangeFluent(V1beta1CapacityRequestPolicyRange instance) { this.copyInstance(instance); } - private Quantity max; - private Quantity min; - private Quantity step; - + protected void copyInstance(V1beta1CapacityRequestPolicyRange instance) { instance = instance != null ? instance : new V1beta1CapacityRequestPolicyRange(); if (instance != null) { @@ -32,57 +34,6 @@ protected void copyInstance(V1beta1CapacityRequestPolicyRange instance) { } } - public Quantity getMax() { - return this.max; - } - - public A withMax(Quantity max) { - this.max = max; - return (A) this; - } - - public boolean hasMax() { - return this.max != null; - } - - public A withNewMax(String value) { - return (A) this.withMax(new Quantity(value)); - } - - public Quantity getMin() { - return this.min; - } - - public A withMin(Quantity min) { - this.min = min; - return (A) this; - } - - public boolean hasMin() { - return this.min != null; - } - - public A withNewMin(String value) { - return (A) this.withMin(new Quantity(value)); - } - - public Quantity getStep() { - return this.step; - } - - public A withStep(Quantity step) { - this.step = step; - return (A) this; - } - - public boolean hasStep() { - return this.step != null; - } - - public A withNewStep(String value) { - return (A) this.withStep(new Quantity(value)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -106,6 +57,30 @@ public boolean equals(Object o) { return true; } + public Quantity getMax() { + return this.max; + } + + public Quantity getMin() { + return this.min; + } + + public Quantity getStep() { + return this.step; + } + + public boolean hasMax() { + return this.max != null; + } + + public boolean hasMin() { + return this.min != null; + } + + public boolean hasStep() { + return this.step != null; + } + public int hashCode() { return Objects.hash(max, min, step); } @@ -131,5 +106,31 @@ public String toString() { return sb.toString(); } - + public A withMax(Quantity max) { + this.max = max; + return (A) this; + } + + public A withMin(Quantity min) { + this.min = min; + return (A) this; + } + + public A withNewMax(String value) { + return (A) this.withMax(new Quantity(value)); + } + + public A withNewMin(String value) { + return (A) this.withMin(new Quantity(value)); + } + + public A withNewStep(String value) { + return (A) this.withStep(new Quantity(value)); + } + + public A withStep(Quantity step) { + this.step = step; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsBuilder.java index b3fa53aee0..32e818888c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1CapacityRequirementsBuilder extends V1beta1CapacityRequirementsFluent implements VisitableBuilder{ + + V1beta1CapacityRequirementsFluent fluent; + public V1beta1CapacityRequirementsBuilder() { this(new V1beta1CapacityRequirements()); } @@ -11,22 +14,20 @@ public V1beta1CapacityRequirementsBuilder(V1beta1CapacityRequirementsFluent f this(fluent, new V1beta1CapacityRequirements()); } - public V1beta1CapacityRequirementsBuilder(V1beta1CapacityRequirementsFluent fluent,V1beta1CapacityRequirements instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1CapacityRequirementsBuilder(V1beta1CapacityRequirements instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1CapacityRequirementsFluent fluent; + public V1beta1CapacityRequirementsBuilder(V1beta1CapacityRequirementsFluent fluent,V1beta1CapacityRequirements instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1CapacityRequirements build() { V1beta1CapacityRequirements buildable = new V1beta1CapacityRequirements(); buildable.setRequests(fluent.getRequests()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsFluent.java index 4c645d204e..f4b21e42bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsFluent.java @@ -1,33 +1,38 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; -import java.util.Map; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1CapacityRequirementsFluent> extends BaseFluent{ + + private Map requests; + public V1beta1CapacityRequirementsFluent() { } public V1beta1CapacityRequirementsFluent(V1beta1CapacityRequirements instance) { this.copyInstance(instance); } - private Map requests; - - protected void copyInstance(V1beta1CapacityRequirements instance) { - instance = instance != null ? instance : new V1beta1CapacityRequirements(); - if (instance != null) { - this.withRequests(instance.getRequests()); + + public A addToRequests(Map map) { + if (this.requests == null && map != null) { + this.requests = new LinkedHashMap(); + } + if (map != null) { + this.requests.putAll(map); } + return (A) this; } public A addToRequests(String key,Quantity value) { @@ -40,14 +45,40 @@ public A addToRequests(String key,Quantity value) { return (A) this; } - public A addToRequests(Map map) { - if (this.requests == null && map != null) { - this.requests = new LinkedHashMap(); + protected void copyInstance(V1beta1CapacityRequirements instance) { + instance = instance != null ? instance : new V1beta1CapacityRequirements(); + if (instance != null) { + this.withRequests(instance.getRequests()); } - if (map != null) { - this.requests.putAll(map); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1CapacityRequirementsFluent that = (V1beta1CapacityRequirementsFluent) o; + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public Map getRequests() { + return this.requests; + } + + public boolean hasRequests() { + return this.requests != null; + } + + public int hashCode() { + return Objects.hash(requests); } public A removeFromRequests(String key) { @@ -74,44 +105,6 @@ public A removeFromRequests(Map map) { return (A) this; } - public Map getRequests() { - return this.requests; - } - - public A withRequests(Map requests) { - if (requests == null) { - this.requests = null; - } else { - this.requests = new LinkedHashMap(requests); - } - return (A) this; - } - - public boolean hasRequests() { - return this.requests != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1CapacityRequirementsFluent that = (V1beta1CapacityRequirementsFluent) o; - if (!(Objects.equals(requests, that.requests))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(requests); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -123,5 +116,13 @@ public String toString() { return sb.toString(); } - + public A withRequests(Map requests) { + if (requests == null) { + this.requests = null; + } else { + this.requests = new LinkedHashMap(requests); + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java index 91fa411a74..5174a8a95b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ClusterTrustBundleBuilder extends V1beta1ClusterTrustBundleFluent implements VisitableBuilder{ + + V1beta1ClusterTrustBundleFluent fluent; + public V1beta1ClusterTrustBundleBuilder() { this(new V1beta1ClusterTrustBundle()); } @@ -11,17 +14,16 @@ public V1beta1ClusterTrustBundleBuilder(V1beta1ClusterTrustBundleFluent fluen this(fluent, new V1beta1ClusterTrustBundle()); } - public V1beta1ClusterTrustBundleBuilder(V1beta1ClusterTrustBundleFluent fluent,V1beta1ClusterTrustBundle instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ClusterTrustBundleBuilder(V1beta1ClusterTrustBundle instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ClusterTrustBundleFluent fluent; + public V1beta1ClusterTrustBundleBuilder(V1beta1ClusterTrustBundleFluent fluent,V1beta1ClusterTrustBundle instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ClusterTrustBundle build() { V1beta1ClusterTrustBundle buildable = new V1beta1ClusterTrustBundle(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1ClusterTrustBundle build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleFluent.java index adbaa4444e..82592d4cd3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ClusterTrustBundleFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1ClusterTrustBundleSpecBuilder spec; + public V1beta1ClusterTrustBundleFluent() { } public V1beta1ClusterTrustBundleFluent(V1beta1ClusterTrustBundle instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta1ClusterTrustBundleSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1ClusterTrustBundleSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1beta1ClusterTrustBundle instance) { instance = instance != null ? instance : new V1beta1ClusterTrustBundle(); @@ -35,60 +45,6 @@ protected void copyInstance(V1beta1ClusterTrustBundle instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1beta1ClusterTrustBundleSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta1ClusterTrustBundleSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta1ClusterTrustBundleSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta1ClusterTrustBundleSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ClusterTrustBundleSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1beta1ClusterTrustBundleSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ClusterTrustBundleSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1beta1ClusterTrustBundleSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1ClusterTrustBundleSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1beta1ClusterTrustBundleFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1beta1ClusterTrustBundleSpecFluent> implements Nested{ + + V1beta1ClusterTrustBundleSpecBuilder builder; + SpecNested(V1beta1ClusterTrustBundleSpec item) { this.builder = new V1beta1ClusterTrustBundleSpecBuilder(this, item); } - V1beta1ClusterTrustBundleSpecBuilder builder; - + public N and() { return (N) V1beta1ClusterTrustBundleFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListBuilder.java index 58b67b4d35..289f9f4114 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ClusterTrustBundleListBuilder extends V1beta1ClusterTrustBundleListFluent implements VisitableBuilder{ + + V1beta1ClusterTrustBundleListFluent fluent; + public V1beta1ClusterTrustBundleListBuilder() { this(new V1beta1ClusterTrustBundleList()); } @@ -11,17 +14,16 @@ public V1beta1ClusterTrustBundleListBuilder(V1beta1ClusterTrustBundleListFluent< this(fluent, new V1beta1ClusterTrustBundleList()); } - public V1beta1ClusterTrustBundleListBuilder(V1beta1ClusterTrustBundleListFluent fluent,V1beta1ClusterTrustBundleList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ClusterTrustBundleListBuilder(V1beta1ClusterTrustBundleList instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ClusterTrustBundleListFluent fluent; + public V1beta1ClusterTrustBundleListBuilder(V1beta1ClusterTrustBundleListFluent fluent,V1beta1ClusterTrustBundleList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ClusterTrustBundleList build() { V1beta1ClusterTrustBundleList buildable = new V1beta1ClusterTrustBundleList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1ClusterTrustBundleList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListFluent.java index 9f93f86b5d..2eca0df0df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ClusterTrustBundleListFluent> extends BaseFluent{ - public V1beta1ClusterTrustBundleListFluent() { - } - - public V1beta1ClusterTrustBundleListFluent(V1beta1ClusterTrustBundleList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta1ClusterTrustBundleList instance) { - instance = instance != null ? instance : new V1beta1ClusterTrustBundleList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1beta1ClusterTrustBundleListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1beta1ClusterTrustBundleListFluent(V1beta1ClusterTrustBundleList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1beta1ClusterTrustBundle item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1beta1ClusterTrustBundle item : items) { + V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1beta1ClusterTrustBundle item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1ClusterTrustBundle item) { + return new ItemsNested(-1, item); } public A addToItems(V1beta1ClusterTrustBundle... items) { @@ -96,68 +65,31 @@ public A addToItems(V1beta1ClusterTrustBundle... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1beta1ClusterTrustBundle item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1beta1ClusterTrustBundle item : items) { - V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); + V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1beta1ClusterTrustBundle... items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1ClusterTrustBundle item : items) { - V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1ClusterTrustBundle item : items) { - V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta1ClusterTrustBundleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1beta1ClusterTrustBundle buildFirstItem() { + return this.items.get(0).build(); } public V1beta1ClusterTrustBundle buildItem(int index) { return this.items.get(index).build(); } - public V1beta1ClusterTrustBundle buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1beta1ClusterTrustBundle buildLastItem() { @@ -173,73 +105,34 @@ public V1beta1ClusterTrustBundle buildMatchingItem(Predicate predicate) { - for (V1beta1ClusterTrustBundleBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta1ClusterTrustBundle item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1beta1ClusterTrustBundleList instance) { + instance = instance != null ? instance : new V1beta1ClusterTrustBundleList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1beta1ClusterTrustBundle... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta1ClusterTrustBundle item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta1ClusterTrustBundle item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta1ClusterTrustBundle item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1ClusterTrustBundleBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1ClusterTrustBundle item : items) { + V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta1ClusterTrustBundle... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1ClusterTrustBundle item : items) { + V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1ClusterTrustBundleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta1ClusterTrustBundle item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta1ClusterTrustBundle item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1ClusterTrustBundle item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta1ClusterTrustBundle... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1ClusterTrustBundle item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1beta1ClusterTrustBundleFluent> implements Nested{ + + V1beta1ClusterTrustBundleBuilder builder; + int index; + ItemsNested(int index,V1beta1ClusterTrustBundle item) { this.index = index; this.builder = new V1beta1ClusterTrustBundleBuilder(this, item); } - V1beta1ClusterTrustBundleBuilder builder; - int index; - + public N and() { return (N) V1beta1ClusterTrustBundleListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1beta1ClusterTrustBundleListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecBuilder.java index 7d5fc5cffc..3e00c049c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ClusterTrustBundleSpecBuilder extends V1beta1ClusterTrustBundleSpecFluent implements VisitableBuilder{ + + V1beta1ClusterTrustBundleSpecFluent fluent; + public V1beta1ClusterTrustBundleSpecBuilder() { this(new V1beta1ClusterTrustBundleSpec()); } @@ -11,17 +14,16 @@ public V1beta1ClusterTrustBundleSpecBuilder(V1beta1ClusterTrustBundleSpecFluent< this(fluent, new V1beta1ClusterTrustBundleSpec()); } - public V1beta1ClusterTrustBundleSpecBuilder(V1beta1ClusterTrustBundleSpecFluent fluent,V1beta1ClusterTrustBundleSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ClusterTrustBundleSpecBuilder(V1beta1ClusterTrustBundleSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ClusterTrustBundleSpecFluent fluent; + public V1beta1ClusterTrustBundleSpecBuilder(V1beta1ClusterTrustBundleSpecFluent fluent,V1beta1ClusterTrustBundleSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ClusterTrustBundleSpec build() { V1beta1ClusterTrustBundleSpec buildable = new V1beta1ClusterTrustBundleSpec(); buildable.setSignerName(fluent.getSignerName()); @@ -29,5 +31,4 @@ public V1beta1ClusterTrustBundleSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecFluent.java index e7c8a9b42d..b7eb83bdc5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ClusterTrustBundleSpecFluent> extends BaseFluent{ + + private String signerName; + private String trustBundle; + public V1beta1ClusterTrustBundleSpecFluent() { } public V1beta1ClusterTrustBundleSpecFluent(V1beta1ClusterTrustBundleSpec instance) { this.copyInstance(instance); } - private String signerName; - private String trustBundle; - + protected void copyInstance(V1beta1ClusterTrustBundleSpec instance) { instance = instance != null ? instance : new V1beta1ClusterTrustBundleSpec(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1beta1ClusterTrustBundleSpec instance) { } } - public String getSignerName() { - return this.signerName; - } - - public A withSignerName(String signerName) { - this.signerName = signerName; - return (A) this; - } - - public boolean hasSignerName() { - return this.signerName != null; - } - - public String getTrustBundle() { - return this.trustBundle; - } - - public A withTrustBundle(String trustBundle) { - this.trustBundle = trustBundle; - return (A) this; - } - - public boolean hasTrustBundle() { - return this.trustBundle != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getSignerName() { + return this.signerName; + } + + public String getTrustBundle() { + return this.trustBundle; + } + + public boolean hasSignerName() { + return this.signerName != null; + } + + public boolean hasTrustBundle() { + return this.trustBundle != null; + } + public int hashCode() { return Objects.hash(signerName, trustBundle); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withSignerName(String signerName) { + this.signerName = signerName; + return (A) this; + } + + public A withTrustBundle(String trustBundle) { + this.trustBundle = trustBundle; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterBuilder.java index 833262636e..acaa5335a5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1CounterBuilder extends V1beta1CounterFluent implements VisitableBuilder{ + + V1beta1CounterFluent fluent; + public V1beta1CounterBuilder() { this(new V1beta1Counter()); } @@ -11,22 +14,20 @@ public V1beta1CounterBuilder(V1beta1CounterFluent fluent) { this(fluent, new V1beta1Counter()); } - public V1beta1CounterBuilder(V1beta1CounterFluent fluent,V1beta1Counter instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1CounterBuilder(V1beta1Counter instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1CounterFluent fluent; + public V1beta1CounterBuilder(V1beta1CounterFluent fluent,V1beta1Counter instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1Counter build() { V1beta1Counter buildable = new V1beta1Counter(); buildable.setValue(fluent.getValue()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterFluent.java index 61cdb3371f..4d429012cb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1CounterFluent> extends BaseFluent{ + + private Quantity value; + public V1beta1CounterFluent() { } public V1beta1CounterFluent(V1beta1Counter instance) { this.copyInstance(instance); } - private Quantity value; - + protected void copyInstance(V1beta1Counter instance) { instance = instance != null ? instance : new V1beta1Counter(); if (instance != null) { @@ -28,23 +30,6 @@ protected void copyInstance(V1beta1Counter instance) { } } - public Quantity getValue() { - return this.value; - } - - public A withValue(Quantity value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - - public A withNewValue(String value) { - return (A) this.withValue(new Quantity(value)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -62,6 +47,14 @@ public boolean equals(Object o) { return true; } + public Quantity getValue() { + return this.value; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(value); } @@ -77,5 +70,13 @@ public String toString() { return sb.toString(); } - + public A withNewValue(String value) { + return (A) this.withValue(new Quantity(value)); + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetBuilder.java index 0999e7f278..3c2550cb38 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1CounterSetBuilder extends V1beta1CounterSetFluent implements VisitableBuilder{ + + V1beta1CounterSetFluent fluent; + public V1beta1CounterSetBuilder() { this(new V1beta1CounterSet()); } @@ -11,17 +14,16 @@ public V1beta1CounterSetBuilder(V1beta1CounterSetFluent fluent) { this(fluent, new V1beta1CounterSet()); } - public V1beta1CounterSetBuilder(V1beta1CounterSetFluent fluent,V1beta1CounterSet instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1CounterSetBuilder(V1beta1CounterSet instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1CounterSetFluent fluent; + public V1beta1CounterSetBuilder(V1beta1CounterSetFluent fluent,V1beta1CounterSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1CounterSet build() { V1beta1CounterSet buildable = new V1beta1CounterSet(); buildable.setCounters(fluent.getCounters()); @@ -29,5 +31,4 @@ public V1beta1CounterSet build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetFluent.java index dc45221969..72d7059e04 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetFluent.java @@ -1,46 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; -import java.util.Map; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1CounterSetFluent> extends BaseFluent{ + + private Map counters; + private String name; + public V1beta1CounterSetFluent() { } public V1beta1CounterSetFluent(V1beta1CounterSet instance) { this.copyInstance(instance); } - private Map counters; - private String name; - - protected void copyInstance(V1beta1CounterSet instance) { - instance = instance != null ? instance : new V1beta1CounterSet(); - if (instance != null) { - this.withCounters(instance.getCounters()); - this.withName(instance.getName()); - } - } - - public A addToCounters(String key,V1beta1Counter value) { - if (this.counters == null && key != null && value != null) { - this.counters = new LinkedHashMap(); - } - if (key != null && value != null) { - this.counters.put(key, value); - } - return (A) this; - } - + public A addToCounters(Map map) { if (this.counters == null && map != null) { this.counters = new LinkedHashMap(); @@ -51,58 +35,22 @@ public A addToCounters(Map map) { return (A) this; } - public A removeFromCounters(String key) { - if (this.counters == null) { - return (A) this; - } - if (key != null && this.counters != null) { - this.counters.remove(key); - } - return (A) this; - } - - public A removeFromCounters(Map map) { - if (this.counters == null) { - return (A) this; + public A addToCounters(String key,V1beta1Counter value) { + if (this.counters == null && key != null && value != null) { + this.counters = new LinkedHashMap(); } - if (map != null) { - for (Object key : map.keySet()) { - if (this.counters != null) { - this.counters.remove(key); - } - } + if (key != null && value != null) { + this.counters.put(key, value); } return (A) this; } - public Map getCounters() { - return this.counters; - } - - public A withCounters(Map counters) { - if (counters == null) { - this.counters = null; - } else { - this.counters = new LinkedHashMap(counters); + protected void copyInstance(V1beta1CounterSet instance) { + instance = instance != null ? instance : new V1beta1CounterSet(); + if (instance != null) { + this.withCounters(instance.getCounters()); + this.withName(instance.getName()); } - return (A) this; - } - - public boolean hasCounters() { - return this.counters != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; } public boolean equals(Object o) { @@ -125,10 +73,50 @@ public boolean equals(Object o) { return true; } + public Map getCounters() { + return this.counters; + } + + public String getName() { + return this.name; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(counters, name); } + public A removeFromCounters(String key) { + if (this.counters == null) { + return (A) this; + } + if (key != null && this.counters != null) { + this.counters.remove(key); + } + return (A) this; + } + + public A removeFromCounters(Map map) { + if (this.counters == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.counters != null) { + this.counters.remove(key); + } + } + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -145,5 +133,18 @@ public String toString() { return sb.toString(); } - + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationBuilder.java index 06b1535485..99efeaa68c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceAllocationConfigurationBuilder extends V1beta1DeviceAllocationConfigurationFluent implements VisitableBuilder{ + + V1beta1DeviceAllocationConfigurationFluent fluent; + public V1beta1DeviceAllocationConfigurationBuilder() { this(new V1beta1DeviceAllocationConfiguration()); } @@ -11,17 +14,16 @@ public V1beta1DeviceAllocationConfigurationBuilder(V1beta1DeviceAllocationConfig this(fluent, new V1beta1DeviceAllocationConfiguration()); } - public V1beta1DeviceAllocationConfigurationBuilder(V1beta1DeviceAllocationConfigurationFluent fluent,V1beta1DeviceAllocationConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceAllocationConfigurationBuilder(V1beta1DeviceAllocationConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceAllocationConfigurationFluent fluent; + public V1beta1DeviceAllocationConfigurationBuilder(V1beta1DeviceAllocationConfigurationFluent fluent,V1beta1DeviceAllocationConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1DeviceAllocationConfiguration build() { V1beta1DeviceAllocationConfiguration buildable = new V1beta1DeviceAllocationConfiguration(); buildable.setOpaque(fluent.buildOpaque()); @@ -30,5 +32,4 @@ public V1beta1DeviceAllocationConfiguration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationFluent.java index 9e6991bffe..9f9b93739d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationFluent.java @@ -1,68 +1,74 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1DeviceAllocationConfigurationFluent> extends BaseFluent{ + + private V1beta1OpaqueDeviceConfigurationBuilder opaque; + private List requests; + private String source; + public V1beta1DeviceAllocationConfigurationFluent() { } public V1beta1DeviceAllocationConfigurationFluent(V1beta1DeviceAllocationConfiguration instance) { this.copyInstance(instance); } - private V1beta1OpaqueDeviceConfigurationBuilder opaque; - private List requests; - private String source; - - protected void copyInstance(V1beta1DeviceAllocationConfiguration instance) { - instance = instance != null ? instance : new V1beta1DeviceAllocationConfiguration(); - if (instance != null) { - this.withOpaque(instance.getOpaque()); - this.withRequests(instance.getRequests()); - this.withSource(instance.getSource()); + + public A addAllToRequests(Collection items) { + if (this.requests == null) { + this.requests = new ArrayList(); } + for (String item : items) { + this.requests.add(item); + } + return (A) this; } - public V1beta1OpaqueDeviceConfiguration buildOpaque() { - return this.opaque != null ? this.opaque.build() : null; - } - - public A withOpaque(V1beta1OpaqueDeviceConfiguration opaque) { - this._visitables.remove("opaque"); - if (opaque != null) { - this.opaque = new V1beta1OpaqueDeviceConfigurationBuilder(opaque); - this._visitables.get("opaque").add(this.opaque); - } else { - this.opaque = null; - this._visitables.get("opaque").remove(this.opaque); + public A addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); } return (A) this; } - public boolean hasOpaque() { - return this.opaque != null; + public A addToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.add(index, item); + return (A) this; } - public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); + public V1beta1OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; } - public OpaqueNested withNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); + protected void copyInstance(V1beta1DeviceAllocationConfiguration instance) { + instance = instance != null ? instance : new V1beta1DeviceAllocationConfiguration(); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + this.withSource(instance.getSource()); + } } public OpaqueNested editOpaque() { @@ -77,68 +83,27 @@ public OpaqueNested editOrNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); } - public A addToRequests(int index,String item) { - if (this.requests == null) { - this.requests = new ArrayList(); - } - this.requests.add(index, item); - return (A) this; - } - - public A setToRequests(int index,String item) { - if (this.requests == null) { - this.requests = new ArrayList(); - } - this.requests.set(index, item); - return (A) this; - } - - public A addToRequests(String... items) { - if (this.requests == null) { - this.requests = new ArrayList(); - } - for (String item : items) { - this.requests.add(item); - } - return (A) this; - } - - public A addAllToRequests(Collection items) { - if (this.requests == null) { - this.requests = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.requests.add(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A removeFromRequests(String... items) { - if (this.requests == null) { - return (A) this; + if (!(super.equals(o))) { + return false; } - for (String item : items) { - this.requests.remove(item); + V1beta1DeviceAllocationConfigurationFluent that = (V1beta1DeviceAllocationConfigurationFluent) o; + if (!(Objects.equals(opaque, that.opaque))) { + return false; } - return (A) this; - } - - public A removeAllFromRequests(Collection items) { - if (this.requests == null) { - return (A) this; + if (!(Objects.equals(requests, that.requests))) { + return false; } - for (String item : items) { - this.requests.remove(item); + if (!(Objects.equals(source, that.source))) { + return false; } - return (A) this; - } - - public List getRequests() { - return this.requests; - } - - public String getRequest(int index) { - return this.requests.get(index); + return true; } public String getFirstRequest() { @@ -158,6 +123,18 @@ public String getMatchingRequest(Predicate predicate) { return null; } + public String getRequest(int index) { + return this.requests.get(index); + } + + public List getRequests() { + return this.requests; + } + + public String getSource() { + return this.source; + } + public boolean hasMatchingRequest(Predicate predicate) { for (String item : requests) { if (predicate.test(item)) { @@ -167,73 +144,48 @@ public boolean hasMatchingRequest(Predicate predicate) { return false; } - public A withRequests(List requests) { - if (requests != null) { - this.requests = new ArrayList(); - for (String item : requests) { - this.addToRequests(item); - } - } else { - this.requests = null; - } - return (A) this; - } - - public A withRequests(String... requests) { - if (this.requests != null) { - this.requests.clear(); - _visitables.remove("requests"); - } - if (requests != null) { - for (String item : requests) { - this.addToRequests(item); - } - } - return (A) this; + public boolean hasOpaque() { + return this.opaque != null; } public boolean hasRequests() { return this.requests != null && !(this.requests.isEmpty()); } - public String getSource() { - return this.source; - } - - public A withSource(String source) { - this.source = source; - return (A) this; - } - public boolean hasSource() { return this.source != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; + public int hashCode() { + return Objects.hash(opaque, requests, source); + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; } - V1beta1DeviceAllocationConfigurationFluent that = (V1beta1DeviceAllocationConfigurationFluent) o; - if (!(Objects.equals(opaque, that.opaque))) { - return false; + for (String item : items) { + this.requests.remove(item); } - if (!(Objects.equals(requests, that.requests))) { - return false; + return (A) this; + } + + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; } - if (!(Objects.equals(source, that.source))) { - return false; + for (String item : items) { + this.requests.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(opaque, requests, source); + public A setToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.set(index, item); + return (A) this; } public String toString() { @@ -256,12 +208,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public A withOpaque(V1beta1OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1beta1OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public A withSource(String source) { + this.source = source; + return (A) this; + } public class OpaqueNested extends V1beta1OpaqueDeviceConfigurationFluent> implements Nested{ + + V1beta1OpaqueDeviceConfigurationBuilder builder; + OpaqueNested(V1beta1OpaqueDeviceConfiguration item) { this.builder = new V1beta1OpaqueDeviceConfigurationBuilder(this, item); } - V1beta1OpaqueDeviceConfigurationBuilder builder; - + public N and() { return (N) V1beta1DeviceAllocationConfigurationFluent.this.withOpaque(builder.build()); } @@ -270,7 +274,5 @@ public N endOpaque() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultBuilder.java index b07790fde5..f41b252d2c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceAllocationResultBuilder extends V1beta1DeviceAllocationResultFluent implements VisitableBuilder{ + + V1beta1DeviceAllocationResultFluent fluent; + public V1beta1DeviceAllocationResultBuilder() { this(new V1beta1DeviceAllocationResult()); } @@ -11,17 +14,16 @@ public V1beta1DeviceAllocationResultBuilder(V1beta1DeviceAllocationResultFluent< this(fluent, new V1beta1DeviceAllocationResult()); } - public V1beta1DeviceAllocationResultBuilder(V1beta1DeviceAllocationResultFluent fluent,V1beta1DeviceAllocationResult instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceAllocationResultBuilder(V1beta1DeviceAllocationResult instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceAllocationResultFluent fluent; + public V1beta1DeviceAllocationResultBuilder(V1beta1DeviceAllocationResultFluent fluent,V1beta1DeviceAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1DeviceAllocationResult build() { V1beta1DeviceAllocationResult buildable = new V1beta1DeviceAllocationResult(); buildable.setConfig(fluent.buildConfig()); @@ -29,5 +31,4 @@ public V1beta1DeviceAllocationResult build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultFluent.java index dafcd65e95..8bb6c00e34 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultFluent.java @@ -1,71 +1,75 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1DeviceAllocationResultFluent> extends BaseFluent{ + + private ArrayList config; + private ArrayList results; + public V1beta1DeviceAllocationResultFluent() { } public V1beta1DeviceAllocationResultFluent(V1beta1DeviceAllocationResult instance) { this.copyInstance(instance); } - private ArrayList config; - private ArrayList results; - - protected void copyInstance(V1beta1DeviceAllocationResult instance) { - instance = instance != null ? instance : new V1beta1DeviceAllocationResult(); - if (instance != null) { - this.withConfig(instance.getConfig()); - this.withResults(instance.getResults()); - } - } - - public A addToConfig(int index,V1beta1DeviceAllocationConfiguration item) { + + public A addAllToConfig(Collection items) { if (this.config == null) { this.config = new ArrayList(); } - V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { + for (V1beta1DeviceAllocationConfiguration item : items) { + V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); _visitables.get("config").add(builder); - config.add(index, builder); + this.config.add(builder); } return (A) this; } - public A setToConfig(int index,V1beta1DeviceAllocationConfiguration item) { - if (this.config == null) { - this.config = new ArrayList(); + public A addAllToResults(Collection items) { + if (this.results == null) { + this.results = new ArrayList(); } - V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { - _visitables.get("config").add(builder); - config.set(index, builder); + for (V1beta1DeviceRequestAllocationResult item : items) { + V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").add(builder); + this.results.add(builder); } return (A) this; } + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta1DeviceAllocationConfiguration item) { + return new ConfigNested(-1, item); + } + + public ResultsNested addNewResult() { + return new ResultsNested(-1, null); + } + + public ResultsNested addNewResultLike(V1beta1DeviceRequestAllocationResult item) { + return new ResultsNested(-1, item); + } + public A addToConfig(V1beta1DeviceAllocationConfiguration... items) { if (this.config == null) { this.config = new ArrayList(); @@ -78,54 +82,44 @@ public A addToConfig(V1beta1DeviceAllocationConfiguration... items) { return (A) this; } - public A addAllToConfig(Collection items) { + public A addToConfig(int index,V1beta1DeviceAllocationConfiguration item) { if (this.config == null) { this.config = new ArrayList(); } - for (V1beta1DeviceAllocationConfiguration item : items) { - V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); + V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); - this.config.add(builder); - } - return (A) this; - } - - public A removeFromConfig(V1beta1DeviceAllocationConfiguration... items) { - if (this.config == null) { - return (A) this; - } - for (V1beta1DeviceAllocationConfiguration item : items) { - V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); - _visitables.get("config").remove(builder); - this.config.remove(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); } return (A) this; } - public A removeAllFromConfig(Collection items) { - if (this.config == null) { - return (A) this; + public A addToResults(V1beta1DeviceRequestAllocationResult... items) { + if (this.results == null) { + this.results = new ArrayList(); } - for (V1beta1DeviceAllocationConfiguration item : items) { - V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); - _visitables.get("config").remove(builder); - this.config.remove(builder); + for (V1beta1DeviceRequestAllocationResult item : items) { + V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").add(builder); + this.results.add(builder); } return (A) this; } - public A removeMatchingFromConfig(Predicate predicate) { - if (config == null) { - return (A) this; + public A addToResults(int index,V1beta1DeviceRequestAllocationResult item) { + if (this.results == null) { + this.results = new ArrayList(); } - Iterator each = config.iterator(); - List visitables = _visitables.get("config"); - while (each.hasNext()) { - V1beta1DeviceAllocationConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.add(index, builder); } return (A) this; } @@ -142,10 +136,18 @@ public V1beta1DeviceAllocationConfiguration buildFirstConfig() { return this.config.get(0).build(); } + public V1beta1DeviceRequestAllocationResult buildFirstResult() { + return this.results.get(0).build(); + } + public V1beta1DeviceAllocationConfiguration buildLastConfig() { return this.config.get(config.size() - 1).build(); } + public V1beta1DeviceRequestAllocationResult buildLastResult() { + return this.results.get(results.size() - 1).build(); + } + public V1beta1DeviceAllocationConfiguration buildMatchingConfig(Predicate predicate) { for (V1beta1DeviceAllocationConfigurationBuilder item : config) { if (predicate.test(item)) { @@ -155,61 +157,33 @@ public V1beta1DeviceAllocationConfiguration buildMatchingConfig(Predicate predicate) { - for (V1beta1DeviceAllocationConfigurationBuilder item : config) { + public V1beta1DeviceRequestAllocationResult buildMatchingResult(Predicate predicate) { + for (V1beta1DeviceRequestAllocationResultBuilder item : results) { if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConfig(List config) { - if (this.config != null) { - this._visitables.get("config").clear(); - } - if (config != null) { - this.config = new ArrayList(); - for (V1beta1DeviceAllocationConfiguration item : config) { - this.addToConfig(item); + return item.build(); } - } else { - this.config = null; - } - return (A) this; - } - - public A withConfig(V1beta1DeviceAllocationConfiguration... config) { - if (this.config != null) { - this.config.clear(); - _visitables.remove("config"); - } - if (config != null) { - for (V1beta1DeviceAllocationConfiguration item : config) { - this.addToConfig(item); } - } - return (A) this; - } - - public boolean hasConfig() { - return this.config != null && !(this.config.isEmpty()); + return null; } - public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); + public V1beta1DeviceRequestAllocationResult buildResult(int index) { + return this.results.get(index).build(); } - public ConfigNested addNewConfigLike(V1beta1DeviceAllocationConfiguration item) { - return new ConfigNested(-1, item); + public List buildResults() { + return this.results != null ? build(results) : null; } - public ConfigNested setNewConfigLike(int index,V1beta1DeviceAllocationConfiguration item) { - return new ConfigNested(index, item); + protected void copyInstance(V1beta1DeviceAllocationResult instance) { + instance = instance != null ? instance : new V1beta1DeviceAllocationResult(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withResults(instance.getResults()); + } } public ConfigNested editConfig(int index) { - if (index <= config.size()) { + if (config.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); } return this.setNewConfigLike(index, this.buildConfig(index)); @@ -222,6 +196,13 @@ public ConfigNested editFirstConfig() { return this.setNewConfigLike(0, this.buildConfig(0)); } + public ResultsNested editFirstResult() { + if (results.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "results")); + } + return this.setNewResultLike(0, this.buildResult(0)); + } + public ConfigNested editLastConfig() { int index = config.size() - 1; if (index < 0) { @@ -230,6 +211,14 @@ public ConfigNested editLastConfig() { return this.setNewConfigLike(index, this.buildConfig(index)); } + public ResultsNested editLastResult() { + int index = results.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "results")); + } + return this.setNewResultLike(index, this.buildResult(index)); + } + public ConfigNested editMatchingConfig(Predicate predicate) { int index = -1; for (int i = 0;i < config.size();i++) { @@ -244,61 +233,90 @@ public ConfigNested editMatchingConfig(Predicate editMatchingResult(Predicate predicate) { + int index = -1; + for (int i = 0;i < results.size();i++) { + if (predicate.test(results.get(i))) { + index = i; + break; + } } - V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { - _visitables.get("results").add(builder); - results.add(builder); - } else { - _visitables.get("results").add(builder); - results.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "results")); } - return (A) this; + return this.setNewResultLike(index, this.buildResult(index)); } - public A setToResults(int index,V1beta1DeviceRequestAllocationResult item) { - if (this.results == null) { - this.results = new ArrayList(); - } - V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { - _visitables.get("results").add(builder); - results.add(builder); - } else { - _visitables.get("results").add(builder); - results.set(index, builder); + public ResultsNested editResult(int index) { + if (results.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "results")); } - return (A) this; + return this.setNewResultLike(index, this.buildResult(index)); } - public A addToResults(V1beta1DeviceRequestAllocationResult... items) { - if (this.results == null) { - this.results = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - for (V1beta1DeviceRequestAllocationResult item : items) { - V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); - _visitables.get("results").add(builder); - this.results.add(builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceAllocationResultFluent that = (V1beta1DeviceAllocationResultFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(results, that.results))) { + return false; + } + return true; } - public A addAllToResults(Collection items) { - if (this.results == null) { - this.results = new ArrayList(); + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta1DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResult(Predicate predicate) { + for (V1beta1DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResults() { + return this.results != null && !(this.results.isEmpty()); + } + + public int hashCode() { + return Objects.hash(config, results); + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) { + return (A) this; } - for (V1beta1DeviceRequestAllocationResult item : items) { - V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); - _visitables.get("results").add(builder); - this.results.add(builder); + for (V1beta1DeviceAllocationConfiguration item : items) { + V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); } return (A) this; } - public A removeFromResults(V1beta1DeviceRequestAllocationResult... items) { + public A removeAllFromResults(Collection items) { if (this.results == null) { return (A) this; } @@ -310,7 +328,19 @@ public A removeFromResults(V1beta1DeviceRequestAllocationResult... items) { return (A) this; } - public A removeAllFromResults(Collection items) { + public A removeFromConfig(V1beta1DeviceAllocationConfiguration... items) { + if (this.config == null) { + return (A) this; + } + for (V1beta1DeviceAllocationConfiguration item : items) { + V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; + } + + public A removeFromResults(V1beta1DeviceRequestAllocationResult... items) { if (this.results == null) { return (A) this; } @@ -322,6 +352,22 @@ public A removeAllFromResults(Collection i return (A) this; } + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1beta1DeviceAllocationConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + public A removeMatchingFromResults(Predicate predicate) { if (results == null) { return (A) this; @@ -338,38 +384,86 @@ public A removeMatchingFromResults(Predicate buildResults() { - return this.results != null ? build(results) : null; + public ConfigNested setNewConfigLike(int index,V1beta1DeviceAllocationConfiguration item) { + return new ConfigNested(index, item); } - public V1beta1DeviceRequestAllocationResult buildResult(int index) { - return this.results.get(index).build(); + public ResultsNested setNewResultLike(int index,V1beta1DeviceRequestAllocationResult item) { + return new ResultsNested(index, item); } - public V1beta1DeviceRequestAllocationResult buildFirstResult() { - return this.results.get(0).build(); + public A setToConfig(int index,V1beta1DeviceAllocationConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); + } + V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A) this; } - public V1beta1DeviceRequestAllocationResult buildLastResult() { - return this.results.get(results.size() - 1).build(); + public A setToResults(int index,V1beta1DeviceRequestAllocationResult item) { + if (this.results == null) { + this.results = new ArrayList(); + } + V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.set(index, builder); + } + return (A) this; } - public V1beta1DeviceRequestAllocationResult buildMatchingResult(Predicate predicate) { - for (V1beta1DeviceRequestAllocationResultBuilder item : results) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(results == null) && !(results.isEmpty())) { + sb.append("results:"); + sb.append(results); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingResult(Predicate predicate) { - for (V1beta1DeviceRequestAllocationResultBuilder item : results) { - if (predicate.test(item)) { - return true; + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1beta1DeviceAllocationConfiguration item : config) { + this.addToConfig(item); } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(V1beta1DeviceAllocationConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1beta1DeviceAllocationConfiguration item : config) { + this.addToConfig(item); } - return false; + } + return (A) this; } public A withResults(List results) { @@ -399,106 +493,16 @@ public A withResults(V1beta1DeviceRequestAllocationResult... results) { } return (A) this; } + public class ConfigNested extends V1beta1DeviceAllocationConfigurationFluent> implements Nested{ - public boolean hasResults() { - return this.results != null && !(this.results.isEmpty()); - } - - public ResultsNested addNewResult() { - return new ResultsNested(-1, null); - } - - public ResultsNested addNewResultLike(V1beta1DeviceRequestAllocationResult item) { - return new ResultsNested(-1, item); - } - - public ResultsNested setNewResultLike(int index,V1beta1DeviceRequestAllocationResult item) { - return new ResultsNested(index, item); - } - - public ResultsNested editResult(int index) { - if (index <= results.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "results")); - } - return this.setNewResultLike(index, this.buildResult(index)); - } - - public ResultsNested editFirstResult() { - if (results.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "results")); - } - return this.setNewResultLike(0, this.buildResult(0)); - } - - public ResultsNested editLastResult() { - int index = results.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "results")); - } - return this.setNewResultLike(index, this.buildResult(index)); - } - - public ResultsNested editMatchingResult(Predicate predicate) { - int index = -1; - for (int i = 0;i < results.size();i++) { - if (predicate.test(results.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "results")); - } - return this.setNewResultLike(index, this.buildResult(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1DeviceAllocationResultFluent that = (V1beta1DeviceAllocationResultFluent) o; - if (!(Objects.equals(config, that.config))) { - return false; - } - if (!(Objects.equals(results, that.results))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(config, results); - } + V1beta1DeviceAllocationConfigurationBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(config == null) && !(config.isEmpty())) { - sb.append("config:"); - sb.append(config); - sb.append(","); - } - if (!(results == null) && !(results.isEmpty())) { - sb.append("results:"); - sb.append(results); - } - sb.append("}"); - return sb.toString(); - } - public class ConfigNested extends V1beta1DeviceAllocationConfigurationFluent> implements Nested{ ConfigNested(int index,V1beta1DeviceAllocationConfiguration item) { this.index = index; this.builder = new V1beta1DeviceAllocationConfigurationBuilder(this, item); } - V1beta1DeviceAllocationConfigurationBuilder builder; - int index; - + public N and() { return (N) V1beta1DeviceAllocationResultFluent.this.setToConfig(index, builder.build()); } @@ -507,16 +511,17 @@ public N endConfig() { return and(); } - } public class ResultsNested extends V1beta1DeviceRequestAllocationResultFluent> implements Nested{ + + V1beta1DeviceRequestAllocationResultBuilder builder; + int index; + ResultsNested(int index,V1beta1DeviceRequestAllocationResult item) { this.index = index; this.builder = new V1beta1DeviceRequestAllocationResultBuilder(this, item); } - V1beta1DeviceRequestAllocationResultBuilder builder; - int index; - + public N and() { return (N) V1beta1DeviceAllocationResultFluent.this.setToResults(index, builder.build()); } @@ -525,7 +530,5 @@ public N endResult() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeBuilder.java index b274ac7297..00373538c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceAttributeBuilder extends V1beta1DeviceAttributeFluent implements VisitableBuilder{ + + V1beta1DeviceAttributeFluent fluent; + public V1beta1DeviceAttributeBuilder() { this(new V1beta1DeviceAttribute()); } @@ -11,17 +14,16 @@ public V1beta1DeviceAttributeBuilder(V1beta1DeviceAttributeFluent fluent) { this(fluent, new V1beta1DeviceAttribute()); } - public V1beta1DeviceAttributeBuilder(V1beta1DeviceAttributeFluent fluent,V1beta1DeviceAttribute instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceAttributeBuilder(V1beta1DeviceAttribute instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceAttributeFluent fluent; + public V1beta1DeviceAttributeBuilder(V1beta1DeviceAttributeFluent fluent,V1beta1DeviceAttribute instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1DeviceAttribute build() { V1beta1DeviceAttribute buildable = new V1beta1DeviceAttribute(); buildable.setBool(fluent.getBool()); @@ -31,5 +33,4 @@ public V1beta1DeviceAttribute build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeFluent.java index 0d4aac9474..76bb1c8cb3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1DeviceAttributeFluent> extends BaseFluent{ + + private Long _int; + private Boolean bool; + private String string; + private String version; + public V1beta1DeviceAttributeFluent() { } public V1beta1DeviceAttributeFluent(V1beta1DeviceAttribute instance) { this.copyInstance(instance); } - private Boolean bool; - private Long _int; - private String string; - private String version; - + protected void copyInstance(V1beta1DeviceAttribute instance) { instance = instance != null ? instance : new V1beta1DeviceAttribute(); if (instance != null) { @@ -35,58 +37,6 @@ protected void copyInstance(V1beta1DeviceAttribute instance) { } } - public Boolean getBool() { - return this.bool; - } - - public A withBool(Boolean bool) { - this.bool = bool; - return (A) this; - } - - public boolean hasBool() { - return this.bool != null; - } - - public Long getInt() { - return this._int; - } - - public A withInt(Long _int) { - this._int = _int; - return (A) this; - } - - public boolean hasInt() { - return this._int != null; - } - - public String getString() { - return this.string; - } - - public A withString(String string) { - this.string = string; - return (A) this; - } - - public boolean hasString() { - return this.string != null; - } - - public String getVersion() { - return this.version; - } - - public A withVersion(String version) { - this.version = version; - return (A) this; - } - - public boolean hasVersion() { - return this.version != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -113,6 +63,38 @@ public boolean equals(Object o) { return true; } + public Boolean getBool() { + return this.bool; + } + + public Long getInt() { + return this._int; + } + + public String getString() { + return this.string; + } + + public String getVersion() { + return this.version; + } + + public boolean hasBool() { + return this.bool != null; + } + + public boolean hasInt() { + return this._int != null; + } + + public boolean hasString() { + return this.string != null; + } + + public boolean hasVersion() { + return this.version != null; + } + public int hashCode() { return Objects.hash(bool, _int, string, version); } @@ -147,5 +129,24 @@ public A withBool() { return withBool(true); } - + public A withBool(Boolean bool) { + this.bool = bool; + return (A) this; + } + + public A withInt(Long _int) { + this._int = _int; + return (A) this; + } + + public A withString(String string) { + this.string = string; + return (A) this; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceBuilder.java index b8c943aa76..d3a785b60c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceBuilder extends V1beta1DeviceFluent implements VisitableBuilder{ + + V1beta1DeviceFluent fluent; + public V1beta1DeviceBuilder() { this(new V1beta1Device()); } @@ -11,17 +14,16 @@ public V1beta1DeviceBuilder(V1beta1DeviceFluent fluent) { this(fluent, new V1beta1Device()); } - public V1beta1DeviceBuilder(V1beta1DeviceFluent fluent,V1beta1Device instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceBuilder(V1beta1Device instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceFluent fluent; + public V1beta1DeviceBuilder(V1beta1DeviceFluent fluent,V1beta1Device instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1Device build() { V1beta1Device buildable = new V1beta1Device(); buildable.setBasic(fluent.buildBasic()); @@ -29,5 +31,4 @@ public V1beta1Device build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityBuilder.java index d7eb2f001a..49a670cfc8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceCapacityBuilder extends V1beta1DeviceCapacityFluent implements VisitableBuilder{ + + V1beta1DeviceCapacityFluent fluent; + public V1beta1DeviceCapacityBuilder() { this(new V1beta1DeviceCapacity()); } @@ -11,17 +14,16 @@ public V1beta1DeviceCapacityBuilder(V1beta1DeviceCapacityFluent fluent) { this(fluent, new V1beta1DeviceCapacity()); } - public V1beta1DeviceCapacityBuilder(V1beta1DeviceCapacityFluent fluent,V1beta1DeviceCapacity instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceCapacityBuilder(V1beta1DeviceCapacity instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceCapacityFluent fluent; + public V1beta1DeviceCapacityBuilder(V1beta1DeviceCapacityFluent fluent,V1beta1DeviceCapacity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1DeviceCapacity build() { V1beta1DeviceCapacity buildable = new V1beta1DeviceCapacity(); buildable.setRequestPolicy(fluent.buildRequestPolicy()); @@ -29,5 +31,4 @@ public V1beta1DeviceCapacity build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityFluent.java index 427abe4b0a..014879205b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityFluent.java @@ -1,28 +1,34 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import io.kubernetes.client.custom.Quantity; -import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1DeviceCapacityFluent> extends BaseFluent{ + + private V1beta1CapacityRequestPolicyBuilder requestPolicy; + private Quantity value; + public V1beta1DeviceCapacityFluent() { } public V1beta1DeviceCapacityFluent(V1beta1DeviceCapacity instance) { this.copyInstance(instance); } - private V1beta1CapacityRequestPolicyBuilder requestPolicy; - private Quantity value; + + public V1beta1CapacityRequestPolicy buildRequestPolicy() { + return this.requestPolicy != null ? this.requestPolicy.build() : null; + } protected void copyInstance(V1beta1DeviceCapacity instance) { instance = instance != null ? instance : new V1beta1DeviceCapacity(); @@ -32,38 +38,6 @@ protected void copyInstance(V1beta1DeviceCapacity instance) { } } - public V1beta1CapacityRequestPolicy buildRequestPolicy() { - return this.requestPolicy != null ? this.requestPolicy.build() : null; - } - - public A withRequestPolicy(V1beta1CapacityRequestPolicy requestPolicy) { - this._visitables.remove("requestPolicy"); - if (requestPolicy != null) { - this.requestPolicy = new V1beta1CapacityRequestPolicyBuilder(requestPolicy); - this._visitables.get("requestPolicy").add(this.requestPolicy); - } else { - this.requestPolicy = null; - this._visitables.get("requestPolicy").remove(this.requestPolicy); - } - return (A) this; - } - - public boolean hasRequestPolicy() { - return this.requestPolicy != null; - } - - public RequestPolicyNested withNewRequestPolicy() { - return new RequestPolicyNested(null); - } - - public RequestPolicyNested withNewRequestPolicyLike(V1beta1CapacityRequestPolicy item) { - return new RequestPolicyNested(item); - } - - public RequestPolicyNested editRequestPolicy() { - return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(null)); - } - public RequestPolicyNested editOrNewRequestPolicy() { return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(new V1beta1CapacityRequestPolicyBuilder().build())); } @@ -72,21 +46,8 @@ public RequestPolicyNested editOrNewRequestPolicyLike(V1beta1CapacityRequestP return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(item)); } - public Quantity getValue() { - return this.value; - } - - public A withValue(Quantity value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - - public A withNewValue(String value) { - return (A) this.withValue(new Quantity(value)); + public RequestPolicyNested editRequestPolicy() { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(null)); } public boolean equals(Object o) { @@ -109,6 +70,18 @@ public boolean equals(Object o) { return true; } + public Quantity getValue() { + return this.value; + } + + public boolean hasRequestPolicy() { + return this.requestPolicy != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(requestPolicy, value); } @@ -128,12 +101,43 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public RequestPolicyNested withNewRequestPolicy() { + return new RequestPolicyNested(null); + } + + public RequestPolicyNested withNewRequestPolicyLike(V1beta1CapacityRequestPolicy item) { + return new RequestPolicyNested(item); + } + + public A withNewValue(String value) { + return (A) this.withValue(new Quantity(value)); + } + + public A withRequestPolicy(V1beta1CapacityRequestPolicy requestPolicy) { + this._visitables.remove("requestPolicy"); + if (requestPolicy != null) { + this.requestPolicy = new V1beta1CapacityRequestPolicyBuilder(requestPolicy); + this._visitables.get("requestPolicy").add(this.requestPolicy); + } else { + this.requestPolicy = null; + this._visitables.get("requestPolicy").remove(this.requestPolicy); + } + return (A) this; + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } public class RequestPolicyNested extends V1beta1CapacityRequestPolicyFluent> implements Nested{ + + V1beta1CapacityRequestPolicyBuilder builder; + RequestPolicyNested(V1beta1CapacityRequestPolicy item) { this.builder = new V1beta1CapacityRequestPolicyBuilder(this, item); } - V1beta1CapacityRequestPolicyBuilder builder; - + public N and() { return (N) V1beta1DeviceCapacityFluent.this.withRequestPolicy(builder.build()); } @@ -142,7 +146,5 @@ public N endRequestPolicy() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimBuilder.java index 05929163ba..818a33c4d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceClaimBuilder extends V1beta1DeviceClaimFluent implements VisitableBuilder{ + + V1beta1DeviceClaimFluent fluent; + public V1beta1DeviceClaimBuilder() { this(new V1beta1DeviceClaim()); } @@ -11,17 +14,16 @@ public V1beta1DeviceClaimBuilder(V1beta1DeviceClaimFluent fluent) { this(fluent, new V1beta1DeviceClaim()); } - public V1beta1DeviceClaimBuilder(V1beta1DeviceClaimFluent fluent,V1beta1DeviceClaim instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceClaimBuilder(V1beta1DeviceClaim instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceClaimFluent fluent; + public V1beta1DeviceClaimBuilder(V1beta1DeviceClaimFluent fluent,V1beta1DeviceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1DeviceClaim build() { V1beta1DeviceClaim buildable = new V1beta1DeviceClaim(); buildable.setConfig(fluent.buildConfig()); @@ -30,5 +32,4 @@ public V1beta1DeviceClaim build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationBuilder.java index e2a3662d2e..3c6babedbe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceClaimConfigurationBuilder extends V1beta1DeviceClaimConfigurationFluent implements VisitableBuilder{ + + V1beta1DeviceClaimConfigurationFluent fluent; + public V1beta1DeviceClaimConfigurationBuilder() { this(new V1beta1DeviceClaimConfiguration()); } @@ -11,17 +14,16 @@ public V1beta1DeviceClaimConfigurationBuilder(V1beta1DeviceClaimConfigurationFlu this(fluent, new V1beta1DeviceClaimConfiguration()); } - public V1beta1DeviceClaimConfigurationBuilder(V1beta1DeviceClaimConfigurationFluent fluent,V1beta1DeviceClaimConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceClaimConfigurationBuilder(V1beta1DeviceClaimConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceClaimConfigurationFluent fluent; + public V1beta1DeviceClaimConfigurationBuilder(V1beta1DeviceClaimConfigurationFluent fluent,V1beta1DeviceClaimConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1DeviceClaimConfiguration build() { V1beta1DeviceClaimConfiguration buildable = new V1beta1DeviceClaimConfiguration(); buildable.setOpaque(fluent.buildOpaque()); @@ -29,5 +31,4 @@ public V1beta1DeviceClaimConfiguration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationFluent.java index a1e41f4fcc..c5d8eda9a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationFluent.java @@ -1,93 +1,41 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1DeviceClaimConfigurationFluent> extends BaseFluent{ + + private V1beta1OpaqueDeviceConfigurationBuilder opaque; + private List requests; + public V1beta1DeviceClaimConfigurationFluent() { } public V1beta1DeviceClaimConfigurationFluent(V1beta1DeviceClaimConfiguration instance) { this.copyInstance(instance); } - private V1beta1OpaqueDeviceConfigurationBuilder opaque; - private List requests; - - protected void copyInstance(V1beta1DeviceClaimConfiguration instance) { - instance = instance != null ? instance : new V1beta1DeviceClaimConfiguration(); - if (instance != null) { - this.withOpaque(instance.getOpaque()); - this.withRequests(instance.getRequests()); - } - } - - public V1beta1OpaqueDeviceConfiguration buildOpaque() { - return this.opaque != null ? this.opaque.build() : null; - } - - public A withOpaque(V1beta1OpaqueDeviceConfiguration opaque) { - this._visitables.remove("opaque"); - if (opaque != null) { - this.opaque = new V1beta1OpaqueDeviceConfigurationBuilder(opaque); - this._visitables.get("opaque").add(this.opaque); - } else { - this.opaque = null; - this._visitables.get("opaque").remove(this.opaque); - } - return (A) this; - } - - public boolean hasOpaque() { - return this.opaque != null; - } - - public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); - } - - public OpaqueNested withNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); - } - - public OpaqueNested editOpaque() { - return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); - } - - public OpaqueNested editOrNewOpaque() { - return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1beta1OpaqueDeviceConfigurationBuilder().build())); - } - - public OpaqueNested editOrNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { - return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); - } - - public A addToRequests(int index,String item) { + + public A addAllToRequests(Collection items) { if (this.requests == null) { this.requests = new ArrayList(); } - this.requests.add(index, item); - return (A) this; - } - - public A setToRequests(int index,String item) { - if (this.requests == null) { - this.requests = new ArrayList(); + for (String item : items) { + this.requests.add(item); } - this.requests.set(index, item); return (A) this; } @@ -101,42 +49,56 @@ public A addToRequests(String... items) { return (A) this; } - public A addAllToRequests(Collection items) { + public A addToRequests(int index,String item) { if (this.requests == null) { this.requests = new ArrayList(); } - for (String item : items) { - this.requests.add(item); - } + this.requests.add(index, item); return (A) this; } - public A removeFromRequests(String... items) { - if (this.requests == null) { - return (A) this; - } - for (String item : items) { - this.requests.remove(item); - } - return (A) this; + public V1beta1OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; } - public A removeAllFromRequests(Collection items) { - if (this.requests == null) { - return (A) this; - } - for (String item : items) { - this.requests.remove(item); + protected void copyInstance(V1beta1DeviceClaimConfiguration instance) { + instance = instance != null ? instance : new V1beta1DeviceClaimConfiguration(); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); } - return (A) this; } - public List getRequests() { - return this.requests; + public OpaqueNested editOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); } - public String getRequest(int index) { - return this.requests.get(index); + public OpaqueNested editOrNewOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1beta1OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceClaimConfigurationFluent that = (V1beta1DeviceClaimConfigurationFluent) o; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; } public String getFirstRequest() { @@ -156,6 +118,14 @@ public String getMatchingRequest(Predicate predicate) { return null; } + public String getRequest(int index) { + return this.requests.get(index); + } + + public List getRequests() { + return this.requests; + } + public boolean hasMatchingRequest(Predicate predicate) { for (String item : requests) { if (predicate.test(item)) { @@ -165,57 +135,44 @@ public boolean hasMatchingRequest(Predicate predicate) { return false; } - public A withRequests(List requests) { - if (requests != null) { - this.requests = new ArrayList(); - for (String item : requests) { - this.addToRequests(item); - } - } else { - this.requests = null; - } - return (A) this; - } - - public A withRequests(String... requests) { - if (this.requests != null) { - this.requests.clear(); - _visitables.remove("requests"); - } - if (requests != null) { - for (String item : requests) { - this.addToRequests(item); - } - } - return (A) this; + public boolean hasOpaque() { + return this.opaque != null; } public boolean hasRequests() { return this.requests != null && !(this.requests.isEmpty()); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; + public int hashCode() { + return Objects.hash(opaque, requests); + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; } - if (!(super.equals(o))) { - return false; + for (String item : items) { + this.requests.remove(item); } - V1beta1DeviceClaimConfigurationFluent that = (V1beta1DeviceClaimConfigurationFluent) o; - if (!(Objects.equals(opaque, that.opaque))) { - return false; + return (A) this; + } + + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; } - if (!(Objects.equals(requests, that.requests))) { - return false; + for (String item : items) { + this.requests.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(opaque, requests); + public A setToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.set(index, item); + return (A) this; } public String toString() { @@ -233,12 +190,59 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public A withOpaque(V1beta1OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1beta1OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } public class OpaqueNested extends V1beta1OpaqueDeviceConfigurationFluent> implements Nested{ + + V1beta1OpaqueDeviceConfigurationBuilder builder; + OpaqueNested(V1beta1OpaqueDeviceConfiguration item) { this.builder = new V1beta1OpaqueDeviceConfigurationBuilder(this, item); } - V1beta1OpaqueDeviceConfigurationBuilder builder; - + public N and() { return (N) V1beta1DeviceClaimConfigurationFluent.this.withOpaque(builder.build()); } @@ -247,7 +251,5 @@ public N endOpaque() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimFluent.java index 358731d8e7..f8829eb700 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimFluent.java @@ -1,73 +1,96 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1DeviceClaimFluent> extends BaseFluent{ + + private ArrayList config; + private ArrayList constraints; + private ArrayList requests; + public V1beta1DeviceClaimFluent() { } public V1beta1DeviceClaimFluent(V1beta1DeviceClaim instance) { this.copyInstance(instance); } - private ArrayList config; - private ArrayList constraints; - private ArrayList requests; - - protected void copyInstance(V1beta1DeviceClaim instance) { - instance = instance != null ? instance : new V1beta1DeviceClaim(); - if (instance != null) { - this.withConfig(instance.getConfig()); - this.withConstraints(instance.getConstraints()); - this.withRequests(instance.getRequests()); - } - } - - public A addToConfig(int index,V1beta1DeviceClaimConfiguration item) { + + public A addAllToConfig(Collection items) { if (this.config == null) { this.config = new ArrayList(); } - V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { + for (V1beta1DeviceClaimConfiguration item : items) { + V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); _visitables.get("config").add(builder); - config.add(index, builder); + this.config.add(builder); } return (A) this; } - public A setToConfig(int index,V1beta1DeviceClaimConfiguration item) { - if (this.config == null) { - this.config = new ArrayList(); + public A addAllToConstraints(Collection items) { + if (this.constraints == null) { + this.constraints = new ArrayList(); } - V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { - _visitables.get("config").add(builder); - config.set(index, builder); + for (V1beta1DeviceConstraint item : items) { + V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); + _visitables.get("constraints").add(builder); + this.constraints.add(builder); + } + return (A) this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (V1beta1DeviceRequest item : items) { + V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); + _visitables.get("requests").add(builder); + this.requests.add(builder); } return (A) this; } + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta1DeviceClaimConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConstraintsNested addNewConstraint() { + return new ConstraintsNested(-1, null); + } + + public ConstraintsNested addNewConstraintLike(V1beta1DeviceConstraint item) { + return new ConstraintsNested(-1, item); + } + + public RequestsNested addNewRequest() { + return new RequestsNested(-1, null); + } + + public RequestsNested addNewRequestLike(V1beta1DeviceRequest item) { + return new RequestsNested(-1, item); + } + public A addToConfig(V1beta1DeviceClaimConfiguration... items) { if (this.config == null) { this.config = new ArrayList(); @@ -80,54 +103,71 @@ public A addToConfig(V1beta1DeviceClaimConfiguration... items) { return (A) this; } - public A addAllToConfig(Collection items) { + public A addToConfig(int index,V1beta1DeviceClaimConfiguration item) { if (this.config == null) { this.config = new ArrayList(); } - for (V1beta1DeviceClaimConfiguration item : items) { - V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); + V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); - this.config.add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); } return (A) this; } - public A removeFromConfig(V1beta1DeviceClaimConfiguration... items) { - if (this.config == null) { - return (A) this; + public A addToConstraints(V1beta1DeviceConstraint... items) { + if (this.constraints == null) { + this.constraints = new ArrayList(); } - for (V1beta1DeviceClaimConfiguration item : items) { - V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); - _visitables.get("config").remove(builder); - this.config.remove(builder); + for (V1beta1DeviceConstraint item : items) { + V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); + _visitables.get("constraints").add(builder); + this.constraints.add(builder); } return (A) this; } - public A removeAllFromConfig(Collection items) { - if (this.config == null) { - return (A) this; + public A addToConstraints(int index,V1beta1DeviceConstraint item) { + if (this.constraints == null) { + this.constraints = new ArrayList(); } - for (V1beta1DeviceClaimConfiguration item : items) { - V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); - _visitables.get("config").remove(builder); - this.config.remove(builder); + V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); + } else { + _visitables.get("constraints").add(builder); + constraints.add(index, builder); } return (A) this; } - public A removeMatchingFromConfig(Predicate predicate) { - if (config == null) { - return (A) this; + public A addToRequests(V1beta1DeviceRequest... items) { + if (this.requests == null) { + this.requests = new ArrayList(); } - Iterator each = config.iterator(); - List visitables = _visitables.get("config"); - while (each.hasNext()) { - V1beta1DeviceClaimConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (V1beta1DeviceRequest item : items) { + V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); + _visitables.get("requests").add(builder); + this.requests.add(builder); + } + return (A) this; + } + + public A addToRequests(int index,V1beta1DeviceRequest item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); + if (index < 0 || index >= requests.size()) { + _visitables.get("requests").add(builder); + requests.add(builder); + } else { + _visitables.get("requests").add(builder); + requests.add(index, builder); } return (A) this; } @@ -140,14 +180,38 @@ public V1beta1DeviceClaimConfiguration buildConfig(int index) { return this.config.get(index).build(); } + public V1beta1DeviceConstraint buildConstraint(int index) { + return this.constraints.get(index).build(); + } + + public List buildConstraints() { + return this.constraints != null ? build(constraints) : null; + } + public V1beta1DeviceClaimConfiguration buildFirstConfig() { return this.config.get(0).build(); } + public V1beta1DeviceConstraint buildFirstConstraint() { + return this.constraints.get(0).build(); + } + + public V1beta1DeviceRequest buildFirstRequest() { + return this.requests.get(0).build(); + } + public V1beta1DeviceClaimConfiguration buildLastConfig() { return this.config.get(config.size() - 1).build(); } + public V1beta1DeviceConstraint buildLastConstraint() { + return this.constraints.get(constraints.size() - 1).build(); + } + + public V1beta1DeviceRequest buildLastRequest() { + return this.requests.get(requests.size() - 1).build(); + } + public V1beta1DeviceClaimConfiguration buildMatchingConfig(Predicate predicate) { for (V1beta1DeviceClaimConfigurationBuilder item : config) { if (predicate.test(item)) { @@ -157,73 +221,76 @@ public V1beta1DeviceClaimConfiguration buildMatchingConfig(Predicate predicate) { - for (V1beta1DeviceClaimConfigurationBuilder item : config) { + public V1beta1DeviceConstraint buildMatchingConstraint(Predicate predicate) { + for (V1beta1DeviceConstraintBuilder item : constraints) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withConfig(List config) { - if (this.config != null) { - this._visitables.get("config").clear(); - } - if (config != null) { - this.config = new ArrayList(); - for (V1beta1DeviceClaimConfiguration item : config) { - this.addToConfig(item); + public V1beta1DeviceRequest buildMatchingRequest(Predicate predicate) { + for (V1beta1DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return item.build(); } - } else { - this.config = null; - } - return (A) this; - } - - public A withConfig(V1beta1DeviceClaimConfiguration... config) { - if (this.config != null) { - this.config.clear(); - _visitables.remove("config"); - } - if (config != null) { - for (V1beta1DeviceClaimConfiguration item : config) { - this.addToConfig(item); } - } - return (A) this; - } - - public boolean hasConfig() { - return this.config != null && !(this.config.isEmpty()); + return null; } - public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); + public V1beta1DeviceRequest buildRequest(int index) { + return this.requests.get(index).build(); } - public ConfigNested addNewConfigLike(V1beta1DeviceClaimConfiguration item) { - return new ConfigNested(-1, item); + public List buildRequests() { + return this.requests != null ? build(requests) : null; } - public ConfigNested setNewConfigLike(int index,V1beta1DeviceClaimConfiguration item) { - return new ConfigNested(index, item); + protected void copyInstance(V1beta1DeviceClaim instance) { + instance = instance != null ? instance : new V1beta1DeviceClaim(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withConstraints(instance.getConstraints()); + this.withRequests(instance.getRequests()); + } } public ConfigNested editConfig(int index) { - if (index <= config.size()) { + if (config.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); } return this.setNewConfigLike(index, this.buildConfig(index)); } - public ConfigNested editFirstConfig() { - if (config.size() == 0) { + public ConstraintsNested editConstraint(int index) { + if (constraints.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) { throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); } return this.setNewConfigLike(0, this.buildConfig(0)); } + public ConstraintsNested editFirstConstraint() { + if (constraints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "constraints")); + } + return this.setNewConstraintLike(0, this.buildConstraint(0)); + } + + public RequestsNested editFirstRequest() { + if (requests.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requests")); + } + return this.setNewRequestLike(0, this.buildRequest(0)); + } + public ConfigNested editLastConfig() { int index = config.size() - 1; if (index < 0) { @@ -232,6 +299,22 @@ public ConfigNested editLastConfig() { return this.setNewConfigLike(index, this.buildConfig(index)); } + public ConstraintsNested editLastConstraint() { + int index = constraints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); + } + + public RequestsNested editLastRequest() { + int index = requests.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + public ConfigNested editMatchingConfig(Predicate predicate) { int index = -1; for (int i = 0;i < config.size();i++) { @@ -246,56 +329,151 @@ public ConfigNested editMatchingConfig(Predicate editMatchingConstraint(Predicate predicate) { + int index = -1; + for (int i = 0;i < constraints.size();i++) { + if (predicate.test(constraints.get(i))) { + index = i; + break; + } } - V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); - if (index < 0 || index >= constraints.size()) { - _visitables.get("constraints").add(builder); - constraints.add(builder); - } else { - _visitables.get("constraints").add(builder); - constraints.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "constraints")); } - return (A) this; + return this.setNewConstraintLike(index, this.buildConstraint(index)); } - public A setToConstraints(int index,V1beta1DeviceConstraint item) { - if (this.constraints == null) { - this.constraints = new ArrayList(); + public RequestsNested editMatchingRequest(Predicate predicate) { + int index = -1; + for (int i = 0;i < requests.size();i++) { + if (predicate.test(requests.get(i))) { + index = i; + break; + } } - V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); - if (index < 0 || index >= constraints.size()) { - _visitables.get("constraints").add(builder); - constraints.add(builder); - } else { - _visitables.get("constraints").add(builder); - constraints.set(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + + public RequestsNested editRequest(int index) { + if (requests.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceClaimFluent that = (V1beta1DeviceClaimFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(constraints, that.constraints))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public boolean hasConstraints() { + return this.constraints != null && !(this.constraints.isEmpty()); + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta1DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingConstraint(Predicate predicate) { + for (V1beta1DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (V1beta1DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public int hashCode() { + return Objects.hash(config, constraints, requests); + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) { + return (A) this; + } + for (V1beta1DeviceClaimConfiguration item : items) { + V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); } return (A) this; } - public A addToConstraints(V1beta1DeviceConstraint... items) { + public A removeAllFromConstraints(Collection items) { if (this.constraints == null) { - this.constraints = new ArrayList(); + return (A) this; } for (V1beta1DeviceConstraint item : items) { V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); - _visitables.get("constraints").add(builder); - this.constraints.add(builder); + _visitables.get("constraints").remove(builder); + this.constraints.remove(builder); } return (A) this; } - public A addAllToConstraints(Collection items) { - if (this.constraints == null) { - this.constraints = new ArrayList(); + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; } - for (V1beta1DeviceConstraint item : items) { - V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); - _visitables.get("constraints").add(builder); - this.constraints.add(builder); + for (V1beta1DeviceRequest item : items) { + V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); + _visitables.get("requests").remove(builder); + this.requests.remove(builder); + } + return (A) this; + } + + public A removeFromConfig(V1beta1DeviceClaimConfiguration... items) { + if (this.config == null) { + return (A) this; + } + for (V1beta1DeviceClaimConfiguration item : items) { + V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); } return (A) this; } @@ -312,26 +490,26 @@ public A removeFromConstraints(V1beta1DeviceConstraint... items) { return (A) this; } - public A removeAllFromConstraints(Collection items) { - if (this.constraints == null) { + public A removeFromRequests(V1beta1DeviceRequest... items) { + if (this.requests == null) { return (A) this; } - for (V1beta1DeviceConstraint item : items) { - V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); - _visitables.get("constraints").remove(builder); - this.constraints.remove(builder); + for (V1beta1DeviceRequest item : items) { + V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); + _visitables.get("requests").remove(builder); + this.requests.remove(builder); } return (A) this; } - public A removeMatchingFromConstraints(Predicate predicate) { - if (constraints == null) { + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) { return (A) this; } - Iterator each = constraints.iterator(); - List visitables = _visitables.get("constraints"); + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); while (each.hasNext()) { - V1beta1DeviceConstraintBuilder builder = each.next(); + V1beta1DeviceClaimConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -340,131 +518,76 @@ public A removeMatchingFromConstraints(Predicate return (A) this; } - public List buildConstraints() { - return this.constraints != null ? build(constraints) : null; - } - - public V1beta1DeviceConstraint buildConstraint(int index) { - return this.constraints.get(index).build(); - } - - public V1beta1DeviceConstraint buildFirstConstraint() { - return this.constraints.get(0).build(); - } - - public V1beta1DeviceConstraint buildLastConstraint() { - return this.constraints.get(constraints.size() - 1).build(); - } - - public V1beta1DeviceConstraint buildMatchingConstraint(Predicate predicate) { - for (V1beta1DeviceConstraintBuilder item : constraints) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingConstraint(Predicate predicate) { - for (V1beta1DeviceConstraintBuilder item : constraints) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConstraints(List constraints) { - if (this.constraints != null) { - this._visitables.get("constraints").clear(); + public A removeMatchingFromConstraints(Predicate predicate) { + if (constraints == null) { + return (A) this; } - if (constraints != null) { - this.constraints = new ArrayList(); - for (V1beta1DeviceConstraint item : constraints) { - this.addToConstraints(item); + Iterator each = constraints.iterator(); + List visitables = _visitables.get("constraints"); + while (each.hasNext()) { + V1beta1DeviceConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } else { - this.constraints = null; } return (A) this; } - public A withConstraints(V1beta1DeviceConstraint... constraints) { - if (this.constraints != null) { - this.constraints.clear(); - _visitables.remove("constraints"); + public A removeMatchingFromRequests(Predicate predicate) { + if (requests == null) { + return (A) this; } - if (constraints != null) { - for (V1beta1DeviceConstraint item : constraints) { - this.addToConstraints(item); - } + Iterator each = requests.iterator(); + List visitables = _visitables.get("requests"); + while (each.hasNext()) { + V1beta1DeviceRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasConstraints() { - return this.constraints != null && !(this.constraints.isEmpty()); - } - - public ConstraintsNested addNewConstraint() { - return new ConstraintsNested(-1, null); - } - - public ConstraintsNested addNewConstraintLike(V1beta1DeviceConstraint item) { - return new ConstraintsNested(-1, item); + public ConfigNested setNewConfigLike(int index,V1beta1DeviceClaimConfiguration item) { + return new ConfigNested(index, item); } public ConstraintsNested setNewConstraintLike(int index,V1beta1DeviceConstraint item) { return new ConstraintsNested(index, item); } - public ConstraintsNested editConstraint(int index) { - if (index <= constraints.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "constraints")); - } - return this.setNewConstraintLike(index, this.buildConstraint(index)); - } - - public ConstraintsNested editFirstConstraint() { - if (constraints.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "constraints")); - } - return this.setNewConstraintLike(0, this.buildConstraint(0)); - } - - public ConstraintsNested editLastConstraint() { - int index = constraints.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "constraints")); - } - return this.setNewConstraintLike(index, this.buildConstraint(index)); + public RequestsNested setNewRequestLike(int index,V1beta1DeviceRequest item) { + return new RequestsNested(index, item); } - public ConstraintsNested editMatchingConstraint(Predicate predicate) { - int index = -1; - for (int i = 0;i < constraints.size();i++) { - if (predicate.test(constraints.get(i))) { - index = i; - break; - } + public A setToConfig(int index,V1beta1DeviceClaimConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "constraints")); + V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); } - return this.setNewConstraintLike(index, this.buildConstraint(index)); + return (A) this; } - public A addToRequests(int index,V1beta1DeviceRequest item) { - if (this.requests == null) { - this.requests = new ArrayList(); + public A setToConstraints(int index,V1beta1DeviceConstraint item) { + if (this.constraints == null) { + this.constraints = new ArrayList(); } - V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); - if (index < 0 || index >= requests.size()) { - _visitables.get("requests").add(builder); - requests.add(builder); + V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); } else { - _visitables.get("requests").add(builder); - requests.add(index, builder); + _visitables.get("constraints").add(builder); + constraints.set(index, builder); } return (A) this; } @@ -484,102 +607,81 @@ public A setToRequests(int index,V1beta1DeviceRequest item) { return (A) this; } - public A addToRequests(V1beta1DeviceRequest... items) { - if (this.requests == null) { - this.requests = new ArrayList(); - } - for (V1beta1DeviceRequest item : items) { - V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); - _visitables.get("requests").add(builder); - this.requests.add(builder); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); } - return (A) this; - } - - public A addAllToRequests(Collection items) { - if (this.requests == null) { - this.requests = new ArrayList(); + if (!(constraints == null) && !(constraints.isEmpty())) { + sb.append("constraints:"); + sb.append(constraints); + sb.append(","); } - for (V1beta1DeviceRequest item : items) { - V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); - _visitables.get("requests").add(builder); - this.requests.add(builder); + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); } - return (A) this; + sb.append("}"); + return sb.toString(); } - public A removeFromRequests(V1beta1DeviceRequest... items) { - if (this.requests == null) { - return (A) this; + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); } - for (V1beta1DeviceRequest item : items) { - V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); - _visitables.get("requests").remove(builder); - this.requests.remove(builder); + if (config != null) { + this.config = new ArrayList(); + for (V1beta1DeviceClaimConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; } return (A) this; } - public A removeAllFromRequests(Collection items) { - if (this.requests == null) { - return (A) this; + public A withConfig(V1beta1DeviceClaimConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); } - for (V1beta1DeviceRequest item : items) { - V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); - _visitables.get("requests").remove(builder); - this.requests.remove(builder); + if (config != null) { + for (V1beta1DeviceClaimConfiguration item : config) { + this.addToConfig(item); + } } return (A) this; } - public A removeMatchingFromRequests(Predicate predicate) { - if (requests == null) { - return (A) this; + public A withConstraints(List constraints) { + if (this.constraints != null) { + this._visitables.get("constraints").clear(); } - Iterator each = requests.iterator(); - List visitables = _visitables.get("requests"); - while (each.hasNext()) { - V1beta1DeviceRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + if (constraints != null) { + this.constraints = new ArrayList(); + for (V1beta1DeviceConstraint item : constraints) { + this.addToConstraints(item); } + } else { + this.constraints = null; } return (A) this; } - public List buildRequests() { - return this.requests != null ? build(requests) : null; - } - - public V1beta1DeviceRequest buildRequest(int index) { - return this.requests.get(index).build(); - } - - public V1beta1DeviceRequest buildFirstRequest() { - return this.requests.get(0).build(); - } - - public V1beta1DeviceRequest buildLastRequest() { - return this.requests.get(requests.size() - 1).build(); - } - - public V1beta1DeviceRequest buildMatchingRequest(Predicate predicate) { - for (V1beta1DeviceRequestBuilder item : requests) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingRequest(Predicate predicate) { - for (V1beta1DeviceRequestBuilder item : requests) { - if (predicate.test(item)) { - return true; - } + public A withConstraints(V1beta1DeviceConstraint... constraints) { + if (this.constraints != null) { + this.constraints.clear(); + _visitables.remove("constraints"); + } + if (constraints != null) { + for (V1beta1DeviceConstraint item : constraints) { + this.addToConstraints(item); } - return false; + } + return (A) this; } public A withRequests(List requests) { @@ -609,114 +711,16 @@ public A withRequests(V1beta1DeviceRequest... requests) { } return (A) this; } + public class ConfigNested extends V1beta1DeviceClaimConfigurationFluent> implements Nested{ - public boolean hasRequests() { - return this.requests != null && !(this.requests.isEmpty()); - } - - public RequestsNested addNewRequest() { - return new RequestsNested(-1, null); - } - - public RequestsNested addNewRequestLike(V1beta1DeviceRequest item) { - return new RequestsNested(-1, item); - } - - public RequestsNested setNewRequestLike(int index,V1beta1DeviceRequest item) { - return new RequestsNested(index, item); - } - - public RequestsNested editRequest(int index) { - if (index <= requests.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requests")); - } - return this.setNewRequestLike(index, this.buildRequest(index)); - } - - public RequestsNested editFirstRequest() { - if (requests.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requests")); - } - return this.setNewRequestLike(0, this.buildRequest(0)); - } - - public RequestsNested editLastRequest() { - int index = requests.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requests")); - } - return this.setNewRequestLike(index, this.buildRequest(index)); - } - - public RequestsNested editMatchingRequest(Predicate predicate) { - int index = -1; - for (int i = 0;i < requests.size();i++) { - if (predicate.test(requests.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requests")); - } - return this.setNewRequestLike(index, this.buildRequest(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1DeviceClaimFluent that = (V1beta1DeviceClaimFluent) o; - if (!(Objects.equals(config, that.config))) { - return false; - } - if (!(Objects.equals(constraints, that.constraints))) { - return false; - } - if (!(Objects.equals(requests, that.requests))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(config, constraints, requests); - } + V1beta1DeviceClaimConfigurationBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(config == null) && !(config.isEmpty())) { - sb.append("config:"); - sb.append(config); - sb.append(","); - } - if (!(constraints == null) && !(constraints.isEmpty())) { - sb.append("constraints:"); - sb.append(constraints); - sb.append(","); - } - if (!(requests == null) && !(requests.isEmpty())) { - sb.append("requests:"); - sb.append(requests); - } - sb.append("}"); - return sb.toString(); - } - public class ConfigNested extends V1beta1DeviceClaimConfigurationFluent> implements Nested{ ConfigNested(int index,V1beta1DeviceClaimConfiguration item) { this.index = index; this.builder = new V1beta1DeviceClaimConfigurationBuilder(this, item); } - V1beta1DeviceClaimConfigurationBuilder builder; - int index; - + public N and() { return (N) V1beta1DeviceClaimFluent.this.setToConfig(index, builder.build()); } @@ -725,16 +729,17 @@ public N endConfig() { return and(); } - } public class ConstraintsNested extends V1beta1DeviceConstraintFluent> implements Nested{ + + V1beta1DeviceConstraintBuilder builder; + int index; + ConstraintsNested(int index,V1beta1DeviceConstraint item) { this.index = index; this.builder = new V1beta1DeviceConstraintBuilder(this, item); } - V1beta1DeviceConstraintBuilder builder; - int index; - + public N and() { return (N) V1beta1DeviceClaimFluent.this.setToConstraints(index, builder.build()); } @@ -743,16 +748,17 @@ public N endConstraint() { return and(); } - } public class RequestsNested extends V1beta1DeviceRequestFluent> implements Nested{ + + V1beta1DeviceRequestBuilder builder; + int index; + RequestsNested(int index,V1beta1DeviceRequest item) { this.index = index; this.builder = new V1beta1DeviceRequestBuilder(this, item); } - V1beta1DeviceRequestBuilder builder; - int index; - + public N and() { return (N) V1beta1DeviceClaimFluent.this.setToRequests(index, builder.build()); } @@ -761,7 +767,5 @@ public N endRequest() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassBuilder.java index cb116bf4d5..4dcc6094bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceClassBuilder extends V1beta1DeviceClassFluent implements VisitableBuilder{ + + V1beta1DeviceClassFluent fluent; + public V1beta1DeviceClassBuilder() { this(new V1beta1DeviceClass()); } @@ -11,17 +14,16 @@ public V1beta1DeviceClassBuilder(V1beta1DeviceClassFluent fluent) { this(fluent, new V1beta1DeviceClass()); } - public V1beta1DeviceClassBuilder(V1beta1DeviceClassFluent fluent,V1beta1DeviceClass instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceClassBuilder(V1beta1DeviceClass instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceClassFluent fluent; + public V1beta1DeviceClassBuilder(V1beta1DeviceClassFluent fluent,V1beta1DeviceClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1DeviceClass build() { V1beta1DeviceClass buildable = new V1beta1DeviceClass(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1DeviceClass build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationBuilder.java index 0184e678e0..d03ecf352f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceClassConfigurationBuilder extends V1beta1DeviceClassConfigurationFluent implements VisitableBuilder{ + + V1beta1DeviceClassConfigurationFluent fluent; + public V1beta1DeviceClassConfigurationBuilder() { this(new V1beta1DeviceClassConfiguration()); } @@ -11,22 +14,20 @@ public V1beta1DeviceClassConfigurationBuilder(V1beta1DeviceClassConfigurationFlu this(fluent, new V1beta1DeviceClassConfiguration()); } - public V1beta1DeviceClassConfigurationBuilder(V1beta1DeviceClassConfigurationFluent fluent,V1beta1DeviceClassConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceClassConfigurationBuilder(V1beta1DeviceClassConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceClassConfigurationFluent fluent; + public V1beta1DeviceClassConfigurationBuilder(V1beta1DeviceClassConfigurationFluent fluent,V1beta1DeviceClassConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1DeviceClassConfiguration build() { V1beta1DeviceClassConfiguration buildable = new V1beta1DeviceClassConfiguration(); buildable.setOpaque(fluent.buildOpaque()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationFluent.java index df8150fb8b..4ed9d1d59c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1DeviceClassConfigurationFluent> extends BaseFluent{ + + private V1beta1OpaqueDeviceConfigurationBuilder opaque; + public V1beta1DeviceClassConfigurationFluent() { } public V1beta1DeviceClassConfigurationFluent(V1beta1DeviceClassConfiguration instance) { this.copyInstance(instance); } - private V1beta1OpaqueDeviceConfigurationBuilder opaque; + + public V1beta1OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } protected void copyInstance(V1beta1DeviceClassConfiguration instance) { instance = instance != null ? instance : new V1beta1DeviceClassConfiguration(); @@ -29,34 +35,6 @@ protected void copyInstance(V1beta1DeviceClassConfiguration instance) { } } - public V1beta1OpaqueDeviceConfiguration buildOpaque() { - return this.opaque != null ? this.opaque.build() : null; - } - - public A withOpaque(V1beta1OpaqueDeviceConfiguration opaque) { - this._visitables.remove("opaque"); - if (opaque != null) { - this.opaque = new V1beta1OpaqueDeviceConfigurationBuilder(opaque); - this._visitables.get("opaque").add(this.opaque); - } else { - this.opaque = null; - this._visitables.get("opaque").remove(this.opaque); - } - return (A) this; - } - - public boolean hasOpaque() { - return this.opaque != null; - } - - public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); - } - - public OpaqueNested withNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); - } - public OpaqueNested editOpaque() { return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); } @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasOpaque() { + return this.opaque != null; + } + public int hashCode() { return Objects.hash(opaque); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public A withOpaque(V1beta1OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1beta1OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } public class OpaqueNested extends V1beta1OpaqueDeviceConfigurationFluent> implements Nested{ + + V1beta1OpaqueDeviceConfigurationBuilder builder; + OpaqueNested(V1beta1OpaqueDeviceConfiguration item) { this.builder = new V1beta1OpaqueDeviceConfigurationBuilder(this, item); } - V1beta1OpaqueDeviceConfigurationBuilder builder; - + public N and() { return (N) V1beta1DeviceClassConfigurationFluent.this.withOpaque(builder.build()); } @@ -114,7 +118,5 @@ public N endOpaque() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassFluent.java index 078ec96706..f72302eef6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1DeviceClassFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1DeviceClassSpecBuilder spec; + public V1beta1DeviceClassFluent() { } public V1beta1DeviceClassFluent(V1beta1DeviceClass instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta1DeviceClassSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1DeviceClassSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1beta1DeviceClass instance) { instance = instance != null ? instance : new V1beta1DeviceClass(); @@ -35,60 +45,6 @@ protected void copyInstance(V1beta1DeviceClass instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1beta1DeviceClassSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta1DeviceClassSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta1DeviceClassSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta1DeviceClassSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1DeviceClassSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1beta1DeviceClassSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1DeviceClassSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1beta1DeviceClassSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1DeviceClassSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1beta1DeviceClassFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1beta1DeviceClassSpecFluent> implements Nested{ + + V1beta1DeviceClassSpecBuilder builder; + SpecNested(V1beta1DeviceClassSpec item) { this.builder = new V1beta1DeviceClassSpecBuilder(this, item); } - V1beta1DeviceClassSpecBuilder builder; - + public N and() { return (N) V1beta1DeviceClassFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListBuilder.java index 21f16d2086..b87a683d8d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceClassListBuilder extends V1beta1DeviceClassListFluent implements VisitableBuilder{ + + V1beta1DeviceClassListFluent fluent; + public V1beta1DeviceClassListBuilder() { this(new V1beta1DeviceClassList()); } @@ -11,17 +14,16 @@ public V1beta1DeviceClassListBuilder(V1beta1DeviceClassListFluent fluent) { this(fluent, new V1beta1DeviceClassList()); } - public V1beta1DeviceClassListBuilder(V1beta1DeviceClassListFluent fluent,V1beta1DeviceClassList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceClassListBuilder(V1beta1DeviceClassList instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceClassListFluent fluent; + public V1beta1DeviceClassListBuilder(V1beta1DeviceClassListFluent fluent,V1beta1DeviceClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1DeviceClassList build() { V1beta1DeviceClassList buildable = new V1beta1DeviceClassList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1DeviceClassList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListFluent.java index 6c2834ceea..d24fc4d3c3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1DeviceClassListFluent> extends BaseFluent{ - public V1beta1DeviceClassListFluent() { - } - - public V1beta1DeviceClassListFluent(V1beta1DeviceClassList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta1DeviceClassList instance) { - instance = instance != null ? instance : new V1beta1DeviceClassList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1beta1DeviceClassListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1beta1DeviceClassListFluent(V1beta1DeviceClassList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1beta1DeviceClass item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1beta1DeviceClass item : items) { + V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1beta1DeviceClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1DeviceClass item) { + return new ItemsNested(-1, item); } public A addToItems(V1beta1DeviceClass... items) { @@ -96,68 +65,31 @@ public A addToItems(V1beta1DeviceClass... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1beta1DeviceClass item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1beta1DeviceClass item : items) { - V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); + V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1beta1DeviceClass... items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1DeviceClass item : items) { - V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1DeviceClass item : items) { - V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta1DeviceClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1beta1DeviceClass buildFirstItem() { + return this.items.get(0).build(); } public V1beta1DeviceClass buildItem(int index) { return this.items.get(index).build(); } - public V1beta1DeviceClass buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1beta1DeviceClass buildLastItem() { @@ -173,73 +105,34 @@ public V1beta1DeviceClass buildMatchingItem(Predicate return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1beta1DeviceClassBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta1DeviceClass item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1beta1DeviceClassList instance) { + instance = instance != null ? instance : new V1beta1DeviceClassList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1beta1DeviceClass... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta1DeviceClass item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta1DeviceClass item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta1DeviceClass item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate pred return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1DeviceClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1DeviceClass item : items) { + V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta1DeviceClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1DeviceClass item : items) { + V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1DeviceClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta1DeviceClass item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta1DeviceClass item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1DeviceClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta1DeviceClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1DeviceClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1beta1DeviceClassFluent> implements Nested{ + + V1beta1DeviceClassBuilder builder; + int index; + ItemsNested(int index,V1beta1DeviceClass item) { this.index = index; this.builder = new V1beta1DeviceClassBuilder(this, item); } - V1beta1DeviceClassBuilder builder; - int index; - + public N and() { return (N) V1beta1DeviceClassListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1beta1DeviceClassListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecBuilder.java index 11271c66c1..282215eba3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceClassSpecBuilder extends V1beta1DeviceClassSpecFluent implements VisitableBuilder{ + + V1beta1DeviceClassSpecFluent fluent; + public V1beta1DeviceClassSpecBuilder() { this(new V1beta1DeviceClassSpec()); } @@ -11,17 +14,16 @@ public V1beta1DeviceClassSpecBuilder(V1beta1DeviceClassSpecFluent fluent) { this(fluent, new V1beta1DeviceClassSpec()); } - public V1beta1DeviceClassSpecBuilder(V1beta1DeviceClassSpecFluent fluent,V1beta1DeviceClassSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceClassSpecBuilder(V1beta1DeviceClassSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceClassSpecFluent fluent; + public V1beta1DeviceClassSpecBuilder(V1beta1DeviceClassSpecFluent fluent,V1beta1DeviceClassSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1DeviceClassSpec build() { V1beta1DeviceClassSpec buildable = new V1beta1DeviceClassSpec(); buildable.setConfig(fluent.buildConfig()); @@ -30,5 +32,4 @@ public V1beta1DeviceClassSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecFluent.java index 8af7ae2af3..964458e8c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecFluent.java @@ -1,73 +1,76 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1DeviceClassSpecFluent> extends BaseFluent{ + + private ArrayList config; + private String extendedResourceName; + private ArrayList selectors; + public V1beta1DeviceClassSpecFluent() { } public V1beta1DeviceClassSpecFluent(V1beta1DeviceClassSpec instance) { this.copyInstance(instance); } - private ArrayList config; - private String extendedResourceName; - private ArrayList selectors; - - protected void copyInstance(V1beta1DeviceClassSpec instance) { - instance = instance != null ? instance : new V1beta1DeviceClassSpec(); - if (instance != null) { - this.withConfig(instance.getConfig()); - this.withExtendedResourceName(instance.getExtendedResourceName()); - this.withSelectors(instance.getSelectors()); - } - } - - public A addToConfig(int index,V1beta1DeviceClassConfiguration item) { + + public A addAllToConfig(Collection items) { if (this.config == null) { this.config = new ArrayList(); } - V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { + for (V1beta1DeviceClassConfiguration item : items) { + V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); _visitables.get("config").add(builder); - config.add(index, builder); + this.config.add(builder); } return (A) this; } - public A setToConfig(int index,V1beta1DeviceClassConfiguration item) { - if (this.config == null) { - this.config = new ArrayList(); + public A addAllToSelectors(Collection items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); } - V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { - _visitables.get("config").add(builder); - config.set(index, builder); + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); } return (A) this; } + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta1DeviceClassConfiguration item) { + return new ConfigNested(-1, item); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1beta1DeviceSelector item) { + return new SelectorsNested(-1, item); + } + public A addToConfig(V1beta1DeviceClassConfiguration... items) { if (this.config == null) { this.config = new ArrayList(); @@ -80,54 +83,44 @@ public A addToConfig(V1beta1DeviceClassConfiguration... items) { return (A) this; } - public A addAllToConfig(Collection items) { + public A addToConfig(int index,V1beta1DeviceClassConfiguration item) { if (this.config == null) { this.config = new ArrayList(); } - for (V1beta1DeviceClassConfiguration item : items) { - V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); + V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); - this.config.add(builder); - } - return (A) this; - } - - public A removeFromConfig(V1beta1DeviceClassConfiguration... items) { - if (this.config == null) { - return (A) this; - } - for (V1beta1DeviceClassConfiguration item : items) { - V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); - _visitables.get("config").remove(builder); - this.config.remove(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); } return (A) this; } - public A removeAllFromConfig(Collection items) { - if (this.config == null) { - return (A) this; + public A addToSelectors(V1beta1DeviceSelector... items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); } - for (V1beta1DeviceClassConfiguration item : items) { - V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); - _visitables.get("config").remove(builder); - this.config.remove(builder); + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); } return (A) this; } - public A removeMatchingFromConfig(Predicate predicate) { - if (config == null) { - return (A) this; + public A addToSelectors(int index,V1beta1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); } - Iterator each = config.iterator(); - List visitables = _visitables.get("config"); - while (each.hasNext()) { - V1beta1DeviceClassConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); } return (A) this; } @@ -144,10 +137,18 @@ public V1beta1DeviceClassConfiguration buildFirstConfig() { return this.config.get(0).build(); } + public V1beta1DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + public V1beta1DeviceClassConfiguration buildLastConfig() { return this.config.get(config.size() - 1).build(); } + public V1beta1DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + public V1beta1DeviceClassConfiguration buildMatchingConfig(Predicate predicate) { for (V1beta1DeviceClassConfigurationBuilder item : config) { if (predicate.test(item)) { @@ -157,61 +158,34 @@ public V1beta1DeviceClassConfiguration buildMatchingConfig(Predicate predicate) { - for (V1beta1DeviceClassConfigurationBuilder item : config) { + public V1beta1DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConfig(List config) { - if (this.config != null) { - this._visitables.get("config").clear(); - } - if (config != null) { - this.config = new ArrayList(); - for (V1beta1DeviceClassConfiguration item : config) { - this.addToConfig(item); + return item.build(); } - } else { - this.config = null; - } - return (A) this; - } - - public A withConfig(V1beta1DeviceClassConfiguration... config) { - if (this.config != null) { - this.config.clear(); - _visitables.remove("config"); - } - if (config != null) { - for (V1beta1DeviceClassConfiguration item : config) { - this.addToConfig(item); } - } - return (A) this; - } - - public boolean hasConfig() { - return this.config != null && !(this.config.isEmpty()); + return null; } - public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); + public V1beta1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); } - public ConfigNested addNewConfigLike(V1beta1DeviceClassConfiguration item) { - return new ConfigNested(-1, item); + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; } - public ConfigNested setNewConfigLike(int index,V1beta1DeviceClassConfiguration item) { - return new ConfigNested(index, item); + protected void copyInstance(V1beta1DeviceClassSpec instance) { + instance = instance != null ? instance : new V1beta1DeviceClassSpec(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withExtendedResourceName(instance.getExtendedResourceName()); + this.withSelectors(instance.getSelectors()); + } } public ConfigNested editConfig(int index) { - if (index <= config.size()) { + if (config.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); } return this.setNewConfigLike(index, this.buildConfig(index)); @@ -224,6 +198,13 @@ public ConfigNested editFirstConfig() { return this.setNewConfigLike(0, this.buildConfig(0)); } + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); + } + public ConfigNested editLastConfig() { int index = config.size() - 1; if (index < 0) { @@ -232,6 +213,14 @@ public ConfigNested editLastConfig() { return this.setNewConfigLike(index, this.buildConfig(index)); } + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + public ConfigNested editMatchingConfig(Predicate predicate) { int index = -1; for (int i = 0;i < config.size();i++) { @@ -246,69 +235,120 @@ public ConfigNested editMatchingConfig(Predicate editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i = 0;i < selectors.size();i++) { + if (predicate.test(selectors.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } - public boolean hasExtendedResourceName() { - return this.extendedResourceName != null; + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } - public A addToSelectors(int index,V1beta1DeviceSelector item) { - if (this.selectors == null) { - this.selectors = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { - _visitables.get("selectors").add(builder); - selectors.add(index, builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceClassSpecFluent that = (V1beta1DeviceClassSpecFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(extendedResourceName, that.extendedResourceName))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + return true; } - public A setToSelectors(int index,V1beta1DeviceSelector item) { - if (this.selectors == null) { - this.selectors = new ArrayList(); + public String getExtendedResourceName() { + return this.extendedResourceName; + } + + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public boolean hasExtendedResourceName() { + return this.extendedResourceName != null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta1DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public int hashCode() { + return Objects.hash(config, extendedResourceName, selectors); + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) { + return (A) this; } - V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { - _visitables.get("selectors").add(builder); - selectors.set(index, builder); + for (V1beta1DeviceClassConfiguration item : items) { + V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); } return (A) this; } - public A addToSelectors(V1beta1DeviceSelector... items) { + public A removeAllFromSelectors(Collection items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + return (A) this; } for (V1beta1DeviceSelector item : items) { V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); - this.selectors.add(builder); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); } return (A) this; } - public A addAllToSelectors(Collection items) { - if (this.selectors == null) { - this.selectors = new ArrayList(); + public A removeFromConfig(V1beta1DeviceClassConfiguration... items) { + if (this.config == null) { + return (A) this; } - for (V1beta1DeviceSelector item : items) { - V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); - this.selectors.add(builder); + for (V1beta1DeviceClassConfiguration item : items) { + V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); } return (A) this; } @@ -325,14 +365,18 @@ public A removeFromSelectors(V1beta1DeviceSelector... items) { return (A) this; } - public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) { + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) { return (A) this; } - for (V1beta1DeviceSelector item : items) { - V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - _visitables.get("selectors").remove(builder); - this.selectors.remove(builder); + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1beta1DeviceClassConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -353,38 +397,96 @@ public A removeMatchingFromSelectors(Predicate pre return (A) this; } - public List buildSelectors() { - return this.selectors != null ? build(selectors) : null; + public ConfigNested setNewConfigLike(int index,V1beta1DeviceClassConfiguration item) { + return new ConfigNested(index, item); } - public V1beta1DeviceSelector buildSelector(int index) { - return this.selectors.get(index).build(); + public SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector item) { + return new SelectorsNested(index, item); } - public V1beta1DeviceSelector buildFirstSelector() { - return this.selectors.get(0).build(); + public A setToConfig(int index,V1beta1DeviceClassConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); + } + V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A) this; } - public V1beta1DeviceSelector buildLastSelector() { - return this.selectors.get(selectors.size() - 1).build(); + public A setToSelectors(int index,V1beta1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A) this; } - public V1beta1DeviceSelector buildMatchingSelector(Predicate predicate) { - for (V1beta1DeviceSelectorBuilder item : selectors) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(extendedResourceName == null)) { + sb.append("extendedResourceName:"); + sb.append(extendedResourceName); + sb.append(","); + } + if (!(selectors == null) && !(selectors.isEmpty())) { + sb.append("selectors:"); + sb.append(selectors); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingSelector(Predicate predicate) { - for (V1beta1DeviceSelectorBuilder item : selectors) { - if (predicate.test(item)) { - return true; + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1beta1DeviceClassConfiguration item : config) { + this.addToConfig(item); } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(V1beta1DeviceClassConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1beta1DeviceClassConfiguration item : config) { + this.addToConfig(item); } - return false; + } + return (A) this; + } + + public A withExtendedResourceName(String extendedResourceName) { + this.extendedResourceName = extendedResourceName; + return (A) this; } public A withSelectors(List selectors) { @@ -414,114 +516,16 @@ public A withSelectors(V1beta1DeviceSelector... selectors) { } return (A) this; } + public class ConfigNested extends V1beta1DeviceClassConfigurationFluent> implements Nested{ - public boolean hasSelectors() { - return this.selectors != null && !(this.selectors.isEmpty()); - } - - public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); - } - - public SelectorsNested addNewSelectorLike(V1beta1DeviceSelector item) { - return new SelectorsNested(-1, item); - } - - public SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector item) { - return new SelectorsNested(index, item); - } - - public SelectorsNested editSelector(int index) { - if (index <= selectors.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); - } - return this.setNewSelectorLike(index, this.buildSelector(index)); - } - - public SelectorsNested editFirstSelector() { - if (selectors.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); - } - return this.setNewSelectorLike(0, this.buildSelector(0)); - } - - public SelectorsNested editLastSelector() { - int index = selectors.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); - } - return this.setNewSelectorLike(index, this.buildSelector(index)); - } - - public SelectorsNested editMatchingSelector(Predicate predicate) { - int index = -1; - for (int i = 0;i < selectors.size();i++) { - if (predicate.test(selectors.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); - } - return this.setNewSelectorLike(index, this.buildSelector(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1DeviceClassSpecFluent that = (V1beta1DeviceClassSpecFluent) o; - if (!(Objects.equals(config, that.config))) { - return false; - } - if (!(Objects.equals(extendedResourceName, that.extendedResourceName))) { - return false; - } - if (!(Objects.equals(selectors, that.selectors))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(config, extendedResourceName, selectors); - } + V1beta1DeviceClassConfigurationBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(config == null) && !(config.isEmpty())) { - sb.append("config:"); - sb.append(config); - sb.append(","); - } - if (!(extendedResourceName == null)) { - sb.append("extendedResourceName:"); - sb.append(extendedResourceName); - sb.append(","); - } - if (!(selectors == null) && !(selectors.isEmpty())) { - sb.append("selectors:"); - sb.append(selectors); - } - sb.append("}"); - return sb.toString(); - } - public class ConfigNested extends V1beta1DeviceClassConfigurationFluent> implements Nested{ ConfigNested(int index,V1beta1DeviceClassConfiguration item) { this.index = index; this.builder = new V1beta1DeviceClassConfigurationBuilder(this, item); } - V1beta1DeviceClassConfigurationBuilder builder; - int index; - + public N and() { return (N) V1beta1DeviceClassSpecFluent.this.setToConfig(index, builder.build()); } @@ -530,16 +534,17 @@ public N endConfig() { return and(); } - } public class SelectorsNested extends V1beta1DeviceSelectorFluent> implements Nested{ + + V1beta1DeviceSelectorBuilder builder; + int index; + SelectorsNested(int index,V1beta1DeviceSelector item) { this.index = index; this.builder = new V1beta1DeviceSelectorBuilder(this, item); } - V1beta1DeviceSelectorBuilder builder; - int index; - + public N and() { return (N) V1beta1DeviceClassSpecFluent.this.setToSelectors(index, builder.build()); } @@ -548,7 +553,5 @@ public N endSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintBuilder.java index 79f2db9559..662cf69aa0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceConstraintBuilder extends V1beta1DeviceConstraintFluent implements VisitableBuilder{ + + V1beta1DeviceConstraintFluent fluent; + public V1beta1DeviceConstraintBuilder() { this(new V1beta1DeviceConstraint()); } @@ -11,17 +14,16 @@ public V1beta1DeviceConstraintBuilder(V1beta1DeviceConstraintFluent fluent) { this(fluent, new V1beta1DeviceConstraint()); } - public V1beta1DeviceConstraintBuilder(V1beta1DeviceConstraintFluent fluent,V1beta1DeviceConstraint instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceConstraintBuilder(V1beta1DeviceConstraint instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceConstraintFluent fluent; + public V1beta1DeviceConstraintBuilder(V1beta1DeviceConstraintFluent fluent,V1beta1DeviceConstraint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1DeviceConstraint build() { V1beta1DeviceConstraint buildable = new V1beta1DeviceConstraint(); buildable.setDistinctAttribute(fluent.getDistinctAttribute()); @@ -30,5 +32,4 @@ public V1beta1DeviceConstraint build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintFluent.java index c681faab0c..486983584e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,64 +16,25 @@ */ @SuppressWarnings("unchecked") public class V1beta1DeviceConstraintFluent> extends BaseFluent{ - public V1beta1DeviceConstraintFluent() { - } - - public V1beta1DeviceConstraintFluent(V1beta1DeviceConstraint instance) { - this.copyInstance(instance); - } + private String distinctAttribute; private String matchAttribute; private List requests; - - protected void copyInstance(V1beta1DeviceConstraint instance) { - instance = instance != null ? instance : new V1beta1DeviceConstraint(); - if (instance != null) { - this.withDistinctAttribute(instance.getDistinctAttribute()); - this.withMatchAttribute(instance.getMatchAttribute()); - this.withRequests(instance.getRequests()); - } - } - - public String getDistinctAttribute() { - return this.distinctAttribute; - } - - public A withDistinctAttribute(String distinctAttribute) { - this.distinctAttribute = distinctAttribute; - return (A) this; - } - - public boolean hasDistinctAttribute() { - return this.distinctAttribute != null; - } - - public String getMatchAttribute() { - return this.matchAttribute; - } - - public A withMatchAttribute(String matchAttribute) { - this.matchAttribute = matchAttribute; - return (A) this; + + public V1beta1DeviceConstraintFluent() { } - public boolean hasMatchAttribute() { - return this.matchAttribute != null; + public V1beta1DeviceConstraintFluent(V1beta1DeviceConstraint instance) { + this.copyInstance(instance); } - - public A addToRequests(int index,String item) { + + public A addAllToRequests(Collection items) { if (this.requests == null) { this.requests = new ArrayList(); } - this.requests.add(index, item); - return (A) this; - } - - public A setToRequests(int index,String item) { - if (this.requests == null) { - this.requests = new ArrayList(); + for (String item : items) { + this.requests.add(item); } - this.requests.set(index, item); return (A) this; } @@ -87,42 +48,48 @@ public A addToRequests(String... items) { return (A) this; } - public A addAllToRequests(Collection items) { + public A addToRequests(int index,String item) { if (this.requests == null) { this.requests = new ArrayList(); } - for (String item : items) { - this.requests.add(item); - } + this.requests.add(index, item); return (A) this; } - public A removeFromRequests(String... items) { - if (this.requests == null) { - return (A) this; - } - for (String item : items) { - this.requests.remove(item); + protected void copyInstance(V1beta1DeviceConstraint instance) { + instance = instance != null ? instance : new V1beta1DeviceConstraint(); + if (instance != null) { + this.withDistinctAttribute(instance.getDistinctAttribute()); + this.withMatchAttribute(instance.getMatchAttribute()); + this.withRequests(instance.getRequests()); } - return (A) this; } - public A removeAllFromRequests(Collection items) { - if (this.requests == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.requests.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public List getRequests() { - return this.requests; + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceConstraintFluent that = (V1beta1DeviceConstraintFluent) o; + if (!(Objects.equals(distinctAttribute, that.distinctAttribute))) { + return false; + } + if (!(Objects.equals(matchAttribute, that.matchAttribute))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; } - public String getRequest(int index) { - return this.requests.get(index); + public String getDistinctAttribute() { + return this.distinctAttribute; } public String getFirstRequest() { @@ -133,6 +100,10 @@ public String getLastRequest() { return this.requests.get(requests.size() - 1); } + public String getMatchAttribute() { + return this.matchAttribute; + } + public String getMatchingRequest(Predicate predicate) { for (String item : requests) { if (predicate.test(item)) { @@ -142,6 +113,22 @@ public String getMatchingRequest(Predicate predicate) { return null; } + public String getRequest(int index) { + return this.requests.get(index); + } + + public List getRequests() { + return this.requests; + } + + public boolean hasDistinctAttribute() { + return this.distinctAttribute != null; + } + + public boolean hasMatchAttribute() { + return this.matchAttribute != null; + } + public boolean hasMatchingRequest(Predicate predicate) { for (String item : requests) { if (predicate.test(item)) { @@ -151,60 +138,40 @@ public boolean hasMatchingRequest(Predicate predicate) { return false; } - public A withRequests(List requests) { - if (requests != null) { - this.requests = new ArrayList(); - for (String item : requests) { - this.addToRequests(item); - } - } else { - this.requests = null; - } - return (A) this; + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); } - public A withRequests(String... requests) { - if (this.requests != null) { - this.requests.clear(); - _visitables.remove("requests"); + public int hashCode() { + return Objects.hash(distinctAttribute, matchAttribute, requests); + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; } - if (requests != null) { - for (String item : requests) { - this.addToRequests(item); - } + for (String item : items) { + this.requests.remove(item); } return (A) this; } - public boolean hasRequests() { - return this.requests != null && !(this.requests.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1DeviceConstraintFluent that = (V1beta1DeviceConstraintFluent) o; - if (!(Objects.equals(distinctAttribute, that.distinctAttribute))) { - return false; - } - if (!(Objects.equals(matchAttribute, that.matchAttribute))) { - return false; + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; } - if (!(Objects.equals(requests, that.requests))) { - return false; + for (String item : items) { + this.requests.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(distinctAttribute, matchAttribute, requests); + public A setToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.set(index, item); + return (A) this; } public String toString() { @@ -228,5 +195,39 @@ public String toString() { return sb.toString(); } - + public A withDistinctAttribute(String distinctAttribute) { + this.distinctAttribute = distinctAttribute; + return (A) this; + } + + public A withMatchAttribute(String matchAttribute) { + this.matchAttribute = matchAttribute; + return (A) this; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionBuilder.java index 48eaade3e9..5dbf4206cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceCounterConsumptionBuilder extends V1beta1DeviceCounterConsumptionFluent implements VisitableBuilder{ + + V1beta1DeviceCounterConsumptionFluent fluent; + public V1beta1DeviceCounterConsumptionBuilder() { this(new V1beta1DeviceCounterConsumption()); } @@ -11,17 +14,16 @@ public V1beta1DeviceCounterConsumptionBuilder(V1beta1DeviceCounterConsumptionFlu this(fluent, new V1beta1DeviceCounterConsumption()); } - public V1beta1DeviceCounterConsumptionBuilder(V1beta1DeviceCounterConsumptionFluent fluent,V1beta1DeviceCounterConsumption instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceCounterConsumptionBuilder(V1beta1DeviceCounterConsumption instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceCounterConsumptionFluent fluent; + public V1beta1DeviceCounterConsumptionBuilder(V1beta1DeviceCounterConsumptionFluent fluent,V1beta1DeviceCounterConsumption instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1DeviceCounterConsumption build() { V1beta1DeviceCounterConsumption buildable = new V1beta1DeviceCounterConsumption(); buildable.setCounterSet(fluent.getCounterSet()); @@ -29,5 +31,4 @@ public V1beta1DeviceCounterConsumption build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionFluent.java index c688d1fdb1..47de4c3987 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionFluent.java @@ -1,27 +1,49 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; -import java.util.Map; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1DeviceCounterConsumptionFluent> extends BaseFluent{ + + private String counterSet; + private Map counters; + public V1beta1DeviceCounterConsumptionFluent() { } public V1beta1DeviceCounterConsumptionFluent(V1beta1DeviceCounterConsumption instance) { this.copyInstance(instance); } - private String counterSet; - private Map counters; + + public A addToCounters(Map map) { + if (this.counters == null && map != null) { + this.counters = new LinkedHashMap(); + } + if (map != null) { + this.counters.putAll(map); + } + return (A) this; + } + + public A addToCounters(String key,V1beta1Counter value) { + if (this.counters == null && key != null && value != null) { + this.counters = new LinkedHashMap(); + } + if (key != null && value != null) { + this.counters.put(key, value); + } + return (A) this; + } protected void copyInstance(V1beta1DeviceCounterConsumption instance) { instance = instance != null ? instance : new V1beta1DeviceCounterConsumption(); @@ -31,37 +53,44 @@ protected void copyInstance(V1beta1DeviceCounterConsumption instance) { } } + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceCounterConsumptionFluent that = (V1beta1DeviceCounterConsumptionFluent) o; + if (!(Objects.equals(counterSet, that.counterSet))) { + return false; + } + if (!(Objects.equals(counters, that.counters))) { + return false; + } + return true; + } + public String getCounterSet() { return this.counterSet; } - public A withCounterSet(String counterSet) { - this.counterSet = counterSet; - return (A) this; + public Map getCounters() { + return this.counters; } public boolean hasCounterSet() { return this.counterSet != null; } - public A addToCounters(String key,V1beta1Counter value) { - if (this.counters == null && key != null && value != null) { - this.counters = new LinkedHashMap(); - } - if (key != null && value != null) { - this.counters.put(key, value); - } - return (A) this; + public boolean hasCounters() { + return this.counters != null; } - public A addToCounters(Map map) { - if (this.counters == null && map != null) { - this.counters = new LinkedHashMap(); - } - if (map != null) { - this.counters.putAll(map); - } - return (A) this; + public int hashCode() { + return Objects.hash(counterSet, counters); } public A removeFromCounters(String key) { @@ -88,47 +117,6 @@ public A removeFromCounters(Map map) { return (A) this; } - public Map getCounters() { - return this.counters; - } - - public A withCounters(Map counters) { - if (counters == null) { - this.counters = null; - } else { - this.counters = new LinkedHashMap(counters); - } - return (A) this; - } - - public boolean hasCounters() { - return this.counters != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1DeviceCounterConsumptionFluent that = (V1beta1DeviceCounterConsumptionFluent) o; - if (!(Objects.equals(counterSet, that.counterSet))) { - return false; - } - if (!(Objects.equals(counters, that.counters))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(counterSet, counters); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -145,5 +133,18 @@ public String toString() { return sb.toString(); } - + public A withCounterSet(String counterSet) { + this.counterSet = counterSet; + return (A) this; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceFluent.java index 40be70a81f..12fbb1ba42 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceFluent.java @@ -1,27 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1DeviceFluent> extends BaseFluent{ + + private V1beta1BasicDeviceBuilder basic; + private String name; + public V1beta1DeviceFluent() { } public V1beta1DeviceFluent(V1beta1Device instance) { this.copyInstance(instance); } - private V1beta1BasicDeviceBuilder basic; - private String name; + + public V1beta1BasicDevice buildBasic() { + return this.basic != null ? this.basic.build() : null; + } protected void copyInstance(V1beta1Device instance) { instance = instance != null ? instance : new V1beta1Device(); @@ -31,34 +37,6 @@ protected void copyInstance(V1beta1Device instance) { } } - public V1beta1BasicDevice buildBasic() { - return this.basic != null ? this.basic.build() : null; - } - - public A withBasic(V1beta1BasicDevice basic) { - this._visitables.remove("basic"); - if (basic != null) { - this.basic = new V1beta1BasicDeviceBuilder(basic); - this._visitables.get("basic").add(this.basic); - } else { - this.basic = null; - this._visitables.get("basic").remove(this.basic); - } - return (A) this; - } - - public boolean hasBasic() { - return this.basic != null; - } - - public BasicNested withNewBasic() { - return new BasicNested(null); - } - - public BasicNested withNewBasicLike(V1beta1BasicDevice item) { - return new BasicNested(item); - } - public BasicNested editBasic() { return this.withNewBasicLike(Optional.ofNullable(this.buildBasic()).orElse(null)); } @@ -71,19 +49,6 @@ public BasicNested editOrNewBasicLike(V1beta1BasicDevice item) { return this.withNewBasicLike(Optional.ofNullable(this.buildBasic()).orElse(item)); } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -104,6 +69,18 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public boolean hasBasic() { + return this.basic != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(basic, name); } @@ -123,12 +100,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withBasic(V1beta1BasicDevice basic) { + this._visitables.remove("basic"); + if (basic != null) { + this.basic = new V1beta1BasicDeviceBuilder(basic); + this._visitables.get("basic").add(this.basic); + } else { + this.basic = null; + this._visitables.get("basic").remove(this.basic); + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public BasicNested withNewBasic() { + return new BasicNested(null); + } + + public BasicNested withNewBasicLike(V1beta1BasicDevice item) { + return new BasicNested(item); + } public class BasicNested extends V1beta1BasicDeviceFluent> implements Nested{ + + V1beta1BasicDeviceBuilder builder; + BasicNested(V1beta1BasicDevice item) { this.builder = new V1beta1BasicDeviceBuilder(this, item); } - V1beta1BasicDeviceBuilder builder; - + public N and() { return (N) V1beta1DeviceFluent.this.withBasic(builder.build()); } @@ -137,7 +141,5 @@ public N endBasic() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultBuilder.java index edfb075d99..06fd04badf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceRequestAllocationResultBuilder extends V1beta1DeviceRequestAllocationResultFluent implements VisitableBuilder{ + + V1beta1DeviceRequestAllocationResultFluent fluent; + public V1beta1DeviceRequestAllocationResultBuilder() { this(new V1beta1DeviceRequestAllocationResult()); } @@ -11,17 +14,16 @@ public V1beta1DeviceRequestAllocationResultBuilder(V1beta1DeviceRequestAllocatio this(fluent, new V1beta1DeviceRequestAllocationResult()); } - public V1beta1DeviceRequestAllocationResultBuilder(V1beta1DeviceRequestAllocationResultFluent fluent,V1beta1DeviceRequestAllocationResult instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceRequestAllocationResultBuilder(V1beta1DeviceRequestAllocationResult instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceRequestAllocationResultFluent fluent; + public V1beta1DeviceRequestAllocationResultBuilder(V1beta1DeviceRequestAllocationResultFluent fluent,V1beta1DeviceRequestAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1DeviceRequestAllocationResult build() { V1beta1DeviceRequestAllocationResult buildable = new V1beta1DeviceRequestAllocationResult(); buildable.setAdminAccess(fluent.getAdminAccess()); @@ -37,5 +39,4 @@ public V1beta1DeviceRequestAllocationResult build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultFluent.java index 1bf2331721..0afa1ecf3d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultFluent.java @@ -1,34 +1,29 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; -import java.lang.Boolean; -import io.kubernetes.client.custom.Quantity; -import java.util.Objects; -import java.util.Collection; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1DeviceRequestAllocationResultFluent> extends BaseFluent{ - public V1beta1DeviceRequestAllocationResultFluent() { - } - - public V1beta1DeviceRequestAllocationResultFluent(V1beta1DeviceRequestAllocationResult instance) { - this.copyInstance(instance); - } + private Boolean adminAccess; private List bindingConditions; private List bindingFailureConditions; @@ -39,62 +34,14 @@ public V1beta1DeviceRequestAllocationResultFluent(V1beta1DeviceRequestAllocation private String request; private String shareID; private ArrayList tolerations; - - protected void copyInstance(V1beta1DeviceRequestAllocationResult instance) { - instance = instance != null ? instance : new V1beta1DeviceRequestAllocationResult(); - if (instance != null) { - this.withAdminAccess(instance.getAdminAccess()); - this.withBindingConditions(instance.getBindingConditions()); - this.withBindingFailureConditions(instance.getBindingFailureConditions()); - this.withConsumedCapacity(instance.getConsumedCapacity()); - this.withDevice(instance.getDevice()); - this.withDriver(instance.getDriver()); - this.withPool(instance.getPool()); - this.withRequest(instance.getRequest()); - this.withShareID(instance.getShareID()); - this.withTolerations(instance.getTolerations()); - } - } - - public Boolean getAdminAccess() { - return this.adminAccess; - } - - public A withAdminAccess(Boolean adminAccess) { - this.adminAccess = adminAccess; - return (A) this; - } - - public boolean hasAdminAccess() { - return this.adminAccess != null; - } - - public A addToBindingConditions(int index,String item) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); - } - this.bindingConditions.add(index, item); - return (A) this; - } - - public A setToBindingConditions(int index,String item) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); - } - this.bindingConditions.set(index, item); - return (A) this; + + public V1beta1DeviceRequestAllocationResultFluent() { } - public A addToBindingConditions(String... items) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); - } - for (String item : items) { - this.bindingConditions.add(item); - } - return (A) this; + public V1beta1DeviceRequestAllocationResultFluent(V1beta1DeviceRequestAllocationResult instance) { + this.copyInstance(instance); } - + public A addAllToBindingConditions(Collection items) { if (this.bindingConditions == null) { this.bindingConditions = new ArrayList(); @@ -105,389 +52,410 @@ public A addAllToBindingConditions(Collection items) { return (A) this; } - public A removeFromBindingConditions(String... items) { - if (this.bindingConditions == null) { - return (A) this; + public A addAllToBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); } for (String item : items) { - this.bindingConditions.remove(item); + this.bindingFailureConditions.add(item); } return (A) this; } - public A removeAllFromBindingConditions(Collection items) { - if (this.bindingConditions == null) { - return (A) this; + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - for (String item : items) { - this.bindingConditions.remove(item); + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } return (A) this; } - public List getBindingConditions() { - return this.bindingConditions; - } - - public String getBindingCondition(int index) { - return this.bindingConditions.get(index); - } - - public String getFirstBindingCondition() { - return this.bindingConditions.get(0); - } - - public String getLastBindingCondition() { - return this.bindingConditions.get(bindingConditions.size() - 1); - } - - public String getMatchingBindingCondition(Predicate predicate) { - for (String item : bindingConditions) { - if (predicate.test(item)) { - return item; - } - } - return null; + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); } - public boolean hasMatchingBindingCondition(Predicate predicate) { - for (String item : bindingConditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public TolerationsNested addNewTolerationLike(V1beta1DeviceToleration item) { + return new TolerationsNested(-1, item); } - public A withBindingConditions(List bindingConditions) { - if (bindingConditions != null) { - this.bindingConditions = new ArrayList(); - for (String item : bindingConditions) { - this.addToBindingConditions(item); - } - } else { - this.bindingConditions = null; + public A addToBindingConditions(String... items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); } return (A) this; } - public A withBindingConditions(String... bindingConditions) { - if (this.bindingConditions != null) { - this.bindingConditions.clear(); - _visitables.remove("bindingConditions"); - } - if (bindingConditions != null) { - for (String item : bindingConditions) { - this.addToBindingConditions(item); - } + public A addToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); } + this.bindingConditions.add(index, item); return (A) this; } - public boolean hasBindingConditions() { - return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); - } - - public A addToBindingFailureConditions(int index,String item) { + public A addToBindingFailureConditions(String... items) { if (this.bindingFailureConditions == null) { this.bindingFailureConditions = new ArrayList(); } - this.bindingFailureConditions.add(index, item); + for (String item : items) { + this.bindingFailureConditions.add(item); + } return (A) this; } - public A setToBindingFailureConditions(int index,String item) { + public A addToBindingFailureConditions(int index,String item) { if (this.bindingFailureConditions == null) { this.bindingFailureConditions = new ArrayList(); } - this.bindingFailureConditions.set(index, item); + this.bindingFailureConditions.add(index, item); return (A) this; } - public A addToBindingFailureConditions(String... items) { - if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + public A addToConsumedCapacity(Map map) { + if (this.consumedCapacity == null && map != null) { + this.consumedCapacity = new LinkedHashMap(); } - for (String item : items) { - this.bindingFailureConditions.add(item); + if (map != null) { + this.consumedCapacity.putAll(map); } return (A) this; } - public A addAllToBindingFailureConditions(Collection items) { - if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + public A addToConsumedCapacity(String key,Quantity value) { + if (this.consumedCapacity == null && key != null && value != null) { + this.consumedCapacity = new LinkedHashMap(); } - for (String item : items) { - this.bindingFailureConditions.add(item); + if (key != null && value != null) { + this.consumedCapacity.put(key, value); } return (A) this; } - public A removeFromBindingFailureConditions(String... items) { - if (this.bindingFailureConditions == null) { - return (A) this; + public A addToTolerations(V1beta1DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - for (String item : items) { - this.bindingFailureConditions.remove(item); + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } return (A) this; } - public A removeAllFromBindingFailureConditions(Collection items) { - if (this.bindingFailureConditions == null) { - return (A) this; + public A addToTolerations(int index,V1beta1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - for (String item : items) { - this.bindingFailureConditions.remove(item); + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); } return (A) this; } - public List getBindingFailureConditions() { - return this.bindingFailureConditions; - } - - public String getBindingFailureCondition(int index) { - return this.bindingFailureConditions.get(index); - } - - public String getFirstBindingFailureCondition() { - return this.bindingFailureConditions.get(0); + public V1beta1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); } - public String getLastBindingFailureCondition() { - return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); + public V1beta1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); } - public String getMatchingBindingFailureCondition(Predicate predicate) { - for (String item : bindingFailureConditions) { + public V1beta1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { if (predicate.test(item)) { - return item; + return item.build(); } } return null; } - public boolean hasMatchingBindingFailureCondition(Predicate predicate) { - for (String item : bindingFailureConditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1beta1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); } - public A withBindingFailureConditions(List bindingFailureConditions) { - if (bindingFailureConditions != null) { - this.bindingFailureConditions = new ArrayList(); - for (String item : bindingFailureConditions) { - this.addToBindingFailureConditions(item); - } - } else { - this.bindingFailureConditions = null; - } - return (A) this; + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; } - public A withBindingFailureConditions(String... bindingFailureConditions) { - if (this.bindingFailureConditions != null) { - this.bindingFailureConditions.clear(); - _visitables.remove("bindingFailureConditions"); - } - if (bindingFailureConditions != null) { - for (String item : bindingFailureConditions) { - this.addToBindingFailureConditions(item); - } + protected void copyInstance(V1beta1DeviceRequestAllocationResult instance) { + instance = instance != null ? instance : new V1beta1DeviceRequestAllocationResult(); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withBindingConditions(instance.getBindingConditions()); + this.withBindingFailureConditions(instance.getBindingFailureConditions()); + this.withConsumedCapacity(instance.getConsumedCapacity()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + this.withRequest(instance.getRequest()); + this.withShareID(instance.getShareID()); + this.withTolerations(instance.getTolerations()); } - return (A) this; } - public boolean hasBindingFailureConditions() { - return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); } - public A addToConsumedCapacity(String key,Quantity value) { - if (this.consumedCapacity == null && key != null && value != null) { - this.consumedCapacity = new LinkedHashMap(); - } - if (key != null && value != null) { - this.consumedCapacity.put(key, value); + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A addToConsumedCapacity(Map map) { - if (this.consumedCapacity == null && map != null) { - this.consumedCapacity = new LinkedHashMap(); + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } } - if (map != null) { - this.consumedCapacity.putAll(map); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A removeFromConsumedCapacity(String key) { - if (this.consumedCapacity == null) { - return (A) this; - } - if (key != null && this.consumedCapacity != null) { - this.consumedCapacity.remove(key); + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A removeFromConsumedCapacity(Map map) { - if (this.consumedCapacity == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - if (map != null) { - for (Object key : map.keySet()) { - if (this.consumedCapacity != null) { - this.consumedCapacity.remove(key); - } - } + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceRequestAllocationResultFluent that = (V1beta1DeviceRequestAllocationResultFluent) o; + if (!(Objects.equals(adminAccess, that.adminAccess))) { + return false; + } + if (!(Objects.equals(bindingConditions, that.bindingConditions))) { + return false; + } + if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { + return false; + } + if (!(Objects.equals(consumedCapacity, that.consumedCapacity))) { + return false; + } + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(request, that.request))) { + return false; + } + if (!(Objects.equals(shareID, that.shareID))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; } - public Map getConsumedCapacity() { - return this.consumedCapacity; + public Boolean getAdminAccess() { + return this.adminAccess; } - public A withConsumedCapacity(Map consumedCapacity) { - if (consumedCapacity == null) { - this.consumedCapacity = null; - } else { - this.consumedCapacity = new LinkedHashMap(consumedCapacity); - } - return (A) this; + public String getBindingCondition(int index) { + return this.bindingConditions.get(index); } - public boolean hasConsumedCapacity() { - return this.consumedCapacity != null; + public List getBindingConditions() { + return this.bindingConditions; } - public String getDevice() { - return this.device; + public String getBindingFailureCondition(int index) { + return this.bindingFailureConditions.get(index); } - public A withDevice(String device) { - this.device = device; - return (A) this; + public List getBindingFailureConditions() { + return this.bindingFailureConditions; } - public boolean hasDevice() { - return this.device != null; + public Map getConsumedCapacity() { + return this.consumedCapacity; + } + + public String getDevice() { + return this.device; } public String getDriver() { return this.driver; } - public A withDriver(String driver) { - this.driver = driver; - return (A) this; + public String getFirstBindingCondition() { + return this.bindingConditions.get(0); } - public boolean hasDriver() { - return this.driver != null; + public String getFirstBindingFailureCondition() { + return this.bindingFailureConditions.get(0); } - public String getPool() { - return this.pool; + public String getLastBindingCondition() { + return this.bindingConditions.get(bindingConditions.size() - 1); } - public A withPool(String pool) { - this.pool = pool; - return (A) this; + public String getLastBindingFailureCondition() { + return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); } - public boolean hasPool() { - return this.pool != null; + public String getMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public String getRequest() { - return this.request; + public String getMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A withRequest(String request) { - this.request = request; - return (A) this; + public String getPool() { + return this.pool; } - public boolean hasRequest() { - return this.request != null; + public String getRequest() { + return this.request; } public String getShareID() { return this.shareID; } - public A withShareID(String shareID) { - this.shareID = shareID; - return (A) this; + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public boolean hasBindingConditions() { + return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); + } + + public boolean hasBindingFailureConditions() { + return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); + } + + public boolean hasConsumedCapacity() { + return this.consumedCapacity != null; + } + + public boolean hasDevice() { + return this.device != null; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean hasRequest() { + return this.request != null; } public boolean hasShareID() { return this.shareID != null; } - public A addToTolerations(int index,V1beta1DeviceToleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); - } - return (A) this; + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); } - public A setToTolerations(int index,V1beta1DeviceToleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); - } - return (A) this; + public int hashCode() { + return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); } - public A addToTolerations(V1beta1DeviceToleration... items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); + public A removeAllFromBindingConditions(Collection items) { + if (this.bindingConditions == null) { + return (A) this; } - for (V1beta1DeviceToleration item : items) { - V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); + for (String item : items) { + this.bindingConditions.remove(item); } return (A) this; } - public A addAllToTolerations(Collection items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); + public A removeAllFromBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + return (A) this; } - for (V1beta1DeviceToleration item : items) { - V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); + for (String item : items) { + this.bindingFailureConditions.remove(item); } return (A) this; } - public A removeFromTolerations(V1beta1DeviceToleration... items) { + public A removeAllFromTolerations(Collection items) { if (this.tolerations == null) { return (A) this; } @@ -499,194 +467,111 @@ public A removeFromTolerations(V1beta1DeviceToleration... items) { return (A) this; } - public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) { + public A removeFromBindingConditions(String... items) { + if (this.bindingConditions == null) { return (A) this; } - for (V1beta1DeviceToleration item : items) { - V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - this.tolerations.remove(builder); + for (String item : items) { + this.bindingConditions.remove(item); } return (A) this; } - public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) { + public A removeFromBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { return (A) this; } - Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); - while (each.hasNext()) { - V1beta1DeviceTolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (String item : items) { + this.bindingFailureConditions.remove(item); } return (A) this; } - public List buildTolerations() { - return this.tolerations != null ? build(tolerations) : null; - } - - public V1beta1DeviceToleration buildToleration(int index) { - return this.tolerations.get(index).build(); - } - - public V1beta1DeviceToleration buildFirstToleration() { - return this.tolerations.get(0).build(); - } - - public V1beta1DeviceToleration buildLastToleration() { - return this.tolerations.get(tolerations.size() - 1).build(); - } - - public V1beta1DeviceToleration buildMatchingToleration(Predicate predicate) { - for (V1beta1DeviceTolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingToleration(Predicate predicate) { - for (V1beta1DeviceTolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withTolerations(List tolerations) { - if (this.tolerations != null) { - this._visitables.get("tolerations").clear(); + public A removeFromConsumedCapacity(String key) { + if (this.consumedCapacity == null) { + return (A) this; } - if (tolerations != null) { - this.tolerations = new ArrayList(); - for (V1beta1DeviceToleration item : tolerations) { - this.addToTolerations(item); - } - } else { - this.tolerations = null; + if (key != null && this.consumedCapacity != null) { + this.consumedCapacity.remove(key); } return (A) this; } - public A withTolerations(V1beta1DeviceToleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - _visitables.remove("tolerations"); + public A removeFromConsumedCapacity(Map map) { + if (this.consumedCapacity == null) { + return (A) this; } - if (tolerations != null) { - for (V1beta1DeviceToleration item : tolerations) { - this.addToTolerations(item); + if (map != null) { + for (Object key : map.keySet()) { + if (this.consumedCapacity != null) { + this.consumedCapacity.remove(key); + } } } return (A) this; } - public boolean hasTolerations() { - return this.tolerations != null && !(this.tolerations.isEmpty()); - } - - public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + public A removeFromTolerations(V1beta1DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } - public TolerationsNested addNewTolerationLike(V1beta1DeviceToleration item) { - return new TolerationsNested(-1, item); + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1beta1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } public TolerationsNested setNewTolerationLike(int index,V1beta1DeviceToleration item) { return new TolerationsNested(index, item); } - public TolerationsNested editToleration(int index) { - if (index <= tolerations.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); - } - return this.setNewTolerationLike(index, this.buildToleration(index)); - } - - public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); - } - return this.setNewTolerationLike(0, this.buildToleration(0)); - } - - public TolerationsNested editLastToleration() { - int index = tolerations.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + public A setToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); } - return this.setNewTolerationLike(index, this.buildToleration(index)); + this.bindingConditions.set(index, item); + return (A) this; } - public TolerationsNested editMatchingToleration(Predicate predicate) { - int index = -1; - for (int i = 0;i < tolerations.size();i++) { - if (predicate.test(tolerations.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + public A setToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); } - return this.setNewTolerationLike(index, this.buildToleration(index)); + this.bindingFailureConditions.set(index, item); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1DeviceRequestAllocationResultFluent that = (V1beta1DeviceRequestAllocationResultFluent) o; - if (!(Objects.equals(adminAccess, that.adminAccess))) { - return false; - } - if (!(Objects.equals(bindingConditions, that.bindingConditions))) { - return false; - } - if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { - return false; - } - if (!(Objects.equals(consumedCapacity, that.consumedCapacity))) { - return false; - } - if (!(Objects.equals(device, that.device))) { - return false; - } - if (!(Objects.equals(driver, that.driver))) { - return false; - } - if (!(Objects.equals(pool, that.pool))) { - return false; - } - if (!(Objects.equals(request, that.request))) { - return false; - } - if (!(Objects.equals(shareID, that.shareID))) { - return false; + public A setToTolerations(int index,V1beta1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - if (!(Objects.equals(tolerations, that.tolerations))) { - return false; + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); } - return true; - } - - public int hashCode() { - return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); + return (A) this; } public String toString() { @@ -748,14 +633,133 @@ public String toString() { public A withAdminAccess() { return withAdminAccess(true); } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public A withBindingConditions(List bindingConditions) { + if (bindingConditions != null) { + this.bindingConditions = new ArrayList(); + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } else { + this.bindingConditions = null; + } + return (A) this; + } + + public A withBindingConditions(String... bindingConditions) { + if (this.bindingConditions != null) { + this.bindingConditions.clear(); + _visitables.remove("bindingConditions"); + } + if (bindingConditions != null) { + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } + return (A) this; + } + + public A withBindingFailureConditions(List bindingFailureConditions) { + if (bindingFailureConditions != null) { + this.bindingFailureConditions = new ArrayList(); + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } else { + this.bindingFailureConditions = null; + } + return (A) this; + } + + public A withBindingFailureConditions(String... bindingFailureConditions) { + if (this.bindingFailureConditions != null) { + this.bindingFailureConditions.clear(); + _visitables.remove("bindingFailureConditions"); + } + if (bindingFailureConditions != null) { + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } + return (A) this; + } + + public A withConsumedCapacity(Map consumedCapacity) { + if (consumedCapacity == null) { + this.consumedCapacity = null; + } else { + this.consumedCapacity = new LinkedHashMap(consumedCapacity); + } + return (A) this; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public A withRequest(String request) { + this.request = request; + return (A) this; + } + + public A withShareID(String shareID) { + this.shareID = shareID; + return (A) this; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1beta1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(V1beta1DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1beta1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } public class TolerationsNested extends V1beta1DeviceTolerationFluent> implements Nested{ + + V1beta1DeviceTolerationBuilder builder; + int index; + TolerationsNested(int index,V1beta1DeviceToleration item) { this.index = index; this.builder = new V1beta1DeviceTolerationBuilder(this, item); } - V1beta1DeviceTolerationBuilder builder; - int index; - + public N and() { return (N) V1beta1DeviceRequestAllocationResultFluent.this.setToTolerations(index, builder.build()); } @@ -764,7 +768,5 @@ public N endToleration() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestBuilder.java index 62d7c4b704..0e1d491815 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceRequestBuilder extends V1beta1DeviceRequestFluent implements VisitableBuilder{ + + V1beta1DeviceRequestFluent fluent; + public V1beta1DeviceRequestBuilder() { this(new V1beta1DeviceRequest()); } @@ -11,17 +14,16 @@ public V1beta1DeviceRequestBuilder(V1beta1DeviceRequestFluent fluent) { this(fluent, new V1beta1DeviceRequest()); } - public V1beta1DeviceRequestBuilder(V1beta1DeviceRequestFluent fluent,V1beta1DeviceRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceRequestBuilder(V1beta1DeviceRequest instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceRequestFluent fluent; + public V1beta1DeviceRequestBuilder(V1beta1DeviceRequestFluent fluent,V1beta1DeviceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1DeviceRequest build() { V1beta1DeviceRequest buildable = new V1beta1DeviceRequest(); buildable.setAdminAccess(fluent.getAdminAccess()); @@ -36,5 +38,4 @@ public V1beta1DeviceRequest build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestFluent.java index 5b74117f97..20fc7a7f1e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestFluent.java @@ -1,33 +1,28 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Boolean; -import java.util.Optional; -import java.lang.Long; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1DeviceRequestFluent> extends BaseFluent{ - public V1beta1DeviceRequestFluent() { - } - - public V1beta1DeviceRequestFluent(V1beta1DeviceRequest instance) { - this.copyInstance(instance); - } + private Boolean adminAccess; private String allocationMode; private V1beta1CapacityRequirementsBuilder capacity; @@ -37,130 +32,87 @@ public V1beta1DeviceRequestFluent(V1beta1DeviceRequest instance) { private String name; private ArrayList selectors; private ArrayList tolerations; - - protected void copyInstance(V1beta1DeviceRequest instance) { - instance = instance != null ? instance : new V1beta1DeviceRequest(); - if (instance != null) { - this.withAdminAccess(instance.getAdminAccess()); - this.withAllocationMode(instance.getAllocationMode()); - this.withCapacity(instance.getCapacity()); - this.withCount(instance.getCount()); - this.withDeviceClassName(instance.getDeviceClassName()); - this.withFirstAvailable(instance.getFirstAvailable()); - this.withName(instance.getName()); - this.withSelectors(instance.getSelectors()); - this.withTolerations(instance.getTolerations()); - } + + public V1beta1DeviceRequestFluent() { } - public Boolean getAdminAccess() { - return this.adminAccess; + public V1beta1DeviceRequestFluent(V1beta1DeviceRequest instance) { + this.copyInstance(instance); } - - public A withAdminAccess(Boolean adminAccess) { - this.adminAccess = adminAccess; + + public A addAllToFirstAvailable(Collection items) { + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } + for (V1beta1DeviceSubRequest item : items) { + V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").add(builder); + this.firstAvailable.add(builder); + } return (A) this; } - public boolean hasAdminAccess() { - return this.adminAccess != null; - } - - public String getAllocationMode() { - return this.allocationMode; - } - - public A withAllocationMode(String allocationMode) { - this.allocationMode = allocationMode; + public A addAllToSelectors(Collection items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } return (A) this; } - public boolean hasAllocationMode() { - return this.allocationMode != null; - } - - public V1beta1CapacityRequirements buildCapacity() { - return this.capacity != null ? this.capacity.build() : null; - } - - public A withCapacity(V1beta1CapacityRequirements capacity) { - this._visitables.remove("capacity"); - if (capacity != null) { - this.capacity = new V1beta1CapacityRequirementsBuilder(capacity); - this._visitables.get("capacity").add(this.capacity); - } else { - this.capacity = null; - this._visitables.get("capacity").remove(this.capacity); + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } return (A) this; } - public boolean hasCapacity() { - return this.capacity != null; - } - - public CapacityNested withNewCapacity() { - return new CapacityNested(null); - } - - public CapacityNested withNewCapacityLike(V1beta1CapacityRequirements item) { - return new CapacityNested(item); - } - - public CapacityNested editCapacity() { - return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); - } - - public CapacityNested editOrNewCapacity() { - return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1beta1CapacityRequirementsBuilder().build())); - } - - public CapacityNested editOrNewCapacityLike(V1beta1CapacityRequirements item) { - return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); - } - - public Long getCount() { - return this.count; + public FirstAvailableNested addNewFirstAvailable() { + return new FirstAvailableNested(-1, null); } - public A withCount(Long count) { - this.count = count; - return (A) this; + public FirstAvailableNested addNewFirstAvailableLike(V1beta1DeviceSubRequest item) { + return new FirstAvailableNested(-1, item); } - public boolean hasCount() { - return this.count != null; + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); } - public String getDeviceClassName() { - return this.deviceClassName; + public SelectorsNested addNewSelectorLike(V1beta1DeviceSelector item) { + return new SelectorsNested(-1, item); } - public A withDeviceClassName(String deviceClassName) { - this.deviceClassName = deviceClassName; - return (A) this; + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); } - public boolean hasDeviceClassName() { - return this.deviceClassName != null; + public TolerationsNested addNewTolerationLike(V1beta1DeviceToleration item) { + return new TolerationsNested(-1, item); } - public A addToFirstAvailable(int index,V1beta1DeviceSubRequest item) { + public A addToFirstAvailable(V1beta1DeviceSubRequest... items) { if (this.firstAvailable == null) { this.firstAvailable = new ArrayList(); } - V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); - if (index < 0 || index >= firstAvailable.size()) { - _visitables.get("firstAvailable").add(builder); - firstAvailable.add(builder); - } else { + for (V1beta1DeviceSubRequest item : items) { + V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); _visitables.get("firstAvailable").add(builder); - firstAvailable.add(index, builder); + this.firstAvailable.add(builder); } return (A) this; } - public A setToFirstAvailable(int index,V1beta1DeviceSubRequest item) { + public A addToFirstAvailable(int index,V1beta1DeviceSubRequest item) { if (this.firstAvailable == null) { this.firstAvailable = new ArrayList(); } @@ -170,73 +122,67 @@ public A setToFirstAvailable(int index,V1beta1DeviceSubRequest item) { firstAvailable.add(builder); } else { _visitables.get("firstAvailable").add(builder); - firstAvailable.set(index, builder); + firstAvailable.add(index, builder); } return (A) this; } - public A addToFirstAvailable(V1beta1DeviceSubRequest... items) { - if (this.firstAvailable == null) { - this.firstAvailable = new ArrayList(); + public A addToSelectors(V1beta1DeviceSelector... items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); } - for (V1beta1DeviceSubRequest item : items) { - V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); - _visitables.get("firstAvailable").add(builder); - this.firstAvailable.add(builder); + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); } return (A) this; } - public A addAllToFirstAvailable(Collection items) { - if (this.firstAvailable == null) { - this.firstAvailable = new ArrayList(); + public A addToSelectors(int index,V1beta1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); } - for (V1beta1DeviceSubRequest item : items) { - V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); - _visitables.get("firstAvailable").add(builder); - this.firstAvailable.add(builder); + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); } return (A) this; } - public A removeFromFirstAvailable(V1beta1DeviceSubRequest... items) { - if (this.firstAvailable == null) { - return (A) this; + public A addToTolerations(V1beta1DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - for (V1beta1DeviceSubRequest item : items) { - V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); - _visitables.get("firstAvailable").remove(builder); - this.firstAvailable.remove(builder); + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } return (A) this; } - public A removeAllFromFirstAvailable(Collection items) { - if (this.firstAvailable == null) { - return (A) this; + public A addToTolerations(int index,V1beta1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - for (V1beta1DeviceSubRequest item : items) { - V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); - _visitables.get("firstAvailable").remove(builder); - this.firstAvailable.remove(builder); + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); } return (A) this; } - public A removeMatchingFromFirstAvailable(Predicate predicate) { - if (firstAvailable == null) { - return (A) this; - } - Iterator each = firstAvailable.iterator(); - List visitables = _visitables.get("firstAvailable"); - while (each.hasNext()) { - V1beta1DeviceSubRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1beta1CapacityRequirements buildCapacity() { + return this.capacity != null ? this.capacity.build() : null; } public List buildFirstAvailable() { @@ -251,12 +197,28 @@ public V1beta1DeviceSubRequest buildFirstFirstAvailable() { return this.firstAvailable.get(0).build(); } + public V1beta1DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1beta1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + public V1beta1DeviceSubRequest buildLastFirstAvailable() { return this.firstAvailable.get(firstAvailable.size() - 1).build(); } - public V1beta1DeviceSubRequest buildMatchingFirstAvailable(Predicate predicate) { - for (V1beta1DeviceSubRequestBuilder item : firstAvailable) { + public V1beta1DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1beta1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1beta1DeviceSubRequest buildMatchingFirstAvailable(Predicate predicate) { + for (V1beta1DeviceSubRequestBuilder item : firstAvailable) { if (predicate.test(item)) { return item.build(); } @@ -264,61 +226,61 @@ public V1beta1DeviceSubRequest buildMatchingFirstAvailable(Predicate predicate) { - for (V1beta1DeviceSubRequestBuilder item : firstAvailable) { + public V1beta1DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withFirstAvailable(List firstAvailable) { - if (this.firstAvailable != null) { - this._visitables.get("firstAvailable").clear(); - } - if (firstAvailable != null) { - this.firstAvailable = new ArrayList(); - for (V1beta1DeviceSubRequest item : firstAvailable) { - this.addToFirstAvailable(item); + public V1beta1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); } - } else { - this.firstAvailable = null; - } - return (A) this; + } + return null; } - public A withFirstAvailable(V1beta1DeviceSubRequest... firstAvailable) { - if (this.firstAvailable != null) { - this.firstAvailable.clear(); - _visitables.remove("firstAvailable"); - } - if (firstAvailable != null) { - for (V1beta1DeviceSubRequest item : firstAvailable) { - this.addToFirstAvailable(item); - } - } - return (A) this; + public V1beta1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); } - public boolean hasFirstAvailable() { - return this.firstAvailable != null && !(this.firstAvailable.isEmpty()); + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; } - public FirstAvailableNested addNewFirstAvailable() { - return new FirstAvailableNested(-1, null); + public V1beta1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); } - public FirstAvailableNested addNewFirstAvailableLike(V1beta1DeviceSubRequest item) { - return new FirstAvailableNested(-1, item); + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; } - public FirstAvailableNested setNewFirstAvailableLike(int index,V1beta1DeviceSubRequest item) { - return new FirstAvailableNested(index, item); + protected void copyInstance(V1beta1DeviceRequest instance) { + instance = instance != null ? instance : new V1beta1DeviceRequest(); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withAllocationMode(instance.getAllocationMode()); + this.withCapacity(instance.getCapacity()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withFirstAvailable(instance.getFirstAvailable()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } + } + + public CapacityNested editCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); } public FirstAvailableNested editFirstAvailable(int index) { - if (index <= firstAvailable.size()) { + if (firstAvailable.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "firstAvailable")); } return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); @@ -331,6 +293,20 @@ public FirstAvailableNested editFirstFirstAvailable() { return this.setNewFirstAvailableLike(0, this.buildFirstAvailable(0)); } + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); + } + public FirstAvailableNested editLastFirstAvailable() { int index = firstAvailable.size() - 1; if (index < 0) { @@ -339,6 +315,22 @@ public FirstAvailableNested editLastFirstAvailable() { return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); } + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + public FirstAvailableNested editMatchingFirstAvailable(Predicate predicate) { int index = -1; for (int i = 0;i < firstAvailable.size();i++) { @@ -353,294 +345,245 @@ public FirstAvailableNested editMatchingFirstAvailable(Predicate editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i = 0;i < selectors.size();i++) { + if (predicate.test(selectors.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } - public A withName(String name) { - this.name = name; - return (A) this; + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public boolean hasName() { - return this.name != null; + public CapacityNested editOrNewCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1beta1CapacityRequirementsBuilder().build())); } - public A addToSelectors(int index,V1beta1DeviceSelector item) { - if (this.selectors == null) { - this.selectors = new ArrayList(); - } - V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { - _visitables.get("selectors").add(builder); - selectors.add(index, builder); - } - return (A) this; + public CapacityNested editOrNewCapacityLike(V1beta1CapacityRequirements item) { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); } - public A setToSelectors(int index,V1beta1DeviceSelector item) { - if (this.selectors == null) { - this.selectors = new ArrayList(); - } - V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { - _visitables.get("selectors").add(builder); - selectors.set(index, builder); + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); } - return (A) this; + return this.setNewSelectorLike(index, this.buildSelector(index)); } - public A addToSelectors(V1beta1DeviceSelector... items) { - if (this.selectors == null) { - this.selectors = new ArrayList(); - } - for (V1beta1DeviceSelector item : items) { - V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); - this.selectors.add(builder); + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A addAllToSelectors(Collection items) { - if (this.selectors == null) { - this.selectors = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - for (V1beta1DeviceSelector item : items) { - V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); - this.selectors.add(builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A removeFromSelectors(V1beta1DeviceSelector... items) { - if (this.selectors == null) { - return (A) this; + if (!(super.equals(o))) { + return false; } - for (V1beta1DeviceSelector item : items) { - V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - _visitables.get("selectors").remove(builder); - this.selectors.remove(builder); + V1beta1DeviceRequestFluent that = (V1beta1DeviceRequestFluent) o; + if (!(Objects.equals(adminAccess, that.adminAccess))) { + return false; } - return (A) this; - } - - public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) { - return (A) this; + if (!(Objects.equals(allocationMode, that.allocationMode))) { + return false; } - for (V1beta1DeviceSelector item : items) { - V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - _visitables.get("selectors").remove(builder); - this.selectors.remove(builder); + if (!(Objects.equals(capacity, that.capacity))) { + return false; } - return (A) this; - } - - public A removeMatchingFromSelectors(Predicate predicate) { - if (selectors == null) { - return (A) this; + if (!(Objects.equals(count, that.count))) { + return false; } - Iterator each = selectors.iterator(); - List visitables = _visitables.get("selectors"); - while (each.hasNext()) { - V1beta1DeviceSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (!(Objects.equals(deviceClassName, that.deviceClassName))) { + return false; } - return (A) this; + if (!(Objects.equals(firstAvailable, that.firstAvailable))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; } - public List buildSelectors() { - return this.selectors != null ? build(selectors) : null; + public Boolean getAdminAccess() { + return this.adminAccess; } - public V1beta1DeviceSelector buildSelector(int index) { - return this.selectors.get(index).build(); + public String getAllocationMode() { + return this.allocationMode; } - public V1beta1DeviceSelector buildFirstSelector() { - return this.selectors.get(0).build(); + public Long getCount() { + return this.count; } - public V1beta1DeviceSelector buildLastSelector() { - return this.selectors.get(selectors.size() - 1).build(); + public String getDeviceClassName() { + return this.deviceClassName; } - public V1beta1DeviceSelector buildMatchingSelector(Predicate predicate) { - for (V1beta1DeviceSelectorBuilder item : selectors) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getName() { + return this.name; } - public boolean hasMatchingSelector(Predicate predicate) { - for (V1beta1DeviceSelectorBuilder item : selectors) { - if (predicate.test(item)) { - return true; - } - } - return false; + public boolean hasAdminAccess() { + return this.adminAccess != null; } - public A withSelectors(List selectors) { - if (this.selectors != null) { - this._visitables.get("selectors").clear(); - } - if (selectors != null) { - this.selectors = new ArrayList(); - for (V1beta1DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } else { - this.selectors = null; - } - return (A) this; + public boolean hasAllocationMode() { + return this.allocationMode != null; } - public A withSelectors(V1beta1DeviceSelector... selectors) { - if (this.selectors != null) { - this.selectors.clear(); - _visitables.remove("selectors"); - } - if (selectors != null) { - for (V1beta1DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } - return (A) this; + public boolean hasCapacity() { + return this.capacity != null; } - public boolean hasSelectors() { - return this.selectors != null && !(this.selectors.isEmpty()); + public boolean hasCount() { + return this.count != null; } - public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); + public boolean hasDeviceClassName() { + return this.deviceClassName != null; } - public SelectorsNested addNewSelectorLike(V1beta1DeviceSelector item) { - return new SelectorsNested(-1, item); + public boolean hasFirstAvailable() { + return this.firstAvailable != null && !(this.firstAvailable.isEmpty()); } - public SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector item) { - return new SelectorsNested(index, item); + public boolean hasMatchingFirstAvailable(Predicate predicate) { + for (V1beta1DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public SelectorsNested editSelector(int index) { - if (index <= selectors.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); - } - return this.setNewSelectorLike(index, this.buildSelector(index)); + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public SelectorsNested editFirstSelector() { - if (selectors.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); - } - return this.setNewSelectorLike(0, this.buildSelector(0)); + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public SelectorsNested editLastSelector() { - int index = selectors.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); - } - return this.setNewSelectorLike(index, this.buildSelector(index)); + public boolean hasName() { + return this.name != null; } - public SelectorsNested editMatchingSelector(Predicate predicate) { - int index = -1; - for (int i = 0;i < selectors.size();i++) { - if (predicate.test(selectors.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); - } - return this.setNewSelectorLike(index, this.buildSelector(index)); + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); } - public A addToTolerations(int index,V1beta1DeviceToleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public int hashCode() { + return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, firstAvailable, name, selectors, tolerations); + } + + public A removeAllFromFirstAvailable(Collection items) { + if (this.firstAvailable == null) { + return (A) this; } - V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + for (V1beta1DeviceSubRequest item : items) { + V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").remove(builder); + this.firstAvailable.remove(builder); } return (A) this; } - public A setToTolerations(int index,V1beta1DeviceToleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) { + return (A) this; } - V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); } return (A) this; } - public A addToTolerations(V1beta1DeviceToleration... items) { + public A removeAllFromTolerations(Collection items) { if (this.tolerations == null) { - this.tolerations = new ArrayList(); + return (A) this; } for (V1beta1DeviceToleration item : items) { V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); } return (A) this; } - public A addAllToTolerations(Collection items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); + public A removeFromFirstAvailable(V1beta1DeviceSubRequest... items) { + if (this.firstAvailable == null) { + return (A) this; } - for (V1beta1DeviceToleration item : items) { - V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); + for (V1beta1DeviceSubRequest item : items) { + V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").remove(builder); + this.firstAvailable.remove(builder); } return (A) this; } - public A removeFromTolerations(V1beta1DeviceToleration... items) { - if (this.tolerations == null) { + public A removeFromSelectors(V1beta1DeviceSelector... items) { + if (this.selectors == null) { return (A) this; } - for (V1beta1DeviceToleration item : items) { - V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - this.tolerations.remove(builder); + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); } return (A) this; } - public A removeAllFromTolerations(Collection items) { + public A removeFromTolerations(V1beta1DeviceToleration... items) { if (this.tolerations == null) { return (A) this; } @@ -652,14 +595,14 @@ public A removeAllFromTolerations(Collection items) { return (A) this; } - public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) { + public A removeMatchingFromFirstAvailable(Predicate predicate) { + if (firstAvailable == null) { return (A) this; } - Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); + Iterator each = firstAvailable.iterator(); + List visitables = _visitables.get("firstAvailable"); while (each.hasNext()) { - V1beta1DeviceTolerationBuilder builder = each.next(); + V1beta1DeviceSubRequestBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -668,163 +611,93 @@ public A removeMatchingFromTolerations(Predicate return (A) this; } - public List buildTolerations() { - return this.tolerations != null ? build(tolerations) : null; - } - - public V1beta1DeviceToleration buildToleration(int index) { - return this.tolerations.get(index).build(); - } - - public V1beta1DeviceToleration buildFirstToleration() { - return this.tolerations.get(0).build(); - } - - public V1beta1DeviceToleration buildLastToleration() { - return this.tolerations.get(tolerations.size() - 1).build(); - } - - public V1beta1DeviceToleration buildMatchingToleration(Predicate predicate) { - for (V1beta1DeviceTolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingToleration(Predicate predicate) { - for (V1beta1DeviceTolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withTolerations(List tolerations) { - if (this.tolerations != null) { - this._visitables.get("tolerations").clear(); + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; } - if (tolerations != null) { - this.tolerations = new ArrayList(); - for (V1beta1DeviceToleration item : tolerations) { - this.addToTolerations(item); + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1beta1DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } else { - this.tolerations = null; } return (A) this; } - public A withTolerations(V1beta1DeviceToleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - _visitables.remove("tolerations"); + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; } - if (tolerations != null) { - for (V1beta1DeviceToleration item : tolerations) { - this.addToTolerations(item); - } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1beta1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasTolerations() { - return this.tolerations != null && !(this.tolerations.isEmpty()); - } - - public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); - } - - public TolerationsNested addNewTolerationLike(V1beta1DeviceToleration item) { - return new TolerationsNested(-1, item); - } - - public TolerationsNested setNewTolerationLike(int index,V1beta1DeviceToleration item) { - return new TolerationsNested(index, item); - } - - public TolerationsNested editToleration(int index) { - if (index <= tolerations.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); - } - return this.setNewTolerationLike(index, this.buildToleration(index)); + public FirstAvailableNested setNewFirstAvailableLike(int index,V1beta1DeviceSubRequest item) { + return new FirstAvailableNested(index, item); } - public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); - } - return this.setNewTolerationLike(0, this.buildToleration(0)); + public SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector item) { + return new SelectorsNested(index, item); } - public TolerationsNested editLastToleration() { - int index = tolerations.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); - } - return this.setNewTolerationLike(index, this.buildToleration(index)); + public TolerationsNested setNewTolerationLike(int index,V1beta1DeviceToleration item) { + return new TolerationsNested(index, item); } - public TolerationsNested editMatchingToleration(Predicate predicate) { - int index = -1; - for (int i = 0;i < tolerations.size();i++) { - if (predicate.test(tolerations.get(i))) { - index = i; - break; - } + public A setToFirstAvailable(int index,V1beta1DeviceSubRequest item) { + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.set(index, builder); } - return this.setNewTolerationLike(index, this.buildToleration(index)); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1DeviceRequestFluent that = (V1beta1DeviceRequestFluent) o; - if (!(Objects.equals(adminAccess, that.adminAccess))) { - return false; - } - if (!(Objects.equals(allocationMode, that.allocationMode))) { - return false; - } - if (!(Objects.equals(capacity, that.capacity))) { - return false; - } - if (!(Objects.equals(count, that.count))) { - return false; - } - if (!(Objects.equals(deviceClassName, that.deviceClassName))) { - return false; - } - if (!(Objects.equals(firstAvailable, that.firstAvailable))) { - return false; - } - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(selectors, that.selectors))) { - return false; + public A setToSelectors(int index,V1beta1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); } - if (!(Objects.equals(tolerations, that.tolerations))) { - return false; + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, firstAvailable, name, selectors, tolerations); + public A setToTolerations(int index,V1beta1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); + } + return (A) this; } public String toString() { @@ -881,12 +754,143 @@ public String toString() { public A withAdminAccess() { return withAdminAccess(true); } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public A withCapacity(V1beta1CapacityRequirements capacity) { + this._visitables.remove("capacity"); + if (capacity != null) { + this.capacity = new V1beta1CapacityRequirementsBuilder(capacity); + this._visitables.get("capacity").add(this.capacity); + } else { + this.capacity = null; + this._visitables.get("capacity").remove(this.capacity); + } + return (A) this; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public A withFirstAvailable(List firstAvailable) { + if (this.firstAvailable != null) { + this._visitables.get("firstAvailable").clear(); + } + if (firstAvailable != null) { + this.firstAvailable = new ArrayList(); + for (V1beta1DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } else { + this.firstAvailable = null; + } + return (A) this; + } + + public A withFirstAvailable(V1beta1DeviceSubRequest... firstAvailable) { + if (this.firstAvailable != null) { + this.firstAvailable.clear(); + _visitables.remove("firstAvailable"); + } + if (firstAvailable != null) { + for (V1beta1DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public CapacityNested withNewCapacity() { + return new CapacityNested(null); + } + + public CapacityNested withNewCapacityLike(V1beta1CapacityRequirements item) { + return new CapacityNested(item); + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1beta1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(V1beta1DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1beta1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1beta1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(V1beta1DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1beta1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } public class CapacityNested extends V1beta1CapacityRequirementsFluent> implements Nested{ + + V1beta1CapacityRequirementsBuilder builder; + CapacityNested(V1beta1CapacityRequirements item) { this.builder = new V1beta1CapacityRequirementsBuilder(this, item); } - V1beta1CapacityRequirementsBuilder builder; - + public N and() { return (N) V1beta1DeviceRequestFluent.this.withCapacity(builder.build()); } @@ -895,16 +899,17 @@ public N endCapacity() { return and(); } - } public class FirstAvailableNested extends V1beta1DeviceSubRequestFluent> implements Nested{ + + V1beta1DeviceSubRequestBuilder builder; + int index; + FirstAvailableNested(int index,V1beta1DeviceSubRequest item) { this.index = index; this.builder = new V1beta1DeviceSubRequestBuilder(this, item); } - V1beta1DeviceSubRequestBuilder builder; - int index; - + public N and() { return (N) V1beta1DeviceRequestFluent.this.setToFirstAvailable(index, builder.build()); } @@ -913,16 +918,17 @@ public N endFirstAvailable() { return and(); } - } public class SelectorsNested extends V1beta1DeviceSelectorFluent> implements Nested{ + + V1beta1DeviceSelectorBuilder builder; + int index; + SelectorsNested(int index,V1beta1DeviceSelector item) { this.index = index; this.builder = new V1beta1DeviceSelectorBuilder(this, item); } - V1beta1DeviceSelectorBuilder builder; - int index; - + public N and() { return (N) V1beta1DeviceRequestFluent.this.setToSelectors(index, builder.build()); } @@ -931,16 +937,17 @@ public N endSelector() { return and(); } - } public class TolerationsNested extends V1beta1DeviceTolerationFluent> implements Nested{ + + V1beta1DeviceTolerationBuilder builder; + int index; + TolerationsNested(int index,V1beta1DeviceToleration item) { this.index = index; this.builder = new V1beta1DeviceTolerationBuilder(this, item); } - V1beta1DeviceTolerationBuilder builder; - int index; - + public N and() { return (N) V1beta1DeviceRequestFluent.this.setToTolerations(index, builder.build()); } @@ -949,7 +956,5 @@ public N endToleration() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorBuilder.java index 817146518b..8029d3fc15 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceSelectorBuilder extends V1beta1DeviceSelectorFluent implements VisitableBuilder{ + + V1beta1DeviceSelectorFluent fluent; + public V1beta1DeviceSelectorBuilder() { this(new V1beta1DeviceSelector()); } @@ -11,22 +14,20 @@ public V1beta1DeviceSelectorBuilder(V1beta1DeviceSelectorFluent fluent) { this(fluent, new V1beta1DeviceSelector()); } - public V1beta1DeviceSelectorBuilder(V1beta1DeviceSelectorFluent fluent,V1beta1DeviceSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceSelectorBuilder(V1beta1DeviceSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceSelectorFluent fluent; + public V1beta1DeviceSelectorBuilder(V1beta1DeviceSelectorFluent fluent,V1beta1DeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1DeviceSelector build() { V1beta1DeviceSelector buildable = new V1beta1DeviceSelector(); buildable.setCel(fluent.buildCel()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorFluent.java index 7c419480f8..4ee804c7d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1DeviceSelectorFluent> extends BaseFluent{ + + private V1beta1CELDeviceSelectorBuilder cel; + public V1beta1DeviceSelectorFluent() { } public V1beta1DeviceSelectorFluent(V1beta1DeviceSelector instance) { this.copyInstance(instance); } - private V1beta1CELDeviceSelectorBuilder cel; + + public V1beta1CELDeviceSelector buildCel() { + return this.cel != null ? this.cel.build() : null; + } protected void copyInstance(V1beta1DeviceSelector instance) { instance = instance != null ? instance : new V1beta1DeviceSelector(); @@ -29,34 +35,6 @@ protected void copyInstance(V1beta1DeviceSelector instance) { } } - public V1beta1CELDeviceSelector buildCel() { - return this.cel != null ? this.cel.build() : null; - } - - public A withCel(V1beta1CELDeviceSelector cel) { - this._visitables.remove("cel"); - if (cel != null) { - this.cel = new V1beta1CELDeviceSelectorBuilder(cel); - this._visitables.get("cel").add(this.cel); - } else { - this.cel = null; - this._visitables.get("cel").remove(this.cel); - } - return (A) this; - } - - public boolean hasCel() { - return this.cel != null; - } - - public CelNested withNewCel() { - return new CelNested(null); - } - - public CelNested withNewCelLike(V1beta1CELDeviceSelector item) { - return new CelNested(item); - } - public CelNested editCel() { return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(null)); } @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasCel() { + return this.cel != null; + } + public int hashCode() { return Objects.hash(cel); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withCel(V1beta1CELDeviceSelector cel) { + this._visitables.remove("cel"); + if (cel != null) { + this.cel = new V1beta1CELDeviceSelectorBuilder(cel); + this._visitables.get("cel").add(this.cel); + } else { + this.cel = null; + this._visitables.get("cel").remove(this.cel); + } + return (A) this; + } + + public CelNested withNewCel() { + return new CelNested(null); + } + + public CelNested withNewCelLike(V1beta1CELDeviceSelector item) { + return new CelNested(item); + } public class CelNested extends V1beta1CELDeviceSelectorFluent> implements Nested{ + + V1beta1CELDeviceSelectorBuilder builder; + CelNested(V1beta1CELDeviceSelector item) { this.builder = new V1beta1CELDeviceSelectorBuilder(this, item); } - V1beta1CELDeviceSelectorBuilder builder; - + public N and() { return (N) V1beta1DeviceSelectorFluent.this.withCel(builder.build()); } @@ -114,7 +118,5 @@ public N endCel() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestBuilder.java index 2afa3df1a9..0427800ec4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceSubRequestBuilder extends V1beta1DeviceSubRequestFluent implements VisitableBuilder{ + + V1beta1DeviceSubRequestFluent fluent; + public V1beta1DeviceSubRequestBuilder() { this(new V1beta1DeviceSubRequest()); } @@ -11,17 +14,16 @@ public V1beta1DeviceSubRequestBuilder(V1beta1DeviceSubRequestFluent fluent) { this(fluent, new V1beta1DeviceSubRequest()); } - public V1beta1DeviceSubRequestBuilder(V1beta1DeviceSubRequestFluent fluent,V1beta1DeviceSubRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceSubRequestBuilder(V1beta1DeviceSubRequest instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceSubRequestFluent fluent; + public V1beta1DeviceSubRequestBuilder(V1beta1DeviceSubRequestFluent fluent,V1beta1DeviceSubRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1DeviceSubRequest build() { V1beta1DeviceSubRequest buildable = new V1beta1DeviceSubRequest(); buildable.setAllocationMode(fluent.getAllocationMode()); @@ -34,5 +36,4 @@ public V1beta1DeviceSubRequest build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestFluent.java index 71693093bc..09ad782631 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; -import java.lang.Long; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1DeviceSubRequestFluent> extends BaseFluent{ - public V1beta1DeviceSubRequestFluent() { - } - - public V1beta1DeviceSubRequestFluent(V1beta1DeviceSubRequest instance) { - this.copyInstance(instance); - } + private String allocationMode; private V1beta1CapacityRequirementsBuilder capacity; private Long count; @@ -34,128 +29,67 @@ public V1beta1DeviceSubRequestFluent(V1beta1DeviceSubRequest instance) { private String name; private ArrayList selectors; private ArrayList tolerations; - - protected void copyInstance(V1beta1DeviceSubRequest instance) { - instance = instance != null ? instance : new V1beta1DeviceSubRequest(); - if (instance != null) { - this.withAllocationMode(instance.getAllocationMode()); - this.withCapacity(instance.getCapacity()); - this.withCount(instance.getCount()); - this.withDeviceClassName(instance.getDeviceClassName()); - this.withName(instance.getName()); - this.withSelectors(instance.getSelectors()); - this.withTolerations(instance.getTolerations()); - } - } - - public String getAllocationMode() { - return this.allocationMode; - } - - public A withAllocationMode(String allocationMode) { - this.allocationMode = allocationMode; - return (A) this; - } - - public boolean hasAllocationMode() { - return this.allocationMode != null; + + public V1beta1DeviceSubRequestFluent() { } - public V1beta1CapacityRequirements buildCapacity() { - return this.capacity != null ? this.capacity.build() : null; + public V1beta1DeviceSubRequestFluent(V1beta1DeviceSubRequest instance) { + this.copyInstance(instance); } - - public A withCapacity(V1beta1CapacityRequirements capacity) { - this._visitables.remove("capacity"); - if (capacity != null) { - this.capacity = new V1beta1CapacityRequirementsBuilder(capacity); - this._visitables.get("capacity").add(this.capacity); - } else { - this.capacity = null; - this._visitables.get("capacity").remove(this.capacity); + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); } return (A) this; } - public boolean hasCapacity() { - return this.capacity != null; - } - - public CapacityNested withNewCapacity() { - return new CapacityNested(null); - } - - public CapacityNested withNewCapacityLike(V1beta1CapacityRequirements item) { - return new CapacityNested(item); - } - - public CapacityNested editCapacity() { - return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); - } - - public CapacityNested editOrNewCapacity() { - return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1beta1CapacityRequirementsBuilder().build())); - } - - public CapacityNested editOrNewCapacityLike(V1beta1CapacityRequirements item) { - return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); - } - - public Long getCount() { - return this.count; - } - - public A withCount(Long count) { - this.count = count; - return (A) this; - } - - public boolean hasCount() { - return this.count != null; - } - - public String getDeviceClassName() { - return this.deviceClassName; - } - - public A withDeviceClassName(String deviceClassName) { - this.deviceClassName = deviceClassName; + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } return (A) this; } - public boolean hasDeviceClassName() { - return this.deviceClassName != null; + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); } - public String getName() { - return this.name; + public SelectorsNested addNewSelectorLike(V1beta1DeviceSelector item) { + return new SelectorsNested(-1, item); } - public A withName(String name) { - this.name = name; - return (A) this; + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); } - public boolean hasName() { - return this.name != null; + public TolerationsNested addNewTolerationLike(V1beta1DeviceToleration item) { + return new TolerationsNested(-1, item); } - public A addToSelectors(int index,V1beta1DeviceSelector item) { + public A addToSelectors(V1beta1DeviceSelector... items) { if (this.selectors == null) { this.selectors = new ArrayList(); } - V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); _visitables.get("selectors").add(builder); - selectors.add(index, builder); + this.selectors.add(builder); } return (A) this; } - public A setToSelectors(int index,V1beta1DeviceSelector item) { + public A addToSelectors(int index,V1beta1DeviceSelector item) { if (this.selectors == null) { this.selectors = new ArrayList(); } @@ -165,91 +99,58 @@ public A setToSelectors(int index,V1beta1DeviceSelector item) { selectors.add(builder); } else { _visitables.get("selectors").add(builder); - selectors.set(index, builder); - } - return (A) this; - } - - public A addToSelectors(V1beta1DeviceSelector... items) { - if (this.selectors == null) { - this.selectors = new ArrayList(); - } - for (V1beta1DeviceSelector item : items) { - V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); - this.selectors.add(builder); - } - return (A) this; - } - - public A addAllToSelectors(Collection items) { - if (this.selectors == null) { - this.selectors = new ArrayList(); - } - for (V1beta1DeviceSelector item : items) { - V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); - this.selectors.add(builder); - } - return (A) this; - } - - public A removeFromSelectors(V1beta1DeviceSelector... items) { - if (this.selectors == null) { - return (A) this; - } - for (V1beta1DeviceSelector item : items) { - V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - _visitables.get("selectors").remove(builder); - this.selectors.remove(builder); + selectors.add(index, builder); } return (A) this; } - public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) { - return (A) this; + public A addToTolerations(V1beta1DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - for (V1beta1DeviceSelector item : items) { - V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - _visitables.get("selectors").remove(builder); - this.selectors.remove(builder); + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } return (A) this; } - public A removeMatchingFromSelectors(Predicate predicate) { - if (selectors == null) { - return (A) this; + public A addToTolerations(int index,V1beta1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - Iterator each = selectors.iterator(); - List visitables = _visitables.get("selectors"); - while (each.hasNext()) { - V1beta1DeviceSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); } return (A) this; } - public List buildSelectors() { - return this.selectors != null ? build(selectors) : null; - } - - public V1beta1DeviceSelector buildSelector(int index) { - return this.selectors.get(index).build(); + public V1beta1CapacityRequirements buildCapacity() { + return this.capacity != null ? this.capacity.build() : null; } public V1beta1DeviceSelector buildFirstSelector() { return this.selectors.get(0).build(); } + public V1beta1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + public V1beta1DeviceSelector buildLastSelector() { return this.selectors.get(selectors.size() - 1).build(); } + public V1beta1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + public V1beta1DeviceSelector buildMatchingSelector(Predicate predicate) { for (V1beta1DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { @@ -259,64 +160,46 @@ public V1beta1DeviceSelector buildMatchingSelector(Predicate predicate) { - for (V1beta1DeviceSelectorBuilder item : selectors) { + public V1beta1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withSelectors(List selectors) { - if (this.selectors != null) { - this._visitables.get("selectors").clear(); - } - if (selectors != null) { - this.selectors = new ArrayList(); - for (V1beta1DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } else { - this.selectors = null; - } - return (A) this; - } - - public A withSelectors(V1beta1DeviceSelector... selectors) { - if (this.selectors != null) { - this.selectors.clear(); - _visitables.remove("selectors"); - } - if (selectors != null) { - for (V1beta1DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } - return (A) this; + public V1beta1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); } - public boolean hasSelectors() { - return this.selectors != null && !(this.selectors.isEmpty()); + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; } - public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); + public V1beta1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); } - public SelectorsNested addNewSelectorLike(V1beta1DeviceSelector item) { - return new SelectorsNested(-1, item); + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; } - public SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector item) { - return new SelectorsNested(index, item); + protected void copyInstance(V1beta1DeviceSubRequest instance) { + instance = instance != null ? instance : new V1beta1DeviceSubRequest(); + if (instance != null) { + this.withAllocationMode(instance.getAllocationMode()); + this.withCapacity(instance.getCapacity()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } } - public SelectorsNested editSelector(int index) { - if (index <= selectors.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); - } - return this.setNewSelectorLike(index, this.buildSelector(index)); + public CapacityNested editCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); } public SelectorsNested editFirstSelector() { @@ -326,6 +209,13 @@ public SelectorsNested editFirstSelector() { return this.setNewSelectorLike(0, this.buildSelector(0)); } + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); + } + public SelectorsNested editLastSelector() { int index = selectors.size() - 1; if (index < 0) { @@ -334,6 +224,14 @@ public SelectorsNested editLastSelector() { return this.setNewSelectorLike(index, this.buildSelector(index)); } + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + public SelectorsNested editMatchingSelector(Predicate predicate) { int index = -1; for (int i = 0;i < selectors.size();i++) { @@ -348,123 +246,116 @@ public SelectorsNested editMatchingSelector(Predicate editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } } - V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A setToTolerations(int index,V1beta1DeviceToleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); - } - return (A) this; + public CapacityNested editOrNewCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1beta1CapacityRequirementsBuilder().build())); } - public A addToTolerations(V1beta1DeviceToleration... items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - for (V1beta1DeviceToleration item : items) { - V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); - } - return (A) this; + public CapacityNested editOrNewCapacityLike(V1beta1CapacityRequirements item) { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); } - public A addAllToTolerations(Collection items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - for (V1beta1DeviceToleration item : items) { - V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); } - return (A) this; + return this.setNewSelectorLike(index, this.buildSelector(index)); } - public A removeFromTolerations(V1beta1DeviceToleration... items) { - if (this.tolerations == null) { - return (A) this; - } - for (V1beta1DeviceToleration item : items) { - V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - this.tolerations.remove(builder); + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (V1beta1DeviceToleration item : items) { - V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - this.tolerations.remove(builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) { - return (A) this; + if (!(super.equals(o))) { + return false; } - Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); - while (each.hasNext()) { - V1beta1DeviceTolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta1DeviceSubRequestFluent that = (V1beta1DeviceSubRequestFluent) o; + if (!(Objects.equals(allocationMode, that.allocationMode))) { + return false; } - return (A) this; + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(deviceClassName, that.deviceClassName))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; } - public List buildTolerations() { - return this.tolerations != null ? build(tolerations) : null; + public String getAllocationMode() { + return this.allocationMode; } - public V1beta1DeviceToleration buildToleration(int index) { - return this.tolerations.get(index).build(); + public Long getCount() { + return this.count; } - public V1beta1DeviceToleration buildFirstToleration() { - return this.tolerations.get(0).build(); + public String getDeviceClassName() { + return this.deviceClassName; } - public V1beta1DeviceToleration buildLastToleration() { - return this.tolerations.get(tolerations.size() - 1).build(); + public String getName() { + return this.name; } - public V1beta1DeviceToleration buildMatchingToleration(Predicate predicate) { - for (V1beta1DeviceTolerationBuilder item : tolerations) { + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean hasCount() { + return this.count != null; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingToleration(Predicate predicate) { @@ -476,123 +367,138 @@ public boolean hasMatchingToleration(Predicate p return false; } - public A withTolerations(List tolerations) { - if (this.tolerations != null) { - this._visitables.get("tolerations").clear(); + public boolean hasName() { + return this.name != null; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) { + return (A) this; } - if (tolerations != null) { - this.tolerations = new ArrayList(); - for (V1beta1DeviceToleration item : tolerations) { - this.addToTolerations(item); - } - } else { - this.tolerations = null; + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeFromSelectors(V1beta1DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1beta1DeviceSelector item : items) { + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeFromTolerations(V1beta1DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1beta1DeviceToleration item : items) { + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); } return (A) this; } - public A withTolerations(V1beta1DeviceToleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - _visitables.remove("tolerations"); + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; } - if (tolerations != null) { - for (V1beta1DeviceToleration item : tolerations) { - this.addToTolerations(item); - } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1beta1DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasTolerations() { - return this.tolerations != null && !(this.tolerations.isEmpty()); - } - - public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1beta1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public TolerationsNested addNewTolerationLike(V1beta1DeviceToleration item) { - return new TolerationsNested(-1, item); + public SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector item) { + return new SelectorsNested(index, item); } public TolerationsNested setNewTolerationLike(int index,V1beta1DeviceToleration item) { return new TolerationsNested(index, item); } - public TolerationsNested editToleration(int index) { - if (index <= tolerations.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); - } - return this.setNewTolerationLike(index, this.buildToleration(index)); - } - - public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); - } - return this.setNewTolerationLike(0, this.buildToleration(0)); - } - - public TolerationsNested editLastToleration() { - int index = tolerations.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); - } - return this.setNewTolerationLike(index, this.buildToleration(index)); - } - - public TolerationsNested editMatchingToleration(Predicate predicate) { - int index = -1; - for (int i = 0;i < tolerations.size();i++) { - if (predicate.test(tolerations.get(i))) { - index = i; - break; - } + public A setToSelectors(int index,V1beta1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); } - return this.setNewTolerationLike(index, this.buildToleration(index)); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1DeviceSubRequestFluent that = (V1beta1DeviceSubRequestFluent) o; - if (!(Objects.equals(allocationMode, that.allocationMode))) { - return false; - } - if (!(Objects.equals(capacity, that.capacity))) { - return false; - } - if (!(Objects.equals(count, that.count))) { - return false; - } - if (!(Objects.equals(deviceClassName, that.deviceClassName))) { - return false; - } - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(selectors, that.selectors))) { - return false; + public A setToTolerations(int index,V1beta1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - if (!(Objects.equals(tolerations, that.tolerations))) { - return false; + V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); } - return true; - } - - public int hashCode() { - return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); + return (A) this; } public String toString() { @@ -635,12 +541,110 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public A withCapacity(V1beta1CapacityRequirements capacity) { + this._visitables.remove("capacity"); + if (capacity != null) { + this.capacity = new V1beta1CapacityRequirementsBuilder(capacity); + this._visitables.get("capacity").add(this.capacity); + } else { + this.capacity = null; + this._visitables.get("capacity").remove(this.capacity); + } + return (A) this; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public CapacityNested withNewCapacity() { + return new CapacityNested(null); + } + + public CapacityNested withNewCapacityLike(V1beta1CapacityRequirements item) { + return new CapacityNested(item); + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1beta1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(V1beta1DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1beta1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1beta1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(V1beta1DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1beta1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } public class CapacityNested extends V1beta1CapacityRequirementsFluent> implements Nested{ + + V1beta1CapacityRequirementsBuilder builder; + CapacityNested(V1beta1CapacityRequirements item) { this.builder = new V1beta1CapacityRequirementsBuilder(this, item); } - V1beta1CapacityRequirementsBuilder builder; - + public N and() { return (N) V1beta1DeviceSubRequestFluent.this.withCapacity(builder.build()); } @@ -649,16 +653,17 @@ public N endCapacity() { return and(); } - } public class SelectorsNested extends V1beta1DeviceSelectorFluent> implements Nested{ + + V1beta1DeviceSelectorBuilder builder; + int index; + SelectorsNested(int index,V1beta1DeviceSelector item) { this.index = index; this.builder = new V1beta1DeviceSelectorBuilder(this, item); } - V1beta1DeviceSelectorBuilder builder; - int index; - + public N and() { return (N) V1beta1DeviceSubRequestFluent.this.setToSelectors(index, builder.build()); } @@ -667,16 +672,17 @@ public N endSelector() { return and(); } - } public class TolerationsNested extends V1beta1DeviceTolerationFluent> implements Nested{ + + V1beta1DeviceTolerationBuilder builder; + int index; + TolerationsNested(int index,V1beta1DeviceToleration item) { this.index = index; this.builder = new V1beta1DeviceTolerationBuilder(this, item); } - V1beta1DeviceTolerationBuilder builder; - int index; - + public N and() { return (N) V1beta1DeviceSubRequestFluent.this.setToTolerations(index, builder.build()); } @@ -685,7 +691,5 @@ public N endToleration() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintBuilder.java index 8ab38f9a9e..daf42a2147 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceTaintBuilder extends V1beta1DeviceTaintFluent implements VisitableBuilder{ + + V1beta1DeviceTaintFluent fluent; + public V1beta1DeviceTaintBuilder() { this(new V1beta1DeviceTaint()); } @@ -11,17 +14,16 @@ public V1beta1DeviceTaintBuilder(V1beta1DeviceTaintFluent fluent) { this(fluent, new V1beta1DeviceTaint()); } - public V1beta1DeviceTaintBuilder(V1beta1DeviceTaintFluent fluent,V1beta1DeviceTaint instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceTaintBuilder(V1beta1DeviceTaint instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceTaintFluent fluent; + public V1beta1DeviceTaintBuilder(V1beta1DeviceTaintFluent fluent,V1beta1DeviceTaint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1DeviceTaint build() { V1beta1DeviceTaint buildable = new V1beta1DeviceTaint(); buildable.setEffect(fluent.getEffect()); @@ -31,5 +33,4 @@ public V1beta1DeviceTaint build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintFluent.java index 7f89f83148..892d606258 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1DeviceTaintFluent> extends BaseFluent{ + + private String effect; + private String key; + private OffsetDateTime timeAdded; + private String value; + public V1beta1DeviceTaintFluent() { } public V1beta1DeviceTaintFluent(V1beta1DeviceTaint instance) { this.copyInstance(instance); } - private String effect; - private String key; - private OffsetDateTime timeAdded; - private String value; - + protected void copyInstance(V1beta1DeviceTaint instance) { instance = instance != null ? instance : new V1beta1DeviceTaint(); if (instance != null) { @@ -34,58 +36,6 @@ protected void copyInstance(V1beta1DeviceTaint instance) { } } - public String getEffect() { - return this.effect; - } - - public A withEffect(String effect) { - this.effect = effect; - return (A) this; - } - - public boolean hasEffect() { - return this.effect != null; - } - - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public OffsetDateTime getTimeAdded() { - return this.timeAdded; - } - - public A withTimeAdded(OffsetDateTime timeAdded) { - this.timeAdded = timeAdded; - return (A) this; - } - - public boolean hasTimeAdded() { - return this.timeAdded != null; - } - - public String getValue() { - return this.value; - } - - public A withValue(String value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -112,6 +62,38 @@ public boolean equals(Object o) { return true; } + public String getEffect() { + return this.effect; + } + + public String getKey() { + return this.key; + } + + public OffsetDateTime getTimeAdded() { + return this.timeAdded; + } + + public String getValue() { + return this.value; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasTimeAdded() { + return this.timeAdded != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(effect, key, timeAdded, value); } @@ -142,5 +124,24 @@ public String toString() { return sb.toString(); } - + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withTimeAdded(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationBuilder.java index 39fed47c27..eef3c1800b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1DeviceTolerationBuilder extends V1beta1DeviceTolerationFluent implements VisitableBuilder{ + + V1beta1DeviceTolerationFluent fluent; + public V1beta1DeviceTolerationBuilder() { this(new V1beta1DeviceToleration()); } @@ -11,17 +14,16 @@ public V1beta1DeviceTolerationBuilder(V1beta1DeviceTolerationFluent fluent) { this(fluent, new V1beta1DeviceToleration()); } - public V1beta1DeviceTolerationBuilder(V1beta1DeviceTolerationFluent fluent,V1beta1DeviceToleration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1DeviceTolerationBuilder(V1beta1DeviceToleration instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1DeviceTolerationFluent fluent; + public V1beta1DeviceTolerationBuilder(V1beta1DeviceTolerationFluent fluent,V1beta1DeviceToleration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1DeviceToleration build() { V1beta1DeviceToleration buildable = new V1beta1DeviceToleration(); buildable.setEffect(fluent.getEffect()); @@ -32,5 +34,4 @@ public V1beta1DeviceToleration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationFluent.java index 36392b6177..b03ab7d49c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1DeviceTolerationFluent> extends BaseFluent{ - public V1beta1DeviceTolerationFluent() { - } - - public V1beta1DeviceTolerationFluent(V1beta1DeviceToleration instance) { - this.copyInstance(instance); - } + private String effect; private String key; private String operator; private Long tolerationSeconds; private String value; + + public V1beta1DeviceTolerationFluent() { + } + public V1beta1DeviceTolerationFluent(V1beta1DeviceToleration instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1beta1DeviceToleration instance) { instance = instance != null ? instance : new V1beta1DeviceToleration(); if (instance != null) { @@ -36,71 +38,6 @@ protected void copyInstance(V1beta1DeviceToleration instance) { } } - public String getEffect() { - return this.effect; - } - - public A withEffect(String effect) { - this.effect = effect; - return (A) this; - } - - public boolean hasEffect() { - return this.effect != null; - } - - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public String getOperator() { - return this.operator; - } - - public A withOperator(String operator) { - this.operator = operator; - return (A) this; - } - - public boolean hasOperator() { - return this.operator != null; - } - - public Long getTolerationSeconds() { - return this.tolerationSeconds; - } - - public A withTolerationSeconds(Long tolerationSeconds) { - this.tolerationSeconds = tolerationSeconds; - return (A) this; - } - - public boolean hasTolerationSeconds() { - return this.tolerationSeconds != null; - } - - public String getValue() { - return this.value; - } - - public A withValue(String value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -130,6 +67,46 @@ public boolean equals(Object o) { return true; } + public String getEffect() { + return this.effect; + } + + public String getKey() { + return this.key; + } + + public String getOperator() { + return this.operator; + } + + public Long getTolerationSeconds() { + return this.tolerationSeconds; + } + + public String getValue() { + return this.value; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasOperator() { + return this.operator != null; + } + + public boolean hasTolerationSeconds() { + return this.tolerationSeconds != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(effect, key, operator, tolerationSeconds, value); } @@ -165,5 +142,29 @@ public String toString() { return sb.toString(); } - + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public A withTolerationSeconds(Long tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressBuilder.java index 49052ba5ba..10af9cad24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1IPAddressBuilder extends V1beta1IPAddressFluent implements VisitableBuilder{ + + V1beta1IPAddressFluent fluent; + public V1beta1IPAddressBuilder() { this(new V1beta1IPAddress()); } @@ -11,17 +14,16 @@ public V1beta1IPAddressBuilder(V1beta1IPAddressFluent fluent) { this(fluent, new V1beta1IPAddress()); } - public V1beta1IPAddressBuilder(V1beta1IPAddressFluent fluent,V1beta1IPAddress instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1IPAddressBuilder(V1beta1IPAddress instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1IPAddressFluent fluent; + public V1beta1IPAddressBuilder(V1beta1IPAddressFluent fluent,V1beta1IPAddress instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1IPAddress build() { V1beta1IPAddress buildable = new V1beta1IPAddress(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1IPAddress build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java index a443ed4dc9..005ea0cb16 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1IPAddressFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1IPAddressSpecBuilder spec; + public V1beta1IPAddressFluent() { } public V1beta1IPAddressFluent(V1beta1IPAddress instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta1IPAddressSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1IPAddressSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1beta1IPAddress instance) { instance = instance != null ? instance : new V1beta1IPAddress(); @@ -35,60 +45,6 @@ protected void copyInstance(V1beta1IPAddress instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1beta1IPAddressSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta1IPAddressSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta1IPAddressSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta1IPAddressSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1IPAddressSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1beta1IPAddressSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1IPAddressSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1beta1IPAddressSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1IPAddressSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1beta1IPAddressFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1beta1IPAddressSpecFluent> implements Nested{ + + V1beta1IPAddressSpecBuilder builder; + SpecNested(V1beta1IPAddressSpec item) { this.builder = new V1beta1IPAddressSpecBuilder(this, item); } - V1beta1IPAddressSpecBuilder builder; - + public N and() { return (N) V1beta1IPAddressFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java index 967cfbba21..19f7b48c23 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1IPAddressListBuilder extends V1beta1IPAddressListFluent implements VisitableBuilder{ + + V1beta1IPAddressListFluent fluent; + public V1beta1IPAddressListBuilder() { this(new V1beta1IPAddressList()); } @@ -11,17 +14,16 @@ public V1beta1IPAddressListBuilder(V1beta1IPAddressListFluent fluent) { this(fluent, new V1beta1IPAddressList()); } - public V1beta1IPAddressListBuilder(V1beta1IPAddressListFluent fluent,V1beta1IPAddressList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1IPAddressListBuilder(V1beta1IPAddressList instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1IPAddressListFluent fluent; + public V1beta1IPAddressListBuilder(V1beta1IPAddressListFluent fluent,V1beta1IPAddressList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1IPAddressList build() { V1beta1IPAddressList buildable = new V1beta1IPAddressList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1IPAddressList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java index 30ebb09fc8..53ce13e1e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1IPAddressListFluent> extends BaseFluent{ - public V1beta1IPAddressListFluent() { - } - - public V1beta1IPAddressListFluent(V1beta1IPAddressList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta1IPAddressList instance) { - instance = instance != null ? instance : new V1beta1IPAddressList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1beta1IPAddressListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1beta1IPAddressListFluent(V1beta1IPAddressList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1beta1IPAddress item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1beta1IPAddress item : items) { + V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1beta1IPAddress item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1IPAddress item) { + return new ItemsNested(-1, item); } public A addToItems(V1beta1IPAddress... items) { @@ -96,68 +65,31 @@ public A addToItems(V1beta1IPAddress... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1beta1IPAddress item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1beta1IPAddress item : items) { - V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); + V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1beta1IPAddress... items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1IPAddress item : items) { - V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1IPAddress item : items) { - V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta1IPAddressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1beta1IPAddress buildFirstItem() { + return this.items.get(0).build(); } public V1beta1IPAddress buildItem(int index) { return this.items.get(index).build(); } - public V1beta1IPAddress buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1beta1IPAddress buildLastItem() { @@ -173,73 +105,34 @@ public V1beta1IPAddress buildMatchingItem(Predicate pre return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1beta1IPAddressBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta1IPAddress item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1beta1IPAddressList instance) { + instance = instance != null ? instance : new V1beta1IPAddressList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1beta1IPAddress... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta1IPAddress item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta1IPAddress item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta1IPAddress item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate predic return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1IPAddressBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1IPAddress item : items) { + V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta1IPAddress... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1IPAddress item : items) { + V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1IPAddressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta1IPAddress item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta1IPAddress item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1IPAddress item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta1IPAddress... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1IPAddress item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1beta1IPAddressFluent> implements Nested{ + + V1beta1IPAddressBuilder builder; + int index; + ItemsNested(int index,V1beta1IPAddress item) { this.index = index; this.builder = new V1beta1IPAddressBuilder(this, item); } - V1beta1IPAddressBuilder builder; - int index; - + public N and() { return (N) V1beta1IPAddressListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1beta1IPAddressListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java index 129cd4bc53..9710417637 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1IPAddressSpecBuilder extends V1beta1IPAddressSpecFluent implements VisitableBuilder{ + + V1beta1IPAddressSpecFluent fluent; + public V1beta1IPAddressSpecBuilder() { this(new V1beta1IPAddressSpec()); } @@ -11,22 +14,20 @@ public V1beta1IPAddressSpecBuilder(V1beta1IPAddressSpecFluent fluent) { this(fluent, new V1beta1IPAddressSpec()); } - public V1beta1IPAddressSpecBuilder(V1beta1IPAddressSpecFluent fluent,V1beta1IPAddressSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1IPAddressSpecBuilder(V1beta1IPAddressSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1IPAddressSpecFluent fluent; + public V1beta1IPAddressSpecBuilder(V1beta1IPAddressSpecFluent fluent,V1beta1IPAddressSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1IPAddressSpec build() { V1beta1IPAddressSpec buildable = new V1beta1IPAddressSpec(); buildable.setParentRef(fluent.buildParentRef()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecFluent.java index fc51413789..ebe082e5e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1IPAddressSpecFluent> extends BaseFluent{ + + private V1beta1ParentReferenceBuilder parentRef; + public V1beta1IPAddressSpecFluent() { } public V1beta1IPAddressSpecFluent(V1beta1IPAddressSpec instance) { this.copyInstance(instance); } - private V1beta1ParentReferenceBuilder parentRef; + + public V1beta1ParentReference buildParentRef() { + return this.parentRef != null ? this.parentRef.build() : null; + } protected void copyInstance(V1beta1IPAddressSpec instance) { instance = instance != null ? instance : new V1beta1IPAddressSpec(); @@ -29,38 +35,6 @@ protected void copyInstance(V1beta1IPAddressSpec instance) { } } - public V1beta1ParentReference buildParentRef() { - return this.parentRef != null ? this.parentRef.build() : null; - } - - public A withParentRef(V1beta1ParentReference parentRef) { - this._visitables.remove("parentRef"); - if (parentRef != null) { - this.parentRef = new V1beta1ParentReferenceBuilder(parentRef); - this._visitables.get("parentRef").add(this.parentRef); - } else { - this.parentRef = null; - this._visitables.get("parentRef").remove(this.parentRef); - } - return (A) this; - } - - public boolean hasParentRef() { - return this.parentRef != null; - } - - public ParentRefNested withNewParentRef() { - return new ParentRefNested(null); - } - - public ParentRefNested withNewParentRefLike(V1beta1ParentReference item) { - return new ParentRefNested(item); - } - - public ParentRefNested editParentRef() { - return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(null)); - } - public ParentRefNested editOrNewParentRef() { return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(new V1beta1ParentReferenceBuilder().build())); } @@ -69,6 +43,10 @@ public ParentRefNested editOrNewParentRefLike(V1beta1ParentReference item) { return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(item)); } + public ParentRefNested editParentRef() { + return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasParentRef() { + return this.parentRef != null; + } + public int hashCode() { return Objects.hash(parentRef); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public ParentRefNested withNewParentRef() { + return new ParentRefNested(null); + } + + public ParentRefNested withNewParentRefLike(V1beta1ParentReference item) { + return new ParentRefNested(item); + } + + public A withParentRef(V1beta1ParentReference parentRef) { + this._visitables.remove("parentRef"); + if (parentRef != null) { + this.parentRef = new V1beta1ParentReferenceBuilder(parentRef); + this._visitables.get("parentRef").add(this.parentRef); + } else { + this.parentRef = null; + this._visitables.get("parentRef").remove(this.parentRef); + } + return (A) this; + } public class ParentRefNested extends V1beta1ParentReferenceFluent> implements Nested{ + + V1beta1ParentReferenceBuilder builder; + ParentRefNested(V1beta1ParentReference item) { this.builder = new V1beta1ParentReferenceBuilder(this, item); } - V1beta1ParentReferenceBuilder builder; - + public N and() { return (N) V1beta1IPAddressSpecFluent.this.withParentRef(builder.build()); } @@ -114,7 +118,5 @@ public N endParentRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchBuilder.java index 01e9c3159b..f441187d56 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1JSONPatchBuilder extends V1beta1JSONPatchFluent implements VisitableBuilder{ + + V1beta1JSONPatchFluent fluent; + public V1beta1JSONPatchBuilder() { this(new V1beta1JSONPatch()); } @@ -11,22 +14,20 @@ public V1beta1JSONPatchBuilder(V1beta1JSONPatchFluent fluent) { this(fluent, new V1beta1JSONPatch()); } - public V1beta1JSONPatchBuilder(V1beta1JSONPatchFluent fluent,V1beta1JSONPatch instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1JSONPatchBuilder(V1beta1JSONPatch instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1JSONPatchFluent fluent; + public V1beta1JSONPatchBuilder(V1beta1JSONPatchFluent fluent,V1beta1JSONPatch instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1JSONPatch build() { V1beta1JSONPatch buildable = new V1beta1JSONPatch(); buildable.setExpression(fluent.getExpression()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchFluent.java index 5c9c593f29..e944ad4b09 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1JSONPatchFluent> extends BaseFluent{ + + private String expression; + public V1beta1JSONPatchFluent() { } public V1beta1JSONPatchFluent(V1beta1JSONPatch instance) { this.copyInstance(instance); } - private String expression; - + protected void copyInstance(V1beta1JSONPatch instance) { instance = instance != null ? instance : new V1beta1JSONPatch(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1beta1JSONPatch instance) { } } - public String getExpression() { - return this.expression; - } - - public A withExpression(String expression) { - this.expression = expression; - return (A) this; - } - - public boolean hasExpression() { - return this.expression != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getExpression() { + return this.expression; + } + + public boolean hasExpression() { + return this.expression != null; + } + public int hashCode() { return Objects.hash(expression); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java index 95e475566c..fa36de2ee3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1LeaseCandidateBuilder extends V1beta1LeaseCandidateFluent implements VisitableBuilder{ + + V1beta1LeaseCandidateFluent fluent; + public V1beta1LeaseCandidateBuilder() { this(new V1beta1LeaseCandidate()); } @@ -11,17 +14,16 @@ public V1beta1LeaseCandidateBuilder(V1beta1LeaseCandidateFluent fluent) { this(fluent, new V1beta1LeaseCandidate()); } - public V1beta1LeaseCandidateBuilder(V1beta1LeaseCandidateFluent fluent,V1beta1LeaseCandidate instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1LeaseCandidateBuilder(V1beta1LeaseCandidate instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1LeaseCandidateFluent fluent; + public V1beta1LeaseCandidateBuilder(V1beta1LeaseCandidateFluent fluent,V1beta1LeaseCandidate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1LeaseCandidate build() { V1beta1LeaseCandidate buildable = new V1beta1LeaseCandidate(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1LeaseCandidate build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateFluent.java index e9538927fa..08dca52042 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1LeaseCandidateFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1LeaseCandidateSpecBuilder spec; + public V1beta1LeaseCandidateFluent() { } public V1beta1LeaseCandidateFluent(V1beta1LeaseCandidate instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta1LeaseCandidateSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1LeaseCandidateSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1beta1LeaseCandidate instance) { instance = instance != null ? instance : new V1beta1LeaseCandidate(); @@ -35,60 +45,6 @@ protected void copyInstance(V1beta1LeaseCandidate instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1beta1LeaseCandidateSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta1LeaseCandidateSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta1LeaseCandidateSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta1LeaseCandidateSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1LeaseCandidateSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1beta1LeaseCandidateSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1LeaseCandidateSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1beta1LeaseCandidateSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1LeaseCandidateSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1beta1LeaseCandidateFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1beta1LeaseCandidateSpecFluent> implements Nested{ + + V1beta1LeaseCandidateSpecBuilder builder; + SpecNested(V1beta1LeaseCandidateSpec item) { this.builder = new V1beta1LeaseCandidateSpecBuilder(this, item); } - V1beta1LeaseCandidateSpecBuilder builder; - + public N and() { return (N) V1beta1LeaseCandidateFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListBuilder.java index bde65b85fe..0c712c2d32 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1LeaseCandidateListBuilder extends V1beta1LeaseCandidateListFluent implements VisitableBuilder{ + + V1beta1LeaseCandidateListFluent fluent; + public V1beta1LeaseCandidateListBuilder() { this(new V1beta1LeaseCandidateList()); } @@ -11,17 +14,16 @@ public V1beta1LeaseCandidateListBuilder(V1beta1LeaseCandidateListFluent fluen this(fluent, new V1beta1LeaseCandidateList()); } - public V1beta1LeaseCandidateListBuilder(V1beta1LeaseCandidateListFluent fluent,V1beta1LeaseCandidateList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1LeaseCandidateListBuilder(V1beta1LeaseCandidateList instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1LeaseCandidateListFluent fluent; + public V1beta1LeaseCandidateListBuilder(V1beta1LeaseCandidateListFluent fluent,V1beta1LeaseCandidateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1LeaseCandidateList build() { V1beta1LeaseCandidateList buildable = new V1beta1LeaseCandidateList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1LeaseCandidateList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListFluent.java index 1350422cd6..65e8974498 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1LeaseCandidateListFluent> extends BaseFluent{ - public V1beta1LeaseCandidateListFluent() { - } - - public V1beta1LeaseCandidateListFluent(V1beta1LeaseCandidateList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta1LeaseCandidateList instance) { - instance = instance != null ? instance : new V1beta1LeaseCandidateList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1beta1LeaseCandidateListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1beta1LeaseCandidateListFluent(V1beta1LeaseCandidateList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1beta1LeaseCandidate item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1beta1LeaseCandidate item : items) { + V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1beta1LeaseCandidate item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1LeaseCandidate item) { + return new ItemsNested(-1, item); } public A addToItems(V1beta1LeaseCandidate... items) { @@ -96,68 +65,31 @@ public A addToItems(V1beta1LeaseCandidate... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1beta1LeaseCandidate item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1beta1LeaseCandidate item : items) { - V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); + V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1beta1LeaseCandidate... items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1LeaseCandidate item : items) { - V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1LeaseCandidate item : items) { - V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta1LeaseCandidateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1beta1LeaseCandidate buildFirstItem() { + return this.items.get(0).build(); } public V1beta1LeaseCandidate buildItem(int index) { return this.items.get(index).build(); } - public V1beta1LeaseCandidate buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1beta1LeaseCandidate buildLastItem() { @@ -173,73 +105,34 @@ public V1beta1LeaseCandidate buildMatchingItem(Predicate predicate) { - for (V1beta1LeaseCandidateBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta1LeaseCandidate item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1beta1LeaseCandidateList instance) { + instance = instance != null ? instance : new V1beta1LeaseCandidateList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1beta1LeaseCandidate... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta1LeaseCandidate item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta1LeaseCandidate item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta1LeaseCandidate item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate p return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1LeaseCandidateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1LeaseCandidate item : items) { + V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta1LeaseCandidate... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1LeaseCandidate item : items) { + V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1LeaseCandidateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta1LeaseCandidate item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta1LeaseCandidate item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1LeaseCandidate item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta1LeaseCandidate... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1LeaseCandidate item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1beta1LeaseCandidateFluent> implements Nested{ + + V1beta1LeaseCandidateBuilder builder; + int index; + ItemsNested(int index,V1beta1LeaseCandidate item) { this.index = index; this.builder = new V1beta1LeaseCandidateBuilder(this, item); } - V1beta1LeaseCandidateBuilder builder; - int index; - + public N and() { return (N) V1beta1LeaseCandidateListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1beta1LeaseCandidateListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecBuilder.java index 42b316b171..d5ea0072d3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1LeaseCandidateSpecBuilder extends V1beta1LeaseCandidateSpecFluent implements VisitableBuilder{ + + V1beta1LeaseCandidateSpecFluent fluent; + public V1beta1LeaseCandidateSpecBuilder() { this(new V1beta1LeaseCandidateSpec()); } @@ -11,17 +14,16 @@ public V1beta1LeaseCandidateSpecBuilder(V1beta1LeaseCandidateSpecFluent fluen this(fluent, new V1beta1LeaseCandidateSpec()); } - public V1beta1LeaseCandidateSpecBuilder(V1beta1LeaseCandidateSpecFluent fluent,V1beta1LeaseCandidateSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1LeaseCandidateSpecBuilder(V1beta1LeaseCandidateSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1LeaseCandidateSpecFluent fluent; + public V1beta1LeaseCandidateSpecBuilder(V1beta1LeaseCandidateSpecFluent fluent,V1beta1LeaseCandidateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1LeaseCandidateSpec build() { V1beta1LeaseCandidateSpec buildable = new V1beta1LeaseCandidateSpec(); buildable.setBinaryVersion(fluent.getBinaryVersion()); @@ -33,5 +35,4 @@ public V1beta1LeaseCandidateSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecFluent.java index ef706f507a..b8b7717df4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecFluent.java @@ -1,31 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1LeaseCandidateSpecFluent> extends BaseFluent{ - public V1beta1LeaseCandidateSpecFluent() { - } - - public V1beta1LeaseCandidateSpecFluent(V1beta1LeaseCandidateSpec instance) { - this.copyInstance(instance); - } + private String binaryVersion; private String emulationVersion; private String leaseName; private OffsetDateTime pingTime; private OffsetDateTime renewTime; private String strategy; + + public V1beta1LeaseCandidateSpecFluent() { + } + public V1beta1LeaseCandidateSpecFluent(V1beta1LeaseCandidateSpec instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1beta1LeaseCandidateSpec instance) { instance = instance != null ? instance : new V1beta1LeaseCandidateSpec(); if (instance != null) { @@ -38,116 +40,86 @@ protected void copyInstance(V1beta1LeaseCandidateSpec instance) { } } - public String getBinaryVersion() { - return this.binaryVersion; - } - - public A withBinaryVersion(String binaryVersion) { - this.binaryVersion = binaryVersion; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1LeaseCandidateSpecFluent that = (V1beta1LeaseCandidateSpecFluent) o; + if (!(Objects.equals(binaryVersion, that.binaryVersion))) { + return false; + } + if (!(Objects.equals(emulationVersion, that.emulationVersion))) { + return false; + } + if (!(Objects.equals(leaseName, that.leaseName))) { + return false; + } + if (!(Objects.equals(pingTime, that.pingTime))) { + return false; + } + if (!(Objects.equals(renewTime, that.renewTime))) { + return false; + } + if (!(Objects.equals(strategy, that.strategy))) { + return false; + } + return true; } - public boolean hasBinaryVersion() { - return this.binaryVersion != null; + public String getBinaryVersion() { + return this.binaryVersion; } public String getEmulationVersion() { return this.emulationVersion; } - public A withEmulationVersion(String emulationVersion) { - this.emulationVersion = emulationVersion; - return (A) this; - } - - public boolean hasEmulationVersion() { - return this.emulationVersion != null; - } - public String getLeaseName() { return this.leaseName; } - public A withLeaseName(String leaseName) { - this.leaseName = leaseName; - return (A) this; - } - - public boolean hasLeaseName() { - return this.leaseName != null; - } - public OffsetDateTime getPingTime() { return this.pingTime; } - public A withPingTime(OffsetDateTime pingTime) { - this.pingTime = pingTime; - return (A) this; + public OffsetDateTime getRenewTime() { + return this.renewTime; } - public boolean hasPingTime() { - return this.pingTime != null; + public String getStrategy() { + return this.strategy; } - public OffsetDateTime getRenewTime() { - return this.renewTime; + public boolean hasBinaryVersion() { + return this.binaryVersion != null; } - public A withRenewTime(OffsetDateTime renewTime) { - this.renewTime = renewTime; - return (A) this; + public boolean hasEmulationVersion() { + return this.emulationVersion != null; } - public boolean hasRenewTime() { - return this.renewTime != null; + public boolean hasLeaseName() { + return this.leaseName != null; } - public String getStrategy() { - return this.strategy; + public boolean hasPingTime() { + return this.pingTime != null; } - public A withStrategy(String strategy) { - this.strategy = strategy; - return (A) this; + public boolean hasRenewTime() { + return this.renewTime != null; } public boolean hasStrategy() { return this.strategy != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1LeaseCandidateSpecFluent that = (V1beta1LeaseCandidateSpecFluent) o; - if (!(Objects.equals(binaryVersion, that.binaryVersion))) { - return false; - } - if (!(Objects.equals(emulationVersion, that.emulationVersion))) { - return false; - } - if (!(Objects.equals(leaseName, that.leaseName))) { - return false; - } - if (!(Objects.equals(pingTime, that.pingTime))) { - return false; - } - if (!(Objects.equals(renewTime, that.renewTime))) { - return false; - } - if (!(Objects.equals(strategy, that.strategy))) { - return false; - } - return true; - } - public int hashCode() { return Objects.hash(binaryVersion, emulationVersion, leaseName, pingTime, renewTime, strategy); } @@ -188,5 +160,34 @@ public String toString() { return sb.toString(); } - + public A withBinaryVersion(String binaryVersion) { + this.binaryVersion = binaryVersion; + return (A) this; + } + + public A withEmulationVersion(String emulationVersion) { + this.emulationVersion = emulationVersion; + return (A) this; + } + + public A withLeaseName(String leaseName) { + this.leaseName = leaseName; + return (A) this; + } + + public A withPingTime(OffsetDateTime pingTime) { + this.pingTime = pingTime; + return (A) this; + } + + public A withRenewTime(OffsetDateTime renewTime) { + this.renewTime = renewTime; + return (A) this; + } + + public A withStrategy(String strategy) { + this.strategy = strategy; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionBuilder.java index 7c33d10b33..91f538dc97 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1MatchConditionBuilder extends V1beta1MatchConditionFluent implements VisitableBuilder{ + + V1beta1MatchConditionFluent fluent; + public V1beta1MatchConditionBuilder() { this(new V1beta1MatchCondition()); } @@ -11,17 +14,16 @@ public V1beta1MatchConditionBuilder(V1beta1MatchConditionFluent fluent) { this(fluent, new V1beta1MatchCondition()); } - public V1beta1MatchConditionBuilder(V1beta1MatchConditionFluent fluent,V1beta1MatchCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1MatchConditionBuilder(V1beta1MatchCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1MatchConditionFluent fluent; + public V1beta1MatchConditionBuilder(V1beta1MatchConditionFluent fluent,V1beta1MatchCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1MatchCondition build() { V1beta1MatchCondition buildable = new V1beta1MatchCondition(); buildable.setExpression(fluent.getExpression()); @@ -29,5 +31,4 @@ public V1beta1MatchCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionFluent.java index f6de84ec0e..8ea179ca2e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1MatchConditionFluent> extends BaseFluent{ + + private String expression; + private String name; + public V1beta1MatchConditionFluent() { } public V1beta1MatchConditionFluent(V1beta1MatchCondition instance) { this.copyInstance(instance); } - private String expression; - private String name; - + protected void copyInstance(V1beta1MatchCondition instance) { instance = instance != null ? instance : new V1beta1MatchCondition(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1beta1MatchCondition instance) { } } - public String getExpression() { - return this.expression; - } - - public A withExpression(String expression) { - this.expression = expression; - return (A) this; - } - - public boolean hasExpression() { - return this.expression != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getExpression() { + return this.expression; + } + + public String getName() { + return this.name; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(expression, name); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesBuilder.java index 2a0b95afa8..472e29112d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1MatchResourcesBuilder extends V1beta1MatchResourcesFluent implements VisitableBuilder{ + + V1beta1MatchResourcesFluent fluent; + public V1beta1MatchResourcesBuilder() { this(new V1beta1MatchResources()); } @@ -11,17 +14,16 @@ public V1beta1MatchResourcesBuilder(V1beta1MatchResourcesFluent fluent) { this(fluent, new V1beta1MatchResources()); } - public V1beta1MatchResourcesBuilder(V1beta1MatchResourcesFluent fluent,V1beta1MatchResources instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1MatchResourcesBuilder(V1beta1MatchResources instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1MatchResourcesFluent fluent; + public V1beta1MatchResourcesBuilder(V1beta1MatchResourcesFluent fluent,V1beta1MatchResources instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1MatchResources build() { V1beta1MatchResources buildable = new V1beta1MatchResources(); buildable.setExcludeResourceRules(fluent.buildExcludeResourceRules()); @@ -32,5 +34,4 @@ public V1beta1MatchResources build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesFluent.java index 6739f19b1f..e501e2966b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesFluent.java @@ -1,78 +1,79 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1MatchResourcesFluent> extends BaseFluent{ - public V1beta1MatchResourcesFluent() { - } - - public V1beta1MatchResourcesFluent(V1beta1MatchResources instance) { - this.copyInstance(instance); - } + private ArrayList excludeResourceRules; private String matchPolicy; private V1LabelSelectorBuilder namespaceSelector; private V1LabelSelectorBuilder objectSelector; private ArrayList resourceRules; - - protected void copyInstance(V1beta1MatchResources instance) { - instance = instance != null ? instance : new V1beta1MatchResources(); - if (instance != null) { - this.withExcludeResourceRules(instance.getExcludeResourceRules()); - this.withMatchPolicy(instance.getMatchPolicy()); - this.withNamespaceSelector(instance.getNamespaceSelector()); - this.withObjectSelector(instance.getObjectSelector()); - this.withResourceRules(instance.getResourceRules()); - } + + public V1beta1MatchResourcesFluent() { } - public A addToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item) { + public V1beta1MatchResourcesFluent(V1beta1MatchResources instance) { + this.copyInstance(instance); + } + + public A addAllToExcludeResourceRules(Collection items) { if (this.excludeResourceRules == null) { this.excludeResourceRules = new ArrayList(); } - V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.add(builder); - } else { + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.add(index, builder); + this.excludeResourceRules.add(builder); } return (A) this; } - public A setToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item) { - if (this.excludeResourceRules == null) { - this.excludeResourceRules = new ArrayList(); + public A addAllToResourceRules(Collection items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); } - V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.add(builder); - } else { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.set(index, builder); + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); } return (A) this; } + public ExcludeResourceRulesNested addNewExcludeResourceRule() { + return new ExcludeResourceRulesNested(-1, null); + } + + public ExcludeResourceRulesNested addNewExcludeResourceRuleLike(V1beta1NamedRuleWithOperations item) { + return new ExcludeResourceRulesNested(-1, item); + } + + public ResourceRulesNested addNewResourceRule() { + return new ResourceRulesNested(-1, null); + } + + public ResourceRulesNested addNewResourceRuleLike(V1beta1NamedRuleWithOperations item) { + return new ResourceRulesNested(-1, item); + } + public A addToExcludeResourceRules(V1beta1NamedRuleWithOperations... items) { if (this.excludeResourceRules == null) { this.excludeResourceRules = new ArrayList(); @@ -85,74 +86,72 @@ public A addToExcludeResourceRules(V1beta1NamedRuleWithOperations... items) { return (A) this; } - public A addAllToExcludeResourceRules(Collection items) { + public A addToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item) { if (this.excludeResourceRules == null) { this.excludeResourceRules = new ArrayList(); } - for (V1beta1NamedRuleWithOperations item : items) { - V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + if (index < 0 || index >= excludeResourceRules.size()) { _visitables.get("excludeResourceRules").add(builder); - this.excludeResourceRules.add(builder); + excludeResourceRules.add(builder); + } else { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(index, builder); } return (A) this; } - public A removeFromExcludeResourceRules(V1beta1NamedRuleWithOperations... items) { - if (this.excludeResourceRules == null) { - return (A) this; + public A addToResourceRules(V1beta1NamedRuleWithOperations... items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); } for (V1beta1NamedRuleWithOperations item : items) { V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - _visitables.get("excludeResourceRules").remove(builder); - this.excludeResourceRules.remove(builder); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); } return (A) this; } - public A removeAllFromExcludeResourceRules(Collection items) { - if (this.excludeResourceRules == null) { - return (A) this; + public A addToResourceRules(int index,V1beta1NamedRuleWithOperations item) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); } - for (V1beta1NamedRuleWithOperations item : items) { - V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - _visitables.get("excludeResourceRules").remove(builder); - this.excludeResourceRules.remove(builder); + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.add(index, builder); } return (A) this; } - public A removeMatchingFromExcludeResourceRules(Predicate predicate) { - if (excludeResourceRules == null) { - return (A) this; - } - Iterator each = excludeResourceRules.iterator(); - List visitables = _visitables.get("excludeResourceRules"); - while (each.hasNext()) { - V1beta1NamedRuleWithOperationsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1beta1NamedRuleWithOperations buildExcludeResourceRule(int index) { + return this.excludeResourceRules.get(index).build(); } public List buildExcludeResourceRules() { return this.excludeResourceRules != null ? build(excludeResourceRules) : null; } - public V1beta1NamedRuleWithOperations buildExcludeResourceRule(int index) { - return this.excludeResourceRules.get(index).build(); - } - public V1beta1NamedRuleWithOperations buildFirstExcludeResourceRule() { return this.excludeResourceRules.get(0).build(); } + public V1beta1NamedRuleWithOperations buildFirstResourceRule() { + return this.resourceRules.get(0).build(); + } + public V1beta1NamedRuleWithOperations buildLastExcludeResourceRule() { return this.excludeResourceRules.get(excludeResourceRules.size() - 1).build(); } + public V1beta1NamedRuleWithOperations buildLastResourceRule() { + return this.resourceRules.get(resourceRules.size() - 1).build(); + } + public V1beta1NamedRuleWithOperations buildMatchingExcludeResourceRule(Predicate predicate) { for (V1beta1NamedRuleWithOperationsBuilder item : excludeResourceRules) { if (predicate.test(item)) { @@ -162,61 +161,44 @@ public V1beta1NamedRuleWithOperations buildMatchingExcludeResourceRule(Predicate return null; } - public boolean hasMatchingExcludeResourceRule(Predicate predicate) { - for (V1beta1NamedRuleWithOperationsBuilder item : excludeResourceRules) { + public V1beta1NamedRuleWithOperations buildMatchingResourceRule(Predicate predicate) { + for (V1beta1NamedRuleWithOperationsBuilder item : resourceRules) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; - } - - public A withExcludeResourceRules(List excludeResourceRules) { - if (this.excludeResourceRules != null) { - this._visitables.get("excludeResourceRules").clear(); - } - if (excludeResourceRules != null) { - this.excludeResourceRules = new ArrayList(); - for (V1beta1NamedRuleWithOperations item : excludeResourceRules) { - this.addToExcludeResourceRules(item); - } - } else { - this.excludeResourceRules = null; - } - return (A) this; + return null; } - public A withExcludeResourceRules(V1beta1NamedRuleWithOperations... excludeResourceRules) { - if (this.excludeResourceRules != null) { - this.excludeResourceRules.clear(); - _visitables.remove("excludeResourceRules"); - } - if (excludeResourceRules != null) { - for (V1beta1NamedRuleWithOperations item : excludeResourceRules) { - this.addToExcludeResourceRules(item); - } - } - return (A) this; + public V1LabelSelector buildNamespaceSelector() { + return this.namespaceSelector != null ? this.namespaceSelector.build() : null; } - public boolean hasExcludeResourceRules() { - return this.excludeResourceRules != null && !(this.excludeResourceRules.isEmpty()); + public V1LabelSelector buildObjectSelector() { + return this.objectSelector != null ? this.objectSelector.build() : null; } - public ExcludeResourceRulesNested addNewExcludeResourceRule() { - return new ExcludeResourceRulesNested(-1, null); + public V1beta1NamedRuleWithOperations buildResourceRule(int index) { + return this.resourceRules.get(index).build(); } - public ExcludeResourceRulesNested addNewExcludeResourceRuleLike(V1beta1NamedRuleWithOperations item) { - return new ExcludeResourceRulesNested(-1, item); + public List buildResourceRules() { + return this.resourceRules != null ? build(resourceRules) : null; } - public ExcludeResourceRulesNested setNewExcludeResourceRuleLike(int index,V1beta1NamedRuleWithOperations item) { - return new ExcludeResourceRulesNested(index, item); + protected void copyInstance(V1beta1MatchResources instance) { + instance = instance != null ? instance : new V1beta1MatchResources(); + if (instance != null) { + this.withExcludeResourceRules(instance.getExcludeResourceRules()); + this.withMatchPolicy(instance.getMatchPolicy()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withObjectSelector(instance.getObjectSelector()); + this.withResourceRules(instance.getResourceRules()); + } } public ExcludeResourceRulesNested editExcludeResourceRule(int index) { - if (index <= excludeResourceRules.size()) { + if (excludeResourceRules.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "excludeResourceRules")); } return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); @@ -229,6 +211,13 @@ public ExcludeResourceRulesNested editFirstExcludeResourceRule() { return this.setNewExcludeResourceRuleLike(0, this.buildExcludeResourceRule(0)); } + public ResourceRulesNested editFirstResourceRule() { + if (resourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); + } + public ExcludeResourceRulesNested editLastExcludeResourceRule() { int index = excludeResourceRules.size() - 1; if (index < 0) { @@ -237,6 +226,14 @@ public ExcludeResourceRulesNested editLastExcludeResourceRule() { return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); } + public ResourceRulesNested editLastResourceRule() { + int index = resourceRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + } + public ExcludeResourceRulesNested editMatchingExcludeResourceRule(Predicate predicate) { int index = -1; for (int i = 0;i < excludeResourceRules.size();i++) { @@ -251,149 +248,158 @@ public ExcludeResourceRulesNested editMatchingExcludeResourceRule(Predicate editMatchingResourceRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceRules.size();i++) { + if (predicate.test(resourceRules.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } - public A withMatchPolicy(String matchPolicy) { - this.matchPolicy = matchPolicy; - return (A) this; + public NamespaceSelectorNested editNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); } - public boolean hasMatchPolicy() { - return this.matchPolicy != null; + public ObjectSelectorNested editObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); } - public V1LabelSelector buildNamespaceSelector() { - return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + public NamespaceSelectorNested editOrNewNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public A withNamespaceSelector(V1LabelSelector namespaceSelector) { - this._visitables.remove("namespaceSelector"); - if (namespaceSelector != null) { - this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); - this._visitables.get("namespaceSelector").add(this.namespaceSelector); - } else { - this.namespaceSelector = null; - this._visitables.get("namespaceSelector").remove(this.namespaceSelector); - } - return (A) this; - } - - public boolean hasNamespaceSelector() { - return this.namespaceSelector != null; - } - - public NamespaceSelectorNested withNewNamespaceSelector() { - return new NamespaceSelectorNested(null); + public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); } - public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { - return new NamespaceSelectorNested(item); + public ObjectSelectorNested editOrNewObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public NamespaceSelectorNested editNamespaceSelector() { - return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); + public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); } - public NamespaceSelectorNested editOrNewNamespaceSelector() { - return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + public ResourceRulesNested editResourceRule(int index) { + if (resourceRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } - public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { - return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1MatchResourcesFluent that = (V1beta1MatchResourcesFluent) o; + if (!(Objects.equals(excludeResourceRules, that.excludeResourceRules))) { + return false; + } + if (!(Objects.equals(matchPolicy, that.matchPolicy))) { + return false; + } + if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { + return false; + } + if (!(Objects.equals(objectSelector, that.objectSelector))) { + return false; + } + if (!(Objects.equals(resourceRules, that.resourceRules))) { + return false; + } + return true; } - public V1LabelSelector buildObjectSelector() { - return this.objectSelector != null ? this.objectSelector.build() : null; + public String getMatchPolicy() { + return this.matchPolicy; } - public A withObjectSelector(V1LabelSelector objectSelector) { - this._visitables.remove("objectSelector"); - if (objectSelector != null) { - this.objectSelector = new V1LabelSelectorBuilder(objectSelector); - this._visitables.get("objectSelector").add(this.objectSelector); - } else { - this.objectSelector = null; - this._visitables.get("objectSelector").remove(this.objectSelector); - } - return (A) this; + public boolean hasExcludeResourceRules() { + return this.excludeResourceRules != null && !(this.excludeResourceRules.isEmpty()); } - public boolean hasObjectSelector() { - return this.objectSelector != null; + public boolean hasMatchPolicy() { + return this.matchPolicy != null; } - public ObjectSelectorNested withNewObjectSelector() { - return new ObjectSelectorNested(null); + public boolean hasMatchingExcludeResourceRule(Predicate predicate) { + for (V1beta1NamedRuleWithOperationsBuilder item : excludeResourceRules) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { - return new ObjectSelectorNested(item); + public boolean hasMatchingResourceRule(Predicate predicate) { + for (V1beta1NamedRuleWithOperationsBuilder item : resourceRules) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public ObjectSelectorNested editObjectSelector() { - return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); + public boolean hasNamespaceSelector() { + return this.namespaceSelector != null; } - public ObjectSelectorNested editOrNewObjectSelector() { - return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); + public boolean hasObjectSelector() { + return this.objectSelector != null; } - public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { - return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); + public boolean hasResourceRules() { + return this.resourceRules != null && !(this.resourceRules.isEmpty()); } - public A addToResourceRules(int index,V1beta1NamedRuleWithOperations item) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); - } - V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); - } else { - _visitables.get("resourceRules").add(builder); - resourceRules.add(index, builder); - } - return (A) this; + public int hashCode() { + return Objects.hash(excludeResourceRules, matchPolicy, namespaceSelector, objectSelector, resourceRules); } - public A setToResourceRules(int index,V1beta1NamedRuleWithOperations item) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + public A removeAllFromExcludeResourceRules(Collection items) { + if (this.excludeResourceRules == null) { + return (A) this; } - V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); - } else { - _visitables.get("resourceRules").add(builder); - resourceRules.set(index, builder); + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").remove(builder); + this.excludeResourceRules.remove(builder); } return (A) this; } - public A addToResourceRules(V1beta1NamedRuleWithOperations... items) { + public A removeAllFromResourceRules(Collection items) { if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + return (A) this; } for (V1beta1NamedRuleWithOperations item : items) { V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - _visitables.get("resourceRules").add(builder); - this.resourceRules.add(builder); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); } return (A) this; } - public A addAllToResourceRules(Collection items) { - if (this.resourceRules == null) { - this.resourceRules = new ArrayList(); + public A removeFromExcludeResourceRules(V1beta1NamedRuleWithOperations... items) { + if (this.excludeResourceRules == null) { + return (A) this; } for (V1beta1NamedRuleWithOperations item : items) { V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - _visitables.get("resourceRules").add(builder); - this.resourceRules.add(builder); + _visitables.get("excludeResourceRules").remove(builder); + this.excludeResourceRules.remove(builder); } return (A) this; } @@ -410,14 +416,18 @@ public A removeFromResourceRules(V1beta1NamedRuleWithOperations... items) { return (A) this; } - public A removeAllFromResourceRules(Collection items) { - if (this.resourceRules == null) { + public A removeMatchingFromExcludeResourceRules(Predicate predicate) { + if (excludeResourceRules == null) { return (A) this; } - for (V1beta1NamedRuleWithOperations item : items) { - V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - _visitables.get("resourceRules").remove(builder); - this.resourceRules.remove(builder); + Iterator each = excludeResourceRules.iterator(); + List visitables = _visitables.get("excludeResourceRules"); + while (each.hasNext()) { + V1beta1NamedRuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -438,191 +448,185 @@ public A removeMatchingFromResourceRules(Predicate buildResourceRules() { - return this.resourceRules != null ? build(resourceRules) : null; - } - - public V1beta1NamedRuleWithOperations buildResourceRule(int index) { - return this.resourceRules.get(index).build(); + public ExcludeResourceRulesNested setNewExcludeResourceRuleLike(int index,V1beta1NamedRuleWithOperations item) { + return new ExcludeResourceRulesNested(index, item); } - public V1beta1NamedRuleWithOperations buildFirstResourceRule() { - return this.resourceRules.get(0).build(); + public ResourceRulesNested setNewResourceRuleLike(int index,V1beta1NamedRuleWithOperations item) { + return new ResourceRulesNested(index, item); } - public V1beta1NamedRuleWithOperations buildLastResourceRule() { - return this.resourceRules.get(resourceRules.size() - 1).build(); + public A setToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item) { + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + if (index < 0 || index >= excludeResourceRules.size()) { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.add(builder); + } else { + _visitables.get("excludeResourceRules").add(builder); + excludeResourceRules.set(index, builder); + } + return (A) this; } - public V1beta1NamedRuleWithOperations buildMatchingResourceRule(Predicate predicate) { - for (V1beta1NamedRuleWithOperationsBuilder item : resourceRules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A setToResourceRules(int index,V1beta1NamedRuleWithOperations item) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + if (index < 0 || index >= resourceRules.size()) { + _visitables.get("resourceRules").add(builder); + resourceRules.add(builder); + } else { + _visitables.get("resourceRules").add(builder); + resourceRules.set(index, builder); + } + return (A) this; } - public boolean hasMatchingResourceRule(Predicate predicate) { - for (V1beta1NamedRuleWithOperationsBuilder item : resourceRules) { - if (predicate.test(item)) { - return true; - } - } - return false; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(excludeResourceRules == null) && !(excludeResourceRules.isEmpty())) { + sb.append("excludeResourceRules:"); + sb.append(excludeResourceRules); + sb.append(","); + } + if (!(matchPolicy == null)) { + sb.append("matchPolicy:"); + sb.append(matchPolicy); + sb.append(","); + } + if (!(namespaceSelector == null)) { + sb.append("namespaceSelector:"); + sb.append(namespaceSelector); + sb.append(","); + } + if (!(objectSelector == null)) { + sb.append("objectSelector:"); + sb.append(objectSelector); + sb.append(","); + } + if (!(resourceRules == null) && !(resourceRules.isEmpty())) { + sb.append("resourceRules:"); + sb.append(resourceRules); + } + sb.append("}"); + return sb.toString(); } - public A withResourceRules(List resourceRules) { - if (this.resourceRules != null) { - this._visitables.get("resourceRules").clear(); + public A withExcludeResourceRules(List excludeResourceRules) { + if (this.excludeResourceRules != null) { + this._visitables.get("excludeResourceRules").clear(); } - if (resourceRules != null) { - this.resourceRules = new ArrayList(); - for (V1beta1NamedRuleWithOperations item : resourceRules) { - this.addToResourceRules(item); + if (excludeResourceRules != null) { + this.excludeResourceRules = new ArrayList(); + for (V1beta1NamedRuleWithOperations item : excludeResourceRules) { + this.addToExcludeResourceRules(item); } } else { - this.resourceRules = null; + this.excludeResourceRules = null; } return (A) this; } - public A withResourceRules(V1beta1NamedRuleWithOperations... resourceRules) { - if (this.resourceRules != null) { - this.resourceRules.clear(); - _visitables.remove("resourceRules"); + public A withExcludeResourceRules(V1beta1NamedRuleWithOperations... excludeResourceRules) { + if (this.excludeResourceRules != null) { + this.excludeResourceRules.clear(); + _visitables.remove("excludeResourceRules"); } - if (resourceRules != null) { - for (V1beta1NamedRuleWithOperations item : resourceRules) { - this.addToResourceRules(item); + if (excludeResourceRules != null) { + for (V1beta1NamedRuleWithOperations item : excludeResourceRules) { + this.addToExcludeResourceRules(item); } } return (A) this; } - public boolean hasResourceRules() { - return this.resourceRules != null && !(this.resourceRules.isEmpty()); + public A withMatchPolicy(String matchPolicy) { + this.matchPolicy = matchPolicy; + return (A) this; } - public ResourceRulesNested addNewResourceRule() { - return new ResourceRulesNested(-1, null); + public A withNamespaceSelector(V1LabelSelector namespaceSelector) { + this._visitables.remove("namespaceSelector"); + if (namespaceSelector != null) { + this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); + this._visitables.get("namespaceSelector").add(this.namespaceSelector); + } else { + this.namespaceSelector = null; + this._visitables.get("namespaceSelector").remove(this.namespaceSelector); + } + return (A) this; } - public ResourceRulesNested addNewResourceRuleLike(V1beta1NamedRuleWithOperations item) { - return new ResourceRulesNested(-1, item); + public NamespaceSelectorNested withNewNamespaceSelector() { + return new NamespaceSelectorNested(null); } - public ResourceRulesNested setNewResourceRuleLike(int index,V1beta1NamedRuleWithOperations item) { - return new ResourceRulesNested(index, item); + public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { + return new NamespaceSelectorNested(item); } - public ResourceRulesNested editResourceRule(int index) { - if (index <= resourceRules.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); - } - return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + public ObjectSelectorNested withNewObjectSelector() { + return new ObjectSelectorNested(null); } - public ResourceRulesNested editFirstResourceRule() { - if (resourceRules.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); - } - return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); + public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { + return new ObjectSelectorNested(item); } - public ResourceRulesNested editLastResourceRule() { - int index = resourceRules.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + public A withObjectSelector(V1LabelSelector objectSelector) { + this._visitables.remove("objectSelector"); + if (objectSelector != null) { + this.objectSelector = new V1LabelSelectorBuilder(objectSelector); + this._visitables.get("objectSelector").add(this.objectSelector); + } else { + this.objectSelector = null; + this._visitables.get("objectSelector").remove(this.objectSelector); } - return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + return (A) this; } - public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { - int index = -1; - for (int i = 0;i < resourceRules.size();i++) { - if (predicate.test(resourceRules.get(i))) { - index = i; - break; - } + public A withResourceRules(List resourceRules) { + if (this.resourceRules != null) { + this._visitables.get("resourceRules").clear(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceRules")); + if (resourceRules != null) { + this.resourceRules = new ArrayList(); + for (V1beta1NamedRuleWithOperations item : resourceRules) { + this.addToResourceRules(item); + } + } else { + this.resourceRules = null; } - return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1MatchResourcesFluent that = (V1beta1MatchResourcesFluent) o; - if (!(Objects.equals(excludeResourceRules, that.excludeResourceRules))) { - return false; - } - if (!(Objects.equals(matchPolicy, that.matchPolicy))) { - return false; - } - if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { - return false; - } - if (!(Objects.equals(objectSelector, that.objectSelector))) { - return false; + public A withResourceRules(V1beta1NamedRuleWithOperations... resourceRules) { + if (this.resourceRules != null) { + this.resourceRules.clear(); + _visitables.remove("resourceRules"); } - if (!(Objects.equals(resourceRules, that.resourceRules))) { - return false; + if (resourceRules != null) { + for (V1beta1NamedRuleWithOperations item : resourceRules) { + this.addToResourceRules(item); + } } - return true; + return (A) this; } + public class ExcludeResourceRulesNested extends V1beta1NamedRuleWithOperationsFluent> implements Nested{ - public int hashCode() { - return Objects.hash(excludeResourceRules, matchPolicy, namespaceSelector, objectSelector, resourceRules); - } + V1beta1NamedRuleWithOperationsBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(excludeResourceRules == null) && !(excludeResourceRules.isEmpty())) { - sb.append("excludeResourceRules:"); - sb.append(excludeResourceRules); - sb.append(","); - } - if (!(matchPolicy == null)) { - sb.append("matchPolicy:"); - sb.append(matchPolicy); - sb.append(","); - } - if (!(namespaceSelector == null)) { - sb.append("namespaceSelector:"); - sb.append(namespaceSelector); - sb.append(","); - } - if (!(objectSelector == null)) { - sb.append("objectSelector:"); - sb.append(objectSelector); - sb.append(","); - } - if (!(resourceRules == null) && !(resourceRules.isEmpty())) { - sb.append("resourceRules:"); - sb.append(resourceRules); - } - sb.append("}"); - return sb.toString(); - } - public class ExcludeResourceRulesNested extends V1beta1NamedRuleWithOperationsFluent> implements Nested{ ExcludeResourceRulesNested(int index,V1beta1NamedRuleWithOperations item) { this.index = index; this.builder = new V1beta1NamedRuleWithOperationsBuilder(this, item); } - V1beta1NamedRuleWithOperationsBuilder builder; - int index; - + public N and() { return (N) V1beta1MatchResourcesFluent.this.setToExcludeResourceRules(index, builder.build()); } @@ -631,14 +635,15 @@ public N endExcludeResourceRule() { return and(); } - } public class NamespaceSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + NamespaceSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1beta1MatchResourcesFluent.this.withNamespaceSelector(builder.build()); } @@ -647,14 +652,15 @@ public N endNamespaceSelector() { return and(); } - } public class ObjectSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + ObjectSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1beta1MatchResourcesFluent.this.withObjectSelector(builder.build()); } @@ -663,16 +669,17 @@ public N endObjectSelector() { return and(); } - } public class ResourceRulesNested extends V1beta1NamedRuleWithOperationsFluent> implements Nested{ + + V1beta1NamedRuleWithOperationsBuilder builder; + int index; + ResourceRulesNested(int index,V1beta1NamedRuleWithOperations item) { this.index = index; this.builder = new V1beta1NamedRuleWithOperationsBuilder(this, item); } - V1beta1NamedRuleWithOperationsBuilder builder; - int index; - + public N and() { return (N) V1beta1MatchResourcesFluent.this.setToResourceRules(index, builder.build()); } @@ -681,7 +688,5 @@ public N endResourceRule() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingBuilder.java index a600b4c42a..2de891bb8f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1MutatingAdmissionPolicyBindingBuilder extends V1beta1MutatingAdmissionPolicyBindingFluent implements VisitableBuilder{ + + V1beta1MutatingAdmissionPolicyBindingFluent fluent; + public V1beta1MutatingAdmissionPolicyBindingBuilder() { this(new V1beta1MutatingAdmissionPolicyBinding()); } @@ -11,17 +14,16 @@ public V1beta1MutatingAdmissionPolicyBindingBuilder(V1beta1MutatingAdmissionPoli this(fluent, new V1beta1MutatingAdmissionPolicyBinding()); } - public V1beta1MutatingAdmissionPolicyBindingBuilder(V1beta1MutatingAdmissionPolicyBindingFluent fluent,V1beta1MutatingAdmissionPolicyBinding instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1MutatingAdmissionPolicyBindingBuilder(V1beta1MutatingAdmissionPolicyBinding instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1MutatingAdmissionPolicyBindingFluent fluent; + public V1beta1MutatingAdmissionPolicyBindingBuilder(V1beta1MutatingAdmissionPolicyBindingFluent fluent,V1beta1MutatingAdmissionPolicyBinding instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1MutatingAdmissionPolicyBinding build() { V1beta1MutatingAdmissionPolicyBinding buildable = new V1beta1MutatingAdmissionPolicyBinding(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1MutatingAdmissionPolicyBinding build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingFluent.java index b5d5ad3847..59e4b2af68 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1MutatingAdmissionPolicyBindingFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1MutatingAdmissionPolicyBindingSpecBuilder spec; + public V1beta1MutatingAdmissionPolicyBindingFluent() { } public V1beta1MutatingAdmissionPolicyBindingFluent(V1beta1MutatingAdmissionPolicyBinding instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta1MutatingAdmissionPolicyBindingSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1MutatingAdmissionPolicyBindingSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1beta1MutatingAdmissionPolicyBinding instance) { instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicyBinding(); @@ -35,60 +45,6 @@ protected void copyInstance(V1beta1MutatingAdmissionPolicyBinding instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1beta1MutatingAdmissionPolicyBindingSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta1MutatingAdmissionPolicyBindingSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta1MutatingAdmissionPolicyBindingSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta1MutatingAdmissionPolicyBindingSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1MutatingAdmissionPolicyBindingSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1beta1MutatingAdmissionPolicyBindingSpec return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1MutatingAdmissionPolicyBindingSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1beta1MutatingAdmissionPolicyBindingSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1MutatingAdmissionPolicyBindingSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1beta1MutatingAdmissionPolicyBindingFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1beta1MutatingAdmissionPolicyBindingSpecFluent> implements Nested{ + + V1beta1MutatingAdmissionPolicyBindingSpecBuilder builder; + SpecNested(V1beta1MutatingAdmissionPolicyBindingSpec item) { this.builder = new V1beta1MutatingAdmissionPolicyBindingSpecBuilder(this, item); } - V1beta1MutatingAdmissionPolicyBindingSpecBuilder builder; - + public N and() { return (N) V1beta1MutatingAdmissionPolicyBindingFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListBuilder.java index 7dbdcbbaa6..233eaacca0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1MutatingAdmissionPolicyBindingListBuilder extends V1beta1MutatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ + + V1beta1MutatingAdmissionPolicyBindingListFluent fluent; + public V1beta1MutatingAdmissionPolicyBindingListBuilder() { this(new V1beta1MutatingAdmissionPolicyBindingList()); } @@ -11,17 +14,16 @@ public V1beta1MutatingAdmissionPolicyBindingListBuilder(V1beta1MutatingAdmission this(fluent, new V1beta1MutatingAdmissionPolicyBindingList()); } - public V1beta1MutatingAdmissionPolicyBindingListBuilder(V1beta1MutatingAdmissionPolicyBindingListFluent fluent,V1beta1MutatingAdmissionPolicyBindingList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1MutatingAdmissionPolicyBindingListBuilder(V1beta1MutatingAdmissionPolicyBindingList instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1MutatingAdmissionPolicyBindingListFluent fluent; + public V1beta1MutatingAdmissionPolicyBindingListBuilder(V1beta1MutatingAdmissionPolicyBindingListFluent fluent,V1beta1MutatingAdmissionPolicyBindingList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1MutatingAdmissionPolicyBindingList build() { V1beta1MutatingAdmissionPolicyBindingList buildable = new V1beta1MutatingAdmissionPolicyBindingList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1MutatingAdmissionPolicyBindingList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListFluent.java index bef30c7c3e..88cbc04860 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1MutatingAdmissionPolicyBindingListFluent> extends BaseFluent{ - public V1beta1MutatingAdmissionPolicyBindingListFluent() { - } - - public V1beta1MutatingAdmissionPolicyBindingListFluent(V1beta1MutatingAdmissionPolicyBindingList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta1MutatingAdmissionPolicyBindingList instance) { - instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicyBindingList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1beta1MutatingAdmissionPolicyBindingListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1beta1MutatingAdmissionPolicyBindingListFluent(V1beta1MutatingAdmissionPolicyBindingList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1beta1MutatingAdmissionPolicyBinding item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1beta1MutatingAdmissionPolicyBinding item : items) { + V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1beta1MutatingAdmissionPolicyBinding item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1MutatingAdmissionPolicyBinding item) { + return new ItemsNested(-1, item); } public A addToItems(V1beta1MutatingAdmissionPolicyBinding... items) { @@ -96,68 +65,31 @@ public A addToItems(V1beta1MutatingAdmissionPolicyBinding... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1beta1MutatingAdmissionPolicyBinding item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1beta1MutatingAdmissionPolicyBinding item : items) { - V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); + V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1beta1MutatingAdmissionPolicyBinding... items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1MutatingAdmissionPolicyBinding item : items) { - V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1MutatingAdmissionPolicyBinding item : items) { - V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta1MutatingAdmissionPolicyBindingBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1beta1MutatingAdmissionPolicyBinding buildFirstItem() { + return this.items.get(0).build(); } public V1beta1MutatingAdmissionPolicyBinding buildItem(int index) { return this.items.get(index).build(); } - public V1beta1MutatingAdmissionPolicyBinding buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1beta1MutatingAdmissionPolicyBinding buildLastItem() { @@ -173,73 +105,34 @@ public V1beta1MutatingAdmissionPolicyBinding buildMatchingItem(Predicate predicate) { - for (V1beta1MutatingAdmissionPolicyBindingBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta1MutatingAdmissionPolicyBinding item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1beta1MutatingAdmissionPolicyBindingList instance) { + instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicyBindingList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1beta1MutatingAdmissionPolicyBinding... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta1MutatingAdmissionPolicyBinding item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta1MutatingAdmissionPolicyBinding item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta1MutatingAdmissionPolicyBinding item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1MutatingAdmissionPolicyBindingBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1MutatingAdmissionPolicyBinding item : items) { + V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta1MutatingAdmissionPolicyBinding... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1MutatingAdmissionPolicyBinding item : items) { + V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1MutatingAdmissionPolicyBindingBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta1MutatingAdmissionPolicyBinding item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta1MutatingAdmissionPolicyBinding item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1MutatingAdmissionPolicyBinding item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta1MutatingAdmissionPolicyBinding... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1MutatingAdmissionPolicyBinding item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1beta1MutatingAdmissionPolicyBindingFluent> implements Nested{ + + V1beta1MutatingAdmissionPolicyBindingBuilder builder; + int index; + ItemsNested(int index,V1beta1MutatingAdmissionPolicyBinding item) { this.index = index; this.builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(this, item); } - V1beta1MutatingAdmissionPolicyBindingBuilder builder; - int index; - + public N and() { return (N) V1beta1MutatingAdmissionPolicyBindingListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1beta1MutatingAdmissionPolicyBindingListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecBuilder.java index fa65e9fe6c..80a91011e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1MutatingAdmissionPolicyBindingSpecBuilder extends V1beta1MutatingAdmissionPolicyBindingSpecFluent implements VisitableBuilder{ + + V1beta1MutatingAdmissionPolicyBindingSpecFluent fluent; + public V1beta1MutatingAdmissionPolicyBindingSpecBuilder() { this(new V1beta1MutatingAdmissionPolicyBindingSpec()); } @@ -11,17 +14,16 @@ public V1beta1MutatingAdmissionPolicyBindingSpecBuilder(V1beta1MutatingAdmission this(fluent, new V1beta1MutatingAdmissionPolicyBindingSpec()); } - public V1beta1MutatingAdmissionPolicyBindingSpecBuilder(V1beta1MutatingAdmissionPolicyBindingSpecFluent fluent,V1beta1MutatingAdmissionPolicyBindingSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1MutatingAdmissionPolicyBindingSpecBuilder(V1beta1MutatingAdmissionPolicyBindingSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1MutatingAdmissionPolicyBindingSpecFluent fluent; + public V1beta1MutatingAdmissionPolicyBindingSpecBuilder(V1beta1MutatingAdmissionPolicyBindingSpecFluent fluent,V1beta1MutatingAdmissionPolicyBindingSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1MutatingAdmissionPolicyBindingSpec build() { V1beta1MutatingAdmissionPolicyBindingSpec buildable = new V1beta1MutatingAdmissionPolicyBindingSpec(); buildable.setMatchResources(fluent.buildMatchResources()); @@ -30,5 +32,4 @@ public V1beta1MutatingAdmissionPolicyBindingSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecFluent.java index 613e0d2139..1b4c09c5c6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecFluent.java @@ -1,28 +1,38 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1MutatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ + + private V1beta1MatchResourcesBuilder matchResources; + private V1beta1ParamRefBuilder paramRef; + private String policyName; + public V1beta1MutatingAdmissionPolicyBindingSpecFluent() { } public V1beta1MutatingAdmissionPolicyBindingSpecFluent(V1beta1MutatingAdmissionPolicyBindingSpec instance) { this.copyInstance(instance); } - private V1beta1MatchResourcesBuilder matchResources; - private V1beta1ParamRefBuilder paramRef; - private String policyName; + + public V1beta1MatchResources buildMatchResources() { + return this.matchResources != null ? this.matchResources.build() : null; + } + + public V1beta1ParamRef buildParamRef() { + return this.paramRef != null ? this.paramRef.build() : null; + } protected void copyInstance(V1beta1MutatingAdmissionPolicyBindingSpec instance) { instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicyBindingSpec(); @@ -33,34 +43,6 @@ protected void copyInstance(V1beta1MutatingAdmissionPolicyBindingSpec instance) } } - public V1beta1MatchResources buildMatchResources() { - return this.matchResources != null ? this.matchResources.build() : null; - } - - public A withMatchResources(V1beta1MatchResources matchResources) { - this._visitables.remove("matchResources"); - if (matchResources != null) { - this.matchResources = new V1beta1MatchResourcesBuilder(matchResources); - this._visitables.get("matchResources").add(this.matchResources); - } else { - this.matchResources = null; - this._visitables.get("matchResources").remove(this.matchResources); - } - return (A) this; - } - - public boolean hasMatchResources() { - return this.matchResources != null; - } - - public MatchResourcesNested withNewMatchResources() { - return new MatchResourcesNested(null); - } - - public MatchResourcesNested withNewMatchResourcesLike(V1beta1MatchResources item) { - return new MatchResourcesNested(item); - } - public MatchResourcesNested editMatchResources() { return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(null)); } @@ -73,38 +55,6 @@ public MatchResourcesNested editOrNewMatchResourcesLike(V1beta1MatchResources return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(item)); } - public V1beta1ParamRef buildParamRef() { - return this.paramRef != null ? this.paramRef.build() : null; - } - - public A withParamRef(V1beta1ParamRef paramRef) { - this._visitables.remove("paramRef"); - if (paramRef != null) { - this.paramRef = new V1beta1ParamRefBuilder(paramRef); - this._visitables.get("paramRef").add(this.paramRef); - } else { - this.paramRef = null; - this._visitables.get("paramRef").remove(this.paramRef); - } - return (A) this; - } - - public boolean hasParamRef() { - return this.paramRef != null; - } - - public ParamRefNested withNewParamRef() { - return new ParamRefNested(null); - } - - public ParamRefNested withNewParamRefLike(V1beta1ParamRef item) { - return new ParamRefNested(item); - } - - public ParamRefNested editParamRef() { - return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(null)); - } - public ParamRefNested editOrNewParamRef() { return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(new V1beta1ParamRefBuilder().build())); } @@ -113,17 +63,8 @@ public ParamRefNested editOrNewParamRefLike(V1beta1ParamRef item) { return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(item)); } - public String getPolicyName() { - return this.policyName; - } - - public A withPolicyName(String policyName) { - this.policyName = policyName; - return (A) this; - } - - public boolean hasPolicyName() { - return this.policyName != null; + public ParamRefNested editParamRef() { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(null)); } public boolean equals(Object o) { @@ -149,6 +90,22 @@ public boolean equals(Object o) { return true; } + public String getPolicyName() { + return this.policyName; + } + + public boolean hasMatchResources() { + return this.matchResources != null; + } + + public boolean hasParamRef() { + return this.paramRef != null; + } + + public boolean hasPolicyName() { + return this.policyName != null; + } + public int hashCode() { return Objects.hash(matchResources, paramRef, policyName); } @@ -173,12 +130,59 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMatchResources(V1beta1MatchResources matchResources) { + this._visitables.remove("matchResources"); + if (matchResources != null) { + this.matchResources = new V1beta1MatchResourcesBuilder(matchResources); + this._visitables.get("matchResources").add(this.matchResources); + } else { + this.matchResources = null; + this._visitables.get("matchResources").remove(this.matchResources); + } + return (A) this; + } + + public MatchResourcesNested withNewMatchResources() { + return new MatchResourcesNested(null); + } + + public MatchResourcesNested withNewMatchResourcesLike(V1beta1MatchResources item) { + return new MatchResourcesNested(item); + } + + public ParamRefNested withNewParamRef() { + return new ParamRefNested(null); + } + + public ParamRefNested withNewParamRefLike(V1beta1ParamRef item) { + return new ParamRefNested(item); + } + + public A withParamRef(V1beta1ParamRef paramRef) { + this._visitables.remove("paramRef"); + if (paramRef != null) { + this.paramRef = new V1beta1ParamRefBuilder(paramRef); + this._visitables.get("paramRef").add(this.paramRef); + } else { + this.paramRef = null; + this._visitables.get("paramRef").remove(this.paramRef); + } + return (A) this; + } + + public A withPolicyName(String policyName) { + this.policyName = policyName; + return (A) this; + } public class MatchResourcesNested extends V1beta1MatchResourcesFluent> implements Nested{ + + V1beta1MatchResourcesBuilder builder; + MatchResourcesNested(V1beta1MatchResources item) { this.builder = new V1beta1MatchResourcesBuilder(this, item); } - V1beta1MatchResourcesBuilder builder; - + public N and() { return (N) V1beta1MutatingAdmissionPolicyBindingSpecFluent.this.withMatchResources(builder.build()); } @@ -187,14 +191,15 @@ public N endMatchResources() { return and(); } - } public class ParamRefNested extends V1beta1ParamRefFluent> implements Nested{ + + V1beta1ParamRefBuilder builder; + ParamRefNested(V1beta1ParamRef item) { this.builder = new V1beta1ParamRefBuilder(this, item); } - V1beta1ParamRefBuilder builder; - + public N and() { return (N) V1beta1MutatingAdmissionPolicyBindingSpecFluent.this.withParamRef(builder.build()); } @@ -203,7 +208,5 @@ public N endParamRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBuilder.java index fea45fb4c8..3abdf7f2e4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1MutatingAdmissionPolicyBuilder extends V1beta1MutatingAdmissionPolicyFluent implements VisitableBuilder{ + + V1beta1MutatingAdmissionPolicyFluent fluent; + public V1beta1MutatingAdmissionPolicyBuilder() { this(new V1beta1MutatingAdmissionPolicy()); } @@ -11,17 +14,16 @@ public V1beta1MutatingAdmissionPolicyBuilder(V1beta1MutatingAdmissionPolicyFluen this(fluent, new V1beta1MutatingAdmissionPolicy()); } - public V1beta1MutatingAdmissionPolicyBuilder(V1beta1MutatingAdmissionPolicyFluent fluent,V1beta1MutatingAdmissionPolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1MutatingAdmissionPolicyBuilder(V1beta1MutatingAdmissionPolicy instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1MutatingAdmissionPolicyFluent fluent; + public V1beta1MutatingAdmissionPolicyBuilder(V1beta1MutatingAdmissionPolicyFluent fluent,V1beta1MutatingAdmissionPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1MutatingAdmissionPolicy build() { V1beta1MutatingAdmissionPolicy buildable = new V1beta1MutatingAdmissionPolicy(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1MutatingAdmissionPolicy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyFluent.java index f2bed6575c..ba777758d0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1MutatingAdmissionPolicyFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1MutatingAdmissionPolicySpecBuilder spec; + public V1beta1MutatingAdmissionPolicyFluent() { } public V1beta1MutatingAdmissionPolicyFluent(V1beta1MutatingAdmissionPolicy instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta1MutatingAdmissionPolicySpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1MutatingAdmissionPolicySpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1beta1MutatingAdmissionPolicy instance) { instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicy(); @@ -35,60 +45,6 @@ protected void copyInstance(V1beta1MutatingAdmissionPolicy instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1beta1MutatingAdmissionPolicySpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta1MutatingAdmissionPolicySpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta1MutatingAdmissionPolicySpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta1MutatingAdmissionPolicySpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1MutatingAdmissionPolicySpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1beta1MutatingAdmissionPolicySpec item) return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1MutatingAdmissionPolicySpec item) { + return new SpecNested(item); + } + + public A withSpec(V1beta1MutatingAdmissionPolicySpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1MutatingAdmissionPolicySpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1beta1MutatingAdmissionPolicyFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1beta1MutatingAdmissionPolicySpecFluent> implements Nested{ + + V1beta1MutatingAdmissionPolicySpecBuilder builder; + SpecNested(V1beta1MutatingAdmissionPolicySpec item) { this.builder = new V1beta1MutatingAdmissionPolicySpecBuilder(this, item); } - V1beta1MutatingAdmissionPolicySpecBuilder builder; - + public N and() { return (N) V1beta1MutatingAdmissionPolicyFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListBuilder.java index 2a6336bce0..85a6e36278 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1MutatingAdmissionPolicyListBuilder extends V1beta1MutatingAdmissionPolicyListFluent implements VisitableBuilder{ + + V1beta1MutatingAdmissionPolicyListFluent fluent; + public V1beta1MutatingAdmissionPolicyListBuilder() { this(new V1beta1MutatingAdmissionPolicyList()); } @@ -11,17 +14,16 @@ public V1beta1MutatingAdmissionPolicyListBuilder(V1beta1MutatingAdmissionPolicyL this(fluent, new V1beta1MutatingAdmissionPolicyList()); } - public V1beta1MutatingAdmissionPolicyListBuilder(V1beta1MutatingAdmissionPolicyListFluent fluent,V1beta1MutatingAdmissionPolicyList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1MutatingAdmissionPolicyListBuilder(V1beta1MutatingAdmissionPolicyList instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1MutatingAdmissionPolicyListFluent fluent; + public V1beta1MutatingAdmissionPolicyListBuilder(V1beta1MutatingAdmissionPolicyListFluent fluent,V1beta1MutatingAdmissionPolicyList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1MutatingAdmissionPolicyList build() { V1beta1MutatingAdmissionPolicyList buildable = new V1beta1MutatingAdmissionPolicyList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1MutatingAdmissionPolicyList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListFluent.java index 09d3b0a69a..663f120512 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1MutatingAdmissionPolicyListFluent> extends BaseFluent{ - public V1beta1MutatingAdmissionPolicyListFluent() { - } - - public V1beta1MutatingAdmissionPolicyListFluent(V1beta1MutatingAdmissionPolicyList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta1MutatingAdmissionPolicyList instance) { - instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicyList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1beta1MutatingAdmissionPolicyListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1beta1MutatingAdmissionPolicyListFluent(V1beta1MutatingAdmissionPolicyList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1beta1MutatingAdmissionPolicy item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1beta1MutatingAdmissionPolicy item : items) { + V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1beta1MutatingAdmissionPolicy item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1MutatingAdmissionPolicy item) { + return new ItemsNested(-1, item); } public A addToItems(V1beta1MutatingAdmissionPolicy... items) { @@ -96,68 +65,31 @@ public A addToItems(V1beta1MutatingAdmissionPolicy... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1beta1MutatingAdmissionPolicy item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1beta1MutatingAdmissionPolicy item : items) { - V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); + V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1beta1MutatingAdmissionPolicy... items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1MutatingAdmissionPolicy item : items) { - V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1MutatingAdmissionPolicy item : items) { - V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta1MutatingAdmissionPolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1beta1MutatingAdmissionPolicy buildFirstItem() { + return this.items.get(0).build(); } public V1beta1MutatingAdmissionPolicy buildItem(int index) { return this.items.get(index).build(); } - public V1beta1MutatingAdmissionPolicy buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1beta1MutatingAdmissionPolicy buildLastItem() { @@ -173,73 +105,34 @@ public V1beta1MutatingAdmissionPolicy buildMatchingItem(Predicate predicate) { - for (V1beta1MutatingAdmissionPolicyBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta1MutatingAdmissionPolicy item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1beta1MutatingAdmissionPolicyList instance) { + instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicyList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1beta1MutatingAdmissionPolicy... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta1MutatingAdmissionPolicy item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta1MutatingAdmissionPolicy item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta1MutatingAdmissionPolicy item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1MutatingAdmissionPolicyBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1MutatingAdmissionPolicy item : items) { + V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta1MutatingAdmissionPolicy... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1MutatingAdmissionPolicy item : items) { + V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1MutatingAdmissionPolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta1MutatingAdmissionPolicy item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta1MutatingAdmissionPolicy item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1MutatingAdmissionPolicy item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta1MutatingAdmissionPolicy... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1MutatingAdmissionPolicy item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1beta1MutatingAdmissionPolicyFluent> implements Nested{ + + V1beta1MutatingAdmissionPolicyBuilder builder; + int index; + ItemsNested(int index,V1beta1MutatingAdmissionPolicy item) { this.index = index; this.builder = new V1beta1MutatingAdmissionPolicyBuilder(this, item); } - V1beta1MutatingAdmissionPolicyBuilder builder; - int index; - + public N and() { return (N) V1beta1MutatingAdmissionPolicyListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1beta1MutatingAdmissionPolicyListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecBuilder.java index 3300fa501e..b98e2f81d0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1MutatingAdmissionPolicySpecBuilder extends V1beta1MutatingAdmissionPolicySpecFluent implements VisitableBuilder{ + + V1beta1MutatingAdmissionPolicySpecFluent fluent; + public V1beta1MutatingAdmissionPolicySpecBuilder() { this(new V1beta1MutatingAdmissionPolicySpec()); } @@ -11,17 +14,16 @@ public V1beta1MutatingAdmissionPolicySpecBuilder(V1beta1MutatingAdmissionPolicyS this(fluent, new V1beta1MutatingAdmissionPolicySpec()); } - public V1beta1MutatingAdmissionPolicySpecBuilder(V1beta1MutatingAdmissionPolicySpecFluent fluent,V1beta1MutatingAdmissionPolicySpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1MutatingAdmissionPolicySpecBuilder(V1beta1MutatingAdmissionPolicySpec instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1MutatingAdmissionPolicySpecFluent fluent; + public V1beta1MutatingAdmissionPolicySpecBuilder(V1beta1MutatingAdmissionPolicySpecFluent fluent,V1beta1MutatingAdmissionPolicySpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1MutatingAdmissionPolicySpec build() { V1beta1MutatingAdmissionPolicySpec buildable = new V1beta1MutatingAdmissionPolicySpec(); buildable.setFailurePolicy(fluent.getFailurePolicy()); @@ -34,5 +36,4 @@ public V1beta1MutatingAdmissionPolicySpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecFluent.java index 12f6365399..10ff7a5c0d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecFluent.java @@ -1,31 +1,26 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1MutatingAdmissionPolicySpecFluent> extends BaseFluent{ - public V1beta1MutatingAdmissionPolicySpecFluent() { - } - - public V1beta1MutatingAdmissionPolicySpecFluent(V1beta1MutatingAdmissionPolicySpec instance) { - this.copyInstance(instance); - } + private String failurePolicy; private ArrayList matchConditions; private V1beta1MatchResourcesBuilder matchConstraints; @@ -33,49 +28,87 @@ public V1beta1MutatingAdmissionPolicySpecFluent(V1beta1MutatingAdmissionPolicySp private V1beta1ParamKindBuilder paramKind; private String reinvocationPolicy; private ArrayList variables; + + public V1beta1MutatingAdmissionPolicySpecFluent() { + } - protected void copyInstance(V1beta1MutatingAdmissionPolicySpec instance) { - instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicySpec(); - if (instance != null) { - this.withFailurePolicy(instance.getFailurePolicy()); - this.withMatchConditions(instance.getMatchConditions()); - this.withMatchConstraints(instance.getMatchConstraints()); - this.withMutations(instance.getMutations()); - this.withParamKind(instance.getParamKind()); - this.withReinvocationPolicy(instance.getReinvocationPolicy()); - this.withVariables(instance.getVariables()); + public V1beta1MutatingAdmissionPolicySpecFluent(V1beta1MutatingAdmissionPolicySpec instance) { + this.copyInstance(instance); + } + + public A addAllToMatchConditions(Collection items) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + for (V1beta1MatchCondition item : items) { + V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); } + return (A) this; } - public String getFailurePolicy() { - return this.failurePolicy; + public A addAllToMutations(Collection items) { + if (this.mutations == null) { + this.mutations = new ArrayList(); + } + for (V1beta1Mutation item : items) { + V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); + _visitables.get("mutations").add(builder); + this.mutations.add(builder); + } + return (A) this; } - public A withFailurePolicy(String failurePolicy) { - this.failurePolicy = failurePolicy; + public A addAllToVariables(Collection items) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + for (V1beta1Variable item : items) { + V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); + _visitables.get("variables").add(builder); + this.variables.add(builder); + } return (A) this; } - public boolean hasFailurePolicy() { - return this.failurePolicy != null; + public MatchConditionsNested addNewMatchCondition() { + return new MatchConditionsNested(-1, null); } - public A addToMatchConditions(int index,V1beta1MatchCondition item) { + public MatchConditionsNested addNewMatchConditionLike(V1beta1MatchCondition item) { + return new MatchConditionsNested(-1, item); + } + + public MutationsNested addNewMutation() { + return new MutationsNested(-1, null); + } + + public MutationsNested addNewMutationLike(V1beta1Mutation item) { + return new MutationsNested(-1, item); + } + + public VariablesNested addNewVariable() { + return new VariablesNested(-1, null); + } + + public VariablesNested addNewVariableLike(V1beta1Variable item) { + return new VariablesNested(-1, item); + } + + public A addToMatchConditions(V1beta1MatchCondition... items) { if (this.matchConditions == null) { this.matchConditions = new ArrayList(); } - V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); - } else { + for (V1beta1MatchCondition item : items) { + V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); _visitables.get("matchConditions").add(builder); - matchConditions.add(index, builder); + this.matchConditions.add(builder); } return (A) this; } - public A setToMatchConditions(int index,V1beta1MatchCondition item) { + public A addToMatchConditions(int index,V1beta1MatchCondition item) { if (this.matchConditions == null) { this.matchConditions = new ArrayList(); } @@ -85,89 +118,99 @@ public A setToMatchConditions(int index,V1beta1MatchCondition item) { matchConditions.add(builder); } else { _visitables.get("matchConditions").add(builder); - matchConditions.set(index, builder); + matchConditions.add(index, builder); } return (A) this; } - public A addToMatchConditions(V1beta1MatchCondition... items) { - if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + public A addToMutations(V1beta1Mutation... items) { + if (this.mutations == null) { + this.mutations = new ArrayList(); } - for (V1beta1MatchCondition item : items) { - V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); - this.matchConditions.add(builder); + for (V1beta1Mutation item : items) { + V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); + _visitables.get("mutations").add(builder); + this.mutations.add(builder); } return (A) this; } - public A addAllToMatchConditions(Collection items) { - if (this.matchConditions == null) { - this.matchConditions = new ArrayList(); + public A addToMutations(int index,V1beta1Mutation item) { + if (this.mutations == null) { + this.mutations = new ArrayList(); } - for (V1beta1MatchCondition item : items) { - V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); - this.matchConditions.add(builder); + V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); + if (index < 0 || index >= mutations.size()) { + _visitables.get("mutations").add(builder); + mutations.add(builder); + } else { + _visitables.get("mutations").add(builder); + mutations.add(index, builder); } return (A) this; } - public A removeFromMatchConditions(V1beta1MatchCondition... items) { - if (this.matchConditions == null) { - return (A) this; + public A addToVariables(V1beta1Variable... items) { + if (this.variables == null) { + this.variables = new ArrayList(); } - for (V1beta1MatchCondition item : items) { - V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); - _visitables.get("matchConditions").remove(builder); - this.matchConditions.remove(builder); + for (V1beta1Variable item : items) { + V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); + _visitables.get("variables").add(builder); + this.variables.add(builder); } return (A) this; } - public A removeAllFromMatchConditions(Collection items) { - if (this.matchConditions == null) { - return (A) this; + public A addToVariables(int index,V1beta1Variable item) { + if (this.variables == null) { + this.variables = new ArrayList(); } - for (V1beta1MatchCondition item : items) { - V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); - _visitables.get("matchConditions").remove(builder); - this.matchConditions.remove(builder); + V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); + if (index < 0 || index >= variables.size()) { + _visitables.get("variables").add(builder); + variables.add(builder); + } else { + _visitables.get("variables").add(builder); + variables.add(index, builder); } return (A) this; } - public A removeMatchingFromMatchConditions(Predicate predicate) { - if (matchConditions == null) { - return (A) this; - } - Iterator each = matchConditions.iterator(); - List visitables = _visitables.get("matchConditions"); - while (each.hasNext()) { - V1beta1MatchConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1beta1MatchCondition buildFirstMatchCondition() { + return this.matchConditions.get(0).build(); } - public List buildMatchConditions() { - return this.matchConditions != null ? build(matchConditions) : null; + public V1beta1Mutation buildFirstMutation() { + return this.mutations.get(0).build(); + } + + public V1beta1Variable buildFirstVariable() { + return this.variables.get(0).build(); + } + + public V1beta1MatchCondition buildLastMatchCondition() { + return this.matchConditions.get(matchConditions.size() - 1).build(); + } + + public V1beta1Mutation buildLastMutation() { + return this.mutations.get(mutations.size() - 1).build(); + } + + public V1beta1Variable buildLastVariable() { + return this.variables.get(variables.size() - 1).build(); } public V1beta1MatchCondition buildMatchCondition(int index) { return this.matchConditions.get(index).build(); } - public V1beta1MatchCondition buildFirstMatchCondition() { - return this.matchConditions.get(0).build(); + public List buildMatchConditions() { + return this.matchConditions != null ? build(matchConditions) : null; } - public V1beta1MatchCondition buildLastMatchCondition() { - return this.matchConditions.get(matchConditions.size() - 1).build(); + public V1beta1MatchResources buildMatchConstraints() { + return this.matchConstraints != null ? this.matchConstraints.build() : null; } public V1beta1MatchCondition buildMatchingMatchCondition(Predicate predicate) { @@ -179,64 +222,55 @@ public V1beta1MatchCondition buildMatchingMatchCondition(Predicate predicate) { - for (V1beta1MatchConditionBuilder item : matchConditions) { + public V1beta1Mutation buildMatchingMutation(Predicate predicate) { + for (V1beta1MutationBuilder item : mutations) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withMatchConditions(List matchConditions) { - if (this.matchConditions != null) { - this._visitables.get("matchConditions").clear(); - } - if (matchConditions != null) { - this.matchConditions = new ArrayList(); - for (V1beta1MatchCondition item : matchConditions) { - this.addToMatchConditions(item); + public V1beta1Variable buildMatchingVariable(Predicate predicate) { + for (V1beta1VariableBuilder item : variables) { + if (predicate.test(item)) { + return item.build(); } - } else { - this.matchConditions = null; - } - return (A) this; + } + return null; } - public A withMatchConditions(V1beta1MatchCondition... matchConditions) { - if (this.matchConditions != null) { - this.matchConditions.clear(); - _visitables.remove("matchConditions"); - } - if (matchConditions != null) { - for (V1beta1MatchCondition item : matchConditions) { - this.addToMatchConditions(item); - } - } - return (A) this; + public V1beta1Mutation buildMutation(int index) { + return this.mutations.get(index).build(); } - public boolean hasMatchConditions() { - return this.matchConditions != null && !(this.matchConditions.isEmpty()); + public List buildMutations() { + return this.mutations != null ? build(mutations) : null; } - public MatchConditionsNested addNewMatchCondition() { - return new MatchConditionsNested(-1, null); + public V1beta1ParamKind buildParamKind() { + return this.paramKind != null ? this.paramKind.build() : null; } - public MatchConditionsNested addNewMatchConditionLike(V1beta1MatchCondition item) { - return new MatchConditionsNested(-1, item); + public V1beta1Variable buildVariable(int index) { + return this.variables.get(index).build(); } - public MatchConditionsNested setNewMatchConditionLike(int index,V1beta1MatchCondition item) { - return new MatchConditionsNested(index, item); + public List buildVariables() { + return this.variables != null ? build(variables) : null; } - public MatchConditionsNested editMatchCondition(int index) { - if (index <= matchConditions.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchConditions")); + protected void copyInstance(V1beta1MutatingAdmissionPolicySpec instance) { + instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicySpec(); + if (instance != null) { + this.withFailurePolicy(instance.getFailurePolicy()); + this.withMatchConditions(instance.getMatchConditions()); + this.withMatchConstraints(instance.getMatchConstraints()); + this.withMutations(instance.getMutations()); + this.withParamKind(instance.getParamKind()); + this.withReinvocationPolicy(instance.getReinvocationPolicy()); + this.withVariables(instance.getVariables()); } - return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } public MatchConditionsNested editFirstMatchCondition() { @@ -246,6 +280,20 @@ public MatchConditionsNested editFirstMatchCondition() { return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); } + public MutationsNested editFirstMutation() { + if (mutations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "mutations")); + } + return this.setNewMutationLike(0, this.buildMutation(0)); + } + + public VariablesNested editFirstVariable() { + if (variables.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(0, this.buildVariable(0)); + } + public MatchConditionsNested editLastMatchCondition() { int index = matchConditions.size() - 1; if (index < 0) { @@ -254,6 +302,33 @@ public MatchConditionsNested editLastMatchCondition() { return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } + public MutationsNested editLastMutation() { + int index = mutations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); + } + + public VariablesNested editLastVariable() { + int index = variables.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); + } + + public MatchConditionsNested editMatchCondition(int index) { + if (matchConditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); + } + + public MatchConstraintsNested editMatchConstraints() { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(null)); + } + public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { int index = -1; for (int i = 0;i < matchConditions.size();i++) { @@ -268,163 +343,130 @@ public MatchConditionsNested editMatchingMatchCondition(Predicate editMatchingMutation(Predicate predicate) { + int index = -1; + for (int i = 0;i < mutations.size();i++) { + if (predicate.test(mutations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); } - public A withMatchConstraints(V1beta1MatchResources matchConstraints) { - this._visitables.remove("matchConstraints"); - if (matchConstraints != null) { - this.matchConstraints = new V1beta1MatchResourcesBuilder(matchConstraints); - this._visitables.get("matchConstraints").add(this.matchConstraints); - } else { - this.matchConstraints = null; - this._visitables.get("matchConstraints").remove(this.matchConstraints); + public VariablesNested editMatchingVariable(Predicate predicate) { + int index = -1; + for (int i = 0;i < variables.size();i++) { + if (predicate.test(variables.get(i))) { + index = i; + break; + } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); } - public boolean hasMatchConstraints() { - return this.matchConstraints != null; + public MutationsNested editMutation(int index) { + if (mutations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); } - public MatchConstraintsNested withNewMatchConstraints() { - return new MatchConstraintsNested(null); + public MatchConstraintsNested editOrNewMatchConstraints() { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(new V1beta1MatchResourcesBuilder().build())); } - public MatchConstraintsNested withNewMatchConstraintsLike(V1beta1MatchResources item) { - return new MatchConstraintsNested(item); + public MatchConstraintsNested editOrNewMatchConstraintsLike(V1beta1MatchResources item) { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(item)); } - public MatchConstraintsNested editMatchConstraints() { - return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(null)); + public ParamKindNested editOrNewParamKind() { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(new V1beta1ParamKindBuilder().build())); } - public MatchConstraintsNested editOrNewMatchConstraints() { - return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(new V1beta1MatchResourcesBuilder().build())); + public ParamKindNested editOrNewParamKindLike(V1beta1ParamKind item) { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(item)); } - public MatchConstraintsNested editOrNewMatchConstraintsLike(V1beta1MatchResources item) { - return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(item)); + public ParamKindNested editParamKind() { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(null)); } - public A addToMutations(int index,V1beta1Mutation item) { - if (this.mutations == null) { - this.mutations = new ArrayList(); - } - V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); - if (index < 0 || index >= mutations.size()) { - _visitables.get("mutations").add(builder); - mutations.add(builder); - } else { - _visitables.get("mutations").add(builder); - mutations.add(index, builder); + public VariablesNested editVariable(int index) { + if (variables.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "variables")); } - return (A) this; + return this.setNewVariableLike(index, this.buildVariable(index)); } - public A setToMutations(int index,V1beta1Mutation item) { - if (this.mutations == null) { - this.mutations = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); - if (index < 0 || index >= mutations.size()) { - _visitables.get("mutations").add(builder); - mutations.add(builder); - } else { - _visitables.get("mutations").add(builder); - mutations.set(index, builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A addToMutations(V1beta1Mutation... items) { - if (this.mutations == null) { - this.mutations = new ArrayList(); + if (!(super.equals(o))) { + return false; } - for (V1beta1Mutation item : items) { - V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); - _visitables.get("mutations").add(builder); - this.mutations.add(builder); + V1beta1MutatingAdmissionPolicySpecFluent that = (V1beta1MutatingAdmissionPolicySpecFluent) o; + if (!(Objects.equals(failurePolicy, that.failurePolicy))) { + return false; } - return (A) this; - } - - public A addAllToMutations(Collection items) { - if (this.mutations == null) { - this.mutations = new ArrayList(); + if (!(Objects.equals(matchConditions, that.matchConditions))) { + return false; } - for (V1beta1Mutation item : items) { - V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); - _visitables.get("mutations").add(builder); - this.mutations.add(builder); + if (!(Objects.equals(matchConstraints, that.matchConstraints))) { + return false; } - return (A) this; - } - - public A removeFromMutations(V1beta1Mutation... items) { - if (this.mutations == null) { - return (A) this; + if (!(Objects.equals(mutations, that.mutations))) { + return false; } - for (V1beta1Mutation item : items) { - V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); - _visitables.get("mutations").remove(builder); - this.mutations.remove(builder); + if (!(Objects.equals(paramKind, that.paramKind))) { + return false; } - return (A) this; - } - - public A removeAllFromMutations(Collection items) { - if (this.mutations == null) { - return (A) this; + if (!(Objects.equals(reinvocationPolicy, that.reinvocationPolicy))) { + return false; } - for (V1beta1Mutation item : items) { - V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); - _visitables.get("mutations").remove(builder); - this.mutations.remove(builder); + if (!(Objects.equals(variables, that.variables))) { + return false; } - return (A) this; + return true; } - public A removeMatchingFromMutations(Predicate predicate) { - if (mutations == null) { - return (A) this; - } - Iterator each = mutations.iterator(); - List visitables = _visitables.get("mutations"); - while (each.hasNext()) { - V1beta1MutationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public String getFailurePolicy() { + return this.failurePolicy; } - public List buildMutations() { - return this.mutations != null ? build(mutations) : null; + public String getReinvocationPolicy() { + return this.reinvocationPolicy; } - public V1beta1Mutation buildMutation(int index) { - return this.mutations.get(index).build(); + public boolean hasFailurePolicy() { + return this.failurePolicy != null; } - public V1beta1Mutation buildFirstMutation() { - return this.mutations.get(0).build(); + public boolean hasMatchConditions() { + return this.matchConditions != null && !(this.matchConditions.isEmpty()); } - public V1beta1Mutation buildLastMutation() { - return this.mutations.get(mutations.size() - 1).build(); + public boolean hasMatchConstraints() { + return this.matchConstraints != null; } - public V1beta1Mutation buildMatchingMutation(Predicate predicate) { - for (V1beta1MutationBuilder item : mutations) { + public boolean hasMatchingMatchCondition(Predicate predicate) { + for (V1beta1MatchConditionBuilder item : matchConditions) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingMutation(Predicate predicate) { @@ -436,150 +478,193 @@ public boolean hasMatchingMutation(Predicate predicate) return false; } - public A withMutations(List mutations) { - if (this.mutations != null) { - this._visitables.get("mutations").clear(); - } - if (mutations != null) { - this.mutations = new ArrayList(); - for (V1beta1Mutation item : mutations) { - this.addToMutations(item); + public boolean hasMatchingVariable(Predicate predicate) { + for (V1beta1VariableBuilder item : variables) { + if (predicate.test(item)) { + return true; } - } else { - this.mutations = null; - } - return (A) this; - } - - public A withMutations(V1beta1Mutation... mutations) { - if (this.mutations != null) { - this.mutations.clear(); - _visitables.remove("mutations"); - } - if (mutations != null) { - for (V1beta1Mutation item : mutations) { - this.addToMutations(item); } - } - return (A) this; + return false; } public boolean hasMutations() { return this.mutations != null && !(this.mutations.isEmpty()); } - public MutationsNested addNewMutation() { - return new MutationsNested(-1, null); + public boolean hasParamKind() { + return this.paramKind != null; } - public MutationsNested addNewMutationLike(V1beta1Mutation item) { - return new MutationsNested(-1, item); + public boolean hasReinvocationPolicy() { + return this.reinvocationPolicy != null; } - public MutationsNested setNewMutationLike(int index,V1beta1Mutation item) { - return new MutationsNested(index, item); + public boolean hasVariables() { + return this.variables != null && !(this.variables.isEmpty()); } - public MutationsNested editMutation(int index) { - if (index <= mutations.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "mutations")); - } - return this.setNewMutationLike(index, this.buildMutation(index)); + public int hashCode() { + return Objects.hash(failurePolicy, matchConditions, matchConstraints, mutations, paramKind, reinvocationPolicy, variables); } - public MutationsNested editFirstMutation() { - if (mutations.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "mutations")); + public A removeAllFromMatchConditions(Collection items) { + if (this.matchConditions == null) { + return (A) this; } - return this.setNewMutationLike(0, this.buildMutation(0)); + for (V1beta1MatchCondition item : items) { + V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; } - public MutationsNested editLastMutation() { - int index = mutations.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "mutations")); + public A removeAllFromMutations(Collection items) { + if (this.mutations == null) { + return (A) this; } - return this.setNewMutationLike(index, this.buildMutation(index)); + for (V1beta1Mutation item : items) { + V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); + _visitables.get("mutations").remove(builder); + this.mutations.remove(builder); + } + return (A) this; } - public MutationsNested editMatchingMutation(Predicate predicate) { - int index = -1; - for (int i = 0;i < mutations.size();i++) { - if (predicate.test(mutations.get(i))) { - index = i; - break; - } + public A removeAllFromVariables(Collection items) { + if (this.variables == null) { + return (A) this; } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "mutations")); + for (V1beta1Variable item : items) { + V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); + _visitables.get("variables").remove(builder); + this.variables.remove(builder); } - return this.setNewMutationLike(index, this.buildMutation(index)); + return (A) this; } - public V1beta1ParamKind buildParamKind() { - return this.paramKind != null ? this.paramKind.build() : null; + public A removeFromMatchConditions(V1beta1MatchCondition... items) { + if (this.matchConditions == null) { + return (A) this; + } + for (V1beta1MatchCondition item : items) { + V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; } - public A withParamKind(V1beta1ParamKind paramKind) { - this._visitables.remove("paramKind"); - if (paramKind != null) { - this.paramKind = new V1beta1ParamKindBuilder(paramKind); - this._visitables.get("paramKind").add(this.paramKind); - } else { - this.paramKind = null; - this._visitables.get("paramKind").remove(this.paramKind); + public A removeFromMutations(V1beta1Mutation... items) { + if (this.mutations == null) { + return (A) this; + } + for (V1beta1Mutation item : items) { + V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); + _visitables.get("mutations").remove(builder); + this.mutations.remove(builder); } return (A) this; } - public boolean hasParamKind() { - return this.paramKind != null; + public A removeFromVariables(V1beta1Variable... items) { + if (this.variables == null) { + return (A) this; + } + for (V1beta1Variable item : items) { + V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); + _visitables.get("variables").remove(builder); + this.variables.remove(builder); + } + return (A) this; } - public ParamKindNested withNewParamKind() { - return new ParamKindNested(null); + public A removeMatchingFromMatchConditions(Predicate predicate) { + if (matchConditions == null) { + return (A) this; + } + Iterator each = matchConditions.iterator(); + List visitables = _visitables.get("matchConditions"); + while (each.hasNext()) { + V1beta1MatchConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public ParamKindNested withNewParamKindLike(V1beta1ParamKind item) { - return new ParamKindNested(item); + public A removeMatchingFromMutations(Predicate predicate) { + if (mutations == null) { + return (A) this; + } + Iterator each = mutations.iterator(); + List visitables = _visitables.get("mutations"); + while (each.hasNext()) { + V1beta1MutationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public ParamKindNested editParamKind() { - return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(null)); + public A removeMatchingFromVariables(Predicate predicate) { + if (variables == null) { + return (A) this; + } + Iterator each = variables.iterator(); + List visitables = _visitables.get("variables"); + while (each.hasNext()) { + V1beta1VariableBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public ParamKindNested editOrNewParamKind() { - return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(new V1beta1ParamKindBuilder().build())); + public MatchConditionsNested setNewMatchConditionLike(int index,V1beta1MatchCondition item) { + return new MatchConditionsNested(index, item); } - public ParamKindNested editOrNewParamKindLike(V1beta1ParamKind item) { - return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(item)); + public MutationsNested setNewMutationLike(int index,V1beta1Mutation item) { + return new MutationsNested(index, item); } - public String getReinvocationPolicy() { - return this.reinvocationPolicy; + public VariablesNested setNewVariableLike(int index,V1beta1Variable item) { + return new VariablesNested(index, item); } - public A withReinvocationPolicy(String reinvocationPolicy) { - this.reinvocationPolicy = reinvocationPolicy; + public A setToMatchConditions(int index,V1beta1MatchCondition item) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); + if (index < 0 || index >= matchConditions.size()) { + _visitables.get("matchConditions").add(builder); + matchConditions.add(builder); + } else { + _visitables.get("matchConditions").add(builder); + matchConditions.set(index, builder); + } return (A) this; } - public boolean hasReinvocationPolicy() { - return this.reinvocationPolicy != null; - } - - public A addToVariables(int index,V1beta1Variable item) { - if (this.variables == null) { - this.variables = new ArrayList(); + public A setToMutations(int index,V1beta1Mutation item) { + if (this.mutations == null) { + this.mutations = new ArrayList(); } - V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { - _visitables.get("variables").add(builder); - variables.add(builder); + V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); + if (index < 0 || index >= mutations.size()) { + _visitables.get("mutations").add(builder); + mutations.add(builder); } else { - _visitables.get("variables").add(builder); - variables.add(index, builder); + _visitables.get("mutations").add(builder); + mutations.set(index, builder); } return (A) this; } @@ -599,102 +684,151 @@ public A setToVariables(int index,V1beta1Variable item) { return (A) this; } - public A addToVariables(V1beta1Variable... items) { - if (this.variables == null) { - this.variables = new ArrayList(); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(failurePolicy == null)) { + sb.append("failurePolicy:"); + sb.append(failurePolicy); + sb.append(","); } - for (V1beta1Variable item : items) { - V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); - _visitables.get("variables").add(builder); - this.variables.add(builder); + if (!(matchConditions == null) && !(matchConditions.isEmpty())) { + sb.append("matchConditions:"); + sb.append(matchConditions); + sb.append(","); + } + if (!(matchConstraints == null)) { + sb.append("matchConstraints:"); + sb.append(matchConstraints); + sb.append(","); + } + if (!(mutations == null) && !(mutations.isEmpty())) { + sb.append("mutations:"); + sb.append(mutations); + sb.append(","); + } + if (!(paramKind == null)) { + sb.append("paramKind:"); + sb.append(paramKind); + sb.append(","); + } + if (!(reinvocationPolicy == null)) { + sb.append("reinvocationPolicy:"); + sb.append(reinvocationPolicy); + sb.append(","); + } + if (!(variables == null) && !(variables.isEmpty())) { + sb.append("variables:"); + sb.append(variables); } + sb.append("}"); + return sb.toString(); + } + + public A withFailurePolicy(String failurePolicy) { + this.failurePolicy = failurePolicy; return (A) this; } - public A addAllToVariables(Collection items) { - if (this.variables == null) { - this.variables = new ArrayList(); + public A withMatchConditions(List matchConditions) { + if (this.matchConditions != null) { + this._visitables.get("matchConditions").clear(); } - for (V1beta1Variable item : items) { - V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); - _visitables.get("variables").add(builder); - this.variables.add(builder); + if (matchConditions != null) { + this.matchConditions = new ArrayList(); + for (V1beta1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } else { + this.matchConditions = null; } return (A) this; } - public A removeFromVariables(V1beta1Variable... items) { - if (this.variables == null) { - return (A) this; + public A withMatchConditions(V1beta1MatchCondition... matchConditions) { + if (this.matchConditions != null) { + this.matchConditions.clear(); + _visitables.remove("matchConditions"); } - for (V1beta1Variable item : items) { - V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); - _visitables.get("variables").remove(builder); - this.variables.remove(builder); + if (matchConditions != null) { + for (V1beta1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } + return (A) this; + } + + public A withMatchConstraints(V1beta1MatchResources matchConstraints) { + this._visitables.remove("matchConstraints"); + if (matchConstraints != null) { + this.matchConstraints = new V1beta1MatchResourcesBuilder(matchConstraints); + this._visitables.get("matchConstraints").add(this.matchConstraints); + } else { + this.matchConstraints = null; + this._visitables.get("matchConstraints").remove(this.matchConstraints); } return (A) this; } - public A removeAllFromVariables(Collection items) { - if (this.variables == null) { - return (A) this; + public A withMutations(List mutations) { + if (this.mutations != null) { + this._visitables.get("mutations").clear(); } - for (V1beta1Variable item : items) { - V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); - _visitables.get("variables").remove(builder); - this.variables.remove(builder); + if (mutations != null) { + this.mutations = new ArrayList(); + for (V1beta1Mutation item : mutations) { + this.addToMutations(item); + } + } else { + this.mutations = null; } return (A) this; } - public A removeMatchingFromVariables(Predicate predicate) { - if (variables == null) { - return (A) this; + public A withMutations(V1beta1Mutation... mutations) { + if (this.mutations != null) { + this.mutations.clear(); + _visitables.remove("mutations"); } - Iterator each = variables.iterator(); - List visitables = _visitables.get("variables"); - while (each.hasNext()) { - V1beta1VariableBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (mutations != null) { + for (V1beta1Mutation item : mutations) { + this.addToMutations(item); + } } return (A) this; } - public List buildVariables() { - return this.variables != null ? build(variables) : null; + public MatchConstraintsNested withNewMatchConstraints() { + return new MatchConstraintsNested(null); } - public V1beta1Variable buildVariable(int index) { - return this.variables.get(index).build(); + public MatchConstraintsNested withNewMatchConstraintsLike(V1beta1MatchResources item) { + return new MatchConstraintsNested(item); } - public V1beta1Variable buildFirstVariable() { - return this.variables.get(0).build(); + public ParamKindNested withNewParamKind() { + return new ParamKindNested(null); } - public V1beta1Variable buildLastVariable() { - return this.variables.get(variables.size() - 1).build(); + public ParamKindNested withNewParamKindLike(V1beta1ParamKind item) { + return new ParamKindNested(item); } - public V1beta1Variable buildMatchingVariable(Predicate predicate) { - for (V1beta1VariableBuilder item : variables) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A withParamKind(V1beta1ParamKind paramKind) { + this._visitables.remove("paramKind"); + if (paramKind != null) { + this.paramKind = new V1beta1ParamKindBuilder(paramKind); + this._visitables.get("paramKind").add(this.paramKind); + } else { + this.paramKind = null; + this._visitables.get("paramKind").remove(this.paramKind); + } + return (A) this; } - public boolean hasMatchingVariable(Predicate predicate) { - for (V1beta1VariableBuilder item : variables) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withReinvocationPolicy(String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; + return (A) this; } public A withVariables(List variables) { @@ -724,146 +858,16 @@ public A withVariables(V1beta1Variable... variables) { } return (A) this; } + public class MatchConditionsNested extends V1beta1MatchConditionFluent> implements Nested{ - public boolean hasVariables() { - return this.variables != null && !(this.variables.isEmpty()); - } - - public VariablesNested addNewVariable() { - return new VariablesNested(-1, null); - } - - public VariablesNested addNewVariableLike(V1beta1Variable item) { - return new VariablesNested(-1, item); - } - - public VariablesNested setNewVariableLike(int index,V1beta1Variable item) { - return new VariablesNested(index, item); - } - - public VariablesNested editVariable(int index) { - if (index <= variables.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "variables")); - } - return this.setNewVariableLike(index, this.buildVariable(index)); - } - - public VariablesNested editFirstVariable() { - if (variables.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "variables")); - } - return this.setNewVariableLike(0, this.buildVariable(0)); - } - - public VariablesNested editLastVariable() { - int index = variables.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "variables")); - } - return this.setNewVariableLike(index, this.buildVariable(index)); - } - - public VariablesNested editMatchingVariable(Predicate predicate) { - int index = -1; - for (int i = 0;i < variables.size();i++) { - if (predicate.test(variables.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "variables")); - } - return this.setNewVariableLike(index, this.buildVariable(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1MutatingAdmissionPolicySpecFluent that = (V1beta1MutatingAdmissionPolicySpecFluent) o; - if (!(Objects.equals(failurePolicy, that.failurePolicy))) { - return false; - } - if (!(Objects.equals(matchConditions, that.matchConditions))) { - return false; - } - if (!(Objects.equals(matchConstraints, that.matchConstraints))) { - return false; - } - if (!(Objects.equals(mutations, that.mutations))) { - return false; - } - if (!(Objects.equals(paramKind, that.paramKind))) { - return false; - } - if (!(Objects.equals(reinvocationPolicy, that.reinvocationPolicy))) { - return false; - } - if (!(Objects.equals(variables, that.variables))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(failurePolicy, matchConditions, matchConstraints, mutations, paramKind, reinvocationPolicy, variables); - } + V1beta1MatchConditionBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(failurePolicy == null)) { - sb.append("failurePolicy:"); - sb.append(failurePolicy); - sb.append(","); - } - if (!(matchConditions == null) && !(matchConditions.isEmpty())) { - sb.append("matchConditions:"); - sb.append(matchConditions); - sb.append(","); - } - if (!(matchConstraints == null)) { - sb.append("matchConstraints:"); - sb.append(matchConstraints); - sb.append(","); - } - if (!(mutations == null) && !(mutations.isEmpty())) { - sb.append("mutations:"); - sb.append(mutations); - sb.append(","); - } - if (!(paramKind == null)) { - sb.append("paramKind:"); - sb.append(paramKind); - sb.append(","); - } - if (!(reinvocationPolicy == null)) { - sb.append("reinvocationPolicy:"); - sb.append(reinvocationPolicy); - sb.append(","); - } - if (!(variables == null) && !(variables.isEmpty())) { - sb.append("variables:"); - sb.append(variables); - } - sb.append("}"); - return sb.toString(); - } - public class MatchConditionsNested extends V1beta1MatchConditionFluent> implements Nested{ MatchConditionsNested(int index,V1beta1MatchCondition item) { this.index = index; this.builder = new V1beta1MatchConditionBuilder(this, item); } - V1beta1MatchConditionBuilder builder; - int index; - + public N and() { return (N) V1beta1MutatingAdmissionPolicySpecFluent.this.setToMatchConditions(index, builder.build()); } @@ -872,14 +876,15 @@ public N endMatchCondition() { return and(); } - } public class MatchConstraintsNested extends V1beta1MatchResourcesFluent> implements Nested{ + + V1beta1MatchResourcesBuilder builder; + MatchConstraintsNested(V1beta1MatchResources item) { this.builder = new V1beta1MatchResourcesBuilder(this, item); } - V1beta1MatchResourcesBuilder builder; - + public N and() { return (N) V1beta1MutatingAdmissionPolicySpecFluent.this.withMatchConstraints(builder.build()); } @@ -888,16 +893,17 @@ public N endMatchConstraints() { return and(); } - } public class MutationsNested extends V1beta1MutationFluent> implements Nested{ + + V1beta1MutationBuilder builder; + int index; + MutationsNested(int index,V1beta1Mutation item) { this.index = index; this.builder = new V1beta1MutationBuilder(this, item); } - V1beta1MutationBuilder builder; - int index; - + public N and() { return (N) V1beta1MutatingAdmissionPolicySpecFluent.this.setToMutations(index, builder.build()); } @@ -906,14 +912,15 @@ public N endMutation() { return and(); } - } public class ParamKindNested extends V1beta1ParamKindFluent> implements Nested{ + + V1beta1ParamKindBuilder builder; + ParamKindNested(V1beta1ParamKind item) { this.builder = new V1beta1ParamKindBuilder(this, item); } - V1beta1ParamKindBuilder builder; - + public N and() { return (N) V1beta1MutatingAdmissionPolicySpecFluent.this.withParamKind(builder.build()); } @@ -922,16 +929,17 @@ public N endParamKind() { return and(); } - } public class VariablesNested extends V1beta1VariableFluent> implements Nested{ + + V1beta1VariableBuilder builder; + int index; + VariablesNested(int index,V1beta1Variable item) { this.index = index; this.builder = new V1beta1VariableBuilder(this, item); } - V1beta1VariableBuilder builder; - int index; - + public N and() { return (N) V1beta1MutatingAdmissionPolicySpecFluent.this.setToVariables(index, builder.build()); } @@ -940,7 +948,5 @@ public N endVariable() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationBuilder.java index dede1bfc10..d6848bc81a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1MutationBuilder extends V1beta1MutationFluent implements VisitableBuilder{ + + V1beta1MutationFluent fluent; + public V1beta1MutationBuilder() { this(new V1beta1Mutation()); } @@ -11,17 +14,16 @@ public V1beta1MutationBuilder(V1beta1MutationFluent fluent) { this(fluent, new V1beta1Mutation()); } - public V1beta1MutationBuilder(V1beta1MutationFluent fluent,V1beta1Mutation instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1MutationBuilder(V1beta1Mutation instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1MutationFluent fluent; + public V1beta1MutationBuilder(V1beta1MutationFluent fluent,V1beta1Mutation instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1Mutation build() { V1beta1Mutation buildable = new V1beta1Mutation(); buildable.setApplyConfiguration(fluent.buildApplyConfiguration()); @@ -30,5 +32,4 @@ public V1beta1Mutation build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationFluent.java index 38d954cba6..777b45c029 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationFluent.java @@ -1,28 +1,38 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1MutationFluent> extends BaseFluent{ + + private V1beta1ApplyConfigurationBuilder applyConfiguration; + private V1beta1JSONPatchBuilder jsonPatch; + private String patchType; + public V1beta1MutationFluent() { } public V1beta1MutationFluent(V1beta1Mutation instance) { this.copyInstance(instance); } - private V1beta1ApplyConfigurationBuilder applyConfiguration; - private V1beta1JSONPatchBuilder jsonPatch; - private String patchType; + + public V1beta1ApplyConfiguration buildApplyConfiguration() { + return this.applyConfiguration != null ? this.applyConfiguration.build() : null; + } + + public V1beta1JSONPatch buildJsonPatch() { + return this.jsonPatch != null ? this.jsonPatch.build() : null; + } protected void copyInstance(V1beta1Mutation instance) { instance = instance != null ? instance : new V1beta1Mutation(); @@ -33,38 +43,14 @@ protected void copyInstance(V1beta1Mutation instance) { } } - public V1beta1ApplyConfiguration buildApplyConfiguration() { - return this.applyConfiguration != null ? this.applyConfiguration.build() : null; - } - - public A withApplyConfiguration(V1beta1ApplyConfiguration applyConfiguration) { - this._visitables.remove("applyConfiguration"); - if (applyConfiguration != null) { - this.applyConfiguration = new V1beta1ApplyConfigurationBuilder(applyConfiguration); - this._visitables.get("applyConfiguration").add(this.applyConfiguration); - } else { - this.applyConfiguration = null; - this._visitables.get("applyConfiguration").remove(this.applyConfiguration); - } - return (A) this; - } - - public boolean hasApplyConfiguration() { - return this.applyConfiguration != null; - } - - public ApplyConfigurationNested withNewApplyConfiguration() { - return new ApplyConfigurationNested(null); - } - - public ApplyConfigurationNested withNewApplyConfigurationLike(V1beta1ApplyConfiguration item) { - return new ApplyConfigurationNested(item); - } - public ApplyConfigurationNested editApplyConfiguration() { return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(null)); } + public JsonPatchNested editJsonPatch() { + return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(null)); + } + public ApplyConfigurationNested editOrNewApplyConfiguration() { return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(new V1beta1ApplyConfigurationBuilder().build())); } @@ -73,38 +59,6 @@ public ApplyConfigurationNested editOrNewApplyConfigurationLike(V1beta1ApplyC return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(item)); } - public V1beta1JSONPatch buildJsonPatch() { - return this.jsonPatch != null ? this.jsonPatch.build() : null; - } - - public A withJsonPatch(V1beta1JSONPatch jsonPatch) { - this._visitables.remove("jsonPatch"); - if (jsonPatch != null) { - this.jsonPatch = new V1beta1JSONPatchBuilder(jsonPatch); - this._visitables.get("jsonPatch").add(this.jsonPatch); - } else { - this.jsonPatch = null; - this._visitables.get("jsonPatch").remove(this.jsonPatch); - } - return (A) this; - } - - public boolean hasJsonPatch() { - return this.jsonPatch != null; - } - - public JsonPatchNested withNewJsonPatch() { - return new JsonPatchNested(null); - } - - public JsonPatchNested withNewJsonPatchLike(V1beta1JSONPatch item) { - return new JsonPatchNested(item); - } - - public JsonPatchNested editJsonPatch() { - return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(null)); - } - public JsonPatchNested editOrNewJsonPatch() { return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(new V1beta1JSONPatchBuilder().build())); } @@ -113,19 +67,6 @@ public JsonPatchNested editOrNewJsonPatchLike(V1beta1JSONPatch item) { return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(item)); } - public String getPatchType() { - return this.patchType; - } - - public A withPatchType(String patchType) { - this.patchType = patchType; - return (A) this; - } - - public boolean hasPatchType() { - return this.patchType != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -149,6 +90,22 @@ public boolean equals(Object o) { return true; } + public String getPatchType() { + return this.patchType; + } + + public boolean hasApplyConfiguration() { + return this.applyConfiguration != null; + } + + public boolean hasJsonPatch() { + return this.jsonPatch != null; + } + + public boolean hasPatchType() { + return this.patchType != null; + } + public int hashCode() { return Objects.hash(applyConfiguration, jsonPatch, patchType); } @@ -173,12 +130,59 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApplyConfiguration(V1beta1ApplyConfiguration applyConfiguration) { + this._visitables.remove("applyConfiguration"); + if (applyConfiguration != null) { + this.applyConfiguration = new V1beta1ApplyConfigurationBuilder(applyConfiguration); + this._visitables.get("applyConfiguration").add(this.applyConfiguration); + } else { + this.applyConfiguration = null; + this._visitables.get("applyConfiguration").remove(this.applyConfiguration); + } + return (A) this; + } + + public A withJsonPatch(V1beta1JSONPatch jsonPatch) { + this._visitables.remove("jsonPatch"); + if (jsonPatch != null) { + this.jsonPatch = new V1beta1JSONPatchBuilder(jsonPatch); + this._visitables.get("jsonPatch").add(this.jsonPatch); + } else { + this.jsonPatch = null; + this._visitables.get("jsonPatch").remove(this.jsonPatch); + } + return (A) this; + } + + public ApplyConfigurationNested withNewApplyConfiguration() { + return new ApplyConfigurationNested(null); + } + + public ApplyConfigurationNested withNewApplyConfigurationLike(V1beta1ApplyConfiguration item) { + return new ApplyConfigurationNested(item); + } + + public JsonPatchNested withNewJsonPatch() { + return new JsonPatchNested(null); + } + + public JsonPatchNested withNewJsonPatchLike(V1beta1JSONPatch item) { + return new JsonPatchNested(item); + } + + public A withPatchType(String patchType) { + this.patchType = patchType; + return (A) this; + } public class ApplyConfigurationNested extends V1beta1ApplyConfigurationFluent> implements Nested{ + + V1beta1ApplyConfigurationBuilder builder; + ApplyConfigurationNested(V1beta1ApplyConfiguration item) { this.builder = new V1beta1ApplyConfigurationBuilder(this, item); } - V1beta1ApplyConfigurationBuilder builder; - + public N and() { return (N) V1beta1MutationFluent.this.withApplyConfiguration(builder.build()); } @@ -187,14 +191,15 @@ public N endApplyConfiguration() { return and(); } - } public class JsonPatchNested extends V1beta1JSONPatchFluent> implements Nested{ + + V1beta1JSONPatchBuilder builder; + JsonPatchNested(V1beta1JSONPatch item) { this.builder = new V1beta1JSONPatchBuilder(this, item); } - V1beta1JSONPatchBuilder builder; - + public N and() { return (N) V1beta1MutationFluent.this.withJsonPatch(builder.build()); } @@ -203,7 +208,5 @@ public N endJsonPatch() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsBuilder.java index 0f536b0333..663ef22f37 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1NamedRuleWithOperationsBuilder extends V1beta1NamedRuleWithOperationsFluent implements VisitableBuilder{ + + V1beta1NamedRuleWithOperationsFluent fluent; + public V1beta1NamedRuleWithOperationsBuilder() { this(new V1beta1NamedRuleWithOperations()); } @@ -11,17 +14,16 @@ public V1beta1NamedRuleWithOperationsBuilder(V1beta1NamedRuleWithOperationsFluen this(fluent, new V1beta1NamedRuleWithOperations()); } - public V1beta1NamedRuleWithOperationsBuilder(V1beta1NamedRuleWithOperationsFluent fluent,V1beta1NamedRuleWithOperations instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1NamedRuleWithOperationsBuilder(V1beta1NamedRuleWithOperations instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1NamedRuleWithOperationsFluent fluent; + public V1beta1NamedRuleWithOperationsBuilder(V1beta1NamedRuleWithOperationsFluent fluent,V1beta1NamedRuleWithOperations instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1NamedRuleWithOperations build() { V1beta1NamedRuleWithOperations buildable = new V1beta1NamedRuleWithOperations(); buildable.setApiGroups(fluent.getApiGroups()); @@ -33,5 +35,4 @@ public V1beta1NamedRuleWithOperations build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsFluent.java index d6a0c79259..443be58e0c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,150 +16,99 @@ */ @SuppressWarnings("unchecked") public class V1beta1NamedRuleWithOperationsFluent> extends BaseFluent{ - public V1beta1NamedRuleWithOperationsFluent() { - } - - public V1beta1NamedRuleWithOperationsFluent(V1beta1NamedRuleWithOperations instance) { - this.copyInstance(instance); - } + private List apiGroups; private List apiVersions; private List operations; private List resourceNames; private List resources; private String scope; - - protected void copyInstance(V1beta1NamedRuleWithOperations instance) { - instance = instance != null ? instance : new V1beta1NamedRuleWithOperations(); - if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withApiVersions(instance.getApiVersions()); - this.withOperations(instance.getOperations()); - this.withResourceNames(instance.getResourceNames()); - this.withResources(instance.getResources()); - this.withScope(instance.getScope()); - } + + public V1beta1NamedRuleWithOperationsFluent() { } - public A addToApiGroups(int index,String item) { + public V1beta1NamedRuleWithOperationsFluent(V1beta1NamedRuleWithOperations instance) { + this.copyInstance(instance); + } + + public A addAllToApiGroups(Collection items) { if (this.apiGroups == null) { this.apiGroups = new ArrayList(); } - this.apiGroups.add(index, item); + for (String item : items) { + this.apiGroups.add(item); + } return (A) this; } - public A setToApiGroups(int index,String item) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + public A addAllToApiVersions(Collection items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.add(item); } - this.apiGroups.set(index, item); return (A) this; } - public A addToApiGroups(String... items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + public A addAllToOperations(Collection items) { + if (this.operations == null) { + this.operations = new ArrayList(); } for (String item : items) { - this.apiGroups.add(item); + this.operations.add(item); } return (A) this; } - public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + public A addAllToResourceNames(Collection items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); } for (String item : items) { - this.apiGroups.add(item); + this.resourceNames.add(item); } return (A) this; } - public A removeFromApiGroups(String... items) { - if (this.apiGroups == null) { - return (A) this; + public A addAllToResources(Collection items) { + if (this.resources == null) { + this.resources = new ArrayList(); } for (String item : items) { - this.apiGroups.remove(item); + this.resources.add(item); } return (A) this; } - public A removeAllFromApiGroups(Collection items) { + public A addToApiGroups(String... items) { if (this.apiGroups == null) { - return (A) this; + this.apiGroups = new ArrayList(); } for (String item : items) { - this.apiGroups.remove(item); + this.apiGroups.add(item); } return (A) this; } - public List getApiGroups() { - return this.apiGroups; - } - - public String getApiGroup(int index) { - return this.apiGroups.get(index); - } - - public String getFirstApiGroup() { - return this.apiGroups.get(0); - } - - public String getLastApiGroup() { - return this.apiGroups.get(apiGroups.size() - 1); - } - - public String getMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withApiGroups(List apiGroups) { - if (apiGroups != null) { - this.apiGroups = new ArrayList(); - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } else { - this.apiGroups = null; + public A addToApiGroups(int index,String item) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); } + this.apiGroups.add(index, item); return (A) this; } - public A withApiGroups(String... apiGroups) { - if (this.apiGroups != null) { - this.apiGroups.clear(); - _visitables.remove("apiGroups"); + public A addToApiVersions(String... items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); } - if (apiGroups != null) { - for (String item : apiGroups) { - this.addToApiGroups(item); - } + for (String item : items) { + this.apiVersions.add(item); } return (A) this; } - public boolean hasApiGroups() { - return this.apiGroups != null && !(this.apiGroups.isEmpty()); - } - public A addToApiVersions(int index,String item) { if (this.apiVersions == null) { this.apiVersions = new ArrayList(); @@ -168,187 +117,176 @@ public A addToApiVersions(int index,String item) { return (A) this; } - public A setToApiVersions(int index,String item) { - if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + public A addToOperations(String... items) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + for (String item : items) { + this.operations.add(item); } - this.apiVersions.set(index, item); return (A) this; } - public A addToApiVersions(String... items) { - if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); - } - for (String item : items) { - this.apiVersions.add(item); + public A addToOperations(int index,String item) { + if (this.operations == null) { + this.operations = new ArrayList(); } + this.operations.add(index, item); return (A) this; } - public A addAllToApiVersions(Collection items) { - if (this.apiVersions == null) { - this.apiVersions = new ArrayList(); + public A addToResourceNames(String... items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); } for (String item : items) { - this.apiVersions.add(item); + this.resourceNames.add(item); } return (A) this; } - public A removeFromApiVersions(String... items) { - if (this.apiVersions == null) { - return (A) this; - } - for (String item : items) { - this.apiVersions.remove(item); + public A addToResourceNames(int index,String item) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); } + this.resourceNames.add(index, item); return (A) this; } - public A removeAllFromApiVersions(Collection items) { - if (this.apiVersions == null) { - return (A) this; + public A addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); } for (String item : items) { - this.apiVersions.remove(item); + this.resources.add(item); } return (A) this; } - public List getApiVersions() { - return this.apiVersions; + public A addToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.add(index, item); + return (A) this; } - public String getApiVersion(int index) { - return this.apiVersions.get(index); + protected void copyInstance(V1beta1NamedRuleWithOperations instance) { + instance = instance != null ? instance : new V1beta1NamedRuleWithOperations(); + if (instance != null) { + this.withApiGroups(instance.getApiGroups()); + this.withApiVersions(instance.getApiVersions()); + this.withOperations(instance.getOperations()); + this.withResourceNames(instance.getResourceNames()); + this.withResources(instance.getResources()); + this.withScope(instance.getScope()); + } } - public String getFirstApiVersion() { - return this.apiVersions.get(0); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1NamedRuleWithOperationsFluent that = (V1beta1NamedRuleWithOperationsFluent) o; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(apiVersions, that.apiVersions))) { + return false; + } + if (!(Objects.equals(operations, that.operations))) { + return false; + } + if (!(Objects.equals(resourceNames, that.resourceNames))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(scope, that.scope))) { + return false; + } + return true; } - public String getLastApiVersion() { - return this.apiVersions.get(apiVersions.size() - 1); + public String getApiGroup(int index) { + return this.apiGroups.get(index); } - public String getMatchingApiVersion(Predicate predicate) { - for (String item : apiVersions) { - if (predicate.test(item)) { - return item; - } - } - return null; + public List getApiGroups() { + return this.apiGroups; } - public boolean hasMatchingApiVersion(Predicate predicate) { - for (String item : apiVersions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public String getApiVersion(int index) { + return this.apiVersions.get(index); } - public A withApiVersions(List apiVersions) { - if (apiVersions != null) { - this.apiVersions = new ArrayList(); - for (String item : apiVersions) { - this.addToApiVersions(item); - } - } else { - this.apiVersions = null; - } - return (A) this; + public List getApiVersions() { + return this.apiVersions; } - public A withApiVersions(String... apiVersions) { - if (this.apiVersions != null) { - this.apiVersions.clear(); - _visitables.remove("apiVersions"); - } - if (apiVersions != null) { - for (String item : apiVersions) { - this.addToApiVersions(item); - } - } - return (A) this; + public String getFirstApiGroup() { + return this.apiGroups.get(0); } - public boolean hasApiVersions() { - return this.apiVersions != null && !(this.apiVersions.isEmpty()); + public String getFirstApiVersion() { + return this.apiVersions.get(0); } - public A addToOperations(int index,String item) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - this.operations.add(index, item); - return (A) this; + public String getFirstOperation() { + return this.operations.get(0); } - public A setToOperations(int index,String item) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - this.operations.set(index, item); - return (A) this; + public String getFirstResource() { + return this.resources.get(0); } - public A addToOperations(String... items) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - for (String item : items) { - this.operations.add(item); - } - return (A) this; + public String getFirstResourceName() { + return this.resourceNames.get(0); } - public A addAllToOperations(Collection items) { - if (this.operations == null) { - this.operations = new ArrayList(); - } - for (String item : items) { - this.operations.add(item); - } - return (A) this; + public String getLastApiGroup() { + return this.apiGroups.get(apiGroups.size() - 1); } - public A removeFromOperations(String... items) { - if (this.operations == null) { - return (A) this; - } - for (String item : items) { - this.operations.remove(item); - } - return (A) this; + public String getLastApiVersion() { + return this.apiVersions.get(apiVersions.size() - 1); } - public A removeAllFromOperations(Collection items) { - if (this.operations == null) { - return (A) this; - } - for (String item : items) { - this.operations.remove(item); - } - return (A) this; + public String getLastOperation() { + return this.operations.get(operations.size() - 1); } - public List getOperations() { - return this.operations; + public String getLastResource() { + return this.resources.get(resources.size() - 1); } - public String getOperation(int index) { - return this.operations.get(index); + public String getLastResourceName() { + return this.resourceNames.get(resourceNames.size() - 1); } - public String getFirstOperation() { - return this.operations.get(0); + public String getMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public String getLastOperation() { - return this.operations.get(operations.size() - 1); + public String getMatchingApiVersion(Predicate predicate) { + for (String item : apiVersions) { + if (predicate.test(item)) { + return item; + } + } + return null; } public String getMatchingOperation(Predicate predicate) { @@ -360,123 +298,94 @@ public String getMatchingOperation(Predicate predicate) { return null; } - public boolean hasMatchingOperation(Predicate predicate) { - for (String item : operations) { + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withOperations(List operations) { - if (operations != null) { - this.operations = new ArrayList(); - for (String item : operations) { - this.addToOperations(item); + public String getMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { + if (predicate.test(item)) { + return item; } - } else { - this.operations = null; - } - return (A) this; + } + return null; } - public A withOperations(String... operations) { - if (this.operations != null) { - this.operations.clear(); - _visitables.remove("operations"); - } - if (operations != null) { - for (String item : operations) { - this.addToOperations(item); - } - } - return (A) this; + public String getOperation(int index) { + return this.operations.get(index); } - public boolean hasOperations() { - return this.operations != null && !(this.operations.isEmpty()); + public List getOperations() { + return this.operations; } - public A addToResourceNames(int index,String item) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - this.resourceNames.add(index, item); - return (A) this; + public String getResource(int index) { + return this.resources.get(index); } - public A setToResourceNames(int index,String item) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - this.resourceNames.set(index, item); - return (A) this; + public String getResourceName(int index) { + return this.resourceNames.get(index); } - public A addToResourceNames(String... items) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - for (String item : items) { - this.resourceNames.add(item); - } - return (A) this; + public List getResourceNames() { + return this.resourceNames; } - public A addAllToResourceNames(Collection items) { - if (this.resourceNames == null) { - this.resourceNames = new ArrayList(); - } - for (String item : items) { - this.resourceNames.add(item); - } - return (A) this; + public List getResources() { + return this.resources; } - public A removeFromResourceNames(String... items) { - if (this.resourceNames == null) { - return (A) this; - } - for (String item : items) { - this.resourceNames.remove(item); - } - return (A) this; + public String getScope() { + return this.scope; } - public A removeAllFromResourceNames(Collection items) { - if (this.resourceNames == null) { - return (A) this; - } - for (String item : items) { - this.resourceNames.remove(item); - } - return (A) this; + public boolean hasApiGroups() { + return this.apiGroups != null && !(this.apiGroups.isEmpty()); } - public List getResourceNames() { - return this.resourceNames; + public boolean hasApiVersions() { + return this.apiVersions != null && !(this.apiVersions.isEmpty()); } - public String getResourceName(int index) { - return this.resourceNames.get(index); + public boolean hasMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getFirstResourceName() { - return this.resourceNames.get(0); + public boolean hasMatchingApiVersion(Predicate predicate) { + for (String item : apiVersions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getLastResourceName() { - return this.resourceNames.get(resourceNames.size() - 1); + public boolean hasMatchingOperation(Predicate predicate) { + for (String item : operations) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getMatchingResourceName(Predicate predicate) { - for (String item : resourceNames) { + public boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { - return item; + return true; } } - return null; + return false; } public boolean hasMatchingResourceName(Predicate predicate) { @@ -488,77 +397,62 @@ public boolean hasMatchingResourceName(Predicate predicate) { return false; } - public A withResourceNames(List resourceNames) { - if (resourceNames != null) { - this.resourceNames = new ArrayList(); - for (String item : resourceNames) { - this.addToResourceNames(item); - } - } else { - this.resourceNames = null; - } - return (A) this; - } - - public A withResourceNames(String... resourceNames) { - if (this.resourceNames != null) { - this.resourceNames.clear(); - _visitables.remove("resourceNames"); - } - if (resourceNames != null) { - for (String item : resourceNames) { - this.addToResourceNames(item); - } - } - return (A) this; + public boolean hasOperations() { + return this.operations != null && !(this.operations.isEmpty()); } public boolean hasResourceNames() { return this.resourceNames != null && !(this.resourceNames.isEmpty()); } - public A addToResources(int index,String item) { - if (this.resources == null) { - this.resources = new ArrayList(); - } - this.resources.add(index, item); - return (A) this; + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); } - public A setToResources(int index,String item) { - if (this.resources == null) { - this.resources = new ArrayList(); + public boolean hasScope() { + return this.scope != null; + } + + public int hashCode() { + return Objects.hash(apiGroups, apiVersions, operations, resourceNames, resources, scope); + } + + public A removeAllFromApiGroups(Collection items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); } - this.resources.set(index, item); return (A) this; } - public A addToResources(String... items) { - if (this.resources == null) { - this.resources = new ArrayList(); + public A removeAllFromApiVersions(Collection items) { + if (this.apiVersions == null) { + return (A) this; } for (String item : items) { - this.resources.add(item); + this.apiVersions.remove(item); } return (A) this; } - public A addAllToResources(Collection items) { - if (this.resources == null) { - this.resources = new ArrayList(); + public A removeAllFromOperations(Collection items) { + if (this.operations == null) { + return (A) this; } for (String item : items) { - this.resources.add(item); + this.operations.remove(item); } return (A) this; } - public A removeFromResources(String... items) { - if (this.resources == null) { + public A removeAllFromResourceNames(Collection items) { + if (this.resourceNames == null) { return (A) this; } for (String item : items) { - this.resources.remove(item); + this.resourceNames.remove(item); } return (A) this; } @@ -573,116 +467,94 @@ public A removeAllFromResources(Collection items) { return (A) this; } - public List getResources() { - return this.resources; - } - - public String getResource(int index) { - return this.resources.get(index); - } - - public String getFirstResource() { - return this.resources.get(0); - } - - public String getLastResource() { - return this.resources.get(resources.size() - 1); - } - - public String getMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; } - public boolean hasMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A removeFromApiVersions(String... items) { + if (this.apiVersions == null) { + return (A) this; + } + for (String item : items) { + this.apiVersions.remove(item); + } + return (A) this; } - public A withResources(List resources) { - if (resources != null) { - this.resources = new ArrayList(); - for (String item : resources) { - this.addToResources(item); - } - } else { - this.resources = null; + public A removeFromOperations(String... items) { + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.remove(item); } return (A) this; } - public A withResources(String... resources) { - if (this.resources != null) { - this.resources.clear(); - _visitables.remove("resources"); + public A removeFromResourceNames(String... items) { + if (this.resourceNames == null) { + return (A) this; } - if (resources != null) { - for (String item : resources) { - this.addToResources(item); - } + for (String item : items) { + this.resourceNames.remove(item); } return (A) this; } - public boolean hasResources() { - return this.resources != null && !(this.resources.isEmpty()); + public A removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } - public String getScope() { - return this.scope; + public A setToApiGroups(int index,String item) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + this.apiGroups.set(index, item); + return (A) this; } - public A withScope(String scope) { - this.scope = scope; + public A setToApiVersions(int index,String item) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + this.apiVersions.set(index, item); return (A) this; } - public boolean hasScope() { - return this.scope != null; + public A setToOperations(int index,String item) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + this.operations.set(index, item); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1NamedRuleWithOperationsFluent that = (V1beta1NamedRuleWithOperationsFluent) o; - if (!(Objects.equals(apiGroups, that.apiGroups))) { - return false; - } - if (!(Objects.equals(apiVersions, that.apiVersions))) { - return false; - } - if (!(Objects.equals(operations, that.operations))) { - return false; - } - if (!(Objects.equals(resourceNames, that.resourceNames))) { - return false; - } - if (!(Objects.equals(resources, that.resources))) { - return false; - } - if (!(Objects.equals(scope, that.scope))) { - return false; + public A setToResourceNames(int index,String item) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); } - return true; + this.resourceNames.set(index, item); + return (A) this; } - public int hashCode() { - return Objects.hash(apiGroups, apiVersions, operations, resourceNames, resources, scope); + public A setToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.set(index, item); + return (A) this; } public String toString() { @@ -721,5 +593,134 @@ public String toString() { return sb.toString(); } - + public A withApiGroups(List apiGroups) { + if (apiGroups != null) { + this.apiGroups = new ArrayList(); + for (String item : apiGroups) { + this.addToApiGroups(item); + } + } else { + this.apiGroups = null; + } + return (A) this; + } + + public A withApiGroups(String... apiGroups) { + if (this.apiGroups != null) { + this.apiGroups.clear(); + _visitables.remove("apiGroups"); + } + if (apiGroups != null) { + for (String item : apiGroups) { + this.addToApiGroups(item); + } + } + return (A) this; + } + + public A withApiVersions(List apiVersions) { + if (apiVersions != null) { + this.apiVersions = new ArrayList(); + for (String item : apiVersions) { + this.addToApiVersions(item); + } + } else { + this.apiVersions = null; + } + return (A) this; + } + + public A withApiVersions(String... apiVersions) { + if (this.apiVersions != null) { + this.apiVersions.clear(); + _visitables.remove("apiVersions"); + } + if (apiVersions != null) { + for (String item : apiVersions) { + this.addToApiVersions(item); + } + } + return (A) this; + } + + public A withOperations(List operations) { + if (operations != null) { + this.operations = new ArrayList(); + for (String item : operations) { + this.addToOperations(item); + } + } else { + this.operations = null; + } + return (A) this; + } + + public A withOperations(String... operations) { + if (this.operations != null) { + this.operations.clear(); + _visitables.remove("operations"); + } + if (operations != null) { + for (String item : operations) { + this.addToOperations(item); + } + } + return (A) this; + } + + public A withResourceNames(List resourceNames) { + if (resourceNames != null) { + this.resourceNames = new ArrayList(); + for (String item : resourceNames) { + this.addToResourceNames(item); + } + } else { + this.resourceNames = null; + } + return (A) this; + } + + public A withResourceNames(String... resourceNames) { + if (this.resourceNames != null) { + this.resourceNames.clear(); + _visitables.remove("resourceNames"); + } + if (resourceNames != null) { + for (String item : resourceNames) { + this.addToResourceNames(item); + } + } + return (A) this; + } + + public A withResources(List resources) { + if (resources != null) { + this.resources = new ArrayList(); + for (String item : resources) { + this.addToResources(item); + } + } else { + this.resources = null; + } + return (A) this; + } + + public A withResources(String... resources) { + if (this.resources != null) { + this.resources.clear(); + _visitables.remove("resources"); + } + if (resources != null) { + for (String item : resources) { + this.addToResources(item); + } + } + return (A) this; + } + + public A withScope(String scope) { + this.scope = scope; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataBuilder.java index a75ab37c6c..6affb3733b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1NetworkDeviceDataBuilder extends V1beta1NetworkDeviceDataFluent implements VisitableBuilder{ + + V1beta1NetworkDeviceDataFluent fluent; + public V1beta1NetworkDeviceDataBuilder() { this(new V1beta1NetworkDeviceData()); } @@ -11,17 +14,16 @@ public V1beta1NetworkDeviceDataBuilder(V1beta1NetworkDeviceDataFluent fluent) this(fluent, new V1beta1NetworkDeviceData()); } - public V1beta1NetworkDeviceDataBuilder(V1beta1NetworkDeviceDataFluent fluent,V1beta1NetworkDeviceData instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1NetworkDeviceDataBuilder(V1beta1NetworkDeviceData instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1NetworkDeviceDataFluent fluent; + public V1beta1NetworkDeviceDataBuilder(V1beta1NetworkDeviceDataFluent fluent,V1beta1NetworkDeviceData instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1NetworkDeviceData build() { V1beta1NetworkDeviceData buildable = new V1beta1NetworkDeviceData(); buildable.setHardwareAddress(fluent.getHardwareAddress()); @@ -30,5 +32,4 @@ public V1beta1NetworkDeviceData build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataFluent.java index add77e7e5f..12e0a1ead9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,64 +16,25 @@ */ @SuppressWarnings("unchecked") public class V1beta1NetworkDeviceDataFluent> extends BaseFluent{ - public V1beta1NetworkDeviceDataFluent() { - } - - public V1beta1NetworkDeviceDataFluent(V1beta1NetworkDeviceData instance) { - this.copyInstance(instance); - } + private String hardwareAddress; private String interfaceName; private List ips; - - protected void copyInstance(V1beta1NetworkDeviceData instance) { - instance = instance != null ? instance : new V1beta1NetworkDeviceData(); - if (instance != null) { - this.withHardwareAddress(instance.getHardwareAddress()); - this.withInterfaceName(instance.getInterfaceName()); - this.withIps(instance.getIps()); - } - } - - public String getHardwareAddress() { - return this.hardwareAddress; - } - - public A withHardwareAddress(String hardwareAddress) { - this.hardwareAddress = hardwareAddress; - return (A) this; - } - - public boolean hasHardwareAddress() { - return this.hardwareAddress != null; - } - - public String getInterfaceName() { - return this.interfaceName; - } - - public A withInterfaceName(String interfaceName) { - this.interfaceName = interfaceName; - return (A) this; + + public V1beta1NetworkDeviceDataFluent() { } - public boolean hasInterfaceName() { - return this.interfaceName != null; + public V1beta1NetworkDeviceDataFluent(V1beta1NetworkDeviceData instance) { + this.copyInstance(instance); } - - public A addToIps(int index,String item) { + + public A addAllToIps(Collection items) { if (this.ips == null) { this.ips = new ArrayList(); } - this.ips.add(index, item); - return (A) this; - } - - public A setToIps(int index,String item) { - if (this.ips == null) { - this.ips = new ArrayList(); + for (String item : items) { + this.ips.add(item); } - this.ips.set(index, item); return (A) this; } @@ -87,46 +48,64 @@ public A addToIps(String... items) { return (A) this; } - public A addAllToIps(Collection items) { + public A addToIps(int index,String item) { if (this.ips == null) { this.ips = new ArrayList(); } - for (String item : items) { - this.ips.add(item); - } + this.ips.add(index, item); return (A) this; } - public A removeFromIps(String... items) { - if (this.ips == null) { - return (A) this; - } - for (String item : items) { - this.ips.remove(item); + protected void copyInstance(V1beta1NetworkDeviceData instance) { + instance = instance != null ? instance : new V1beta1NetworkDeviceData(); + if (instance != null) { + this.withHardwareAddress(instance.getHardwareAddress()); + this.withInterfaceName(instance.getInterfaceName()); + this.withIps(instance.getIps()); } - return (A) this; } - public A removeAllFromIps(Collection items) { - if (this.ips == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.ips.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1beta1NetworkDeviceDataFluent that = (V1beta1NetworkDeviceDataFluent) o; + if (!(Objects.equals(hardwareAddress, that.hardwareAddress))) { + return false; + } + if (!(Objects.equals(interfaceName, that.interfaceName))) { + return false; + } + if (!(Objects.equals(ips, that.ips))) { + return false; + } + return true; } - public List getIps() { - return this.ips; + public String getFirstIp() { + return this.ips.get(0); + } + + public String getHardwareAddress() { + return this.hardwareAddress; + } + + public String getInterfaceName() { + return this.interfaceName; } public String getIp(int index) { return this.ips.get(index); } - public String getFirstIp() { - return this.ips.get(0); + public List getIps() { + return this.ips; } public String getLastIp() { @@ -142,6 +121,18 @@ public String getMatchingIp(Predicate predicate) { return null; } + public boolean hasHardwareAddress() { + return this.hardwareAddress != null; + } + + public boolean hasInterfaceName() { + return this.interfaceName != null; + } + + public boolean hasIps() { + return this.ips != null && !(this.ips.isEmpty()); + } + public boolean hasMatchingIp(Predicate predicate) { for (String item : ips) { if (predicate.test(item)) { @@ -151,60 +142,36 @@ public boolean hasMatchingIp(Predicate predicate) { return false; } - public A withIps(List ips) { - if (ips != null) { - this.ips = new ArrayList(); - for (String item : ips) { - this.addToIps(item); - } - } else { - this.ips = null; - } - return (A) this; + public int hashCode() { + return Objects.hash(hardwareAddress, interfaceName, ips); } - public A withIps(String... ips) { - if (this.ips != null) { - this.ips.clear(); - _visitables.remove("ips"); + public A removeAllFromIps(Collection items) { + if (this.ips == null) { + return (A) this; } - if (ips != null) { - for (String item : ips) { - this.addToIps(item); - } + for (String item : items) { + this.ips.remove(item); } return (A) this; } - public boolean hasIps() { - return this.ips != null && !(this.ips.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1NetworkDeviceDataFluent that = (V1beta1NetworkDeviceDataFluent) o; - if (!(Objects.equals(hardwareAddress, that.hardwareAddress))) { - return false; - } - if (!(Objects.equals(interfaceName, that.interfaceName))) { - return false; + public A removeFromIps(String... items) { + if (this.ips == null) { + return (A) this; } - if (!(Objects.equals(ips, that.ips))) { - return false; + for (String item : items) { + this.ips.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(hardwareAddress, interfaceName, ips); + public A setToIps(int index,String item) { + if (this.ips == null) { + this.ips = new ArrayList(); + } + this.ips.set(index, item); + return (A) this; } public String toString() { @@ -228,5 +195,39 @@ public String toString() { return sb.toString(); } - + public A withHardwareAddress(String hardwareAddress) { + this.hardwareAddress = hardwareAddress; + return (A) this; + } + + public A withInterfaceName(String interfaceName) { + this.interfaceName = interfaceName; + return (A) this; + } + + public A withIps(List ips) { + if (ips != null) { + this.ips = new ArrayList(); + for (String item : ips) { + this.addToIps(item); + } + } else { + this.ips = null; + } + return (A) this; + } + + public A withIps(String... ips) { + if (this.ips != null) { + this.ips.clear(); + _visitables.remove("ips"); + } + if (ips != null) { + for (String item : ips) { + this.addToIps(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationBuilder.java index 7d1d121199..bdffcdf327 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1OpaqueDeviceConfigurationBuilder extends V1beta1OpaqueDeviceConfigurationFluent implements VisitableBuilder{ + + V1beta1OpaqueDeviceConfigurationFluent fluent; + public V1beta1OpaqueDeviceConfigurationBuilder() { this(new V1beta1OpaqueDeviceConfiguration()); } @@ -11,17 +14,16 @@ public V1beta1OpaqueDeviceConfigurationBuilder(V1beta1OpaqueDeviceConfigurationF this(fluent, new V1beta1OpaqueDeviceConfiguration()); } - public V1beta1OpaqueDeviceConfigurationBuilder(V1beta1OpaqueDeviceConfigurationFluent fluent,V1beta1OpaqueDeviceConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1OpaqueDeviceConfigurationBuilder(V1beta1OpaqueDeviceConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1OpaqueDeviceConfigurationFluent fluent; + public V1beta1OpaqueDeviceConfigurationBuilder(V1beta1OpaqueDeviceConfigurationFluent fluent,V1beta1OpaqueDeviceConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1OpaqueDeviceConfiguration build() { V1beta1OpaqueDeviceConfiguration buildable = new V1beta1OpaqueDeviceConfiguration(); buildable.setDriver(fluent.getDriver()); @@ -29,5 +31,4 @@ public V1beta1OpaqueDeviceConfiguration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationFluent.java index 51581f9f9a..878eda2e03 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1OpaqueDeviceConfigurationFluent> extends BaseFluent{ + + private String driver; + private Object parameters; + public V1beta1OpaqueDeviceConfigurationFluent() { } public V1beta1OpaqueDeviceConfigurationFluent(V1beta1OpaqueDeviceConfiguration instance) { this.copyInstance(instance); } - private String driver; - private Object parameters; - + protected void copyInstance(V1beta1OpaqueDeviceConfiguration instance) { instance = instance != null ? instance : new V1beta1OpaqueDeviceConfiguration(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1beta1OpaqueDeviceConfiguration instance) { } } - public String getDriver() { - return this.driver; - } - - public A withDriver(String driver) { - this.driver = driver; - return (A) this; - } - - public boolean hasDriver() { - return this.driver != null; - } - - public Object getParameters() { - return this.parameters; - } - - public A withParameters(Object parameters) { - this.parameters = parameters; - return (A) this; - } - - public boolean hasParameters() { - return this.parameters != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getDriver() { + return this.driver; + } + + public Object getParameters() { + return this.parameters; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasParameters() { + return this.parameters != null; + } + public int hashCode() { return Objects.hash(driver, parameters); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withParameters(Object parameters) { + this.parameters = parameters; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindBuilder.java index a110c4f697..4d2ff983fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ParamKindBuilder extends V1beta1ParamKindFluent implements VisitableBuilder{ + + V1beta1ParamKindFluent fluent; + public V1beta1ParamKindBuilder() { this(new V1beta1ParamKind()); } @@ -11,17 +14,16 @@ public V1beta1ParamKindBuilder(V1beta1ParamKindFluent fluent) { this(fluent, new V1beta1ParamKind()); } - public V1beta1ParamKindBuilder(V1beta1ParamKindFluent fluent,V1beta1ParamKind instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ParamKindBuilder(V1beta1ParamKind instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ParamKindFluent fluent; + public V1beta1ParamKindBuilder(V1beta1ParamKindFluent fluent,V1beta1ParamKind instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ParamKind build() { V1beta1ParamKind buildable = new V1beta1ParamKind(); buildable.setApiVersion(fluent.getApiVersion()); @@ -29,5 +31,4 @@ public V1beta1ParamKind build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindFluent.java index b9f3f72eaa..0ced342452 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ParamKindFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + public V1beta1ParamKindFluent() { } public V1beta1ParamKindFluent(V1beta1ParamKind instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - + protected void copyInstance(V1beta1ParamKind instance) { instance = instance != null ? instance : new V1beta1ParamKind(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1beta1ParamKind instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefBuilder.java index a563da16e7..cb9baf8576 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ParamRefBuilder extends V1beta1ParamRefFluent implements VisitableBuilder{ + + V1beta1ParamRefFluent fluent; + public V1beta1ParamRefBuilder() { this(new V1beta1ParamRef()); } @@ -11,17 +14,16 @@ public V1beta1ParamRefBuilder(V1beta1ParamRefFluent fluent) { this(fluent, new V1beta1ParamRef()); } - public V1beta1ParamRefBuilder(V1beta1ParamRefFluent fluent,V1beta1ParamRef instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ParamRefBuilder(V1beta1ParamRef instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ParamRefFluent fluent; + public V1beta1ParamRefBuilder(V1beta1ParamRefFluent fluent,V1beta1ParamRef instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ParamRef build() { V1beta1ParamRef buildable = new V1beta1ParamRef(); buildable.setName(fluent.getName()); @@ -31,5 +33,4 @@ public V1beta1ParamRef build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefFluent.java index 6b7fca50ff..51b999f482 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefFluent.java @@ -1,29 +1,35 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ParamRefFluent> extends BaseFluent{ + + private String name; + private String namespace; + private String parameterNotFoundAction; + private V1LabelSelectorBuilder selector; + public V1beta1ParamRefFluent() { } public V1beta1ParamRefFluent(V1beta1ParamRef instance) { this.copyInstance(instance); } - private String name; - private String namespace; - private String parameterNotFoundAction; - private V1LabelSelectorBuilder selector; + + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; + } protected void copyInstance(V1beta1ParamRef instance) { instance = instance != null ? instance : new V1beta1ParamRef(); @@ -35,77 +41,6 @@ protected void copyInstance(V1beta1ParamRef instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - - public String getParameterNotFoundAction() { - return this.parameterNotFoundAction; - } - - public A withParameterNotFoundAction(String parameterNotFoundAction) { - this.parameterNotFoundAction = parameterNotFoundAction; - return (A) this; - } - - public boolean hasParameterNotFoundAction() { - return this.parameterNotFoundAction != null; - } - - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public A withSelector(V1LabelSelector selector) { - this._visitables.remove("selector"); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - this._visitables.get("selector").add(this.selector); - } else { - this.selector = null; - this._visitables.get("selector").remove(this.selector); - } - return (A) this; - } - - public boolean hasSelector() { - return this.selector != null; - } - - public SelectorNested withNewSelector() { - return new SelectorNested(null); - } - - public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); - } - - public SelectorNested editSelector() { - return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); - } - public SelectorNested editOrNewSelector() { return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } @@ -114,6 +49,10 @@ public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -140,6 +79,34 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; + } + + public String getParameterNotFoundAction() { + return this.parameterNotFoundAction; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public boolean hasParameterNotFoundAction() { + return this.parameterNotFoundAction != null; + } + + public boolean hasSelector() { + return this.selector != null; + } + public int hashCode() { return Objects.hash(name, namespace, parameterNotFoundAction, selector); } @@ -169,12 +136,49 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public SelectorNested withNewSelector() { + return new SelectorNested(null); + } + + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); + } + + public A withParameterNotFoundAction(String parameterNotFoundAction) { + this.parameterNotFoundAction = parameterNotFoundAction; + return (A) this; + } + + public A withSelector(V1LabelSelector selector) { + this._visitables.remove("selector"); + if (selector != null) { + this.selector = new V1LabelSelectorBuilder(selector); + this._visitables.get("selector").add(this.selector); + } else { + this.selector = null; + this._visitables.get("selector").remove(this.selector); + } + return (A) this; + } public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + SelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1beta1ParamRefFluent.this.withSelector(builder.build()); } @@ -183,7 +187,5 @@ public N endSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceBuilder.java index 35b5bc631c..5db20f93c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ParentReferenceBuilder extends V1beta1ParentReferenceFluent implements VisitableBuilder{ + + V1beta1ParentReferenceFluent fluent; + public V1beta1ParentReferenceBuilder() { this(new V1beta1ParentReference()); } @@ -11,17 +14,16 @@ public V1beta1ParentReferenceBuilder(V1beta1ParentReferenceFluent fluent) { this(fluent, new V1beta1ParentReference()); } - public V1beta1ParentReferenceBuilder(V1beta1ParentReferenceFluent fluent,V1beta1ParentReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ParentReferenceBuilder(V1beta1ParentReference instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ParentReferenceFluent fluent; + public V1beta1ParentReferenceBuilder(V1beta1ParentReferenceFluent fluent,V1beta1ParentReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ParentReference build() { V1beta1ParentReference buildable = new V1beta1ParentReference(); buildable.setGroup(fluent.getGroup()); @@ -31,5 +33,4 @@ public V1beta1ParentReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java index 2726154af8..13b73897c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ParentReferenceFluent> extends BaseFluent{ + + private String group; + private String name; + private String namespace; + private String resource; + public V1beta1ParentReferenceFluent() { } public V1beta1ParentReferenceFluent(V1beta1ParentReference instance) { this.copyInstance(instance); } - private String group; - private String name; - private String namespace; - private String resource; - + protected void copyInstance(V1beta1ParentReference instance) { instance = instance != null ? instance : new V1beta1ParentReference(); if (instance != null) { @@ -33,58 +35,6 @@ protected void copyInstance(V1beta1ParentReference instance) { } } - public String getGroup() { - return this.group; - } - - public A withGroup(String group) { - this.group = group; - return (A) this; - } - - public boolean hasGroup() { - return this.group != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getNamespace() { - return this.namespace; - } - - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; - } - - public boolean hasNamespace() { - return this.namespace != null; - } - - public String getResource() { - return this.resource; - } - - public A withResource(String resource) { - this.resource = resource; - return (A) this; - } - - public boolean hasResource() { - return this.resource != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -111,6 +61,38 @@ public boolean equals(Object o) { return true; } + public String getGroup() { + return this.group; + } + + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; + } + + public String getResource() { + return this.resource; + } + + public boolean hasGroup() { + return this.group != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public boolean hasResource() { + return this.resource != null; + } + public int hashCode() { return Objects.hash(group, name, namespace, resource); } @@ -141,5 +123,24 @@ public String toString() { return sb.toString(); } - + public A withGroup(String group) { + this.group = group; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimBuilder.java index 5521a0ef36..c5b248fcca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ResourceClaimBuilder extends V1beta1ResourceClaimFluent implements VisitableBuilder{ + + V1beta1ResourceClaimFluent fluent; + public V1beta1ResourceClaimBuilder() { this(new V1beta1ResourceClaim()); } @@ -11,17 +14,16 @@ public V1beta1ResourceClaimBuilder(V1beta1ResourceClaimFluent fluent) { this(fluent, new V1beta1ResourceClaim()); } - public V1beta1ResourceClaimBuilder(V1beta1ResourceClaimFluent fluent,V1beta1ResourceClaim instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ResourceClaimBuilder(V1beta1ResourceClaim instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ResourceClaimFluent fluent; + public V1beta1ResourceClaimBuilder(V1beta1ResourceClaimFluent fluent,V1beta1ResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ResourceClaim build() { V1beta1ResourceClaim buildable = new V1beta1ResourceClaim(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1beta1ResourceClaim build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceBuilder.java index 3fc4b08dbb..b7c91daab9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ResourceClaimConsumerReferenceBuilder extends V1beta1ResourceClaimConsumerReferenceFluent implements VisitableBuilder{ + + V1beta1ResourceClaimConsumerReferenceFluent fluent; + public V1beta1ResourceClaimConsumerReferenceBuilder() { this(new V1beta1ResourceClaimConsumerReference()); } @@ -11,17 +14,16 @@ public V1beta1ResourceClaimConsumerReferenceBuilder(V1beta1ResourceClaimConsumer this(fluent, new V1beta1ResourceClaimConsumerReference()); } - public V1beta1ResourceClaimConsumerReferenceBuilder(V1beta1ResourceClaimConsumerReferenceFluent fluent,V1beta1ResourceClaimConsumerReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ResourceClaimConsumerReferenceBuilder(V1beta1ResourceClaimConsumerReference instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ResourceClaimConsumerReferenceFluent fluent; + public V1beta1ResourceClaimConsumerReferenceBuilder(V1beta1ResourceClaimConsumerReferenceFluent fluent,V1beta1ResourceClaimConsumerReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ResourceClaimConsumerReference build() { V1beta1ResourceClaimConsumerReference buildable = new V1beta1ResourceClaimConsumerReference(); buildable.setApiGroup(fluent.getApiGroup()); @@ -31,5 +33,4 @@ public V1beta1ResourceClaimConsumerReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceFluent.java index d53598e535..7fd8796cb3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ResourceClaimConsumerReferenceFluent> extends BaseFluent{ + + private String apiGroup; + private String name; + private String resource; + private String uid; + public V1beta1ResourceClaimConsumerReferenceFluent() { } public V1beta1ResourceClaimConsumerReferenceFluent(V1beta1ResourceClaimConsumerReference instance) { this.copyInstance(instance); } - private String apiGroup; - private String name; - private String resource; - private String uid; - + protected void copyInstance(V1beta1ResourceClaimConsumerReference instance) { instance = instance != null ? instance : new V1beta1ResourceClaimConsumerReference(); if (instance != null) { @@ -33,58 +35,6 @@ protected void copyInstance(V1beta1ResourceClaimConsumerReference instance) { } } - public String getApiGroup() { - return this.apiGroup; - } - - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; - } - - public boolean hasApiGroup() { - return this.apiGroup != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getResource() { - return this.resource; - } - - public A withResource(String resource) { - this.resource = resource; - return (A) this; - } - - public boolean hasResource() { - return this.resource != null; - } - - public String getUid() { - return this.uid; - } - - public A withUid(String uid) { - this.uid = uid; - return (A) this; - } - - public boolean hasUid() { - return this.uid != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -111,6 +61,38 @@ public boolean equals(Object o) { return true; } + public String getApiGroup() { + return this.apiGroup; + } + + public String getName() { + return this.name; + } + + public String getResource() { + return this.resource; + } + + public String getUid() { + return this.uid; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResource() { + return this.resource != null; + } + + public boolean hasUid() { + return this.uid != null; + } + public int hashCode() { return Objects.hash(apiGroup, name, resource, uid); } @@ -141,5 +123,24 @@ public String toString() { return sb.toString(); } - + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimFluent.java index 7b98df7544..488d59c0c3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ResourceClaimFluent> extends BaseFluent{ - public V1beta1ResourceClaimFluent() { - } - - public V1beta1ResourceClaimFluent(V1beta1ResourceClaim instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1beta1ResourceClaimSpecBuilder spec; private V1beta1ResourceClaimStatusBuilder status; - - protected void copyInstance(V1beta1ResourceClaim instance) { - instance = instance != null ? instance : new V1beta1ResourceClaim(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1beta1ResourceClaimFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1beta1ResourceClaimFluent(V1beta1ResourceClaim instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1beta1ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1beta1ResourceClaimStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1beta1ResourceClaim instance) { + instance = instance != null ? instance : new V1beta1ResourceClaim(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1beta1ResourceClaimSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta1ResourceClaimSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta1ResourceClaimSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta1ResourceClaimSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ResourceClaimSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1beta1ResourceClaimSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1beta1ResourceClaimStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1beta1ResourceClaimStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1beta1ResourceClaimStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1beta1ResourceClaimStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1beta1ResourceClaimStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1beta1ResourceClaimStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1beta1ResourceClaimStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1beta1ResourceClaimStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ResourceClaimSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1beta1ResourceClaimStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1beta1ResourceClaimSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1ResourceClaimSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1beta1ResourceClaimStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1beta1ResourceClaimStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1beta1ResourceClaimFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1beta1ResourceClaimSpecFluent> implements Nested{ + + V1beta1ResourceClaimSpecBuilder builder; + SpecNested(V1beta1ResourceClaimSpec item) { this.builder = new V1beta1ResourceClaimSpecBuilder(this, item); } - V1beta1ResourceClaimSpecBuilder builder; - + public N and() { return (N) V1beta1ResourceClaimFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1beta1ResourceClaimStatusFluent> implements Nested{ + + V1beta1ResourceClaimStatusBuilder builder; + StatusNested(V1beta1ResourceClaimStatus item) { this.builder = new V1beta1ResourceClaimStatusBuilder(this, item); } - V1beta1ResourceClaimStatusBuilder builder; - + public N and() { return (N) V1beta1ResourceClaimFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListBuilder.java index f99feaed14..4a53459f39 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ResourceClaimListBuilder extends V1beta1ResourceClaimListFluent implements VisitableBuilder{ + + V1beta1ResourceClaimListFluent fluent; + public V1beta1ResourceClaimListBuilder() { this(new V1beta1ResourceClaimList()); } @@ -11,17 +14,16 @@ public V1beta1ResourceClaimListBuilder(V1beta1ResourceClaimListFluent fluent) this(fluent, new V1beta1ResourceClaimList()); } - public V1beta1ResourceClaimListBuilder(V1beta1ResourceClaimListFluent fluent,V1beta1ResourceClaimList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ResourceClaimListBuilder(V1beta1ResourceClaimList instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ResourceClaimListFluent fluent; + public V1beta1ResourceClaimListBuilder(V1beta1ResourceClaimListFluent fluent,V1beta1ResourceClaimList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ResourceClaimList build() { V1beta1ResourceClaimList buildable = new V1beta1ResourceClaimList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1ResourceClaimList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListFluent.java index 5dfa39022d..fbe55dfa07 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ResourceClaimListFluent> extends BaseFluent{ - public V1beta1ResourceClaimListFluent() { - } - - public V1beta1ResourceClaimListFluent(V1beta1ResourceClaimList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta1ResourceClaimList instance) { - instance = instance != null ? instance : new V1beta1ResourceClaimList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1beta1ResourceClaimListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1beta1ResourceClaimListFluent(V1beta1ResourceClaimList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1beta1ResourceClaim item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1beta1ResourceClaim item : items) { + V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1beta1ResourceClaim item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1ResourceClaim item) { + return new ItemsNested(-1, item); } public A addToItems(V1beta1ResourceClaim... items) { @@ -96,68 +65,31 @@ public A addToItems(V1beta1ResourceClaim... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1beta1ResourceClaim item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1beta1ResourceClaim item : items) { - V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); + V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1beta1ResourceClaim... items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1ResourceClaim item : items) { - V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1ResourceClaim item : items) { - V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta1ResourceClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1beta1ResourceClaim buildFirstItem() { + return this.items.get(0).build(); } public V1beta1ResourceClaim buildItem(int index) { return this.items.get(index).build(); } - public V1beta1ResourceClaim buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1beta1ResourceClaim buildLastItem() { @@ -173,73 +105,34 @@ public V1beta1ResourceClaim buildMatchingItem(Predicate predicate) { - for (V1beta1ResourceClaimBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta1ResourceClaim item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1beta1ResourceClaimList instance) { + instance = instance != null ? instance : new V1beta1ResourceClaimList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1beta1ResourceClaim... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta1ResourceClaim item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta1ResourceClaim item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta1ResourceClaim item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate pr return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1ResourceClaimBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1ResourceClaim item : items) { + V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta1ResourceClaim... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1ResourceClaim item : items) { + V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1ResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta1ResourceClaim item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta1ResourceClaim item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1ResourceClaim item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta1ResourceClaim... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1ResourceClaim item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1beta1ResourceClaimFluent> implements Nested{ + + V1beta1ResourceClaimBuilder builder; + int index; + ItemsNested(int index,V1beta1ResourceClaim item) { this.index = index; this.builder = new V1beta1ResourceClaimBuilder(this, item); } - V1beta1ResourceClaimBuilder builder; - int index; - + public N and() { return (N) V1beta1ResourceClaimListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1beta1ResourceClaimListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecBuilder.java index 8fc327ea4a..da7d215de2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ResourceClaimSpecBuilder extends V1beta1ResourceClaimSpecFluent implements VisitableBuilder{ + + V1beta1ResourceClaimSpecFluent fluent; + public V1beta1ResourceClaimSpecBuilder() { this(new V1beta1ResourceClaimSpec()); } @@ -11,22 +14,20 @@ public V1beta1ResourceClaimSpecBuilder(V1beta1ResourceClaimSpecFluent fluent) this(fluent, new V1beta1ResourceClaimSpec()); } - public V1beta1ResourceClaimSpecBuilder(V1beta1ResourceClaimSpecFluent fluent,V1beta1ResourceClaimSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ResourceClaimSpecBuilder(V1beta1ResourceClaimSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ResourceClaimSpecFluent fluent; + public V1beta1ResourceClaimSpecBuilder(V1beta1ResourceClaimSpecFluent fluent,V1beta1ResourceClaimSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ResourceClaimSpec build() { V1beta1ResourceClaimSpec buildable = new V1beta1ResourceClaimSpec(); buildable.setDevices(fluent.buildDevices()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecFluent.java index dcb713bf11..d1a0e8dc13 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ResourceClaimSpecFluent> extends BaseFluent{ + + private V1beta1DeviceClaimBuilder devices; + public V1beta1ResourceClaimSpecFluent() { } public V1beta1ResourceClaimSpecFluent(V1beta1ResourceClaimSpec instance) { this.copyInstance(instance); } - private V1beta1DeviceClaimBuilder devices; + + public V1beta1DeviceClaim buildDevices() { + return this.devices != null ? this.devices.build() : null; + } protected void copyInstance(V1beta1ResourceClaimSpec instance) { instance = instance != null ? instance : new V1beta1ResourceClaimSpec(); @@ -29,34 +35,6 @@ protected void copyInstance(V1beta1ResourceClaimSpec instance) { } } - public V1beta1DeviceClaim buildDevices() { - return this.devices != null ? this.devices.build() : null; - } - - public A withDevices(V1beta1DeviceClaim devices) { - this._visitables.remove("devices"); - if (devices != null) { - this.devices = new V1beta1DeviceClaimBuilder(devices); - this._visitables.get("devices").add(this.devices); - } else { - this.devices = null; - this._visitables.get("devices").remove(this.devices); - } - return (A) this; - } - - public boolean hasDevices() { - return this.devices != null; - } - - public DevicesNested withNewDevices() { - return new DevicesNested(null); - } - - public DevicesNested withNewDevicesLike(V1beta1DeviceClaim item) { - return new DevicesNested(item); - } - public DevicesNested editDevices() { return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(null)); } @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasDevices() { + return this.devices != null; + } + public int hashCode() { return Objects.hash(devices); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withDevices(V1beta1DeviceClaim devices) { + this._visitables.remove("devices"); + if (devices != null) { + this.devices = new V1beta1DeviceClaimBuilder(devices); + this._visitables.get("devices").add(this.devices); + } else { + this.devices = null; + this._visitables.get("devices").remove(this.devices); + } + return (A) this; + } + + public DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1beta1DeviceClaim item) { + return new DevicesNested(item); + } public class DevicesNested extends V1beta1DeviceClaimFluent> implements Nested{ + + V1beta1DeviceClaimBuilder builder; + DevicesNested(V1beta1DeviceClaim item) { this.builder = new V1beta1DeviceClaimBuilder(this, item); } - V1beta1DeviceClaimBuilder builder; - + public N and() { return (N) V1beta1ResourceClaimSpecFluent.this.withDevices(builder.build()); } @@ -114,7 +118,5 @@ public N endDevices() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusBuilder.java index 98f8a2fb42..134ded6056 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ResourceClaimStatusBuilder extends V1beta1ResourceClaimStatusFluent implements VisitableBuilder{ + + V1beta1ResourceClaimStatusFluent fluent; + public V1beta1ResourceClaimStatusBuilder() { this(new V1beta1ResourceClaimStatus()); } @@ -11,17 +14,16 @@ public V1beta1ResourceClaimStatusBuilder(V1beta1ResourceClaimStatusFluent flu this(fluent, new V1beta1ResourceClaimStatus()); } - public V1beta1ResourceClaimStatusBuilder(V1beta1ResourceClaimStatusFluent fluent,V1beta1ResourceClaimStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ResourceClaimStatusBuilder(V1beta1ResourceClaimStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ResourceClaimStatusFluent fluent; + public V1beta1ResourceClaimStatusBuilder(V1beta1ResourceClaimStatusFluent fluent,V1beta1ResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ResourceClaimStatus build() { V1beta1ResourceClaimStatus buildable = new V1beta1ResourceClaimStatus(); buildable.setAllocation(fluent.buildAllocation()); @@ -30,5 +32,4 @@ public V1beta1ResourceClaimStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusFluent.java index 3e37af8c32..17e3a1bc04 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusFluent.java @@ -1,100 +1,90 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ResourceClaimStatusFluent> extends BaseFluent{ + + private V1beta1AllocationResultBuilder allocation; + private ArrayList devices; + private ArrayList reservedFor; + public V1beta1ResourceClaimStatusFluent() { } public V1beta1ResourceClaimStatusFluent(V1beta1ResourceClaimStatus instance) { this.copyInstance(instance); } - private V1beta1AllocationResultBuilder allocation; - private ArrayList devices; - private ArrayList reservedFor; - - protected void copyInstance(V1beta1ResourceClaimStatus instance) { - instance = instance != null ? instance : new V1beta1ResourceClaimStatus(); - if (instance != null) { - this.withAllocation(instance.getAllocation()); - this.withDevices(instance.getDevices()); - this.withReservedFor(instance.getReservedFor()); + + public A addAllToDevices(Collection items) { + if (this.devices == null) { + this.devices = new ArrayList(); } - } - - public V1beta1AllocationResult buildAllocation() { - return this.allocation != null ? this.allocation.build() : null; - } - - public A withAllocation(V1beta1AllocationResult allocation) { - this._visitables.remove("allocation"); - if (allocation != null) { - this.allocation = new V1beta1AllocationResultBuilder(allocation); - this._visitables.get("allocation").add(this.allocation); - } else { - this.allocation = null; - this._visitables.get("allocation").remove(this.allocation); + for (V1beta1AllocatedDeviceStatus item : items) { + V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); } return (A) this; } - public boolean hasAllocation() { - return this.allocation != null; - } - - public AllocationNested withNewAllocation() { - return new AllocationNested(null); + public A addAllToReservedFor(Collection items) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } + for (V1beta1ResourceClaimConsumerReference item : items) { + V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); + } + return (A) this; } - public AllocationNested withNewAllocationLike(V1beta1AllocationResult item) { - return new AllocationNested(item); + public DevicesNested addNewDevice() { + return new DevicesNested(-1, null); } - public AllocationNested editAllocation() { - return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(null)); + public DevicesNested addNewDeviceLike(V1beta1AllocatedDeviceStatus item) { + return new DevicesNested(-1, item); } - public AllocationNested editOrNewAllocation() { - return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(new V1beta1AllocationResultBuilder().build())); + public ReservedForNested addNewReservedFor() { + return new ReservedForNested(-1, null); } - public AllocationNested editOrNewAllocationLike(V1beta1AllocationResult item) { - return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(item)); + public ReservedForNested addNewReservedForLike(V1beta1ResourceClaimConsumerReference item) { + return new ReservedForNested(-1, item); } - public A addToDevices(int index,V1beta1AllocatedDeviceStatus item) { + public A addToDevices(V1beta1AllocatedDeviceStatus... items) { if (this.devices == null) { this.devices = new ArrayList(); } - V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); - } else { + for (V1beta1AllocatedDeviceStatus item : items) { + V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); _visitables.get("devices").add(builder); - devices.add(index, builder); + this.devices.add(builder); } return (A) this; } - public A setToDevices(int index,V1beta1AllocatedDeviceStatus item) { + public A addToDevices(int index,V1beta1AllocatedDeviceStatus item) { if (this.devices == null) { this.devices = new ArrayList(); } @@ -104,91 +94,66 @@ public A setToDevices(int index,V1beta1AllocatedDeviceStatus item) { devices.add(builder); } else { _visitables.get("devices").add(builder); - devices.set(index, builder); - } - return (A) this; - } - - public A addToDevices(V1beta1AllocatedDeviceStatus... items) { - if (this.devices == null) { - this.devices = new ArrayList(); - } - for (V1beta1AllocatedDeviceStatus item : items) { - V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); - _visitables.get("devices").add(builder); - this.devices.add(builder); + devices.add(index, builder); } return (A) this; } - public A addAllToDevices(Collection items) { - if (this.devices == null) { - this.devices = new ArrayList(); + public A addToReservedFor(V1beta1ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); } - for (V1beta1AllocatedDeviceStatus item : items) { - V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); - _visitables.get("devices").add(builder); - this.devices.add(builder); + for (V1beta1ResourceClaimConsumerReference item : items) { + V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); } return (A) this; } - public A removeFromDevices(V1beta1AllocatedDeviceStatus... items) { - if (this.devices == null) { - return (A) this; + public A addToReservedFor(int index,V1beta1ResourceClaimConsumerReference item) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); } - for (V1beta1AllocatedDeviceStatus item : items) { - V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); - _visitables.get("devices").remove(builder); - this.devices.remove(builder); + V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.add(index, builder); } return (A) this; } - public A removeAllFromDevices(Collection items) { - if (this.devices == null) { - return (A) this; - } - for (V1beta1AllocatedDeviceStatus item : items) { - V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); - _visitables.get("devices").remove(builder); - this.devices.remove(builder); - } - return (A) this; + public V1beta1AllocationResult buildAllocation() { + return this.allocation != null ? this.allocation.build() : null; } - public A removeMatchingFromDevices(Predicate predicate) { - if (devices == null) { - return (A) this; - } - Iterator each = devices.iterator(); - List visitables = _visitables.get("devices"); - while (each.hasNext()) { - V1beta1AllocatedDeviceStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1beta1AllocatedDeviceStatus buildDevice(int index) { + return this.devices.get(index).build(); } public List buildDevices() { return this.devices != null ? build(devices) : null; } - public V1beta1AllocatedDeviceStatus buildDevice(int index) { - return this.devices.get(index).build(); - } - public V1beta1AllocatedDeviceStatus buildFirstDevice() { return this.devices.get(0).build(); } + public V1beta1ResourceClaimConsumerReference buildFirstReservedFor() { + return this.reservedFor.get(0).build(); + } + public V1beta1AllocatedDeviceStatus buildLastDevice() { return this.devices.get(devices.size() - 1).build(); } + public V1beta1ResourceClaimConsumerReference buildLastReservedFor() { + return this.reservedFor.get(reservedFor.size() - 1).build(); + } + public V1beta1AllocatedDeviceStatus buildMatchingDevice(Predicate predicate) { for (V1beta1AllocatedDeviceStatusBuilder item : devices) { if (predicate.test(item)) { @@ -198,61 +163,38 @@ public V1beta1AllocatedDeviceStatus buildMatchingDevice(Predicate predicate) { - for (V1beta1AllocatedDeviceStatusBuilder item : devices) { + public V1beta1ResourceClaimConsumerReference buildMatchingReservedFor(Predicate predicate) { + for (V1beta1ResourceClaimConsumerReferenceBuilder item : reservedFor) { if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withDevices(List devices) { - if (this.devices != null) { - this._visitables.get("devices").clear(); - } - if (devices != null) { - this.devices = new ArrayList(); - for (V1beta1AllocatedDeviceStatus item : devices) { - this.addToDevices(item); + return item.build(); } - } else { - this.devices = null; - } - return (A) this; - } - - public A withDevices(V1beta1AllocatedDeviceStatus... devices) { - if (this.devices != null) { - this.devices.clear(); - _visitables.remove("devices"); - } - if (devices != null) { - for (V1beta1AllocatedDeviceStatus item : devices) { - this.addToDevices(item); } - } - return (A) this; + return null; } - public boolean hasDevices() { - return this.devices != null && !(this.devices.isEmpty()); + public List buildReservedFor() { + return this.reservedFor != null ? build(reservedFor) : null; } - public DevicesNested addNewDevice() { - return new DevicesNested(-1, null); + public V1beta1ResourceClaimConsumerReference buildReservedFor(int index) { + return this.reservedFor.get(index).build(); } - public DevicesNested addNewDeviceLike(V1beta1AllocatedDeviceStatus item) { - return new DevicesNested(-1, item); + protected void copyInstance(V1beta1ResourceClaimStatus instance) { + instance = instance != null ? instance : new V1beta1ResourceClaimStatus(); + if (instance != null) { + this.withAllocation(instance.getAllocation()); + this.withDevices(instance.getDevices()); + this.withReservedFor(instance.getReservedFor()); + } } - public DevicesNested setNewDeviceLike(int index,V1beta1AllocatedDeviceStatus item) { - return new DevicesNested(index, item); + public AllocationNested editAllocation() { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(null)); } public DevicesNested editDevice(int index) { - if (index <= devices.size()) { + if (devices.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "devices")); } return this.setNewDeviceLike(index, this.buildDevice(index)); @@ -265,6 +207,13 @@ public DevicesNested editFirstDevice() { return this.setNewDeviceLike(0, this.buildDevice(0)); } + public ReservedForNested editFirstReservedFor() { + if (reservedFor.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "reservedFor")); + } + return this.setNewReservedForLike(0, this.buildReservedFor(0)); + } + public DevicesNested editLastDevice() { int index = devices.size() - 1; if (index < 0) { @@ -273,6 +222,14 @@ public DevicesNested editLastDevice() { return this.setNewDeviceLike(index, this.buildDevice(index)); } + public ReservedForNested editLastReservedFor() { + int index = reservedFor.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(index)); + } + public DevicesNested editMatchingDevice(Predicate predicate) { int index = -1; for (int i = 0;i < devices.size();i++) { @@ -287,56 +244,124 @@ public DevicesNested editMatchingDevice(Predicate editMatchingReservedFor(Predicate predicate) { + int index = -1; + for (int i = 0;i < reservedFor.size();i++) { + if (predicate.test(reservedFor.get(i))) { + index = i; + break; + } } - V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { - _visitables.get("reservedFor").add(builder); - reservedFor.add(builder); - } else { - _visitables.get("reservedFor").add(builder); - reservedFor.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "reservedFor")); } - return (A) this; + return this.setNewReservedForLike(index, this.buildReservedFor(index)); } - public A setToReservedFor(int index,V1beta1ResourceClaimConsumerReference item) { - if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + public AllocationNested editOrNewAllocation() { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(new V1beta1AllocationResultBuilder().build())); + } + + public AllocationNested editOrNewAllocationLike(V1beta1AllocationResult item) { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(item)); + } + + public ReservedForNested editReservedFor(int index) { + if (reservedFor.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "reservedFor")); } - V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { - _visitables.get("reservedFor").add(builder); - reservedFor.add(builder); - } else { - _visitables.get("reservedFor").add(builder); - reservedFor.set(index, builder); + return this.setNewReservedForLike(index, this.buildReservedFor(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ResourceClaimStatusFluent that = (V1beta1ResourceClaimStatusFluent) o; + if (!(Objects.equals(allocation, that.allocation))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(reservedFor, that.reservedFor))) { + return false; + } + return true; + } + + public boolean hasAllocation() { + return this.allocation != null; + } + + public boolean hasDevices() { + return this.devices != null && !(this.devices.isEmpty()); + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1beta1AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingReservedFor(Predicate predicate) { + for (V1beta1ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasReservedFor() { + return this.reservedFor != null && !(this.reservedFor.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allocation, devices, reservedFor); + } + + public A removeAllFromDevices(Collection items) { + if (this.devices == null) { + return (A) this; + } + for (V1beta1AllocatedDeviceStatus item : items) { + V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); } return (A) this; } - public A addToReservedFor(V1beta1ResourceClaimConsumerReference... items) { + public A removeAllFromReservedFor(Collection items) { if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + return (A) this; } for (V1beta1ResourceClaimConsumerReference item : items) { V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); - _visitables.get("reservedFor").add(builder); - this.reservedFor.add(builder); + _visitables.get("reservedFor").remove(builder); + this.reservedFor.remove(builder); } return (A) this; } - public A addAllToReservedFor(Collection items) { - if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + public A removeFromDevices(V1beta1AllocatedDeviceStatus... items) { + if (this.devices == null) { + return (A) this; } - for (V1beta1ResourceClaimConsumerReference item : items) { - V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); - _visitables.get("reservedFor").add(builder); - this.reservedFor.add(builder); + for (V1beta1AllocatedDeviceStatus item : items) { + V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); } return (A) this; } @@ -353,14 +378,18 @@ public A removeFromReservedFor(V1beta1ResourceClaimConsumerReference... items) { return (A) this; } - public A removeAllFromReservedFor(Collection items) { - if (this.reservedFor == null) { + public A removeMatchingFromDevices(Predicate predicate) { + if (devices == null) { return (A) this; } - for (V1beta1ResourceClaimConsumerReference item : items) { - V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); - _visitables.get("reservedFor").remove(builder); - this.reservedFor.remove(builder); + Iterator each = devices.iterator(); + List visitables = _visitables.get("devices"); + while (each.hasNext()) { + V1beta1AllocatedDeviceStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -381,38 +410,111 @@ public A removeMatchingFromReservedFor(Predicate buildReservedFor() { - return this.reservedFor != null ? build(reservedFor) : null; + public DevicesNested setNewDeviceLike(int index,V1beta1AllocatedDeviceStatus item) { + return new DevicesNested(index, item); } - public V1beta1ResourceClaimConsumerReference buildReservedFor(int index) { - return this.reservedFor.get(index).build(); + public ReservedForNested setNewReservedForLike(int index,V1beta1ResourceClaimConsumerReference item) { + return new ReservedForNested(index, item); } - public V1beta1ResourceClaimConsumerReference buildFirstReservedFor() { - return this.reservedFor.get(0).build(); + public A setToDevices(int index,V1beta1AllocatedDeviceStatus item) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); + } + return (A) this; } - public V1beta1ResourceClaimConsumerReference buildLastReservedFor() { - return this.reservedFor.get(reservedFor.size() - 1).build(); + public A setToReservedFor(int index,V1beta1ResourceClaimConsumerReference item) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } + V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.set(index, builder); + } + return (A) this; } - public V1beta1ResourceClaimConsumerReference buildMatchingReservedFor(Predicate predicate) { - for (V1beta1ResourceClaimConsumerReferenceBuilder item : reservedFor) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocation == null)) { + sb.append("allocation:"); + sb.append(allocation); + sb.append(","); + } + if (!(devices == null) && !(devices.isEmpty())) { + sb.append("devices:"); + sb.append(devices); + sb.append(","); + } + if (!(reservedFor == null) && !(reservedFor.isEmpty())) { + sb.append("reservedFor:"); + sb.append(reservedFor); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingReservedFor(Predicate predicate) { - for (V1beta1ResourceClaimConsumerReferenceBuilder item : reservedFor) { - if (predicate.test(item)) { - return true; + public A withAllocation(V1beta1AllocationResult allocation) { + this._visitables.remove("allocation"); + if (allocation != null) { + this.allocation = new V1beta1AllocationResultBuilder(allocation); + this._visitables.get("allocation").add(this.allocation); + } else { + this.allocation = null; + this._visitables.get("allocation").remove(this.allocation); + } + return (A) this; + } + + public A withDevices(List devices) { + if (this.devices != null) { + this._visitables.get("devices").clear(); + } + if (devices != null) { + this.devices = new ArrayList(); + for (V1beta1AllocatedDeviceStatus item : devices) { + this.addToDevices(item); } + } else { + this.devices = null; + } + return (A) this; + } + + public A withDevices(V1beta1AllocatedDeviceStatus... devices) { + if (this.devices != null) { + this.devices.clear(); + _visitables.remove("devices"); + } + if (devices != null) { + for (V1beta1AllocatedDeviceStatus item : devices) { + this.addToDevices(item); } - return false; + } + return (A) this; + } + + public AllocationNested withNewAllocation() { + return new AllocationNested(null); + } + + public AllocationNested withNewAllocationLike(V1beta1AllocationResult item) { + return new AllocationNested(item); } public A withReservedFor(List reservedFor) { @@ -442,112 +544,14 @@ public A withReservedFor(V1beta1ResourceClaimConsumerReference... reservedFor) { } return (A) this; } + public class AllocationNested extends V1beta1AllocationResultFluent> implements Nested{ - public boolean hasReservedFor() { - return this.reservedFor != null && !(this.reservedFor.isEmpty()); - } - - public ReservedForNested addNewReservedFor() { - return new ReservedForNested(-1, null); - } - - public ReservedForNested addNewReservedForLike(V1beta1ResourceClaimConsumerReference item) { - return new ReservedForNested(-1, item); - } - - public ReservedForNested setNewReservedForLike(int index,V1beta1ResourceClaimConsumerReference item) { - return new ReservedForNested(index, item); - } - - public ReservedForNested editReservedFor(int index) { - if (index <= reservedFor.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "reservedFor")); - } - return this.setNewReservedForLike(index, this.buildReservedFor(index)); - } - - public ReservedForNested editFirstReservedFor() { - if (reservedFor.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "reservedFor")); - } - return this.setNewReservedForLike(0, this.buildReservedFor(0)); - } - - public ReservedForNested editLastReservedFor() { - int index = reservedFor.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "reservedFor")); - } - return this.setNewReservedForLike(index, this.buildReservedFor(index)); - } - - public ReservedForNested editMatchingReservedFor(Predicate predicate) { - int index = -1; - for (int i = 0;i < reservedFor.size();i++) { - if (predicate.test(reservedFor.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "reservedFor")); - } - return this.setNewReservedForLike(index, this.buildReservedFor(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1ResourceClaimStatusFluent that = (V1beta1ResourceClaimStatusFluent) o; - if (!(Objects.equals(allocation, that.allocation))) { - return false; - } - if (!(Objects.equals(devices, that.devices))) { - return false; - } - if (!(Objects.equals(reservedFor, that.reservedFor))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(allocation, devices, reservedFor); - } + V1beta1AllocationResultBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(allocation == null)) { - sb.append("allocation:"); - sb.append(allocation); - sb.append(","); - } - if (!(devices == null) && !(devices.isEmpty())) { - sb.append("devices:"); - sb.append(devices); - sb.append(","); - } - if (!(reservedFor == null) && !(reservedFor.isEmpty())) { - sb.append("reservedFor:"); - sb.append(reservedFor); - } - sb.append("}"); - return sb.toString(); - } - public class AllocationNested extends V1beta1AllocationResultFluent> implements Nested{ AllocationNested(V1beta1AllocationResult item) { this.builder = new V1beta1AllocationResultBuilder(this, item); } - V1beta1AllocationResultBuilder builder; - + public N and() { return (N) V1beta1ResourceClaimStatusFluent.this.withAllocation(builder.build()); } @@ -556,16 +560,17 @@ public N endAllocation() { return and(); } - } public class DevicesNested extends V1beta1AllocatedDeviceStatusFluent> implements Nested{ + + V1beta1AllocatedDeviceStatusBuilder builder; + int index; + DevicesNested(int index,V1beta1AllocatedDeviceStatus item) { this.index = index; this.builder = new V1beta1AllocatedDeviceStatusBuilder(this, item); } - V1beta1AllocatedDeviceStatusBuilder builder; - int index; - + public N and() { return (N) V1beta1ResourceClaimStatusFluent.this.setToDevices(index, builder.build()); } @@ -574,16 +579,17 @@ public N endDevice() { return and(); } - } public class ReservedForNested extends V1beta1ResourceClaimConsumerReferenceFluent> implements Nested{ + + V1beta1ResourceClaimConsumerReferenceBuilder builder; + int index; + ReservedForNested(int index,V1beta1ResourceClaimConsumerReference item) { this.index = index; this.builder = new V1beta1ResourceClaimConsumerReferenceBuilder(this, item); } - V1beta1ResourceClaimConsumerReferenceBuilder builder; - int index; - + public N and() { return (N) V1beta1ResourceClaimStatusFluent.this.setToReservedFor(index, builder.build()); } @@ -592,7 +598,5 @@ public N endReservedFor() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateBuilder.java index 375d777893..c869e45685 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ResourceClaimTemplateBuilder extends V1beta1ResourceClaimTemplateFluent implements VisitableBuilder{ + + V1beta1ResourceClaimTemplateFluent fluent; + public V1beta1ResourceClaimTemplateBuilder() { this(new V1beta1ResourceClaimTemplate()); } @@ -11,17 +14,16 @@ public V1beta1ResourceClaimTemplateBuilder(V1beta1ResourceClaimTemplateFluent this(fluent, new V1beta1ResourceClaimTemplate()); } - public V1beta1ResourceClaimTemplateBuilder(V1beta1ResourceClaimTemplateFluent fluent,V1beta1ResourceClaimTemplate instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ResourceClaimTemplateBuilder(V1beta1ResourceClaimTemplate instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ResourceClaimTemplateFluent fluent; + public V1beta1ResourceClaimTemplateBuilder(V1beta1ResourceClaimTemplateFluent fluent,V1beta1ResourceClaimTemplate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ResourceClaimTemplate build() { V1beta1ResourceClaimTemplate buildable = new V1beta1ResourceClaimTemplate(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1ResourceClaimTemplate build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateFluent.java index 288addd52d..3b3a50740d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ResourceClaimTemplateFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1ResourceClaimTemplateSpecBuilder spec; + public V1beta1ResourceClaimTemplateFluent() { } public V1beta1ResourceClaimTemplateFluent(V1beta1ResourceClaimTemplate instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta1ResourceClaimTemplateSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1ResourceClaimTemplateSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1beta1ResourceClaimTemplate instance) { instance = instance != null ? instance : new V1beta1ResourceClaimTemplate(); @@ -35,60 +45,6 @@ protected void copyInstance(V1beta1ResourceClaimTemplate instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1beta1ResourceClaimTemplateSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta1ResourceClaimTemplateSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta1ResourceClaimTemplateSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta1ResourceClaimTemplateSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ResourceClaimTemplateSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1beta1ResourceClaimTemplateSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ResourceClaimTemplateSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1beta1ResourceClaimTemplateSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1ResourceClaimTemplateSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1beta1ResourceClaimTemplateFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1beta1ResourceClaimTemplateSpecFluent> implements Nested{ + + V1beta1ResourceClaimTemplateSpecBuilder builder; + SpecNested(V1beta1ResourceClaimTemplateSpec item) { this.builder = new V1beta1ResourceClaimTemplateSpecBuilder(this, item); } - V1beta1ResourceClaimTemplateSpecBuilder builder; - + public N and() { return (N) V1beta1ResourceClaimTemplateFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListBuilder.java index 3c3218072c..e2a84b5751 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ResourceClaimTemplateListBuilder extends V1beta1ResourceClaimTemplateListFluent implements VisitableBuilder{ + + V1beta1ResourceClaimTemplateListFluent fluent; + public V1beta1ResourceClaimTemplateListBuilder() { this(new V1beta1ResourceClaimTemplateList()); } @@ -11,17 +14,16 @@ public V1beta1ResourceClaimTemplateListBuilder(V1beta1ResourceClaimTemplateListF this(fluent, new V1beta1ResourceClaimTemplateList()); } - public V1beta1ResourceClaimTemplateListBuilder(V1beta1ResourceClaimTemplateListFluent fluent,V1beta1ResourceClaimTemplateList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ResourceClaimTemplateListBuilder(V1beta1ResourceClaimTemplateList instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ResourceClaimTemplateListFluent fluent; + public V1beta1ResourceClaimTemplateListBuilder(V1beta1ResourceClaimTemplateListFluent fluent,V1beta1ResourceClaimTemplateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ResourceClaimTemplateList build() { V1beta1ResourceClaimTemplateList buildable = new V1beta1ResourceClaimTemplateList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1ResourceClaimTemplateList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListFluent.java index 5ff41630f3..f446e57a7e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ResourceClaimTemplateListFluent> extends BaseFluent{ - public V1beta1ResourceClaimTemplateListFluent() { - } - - public V1beta1ResourceClaimTemplateListFluent(V1beta1ResourceClaimTemplateList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta1ResourceClaimTemplateList instance) { - instance = instance != null ? instance : new V1beta1ResourceClaimTemplateList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1beta1ResourceClaimTemplateListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1beta1ResourceClaimTemplateListFluent(V1beta1ResourceClaimTemplateList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1beta1ResourceClaimTemplate item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1beta1ResourceClaimTemplate item : items) { + V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1beta1ResourceClaimTemplate item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1ResourceClaimTemplate item) { + return new ItemsNested(-1, item); } public A addToItems(V1beta1ResourceClaimTemplate... items) { @@ -96,68 +65,31 @@ public A addToItems(V1beta1ResourceClaimTemplate... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1beta1ResourceClaimTemplate item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1beta1ResourceClaimTemplate item : items) { - V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); + V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1beta1ResourceClaimTemplate... items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1ResourceClaimTemplate item : items) { - V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1ResourceClaimTemplate item : items) { - V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta1ResourceClaimTemplateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1beta1ResourceClaimTemplate buildFirstItem() { + return this.items.get(0).build(); } public V1beta1ResourceClaimTemplate buildItem(int index) { return this.items.get(index).build(); } - public V1beta1ResourceClaimTemplate buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1beta1ResourceClaimTemplate buildLastItem() { @@ -173,73 +105,34 @@ public V1beta1ResourceClaimTemplate buildMatchingItem(Predicate predicate) { - for (V1beta1ResourceClaimTemplateBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta1ResourceClaimTemplate item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1beta1ResourceClaimTemplateList instance) { + instance = instance != null ? instance : new V1beta1ResourceClaimTemplateList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1beta1ResourceClaimTemplate... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta1ResourceClaimTemplate item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta1ResourceClaimTemplate item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta1ResourceClaimTemplate item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1ResourceClaimTemplateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1ResourceClaimTemplate item : items) { + V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta1ResourceClaimTemplate... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1ResourceClaimTemplate item : items) { + V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1ResourceClaimTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta1ResourceClaimTemplate item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta1ResourceClaimTemplate item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1ResourceClaimTemplate item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta1ResourceClaimTemplate... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1ResourceClaimTemplate item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1beta1ResourceClaimTemplateFluent> implements Nested{ + + V1beta1ResourceClaimTemplateBuilder builder; + int index; + ItemsNested(int index,V1beta1ResourceClaimTemplate item) { this.index = index; this.builder = new V1beta1ResourceClaimTemplateBuilder(this, item); } - V1beta1ResourceClaimTemplateBuilder builder; - int index; - + public N and() { return (N) V1beta1ResourceClaimTemplateListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1beta1ResourceClaimTemplateListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecBuilder.java index 00c52cd3c6..7558f64a72 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ResourceClaimTemplateSpecBuilder extends V1beta1ResourceClaimTemplateSpecFluent implements VisitableBuilder{ + + V1beta1ResourceClaimTemplateSpecFluent fluent; + public V1beta1ResourceClaimTemplateSpecBuilder() { this(new V1beta1ResourceClaimTemplateSpec()); } @@ -11,17 +14,16 @@ public V1beta1ResourceClaimTemplateSpecBuilder(V1beta1ResourceClaimTemplateSpecF this(fluent, new V1beta1ResourceClaimTemplateSpec()); } - public V1beta1ResourceClaimTemplateSpecBuilder(V1beta1ResourceClaimTemplateSpecFluent fluent,V1beta1ResourceClaimTemplateSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ResourceClaimTemplateSpecBuilder(V1beta1ResourceClaimTemplateSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ResourceClaimTemplateSpecFluent fluent; + public V1beta1ResourceClaimTemplateSpecBuilder(V1beta1ResourceClaimTemplateSpecFluent fluent,V1beta1ResourceClaimTemplateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ResourceClaimTemplateSpec build() { V1beta1ResourceClaimTemplateSpec buildable = new V1beta1ResourceClaimTemplateSpec(); buildable.setMetadata(fluent.buildMetadata()); @@ -29,5 +31,4 @@ public V1beta1ResourceClaimTemplateSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecFluent.java index c7306f7adc..edf5770c35 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecFluent.java @@ -1,27 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ResourceClaimTemplateSpecFluent> extends BaseFluent{ + + private V1ObjectMetaBuilder metadata; + private V1beta1ResourceClaimSpecBuilder spec; + public V1beta1ResourceClaimTemplateSpecFluent() { } public V1beta1ResourceClaimTemplateSpecFluent(V1beta1ResourceClaimTemplateSpec instance) { this.copyInstance(instance); } - private V1ObjectMetaBuilder metadata; - private V1beta1ResourceClaimSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1beta1ResourceClaimTemplateSpec instance) { instance = instance != null ? instance : new V1beta1ResourceClaimTemplateSpec(); @@ -31,34 +41,6 @@ protected void copyInstance(V1beta1ResourceClaimTemplateSpec instance) { } } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -71,38 +53,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1beta1ResourceClaimSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta1ResourceClaimSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta1ResourceClaimSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta1ResourceClaimSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ResourceClaimSpecBuilder().build())); } @@ -111,6 +61,10 @@ public SpecNested editOrNewSpecLike(V1beta1ResourceClaimSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -131,6 +85,14 @@ public boolean equals(Object o) { return true; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(metadata, spec); } @@ -150,12 +112,54 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ResourceClaimSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1beta1ResourceClaimSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1ResourceClaimSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1beta1ResourceClaimTemplateSpecFluent.this.withMetadata(builder.build()); } @@ -164,14 +168,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1beta1ResourceClaimSpecFluent> implements Nested{ + + V1beta1ResourceClaimSpecBuilder builder; + SpecNested(V1beta1ResourceClaimSpec item) { this.builder = new V1beta1ResourceClaimSpecBuilder(this, item); } - V1beta1ResourceClaimSpecBuilder builder; - + public N and() { return (N) V1beta1ResourceClaimTemplateSpecFluent.this.withSpec(builder.build()); } @@ -180,7 +185,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolBuilder.java index 7f3fdcd774..602d67ce0b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ResourcePoolBuilder extends V1beta1ResourcePoolFluent implements VisitableBuilder{ + + V1beta1ResourcePoolFluent fluent; + public V1beta1ResourcePoolBuilder() { this(new V1beta1ResourcePool()); } @@ -11,17 +14,16 @@ public V1beta1ResourcePoolBuilder(V1beta1ResourcePoolFluent fluent) { this(fluent, new V1beta1ResourcePool()); } - public V1beta1ResourcePoolBuilder(V1beta1ResourcePoolFluent fluent,V1beta1ResourcePool instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ResourcePoolBuilder(V1beta1ResourcePool instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ResourcePoolFluent fluent; + public V1beta1ResourcePoolBuilder(V1beta1ResourcePoolFluent fluent,V1beta1ResourcePool instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ResourcePool build() { V1beta1ResourcePool buildable = new V1beta1ResourcePool(); buildable.setGeneration(fluent.getGeneration()); @@ -30,5 +32,4 @@ public V1beta1ResourcePool build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolFluent.java index c206035048..970689f7db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ResourcePoolFluent> extends BaseFluent{ + + private Long generation; + private String name; + private Long resourceSliceCount; + public V1beta1ResourcePoolFluent() { } public V1beta1ResourcePoolFluent(V1beta1ResourcePool instance) { this.copyInstance(instance); } - private Long generation; - private String name; - private Long resourceSliceCount; - + protected void copyInstance(V1beta1ResourcePool instance) { instance = instance != null ? instance : new V1beta1ResourcePool(); if (instance != null) { @@ -32,45 +34,6 @@ protected void copyInstance(V1beta1ResourcePool instance) { } } - public Long getGeneration() { - return this.generation; - } - - public A withGeneration(Long generation) { - this.generation = generation; - return (A) this; - } - - public boolean hasGeneration() { - return this.generation != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public Long getResourceSliceCount() { - return this.resourceSliceCount; - } - - public A withResourceSliceCount(Long resourceSliceCount) { - this.resourceSliceCount = resourceSliceCount; - return (A) this; - } - - public boolean hasResourceSliceCount() { - return this.resourceSliceCount != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -94,6 +57,30 @@ public boolean equals(Object o) { return true; } + public Long getGeneration() { + return this.generation; + } + + public String getName() { + return this.name; + } + + public Long getResourceSliceCount() { + return this.resourceSliceCount; + } + + public boolean hasGeneration() { + return this.generation != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResourceSliceCount() { + return this.resourceSliceCount != null; + } + public int hashCode() { return Objects.hash(generation, name, resourceSliceCount); } @@ -119,5 +106,19 @@ public String toString() { return sb.toString(); } - + public A withGeneration(Long generation) { + this.generation = generation; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResourceSliceCount(Long resourceSliceCount) { + this.resourceSliceCount = resourceSliceCount; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceBuilder.java index 95195d27ff..7064eff0da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ResourceSliceBuilder extends V1beta1ResourceSliceFluent implements VisitableBuilder{ + + V1beta1ResourceSliceFluent fluent; + public V1beta1ResourceSliceBuilder() { this(new V1beta1ResourceSlice()); } @@ -11,17 +14,16 @@ public V1beta1ResourceSliceBuilder(V1beta1ResourceSliceFluent fluent) { this(fluent, new V1beta1ResourceSlice()); } - public V1beta1ResourceSliceBuilder(V1beta1ResourceSliceFluent fluent,V1beta1ResourceSlice instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ResourceSliceBuilder(V1beta1ResourceSlice instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ResourceSliceFluent fluent; + public V1beta1ResourceSliceBuilder(V1beta1ResourceSliceFluent fluent,V1beta1ResourceSlice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ResourceSlice build() { V1beta1ResourceSlice buildable = new V1beta1ResourceSlice(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1ResourceSlice build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceFluent.java index 4f6bdb198c..20a02da6ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ResourceSliceFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1ResourceSliceSpecBuilder spec; + public V1beta1ResourceSliceFluent() { } public V1beta1ResourceSliceFluent(V1beta1ResourceSlice instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta1ResourceSliceSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1ResourceSliceSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1beta1ResourceSlice instance) { instance = instance != null ? instance : new V1beta1ResourceSlice(); @@ -35,60 +45,6 @@ protected void copyInstance(V1beta1ResourceSlice instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1beta1ResourceSliceSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta1ResourceSliceSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta1ResourceSliceSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta1ResourceSliceSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ResourceSliceSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1beta1ResourceSliceSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ResourceSliceSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1beta1ResourceSliceSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1ResourceSliceSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1beta1ResourceSliceFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1beta1ResourceSliceSpecFluent> implements Nested{ + + V1beta1ResourceSliceSpecBuilder builder; + SpecNested(V1beta1ResourceSliceSpec item) { this.builder = new V1beta1ResourceSliceSpecBuilder(this, item); } - V1beta1ResourceSliceSpecBuilder builder; - + public N and() { return (N) V1beta1ResourceSliceFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListBuilder.java index e30f2dae46..e26b107fad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ResourceSliceListBuilder extends V1beta1ResourceSliceListFluent implements VisitableBuilder{ + + V1beta1ResourceSliceListFluent fluent; + public V1beta1ResourceSliceListBuilder() { this(new V1beta1ResourceSliceList()); } @@ -11,17 +14,16 @@ public V1beta1ResourceSliceListBuilder(V1beta1ResourceSliceListFluent fluent) this(fluent, new V1beta1ResourceSliceList()); } - public V1beta1ResourceSliceListBuilder(V1beta1ResourceSliceListFluent fluent,V1beta1ResourceSliceList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ResourceSliceListBuilder(V1beta1ResourceSliceList instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ResourceSliceListFluent fluent; + public V1beta1ResourceSliceListBuilder(V1beta1ResourceSliceListFluent fluent,V1beta1ResourceSliceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ResourceSliceList build() { V1beta1ResourceSliceList buildable = new V1beta1ResourceSliceList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1ResourceSliceList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListFluent.java index e0a63af609..3fc949cc30 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ResourceSliceListFluent> extends BaseFluent{ - public V1beta1ResourceSliceListFluent() { - } - - public V1beta1ResourceSliceListFluent(V1beta1ResourceSliceList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta1ResourceSliceList instance) { - instance = instance != null ? instance : new V1beta1ResourceSliceList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1beta1ResourceSliceListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1beta1ResourceSliceListFluent(V1beta1ResourceSliceList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1beta1ResourceSlice item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1beta1ResourceSlice item : items) { + V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1beta1ResourceSlice item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1ResourceSlice item) { + return new ItemsNested(-1, item); } public A addToItems(V1beta1ResourceSlice... items) { @@ -96,68 +65,31 @@ public A addToItems(V1beta1ResourceSlice... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1beta1ResourceSlice item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1beta1ResourceSlice item : items) { - V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); + V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1beta1ResourceSlice... items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1ResourceSlice item : items) { - V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1ResourceSlice item : items) { - V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta1ResourceSliceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1beta1ResourceSlice buildFirstItem() { + return this.items.get(0).build(); } public V1beta1ResourceSlice buildItem(int index) { return this.items.get(index).build(); } - public V1beta1ResourceSlice buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1beta1ResourceSlice buildLastItem() { @@ -173,73 +105,34 @@ public V1beta1ResourceSlice buildMatchingItem(Predicate predicate) { - for (V1beta1ResourceSliceBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta1ResourceSlice item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1beta1ResourceSliceList instance) { + instance = instance != null ? instance : new V1beta1ResourceSliceList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1beta1ResourceSlice... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta1ResourceSlice item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta1ResourceSlice item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta1ResourceSlice item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate pr return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1ResourceSliceBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1ResourceSlice item : items) { + V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta1ResourceSlice... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1ResourceSlice item : items) { + V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1ResourceSliceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta1ResourceSlice item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta1ResourceSlice item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1ResourceSlice item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta1ResourceSlice... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1ResourceSlice item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1beta1ResourceSliceFluent> implements Nested{ + + V1beta1ResourceSliceBuilder builder; + int index; + ItemsNested(int index,V1beta1ResourceSlice item) { this.index = index; this.builder = new V1beta1ResourceSliceBuilder(this, item); } - V1beta1ResourceSliceBuilder builder; - int index; - + public N and() { return (N) V1beta1ResourceSliceListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1beta1ResourceSliceListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecBuilder.java index e27296d4d0..ded64a8203 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ResourceSliceSpecBuilder extends V1beta1ResourceSliceSpecFluent implements VisitableBuilder{ + + V1beta1ResourceSliceSpecFluent fluent; + public V1beta1ResourceSliceSpecBuilder() { this(new V1beta1ResourceSliceSpec()); } @@ -11,17 +14,16 @@ public V1beta1ResourceSliceSpecBuilder(V1beta1ResourceSliceSpecFluent fluent) this(fluent, new V1beta1ResourceSliceSpec()); } - public V1beta1ResourceSliceSpecBuilder(V1beta1ResourceSliceSpecFluent fluent,V1beta1ResourceSliceSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ResourceSliceSpecBuilder(V1beta1ResourceSliceSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ResourceSliceSpecFluent fluent; + public V1beta1ResourceSliceSpecBuilder(V1beta1ResourceSliceSpecFluent fluent,V1beta1ResourceSliceSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ResourceSliceSpec build() { V1beta1ResourceSliceSpec buildable = new V1beta1ResourceSliceSpec(); buildable.setAllNodes(fluent.getAllNodes()); @@ -35,5 +37,4 @@ public V1beta1ResourceSliceSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecFluent.java index 0748e4cbe1..b04b498f87 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Boolean; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ResourceSliceSpecFluent> extends BaseFluent{ - public V1beta1ResourceSliceSpecFluent() { - } - - public V1beta1ResourceSliceSpecFluent(V1beta1ResourceSliceSpec instance) { - this.copyInstance(instance); - } + private Boolean allNodes; private ArrayList devices; private String driver; @@ -35,64 +30,54 @@ public V1beta1ResourceSliceSpecFluent(V1beta1ResourceSliceSpec instance) { private Boolean perDeviceNodeSelection; private V1beta1ResourcePoolBuilder pool; private ArrayList sharedCounters; - - protected void copyInstance(V1beta1ResourceSliceSpec instance) { - instance = instance != null ? instance : new V1beta1ResourceSliceSpec(); - if (instance != null) { - this.withAllNodes(instance.getAllNodes()); - this.withDevices(instance.getDevices()); - this.withDriver(instance.getDriver()); - this.withNodeName(instance.getNodeName()); - this.withNodeSelector(instance.getNodeSelector()); - this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); - this.withPool(instance.getPool()); - this.withSharedCounters(instance.getSharedCounters()); - } - } - - public Boolean getAllNodes() { - return this.allNodes; - } - - public A withAllNodes(Boolean allNodes) { - this.allNodes = allNodes; - return (A) this; + + public V1beta1ResourceSliceSpecFluent() { } - public boolean hasAllNodes() { - return this.allNodes != null; + public V1beta1ResourceSliceSpecFluent(V1beta1ResourceSliceSpec instance) { + this.copyInstance(instance); } - - public A addToDevices(int index,V1beta1Device item) { + + public A addAllToDevices(Collection items) { if (this.devices == null) { this.devices = new ArrayList(); } - V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); - } else { + for (V1beta1Device item : items) { + V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); _visitables.get("devices").add(builder); - devices.add(index, builder); + this.devices.add(builder); } return (A) this; } - public A setToDevices(int index,V1beta1Device item) { - if (this.devices == null) { - this.devices = new ArrayList(); + public A addAllToSharedCounters(Collection items) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); } - V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); - } else { - _visitables.get("devices").add(builder); - devices.set(index, builder); + for (V1beta1CounterSet item : items) { + V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); + _visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); } return (A) this; } + public DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1beta1Device item) { + return new DevicesNested(-1, item); + } + + public SharedCountersNested addNewSharedCounter() { + return new SharedCountersNested(-1, null); + } + + public SharedCountersNested addNewSharedCounterLike(V1beta1CounterSet item) { + return new SharedCountersNested(-1, item); + } + public A addToDevices(V1beta1Device... items) { if (this.devices == null) { this.devices = new ArrayList(); @@ -105,74 +90,72 @@ public A addToDevices(V1beta1Device... items) { return (A) this; } - public A addAllToDevices(Collection items) { + public A addToDevices(int index,V1beta1Device item) { if (this.devices == null) { this.devices = new ArrayList(); } - for (V1beta1Device item : items) { - V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); + V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); + if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); - this.devices.add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.add(index, builder); } return (A) this; } - public A removeFromDevices(V1beta1Device... items) { - if (this.devices == null) { - return (A) this; + public A addToSharedCounters(V1beta1CounterSet... items) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); } - for (V1beta1Device item : items) { - V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); - _visitables.get("devices").remove(builder); - this.devices.remove(builder); + for (V1beta1CounterSet item : items) { + V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); + _visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); } return (A) this; } - public A removeAllFromDevices(Collection items) { - if (this.devices == null) { - return (A) this; + public A addToSharedCounters(int index,V1beta1CounterSet item) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); } - for (V1beta1Device item : items) { - V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); - _visitables.get("devices").remove(builder); - this.devices.remove(builder); + V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(index, builder); } return (A) this; } - public A removeMatchingFromDevices(Predicate predicate) { - if (devices == null) { - return (A) this; - } - Iterator each = devices.iterator(); - List visitables = _visitables.get("devices"); - while (each.hasNext()) { - V1beta1DeviceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1beta1Device buildDevice(int index) { + return this.devices.get(index).build(); } public List buildDevices() { return this.devices != null ? build(devices) : null; } - public V1beta1Device buildDevice(int index) { - return this.devices.get(index).build(); - } - public V1beta1Device buildFirstDevice() { return this.devices.get(0).build(); } + public V1beta1CounterSet buildFirstSharedCounter() { + return this.sharedCounters.get(0).build(); + } + public V1beta1Device buildLastDevice() { return this.devices.get(devices.size() - 1).build(); } + public V1beta1CounterSet buildLastSharedCounter() { + return this.sharedCounters.get(sharedCounters.size() - 1).build(); + } + public V1beta1Device buildMatchingDevice(Predicate predicate) { for (V1beta1DeviceBuilder item : devices) { if (predicate.test(item)) { @@ -182,61 +165,47 @@ public V1beta1Device buildMatchingDevice(Predicate predica return null; } - public boolean hasMatchingDevice(Predicate predicate) { - for (V1beta1DeviceBuilder item : devices) { + public V1beta1CounterSet buildMatchingSharedCounter(Predicate predicate) { + for (V1beta1CounterSetBuilder item : sharedCounters) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; - } - - public A withDevices(List devices) { - if (this.devices != null) { - this._visitables.get("devices").clear(); - } - if (devices != null) { - this.devices = new ArrayList(); - for (V1beta1Device item : devices) { - this.addToDevices(item); - } - } else { - this.devices = null; - } - return (A) this; + return null; } - public A withDevices(V1beta1Device... devices) { - if (this.devices != null) { - this.devices.clear(); - _visitables.remove("devices"); - } - if (devices != null) { - for (V1beta1Device item : devices) { - this.addToDevices(item); - } - } - return (A) this; + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; } - public boolean hasDevices() { - return this.devices != null && !(this.devices.isEmpty()); + public V1beta1ResourcePool buildPool() { + return this.pool != null ? this.pool.build() : null; } - public DevicesNested addNewDevice() { - return new DevicesNested(-1, null); + public V1beta1CounterSet buildSharedCounter(int index) { + return this.sharedCounters.get(index).build(); } - public DevicesNested addNewDeviceLike(V1beta1Device item) { - return new DevicesNested(-1, item); + public List buildSharedCounters() { + return this.sharedCounters != null ? build(sharedCounters) : null; } - public DevicesNested setNewDeviceLike(int index,V1beta1Device item) { - return new DevicesNested(index, item); + protected void copyInstance(V1beta1ResourceSliceSpec instance) { + instance = instance != null ? instance : new V1beta1ResourceSliceSpec(); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withDevices(instance.getDevices()); + this.withDriver(instance.getDriver()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); + this.withPool(instance.getPool()); + this.withSharedCounters(instance.getSharedCounters()); + } } public DevicesNested editDevice(int index) { - if (index <= devices.size()) { + if (devices.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "devices")); } return this.setNewDeviceLike(index, this.buildDevice(index)); @@ -249,6 +218,13 @@ public DevicesNested editFirstDevice() { return this.setNewDeviceLike(0, this.buildDevice(0)); } + public SharedCountersNested editFirstSharedCounter() { + if (sharedCounters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "sharedCounters")); + } + return this.setNewSharedCounterLike(0, this.buildSharedCounter(0)); + } + public DevicesNested editLastDevice() { int index = devices.size() - 1; if (index < 0) { @@ -257,6 +233,14 @@ public DevicesNested editLastDevice() { return this.setNewDeviceLike(index, this.buildDevice(index)); } + public SharedCountersNested editLastSharedCounter() { + int index = sharedCounters.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); + } + public DevicesNested editMatchingDevice(Predicate predicate) { int index = -1; for (int i = 0;i < devices.size();i++) { @@ -271,175 +255,191 @@ public DevicesNested editMatchingDevice(Predicate predi return this.setNewDeviceLike(index, this.buildDevice(index)); } - public String getDriver() { - return this.driver; - } - - public A withDriver(String driver) { - this.driver = driver; - return (A) this; - } - - public boolean hasDriver() { - return this.driver != null; + public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { + int index = -1; + for (int i = 0;i < sharedCounters.size();i++) { + if (predicate.test(sharedCounters.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); } - public String getNodeName() { - return this.nodeName; + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); } - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; + public NodeSelectorNested editOrNewNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); } - public boolean hasNodeName() { - return this.nodeName != null; + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); } - public V1NodeSelector buildNodeSelector() { - return this.nodeSelector != null ? this.nodeSelector.build() : null; + public PoolNested editOrNewPool() { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(new V1beta1ResourcePoolBuilder().build())); } - public A withNodeSelector(V1NodeSelector nodeSelector) { - this._visitables.remove("nodeSelector"); - if (nodeSelector != null) { - this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); - this._visitables.get("nodeSelector").add(this.nodeSelector); - } else { - this.nodeSelector = null; - this._visitables.get("nodeSelector").remove(this.nodeSelector); - } - return (A) this; + public PoolNested editOrNewPoolLike(V1beta1ResourcePool item) { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(item)); } - public boolean hasNodeSelector() { - return this.nodeSelector != null; + public PoolNested editPool() { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(null)); } - public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); + public SharedCountersNested editSharedCounter(int index) { + if (sharedCounters.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); } - public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ResourceSliceSpecFluent that = (V1beta1ResourceSliceSpecFluent) o; + if (!(Objects.equals(allNodes, that.allNodes))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + if (!(Objects.equals(perDeviceNodeSelection, that.perDeviceNodeSelection))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(sharedCounters, that.sharedCounters))) { + return false; + } + return true; } - public NodeSelectorNested editNodeSelector() { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + public Boolean getAllNodes() { + return this.allNodes; } - public NodeSelectorNested editOrNewNodeSelector() { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + public String getDriver() { + return this.driver; } - public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); + public String getNodeName() { + return this.nodeName; } public Boolean getPerDeviceNodeSelection() { return this.perDeviceNodeSelection; } - public A withPerDeviceNodeSelection(Boolean perDeviceNodeSelection) { - this.perDeviceNodeSelection = perDeviceNodeSelection; - return (A) this; + public boolean hasAllNodes() { + return this.allNodes != null; } - public boolean hasPerDeviceNodeSelection() { - return this.perDeviceNodeSelection != null; + public boolean hasDevices() { + return this.devices != null && !(this.devices.isEmpty()); } - public V1beta1ResourcePool buildPool() { - return this.pool != null ? this.pool.build() : null; + public boolean hasDriver() { + return this.driver != null; } - public A withPool(V1beta1ResourcePool pool) { - this._visitables.remove("pool"); - if (pool != null) { - this.pool = new V1beta1ResourcePoolBuilder(pool); - this._visitables.get("pool").add(this.pool); - } else { - this.pool = null; - this._visitables.get("pool").remove(this.pool); - } - return (A) this; + public boolean hasMatchingDevice(Predicate predicate) { + for (V1beta1DeviceBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public boolean hasPool() { - return this.pool != null; + public boolean hasMatchingSharedCounter(Predicate predicate) { + for (V1beta1CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public PoolNested withNewPool() { - return new PoolNested(null); + public boolean hasNodeName() { + return this.nodeName != null; } - public PoolNested withNewPoolLike(V1beta1ResourcePool item) { - return new PoolNested(item); + public boolean hasNodeSelector() { + return this.nodeSelector != null; } - public PoolNested editPool() { - return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(null)); + public boolean hasPerDeviceNodeSelection() { + return this.perDeviceNodeSelection != null; } - public PoolNested editOrNewPool() { - return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(new V1beta1ResourcePoolBuilder().build())); + public boolean hasPool() { + return this.pool != null; } - public PoolNested editOrNewPoolLike(V1beta1ResourcePool item) { - return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(item)); + public boolean hasSharedCounters() { + return this.sharedCounters != null && !(this.sharedCounters.isEmpty()); } - public A addToSharedCounters(int index,V1beta1CounterSet item) { - if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); - } - V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); - if (index < 0 || index >= sharedCounters.size()) { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(builder); - } else { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(index, builder); - } - return (A) this; + public int hashCode() { + return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, perDeviceNodeSelection, pool, sharedCounters); } - public A setToSharedCounters(int index,V1beta1CounterSet item) { - if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + public A removeAllFromDevices(Collection items) { + if (this.devices == null) { + return (A) this; } - V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); - if (index < 0 || index >= sharedCounters.size()) { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(builder); - } else { - _visitables.get("sharedCounters").add(builder); - sharedCounters.set(index, builder); + for (V1beta1Device item : items) { + V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); } return (A) this; } - public A addToSharedCounters(V1beta1CounterSet... items) { + public A removeAllFromSharedCounters(Collection items) { if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + return (A) this; } for (V1beta1CounterSet item : items) { V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); - _visitables.get("sharedCounters").add(builder); - this.sharedCounters.add(builder); + _visitables.get("sharedCounters").remove(builder); + this.sharedCounters.remove(builder); } return (A) this; } - public A addAllToSharedCounters(Collection items) { - if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + public A removeFromDevices(V1beta1Device... items) { + if (this.devices == null) { + return (A) this; } - for (V1beta1CounterSet item : items) { - V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); - _visitables.get("sharedCounters").add(builder); - this.sharedCounters.add(builder); + for (V1beta1Device item : items) { + V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); } return (A) this; } @@ -456,14 +456,18 @@ public A removeFromSharedCounters(V1beta1CounterSet... items) { return (A) this; } - public A removeAllFromSharedCounters(Collection items) { - if (this.sharedCounters == null) { + public A removeMatchingFromDevices(Predicate predicate) { + if (devices == null) { return (A) this; } - for (V1beta1CounterSet item : items) { - V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); - _visitables.get("sharedCounters").remove(builder); - this.sharedCounters.remove(builder); + Iterator each = devices.iterator(); + List visitables = _visitables.get("devices"); + while (each.hasNext()) { + V1beta1DeviceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -476,168 +480,50 @@ public A removeMatchingFromSharedCounters(Predicate pr List visitables = _visitables.get("sharedCounters"); while (each.hasNext()) { V1beta1CounterSetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - public List buildSharedCounters() { - return this.sharedCounters != null ? build(sharedCounters) : null; - } - - public V1beta1CounterSet buildSharedCounter(int index) { - return this.sharedCounters.get(index).build(); - } - - public V1beta1CounterSet buildFirstSharedCounter() { - return this.sharedCounters.get(0).build(); - } - - public V1beta1CounterSet buildLastSharedCounter() { - return this.sharedCounters.get(sharedCounters.size() - 1).build(); - } - - public V1beta1CounterSet buildMatchingSharedCounter(Predicate predicate) { - for (V1beta1CounterSetBuilder item : sharedCounters) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingSharedCounter(Predicate predicate) { - for (V1beta1CounterSetBuilder item : sharedCounters) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withSharedCounters(List sharedCounters) { - if (this.sharedCounters != null) { - this._visitables.get("sharedCounters").clear(); - } - if (sharedCounters != null) { - this.sharedCounters = new ArrayList(); - for (V1beta1CounterSet item : sharedCounters) { - this.addToSharedCounters(item); - } - } else { - this.sharedCounters = null; - } - return (A) this; - } - - public A withSharedCounters(V1beta1CounterSet... sharedCounters) { - if (this.sharedCounters != null) { - this.sharedCounters.clear(); - _visitables.remove("sharedCounters"); - } - if (sharedCounters != null) { - for (V1beta1CounterSet item : sharedCounters) { - this.addToSharedCounters(item); - } + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasSharedCounters() { - return this.sharedCounters != null && !(this.sharedCounters.isEmpty()); - } - - public SharedCountersNested addNewSharedCounter() { - return new SharedCountersNested(-1, null); - } - - public SharedCountersNested addNewSharedCounterLike(V1beta1CounterSet item) { - return new SharedCountersNested(-1, item); + public DevicesNested setNewDeviceLike(int index,V1beta1Device item) { + return new DevicesNested(index, item); } public SharedCountersNested setNewSharedCounterLike(int index,V1beta1CounterSet item) { return new SharedCountersNested(index, item); } - public SharedCountersNested editSharedCounter(int index) { - if (index <= sharedCounters.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sharedCounters")); - } - return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); - } - - public SharedCountersNested editFirstSharedCounter() { - if (sharedCounters.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "sharedCounters")); - } - return this.setNewSharedCounterLike(0, this.buildSharedCounter(0)); - } - - public SharedCountersNested editLastSharedCounter() { - int index = sharedCounters.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "sharedCounters")); - } - return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); - } - - public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { - int index = -1; - for (int i = 0;i < sharedCounters.size();i++) { - if (predicate.test(sharedCounters.get(i))) { - index = i; - break; - } + public A setToDevices(int index,V1beta1Device item) { + if (this.devices == null) { + this.devices = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "sharedCounters")); + V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); } - return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1ResourceSliceSpecFluent that = (V1beta1ResourceSliceSpecFluent) o; - if (!(Objects.equals(allNodes, that.allNodes))) { - return false; - } - if (!(Objects.equals(devices, that.devices))) { - return false; - } - if (!(Objects.equals(driver, that.driver))) { - return false; - } - if (!(Objects.equals(nodeName, that.nodeName))) { - return false; - } - if (!(Objects.equals(nodeSelector, that.nodeSelector))) { - return false; - } - if (!(Objects.equals(perDeviceNodeSelection, that.perDeviceNodeSelection))) { - return false; - } - if (!(Objects.equals(pool, that.pool))) { - return false; + public A setToSharedCounters(int index,V1beta1CounterSet item) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); } - if (!(Objects.equals(sharedCounters, that.sharedCounters))) { - return false; + V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.set(index, builder); } - return true; - } - - public int hashCode() { - return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, perDeviceNodeSelection, pool, sharedCounters); + return (A) this; } public String toString() { @@ -690,17 +576,135 @@ public A withAllNodes() { return withAllNodes(true); } + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public A withDevices(List devices) { + if (this.devices != null) { + this._visitables.get("devices").clear(); + } + if (devices != null) { + this.devices = new ArrayList(); + for (V1beta1Device item : devices) { + this.addToDevices(item); + } + } else { + this.devices = null; + } + return (A) this; + } + + public A withDevices(V1beta1Device... devices) { + if (this.devices != null) { + this.devices.clear(); + _visitables.remove("devices"); + } + if (devices != null) { + for (V1beta1Device item : devices) { + this.addToDevices(item); + } + } + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public PoolNested withNewPool() { + return new PoolNested(null); + } + + public PoolNested withNewPoolLike(V1beta1ResourcePool item) { + return new PoolNested(item); + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + public A withNodeSelector(V1NodeSelector nodeSelector) { + this._visitables.remove("nodeSelector"); + if (nodeSelector != null) { + this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); + this._visitables.get("nodeSelector").add(this.nodeSelector); + } else { + this.nodeSelector = null; + this._visitables.get("nodeSelector").remove(this.nodeSelector); + } + return (A) this; + } + public A withPerDeviceNodeSelection() { return withPerDeviceNodeSelection(true); } + + public A withPerDeviceNodeSelection(Boolean perDeviceNodeSelection) { + this.perDeviceNodeSelection = perDeviceNodeSelection; + return (A) this; + } + + public A withPool(V1beta1ResourcePool pool) { + this._visitables.remove("pool"); + if (pool != null) { + this.pool = new V1beta1ResourcePoolBuilder(pool); + this._visitables.get("pool").add(this.pool); + } else { + this.pool = null; + this._visitables.get("pool").remove(this.pool); + } + return (A) this; + } + + public A withSharedCounters(List sharedCounters) { + if (this.sharedCounters != null) { + this._visitables.get("sharedCounters").clear(); + } + if (sharedCounters != null) { + this.sharedCounters = new ArrayList(); + for (V1beta1CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } else { + this.sharedCounters = null; + } + return (A) this; + } + + public A withSharedCounters(V1beta1CounterSet... sharedCounters) { + if (this.sharedCounters != null) { + this.sharedCounters.clear(); + _visitables.remove("sharedCounters"); + } + if (sharedCounters != null) { + for (V1beta1CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } + return (A) this; + } public class DevicesNested extends V1beta1DeviceFluent> implements Nested{ + + V1beta1DeviceBuilder builder; + int index; + DevicesNested(int index,V1beta1Device item) { this.index = index; this.builder = new V1beta1DeviceBuilder(this, item); } - V1beta1DeviceBuilder builder; - int index; - + public N and() { return (N) V1beta1ResourceSliceSpecFluent.this.setToDevices(index, builder.build()); } @@ -709,14 +713,15 @@ public N endDevice() { return and(); } - } public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + NodeSelectorNested(V1NodeSelector item) { this.builder = new V1NodeSelectorBuilder(this, item); } - V1NodeSelectorBuilder builder; - + public N and() { return (N) V1beta1ResourceSliceSpecFluent.this.withNodeSelector(builder.build()); } @@ -725,14 +730,15 @@ public N endNodeSelector() { return and(); } - } public class PoolNested extends V1beta1ResourcePoolFluent> implements Nested{ + + V1beta1ResourcePoolBuilder builder; + PoolNested(V1beta1ResourcePool item) { this.builder = new V1beta1ResourcePoolBuilder(this, item); } - V1beta1ResourcePoolBuilder builder; - + public N and() { return (N) V1beta1ResourceSliceSpecFluent.this.withPool(builder.build()); } @@ -741,16 +747,17 @@ public N endPool() { return and(); } - } public class SharedCountersNested extends V1beta1CounterSetFluent> implements Nested{ + + V1beta1CounterSetBuilder builder; + int index; + SharedCountersNested(int index,V1beta1CounterSet item) { this.index = index; this.builder = new V1beta1CounterSetBuilder(this, item); } - V1beta1CounterSetBuilder builder; - int index; - + public N and() { return (N) V1beta1ResourceSliceSpecFluent.this.setToSharedCounters(index, builder.build()); } @@ -759,7 +766,5 @@ public N endSharedCounter() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRBuilder.java index 6dee70e7f9..b1bfd548c6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ServiceCIDRBuilder extends V1beta1ServiceCIDRFluent implements VisitableBuilder{ + + V1beta1ServiceCIDRFluent fluent; + public V1beta1ServiceCIDRBuilder() { this(new V1beta1ServiceCIDR()); } @@ -11,17 +14,16 @@ public V1beta1ServiceCIDRBuilder(V1beta1ServiceCIDRFluent fluent) { this(fluent, new V1beta1ServiceCIDR()); } - public V1beta1ServiceCIDRBuilder(V1beta1ServiceCIDRFluent fluent,V1beta1ServiceCIDR instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ServiceCIDRBuilder(V1beta1ServiceCIDR instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ServiceCIDRFluent fluent; + public V1beta1ServiceCIDRBuilder(V1beta1ServiceCIDRFluent fluent,V1beta1ServiceCIDR instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ServiceCIDR build() { V1beta1ServiceCIDR buildable = new V1beta1ServiceCIDR(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1beta1ServiceCIDR build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java index bc2d092f33..eb6e352785 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ServiceCIDRFluent> extends BaseFluent{ - public V1beta1ServiceCIDRFluent() { - } - - public V1beta1ServiceCIDRFluent(V1beta1ServiceCIDR instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1beta1ServiceCIDRSpecBuilder spec; private V1beta1ServiceCIDRStatusBuilder status; - - protected void copyInstance(V1beta1ServiceCIDR instance) { - instance = instance != null ? instance : new V1beta1ServiceCIDR(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1beta1ServiceCIDRFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1beta1ServiceCIDRFluent(V1beta1ServiceCIDR instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1beta1ServiceCIDRSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1beta1ServiceCIDRStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1beta1ServiceCIDR instance) { + instance = instance != null ? instance : new V1beta1ServiceCIDR(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1beta1ServiceCIDRSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta1ServiceCIDRSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta1ServiceCIDRSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta1ServiceCIDRSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ServiceCIDRSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1beta1ServiceCIDRSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1beta1ServiceCIDRStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1beta1ServiceCIDRStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1beta1ServiceCIDRStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1beta1ServiceCIDRStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1beta1ServiceCIDRStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1beta1ServiceCIDRStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1beta1ServiceCIDRStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1beta1ServiceCIDRStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ServiceCIDRSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1beta1ServiceCIDRStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1beta1ServiceCIDRSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1ServiceCIDRSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1beta1ServiceCIDRStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1beta1ServiceCIDRStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1beta1ServiceCIDRFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1beta1ServiceCIDRSpecFluent> implements Nested{ + + V1beta1ServiceCIDRSpecBuilder builder; + SpecNested(V1beta1ServiceCIDRSpec item) { this.builder = new V1beta1ServiceCIDRSpecBuilder(this, item); } - V1beta1ServiceCIDRSpecBuilder builder; - + public N and() { return (N) V1beta1ServiceCIDRFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1beta1ServiceCIDRStatusFluent> implements Nested{ + + V1beta1ServiceCIDRStatusBuilder builder; + StatusNested(V1beta1ServiceCIDRStatus item) { this.builder = new V1beta1ServiceCIDRStatusBuilder(this, item); } - V1beta1ServiceCIDRStatusBuilder builder; - + public N and() { return (N) V1beta1ServiceCIDRFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListBuilder.java index 0201490295..471a00dd59 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ServiceCIDRListBuilder extends V1beta1ServiceCIDRListFluent implements VisitableBuilder{ + + V1beta1ServiceCIDRListFluent fluent; + public V1beta1ServiceCIDRListBuilder() { this(new V1beta1ServiceCIDRList()); } @@ -11,17 +14,16 @@ public V1beta1ServiceCIDRListBuilder(V1beta1ServiceCIDRListFluent fluent) { this(fluent, new V1beta1ServiceCIDRList()); } - public V1beta1ServiceCIDRListBuilder(V1beta1ServiceCIDRListFluent fluent,V1beta1ServiceCIDRList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ServiceCIDRListBuilder(V1beta1ServiceCIDRList instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ServiceCIDRListFluent fluent; + public V1beta1ServiceCIDRListBuilder(V1beta1ServiceCIDRListFluent fluent,V1beta1ServiceCIDRList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ServiceCIDRList build() { V1beta1ServiceCIDRList buildable = new V1beta1ServiceCIDRList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1ServiceCIDRList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java index 92467a0a45..9283129dfa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ServiceCIDRListFluent> extends BaseFluent{ - public V1beta1ServiceCIDRListFluent() { - } - - public V1beta1ServiceCIDRListFluent(V1beta1ServiceCIDRList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta1ServiceCIDRList instance) { - instance = instance != null ? instance : new V1beta1ServiceCIDRList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1beta1ServiceCIDRListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1beta1ServiceCIDRListFluent(V1beta1ServiceCIDRList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1beta1ServiceCIDR item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1beta1ServiceCIDR item : items) { + V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1beta1ServiceCIDR item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1ServiceCIDR item) { + return new ItemsNested(-1, item); } public A addToItems(V1beta1ServiceCIDR... items) { @@ -96,68 +65,31 @@ public A addToItems(V1beta1ServiceCIDR... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1beta1ServiceCIDR item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1beta1ServiceCIDR item : items) { - V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); + V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1beta1ServiceCIDR... items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1ServiceCIDR item : items) { - V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1ServiceCIDR item : items) { - V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta1ServiceCIDRBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1beta1ServiceCIDR buildFirstItem() { + return this.items.get(0).build(); } public V1beta1ServiceCIDR buildItem(int index) { return this.items.get(index).build(); } - public V1beta1ServiceCIDR buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1beta1ServiceCIDR buildLastItem() { @@ -173,73 +105,34 @@ public V1beta1ServiceCIDR buildMatchingItem(Predicate return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1beta1ServiceCIDRBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta1ServiceCIDR item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1beta1ServiceCIDRList instance) { + instance = instance != null ? instance : new V1beta1ServiceCIDRList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1beta1ServiceCIDR... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta1ServiceCIDR item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta1ServiceCIDR item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta1ServiceCIDR item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate pred return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1ServiceCIDRBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1ServiceCIDR item : items) { + V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta1ServiceCIDR... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1ServiceCIDR item : items) { + V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1ServiceCIDRBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta1ServiceCIDR item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta1ServiceCIDR item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1ServiceCIDR item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta1ServiceCIDR... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1ServiceCIDR item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1beta1ServiceCIDRFluent> implements Nested{ + + V1beta1ServiceCIDRBuilder builder; + int index; + ItemsNested(int index,V1beta1ServiceCIDR item) { this.index = index; this.builder = new V1beta1ServiceCIDRBuilder(this, item); } - V1beta1ServiceCIDRBuilder builder; - int index; - + public N and() { return (N) V1beta1ServiceCIDRListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1beta1ServiceCIDRListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java index 6d50ca04b2..3167695e73 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ServiceCIDRSpecBuilder extends V1beta1ServiceCIDRSpecFluent implements VisitableBuilder{ + + V1beta1ServiceCIDRSpecFluent fluent; + public V1beta1ServiceCIDRSpecBuilder() { this(new V1beta1ServiceCIDRSpec()); } @@ -11,22 +14,20 @@ public V1beta1ServiceCIDRSpecBuilder(V1beta1ServiceCIDRSpecFluent fluent) { this(fluent, new V1beta1ServiceCIDRSpec()); } - public V1beta1ServiceCIDRSpecBuilder(V1beta1ServiceCIDRSpecFluent fluent,V1beta1ServiceCIDRSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ServiceCIDRSpecBuilder(V1beta1ServiceCIDRSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ServiceCIDRSpecFluent fluent; + public V1beta1ServiceCIDRSpecBuilder(V1beta1ServiceCIDRSpecFluent fluent,V1beta1ServiceCIDRSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ServiceCIDRSpec build() { V1beta1ServiceCIDRSpec buildable = new V1beta1ServiceCIDRSpec(); buildable.setCidrs(fluent.getCidrs()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecFluent.java index 65e75c7d2b..16c524ed0f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,34 +16,23 @@ */ @SuppressWarnings("unchecked") public class V1beta1ServiceCIDRSpecFluent> extends BaseFluent{ + + private List cidrs; + public V1beta1ServiceCIDRSpecFluent() { } public V1beta1ServiceCIDRSpecFluent(V1beta1ServiceCIDRSpec instance) { this.copyInstance(instance); } - private List cidrs; - - protected void copyInstance(V1beta1ServiceCIDRSpec instance) { - instance = instance != null ? instance : new V1beta1ServiceCIDRSpec(); - if (instance != null) { - this.withCidrs(instance.getCidrs()); - } - } - - public A addToCidrs(int index,String item) { + + public A addAllToCidrs(Collection items) { if (this.cidrs == null) { this.cidrs = new ArrayList(); } - this.cidrs.add(index, item); - return (A) this; - } - - public A setToCidrs(int index,String item) { - if (this.cidrs == null) { - this.cidrs = new ArrayList(); + for (String item : items) { + this.cidrs.add(item); } - this.cidrs.set(index, item); return (A) this; } @@ -57,44 +46,46 @@ public A addToCidrs(String... items) { return (A) this; } - public A addAllToCidrs(Collection items) { + public A addToCidrs(int index,String item) { if (this.cidrs == null) { this.cidrs = new ArrayList(); } - for (String item : items) { - this.cidrs.add(item); - } + this.cidrs.add(index, item); return (A) this; } - public A removeFromCidrs(String... items) { - if (this.cidrs == null) { - return (A) this; - } - for (String item : items) { - this.cidrs.remove(item); + protected void copyInstance(V1beta1ServiceCIDRSpec instance) { + instance = instance != null ? instance : new V1beta1ServiceCIDRSpec(); + if (instance != null) { + this.withCidrs(instance.getCidrs()); } - return (A) this; } - public A removeAllFromCidrs(Collection items) { - if (this.cidrs == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.cidrs.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public List getCidrs() { - return this.cidrs; + if (!(super.equals(o))) { + return false; + } + V1beta1ServiceCIDRSpecFluent that = (V1beta1ServiceCIDRSpecFluent) o; + if (!(Objects.equals(cidrs, that.cidrs))) { + return false; + } + return true; } public String getCidr(int index) { return this.cidrs.get(index); } + public List getCidrs() { + return this.cidrs; + } + public String getFirstCidr() { return this.cidrs.get(0); } @@ -112,6 +103,10 @@ public String getMatchingCidr(Predicate predicate) { return null; } + public boolean hasCidrs() { + return this.cidrs != null && !(this.cidrs.isEmpty()); + } + public boolean hasMatchingCidr(Predicate predicate) { for (String item : cidrs) { if (predicate.test(item)) { @@ -121,6 +116,49 @@ public boolean hasMatchingCidr(Predicate predicate) { return false; } + public int hashCode() { + return Objects.hash(cidrs); + } + + public A removeAllFromCidrs(Collection items) { + if (this.cidrs == null) { + return (A) this; + } + for (String item : items) { + this.cidrs.remove(item); + } + return (A) this; + } + + public A removeFromCidrs(String... items) { + if (this.cidrs == null) { + return (A) this; + } + for (String item : items) { + this.cidrs.remove(item); + } + return (A) this; + } + + public A setToCidrs(int index,String item) { + if (this.cidrs == null) { + this.cidrs = new ArrayList(); + } + this.cidrs.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(cidrs == null) && !(cidrs.isEmpty())) { + sb.append("cidrs:"); + sb.append(cidrs); + } + sb.append("}"); + return sb.toString(); + } + public A withCidrs(List cidrs) { if (cidrs != null) { this.cidrs = new ArrayList(); @@ -146,41 +184,4 @@ public A withCidrs(String... cidrs) { return (A) this; } - public boolean hasCidrs() { - return this.cidrs != null && !(this.cidrs.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1ServiceCIDRSpecFluent that = (V1beta1ServiceCIDRSpecFluent) o; - if (!(Objects.equals(cidrs, that.cidrs))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(cidrs); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(cidrs == null) && !(cidrs.isEmpty())) { - sb.append("cidrs:"); - sb.append(cidrs); - } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusBuilder.java index 47fff76abb..00e5ac46ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1ServiceCIDRStatusBuilder extends V1beta1ServiceCIDRStatusFluent implements VisitableBuilder{ + + V1beta1ServiceCIDRStatusFluent fluent; + public V1beta1ServiceCIDRStatusBuilder() { this(new V1beta1ServiceCIDRStatus()); } @@ -11,22 +14,20 @@ public V1beta1ServiceCIDRStatusBuilder(V1beta1ServiceCIDRStatusFluent fluent) this(fluent, new V1beta1ServiceCIDRStatus()); } - public V1beta1ServiceCIDRStatusBuilder(V1beta1ServiceCIDRStatusFluent fluent,V1beta1ServiceCIDRStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ServiceCIDRStatusBuilder(V1beta1ServiceCIDRStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ServiceCIDRStatusFluent fluent; + public V1beta1ServiceCIDRStatusBuilder(V1beta1ServiceCIDRStatusFluent fluent,V1beta1ServiceCIDRStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ServiceCIDRStatus build() { V1beta1ServiceCIDRStatus buildable = new V1beta1ServiceCIDRStatus(); buildable.setConditions(fluent.buildConditions()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java index a46dbd7866..e79fbe8793 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java @@ -1,67 +1,52 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1ServiceCIDRStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + public V1beta1ServiceCIDRStatusFluent() { } public V1beta1ServiceCIDRStatusFluent(V1beta1ServiceCIDRStatus instance) { this.copyInstance(instance); } - private ArrayList conditions; - - protected void copyInstance(V1beta1ServiceCIDRStatus instance) { - instance = instance != null ? instance : new V1beta1ServiceCIDRStatus(); - if (instance != null) { - this.withConditions(instance.getConditions()); - } - } - - public A addToConditions(int index,V1Condition item) { + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1Condition... items) { @@ -76,66 +61,29 @@ public A addToConditions(V1Condition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1Condition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1Condition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -153,61 +101,15 @@ public V1Condition buildMatchingCondition(Predicate predicat return null; } - public boolean hasMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(V1Condition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1Condition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1beta1ServiceCIDRStatus instance) { + instance = instance != null ? instance : new V1beta1ServiceCIDRStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -259,10 +161,82 @@ public boolean equals(Object o) { return true; } + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public int hashCode() { return Objects.hash(conditions); } + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1Condition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -273,14 +247,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + ConditionsNested(int index,V1Condition item) { this.index = index; this.builder = new V1ConditionBuilder(this, item); } - V1ConditionBuilder builder; - int index; - + public N and() { return (N) V1beta1ServiceCIDRStatusFluent.this.setToConditions(index, builder.build()); } @@ -289,7 +293,5 @@ public N endCondition() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableBuilder.java index 7c29ec9651..5fbf3bc40e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1VariableBuilder extends V1beta1VariableFluent implements VisitableBuilder{ + + V1beta1VariableFluent fluent; + public V1beta1VariableBuilder() { this(new V1beta1Variable()); } @@ -11,17 +14,16 @@ public V1beta1VariableBuilder(V1beta1VariableFluent fluent) { this(fluent, new V1beta1Variable()); } - public V1beta1VariableBuilder(V1beta1VariableFluent fluent,V1beta1Variable instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1VariableBuilder(V1beta1Variable instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1VariableFluent fluent; + public V1beta1VariableBuilder(V1beta1VariableFluent fluent,V1beta1Variable instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1Variable build() { V1beta1Variable buildable = new V1beta1Variable(); buildable.setExpression(fluent.getExpression()); @@ -29,5 +31,4 @@ public V1beta1Variable build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableFluent.java index 74dc3258fa..acf88c22b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1VariableFluent> extends BaseFluent{ + + private String expression; + private String name; + public V1beta1VariableFluent() { } public V1beta1VariableFluent(V1beta1Variable instance) { this.copyInstance(instance); } - private String expression; - private String name; - + protected void copyInstance(V1beta1Variable instance) { instance = instance != null ? instance : new V1beta1Variable(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1beta1Variable instance) { } } - public String getExpression() { - return this.expression; - } - - public A withExpression(String expression) { - this.expression = expression; - return (A) this; - } - - public boolean hasExpression() { - return this.expression != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getExpression() { + return this.expression; + } + + public String getName() { + return this.name; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(expression, name); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassBuilder.java index 9164c6adbd..f499bb16f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1VolumeAttributesClassBuilder extends V1beta1VolumeAttributesClassFluent implements VisitableBuilder{ + + V1beta1VolumeAttributesClassFluent fluent; + public V1beta1VolumeAttributesClassBuilder() { this(new V1beta1VolumeAttributesClass()); } @@ -11,17 +14,16 @@ public V1beta1VolumeAttributesClassBuilder(V1beta1VolumeAttributesClassFluent this(fluent, new V1beta1VolumeAttributesClass()); } - public V1beta1VolumeAttributesClassBuilder(V1beta1VolumeAttributesClassFluent fluent,V1beta1VolumeAttributesClass instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1VolumeAttributesClassBuilder(V1beta1VolumeAttributesClass instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1VolumeAttributesClassFluent fluent; + public V1beta1VolumeAttributesClassBuilder(V1beta1VolumeAttributesClassFluent fluent,V1beta1VolumeAttributesClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1VolumeAttributesClass build() { V1beta1VolumeAttributesClass buildable = new V1beta1VolumeAttributesClass(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1beta1VolumeAttributesClass build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassFluent.java index 3e8f3c48b6..82aab7e832 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassFluent.java @@ -1,32 +1,58 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1VolumeAttributesClassFluent> extends BaseFluent{ + + private String apiVersion; + private String driverName; + private String kind; + private V1ObjectMetaBuilder metadata; + private Map parameters; + public V1beta1VolumeAttributesClassFluent() { } public V1beta1VolumeAttributesClassFluent(V1beta1VolumeAttributesClass instance) { this.copyInstance(instance); } - private String apiVersion; - private String driverName; - private String kind; - private V1ObjectMetaBuilder metadata; - private Map parameters; + + public A addToParameters(Map map) { + if (this.parameters == null && map != null) { + this.parameters = new LinkedHashMap(); + } + if (map != null) { + this.parameters.putAll(map); + } + return (A) this; + } + + public A addToParameters(String key,String value) { + if (this.parameters == null && key != null && value != null) { + this.parameters = new LinkedHashMap(); + } + if (key != null && value != null) { + this.parameters.put(key, value); + } + return (A) this; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } protected void copyInstance(V1beta1VolumeAttributesClass instance) { instance = instance != null ? instance : new V1beta1VolumeAttributesClass(); @@ -39,103 +65,85 @@ protected void copyInstance(V1beta1VolumeAttributesClass instance) { } } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public String getDriverName() { - return this.driverName; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1VolumeAttributesClassFluent that = (V1beta1VolumeAttributesClassFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(driverName, that.driverName))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(parameters, that.parameters))) { + return false; + } + return true; } - public A withDriverName(String driverName) { - this.driverName = driverName; - return (A) this; + public String getApiVersion() { + return this.apiVersion; } - public boolean hasDriverName() { - return this.driverName != null; + public String getDriverName() { + return this.driverName; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public Map getParameters() { + return this.parameters; } - public boolean hasKind() { - return this.kind != null; + public boolean hasApiVersion() { + return this.apiVersion != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasDriverName() { + return this.driverName != null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; + public boolean hasKind() { + return this.kind != null; } public boolean hasMetadata() { return this.metadata != null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - - public MetadataNested editMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); - } - - public MetadataNested editOrNewMetadata() { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); - } - - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); - } - - public A addToParameters(String key,String value) { - if (this.parameters == null && key != null && value != null) { - this.parameters = new LinkedHashMap(); - } - if (key != null && value != null) { - this.parameters.put(key, value); - } - return (A) this; + public boolean hasParameters() { + return this.parameters != null; } - public A addToParameters(Map map) { - if (this.parameters == null && map != null) { - this.parameters = new LinkedHashMap(); - } - if (map != null) { - this.parameters.putAll(map); - } - return (A) this; + public int hashCode() { + return Objects.hash(apiVersion, driverName, kind, metadata, parameters); } public A removeFromParameters(String key) { @@ -162,56 +170,6 @@ public A removeFromParameters(Map map) { return (A) this; } - public Map getParameters() { - return this.parameters; - } - - public A withParameters(Map parameters) { - if (parameters == null) { - this.parameters = null; - } else { - this.parameters = new LinkedHashMap(parameters); - } - return (A) this; - } - - public boolean hasParameters() { - return this.parameters != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta1VolumeAttributesClassFluent that = (V1beta1VolumeAttributesClassFluent) o; - if (!(Objects.equals(apiVersion, that.apiVersion))) { - return false; - } - if (!(Objects.equals(driverName, that.driverName))) { - return false; - } - if (!(Objects.equals(kind, that.kind))) { - return false; - } - if (!(Objects.equals(metadata, that.metadata))) { - return false; - } - if (!(Objects.equals(parameters, that.parameters))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(apiVersion, driverName, kind, metadata, parameters); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -242,12 +200,58 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withDriverName(String driverName) { + this.driverName = driverName; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public A withParameters(Map parameters) { + if (parameters == null) { + this.parameters = null; + } else { + this.parameters = new LinkedHashMap(parameters); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1beta1VolumeAttributesClassFluent.this.withMetadata(builder.build()); } @@ -256,7 +260,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListBuilder.java index d18730c4c1..e112ee6c41 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta1VolumeAttributesClassListBuilder extends V1beta1VolumeAttributesClassListFluent implements VisitableBuilder{ + + V1beta1VolumeAttributesClassListFluent fluent; + public V1beta1VolumeAttributesClassListBuilder() { this(new V1beta1VolumeAttributesClassList()); } @@ -11,17 +14,16 @@ public V1beta1VolumeAttributesClassListBuilder(V1beta1VolumeAttributesClassListF this(fluent, new V1beta1VolumeAttributesClassList()); } - public V1beta1VolumeAttributesClassListBuilder(V1beta1VolumeAttributesClassListFluent fluent,V1beta1VolumeAttributesClassList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1VolumeAttributesClassListBuilder(V1beta1VolumeAttributesClassList instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1VolumeAttributesClassListFluent fluent; + public V1beta1VolumeAttributesClassListBuilder(V1beta1VolumeAttributesClassListFluent fluent,V1beta1VolumeAttributesClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1VolumeAttributesClassList build() { V1beta1VolumeAttributesClassList buildable = new V1beta1VolumeAttributesClassList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta1VolumeAttributesClassList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java index 5bd8143a60..ef0fe2177b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta1VolumeAttributesClassListFluent> extends BaseFluent{ - public V1beta1VolumeAttributesClassListFluent() { - } - - public V1beta1VolumeAttributesClassListFluent(V1beta1VolumeAttributesClassList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta1VolumeAttributesClassList instance) { - instance = instance != null ? instance : new V1beta1VolumeAttributesClassList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1beta1VolumeAttributesClassListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1beta1VolumeAttributesClassListFluent(V1beta1VolumeAttributesClassList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1beta1VolumeAttributesClass item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1beta1VolumeAttributesClass item : items) { + V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1beta1VolumeAttributesClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1VolumeAttributesClass item) { + return new ItemsNested(-1, item); } public A addToItems(V1beta1VolumeAttributesClass... items) { @@ -96,68 +65,31 @@ public A addToItems(V1beta1VolumeAttributesClass... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1beta1VolumeAttributesClass item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1beta1VolumeAttributesClass item : items) { - V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); + V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1beta1VolumeAttributesClass... items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1VolumeAttributesClass item : items) { - V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1beta1VolumeAttributesClass item : items) { - V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta1VolumeAttributesClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1beta1VolumeAttributesClass buildFirstItem() { + return this.items.get(0).build(); } public V1beta1VolumeAttributesClass buildItem(int index) { return this.items.get(index).build(); } - public V1beta1VolumeAttributesClass buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1beta1VolumeAttributesClass buildLastItem() { @@ -173,73 +105,34 @@ public V1beta1VolumeAttributesClass buildMatchingItem(Predicate predicate) { - for (V1beta1VolumeAttributesClassBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta1VolumeAttributesClass item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1beta1VolumeAttributesClassList instance) { + instance = instance != null ? instance : new V1beta1VolumeAttributesClassList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1beta1VolumeAttributesClass... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta1VolumeAttributesClass item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta1VolumeAttributesClass item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta1VolumeAttributesClass item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1VolumeAttributesClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1VolumeAttributesClass item : items) { + V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta1VolumeAttributesClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1VolumeAttributesClass item : items) { + V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1VolumeAttributesClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta1VolumeAttributesClass item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta1VolumeAttributesClass item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1VolumeAttributesClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta1VolumeAttributesClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1VolumeAttributesClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1beta1VolumeAttributesClassFluent> implements Nested{ + + V1beta1VolumeAttributesClassBuilder builder; + int index; + ItemsNested(int index,V1beta1VolumeAttributesClass item) { this.index = index; this.builder = new V1beta1VolumeAttributesClassBuilder(this, item); } - V1beta1VolumeAttributesClassBuilder builder; - int index; - + public N and() { return (N) V1beta1VolumeAttributesClassListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1beta1VolumeAttributesClassListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusBuilder.java index 63eb578e65..83f52c5a59 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2AllocatedDeviceStatusBuilder extends V1beta2AllocatedDeviceStatusFluent implements VisitableBuilder{ + + V1beta2AllocatedDeviceStatusFluent fluent; + public V1beta2AllocatedDeviceStatusBuilder() { this(new V1beta2AllocatedDeviceStatus()); } @@ -11,17 +14,16 @@ public V1beta2AllocatedDeviceStatusBuilder(V1beta2AllocatedDeviceStatusFluent this(fluent, new V1beta2AllocatedDeviceStatus()); } - public V1beta2AllocatedDeviceStatusBuilder(V1beta2AllocatedDeviceStatusFluent fluent,V1beta2AllocatedDeviceStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2AllocatedDeviceStatusBuilder(V1beta2AllocatedDeviceStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2AllocatedDeviceStatusFluent fluent; + public V1beta2AllocatedDeviceStatusBuilder(V1beta2AllocatedDeviceStatusFluent fluent,V1beta2AllocatedDeviceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2AllocatedDeviceStatus build() { V1beta2AllocatedDeviceStatus buildable = new V1beta2AllocatedDeviceStatus(); buildable.setConditions(fluent.buildConditions()); @@ -34,5 +36,4 @@ public V1beta2AllocatedDeviceStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusFluent.java index dc72f0d160..52762561e1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusFluent.java @@ -1,31 +1,26 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2AllocatedDeviceStatusFluent> extends BaseFluent{ - public V1beta2AllocatedDeviceStatusFluent() { - } - - public V1beta2AllocatedDeviceStatusFluent(V1beta2AllocatedDeviceStatus instance) { - this.copyInstance(instance); - } + private ArrayList conditions; private Object data; private String device; @@ -33,48 +28,32 @@ public V1beta2AllocatedDeviceStatusFluent(V1beta2AllocatedDeviceStatus instance) private V1beta2NetworkDeviceDataBuilder networkData; private String pool; private String shareID; - - protected void copyInstance(V1beta2AllocatedDeviceStatus instance) { - instance = instance != null ? instance : new V1beta2AllocatedDeviceStatus(); - if (instance != null) { - this.withConditions(instance.getConditions()); - this.withData(instance.getData()); - this.withDevice(instance.getDevice()); - this.withDriver(instance.getDriver()); - this.withNetworkData(instance.getNetworkData()); - this.withPool(instance.getPool()); - this.withShareID(instance.getShareID()); - } + + public V1beta2AllocatedDeviceStatusFluent() { } - public A addToConditions(int index,V1Condition item) { + public V1beta2AllocatedDeviceStatusFluent(V1beta2AllocatedDeviceStatus instance) { + this.copyInstance(instance); + } + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V1Condition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); - } - V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); - } - return (A) this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); } public A addToConditions(V1Condition... items) { @@ -89,66 +68,29 @@ public A addToConditions(V1Condition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V1Condition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(V1Condition... items) { - if (this.conditions == null) { - return (A) this; - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); - } - return (A) this; - } - - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; - } - for (V1Condition item : items) { - V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1Condition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -166,61 +108,25 @@ public V1Condition buildMatchingCondition(Predicate predicat return null; } - public boolean hasMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1Condition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + public V1beta2NetworkDeviceData buildNetworkData() { + return this.networkData != null ? this.networkData.build() : null; } - public A withConditions(V1Condition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1Condition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V1beta2AllocatedDeviceStatus instance) { + instance = instance != null ? instance : new V1beta2AllocatedDeviceStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withData(instance.getData()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withNetworkData(instance.getNetworkData()); + this.withPool(instance.getPool()); + this.withShareID(instance.getShareID()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); @@ -255,148 +161,171 @@ public ConditionsNested editMatchingCondition(Predicate p return this.setNewConditionLike(index, this.buildCondition(index)); } - public Object getData() { - return this.data; + public NetworkDataNested editNetworkData() { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(null)); } - public A withData(Object data) { - this.data = data; - return (A) this; + public NetworkDataNested editOrNewNetworkData() { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(new V1beta2NetworkDeviceDataBuilder().build())); } - public boolean hasData() { - return this.data != null; + public NetworkDataNested editOrNewNetworkDataLike(V1beta2NetworkDeviceData item) { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(item)); } - public String getDevice() { - return this.device; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2AllocatedDeviceStatusFluent that = (V1beta2AllocatedDeviceStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(data, that.data))) { + return false; + } + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(networkData, that.networkData))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(shareID, that.shareID))) { + return false; + } + return true; } - public A withDevice(String device) { - this.device = device; - return (A) this; + public Object getData() { + return this.data; } - public boolean hasDevice() { - return this.device != null; + public String getDevice() { + return this.device; } public String getDriver() { return this.driver; } - public A withDriver(String driver) { - this.driver = driver; - return (A) this; + public String getPool() { + return this.pool; } - public boolean hasDriver() { - return this.driver != null; + public String getShareID() { + return this.shareID; } - public V1beta2NetworkDeviceData buildNetworkData() { - return this.networkData != null ? this.networkData.build() : null; + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); } - public A withNetworkData(V1beta2NetworkDeviceData networkData) { - this._visitables.remove("networkData"); - if (networkData != null) { - this.networkData = new V1beta2NetworkDeviceDataBuilder(networkData); - this._visitables.get("networkData").add(this.networkData); - } else { - this.networkData = null; - this._visitables.get("networkData").remove(this.networkData); - } - return (A) this; + public boolean hasData() { + return this.data != null; } - public boolean hasNetworkData() { - return this.networkData != null; + public boolean hasDevice() { + return this.device != null; } - public NetworkDataNested withNewNetworkData() { - return new NetworkDataNested(null); + public boolean hasDriver() { + return this.driver != null; } - public NetworkDataNested withNewNetworkDataLike(V1beta2NetworkDeviceData item) { - return new NetworkDataNested(item); + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public NetworkDataNested editNetworkData() { - return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(null)); + public boolean hasNetworkData() { + return this.networkData != null; } - public NetworkDataNested editOrNewNetworkData() { - return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(new V1beta2NetworkDeviceDataBuilder().build())); + public boolean hasPool() { + return this.pool != null; } - public NetworkDataNested editOrNewNetworkDataLike(V1beta2NetworkDeviceData item) { - return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(item)); + public boolean hasShareID() { + return this.shareID != null; } - public String getPool() { - return this.pool; + public int hashCode() { + return Objects.hash(conditions, data, device, driver, networkData, pool, shareID); } - public A withPool(String pool) { - this.pool = pool; + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } return (A) this; } - public boolean hasPool() { - return this.pool != null; - } - - public String getShareID() { - return this.shareID; + public A removeFromConditions(V1Condition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } - public A withShareID(String shareID) { - this.shareID = shareID; + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } return (A) this; } - public boolean hasShareID() { - return this.shareID != null; + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta2AllocatedDeviceStatusFluent that = (V1beta2AllocatedDeviceStatusFluent) o; - if (!(Objects.equals(conditions, that.conditions))) { - return false; - } - if (!(Objects.equals(data, that.data))) { - return false; - } - if (!(Objects.equals(device, that.device))) { - return false; - } - if (!(Objects.equals(driver, that.driver))) { - return false; - } - if (!(Objects.equals(networkData, that.networkData))) { - return false; - } - if (!(Objects.equals(pool, that.pool))) { - return false; + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); } - if (!(Objects.equals(shareID, that.shareID))) { - return false; + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); } - return true; - } - - public int hashCode() { - return Objects.hash(conditions, data, device, driver, networkData, pool, shareID); + return (A) this; } public String toString() { @@ -439,14 +368,89 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withData(Object data) { + this.data = data; + return (A) this; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withNetworkData(V1beta2NetworkDeviceData networkData) { + this._visitables.remove("networkData"); + if (networkData != null) { + this.networkData = new V1beta2NetworkDeviceDataBuilder(networkData); + this._visitables.get("networkData").add(this.networkData); + } else { + this.networkData = null; + this._visitables.get("networkData").remove(this.networkData); + } + return (A) this; + } + + public NetworkDataNested withNewNetworkData() { + return new NetworkDataNested(null); + } + + public NetworkDataNested withNewNetworkDataLike(V1beta2NetworkDeviceData item) { + return new NetworkDataNested(item); + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public A withShareID(String shareID) { + this.shareID = shareID; + return (A) this; + } public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + ConditionsNested(int index,V1Condition item) { this.index = index; this.builder = new V1ConditionBuilder(this, item); } - V1ConditionBuilder builder; - int index; - + public N and() { return (N) V1beta2AllocatedDeviceStatusFluent.this.setToConditions(index, builder.build()); } @@ -455,14 +459,15 @@ public N endCondition() { return and(); } - } public class NetworkDataNested extends V1beta2NetworkDeviceDataFluent> implements Nested{ + + V1beta2NetworkDeviceDataBuilder builder; + NetworkDataNested(V1beta2NetworkDeviceData item) { this.builder = new V1beta2NetworkDeviceDataBuilder(this, item); } - V1beta2NetworkDeviceDataBuilder builder; - + public N and() { return (N) V1beta2AllocatedDeviceStatusFluent.this.withNetworkData(builder.build()); } @@ -471,7 +476,5 @@ public N endNetworkData() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultBuilder.java index 86a5fee5fe..f5f92637f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2AllocationResultBuilder extends V1beta2AllocationResultFluent implements VisitableBuilder{ + + V1beta2AllocationResultFluent fluent; + public V1beta2AllocationResultBuilder() { this(new V1beta2AllocationResult()); } @@ -11,17 +14,16 @@ public V1beta2AllocationResultBuilder(V1beta2AllocationResultFluent fluent) { this(fluent, new V1beta2AllocationResult()); } - public V1beta2AllocationResultBuilder(V1beta2AllocationResultFluent fluent,V1beta2AllocationResult instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2AllocationResultBuilder(V1beta2AllocationResult instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2AllocationResultFluent fluent; + public V1beta2AllocationResultBuilder(V1beta2AllocationResultFluent fluent,V1beta2AllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2AllocationResult build() { V1beta2AllocationResult buildable = new V1beta2AllocationResult(); buildable.setAllocationTimestamp(fluent.getAllocationTimestamp()); @@ -30,5 +32,4 @@ public V1beta2AllocationResult build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultFluent.java index 804258f439..4a60bcc10b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2AllocationResultFluent> extends BaseFluent{ + + private OffsetDateTime allocationTimestamp; + private V1beta2DeviceAllocationResultBuilder devices; + private V1NodeSelectorBuilder nodeSelector; + public V1beta2AllocationResultFluent() { } public V1beta2AllocationResultFluent(V1beta2AllocationResult instance) { this.copyInstance(instance); } - private OffsetDateTime allocationTimestamp; - private V1beta2DeviceAllocationResultBuilder devices; - private V1NodeSelectorBuilder nodeSelector; + + public V1beta2DeviceAllocationResult buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } protected void copyInstance(V1beta2AllocationResult instance) { instance = instance != null ? instance : new V1beta2AllocationResult(); @@ -34,51 +44,14 @@ protected void copyInstance(V1beta2AllocationResult instance) { } } - public OffsetDateTime getAllocationTimestamp() { - return this.allocationTimestamp; - } - - public A withAllocationTimestamp(OffsetDateTime allocationTimestamp) { - this.allocationTimestamp = allocationTimestamp; - return (A) this; - } - - public boolean hasAllocationTimestamp() { - return this.allocationTimestamp != null; - } - - public V1beta2DeviceAllocationResult buildDevices() { - return this.devices != null ? this.devices.build() : null; - } - - public A withDevices(V1beta2DeviceAllocationResult devices) { - this._visitables.remove("devices"); - if (devices != null) { - this.devices = new V1beta2DeviceAllocationResultBuilder(devices); - this._visitables.get("devices").add(this.devices); - } else { - this.devices = null; - this._visitables.get("devices").remove(this.devices); - } - return (A) this; - } - - public boolean hasDevices() { - return this.devices != null; - } - - public DevicesNested withNewDevices() { - return new DevicesNested(null); - } - - public DevicesNested withNewDevicesLike(V1beta2DeviceAllocationResult item) { - return new DevicesNested(item); - } - public DevicesNested editDevices() { return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(null)); } + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + } + public DevicesNested editOrNewDevices() { return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(new V1beta2DeviceAllocationResultBuilder().build())); } @@ -87,38 +60,6 @@ public DevicesNested editOrNewDevicesLike(V1beta2DeviceAllocationResult item) return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(item)); } - public V1NodeSelector buildNodeSelector() { - return this.nodeSelector != null ? this.nodeSelector.build() : null; - } - - public A withNodeSelector(V1NodeSelector nodeSelector) { - this._visitables.remove("nodeSelector"); - if (nodeSelector != null) { - this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); - this._visitables.get("nodeSelector").add(this.nodeSelector); - } else { - this.nodeSelector = null; - this._visitables.get("nodeSelector").remove(this.nodeSelector); - } - return (A) this; - } - - public boolean hasNodeSelector() { - return this.nodeSelector != null; - } - - public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); - } - - public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); - } - - public NodeSelectorNested editNodeSelector() { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); - } - public NodeSelectorNested editOrNewNodeSelector() { return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); } @@ -150,6 +91,22 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getAllocationTimestamp() { + return this.allocationTimestamp; + } + + public boolean hasAllocationTimestamp() { + return this.allocationTimestamp != null; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + public int hashCode() { return Objects.hash(allocationTimestamp, devices, nodeSelector); } @@ -174,12 +131,59 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAllocationTimestamp(OffsetDateTime allocationTimestamp) { + this.allocationTimestamp = allocationTimestamp; + return (A) this; + } + + public A withDevices(V1beta2DeviceAllocationResult devices) { + this._visitables.remove("devices"); + if (devices != null) { + this.devices = new V1beta2DeviceAllocationResultBuilder(devices); + this._visitables.get("devices").add(this.devices); + } else { + this.devices = null; + this._visitables.get("devices").remove(this.devices); + } + return (A) this; + } + + public DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1beta2DeviceAllocationResult item) { + return new DevicesNested(item); + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public A withNodeSelector(V1NodeSelector nodeSelector) { + this._visitables.remove("nodeSelector"); + if (nodeSelector != null) { + this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); + this._visitables.get("nodeSelector").add(this.nodeSelector); + } else { + this.nodeSelector = null; + this._visitables.get("nodeSelector").remove(this.nodeSelector); + } + return (A) this; + } public class DevicesNested extends V1beta2DeviceAllocationResultFluent> implements Nested{ + + V1beta2DeviceAllocationResultBuilder builder; + DevicesNested(V1beta2DeviceAllocationResult item) { this.builder = new V1beta2DeviceAllocationResultBuilder(this, item); } - V1beta2DeviceAllocationResultBuilder builder; - + public N and() { return (N) V1beta2AllocationResultFluent.this.withDevices(builder.build()); } @@ -188,14 +192,15 @@ public N endDevices() { return and(); } - } public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + NodeSelectorNested(V1NodeSelector item) { this.builder = new V1NodeSelectorBuilder(this, item); } - V1NodeSelectorBuilder builder; - + public N and() { return (N) V1beta2AllocationResultFluent.this.withNodeSelector(builder.build()); } @@ -204,7 +209,5 @@ public N endNodeSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorBuilder.java index 6a8d0599bf..76bebca264 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2CELDeviceSelectorBuilder extends V1beta2CELDeviceSelectorFluent implements VisitableBuilder{ + + V1beta2CELDeviceSelectorFluent fluent; + public V1beta2CELDeviceSelectorBuilder() { this(new V1beta2CELDeviceSelector()); } @@ -11,22 +14,20 @@ public V1beta2CELDeviceSelectorBuilder(V1beta2CELDeviceSelectorFluent fluent) this(fluent, new V1beta2CELDeviceSelector()); } - public V1beta2CELDeviceSelectorBuilder(V1beta2CELDeviceSelectorFluent fluent,V1beta2CELDeviceSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2CELDeviceSelectorBuilder(V1beta2CELDeviceSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2CELDeviceSelectorFluent fluent; + public V1beta2CELDeviceSelectorBuilder(V1beta2CELDeviceSelectorFluent fluent,V1beta2CELDeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2CELDeviceSelector build() { V1beta2CELDeviceSelector buildable = new V1beta2CELDeviceSelector(); buildable.setExpression(fluent.getExpression()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorFluent.java index b620ae7a85..0658535892 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorFluent.java @@ -1,25 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2CELDeviceSelectorFluent> extends BaseFluent{ + + private String expression; + public V1beta2CELDeviceSelectorFluent() { } public V1beta2CELDeviceSelectorFluent(V1beta2CELDeviceSelector instance) { this.copyInstance(instance); } - private String expression; - + protected void copyInstance(V1beta2CELDeviceSelector instance) { instance = instance != null ? instance : new V1beta2CELDeviceSelector(); if (instance != null) { @@ -27,19 +29,6 @@ protected void copyInstance(V1beta2CELDeviceSelector instance) { } } - public String getExpression() { - return this.expression; - } - - public A withExpression(String expression) { - this.expression = expression; - return (A) this; - } - - public boolean hasExpression() { - return this.expression != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -57,6 +46,14 @@ public boolean equals(Object o) { return true; } + public String getExpression() { + return this.expression; + } + + public boolean hasExpression() { + return this.expression != null; + } + public int hashCode() { return Objects.hash(expression); } @@ -72,5 +69,9 @@ public String toString() { return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyBuilder.java index 330fa5ccdb..37f6ca8e96 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2CapacityRequestPolicyBuilder extends V1beta2CapacityRequestPolicyFluent implements VisitableBuilder{ + + V1beta2CapacityRequestPolicyFluent fluent; + public V1beta2CapacityRequestPolicyBuilder() { this(new V1beta2CapacityRequestPolicy()); } @@ -11,17 +14,16 @@ public V1beta2CapacityRequestPolicyBuilder(V1beta2CapacityRequestPolicyFluent this(fluent, new V1beta2CapacityRequestPolicy()); } - public V1beta2CapacityRequestPolicyBuilder(V1beta2CapacityRequestPolicyFluent fluent,V1beta2CapacityRequestPolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2CapacityRequestPolicyBuilder(V1beta2CapacityRequestPolicy instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2CapacityRequestPolicyFluent fluent; + public V1beta2CapacityRequestPolicyBuilder(V1beta2CapacityRequestPolicyFluent fluent,V1beta2CapacityRequestPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2CapacityRequestPolicy build() { V1beta2CapacityRequestPolicy buildable = new V1beta2CapacityRequestPolicy(); buildable.setDefault(fluent.getDefault()); @@ -30,5 +32,4 @@ public V1beta2CapacityRequestPolicy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyFluent.java index 9514529532..13f73dfb2c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyFluent.java @@ -1,90 +1,79 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import io.kubernetes.client.custom.Quantity; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2CapacityRequestPolicyFluent> extends BaseFluent{ + + private Quantity _default; + private V1beta2CapacityRequestPolicyRangeBuilder validRange; + private List validValues; + public V1beta2CapacityRequestPolicyFluent() { } public V1beta2CapacityRequestPolicyFluent(V1beta2CapacityRequestPolicy instance) { this.copyInstance(instance); } - private Quantity _default; - private V1beta2CapacityRequestPolicyRangeBuilder validRange; - private List validValues; - - protected void copyInstance(V1beta2CapacityRequestPolicy instance) { - instance = instance != null ? instance : new V1beta2CapacityRequestPolicy(); - if (instance != null) { - this.withDefault(instance.getDefault()); - this.withValidRange(instance.getValidRange()); - this.withValidValues(instance.getValidValues()); + + public A addAllToValidValues(Collection items) { + if (this.validValues == null) { + this.validValues = new ArrayList(); } + for (Quantity item : items) { + this.validValues.add(item); + } + return (A) this; } - public Quantity getDefault() { - return this._default; + public A addNewValidValue(String value) { + return (A) this.addToValidValues(new Quantity(value)); } - public A withDefault(Quantity _default) { - this._default = _default; + public A addToValidValues(Quantity... items) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + for (Quantity item : items) { + this.validValues.add(item); + } return (A) this; } - public boolean hasDefault() { - return this._default != null; - } - - public A withNewDefault(String value) { - return (A) this.withDefault(new Quantity(value)); + public A addToValidValues(int index,Quantity item) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + this.validValues.add(index, item); + return (A) this; } public V1beta2CapacityRequestPolicyRange buildValidRange() { return this.validRange != null ? this.validRange.build() : null; } - public A withValidRange(V1beta2CapacityRequestPolicyRange validRange) { - this._visitables.remove("validRange"); - if (validRange != null) { - this.validRange = new V1beta2CapacityRequestPolicyRangeBuilder(validRange); - this._visitables.get("validRange").add(this.validRange); - } else { - this.validRange = null; - this._visitables.get("validRange").remove(this.validRange); + protected void copyInstance(V1beta2CapacityRequestPolicy instance) { + instance = instance != null ? instance : new V1beta2CapacityRequestPolicy(); + if (instance != null) { + this.withDefault(instance.getDefault()); + this.withValidRange(instance.getValidRange()); + this.withValidValues(instance.getValidValues()); } - return (A) this; - } - - public boolean hasValidRange() { - return this.validRange != null; - } - - public ValidRangeNested withNewValidRange() { - return new ValidRangeNested(null); - } - - public ValidRangeNested withNewValidRangeLike(V1beta2CapacityRequestPolicyRange item) { - return new ValidRangeNested(item); - } - - public ValidRangeNested editValidRange() { - return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(null)); } public ValidRangeNested editOrNewValidRange() { @@ -95,68 +84,35 @@ public ValidRangeNested editOrNewValidRangeLike(V1beta2CapacityRequestPolicyR return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(item)); } - public A addToValidValues(int index,Quantity item) { - if (this.validValues == null) { - this.validValues = new ArrayList(); - } - this.validValues.add(index, item); - return (A) this; - } - - public A setToValidValues(int index,Quantity item) { - if (this.validValues == null) { - this.validValues = new ArrayList(); - } - this.validValues.set(index, item); - return (A) this; - } - - public A addToValidValues(Quantity... items) { - if (this.validValues == null) { - this.validValues = new ArrayList(); - } - for (Quantity item : items) { - this.validValues.add(item); - } - return (A) this; + public ValidRangeNested editValidRange() { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(null)); } - public A addAllToValidValues(Collection items) { - if (this.validValues == null) { - this.validValues = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - for (Quantity item : items) { - this.validValues.add(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A removeFromValidValues(Quantity... items) { - if (this.validValues == null) { - return (A) this; + if (!(super.equals(o))) { + return false; } - for (Quantity item : items) { - this.validValues.remove(item); + V1beta2CapacityRequestPolicyFluent that = (V1beta2CapacityRequestPolicyFluent) o; + if (!(Objects.equals(_default, that._default))) { + return false; } - return (A) this; - } - - public A removeAllFromValidValues(Collection items) { - if (this.validValues == null) { - return (A) this; + if (!(Objects.equals(validRange, that.validRange))) { + return false; } - for (Quantity item : items) { - this.validValues.remove(item); + if (!(Objects.equals(validValues, that.validValues))) { + return false; } - return (A) this; - } - - public List getValidValues() { - return this.validValues; + return true; } - public Quantity getValidValue(int index) { - return this.validValues.get(index); + public Quantity getDefault() { + return this._default; } public Quantity getFirstValidValue() { @@ -176,6 +132,18 @@ public Quantity getMatchingValidValue(Predicate predicate) { return null; } + public Quantity getValidValue(int index) { + return this.validValues.get(index); + } + + public List getValidValues() { + return this.validValues; + } + + public boolean hasDefault() { + return this._default != null; + } + public boolean hasMatchingValidValue(Predicate predicate) { for (Quantity item : validValues) { if (predicate.test(item)) { @@ -185,64 +153,44 @@ public boolean hasMatchingValidValue(Predicate predicate) { return false; } - public A withValidValues(List validValues) { - if (validValues != null) { - this.validValues = new ArrayList(); - for (Quantity item : validValues) { - this.addToValidValues(item); - } - } else { - this.validValues = null; - } - return (A) this; - } - - public A withValidValues(Quantity... validValues) { - if (this.validValues != null) { - this.validValues.clear(); - _visitables.remove("validValues"); - } - if (validValues != null) { - for (Quantity item : validValues) { - this.addToValidValues(item); - } - } - return (A) this; + public boolean hasValidRange() { + return this.validRange != null; } public boolean hasValidValues() { return this.validValues != null && !(this.validValues.isEmpty()); } - public A addNewValidValue(String value) { - return (A) this.addToValidValues(new Quantity(value)); + public int hashCode() { + return Objects.hash(_default, validRange, validValues); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; + public A removeAllFromValidValues(Collection items) { + if (this.validValues == null) { + return (A) this; } - V1beta2CapacityRequestPolicyFluent that = (V1beta2CapacityRequestPolicyFluent) o; - if (!(Objects.equals(_default, that._default))) { - return false; + for (Quantity item : items) { + this.validValues.remove(item); } - if (!(Objects.equals(validRange, that.validRange))) { - return false; + return (A) this; + } + + public A removeFromValidValues(Quantity... items) { + if (this.validValues == null) { + return (A) this; } - if (!(Objects.equals(validValues, that.validValues))) { - return false; + for (Quantity item : items) { + this.validValues.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(_default, validRange, validValues); + public A setToValidValues(int index,Quantity item) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + this.validValues.set(index, item); + return (A) this; } public String toString() { @@ -265,12 +213,68 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withDefault(Quantity _default) { + this._default = _default; + return (A) this; + } + + public A withNewDefault(String value) { + return (A) this.withDefault(new Quantity(value)); + } + + public ValidRangeNested withNewValidRange() { + return new ValidRangeNested(null); + } + + public ValidRangeNested withNewValidRangeLike(V1beta2CapacityRequestPolicyRange item) { + return new ValidRangeNested(item); + } + + public A withValidRange(V1beta2CapacityRequestPolicyRange validRange) { + this._visitables.remove("validRange"); + if (validRange != null) { + this.validRange = new V1beta2CapacityRequestPolicyRangeBuilder(validRange); + this._visitables.get("validRange").add(this.validRange); + } else { + this.validRange = null; + this._visitables.get("validRange").remove(this.validRange); + } + return (A) this; + } + + public A withValidValues(List validValues) { + if (validValues != null) { + this.validValues = new ArrayList(); + for (Quantity item : validValues) { + this.addToValidValues(item); + } + } else { + this.validValues = null; + } + return (A) this; + } + + public A withValidValues(Quantity... validValues) { + if (this.validValues != null) { + this.validValues.clear(); + _visitables.remove("validValues"); + } + if (validValues != null) { + for (Quantity item : validValues) { + this.addToValidValues(item); + } + } + return (A) this; + } public class ValidRangeNested extends V1beta2CapacityRequestPolicyRangeFluent> implements Nested{ + + V1beta2CapacityRequestPolicyRangeBuilder builder; + ValidRangeNested(V1beta2CapacityRequestPolicyRange item) { this.builder = new V1beta2CapacityRequestPolicyRangeBuilder(this, item); } - V1beta2CapacityRequestPolicyRangeBuilder builder; - + public N and() { return (N) V1beta2CapacityRequestPolicyFluent.this.withValidRange(builder.build()); } @@ -279,7 +283,5 @@ public N endValidRange() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeBuilder.java index 604abdfbc2..97c8b15733 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2CapacityRequestPolicyRangeBuilder extends V1beta2CapacityRequestPolicyRangeFluent implements VisitableBuilder{ + + V1beta2CapacityRequestPolicyRangeFluent fluent; + public V1beta2CapacityRequestPolicyRangeBuilder() { this(new V1beta2CapacityRequestPolicyRange()); } @@ -11,17 +14,16 @@ public V1beta2CapacityRequestPolicyRangeBuilder(V1beta2CapacityRequestPolicyRang this(fluent, new V1beta2CapacityRequestPolicyRange()); } - public V1beta2CapacityRequestPolicyRangeBuilder(V1beta2CapacityRequestPolicyRangeFluent fluent,V1beta2CapacityRequestPolicyRange instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2CapacityRequestPolicyRangeBuilder(V1beta2CapacityRequestPolicyRange instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2CapacityRequestPolicyRangeFluent fluent; + public V1beta2CapacityRequestPolicyRangeBuilder(V1beta2CapacityRequestPolicyRangeFluent fluent,V1beta2CapacityRequestPolicyRange instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2CapacityRequestPolicyRange build() { V1beta2CapacityRequestPolicyRange buildable = new V1beta2CapacityRequestPolicyRange(); buildable.setMax(fluent.getMax()); @@ -30,5 +32,4 @@ public V1beta2CapacityRequestPolicyRange build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeFluent.java index 10d98ac968..181d3ed69c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2CapacityRequestPolicyRangeFluent> extends BaseFluent{ + + private Quantity max; + private Quantity min; + private Quantity step; + public V1beta2CapacityRequestPolicyRangeFluent() { } public V1beta2CapacityRequestPolicyRangeFluent(V1beta2CapacityRequestPolicyRange instance) { this.copyInstance(instance); } - private Quantity max; - private Quantity min; - private Quantity step; - + protected void copyInstance(V1beta2CapacityRequestPolicyRange instance) { instance = instance != null ? instance : new V1beta2CapacityRequestPolicyRange(); if (instance != null) { @@ -32,57 +34,6 @@ protected void copyInstance(V1beta2CapacityRequestPolicyRange instance) { } } - public Quantity getMax() { - return this.max; - } - - public A withMax(Quantity max) { - this.max = max; - return (A) this; - } - - public boolean hasMax() { - return this.max != null; - } - - public A withNewMax(String value) { - return (A) this.withMax(new Quantity(value)); - } - - public Quantity getMin() { - return this.min; - } - - public A withMin(Quantity min) { - this.min = min; - return (A) this; - } - - public boolean hasMin() { - return this.min != null; - } - - public A withNewMin(String value) { - return (A) this.withMin(new Quantity(value)); - } - - public Quantity getStep() { - return this.step; - } - - public A withStep(Quantity step) { - this.step = step; - return (A) this; - } - - public boolean hasStep() { - return this.step != null; - } - - public A withNewStep(String value) { - return (A) this.withStep(new Quantity(value)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -106,6 +57,30 @@ public boolean equals(Object o) { return true; } + public Quantity getMax() { + return this.max; + } + + public Quantity getMin() { + return this.min; + } + + public Quantity getStep() { + return this.step; + } + + public boolean hasMax() { + return this.max != null; + } + + public boolean hasMin() { + return this.min != null; + } + + public boolean hasStep() { + return this.step != null; + } + public int hashCode() { return Objects.hash(max, min, step); } @@ -131,5 +106,31 @@ public String toString() { return sb.toString(); } - + public A withMax(Quantity max) { + this.max = max; + return (A) this; + } + + public A withMin(Quantity min) { + this.min = min; + return (A) this; + } + + public A withNewMax(String value) { + return (A) this.withMax(new Quantity(value)); + } + + public A withNewMin(String value) { + return (A) this.withMin(new Quantity(value)); + } + + public A withNewStep(String value) { + return (A) this.withStep(new Quantity(value)); + } + + public A withStep(Quantity step) { + this.step = step; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsBuilder.java index db53e3d715..f38a88452a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2CapacityRequirementsBuilder extends V1beta2CapacityRequirementsFluent implements VisitableBuilder{ + + V1beta2CapacityRequirementsFluent fluent; + public V1beta2CapacityRequirementsBuilder() { this(new V1beta2CapacityRequirements()); } @@ -11,22 +14,20 @@ public V1beta2CapacityRequirementsBuilder(V1beta2CapacityRequirementsFluent f this(fluent, new V1beta2CapacityRequirements()); } - public V1beta2CapacityRequirementsBuilder(V1beta2CapacityRequirementsFluent fluent,V1beta2CapacityRequirements instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2CapacityRequirementsBuilder(V1beta2CapacityRequirements instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2CapacityRequirementsFluent fluent; + public V1beta2CapacityRequirementsBuilder(V1beta2CapacityRequirementsFluent fluent,V1beta2CapacityRequirements instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2CapacityRequirements build() { V1beta2CapacityRequirements buildable = new V1beta2CapacityRequirements(); buildable.setRequests(fluent.getRequests()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsFluent.java index 414453fd34..d26555d770 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsFluent.java @@ -1,33 +1,38 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; -import java.util.Map; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2CapacityRequirementsFluent> extends BaseFluent{ + + private Map requests; + public V1beta2CapacityRequirementsFluent() { } public V1beta2CapacityRequirementsFluent(V1beta2CapacityRequirements instance) { this.copyInstance(instance); } - private Map requests; - - protected void copyInstance(V1beta2CapacityRequirements instance) { - instance = instance != null ? instance : new V1beta2CapacityRequirements(); - if (instance != null) { - this.withRequests(instance.getRequests()); + + public A addToRequests(Map map) { + if (this.requests == null && map != null) { + this.requests = new LinkedHashMap(); + } + if (map != null) { + this.requests.putAll(map); } + return (A) this; } public A addToRequests(String key,Quantity value) { @@ -40,14 +45,40 @@ public A addToRequests(String key,Quantity value) { return (A) this; } - public A addToRequests(Map map) { - if (this.requests == null && map != null) { - this.requests = new LinkedHashMap(); + protected void copyInstance(V1beta2CapacityRequirements instance) { + instance = instance != null ? instance : new V1beta2CapacityRequirements(); + if (instance != null) { + this.withRequests(instance.getRequests()); } - if (map != null) { - this.requests.putAll(map); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2CapacityRequirementsFluent that = (V1beta2CapacityRequirementsFluent) o; + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public Map getRequests() { + return this.requests; + } + + public boolean hasRequests() { + return this.requests != null; + } + + public int hashCode() { + return Objects.hash(requests); } public A removeFromRequests(String key) { @@ -74,44 +105,6 @@ public A removeFromRequests(Map map) { return (A) this; } - public Map getRequests() { - return this.requests; - } - - public A withRequests(Map requests) { - if (requests == null) { - this.requests = null; - } else { - this.requests = new LinkedHashMap(requests); - } - return (A) this; - } - - public boolean hasRequests() { - return this.requests != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta2CapacityRequirementsFluent that = (V1beta2CapacityRequirementsFluent) o; - if (!(Objects.equals(requests, that.requests))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(requests); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -123,5 +116,13 @@ public String toString() { return sb.toString(); } - + public A withRequests(Map requests) { + if (requests == null) { + this.requests = null; + } else { + this.requests = new LinkedHashMap(requests); + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java index 45db732d03..a2266f4b92 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2CounterBuilder extends V1beta2CounterFluent implements VisitableBuilder{ + + V1beta2CounterFluent fluent; + public V1beta2CounterBuilder() { this(new V1beta2Counter()); } @@ -11,22 +14,20 @@ public V1beta2CounterBuilder(V1beta2CounterFluent fluent) { this(fluent, new V1beta2Counter()); } - public V1beta2CounterBuilder(V1beta2CounterFluent fluent,V1beta2Counter instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2CounterBuilder(V1beta2Counter instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2CounterFluent fluent; + public V1beta2CounterBuilder(V1beta2CounterFluent fluent,V1beta2Counter instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2Counter build() { V1beta2Counter buildable = new V1beta2Counter(); buildable.setValue(fluent.getValue()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterFluent.java index 06ce86e3fd..1d9ae073c6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2CounterFluent> extends BaseFluent{ + + private Quantity value; + public V1beta2CounterFluent() { } public V1beta2CounterFluent(V1beta2Counter instance) { this.copyInstance(instance); } - private Quantity value; - + protected void copyInstance(V1beta2Counter instance) { instance = instance != null ? instance : new V1beta2Counter(); if (instance != null) { @@ -28,23 +30,6 @@ protected void copyInstance(V1beta2Counter instance) { } } - public Quantity getValue() { - return this.value; - } - - public A withValue(Quantity value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - - public A withNewValue(String value) { - return (A) this.withValue(new Quantity(value)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -62,6 +47,14 @@ public boolean equals(Object o) { return true; } + public Quantity getValue() { + return this.value; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(value); } @@ -77,5 +70,13 @@ public String toString() { return sb.toString(); } - + public A withNewValue(String value) { + return (A) this.withValue(new Quantity(value)); + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetBuilder.java index 1837c5bf22..bf0aaa1042 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2CounterSetBuilder extends V1beta2CounterSetFluent implements VisitableBuilder{ + + V1beta2CounterSetFluent fluent; + public V1beta2CounterSetBuilder() { this(new V1beta2CounterSet()); } @@ -11,17 +14,16 @@ public V1beta2CounterSetBuilder(V1beta2CounterSetFluent fluent) { this(fluent, new V1beta2CounterSet()); } - public V1beta2CounterSetBuilder(V1beta2CounterSetFluent fluent,V1beta2CounterSet instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2CounterSetBuilder(V1beta2CounterSet instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2CounterSetFluent fluent; + public V1beta2CounterSetBuilder(V1beta2CounterSetFluent fluent,V1beta2CounterSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2CounterSet build() { V1beta2CounterSet buildable = new V1beta2CounterSet(); buildable.setCounters(fluent.getCounters()); @@ -29,5 +31,4 @@ public V1beta2CounterSet build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetFluent.java index b3230628cb..c286c8b691 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetFluent.java @@ -1,46 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; -import java.util.Map; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2CounterSetFluent> extends BaseFluent{ + + private Map counters; + private String name; + public V1beta2CounterSetFluent() { } public V1beta2CounterSetFluent(V1beta2CounterSet instance) { this.copyInstance(instance); } - private Map counters; - private String name; - - protected void copyInstance(V1beta2CounterSet instance) { - instance = instance != null ? instance : new V1beta2CounterSet(); - if (instance != null) { - this.withCounters(instance.getCounters()); - this.withName(instance.getName()); - } - } - - public A addToCounters(String key,V1beta2Counter value) { - if (this.counters == null && key != null && value != null) { - this.counters = new LinkedHashMap(); - } - if (key != null && value != null) { - this.counters.put(key, value); - } - return (A) this; - } - + public A addToCounters(Map map) { if (this.counters == null && map != null) { this.counters = new LinkedHashMap(); @@ -51,58 +35,22 @@ public A addToCounters(Map map) { return (A) this; } - public A removeFromCounters(String key) { - if (this.counters == null) { - return (A) this; - } - if (key != null && this.counters != null) { - this.counters.remove(key); - } - return (A) this; - } - - public A removeFromCounters(Map map) { - if (this.counters == null) { - return (A) this; + public A addToCounters(String key,V1beta2Counter value) { + if (this.counters == null && key != null && value != null) { + this.counters = new LinkedHashMap(); } - if (map != null) { - for (Object key : map.keySet()) { - if (this.counters != null) { - this.counters.remove(key); - } - } + if (key != null && value != null) { + this.counters.put(key, value); } return (A) this; } - public Map getCounters() { - return this.counters; - } - - public A withCounters(Map counters) { - if (counters == null) { - this.counters = null; - } else { - this.counters = new LinkedHashMap(counters); + protected void copyInstance(V1beta2CounterSet instance) { + instance = instance != null ? instance : new V1beta2CounterSet(); + if (instance != null) { + this.withCounters(instance.getCounters()); + this.withName(instance.getName()); } - return (A) this; - } - - public boolean hasCounters() { - return this.counters != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; } public boolean equals(Object o) { @@ -125,10 +73,50 @@ public boolean equals(Object o) { return true; } + public Map getCounters() { + return this.counters; + } + + public String getName() { + return this.name; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(counters, name); } + public A removeFromCounters(String key) { + if (this.counters == null) { + return (A) this; + } + if (key != null && this.counters != null) { + this.counters.remove(key); + } + return (A) this; + } + + public A removeFromCounters(Map map) { + if (this.counters == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.counters != null) { + this.counters.remove(key); + } + } + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -145,5 +133,18 @@ public String toString() { return sb.toString(); } - + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationBuilder.java index 28e7fad7f5..c61f40938a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceAllocationConfigurationBuilder extends V1beta2DeviceAllocationConfigurationFluent implements VisitableBuilder{ + + V1beta2DeviceAllocationConfigurationFluent fluent; + public V1beta2DeviceAllocationConfigurationBuilder() { this(new V1beta2DeviceAllocationConfiguration()); } @@ -11,17 +14,16 @@ public V1beta2DeviceAllocationConfigurationBuilder(V1beta2DeviceAllocationConfig this(fluent, new V1beta2DeviceAllocationConfiguration()); } - public V1beta2DeviceAllocationConfigurationBuilder(V1beta2DeviceAllocationConfigurationFluent fluent,V1beta2DeviceAllocationConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceAllocationConfigurationBuilder(V1beta2DeviceAllocationConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceAllocationConfigurationFluent fluent; + public V1beta2DeviceAllocationConfigurationBuilder(V1beta2DeviceAllocationConfigurationFluent fluent,V1beta2DeviceAllocationConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2DeviceAllocationConfiguration build() { V1beta2DeviceAllocationConfiguration buildable = new V1beta2DeviceAllocationConfiguration(); buildable.setOpaque(fluent.buildOpaque()); @@ -30,5 +32,4 @@ public V1beta2DeviceAllocationConfiguration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationFluent.java index 03c5362ac6..f36e83a7bd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationFluent.java @@ -1,68 +1,74 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2DeviceAllocationConfigurationFluent> extends BaseFluent{ + + private V1beta2OpaqueDeviceConfigurationBuilder opaque; + private List requests; + private String source; + public V1beta2DeviceAllocationConfigurationFluent() { } public V1beta2DeviceAllocationConfigurationFluent(V1beta2DeviceAllocationConfiguration instance) { this.copyInstance(instance); } - private V1beta2OpaqueDeviceConfigurationBuilder opaque; - private List requests; - private String source; - - protected void copyInstance(V1beta2DeviceAllocationConfiguration instance) { - instance = instance != null ? instance : new V1beta2DeviceAllocationConfiguration(); - if (instance != null) { - this.withOpaque(instance.getOpaque()); - this.withRequests(instance.getRequests()); - this.withSource(instance.getSource()); + + public A addAllToRequests(Collection items) { + if (this.requests == null) { + this.requests = new ArrayList(); } + for (String item : items) { + this.requests.add(item); + } + return (A) this; } - public V1beta2OpaqueDeviceConfiguration buildOpaque() { - return this.opaque != null ? this.opaque.build() : null; - } - - public A withOpaque(V1beta2OpaqueDeviceConfiguration opaque) { - this._visitables.remove("opaque"); - if (opaque != null) { - this.opaque = new V1beta2OpaqueDeviceConfigurationBuilder(opaque); - this._visitables.get("opaque").add(this.opaque); - } else { - this.opaque = null; - this._visitables.get("opaque").remove(this.opaque); + public A addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); } return (A) this; } - public boolean hasOpaque() { - return this.opaque != null; + public A addToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.add(index, item); + return (A) this; } - public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); + public V1beta2OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; } - public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); + protected void copyInstance(V1beta2DeviceAllocationConfiguration instance) { + instance = instance != null ? instance : new V1beta2DeviceAllocationConfiguration(); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + this.withSource(instance.getSource()); + } } public OpaqueNested editOpaque() { @@ -77,68 +83,27 @@ public OpaqueNested editOrNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); } - public A addToRequests(int index,String item) { - if (this.requests == null) { - this.requests = new ArrayList(); - } - this.requests.add(index, item); - return (A) this; - } - - public A setToRequests(int index,String item) { - if (this.requests == null) { - this.requests = new ArrayList(); - } - this.requests.set(index, item); - return (A) this; - } - - public A addToRequests(String... items) { - if (this.requests == null) { - this.requests = new ArrayList(); - } - for (String item : items) { - this.requests.add(item); - } - return (A) this; - } - - public A addAllToRequests(Collection items) { - if (this.requests == null) { - this.requests = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.requests.add(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A removeFromRequests(String... items) { - if (this.requests == null) { - return (A) this; + if (!(super.equals(o))) { + return false; } - for (String item : items) { - this.requests.remove(item); + V1beta2DeviceAllocationConfigurationFluent that = (V1beta2DeviceAllocationConfigurationFluent) o; + if (!(Objects.equals(opaque, that.opaque))) { + return false; } - return (A) this; - } - - public A removeAllFromRequests(Collection items) { - if (this.requests == null) { - return (A) this; + if (!(Objects.equals(requests, that.requests))) { + return false; } - for (String item : items) { - this.requests.remove(item); + if (!(Objects.equals(source, that.source))) { + return false; } - return (A) this; - } - - public List getRequests() { - return this.requests; - } - - public String getRequest(int index) { - return this.requests.get(index); + return true; } public String getFirstRequest() { @@ -158,6 +123,18 @@ public String getMatchingRequest(Predicate predicate) { return null; } + public String getRequest(int index) { + return this.requests.get(index); + } + + public List getRequests() { + return this.requests; + } + + public String getSource() { + return this.source; + } + public boolean hasMatchingRequest(Predicate predicate) { for (String item : requests) { if (predicate.test(item)) { @@ -167,73 +144,48 @@ public boolean hasMatchingRequest(Predicate predicate) { return false; } - public A withRequests(List requests) { - if (requests != null) { - this.requests = new ArrayList(); - for (String item : requests) { - this.addToRequests(item); - } - } else { - this.requests = null; - } - return (A) this; - } - - public A withRequests(String... requests) { - if (this.requests != null) { - this.requests.clear(); - _visitables.remove("requests"); - } - if (requests != null) { - for (String item : requests) { - this.addToRequests(item); - } - } - return (A) this; + public boolean hasOpaque() { + return this.opaque != null; } public boolean hasRequests() { return this.requests != null && !(this.requests.isEmpty()); } - public String getSource() { - return this.source; - } - - public A withSource(String source) { - this.source = source; - return (A) this; - } - public boolean hasSource() { return this.source != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; + public int hashCode() { + return Objects.hash(opaque, requests, source); + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; } - V1beta2DeviceAllocationConfigurationFluent that = (V1beta2DeviceAllocationConfigurationFluent) o; - if (!(Objects.equals(opaque, that.opaque))) { - return false; + for (String item : items) { + this.requests.remove(item); } - if (!(Objects.equals(requests, that.requests))) { - return false; + return (A) this; + } + + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; } - if (!(Objects.equals(source, that.source))) { - return false; + for (String item : items) { + this.requests.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(opaque, requests, source); + public A setToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.set(index, item); + return (A) this; } public String toString() { @@ -256,12 +208,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public A withOpaque(V1beta2OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1beta2OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + + public A withSource(String source) { + this.source = source; + return (A) this; + } public class OpaqueNested extends V1beta2OpaqueDeviceConfigurationFluent> implements Nested{ + + V1beta2OpaqueDeviceConfigurationBuilder builder; + OpaqueNested(V1beta2OpaqueDeviceConfiguration item) { this.builder = new V1beta2OpaqueDeviceConfigurationBuilder(this, item); } - V1beta2OpaqueDeviceConfigurationBuilder builder; - + public N and() { return (N) V1beta2DeviceAllocationConfigurationFluent.this.withOpaque(builder.build()); } @@ -270,7 +274,5 @@ public N endOpaque() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultBuilder.java index a010683206..fbd9e9886a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceAllocationResultBuilder extends V1beta2DeviceAllocationResultFluent implements VisitableBuilder{ + + V1beta2DeviceAllocationResultFluent fluent; + public V1beta2DeviceAllocationResultBuilder() { this(new V1beta2DeviceAllocationResult()); } @@ -11,17 +14,16 @@ public V1beta2DeviceAllocationResultBuilder(V1beta2DeviceAllocationResultFluent< this(fluent, new V1beta2DeviceAllocationResult()); } - public V1beta2DeviceAllocationResultBuilder(V1beta2DeviceAllocationResultFluent fluent,V1beta2DeviceAllocationResult instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceAllocationResultBuilder(V1beta2DeviceAllocationResult instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceAllocationResultFluent fluent; + public V1beta2DeviceAllocationResultBuilder(V1beta2DeviceAllocationResultFluent fluent,V1beta2DeviceAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2DeviceAllocationResult build() { V1beta2DeviceAllocationResult buildable = new V1beta2DeviceAllocationResult(); buildable.setConfig(fluent.buildConfig()); @@ -29,5 +31,4 @@ public V1beta2DeviceAllocationResult build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultFluent.java index 3dd88e854d..10252d0599 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultFluent.java @@ -1,71 +1,75 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2DeviceAllocationResultFluent> extends BaseFluent{ + + private ArrayList config; + private ArrayList results; + public V1beta2DeviceAllocationResultFluent() { } public V1beta2DeviceAllocationResultFluent(V1beta2DeviceAllocationResult instance) { this.copyInstance(instance); } - private ArrayList config; - private ArrayList results; - - protected void copyInstance(V1beta2DeviceAllocationResult instance) { - instance = instance != null ? instance : new V1beta2DeviceAllocationResult(); - if (instance != null) { - this.withConfig(instance.getConfig()); - this.withResults(instance.getResults()); - } - } - - public A addToConfig(int index,V1beta2DeviceAllocationConfiguration item) { + + public A addAllToConfig(Collection items) { if (this.config == null) { this.config = new ArrayList(); } - V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { + for (V1beta2DeviceAllocationConfiguration item : items) { + V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); _visitables.get("config").add(builder); - config.add(index, builder); + this.config.add(builder); } return (A) this; } - public A setToConfig(int index,V1beta2DeviceAllocationConfiguration item) { - if (this.config == null) { - this.config = new ArrayList(); + public A addAllToResults(Collection items) { + if (this.results == null) { + this.results = new ArrayList(); } - V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { - _visitables.get("config").add(builder); - config.set(index, builder); + for (V1beta2DeviceRequestAllocationResult item : items) { + V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").add(builder); + this.results.add(builder); } return (A) this; } + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta2DeviceAllocationConfiguration item) { + return new ConfigNested(-1, item); + } + + public ResultsNested addNewResult() { + return new ResultsNested(-1, null); + } + + public ResultsNested addNewResultLike(V1beta2DeviceRequestAllocationResult item) { + return new ResultsNested(-1, item); + } + public A addToConfig(V1beta2DeviceAllocationConfiguration... items) { if (this.config == null) { this.config = new ArrayList(); @@ -78,54 +82,44 @@ public A addToConfig(V1beta2DeviceAllocationConfiguration... items) { return (A) this; } - public A addAllToConfig(Collection items) { + public A addToConfig(int index,V1beta2DeviceAllocationConfiguration item) { if (this.config == null) { this.config = new ArrayList(); } - for (V1beta2DeviceAllocationConfiguration item : items) { - V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); + V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); - this.config.add(builder); - } - return (A) this; - } - - public A removeFromConfig(V1beta2DeviceAllocationConfiguration... items) { - if (this.config == null) { - return (A) this; - } - for (V1beta2DeviceAllocationConfiguration item : items) { - V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); - _visitables.get("config").remove(builder); - this.config.remove(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); } return (A) this; } - public A removeAllFromConfig(Collection items) { - if (this.config == null) { - return (A) this; + public A addToResults(V1beta2DeviceRequestAllocationResult... items) { + if (this.results == null) { + this.results = new ArrayList(); } - for (V1beta2DeviceAllocationConfiguration item : items) { - V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); - _visitables.get("config").remove(builder); - this.config.remove(builder); + for (V1beta2DeviceRequestAllocationResult item : items) { + V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").add(builder); + this.results.add(builder); } return (A) this; } - public A removeMatchingFromConfig(Predicate predicate) { - if (config == null) { - return (A) this; + public A addToResults(int index,V1beta2DeviceRequestAllocationResult item) { + if (this.results == null) { + this.results = new ArrayList(); } - Iterator each = config.iterator(); - List visitables = _visitables.get("config"); - while (each.hasNext()) { - V1beta2DeviceAllocationConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.add(index, builder); } return (A) this; } @@ -142,10 +136,18 @@ public V1beta2DeviceAllocationConfiguration buildFirstConfig() { return this.config.get(0).build(); } + public V1beta2DeviceRequestAllocationResult buildFirstResult() { + return this.results.get(0).build(); + } + public V1beta2DeviceAllocationConfiguration buildLastConfig() { return this.config.get(config.size() - 1).build(); } + public V1beta2DeviceRequestAllocationResult buildLastResult() { + return this.results.get(results.size() - 1).build(); + } + public V1beta2DeviceAllocationConfiguration buildMatchingConfig(Predicate predicate) { for (V1beta2DeviceAllocationConfigurationBuilder item : config) { if (predicate.test(item)) { @@ -155,61 +157,33 @@ public V1beta2DeviceAllocationConfiguration buildMatchingConfig(Predicate predicate) { - for (V1beta2DeviceAllocationConfigurationBuilder item : config) { + public V1beta2DeviceRequestAllocationResult buildMatchingResult(Predicate predicate) { + for (V1beta2DeviceRequestAllocationResultBuilder item : results) { if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConfig(List config) { - if (this.config != null) { - this._visitables.get("config").clear(); - } - if (config != null) { - this.config = new ArrayList(); - for (V1beta2DeviceAllocationConfiguration item : config) { - this.addToConfig(item); + return item.build(); } - } else { - this.config = null; - } - return (A) this; - } - - public A withConfig(V1beta2DeviceAllocationConfiguration... config) { - if (this.config != null) { - this.config.clear(); - _visitables.remove("config"); - } - if (config != null) { - for (V1beta2DeviceAllocationConfiguration item : config) { - this.addToConfig(item); } - } - return (A) this; - } - - public boolean hasConfig() { - return this.config != null && !(this.config.isEmpty()); + return null; } - public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); + public V1beta2DeviceRequestAllocationResult buildResult(int index) { + return this.results.get(index).build(); } - public ConfigNested addNewConfigLike(V1beta2DeviceAllocationConfiguration item) { - return new ConfigNested(-1, item); + public List buildResults() { + return this.results != null ? build(results) : null; } - public ConfigNested setNewConfigLike(int index,V1beta2DeviceAllocationConfiguration item) { - return new ConfigNested(index, item); + protected void copyInstance(V1beta2DeviceAllocationResult instance) { + instance = instance != null ? instance : new V1beta2DeviceAllocationResult(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withResults(instance.getResults()); + } } public ConfigNested editConfig(int index) { - if (index <= config.size()) { + if (config.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); } return this.setNewConfigLike(index, this.buildConfig(index)); @@ -222,6 +196,13 @@ public ConfigNested editFirstConfig() { return this.setNewConfigLike(0, this.buildConfig(0)); } + public ResultsNested editFirstResult() { + if (results.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "results")); + } + return this.setNewResultLike(0, this.buildResult(0)); + } + public ConfigNested editLastConfig() { int index = config.size() - 1; if (index < 0) { @@ -230,6 +211,14 @@ public ConfigNested editLastConfig() { return this.setNewConfigLike(index, this.buildConfig(index)); } + public ResultsNested editLastResult() { + int index = results.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "results")); + } + return this.setNewResultLike(index, this.buildResult(index)); + } + public ConfigNested editMatchingConfig(Predicate predicate) { int index = -1; for (int i = 0;i < config.size();i++) { @@ -244,61 +233,90 @@ public ConfigNested editMatchingConfig(Predicate editMatchingResult(Predicate predicate) { + int index = -1; + for (int i = 0;i < results.size();i++) { + if (predicate.test(results.get(i))) { + index = i; + break; + } } - V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { - _visitables.get("results").add(builder); - results.add(builder); - } else { - _visitables.get("results").add(builder); - results.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "results")); } - return (A) this; + return this.setNewResultLike(index, this.buildResult(index)); } - public A setToResults(int index,V1beta2DeviceRequestAllocationResult item) { - if (this.results == null) { - this.results = new ArrayList(); - } - V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { - _visitables.get("results").add(builder); - results.add(builder); - } else { - _visitables.get("results").add(builder); - results.set(index, builder); + public ResultsNested editResult(int index) { + if (results.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "results")); } - return (A) this; + return this.setNewResultLike(index, this.buildResult(index)); } - public A addToResults(V1beta2DeviceRequestAllocationResult... items) { - if (this.results == null) { - this.results = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - for (V1beta2DeviceRequestAllocationResult item : items) { - V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); - _visitables.get("results").add(builder); - this.results.add(builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceAllocationResultFluent that = (V1beta2DeviceAllocationResultFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(results, that.results))) { + return false; + } + return true; } - public A addAllToResults(Collection items) { - if (this.results == null) { - this.results = new ArrayList(); + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta2DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResult(Predicate predicate) { + for (V1beta2DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResults() { + return this.results != null && !(this.results.isEmpty()); + } + + public int hashCode() { + return Objects.hash(config, results); + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) { + return (A) this; } - for (V1beta2DeviceRequestAllocationResult item : items) { - V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); - _visitables.get("results").add(builder); - this.results.add(builder); + for (V1beta2DeviceAllocationConfiguration item : items) { + V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); } return (A) this; } - public A removeFromResults(V1beta2DeviceRequestAllocationResult... items) { + public A removeAllFromResults(Collection items) { if (this.results == null) { return (A) this; } @@ -310,7 +328,19 @@ public A removeFromResults(V1beta2DeviceRequestAllocationResult... items) { return (A) this; } - public A removeAllFromResults(Collection items) { + public A removeFromConfig(V1beta2DeviceAllocationConfiguration... items) { + if (this.config == null) { + return (A) this; + } + for (V1beta2DeviceAllocationConfiguration item : items) { + V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; + } + + public A removeFromResults(V1beta2DeviceRequestAllocationResult... items) { if (this.results == null) { return (A) this; } @@ -322,6 +352,22 @@ public A removeAllFromResults(Collection i return (A) this; } + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1beta2DeviceAllocationConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + public A removeMatchingFromResults(Predicate predicate) { if (results == null) { return (A) this; @@ -338,38 +384,86 @@ public A removeMatchingFromResults(Predicate buildResults() { - return this.results != null ? build(results) : null; + public ConfigNested setNewConfigLike(int index,V1beta2DeviceAllocationConfiguration item) { + return new ConfigNested(index, item); } - public V1beta2DeviceRequestAllocationResult buildResult(int index) { - return this.results.get(index).build(); + public ResultsNested setNewResultLike(int index,V1beta2DeviceRequestAllocationResult item) { + return new ResultsNested(index, item); } - public V1beta2DeviceRequestAllocationResult buildFirstResult() { - return this.results.get(0).build(); + public A setToConfig(int index,V1beta2DeviceAllocationConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); + } + V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A) this; } - public V1beta2DeviceRequestAllocationResult buildLastResult() { - return this.results.get(results.size() - 1).build(); + public A setToResults(int index,V1beta2DeviceRequestAllocationResult item) { + if (this.results == null) { + this.results = new ArrayList(); + } + V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); + if (index < 0 || index >= results.size()) { + _visitables.get("results").add(builder); + results.add(builder); + } else { + _visitables.get("results").add(builder); + results.set(index, builder); + } + return (A) this; } - public V1beta2DeviceRequestAllocationResult buildMatchingResult(Predicate predicate) { - for (V1beta2DeviceRequestAllocationResultBuilder item : results) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(results == null) && !(results.isEmpty())) { + sb.append("results:"); + sb.append(results); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingResult(Predicate predicate) { - for (V1beta2DeviceRequestAllocationResultBuilder item : results) { - if (predicate.test(item)) { - return true; + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1beta2DeviceAllocationConfiguration item : config) { + this.addToConfig(item); } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(V1beta2DeviceAllocationConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1beta2DeviceAllocationConfiguration item : config) { + this.addToConfig(item); } - return false; + } + return (A) this; } public A withResults(List results) { @@ -399,106 +493,16 @@ public A withResults(V1beta2DeviceRequestAllocationResult... results) { } return (A) this; } + public class ConfigNested extends V1beta2DeviceAllocationConfigurationFluent> implements Nested{ - public boolean hasResults() { - return this.results != null && !(this.results.isEmpty()); - } - - public ResultsNested addNewResult() { - return new ResultsNested(-1, null); - } - - public ResultsNested addNewResultLike(V1beta2DeviceRequestAllocationResult item) { - return new ResultsNested(-1, item); - } - - public ResultsNested setNewResultLike(int index,V1beta2DeviceRequestAllocationResult item) { - return new ResultsNested(index, item); - } - - public ResultsNested editResult(int index) { - if (index <= results.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "results")); - } - return this.setNewResultLike(index, this.buildResult(index)); - } - - public ResultsNested editFirstResult() { - if (results.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "results")); - } - return this.setNewResultLike(0, this.buildResult(0)); - } - - public ResultsNested editLastResult() { - int index = results.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "results")); - } - return this.setNewResultLike(index, this.buildResult(index)); - } - - public ResultsNested editMatchingResult(Predicate predicate) { - int index = -1; - for (int i = 0;i < results.size();i++) { - if (predicate.test(results.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "results")); - } - return this.setNewResultLike(index, this.buildResult(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta2DeviceAllocationResultFluent that = (V1beta2DeviceAllocationResultFluent) o; - if (!(Objects.equals(config, that.config))) { - return false; - } - if (!(Objects.equals(results, that.results))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(config, results); - } + V1beta2DeviceAllocationConfigurationBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(config == null) && !(config.isEmpty())) { - sb.append("config:"); - sb.append(config); - sb.append(","); - } - if (!(results == null) && !(results.isEmpty())) { - sb.append("results:"); - sb.append(results); - } - sb.append("}"); - return sb.toString(); - } - public class ConfigNested extends V1beta2DeviceAllocationConfigurationFluent> implements Nested{ ConfigNested(int index,V1beta2DeviceAllocationConfiguration item) { this.index = index; this.builder = new V1beta2DeviceAllocationConfigurationBuilder(this, item); } - V1beta2DeviceAllocationConfigurationBuilder builder; - int index; - + public N and() { return (N) V1beta2DeviceAllocationResultFluent.this.setToConfig(index, builder.build()); } @@ -507,16 +511,17 @@ public N endConfig() { return and(); } - } public class ResultsNested extends V1beta2DeviceRequestAllocationResultFluent> implements Nested{ + + V1beta2DeviceRequestAllocationResultBuilder builder; + int index; + ResultsNested(int index,V1beta2DeviceRequestAllocationResult item) { this.index = index; this.builder = new V1beta2DeviceRequestAllocationResultBuilder(this, item); } - V1beta2DeviceRequestAllocationResultBuilder builder; - int index; - + public N and() { return (N) V1beta2DeviceAllocationResultFluent.this.setToResults(index, builder.build()); } @@ -525,7 +530,5 @@ public N endResult() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeBuilder.java index 1a5d3cd84b..f99640c17a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceAttributeBuilder extends V1beta2DeviceAttributeFluent implements VisitableBuilder{ + + V1beta2DeviceAttributeFluent fluent; + public V1beta2DeviceAttributeBuilder() { this(new V1beta2DeviceAttribute()); } @@ -11,17 +14,16 @@ public V1beta2DeviceAttributeBuilder(V1beta2DeviceAttributeFluent fluent) { this(fluent, new V1beta2DeviceAttribute()); } - public V1beta2DeviceAttributeBuilder(V1beta2DeviceAttributeFluent fluent,V1beta2DeviceAttribute instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceAttributeBuilder(V1beta2DeviceAttribute instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceAttributeFluent fluent; + public V1beta2DeviceAttributeBuilder(V1beta2DeviceAttributeFluent fluent,V1beta2DeviceAttribute instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2DeviceAttribute build() { V1beta2DeviceAttribute buildable = new V1beta2DeviceAttribute(); buildable.setBool(fluent.getBool()); @@ -31,5 +33,4 @@ public V1beta2DeviceAttribute build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeFluent.java index 25e278090d..b94fd2a211 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2DeviceAttributeFluent> extends BaseFluent{ + + private Long _int; + private Boolean bool; + private String string; + private String version; + public V1beta2DeviceAttributeFluent() { } public V1beta2DeviceAttributeFluent(V1beta2DeviceAttribute instance) { this.copyInstance(instance); } - private Boolean bool; - private Long _int; - private String string; - private String version; - + protected void copyInstance(V1beta2DeviceAttribute instance) { instance = instance != null ? instance : new V1beta2DeviceAttribute(); if (instance != null) { @@ -35,58 +37,6 @@ protected void copyInstance(V1beta2DeviceAttribute instance) { } } - public Boolean getBool() { - return this.bool; - } - - public A withBool(Boolean bool) { - this.bool = bool; - return (A) this; - } - - public boolean hasBool() { - return this.bool != null; - } - - public Long getInt() { - return this._int; - } - - public A withInt(Long _int) { - this._int = _int; - return (A) this; - } - - public boolean hasInt() { - return this._int != null; - } - - public String getString() { - return this.string; - } - - public A withString(String string) { - this.string = string; - return (A) this; - } - - public boolean hasString() { - return this.string != null; - } - - public String getVersion() { - return this.version; - } - - public A withVersion(String version) { - this.version = version; - return (A) this; - } - - public boolean hasVersion() { - return this.version != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -113,6 +63,38 @@ public boolean equals(Object o) { return true; } + public Boolean getBool() { + return this.bool; + } + + public Long getInt() { + return this._int; + } + + public String getString() { + return this.string; + } + + public String getVersion() { + return this.version; + } + + public boolean hasBool() { + return this.bool != null; + } + + public boolean hasInt() { + return this._int != null; + } + + public boolean hasString() { + return this.string != null; + } + + public boolean hasVersion() { + return this.version != null; + } + public int hashCode() { return Objects.hash(bool, _int, string, version); } @@ -147,5 +129,24 @@ public A withBool() { return withBool(true); } - + public A withBool(Boolean bool) { + this.bool = bool; + return (A) this; + } + + public A withInt(Long _int) { + this._int = _int; + return (A) this; + } + + public A withString(String string) { + this.string = string; + return (A) this; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceBuilder.java index ad6ec4b207..1ae4f9f0c1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceBuilder extends V1beta2DeviceFluent implements VisitableBuilder{ + + V1beta2DeviceFluent fluent; + public V1beta2DeviceBuilder() { this(new V1beta2Device()); } @@ -11,17 +14,16 @@ public V1beta2DeviceBuilder(V1beta2DeviceFluent fluent) { this(fluent, new V1beta2Device()); } - public V1beta2DeviceBuilder(V1beta2DeviceFluent fluent,V1beta2Device instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceBuilder(V1beta2Device instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceFluent fluent; + public V1beta2DeviceBuilder(V1beta2DeviceFluent fluent,V1beta2Device instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2Device build() { V1beta2Device buildable = new V1beta2Device(); buildable.setAllNodes(fluent.getAllNodes()); @@ -39,5 +41,4 @@ public V1beta2Device build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityBuilder.java index 7e9b2a6a59..a4aac9fa50 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceCapacityBuilder extends V1beta2DeviceCapacityFluent implements VisitableBuilder{ + + V1beta2DeviceCapacityFluent fluent; + public V1beta2DeviceCapacityBuilder() { this(new V1beta2DeviceCapacity()); } @@ -11,17 +14,16 @@ public V1beta2DeviceCapacityBuilder(V1beta2DeviceCapacityFluent fluent) { this(fluent, new V1beta2DeviceCapacity()); } - public V1beta2DeviceCapacityBuilder(V1beta2DeviceCapacityFluent fluent,V1beta2DeviceCapacity instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceCapacityBuilder(V1beta2DeviceCapacity instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceCapacityFluent fluent; + public V1beta2DeviceCapacityBuilder(V1beta2DeviceCapacityFluent fluent,V1beta2DeviceCapacity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2DeviceCapacity build() { V1beta2DeviceCapacity buildable = new V1beta2DeviceCapacity(); buildable.setRequestPolicy(fluent.buildRequestPolicy()); @@ -29,5 +31,4 @@ public V1beta2DeviceCapacity build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityFluent.java index 1fee1084be..c0e1503b06 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityFluent.java @@ -1,28 +1,34 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import io.kubernetes.client.custom.Quantity; -import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; +import io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2DeviceCapacityFluent> extends BaseFluent{ + + private V1beta2CapacityRequestPolicyBuilder requestPolicy; + private Quantity value; + public V1beta2DeviceCapacityFluent() { } public V1beta2DeviceCapacityFluent(V1beta2DeviceCapacity instance) { this.copyInstance(instance); } - private V1beta2CapacityRequestPolicyBuilder requestPolicy; - private Quantity value; + + public V1beta2CapacityRequestPolicy buildRequestPolicy() { + return this.requestPolicy != null ? this.requestPolicy.build() : null; + } protected void copyInstance(V1beta2DeviceCapacity instance) { instance = instance != null ? instance : new V1beta2DeviceCapacity(); @@ -32,38 +38,6 @@ protected void copyInstance(V1beta2DeviceCapacity instance) { } } - public V1beta2CapacityRequestPolicy buildRequestPolicy() { - return this.requestPolicy != null ? this.requestPolicy.build() : null; - } - - public A withRequestPolicy(V1beta2CapacityRequestPolicy requestPolicy) { - this._visitables.remove("requestPolicy"); - if (requestPolicy != null) { - this.requestPolicy = new V1beta2CapacityRequestPolicyBuilder(requestPolicy); - this._visitables.get("requestPolicy").add(this.requestPolicy); - } else { - this.requestPolicy = null; - this._visitables.get("requestPolicy").remove(this.requestPolicy); - } - return (A) this; - } - - public boolean hasRequestPolicy() { - return this.requestPolicy != null; - } - - public RequestPolicyNested withNewRequestPolicy() { - return new RequestPolicyNested(null); - } - - public RequestPolicyNested withNewRequestPolicyLike(V1beta2CapacityRequestPolicy item) { - return new RequestPolicyNested(item); - } - - public RequestPolicyNested editRequestPolicy() { - return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(null)); - } - public RequestPolicyNested editOrNewRequestPolicy() { return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(new V1beta2CapacityRequestPolicyBuilder().build())); } @@ -72,21 +46,8 @@ public RequestPolicyNested editOrNewRequestPolicyLike(V1beta2CapacityRequestP return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(item)); } - public Quantity getValue() { - return this.value; - } - - public A withValue(Quantity value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - - public A withNewValue(String value) { - return (A) this.withValue(new Quantity(value)); + public RequestPolicyNested editRequestPolicy() { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(null)); } public boolean equals(Object o) { @@ -109,6 +70,18 @@ public boolean equals(Object o) { return true; } + public Quantity getValue() { + return this.value; + } + + public boolean hasRequestPolicy() { + return this.requestPolicy != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(requestPolicy, value); } @@ -128,12 +101,43 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public RequestPolicyNested withNewRequestPolicy() { + return new RequestPolicyNested(null); + } + + public RequestPolicyNested withNewRequestPolicyLike(V1beta2CapacityRequestPolicy item) { + return new RequestPolicyNested(item); + } + + public A withNewValue(String value) { + return (A) this.withValue(new Quantity(value)); + } + + public A withRequestPolicy(V1beta2CapacityRequestPolicy requestPolicy) { + this._visitables.remove("requestPolicy"); + if (requestPolicy != null) { + this.requestPolicy = new V1beta2CapacityRequestPolicyBuilder(requestPolicy); + this._visitables.get("requestPolicy").add(this.requestPolicy); + } else { + this.requestPolicy = null; + this._visitables.get("requestPolicy").remove(this.requestPolicy); + } + return (A) this; + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } public class RequestPolicyNested extends V1beta2CapacityRequestPolicyFluent> implements Nested{ + + V1beta2CapacityRequestPolicyBuilder builder; + RequestPolicyNested(V1beta2CapacityRequestPolicy item) { this.builder = new V1beta2CapacityRequestPolicyBuilder(this, item); } - V1beta2CapacityRequestPolicyBuilder builder; - + public N and() { return (N) V1beta2DeviceCapacityFluent.this.withRequestPolicy(builder.build()); } @@ -142,7 +146,5 @@ public N endRequestPolicy() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java index bdd62984b6..af8aedffe4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceClaimBuilder extends V1beta2DeviceClaimFluent implements VisitableBuilder{ + + V1beta2DeviceClaimFluent fluent; + public V1beta2DeviceClaimBuilder() { this(new V1beta2DeviceClaim()); } @@ -11,17 +14,16 @@ public V1beta2DeviceClaimBuilder(V1beta2DeviceClaimFluent fluent) { this(fluent, new V1beta2DeviceClaim()); } - public V1beta2DeviceClaimBuilder(V1beta2DeviceClaimFluent fluent,V1beta2DeviceClaim instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceClaimBuilder(V1beta2DeviceClaim instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceClaimFluent fluent; + public V1beta2DeviceClaimBuilder(V1beta2DeviceClaimFluent fluent,V1beta2DeviceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2DeviceClaim build() { V1beta2DeviceClaim buildable = new V1beta2DeviceClaim(); buildable.setConfig(fluent.buildConfig()); @@ -30,5 +32,4 @@ public V1beta2DeviceClaim build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationBuilder.java index c129ce8e1e..ed10641198 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceClaimConfigurationBuilder extends V1beta2DeviceClaimConfigurationFluent implements VisitableBuilder{ + + V1beta2DeviceClaimConfigurationFluent fluent; + public V1beta2DeviceClaimConfigurationBuilder() { this(new V1beta2DeviceClaimConfiguration()); } @@ -11,17 +14,16 @@ public V1beta2DeviceClaimConfigurationBuilder(V1beta2DeviceClaimConfigurationFlu this(fluent, new V1beta2DeviceClaimConfiguration()); } - public V1beta2DeviceClaimConfigurationBuilder(V1beta2DeviceClaimConfigurationFluent fluent,V1beta2DeviceClaimConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceClaimConfigurationBuilder(V1beta2DeviceClaimConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceClaimConfigurationFluent fluent; + public V1beta2DeviceClaimConfigurationBuilder(V1beta2DeviceClaimConfigurationFluent fluent,V1beta2DeviceClaimConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2DeviceClaimConfiguration build() { V1beta2DeviceClaimConfiguration buildable = new V1beta2DeviceClaimConfiguration(); buildable.setOpaque(fluent.buildOpaque()); @@ -29,5 +31,4 @@ public V1beta2DeviceClaimConfiguration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationFluent.java index 49a087bdfe..35ddbd62ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationFluent.java @@ -1,93 +1,41 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; -import java.util.Optional; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2DeviceClaimConfigurationFluent> extends BaseFluent{ + + private V1beta2OpaqueDeviceConfigurationBuilder opaque; + private List requests; + public V1beta2DeviceClaimConfigurationFluent() { } public V1beta2DeviceClaimConfigurationFluent(V1beta2DeviceClaimConfiguration instance) { this.copyInstance(instance); } - private V1beta2OpaqueDeviceConfigurationBuilder opaque; - private List requests; - - protected void copyInstance(V1beta2DeviceClaimConfiguration instance) { - instance = instance != null ? instance : new V1beta2DeviceClaimConfiguration(); - if (instance != null) { - this.withOpaque(instance.getOpaque()); - this.withRequests(instance.getRequests()); - } - } - - public V1beta2OpaqueDeviceConfiguration buildOpaque() { - return this.opaque != null ? this.opaque.build() : null; - } - - public A withOpaque(V1beta2OpaqueDeviceConfiguration opaque) { - this._visitables.remove("opaque"); - if (opaque != null) { - this.opaque = new V1beta2OpaqueDeviceConfigurationBuilder(opaque); - this._visitables.get("opaque").add(this.opaque); - } else { - this.opaque = null; - this._visitables.get("opaque").remove(this.opaque); - } - return (A) this; - } - - public boolean hasOpaque() { - return this.opaque != null; - } - - public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); - } - - public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); - } - - public OpaqueNested editOpaque() { - return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); - } - - public OpaqueNested editOrNewOpaque() { - return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1beta2OpaqueDeviceConfigurationBuilder().build())); - } - - public OpaqueNested editOrNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { - return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); - } - - public A addToRequests(int index,String item) { + + public A addAllToRequests(Collection items) { if (this.requests == null) { this.requests = new ArrayList(); } - this.requests.add(index, item); - return (A) this; - } - - public A setToRequests(int index,String item) { - if (this.requests == null) { - this.requests = new ArrayList(); + for (String item : items) { + this.requests.add(item); } - this.requests.set(index, item); return (A) this; } @@ -101,42 +49,56 @@ public A addToRequests(String... items) { return (A) this; } - public A addAllToRequests(Collection items) { + public A addToRequests(int index,String item) { if (this.requests == null) { this.requests = new ArrayList(); } - for (String item : items) { - this.requests.add(item); - } + this.requests.add(index, item); return (A) this; } - public A removeFromRequests(String... items) { - if (this.requests == null) { - return (A) this; - } - for (String item : items) { - this.requests.remove(item); - } - return (A) this; + public V1beta2OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; } - public A removeAllFromRequests(Collection items) { - if (this.requests == null) { - return (A) this; - } - for (String item : items) { - this.requests.remove(item); + protected void copyInstance(V1beta2DeviceClaimConfiguration instance) { + instance = instance != null ? instance : new V1beta2DeviceClaimConfiguration(); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); } - return (A) this; } - public List getRequests() { - return this.requests; + public OpaqueNested editOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); } - public String getRequest(int index) { - return this.requests.get(index); + public OpaqueNested editOrNewOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1beta2OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceClaimConfigurationFluent that = (V1beta2DeviceClaimConfigurationFluent) o; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; } public String getFirstRequest() { @@ -156,6 +118,14 @@ public String getMatchingRequest(Predicate predicate) { return null; } + public String getRequest(int index) { + return this.requests.get(index); + } + + public List getRequests() { + return this.requests; + } + public boolean hasMatchingRequest(Predicate predicate) { for (String item : requests) { if (predicate.test(item)) { @@ -165,57 +135,44 @@ public boolean hasMatchingRequest(Predicate predicate) { return false; } - public A withRequests(List requests) { - if (requests != null) { - this.requests = new ArrayList(); - for (String item : requests) { - this.addToRequests(item); - } - } else { - this.requests = null; - } - return (A) this; - } - - public A withRequests(String... requests) { - if (this.requests != null) { - this.requests.clear(); - _visitables.remove("requests"); - } - if (requests != null) { - for (String item : requests) { - this.addToRequests(item); - } - } - return (A) this; + public boolean hasOpaque() { + return this.opaque != null; } public boolean hasRequests() { return this.requests != null && !(this.requests.isEmpty()); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; + public int hashCode() { + return Objects.hash(opaque, requests); + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; } - if (!(super.equals(o))) { - return false; + for (String item : items) { + this.requests.remove(item); } - V1beta2DeviceClaimConfigurationFluent that = (V1beta2DeviceClaimConfigurationFluent) o; - if (!(Objects.equals(opaque, that.opaque))) { - return false; + return (A) this; + } + + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; } - if (!(Objects.equals(requests, that.requests))) { - return false; + for (String item : items) { + this.requests.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(opaque, requests); + public A setToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.set(index, item); + return (A) this; } public String toString() { @@ -233,12 +190,59 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public A withOpaque(V1beta2OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1beta2OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } public class OpaqueNested extends V1beta2OpaqueDeviceConfigurationFluent> implements Nested{ + + V1beta2OpaqueDeviceConfigurationBuilder builder; + OpaqueNested(V1beta2OpaqueDeviceConfiguration item) { this.builder = new V1beta2OpaqueDeviceConfigurationBuilder(this, item); } - V1beta2OpaqueDeviceConfigurationBuilder builder; - + public N and() { return (N) V1beta2DeviceClaimConfigurationFluent.this.withOpaque(builder.build()); } @@ -247,7 +251,5 @@ public N endOpaque() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimFluent.java index 255c80b173..f82c89a14d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimFluent.java @@ -1,73 +1,96 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2DeviceClaimFluent> extends BaseFluent{ + + private ArrayList config; + private ArrayList constraints; + private ArrayList requests; + public V1beta2DeviceClaimFluent() { } public V1beta2DeviceClaimFluent(V1beta2DeviceClaim instance) { this.copyInstance(instance); } - private ArrayList config; - private ArrayList constraints; - private ArrayList requests; - - protected void copyInstance(V1beta2DeviceClaim instance) { - instance = instance != null ? instance : new V1beta2DeviceClaim(); - if (instance != null) { - this.withConfig(instance.getConfig()); - this.withConstraints(instance.getConstraints()); - this.withRequests(instance.getRequests()); - } - } - - public A addToConfig(int index,V1beta2DeviceClaimConfiguration item) { + + public A addAllToConfig(Collection items) { if (this.config == null) { this.config = new ArrayList(); } - V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { + for (V1beta2DeviceClaimConfiguration item : items) { + V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); _visitables.get("config").add(builder); - config.add(index, builder); + this.config.add(builder); } return (A) this; } - public A setToConfig(int index,V1beta2DeviceClaimConfiguration item) { - if (this.config == null) { - this.config = new ArrayList(); + public A addAllToConstraints(Collection items) { + if (this.constraints == null) { + this.constraints = new ArrayList(); } - V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { - _visitables.get("config").add(builder); - config.set(index, builder); + for (V1beta2DeviceConstraint item : items) { + V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); + _visitables.get("constraints").add(builder); + this.constraints.add(builder); + } + return (A) this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (V1beta2DeviceRequest item : items) { + V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); + _visitables.get("requests").add(builder); + this.requests.add(builder); } return (A) this; } + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta2DeviceClaimConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConstraintsNested addNewConstraint() { + return new ConstraintsNested(-1, null); + } + + public ConstraintsNested addNewConstraintLike(V1beta2DeviceConstraint item) { + return new ConstraintsNested(-1, item); + } + + public RequestsNested addNewRequest() { + return new RequestsNested(-1, null); + } + + public RequestsNested addNewRequestLike(V1beta2DeviceRequest item) { + return new RequestsNested(-1, item); + } + public A addToConfig(V1beta2DeviceClaimConfiguration... items) { if (this.config == null) { this.config = new ArrayList(); @@ -80,54 +103,71 @@ public A addToConfig(V1beta2DeviceClaimConfiguration... items) { return (A) this; } - public A addAllToConfig(Collection items) { + public A addToConfig(int index,V1beta2DeviceClaimConfiguration item) { if (this.config == null) { this.config = new ArrayList(); } - for (V1beta2DeviceClaimConfiguration item : items) { - V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); + V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); - this.config.add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); } return (A) this; } - public A removeFromConfig(V1beta2DeviceClaimConfiguration... items) { - if (this.config == null) { - return (A) this; + public A addToConstraints(V1beta2DeviceConstraint... items) { + if (this.constraints == null) { + this.constraints = new ArrayList(); } - for (V1beta2DeviceClaimConfiguration item : items) { - V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); - _visitables.get("config").remove(builder); - this.config.remove(builder); + for (V1beta2DeviceConstraint item : items) { + V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); + _visitables.get("constraints").add(builder); + this.constraints.add(builder); } return (A) this; } - public A removeAllFromConfig(Collection items) { - if (this.config == null) { - return (A) this; + public A addToConstraints(int index,V1beta2DeviceConstraint item) { + if (this.constraints == null) { + this.constraints = new ArrayList(); } - for (V1beta2DeviceClaimConfiguration item : items) { - V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); - _visitables.get("config").remove(builder); - this.config.remove(builder); + V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); + } else { + _visitables.get("constraints").add(builder); + constraints.add(index, builder); } return (A) this; } - public A removeMatchingFromConfig(Predicate predicate) { - if (config == null) { - return (A) this; + public A addToRequests(V1beta2DeviceRequest... items) { + if (this.requests == null) { + this.requests = new ArrayList(); } - Iterator each = config.iterator(); - List visitables = _visitables.get("config"); - while (each.hasNext()) { - V1beta2DeviceClaimConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (V1beta2DeviceRequest item : items) { + V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); + _visitables.get("requests").add(builder); + this.requests.add(builder); + } + return (A) this; + } + + public A addToRequests(int index,V1beta2DeviceRequest item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); + if (index < 0 || index >= requests.size()) { + _visitables.get("requests").add(builder); + requests.add(builder); + } else { + _visitables.get("requests").add(builder); + requests.add(index, builder); } return (A) this; } @@ -140,14 +180,38 @@ public V1beta2DeviceClaimConfiguration buildConfig(int index) { return this.config.get(index).build(); } + public V1beta2DeviceConstraint buildConstraint(int index) { + return this.constraints.get(index).build(); + } + + public List buildConstraints() { + return this.constraints != null ? build(constraints) : null; + } + public V1beta2DeviceClaimConfiguration buildFirstConfig() { return this.config.get(0).build(); } + public V1beta2DeviceConstraint buildFirstConstraint() { + return this.constraints.get(0).build(); + } + + public V1beta2DeviceRequest buildFirstRequest() { + return this.requests.get(0).build(); + } + public V1beta2DeviceClaimConfiguration buildLastConfig() { return this.config.get(config.size() - 1).build(); } + public V1beta2DeviceConstraint buildLastConstraint() { + return this.constraints.get(constraints.size() - 1).build(); + } + + public V1beta2DeviceRequest buildLastRequest() { + return this.requests.get(requests.size() - 1).build(); + } + public V1beta2DeviceClaimConfiguration buildMatchingConfig(Predicate predicate) { for (V1beta2DeviceClaimConfigurationBuilder item : config) { if (predicate.test(item)) { @@ -157,73 +221,76 @@ public V1beta2DeviceClaimConfiguration buildMatchingConfig(Predicate predicate) { - for (V1beta2DeviceClaimConfigurationBuilder item : config) { + public V1beta2DeviceConstraint buildMatchingConstraint(Predicate predicate) { + for (V1beta2DeviceConstraintBuilder item : constraints) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withConfig(List config) { - if (this.config != null) { - this._visitables.get("config").clear(); - } - if (config != null) { - this.config = new ArrayList(); - for (V1beta2DeviceClaimConfiguration item : config) { - this.addToConfig(item); + public V1beta2DeviceRequest buildMatchingRequest(Predicate predicate) { + for (V1beta2DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return item.build(); } - } else { - this.config = null; - } - return (A) this; - } - - public A withConfig(V1beta2DeviceClaimConfiguration... config) { - if (this.config != null) { - this.config.clear(); - _visitables.remove("config"); - } - if (config != null) { - for (V1beta2DeviceClaimConfiguration item : config) { - this.addToConfig(item); } - } - return (A) this; - } - - public boolean hasConfig() { - return this.config != null && !(this.config.isEmpty()); + return null; } - public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); + public V1beta2DeviceRequest buildRequest(int index) { + return this.requests.get(index).build(); } - public ConfigNested addNewConfigLike(V1beta2DeviceClaimConfiguration item) { - return new ConfigNested(-1, item); + public List buildRequests() { + return this.requests != null ? build(requests) : null; } - public ConfigNested setNewConfigLike(int index,V1beta2DeviceClaimConfiguration item) { - return new ConfigNested(index, item); + protected void copyInstance(V1beta2DeviceClaim instance) { + instance = instance != null ? instance : new V1beta2DeviceClaim(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withConstraints(instance.getConstraints()); + this.withRequests(instance.getRequests()); + } } public ConfigNested editConfig(int index) { - if (index <= config.size()) { + if (config.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); } return this.setNewConfigLike(index, this.buildConfig(index)); } - public ConfigNested editFirstConfig() { - if (config.size() == 0) { + public ConstraintsNested editConstraint(int index) { + if (constraints.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) { throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); } return this.setNewConfigLike(0, this.buildConfig(0)); } + public ConstraintsNested editFirstConstraint() { + if (constraints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "constraints")); + } + return this.setNewConstraintLike(0, this.buildConstraint(0)); + } + + public RequestsNested editFirstRequest() { + if (requests.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requests")); + } + return this.setNewRequestLike(0, this.buildRequest(0)); + } + public ConfigNested editLastConfig() { int index = config.size() - 1; if (index < 0) { @@ -232,6 +299,22 @@ public ConfigNested editLastConfig() { return this.setNewConfigLike(index, this.buildConfig(index)); } + public ConstraintsNested editLastConstraint() { + int index = constraints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); + } + + public RequestsNested editLastRequest() { + int index = requests.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + public ConfigNested editMatchingConfig(Predicate predicate) { int index = -1; for (int i = 0;i < config.size();i++) { @@ -246,56 +329,151 @@ public ConfigNested editMatchingConfig(Predicate editMatchingConstraint(Predicate predicate) { + int index = -1; + for (int i = 0;i < constraints.size();i++) { + if (predicate.test(constraints.get(i))) { + index = i; + break; + } } - V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); - if (index < 0 || index >= constraints.size()) { - _visitables.get("constraints").add(builder); - constraints.add(builder); - } else { - _visitables.get("constraints").add(builder); - constraints.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "constraints")); } - return (A) this; + return this.setNewConstraintLike(index, this.buildConstraint(index)); } - public A setToConstraints(int index,V1beta2DeviceConstraint item) { - if (this.constraints == null) { - this.constraints = new ArrayList(); + public RequestsNested editMatchingRequest(Predicate predicate) { + int index = -1; + for (int i = 0;i < requests.size();i++) { + if (predicate.test(requests.get(i))) { + index = i; + break; + } } - V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); - if (index < 0 || index >= constraints.size()) { - _visitables.get("constraints").add(builder); - constraints.add(builder); - } else { - _visitables.get("constraints").add(builder); - constraints.set(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + + public RequestsNested editRequest(int index) { + if (requests.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceClaimFluent that = (V1beta2DeviceClaimFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(constraints, that.constraints))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public boolean hasConstraints() { + return this.constraints != null && !(this.constraints.isEmpty()); + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta2DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingConstraint(Predicate predicate) { + for (V1beta2DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (V1beta2DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public int hashCode() { + return Objects.hash(config, constraints, requests); + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) { + return (A) this; + } + for (V1beta2DeviceClaimConfiguration item : items) { + V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); } return (A) this; } - public A addToConstraints(V1beta2DeviceConstraint... items) { + public A removeAllFromConstraints(Collection items) { if (this.constraints == null) { - this.constraints = new ArrayList(); + return (A) this; } for (V1beta2DeviceConstraint item : items) { V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); - _visitables.get("constraints").add(builder); - this.constraints.add(builder); + _visitables.get("constraints").remove(builder); + this.constraints.remove(builder); } return (A) this; } - public A addAllToConstraints(Collection items) { - if (this.constraints == null) { - this.constraints = new ArrayList(); + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; } - for (V1beta2DeviceConstraint item : items) { - V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); - _visitables.get("constraints").add(builder); - this.constraints.add(builder); + for (V1beta2DeviceRequest item : items) { + V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); + _visitables.get("requests").remove(builder); + this.requests.remove(builder); + } + return (A) this; + } + + public A removeFromConfig(V1beta2DeviceClaimConfiguration... items) { + if (this.config == null) { + return (A) this; + } + for (V1beta2DeviceClaimConfiguration item : items) { + V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); } return (A) this; } @@ -312,26 +490,26 @@ public A removeFromConstraints(V1beta2DeviceConstraint... items) { return (A) this; } - public A removeAllFromConstraints(Collection items) { - if (this.constraints == null) { + public A removeFromRequests(V1beta2DeviceRequest... items) { + if (this.requests == null) { return (A) this; } - for (V1beta2DeviceConstraint item : items) { - V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); - _visitables.get("constraints").remove(builder); - this.constraints.remove(builder); + for (V1beta2DeviceRequest item : items) { + V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); + _visitables.get("requests").remove(builder); + this.requests.remove(builder); } return (A) this; } - public A removeMatchingFromConstraints(Predicate predicate) { - if (constraints == null) { + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) { return (A) this; } - Iterator each = constraints.iterator(); - List visitables = _visitables.get("constraints"); + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); while (each.hasNext()) { - V1beta2DeviceConstraintBuilder builder = each.next(); + V1beta2DeviceClaimConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -340,131 +518,76 @@ public A removeMatchingFromConstraints(Predicate return (A) this; } - public List buildConstraints() { - return this.constraints != null ? build(constraints) : null; - } - - public V1beta2DeviceConstraint buildConstraint(int index) { - return this.constraints.get(index).build(); - } - - public V1beta2DeviceConstraint buildFirstConstraint() { - return this.constraints.get(0).build(); - } - - public V1beta2DeviceConstraint buildLastConstraint() { - return this.constraints.get(constraints.size() - 1).build(); - } - - public V1beta2DeviceConstraint buildMatchingConstraint(Predicate predicate) { - for (V1beta2DeviceConstraintBuilder item : constraints) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingConstraint(Predicate predicate) { - for (V1beta2DeviceConstraintBuilder item : constraints) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConstraints(List constraints) { - if (this.constraints != null) { - this._visitables.get("constraints").clear(); + public A removeMatchingFromConstraints(Predicate predicate) { + if (constraints == null) { + return (A) this; } - if (constraints != null) { - this.constraints = new ArrayList(); - for (V1beta2DeviceConstraint item : constraints) { - this.addToConstraints(item); + Iterator each = constraints.iterator(); + List visitables = _visitables.get("constraints"); + while (each.hasNext()) { + V1beta2DeviceConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } else { - this.constraints = null; } return (A) this; } - public A withConstraints(V1beta2DeviceConstraint... constraints) { - if (this.constraints != null) { - this.constraints.clear(); - _visitables.remove("constraints"); + public A removeMatchingFromRequests(Predicate predicate) { + if (requests == null) { + return (A) this; } - if (constraints != null) { - for (V1beta2DeviceConstraint item : constraints) { - this.addToConstraints(item); - } + Iterator each = requests.iterator(); + List visitables = _visitables.get("requests"); + while (each.hasNext()) { + V1beta2DeviceRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasConstraints() { - return this.constraints != null && !(this.constraints.isEmpty()); - } - - public ConstraintsNested addNewConstraint() { - return new ConstraintsNested(-1, null); - } - - public ConstraintsNested addNewConstraintLike(V1beta2DeviceConstraint item) { - return new ConstraintsNested(-1, item); + public ConfigNested setNewConfigLike(int index,V1beta2DeviceClaimConfiguration item) { + return new ConfigNested(index, item); } public ConstraintsNested setNewConstraintLike(int index,V1beta2DeviceConstraint item) { return new ConstraintsNested(index, item); } - public ConstraintsNested editConstraint(int index) { - if (index <= constraints.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "constraints")); - } - return this.setNewConstraintLike(index, this.buildConstraint(index)); - } - - public ConstraintsNested editFirstConstraint() { - if (constraints.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "constraints")); - } - return this.setNewConstraintLike(0, this.buildConstraint(0)); - } - - public ConstraintsNested editLastConstraint() { - int index = constraints.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "constraints")); - } - return this.setNewConstraintLike(index, this.buildConstraint(index)); + public RequestsNested setNewRequestLike(int index,V1beta2DeviceRequest item) { + return new RequestsNested(index, item); } - public ConstraintsNested editMatchingConstraint(Predicate predicate) { - int index = -1; - for (int i = 0;i < constraints.size();i++) { - if (predicate.test(constraints.get(i))) { - index = i; - break; - } + public A setToConfig(int index,V1beta2DeviceClaimConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "constraints")); + V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); } - return this.setNewConstraintLike(index, this.buildConstraint(index)); + return (A) this; } - public A addToRequests(int index,V1beta2DeviceRequest item) { - if (this.requests == null) { - this.requests = new ArrayList(); + public A setToConstraints(int index,V1beta2DeviceConstraint item) { + if (this.constraints == null) { + this.constraints = new ArrayList(); } - V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); - if (index < 0 || index >= requests.size()) { - _visitables.get("requests").add(builder); - requests.add(builder); + V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); + if (index < 0 || index >= constraints.size()) { + _visitables.get("constraints").add(builder); + constraints.add(builder); } else { - _visitables.get("requests").add(builder); - requests.add(index, builder); + _visitables.get("constraints").add(builder); + constraints.set(index, builder); } return (A) this; } @@ -484,102 +607,81 @@ public A setToRequests(int index,V1beta2DeviceRequest item) { return (A) this; } - public A addToRequests(V1beta2DeviceRequest... items) { - if (this.requests == null) { - this.requests = new ArrayList(); - } - for (V1beta2DeviceRequest item : items) { - V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); - _visitables.get("requests").add(builder); - this.requests.add(builder); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); } - return (A) this; - } - - public A addAllToRequests(Collection items) { - if (this.requests == null) { - this.requests = new ArrayList(); + if (!(constraints == null) && !(constraints.isEmpty())) { + sb.append("constraints:"); + sb.append(constraints); + sb.append(","); } - for (V1beta2DeviceRequest item : items) { - V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); - _visitables.get("requests").add(builder); - this.requests.add(builder); + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); } - return (A) this; + sb.append("}"); + return sb.toString(); } - public A removeFromRequests(V1beta2DeviceRequest... items) { - if (this.requests == null) { - return (A) this; + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); } - for (V1beta2DeviceRequest item : items) { - V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); - _visitables.get("requests").remove(builder); - this.requests.remove(builder); + if (config != null) { + this.config = new ArrayList(); + for (V1beta2DeviceClaimConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; } return (A) this; } - public A removeAllFromRequests(Collection items) { - if (this.requests == null) { - return (A) this; + public A withConfig(V1beta2DeviceClaimConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); } - for (V1beta2DeviceRequest item : items) { - V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); - _visitables.get("requests").remove(builder); - this.requests.remove(builder); + if (config != null) { + for (V1beta2DeviceClaimConfiguration item : config) { + this.addToConfig(item); + } } return (A) this; } - public A removeMatchingFromRequests(Predicate predicate) { - if (requests == null) { - return (A) this; + public A withConstraints(List constraints) { + if (this.constraints != null) { + this._visitables.get("constraints").clear(); } - Iterator each = requests.iterator(); - List visitables = _visitables.get("requests"); - while (each.hasNext()) { - V1beta2DeviceRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + if (constraints != null) { + this.constraints = new ArrayList(); + for (V1beta2DeviceConstraint item : constraints) { + this.addToConstraints(item); } + } else { + this.constraints = null; } return (A) this; } - public List buildRequests() { - return this.requests != null ? build(requests) : null; - } - - public V1beta2DeviceRequest buildRequest(int index) { - return this.requests.get(index).build(); - } - - public V1beta2DeviceRequest buildFirstRequest() { - return this.requests.get(0).build(); - } - - public V1beta2DeviceRequest buildLastRequest() { - return this.requests.get(requests.size() - 1).build(); - } - - public V1beta2DeviceRequest buildMatchingRequest(Predicate predicate) { - for (V1beta2DeviceRequestBuilder item : requests) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingRequest(Predicate predicate) { - for (V1beta2DeviceRequestBuilder item : requests) { - if (predicate.test(item)) { - return true; - } + public A withConstraints(V1beta2DeviceConstraint... constraints) { + if (this.constraints != null) { + this.constraints.clear(); + _visitables.remove("constraints"); + } + if (constraints != null) { + for (V1beta2DeviceConstraint item : constraints) { + this.addToConstraints(item); } - return false; + } + return (A) this; } public A withRequests(List requests) { @@ -609,114 +711,16 @@ public A withRequests(V1beta2DeviceRequest... requests) { } return (A) this; } + public class ConfigNested extends V1beta2DeviceClaimConfigurationFluent> implements Nested{ - public boolean hasRequests() { - return this.requests != null && !(this.requests.isEmpty()); - } - - public RequestsNested addNewRequest() { - return new RequestsNested(-1, null); - } - - public RequestsNested addNewRequestLike(V1beta2DeviceRequest item) { - return new RequestsNested(-1, item); - } - - public RequestsNested setNewRequestLike(int index,V1beta2DeviceRequest item) { - return new RequestsNested(index, item); - } - - public RequestsNested editRequest(int index) { - if (index <= requests.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requests")); - } - return this.setNewRequestLike(index, this.buildRequest(index)); - } - - public RequestsNested editFirstRequest() { - if (requests.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requests")); - } - return this.setNewRequestLike(0, this.buildRequest(0)); - } - - public RequestsNested editLastRequest() { - int index = requests.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requests")); - } - return this.setNewRequestLike(index, this.buildRequest(index)); - } - - public RequestsNested editMatchingRequest(Predicate predicate) { - int index = -1; - for (int i = 0;i < requests.size();i++) { - if (predicate.test(requests.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requests")); - } - return this.setNewRequestLike(index, this.buildRequest(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta2DeviceClaimFluent that = (V1beta2DeviceClaimFluent) o; - if (!(Objects.equals(config, that.config))) { - return false; - } - if (!(Objects.equals(constraints, that.constraints))) { - return false; - } - if (!(Objects.equals(requests, that.requests))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(config, constraints, requests); - } + V1beta2DeviceClaimConfigurationBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(config == null) && !(config.isEmpty())) { - sb.append("config:"); - sb.append(config); - sb.append(","); - } - if (!(constraints == null) && !(constraints.isEmpty())) { - sb.append("constraints:"); - sb.append(constraints); - sb.append(","); - } - if (!(requests == null) && !(requests.isEmpty())) { - sb.append("requests:"); - sb.append(requests); - } - sb.append("}"); - return sb.toString(); - } - public class ConfigNested extends V1beta2DeviceClaimConfigurationFluent> implements Nested{ ConfigNested(int index,V1beta2DeviceClaimConfiguration item) { this.index = index; this.builder = new V1beta2DeviceClaimConfigurationBuilder(this, item); } - V1beta2DeviceClaimConfigurationBuilder builder; - int index; - + public N and() { return (N) V1beta2DeviceClaimFluent.this.setToConfig(index, builder.build()); } @@ -725,16 +729,17 @@ public N endConfig() { return and(); } - } public class ConstraintsNested extends V1beta2DeviceConstraintFluent> implements Nested{ + + V1beta2DeviceConstraintBuilder builder; + int index; + ConstraintsNested(int index,V1beta2DeviceConstraint item) { this.index = index; this.builder = new V1beta2DeviceConstraintBuilder(this, item); } - V1beta2DeviceConstraintBuilder builder; - int index; - + public N and() { return (N) V1beta2DeviceClaimFluent.this.setToConstraints(index, builder.build()); } @@ -743,16 +748,17 @@ public N endConstraint() { return and(); } - } public class RequestsNested extends V1beta2DeviceRequestFluent> implements Nested{ + + V1beta2DeviceRequestBuilder builder; + int index; + RequestsNested(int index,V1beta2DeviceRequest item) { this.index = index; this.builder = new V1beta2DeviceRequestBuilder(this, item); } - V1beta2DeviceRequestBuilder builder; - int index; - + public N and() { return (N) V1beta2DeviceClaimFluent.this.setToRequests(index, builder.build()); } @@ -761,7 +767,5 @@ public N endRequest() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassBuilder.java index 034f1c2481..8f4199b6e1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceClassBuilder extends V1beta2DeviceClassFluent implements VisitableBuilder{ + + V1beta2DeviceClassFluent fluent; + public V1beta2DeviceClassBuilder() { this(new V1beta2DeviceClass()); } @@ -11,17 +14,16 @@ public V1beta2DeviceClassBuilder(V1beta2DeviceClassFluent fluent) { this(fluent, new V1beta2DeviceClass()); } - public V1beta2DeviceClassBuilder(V1beta2DeviceClassFluent fluent,V1beta2DeviceClass instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceClassBuilder(V1beta2DeviceClass instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceClassFluent fluent; + public V1beta2DeviceClassBuilder(V1beta2DeviceClassFluent fluent,V1beta2DeviceClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2DeviceClass build() { V1beta2DeviceClass buildable = new V1beta2DeviceClass(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta2DeviceClass build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationBuilder.java index 0a6ea0f7c1..392b1657f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceClassConfigurationBuilder extends V1beta2DeviceClassConfigurationFluent implements VisitableBuilder{ + + V1beta2DeviceClassConfigurationFluent fluent; + public V1beta2DeviceClassConfigurationBuilder() { this(new V1beta2DeviceClassConfiguration()); } @@ -11,22 +14,20 @@ public V1beta2DeviceClassConfigurationBuilder(V1beta2DeviceClassConfigurationFlu this(fluent, new V1beta2DeviceClassConfiguration()); } - public V1beta2DeviceClassConfigurationBuilder(V1beta2DeviceClassConfigurationFluent fluent,V1beta2DeviceClassConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceClassConfigurationBuilder(V1beta2DeviceClassConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceClassConfigurationFluent fluent; + public V1beta2DeviceClassConfigurationBuilder(V1beta2DeviceClassConfigurationFluent fluent,V1beta2DeviceClassConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2DeviceClassConfiguration build() { V1beta2DeviceClassConfiguration buildable = new V1beta2DeviceClassConfiguration(); buildable.setOpaque(fluent.buildOpaque()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationFluent.java index 3d05b1b720..4aa886ca51 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2DeviceClassConfigurationFluent> extends BaseFluent{ + + private V1beta2OpaqueDeviceConfigurationBuilder opaque; + public V1beta2DeviceClassConfigurationFluent() { } public V1beta2DeviceClassConfigurationFluent(V1beta2DeviceClassConfiguration instance) { this.copyInstance(instance); } - private V1beta2OpaqueDeviceConfigurationBuilder opaque; + + public V1beta2OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } protected void copyInstance(V1beta2DeviceClassConfiguration instance) { instance = instance != null ? instance : new V1beta2DeviceClassConfiguration(); @@ -29,34 +35,6 @@ protected void copyInstance(V1beta2DeviceClassConfiguration instance) { } } - public V1beta2OpaqueDeviceConfiguration buildOpaque() { - return this.opaque != null ? this.opaque.build() : null; - } - - public A withOpaque(V1beta2OpaqueDeviceConfiguration opaque) { - this._visitables.remove("opaque"); - if (opaque != null) { - this.opaque = new V1beta2OpaqueDeviceConfigurationBuilder(opaque); - this._visitables.get("opaque").add(this.opaque); - } else { - this.opaque = null; - this._visitables.get("opaque").remove(this.opaque); - } - return (A) this; - } - - public boolean hasOpaque() { - return this.opaque != null; - } - - public OpaqueNested withNewOpaque() { - return new OpaqueNested(null); - } - - public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { - return new OpaqueNested(item); - } - public OpaqueNested editOpaque() { return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); } @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasOpaque() { + return this.opaque != null; + } + public int hashCode() { return Objects.hash(opaque); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public A withOpaque(V1beta2OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1beta2OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } public class OpaqueNested extends V1beta2OpaqueDeviceConfigurationFluent> implements Nested{ + + V1beta2OpaqueDeviceConfigurationBuilder builder; + OpaqueNested(V1beta2OpaqueDeviceConfiguration item) { this.builder = new V1beta2OpaqueDeviceConfigurationBuilder(this, item); } - V1beta2OpaqueDeviceConfigurationBuilder builder; - + public N and() { return (N) V1beta2DeviceClassConfigurationFluent.this.withOpaque(builder.build()); } @@ -114,7 +118,5 @@ public N endOpaque() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassFluent.java index b07c067a2c..b4a7c50e1e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2DeviceClassFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta2DeviceClassSpecBuilder spec; + public V1beta2DeviceClassFluent() { } public V1beta2DeviceClassFluent(V1beta2DeviceClass instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta2DeviceClassSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta2DeviceClassSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1beta2DeviceClass instance) { instance = instance != null ? instance : new V1beta2DeviceClass(); @@ -35,60 +45,6 @@ protected void copyInstance(V1beta2DeviceClass instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1beta2DeviceClassSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta2DeviceClassSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta2DeviceClassSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta2DeviceClassSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta2DeviceClassSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1beta2DeviceClassSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2DeviceClassSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1beta2DeviceClassSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta2DeviceClassSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1beta2DeviceClassFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1beta2DeviceClassSpecFluent> implements Nested{ + + V1beta2DeviceClassSpecBuilder builder; + SpecNested(V1beta2DeviceClassSpec item) { this.builder = new V1beta2DeviceClassSpecBuilder(this, item); } - V1beta2DeviceClassSpecBuilder builder; - + public N and() { return (N) V1beta2DeviceClassFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListBuilder.java index d9eb1a33e7..2ad89816f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceClassListBuilder extends V1beta2DeviceClassListFluent implements VisitableBuilder{ + + V1beta2DeviceClassListFluent fluent; + public V1beta2DeviceClassListBuilder() { this(new V1beta2DeviceClassList()); } @@ -11,17 +14,16 @@ public V1beta2DeviceClassListBuilder(V1beta2DeviceClassListFluent fluent) { this(fluent, new V1beta2DeviceClassList()); } - public V1beta2DeviceClassListBuilder(V1beta2DeviceClassListFluent fluent,V1beta2DeviceClassList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceClassListBuilder(V1beta2DeviceClassList instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceClassListFluent fluent; + public V1beta2DeviceClassListBuilder(V1beta2DeviceClassListFluent fluent,V1beta2DeviceClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2DeviceClassList build() { V1beta2DeviceClassList buildable = new V1beta2DeviceClassList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta2DeviceClassList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListFluent.java index 424f512b5b..4fe9016ba1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2DeviceClassListFluent> extends BaseFluent{ - public V1beta2DeviceClassListFluent() { - } - - public V1beta2DeviceClassListFluent(V1beta2DeviceClassList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta2DeviceClassList instance) { - instance = instance != null ? instance : new V1beta2DeviceClassList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1beta2DeviceClassListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1beta2DeviceClassListFluent(V1beta2DeviceClassList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1beta2DeviceClass item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1beta2DeviceClass item : items) { + V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1beta2DeviceClass item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta2DeviceClass item) { + return new ItemsNested(-1, item); } public A addToItems(V1beta2DeviceClass... items) { @@ -96,68 +65,31 @@ public A addToItems(V1beta2DeviceClass... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1beta2DeviceClass item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1beta2DeviceClass item : items) { - V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); + V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1beta2DeviceClass... items) { - if (this.items == null) { - return (A) this; - } - for (V1beta2DeviceClass item : items) { - V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1beta2DeviceClass item : items) { - V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta2DeviceClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1beta2DeviceClass buildFirstItem() { + return this.items.get(0).build(); } public V1beta2DeviceClass buildItem(int index) { return this.items.get(index).build(); } - public V1beta2DeviceClass buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1beta2DeviceClass buildLastItem() { @@ -173,73 +105,34 @@ public V1beta2DeviceClass buildMatchingItem(Predicate return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1beta2DeviceClassBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta2DeviceClass item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1beta2DeviceClassList instance) { + instance = instance != null ? instance : new V1beta2DeviceClassList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1beta2DeviceClass... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta2DeviceClass item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta2DeviceClass item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta2DeviceClass item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate pred return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta2DeviceClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta2DeviceClass item : items) { + V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta2DeviceClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta2DeviceClass item : items) { + V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta2DeviceClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta2DeviceClass item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta2DeviceClass item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta2DeviceClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta2DeviceClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta2DeviceClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1beta2DeviceClassFluent> implements Nested{ + + V1beta2DeviceClassBuilder builder; + int index; + ItemsNested(int index,V1beta2DeviceClass item) { this.index = index; this.builder = new V1beta2DeviceClassBuilder(this, item); } - V1beta2DeviceClassBuilder builder; - int index; - + public N and() { return (N) V1beta2DeviceClassListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1beta2DeviceClassListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecBuilder.java index b9e3cf2066..8a1b91ee83 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceClassSpecBuilder extends V1beta2DeviceClassSpecFluent implements VisitableBuilder{ + + V1beta2DeviceClassSpecFluent fluent; + public V1beta2DeviceClassSpecBuilder() { this(new V1beta2DeviceClassSpec()); } @@ -11,17 +14,16 @@ public V1beta2DeviceClassSpecBuilder(V1beta2DeviceClassSpecFluent fluent) { this(fluent, new V1beta2DeviceClassSpec()); } - public V1beta2DeviceClassSpecBuilder(V1beta2DeviceClassSpecFluent fluent,V1beta2DeviceClassSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceClassSpecBuilder(V1beta2DeviceClassSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceClassSpecFluent fluent; + public V1beta2DeviceClassSpecBuilder(V1beta2DeviceClassSpecFluent fluent,V1beta2DeviceClassSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2DeviceClassSpec build() { V1beta2DeviceClassSpec buildable = new V1beta2DeviceClassSpec(); buildable.setConfig(fluent.buildConfig()); @@ -30,5 +32,4 @@ public V1beta2DeviceClassSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecFluent.java index 33b46db1ca..9436928127 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecFluent.java @@ -1,73 +1,76 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2DeviceClassSpecFluent> extends BaseFluent{ + + private ArrayList config; + private String extendedResourceName; + private ArrayList selectors; + public V1beta2DeviceClassSpecFluent() { } public V1beta2DeviceClassSpecFluent(V1beta2DeviceClassSpec instance) { this.copyInstance(instance); } - private ArrayList config; - private String extendedResourceName; - private ArrayList selectors; - - protected void copyInstance(V1beta2DeviceClassSpec instance) { - instance = instance != null ? instance : new V1beta2DeviceClassSpec(); - if (instance != null) { - this.withConfig(instance.getConfig()); - this.withExtendedResourceName(instance.getExtendedResourceName()); - this.withSelectors(instance.getSelectors()); - } - } - - public A addToConfig(int index,V1beta2DeviceClassConfiguration item) { + + public A addAllToConfig(Collection items) { if (this.config == null) { this.config = new ArrayList(); } - V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { + for (V1beta2DeviceClassConfiguration item : items) { + V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); _visitables.get("config").add(builder); - config.add(index, builder); + this.config.add(builder); } return (A) this; } - public A setToConfig(int index,V1beta2DeviceClassConfiguration item) { - if (this.config == null) { - this.config = new ArrayList(); + public A addAllToSelectors(Collection items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); } - V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); - } else { - _visitables.get("config").add(builder); - config.set(index, builder); + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); } return (A) this; } + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta2DeviceClassConfiguration item) { + return new ConfigNested(-1, item); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1beta2DeviceSelector item) { + return new SelectorsNested(-1, item); + } + public A addToConfig(V1beta2DeviceClassConfiguration... items) { if (this.config == null) { this.config = new ArrayList(); @@ -80,54 +83,44 @@ public A addToConfig(V1beta2DeviceClassConfiguration... items) { return (A) this; } - public A addAllToConfig(Collection items) { + public A addToConfig(int index,V1beta2DeviceClassConfiguration item) { if (this.config == null) { this.config = new ArrayList(); } - for (V1beta2DeviceClassConfiguration item : items) { - V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); + V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { _visitables.get("config").add(builder); - this.config.add(builder); - } - return (A) this; - } - - public A removeFromConfig(V1beta2DeviceClassConfiguration... items) { - if (this.config == null) { - return (A) this; - } - for (V1beta2DeviceClassConfiguration item : items) { - V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); - _visitables.get("config").remove(builder); - this.config.remove(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.add(index, builder); } return (A) this; } - public A removeAllFromConfig(Collection items) { - if (this.config == null) { - return (A) this; + public A addToSelectors(V1beta2DeviceSelector... items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); } - for (V1beta2DeviceClassConfiguration item : items) { - V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); - _visitables.get("config").remove(builder); - this.config.remove(builder); + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); } return (A) this; } - public A removeMatchingFromConfig(Predicate predicate) { - if (config == null) { - return (A) this; + public A addToSelectors(int index,V1beta2DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); } - Iterator each = config.iterator(); - List visitables = _visitables.get("config"); - while (each.hasNext()) { - V1beta2DeviceClassConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.add(index, builder); } return (A) this; } @@ -144,10 +137,18 @@ public V1beta2DeviceClassConfiguration buildFirstConfig() { return this.config.get(0).build(); } + public V1beta2DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + public V1beta2DeviceClassConfiguration buildLastConfig() { return this.config.get(config.size() - 1).build(); } + public V1beta2DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + public V1beta2DeviceClassConfiguration buildMatchingConfig(Predicate predicate) { for (V1beta2DeviceClassConfigurationBuilder item : config) { if (predicate.test(item)) { @@ -157,61 +158,34 @@ public V1beta2DeviceClassConfiguration buildMatchingConfig(Predicate predicate) { - for (V1beta2DeviceClassConfigurationBuilder item : config) { + public V1beta2DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConfig(List config) { - if (this.config != null) { - this._visitables.get("config").clear(); - } - if (config != null) { - this.config = new ArrayList(); - for (V1beta2DeviceClassConfiguration item : config) { - this.addToConfig(item); + return item.build(); } - } else { - this.config = null; - } - return (A) this; - } - - public A withConfig(V1beta2DeviceClassConfiguration... config) { - if (this.config != null) { - this.config.clear(); - _visitables.remove("config"); - } - if (config != null) { - for (V1beta2DeviceClassConfiguration item : config) { - this.addToConfig(item); } - } - return (A) this; - } - - public boolean hasConfig() { - return this.config != null && !(this.config.isEmpty()); + return null; } - public ConfigNested addNewConfig() { - return new ConfigNested(-1, null); + public V1beta2DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); } - public ConfigNested addNewConfigLike(V1beta2DeviceClassConfiguration item) { - return new ConfigNested(-1, item); + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; } - public ConfigNested setNewConfigLike(int index,V1beta2DeviceClassConfiguration item) { - return new ConfigNested(index, item); + protected void copyInstance(V1beta2DeviceClassSpec instance) { + instance = instance != null ? instance : new V1beta2DeviceClassSpec(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withExtendedResourceName(instance.getExtendedResourceName()); + this.withSelectors(instance.getSelectors()); + } } public ConfigNested editConfig(int index) { - if (index <= config.size()) { + if (config.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); } return this.setNewConfigLike(index, this.buildConfig(index)); @@ -224,6 +198,13 @@ public ConfigNested editFirstConfig() { return this.setNewConfigLike(0, this.buildConfig(0)); } + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); + } + public ConfigNested editLastConfig() { int index = config.size() - 1; if (index < 0) { @@ -232,6 +213,14 @@ public ConfigNested editLastConfig() { return this.setNewConfigLike(index, this.buildConfig(index)); } + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + public ConfigNested editMatchingConfig(Predicate predicate) { int index = -1; for (int i = 0;i < config.size();i++) { @@ -246,69 +235,120 @@ public ConfigNested editMatchingConfig(Predicate editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i = 0;i < selectors.size();i++) { + if (predicate.test(selectors.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } - public boolean hasExtendedResourceName() { - return this.extendedResourceName != null; + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); } - public A addToSelectors(int index,V1beta2DeviceSelector item) { - if (this.selectors == null) { - this.selectors = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { - _visitables.get("selectors").add(builder); - selectors.add(index, builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceClassSpecFluent that = (V1beta2DeviceClassSpecFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(extendedResourceName, that.extendedResourceName))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + return true; } - public A setToSelectors(int index,V1beta2DeviceSelector item) { - if (this.selectors == null) { - this.selectors = new ArrayList(); + public String getExtendedResourceName() { + return this.extendedResourceName; + } + + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public boolean hasExtendedResourceName() { + return this.extendedResourceName != null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta2DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public int hashCode() { + return Objects.hash(config, extendedResourceName, selectors); + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) { + return (A) this; } - V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { - _visitables.get("selectors").add(builder); - selectors.set(index, builder); + for (V1beta2DeviceClassConfiguration item : items) { + V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); } return (A) this; } - public A addToSelectors(V1beta2DeviceSelector... items) { + public A removeAllFromSelectors(Collection items) { if (this.selectors == null) { - this.selectors = new ArrayList(); + return (A) this; } for (V1beta2DeviceSelector item : items) { V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); - this.selectors.add(builder); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); } return (A) this; } - public A addAllToSelectors(Collection items) { - if (this.selectors == null) { - this.selectors = new ArrayList(); + public A removeFromConfig(V1beta2DeviceClassConfiguration... items) { + if (this.config == null) { + return (A) this; } - for (V1beta2DeviceSelector item : items) { - V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); - this.selectors.add(builder); + for (V1beta2DeviceClassConfiguration item : items) { + V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); } return (A) this; } @@ -325,14 +365,18 @@ public A removeFromSelectors(V1beta2DeviceSelector... items) { return (A) this; } - public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) { + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) { return (A) this; } - for (V1beta2DeviceSelector item : items) { - V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - _visitables.get("selectors").remove(builder); - this.selectors.remove(builder); + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1beta2DeviceClassConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -353,38 +397,96 @@ public A removeMatchingFromSelectors(Predicate pre return (A) this; } - public List buildSelectors() { - return this.selectors != null ? build(selectors) : null; + public ConfigNested setNewConfigLike(int index,V1beta2DeviceClassConfiguration item) { + return new ConfigNested(index, item); } - public V1beta2DeviceSelector buildSelector(int index) { - return this.selectors.get(index).build(); + public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector item) { + return new SelectorsNested(index, item); } - public V1beta2DeviceSelector buildFirstSelector() { - return this.selectors.get(0).build(); + public A setToConfig(int index,V1beta2DeviceClassConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); + } + V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); + if (index < 0 || index >= config.size()) { + _visitables.get("config").add(builder); + config.add(builder); + } else { + _visitables.get("config").add(builder); + config.set(index, builder); + } + return (A) this; } - public V1beta2DeviceSelector buildLastSelector() { - return this.selectors.get(selectors.size() - 1).build(); + public A setToSelectors(int index,V1beta2DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); + } + return (A) this; } - public V1beta2DeviceSelector buildMatchingSelector(Predicate predicate) { - for (V1beta2DeviceSelectorBuilder item : selectors) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(extendedResourceName == null)) { + sb.append("extendedResourceName:"); + sb.append(extendedResourceName); + sb.append(","); + } + if (!(selectors == null) && !(selectors.isEmpty())) { + sb.append("selectors:"); + sb.append(selectors); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingSelector(Predicate predicate) { - for (V1beta2DeviceSelectorBuilder item : selectors) { - if (predicate.test(item)) { - return true; + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1beta2DeviceClassConfiguration item : config) { + this.addToConfig(item); } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(V1beta2DeviceClassConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1beta2DeviceClassConfiguration item : config) { + this.addToConfig(item); } - return false; + } + return (A) this; + } + + public A withExtendedResourceName(String extendedResourceName) { + this.extendedResourceName = extendedResourceName; + return (A) this; } public A withSelectors(List selectors) { @@ -414,114 +516,16 @@ public A withSelectors(V1beta2DeviceSelector... selectors) { } return (A) this; } + public class ConfigNested extends V1beta2DeviceClassConfigurationFluent> implements Nested{ - public boolean hasSelectors() { - return this.selectors != null && !(this.selectors.isEmpty()); - } - - public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); - } - - public SelectorsNested addNewSelectorLike(V1beta2DeviceSelector item) { - return new SelectorsNested(-1, item); - } - - public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector item) { - return new SelectorsNested(index, item); - } - - public SelectorsNested editSelector(int index) { - if (index <= selectors.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); - } - return this.setNewSelectorLike(index, this.buildSelector(index)); - } - - public SelectorsNested editFirstSelector() { - if (selectors.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); - } - return this.setNewSelectorLike(0, this.buildSelector(0)); - } - - public SelectorsNested editLastSelector() { - int index = selectors.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); - } - return this.setNewSelectorLike(index, this.buildSelector(index)); - } - - public SelectorsNested editMatchingSelector(Predicate predicate) { - int index = -1; - for (int i = 0;i < selectors.size();i++) { - if (predicate.test(selectors.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); - } - return this.setNewSelectorLike(index, this.buildSelector(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta2DeviceClassSpecFluent that = (V1beta2DeviceClassSpecFluent) o; - if (!(Objects.equals(config, that.config))) { - return false; - } - if (!(Objects.equals(extendedResourceName, that.extendedResourceName))) { - return false; - } - if (!(Objects.equals(selectors, that.selectors))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(config, extendedResourceName, selectors); - } + V1beta2DeviceClassConfigurationBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(config == null) && !(config.isEmpty())) { - sb.append("config:"); - sb.append(config); - sb.append(","); - } - if (!(extendedResourceName == null)) { - sb.append("extendedResourceName:"); - sb.append(extendedResourceName); - sb.append(","); - } - if (!(selectors == null) && !(selectors.isEmpty())) { - sb.append("selectors:"); - sb.append(selectors); - } - sb.append("}"); - return sb.toString(); - } - public class ConfigNested extends V1beta2DeviceClassConfigurationFluent> implements Nested{ ConfigNested(int index,V1beta2DeviceClassConfiguration item) { this.index = index; this.builder = new V1beta2DeviceClassConfigurationBuilder(this, item); } - V1beta2DeviceClassConfigurationBuilder builder; - int index; - + public N and() { return (N) V1beta2DeviceClassSpecFluent.this.setToConfig(index, builder.build()); } @@ -530,16 +534,17 @@ public N endConfig() { return and(); } - } public class SelectorsNested extends V1beta2DeviceSelectorFluent> implements Nested{ + + V1beta2DeviceSelectorBuilder builder; + int index; + SelectorsNested(int index,V1beta2DeviceSelector item) { this.index = index; this.builder = new V1beta2DeviceSelectorBuilder(this, item); } - V1beta2DeviceSelectorBuilder builder; - int index; - + public N and() { return (N) V1beta2DeviceClassSpecFluent.this.setToSelectors(index, builder.build()); } @@ -548,7 +553,5 @@ public N endSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintBuilder.java index cfa3596c41..3f351fc81b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceConstraintBuilder extends V1beta2DeviceConstraintFluent implements VisitableBuilder{ + + V1beta2DeviceConstraintFluent fluent; + public V1beta2DeviceConstraintBuilder() { this(new V1beta2DeviceConstraint()); } @@ -11,17 +14,16 @@ public V1beta2DeviceConstraintBuilder(V1beta2DeviceConstraintFluent fluent) { this(fluent, new V1beta2DeviceConstraint()); } - public V1beta2DeviceConstraintBuilder(V1beta2DeviceConstraintFluent fluent,V1beta2DeviceConstraint instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceConstraintBuilder(V1beta2DeviceConstraint instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceConstraintFluent fluent; + public V1beta2DeviceConstraintBuilder(V1beta2DeviceConstraintFluent fluent,V1beta2DeviceConstraint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2DeviceConstraint build() { V1beta2DeviceConstraint buildable = new V1beta2DeviceConstraint(); buildable.setDistinctAttribute(fluent.getDistinctAttribute()); @@ -30,5 +32,4 @@ public V1beta2DeviceConstraint build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintFluent.java index 6bb820b832..793d99a63f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,64 +16,25 @@ */ @SuppressWarnings("unchecked") public class V1beta2DeviceConstraintFluent> extends BaseFluent{ - public V1beta2DeviceConstraintFluent() { - } - - public V1beta2DeviceConstraintFluent(V1beta2DeviceConstraint instance) { - this.copyInstance(instance); - } + private String distinctAttribute; private String matchAttribute; private List requests; - - protected void copyInstance(V1beta2DeviceConstraint instance) { - instance = instance != null ? instance : new V1beta2DeviceConstraint(); - if (instance != null) { - this.withDistinctAttribute(instance.getDistinctAttribute()); - this.withMatchAttribute(instance.getMatchAttribute()); - this.withRequests(instance.getRequests()); - } - } - - public String getDistinctAttribute() { - return this.distinctAttribute; - } - - public A withDistinctAttribute(String distinctAttribute) { - this.distinctAttribute = distinctAttribute; - return (A) this; - } - - public boolean hasDistinctAttribute() { - return this.distinctAttribute != null; - } - - public String getMatchAttribute() { - return this.matchAttribute; - } - - public A withMatchAttribute(String matchAttribute) { - this.matchAttribute = matchAttribute; - return (A) this; + + public V1beta2DeviceConstraintFluent() { } - public boolean hasMatchAttribute() { - return this.matchAttribute != null; + public V1beta2DeviceConstraintFluent(V1beta2DeviceConstraint instance) { + this.copyInstance(instance); } - - public A addToRequests(int index,String item) { + + public A addAllToRequests(Collection items) { if (this.requests == null) { this.requests = new ArrayList(); } - this.requests.add(index, item); - return (A) this; - } - - public A setToRequests(int index,String item) { - if (this.requests == null) { - this.requests = new ArrayList(); + for (String item : items) { + this.requests.add(item); } - this.requests.set(index, item); return (A) this; } @@ -87,42 +48,48 @@ public A addToRequests(String... items) { return (A) this; } - public A addAllToRequests(Collection items) { + public A addToRequests(int index,String item) { if (this.requests == null) { this.requests = new ArrayList(); } - for (String item : items) { - this.requests.add(item); - } + this.requests.add(index, item); return (A) this; } - public A removeFromRequests(String... items) { - if (this.requests == null) { - return (A) this; - } - for (String item : items) { - this.requests.remove(item); + protected void copyInstance(V1beta2DeviceConstraint instance) { + instance = instance != null ? instance : new V1beta2DeviceConstraint(); + if (instance != null) { + this.withDistinctAttribute(instance.getDistinctAttribute()); + this.withMatchAttribute(instance.getMatchAttribute()); + this.withRequests(instance.getRequests()); } - return (A) this; } - public A removeAllFromRequests(Collection items) { - if (this.requests == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.requests.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public List getRequests() { - return this.requests; + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceConstraintFluent that = (V1beta2DeviceConstraintFluent) o; + if (!(Objects.equals(distinctAttribute, that.distinctAttribute))) { + return false; + } + if (!(Objects.equals(matchAttribute, that.matchAttribute))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; } - public String getRequest(int index) { - return this.requests.get(index); + public String getDistinctAttribute() { + return this.distinctAttribute; } public String getFirstRequest() { @@ -133,6 +100,10 @@ public String getLastRequest() { return this.requests.get(requests.size() - 1); } + public String getMatchAttribute() { + return this.matchAttribute; + } + public String getMatchingRequest(Predicate predicate) { for (String item : requests) { if (predicate.test(item)) { @@ -142,6 +113,22 @@ public String getMatchingRequest(Predicate predicate) { return null; } + public String getRequest(int index) { + return this.requests.get(index); + } + + public List getRequests() { + return this.requests; + } + + public boolean hasDistinctAttribute() { + return this.distinctAttribute != null; + } + + public boolean hasMatchAttribute() { + return this.matchAttribute != null; + } + public boolean hasMatchingRequest(Predicate predicate) { for (String item : requests) { if (predicate.test(item)) { @@ -151,60 +138,40 @@ public boolean hasMatchingRequest(Predicate predicate) { return false; } - public A withRequests(List requests) { - if (requests != null) { - this.requests = new ArrayList(); - for (String item : requests) { - this.addToRequests(item); - } - } else { - this.requests = null; - } - return (A) this; + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); } - public A withRequests(String... requests) { - if (this.requests != null) { - this.requests.clear(); - _visitables.remove("requests"); + public int hashCode() { + return Objects.hash(distinctAttribute, matchAttribute, requests); + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; } - if (requests != null) { - for (String item : requests) { - this.addToRequests(item); - } + for (String item : items) { + this.requests.remove(item); } return (A) this; } - public boolean hasRequests() { - return this.requests != null && !(this.requests.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta2DeviceConstraintFluent that = (V1beta2DeviceConstraintFluent) o; - if (!(Objects.equals(distinctAttribute, that.distinctAttribute))) { - return false; - } - if (!(Objects.equals(matchAttribute, that.matchAttribute))) { - return false; + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; } - if (!(Objects.equals(requests, that.requests))) { - return false; + for (String item : items) { + this.requests.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(distinctAttribute, matchAttribute, requests); + public A setToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.set(index, item); + return (A) this; } public String toString() { @@ -228,5 +195,39 @@ public String toString() { return sb.toString(); } - + public A withDistinctAttribute(String distinctAttribute) { + this.distinctAttribute = distinctAttribute; + return (A) this; + } + + public A withMatchAttribute(String matchAttribute) { + this.matchAttribute = matchAttribute; + return (A) this; + } + + public A withRequests(List requests) { + if (requests != null) { + this.requests = new ArrayList(); + for (String item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(String... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (String item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionBuilder.java index 31c8663054..b6ad15370c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceCounterConsumptionBuilder extends V1beta2DeviceCounterConsumptionFluent implements VisitableBuilder{ + + V1beta2DeviceCounterConsumptionFluent fluent; + public V1beta2DeviceCounterConsumptionBuilder() { this(new V1beta2DeviceCounterConsumption()); } @@ -11,17 +14,16 @@ public V1beta2DeviceCounterConsumptionBuilder(V1beta2DeviceCounterConsumptionFlu this(fluent, new V1beta2DeviceCounterConsumption()); } - public V1beta2DeviceCounterConsumptionBuilder(V1beta2DeviceCounterConsumptionFluent fluent,V1beta2DeviceCounterConsumption instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceCounterConsumptionBuilder(V1beta2DeviceCounterConsumption instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceCounterConsumptionFluent fluent; + public V1beta2DeviceCounterConsumptionBuilder(V1beta2DeviceCounterConsumptionFluent fluent,V1beta2DeviceCounterConsumption instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2DeviceCounterConsumption build() { V1beta2DeviceCounterConsumption buildable = new V1beta2DeviceCounterConsumption(); buildable.setCounterSet(fluent.getCounterSet()); @@ -29,5 +31,4 @@ public V1beta2DeviceCounterConsumption build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionFluent.java index e35edd88d5..1c00d849d3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionFluent.java @@ -1,27 +1,49 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; -import java.util.Map; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2DeviceCounterConsumptionFluent> extends BaseFluent{ + + private String counterSet; + private Map counters; + public V1beta2DeviceCounterConsumptionFluent() { } public V1beta2DeviceCounterConsumptionFluent(V1beta2DeviceCounterConsumption instance) { this.copyInstance(instance); } - private String counterSet; - private Map counters; + + public A addToCounters(Map map) { + if (this.counters == null && map != null) { + this.counters = new LinkedHashMap(); + } + if (map != null) { + this.counters.putAll(map); + } + return (A) this; + } + + public A addToCounters(String key,V1beta2Counter value) { + if (this.counters == null && key != null && value != null) { + this.counters = new LinkedHashMap(); + } + if (key != null && value != null) { + this.counters.put(key, value); + } + return (A) this; + } protected void copyInstance(V1beta2DeviceCounterConsumption instance) { instance = instance != null ? instance : new V1beta2DeviceCounterConsumption(); @@ -31,37 +53,44 @@ protected void copyInstance(V1beta2DeviceCounterConsumption instance) { } } + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceCounterConsumptionFluent that = (V1beta2DeviceCounterConsumptionFluent) o; + if (!(Objects.equals(counterSet, that.counterSet))) { + return false; + } + if (!(Objects.equals(counters, that.counters))) { + return false; + } + return true; + } + public String getCounterSet() { return this.counterSet; } - public A withCounterSet(String counterSet) { - this.counterSet = counterSet; - return (A) this; + public Map getCounters() { + return this.counters; } public boolean hasCounterSet() { return this.counterSet != null; } - public A addToCounters(String key,V1beta2Counter value) { - if (this.counters == null && key != null && value != null) { - this.counters = new LinkedHashMap(); - } - if (key != null && value != null) { - this.counters.put(key, value); - } - return (A) this; + public boolean hasCounters() { + return this.counters != null; } - public A addToCounters(Map map) { - if (this.counters == null && map != null) { - this.counters = new LinkedHashMap(); - } - if (map != null) { - this.counters.putAll(map); - } - return (A) this; + public int hashCode() { + return Objects.hash(counterSet, counters); } public A removeFromCounters(String key) { @@ -88,47 +117,6 @@ public A removeFromCounters(Map map) { return (A) this; } - public Map getCounters() { - return this.counters; - } - - public A withCounters(Map counters) { - if (counters == null) { - this.counters = null; - } else { - this.counters = new LinkedHashMap(counters); - } - return (A) this; - } - - public boolean hasCounters() { - return this.counters != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta2DeviceCounterConsumptionFluent that = (V1beta2DeviceCounterConsumptionFluent) o; - if (!(Objects.equals(counterSet, that.counterSet))) { - return false; - } - if (!(Objects.equals(counters, that.counters))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(counterSet, counters); - } - public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -145,5 +133,18 @@ public String toString() { return sb.toString(); } - + public A withCounterSet(String counterSet) { + this.counterSet = counterSet; + return (A) this; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceFluent.java index 0f41380056..8515da9cd5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceFluent.java @@ -1,34 +1,29 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; -import java.lang.Boolean; -import java.util.Optional; -import java.util.Objects; -import java.util.Collection; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2DeviceFluent> extends BaseFluent{ - public V1beta2DeviceFluent() { - } - - public V1beta2DeviceFluent(V1beta2Device instance) { - this.copyInstance(instance); - } + private Boolean allNodes; private Boolean allowMultipleAllocations; private Map attributes; @@ -41,59 +36,72 @@ public V1beta2DeviceFluent(V1beta2Device instance) { private String nodeName; private V1NodeSelectorBuilder nodeSelector; private ArrayList taints; + + public V1beta2DeviceFluent() { + } - protected void copyInstance(V1beta2Device instance) { - instance = instance != null ? instance : new V1beta2Device(); - if (instance != null) { - this.withAllNodes(instance.getAllNodes()); - this.withAllowMultipleAllocations(instance.getAllowMultipleAllocations()); - this.withAttributes(instance.getAttributes()); - this.withBindingConditions(instance.getBindingConditions()); - this.withBindingFailureConditions(instance.getBindingFailureConditions()); - this.withBindsToNode(instance.getBindsToNode()); - this.withCapacity(instance.getCapacity()); - this.withConsumesCounters(instance.getConsumesCounters()); - this.withName(instance.getName()); - this.withNodeName(instance.getNodeName()); - this.withNodeSelector(instance.getNodeSelector()); - this.withTaints(instance.getTaints()); + public V1beta2DeviceFluent(V1beta2Device instance) { + this.copyInstance(instance); + } + + public A addAllToBindingConditions(Collection items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); } + return (A) this; } - public Boolean getAllNodes() { - return this.allNodes; + public A addAllToBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; } - public A withAllNodes(Boolean allNodes) { - this.allNodes = allNodes; + public A addAllToConsumesCounters(Collection items) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } + for (V1beta2DeviceCounterConsumption item : items) { + V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); + } return (A) this; } - public boolean hasAllNodes() { - return this.allNodes != null; + public A addAllToTaints(Collection items) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + for (V1beta2DeviceTaint item : items) { + V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); + } + return (A) this; } - public Boolean getAllowMultipleAllocations() { - return this.allowMultipleAllocations; + public ConsumesCountersNested addNewConsumesCounter() { + return new ConsumesCountersNested(-1, null); } - public A withAllowMultipleAllocations(Boolean allowMultipleAllocations) { - this.allowMultipleAllocations = allowMultipleAllocations; - return (A) this; + public ConsumesCountersNested addNewConsumesCounterLike(V1beta2DeviceCounterConsumption item) { + return new ConsumesCountersNested(-1, item); } - public boolean hasAllowMultipleAllocations() { - return this.allowMultipleAllocations != null; + public TaintsNested addNewTaint() { + return new TaintsNested(-1, null); } - public A addToAttributes(String key,V1beta2DeviceAttribute value) { - if (this.attributes == null && key != null && value != null) { - this.attributes = new LinkedHashMap(); - } - if (key != null && value != null) { - this.attributes.put(key, value); - } - return (A) this; + public TaintsNested addNewTaintLike(V1beta2DeviceTaint item) { + return new TaintsNested(-1, item); } public A addToAttributes(Map map) { @@ -106,695 +114,526 @@ public A addToAttributes(Map map) { return (A) this; } - public A removeFromAttributes(String key) { - if (this.attributes == null) { - return (A) this; + public A addToAttributes(String key,V1beta2DeviceAttribute value) { + if (this.attributes == null && key != null && value != null) { + this.attributes = new LinkedHashMap(); } - if (key != null && this.attributes != null) { - this.attributes.remove(key); + if (key != null && value != null) { + this.attributes.put(key, value); } return (A) this; } - public A removeFromAttributes(Map map) { - if (this.attributes == null) { - return (A) this; + public A addToBindingConditions(String... items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); } - if (map != null) { - for (Object key : map.keySet()) { - if (this.attributes != null) { - this.attributes.remove(key); - } - } + for (String item : items) { + this.bindingConditions.add(item); } return (A) this; } - public Map getAttributes() { - return this.attributes; + public A addToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.add(index, item); + return (A) this; } - public A withAttributes(Map attributes) { - if (attributes == null) { - this.attributes = null; - } else { - this.attributes = new LinkedHashMap(attributes); + public A addToBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); } return (A) this; } - public boolean hasAttributes() { - return this.attributes != null; + public A addToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.add(index, item); + return (A) this; } - public A addToBindingConditions(int index,String item) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + public A addToCapacity(Map map) { + if (this.capacity == null && map != null) { + this.capacity = new LinkedHashMap(); + } + if (map != null) { + this.capacity.putAll(map); } - this.bindingConditions.add(index, item); return (A) this; } - public A setToBindingConditions(int index,String item) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + public A addToCapacity(String key,V1beta2DeviceCapacity value) { + if (this.capacity == null && key != null && value != null) { + this.capacity = new LinkedHashMap(); + } + if (key != null && value != null) { + this.capacity.put(key, value); } - this.bindingConditions.set(index, item); return (A) this; } - public A addToBindingConditions(String... items) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + public A addToConsumesCounters(V1beta2DeviceCounterConsumption... items) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); } - for (String item : items) { - this.bindingConditions.add(item); + for (V1beta2DeviceCounterConsumption item : items) { + V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); } return (A) this; } - public A addAllToBindingConditions(Collection items) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); + public A addToConsumesCounters(int index,V1beta2DeviceCounterConsumption item) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); } - for (String item : items) { - this.bindingConditions.add(item); + V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(index, builder); } return (A) this; } - public A removeFromBindingConditions(String... items) { - if (this.bindingConditions == null) { - return (A) this; + public A addToTaints(V1beta2DeviceTaint... items) { + if (this.taints == null) { + this.taints = new ArrayList(); } - for (String item : items) { - this.bindingConditions.remove(item); + for (V1beta2DeviceTaint item : items) { + V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); } return (A) this; } - public A removeAllFromBindingConditions(Collection items) { - if (this.bindingConditions == null) { - return (A) this; + public A addToTaints(int index,V1beta2DeviceTaint item) { + if (this.taints == null) { + this.taints = new ArrayList(); } - for (String item : items) { - this.bindingConditions.remove(item); + V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.add(index, builder); } return (A) this; } - public List getBindingConditions() { - return this.bindingConditions; + public V1beta2DeviceCounterConsumption buildConsumesCounter(int index) { + return this.consumesCounters.get(index).build(); } - public String getBindingCondition(int index) { - return this.bindingConditions.get(index); + public List buildConsumesCounters() { + return this.consumesCounters != null ? build(consumesCounters) : null; } - public String getFirstBindingCondition() { - return this.bindingConditions.get(0); + public V1beta2DeviceCounterConsumption buildFirstConsumesCounter() { + return this.consumesCounters.get(0).build(); } - public String getLastBindingCondition() { - return this.bindingConditions.get(bindingConditions.size() - 1); + public V1beta2DeviceTaint buildFirstTaint() { + return this.taints.get(0).build(); } - public String getMatchingBindingCondition(Predicate predicate) { - for (String item : bindingConditions) { + public V1beta2DeviceCounterConsumption buildLastConsumesCounter() { + return this.consumesCounters.get(consumesCounters.size() - 1).build(); + } + + public V1beta2DeviceTaint buildLastTaint() { + return this.taints.get(taints.size() - 1).build(); + } + + public V1beta2DeviceCounterConsumption buildMatchingConsumesCounter(Predicate predicate) { + for (V1beta2DeviceCounterConsumptionBuilder item : consumesCounters) { if (predicate.test(item)) { - return item; + return item.build(); } } return null; } - public boolean hasMatchingBindingCondition(Predicate predicate) { - for (String item : bindingConditions) { + public V1beta2DeviceTaint buildMatchingTaint(Predicate predicate) { + for (V1beta2DeviceTaintBuilder item : taints) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; - } - - public A withBindingConditions(List bindingConditions) { - if (bindingConditions != null) { - this.bindingConditions = new ArrayList(); - for (String item : bindingConditions) { - this.addToBindingConditions(item); - } - } else { - this.bindingConditions = null; - } - return (A) this; + return null; } - public A withBindingConditions(String... bindingConditions) { - if (this.bindingConditions != null) { - this.bindingConditions.clear(); - _visitables.remove("bindingConditions"); - } - if (bindingConditions != null) { - for (String item : bindingConditions) { - this.addToBindingConditions(item); - } - } - return (A) this; + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; } - public boolean hasBindingConditions() { - return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); + public V1beta2DeviceTaint buildTaint(int index) { + return this.taints.get(index).build(); } - public A addToBindingFailureConditions(int index,String item) { - if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); - } - this.bindingFailureConditions.add(index, item); - return (A) this; + public List buildTaints() { + return this.taints != null ? build(taints) : null; } - public A setToBindingFailureConditions(int index,String item) { - if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + protected void copyInstance(V1beta2Device instance) { + instance = instance != null ? instance : new V1beta2Device(); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withAllowMultipleAllocations(instance.getAllowMultipleAllocations()); + this.withAttributes(instance.getAttributes()); + this.withBindingConditions(instance.getBindingConditions()); + this.withBindingFailureConditions(instance.getBindingFailureConditions()); + this.withBindsToNode(instance.getBindsToNode()); + this.withCapacity(instance.getCapacity()); + this.withConsumesCounters(instance.getConsumesCounters()); + this.withName(instance.getName()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withTaints(instance.getTaints()); } - this.bindingFailureConditions.set(index, item); - return (A) this; } - public A addToBindingFailureConditions(String... items) { - if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); - } - for (String item : items) { - this.bindingFailureConditions.add(item); + public ConsumesCountersNested editConsumesCounter(int index) { + if (consumesCounters.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "consumesCounters")); } - return (A) this; + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); } - public A addAllToBindingFailureConditions(Collection items) { - if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); - } - for (String item : items) { - this.bindingFailureConditions.add(item); + public ConsumesCountersNested editFirstConsumesCounter() { + if (consumesCounters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "consumesCounters")); } - return (A) this; + return this.setNewConsumesCounterLike(0, this.buildConsumesCounter(0)); } - public A removeFromBindingFailureConditions(String... items) { - if (this.bindingFailureConditions == null) { - return (A) this; - } - for (String item : items) { - this.bindingFailureConditions.remove(item); + public TaintsNested editFirstTaint() { + if (taints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "taints")); } - return (A) this; + return this.setNewTaintLike(0, this.buildTaint(0)); } - public A removeAllFromBindingFailureConditions(Collection items) { - if (this.bindingFailureConditions == null) { - return (A) this; - } - for (String item : items) { - this.bindingFailureConditions.remove(item); + public ConsumesCountersNested editLastConsumesCounter() { + int index = consumesCounters.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "consumesCounters")); } - return (A) this; - } - - public List getBindingFailureConditions() { - return this.bindingFailureConditions; - } - - public String getBindingFailureCondition(int index) { - return this.bindingFailureConditions.get(index); - } - - public String getFirstBindingFailureCondition() { - return this.bindingFailureConditions.get(0); - } - - public String getLastBindingFailureCondition() { - return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); - } - - public String getMatchingBindingFailureCondition(Predicate predicate) { - for (String item : bindingFailureConditions) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingBindingFailureCondition(Predicate predicate) { - for (String item : bindingFailureConditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); } - public A withBindingFailureConditions(List bindingFailureConditions) { - if (bindingFailureConditions != null) { - this.bindingFailureConditions = new ArrayList(); - for (String item : bindingFailureConditions) { - this.addToBindingFailureConditions(item); - } - } else { - this.bindingFailureConditions = null; + public TaintsNested editLastTaint() { + int index = taints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "taints")); } - return (A) this; + return this.setNewTaintLike(index, this.buildTaint(index)); } - public A withBindingFailureConditions(String... bindingFailureConditions) { - if (this.bindingFailureConditions != null) { - this.bindingFailureConditions.clear(); - _visitables.remove("bindingFailureConditions"); - } - if (bindingFailureConditions != null) { - for (String item : bindingFailureConditions) { - this.addToBindingFailureConditions(item); + public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { + int index = -1; + for (int i = 0;i < consumesCounters.size();i++) { + if (predicate.test(consumesCounters.get(i))) { + index = i; + break; } } - return (A) this; - } - - public boolean hasBindingFailureConditions() { - return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); - } - - public Boolean getBindsToNode() { - return this.bindsToNode; - } - - public A withBindsToNode(Boolean bindsToNode) { - this.bindsToNode = bindsToNode; - return (A) this; - } - - public boolean hasBindsToNode() { - return this.bindsToNode != null; - } - - public A addToCapacity(String key,V1beta2DeviceCapacity value) { - if (this.capacity == null && key != null && value != null) { - this.capacity = new LinkedHashMap(); - } - if (key != null && value != null) { - this.capacity.put(key, value); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "consumesCounters")); } - return (A) this; + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); } - public A addToCapacity(Map map) { - if (this.capacity == null && map != null) { - this.capacity = new LinkedHashMap(); + public TaintsNested editMatchingTaint(Predicate predicate) { + int index = -1; + for (int i = 0;i < taints.size();i++) { + if (predicate.test(taints.get(i))) { + index = i; + break; + } } - if (map != null) { - this.capacity.putAll(map); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "taints")); } - return (A) this; + return this.setNewTaintLike(index, this.buildTaint(index)); } - public A removeFromCapacity(String key) { - if (this.capacity == null) { - return (A) this; - } - if (key != null && this.capacity != null) { - this.capacity.remove(key); - } - return (A) this; + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); } - public A removeFromCapacity(Map map) { - if (this.capacity == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.capacity != null) { - this.capacity.remove(key); - } - } - } - return (A) this; + public NodeSelectorNested editOrNewNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); } - public Map getCapacity() { - return this.capacity; + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); } - public A withCapacity(Map capacity) { - if (capacity == null) { - this.capacity = null; - } else { - this.capacity = new LinkedHashMap(capacity); + public TaintsNested editTaint(int index) { + if (taints.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "taints")); } - return (A) this; - } - - public boolean hasCapacity() { - return this.capacity != null; + return this.setNewTaintLike(index, this.buildTaint(index)); } - public A addToConsumesCounters(int index,V1beta2DeviceCounterConsumption item) { - if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); - if (index < 0 || index >= consumesCounters.size()) { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(builder); - } else { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(index, builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A setToConsumesCounters(int index,V1beta2DeviceCounterConsumption item) { - if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + if (!(super.equals(o))) { + return false; } - V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); - if (index < 0 || index >= consumesCounters.size()) { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(builder); - } else { - _visitables.get("consumesCounters").add(builder); - consumesCounters.set(index, builder); + V1beta2DeviceFluent that = (V1beta2DeviceFluent) o; + if (!(Objects.equals(allNodes, that.allNodes))) { + return false; } - return (A) this; - } - - public A addToConsumesCounters(V1beta2DeviceCounterConsumption... items) { - if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + if (!(Objects.equals(allowMultipleAllocations, that.allowMultipleAllocations))) { + return false; } - for (V1beta2DeviceCounterConsumption item : items) { - V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); - _visitables.get("consumesCounters").add(builder); - this.consumesCounters.add(builder); + if (!(Objects.equals(attributes, that.attributes))) { + return false; } - return (A) this; - } - - public A addAllToConsumesCounters(Collection items) { - if (this.consumesCounters == null) { - this.consumesCounters = new ArrayList(); + if (!(Objects.equals(bindingConditions, that.bindingConditions))) { + return false; } - for (V1beta2DeviceCounterConsumption item : items) { - V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); - _visitables.get("consumesCounters").add(builder); - this.consumesCounters.add(builder); + if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { + return false; } - return (A) this; - } - - public A removeFromConsumesCounters(V1beta2DeviceCounterConsumption... items) { - if (this.consumesCounters == null) { - return (A) this; + if (!(Objects.equals(bindsToNode, that.bindsToNode))) { + return false; } - for (V1beta2DeviceCounterConsumption item : items) { - V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); - _visitables.get("consumesCounters").remove(builder); - this.consumesCounters.remove(builder); + if (!(Objects.equals(capacity, that.capacity))) { + return false; } - return (A) this; - } - - public A removeAllFromConsumesCounters(Collection items) { - if (this.consumesCounters == null) { - return (A) this; + if (!(Objects.equals(consumesCounters, that.consumesCounters))) { + return false; } - for (V1beta2DeviceCounterConsumption item : items) { - V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); - _visitables.get("consumesCounters").remove(builder); - this.consumesCounters.remove(builder); + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; } - return (A) this; - } - - public A removeMatchingFromConsumesCounters(Predicate predicate) { - if (consumesCounters == null) { - return (A) this; + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; } - Iterator each = consumesCounters.iterator(); - List visitables = _visitables.get("consumesCounters"); - while (each.hasNext()) { - V1beta2DeviceCounterConsumptionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (!(Objects.equals(taints, that.taints))) { + return false; } - return (A) this; - } - - public List buildConsumesCounters() { - return this.consumesCounters != null ? build(consumesCounters) : null; + return true; } - public V1beta2DeviceCounterConsumption buildConsumesCounter(int index) { - return this.consumesCounters.get(index).build(); + public Boolean getAllNodes() { + return this.allNodes; } - public V1beta2DeviceCounterConsumption buildFirstConsumesCounter() { - return this.consumesCounters.get(0).build(); + public Boolean getAllowMultipleAllocations() { + return this.allowMultipleAllocations; } - public V1beta2DeviceCounterConsumption buildLastConsumesCounter() { - return this.consumesCounters.get(consumesCounters.size() - 1).build(); + public Map getAttributes() { + return this.attributes; } - public V1beta2DeviceCounterConsumption buildMatchingConsumesCounter(Predicate predicate) { - for (V1beta2DeviceCounterConsumptionBuilder item : consumesCounters) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getBindingCondition(int index) { + return this.bindingConditions.get(index); } - public boolean hasMatchingConsumesCounter(Predicate predicate) { - for (V1beta2DeviceCounterConsumptionBuilder item : consumesCounters) { - if (predicate.test(item)) { - return true; - } - } - return false; + public List getBindingConditions() { + return this.bindingConditions; } - public A withConsumesCounters(List consumesCounters) { - if (this.consumesCounters != null) { - this._visitables.get("consumesCounters").clear(); - } - if (consumesCounters != null) { - this.consumesCounters = new ArrayList(); - for (V1beta2DeviceCounterConsumption item : consumesCounters) { - this.addToConsumesCounters(item); - } - } else { - this.consumesCounters = null; - } - return (A) this; + public String getBindingFailureCondition(int index) { + return this.bindingFailureConditions.get(index); } - public A withConsumesCounters(V1beta2DeviceCounterConsumption... consumesCounters) { - if (this.consumesCounters != null) { - this.consumesCounters.clear(); - _visitables.remove("consumesCounters"); - } - if (consumesCounters != null) { - for (V1beta2DeviceCounterConsumption item : consumesCounters) { - this.addToConsumesCounters(item); - } - } - return (A) this; + public List getBindingFailureConditions() { + return this.bindingFailureConditions; } - public boolean hasConsumesCounters() { - return this.consumesCounters != null && !(this.consumesCounters.isEmpty()); + public Boolean getBindsToNode() { + return this.bindsToNode; } - public ConsumesCountersNested addNewConsumesCounter() { - return new ConsumesCountersNested(-1, null); + public Map getCapacity() { + return this.capacity; } - public ConsumesCountersNested addNewConsumesCounterLike(V1beta2DeviceCounterConsumption item) { - return new ConsumesCountersNested(-1, item); + public String getFirstBindingCondition() { + return this.bindingConditions.get(0); } - public ConsumesCountersNested setNewConsumesCounterLike(int index,V1beta2DeviceCounterConsumption item) { - return new ConsumesCountersNested(index, item); + public String getFirstBindingFailureCondition() { + return this.bindingFailureConditions.get(0); } - public ConsumesCountersNested editConsumesCounter(int index) { - if (index <= consumesCounters.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "consumesCounters")); - } - return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + public String getLastBindingCondition() { + return this.bindingConditions.get(bindingConditions.size() - 1); } - public ConsumesCountersNested editFirstConsumesCounter() { - if (consumesCounters.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "consumesCounters")); - } - return this.setNewConsumesCounterLike(0, this.buildConsumesCounter(0)); + public String getLastBindingFailureCondition() { + return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); } - public ConsumesCountersNested editLastConsumesCounter() { - int index = consumesCounters.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "consumesCounters")); - } - return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + public String getMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { - int index = -1; - for (int i = 0;i < consumesCounters.size();i++) { - if (predicate.test(consumesCounters.get(i))) { - index = i; - break; + public String getMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return item; + } } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "consumesCounters")); - } - return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + return null; } public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + public String getNodeName() { + return this.nodeName; } - public boolean hasName() { - return this.name != null; + public boolean hasAllNodes() { + return this.allNodes != null; } - public String getNodeName() { - return this.nodeName; + public boolean hasAllowMultipleAllocations() { + return this.allowMultipleAllocations != null; } - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; + public boolean hasAttributes() { + return this.attributes != null; } - public boolean hasNodeName() { - return this.nodeName != null; + public boolean hasBindingConditions() { + return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); } - public V1NodeSelector buildNodeSelector() { - return this.nodeSelector != null ? this.nodeSelector.build() : null; + public boolean hasBindingFailureConditions() { + return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); } - public A withNodeSelector(V1NodeSelector nodeSelector) { - this._visitables.remove("nodeSelector"); - if (nodeSelector != null) { - this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); - this._visitables.get("nodeSelector").add(this.nodeSelector); - } else { - this.nodeSelector = null; - this._visitables.get("nodeSelector").remove(this.nodeSelector); - } - return (A) this; + public boolean hasBindsToNode() { + return this.bindsToNode != null; } - public boolean hasNodeSelector() { - return this.nodeSelector != null; + public boolean hasCapacity() { + return this.capacity != null; } - public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); + public boolean hasConsumesCounters() { + return this.consumesCounters != null && !(this.consumesCounters.isEmpty()); } - public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); + public boolean hasMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public NodeSelectorNested editNodeSelector() { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public NodeSelectorNested editOrNewNodeSelector() { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + public boolean hasMatchingConsumesCounter(Predicate predicate) { + for (V1beta2DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); + public boolean hasMatchingTaint(Predicate predicate) { + for (V1beta2DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addToTaints(int index,V1beta2DeviceTaint item) { - if (this.taints == null) { - this.taints = new ArrayList(); - } - V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); - if (index < 0 || index >= taints.size()) { - _visitables.get("taints").add(builder); - taints.add(builder); - } else { - _visitables.get("taints").add(builder); - taints.add(index, builder); - } - return (A) this; + public boolean hasName() { + return this.name != null; } - public A setToTaints(int index,V1beta2DeviceTaint item) { - if (this.taints == null) { - this.taints = new ArrayList(); - } - V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); - if (index < 0 || index >= taints.size()) { - _visitables.get("taints").add(builder); - taints.add(builder); - } else { - _visitables.get("taints").add(builder); - taints.set(index, builder); - } - return (A) this; + public boolean hasNodeName() { + return this.nodeName != null; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; } - public A addToTaints(V1beta2DeviceTaint... items) { - if (this.taints == null) { - this.taints = new ArrayList(); + public boolean hasTaints() { + return this.taints != null && !(this.taints.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeName, nodeSelector, taints); + } + + public A removeAllFromBindingConditions(Collection items) { + if (this.bindingConditions == null) { + return (A) this; } - for (V1beta2DeviceTaint item : items) { - V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); - _visitables.get("taints").add(builder); - this.taints.add(builder); + for (String item : items) { + this.bindingConditions.remove(item); } return (A) this; } - public A addAllToTaints(Collection items) { - if (this.taints == null) { - this.taints = new ArrayList(); + public A removeAllFromBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + return (A) this; } - for (V1beta2DeviceTaint item : items) { - V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); - _visitables.get("taints").add(builder); - this.taints.add(builder); + for (String item : items) { + this.bindingFailureConditions.remove(item); } return (A) this; } - public A removeFromTaints(V1beta2DeviceTaint... items) { - if (this.taints == null) { + public A removeAllFromConsumesCounters(Collection items) { + if (this.consumesCounters == null) { return (A) this; } - for (V1beta2DeviceTaint item : items) { - V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); - _visitables.get("taints").remove(builder); - this.taints.remove(builder); + for (V1beta2DeviceCounterConsumption item : items) { + V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").remove(builder); + this.consumesCounters.remove(builder); } return (A) this; } @@ -811,188 +650,182 @@ public A removeAllFromTaints(Collection items) { return (A) this; } - public A removeMatchingFromTaints(Predicate predicate) { - if (taints == null) { + public A removeFromAttributes(String key) { + if (this.attributes == null) { return (A) this; } - Iterator each = taints.iterator(); - List visitables = _visitables.get("taints"); - while (each.hasNext()) { - V1beta2DeviceTaintBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (key != null && this.attributes != null) { + this.attributes.remove(key); } return (A) this; } - public List buildTaints() { - return this.taints != null ? build(taints) : null; - } - - public V1beta2DeviceTaint buildTaint(int index) { - return this.taints.get(index).build(); - } - - public V1beta2DeviceTaint buildFirstTaint() { - return this.taints.get(0).build(); - } - - public V1beta2DeviceTaint buildLastTaint() { - return this.taints.get(taints.size() - 1).build(); - } - - public V1beta2DeviceTaint buildMatchingTaint(Predicate predicate) { - for (V1beta2DeviceTaintBuilder item : taints) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingTaint(Predicate predicate) { - for (V1beta2DeviceTaintBuilder item : taints) { - if (predicate.test(item)) { - return true; + public A removeFromAttributes(Map map) { + if (this.attributes == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.attributes != null) { + this.attributes.remove(key); } } - return false; + } + return (A) this; } - public A withTaints(List taints) { - if (this.taints != null) { - this._visitables.get("taints").clear(); + public A removeFromBindingConditions(String... items) { + if (this.bindingConditions == null) { + return (A) this; } - if (taints != null) { - this.taints = new ArrayList(); - for (V1beta2DeviceTaint item : taints) { - this.addToTaints(item); - } - } else { - this.taints = null; + for (String item : items) { + this.bindingConditions.remove(item); } return (A) this; } - public A withTaints(V1beta2DeviceTaint... taints) { - if (this.taints != null) { - this.taints.clear(); - _visitables.remove("taints"); + public A removeFromBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + return (A) this; } - if (taints != null) { - for (V1beta2DeviceTaint item : taints) { - this.addToTaints(item); - } + for (String item : items) { + this.bindingFailureConditions.remove(item); } return (A) this; } - public boolean hasTaints() { - return this.taints != null && !(this.taints.isEmpty()); - } - - public TaintsNested addNewTaint() { - return new TaintsNested(-1, null); - } - - public TaintsNested addNewTaintLike(V1beta2DeviceTaint item) { - return new TaintsNested(-1, item); - } - - public TaintsNested setNewTaintLike(int index,V1beta2DeviceTaint item) { - return new TaintsNested(index, item); - } - - public TaintsNested editTaint(int index) { - if (index <= taints.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "taints")); + public A removeFromCapacity(String key) { + if (this.capacity == null) { + return (A) this; } - return this.setNewTaintLike(index, this.buildTaint(index)); - } - - public TaintsNested editFirstTaint() { - if (taints.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "taints")); + if (key != null && this.capacity != null) { + this.capacity.remove(key); } - return this.setNewTaintLike(0, this.buildTaint(0)); + return (A) this; } - public TaintsNested editLastTaint() { - int index = taints.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "taints")); + public A removeFromCapacity(Map map) { + if (this.capacity == null) { + return (A) this; } - return this.setNewTaintLike(index, this.buildTaint(index)); - } - - public TaintsNested editMatchingTaint(Predicate predicate) { - int index = -1; - for (int i = 0;i < taints.size();i++) { - if (predicate.test(taints.get(i))) { - index = i; - break; + if (map != null) { + for (Object key : map.keySet()) { + if (this.capacity != null) { + this.capacity.remove(key); + } } } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "taints")); - } - return this.setNewTaintLike(index, this.buildTaint(index)); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta2DeviceFluent that = (V1beta2DeviceFluent) o; - if (!(Objects.equals(allNodes, that.allNodes))) { - return false; + public A removeFromConsumesCounters(V1beta2DeviceCounterConsumption... items) { + if (this.consumesCounters == null) { + return (A) this; } - if (!(Objects.equals(allowMultipleAllocations, that.allowMultipleAllocations))) { - return false; + for (V1beta2DeviceCounterConsumption item : items) { + V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").remove(builder); + this.consumesCounters.remove(builder); } - if (!(Objects.equals(attributes, that.attributes))) { - return false; + return (A) this; + } + + public A removeFromTaints(V1beta2DeviceTaint... items) { + if (this.taints == null) { + return (A) this; } - if (!(Objects.equals(bindingConditions, that.bindingConditions))) { - return false; + for (V1beta2DeviceTaint item : items) { + V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); + _visitables.get("taints").remove(builder); + this.taints.remove(builder); } - if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { - return false; + return (A) this; + } + + public A removeMatchingFromConsumesCounters(Predicate predicate) { + if (consumesCounters == null) { + return (A) this; } - if (!(Objects.equals(bindsToNode, that.bindsToNode))) { - return false; + Iterator each = consumesCounters.iterator(); + List visitables = _visitables.get("consumesCounters"); + while (each.hasNext()) { + V1beta2DeviceCounterConsumptionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - if (!(Objects.equals(capacity, that.capacity))) { - return false; + return (A) this; + } + + public A removeMatchingFromTaints(Predicate predicate) { + if (taints == null) { + return (A) this; } - if (!(Objects.equals(consumesCounters, that.consumesCounters))) { - return false; + Iterator each = taints.iterator(); + List visitables = _visitables.get("taints"); + while (each.hasNext()) { + V1beta2DeviceTaintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - if (!(Objects.equals(name, that.name))) { - return false; + return (A) this; + } + + public ConsumesCountersNested setNewConsumesCounterLike(int index,V1beta2DeviceCounterConsumption item) { + return new ConsumesCountersNested(index, item); + } + + public TaintsNested setNewTaintLike(int index,V1beta2DeviceTaint item) { + return new TaintsNested(index, item); + } + + public A setToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); } - if (!(Objects.equals(nodeName, that.nodeName))) { - return false; + this.bindingConditions.set(index, item); + return (A) this; + } + + public A setToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); } - if (!(Objects.equals(nodeSelector, that.nodeSelector))) { - return false; + this.bindingFailureConditions.set(index, item); + return (A) this; + } + + public A setToConsumesCounters(int index,V1beta2DeviceCounterConsumption item) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); } - if (!(Objects.equals(taints, that.taints))) { - return false; + V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); + if (index < 0 || index >= consumesCounters.size()) { + _visitables.get("consumesCounters").add(builder); + consumesCounters.add(builder); + } else { + _visitables.get("consumesCounters").add(builder); + consumesCounters.set(index, builder); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeName, nodeSelector, taints); + public A setToTaints(int index,V1beta2DeviceTaint item) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); + if (index < 0 || index >= taints.size()) { + _visitables.get("taints").add(builder); + taints.add(builder); + } else { + _visitables.get("taints").add(builder); + taints.set(index, builder); + } + return (A) this; } public String toString() { @@ -1065,21 +898,192 @@ public A withAllNodes() { return withAllNodes(true); } + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + public A withAllowMultipleAllocations() { return withAllowMultipleAllocations(true); } + public A withAllowMultipleAllocations(Boolean allowMultipleAllocations) { + this.allowMultipleAllocations = allowMultipleAllocations; + return (A) this; + } + + public A withAttributes(Map attributes) { + if (attributes == null) { + this.attributes = null; + } else { + this.attributes = new LinkedHashMap(attributes); + } + return (A) this; + } + + public A withBindingConditions(List bindingConditions) { + if (bindingConditions != null) { + this.bindingConditions = new ArrayList(); + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } else { + this.bindingConditions = null; + } + return (A) this; + } + + public A withBindingConditions(String... bindingConditions) { + if (this.bindingConditions != null) { + this.bindingConditions.clear(); + _visitables.remove("bindingConditions"); + } + if (bindingConditions != null) { + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } + return (A) this; + } + + public A withBindingFailureConditions(List bindingFailureConditions) { + if (bindingFailureConditions != null) { + this.bindingFailureConditions = new ArrayList(); + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } else { + this.bindingFailureConditions = null; + } + return (A) this; + } + + public A withBindingFailureConditions(String... bindingFailureConditions) { + if (this.bindingFailureConditions != null) { + this.bindingFailureConditions.clear(); + _visitables.remove("bindingFailureConditions"); + } + if (bindingFailureConditions != null) { + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } + return (A) this; + } + public A withBindsToNode() { return withBindsToNode(true); } + + public A withBindsToNode(Boolean bindsToNode) { + this.bindsToNode = bindsToNode; + return (A) this; + } + + public A withCapacity(Map capacity) { + if (capacity == null) { + this.capacity = null; + } else { + this.capacity = new LinkedHashMap(capacity); + } + return (A) this; + } + + public A withConsumesCounters(List consumesCounters) { + if (this.consumesCounters != null) { + this._visitables.get("consumesCounters").clear(); + } + if (consumesCounters != null) { + this.consumesCounters = new ArrayList(); + for (V1beta2DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } else { + this.consumesCounters = null; + } + return (A) this; + } + + public A withConsumesCounters(V1beta2DeviceCounterConsumption... consumesCounters) { + if (this.consumesCounters != null) { + this.consumesCounters.clear(); + _visitables.remove("consumesCounters"); + } + if (consumesCounters != null) { + for (V1beta2DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + public A withNodeSelector(V1NodeSelector nodeSelector) { + this._visitables.remove("nodeSelector"); + if (nodeSelector != null) { + this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); + this._visitables.get("nodeSelector").add(this.nodeSelector); + } else { + this.nodeSelector = null; + this._visitables.get("nodeSelector").remove(this.nodeSelector); + } + return (A) this; + } + + public A withTaints(List taints) { + if (this.taints != null) { + this._visitables.get("taints").clear(); + } + if (taints != null) { + this.taints = new ArrayList(); + for (V1beta2DeviceTaint item : taints) { + this.addToTaints(item); + } + } else { + this.taints = null; + } + return (A) this; + } + + public A withTaints(V1beta2DeviceTaint... taints) { + if (this.taints != null) { + this.taints.clear(); + _visitables.remove("taints"); + } + if (taints != null) { + for (V1beta2DeviceTaint item : taints) { + this.addToTaints(item); + } + } + return (A) this; + } public class ConsumesCountersNested extends V1beta2DeviceCounterConsumptionFluent> implements Nested{ + + V1beta2DeviceCounterConsumptionBuilder builder; + int index; + ConsumesCountersNested(int index,V1beta2DeviceCounterConsumption item) { this.index = index; this.builder = new V1beta2DeviceCounterConsumptionBuilder(this, item); } - V1beta2DeviceCounterConsumptionBuilder builder; - int index; - + public N and() { return (N) V1beta2DeviceFluent.this.setToConsumesCounters(index, builder.build()); } @@ -1088,14 +1092,15 @@ public N endConsumesCounter() { return and(); } - } public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + NodeSelectorNested(V1NodeSelector item) { this.builder = new V1NodeSelectorBuilder(this, item); } - V1NodeSelectorBuilder builder; - + public N and() { return (N) V1beta2DeviceFluent.this.withNodeSelector(builder.build()); } @@ -1104,16 +1109,17 @@ public N endNodeSelector() { return and(); } - } public class TaintsNested extends V1beta2DeviceTaintFluent> implements Nested{ + + V1beta2DeviceTaintBuilder builder; + int index; + TaintsNested(int index,V1beta2DeviceTaint item) { this.index = index; this.builder = new V1beta2DeviceTaintBuilder(this, item); } - V1beta2DeviceTaintBuilder builder; - int index; - + public N and() { return (N) V1beta2DeviceFluent.this.setToTaints(index, builder.build()); } @@ -1122,7 +1128,5 @@ public N endTaint() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultBuilder.java index 769dd5c31c..9270a90cb9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceRequestAllocationResultBuilder extends V1beta2DeviceRequestAllocationResultFluent implements VisitableBuilder{ + + V1beta2DeviceRequestAllocationResultFluent fluent; + public V1beta2DeviceRequestAllocationResultBuilder() { this(new V1beta2DeviceRequestAllocationResult()); } @@ -11,17 +14,16 @@ public V1beta2DeviceRequestAllocationResultBuilder(V1beta2DeviceRequestAllocatio this(fluent, new V1beta2DeviceRequestAllocationResult()); } - public V1beta2DeviceRequestAllocationResultBuilder(V1beta2DeviceRequestAllocationResultFluent fluent,V1beta2DeviceRequestAllocationResult instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceRequestAllocationResultBuilder(V1beta2DeviceRequestAllocationResult instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceRequestAllocationResultFluent fluent; + public V1beta2DeviceRequestAllocationResultBuilder(V1beta2DeviceRequestAllocationResultFluent fluent,V1beta2DeviceRequestAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2DeviceRequestAllocationResult build() { V1beta2DeviceRequestAllocationResult buildable = new V1beta2DeviceRequestAllocationResult(); buildable.setAdminAccess(fluent.getAdminAccess()); @@ -37,5 +39,4 @@ public V1beta2DeviceRequestAllocationResult build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultFluent.java index f61e399ece..74d8df1c76 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultFluent.java @@ -1,34 +1,29 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; -import java.lang.Boolean; -import io.kubernetes.client.custom.Quantity; -import java.util.Objects; -import java.util.Collection; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2DeviceRequestAllocationResultFluent> extends BaseFluent{ - public V1beta2DeviceRequestAllocationResultFluent() { - } - - public V1beta2DeviceRequestAllocationResultFluent(V1beta2DeviceRequestAllocationResult instance) { - this.copyInstance(instance); - } + private Boolean adminAccess; private List bindingConditions; private List bindingFailureConditions; @@ -39,62 +34,14 @@ public V1beta2DeviceRequestAllocationResultFluent(V1beta2DeviceRequestAllocation private String request; private String shareID; private ArrayList tolerations; - - protected void copyInstance(V1beta2DeviceRequestAllocationResult instance) { - instance = instance != null ? instance : new V1beta2DeviceRequestAllocationResult(); - if (instance != null) { - this.withAdminAccess(instance.getAdminAccess()); - this.withBindingConditions(instance.getBindingConditions()); - this.withBindingFailureConditions(instance.getBindingFailureConditions()); - this.withConsumedCapacity(instance.getConsumedCapacity()); - this.withDevice(instance.getDevice()); - this.withDriver(instance.getDriver()); - this.withPool(instance.getPool()); - this.withRequest(instance.getRequest()); - this.withShareID(instance.getShareID()); - this.withTolerations(instance.getTolerations()); - } - } - - public Boolean getAdminAccess() { - return this.adminAccess; - } - - public A withAdminAccess(Boolean adminAccess) { - this.adminAccess = adminAccess; - return (A) this; - } - - public boolean hasAdminAccess() { - return this.adminAccess != null; - } - - public A addToBindingConditions(int index,String item) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); - } - this.bindingConditions.add(index, item); - return (A) this; - } - - public A setToBindingConditions(int index,String item) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); - } - this.bindingConditions.set(index, item); - return (A) this; + + public V1beta2DeviceRequestAllocationResultFluent() { } - public A addToBindingConditions(String... items) { - if (this.bindingConditions == null) { - this.bindingConditions = new ArrayList(); - } - for (String item : items) { - this.bindingConditions.add(item); - } - return (A) this; + public V1beta2DeviceRequestAllocationResultFluent(V1beta2DeviceRequestAllocationResult instance) { + this.copyInstance(instance); } - + public A addAllToBindingConditions(Collection items) { if (this.bindingConditions == null) { this.bindingConditions = new ArrayList(); @@ -105,389 +52,410 @@ public A addAllToBindingConditions(Collection items) { return (A) this; } - public A removeFromBindingConditions(String... items) { - if (this.bindingConditions == null) { - return (A) this; + public A addAllToBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); } for (String item : items) { - this.bindingConditions.remove(item); + this.bindingFailureConditions.add(item); } return (A) this; } - public A removeAllFromBindingConditions(Collection items) { - if (this.bindingConditions == null) { - return (A) this; + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - for (String item : items) { - this.bindingConditions.remove(item); + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } return (A) this; } - public List getBindingConditions() { - return this.bindingConditions; - } - - public String getBindingCondition(int index) { - return this.bindingConditions.get(index); - } - - public String getFirstBindingCondition() { - return this.bindingConditions.get(0); - } - - public String getLastBindingCondition() { - return this.bindingConditions.get(bindingConditions.size() - 1); - } - - public String getMatchingBindingCondition(Predicate predicate) { - for (String item : bindingConditions) { - if (predicate.test(item)) { - return item; - } - } - return null; + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); } - public boolean hasMatchingBindingCondition(Predicate predicate) { - for (String item : bindingConditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public TolerationsNested addNewTolerationLike(V1beta2DeviceToleration item) { + return new TolerationsNested(-1, item); } - public A withBindingConditions(List bindingConditions) { - if (bindingConditions != null) { - this.bindingConditions = new ArrayList(); - for (String item : bindingConditions) { - this.addToBindingConditions(item); - } - } else { - this.bindingConditions = null; + public A addToBindingConditions(String... items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); } return (A) this; } - public A withBindingConditions(String... bindingConditions) { - if (this.bindingConditions != null) { - this.bindingConditions.clear(); - _visitables.remove("bindingConditions"); - } - if (bindingConditions != null) { - for (String item : bindingConditions) { - this.addToBindingConditions(item); - } + public A addToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); } + this.bindingConditions.add(index, item); return (A) this; } - public boolean hasBindingConditions() { - return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); - } - - public A addToBindingFailureConditions(int index,String item) { + public A addToBindingFailureConditions(String... items) { if (this.bindingFailureConditions == null) { this.bindingFailureConditions = new ArrayList(); } - this.bindingFailureConditions.add(index, item); + for (String item : items) { + this.bindingFailureConditions.add(item); + } return (A) this; } - public A setToBindingFailureConditions(int index,String item) { + public A addToBindingFailureConditions(int index,String item) { if (this.bindingFailureConditions == null) { this.bindingFailureConditions = new ArrayList(); } - this.bindingFailureConditions.set(index, item); + this.bindingFailureConditions.add(index, item); return (A) this; } - public A addToBindingFailureConditions(String... items) { - if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + public A addToConsumedCapacity(Map map) { + if (this.consumedCapacity == null && map != null) { + this.consumedCapacity = new LinkedHashMap(); } - for (String item : items) { - this.bindingFailureConditions.add(item); + if (map != null) { + this.consumedCapacity.putAll(map); } return (A) this; } - public A addAllToBindingFailureConditions(Collection items) { - if (this.bindingFailureConditions == null) { - this.bindingFailureConditions = new ArrayList(); + public A addToConsumedCapacity(String key,Quantity value) { + if (this.consumedCapacity == null && key != null && value != null) { + this.consumedCapacity = new LinkedHashMap(); } - for (String item : items) { - this.bindingFailureConditions.add(item); + if (key != null && value != null) { + this.consumedCapacity.put(key, value); } return (A) this; } - public A removeFromBindingFailureConditions(String... items) { - if (this.bindingFailureConditions == null) { - return (A) this; + public A addToTolerations(V1beta2DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - for (String item : items) { - this.bindingFailureConditions.remove(item); + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } return (A) this; } - public A removeAllFromBindingFailureConditions(Collection items) { - if (this.bindingFailureConditions == null) { - return (A) this; + public A addToTolerations(int index,V1beta2DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - for (String item : items) { - this.bindingFailureConditions.remove(item); + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); } return (A) this; } - public List getBindingFailureConditions() { - return this.bindingFailureConditions; - } - - public String getBindingFailureCondition(int index) { - return this.bindingFailureConditions.get(index); - } - - public String getFirstBindingFailureCondition() { - return this.bindingFailureConditions.get(0); + public V1beta2DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); } - public String getLastBindingFailureCondition() { - return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); + public V1beta2DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); } - public String getMatchingBindingFailureCondition(Predicate predicate) { - for (String item : bindingFailureConditions) { + public V1beta2DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { if (predicate.test(item)) { - return item; + return item.build(); } } return null; } - public boolean hasMatchingBindingFailureCondition(Predicate predicate) { - for (String item : bindingFailureConditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1beta2DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); } - public A withBindingFailureConditions(List bindingFailureConditions) { - if (bindingFailureConditions != null) { - this.bindingFailureConditions = new ArrayList(); - for (String item : bindingFailureConditions) { - this.addToBindingFailureConditions(item); - } - } else { - this.bindingFailureConditions = null; - } - return (A) this; + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; } - public A withBindingFailureConditions(String... bindingFailureConditions) { - if (this.bindingFailureConditions != null) { - this.bindingFailureConditions.clear(); - _visitables.remove("bindingFailureConditions"); - } - if (bindingFailureConditions != null) { - for (String item : bindingFailureConditions) { - this.addToBindingFailureConditions(item); - } + protected void copyInstance(V1beta2DeviceRequestAllocationResult instance) { + instance = instance != null ? instance : new V1beta2DeviceRequestAllocationResult(); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withBindingConditions(instance.getBindingConditions()); + this.withBindingFailureConditions(instance.getBindingFailureConditions()); + this.withConsumedCapacity(instance.getConsumedCapacity()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + this.withRequest(instance.getRequest()); + this.withShareID(instance.getShareID()); + this.withTolerations(instance.getTolerations()); } - return (A) this; } - public boolean hasBindingFailureConditions() { - return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); } - public A addToConsumedCapacity(String key,Quantity value) { - if (this.consumedCapacity == null && key != null && value != null) { - this.consumedCapacity = new LinkedHashMap(); - } - if (key != null && value != null) { - this.consumedCapacity.put(key, value); + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A addToConsumedCapacity(Map map) { - if (this.consumedCapacity == null && map != null) { - this.consumedCapacity = new LinkedHashMap(); + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } } - if (map != null) { - this.consumedCapacity.putAll(map); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A removeFromConsumedCapacity(String key) { - if (this.consumedCapacity == null) { - return (A) this; - } - if (key != null && this.consumedCapacity != null) { - this.consumedCapacity.remove(key); + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A removeFromConsumedCapacity(Map map) { - if (this.consumedCapacity == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - if (map != null) { - for (Object key : map.keySet()) { - if (this.consumedCapacity != null) { - this.consumedCapacity.remove(key); - } - } + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceRequestAllocationResultFluent that = (V1beta2DeviceRequestAllocationResultFluent) o; + if (!(Objects.equals(adminAccess, that.adminAccess))) { + return false; + } + if (!(Objects.equals(bindingConditions, that.bindingConditions))) { + return false; + } + if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { + return false; + } + if (!(Objects.equals(consumedCapacity, that.consumedCapacity))) { + return false; + } + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(request, that.request))) { + return false; + } + if (!(Objects.equals(shareID, that.shareID))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; } - public Map getConsumedCapacity() { - return this.consumedCapacity; + public Boolean getAdminAccess() { + return this.adminAccess; } - public A withConsumedCapacity(Map consumedCapacity) { - if (consumedCapacity == null) { - this.consumedCapacity = null; - } else { - this.consumedCapacity = new LinkedHashMap(consumedCapacity); - } - return (A) this; + public String getBindingCondition(int index) { + return this.bindingConditions.get(index); } - public boolean hasConsumedCapacity() { - return this.consumedCapacity != null; + public List getBindingConditions() { + return this.bindingConditions; } - public String getDevice() { - return this.device; + public String getBindingFailureCondition(int index) { + return this.bindingFailureConditions.get(index); } - public A withDevice(String device) { - this.device = device; - return (A) this; + public List getBindingFailureConditions() { + return this.bindingFailureConditions; } - public boolean hasDevice() { - return this.device != null; + public Map getConsumedCapacity() { + return this.consumedCapacity; + } + + public String getDevice() { + return this.device; } public String getDriver() { return this.driver; } - public A withDriver(String driver) { - this.driver = driver; - return (A) this; + public String getFirstBindingCondition() { + return this.bindingConditions.get(0); } - public boolean hasDriver() { - return this.driver != null; + public String getFirstBindingFailureCondition() { + return this.bindingFailureConditions.get(0); } - public String getPool() { - return this.pool; + public String getLastBindingCondition() { + return this.bindingConditions.get(bindingConditions.size() - 1); } - public A withPool(String pool) { - this.pool = pool; - return (A) this; + public String getLastBindingFailureCondition() { + return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); } - public boolean hasPool() { - return this.pool != null; + public String getMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public String getRequest() { - return this.request; + public String getMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A withRequest(String request) { - this.request = request; - return (A) this; + public String getPool() { + return this.pool; } - public boolean hasRequest() { - return this.request != null; + public String getRequest() { + return this.request; } public String getShareID() { return this.shareID; } - public A withShareID(String shareID) { - this.shareID = shareID; - return (A) this; + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public boolean hasBindingConditions() { + return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); + } + + public boolean hasBindingFailureConditions() { + return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); + } + + public boolean hasConsumedCapacity() { + return this.consumedCapacity != null; + } + + public boolean hasDevice() { + return this.device != null; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean hasRequest() { + return this.request != null; } public boolean hasShareID() { return this.shareID != null; } - public A addToTolerations(int index,V1beta2DeviceToleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); - } - return (A) this; + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); } - public A setToTolerations(int index,V1beta2DeviceToleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); - } - return (A) this; + public int hashCode() { + return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); } - public A addToTolerations(V1beta2DeviceToleration... items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); + public A removeAllFromBindingConditions(Collection items) { + if (this.bindingConditions == null) { + return (A) this; } - for (V1beta2DeviceToleration item : items) { - V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); + for (String item : items) { + this.bindingConditions.remove(item); } return (A) this; } - public A addAllToTolerations(Collection items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); + public A removeAllFromBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + return (A) this; } - for (V1beta2DeviceToleration item : items) { - V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); + for (String item : items) { + this.bindingFailureConditions.remove(item); } return (A) this; } - public A removeFromTolerations(V1beta2DeviceToleration... items) { + public A removeAllFromTolerations(Collection items) { if (this.tolerations == null) { return (A) this; } @@ -499,194 +467,111 @@ public A removeFromTolerations(V1beta2DeviceToleration... items) { return (A) this; } - public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) { + public A removeFromBindingConditions(String... items) { + if (this.bindingConditions == null) { return (A) this; } - for (V1beta2DeviceToleration item : items) { - V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - this.tolerations.remove(builder); + for (String item : items) { + this.bindingConditions.remove(item); } return (A) this; } - public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) { + public A removeFromBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { return (A) this; } - Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); - while (each.hasNext()) { - V1beta2DeviceTolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + for (String item : items) { + this.bindingFailureConditions.remove(item); } return (A) this; } - public List buildTolerations() { - return this.tolerations != null ? build(tolerations) : null; - } - - public V1beta2DeviceToleration buildToleration(int index) { - return this.tolerations.get(index).build(); - } - - public V1beta2DeviceToleration buildFirstToleration() { - return this.tolerations.get(0).build(); - } - - public V1beta2DeviceToleration buildLastToleration() { - return this.tolerations.get(tolerations.size() - 1).build(); - } - - public V1beta2DeviceToleration buildMatchingToleration(Predicate predicate) { - for (V1beta2DeviceTolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingToleration(Predicate predicate) { - for (V1beta2DeviceTolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withTolerations(List tolerations) { - if (this.tolerations != null) { - this._visitables.get("tolerations").clear(); + public A removeFromConsumedCapacity(String key) { + if (this.consumedCapacity == null) { + return (A) this; } - if (tolerations != null) { - this.tolerations = new ArrayList(); - for (V1beta2DeviceToleration item : tolerations) { - this.addToTolerations(item); - } - } else { - this.tolerations = null; + if (key != null && this.consumedCapacity != null) { + this.consumedCapacity.remove(key); } return (A) this; } - public A withTolerations(V1beta2DeviceToleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - _visitables.remove("tolerations"); + public A removeFromConsumedCapacity(Map map) { + if (this.consumedCapacity == null) { + return (A) this; } - if (tolerations != null) { - for (V1beta2DeviceToleration item : tolerations) { - this.addToTolerations(item); + if (map != null) { + for (Object key : map.keySet()) { + if (this.consumedCapacity != null) { + this.consumedCapacity.remove(key); + } } } return (A) this; } - public boolean hasTolerations() { - return this.tolerations != null && !(this.tolerations.isEmpty()); - } - - public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + public A removeFromTolerations(V1beta2DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } - public TolerationsNested addNewTolerationLike(V1beta2DeviceToleration item) { - return new TolerationsNested(-1, item); + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1beta2DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } public TolerationsNested setNewTolerationLike(int index,V1beta2DeviceToleration item) { return new TolerationsNested(index, item); } - public TolerationsNested editToleration(int index) { - if (index <= tolerations.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); - } - return this.setNewTolerationLike(index, this.buildToleration(index)); - } - - public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); - } - return this.setNewTolerationLike(0, this.buildToleration(0)); - } - - public TolerationsNested editLastToleration() { - int index = tolerations.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + public A setToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); } - return this.setNewTolerationLike(index, this.buildToleration(index)); + this.bindingConditions.set(index, item); + return (A) this; } - public TolerationsNested editMatchingToleration(Predicate predicate) { - int index = -1; - for (int i = 0;i < tolerations.size();i++) { - if (predicate.test(tolerations.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + public A setToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); } - return this.setNewTolerationLike(index, this.buildToleration(index)); + this.bindingFailureConditions.set(index, item); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta2DeviceRequestAllocationResultFluent that = (V1beta2DeviceRequestAllocationResultFluent) o; - if (!(Objects.equals(adminAccess, that.adminAccess))) { - return false; - } - if (!(Objects.equals(bindingConditions, that.bindingConditions))) { - return false; - } - if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { - return false; - } - if (!(Objects.equals(consumedCapacity, that.consumedCapacity))) { - return false; - } - if (!(Objects.equals(device, that.device))) { - return false; - } - if (!(Objects.equals(driver, that.driver))) { - return false; - } - if (!(Objects.equals(pool, that.pool))) { - return false; - } - if (!(Objects.equals(request, that.request))) { - return false; - } - if (!(Objects.equals(shareID, that.shareID))) { - return false; + public A setToTolerations(int index,V1beta2DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - if (!(Objects.equals(tolerations, that.tolerations))) { - return false; + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); } - return true; - } - - public int hashCode() { - return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); + return (A) this; } public String toString() { @@ -748,14 +633,133 @@ public String toString() { public A withAdminAccess() { return withAdminAccess(true); } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public A withBindingConditions(List bindingConditions) { + if (bindingConditions != null) { + this.bindingConditions = new ArrayList(); + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } else { + this.bindingConditions = null; + } + return (A) this; + } + + public A withBindingConditions(String... bindingConditions) { + if (this.bindingConditions != null) { + this.bindingConditions.clear(); + _visitables.remove("bindingConditions"); + } + if (bindingConditions != null) { + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } + return (A) this; + } + + public A withBindingFailureConditions(List bindingFailureConditions) { + if (bindingFailureConditions != null) { + this.bindingFailureConditions = new ArrayList(); + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } else { + this.bindingFailureConditions = null; + } + return (A) this; + } + + public A withBindingFailureConditions(String... bindingFailureConditions) { + if (this.bindingFailureConditions != null) { + this.bindingFailureConditions.clear(); + _visitables.remove("bindingFailureConditions"); + } + if (bindingFailureConditions != null) { + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } + return (A) this; + } + + public A withConsumedCapacity(Map consumedCapacity) { + if (consumedCapacity == null) { + this.consumedCapacity = null; + } else { + this.consumedCapacity = new LinkedHashMap(consumedCapacity); + } + return (A) this; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public A withRequest(String request) { + this.request = request; + return (A) this; + } + + public A withShareID(String shareID) { + this.shareID = shareID; + return (A) this; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1beta2DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(V1beta2DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1beta2DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } public class TolerationsNested extends V1beta2DeviceTolerationFluent> implements Nested{ + + V1beta2DeviceTolerationBuilder builder; + int index; + TolerationsNested(int index,V1beta2DeviceToleration item) { this.index = index; this.builder = new V1beta2DeviceTolerationBuilder(this, item); } - V1beta2DeviceTolerationBuilder builder; - int index; - + public N and() { return (N) V1beta2DeviceRequestAllocationResultFluent.this.setToTolerations(index, builder.build()); } @@ -764,7 +768,5 @@ public N endToleration() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestBuilder.java index c545dbb913..cc462e783c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceRequestBuilder extends V1beta2DeviceRequestFluent implements VisitableBuilder{ + + V1beta2DeviceRequestFluent fluent; + public V1beta2DeviceRequestBuilder() { this(new V1beta2DeviceRequest()); } @@ -11,17 +14,16 @@ public V1beta2DeviceRequestBuilder(V1beta2DeviceRequestFluent fluent) { this(fluent, new V1beta2DeviceRequest()); } - public V1beta2DeviceRequestBuilder(V1beta2DeviceRequestFluent fluent,V1beta2DeviceRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceRequestBuilder(V1beta2DeviceRequest instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceRequestFluent fluent; + public V1beta2DeviceRequestBuilder(V1beta2DeviceRequestFluent fluent,V1beta2DeviceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2DeviceRequest build() { V1beta2DeviceRequest buildable = new V1beta2DeviceRequest(); buildable.setExactly(fluent.buildExactly()); @@ -30,5 +32,4 @@ public V1beta2DeviceRequest build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestFluent.java index 7576c53b21..29962ec0b7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestFluent.java @@ -1,112 +1,55 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2DeviceRequestFluent> extends BaseFluent{ - public V1beta2DeviceRequestFluent() { - } - - public V1beta2DeviceRequestFluent(V1beta2DeviceRequest instance) { - this.copyInstance(instance); - } + private V1beta2ExactDeviceRequestBuilder exactly; private ArrayList firstAvailable; private String name; - - protected void copyInstance(V1beta2DeviceRequest instance) { - instance = instance != null ? instance : new V1beta2DeviceRequest(); - if (instance != null) { - this.withExactly(instance.getExactly()); - this.withFirstAvailable(instance.getFirstAvailable()); - this.withName(instance.getName()); - } - } - - public V1beta2ExactDeviceRequest buildExactly() { - return this.exactly != null ? this.exactly.build() : null; - } - - public A withExactly(V1beta2ExactDeviceRequest exactly) { - this._visitables.remove("exactly"); - if (exactly != null) { - this.exactly = new V1beta2ExactDeviceRequestBuilder(exactly); - this._visitables.get("exactly").add(this.exactly); - } else { - this.exactly = null; - this._visitables.get("exactly").remove(this.exactly); - } - return (A) this; - } - - public boolean hasExactly() { - return this.exactly != null; - } - - public ExactlyNested withNewExactly() { - return new ExactlyNested(null); - } - - public ExactlyNested withNewExactlyLike(V1beta2ExactDeviceRequest item) { - return new ExactlyNested(item); - } - - public ExactlyNested editExactly() { - return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(null)); - } - - public ExactlyNested editOrNewExactly() { - return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(new V1beta2ExactDeviceRequestBuilder().build())); + + public V1beta2DeviceRequestFluent() { } - public ExactlyNested editOrNewExactlyLike(V1beta2ExactDeviceRequest item) { - return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(item)); + public V1beta2DeviceRequestFluent(V1beta2DeviceRequest instance) { + this.copyInstance(instance); } - - public A addToFirstAvailable(int index,V1beta2DeviceSubRequest item) { + + public A addAllToFirstAvailable(Collection items) { if (this.firstAvailable == null) { this.firstAvailable = new ArrayList(); } - V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); - if (index < 0 || index >= firstAvailable.size()) { - _visitables.get("firstAvailable").add(builder); - firstAvailable.add(builder); - } else { + for (V1beta2DeviceSubRequest item : items) { + V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); _visitables.get("firstAvailable").add(builder); - firstAvailable.add(index, builder); + this.firstAvailable.add(builder); } return (A) this; } - public A setToFirstAvailable(int index,V1beta2DeviceSubRequest item) { - if (this.firstAvailable == null) { - this.firstAvailable = new ArrayList(); - } - V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); - if (index < 0 || index >= firstAvailable.size()) { - _visitables.get("firstAvailable").add(builder); - firstAvailable.add(builder); - } else { - _visitables.get("firstAvailable").add(builder); - firstAvailable.set(index, builder); - } - return (A) this; + public FirstAvailableNested addNewFirstAvailable() { + return new FirstAvailableNested(-1, null); + } + + public FirstAvailableNested addNewFirstAvailableLike(V1beta2DeviceSubRequest item) { + return new FirstAvailableNested(-1, item); } public A addToFirstAvailable(V1beta2DeviceSubRequest... items) { @@ -121,56 +64,23 @@ public A addToFirstAvailable(V1beta2DeviceSubRequest... items) { return (A) this; } - public A addAllToFirstAvailable(Collection items) { + public A addToFirstAvailable(int index,V1beta2DeviceSubRequest item) { if (this.firstAvailable == null) { this.firstAvailable = new ArrayList(); } - for (V1beta2DeviceSubRequest item : items) { - V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); + V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { _visitables.get("firstAvailable").add(builder); - this.firstAvailable.add(builder); - } - return (A) this; - } - - public A removeFromFirstAvailable(V1beta2DeviceSubRequest... items) { - if (this.firstAvailable == null) { - return (A) this; - } - for (V1beta2DeviceSubRequest item : items) { - V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); - _visitables.get("firstAvailable").remove(builder); - this.firstAvailable.remove(builder); - } - return (A) this; - } - - public A removeAllFromFirstAvailable(Collection items) { - if (this.firstAvailable == null) { - return (A) this; - } - for (V1beta2DeviceSubRequest item : items) { - V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); - _visitables.get("firstAvailable").remove(builder); - this.firstAvailable.remove(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(index, builder); } return (A) this; } - public A removeMatchingFromFirstAvailable(Predicate predicate) { - if (firstAvailable == null) { - return (A) this; - } - Iterator each = firstAvailable.iterator(); - List visitables = _visitables.get("firstAvailable"); - while (each.hasNext()) { - V1beta2DeviceSubRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1beta2ExactDeviceRequest buildExactly() { + return this.exactly != null ? this.exactly.build() : null; } public List buildFirstAvailable() { @@ -198,61 +108,21 @@ public V1beta2DeviceSubRequest buildMatchingFirstAvailable(Predicate predicate) { - for (V1beta2DeviceSubRequestBuilder item : firstAvailable) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withFirstAvailable(List firstAvailable) { - if (this.firstAvailable != null) { - this._visitables.get("firstAvailable").clear(); - } - if (firstAvailable != null) { - this.firstAvailable = new ArrayList(); - for (V1beta2DeviceSubRequest item : firstAvailable) { - this.addToFirstAvailable(item); - } - } else { - this.firstAvailable = null; - } - return (A) this; - } - - public A withFirstAvailable(V1beta2DeviceSubRequest... firstAvailable) { - if (this.firstAvailable != null) { - this.firstAvailable.clear(); - _visitables.remove("firstAvailable"); - } - if (firstAvailable != null) { - for (V1beta2DeviceSubRequest item : firstAvailable) { - this.addToFirstAvailable(item); - } + protected void copyInstance(V1beta2DeviceRequest instance) { + instance = instance != null ? instance : new V1beta2DeviceRequest(); + if (instance != null) { + this.withExactly(instance.getExactly()); + this.withFirstAvailable(instance.getFirstAvailable()); + this.withName(instance.getName()); } - return (A) this; - } - - public boolean hasFirstAvailable() { - return this.firstAvailable != null && !(this.firstAvailable.isEmpty()); - } - - public FirstAvailableNested addNewFirstAvailable() { - return new FirstAvailableNested(-1, null); - } - - public FirstAvailableNested addNewFirstAvailableLike(V1beta2DeviceSubRequest item) { - return new FirstAvailableNested(-1, item); } - public FirstAvailableNested setNewFirstAvailableLike(int index,V1beta2DeviceSubRequest item) { - return new FirstAvailableNested(index, item); + public ExactlyNested editExactly() { + return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(null)); } public FirstAvailableNested editFirstAvailable(int index) { - if (index <= firstAvailable.size()) { + if (firstAvailable.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "firstAvailable")); } return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); @@ -287,17 +157,12 @@ public FirstAvailableNested editMatchingFirstAvailable(Predicate editOrNewExactly() { + return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(new V1beta2ExactDeviceRequestBuilder().build())); } - public boolean hasName() { - return this.name != null; + public ExactlyNested editOrNewExactlyLike(V1beta2ExactDeviceRequest item) { + return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(item)); } public boolean equals(Object o) { @@ -323,10 +188,94 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public boolean hasExactly() { + return this.exactly != null; + } + + public boolean hasFirstAvailable() { + return this.firstAvailable != null && !(this.firstAvailable.isEmpty()); + } + + public boolean hasMatchingFirstAvailable(Predicate predicate) { + for (V1beta2DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(exactly, firstAvailable, name); } + public A removeAllFromFirstAvailable(Collection items) { + if (this.firstAvailable == null) { + return (A) this; + } + for (V1beta2DeviceSubRequest item : items) { + V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").remove(builder); + this.firstAvailable.remove(builder); + } + return (A) this; + } + + public A removeFromFirstAvailable(V1beta2DeviceSubRequest... items) { + if (this.firstAvailable == null) { + return (A) this; + } + for (V1beta2DeviceSubRequest item : items) { + V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").remove(builder); + this.firstAvailable.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromFirstAvailable(Predicate predicate) { + if (firstAvailable == null) { + return (A) this; + } + Iterator each = firstAvailable.iterator(); + List visitables = _visitables.get("firstAvailable"); + while (each.hasNext()) { + V1beta2DeviceSubRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public FirstAvailableNested setNewFirstAvailableLike(int index,V1beta2DeviceSubRequest item) { + return new FirstAvailableNested(index, item); + } + + public A setToFirstAvailable(int index,V1beta2DeviceSubRequest item) { + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } + V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); + if (index < 0 || index >= firstAvailable.size()) { + _visitables.get("firstAvailable").add(builder); + firstAvailable.add(builder); + } else { + _visitables.get("firstAvailable").add(builder); + firstAvailable.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -347,12 +296,67 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withExactly(V1beta2ExactDeviceRequest exactly) { + this._visitables.remove("exactly"); + if (exactly != null) { + this.exactly = new V1beta2ExactDeviceRequestBuilder(exactly); + this._visitables.get("exactly").add(this.exactly); + } else { + this.exactly = null; + this._visitables.get("exactly").remove(this.exactly); + } + return (A) this; + } + + public A withFirstAvailable(List firstAvailable) { + if (this.firstAvailable != null) { + this._visitables.get("firstAvailable").clear(); + } + if (firstAvailable != null) { + this.firstAvailable = new ArrayList(); + for (V1beta2DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } else { + this.firstAvailable = null; + } + return (A) this; + } + + public A withFirstAvailable(V1beta2DeviceSubRequest... firstAvailable) { + if (this.firstAvailable != null) { + this.firstAvailable.clear(); + _visitables.remove("firstAvailable"); + } + if (firstAvailable != null) { + for (V1beta2DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public ExactlyNested withNewExactly() { + return new ExactlyNested(null); + } + + public ExactlyNested withNewExactlyLike(V1beta2ExactDeviceRequest item) { + return new ExactlyNested(item); + } public class ExactlyNested extends V1beta2ExactDeviceRequestFluent> implements Nested{ + + V1beta2ExactDeviceRequestBuilder builder; + ExactlyNested(V1beta2ExactDeviceRequest item) { this.builder = new V1beta2ExactDeviceRequestBuilder(this, item); } - V1beta2ExactDeviceRequestBuilder builder; - + public N and() { return (N) V1beta2DeviceRequestFluent.this.withExactly(builder.build()); } @@ -361,16 +365,17 @@ public N endExactly() { return and(); } - } public class FirstAvailableNested extends V1beta2DeviceSubRequestFluent> implements Nested{ + + V1beta2DeviceSubRequestBuilder builder; + int index; + FirstAvailableNested(int index,V1beta2DeviceSubRequest item) { this.index = index; this.builder = new V1beta2DeviceSubRequestBuilder(this, item); } - V1beta2DeviceSubRequestBuilder builder; - int index; - + public N and() { return (N) V1beta2DeviceRequestFluent.this.setToFirstAvailable(index, builder.build()); } @@ -379,7 +384,5 @@ public N endFirstAvailable() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorBuilder.java index 449672c730..8ac1837540 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceSelectorBuilder extends V1beta2DeviceSelectorFluent implements VisitableBuilder{ + + V1beta2DeviceSelectorFluent fluent; + public V1beta2DeviceSelectorBuilder() { this(new V1beta2DeviceSelector()); } @@ -11,22 +14,20 @@ public V1beta2DeviceSelectorBuilder(V1beta2DeviceSelectorFluent fluent) { this(fluent, new V1beta2DeviceSelector()); } - public V1beta2DeviceSelectorBuilder(V1beta2DeviceSelectorFluent fluent,V1beta2DeviceSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceSelectorBuilder(V1beta2DeviceSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceSelectorFluent fluent; + public V1beta2DeviceSelectorBuilder(V1beta2DeviceSelectorFluent fluent,V1beta2DeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2DeviceSelector build() { V1beta2DeviceSelector buildable = new V1beta2DeviceSelector(); buildable.setCel(fluent.buildCel()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorFluent.java index 528a217554..b7b58d59a5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2DeviceSelectorFluent> extends BaseFluent{ + + private V1beta2CELDeviceSelectorBuilder cel; + public V1beta2DeviceSelectorFluent() { } public V1beta2DeviceSelectorFluent(V1beta2DeviceSelector instance) { this.copyInstance(instance); } - private V1beta2CELDeviceSelectorBuilder cel; + + public V1beta2CELDeviceSelector buildCel() { + return this.cel != null ? this.cel.build() : null; + } protected void copyInstance(V1beta2DeviceSelector instance) { instance = instance != null ? instance : new V1beta2DeviceSelector(); @@ -29,34 +35,6 @@ protected void copyInstance(V1beta2DeviceSelector instance) { } } - public V1beta2CELDeviceSelector buildCel() { - return this.cel != null ? this.cel.build() : null; - } - - public A withCel(V1beta2CELDeviceSelector cel) { - this._visitables.remove("cel"); - if (cel != null) { - this.cel = new V1beta2CELDeviceSelectorBuilder(cel); - this._visitables.get("cel").add(this.cel); - } else { - this.cel = null; - this._visitables.get("cel").remove(this.cel); - } - return (A) this; - } - - public boolean hasCel() { - return this.cel != null; - } - - public CelNested withNewCel() { - return new CelNested(null); - } - - public CelNested withNewCelLike(V1beta2CELDeviceSelector item) { - return new CelNested(item); - } - public CelNested editCel() { return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(null)); } @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasCel() { + return this.cel != null; + } + public int hashCode() { return Objects.hash(cel); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withCel(V1beta2CELDeviceSelector cel) { + this._visitables.remove("cel"); + if (cel != null) { + this.cel = new V1beta2CELDeviceSelectorBuilder(cel); + this._visitables.get("cel").add(this.cel); + } else { + this.cel = null; + this._visitables.get("cel").remove(this.cel); + } + return (A) this; + } + + public CelNested withNewCel() { + return new CelNested(null); + } + + public CelNested withNewCelLike(V1beta2CELDeviceSelector item) { + return new CelNested(item); + } public class CelNested extends V1beta2CELDeviceSelectorFluent> implements Nested{ + + V1beta2CELDeviceSelectorBuilder builder; + CelNested(V1beta2CELDeviceSelector item) { this.builder = new V1beta2CELDeviceSelectorBuilder(this, item); } - V1beta2CELDeviceSelectorBuilder builder; - + public N and() { return (N) V1beta2DeviceSelectorFluent.this.withCel(builder.build()); } @@ -114,7 +118,5 @@ public N endCel() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestBuilder.java index 43bfffea5d..9e41e8a7af 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceSubRequestBuilder extends V1beta2DeviceSubRequestFluent implements VisitableBuilder{ + + V1beta2DeviceSubRequestFluent fluent; + public V1beta2DeviceSubRequestBuilder() { this(new V1beta2DeviceSubRequest()); } @@ -11,17 +14,16 @@ public V1beta2DeviceSubRequestBuilder(V1beta2DeviceSubRequestFluent fluent) { this(fluent, new V1beta2DeviceSubRequest()); } - public V1beta2DeviceSubRequestBuilder(V1beta2DeviceSubRequestFluent fluent,V1beta2DeviceSubRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceSubRequestBuilder(V1beta2DeviceSubRequest instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceSubRequestFluent fluent; + public V1beta2DeviceSubRequestBuilder(V1beta2DeviceSubRequestFluent fluent,V1beta2DeviceSubRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2DeviceSubRequest build() { V1beta2DeviceSubRequest buildable = new V1beta2DeviceSubRequest(); buildable.setAllocationMode(fluent.getAllocationMode()); @@ -34,5 +36,4 @@ public V1beta2DeviceSubRequest build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestFluent.java index 2701aecf91..8132d030b3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; -import java.lang.Long; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2DeviceSubRequestFluent> extends BaseFluent{ - public V1beta2DeviceSubRequestFluent() { - } - - public V1beta2DeviceSubRequestFluent(V1beta2DeviceSubRequest instance) { - this.copyInstance(instance); - } + private String allocationMode; private V1beta2CapacityRequirementsBuilder capacity; private Long count; @@ -34,128 +29,67 @@ public V1beta2DeviceSubRequestFluent(V1beta2DeviceSubRequest instance) { private String name; private ArrayList selectors; private ArrayList tolerations; - - protected void copyInstance(V1beta2DeviceSubRequest instance) { - instance = instance != null ? instance : new V1beta2DeviceSubRequest(); - if (instance != null) { - this.withAllocationMode(instance.getAllocationMode()); - this.withCapacity(instance.getCapacity()); - this.withCount(instance.getCount()); - this.withDeviceClassName(instance.getDeviceClassName()); - this.withName(instance.getName()); - this.withSelectors(instance.getSelectors()); - this.withTolerations(instance.getTolerations()); - } - } - - public String getAllocationMode() { - return this.allocationMode; - } - - public A withAllocationMode(String allocationMode) { - this.allocationMode = allocationMode; - return (A) this; - } - - public boolean hasAllocationMode() { - return this.allocationMode != null; + + public V1beta2DeviceSubRequestFluent() { } - public V1beta2CapacityRequirements buildCapacity() { - return this.capacity != null ? this.capacity.build() : null; + public V1beta2DeviceSubRequestFluent(V1beta2DeviceSubRequest instance) { + this.copyInstance(instance); } - - public A withCapacity(V1beta2CapacityRequirements capacity) { - this._visitables.remove("capacity"); - if (capacity != null) { - this.capacity = new V1beta2CapacityRequirementsBuilder(capacity); - this._visitables.get("capacity").add(this.capacity); - } else { - this.capacity = null; - this._visitables.get("capacity").remove(this.capacity); + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); } return (A) this; } - public boolean hasCapacity() { - return this.capacity != null; - } - - public CapacityNested withNewCapacity() { - return new CapacityNested(null); - } - - public CapacityNested withNewCapacityLike(V1beta2CapacityRequirements item) { - return new CapacityNested(item); - } - - public CapacityNested editCapacity() { - return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); - } - - public CapacityNested editOrNewCapacity() { - return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1beta2CapacityRequirementsBuilder().build())); - } - - public CapacityNested editOrNewCapacityLike(V1beta2CapacityRequirements item) { - return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); - } - - public Long getCount() { - return this.count; - } - - public A withCount(Long count) { - this.count = count; - return (A) this; - } - - public boolean hasCount() { - return this.count != null; - } - - public String getDeviceClassName() { - return this.deviceClassName; - } - - public A withDeviceClassName(String deviceClassName) { - this.deviceClassName = deviceClassName; + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } return (A) this; } - public boolean hasDeviceClassName() { - return this.deviceClassName != null; + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); } - public String getName() { - return this.name; + public SelectorsNested addNewSelectorLike(V1beta2DeviceSelector item) { + return new SelectorsNested(-1, item); } - public A withName(String name) { - this.name = name; - return (A) this; + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); } - public boolean hasName() { - return this.name != null; + public TolerationsNested addNewTolerationLike(V1beta2DeviceToleration item) { + return new TolerationsNested(-1, item); } - public A addToSelectors(int index,V1beta2DeviceSelector item) { + public A addToSelectors(V1beta2DeviceSelector... items) { if (this.selectors == null) { this.selectors = new ArrayList(); } - V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); _visitables.get("selectors").add(builder); - selectors.add(index, builder); + this.selectors.add(builder); } return (A) this; } - public A setToSelectors(int index,V1beta2DeviceSelector item) { + public A addToSelectors(int index,V1beta2DeviceSelector item) { if (this.selectors == null) { this.selectors = new ArrayList(); } @@ -165,91 +99,58 @@ public A setToSelectors(int index,V1beta2DeviceSelector item) { selectors.add(builder); } else { _visitables.get("selectors").add(builder); - selectors.set(index, builder); - } - return (A) this; - } - - public A addToSelectors(V1beta2DeviceSelector... items) { - if (this.selectors == null) { - this.selectors = new ArrayList(); - } - for (V1beta2DeviceSelector item : items) { - V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); - this.selectors.add(builder); - } - return (A) this; - } - - public A addAllToSelectors(Collection items) { - if (this.selectors == null) { - this.selectors = new ArrayList(); - } - for (V1beta2DeviceSelector item : items) { - V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); - this.selectors.add(builder); - } - return (A) this; - } - - public A removeFromSelectors(V1beta2DeviceSelector... items) { - if (this.selectors == null) { - return (A) this; - } - for (V1beta2DeviceSelector item : items) { - V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - _visitables.get("selectors").remove(builder); - this.selectors.remove(builder); + selectors.add(index, builder); } return (A) this; } - public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) { - return (A) this; + public A addToTolerations(V1beta2DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - for (V1beta2DeviceSelector item : items) { - V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - _visitables.get("selectors").remove(builder); - this.selectors.remove(builder); + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } return (A) this; } - public A removeMatchingFromSelectors(Predicate predicate) { - if (selectors == null) { - return (A) this; + public A addToTolerations(int index,V1beta2DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - Iterator each = selectors.iterator(); - List visitables = _visitables.get("selectors"); - while (each.hasNext()) { - V1beta2DeviceSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); } return (A) this; } - public List buildSelectors() { - return this.selectors != null ? build(selectors) : null; - } - - public V1beta2DeviceSelector buildSelector(int index) { - return this.selectors.get(index).build(); + public V1beta2CapacityRequirements buildCapacity() { + return this.capacity != null ? this.capacity.build() : null; } public V1beta2DeviceSelector buildFirstSelector() { return this.selectors.get(0).build(); } + public V1beta2DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + public V1beta2DeviceSelector buildLastSelector() { return this.selectors.get(selectors.size() - 1).build(); } + public V1beta2DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + public V1beta2DeviceSelector buildMatchingSelector(Predicate predicate) { for (V1beta2DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { @@ -259,64 +160,46 @@ public V1beta2DeviceSelector buildMatchingSelector(Predicate predicate) { - for (V1beta2DeviceSelectorBuilder item : selectors) { + public V1beta2DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withSelectors(List selectors) { - if (this.selectors != null) { - this._visitables.get("selectors").clear(); - } - if (selectors != null) { - this.selectors = new ArrayList(); - for (V1beta2DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } else { - this.selectors = null; - } - return (A) this; - } - - public A withSelectors(V1beta2DeviceSelector... selectors) { - if (this.selectors != null) { - this.selectors.clear(); - _visitables.remove("selectors"); - } - if (selectors != null) { - for (V1beta2DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } - return (A) this; + public V1beta2DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); } - public boolean hasSelectors() { - return this.selectors != null && !(this.selectors.isEmpty()); + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; } - public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); + public V1beta2DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); } - public SelectorsNested addNewSelectorLike(V1beta2DeviceSelector item) { - return new SelectorsNested(-1, item); + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; } - public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector item) { - return new SelectorsNested(index, item); + protected void copyInstance(V1beta2DeviceSubRequest instance) { + instance = instance != null ? instance : new V1beta2DeviceSubRequest(); + if (instance != null) { + this.withAllocationMode(instance.getAllocationMode()); + this.withCapacity(instance.getCapacity()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } } - public SelectorsNested editSelector(int index) { - if (index <= selectors.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); - } - return this.setNewSelectorLike(index, this.buildSelector(index)); + public CapacityNested editCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); } public SelectorsNested editFirstSelector() { @@ -326,6 +209,13 @@ public SelectorsNested editFirstSelector() { return this.setNewSelectorLike(0, this.buildSelector(0)); } + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); + } + public SelectorsNested editLastSelector() { int index = selectors.size() - 1; if (index < 0) { @@ -334,6 +224,14 @@ public SelectorsNested editLastSelector() { return this.setNewSelectorLike(index, this.buildSelector(index)); } + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + public SelectorsNested editMatchingSelector(Predicate predicate) { int index = -1; for (int i = 0;i < selectors.size();i++) { @@ -348,123 +246,116 @@ public SelectorsNested editMatchingSelector(Predicate editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } } - V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A setToTolerations(int index,V1beta2DeviceToleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); - } - return (A) this; + public CapacityNested editOrNewCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1beta2CapacityRequirementsBuilder().build())); } - public A addToTolerations(V1beta2DeviceToleration... items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - for (V1beta2DeviceToleration item : items) { - V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); - } - return (A) this; + public CapacityNested editOrNewCapacityLike(V1beta2CapacityRequirements item) { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); } - public A addAllToTolerations(Collection items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - for (V1beta2DeviceToleration item : items) { - V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); } - return (A) this; + return this.setNewSelectorLike(index, this.buildSelector(index)); } - public A removeFromTolerations(V1beta2DeviceToleration... items) { - if (this.tolerations == null) { - return (A) this; - } - for (V1beta2DeviceToleration item : items) { - V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - this.tolerations.remove(builder); + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (V1beta2DeviceToleration item : items) { - V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - this.tolerations.remove(builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) { - return (A) this; + if (!(super.equals(o))) { + return false; } - Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); - while (each.hasNext()) { - V1beta2DeviceTolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceSubRequestFluent that = (V1beta2DeviceSubRequestFluent) o; + if (!(Objects.equals(allocationMode, that.allocationMode))) { + return false; } - return (A) this; + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(deviceClassName, that.deviceClassName))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; } - public List buildTolerations() { - return this.tolerations != null ? build(tolerations) : null; + public String getAllocationMode() { + return this.allocationMode; } - public V1beta2DeviceToleration buildToleration(int index) { - return this.tolerations.get(index).build(); + public Long getCount() { + return this.count; } - public V1beta2DeviceToleration buildFirstToleration() { - return this.tolerations.get(0).build(); + public String getDeviceClassName() { + return this.deviceClassName; } - public V1beta2DeviceToleration buildLastToleration() { - return this.tolerations.get(tolerations.size() - 1).build(); + public String getName() { + return this.name; } - public V1beta2DeviceToleration buildMatchingToleration(Predicate predicate) { - for (V1beta2DeviceTolerationBuilder item : tolerations) { + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean hasCount() { + return this.count != null; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingToleration(Predicate predicate) { @@ -476,123 +367,138 @@ public boolean hasMatchingToleration(Predicate p return false; } - public A withTolerations(List tolerations) { - if (this.tolerations != null) { - this._visitables.get("tolerations").clear(); + public boolean hasName() { + return this.name != null; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) { + return (A) this; } - if (tolerations != null) { - this.tolerations = new ArrayList(); - for (V1beta2DeviceToleration item : tolerations) { - this.addToTolerations(item); - } - } else { - this.tolerations = null; + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeFromSelectors(V1beta2DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeFromTolerations(V1beta2DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); } return (A) this; } - public A withTolerations(V1beta2DeviceToleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - _visitables.remove("tolerations"); + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; } - if (tolerations != null) { - for (V1beta2DeviceToleration item : tolerations) { - this.addToTolerations(item); - } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1beta2DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasTolerations() { - return this.tolerations != null && !(this.tolerations.isEmpty()); - } - - public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1beta2DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public TolerationsNested addNewTolerationLike(V1beta2DeviceToleration item) { - return new TolerationsNested(-1, item); + public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector item) { + return new SelectorsNested(index, item); } public TolerationsNested setNewTolerationLike(int index,V1beta2DeviceToleration item) { return new TolerationsNested(index, item); } - public TolerationsNested editToleration(int index) { - if (index <= tolerations.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); - } - return this.setNewTolerationLike(index, this.buildToleration(index)); - } - - public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); - } - return this.setNewTolerationLike(0, this.buildToleration(0)); - } - - public TolerationsNested editLastToleration() { - int index = tolerations.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); - } - return this.setNewTolerationLike(index, this.buildToleration(index)); - } - - public TolerationsNested editMatchingToleration(Predicate predicate) { - int index = -1; - for (int i = 0;i < tolerations.size();i++) { - if (predicate.test(tolerations.get(i))) { - index = i; - break; - } + public A setToSelectors(int index,V1beta2DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); } - return this.setNewTolerationLike(index, this.buildToleration(index)); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta2DeviceSubRequestFluent that = (V1beta2DeviceSubRequestFluent) o; - if (!(Objects.equals(allocationMode, that.allocationMode))) { - return false; - } - if (!(Objects.equals(capacity, that.capacity))) { - return false; - } - if (!(Objects.equals(count, that.count))) { - return false; - } - if (!(Objects.equals(deviceClassName, that.deviceClassName))) { - return false; - } - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(selectors, that.selectors))) { - return false; + public A setToTolerations(int index,V1beta2DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - if (!(Objects.equals(tolerations, that.tolerations))) { - return false; + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); } - return true; - } - - public int hashCode() { - return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); + return (A) this; } public String toString() { @@ -635,12 +541,110 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public A withCapacity(V1beta2CapacityRequirements capacity) { + this._visitables.remove("capacity"); + if (capacity != null) { + this.capacity = new V1beta2CapacityRequirementsBuilder(capacity); + this._visitables.get("capacity").add(this.capacity); + } else { + this.capacity = null; + this._visitables.get("capacity").remove(this.capacity); + } + return (A) this; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public CapacityNested withNewCapacity() { + return new CapacityNested(null); + } + + public CapacityNested withNewCapacityLike(V1beta2CapacityRequirements item) { + return new CapacityNested(item); + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1beta2DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(V1beta2DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1beta2DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1beta2DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(V1beta2DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1beta2DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } public class CapacityNested extends V1beta2CapacityRequirementsFluent> implements Nested{ + + V1beta2CapacityRequirementsBuilder builder; + CapacityNested(V1beta2CapacityRequirements item) { this.builder = new V1beta2CapacityRequirementsBuilder(this, item); } - V1beta2CapacityRequirementsBuilder builder; - + public N and() { return (N) V1beta2DeviceSubRequestFluent.this.withCapacity(builder.build()); } @@ -649,16 +653,17 @@ public N endCapacity() { return and(); } - } public class SelectorsNested extends V1beta2DeviceSelectorFluent> implements Nested{ + + V1beta2DeviceSelectorBuilder builder; + int index; + SelectorsNested(int index,V1beta2DeviceSelector item) { this.index = index; this.builder = new V1beta2DeviceSelectorBuilder(this, item); } - V1beta2DeviceSelectorBuilder builder; - int index; - + public N and() { return (N) V1beta2DeviceSubRequestFluent.this.setToSelectors(index, builder.build()); } @@ -667,16 +672,17 @@ public N endSelector() { return and(); } - } public class TolerationsNested extends V1beta2DeviceTolerationFluent> implements Nested{ + + V1beta2DeviceTolerationBuilder builder; + int index; + TolerationsNested(int index,V1beta2DeviceToleration item) { this.index = index; this.builder = new V1beta2DeviceTolerationBuilder(this, item); } - V1beta2DeviceTolerationBuilder builder; - int index; - + public N and() { return (N) V1beta2DeviceSubRequestFluent.this.setToTolerations(index, builder.build()); } @@ -685,7 +691,5 @@ public N endToleration() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintBuilder.java index 487962af69..42cb090136 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceTaintBuilder extends V1beta2DeviceTaintFluent implements VisitableBuilder{ + + V1beta2DeviceTaintFluent fluent; + public V1beta2DeviceTaintBuilder() { this(new V1beta2DeviceTaint()); } @@ -11,17 +14,16 @@ public V1beta2DeviceTaintBuilder(V1beta2DeviceTaintFluent fluent) { this(fluent, new V1beta2DeviceTaint()); } - public V1beta2DeviceTaintBuilder(V1beta2DeviceTaintFluent fluent,V1beta2DeviceTaint instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceTaintBuilder(V1beta2DeviceTaint instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceTaintFluent fluent; + public V1beta2DeviceTaintBuilder(V1beta2DeviceTaintFluent fluent,V1beta2DeviceTaint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2DeviceTaint build() { V1beta2DeviceTaint buildable = new V1beta2DeviceTaint(); buildable.setEffect(fluent.getEffect()); @@ -31,5 +33,4 @@ public V1beta2DeviceTaint build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintFluent.java index 6f8fe84930..a04bd6157f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2DeviceTaintFluent> extends BaseFluent{ + + private String effect; + private String key; + private OffsetDateTime timeAdded; + private String value; + public V1beta2DeviceTaintFluent() { } public V1beta2DeviceTaintFluent(V1beta2DeviceTaint instance) { this.copyInstance(instance); } - private String effect; - private String key; - private OffsetDateTime timeAdded; - private String value; - + protected void copyInstance(V1beta2DeviceTaint instance) { instance = instance != null ? instance : new V1beta2DeviceTaint(); if (instance != null) { @@ -34,58 +36,6 @@ protected void copyInstance(V1beta2DeviceTaint instance) { } } - public String getEffect() { - return this.effect; - } - - public A withEffect(String effect) { - this.effect = effect; - return (A) this; - } - - public boolean hasEffect() { - return this.effect != null; - } - - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public OffsetDateTime getTimeAdded() { - return this.timeAdded; - } - - public A withTimeAdded(OffsetDateTime timeAdded) { - this.timeAdded = timeAdded; - return (A) this; - } - - public boolean hasTimeAdded() { - return this.timeAdded != null; - } - - public String getValue() { - return this.value; - } - - public A withValue(String value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -112,6 +62,38 @@ public boolean equals(Object o) { return true; } + public String getEffect() { + return this.effect; + } + + public String getKey() { + return this.key; + } + + public OffsetDateTime getTimeAdded() { + return this.timeAdded; + } + + public String getValue() { + return this.value; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasTimeAdded() { + return this.timeAdded != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(effect, key, timeAdded, value); } @@ -142,5 +124,24 @@ public String toString() { return sb.toString(); } - + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withTimeAdded(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationBuilder.java index 952891152c..b92611e109 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2DeviceTolerationBuilder extends V1beta2DeviceTolerationFluent implements VisitableBuilder{ + + V1beta2DeviceTolerationFluent fluent; + public V1beta2DeviceTolerationBuilder() { this(new V1beta2DeviceToleration()); } @@ -11,17 +14,16 @@ public V1beta2DeviceTolerationBuilder(V1beta2DeviceTolerationFluent fluent) { this(fluent, new V1beta2DeviceToleration()); } - public V1beta2DeviceTolerationBuilder(V1beta2DeviceTolerationFluent fluent,V1beta2DeviceToleration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2DeviceTolerationBuilder(V1beta2DeviceToleration instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2DeviceTolerationFluent fluent; + public V1beta2DeviceTolerationBuilder(V1beta2DeviceTolerationFluent fluent,V1beta2DeviceToleration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2DeviceToleration build() { V1beta2DeviceToleration buildable = new V1beta2DeviceToleration(); buildable.setEffect(fluent.getEffect()); @@ -32,5 +34,4 @@ public V1beta2DeviceToleration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationFluent.java index e60695a5c9..1a3bb66cce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2DeviceTolerationFluent> extends BaseFluent{ - public V1beta2DeviceTolerationFluent() { - } - - public V1beta2DeviceTolerationFluent(V1beta2DeviceToleration instance) { - this.copyInstance(instance); - } + private String effect; private String key; private String operator; private Long tolerationSeconds; private String value; + + public V1beta2DeviceTolerationFluent() { + } + public V1beta2DeviceTolerationFluent(V1beta2DeviceToleration instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1beta2DeviceToleration instance) { instance = instance != null ? instance : new V1beta2DeviceToleration(); if (instance != null) { @@ -36,71 +38,6 @@ protected void copyInstance(V1beta2DeviceToleration instance) { } } - public String getEffect() { - return this.effect; - } - - public A withEffect(String effect) { - this.effect = effect; - return (A) this; - } - - public boolean hasEffect() { - return this.effect != null; - } - - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; - return (A) this; - } - - public boolean hasKey() { - return this.key != null; - } - - public String getOperator() { - return this.operator; - } - - public A withOperator(String operator) { - this.operator = operator; - return (A) this; - } - - public boolean hasOperator() { - return this.operator != null; - } - - public Long getTolerationSeconds() { - return this.tolerationSeconds; - } - - public A withTolerationSeconds(Long tolerationSeconds) { - this.tolerationSeconds = tolerationSeconds; - return (A) this; - } - - public boolean hasTolerationSeconds() { - return this.tolerationSeconds != null; - } - - public String getValue() { - return this.value; - } - - public A withValue(String value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -130,6 +67,46 @@ public boolean equals(Object o) { return true; } + public String getEffect() { + return this.effect; + } + + public String getKey() { + return this.key; + } + + public String getOperator() { + return this.operator; + } + + public Long getTolerationSeconds() { + return this.tolerationSeconds; + } + + public String getValue() { + return this.value; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasOperator() { + return this.operator != null; + } + + public boolean hasTolerationSeconds() { + return this.tolerationSeconds != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(effect, key, operator, tolerationSeconds, value); } @@ -165,5 +142,29 @@ public String toString() { return sb.toString(); } - + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public A withTolerationSeconds(Long tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestBuilder.java index e01c5a13d0..112ad1db21 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2ExactDeviceRequestBuilder extends V1beta2ExactDeviceRequestFluent implements VisitableBuilder{ + + V1beta2ExactDeviceRequestFluent fluent; + public V1beta2ExactDeviceRequestBuilder() { this(new V1beta2ExactDeviceRequest()); } @@ -11,17 +14,16 @@ public V1beta2ExactDeviceRequestBuilder(V1beta2ExactDeviceRequestFluent fluen this(fluent, new V1beta2ExactDeviceRequest()); } - public V1beta2ExactDeviceRequestBuilder(V1beta2ExactDeviceRequestFluent fluent,V1beta2ExactDeviceRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2ExactDeviceRequestBuilder(V1beta2ExactDeviceRequest instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2ExactDeviceRequestFluent fluent; + public V1beta2ExactDeviceRequestBuilder(V1beta2ExactDeviceRequestFluent fluent,V1beta2ExactDeviceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2ExactDeviceRequest build() { V1beta2ExactDeviceRequest buildable = new V1beta2ExactDeviceRequest(); buildable.setAdminAccess(fluent.getAdminAccess()); @@ -34,5 +36,4 @@ public V1beta2ExactDeviceRequest build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestFluent.java index baa0f83b06..7d1a8d3aca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestFluent.java @@ -1,33 +1,28 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Boolean; -import java.util.Optional; -import java.lang.Long; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2ExactDeviceRequestFluent> extends BaseFluent{ - public V1beta2ExactDeviceRequestFluent() { - } - - public V1beta2ExactDeviceRequestFluent(V1beta2ExactDeviceRequest instance) { - this.copyInstance(instance); - } + private Boolean adminAccess; private String allocationMode; private V1beta2CapacityRequirementsBuilder capacity; @@ -35,128 +30,67 @@ public V1beta2ExactDeviceRequestFluent(V1beta2ExactDeviceRequest instance) { private String deviceClassName; private ArrayList selectors; private ArrayList tolerations; - - protected void copyInstance(V1beta2ExactDeviceRequest instance) { - instance = instance != null ? instance : new V1beta2ExactDeviceRequest(); - if (instance != null) { - this.withAdminAccess(instance.getAdminAccess()); - this.withAllocationMode(instance.getAllocationMode()); - this.withCapacity(instance.getCapacity()); - this.withCount(instance.getCount()); - this.withDeviceClassName(instance.getDeviceClassName()); - this.withSelectors(instance.getSelectors()); - this.withTolerations(instance.getTolerations()); - } - } - - public Boolean getAdminAccess() { - return this.adminAccess; - } - - public A withAdminAccess(Boolean adminAccess) { - this.adminAccess = adminAccess; - return (A) this; - } - - public boolean hasAdminAccess() { - return this.adminAccess != null; - } - - public String getAllocationMode() { - return this.allocationMode; - } - - public A withAllocationMode(String allocationMode) { - this.allocationMode = allocationMode; - return (A) this; - } - - public boolean hasAllocationMode() { - return this.allocationMode != null; + + public V1beta2ExactDeviceRequestFluent() { } - public V1beta2CapacityRequirements buildCapacity() { - return this.capacity != null ? this.capacity.build() : null; + public V1beta2ExactDeviceRequestFluent(V1beta2ExactDeviceRequest instance) { + this.copyInstance(instance); } - - public A withCapacity(V1beta2CapacityRequirements capacity) { - this._visitables.remove("capacity"); - if (capacity != null) { - this.capacity = new V1beta2CapacityRequirementsBuilder(capacity); - this._visitables.get("capacity").add(this.capacity); - } else { - this.capacity = null; - this._visitables.get("capacity").remove(this.capacity); + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); } return (A) this; } - public boolean hasCapacity() { - return this.capacity != null; - } - - public CapacityNested withNewCapacity() { - return new CapacityNested(null); - } - - public CapacityNested withNewCapacityLike(V1beta2CapacityRequirements item) { - return new CapacityNested(item); - } - - public CapacityNested editCapacity() { - return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); - } - - public CapacityNested editOrNewCapacity() { - return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1beta2CapacityRequirementsBuilder().build())); - } - - public CapacityNested editOrNewCapacityLike(V1beta2CapacityRequirements item) { - return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); - } - - public Long getCount() { - return this.count; - } - - public A withCount(Long count) { - this.count = count; + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } return (A) this; } - public boolean hasCount() { - return this.count != null; + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); } - public String getDeviceClassName() { - return this.deviceClassName; + public SelectorsNested addNewSelectorLike(V1beta2DeviceSelector item) { + return new SelectorsNested(-1, item); } - public A withDeviceClassName(String deviceClassName) { - this.deviceClassName = deviceClassName; - return (A) this; + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); } - public boolean hasDeviceClassName() { - return this.deviceClassName != null; + public TolerationsNested addNewTolerationLike(V1beta2DeviceToleration item) { + return new TolerationsNested(-1, item); } - public A addToSelectors(int index,V1beta2DeviceSelector item) { + public A addToSelectors(V1beta2DeviceSelector... items) { if (this.selectors == null) { this.selectors = new ArrayList(); } - V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); - } else { + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); _visitables.get("selectors").add(builder); - selectors.add(index, builder); + this.selectors.add(builder); } return (A) this; } - public A setToSelectors(int index,V1beta2DeviceSelector item) { + public A addToSelectors(int index,V1beta2DeviceSelector item) { if (this.selectors == null) { this.selectors = new ArrayList(); } @@ -166,91 +100,58 @@ public A setToSelectors(int index,V1beta2DeviceSelector item) { selectors.add(builder); } else { _visitables.get("selectors").add(builder); - selectors.set(index, builder); - } - return (A) this; - } - - public A addToSelectors(V1beta2DeviceSelector... items) { - if (this.selectors == null) { - this.selectors = new ArrayList(); - } - for (V1beta2DeviceSelector item : items) { - V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); - this.selectors.add(builder); - } - return (A) this; - } - - public A addAllToSelectors(Collection items) { - if (this.selectors == null) { - this.selectors = new ArrayList(); - } - for (V1beta2DeviceSelector item : items) { - V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); - this.selectors.add(builder); - } - return (A) this; - } - - public A removeFromSelectors(V1beta2DeviceSelector... items) { - if (this.selectors == null) { - return (A) this; - } - for (V1beta2DeviceSelector item : items) { - V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - _visitables.get("selectors").remove(builder); - this.selectors.remove(builder); + selectors.add(index, builder); } return (A) this; } - public A removeAllFromSelectors(Collection items) { - if (this.selectors == null) { - return (A) this; + public A addToTolerations(V1beta2DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - for (V1beta2DeviceSelector item : items) { - V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - _visitables.get("selectors").remove(builder); - this.selectors.remove(builder); + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } return (A) this; } - public A removeMatchingFromSelectors(Predicate predicate) { - if (selectors == null) { - return (A) this; + public A addToTolerations(int index,V1beta2DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - Iterator each = selectors.iterator(); - List visitables = _visitables.get("selectors"); - while (each.hasNext()) { - V1beta2DeviceSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); } return (A) this; } - public List buildSelectors() { - return this.selectors != null ? build(selectors) : null; - } - - public V1beta2DeviceSelector buildSelector(int index) { - return this.selectors.get(index).build(); + public V1beta2CapacityRequirements buildCapacity() { + return this.capacity != null ? this.capacity.build() : null; } public V1beta2DeviceSelector buildFirstSelector() { return this.selectors.get(0).build(); } + public V1beta2DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + public V1beta2DeviceSelector buildLastSelector() { return this.selectors.get(selectors.size() - 1).build(); } + public V1beta2DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + public V1beta2DeviceSelector buildMatchingSelector(Predicate predicate) { for (V1beta2DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { @@ -260,64 +161,46 @@ public V1beta2DeviceSelector buildMatchingSelector(Predicate predicate) { - for (V1beta2DeviceSelectorBuilder item : selectors) { + public V1beta2DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withSelectors(List selectors) { - if (this.selectors != null) { - this._visitables.get("selectors").clear(); - } - if (selectors != null) { - this.selectors = new ArrayList(); - for (V1beta2DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } else { - this.selectors = null; - } - return (A) this; - } - - public A withSelectors(V1beta2DeviceSelector... selectors) { - if (this.selectors != null) { - this.selectors.clear(); - _visitables.remove("selectors"); - } - if (selectors != null) { - for (V1beta2DeviceSelector item : selectors) { - this.addToSelectors(item); - } - } - return (A) this; + public V1beta2DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); } - public boolean hasSelectors() { - return this.selectors != null && !(this.selectors.isEmpty()); + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; } - public SelectorsNested addNewSelector() { - return new SelectorsNested(-1, null); + public V1beta2DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); } - public SelectorsNested addNewSelectorLike(V1beta2DeviceSelector item) { - return new SelectorsNested(-1, item); + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; } - public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector item) { - return new SelectorsNested(index, item); + protected void copyInstance(V1beta2ExactDeviceRequest instance) { + instance = instance != null ? instance : new V1beta2ExactDeviceRequest(); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withAllocationMode(instance.getAllocationMode()); + this.withCapacity(instance.getCapacity()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } } - public SelectorsNested editSelector(int index) { - if (index <= selectors.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); - } - return this.setNewSelectorLike(index, this.buildSelector(index)); + public CapacityNested editCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); } public SelectorsNested editFirstSelector() { @@ -327,6 +210,13 @@ public SelectorsNested editFirstSelector() { return this.setNewSelectorLike(0, this.buildSelector(0)); } + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); + } + public SelectorsNested editLastSelector() { int index = selectors.size() - 1; if (index < 0) { @@ -335,6 +225,14 @@ public SelectorsNested editLastSelector() { return this.setNewSelectorLike(index, this.buildSelector(index)); } + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + public SelectorsNested editMatchingSelector(Predicate predicate) { int index = -1; for (int i = 0;i < selectors.size();i++) { @@ -349,123 +247,120 @@ public SelectorsNested editMatchingSelector(Predicate editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } } - V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A setToTolerations(int index,V1beta2DeviceToleration item) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); - } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); - } - return (A) this; + public CapacityNested editOrNewCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1beta2CapacityRequirementsBuilder().build())); } - public A addToTolerations(V1beta2DeviceToleration... items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - for (V1beta2DeviceToleration item : items) { - V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); - } - return (A) this; + public CapacityNested editOrNewCapacityLike(V1beta2CapacityRequirements item) { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); } - public A addAllToTolerations(Collection items) { - if (this.tolerations == null) { - this.tolerations = new ArrayList(); - } - for (V1beta2DeviceToleration item : items) { - V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); } - return (A) this; + return this.setNewSelectorLike(index, this.buildSelector(index)); } - public A removeFromTolerations(V1beta2DeviceToleration... items) { - if (this.tolerations == null) { - return (A) this; - } - for (V1beta2DeviceToleration item : items) { - V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - this.tolerations.remove(builder); + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); } - return (A) this; + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (V1beta2DeviceToleration item : items) { - V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - this.tolerations.remove(builder); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; - } - - public A removeMatchingFromTolerations(Predicate predicate) { - if (tolerations == null) { - return (A) this; + if (!(super.equals(o))) { + return false; } - Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); - while (each.hasNext()) { - V1beta2DeviceTolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1beta2ExactDeviceRequestFluent that = (V1beta2ExactDeviceRequestFluent) o; + if (!(Objects.equals(adminAccess, that.adminAccess))) { + return false; } - return (A) this; + if (!(Objects.equals(allocationMode, that.allocationMode))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(deviceClassName, that.deviceClassName))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; } - public List buildTolerations() { - return this.tolerations != null ? build(tolerations) : null; + public Boolean getAdminAccess() { + return this.adminAccess; } - public V1beta2DeviceToleration buildToleration(int index) { - return this.tolerations.get(index).build(); + public String getAllocationMode() { + return this.allocationMode; } - public V1beta2DeviceToleration buildFirstToleration() { - return this.tolerations.get(0).build(); + public Long getCount() { + return this.count; } - public V1beta2DeviceToleration buildLastToleration() { - return this.tolerations.get(tolerations.size() - 1).build(); + public String getDeviceClassName() { + return this.deviceClassName; } - public V1beta2DeviceToleration buildMatchingToleration(Predicate predicate) { - for (V1beta2DeviceTolerationBuilder item : tolerations) { + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean hasCount() { + return this.count != null; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingToleration(Predicate predicate) { @@ -477,123 +372,134 @@ public boolean hasMatchingToleration(Predicate p return false; } - public A withTolerations(List tolerations) { - if (this.tolerations != null) { - this._visitables.get("tolerations").clear(); + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public int hashCode() { + return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, selectors, tolerations); + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) { + return (A) this; } - if (tolerations != null) { - this.tolerations = new ArrayList(); - for (V1beta2DeviceToleration item : tolerations) { - this.addToTolerations(item); - } - } else { - this.tolerations = null; + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeFromSelectors(V1beta2DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1beta2DeviceSelector item : items) { + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeFromTolerations(V1beta2DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1beta2DeviceToleration item : items) { + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); } return (A) this; } - public A withTolerations(V1beta2DeviceToleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - _visitables.remove("tolerations"); + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; } - if (tolerations != null) { - for (V1beta2DeviceToleration item : tolerations) { - this.addToTolerations(item); - } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1beta2DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasTolerations() { - return this.tolerations != null && !(this.tolerations.isEmpty()); - } - - public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1beta2DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public TolerationsNested addNewTolerationLike(V1beta2DeviceToleration item) { - return new TolerationsNested(-1, item); + public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector item) { + return new SelectorsNested(index, item); } public TolerationsNested setNewTolerationLike(int index,V1beta2DeviceToleration item) { return new TolerationsNested(index, item); } - public TolerationsNested editToleration(int index) { - if (index <= tolerations.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); - } - return this.setNewTolerationLike(index, this.buildToleration(index)); - } - - public TolerationsNested editFirstToleration() { - if (tolerations.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); - } - return this.setNewTolerationLike(0, this.buildToleration(0)); - } - - public TolerationsNested editLastToleration() { - int index = tolerations.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); - } - return this.setNewTolerationLike(index, this.buildToleration(index)); - } - - public TolerationsNested editMatchingToleration(Predicate predicate) { - int index = -1; - for (int i = 0;i < tolerations.size();i++) { - if (predicate.test(tolerations.get(i))) { - index = i; - break; - } + public A setToSelectors(int index,V1beta2DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); + if (index < 0 || index >= selectors.size()) { + _visitables.get("selectors").add(builder); + selectors.add(builder); + } else { + _visitables.get("selectors").add(builder); + selectors.set(index, builder); } - return this.setNewTolerationLike(index, this.buildToleration(index)); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta2ExactDeviceRequestFluent that = (V1beta2ExactDeviceRequestFluent) o; - if (!(Objects.equals(adminAccess, that.adminAccess))) { - return false; - } - if (!(Objects.equals(allocationMode, that.allocationMode))) { - return false; - } - if (!(Objects.equals(capacity, that.capacity))) { - return false; - } - if (!(Objects.equals(count, that.count))) { - return false; - } - if (!(Objects.equals(deviceClassName, that.deviceClassName))) { - return false; - } - if (!(Objects.equals(selectors, that.selectors))) { - return false; + public A setToTolerations(int index,V1beta2DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); } - if (!(Objects.equals(tolerations, that.tolerations))) { - return false; + V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); + if (index < 0 || index >= tolerations.size()) { + _visitables.get("tolerations").add(builder); + tolerations.add(builder); + } else { + _visitables.get("tolerations").add(builder); + tolerations.set(index, builder); } - return true; - } - - public int hashCode() { - return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, selectors, tolerations); + return (A) this; } public String toString() { @@ -640,12 +546,110 @@ public String toString() { public A withAdminAccess() { return withAdminAccess(true); } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public A withCapacity(V1beta2CapacityRequirements capacity) { + this._visitables.remove("capacity"); + if (capacity != null) { + this.capacity = new V1beta2CapacityRequirementsBuilder(capacity); + this._visitables.get("capacity").add(this.capacity); + } else { + this.capacity = null; + this._visitables.get("capacity").remove(this.capacity); + } + return (A) this; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public CapacityNested withNewCapacity() { + return new CapacityNested(null); + } + + public CapacityNested withNewCapacityLike(V1beta2CapacityRequirements item) { + return new CapacityNested(item); + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1beta2DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(V1beta2DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1beta2DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1beta2DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(V1beta2DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1beta2DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } public class CapacityNested extends V1beta2CapacityRequirementsFluent> implements Nested{ + + V1beta2CapacityRequirementsBuilder builder; + CapacityNested(V1beta2CapacityRequirements item) { this.builder = new V1beta2CapacityRequirementsBuilder(this, item); } - V1beta2CapacityRequirementsBuilder builder; - + public N and() { return (N) V1beta2ExactDeviceRequestFluent.this.withCapacity(builder.build()); } @@ -654,16 +658,17 @@ public N endCapacity() { return and(); } - } public class SelectorsNested extends V1beta2DeviceSelectorFluent> implements Nested{ + + V1beta2DeviceSelectorBuilder builder; + int index; + SelectorsNested(int index,V1beta2DeviceSelector item) { this.index = index; this.builder = new V1beta2DeviceSelectorBuilder(this, item); } - V1beta2DeviceSelectorBuilder builder; - int index; - + public N and() { return (N) V1beta2ExactDeviceRequestFluent.this.setToSelectors(index, builder.build()); } @@ -672,16 +677,17 @@ public N endSelector() { return and(); } - } public class TolerationsNested extends V1beta2DeviceTolerationFluent> implements Nested{ + + V1beta2DeviceTolerationBuilder builder; + int index; + TolerationsNested(int index,V1beta2DeviceToleration item) { this.index = index; this.builder = new V1beta2DeviceTolerationBuilder(this, item); } - V1beta2DeviceTolerationBuilder builder; - int index; - + public N and() { return (N) V1beta2ExactDeviceRequestFluent.this.setToTolerations(index, builder.build()); } @@ -690,7 +696,5 @@ public N endToleration() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataBuilder.java index f6e7c1a702..91a425dec6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2NetworkDeviceDataBuilder extends V1beta2NetworkDeviceDataFluent implements VisitableBuilder{ + + V1beta2NetworkDeviceDataFluent fluent; + public V1beta2NetworkDeviceDataBuilder() { this(new V1beta2NetworkDeviceData()); } @@ -11,17 +14,16 @@ public V1beta2NetworkDeviceDataBuilder(V1beta2NetworkDeviceDataFluent fluent) this(fluent, new V1beta2NetworkDeviceData()); } - public V1beta2NetworkDeviceDataBuilder(V1beta2NetworkDeviceDataFluent fluent,V1beta2NetworkDeviceData instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2NetworkDeviceDataBuilder(V1beta2NetworkDeviceData instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2NetworkDeviceDataFluent fluent; + public V1beta2NetworkDeviceDataBuilder(V1beta2NetworkDeviceDataFluent fluent,V1beta2NetworkDeviceData instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2NetworkDeviceData build() { V1beta2NetworkDeviceData buildable = new V1beta2NetworkDeviceData(); buildable.setHardwareAddress(fluent.getHardwareAddress()); @@ -30,5 +32,4 @@ public V1beta2NetworkDeviceData build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataFluent.java index b410aec9eb..be7cef40f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataFluent.java @@ -1,14 +1,14 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.ArrayList; -import java.util.Objects; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** @@ -16,64 +16,25 @@ */ @SuppressWarnings("unchecked") public class V1beta2NetworkDeviceDataFluent> extends BaseFluent{ - public V1beta2NetworkDeviceDataFluent() { - } - - public V1beta2NetworkDeviceDataFluent(V1beta2NetworkDeviceData instance) { - this.copyInstance(instance); - } + private String hardwareAddress; private String interfaceName; private List ips; - - protected void copyInstance(V1beta2NetworkDeviceData instance) { - instance = instance != null ? instance : new V1beta2NetworkDeviceData(); - if (instance != null) { - this.withHardwareAddress(instance.getHardwareAddress()); - this.withInterfaceName(instance.getInterfaceName()); - this.withIps(instance.getIps()); - } - } - - public String getHardwareAddress() { - return this.hardwareAddress; - } - - public A withHardwareAddress(String hardwareAddress) { - this.hardwareAddress = hardwareAddress; - return (A) this; - } - - public boolean hasHardwareAddress() { - return this.hardwareAddress != null; - } - - public String getInterfaceName() { - return this.interfaceName; - } - - public A withInterfaceName(String interfaceName) { - this.interfaceName = interfaceName; - return (A) this; + + public V1beta2NetworkDeviceDataFluent() { } - public boolean hasInterfaceName() { - return this.interfaceName != null; + public V1beta2NetworkDeviceDataFluent(V1beta2NetworkDeviceData instance) { + this.copyInstance(instance); } - - public A addToIps(int index,String item) { + + public A addAllToIps(Collection items) { if (this.ips == null) { this.ips = new ArrayList(); } - this.ips.add(index, item); - return (A) this; - } - - public A setToIps(int index,String item) { - if (this.ips == null) { - this.ips = new ArrayList(); + for (String item : items) { + this.ips.add(item); } - this.ips.set(index, item); return (A) this; } @@ -87,46 +48,64 @@ public A addToIps(String... items) { return (A) this; } - public A addAllToIps(Collection items) { + public A addToIps(int index,String item) { if (this.ips == null) { this.ips = new ArrayList(); } - for (String item : items) { - this.ips.add(item); - } + this.ips.add(index, item); return (A) this; } - public A removeFromIps(String... items) { - if (this.ips == null) { - return (A) this; - } - for (String item : items) { - this.ips.remove(item); + protected void copyInstance(V1beta2NetworkDeviceData instance) { + instance = instance != null ? instance : new V1beta2NetworkDeviceData(); + if (instance != null) { + this.withHardwareAddress(instance.getHardwareAddress()); + this.withInterfaceName(instance.getInterfaceName()); + this.withIps(instance.getIps()); } - return (A) this; } - public A removeAllFromIps(Collection items) { - if (this.ips == null) { - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; } - for (String item : items) { - this.ips.remove(item); + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + V1beta2NetworkDeviceDataFluent that = (V1beta2NetworkDeviceDataFluent) o; + if (!(Objects.equals(hardwareAddress, that.hardwareAddress))) { + return false; + } + if (!(Objects.equals(interfaceName, that.interfaceName))) { + return false; + } + if (!(Objects.equals(ips, that.ips))) { + return false; + } + return true; } - public List getIps() { - return this.ips; + public String getFirstIp() { + return this.ips.get(0); + } + + public String getHardwareAddress() { + return this.hardwareAddress; + } + + public String getInterfaceName() { + return this.interfaceName; } public String getIp(int index) { return this.ips.get(index); } - public String getFirstIp() { - return this.ips.get(0); + public List getIps() { + return this.ips; } public String getLastIp() { @@ -142,6 +121,18 @@ public String getMatchingIp(Predicate predicate) { return null; } + public boolean hasHardwareAddress() { + return this.hardwareAddress != null; + } + + public boolean hasInterfaceName() { + return this.interfaceName != null; + } + + public boolean hasIps() { + return this.ips != null && !(this.ips.isEmpty()); + } + public boolean hasMatchingIp(Predicate predicate) { for (String item : ips) { if (predicate.test(item)) { @@ -151,60 +142,36 @@ public boolean hasMatchingIp(Predicate predicate) { return false; } - public A withIps(List ips) { - if (ips != null) { - this.ips = new ArrayList(); - for (String item : ips) { - this.addToIps(item); - } - } else { - this.ips = null; - } - return (A) this; + public int hashCode() { + return Objects.hash(hardwareAddress, interfaceName, ips); } - public A withIps(String... ips) { - if (this.ips != null) { - this.ips.clear(); - _visitables.remove("ips"); + public A removeAllFromIps(Collection items) { + if (this.ips == null) { + return (A) this; } - if (ips != null) { - for (String item : ips) { - this.addToIps(item); - } + for (String item : items) { + this.ips.remove(item); } return (A) this; } - public boolean hasIps() { - return this.ips != null && !(this.ips.isEmpty()); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta2NetworkDeviceDataFluent that = (V1beta2NetworkDeviceDataFluent) o; - if (!(Objects.equals(hardwareAddress, that.hardwareAddress))) { - return false; - } - if (!(Objects.equals(interfaceName, that.interfaceName))) { - return false; + public A removeFromIps(String... items) { + if (this.ips == null) { + return (A) this; } - if (!(Objects.equals(ips, that.ips))) { - return false; + for (String item : items) { + this.ips.remove(item); } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(hardwareAddress, interfaceName, ips); + public A setToIps(int index,String item) { + if (this.ips == null) { + this.ips = new ArrayList(); + } + this.ips.set(index, item); + return (A) this; } public String toString() { @@ -228,5 +195,39 @@ public String toString() { return sb.toString(); } - + public A withHardwareAddress(String hardwareAddress) { + this.hardwareAddress = hardwareAddress; + return (A) this; + } + + public A withInterfaceName(String interfaceName) { + this.interfaceName = interfaceName; + return (A) this; + } + + public A withIps(List ips) { + if (ips != null) { + this.ips = new ArrayList(); + for (String item : ips) { + this.addToIps(item); + } + } else { + this.ips = null; + } + return (A) this; + } + + public A withIps(String... ips) { + if (this.ips != null) { + this.ips.clear(); + _visitables.remove("ips"); + } + if (ips != null) { + for (String item : ips) { + this.addToIps(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationBuilder.java index 2004122767..aa5177b30d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2OpaqueDeviceConfigurationBuilder extends V1beta2OpaqueDeviceConfigurationFluent implements VisitableBuilder{ + + V1beta2OpaqueDeviceConfigurationFluent fluent; + public V1beta2OpaqueDeviceConfigurationBuilder() { this(new V1beta2OpaqueDeviceConfiguration()); } @@ -11,17 +14,16 @@ public V1beta2OpaqueDeviceConfigurationBuilder(V1beta2OpaqueDeviceConfigurationF this(fluent, new V1beta2OpaqueDeviceConfiguration()); } - public V1beta2OpaqueDeviceConfigurationBuilder(V1beta2OpaqueDeviceConfigurationFluent fluent,V1beta2OpaqueDeviceConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2OpaqueDeviceConfigurationBuilder(V1beta2OpaqueDeviceConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2OpaqueDeviceConfigurationFluent fluent; + public V1beta2OpaqueDeviceConfigurationBuilder(V1beta2OpaqueDeviceConfigurationFluent fluent,V1beta2OpaqueDeviceConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2OpaqueDeviceConfiguration build() { V1beta2OpaqueDeviceConfiguration buildable = new V1beta2OpaqueDeviceConfiguration(); buildable.setDriver(fluent.getDriver()); @@ -29,5 +31,4 @@ public V1beta2OpaqueDeviceConfiguration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationFluent.java index a4423d89f2..688de917b4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationFluent.java @@ -1,26 +1,28 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2OpaqueDeviceConfigurationFluent> extends BaseFluent{ + + private String driver; + private Object parameters; + public V1beta2OpaqueDeviceConfigurationFluent() { } public V1beta2OpaqueDeviceConfigurationFluent(V1beta2OpaqueDeviceConfiguration instance) { this.copyInstance(instance); } - private String driver; - private Object parameters; - + protected void copyInstance(V1beta2OpaqueDeviceConfiguration instance) { instance = instance != null ? instance : new V1beta2OpaqueDeviceConfiguration(); if (instance != null) { @@ -29,32 +31,6 @@ protected void copyInstance(V1beta2OpaqueDeviceConfiguration instance) { } } - public String getDriver() { - return this.driver; - } - - public A withDriver(String driver) { - this.driver = driver; - return (A) this; - } - - public boolean hasDriver() { - return this.driver != null; - } - - public Object getParameters() { - return this.parameters; - } - - public A withParameters(Object parameters) { - this.parameters = parameters; - return (A) this; - } - - public boolean hasParameters() { - return this.parameters != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -75,6 +51,22 @@ public boolean equals(Object o) { return true; } + public String getDriver() { + return this.driver; + } + + public Object getParameters() { + return this.parameters; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasParameters() { + return this.parameters != null; + } + public int hashCode() { return Objects.hash(driver, parameters); } @@ -95,5 +87,14 @@ public String toString() { return sb.toString(); } - + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withParameters(Object parameters) { + this.parameters = parameters; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimBuilder.java index 60d7a15df8..daa0d00c85 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2ResourceClaimBuilder extends V1beta2ResourceClaimFluent implements VisitableBuilder{ + + V1beta2ResourceClaimFluent fluent; + public V1beta2ResourceClaimBuilder() { this(new V1beta2ResourceClaim()); } @@ -11,17 +14,16 @@ public V1beta2ResourceClaimBuilder(V1beta2ResourceClaimFluent fluent) { this(fluent, new V1beta2ResourceClaim()); } - public V1beta2ResourceClaimBuilder(V1beta2ResourceClaimFluent fluent,V1beta2ResourceClaim instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2ResourceClaimBuilder(V1beta2ResourceClaim instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2ResourceClaimFluent fluent; + public V1beta2ResourceClaimBuilder(V1beta2ResourceClaimFluent fluent,V1beta2ResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2ResourceClaim build() { V1beta2ResourceClaim buildable = new V1beta2ResourceClaim(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V1beta2ResourceClaim build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceBuilder.java index 707666c863..b5858bb771 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2ResourceClaimConsumerReferenceBuilder extends V1beta2ResourceClaimConsumerReferenceFluent implements VisitableBuilder{ + + V1beta2ResourceClaimConsumerReferenceFluent fluent; + public V1beta2ResourceClaimConsumerReferenceBuilder() { this(new V1beta2ResourceClaimConsumerReference()); } @@ -11,17 +14,16 @@ public V1beta2ResourceClaimConsumerReferenceBuilder(V1beta2ResourceClaimConsumer this(fluent, new V1beta2ResourceClaimConsumerReference()); } - public V1beta2ResourceClaimConsumerReferenceBuilder(V1beta2ResourceClaimConsumerReferenceFluent fluent,V1beta2ResourceClaimConsumerReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2ResourceClaimConsumerReferenceBuilder(V1beta2ResourceClaimConsumerReference instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2ResourceClaimConsumerReferenceFluent fluent; + public V1beta2ResourceClaimConsumerReferenceBuilder(V1beta2ResourceClaimConsumerReferenceFluent fluent,V1beta2ResourceClaimConsumerReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2ResourceClaimConsumerReference build() { V1beta2ResourceClaimConsumerReference buildable = new V1beta2ResourceClaimConsumerReference(); buildable.setApiGroup(fluent.getApiGroup()); @@ -31,5 +33,4 @@ public V1beta2ResourceClaimConsumerReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceFluent.java index 616b9ca28d..b9f896bf11 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2ResourceClaimConsumerReferenceFluent> extends BaseFluent{ + + private String apiGroup; + private String name; + private String resource; + private String uid; + public V1beta2ResourceClaimConsumerReferenceFluent() { } public V1beta2ResourceClaimConsumerReferenceFluent(V1beta2ResourceClaimConsumerReference instance) { this.copyInstance(instance); } - private String apiGroup; - private String name; - private String resource; - private String uid; - + protected void copyInstance(V1beta2ResourceClaimConsumerReference instance) { instance = instance != null ? instance : new V1beta2ResourceClaimConsumerReference(); if (instance != null) { @@ -33,58 +35,6 @@ protected void copyInstance(V1beta2ResourceClaimConsumerReference instance) { } } - public String getApiGroup() { - return this.apiGroup; - } - - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; - } - - public boolean hasApiGroup() { - return this.apiGroup != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public String getResource() { - return this.resource; - } - - public A withResource(String resource) { - this.resource = resource; - return (A) this; - } - - public boolean hasResource() { - return this.resource != null; - } - - public String getUid() { - return this.uid; - } - - public A withUid(String uid) { - this.uid = uid; - return (A) this; - } - - public boolean hasUid() { - return this.uid != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -111,6 +61,38 @@ public boolean equals(Object o) { return true; } + public String getApiGroup() { + return this.apiGroup; + } + + public String getName() { + return this.name; + } + + public String getResource() { + return this.resource; + } + + public String getUid() { + return this.uid; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResource() { + return this.resource != null; + } + + public boolean hasUid() { + return this.uid != null; + } + public int hashCode() { return Objects.hash(apiGroup, name, resource, uid); } @@ -141,5 +123,24 @@ public String toString() { return sb.toString(); } - + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimFluent.java index 664a0f88c5..0bb29b33f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2ResourceClaimFluent> extends BaseFluent{ - public V1beta2ResourceClaimFluent() { - } - - public V1beta2ResourceClaimFluent(V1beta2ResourceClaim instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V1beta2ResourceClaimSpecBuilder spec; private V1beta2ResourceClaimStatusBuilder status; - - protected void copyInstance(V1beta2ResourceClaim instance) { - instance = instance != null ? instance : new V1beta2ResourceClaim(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V1beta2ResourceClaimFluent() { } - public boolean hasKind() { - return this.kind != null; + public V1beta2ResourceClaimFluent(V1beta2ResourceClaim instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V1beta2ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V1beta2ResourceClaimStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V1beta2ResourceClaim instance) { + instance = instance != null ? instance : new V1beta2ResourceClaim(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1beta2ResourceClaimSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta2ResourceClaimSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta2ResourceClaimSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta2ResourceClaimSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta2ResourceClaimSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V1beta2ResourceClaimSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V1beta2ResourceClaimStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1beta2ResourceClaimStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1beta2ResourceClaimStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1beta2ResourceClaimStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V1beta2ResourceClaimStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V1beta2ResourceClaimStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1beta2ResourceClaimStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1beta2ResourceClaimStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2ResourceClaimSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1beta2ResourceClaimStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1beta2ResourceClaimSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta2ResourceClaimSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1beta2ResourceClaimStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1beta2ResourceClaimStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1beta2ResourceClaimFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1beta2ResourceClaimSpecFluent> implements Nested{ + + V1beta2ResourceClaimSpecBuilder builder; + SpecNested(V1beta2ResourceClaimSpec item) { this.builder = new V1beta2ResourceClaimSpecBuilder(this, item); } - V1beta2ResourceClaimSpecBuilder builder; - + public N and() { return (N) V1beta2ResourceClaimFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1beta2ResourceClaimStatusFluent> implements Nested{ + + V1beta2ResourceClaimStatusBuilder builder; + StatusNested(V1beta2ResourceClaimStatus item) { this.builder = new V1beta2ResourceClaimStatusBuilder(this, item); } - V1beta2ResourceClaimStatusBuilder builder; - + public N and() { return (N) V1beta2ResourceClaimFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListBuilder.java index 8c6a0707c5..8ccda4aa9b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2ResourceClaimListBuilder extends V1beta2ResourceClaimListFluent implements VisitableBuilder{ + + V1beta2ResourceClaimListFluent fluent; + public V1beta2ResourceClaimListBuilder() { this(new V1beta2ResourceClaimList()); } @@ -11,17 +14,16 @@ public V1beta2ResourceClaimListBuilder(V1beta2ResourceClaimListFluent fluent) this(fluent, new V1beta2ResourceClaimList()); } - public V1beta2ResourceClaimListBuilder(V1beta2ResourceClaimListFluent fluent,V1beta2ResourceClaimList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2ResourceClaimListBuilder(V1beta2ResourceClaimList instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2ResourceClaimListFluent fluent; + public V1beta2ResourceClaimListBuilder(V1beta2ResourceClaimListFluent fluent,V1beta2ResourceClaimList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2ResourceClaimList build() { V1beta2ResourceClaimList buildable = new V1beta2ResourceClaimList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta2ResourceClaimList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListFluent.java index a85bf7a760..4c26e3f295 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2ResourceClaimListFluent> extends BaseFluent{ - public V1beta2ResourceClaimListFluent() { - } - - public V1beta2ResourceClaimListFluent(V1beta2ResourceClaimList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta2ResourceClaimList instance) { - instance = instance != null ? instance : new V1beta2ResourceClaimList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1beta2ResourceClaimListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1beta2ResourceClaimListFluent(V1beta2ResourceClaimList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1beta2ResourceClaim item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1beta2ResourceClaim item : items) { + V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1beta2ResourceClaim item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta2ResourceClaim item) { + return new ItemsNested(-1, item); } public A addToItems(V1beta2ResourceClaim... items) { @@ -96,68 +65,31 @@ public A addToItems(V1beta2ResourceClaim... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1beta2ResourceClaim item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1beta2ResourceClaim item : items) { - V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); + V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1beta2ResourceClaim... items) { - if (this.items == null) { - return (A) this; - } - for (V1beta2ResourceClaim item : items) { - V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1beta2ResourceClaim item : items) { - V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta2ResourceClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1beta2ResourceClaim buildFirstItem() { + return this.items.get(0).build(); } public V1beta2ResourceClaim buildItem(int index) { return this.items.get(index).build(); } - public V1beta2ResourceClaim buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1beta2ResourceClaim buildLastItem() { @@ -173,73 +105,34 @@ public V1beta2ResourceClaim buildMatchingItem(Predicate predicate) { - for (V1beta2ResourceClaimBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta2ResourceClaim item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1beta2ResourceClaimList instance) { + instance = instance != null ? instance : new V1beta2ResourceClaimList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1beta2ResourceClaim... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta2ResourceClaim item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta2ResourceClaim item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta2ResourceClaim item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate pr return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta2ResourceClaimBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta2ResourceClaim item : items) { + V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta2ResourceClaim... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta2ResourceClaim item : items) { + V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta2ResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta2ResourceClaim item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta2ResourceClaim item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta2ResourceClaim item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta2ResourceClaim... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta2ResourceClaim item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1beta2ResourceClaimFluent> implements Nested{ + + V1beta2ResourceClaimBuilder builder; + int index; + ItemsNested(int index,V1beta2ResourceClaim item) { this.index = index; this.builder = new V1beta2ResourceClaimBuilder(this, item); } - V1beta2ResourceClaimBuilder builder; - int index; - + public N and() { return (N) V1beta2ResourceClaimListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1beta2ResourceClaimListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecBuilder.java index 8356a732a0..3fc44c94d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2ResourceClaimSpecBuilder extends V1beta2ResourceClaimSpecFluent implements VisitableBuilder{ + + V1beta2ResourceClaimSpecFluent fluent; + public V1beta2ResourceClaimSpecBuilder() { this(new V1beta2ResourceClaimSpec()); } @@ -11,22 +14,20 @@ public V1beta2ResourceClaimSpecBuilder(V1beta2ResourceClaimSpecFluent fluent) this(fluent, new V1beta2ResourceClaimSpec()); } - public V1beta2ResourceClaimSpecBuilder(V1beta2ResourceClaimSpecFluent fluent,V1beta2ResourceClaimSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2ResourceClaimSpecBuilder(V1beta2ResourceClaimSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2ResourceClaimSpecFluent fluent; + public V1beta2ResourceClaimSpecBuilder(V1beta2ResourceClaimSpecFluent fluent,V1beta2ResourceClaimSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2ResourceClaimSpec build() { V1beta2ResourceClaimSpec buildable = new V1beta2ResourceClaimSpec(); buildable.setDevices(fluent.buildDevices()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecFluent.java index 3d24b887ae..bde918aaeb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecFluent.java @@ -1,26 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2ResourceClaimSpecFluent> extends BaseFluent{ + + private V1beta2DeviceClaimBuilder devices; + public V1beta2ResourceClaimSpecFluent() { } public V1beta2ResourceClaimSpecFluent(V1beta2ResourceClaimSpec instance) { this.copyInstance(instance); } - private V1beta2DeviceClaimBuilder devices; + + public V1beta2DeviceClaim buildDevices() { + return this.devices != null ? this.devices.build() : null; + } protected void copyInstance(V1beta2ResourceClaimSpec instance) { instance = instance != null ? instance : new V1beta2ResourceClaimSpec(); @@ -29,34 +35,6 @@ protected void copyInstance(V1beta2ResourceClaimSpec instance) { } } - public V1beta2DeviceClaim buildDevices() { - return this.devices != null ? this.devices.build() : null; - } - - public A withDevices(V1beta2DeviceClaim devices) { - this._visitables.remove("devices"); - if (devices != null) { - this.devices = new V1beta2DeviceClaimBuilder(devices); - this._visitables.get("devices").add(this.devices); - } else { - this.devices = null; - this._visitables.get("devices").remove(this.devices); - } - return (A) this; - } - - public boolean hasDevices() { - return this.devices != null; - } - - public DevicesNested withNewDevices() { - return new DevicesNested(null); - } - - public DevicesNested withNewDevicesLike(V1beta2DeviceClaim item) { - return new DevicesNested(item); - } - public DevicesNested editDevices() { return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(null)); } @@ -86,6 +64,10 @@ public boolean equals(Object o) { return true; } + public boolean hasDevices() { + return this.devices != null; + } + public int hashCode() { return Objects.hash(devices); } @@ -100,12 +82,34 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withDevices(V1beta2DeviceClaim devices) { + this._visitables.remove("devices"); + if (devices != null) { + this.devices = new V1beta2DeviceClaimBuilder(devices); + this._visitables.get("devices").add(this.devices); + } else { + this.devices = null; + this._visitables.get("devices").remove(this.devices); + } + return (A) this; + } + + public DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1beta2DeviceClaim item) { + return new DevicesNested(item); + } public class DevicesNested extends V1beta2DeviceClaimFluent> implements Nested{ + + V1beta2DeviceClaimBuilder builder; + DevicesNested(V1beta2DeviceClaim item) { this.builder = new V1beta2DeviceClaimBuilder(this, item); } - V1beta2DeviceClaimBuilder builder; - + public N and() { return (N) V1beta2ResourceClaimSpecFluent.this.withDevices(builder.build()); } @@ -114,7 +118,5 @@ public N endDevices() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusBuilder.java index 9a62f079e4..dec82ecf7a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2ResourceClaimStatusBuilder extends V1beta2ResourceClaimStatusFluent implements VisitableBuilder{ + + V1beta2ResourceClaimStatusFluent fluent; + public V1beta2ResourceClaimStatusBuilder() { this(new V1beta2ResourceClaimStatus()); } @@ -11,17 +14,16 @@ public V1beta2ResourceClaimStatusBuilder(V1beta2ResourceClaimStatusFluent flu this(fluent, new V1beta2ResourceClaimStatus()); } - public V1beta2ResourceClaimStatusBuilder(V1beta2ResourceClaimStatusFluent fluent,V1beta2ResourceClaimStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2ResourceClaimStatusBuilder(V1beta2ResourceClaimStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2ResourceClaimStatusFluent fluent; + public V1beta2ResourceClaimStatusBuilder(V1beta2ResourceClaimStatusFluent fluent,V1beta2ResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2ResourceClaimStatus build() { V1beta2ResourceClaimStatus buildable = new V1beta2ResourceClaimStatus(); buildable.setAllocation(fluent.buildAllocation()); @@ -30,5 +32,4 @@ public V1beta2ResourceClaimStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusFluent.java index 44f8d2d6d3..acad62c8ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusFluent.java @@ -1,100 +1,90 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2ResourceClaimStatusFluent> extends BaseFluent{ + + private V1beta2AllocationResultBuilder allocation; + private ArrayList devices; + private ArrayList reservedFor; + public V1beta2ResourceClaimStatusFluent() { } public V1beta2ResourceClaimStatusFluent(V1beta2ResourceClaimStatus instance) { this.copyInstance(instance); } - private V1beta2AllocationResultBuilder allocation; - private ArrayList devices; - private ArrayList reservedFor; - - protected void copyInstance(V1beta2ResourceClaimStatus instance) { - instance = instance != null ? instance : new V1beta2ResourceClaimStatus(); - if (instance != null) { - this.withAllocation(instance.getAllocation()); - this.withDevices(instance.getDevices()); - this.withReservedFor(instance.getReservedFor()); + + public A addAllToDevices(Collection items) { + if (this.devices == null) { + this.devices = new ArrayList(); } - } - - public V1beta2AllocationResult buildAllocation() { - return this.allocation != null ? this.allocation.build() : null; - } - - public A withAllocation(V1beta2AllocationResult allocation) { - this._visitables.remove("allocation"); - if (allocation != null) { - this.allocation = new V1beta2AllocationResultBuilder(allocation); - this._visitables.get("allocation").add(this.allocation); - } else { - this.allocation = null; - this._visitables.get("allocation").remove(this.allocation); + for (V1beta2AllocatedDeviceStatus item : items) { + V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); } return (A) this; } - public boolean hasAllocation() { - return this.allocation != null; - } - - public AllocationNested withNewAllocation() { - return new AllocationNested(null); + public A addAllToReservedFor(Collection items) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } + for (V1beta2ResourceClaimConsumerReference item : items) { + V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); + } + return (A) this; } - public AllocationNested withNewAllocationLike(V1beta2AllocationResult item) { - return new AllocationNested(item); + public DevicesNested addNewDevice() { + return new DevicesNested(-1, null); } - public AllocationNested editAllocation() { - return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(null)); + public DevicesNested addNewDeviceLike(V1beta2AllocatedDeviceStatus item) { + return new DevicesNested(-1, item); } - public AllocationNested editOrNewAllocation() { - return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(new V1beta2AllocationResultBuilder().build())); + public ReservedForNested addNewReservedFor() { + return new ReservedForNested(-1, null); } - public AllocationNested editOrNewAllocationLike(V1beta2AllocationResult item) { - return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(item)); + public ReservedForNested addNewReservedForLike(V1beta2ResourceClaimConsumerReference item) { + return new ReservedForNested(-1, item); } - public A addToDevices(int index,V1beta2AllocatedDeviceStatus item) { + public A addToDevices(V1beta2AllocatedDeviceStatus... items) { if (this.devices == null) { this.devices = new ArrayList(); } - V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); - } else { + for (V1beta2AllocatedDeviceStatus item : items) { + V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); _visitables.get("devices").add(builder); - devices.add(index, builder); + this.devices.add(builder); } return (A) this; } - public A setToDevices(int index,V1beta2AllocatedDeviceStatus item) { + public A addToDevices(int index,V1beta2AllocatedDeviceStatus item) { if (this.devices == null) { this.devices = new ArrayList(); } @@ -104,91 +94,66 @@ public A setToDevices(int index,V1beta2AllocatedDeviceStatus item) { devices.add(builder); } else { _visitables.get("devices").add(builder); - devices.set(index, builder); - } - return (A) this; - } - - public A addToDevices(V1beta2AllocatedDeviceStatus... items) { - if (this.devices == null) { - this.devices = new ArrayList(); - } - for (V1beta2AllocatedDeviceStatus item : items) { - V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); - _visitables.get("devices").add(builder); - this.devices.add(builder); + devices.add(index, builder); } return (A) this; } - public A addAllToDevices(Collection items) { - if (this.devices == null) { - this.devices = new ArrayList(); + public A addToReservedFor(V1beta2ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); } - for (V1beta2AllocatedDeviceStatus item : items) { - V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); - _visitables.get("devices").add(builder); - this.devices.add(builder); + for (V1beta2ResourceClaimConsumerReference item : items) { + V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); } return (A) this; } - public A removeFromDevices(V1beta2AllocatedDeviceStatus... items) { - if (this.devices == null) { - return (A) this; + public A addToReservedFor(int index,V1beta2ResourceClaimConsumerReference item) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); } - for (V1beta2AllocatedDeviceStatus item : items) { - V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); - _visitables.get("devices").remove(builder); - this.devices.remove(builder); + V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.add(index, builder); } return (A) this; } - public A removeAllFromDevices(Collection items) { - if (this.devices == null) { - return (A) this; - } - for (V1beta2AllocatedDeviceStatus item : items) { - V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); - _visitables.get("devices").remove(builder); - this.devices.remove(builder); - } - return (A) this; + public V1beta2AllocationResult buildAllocation() { + return this.allocation != null ? this.allocation.build() : null; } - public A removeMatchingFromDevices(Predicate predicate) { - if (devices == null) { - return (A) this; - } - Iterator each = devices.iterator(); - List visitables = _visitables.get("devices"); - while (each.hasNext()) { - V1beta2AllocatedDeviceStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1beta2AllocatedDeviceStatus buildDevice(int index) { + return this.devices.get(index).build(); } public List buildDevices() { return this.devices != null ? build(devices) : null; } - public V1beta2AllocatedDeviceStatus buildDevice(int index) { - return this.devices.get(index).build(); - } - public V1beta2AllocatedDeviceStatus buildFirstDevice() { return this.devices.get(0).build(); } + public V1beta2ResourceClaimConsumerReference buildFirstReservedFor() { + return this.reservedFor.get(0).build(); + } + public V1beta2AllocatedDeviceStatus buildLastDevice() { return this.devices.get(devices.size() - 1).build(); } + public V1beta2ResourceClaimConsumerReference buildLastReservedFor() { + return this.reservedFor.get(reservedFor.size() - 1).build(); + } + public V1beta2AllocatedDeviceStatus buildMatchingDevice(Predicate predicate) { for (V1beta2AllocatedDeviceStatusBuilder item : devices) { if (predicate.test(item)) { @@ -198,61 +163,38 @@ public V1beta2AllocatedDeviceStatus buildMatchingDevice(Predicate predicate) { - for (V1beta2AllocatedDeviceStatusBuilder item : devices) { + public V1beta2ResourceClaimConsumerReference buildMatchingReservedFor(Predicate predicate) { + for (V1beta2ResourceClaimConsumerReferenceBuilder item : reservedFor) { if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withDevices(List devices) { - if (this.devices != null) { - this._visitables.get("devices").clear(); - } - if (devices != null) { - this.devices = new ArrayList(); - for (V1beta2AllocatedDeviceStatus item : devices) { - this.addToDevices(item); + return item.build(); } - } else { - this.devices = null; - } - return (A) this; - } - - public A withDevices(V1beta2AllocatedDeviceStatus... devices) { - if (this.devices != null) { - this.devices.clear(); - _visitables.remove("devices"); - } - if (devices != null) { - for (V1beta2AllocatedDeviceStatus item : devices) { - this.addToDevices(item); } - } - return (A) this; + return null; } - public boolean hasDevices() { - return this.devices != null && !(this.devices.isEmpty()); + public List buildReservedFor() { + return this.reservedFor != null ? build(reservedFor) : null; } - public DevicesNested addNewDevice() { - return new DevicesNested(-1, null); + public V1beta2ResourceClaimConsumerReference buildReservedFor(int index) { + return this.reservedFor.get(index).build(); } - public DevicesNested addNewDeviceLike(V1beta2AllocatedDeviceStatus item) { - return new DevicesNested(-1, item); + protected void copyInstance(V1beta2ResourceClaimStatus instance) { + instance = instance != null ? instance : new V1beta2ResourceClaimStatus(); + if (instance != null) { + this.withAllocation(instance.getAllocation()); + this.withDevices(instance.getDevices()); + this.withReservedFor(instance.getReservedFor()); + } } - public DevicesNested setNewDeviceLike(int index,V1beta2AllocatedDeviceStatus item) { - return new DevicesNested(index, item); + public AllocationNested editAllocation() { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(null)); } public DevicesNested editDevice(int index) { - if (index <= devices.size()) { + if (devices.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "devices")); } return this.setNewDeviceLike(index, this.buildDevice(index)); @@ -265,6 +207,13 @@ public DevicesNested editFirstDevice() { return this.setNewDeviceLike(0, this.buildDevice(0)); } + public ReservedForNested editFirstReservedFor() { + if (reservedFor.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "reservedFor")); + } + return this.setNewReservedForLike(0, this.buildReservedFor(0)); + } + public DevicesNested editLastDevice() { int index = devices.size() - 1; if (index < 0) { @@ -273,6 +222,14 @@ public DevicesNested editLastDevice() { return this.setNewDeviceLike(index, this.buildDevice(index)); } + public ReservedForNested editLastReservedFor() { + int index = reservedFor.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(index)); + } + public DevicesNested editMatchingDevice(Predicate predicate) { int index = -1; for (int i = 0;i < devices.size();i++) { @@ -287,56 +244,124 @@ public DevicesNested editMatchingDevice(Predicate editMatchingReservedFor(Predicate predicate) { + int index = -1; + for (int i = 0;i < reservedFor.size();i++) { + if (predicate.test(reservedFor.get(i))) { + index = i; + break; + } } - V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { - _visitables.get("reservedFor").add(builder); - reservedFor.add(builder); - } else { - _visitables.get("reservedFor").add(builder); - reservedFor.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "reservedFor")); } - return (A) this; + return this.setNewReservedForLike(index, this.buildReservedFor(index)); } - public A setToReservedFor(int index,V1beta2ResourceClaimConsumerReference item) { - if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + public AllocationNested editOrNewAllocation() { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(new V1beta2AllocationResultBuilder().build())); + } + + public AllocationNested editOrNewAllocationLike(V1beta2AllocationResult item) { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(item)); + } + + public ReservedForNested editReservedFor(int index) { + if (reservedFor.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "reservedFor")); } - V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { - _visitables.get("reservedFor").add(builder); - reservedFor.add(builder); - } else { - _visitables.get("reservedFor").add(builder); - reservedFor.set(index, builder); + return this.setNewReservedForLike(index, this.buildReservedFor(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2ResourceClaimStatusFluent that = (V1beta2ResourceClaimStatusFluent) o; + if (!(Objects.equals(allocation, that.allocation))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(reservedFor, that.reservedFor))) { + return false; + } + return true; + } + + public boolean hasAllocation() { + return this.allocation != null; + } + + public boolean hasDevices() { + return this.devices != null && !(this.devices.isEmpty()); + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1beta2AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingReservedFor(Predicate predicate) { + for (V1beta2ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasReservedFor() { + return this.reservedFor != null && !(this.reservedFor.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allocation, devices, reservedFor); + } + + public A removeAllFromDevices(Collection items) { + if (this.devices == null) { + return (A) this; + } + for (V1beta2AllocatedDeviceStatus item : items) { + V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); } return (A) this; } - public A addToReservedFor(V1beta2ResourceClaimConsumerReference... items) { + public A removeAllFromReservedFor(Collection items) { if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + return (A) this; } for (V1beta2ResourceClaimConsumerReference item : items) { V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); - _visitables.get("reservedFor").add(builder); - this.reservedFor.add(builder); + _visitables.get("reservedFor").remove(builder); + this.reservedFor.remove(builder); } return (A) this; } - public A addAllToReservedFor(Collection items) { - if (this.reservedFor == null) { - this.reservedFor = new ArrayList(); + public A removeFromDevices(V1beta2AllocatedDeviceStatus... items) { + if (this.devices == null) { + return (A) this; } - for (V1beta2ResourceClaimConsumerReference item : items) { - V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); - _visitables.get("reservedFor").add(builder); - this.reservedFor.add(builder); + for (V1beta2AllocatedDeviceStatus item : items) { + V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); } return (A) this; } @@ -353,14 +378,18 @@ public A removeFromReservedFor(V1beta2ResourceClaimConsumerReference... items) { return (A) this; } - public A removeAllFromReservedFor(Collection items) { - if (this.reservedFor == null) { + public A removeMatchingFromDevices(Predicate predicate) { + if (devices == null) { return (A) this; } - for (V1beta2ResourceClaimConsumerReference item : items) { - V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); - _visitables.get("reservedFor").remove(builder); - this.reservedFor.remove(builder); + Iterator each = devices.iterator(); + List visitables = _visitables.get("devices"); + while (each.hasNext()) { + V1beta2AllocatedDeviceStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -381,38 +410,111 @@ public A removeMatchingFromReservedFor(Predicate buildReservedFor() { - return this.reservedFor != null ? build(reservedFor) : null; + public DevicesNested setNewDeviceLike(int index,V1beta2AllocatedDeviceStatus item) { + return new DevicesNested(index, item); } - public V1beta2ResourceClaimConsumerReference buildReservedFor(int index) { - return this.reservedFor.get(index).build(); + public ReservedForNested setNewReservedForLike(int index,V1beta2ResourceClaimConsumerReference item) { + return new ReservedForNested(index, item); } - public V1beta2ResourceClaimConsumerReference buildFirstReservedFor() { - return this.reservedFor.get(0).build(); + public A setToDevices(int index,V1beta2AllocatedDeviceStatus item) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); + } + return (A) this; } - public V1beta2ResourceClaimConsumerReference buildLastReservedFor() { - return this.reservedFor.get(reservedFor.size() - 1).build(); + public A setToReservedFor(int index,V1beta2ResourceClaimConsumerReference item) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } + V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); + if (index < 0 || index >= reservedFor.size()) { + _visitables.get("reservedFor").add(builder); + reservedFor.add(builder); + } else { + _visitables.get("reservedFor").add(builder); + reservedFor.set(index, builder); + } + return (A) this; } - public V1beta2ResourceClaimConsumerReference buildMatchingReservedFor(Predicate predicate) { - for (V1beta2ResourceClaimConsumerReferenceBuilder item : reservedFor) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocation == null)) { + sb.append("allocation:"); + sb.append(allocation); + sb.append(","); + } + if (!(devices == null) && !(devices.isEmpty())) { + sb.append("devices:"); + sb.append(devices); + sb.append(","); + } + if (!(reservedFor == null) && !(reservedFor.isEmpty())) { + sb.append("reservedFor:"); + sb.append(reservedFor); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingReservedFor(Predicate predicate) { - for (V1beta2ResourceClaimConsumerReferenceBuilder item : reservedFor) { - if (predicate.test(item)) { - return true; + public A withAllocation(V1beta2AllocationResult allocation) { + this._visitables.remove("allocation"); + if (allocation != null) { + this.allocation = new V1beta2AllocationResultBuilder(allocation); + this._visitables.get("allocation").add(this.allocation); + } else { + this.allocation = null; + this._visitables.get("allocation").remove(this.allocation); + } + return (A) this; + } + + public A withDevices(List devices) { + if (this.devices != null) { + this._visitables.get("devices").clear(); + } + if (devices != null) { + this.devices = new ArrayList(); + for (V1beta2AllocatedDeviceStatus item : devices) { + this.addToDevices(item); } + } else { + this.devices = null; + } + return (A) this; + } + + public A withDevices(V1beta2AllocatedDeviceStatus... devices) { + if (this.devices != null) { + this.devices.clear(); + _visitables.remove("devices"); + } + if (devices != null) { + for (V1beta2AllocatedDeviceStatus item : devices) { + this.addToDevices(item); } - return false; + } + return (A) this; + } + + public AllocationNested withNewAllocation() { + return new AllocationNested(null); + } + + public AllocationNested withNewAllocationLike(V1beta2AllocationResult item) { + return new AllocationNested(item); } public A withReservedFor(List reservedFor) { @@ -442,112 +544,14 @@ public A withReservedFor(V1beta2ResourceClaimConsumerReference... reservedFor) { } return (A) this; } + public class AllocationNested extends V1beta2AllocationResultFluent> implements Nested{ - public boolean hasReservedFor() { - return this.reservedFor != null && !(this.reservedFor.isEmpty()); - } - - public ReservedForNested addNewReservedFor() { - return new ReservedForNested(-1, null); - } - - public ReservedForNested addNewReservedForLike(V1beta2ResourceClaimConsumerReference item) { - return new ReservedForNested(-1, item); - } - - public ReservedForNested setNewReservedForLike(int index,V1beta2ResourceClaimConsumerReference item) { - return new ReservedForNested(index, item); - } - - public ReservedForNested editReservedFor(int index) { - if (index <= reservedFor.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "reservedFor")); - } - return this.setNewReservedForLike(index, this.buildReservedFor(index)); - } - - public ReservedForNested editFirstReservedFor() { - if (reservedFor.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "reservedFor")); - } - return this.setNewReservedForLike(0, this.buildReservedFor(0)); - } - - public ReservedForNested editLastReservedFor() { - int index = reservedFor.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "reservedFor")); - } - return this.setNewReservedForLike(index, this.buildReservedFor(index)); - } - - public ReservedForNested editMatchingReservedFor(Predicate predicate) { - int index = -1; - for (int i = 0;i < reservedFor.size();i++) { - if (predicate.test(reservedFor.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "reservedFor")); - } - return this.setNewReservedForLike(index, this.buildReservedFor(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta2ResourceClaimStatusFluent that = (V1beta2ResourceClaimStatusFluent) o; - if (!(Objects.equals(allocation, that.allocation))) { - return false; - } - if (!(Objects.equals(devices, that.devices))) { - return false; - } - if (!(Objects.equals(reservedFor, that.reservedFor))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(allocation, devices, reservedFor); - } + V1beta2AllocationResultBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(allocation == null)) { - sb.append("allocation:"); - sb.append(allocation); - sb.append(","); - } - if (!(devices == null) && !(devices.isEmpty())) { - sb.append("devices:"); - sb.append(devices); - sb.append(","); - } - if (!(reservedFor == null) && !(reservedFor.isEmpty())) { - sb.append("reservedFor:"); - sb.append(reservedFor); - } - sb.append("}"); - return sb.toString(); - } - public class AllocationNested extends V1beta2AllocationResultFluent> implements Nested{ AllocationNested(V1beta2AllocationResult item) { this.builder = new V1beta2AllocationResultBuilder(this, item); } - V1beta2AllocationResultBuilder builder; - + public N and() { return (N) V1beta2ResourceClaimStatusFluent.this.withAllocation(builder.build()); } @@ -556,16 +560,17 @@ public N endAllocation() { return and(); } - } public class DevicesNested extends V1beta2AllocatedDeviceStatusFluent> implements Nested{ + + V1beta2AllocatedDeviceStatusBuilder builder; + int index; + DevicesNested(int index,V1beta2AllocatedDeviceStatus item) { this.index = index; this.builder = new V1beta2AllocatedDeviceStatusBuilder(this, item); } - V1beta2AllocatedDeviceStatusBuilder builder; - int index; - + public N and() { return (N) V1beta2ResourceClaimStatusFluent.this.setToDevices(index, builder.build()); } @@ -574,16 +579,17 @@ public N endDevice() { return and(); } - } public class ReservedForNested extends V1beta2ResourceClaimConsumerReferenceFluent> implements Nested{ + + V1beta2ResourceClaimConsumerReferenceBuilder builder; + int index; + ReservedForNested(int index,V1beta2ResourceClaimConsumerReference item) { this.index = index; this.builder = new V1beta2ResourceClaimConsumerReferenceBuilder(this, item); } - V1beta2ResourceClaimConsumerReferenceBuilder builder; - int index; - + public N and() { return (N) V1beta2ResourceClaimStatusFluent.this.setToReservedFor(index, builder.build()); } @@ -592,7 +598,5 @@ public N endReservedFor() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateBuilder.java index ec0c527906..ac0b1f4ab9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2ResourceClaimTemplateBuilder extends V1beta2ResourceClaimTemplateFluent implements VisitableBuilder{ + + V1beta2ResourceClaimTemplateFluent fluent; + public V1beta2ResourceClaimTemplateBuilder() { this(new V1beta2ResourceClaimTemplate()); } @@ -11,17 +14,16 @@ public V1beta2ResourceClaimTemplateBuilder(V1beta2ResourceClaimTemplateFluent this(fluent, new V1beta2ResourceClaimTemplate()); } - public V1beta2ResourceClaimTemplateBuilder(V1beta2ResourceClaimTemplateFluent fluent,V1beta2ResourceClaimTemplate instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2ResourceClaimTemplateBuilder(V1beta2ResourceClaimTemplate instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2ResourceClaimTemplateFluent fluent; + public V1beta2ResourceClaimTemplateBuilder(V1beta2ResourceClaimTemplateFluent fluent,V1beta2ResourceClaimTemplate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2ResourceClaimTemplate build() { V1beta2ResourceClaimTemplate buildable = new V1beta2ResourceClaimTemplate(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta2ResourceClaimTemplate build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateFluent.java index 277f5e14bb..1739bd2975 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2ResourceClaimTemplateFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta2ResourceClaimTemplateSpecBuilder spec; + public V1beta2ResourceClaimTemplateFluent() { } public V1beta2ResourceClaimTemplateFluent(V1beta2ResourceClaimTemplate instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta2ResourceClaimTemplateSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta2ResourceClaimTemplateSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1beta2ResourceClaimTemplate instance) { instance = instance != null ? instance : new V1beta2ResourceClaimTemplate(); @@ -35,60 +45,6 @@ protected void copyInstance(V1beta2ResourceClaimTemplate instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1beta2ResourceClaimTemplateSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta2ResourceClaimTemplateSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta2ResourceClaimTemplateSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta2ResourceClaimTemplateSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta2ResourceClaimTemplateSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1beta2ResourceClaimTemplateSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2ResourceClaimTemplateSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1beta2ResourceClaimTemplateSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta2ResourceClaimTemplateSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1beta2ResourceClaimTemplateFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1beta2ResourceClaimTemplateSpecFluent> implements Nested{ + + V1beta2ResourceClaimTemplateSpecBuilder builder; + SpecNested(V1beta2ResourceClaimTemplateSpec item) { this.builder = new V1beta2ResourceClaimTemplateSpecBuilder(this, item); } - V1beta2ResourceClaimTemplateSpecBuilder builder; - + public N and() { return (N) V1beta2ResourceClaimTemplateFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListBuilder.java index f13ebf6217..cef2d71382 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2ResourceClaimTemplateListBuilder extends V1beta2ResourceClaimTemplateListFluent implements VisitableBuilder{ + + V1beta2ResourceClaimTemplateListFluent fluent; + public V1beta2ResourceClaimTemplateListBuilder() { this(new V1beta2ResourceClaimTemplateList()); } @@ -11,17 +14,16 @@ public V1beta2ResourceClaimTemplateListBuilder(V1beta2ResourceClaimTemplateListF this(fluent, new V1beta2ResourceClaimTemplateList()); } - public V1beta2ResourceClaimTemplateListBuilder(V1beta2ResourceClaimTemplateListFluent fluent,V1beta2ResourceClaimTemplateList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2ResourceClaimTemplateListBuilder(V1beta2ResourceClaimTemplateList instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2ResourceClaimTemplateListFluent fluent; + public V1beta2ResourceClaimTemplateListBuilder(V1beta2ResourceClaimTemplateListFluent fluent,V1beta2ResourceClaimTemplateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2ResourceClaimTemplateList build() { V1beta2ResourceClaimTemplateList buildable = new V1beta2ResourceClaimTemplateList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta2ResourceClaimTemplateList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListFluent.java index 9c740d981b..bd4cdf9b3d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2ResourceClaimTemplateListFluent> extends BaseFluent{ - public V1beta2ResourceClaimTemplateListFluent() { - } - - public V1beta2ResourceClaimTemplateListFluent(V1beta2ResourceClaimTemplateList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta2ResourceClaimTemplateList instance) { - instance = instance != null ? instance : new V1beta2ResourceClaimTemplateList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1beta2ResourceClaimTemplateListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1beta2ResourceClaimTemplateListFluent(V1beta2ResourceClaimTemplateList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1beta2ResourceClaimTemplate item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1beta2ResourceClaimTemplate item : items) { + V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1beta2ResourceClaimTemplate item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta2ResourceClaimTemplate item) { + return new ItemsNested(-1, item); } public A addToItems(V1beta2ResourceClaimTemplate... items) { @@ -96,68 +65,31 @@ public A addToItems(V1beta2ResourceClaimTemplate... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1beta2ResourceClaimTemplate item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1beta2ResourceClaimTemplate item : items) { - V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); + V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1beta2ResourceClaimTemplate... items) { - if (this.items == null) { - return (A) this; - } - for (V1beta2ResourceClaimTemplate item : items) { - V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1beta2ResourceClaimTemplate item : items) { - V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta2ResourceClaimTemplateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1beta2ResourceClaimTemplate buildFirstItem() { + return this.items.get(0).build(); } public V1beta2ResourceClaimTemplate buildItem(int index) { return this.items.get(index).build(); } - public V1beta2ResourceClaimTemplate buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1beta2ResourceClaimTemplate buildLastItem() { @@ -173,73 +105,34 @@ public V1beta2ResourceClaimTemplate buildMatchingItem(Predicate predicate) { - for (V1beta2ResourceClaimTemplateBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta2ResourceClaimTemplate item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1beta2ResourceClaimTemplateList instance) { + instance = instance != null ? instance : new V1beta2ResourceClaimTemplateList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1beta2ResourceClaimTemplate... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta2ResourceClaimTemplate item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta2ResourceClaimTemplate item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta2ResourceClaimTemplate item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta2ResourceClaimTemplateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta2ResourceClaimTemplate item : items) { + V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta2ResourceClaimTemplate... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta2ResourceClaimTemplate item : items) { + V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta2ResourceClaimTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta2ResourceClaimTemplate item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta2ResourceClaimTemplate item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta2ResourceClaimTemplate item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta2ResourceClaimTemplate... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta2ResourceClaimTemplate item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1beta2ResourceClaimTemplateFluent> implements Nested{ + + V1beta2ResourceClaimTemplateBuilder builder; + int index; + ItemsNested(int index,V1beta2ResourceClaimTemplate item) { this.index = index; this.builder = new V1beta2ResourceClaimTemplateBuilder(this, item); } - V1beta2ResourceClaimTemplateBuilder builder; - int index; - + public N and() { return (N) V1beta2ResourceClaimTemplateListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1beta2ResourceClaimTemplateListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecBuilder.java index 505bd69582..8df9b443dd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2ResourceClaimTemplateSpecBuilder extends V1beta2ResourceClaimTemplateSpecFluent implements VisitableBuilder{ + + V1beta2ResourceClaimTemplateSpecFluent fluent; + public V1beta2ResourceClaimTemplateSpecBuilder() { this(new V1beta2ResourceClaimTemplateSpec()); } @@ -11,17 +14,16 @@ public V1beta2ResourceClaimTemplateSpecBuilder(V1beta2ResourceClaimTemplateSpecF this(fluent, new V1beta2ResourceClaimTemplateSpec()); } - public V1beta2ResourceClaimTemplateSpecBuilder(V1beta2ResourceClaimTemplateSpecFluent fluent,V1beta2ResourceClaimTemplateSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2ResourceClaimTemplateSpecBuilder(V1beta2ResourceClaimTemplateSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2ResourceClaimTemplateSpecFluent fluent; + public V1beta2ResourceClaimTemplateSpecBuilder(V1beta2ResourceClaimTemplateSpecFluent fluent,V1beta2ResourceClaimTemplateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2ResourceClaimTemplateSpec build() { V1beta2ResourceClaimTemplateSpec buildable = new V1beta2ResourceClaimTemplateSpec(); buildable.setMetadata(fluent.buildMetadata()); @@ -29,5 +31,4 @@ public V1beta2ResourceClaimTemplateSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecFluent.java index e25d3e8fc9..aebc840215 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecFluent.java @@ -1,27 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2ResourceClaimTemplateSpecFluent> extends BaseFluent{ + + private V1ObjectMetaBuilder metadata; + private V1beta2ResourceClaimSpecBuilder spec; + public V1beta2ResourceClaimTemplateSpecFluent() { } public V1beta2ResourceClaimTemplateSpecFluent(V1beta2ResourceClaimTemplateSpec instance) { this.copyInstance(instance); } - private V1ObjectMetaBuilder metadata; - private V1beta2ResourceClaimSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta2ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1beta2ResourceClaimTemplateSpec instance) { instance = instance != null ? instance : new V1beta2ResourceClaimTemplateSpec(); @@ -31,34 +41,6 @@ protected void copyInstance(V1beta2ResourceClaimTemplateSpec instance) { } } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -71,38 +53,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1beta2ResourceClaimSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta2ResourceClaimSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta2ResourceClaimSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta2ResourceClaimSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta2ResourceClaimSpecBuilder().build())); } @@ -111,6 +61,10 @@ public SpecNested editOrNewSpecLike(V1beta2ResourceClaimSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -131,6 +85,14 @@ public boolean equals(Object o) { return true; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(metadata, spec); } @@ -150,12 +112,54 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2ResourceClaimSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1beta2ResourceClaimSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta2ResourceClaimSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1beta2ResourceClaimTemplateSpecFluent.this.withMetadata(builder.build()); } @@ -164,14 +168,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1beta2ResourceClaimSpecFluent> implements Nested{ + + V1beta2ResourceClaimSpecBuilder builder; + SpecNested(V1beta2ResourceClaimSpec item) { this.builder = new V1beta2ResourceClaimSpecBuilder(this, item); } - V1beta2ResourceClaimSpecBuilder builder; - + public N and() { return (N) V1beta2ResourceClaimTemplateSpecFluent.this.withSpec(builder.build()); } @@ -180,7 +185,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolBuilder.java index 7285a539e0..c4709f15f9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2ResourcePoolBuilder extends V1beta2ResourcePoolFluent implements VisitableBuilder{ + + V1beta2ResourcePoolFluent fluent; + public V1beta2ResourcePoolBuilder() { this(new V1beta2ResourcePool()); } @@ -11,17 +14,16 @@ public V1beta2ResourcePoolBuilder(V1beta2ResourcePoolFluent fluent) { this(fluent, new V1beta2ResourcePool()); } - public V1beta2ResourcePoolBuilder(V1beta2ResourcePoolFluent fluent,V1beta2ResourcePool instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2ResourcePoolBuilder(V1beta2ResourcePool instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2ResourcePoolFluent fluent; + public V1beta2ResourcePoolBuilder(V1beta2ResourcePoolFluent fluent,V1beta2ResourcePool instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2ResourcePool build() { V1beta2ResourcePool buildable = new V1beta2ResourcePool(); buildable.setGeneration(fluent.getGeneration()); @@ -30,5 +32,4 @@ public V1beta2ResourcePool build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolFluent.java index bef5cbc062..5611678a38 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2ResourcePoolFluent> extends BaseFluent{ + + private Long generation; + private String name; + private Long resourceSliceCount; + public V1beta2ResourcePoolFluent() { } public V1beta2ResourcePoolFluent(V1beta2ResourcePool instance) { this.copyInstance(instance); } - private Long generation; - private String name; - private Long resourceSliceCount; - + protected void copyInstance(V1beta2ResourcePool instance) { instance = instance != null ? instance : new V1beta2ResourcePool(); if (instance != null) { @@ -32,45 +34,6 @@ protected void copyInstance(V1beta2ResourcePool instance) { } } - public Long getGeneration() { - return this.generation; - } - - public A withGeneration(Long generation) { - this.generation = generation; - return (A) this; - } - - public boolean hasGeneration() { - return this.generation != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public Long getResourceSliceCount() { - return this.resourceSliceCount; - } - - public A withResourceSliceCount(Long resourceSliceCount) { - this.resourceSliceCount = resourceSliceCount; - return (A) this; - } - - public boolean hasResourceSliceCount() { - return this.resourceSliceCount != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -94,6 +57,30 @@ public boolean equals(Object o) { return true; } + public Long getGeneration() { + return this.generation; + } + + public String getName() { + return this.name; + } + + public Long getResourceSliceCount() { + return this.resourceSliceCount; + } + + public boolean hasGeneration() { + return this.generation != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResourceSliceCount() { + return this.resourceSliceCount != null; + } + public int hashCode() { return Objects.hash(generation, name, resourceSliceCount); } @@ -119,5 +106,19 @@ public String toString() { return sb.toString(); } - + public A withGeneration(Long generation) { + this.generation = generation; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResourceSliceCount(Long resourceSliceCount) { + this.resourceSliceCount = resourceSliceCount; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceBuilder.java index 152b759a68..07a7952cb3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2ResourceSliceBuilder extends V1beta2ResourceSliceFluent implements VisitableBuilder{ + + V1beta2ResourceSliceFluent fluent; + public V1beta2ResourceSliceBuilder() { this(new V1beta2ResourceSlice()); } @@ -11,17 +14,16 @@ public V1beta2ResourceSliceBuilder(V1beta2ResourceSliceFluent fluent) { this(fluent, new V1beta2ResourceSlice()); } - public V1beta2ResourceSliceBuilder(V1beta2ResourceSliceFluent fluent,V1beta2ResourceSlice instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2ResourceSliceBuilder(V1beta2ResourceSlice instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2ResourceSliceFluent fluent; + public V1beta2ResourceSliceBuilder(V1beta2ResourceSliceFluent fluent,V1beta2ResourceSlice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2ResourceSlice build() { V1beta2ResourceSlice buildable = new V1beta2ResourceSlice(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta2ResourceSlice build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceFluent.java index e07cdb141b..afd73c972b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceFluent.java @@ -1,29 +1,39 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2ResourceSliceFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta2ResourceSliceSpecBuilder spec; + public V1beta2ResourceSliceFluent() { } public V1beta2ResourceSliceFluent(V1beta2ResourceSlice instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta2ResourceSliceSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta2ResourceSliceSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1beta2ResourceSlice instance) { instance = instance != null ? instance : new V1beta2ResourceSlice(); @@ -35,60 +45,6 @@ protected void copyInstance(V1beta2ResourceSlice instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -101,38 +57,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1beta2ResourceSliceSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta2ResourceSliceSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta2ResourceSliceSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1beta2ResourceSliceSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta2ResourceSliceSpecBuilder().build())); } @@ -141,6 +65,10 @@ public SpecNested editOrNewSpecLike(V1beta2ResourceSliceSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -167,6 +95,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec); } @@ -196,12 +148,64 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2ResourceSliceSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1beta2ResourceSliceSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta2ResourceSliceSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1beta2ResourceSliceFluent.this.withMetadata(builder.build()); } @@ -210,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1beta2ResourceSliceSpecFluent> implements Nested{ + + V1beta2ResourceSliceSpecBuilder builder; + SpecNested(V1beta2ResourceSliceSpec item) { this.builder = new V1beta2ResourceSliceSpecBuilder(this, item); } - V1beta2ResourceSliceSpecBuilder builder; - + public N and() { return (N) V1beta2ResourceSliceFluent.this.withSpec(builder.build()); } @@ -226,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListBuilder.java index edd569e41e..d0a549f008 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2ResourceSliceListBuilder extends V1beta2ResourceSliceListFluent implements VisitableBuilder{ + + V1beta2ResourceSliceListFluent fluent; + public V1beta2ResourceSliceListBuilder() { this(new V1beta2ResourceSliceList()); } @@ -11,17 +14,16 @@ public V1beta2ResourceSliceListBuilder(V1beta2ResourceSliceListFluent fluent) this(fluent, new V1beta2ResourceSliceList()); } - public V1beta2ResourceSliceListBuilder(V1beta2ResourceSliceListFluent fluent,V1beta2ResourceSliceList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2ResourceSliceListBuilder(V1beta2ResourceSliceList instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2ResourceSliceListFluent fluent; + public V1beta2ResourceSliceListBuilder(V1beta2ResourceSliceListFluent fluent,V1beta2ResourceSliceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2ResourceSliceList build() { V1beta2ResourceSliceList buildable = new V1beta2ResourceSliceList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V1beta2ResourceSliceList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListFluent.java index bd914e9ae3..af68edcc2d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2ResourceSliceListFluent> extends BaseFluent{ - public V1beta2ResourceSliceListFluent() { - } - - public V1beta2ResourceSliceListFluent(V1beta2ResourceSliceList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta2ResourceSliceList instance) { - instance = instance != null ? instance : new V1beta2ResourceSliceList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V1beta2ResourceSliceListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V1beta2ResourceSliceListFluent(V1beta2ResourceSliceList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V1beta2ResourceSlice item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V1beta2ResourceSlice item : items) { + V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V1beta2ResourceSlice item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta2ResourceSlice item) { + return new ItemsNested(-1, item); } public A addToItems(V1beta2ResourceSlice... items) { @@ -96,68 +65,31 @@ public A addToItems(V1beta2ResourceSlice... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V1beta2ResourceSlice item) { if (this.items == null) { this.items = new ArrayList(); } - for (V1beta2ResourceSlice item : items) { - V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); + V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V1beta2ResourceSlice... items) { - if (this.items == null) { - return (A) this; - } - for (V1beta2ResourceSlice item : items) { - V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V1beta2ResourceSlice item : items) { - V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V1beta2ResourceSliceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1beta2ResourceSlice buildFirstItem() { + return this.items.get(0).build(); } public V1beta2ResourceSlice buildItem(int index) { return this.items.get(index).build(); } - public V1beta2ResourceSlice buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1beta2ResourceSlice buildLastItem() { @@ -173,73 +105,34 @@ public V1beta2ResourceSlice buildMatchingItem(Predicate predicate) { - for (V1beta2ResourceSliceBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1beta2ResourceSlice item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V1beta2ResourceSliceList instance) { + instance = instance != null ? instance : new V1beta2ResourceSliceList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V1beta2ResourceSlice... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta2ResourceSlice item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1beta2ResourceSlice item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta2ResourceSlice item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate pr return this.setNewItemLike(index, this.buildItem(index)); } - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(V1ListMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; - } - - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta2ResourceSliceBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta2ResourceSlice item : items) { + V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta2ResourceSlice... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta2ResourceSlice item : items) { + V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta2ResourceSliceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta2ResourceSlice item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta2ResourceSlice item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta2ResourceSlice item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta2ResourceSlice... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta2ResourceSlice item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V1beta2ResourceSliceFluent> implements Nested{ + + V1beta2ResourceSliceBuilder builder; + int index; + ItemsNested(int index,V1beta2ResourceSlice item) { this.index = index; this.builder = new V1beta2ResourceSliceBuilder(this, item); } - V1beta2ResourceSliceBuilder builder; - int index; - + public N and() { return (N) V1beta2ResourceSliceListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1beta2ResourceSliceListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecBuilder.java index 013aa208b3..a6745935d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V1beta2ResourceSliceSpecBuilder extends V1beta2ResourceSliceSpecFluent implements VisitableBuilder{ + + V1beta2ResourceSliceSpecFluent fluent; + public V1beta2ResourceSliceSpecBuilder() { this(new V1beta2ResourceSliceSpec()); } @@ -11,17 +14,16 @@ public V1beta2ResourceSliceSpecBuilder(V1beta2ResourceSliceSpecFluent fluent) this(fluent, new V1beta2ResourceSliceSpec()); } - public V1beta2ResourceSliceSpecBuilder(V1beta2ResourceSliceSpecFluent fluent,V1beta2ResourceSliceSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta2ResourceSliceSpecBuilder(V1beta2ResourceSliceSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1beta2ResourceSliceSpecFluent fluent; + public V1beta2ResourceSliceSpecBuilder(V1beta2ResourceSliceSpecFluent fluent,V1beta2ResourceSliceSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta2ResourceSliceSpec build() { V1beta2ResourceSliceSpec buildable = new V1beta2ResourceSliceSpec(); buildable.setAllNodes(fluent.getAllNodes()); @@ -35,5 +37,4 @@ public V1beta2ResourceSliceSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecFluent.java index 422e7b200b..857eaae185 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecFluent.java @@ -1,32 +1,27 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Boolean; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V1beta2ResourceSliceSpecFluent> extends BaseFluent{ - public V1beta2ResourceSliceSpecFluent() { - } - - public V1beta2ResourceSliceSpecFluent(V1beta2ResourceSliceSpec instance) { - this.copyInstance(instance); - } + private Boolean allNodes; private ArrayList devices; private String driver; @@ -35,64 +30,54 @@ public V1beta2ResourceSliceSpecFluent(V1beta2ResourceSliceSpec instance) { private Boolean perDeviceNodeSelection; private V1beta2ResourcePoolBuilder pool; private ArrayList sharedCounters; - - protected void copyInstance(V1beta2ResourceSliceSpec instance) { - instance = instance != null ? instance : new V1beta2ResourceSliceSpec(); - if (instance != null) { - this.withAllNodes(instance.getAllNodes()); - this.withDevices(instance.getDevices()); - this.withDriver(instance.getDriver()); - this.withNodeName(instance.getNodeName()); - this.withNodeSelector(instance.getNodeSelector()); - this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); - this.withPool(instance.getPool()); - this.withSharedCounters(instance.getSharedCounters()); - } - } - - public Boolean getAllNodes() { - return this.allNodes; - } - - public A withAllNodes(Boolean allNodes) { - this.allNodes = allNodes; - return (A) this; + + public V1beta2ResourceSliceSpecFluent() { } - public boolean hasAllNodes() { - return this.allNodes != null; + public V1beta2ResourceSliceSpecFluent(V1beta2ResourceSliceSpec instance) { + this.copyInstance(instance); } - - public A addToDevices(int index,V1beta2Device item) { + + public A addAllToDevices(Collection items) { if (this.devices == null) { this.devices = new ArrayList(); } - V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); - } else { + for (V1beta2Device item : items) { + V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); _visitables.get("devices").add(builder); - devices.add(index, builder); + this.devices.add(builder); } return (A) this; } - public A setToDevices(int index,V1beta2Device item) { - if (this.devices == null) { - this.devices = new ArrayList(); + public A addAllToSharedCounters(Collection items) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); } - V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); - } else { - _visitables.get("devices").add(builder); - devices.set(index, builder); + for (V1beta2CounterSet item : items) { + V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); + _visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); } return (A) this; } + public DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1beta2Device item) { + return new DevicesNested(-1, item); + } + + public SharedCountersNested addNewSharedCounter() { + return new SharedCountersNested(-1, null); + } + + public SharedCountersNested addNewSharedCounterLike(V1beta2CounterSet item) { + return new SharedCountersNested(-1, item); + } + public A addToDevices(V1beta2Device... items) { if (this.devices == null) { this.devices = new ArrayList(); @@ -105,74 +90,72 @@ public A addToDevices(V1beta2Device... items) { return (A) this; } - public A addAllToDevices(Collection items) { + public A addToDevices(int index,V1beta2Device item) { if (this.devices == null) { this.devices = new ArrayList(); } - for (V1beta2Device item : items) { - V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); + V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); + if (index < 0 || index >= devices.size()) { _visitables.get("devices").add(builder); - this.devices.add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.add(index, builder); } return (A) this; } - public A removeFromDevices(V1beta2Device... items) { - if (this.devices == null) { - return (A) this; + public A addToSharedCounters(V1beta2CounterSet... items) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); } - for (V1beta2Device item : items) { - V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); - _visitables.get("devices").remove(builder); - this.devices.remove(builder); + for (V1beta2CounterSet item : items) { + V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); + _visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); } return (A) this; } - public A removeAllFromDevices(Collection items) { - if (this.devices == null) { - return (A) this; + public A addToSharedCounters(int index,V1beta2CounterSet item) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); } - for (V1beta2Device item : items) { - V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); - _visitables.get("devices").remove(builder); - this.devices.remove(builder); + V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(index, builder); } return (A) this; } - public A removeMatchingFromDevices(Predicate predicate) { - if (devices == null) { - return (A) this; - } - Iterator each = devices.iterator(); - List visitables = _visitables.get("devices"); - while (each.hasNext()) { - V1beta2DeviceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V1beta2Device buildDevice(int index) { + return this.devices.get(index).build(); } public List buildDevices() { return this.devices != null ? build(devices) : null; } - public V1beta2Device buildDevice(int index) { - return this.devices.get(index).build(); - } - public V1beta2Device buildFirstDevice() { return this.devices.get(0).build(); } + public V1beta2CounterSet buildFirstSharedCounter() { + return this.sharedCounters.get(0).build(); + } + public V1beta2Device buildLastDevice() { return this.devices.get(devices.size() - 1).build(); } + public V1beta2CounterSet buildLastSharedCounter() { + return this.sharedCounters.get(sharedCounters.size() - 1).build(); + } + public V1beta2Device buildMatchingDevice(Predicate predicate) { for (V1beta2DeviceBuilder item : devices) { if (predicate.test(item)) { @@ -182,61 +165,47 @@ public V1beta2Device buildMatchingDevice(Predicate predica return null; } - public boolean hasMatchingDevice(Predicate predicate) { - for (V1beta2DeviceBuilder item : devices) { + public V1beta2CounterSet buildMatchingSharedCounter(Predicate predicate) { + for (V1beta2CounterSetBuilder item : sharedCounters) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; - } - - public A withDevices(List devices) { - if (this.devices != null) { - this._visitables.get("devices").clear(); - } - if (devices != null) { - this.devices = new ArrayList(); - for (V1beta2Device item : devices) { - this.addToDevices(item); - } - } else { - this.devices = null; - } - return (A) this; + return null; } - public A withDevices(V1beta2Device... devices) { - if (this.devices != null) { - this.devices.clear(); - _visitables.remove("devices"); - } - if (devices != null) { - for (V1beta2Device item : devices) { - this.addToDevices(item); - } - } - return (A) this; + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; } - public boolean hasDevices() { - return this.devices != null && !(this.devices.isEmpty()); + public V1beta2ResourcePool buildPool() { + return this.pool != null ? this.pool.build() : null; } - public DevicesNested addNewDevice() { - return new DevicesNested(-1, null); + public V1beta2CounterSet buildSharedCounter(int index) { + return this.sharedCounters.get(index).build(); } - public DevicesNested addNewDeviceLike(V1beta2Device item) { - return new DevicesNested(-1, item); + public List buildSharedCounters() { + return this.sharedCounters != null ? build(sharedCounters) : null; } - public DevicesNested setNewDeviceLike(int index,V1beta2Device item) { - return new DevicesNested(index, item); + protected void copyInstance(V1beta2ResourceSliceSpec instance) { + instance = instance != null ? instance : new V1beta2ResourceSliceSpec(); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withDevices(instance.getDevices()); + this.withDriver(instance.getDriver()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withPerDeviceNodeSelection(instance.getPerDeviceNodeSelection()); + this.withPool(instance.getPool()); + this.withSharedCounters(instance.getSharedCounters()); + } } public DevicesNested editDevice(int index) { - if (index <= devices.size()) { + if (devices.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "devices")); } return this.setNewDeviceLike(index, this.buildDevice(index)); @@ -249,6 +218,13 @@ public DevicesNested editFirstDevice() { return this.setNewDeviceLike(0, this.buildDevice(0)); } + public SharedCountersNested editFirstSharedCounter() { + if (sharedCounters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "sharedCounters")); + } + return this.setNewSharedCounterLike(0, this.buildSharedCounter(0)); + } + public DevicesNested editLastDevice() { int index = devices.size() - 1; if (index < 0) { @@ -257,6 +233,14 @@ public DevicesNested editLastDevice() { return this.setNewDeviceLike(index, this.buildDevice(index)); } + public SharedCountersNested editLastSharedCounter() { + int index = sharedCounters.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); + } + public DevicesNested editMatchingDevice(Predicate predicate) { int index = -1; for (int i = 0;i < devices.size();i++) { @@ -271,175 +255,191 @@ public DevicesNested editMatchingDevice(Predicate predi return this.setNewDeviceLike(index, this.buildDevice(index)); } - public String getDriver() { - return this.driver; - } - - public A withDriver(String driver) { - this.driver = driver; - return (A) this; - } - - public boolean hasDriver() { - return this.driver != null; + public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { + int index = -1; + for (int i = 0;i < sharedCounters.size();i++) { + if (predicate.test(sharedCounters.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); } - public String getNodeName() { - return this.nodeName; + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); } - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; + public NodeSelectorNested editOrNewNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); } - public boolean hasNodeName() { - return this.nodeName != null; + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); } - public V1NodeSelector buildNodeSelector() { - return this.nodeSelector != null ? this.nodeSelector.build() : null; + public PoolNested editOrNewPool() { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(new V1beta2ResourcePoolBuilder().build())); } - public A withNodeSelector(V1NodeSelector nodeSelector) { - this._visitables.remove("nodeSelector"); - if (nodeSelector != null) { - this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); - this._visitables.get("nodeSelector").add(this.nodeSelector); - } else { - this.nodeSelector = null; - this._visitables.get("nodeSelector").remove(this.nodeSelector); - } - return (A) this; + public PoolNested editOrNewPoolLike(V1beta2ResourcePool item) { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(item)); } - public boolean hasNodeSelector() { - return this.nodeSelector != null; + public PoolNested editPool() { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(null)); } - public NodeSelectorNested withNewNodeSelector() { - return new NodeSelectorNested(null); + public SharedCountersNested editSharedCounter(int index) { + if (sharedCounters.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); } - public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { - return new NodeSelectorNested(item); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2ResourceSliceSpecFluent that = (V1beta2ResourceSliceSpecFluent) o; + if (!(Objects.equals(allNodes, that.allNodes))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + if (!(Objects.equals(perDeviceNodeSelection, that.perDeviceNodeSelection))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(sharedCounters, that.sharedCounters))) { + return false; + } + return true; } - public NodeSelectorNested editNodeSelector() { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + public Boolean getAllNodes() { + return this.allNodes; } - public NodeSelectorNested editOrNewNodeSelector() { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + public String getDriver() { + return this.driver; } - public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { - return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); + public String getNodeName() { + return this.nodeName; } public Boolean getPerDeviceNodeSelection() { return this.perDeviceNodeSelection; } - public A withPerDeviceNodeSelection(Boolean perDeviceNodeSelection) { - this.perDeviceNodeSelection = perDeviceNodeSelection; - return (A) this; + public boolean hasAllNodes() { + return this.allNodes != null; } - public boolean hasPerDeviceNodeSelection() { - return this.perDeviceNodeSelection != null; + public boolean hasDevices() { + return this.devices != null && !(this.devices.isEmpty()); } - public V1beta2ResourcePool buildPool() { - return this.pool != null ? this.pool.build() : null; + public boolean hasDriver() { + return this.driver != null; } - public A withPool(V1beta2ResourcePool pool) { - this._visitables.remove("pool"); - if (pool != null) { - this.pool = new V1beta2ResourcePoolBuilder(pool); - this._visitables.get("pool").add(this.pool); - } else { - this.pool = null; - this._visitables.get("pool").remove(this.pool); - } - return (A) this; + public boolean hasMatchingDevice(Predicate predicate) { + for (V1beta2DeviceBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public boolean hasPool() { - return this.pool != null; + public boolean hasMatchingSharedCounter(Predicate predicate) { + for (V1beta2CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public PoolNested withNewPool() { - return new PoolNested(null); + public boolean hasNodeName() { + return this.nodeName != null; } - public PoolNested withNewPoolLike(V1beta2ResourcePool item) { - return new PoolNested(item); + public boolean hasNodeSelector() { + return this.nodeSelector != null; } - public PoolNested editPool() { - return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(null)); + public boolean hasPerDeviceNodeSelection() { + return this.perDeviceNodeSelection != null; } - public PoolNested editOrNewPool() { - return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(new V1beta2ResourcePoolBuilder().build())); + public boolean hasPool() { + return this.pool != null; } - public PoolNested editOrNewPoolLike(V1beta2ResourcePool item) { - return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(item)); + public boolean hasSharedCounters() { + return this.sharedCounters != null && !(this.sharedCounters.isEmpty()); } - public A addToSharedCounters(int index,V1beta2CounterSet item) { - if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); - } - V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); - if (index < 0 || index >= sharedCounters.size()) { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(builder); - } else { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(index, builder); - } - return (A) this; + public int hashCode() { + return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, perDeviceNodeSelection, pool, sharedCounters); } - public A setToSharedCounters(int index,V1beta2CounterSet item) { - if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + public A removeAllFromDevices(Collection items) { + if (this.devices == null) { + return (A) this; } - V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); - if (index < 0 || index >= sharedCounters.size()) { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(builder); - } else { - _visitables.get("sharedCounters").add(builder); - sharedCounters.set(index, builder); + for (V1beta2Device item : items) { + V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); } return (A) this; } - public A addToSharedCounters(V1beta2CounterSet... items) { + public A removeAllFromSharedCounters(Collection items) { if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + return (A) this; } for (V1beta2CounterSet item : items) { V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); - _visitables.get("sharedCounters").add(builder); - this.sharedCounters.add(builder); + _visitables.get("sharedCounters").remove(builder); + this.sharedCounters.remove(builder); } return (A) this; } - public A addAllToSharedCounters(Collection items) { - if (this.sharedCounters == null) { - this.sharedCounters = new ArrayList(); + public A removeFromDevices(V1beta2Device... items) { + if (this.devices == null) { + return (A) this; } - for (V1beta2CounterSet item : items) { - V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); - _visitables.get("sharedCounters").add(builder); - this.sharedCounters.add(builder); + for (V1beta2Device item : items) { + V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); } return (A) this; } @@ -456,14 +456,18 @@ public A removeFromSharedCounters(V1beta2CounterSet... items) { return (A) this; } - public A removeAllFromSharedCounters(Collection items) { - if (this.sharedCounters == null) { + public A removeMatchingFromDevices(Predicate predicate) { + if (devices == null) { return (A) this; } - for (V1beta2CounterSet item : items) { - V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); - _visitables.get("sharedCounters").remove(builder); - this.sharedCounters.remove(builder); + Iterator each = devices.iterator(); + List visitables = _visitables.get("devices"); + while (each.hasNext()) { + V1beta2DeviceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -476,168 +480,50 @@ public A removeMatchingFromSharedCounters(Predicate pr List visitables = _visitables.get("sharedCounters"); while (each.hasNext()) { V1beta2CounterSetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - public List buildSharedCounters() { - return this.sharedCounters != null ? build(sharedCounters) : null; - } - - public V1beta2CounterSet buildSharedCounter(int index) { - return this.sharedCounters.get(index).build(); - } - - public V1beta2CounterSet buildFirstSharedCounter() { - return this.sharedCounters.get(0).build(); - } - - public V1beta2CounterSet buildLastSharedCounter() { - return this.sharedCounters.get(sharedCounters.size() - 1).build(); - } - - public V1beta2CounterSet buildMatchingSharedCounter(Predicate predicate) { - for (V1beta2CounterSetBuilder item : sharedCounters) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingSharedCounter(Predicate predicate) { - for (V1beta2CounterSetBuilder item : sharedCounters) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withSharedCounters(List sharedCounters) { - if (this.sharedCounters != null) { - this._visitables.get("sharedCounters").clear(); - } - if (sharedCounters != null) { - this.sharedCounters = new ArrayList(); - for (V1beta2CounterSet item : sharedCounters) { - this.addToSharedCounters(item); - } - } else { - this.sharedCounters = null; - } - return (A) this; - } - - public A withSharedCounters(V1beta2CounterSet... sharedCounters) { - if (this.sharedCounters != null) { - this.sharedCounters.clear(); - _visitables.remove("sharedCounters"); - } - if (sharedCounters != null) { - for (V1beta2CounterSet item : sharedCounters) { - this.addToSharedCounters(item); - } + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasSharedCounters() { - return this.sharedCounters != null && !(this.sharedCounters.isEmpty()); - } - - public SharedCountersNested addNewSharedCounter() { - return new SharedCountersNested(-1, null); - } - - public SharedCountersNested addNewSharedCounterLike(V1beta2CounterSet item) { - return new SharedCountersNested(-1, item); + public DevicesNested setNewDeviceLike(int index,V1beta2Device item) { + return new DevicesNested(index, item); } public SharedCountersNested setNewSharedCounterLike(int index,V1beta2CounterSet item) { return new SharedCountersNested(index, item); } - public SharedCountersNested editSharedCounter(int index) { - if (index <= sharedCounters.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sharedCounters")); - } - return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); - } - - public SharedCountersNested editFirstSharedCounter() { - if (sharedCounters.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "sharedCounters")); - } - return this.setNewSharedCounterLike(0, this.buildSharedCounter(0)); - } - - public SharedCountersNested editLastSharedCounter() { - int index = sharedCounters.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "sharedCounters")); - } - return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); - } - - public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { - int index = -1; - for (int i = 0;i < sharedCounters.size();i++) { - if (predicate.test(sharedCounters.get(i))) { - index = i; - break; - } + public A setToDevices(int index,V1beta2Device item) { + if (this.devices == null) { + this.devices = new ArrayList(); } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "sharedCounters")); + V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); + if (index < 0 || index >= devices.size()) { + _visitables.get("devices").add(builder); + devices.add(builder); + } else { + _visitables.get("devices").add(builder); + devices.set(index, builder); } - return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); + return (A) this; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1beta2ResourceSliceSpecFluent that = (V1beta2ResourceSliceSpecFluent) o; - if (!(Objects.equals(allNodes, that.allNodes))) { - return false; - } - if (!(Objects.equals(devices, that.devices))) { - return false; - } - if (!(Objects.equals(driver, that.driver))) { - return false; - } - if (!(Objects.equals(nodeName, that.nodeName))) { - return false; - } - if (!(Objects.equals(nodeSelector, that.nodeSelector))) { - return false; - } - if (!(Objects.equals(perDeviceNodeSelection, that.perDeviceNodeSelection))) { - return false; - } - if (!(Objects.equals(pool, that.pool))) { - return false; + public A setToSharedCounters(int index,V1beta2CounterSet item) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); } - if (!(Objects.equals(sharedCounters, that.sharedCounters))) { - return false; + V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); + if (index < 0 || index >= sharedCounters.size()) { + _visitables.get("sharedCounters").add(builder); + sharedCounters.add(builder); + } else { + _visitables.get("sharedCounters").add(builder); + sharedCounters.set(index, builder); } - return true; - } - - public int hashCode() { - return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, perDeviceNodeSelection, pool, sharedCounters); + return (A) this; } public String toString() { @@ -690,17 +576,135 @@ public A withAllNodes() { return withAllNodes(true); } + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public A withDevices(List devices) { + if (this.devices != null) { + this._visitables.get("devices").clear(); + } + if (devices != null) { + this.devices = new ArrayList(); + for (V1beta2Device item : devices) { + this.addToDevices(item); + } + } else { + this.devices = null; + } + return (A) this; + } + + public A withDevices(V1beta2Device... devices) { + if (this.devices != null) { + this.devices.clear(); + _visitables.remove("devices"); + } + if (devices != null) { + for (V1beta2Device item : devices) { + this.addToDevices(item); + } + } + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public PoolNested withNewPool() { + return new PoolNested(null); + } + + public PoolNested withNewPoolLike(V1beta2ResourcePool item) { + return new PoolNested(item); + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + public A withNodeSelector(V1NodeSelector nodeSelector) { + this._visitables.remove("nodeSelector"); + if (nodeSelector != null) { + this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); + this._visitables.get("nodeSelector").add(this.nodeSelector); + } else { + this.nodeSelector = null; + this._visitables.get("nodeSelector").remove(this.nodeSelector); + } + return (A) this; + } + public A withPerDeviceNodeSelection() { return withPerDeviceNodeSelection(true); } + + public A withPerDeviceNodeSelection(Boolean perDeviceNodeSelection) { + this.perDeviceNodeSelection = perDeviceNodeSelection; + return (A) this; + } + + public A withPool(V1beta2ResourcePool pool) { + this._visitables.remove("pool"); + if (pool != null) { + this.pool = new V1beta2ResourcePoolBuilder(pool); + this._visitables.get("pool").add(this.pool); + } else { + this.pool = null; + this._visitables.get("pool").remove(this.pool); + } + return (A) this; + } + + public A withSharedCounters(List sharedCounters) { + if (this.sharedCounters != null) { + this._visitables.get("sharedCounters").clear(); + } + if (sharedCounters != null) { + this.sharedCounters = new ArrayList(); + for (V1beta2CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } else { + this.sharedCounters = null; + } + return (A) this; + } + + public A withSharedCounters(V1beta2CounterSet... sharedCounters) { + if (this.sharedCounters != null) { + this.sharedCounters.clear(); + _visitables.remove("sharedCounters"); + } + if (sharedCounters != null) { + for (V1beta2CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } + return (A) this; + } public class DevicesNested extends V1beta2DeviceFluent> implements Nested{ + + V1beta2DeviceBuilder builder; + int index; + DevicesNested(int index,V1beta2Device item) { this.index = index; this.builder = new V1beta2DeviceBuilder(this, item); } - V1beta2DeviceBuilder builder; - int index; - + public N and() { return (N) V1beta2ResourceSliceSpecFluent.this.setToDevices(index, builder.build()); } @@ -709,14 +713,15 @@ public N endDevice() { return and(); } - } public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + NodeSelectorNested(V1NodeSelector item) { this.builder = new V1NodeSelectorBuilder(this, item); } - V1NodeSelectorBuilder builder; - + public N and() { return (N) V1beta2ResourceSliceSpecFluent.this.withNodeSelector(builder.build()); } @@ -725,14 +730,15 @@ public N endNodeSelector() { return and(); } - } public class PoolNested extends V1beta2ResourcePoolFluent> implements Nested{ + + V1beta2ResourcePoolBuilder builder; + PoolNested(V1beta2ResourcePool item) { this.builder = new V1beta2ResourcePoolBuilder(this, item); } - V1beta2ResourcePoolBuilder builder; - + public N and() { return (N) V1beta2ResourceSliceSpecFluent.this.withPool(builder.build()); } @@ -741,16 +747,17 @@ public N endPool() { return and(); } - } public class SharedCountersNested extends V1beta2CounterSetFluent> implements Nested{ + + V1beta2CounterSetBuilder builder; + int index; + SharedCountersNested(int index,V1beta2CounterSet item) { this.index = index; this.builder = new V1beta2CounterSetBuilder(this, item); } - V1beta2CounterSetBuilder builder; - int index; - + public N and() { return (N) V1beta2ResourceSliceSpecFluent.this.setToSharedCounters(index, builder.build()); } @@ -759,7 +766,5 @@ public N endSharedCounter() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java index b06e0ed6e5..a522f13644 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2ContainerResourceMetricSourceBuilder extends V2ContainerResourceMetricSourceFluent implements VisitableBuilder{ + + V2ContainerResourceMetricSourceFluent fluent; + public V2ContainerResourceMetricSourceBuilder() { this(new V2ContainerResourceMetricSource()); } @@ -11,17 +14,16 @@ public V2ContainerResourceMetricSourceBuilder(V2ContainerResourceMetricSourceFlu this(fluent, new V2ContainerResourceMetricSource()); } - public V2ContainerResourceMetricSourceBuilder(V2ContainerResourceMetricSourceFluent fluent,V2ContainerResourceMetricSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2ContainerResourceMetricSourceBuilder(V2ContainerResourceMetricSource instance) { this.fluent = this; this.copyInstance(instance); } - V2ContainerResourceMetricSourceFluent fluent; + public V2ContainerResourceMetricSourceBuilder(V2ContainerResourceMetricSourceFluent fluent,V2ContainerResourceMetricSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2ContainerResourceMetricSource build() { V2ContainerResourceMetricSource buildable = new V2ContainerResourceMetricSource(); buildable.setContainer(fluent.getContainer()); @@ -30,5 +32,4 @@ public V2ContainerResourceMetricSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java index 285430d153..04be4e714c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java @@ -1,28 +1,34 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V2ContainerResourceMetricSourceFluent> extends BaseFluent{ + + private String container; + private String name; + private V2MetricTargetBuilder target; + public V2ContainerResourceMetricSourceFluent() { } public V2ContainerResourceMetricSourceFluent(V2ContainerResourceMetricSource instance) { this.copyInstance(instance); } - private String container; - private String name; - private V2MetricTargetBuilder target; + + public V2MetricTarget buildTarget() { + return this.target != null ? this.target.build() : null; + } protected void copyInstance(V2ContainerResourceMetricSource instance) { instance = instance != null ? instance : new V2ContainerResourceMetricSource(); @@ -33,64 +39,6 @@ protected void copyInstance(V2ContainerResourceMetricSource instance) { } } - public String getContainer() { - return this.container; - } - - public A withContainer(String container) { - this.container = container; - return (A) this; - } - - public boolean hasContainer() { - return this.container != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public V2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; - } - - public A withTarget(V2MetricTarget target) { - this._visitables.remove("target"); - if (target != null) { - this.target = new V2MetricTargetBuilder(target); - this._visitables.get("target").add(this.target); - } else { - this.target = null; - this._visitables.get("target").remove(this.target); - } - return (A) this; - } - - public boolean hasTarget() { - return this.target != null; - } - - public TargetNested withNewTarget() { - return new TargetNested(null); - } - - public TargetNested withNewTargetLike(V2MetricTarget item) { - return new TargetNested(item); - } - - public TargetNested editTarget() { - return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); - } - public TargetNested editOrNewTarget() { return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V2MetricTargetBuilder().build())); } @@ -99,6 +47,10 @@ public TargetNested editOrNewTargetLike(V2MetricTarget item) { return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); } + public TargetNested editTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -122,6 +74,26 @@ public boolean equals(Object o) { return true; } + public String getContainer() { + return this.container; + } + + public String getName() { + return this.name; + } + + public boolean hasContainer() { + return this.container != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasTarget() { + return this.target != null; + } + public int hashCode() { return Objects.hash(container, name, target); } @@ -146,12 +118,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withContainer(String container) { + this.container = container; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public TargetNested withNewTarget() { + return new TargetNested(null); + } + + public TargetNested withNewTargetLike(V2MetricTarget item) { + return new TargetNested(item); + } + + public A withTarget(V2MetricTarget target) { + this._visitables.remove("target"); + if (target != null) { + this.target = new V2MetricTargetBuilder(target); + this._visitables.get("target").add(this.target); + } else { + this.target = null; + this._visitables.get("target").remove(this.target); + } + return (A) this; + } public class TargetNested extends V2MetricTargetFluent> implements Nested{ + + V2MetricTargetBuilder builder; + TargetNested(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } - V2MetricTargetBuilder builder; - + public N and() { return (N) V2ContainerResourceMetricSourceFluent.this.withTarget(builder.build()); } @@ -160,7 +164,5 @@ public N endTarget() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java index 9f6b039ad0..332066dc56 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2ContainerResourceMetricStatusBuilder extends V2ContainerResourceMetricStatusFluent implements VisitableBuilder{ + + V2ContainerResourceMetricStatusFluent fluent; + public V2ContainerResourceMetricStatusBuilder() { this(new V2ContainerResourceMetricStatus()); } @@ -11,17 +14,16 @@ public V2ContainerResourceMetricStatusBuilder(V2ContainerResourceMetricStatusFlu this(fluent, new V2ContainerResourceMetricStatus()); } - public V2ContainerResourceMetricStatusBuilder(V2ContainerResourceMetricStatusFluent fluent,V2ContainerResourceMetricStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2ContainerResourceMetricStatusBuilder(V2ContainerResourceMetricStatus instance) { this.fluent = this; this.copyInstance(instance); } - V2ContainerResourceMetricStatusFluent fluent; + public V2ContainerResourceMetricStatusBuilder(V2ContainerResourceMetricStatusFluent fluent,V2ContainerResourceMetricStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2ContainerResourceMetricStatus build() { V2ContainerResourceMetricStatus buildable = new V2ContainerResourceMetricStatus(); buildable.setContainer(fluent.getContainer()); @@ -30,5 +32,4 @@ public V2ContainerResourceMetricStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java index 2147075439..41989c10df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java @@ -1,28 +1,34 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V2ContainerResourceMetricStatusFluent> extends BaseFluent{ + + private String container; + private V2MetricValueStatusBuilder current; + private String name; + public V2ContainerResourceMetricStatusFluent() { } public V2ContainerResourceMetricStatusFluent(V2ContainerResourceMetricStatus instance) { this.copyInstance(instance); } - private String container; - private V2MetricValueStatusBuilder current; - private String name; + + public V2MetricValueStatus buildCurrent() { + return this.current != null ? this.current.build() : null; + } protected void copyInstance(V2ContainerResourceMetricStatus instance) { instance = instance != null ? instance : new V2ContainerResourceMetricStatus(); @@ -33,47 +39,6 @@ protected void copyInstance(V2ContainerResourceMetricStatus instance) { } } - public String getContainer() { - return this.container; - } - - public A withContainer(String container) { - this.container = container; - return (A) this; - } - - public boolean hasContainer() { - return this.container != null; - } - - public V2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; - } - - public A withCurrent(V2MetricValueStatus current) { - this._visitables.remove("current"); - if (current != null) { - this.current = new V2MetricValueStatusBuilder(current); - this._visitables.get("current").add(this.current); - } else { - this.current = null; - this._visitables.get("current").remove(this.current); - } - return (A) this; - } - - public boolean hasCurrent() { - return this.current != null; - } - - public CurrentNested withNewCurrent() { - return new CurrentNested(null); - } - - public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { - return new CurrentNested(item); - } - public CurrentNested editCurrent() { return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(null)); } @@ -86,19 +51,6 @@ public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(item)); } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -122,6 +74,26 @@ public boolean equals(Object o) { return true; } + public String getContainer() { + return this.container; + } + + public String getName() { + return this.name; + } + + public boolean hasContainer() { + return this.container != null; + } + + public boolean hasCurrent() { + return this.current != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(container, current, name); } @@ -146,12 +118,44 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withContainer(String container) { + this.container = container; + return (A) this; + } + + public A withCurrent(V2MetricValueStatus current) { + this._visitables.remove("current"); + if (current != null) { + this.current = new V2MetricValueStatusBuilder(current); + this._visitables.get("current").add(this.current); + } else { + this.current = null; + this._visitables.get("current").remove(this.current); + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public CurrentNested withNewCurrent() { + return new CurrentNested(null); + } + + public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { + return new CurrentNested(item); + } public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ + + V2MetricValueStatusBuilder builder; + CurrentNested(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } - V2MetricValueStatusBuilder builder; - + public N and() { return (N) V2ContainerResourceMetricStatusFluent.this.withCurrent(builder.build()); } @@ -160,7 +164,5 @@ public N endCurrent() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java index 2e32717536..35665c26bd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2CrossVersionObjectReferenceBuilder extends V2CrossVersionObjectReferenceFluent implements VisitableBuilder{ + + V2CrossVersionObjectReferenceFluent fluent; + public V2CrossVersionObjectReferenceBuilder() { this(new V2CrossVersionObjectReference()); } @@ -11,17 +14,16 @@ public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReferenceFluent< this(fluent, new V2CrossVersionObjectReference()); } - public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReferenceFluent fluent,V2CrossVersionObjectReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReference instance) { this.fluent = this; this.copyInstance(instance); } - V2CrossVersionObjectReferenceFluent fluent; + public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReferenceFluent fluent,V2CrossVersionObjectReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2CrossVersionObjectReference build() { V2CrossVersionObjectReference buildable = new V2CrossVersionObjectReference(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +32,4 @@ public V2CrossVersionObjectReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java index 506b55a02a..620d8950ea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java @@ -1,27 +1,29 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V2CrossVersionObjectReferenceFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private String name; + public V2CrossVersionObjectReferenceFluent() { } public V2CrossVersionObjectReferenceFluent(V2CrossVersionObjectReference instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private String name; - + protected void copyInstance(V2CrossVersionObjectReference instance) { instance = instance != null ? instance : new V2CrossVersionObjectReference(); if (instance != null) { @@ -31,45 +33,6 @@ protected void copyInstance(V2CrossVersionObjectReference instance) { } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; - } - - public boolean hasKind() { - return this.kind != null; - } - - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -93,6 +56,30 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public String getName() { + return this.name; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, name); } @@ -118,5 +105,19 @@ public String toString() { return sb.toString(); } - + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java index a43c0d11b5..e0055e702b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2ExternalMetricSourceBuilder extends V2ExternalMetricSourceFluent implements VisitableBuilder{ + + V2ExternalMetricSourceFluent fluent; + public V2ExternalMetricSourceBuilder() { this(new V2ExternalMetricSource()); } @@ -11,17 +14,16 @@ public V2ExternalMetricSourceBuilder(V2ExternalMetricSourceFluent fluent) { this(fluent, new V2ExternalMetricSource()); } - public V2ExternalMetricSourceBuilder(V2ExternalMetricSourceFluent fluent,V2ExternalMetricSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2ExternalMetricSourceBuilder(V2ExternalMetricSource instance) { this.fluent = this; this.copyInstance(instance); } - V2ExternalMetricSourceFluent fluent; + public V2ExternalMetricSourceBuilder(V2ExternalMetricSourceFluent fluent,V2ExternalMetricSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2ExternalMetricSource build() { V2ExternalMetricSource buildable = new V2ExternalMetricSource(); buildable.setMetric(fluent.buildMetric()); @@ -29,5 +31,4 @@ public V2ExternalMetricSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java index 84664559ee..510a40f68b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java @@ -1,27 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V2ExternalMetricSourceFluent> extends BaseFluent{ + + private V2MetricIdentifierBuilder metric; + private V2MetricTargetBuilder target; + public V2ExternalMetricSourceFluent() { } public V2ExternalMetricSourceFluent(V2ExternalMetricSource instance) { this.copyInstance(instance); } - private V2MetricIdentifierBuilder metric; - private V2MetricTargetBuilder target; + + public V2MetricIdentifier buildMetric() { + return this.metric != null ? this.metric.build() : null; + } + + public V2MetricTarget buildTarget() { + return this.target != null ? this.target.build() : null; + } protected void copyInstance(V2ExternalMetricSource instance) { instance = instance != null ? instance : new V2ExternalMetricSource(); @@ -31,34 +41,6 @@ protected void copyInstance(V2ExternalMetricSource instance) { } } - public V2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; - } - - public A withMetric(V2MetricIdentifier metric) { - this._visitables.remove("metric"); - if (metric != null) { - this.metric = new V2MetricIdentifierBuilder(metric); - this._visitables.get("metric").add(this.metric); - } else { - this.metric = null; - this._visitables.get("metric").remove(this.metric); - } - return (A) this; - } - - public boolean hasMetric() { - return this.metric != null; - } - - public MetricNested withNewMetric() { - return new MetricNested(null); - } - - public MetricNested withNewMetricLike(V2MetricIdentifier item) { - return new MetricNested(item); - } - public MetricNested editMetric() { return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); } @@ -71,38 +53,6 @@ public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(item)); } - public V2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; - } - - public A withTarget(V2MetricTarget target) { - this._visitables.remove("target"); - if (target != null) { - this.target = new V2MetricTargetBuilder(target); - this._visitables.get("target").add(this.target); - } else { - this.target = null; - this._visitables.get("target").remove(this.target); - } - return (A) this; - } - - public boolean hasTarget() { - return this.target != null; - } - - public TargetNested withNewTarget() { - return new TargetNested(null); - } - - public TargetNested withNewTargetLike(V2MetricTarget item) { - return new TargetNested(item); - } - - public TargetNested editTarget() { - return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); - } - public TargetNested editOrNewTarget() { return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V2MetricTargetBuilder().build())); } @@ -111,6 +61,10 @@ public TargetNested editOrNewTargetLike(V2MetricTarget item) { return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); } + public TargetNested editTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -131,6 +85,14 @@ public boolean equals(Object o) { return true; } + public boolean hasMetric() { + return this.metric != null; + } + + public boolean hasTarget() { + return this.target != null; + } + public int hashCode() { return Objects.hash(metric, target); } @@ -150,12 +112,54 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMetric(V2MetricIdentifier metric) { + this._visitables.remove("metric"); + if (metric != null) { + this.metric = new V2MetricIdentifierBuilder(metric); + this._visitables.get("metric").add(this.metric); + } else { + this.metric = null; + this._visitables.get("metric").remove(this.metric); + } + return (A) this; + } + + public MetricNested withNewMetric() { + return new MetricNested(null); + } + + public MetricNested withNewMetricLike(V2MetricIdentifier item) { + return new MetricNested(item); + } + + public TargetNested withNewTarget() { + return new TargetNested(null); + } + + public TargetNested withNewTargetLike(V2MetricTarget item) { + return new TargetNested(item); + } + + public A withTarget(V2MetricTarget target) { + this._visitables.remove("target"); + if (target != null) { + this.target = new V2MetricTargetBuilder(target); + this._visitables.get("target").add(this.target); + } else { + this.target = null; + this._visitables.get("target").remove(this.target); + } + return (A) this; + } public class MetricNested extends V2MetricIdentifierFluent> implements Nested{ + + V2MetricIdentifierBuilder builder; + MetricNested(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } - V2MetricIdentifierBuilder builder; - + public N and() { return (N) V2ExternalMetricSourceFluent.this.withMetric(builder.build()); } @@ -164,14 +168,15 @@ public N endMetric() { return and(); } - } public class TargetNested extends V2MetricTargetFluent> implements Nested{ + + V2MetricTargetBuilder builder; + TargetNested(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } - V2MetricTargetBuilder builder; - + public N and() { return (N) V2ExternalMetricSourceFluent.this.withTarget(builder.build()); } @@ -180,7 +185,5 @@ public N endTarget() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java index cee00edefc..0f79837d9d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2ExternalMetricStatusBuilder extends V2ExternalMetricStatusFluent implements VisitableBuilder{ + + V2ExternalMetricStatusFluent fluent; + public V2ExternalMetricStatusBuilder() { this(new V2ExternalMetricStatus()); } @@ -11,17 +14,16 @@ public V2ExternalMetricStatusBuilder(V2ExternalMetricStatusFluent fluent) { this(fluent, new V2ExternalMetricStatus()); } - public V2ExternalMetricStatusBuilder(V2ExternalMetricStatusFluent fluent,V2ExternalMetricStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2ExternalMetricStatusBuilder(V2ExternalMetricStatus instance) { this.fluent = this; this.copyInstance(instance); } - V2ExternalMetricStatusFluent fluent; + public V2ExternalMetricStatusBuilder(V2ExternalMetricStatusFluent fluent,V2ExternalMetricStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2ExternalMetricStatus build() { V2ExternalMetricStatus buildable = new V2ExternalMetricStatus(); buildable.setCurrent(fluent.buildCurrent()); @@ -29,5 +31,4 @@ public V2ExternalMetricStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java index 2913944481..e643233646 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java @@ -1,27 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V2ExternalMetricStatusFluent> extends BaseFluent{ + + private V2MetricValueStatusBuilder current; + private V2MetricIdentifierBuilder metric; + public V2ExternalMetricStatusFluent() { } public V2ExternalMetricStatusFluent(V2ExternalMetricStatus instance) { this.copyInstance(instance); } - private V2MetricValueStatusBuilder current; - private V2MetricIdentifierBuilder metric; + + public V2MetricValueStatus buildCurrent() { + return this.current != null ? this.current.build() : null; + } + + public V2MetricIdentifier buildMetric() { + return this.metric != null ? this.metric.build() : null; + } protected void copyInstance(V2ExternalMetricStatus instance) { instance = instance != null ? instance : new V2ExternalMetricStatus(); @@ -31,38 +41,14 @@ protected void copyInstance(V2ExternalMetricStatus instance) { } } - public V2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; - } - - public A withCurrent(V2MetricValueStatus current) { - this._visitables.remove("current"); - if (current != null) { - this.current = new V2MetricValueStatusBuilder(current); - this._visitables.get("current").add(this.current); - } else { - this.current = null; - this._visitables.get("current").remove(this.current); - } - return (A) this; - } - - public boolean hasCurrent() { - return this.current != null; - } - - public CurrentNested withNewCurrent() { - return new CurrentNested(null); - } - - public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { - return new CurrentNested(item); - } - public CurrentNested editCurrent() { return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(null)); } + public MetricNested editMetric() { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); + } + public CurrentNested editOrNewCurrent() { return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); } @@ -71,38 +57,6 @@ public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(item)); } - public V2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; - } - - public A withMetric(V2MetricIdentifier metric) { - this._visitables.remove("metric"); - if (metric != null) { - this.metric = new V2MetricIdentifierBuilder(metric); - this._visitables.get("metric").add(this.metric); - } else { - this.metric = null; - this._visitables.get("metric").remove(this.metric); - } - return (A) this; - } - - public boolean hasMetric() { - return this.metric != null; - } - - public MetricNested withNewMetric() { - return new MetricNested(null); - } - - public MetricNested withNewMetricLike(V2MetricIdentifier item) { - return new MetricNested(item); - } - - public MetricNested editMetric() { - return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); - } - public MetricNested editOrNewMetric() { return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); } @@ -131,6 +85,14 @@ public boolean equals(Object o) { return true; } + public boolean hasCurrent() { + return this.current != null; + } + + public boolean hasMetric() { + return this.metric != null; + } + public int hashCode() { return Objects.hash(current, metric); } @@ -150,12 +112,54 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withCurrent(V2MetricValueStatus current) { + this._visitables.remove("current"); + if (current != null) { + this.current = new V2MetricValueStatusBuilder(current); + this._visitables.get("current").add(this.current); + } else { + this.current = null; + this._visitables.get("current").remove(this.current); + } + return (A) this; + } + + public A withMetric(V2MetricIdentifier metric) { + this._visitables.remove("metric"); + if (metric != null) { + this.metric = new V2MetricIdentifierBuilder(metric); + this._visitables.get("metric").add(this.metric); + } else { + this.metric = null; + this._visitables.get("metric").remove(this.metric); + } + return (A) this; + } + + public CurrentNested withNewCurrent() { + return new CurrentNested(null); + } + + public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { + return new CurrentNested(item); + } + + public MetricNested withNewMetric() { + return new MetricNested(null); + } + + public MetricNested withNewMetricLike(V2MetricIdentifier item) { + return new MetricNested(item); + } public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ + + V2MetricValueStatusBuilder builder; + CurrentNested(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } - V2MetricValueStatusBuilder builder; - + public N and() { return (N) V2ExternalMetricStatusFluent.this.withCurrent(builder.build()); } @@ -164,14 +168,15 @@ public N endCurrent() { return and(); } - } public class MetricNested extends V2MetricIdentifierFluent> implements Nested{ + + V2MetricIdentifierBuilder builder; + MetricNested(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } - V2MetricIdentifierBuilder builder; - + public N and() { return (N) V2ExternalMetricStatusFluent.this.withMetric(builder.build()); } @@ -180,7 +185,5 @@ public N endMetric() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java index 559811a70d..bde73530b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2HPAScalingPolicyBuilder extends V2HPAScalingPolicyFluent implements VisitableBuilder{ + + V2HPAScalingPolicyFluent fluent; + public V2HPAScalingPolicyBuilder() { this(new V2HPAScalingPolicy()); } @@ -11,17 +14,16 @@ public V2HPAScalingPolicyBuilder(V2HPAScalingPolicyFluent fluent) { this(fluent, new V2HPAScalingPolicy()); } - public V2HPAScalingPolicyBuilder(V2HPAScalingPolicyFluent fluent,V2HPAScalingPolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2HPAScalingPolicyBuilder(V2HPAScalingPolicy instance) { this.fluent = this; this.copyInstance(instance); } - V2HPAScalingPolicyFluent fluent; + public V2HPAScalingPolicyBuilder(V2HPAScalingPolicyFluent fluent,V2HPAScalingPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2HPAScalingPolicy build() { V2HPAScalingPolicy buildable = new V2HPAScalingPolicy(); buildable.setPeriodSeconds(fluent.getPeriodSeconds()); @@ -30,5 +32,4 @@ public V2HPAScalingPolicy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java index ec222cd878..76155444dd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java @@ -1,28 +1,30 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V2HPAScalingPolicyFluent> extends BaseFluent{ + + private Integer periodSeconds; + private String type; + private Integer value; + public V2HPAScalingPolicyFluent() { } public V2HPAScalingPolicyFluent(V2HPAScalingPolicy instance) { this.copyInstance(instance); } - private Integer periodSeconds; - private String type; - private Integer value; - + protected void copyInstance(V2HPAScalingPolicy instance) { instance = instance != null ? instance : new V2HPAScalingPolicy(); if (instance != null) { @@ -32,45 +34,6 @@ protected void copyInstance(V2HPAScalingPolicy instance) { } } - public Integer getPeriodSeconds() { - return this.periodSeconds; - } - - public A withPeriodSeconds(Integer periodSeconds) { - this.periodSeconds = periodSeconds; - return (A) this; - } - - public boolean hasPeriodSeconds() { - return this.periodSeconds != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - - public Integer getValue() { - return this.value; - } - - public A withValue(Integer value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -94,6 +57,30 @@ public boolean equals(Object o) { return true; } + public Integer getPeriodSeconds() { + return this.periodSeconds; + } + + public String getType() { + return this.type; + } + + public Integer getValue() { + return this.value; + } + + public boolean hasPeriodSeconds() { + return this.periodSeconds != null; + } + + public boolean hasType() { + return this.type != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(periodSeconds, type, value); } @@ -119,5 +106,19 @@ public String toString() { return sb.toString(); } - + public A withPeriodSeconds(Integer periodSeconds) { + this.periodSeconds = periodSeconds; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + + public A withValue(Integer value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java index 5809b3609c..1ed0ad9cc3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2HPAScalingRulesBuilder extends V2HPAScalingRulesFluent implements VisitableBuilder{ + + V2HPAScalingRulesFluent fluent; + public V2HPAScalingRulesBuilder() { this(new V2HPAScalingRules()); } @@ -11,17 +14,16 @@ public V2HPAScalingRulesBuilder(V2HPAScalingRulesFluent fluent) { this(fluent, new V2HPAScalingRules()); } - public V2HPAScalingRulesBuilder(V2HPAScalingRulesFluent fluent,V2HPAScalingRules instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2HPAScalingRulesBuilder(V2HPAScalingRules instance) { this.fluent = this; this.copyInstance(instance); } - V2HPAScalingRulesFluent fluent; + public V2HPAScalingRulesBuilder(V2HPAScalingRulesFluent fluent,V2HPAScalingRules instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2HPAScalingRules build() { V2HPAScalingRules buildable = new V2HPAScalingRules(); buildable.setPolicies(fluent.buildPolicies()); @@ -31,5 +33,4 @@ public V2HPAScalingRules build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java index 8756f7a17f..e4bfff9d50 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java @@ -1,75 +1,57 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; import io.kubernetes.client.custom.Quantity; -import java.lang.String; -import java.util.function.Predicate; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Integer; +import java.lang.Object; import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Objects; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V2HPAScalingRulesFluent> extends BaseFluent{ - public V2HPAScalingRulesFluent() { - } - - public V2HPAScalingRulesFluent(V2HPAScalingRules instance) { - this.copyInstance(instance); - } + private ArrayList policies; private String selectPolicy; private Integer stabilizationWindowSeconds; private Quantity tolerance; - - protected void copyInstance(V2HPAScalingRules instance) { - instance = instance != null ? instance : new V2HPAScalingRules(); - if (instance != null) { - this.withPolicies(instance.getPolicies()); - this.withSelectPolicy(instance.getSelectPolicy()); - this.withStabilizationWindowSeconds(instance.getStabilizationWindowSeconds()); - this.withTolerance(instance.getTolerance()); - } + + public V2HPAScalingRulesFluent() { } - public A addToPolicies(int index,V2HPAScalingPolicy item) { + public V2HPAScalingRulesFluent(V2HPAScalingRules instance) { + this.copyInstance(instance); + } + + public A addAllToPolicies(Collection items) { if (this.policies == null) { this.policies = new ArrayList(); } - V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); - if (index < 0 || index >= policies.size()) { - _visitables.get("policies").add(builder); - policies.add(builder); - } else { + for (V2HPAScalingPolicy item : items) { + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); _visitables.get("policies").add(builder); - policies.add(index, builder); + this.policies.add(builder); } return (A) this; } - public A setToPolicies(int index,V2HPAScalingPolicy item) { - if (this.policies == null) { - this.policies = new ArrayList(); - } - V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); - if (index < 0 || index >= policies.size()) { - _visitables.get("policies").add(builder); - policies.add(builder); - } else { - _visitables.get("policies").add(builder); - policies.set(index, builder); - } - return (A) this; + public PoliciesNested addNewPolicy() { + return new PoliciesNested(-1, null); + } + + public PoliciesNested addNewPolicyLike(V2HPAScalingPolicy item) { + return new PoliciesNested(-1, item); } public A addToPolicies(V2HPAScalingPolicy... items) { @@ -84,66 +66,21 @@ public A addToPolicies(V2HPAScalingPolicy... items) { return (A) this; } - public A addAllToPolicies(Collection items) { + public A addToPolicies(int index,V2HPAScalingPolicy item) { if (this.policies == null) { this.policies = new ArrayList(); } - for (V2HPAScalingPolicy item : items) { - V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); + if (index < 0 || index >= policies.size()) { _visitables.get("policies").add(builder); - this.policies.add(builder); - } - return (A) this; - } - - public A removeFromPolicies(V2HPAScalingPolicy... items) { - if (this.policies == null) { - return (A) this; - } - for (V2HPAScalingPolicy item : items) { - V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); - _visitables.get("policies").remove(builder); - this.policies.remove(builder); - } - return (A) this; - } - - public A removeAllFromPolicies(Collection items) { - if (this.policies == null) { - return (A) this; - } - for (V2HPAScalingPolicy item : items) { - V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); - _visitables.get("policies").remove(builder); - this.policies.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromPolicies(Predicate predicate) { - if (policies == null) { - return (A) this; - } - Iterator each = policies.iterator(); - List visitables = _visitables.get("policies"); - while (each.hasNext()) { - V2HPAScalingPolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + policies.add(builder); + } else { + _visitables.get("policies").add(builder); + policies.add(index, builder); } return (A) this; } - public List buildPolicies() { - return this.policies != null ? build(policies) : null; - } - - public V2HPAScalingPolicy buildPolicy(int index) { - return this.policies.get(index).build(); - } - public V2HPAScalingPolicy buildFirstPolicy() { return this.policies.get(0).build(); } @@ -161,64 +98,22 @@ public V2HPAScalingPolicy buildMatchingPolicy(Predicate predicate) { - for (V2HPAScalingPolicyBuilder item : policies) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withPolicies(List policies) { - if (this.policies != null) { - this._visitables.get("policies").clear(); - } - if (policies != null) { - this.policies = new ArrayList(); - for (V2HPAScalingPolicy item : policies) { - this.addToPolicies(item); - } - } else { - this.policies = null; - } - return (A) this; - } - - public A withPolicies(V2HPAScalingPolicy... policies) { - if (this.policies != null) { - this.policies.clear(); - _visitables.remove("policies"); - } - if (policies != null) { - for (V2HPAScalingPolicy item : policies) { - this.addToPolicies(item); - } - } - return (A) this; - } - - public boolean hasPolicies() { - return this.policies != null && !(this.policies.isEmpty()); - } - - public PoliciesNested addNewPolicy() { - return new PoliciesNested(-1, null); - } - - public PoliciesNested addNewPolicyLike(V2HPAScalingPolicy item) { - return new PoliciesNested(-1, item); + public List buildPolicies() { + return this.policies != null ? build(policies) : null; } - public PoliciesNested setNewPolicyLike(int index,V2HPAScalingPolicy item) { - return new PoliciesNested(index, item); + public V2HPAScalingPolicy buildPolicy(int index) { + return this.policies.get(index).build(); } - public PoliciesNested editPolicy(int index) { - if (index <= policies.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "policies")); + protected void copyInstance(V2HPAScalingRules instance) { + instance = instance != null ? instance : new V2HPAScalingRules(); + if (instance != null) { + this.withPolicies(instance.getPolicies()); + this.withSelectPolicy(instance.getSelectPolicy()); + this.withStabilizationWindowSeconds(instance.getStabilizationWindowSeconds()); + this.withTolerance(instance.getTolerance()); } - return this.setNewPolicyLike(index, this.buildPolicy(index)); } public PoliciesNested editFirstPolicy() { @@ -250,77 +145,137 @@ public PoliciesNested editMatchingPolicy(Predicate return this.setNewPolicyLike(index, this.buildPolicy(index)); } - public String getSelectPolicy() { - return this.selectPolicy; + public PoliciesNested editPolicy(int index) { + if (policies.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "policies")); + } + return this.setNewPolicyLike(index, this.buildPolicy(index)); } - public A withSelectPolicy(String selectPolicy) { - this.selectPolicy = selectPolicy; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2HPAScalingRulesFluent that = (V2HPAScalingRulesFluent) o; + if (!(Objects.equals(policies, that.policies))) { + return false; + } + if (!(Objects.equals(selectPolicy, that.selectPolicy))) { + return false; + } + if (!(Objects.equals(stabilizationWindowSeconds, that.stabilizationWindowSeconds))) { + return false; + } + if (!(Objects.equals(tolerance, that.tolerance))) { + return false; + } + return true; } - public boolean hasSelectPolicy() { - return this.selectPolicy != null; + public String getSelectPolicy() { + return this.selectPolicy; } public Integer getStabilizationWindowSeconds() { return this.stabilizationWindowSeconds; } - public A withStabilizationWindowSeconds(Integer stabilizationWindowSeconds) { - this.stabilizationWindowSeconds = stabilizationWindowSeconds; - return (A) this; + public Quantity getTolerance() { + return this.tolerance; } - public boolean hasStabilizationWindowSeconds() { - return this.stabilizationWindowSeconds != null; + public boolean hasMatchingPolicy(Predicate predicate) { + for (V2HPAScalingPolicyBuilder item : policies) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public Quantity getTolerance() { - return this.tolerance; + public boolean hasPolicies() { + return this.policies != null && !(this.policies.isEmpty()); } - public A withTolerance(Quantity tolerance) { - this.tolerance = tolerance; - return (A) this; + public boolean hasSelectPolicy() { + return this.selectPolicy != null; + } + + public boolean hasStabilizationWindowSeconds() { + return this.stabilizationWindowSeconds != null; } public boolean hasTolerance() { return this.tolerance != null; } - public A withNewTolerance(String value) { - return (A) this.withTolerance(new Quantity(value)); + public int hashCode() { + return Objects.hash(policies, selectPolicy, stabilizationWindowSeconds, tolerance); } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; + public A removeAllFromPolicies(Collection items) { + if (this.policies == null) { + return (A) this; } - if (!(super.equals(o))) { - return false; + for (V2HPAScalingPolicy item : items) { + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); + _visitables.get("policies").remove(builder); + this.policies.remove(builder); } - V2HPAScalingRulesFluent that = (V2HPAScalingRulesFluent) o; - if (!(Objects.equals(policies, that.policies))) { - return false; + return (A) this; + } + + public A removeFromPolicies(V2HPAScalingPolicy... items) { + if (this.policies == null) { + return (A) this; } - if (!(Objects.equals(selectPolicy, that.selectPolicy))) { - return false; + for (V2HPAScalingPolicy item : items) { + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); + _visitables.get("policies").remove(builder); + this.policies.remove(builder); } - if (!(Objects.equals(stabilizationWindowSeconds, that.stabilizationWindowSeconds))) { - return false; + return (A) this; + } + + public A removeMatchingFromPolicies(Predicate predicate) { + if (policies == null) { + return (A) this; } - if (!(Objects.equals(tolerance, that.tolerance))) { - return false; + Iterator each = policies.iterator(); + List visitables = _visitables.get("policies"); + while (each.hasNext()) { + V2HPAScalingPolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return true; + return (A) this; } - public int hashCode() { - return Objects.hash(policies, selectPolicy, stabilizationWindowSeconds, tolerance); + public PoliciesNested setNewPolicyLike(int index,V2HPAScalingPolicy item) { + return new PoliciesNested(index, item); + } + + public A setToPolicies(int index,V2HPAScalingPolicy item) { + if (this.policies == null) { + this.policies = new ArrayList(); + } + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); + if (index < 0 || index >= policies.size()) { + _visitables.get("policies").add(builder); + policies.add(builder); + } else { + _visitables.get("policies").add(builder); + policies.set(index, builder); + } + return (A) this; } public String toString() { @@ -348,14 +303,63 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withNewTolerance(String value) { + return (A) this.withTolerance(new Quantity(value)); + } + + public A withPolicies(List policies) { + if (this.policies != null) { + this._visitables.get("policies").clear(); + } + if (policies != null) { + this.policies = new ArrayList(); + for (V2HPAScalingPolicy item : policies) { + this.addToPolicies(item); + } + } else { + this.policies = null; + } + return (A) this; + } + + public A withPolicies(V2HPAScalingPolicy... policies) { + if (this.policies != null) { + this.policies.clear(); + _visitables.remove("policies"); + } + if (policies != null) { + for (V2HPAScalingPolicy item : policies) { + this.addToPolicies(item); + } + } + return (A) this; + } + + public A withSelectPolicy(String selectPolicy) { + this.selectPolicy = selectPolicy; + return (A) this; + } + + public A withStabilizationWindowSeconds(Integer stabilizationWindowSeconds) { + this.stabilizationWindowSeconds = stabilizationWindowSeconds; + return (A) this; + } + + public A withTolerance(Quantity tolerance) { + this.tolerance = tolerance; + return (A) this; + } public class PoliciesNested extends V2HPAScalingPolicyFluent> implements Nested{ + + V2HPAScalingPolicyBuilder builder; + int index; + PoliciesNested(int index,V2HPAScalingPolicy item) { this.index = index; this.builder = new V2HPAScalingPolicyBuilder(this, item); } - V2HPAScalingPolicyBuilder builder; - int index; - + public N and() { return (N) V2HPAScalingRulesFluent.this.setToPolicies(index, builder.build()); } @@ -364,7 +368,5 @@ public N endPolicy() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java index a42f48b129..445ac2b790 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2HorizontalPodAutoscalerBehaviorBuilder extends V2HorizontalPodAutoscalerBehaviorFluent implements VisitableBuilder{ + + V2HorizontalPodAutoscalerBehaviorFluent fluent; + public V2HorizontalPodAutoscalerBehaviorBuilder() { this(new V2HorizontalPodAutoscalerBehavior()); } @@ -11,17 +14,16 @@ public V2HorizontalPodAutoscalerBehaviorBuilder(V2HorizontalPodAutoscalerBehavio this(fluent, new V2HorizontalPodAutoscalerBehavior()); } - public V2HorizontalPodAutoscalerBehaviorBuilder(V2HorizontalPodAutoscalerBehaviorFluent fluent,V2HorizontalPodAutoscalerBehavior instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2HorizontalPodAutoscalerBehaviorBuilder(V2HorizontalPodAutoscalerBehavior instance) { this.fluent = this; this.copyInstance(instance); } - V2HorizontalPodAutoscalerBehaviorFluent fluent; + public V2HorizontalPodAutoscalerBehaviorBuilder(V2HorizontalPodAutoscalerBehaviorFluent fluent,V2HorizontalPodAutoscalerBehavior instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2HorizontalPodAutoscalerBehavior build() { V2HorizontalPodAutoscalerBehavior buildable = new V2HorizontalPodAutoscalerBehavior(); buildable.setScaleDown(fluent.buildScaleDown()); @@ -29,5 +31,4 @@ public V2HorizontalPodAutoscalerBehavior build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java index 9ddeff932f..6dd793b742 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java @@ -1,27 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V2HorizontalPodAutoscalerBehaviorFluent> extends BaseFluent{ + + private V2HPAScalingRulesBuilder scaleDown; + private V2HPAScalingRulesBuilder scaleUp; + public V2HorizontalPodAutoscalerBehaviorFluent() { } public V2HorizontalPodAutoscalerBehaviorFluent(V2HorizontalPodAutoscalerBehavior instance) { this.copyInstance(instance); } - private V2HPAScalingRulesBuilder scaleDown; - private V2HPAScalingRulesBuilder scaleUp; + + public V2HPAScalingRules buildScaleDown() { + return this.scaleDown != null ? this.scaleDown.build() : null; + } + + public V2HPAScalingRules buildScaleUp() { + return this.scaleUp != null ? this.scaleUp.build() : null; + } protected void copyInstance(V2HorizontalPodAutoscalerBehavior instance) { instance = instance != null ? instance : new V2HorizontalPodAutoscalerBehavior(); @@ -31,38 +41,6 @@ protected void copyInstance(V2HorizontalPodAutoscalerBehavior instance) { } } - public V2HPAScalingRules buildScaleDown() { - return this.scaleDown != null ? this.scaleDown.build() : null; - } - - public A withScaleDown(V2HPAScalingRules scaleDown) { - this._visitables.remove("scaleDown"); - if (scaleDown != null) { - this.scaleDown = new V2HPAScalingRulesBuilder(scaleDown); - this._visitables.get("scaleDown").add(this.scaleDown); - } else { - this.scaleDown = null; - this._visitables.get("scaleDown").remove(this.scaleDown); - } - return (A) this; - } - - public boolean hasScaleDown() { - return this.scaleDown != null; - } - - public ScaleDownNested withNewScaleDown() { - return new ScaleDownNested(null); - } - - public ScaleDownNested withNewScaleDownLike(V2HPAScalingRules item) { - return new ScaleDownNested(item); - } - - public ScaleDownNested editScaleDown() { - return this.withNewScaleDownLike(Optional.ofNullable(this.buildScaleDown()).orElse(null)); - } - public ScaleDownNested editOrNewScaleDown() { return this.withNewScaleDownLike(Optional.ofNullable(this.buildScaleDown()).orElse(new V2HPAScalingRulesBuilder().build())); } @@ -71,46 +49,22 @@ public ScaleDownNested editOrNewScaleDownLike(V2HPAScalingRules item) { return this.withNewScaleDownLike(Optional.ofNullable(this.buildScaleDown()).orElse(item)); } - public V2HPAScalingRules buildScaleUp() { - return this.scaleUp != null ? this.scaleUp.build() : null; - } - - public A withScaleUp(V2HPAScalingRules scaleUp) { - this._visitables.remove("scaleUp"); - if (scaleUp != null) { - this.scaleUp = new V2HPAScalingRulesBuilder(scaleUp); - this._visitables.get("scaleUp").add(this.scaleUp); - } else { - this.scaleUp = null; - this._visitables.get("scaleUp").remove(this.scaleUp); - } - return (A) this; - } - - public boolean hasScaleUp() { - return this.scaleUp != null; + public ScaleUpNested editOrNewScaleUp() { + return this.withNewScaleUpLike(Optional.ofNullable(this.buildScaleUp()).orElse(new V2HPAScalingRulesBuilder().build())); } - public ScaleUpNested withNewScaleUp() { - return new ScaleUpNested(null); + public ScaleUpNested editOrNewScaleUpLike(V2HPAScalingRules item) { + return this.withNewScaleUpLike(Optional.ofNullable(this.buildScaleUp()).orElse(item)); } - public ScaleUpNested withNewScaleUpLike(V2HPAScalingRules item) { - return new ScaleUpNested(item); + public ScaleDownNested editScaleDown() { + return this.withNewScaleDownLike(Optional.ofNullable(this.buildScaleDown()).orElse(null)); } public ScaleUpNested editScaleUp() { return this.withNewScaleUpLike(Optional.ofNullable(this.buildScaleUp()).orElse(null)); } - public ScaleUpNested editOrNewScaleUp() { - return this.withNewScaleUpLike(Optional.ofNullable(this.buildScaleUp()).orElse(new V2HPAScalingRulesBuilder().build())); - } - - public ScaleUpNested editOrNewScaleUpLike(V2HPAScalingRules item) { - return this.withNewScaleUpLike(Optional.ofNullable(this.buildScaleUp()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -131,6 +85,14 @@ public boolean equals(Object o) { return true; } + public boolean hasScaleDown() { + return this.scaleDown != null; + } + + public boolean hasScaleUp() { + return this.scaleUp != null; + } + public int hashCode() { return Objects.hash(scaleDown, scaleUp); } @@ -150,12 +112,54 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public ScaleDownNested withNewScaleDown() { + return new ScaleDownNested(null); + } + + public ScaleDownNested withNewScaleDownLike(V2HPAScalingRules item) { + return new ScaleDownNested(item); + } + + public ScaleUpNested withNewScaleUp() { + return new ScaleUpNested(null); + } + + public ScaleUpNested withNewScaleUpLike(V2HPAScalingRules item) { + return new ScaleUpNested(item); + } + + public A withScaleDown(V2HPAScalingRules scaleDown) { + this._visitables.remove("scaleDown"); + if (scaleDown != null) { + this.scaleDown = new V2HPAScalingRulesBuilder(scaleDown); + this._visitables.get("scaleDown").add(this.scaleDown); + } else { + this.scaleDown = null; + this._visitables.get("scaleDown").remove(this.scaleDown); + } + return (A) this; + } + + public A withScaleUp(V2HPAScalingRules scaleUp) { + this._visitables.remove("scaleUp"); + if (scaleUp != null) { + this.scaleUp = new V2HPAScalingRulesBuilder(scaleUp); + this._visitables.get("scaleUp").add(this.scaleUp); + } else { + this.scaleUp = null; + this._visitables.get("scaleUp").remove(this.scaleUp); + } + return (A) this; + } public class ScaleDownNested extends V2HPAScalingRulesFluent> implements Nested{ + + V2HPAScalingRulesBuilder builder; + ScaleDownNested(V2HPAScalingRules item) { this.builder = new V2HPAScalingRulesBuilder(this, item); } - V2HPAScalingRulesBuilder builder; - + public N and() { return (N) V2HorizontalPodAutoscalerBehaviorFluent.this.withScaleDown(builder.build()); } @@ -164,14 +168,15 @@ public N endScaleDown() { return and(); } - } public class ScaleUpNested extends V2HPAScalingRulesFluent> implements Nested{ + + V2HPAScalingRulesBuilder builder; + ScaleUpNested(V2HPAScalingRules item) { this.builder = new V2HPAScalingRulesBuilder(this, item); } - V2HPAScalingRulesBuilder builder; - + public N and() { return (N) V2HorizontalPodAutoscalerBehaviorFluent.this.withScaleUp(builder.build()); } @@ -180,7 +185,5 @@ public N endScaleUp() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java index 23db8675df..57f9ceb026 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2HorizontalPodAutoscalerBuilder extends V2HorizontalPodAutoscalerFluent implements VisitableBuilder{ + + V2HorizontalPodAutoscalerFluent fluent; + public V2HorizontalPodAutoscalerBuilder() { this(new V2HorizontalPodAutoscaler()); } @@ -11,17 +14,16 @@ public V2HorizontalPodAutoscalerBuilder(V2HorizontalPodAutoscalerFluent fluen this(fluent, new V2HorizontalPodAutoscaler()); } - public V2HorizontalPodAutoscalerBuilder(V2HorizontalPodAutoscalerFluent fluent,V2HorizontalPodAutoscaler instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2HorizontalPodAutoscalerBuilder(V2HorizontalPodAutoscaler instance) { this.fluent = this; this.copyInstance(instance); } - V2HorizontalPodAutoscalerFluent fluent; + public V2HorizontalPodAutoscalerBuilder(V2HorizontalPodAutoscalerFluent fluent,V2HorizontalPodAutoscaler instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2HorizontalPodAutoscaler build() { V2HorizontalPodAutoscaler buildable = new V2HorizontalPodAutoscaler(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +34,4 @@ public V2HorizontalPodAutoscaler build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java index aa73afe78b..d6fcce91ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2HorizontalPodAutoscalerConditionBuilder extends V2HorizontalPodAutoscalerConditionFluent implements VisitableBuilder{ + + V2HorizontalPodAutoscalerConditionFluent fluent; + public V2HorizontalPodAutoscalerConditionBuilder() { this(new V2HorizontalPodAutoscalerCondition()); } @@ -11,17 +14,16 @@ public V2HorizontalPodAutoscalerConditionBuilder(V2HorizontalPodAutoscalerCondit this(fluent, new V2HorizontalPodAutoscalerCondition()); } - public V2HorizontalPodAutoscalerConditionBuilder(V2HorizontalPodAutoscalerConditionFluent fluent,V2HorizontalPodAutoscalerCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2HorizontalPodAutoscalerConditionBuilder(V2HorizontalPodAutoscalerCondition instance) { this.fluent = this; this.copyInstance(instance); } - V2HorizontalPodAutoscalerConditionFluent fluent; + public V2HorizontalPodAutoscalerConditionBuilder(V2HorizontalPodAutoscalerConditionFluent fluent,V2HorizontalPodAutoscalerCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2HorizontalPodAutoscalerCondition build() { V2HorizontalPodAutoscalerCondition buildable = new V2HorizontalPodAutoscalerCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -32,5 +34,4 @@ public V2HorizontalPodAutoscalerCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java index 7751f7ade2..be68710bf4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class V2HorizontalPodAutoscalerConditionFluent> extends BaseFluent{ - public V2HorizontalPodAutoscalerConditionFluent() { - } - - public V2HorizontalPodAutoscalerConditionFluent(V2HorizontalPodAutoscalerCondition instance) { - this.copyInstance(instance); - } + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V2HorizontalPodAutoscalerConditionFluent() { + } + public V2HorizontalPodAutoscalerConditionFluent(V2HorizontalPodAutoscalerCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V2HorizontalPodAutoscalerCondition instance) { instance = instance != null ? instance : new V2HorizontalPodAutoscalerCondition(); if (instance != null) { @@ -36,71 +38,6 @@ protected void copyInstance(V2HorizontalPodAutoscalerCondition instance) { } } - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; - } - - public boolean hasMessage() { - return this.message != null; - } - - public String getReason() { - return this.reason; - } - - public A withReason(String reason) { - this.reason = reason; - return (A) this; - } - - public boolean hasReason() { - return this.reason != null; - } - - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -130,6 +67,46 @@ public boolean equals(Object o) { return true; } + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; + } + + public String getMessage() { + return this.message; + } + + public String getReason() { + return this.reason; + } + + public String getStatus() { + return this.status; + } + + public String getType() { + return this.type; + } + + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasReason() { + return this.reason != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(lastTransitionTime, message, reason, status, type); } @@ -165,5 +142,29 @@ public String toString() { return sb.toString(); } - + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java index 01984a2c8e..de89b9a72c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java @@ -1,94 +1,54 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V2HorizontalPodAutoscalerFluent> extends BaseFluent{ - public V2HorizontalPodAutoscalerFluent() { - } - - public V2HorizontalPodAutoscalerFluent(V2HorizontalPodAutoscaler instance) { - this.copyInstance(instance); - } + private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; private V2HorizontalPodAutoscalerSpecBuilder spec; private V2HorizontalPodAutoscalerStatusBuilder status; - - protected void copyInstance(V2HorizontalPodAutoscaler instance) { - instance = instance != null ? instance : new V2HorizontalPodAutoscaler(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public String getKind() { - return this.kind; - } - - public A withKind(String kind) { - this.kind = kind; - return (A) this; + + public V2HorizontalPodAutoscalerFluent() { } - public boolean hasKind() { - return this.kind != null; + public V2HorizontalPodAutoscalerFluent(V2HorizontalPodAutoscaler instance) { + this.copyInstance(instance); } - + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(V1ObjectMeta metadata) { - this._visitables.remove("metadata"); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - this._visitables.get("metadata").add(this.metadata); - } else { - this.metadata = null; - this._visitables.get("metadata").remove(this.metadata); - } - return (A) this; - } - - public boolean hasMetadata() { - return this.metadata != null; + public V2HorizontalPodAutoscalerSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public V2HorizontalPodAutoscalerStatus buildStatus() { + return this.status != null ? this.status.build() : null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + protected void copyInstance(V2HorizontalPodAutoscaler instance) { + instance = instance != null ? instance : new V2HorizontalPodAutoscaler(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } } public MetadataNested editMetadata() { @@ -103,38 +63,6 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V2HorizontalPodAutoscalerSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V2HorizontalPodAutoscalerSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V2HorizontalPodAutoscalerSpecBuilder(spec); - this._visitables.get("spec").add(this.spec); - } else { - this.spec = null; - this._visitables.get("spec").remove(this.spec); - } - return (A) this; - } - - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V2HorizontalPodAutoscalerSpec item) { - return new SpecNested(item); - } - - public SpecNested editSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); - } - public SpecNested editOrNewSpec() { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V2HorizontalPodAutoscalerSpecBuilder().build())); } @@ -143,46 +71,22 @@ public SpecNested editOrNewSpecLike(V2HorizontalPodAutoscalerSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } - public V2HorizontalPodAutoscalerStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V2HorizontalPodAutoscalerStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V2HorizontalPodAutoscalerStatusBuilder(status); - this._visitables.get("status").add(this.status); - } else { - this.status = null; - this._visitables.get("status").remove(this.status); - } - return (A) this; - } - - public boolean hasStatus() { - return this.status != null; + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V2HorizontalPodAutoscalerStatusBuilder().build())); } - public StatusNested withNewStatus() { - return new StatusNested(null); + public StatusNested editOrNewStatusLike(V2HorizontalPodAutoscalerStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); } - public StatusNested withNewStatusLike(V2HorizontalPodAutoscalerStatus item) { - return new StatusNested(item); + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); } public StatusNested editStatus() { return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); } - public StatusNested editOrNewStatus() { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V2HorizontalPodAutoscalerStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V2HorizontalPodAutoscalerStatus item) { - return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -212,6 +116,34 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + public int hashCode() { return Objects.hash(apiVersion, kind, metadata, spec, status); } @@ -246,12 +178,84 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V2HorizontalPodAutoscalerSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V2HorizontalPodAutoscalerStatus item) { + return new StatusNested(item); + } + + public A withSpec(V2HorizontalPodAutoscalerSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V2HorizontalPodAutoscalerSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V2HorizontalPodAutoscalerStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V2HorizontalPodAutoscalerStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V2HorizontalPodAutoscalerFluent.this.withMetadata(builder.build()); } @@ -260,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V2HorizontalPodAutoscalerSpecFluent> implements Nested{ + + V2HorizontalPodAutoscalerSpecBuilder builder; + SpecNested(V2HorizontalPodAutoscalerSpec item) { this.builder = new V2HorizontalPodAutoscalerSpecBuilder(this, item); } - V2HorizontalPodAutoscalerSpecBuilder builder; - + public N and() { return (N) V2HorizontalPodAutoscalerFluent.this.withSpec(builder.build()); } @@ -276,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V2HorizontalPodAutoscalerStatusFluent> implements Nested{ + + V2HorizontalPodAutoscalerStatusBuilder builder; + StatusNested(V2HorizontalPodAutoscalerStatus item) { this.builder = new V2HorizontalPodAutoscalerStatusBuilder(this, item); } - V2HorizontalPodAutoscalerStatusBuilder builder; - + public N and() { return (N) V2HorizontalPodAutoscalerFluent.this.withStatus(builder.build()); } @@ -292,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java index 1321dffc9a..2c7ff1ed76 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2HorizontalPodAutoscalerListBuilder extends V2HorizontalPodAutoscalerListFluent implements VisitableBuilder{ + + V2HorizontalPodAutoscalerListFluent fluent; + public V2HorizontalPodAutoscalerListBuilder() { this(new V2HorizontalPodAutoscalerList()); } @@ -11,17 +14,16 @@ public V2HorizontalPodAutoscalerListBuilder(V2HorizontalPodAutoscalerListFluent< this(fluent, new V2HorizontalPodAutoscalerList()); } - public V2HorizontalPodAutoscalerListBuilder(V2HorizontalPodAutoscalerListFluent fluent,V2HorizontalPodAutoscalerList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2HorizontalPodAutoscalerListBuilder(V2HorizontalPodAutoscalerList instance) { this.fluent = this; this.copyInstance(instance); } - V2HorizontalPodAutoscalerListFluent fluent; + public V2HorizontalPodAutoscalerListBuilder(V2HorizontalPodAutoscalerListFluent fluent,V2HorizontalPodAutoscalerList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2HorizontalPodAutoscalerList build() { V2HorizontalPodAutoscalerList buildable = new V2HorizontalPodAutoscalerList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +33,4 @@ public V2HorizontalPodAutoscalerList build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java index b1693ea483..6f98895cc7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java @@ -1,87 +1,56 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V2HorizontalPodAutoscalerListFluent> extends BaseFluent{ - public V2HorizontalPodAutoscalerListFluent() { - } - - public V2HorizontalPodAutoscalerListFluent(V2HorizontalPodAutoscalerList instance) { - this.copyInstance(instance); - } + private String apiVersion; private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - - protected void copyInstance(V2HorizontalPodAutoscalerList instance) { - instance = instance != null ? instance : new V2HorizontalPodAutoscalerList(); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + + public V2HorizontalPodAutoscalerListFluent() { } - public boolean hasApiVersion() { - return this.apiVersion != null; + public V2HorizontalPodAutoscalerListFluent(V2HorizontalPodAutoscalerList instance) { + this.copyInstance(instance); } - - public A addToItems(int index,V2HorizontalPodAutoscaler item) { + + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { + for (V2HorizontalPodAutoscaler item : items) { + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); _visitables.get("items").add(builder); - items.add(index, builder); + this.items.add(builder); } return (A) this; } - public A setToItems(int index,V2HorizontalPodAutoscaler item) { - if (this.items == null) { - this.items = new ArrayList(); - } - V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); - } else { - _visitables.get("items").add(builder); - items.set(index, builder); - } - return (A) this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V2HorizontalPodAutoscaler item) { + return new ItemsNested(-1, item); } public A addToItems(V2HorizontalPodAutoscaler... items) { @@ -96,68 +65,31 @@ public A addToItems(V2HorizontalPodAutoscaler... items) { return (A) this; } - public A addAllToItems(Collection items) { + public A addToItems(int index,V2HorizontalPodAutoscaler item) { if (this.items == null) { this.items = new ArrayList(); } - for (V2HorizontalPodAutoscaler item : items) { - V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); + if (index < 0 || index >= items.size()) { _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(V2HorizontalPodAutoscaler... items) { - if (this.items == null) { - return (A) this; - } - for (V2HorizontalPodAutoscaler item : items) { - V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeAllFromItems(Collection items) { - if (this.items == null) { - return (A) this; - } - for (V2HorizontalPodAutoscaler item : items) { - V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").remove(builder); - this.items.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromItems(Predicate predicate) { - if (items == null) { - return (A) this; - } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); - while (each.hasNext()) { - V2HorizontalPodAutoscalerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.add(index, builder); } return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V2HorizontalPodAutoscaler buildFirstItem() { + return this.items.get(0).build(); } public V2HorizontalPodAutoscaler buildItem(int index) { return this.items.get(index).build(); } - public V2HorizontalPodAutoscaler buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V2HorizontalPodAutoscaler buildLastItem() { @@ -173,73 +105,34 @@ public V2HorizontalPodAutoscaler buildMatchingItem(Predicate predicate) { - for (V2HorizontalPodAutoscalerBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V2HorizontalPodAutoscaler item : items) { - this.addToItems(item); - } - } else { - this.items = null; + protected void copyInstance(V2HorizontalPodAutoscalerList instance) { + instance = instance != null ? instance : new V2HorizontalPodAutoscalerList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); } - return (A) this; } - public A withItems(V2HorizontalPodAutoscaler... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V2HorizontalPodAutoscaler item : items) { - this.addToItems(item); - } + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; - } - - public boolean hasItems() { - return this.items != null && !(this.items.isEmpty()); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V2HorizontalPodAutoscaler item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V2HorizontalPodAutoscaler item) { - return new ItemsNested(index, item); + return this.setNewItemLike(0, this.buildItem(0)); } public ItemsNested editItem(int index) { - if (index <= items.size()) { + if (items.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editFirstItem() { - if (items.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); - } - return this.setNewItemLike(0, this.buildItem(0)); - } - public ItemsNested editLastItem() { int index = items.size() - 1; if (index < 0) { @@ -262,47 +155,6 @@ public ItemsNested editMatchingItem(Predicate withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ListMeta item) { - return new MetadataNested(item); - } - public MetadataNested editMetadata() { return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } @@ -341,10 +193,102 @@ public boolean equals(Object o) { return true; } + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V2HorizontalPodAutoscalerBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V2HorizontalPodAutoscaler item : items) { + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V2HorizontalPodAutoscaler... items) { + if (this.items == null) { + return (A) this; + } + for (V2HorizontalPodAutoscaler item : items) { + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V2HorizontalPodAutoscalerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V2HorizontalPodAutoscaler item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V2HorizontalPodAutoscaler item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); + if (index < 0 || index >= items.size()) { + _visitables.get("items").add(builder); + items.add(builder); + } else { + _visitables.get("items").add(builder); + items.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -370,14 +314,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V2HorizontalPodAutoscaler item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V2HorizontalPodAutoscaler... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V2HorizontalPodAutoscaler item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } public class ItemsNested extends V2HorizontalPodAutoscalerFluent> implements Nested{ + + V2HorizontalPodAutoscalerBuilder builder; + int index; + ItemsNested(int index,V2HorizontalPodAutoscaler item) { this.index = index; this.builder = new V2HorizontalPodAutoscalerBuilder(this, item); } - V2HorizontalPodAutoscalerBuilder builder; - int index; - + public N and() { return (N) V2HorizontalPodAutoscalerListFluent.this.setToItems(index, builder.build()); } @@ -386,14 +390,15 @@ public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V2HorizontalPodAutoscalerListFluent.this.withMetadata(builder.build()); } @@ -402,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java index 9ff8cae05f..b81e58b414 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2HorizontalPodAutoscalerSpecBuilder extends V2HorizontalPodAutoscalerSpecFluent implements VisitableBuilder{ + + V2HorizontalPodAutoscalerSpecFluent fluent; + public V2HorizontalPodAutoscalerSpecBuilder() { this(new V2HorizontalPodAutoscalerSpec()); } @@ -11,17 +14,16 @@ public V2HorizontalPodAutoscalerSpecBuilder(V2HorizontalPodAutoscalerSpecFluent< this(fluent, new V2HorizontalPodAutoscalerSpec()); } - public V2HorizontalPodAutoscalerSpecBuilder(V2HorizontalPodAutoscalerSpecFluent fluent,V2HorizontalPodAutoscalerSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2HorizontalPodAutoscalerSpecBuilder(V2HorizontalPodAutoscalerSpec instance) { this.fluent = this; this.copyInstance(instance); } - V2HorizontalPodAutoscalerSpecFluent fluent; + public V2HorizontalPodAutoscalerSpecBuilder(V2HorizontalPodAutoscalerSpecFluent fluent,V2HorizontalPodAutoscalerSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2HorizontalPodAutoscalerSpec build() { V2HorizontalPodAutoscalerSpec buildable = new V2HorizontalPodAutoscalerSpec(); buildable.setBehavior(fluent.buildBehavior()); @@ -32,5 +34,4 @@ public V2HorizontalPodAutoscalerSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java index 1342b94880..0b31ac5cc1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java @@ -1,130 +1,58 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Optional; -import java.lang.Integer; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V2HorizontalPodAutoscalerSpecFluent> extends BaseFluent{ - public V2HorizontalPodAutoscalerSpecFluent() { - } - - public V2HorizontalPodAutoscalerSpecFluent(V2HorizontalPodAutoscalerSpec instance) { - this.copyInstance(instance); - } + private V2HorizontalPodAutoscalerBehaviorBuilder behavior; private Integer maxReplicas; private ArrayList metrics; private Integer minReplicas; private V2CrossVersionObjectReferenceBuilder scaleTargetRef; - - protected void copyInstance(V2HorizontalPodAutoscalerSpec instance) { - instance = instance != null ? instance : new V2HorizontalPodAutoscalerSpec(); - if (instance != null) { - this.withBehavior(instance.getBehavior()); - this.withMaxReplicas(instance.getMaxReplicas()); - this.withMetrics(instance.getMetrics()); - this.withMinReplicas(instance.getMinReplicas()); - this.withScaleTargetRef(instance.getScaleTargetRef()); - } - } - - public V2HorizontalPodAutoscalerBehavior buildBehavior() { - return this.behavior != null ? this.behavior.build() : null; - } - - public A withBehavior(V2HorizontalPodAutoscalerBehavior behavior) { - this._visitables.remove("behavior"); - if (behavior != null) { - this.behavior = new V2HorizontalPodAutoscalerBehaviorBuilder(behavior); - this._visitables.get("behavior").add(this.behavior); - } else { - this.behavior = null; - this._visitables.get("behavior").remove(this.behavior); - } - return (A) this; - } - - public boolean hasBehavior() { - return this.behavior != null; - } - - public BehaviorNested withNewBehavior() { - return new BehaviorNested(null); - } - - public BehaviorNested withNewBehaviorLike(V2HorizontalPodAutoscalerBehavior item) { - return new BehaviorNested(item); - } - - public BehaviorNested editBehavior() { - return this.withNewBehaviorLike(Optional.ofNullable(this.buildBehavior()).orElse(null)); - } - - public BehaviorNested editOrNewBehavior() { - return this.withNewBehaviorLike(Optional.ofNullable(this.buildBehavior()).orElse(new V2HorizontalPodAutoscalerBehaviorBuilder().build())); - } - - public BehaviorNested editOrNewBehaviorLike(V2HorizontalPodAutoscalerBehavior item) { - return this.withNewBehaviorLike(Optional.ofNullable(this.buildBehavior()).orElse(item)); - } - - public Integer getMaxReplicas() { - return this.maxReplicas; - } - - public A withMaxReplicas(Integer maxReplicas) { - this.maxReplicas = maxReplicas; - return (A) this; + + public V2HorizontalPodAutoscalerSpecFluent() { } - public boolean hasMaxReplicas() { - return this.maxReplicas != null; + public V2HorizontalPodAutoscalerSpecFluent(V2HorizontalPodAutoscalerSpec instance) { + this.copyInstance(instance); } - - public A addToMetrics(int index,V2MetricSpec item) { + + public A addAllToMetrics(Collection items) { if (this.metrics == null) { this.metrics = new ArrayList(); } - V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); - if (index < 0 || index >= metrics.size()) { - _visitables.get("metrics").add(builder); - metrics.add(builder); - } else { + for (V2MetricSpec item : items) { + V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); _visitables.get("metrics").add(builder); - metrics.add(index, builder); + this.metrics.add(builder); } return (A) this; } - public A setToMetrics(int index,V2MetricSpec item) { - if (this.metrics == null) { - this.metrics = new ArrayList(); - } - V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); - if (index < 0 || index >= metrics.size()) { - _visitables.get("metrics").add(builder); - metrics.add(builder); - } else { - _visitables.get("metrics").add(builder); - metrics.set(index, builder); - } - return (A) this; + public MetricsNested addNewMetric() { + return new MetricsNested(-1, null); + } + + public MetricsNested addNewMetricLike(V2MetricSpec item) { + return new MetricsNested(-1, item); } public A addToMetrics(V2MetricSpec... items) { @@ -139,64 +67,23 @@ public A addToMetrics(V2MetricSpec... items) { return (A) this; } - public A addAllToMetrics(Collection items) { + public A addToMetrics(int index,V2MetricSpec item) { if (this.metrics == null) { this.metrics = new ArrayList(); } - for (V2MetricSpec item : items) { - V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); + V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); + if (index < 0 || index >= metrics.size()) { _visitables.get("metrics").add(builder); - this.metrics.add(builder); - } - return (A) this; - } - - public A removeFromMetrics(V2MetricSpec... items) { - if (this.metrics == null) { - return (A) this; - } - for (V2MetricSpec item : items) { - V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); - _visitables.get("metrics").remove(builder); - this.metrics.remove(builder); - } - return (A) this; - } - - public A removeAllFromMetrics(Collection items) { - if (this.metrics == null) { - return (A) this; - } - for (V2MetricSpec item : items) { - V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); - _visitables.get("metrics").remove(builder); - this.metrics.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromMetrics(Predicate predicate) { - if (metrics == null) { - return (A) this; - } - Iterator each = metrics.iterator(); - List visitables = _visitables.get("metrics"); - while (each.hasNext()) { - V2MetricSpecBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + metrics.add(builder); + } else { + _visitables.get("metrics").add(builder); + metrics.add(index, builder); } return (A) this; } - public List buildMetrics() { - return this.metrics != null ? build(metrics) : null; - } - - public V2MetricSpec buildMetric(int index) { - return this.metrics.get(index).build(); + public V2HorizontalPodAutoscalerBehavior buildBehavior() { + return this.behavior != null ? this.behavior.build() : null; } public V2MetricSpec buildFirstMetric() { @@ -216,64 +103,31 @@ public V2MetricSpec buildMatchingMetric(Predicate predicate return null; } - public boolean hasMatchingMetric(Predicate predicate) { - for (V2MetricSpecBuilder item : metrics) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withMetrics(List metrics) { - if (this.metrics != null) { - this._visitables.get("metrics").clear(); - } - if (metrics != null) { - this.metrics = new ArrayList(); - for (V2MetricSpec item : metrics) { - this.addToMetrics(item); - } - } else { - this.metrics = null; - } - return (A) this; - } - - public A withMetrics(V2MetricSpec... metrics) { - if (this.metrics != null) { - this.metrics.clear(); - _visitables.remove("metrics"); - } - if (metrics != null) { - for (V2MetricSpec item : metrics) { - this.addToMetrics(item); - } - } - return (A) this; - } - - public boolean hasMetrics() { - return this.metrics != null && !(this.metrics.isEmpty()); + public V2MetricSpec buildMetric(int index) { + return this.metrics.get(index).build(); } - public MetricsNested addNewMetric() { - return new MetricsNested(-1, null); + public List buildMetrics() { + return this.metrics != null ? build(metrics) : null; } - public MetricsNested addNewMetricLike(V2MetricSpec item) { - return new MetricsNested(-1, item); + public V2CrossVersionObjectReference buildScaleTargetRef() { + return this.scaleTargetRef != null ? this.scaleTargetRef.build() : null; } - public MetricsNested setNewMetricLike(int index,V2MetricSpec item) { - return new MetricsNested(index, item); + protected void copyInstance(V2HorizontalPodAutoscalerSpec instance) { + instance = instance != null ? instance : new V2HorizontalPodAutoscalerSpec(); + if (instance != null) { + this.withBehavior(instance.getBehavior()); + this.withMaxReplicas(instance.getMaxReplicas()); + this.withMetrics(instance.getMetrics()); + this.withMinReplicas(instance.getMinReplicas()); + this.withScaleTargetRef(instance.getScaleTargetRef()); + } } - public MetricsNested editMetric(int index) { - if (index <= metrics.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "metrics")); - } - return this.setNewMetricLike(index, this.buildMetric(index)); + public BehaviorNested editBehavior() { + return this.withNewBehaviorLike(Optional.ofNullable(this.buildBehavior()).orElse(null)); } public MetricsNested editFirstMetric() { @@ -305,49 +159,19 @@ public MetricsNested editMatchingMetric(Predicate predic return this.setNewMetricLike(index, this.buildMetric(index)); } - public Integer getMinReplicas() { - return this.minReplicas; - } - - public A withMinReplicas(Integer minReplicas) { - this.minReplicas = minReplicas; - return (A) this; - } - - public boolean hasMinReplicas() { - return this.minReplicas != null; - } - - public V2CrossVersionObjectReference buildScaleTargetRef() { - return this.scaleTargetRef != null ? this.scaleTargetRef.build() : null; - } - - public A withScaleTargetRef(V2CrossVersionObjectReference scaleTargetRef) { - this._visitables.remove("scaleTargetRef"); - if (scaleTargetRef != null) { - this.scaleTargetRef = new V2CrossVersionObjectReferenceBuilder(scaleTargetRef); - this._visitables.get("scaleTargetRef").add(this.scaleTargetRef); - } else { - this.scaleTargetRef = null; - this._visitables.get("scaleTargetRef").remove(this.scaleTargetRef); + public MetricsNested editMetric(int index) { + if (metrics.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "metrics")); } - return (A) this; - } - - public boolean hasScaleTargetRef() { - return this.scaleTargetRef != null; - } - - public ScaleTargetRefNested withNewScaleTargetRef() { - return new ScaleTargetRefNested(null); + return this.setNewMetricLike(index, this.buildMetric(index)); } - public ScaleTargetRefNested withNewScaleTargetRefLike(V2CrossVersionObjectReference item) { - return new ScaleTargetRefNested(item); + public BehaviorNested editOrNewBehavior() { + return this.withNewBehaviorLike(Optional.ofNullable(this.buildBehavior()).orElse(new V2HorizontalPodAutoscalerBehaviorBuilder().build())); } - public ScaleTargetRefNested editScaleTargetRef() { - return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(null)); + public BehaviorNested editOrNewBehaviorLike(V2HorizontalPodAutoscalerBehavior item) { + return this.withNewBehaviorLike(Optional.ofNullable(this.buildBehavior()).orElse(item)); } public ScaleTargetRefNested editOrNewScaleTargetRef() { @@ -358,6 +182,10 @@ public ScaleTargetRefNested editOrNewScaleTargetRefLike(V2CrossVersionObjectR return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(item)); } + public ScaleTargetRefNested editScaleTargetRef() { + return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -387,10 +215,106 @@ public boolean equals(Object o) { return true; } + public Integer getMaxReplicas() { + return this.maxReplicas; + } + + public Integer getMinReplicas() { + return this.minReplicas; + } + + public boolean hasBehavior() { + return this.behavior != null; + } + + public boolean hasMatchingMetric(Predicate predicate) { + for (V2MetricSpecBuilder item : metrics) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMaxReplicas() { + return this.maxReplicas != null; + } + + public boolean hasMetrics() { + return this.metrics != null && !(this.metrics.isEmpty()); + } + + public boolean hasMinReplicas() { + return this.minReplicas != null; + } + + public boolean hasScaleTargetRef() { + return this.scaleTargetRef != null; + } + public int hashCode() { return Objects.hash(behavior, maxReplicas, metrics, minReplicas, scaleTargetRef); } + public A removeAllFromMetrics(Collection items) { + if (this.metrics == null) { + return (A) this; + } + for (V2MetricSpec item : items) { + V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); + _visitables.get("metrics").remove(builder); + this.metrics.remove(builder); + } + return (A) this; + } + + public A removeFromMetrics(V2MetricSpec... items) { + if (this.metrics == null) { + return (A) this; + } + for (V2MetricSpec item : items) { + V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); + _visitables.get("metrics").remove(builder); + this.metrics.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromMetrics(Predicate predicate) { + if (metrics == null) { + return (A) this; + } + Iterator each = metrics.iterator(); + List visitables = _visitables.get("metrics"); + while (each.hasNext()) { + V2MetricSpecBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public MetricsNested setNewMetricLike(int index,V2MetricSpec item) { + return new MetricsNested(index, item); + } + + public A setToMetrics(int index,V2MetricSpec item) { + if (this.metrics == null) { + this.metrics = new ArrayList(); + } + V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); + if (index < 0 || index >= metrics.size()) { + _visitables.get("metrics").add(builder); + metrics.add(builder); + } else { + _visitables.get("metrics").add(builder); + metrics.set(index, builder); + } + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -421,12 +345,92 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withBehavior(V2HorizontalPodAutoscalerBehavior behavior) { + this._visitables.remove("behavior"); + if (behavior != null) { + this.behavior = new V2HorizontalPodAutoscalerBehaviorBuilder(behavior); + this._visitables.get("behavior").add(this.behavior); + } else { + this.behavior = null; + this._visitables.get("behavior").remove(this.behavior); + } + return (A) this; + } + + public A withMaxReplicas(Integer maxReplicas) { + this.maxReplicas = maxReplicas; + return (A) this; + } + + public A withMetrics(List metrics) { + if (this.metrics != null) { + this._visitables.get("metrics").clear(); + } + if (metrics != null) { + this.metrics = new ArrayList(); + for (V2MetricSpec item : metrics) { + this.addToMetrics(item); + } + } else { + this.metrics = null; + } + return (A) this; + } + + public A withMetrics(V2MetricSpec... metrics) { + if (this.metrics != null) { + this.metrics.clear(); + _visitables.remove("metrics"); + } + if (metrics != null) { + for (V2MetricSpec item : metrics) { + this.addToMetrics(item); + } + } + return (A) this; + } + + public A withMinReplicas(Integer minReplicas) { + this.minReplicas = minReplicas; + return (A) this; + } + + public BehaviorNested withNewBehavior() { + return new BehaviorNested(null); + } + + public BehaviorNested withNewBehaviorLike(V2HorizontalPodAutoscalerBehavior item) { + return new BehaviorNested(item); + } + + public ScaleTargetRefNested withNewScaleTargetRef() { + return new ScaleTargetRefNested(null); + } + + public ScaleTargetRefNested withNewScaleTargetRefLike(V2CrossVersionObjectReference item) { + return new ScaleTargetRefNested(item); + } + + public A withScaleTargetRef(V2CrossVersionObjectReference scaleTargetRef) { + this._visitables.remove("scaleTargetRef"); + if (scaleTargetRef != null) { + this.scaleTargetRef = new V2CrossVersionObjectReferenceBuilder(scaleTargetRef); + this._visitables.get("scaleTargetRef").add(this.scaleTargetRef); + } else { + this.scaleTargetRef = null; + this._visitables.get("scaleTargetRef").remove(this.scaleTargetRef); + } + return (A) this; + } public class BehaviorNested extends V2HorizontalPodAutoscalerBehaviorFluent> implements Nested{ + + V2HorizontalPodAutoscalerBehaviorBuilder builder; + BehaviorNested(V2HorizontalPodAutoscalerBehavior item) { this.builder = new V2HorizontalPodAutoscalerBehaviorBuilder(this, item); } - V2HorizontalPodAutoscalerBehaviorBuilder builder; - + public N and() { return (N) V2HorizontalPodAutoscalerSpecFluent.this.withBehavior(builder.build()); } @@ -435,16 +439,17 @@ public N endBehavior() { return and(); } - } public class MetricsNested extends V2MetricSpecFluent> implements Nested{ + + V2MetricSpecBuilder builder; + int index; + MetricsNested(int index,V2MetricSpec item) { this.index = index; this.builder = new V2MetricSpecBuilder(this, item); } - V2MetricSpecBuilder builder; - int index; - + public N and() { return (N) V2HorizontalPodAutoscalerSpecFluent.this.setToMetrics(index, builder.build()); } @@ -453,14 +458,15 @@ public N endMetric() { return and(); } - } public class ScaleTargetRefNested extends V2CrossVersionObjectReferenceFluent> implements Nested{ + + V2CrossVersionObjectReferenceBuilder builder; + ScaleTargetRefNested(V2CrossVersionObjectReference item) { this.builder = new V2CrossVersionObjectReferenceBuilder(this, item); } - V2CrossVersionObjectReferenceBuilder builder; - + public N and() { return (N) V2HorizontalPodAutoscalerSpecFluent.this.withScaleTargetRef(builder.build()); } @@ -469,7 +475,5 @@ public N endScaleTargetRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java index 765fee8694..8a4dc81851 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2HorizontalPodAutoscalerStatusBuilder extends V2HorizontalPodAutoscalerStatusFluent implements VisitableBuilder{ + + V2HorizontalPodAutoscalerStatusFluent fluent; + public V2HorizontalPodAutoscalerStatusBuilder() { this(new V2HorizontalPodAutoscalerStatus()); } @@ -11,17 +14,16 @@ public V2HorizontalPodAutoscalerStatusBuilder(V2HorizontalPodAutoscalerStatusFlu this(fluent, new V2HorizontalPodAutoscalerStatus()); } - public V2HorizontalPodAutoscalerStatusBuilder(V2HorizontalPodAutoscalerStatusFluent fluent,V2HorizontalPodAutoscalerStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2HorizontalPodAutoscalerStatusBuilder(V2HorizontalPodAutoscalerStatus instance) { this.fluent = this; this.copyInstance(instance); } - V2HorizontalPodAutoscalerStatusFluent fluent; + public V2HorizontalPodAutoscalerStatusBuilder(V2HorizontalPodAutoscalerStatusFluent fluent,V2HorizontalPodAutoscalerStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2HorizontalPodAutoscalerStatus build() { V2HorizontalPodAutoscalerStatus buildable = new V2HorizontalPodAutoscalerStatus(); buildable.setConditions(fluent.buildConditions()); @@ -33,5 +35,4 @@ public V2HorizontalPodAutoscalerStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java index 1c0ea5d2b5..aad7610fc4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java @@ -1,82 +1,82 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Integer; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; +import java.time.OffsetDateTime; import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; -import java.lang.RuntimeException; -import io.kubernetes.client.fluent.BaseFluent; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Integer; -import java.time.OffsetDateTime; -import java.lang.Long; import java.util.Objects; -import java.util.Collection; -import java.lang.Object; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") public class V2HorizontalPodAutoscalerStatusFluent> extends BaseFluent{ - public V2HorizontalPodAutoscalerStatusFluent() { - } - - public V2HorizontalPodAutoscalerStatusFluent(V2HorizontalPodAutoscalerStatus instance) { - this.copyInstance(instance); - } + private ArrayList conditions; private ArrayList currentMetrics; private Integer currentReplicas; private Integer desiredReplicas; private OffsetDateTime lastScaleTime; private Long observedGeneration; - - protected void copyInstance(V2HorizontalPodAutoscalerStatus instance) { - instance = instance != null ? instance : new V2HorizontalPodAutoscalerStatus(); - if (instance != null) { - this.withConditions(instance.getConditions()); - this.withCurrentMetrics(instance.getCurrentMetrics()); - this.withCurrentReplicas(instance.getCurrentReplicas()); - this.withDesiredReplicas(instance.getDesiredReplicas()); - this.withLastScaleTime(instance.getLastScaleTime()); - this.withObservedGeneration(instance.getObservedGeneration()); - } + + public V2HorizontalPodAutoscalerStatusFluent() { } - public A addToConditions(int index,V2HorizontalPodAutoscalerCondition item) { + public V2HorizontalPodAutoscalerStatusFluent(V2HorizontalPodAutoscalerStatus instance) { + this.copyInstance(instance); + } + + public A addAllToConditions(Collection items) { if (this.conditions == null) { this.conditions = new ArrayList(); } - V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { + for (V2HorizontalPodAutoscalerCondition item : items) { + V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this.conditions.add(builder); } return (A) this; } - public A setToConditions(int index,V2HorizontalPodAutoscalerCondition item) { - if (this.conditions == null) { - this.conditions = new ArrayList(); + public A addAllToCurrentMetrics(Collection items) { + if (this.currentMetrics == null) { + this.currentMetrics = new ArrayList(); } - V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); - } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + for (V2MetricStatus item : items) { + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); + _visitables.get("currentMetrics").add(builder); + this.currentMetrics.add(builder); } return (A) this; } + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V2HorizontalPodAutoscalerCondition item) { + return new ConditionsNested(-1, item); + } + + public CurrentMetricsNested addNewCurrentMetric() { + return new CurrentMetricsNested(-1, null); + } + + public CurrentMetricsNested addNewCurrentMetricLike(V2MetricStatus item) { + return new CurrentMetricsNested(-1, item); + } + public A addToConditions(V2HorizontalPodAutoscalerCondition... items) { if (this.conditions == null) { this.conditions = new ArrayList(); @@ -89,74 +89,80 @@ public A addToConditions(V2HorizontalPodAutoscalerCondition... items) { return (A) this; } - public A addAllToConditions(Collection items) { + public A addToConditions(int index,V2HorizontalPodAutoscalerCondition item) { if (this.conditions == null) { this.conditions = new ArrayList(); } - for (V2HorizontalPodAutoscalerCondition item : items) { - V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); + V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { _visitables.get("conditions").add(builder); - this.conditions.add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public A removeFromConditions(V2HorizontalPodAutoscalerCondition... items) { - if (this.conditions == null) { - return (A) this; + public A addToCurrentMetrics(V2MetricStatus... items) { + if (this.currentMetrics == null) { + this.currentMetrics = new ArrayList(); } - for (V2HorizontalPodAutoscalerCondition item : items) { - V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + for (V2MetricStatus item : items) { + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); + _visitables.get("currentMetrics").add(builder); + this.currentMetrics.add(builder); } return (A) this; } - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) { - return (A) this; + public A addToCurrentMetrics(int index,V2MetricStatus item) { + if (this.currentMetrics == null) { + this.currentMetrics = new ArrayList(); } - for (V2HorizontalPodAutoscalerCondition item : items) { - V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); - _visitables.get("conditions").remove(builder); - this.conditions.remove(builder); + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); + if (index < 0 || index >= currentMetrics.size()) { + _visitables.get("currentMetrics").add(builder); + currentMetrics.add(builder); + } else { + _visitables.get("currentMetrics").add(builder); + currentMetrics.add(index, builder); } return (A) this; } - public A removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) { - return (A) this; - } - Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V2HorizontalPodAutoscalerConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; + public V2HorizontalPodAutoscalerCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V2HorizontalPodAutoscalerCondition buildCondition(int index) { - return this.conditions.get(index).build(); + public V2MetricStatus buildCurrentMetric(int index) { + return this.currentMetrics.get(index).build(); + } + + public List buildCurrentMetrics() { + return this.currentMetrics != null ? build(currentMetrics) : null; } public V2HorizontalPodAutoscalerCondition buildFirstCondition() { return this.conditions.get(0).build(); } + public V2MetricStatus buildFirstCurrentMetric() { + return this.currentMetrics.get(0).build(); + } + public V2HorizontalPodAutoscalerCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } + public V2MetricStatus buildLastCurrentMetric() { + return this.currentMetrics.get(currentMetrics.size() - 1).build(); + } + public V2HorizontalPodAutoscalerCondition buildMatchingCondition(Predicate predicate) { for (V2HorizontalPodAutoscalerConditionBuilder item : conditions) { if (predicate.test(item)) { @@ -166,66 +172,41 @@ public V2HorizontalPodAutoscalerCondition buildMatchingCondition(Predicate predicate) { - for (V2HorizontalPodAutoscalerConditionBuilder item : conditions) { + public V2MetricStatus buildMatchingCurrentMetric(Predicate predicate) { + for (V2MetricStatusBuilder item : currentMetrics) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; - } - - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V2HorizontalPodAutoscalerCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + return null; } - public A withConditions(V2HorizontalPodAutoscalerCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V2HorizontalPodAutoscalerCondition item : conditions) { - this.addToConditions(item); - } + protected void copyInstance(V2HorizontalPodAutoscalerStatus instance) { + instance = instance != null ? instance : new V2HorizontalPodAutoscalerStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withCurrentMetrics(instance.getCurrentMetrics()); + this.withCurrentReplicas(instance.getCurrentReplicas()); + this.withDesiredReplicas(instance.getDesiredReplicas()); + this.withLastScaleTime(instance.getLastScaleTime()); + this.withObservedGeneration(instance.getObservedGeneration()); } - return (A) this; - } - - public boolean hasConditions() { - return this.conditions != null && !(this.conditions.isEmpty()); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V2HorizontalPodAutoscalerCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V2HorizontalPodAutoscalerCondition item) { - return new ConditionsNested(index, item); } public ConditionsNested editCondition(int index) { - if (index <= conditions.size()) { + if (conditions.size() <= index) { throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } return this.setNewConditionLike(index, this.buildCondition(index)); } + public CurrentMetricsNested editCurrentMetric(int index) { + if (currentMetrics.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "currentMetrics")); + } + return this.setNewCurrentMetricLike(index, this.buildCurrentMetric(index)); + } + public ConditionsNested editFirstCondition() { if (conditions.size() == 0) { throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); @@ -233,6 +214,13 @@ public ConditionsNested editFirstCondition() { return this.setNewConditionLike(0, this.buildCondition(0)); } + public CurrentMetricsNested editFirstCurrentMetric() { + if (currentMetrics.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "currentMetrics")); + } + return this.setNewCurrentMetricLike(0, this.buildCurrentMetric(0)); + } + public ConditionsNested editLastCondition() { int index = conditions.size() - 1; if (index < 0) { @@ -241,6 +229,14 @@ public ConditionsNested editLastCondition() { return this.setNewConditionLike(index, this.buildCondition(index)); } + public CurrentMetricsNested editLastCurrentMetric() { + int index = currentMetrics.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "currentMetrics")); + } + return this.setNewCurrentMetricLike(index, this.buildCurrentMetric(index)); + } + public ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; for (int i = 0;i < conditions.size();i++) { @@ -255,56 +251,146 @@ public ConditionsNested editMatchingCondition(Predicate editMatchingCurrentMetric(Predicate predicate) { + int index = -1; + for (int i = 0;i < currentMetrics.size();i++) { + if (predicate.test(currentMetrics.get(i))) { + index = i; + break; + } } - V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - if (index < 0 || index >= currentMetrics.size()) { - _visitables.get("currentMetrics").add(builder); - currentMetrics.add(builder); - } else { - _visitables.get("currentMetrics").add(builder); - currentMetrics.add(index, builder); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "currentMetrics")); } - return (A) this; + return this.setNewCurrentMetricLike(index, this.buildCurrentMetric(index)); } - public A setToCurrentMetrics(int index,V2MetricStatus item) { - if (this.currentMetrics == null) { - this.currentMetrics = new ArrayList(); + public boolean equals(Object o) { + if (this == o) { + return true; } - V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - if (index < 0 || index >= currentMetrics.size()) { - _visitables.get("currentMetrics").add(builder); - currentMetrics.add(builder); - } else { - _visitables.get("currentMetrics").add(builder); - currentMetrics.set(index, builder); + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2HorizontalPodAutoscalerStatusFluent that = (V2HorizontalPodAutoscalerStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(currentMetrics, that.currentMetrics))) { + return false; + } + if (!(Objects.equals(currentReplicas, that.currentReplicas))) { + return false; + } + if (!(Objects.equals(desiredReplicas, that.desiredReplicas))) { + return false; + } + if (!(Objects.equals(lastScaleTime, that.lastScaleTime))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + return true; + } + + public Integer getCurrentReplicas() { + return this.currentReplicas; + } + + public Integer getDesiredReplicas() { + return this.desiredReplicas; + } + + public OffsetDateTime getLastScaleTime() { + return this.lastScaleTime; + } + + public Long getObservedGeneration() { + return this.observedGeneration; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasCurrentMetrics() { + return this.currentMetrics != null && !(this.currentMetrics.isEmpty()); + } + + public boolean hasCurrentReplicas() { + return this.currentReplicas != null; + } + + public boolean hasDesiredReplicas() { + return this.desiredReplicas != null; + } + + public boolean hasLastScaleTime() { + return this.lastScaleTime != null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V2HorizontalPodAutoscalerConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingCurrentMetric(Predicate predicate) { + for (V2MetricStatusBuilder item : currentMetrics) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasObservedGeneration() { + return this.observedGeneration != null; + } + + public int hashCode() { + return Objects.hash(conditions, currentMetrics, currentReplicas, desiredReplicas, lastScaleTime, observedGeneration); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V2HorizontalPodAutoscalerCondition item : items) { + V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } return (A) this; } - public A addToCurrentMetrics(V2MetricStatus... items) { + public A removeAllFromCurrentMetrics(Collection items) { if (this.currentMetrics == null) { - this.currentMetrics = new ArrayList(); + return (A) this; } for (V2MetricStatus item : items) { V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - _visitables.get("currentMetrics").add(builder); - this.currentMetrics.add(builder); + _visitables.get("currentMetrics").remove(builder); + this.currentMetrics.remove(builder); } return (A) this; } - public A addAllToCurrentMetrics(Collection items) { - if (this.currentMetrics == null) { - this.currentMetrics = new ArrayList(); + public A removeFromConditions(V2HorizontalPodAutoscalerCondition... items) { + if (this.conditions == null) { + return (A) this; } - for (V2MetricStatus item : items) { - V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - _visitables.get("currentMetrics").add(builder); - this.currentMetrics.add(builder); + for (V2HorizontalPodAutoscalerCondition item : items) { + V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } return (A) this; } @@ -321,14 +407,18 @@ public A removeFromCurrentMetrics(V2MetricStatus... items) { return (A) this; } - public A removeAllFromCurrentMetrics(Collection items) { - if (this.currentMetrics == null) { + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { return (A) this; } - for (V2MetricStatus item : items) { - V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - _visitables.get("currentMetrics").remove(builder); - this.currentMetrics.remove(builder); + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V2HorizontalPodAutoscalerConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } @@ -349,38 +439,106 @@ public A removeMatchingFromCurrentMetrics(Predicate predi return (A) this; } - public List buildCurrentMetrics() { - return this.currentMetrics != null ? build(currentMetrics) : null; + public ConditionsNested setNewConditionLike(int index,V2HorizontalPodAutoscalerCondition item) { + return new ConditionsNested(index, item); } - public V2MetricStatus buildCurrentMetric(int index) { - return this.currentMetrics.get(index).build(); + public CurrentMetricsNested setNewCurrentMetricLike(int index,V2MetricStatus item) { + return new CurrentMetricsNested(index, item); } - public V2MetricStatus buildFirstCurrentMetric() { - return this.currentMetrics.get(0).build(); + public A setToConditions(int index,V2HorizontalPodAutoscalerCondition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); + if (index < 0 || index >= conditions.size()) { + _visitables.get("conditions").add(builder); + conditions.add(builder); + } else { + _visitables.get("conditions").add(builder); + conditions.set(index, builder); + } + return (A) this; } - public V2MetricStatus buildLastCurrentMetric() { - return this.currentMetrics.get(currentMetrics.size() - 1).build(); + public A setToCurrentMetrics(int index,V2MetricStatus item) { + if (this.currentMetrics == null) { + this.currentMetrics = new ArrayList(); + } + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); + if (index < 0 || index >= currentMetrics.size()) { + _visitables.get("currentMetrics").add(builder); + currentMetrics.add(builder); + } else { + _visitables.get("currentMetrics").add(builder); + currentMetrics.set(index, builder); + } + return (A) this; } - public V2MetricStatus buildMatchingCurrentMetric(Predicate predicate) { - for (V2MetricStatusBuilder item : currentMetrics) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(currentMetrics == null) && !(currentMetrics.isEmpty())) { + sb.append("currentMetrics:"); + sb.append(currentMetrics); + sb.append(","); + } + if (!(currentReplicas == null)) { + sb.append("currentReplicas:"); + sb.append(currentReplicas); + sb.append(","); + } + if (!(desiredReplicas == null)) { + sb.append("desiredReplicas:"); + sb.append(desiredReplicas); + sb.append(","); + } + if (!(lastScaleTime == null)) { + sb.append("lastScaleTime:"); + sb.append(lastScaleTime); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingCurrentMetric(Predicate predicate) { - for (V2MetricStatusBuilder item : currentMetrics) { - if (predicate.test(item)) { - return true; + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V2HorizontalPodAutoscalerCondition item : conditions) { + this.addToConditions(item); } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V2HorizontalPodAutoscalerCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V2HorizontalPodAutoscalerCondition item : conditions) { + this.addToConditions(item); } - return false; + } + return (A) this; } public A withCurrentMetrics(List currentMetrics) { @@ -411,189 +569,35 @@ public A withCurrentMetrics(V2MetricStatus... currentMetrics) { return (A) this; } - public boolean hasCurrentMetrics() { - return this.currentMetrics != null && !(this.currentMetrics.isEmpty()); - } - - public CurrentMetricsNested addNewCurrentMetric() { - return new CurrentMetricsNested(-1, null); - } - - public CurrentMetricsNested addNewCurrentMetricLike(V2MetricStatus item) { - return new CurrentMetricsNested(-1, item); - } - - public CurrentMetricsNested setNewCurrentMetricLike(int index,V2MetricStatus item) { - return new CurrentMetricsNested(index, item); - } - - public CurrentMetricsNested editCurrentMetric(int index) { - if (index <= currentMetrics.size()) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "currentMetrics")); - } - return this.setNewCurrentMetricLike(index, this.buildCurrentMetric(index)); - } - - public CurrentMetricsNested editFirstCurrentMetric() { - if (currentMetrics.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "currentMetrics")); - } - return this.setNewCurrentMetricLike(0, this.buildCurrentMetric(0)); - } - - public CurrentMetricsNested editLastCurrentMetric() { - int index = currentMetrics.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "currentMetrics")); - } - return this.setNewCurrentMetricLike(index, this.buildCurrentMetric(index)); - } - - public CurrentMetricsNested editMatchingCurrentMetric(Predicate predicate) { - int index = -1; - for (int i = 0;i < currentMetrics.size();i++) { - if (predicate.test(currentMetrics.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "currentMetrics")); - } - return this.setNewCurrentMetricLike(index, this.buildCurrentMetric(index)); - } - - public Integer getCurrentReplicas() { - return this.currentReplicas; - } - public A withCurrentReplicas(Integer currentReplicas) { this.currentReplicas = currentReplicas; return (A) this; } - public boolean hasCurrentReplicas() { - return this.currentReplicas != null; - } - - public Integer getDesiredReplicas() { - return this.desiredReplicas; - } - public A withDesiredReplicas(Integer desiredReplicas) { this.desiredReplicas = desiredReplicas; return (A) this; } - public boolean hasDesiredReplicas() { - return this.desiredReplicas != null; - } - - public OffsetDateTime getLastScaleTime() { - return this.lastScaleTime; - } - public A withLastScaleTime(OffsetDateTime lastScaleTime) { this.lastScaleTime = lastScaleTime; return (A) this; } - public boolean hasLastScaleTime() { - return this.lastScaleTime != null; - } - - public Long getObservedGeneration() { - return this.observedGeneration; - } - public A withObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; return (A) this; } + public class ConditionsNested extends V2HorizontalPodAutoscalerConditionFluent> implements Nested{ - public boolean hasObservedGeneration() { - return this.observedGeneration != null; - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V2HorizontalPodAutoscalerStatusFluent that = (V2HorizontalPodAutoscalerStatusFluent) o; - if (!(Objects.equals(conditions, that.conditions))) { - return false; - } - if (!(Objects.equals(currentMetrics, that.currentMetrics))) { - return false; - } - if (!(Objects.equals(currentReplicas, that.currentReplicas))) { - return false; - } - if (!(Objects.equals(desiredReplicas, that.desiredReplicas))) { - return false; - } - if (!(Objects.equals(lastScaleTime, that.lastScaleTime))) { - return false; - } - if (!(Objects.equals(observedGeneration, that.observedGeneration))) { - return false; - } - return true; - } - - public int hashCode() { - return Objects.hash(conditions, currentMetrics, currentReplicas, desiredReplicas, lastScaleTime, observedGeneration); - } + V2HorizontalPodAutoscalerConditionBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(conditions == null) && !(conditions.isEmpty())) { - sb.append("conditions:"); - sb.append(conditions); - sb.append(","); - } - if (!(currentMetrics == null) && !(currentMetrics.isEmpty())) { - sb.append("currentMetrics:"); - sb.append(currentMetrics); - sb.append(","); - } - if (!(currentReplicas == null)) { - sb.append("currentReplicas:"); - sb.append(currentReplicas); - sb.append(","); - } - if (!(desiredReplicas == null)) { - sb.append("desiredReplicas:"); - sb.append(desiredReplicas); - sb.append(","); - } - if (!(lastScaleTime == null)) { - sb.append("lastScaleTime:"); - sb.append(lastScaleTime); - sb.append(","); - } - if (!(observedGeneration == null)) { - sb.append("observedGeneration:"); - sb.append(observedGeneration); - } - sb.append("}"); - return sb.toString(); - } - public class ConditionsNested extends V2HorizontalPodAutoscalerConditionFluent> implements Nested{ ConditionsNested(int index,V2HorizontalPodAutoscalerCondition item) { this.index = index; this.builder = new V2HorizontalPodAutoscalerConditionBuilder(this, item); } - V2HorizontalPodAutoscalerConditionBuilder builder; - int index; - + public N and() { return (N) V2HorizontalPodAutoscalerStatusFluent.this.setToConditions(index, builder.build()); } @@ -602,16 +606,17 @@ public N endCondition() { return and(); } - } public class CurrentMetricsNested extends V2MetricStatusFluent> implements Nested{ + + V2MetricStatusBuilder builder; + int index; + CurrentMetricsNested(int index,V2MetricStatus item) { this.index = index; this.builder = new V2MetricStatusBuilder(this, item); } - V2MetricStatusBuilder builder; - int index; - + public N and() { return (N) V2HorizontalPodAutoscalerStatusFluent.this.setToCurrentMetrics(index, builder.build()); } @@ -620,7 +625,5 @@ public N endCurrentMetric() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java index df67103f8a..202d2ee1d1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2MetricIdentifierBuilder extends V2MetricIdentifierFluent implements VisitableBuilder{ + + V2MetricIdentifierFluent fluent; + public V2MetricIdentifierBuilder() { this(new V2MetricIdentifier()); } @@ -11,17 +14,16 @@ public V2MetricIdentifierBuilder(V2MetricIdentifierFluent fluent) { this(fluent, new V2MetricIdentifier()); } - public V2MetricIdentifierBuilder(V2MetricIdentifierFluent fluent,V2MetricIdentifier instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2MetricIdentifierBuilder(V2MetricIdentifier instance) { this.fluent = this; this.copyInstance(instance); } - V2MetricIdentifierFluent fluent; + public V2MetricIdentifierBuilder(V2MetricIdentifierFluent fluent,V2MetricIdentifier instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2MetricIdentifier build() { V2MetricIdentifier buildable = new V2MetricIdentifier(); buildable.setName(fluent.getName()); @@ -29,5 +31,4 @@ public V2MetricIdentifier build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java index a59c01d667..88a40db435 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java @@ -1,27 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V2MetricIdentifierFluent> extends BaseFluent{ + + private String name; + private V1LabelSelectorBuilder selector; + public V2MetricIdentifierFluent() { } public V2MetricIdentifierFluent(V2MetricIdentifier instance) { this.copyInstance(instance); } - private String name; - private V1LabelSelectorBuilder selector; + + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; + } protected void copyInstance(V2MetricIdentifier instance) { instance = instance != null ? instance : new V2MetricIdentifier(); @@ -31,51 +37,6 @@ protected void copyInstance(V2MetricIdentifier instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public A withSelector(V1LabelSelector selector) { - this._visitables.remove("selector"); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - this._visitables.get("selector").add(this.selector); - } else { - this.selector = null; - this._visitables.get("selector").remove(this.selector); - } - return (A) this; - } - - public boolean hasSelector() { - return this.selector != null; - } - - public SelectorNested withNewSelector() { - return new SelectorNested(null); - } - - public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); - } - - public SelectorNested editSelector() { - return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); - } - public SelectorNested editOrNewSelector() { return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } @@ -84,6 +45,10 @@ public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -104,6 +69,18 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasSelector() { + return this.selector != null; + } + public int hashCode() { return Objects.hash(name, selector); } @@ -123,12 +100,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public SelectorNested withNewSelector() { + return new SelectorNested(null); + } + + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); + } + + public A withSelector(V1LabelSelector selector) { + this._visitables.remove("selector"); + if (selector != null) { + this.selector = new V1LabelSelectorBuilder(selector); + this._visitables.get("selector").add(this.selector); + } else { + this.selector = null; + this._visitables.get("selector").remove(this.selector); + } + return (A) this; + } public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + SelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V2MetricIdentifierFluent.this.withSelector(builder.build()); } @@ -137,7 +141,5 @@ public N endSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java index 35b414c1bf..2915b6171d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2MetricSpecBuilder extends V2MetricSpecFluent implements VisitableBuilder{ + + V2MetricSpecFluent fluent; + public V2MetricSpecBuilder() { this(new V2MetricSpec()); } @@ -11,17 +14,16 @@ public V2MetricSpecBuilder(V2MetricSpecFluent fluent) { this(fluent, new V2MetricSpec()); } - public V2MetricSpecBuilder(V2MetricSpecFluent fluent,V2MetricSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2MetricSpecBuilder(V2MetricSpec instance) { this.fluent = this; this.copyInstance(instance); } - V2MetricSpecFluent fluent; + public V2MetricSpecBuilder(V2MetricSpecFluent fluent,V2MetricSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2MetricSpec build() { V2MetricSpec buildable = new V2MetricSpec(); buildable.setContainerResource(fluent.buildContainerResource()); @@ -33,5 +35,4 @@ public V2MetricSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java index f5065f47f2..4d50915506 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java @@ -1,31 +1,53 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V2MetricSpecFluent> extends BaseFluent{ + + private V2ObjectMetricSourceBuilder _object; + private V2ContainerResourceMetricSourceBuilder containerResource; + private V2ExternalMetricSourceBuilder external; + private V2PodsMetricSourceBuilder pods; + private V2ResourceMetricSourceBuilder resource; + private String type; + public V2MetricSpecFluent() { } public V2MetricSpecFluent(V2MetricSpec instance) { this.copyInstance(instance); } - private V2ContainerResourceMetricSourceBuilder containerResource; - private V2ExternalMetricSourceBuilder external; - private V2ObjectMetricSourceBuilder _object; - private V2PodsMetricSourceBuilder pods; - private V2ResourceMetricSourceBuilder resource; - private String type; + + public V2ContainerResourceMetricSource buildContainerResource() { + return this.containerResource != null ? this.containerResource.build() : null; + } + + public V2ExternalMetricSource buildExternal() { + return this.external != null ? this.external.build() : null; + } + + public V2ObjectMetricSource buildObject() { + return this._object != null ? this._object.build() : null; + } + + public V2PodsMetricSource buildPods() { + return this.pods != null ? this.pods.build() : null; + } + + public V2ResourceMetricSource buildResource() { + return this.resource != null ? this.resource.build() : null; + } protected void copyInstance(V2MetricSpec instance) { instance = instance != null ? instance : new V2MetricSpec(); @@ -39,36 +61,16 @@ protected void copyInstance(V2MetricSpec instance) { } } - public V2ContainerResourceMetricSource buildContainerResource() { - return this.containerResource != null ? this.containerResource.build() : null; - } - - public A withContainerResource(V2ContainerResourceMetricSource containerResource) { - this._visitables.remove("containerResource"); - if (containerResource != null) { - this.containerResource = new V2ContainerResourceMetricSourceBuilder(containerResource); - this._visitables.get("containerResource").add(this.containerResource); - } else { - this.containerResource = null; - this._visitables.get("containerResource").remove(this.containerResource); - } - return (A) this; - } - - public boolean hasContainerResource() { - return this.containerResource != null; - } - - public ContainerResourceNested withNewContainerResource() { - return new ContainerResourceNested(null); + public ContainerResourceNested editContainerResource() { + return this.withNewContainerResourceLike(Optional.ofNullable(this.buildContainerResource()).orElse(null)); } - public ContainerResourceNested withNewContainerResourceLike(V2ContainerResourceMetricSource item) { - return new ContainerResourceNested(item); + public ExternalNested editExternal() { + return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(null)); } - public ContainerResourceNested editContainerResource() { - return this.withNewContainerResourceLike(Optional.ofNullable(this.buildContainerResource()).orElse(null)); + public ObjectNested editObject() { + return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(null)); } public ContainerResourceNested editOrNewContainerResource() { @@ -79,38 +81,6 @@ public ContainerResourceNested editOrNewContainerResourceLike(V2ContainerReso return this.withNewContainerResourceLike(Optional.ofNullable(this.buildContainerResource()).orElse(item)); } - public V2ExternalMetricSource buildExternal() { - return this.external != null ? this.external.build() : null; - } - - public A withExternal(V2ExternalMetricSource external) { - this._visitables.remove("external"); - if (external != null) { - this.external = new V2ExternalMetricSourceBuilder(external); - this._visitables.get("external").add(this.external); - } else { - this.external = null; - this._visitables.get("external").remove(this.external); - } - return (A) this; - } - - public boolean hasExternal() { - return this.external != null; - } - - public ExternalNested withNewExternal() { - return new ExternalNested(null); - } - - public ExternalNested withNewExternalLike(V2ExternalMetricSource item) { - return new ExternalNested(item); - } - - public ExternalNested editExternal() { - return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(null)); - } - public ExternalNested editOrNewExternal() { return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(new V2ExternalMetricSourceBuilder().build())); } @@ -119,38 +89,6 @@ public ExternalNested editOrNewExternalLike(V2ExternalMetricSource item) { return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(item)); } - public V2ObjectMetricSource buildObject() { - return this._object != null ? this._object.build() : null; - } - - public A withObject(V2ObjectMetricSource _object) { - this._visitables.remove("_object"); - if (_object != null) { - this._object = new V2ObjectMetricSourceBuilder(_object); - this._visitables.get("_object").add(this._object); - } else { - this._object = null; - this._visitables.get("_object").remove(this._object); - } - return (A) this; - } - - public boolean hasObject() { - return this._object != null; - } - - public ObjectNested withNewObject() { - return new ObjectNested(null); - } - - public ObjectNested withNewObjectLike(V2ObjectMetricSource item) { - return new ObjectNested(item); - } - - public ObjectNested editObject() { - return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(null)); - } - public ObjectNested editOrNewObject() { return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(new V2ObjectMetricSourceBuilder().build())); } @@ -159,38 +97,6 @@ public ObjectNested editOrNewObjectLike(V2ObjectMetricSource item) { return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(item)); } - public V2PodsMetricSource buildPods() { - return this.pods != null ? this.pods.build() : null; - } - - public A withPods(V2PodsMetricSource pods) { - this._visitables.remove("pods"); - if (pods != null) { - this.pods = new V2PodsMetricSourceBuilder(pods); - this._visitables.get("pods").add(this.pods); - } else { - this.pods = null; - this._visitables.get("pods").remove(this.pods); - } - return (A) this; - } - - public boolean hasPods() { - return this.pods != null; - } - - public PodsNested withNewPods() { - return new PodsNested(null); - } - - public PodsNested withNewPodsLike(V2PodsMetricSource item) { - return new PodsNested(item); - } - - public PodsNested editPods() { - return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(null)); - } - public PodsNested editOrNewPods() { return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(new V2PodsMetricSourceBuilder().build())); } @@ -199,38 +105,6 @@ public PodsNested editOrNewPodsLike(V2PodsMetricSource item) { return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(item)); } - public V2ResourceMetricSource buildResource() { - return this.resource != null ? this.resource.build() : null; - } - - public A withResource(V2ResourceMetricSource resource) { - this._visitables.remove("resource"); - if (resource != null) { - this.resource = new V2ResourceMetricSourceBuilder(resource); - this._visitables.get("resource").add(this.resource); - } else { - this.resource = null; - this._visitables.get("resource").remove(this.resource); - } - return (A) this; - } - - public boolean hasResource() { - return this.resource != null; - } - - public ResourceNested withNewResource() { - return new ResourceNested(null); - } - - public ResourceNested withNewResourceLike(V2ResourceMetricSource item) { - return new ResourceNested(item); - } - - public ResourceNested editResource() { - return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(null)); - } - public ResourceNested editOrNewResource() { return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(new V2ResourceMetricSourceBuilder().build())); } @@ -239,17 +113,12 @@ public ResourceNested editOrNewResourceLike(V2ResourceMetricSource item) { return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(item)); } - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; + public PodsNested editPods() { + return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(null)); } - public boolean hasType() { - return this.type != null; + public ResourceNested editResource() { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(null)); } public boolean equals(Object o) { @@ -284,6 +153,34 @@ public boolean equals(Object o) { return true; } + public String getType() { + return this.type; + } + + public boolean hasContainerResource() { + return this.containerResource != null; + } + + public boolean hasExternal() { + return this.external != null; + } + + public boolean hasObject() { + return this._object != null; + } + + public boolean hasPods() { + return this.pods != null; + } + + public boolean hasResource() { + return this.resource != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(containerResource, external, _object, pods, resource, type); } @@ -323,12 +220,119 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withContainerResource(V2ContainerResourceMetricSource containerResource) { + this._visitables.remove("containerResource"); + if (containerResource != null) { + this.containerResource = new V2ContainerResourceMetricSourceBuilder(containerResource); + this._visitables.get("containerResource").add(this.containerResource); + } else { + this.containerResource = null; + this._visitables.get("containerResource").remove(this.containerResource); + } + return (A) this; + } + + public A withExternal(V2ExternalMetricSource external) { + this._visitables.remove("external"); + if (external != null) { + this.external = new V2ExternalMetricSourceBuilder(external); + this._visitables.get("external").add(this.external); + } else { + this.external = null; + this._visitables.get("external").remove(this.external); + } + return (A) this; + } + + public ContainerResourceNested withNewContainerResource() { + return new ContainerResourceNested(null); + } + + public ContainerResourceNested withNewContainerResourceLike(V2ContainerResourceMetricSource item) { + return new ContainerResourceNested(item); + } + + public ExternalNested withNewExternal() { + return new ExternalNested(null); + } + + public ExternalNested withNewExternalLike(V2ExternalMetricSource item) { + return new ExternalNested(item); + } + + public ObjectNested withNewObject() { + return new ObjectNested(null); + } + + public ObjectNested withNewObjectLike(V2ObjectMetricSource item) { + return new ObjectNested(item); + } + + public PodsNested withNewPods() { + return new PodsNested(null); + } + + public PodsNested withNewPodsLike(V2PodsMetricSource item) { + return new PodsNested(item); + } + + public ResourceNested withNewResource() { + return new ResourceNested(null); + } + + public ResourceNested withNewResourceLike(V2ResourceMetricSource item) { + return new ResourceNested(item); + } + + public A withObject(V2ObjectMetricSource _object) { + this._visitables.remove("_object"); + if (_object != null) { + this._object = new V2ObjectMetricSourceBuilder(_object); + this._visitables.get("_object").add(this._object); + } else { + this._object = null; + this._visitables.get("_object").remove(this._object); + } + return (A) this; + } + + public A withPods(V2PodsMetricSource pods) { + this._visitables.remove("pods"); + if (pods != null) { + this.pods = new V2PodsMetricSourceBuilder(pods); + this._visitables.get("pods").add(this.pods); + } else { + this.pods = null; + this._visitables.get("pods").remove(this.pods); + } + return (A) this; + } + + public A withResource(V2ResourceMetricSource resource) { + this._visitables.remove("resource"); + if (resource != null) { + this.resource = new V2ResourceMetricSourceBuilder(resource); + this._visitables.get("resource").add(this.resource); + } else { + this.resource = null; + this._visitables.get("resource").remove(this.resource); + } + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } public class ContainerResourceNested extends V2ContainerResourceMetricSourceFluent> implements Nested{ + + V2ContainerResourceMetricSourceBuilder builder; + ContainerResourceNested(V2ContainerResourceMetricSource item) { this.builder = new V2ContainerResourceMetricSourceBuilder(this, item); } - V2ContainerResourceMetricSourceBuilder builder; - + public N and() { return (N) V2MetricSpecFluent.this.withContainerResource(builder.build()); } @@ -337,14 +341,15 @@ public N endContainerResource() { return and(); } - } public class ExternalNested extends V2ExternalMetricSourceFluent> implements Nested{ + + V2ExternalMetricSourceBuilder builder; + ExternalNested(V2ExternalMetricSource item) { this.builder = new V2ExternalMetricSourceBuilder(this, item); } - V2ExternalMetricSourceBuilder builder; - + public N and() { return (N) V2MetricSpecFluent.this.withExternal(builder.build()); } @@ -353,14 +358,15 @@ public N endExternal() { return and(); } - } public class ObjectNested extends V2ObjectMetricSourceFluent> implements Nested{ + + V2ObjectMetricSourceBuilder builder; + ObjectNested(V2ObjectMetricSource item) { this.builder = new V2ObjectMetricSourceBuilder(this, item); } - V2ObjectMetricSourceBuilder builder; - + public N and() { return (N) V2MetricSpecFluent.this.withObject(builder.build()); } @@ -369,14 +375,15 @@ public N endObject() { return and(); } - } public class PodsNested extends V2PodsMetricSourceFluent> implements Nested{ + + V2PodsMetricSourceBuilder builder; + PodsNested(V2PodsMetricSource item) { this.builder = new V2PodsMetricSourceBuilder(this, item); } - V2PodsMetricSourceBuilder builder; - + public N and() { return (N) V2MetricSpecFluent.this.withPods(builder.build()); } @@ -385,14 +392,15 @@ public N endPods() { return and(); } - } public class ResourceNested extends V2ResourceMetricSourceFluent> implements Nested{ + + V2ResourceMetricSourceBuilder builder; + ResourceNested(V2ResourceMetricSource item) { this.builder = new V2ResourceMetricSourceBuilder(this, item); } - V2ResourceMetricSourceBuilder builder; - + public N and() { return (N) V2MetricSpecFluent.this.withResource(builder.build()); } @@ -401,7 +409,5 @@ public N endResource() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java index c24dbb4796..184d04579e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2MetricStatusBuilder extends V2MetricStatusFluent implements VisitableBuilder{ + + V2MetricStatusFluent fluent; + public V2MetricStatusBuilder() { this(new V2MetricStatus()); } @@ -11,17 +14,16 @@ public V2MetricStatusBuilder(V2MetricStatusFluent fluent) { this(fluent, new V2MetricStatus()); } - public V2MetricStatusBuilder(V2MetricStatusFluent fluent,V2MetricStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2MetricStatusBuilder(V2MetricStatus instance) { this.fluent = this; this.copyInstance(instance); } - V2MetricStatusFluent fluent; + public V2MetricStatusBuilder(V2MetricStatusFluent fluent,V2MetricStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2MetricStatus build() { V2MetricStatus buildable = new V2MetricStatus(); buildable.setContainerResource(fluent.buildContainerResource()); @@ -33,5 +35,4 @@ public V2MetricStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java index a6391e69dd..f32a272727 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java @@ -1,31 +1,53 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V2MetricStatusFluent> extends BaseFluent{ + + private V2ObjectMetricStatusBuilder _object; + private V2ContainerResourceMetricStatusBuilder containerResource; + private V2ExternalMetricStatusBuilder external; + private V2PodsMetricStatusBuilder pods; + private V2ResourceMetricStatusBuilder resource; + private String type; + public V2MetricStatusFluent() { } public V2MetricStatusFluent(V2MetricStatus instance) { this.copyInstance(instance); } - private V2ContainerResourceMetricStatusBuilder containerResource; - private V2ExternalMetricStatusBuilder external; - private V2ObjectMetricStatusBuilder _object; - private V2PodsMetricStatusBuilder pods; - private V2ResourceMetricStatusBuilder resource; - private String type; + + public V2ContainerResourceMetricStatus buildContainerResource() { + return this.containerResource != null ? this.containerResource.build() : null; + } + + public V2ExternalMetricStatus buildExternal() { + return this.external != null ? this.external.build() : null; + } + + public V2ObjectMetricStatus buildObject() { + return this._object != null ? this._object.build() : null; + } + + public V2PodsMetricStatus buildPods() { + return this.pods != null ? this.pods.build() : null; + } + + public V2ResourceMetricStatus buildResource() { + return this.resource != null ? this.resource.build() : null; + } protected void copyInstance(V2MetricStatus instance) { instance = instance != null ? instance : new V2MetricStatus(); @@ -39,36 +61,16 @@ protected void copyInstance(V2MetricStatus instance) { } } - public V2ContainerResourceMetricStatus buildContainerResource() { - return this.containerResource != null ? this.containerResource.build() : null; - } - - public A withContainerResource(V2ContainerResourceMetricStatus containerResource) { - this._visitables.remove("containerResource"); - if (containerResource != null) { - this.containerResource = new V2ContainerResourceMetricStatusBuilder(containerResource); - this._visitables.get("containerResource").add(this.containerResource); - } else { - this.containerResource = null; - this._visitables.get("containerResource").remove(this.containerResource); - } - return (A) this; - } - - public boolean hasContainerResource() { - return this.containerResource != null; - } - - public ContainerResourceNested withNewContainerResource() { - return new ContainerResourceNested(null); + public ContainerResourceNested editContainerResource() { + return this.withNewContainerResourceLike(Optional.ofNullable(this.buildContainerResource()).orElse(null)); } - public ContainerResourceNested withNewContainerResourceLike(V2ContainerResourceMetricStatus item) { - return new ContainerResourceNested(item); + public ExternalNested editExternal() { + return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(null)); } - public ContainerResourceNested editContainerResource() { - return this.withNewContainerResourceLike(Optional.ofNullable(this.buildContainerResource()).orElse(null)); + public ObjectNested editObject() { + return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(null)); } public ContainerResourceNested editOrNewContainerResource() { @@ -79,38 +81,6 @@ public ContainerResourceNested editOrNewContainerResourceLike(V2ContainerReso return this.withNewContainerResourceLike(Optional.ofNullable(this.buildContainerResource()).orElse(item)); } - public V2ExternalMetricStatus buildExternal() { - return this.external != null ? this.external.build() : null; - } - - public A withExternal(V2ExternalMetricStatus external) { - this._visitables.remove("external"); - if (external != null) { - this.external = new V2ExternalMetricStatusBuilder(external); - this._visitables.get("external").add(this.external); - } else { - this.external = null; - this._visitables.get("external").remove(this.external); - } - return (A) this; - } - - public boolean hasExternal() { - return this.external != null; - } - - public ExternalNested withNewExternal() { - return new ExternalNested(null); - } - - public ExternalNested withNewExternalLike(V2ExternalMetricStatus item) { - return new ExternalNested(item); - } - - public ExternalNested editExternal() { - return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(null)); - } - public ExternalNested editOrNewExternal() { return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(new V2ExternalMetricStatusBuilder().build())); } @@ -119,38 +89,6 @@ public ExternalNested editOrNewExternalLike(V2ExternalMetricStatus item) { return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(item)); } - public V2ObjectMetricStatus buildObject() { - return this._object != null ? this._object.build() : null; - } - - public A withObject(V2ObjectMetricStatus _object) { - this._visitables.remove("_object"); - if (_object != null) { - this._object = new V2ObjectMetricStatusBuilder(_object); - this._visitables.get("_object").add(this._object); - } else { - this._object = null; - this._visitables.get("_object").remove(this._object); - } - return (A) this; - } - - public boolean hasObject() { - return this._object != null; - } - - public ObjectNested withNewObject() { - return new ObjectNested(null); - } - - public ObjectNested withNewObjectLike(V2ObjectMetricStatus item) { - return new ObjectNested(item); - } - - public ObjectNested editObject() { - return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(null)); - } - public ObjectNested editOrNewObject() { return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(new V2ObjectMetricStatusBuilder().build())); } @@ -159,38 +97,6 @@ public ObjectNested editOrNewObjectLike(V2ObjectMetricStatus item) { return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(item)); } - public V2PodsMetricStatus buildPods() { - return this.pods != null ? this.pods.build() : null; - } - - public A withPods(V2PodsMetricStatus pods) { - this._visitables.remove("pods"); - if (pods != null) { - this.pods = new V2PodsMetricStatusBuilder(pods); - this._visitables.get("pods").add(this.pods); - } else { - this.pods = null; - this._visitables.get("pods").remove(this.pods); - } - return (A) this; - } - - public boolean hasPods() { - return this.pods != null; - } - - public PodsNested withNewPods() { - return new PodsNested(null); - } - - public PodsNested withNewPodsLike(V2PodsMetricStatus item) { - return new PodsNested(item); - } - - public PodsNested editPods() { - return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(null)); - } - public PodsNested editOrNewPods() { return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(new V2PodsMetricStatusBuilder().build())); } @@ -199,38 +105,6 @@ public PodsNested editOrNewPodsLike(V2PodsMetricStatus item) { return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(item)); } - public V2ResourceMetricStatus buildResource() { - return this.resource != null ? this.resource.build() : null; - } - - public A withResource(V2ResourceMetricStatus resource) { - this._visitables.remove("resource"); - if (resource != null) { - this.resource = new V2ResourceMetricStatusBuilder(resource); - this._visitables.get("resource").add(this.resource); - } else { - this.resource = null; - this._visitables.get("resource").remove(this.resource); - } - return (A) this; - } - - public boolean hasResource() { - return this.resource != null; - } - - public ResourceNested withNewResource() { - return new ResourceNested(null); - } - - public ResourceNested withNewResourceLike(V2ResourceMetricStatus item) { - return new ResourceNested(item); - } - - public ResourceNested editResource() { - return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(null)); - } - public ResourceNested editOrNewResource() { return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(new V2ResourceMetricStatusBuilder().build())); } @@ -239,17 +113,12 @@ public ResourceNested editOrNewResourceLike(V2ResourceMetricStatus item) { return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(item)); } - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; + public PodsNested editPods() { + return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(null)); } - public boolean hasType() { - return this.type != null; + public ResourceNested editResource() { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(null)); } public boolean equals(Object o) { @@ -284,6 +153,34 @@ public boolean equals(Object o) { return true; } + public String getType() { + return this.type; + } + + public boolean hasContainerResource() { + return this.containerResource != null; + } + + public boolean hasExternal() { + return this.external != null; + } + + public boolean hasObject() { + return this._object != null; + } + + public boolean hasPods() { + return this.pods != null; + } + + public boolean hasResource() { + return this.resource != null; + } + + public boolean hasType() { + return this.type != null; + } + public int hashCode() { return Objects.hash(containerResource, external, _object, pods, resource, type); } @@ -323,12 +220,119 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withContainerResource(V2ContainerResourceMetricStatus containerResource) { + this._visitables.remove("containerResource"); + if (containerResource != null) { + this.containerResource = new V2ContainerResourceMetricStatusBuilder(containerResource); + this._visitables.get("containerResource").add(this.containerResource); + } else { + this.containerResource = null; + this._visitables.get("containerResource").remove(this.containerResource); + } + return (A) this; + } + + public A withExternal(V2ExternalMetricStatus external) { + this._visitables.remove("external"); + if (external != null) { + this.external = new V2ExternalMetricStatusBuilder(external); + this._visitables.get("external").add(this.external); + } else { + this.external = null; + this._visitables.get("external").remove(this.external); + } + return (A) this; + } + + public ContainerResourceNested withNewContainerResource() { + return new ContainerResourceNested(null); + } + + public ContainerResourceNested withNewContainerResourceLike(V2ContainerResourceMetricStatus item) { + return new ContainerResourceNested(item); + } + + public ExternalNested withNewExternal() { + return new ExternalNested(null); + } + + public ExternalNested withNewExternalLike(V2ExternalMetricStatus item) { + return new ExternalNested(item); + } + + public ObjectNested withNewObject() { + return new ObjectNested(null); + } + + public ObjectNested withNewObjectLike(V2ObjectMetricStatus item) { + return new ObjectNested(item); + } + + public PodsNested withNewPods() { + return new PodsNested(null); + } + + public PodsNested withNewPodsLike(V2PodsMetricStatus item) { + return new PodsNested(item); + } + + public ResourceNested withNewResource() { + return new ResourceNested(null); + } + + public ResourceNested withNewResourceLike(V2ResourceMetricStatus item) { + return new ResourceNested(item); + } + + public A withObject(V2ObjectMetricStatus _object) { + this._visitables.remove("_object"); + if (_object != null) { + this._object = new V2ObjectMetricStatusBuilder(_object); + this._visitables.get("_object").add(this._object); + } else { + this._object = null; + this._visitables.get("_object").remove(this._object); + } + return (A) this; + } + + public A withPods(V2PodsMetricStatus pods) { + this._visitables.remove("pods"); + if (pods != null) { + this.pods = new V2PodsMetricStatusBuilder(pods); + this._visitables.get("pods").add(this.pods); + } else { + this.pods = null; + this._visitables.get("pods").remove(this.pods); + } + return (A) this; + } + + public A withResource(V2ResourceMetricStatus resource) { + this._visitables.remove("resource"); + if (resource != null) { + this.resource = new V2ResourceMetricStatusBuilder(resource); + this._visitables.get("resource").add(this.resource); + } else { + this.resource = null; + this._visitables.get("resource").remove(this.resource); + } + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } public class ContainerResourceNested extends V2ContainerResourceMetricStatusFluent> implements Nested{ + + V2ContainerResourceMetricStatusBuilder builder; + ContainerResourceNested(V2ContainerResourceMetricStatus item) { this.builder = new V2ContainerResourceMetricStatusBuilder(this, item); } - V2ContainerResourceMetricStatusBuilder builder; - + public N and() { return (N) V2MetricStatusFluent.this.withContainerResource(builder.build()); } @@ -337,14 +341,15 @@ public N endContainerResource() { return and(); } - } public class ExternalNested extends V2ExternalMetricStatusFluent> implements Nested{ + + V2ExternalMetricStatusBuilder builder; + ExternalNested(V2ExternalMetricStatus item) { this.builder = new V2ExternalMetricStatusBuilder(this, item); } - V2ExternalMetricStatusBuilder builder; - + public N and() { return (N) V2MetricStatusFluent.this.withExternal(builder.build()); } @@ -353,14 +358,15 @@ public N endExternal() { return and(); } - } public class ObjectNested extends V2ObjectMetricStatusFluent> implements Nested{ + + V2ObjectMetricStatusBuilder builder; + ObjectNested(V2ObjectMetricStatus item) { this.builder = new V2ObjectMetricStatusBuilder(this, item); } - V2ObjectMetricStatusBuilder builder; - + public N and() { return (N) V2MetricStatusFluent.this.withObject(builder.build()); } @@ -369,14 +375,15 @@ public N endObject() { return and(); } - } public class PodsNested extends V2PodsMetricStatusFluent> implements Nested{ + + V2PodsMetricStatusBuilder builder; + PodsNested(V2PodsMetricStatus item) { this.builder = new V2PodsMetricStatusBuilder(this, item); } - V2PodsMetricStatusBuilder builder; - + public N and() { return (N) V2MetricStatusFluent.this.withPods(builder.build()); } @@ -385,14 +392,15 @@ public N endPods() { return and(); } - } public class ResourceNested extends V2ResourceMetricStatusFluent> implements Nested{ + + V2ResourceMetricStatusBuilder builder; + ResourceNested(V2ResourceMetricStatus item) { this.builder = new V2ResourceMetricStatusBuilder(this, item); } - V2ResourceMetricStatusBuilder builder; - + public N and() { return (N) V2MetricStatusFluent.this.withResource(builder.build()); } @@ -401,7 +409,5 @@ public N endResource() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java index 36dbf9fe56..daf33e72fd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2MetricTargetBuilder extends V2MetricTargetFluent implements VisitableBuilder{ + + V2MetricTargetFluent fluent; + public V2MetricTargetBuilder() { this(new V2MetricTarget()); } @@ -11,17 +14,16 @@ public V2MetricTargetBuilder(V2MetricTargetFluent fluent) { this(fluent, new V2MetricTarget()); } - public V2MetricTargetBuilder(V2MetricTargetFluent fluent,V2MetricTarget instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2MetricTargetBuilder(V2MetricTarget instance) { this.fluent = this; this.copyInstance(instance); } - V2MetricTargetFluent fluent; + public V2MetricTargetBuilder(V2MetricTargetFluent fluent,V2MetricTarget instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2MetricTarget build() { V2MetricTarget buildable = new V2MetricTarget(); buildable.setAverageUtilization(fluent.getAverageUtilization()); @@ -31,5 +33,4 @@ public V2MetricTarget build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java index b807b91e09..d8b302d15d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java @@ -1,30 +1,32 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import io.kubernetes.client.custom.Quantity; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V2MetricTargetFluent> extends BaseFluent{ + + private Integer averageUtilization; + private Quantity averageValue; + private String type; + private Quantity value; + public V2MetricTargetFluent() { } public V2MetricTargetFluent(V2MetricTarget instance) { this.copyInstance(instance); } - private Integer averageUtilization; - private Quantity averageValue; - private String type; - private Quantity value; - + protected void copyInstance(V2MetricTarget instance) { instance = instance != null ? instance : new V2MetricTarget(); if (instance != null) { @@ -35,66 +37,6 @@ protected void copyInstance(V2MetricTarget instance) { } } - public Integer getAverageUtilization() { - return this.averageUtilization; - } - - public A withAverageUtilization(Integer averageUtilization) { - this.averageUtilization = averageUtilization; - return (A) this; - } - - public boolean hasAverageUtilization() { - return this.averageUtilization != null; - } - - public Quantity getAverageValue() { - return this.averageValue; - } - - public A withAverageValue(Quantity averageValue) { - this.averageValue = averageValue; - return (A) this; - } - - public boolean hasAverageValue() { - return this.averageValue != null; - } - - public A withNewAverageValue(String value) { - return (A) this.withAverageValue(new Quantity(value)); - } - - public String getType() { - return this.type; - } - - public A withType(String type) { - this.type = type; - return (A) this; - } - - public boolean hasType() { - return this.type != null; - } - - public Quantity getValue() { - return this.value; - } - - public A withValue(Quantity value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - - public A withNewValue(String value) { - return (A) this.withValue(new Quantity(value)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -121,6 +63,38 @@ public boolean equals(Object o) { return true; } + public Integer getAverageUtilization() { + return this.averageUtilization; + } + + public Quantity getAverageValue() { + return this.averageValue; + } + + public String getType() { + return this.type; + } + + public Quantity getValue() { + return this.value; + } + + public boolean hasAverageUtilization() { + return this.averageUtilization != null; + } + + public boolean hasAverageValue() { + return this.averageValue != null; + } + + public boolean hasType() { + return this.type != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(averageUtilization, averageValue, type, value); } @@ -151,5 +125,32 @@ public String toString() { return sb.toString(); } - + public A withAverageUtilization(Integer averageUtilization) { + this.averageUtilization = averageUtilization; + return (A) this; + } + + public A withAverageValue(Quantity averageValue) { + this.averageValue = averageValue; + return (A) this; + } + + public A withNewAverageValue(String value) { + return (A) this.withAverageValue(new Quantity(value)); + } + + public A withNewValue(String value) { + return (A) this.withValue(new Quantity(value)); + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java index 74a0a837cc..a2d132fad3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2MetricValueStatusBuilder extends V2MetricValueStatusFluent implements VisitableBuilder{ + + V2MetricValueStatusFluent fluent; + public V2MetricValueStatusBuilder() { this(new V2MetricValueStatus()); } @@ -11,17 +14,16 @@ public V2MetricValueStatusBuilder(V2MetricValueStatusFluent fluent) { this(fluent, new V2MetricValueStatus()); } - public V2MetricValueStatusBuilder(V2MetricValueStatusFluent fluent,V2MetricValueStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2MetricValueStatusBuilder(V2MetricValueStatus instance) { this.fluent = this; this.copyInstance(instance); } - V2MetricValueStatusFluent fluent; + public V2MetricValueStatusBuilder(V2MetricValueStatusFluent fluent,V2MetricValueStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2MetricValueStatus build() { V2MetricValueStatus buildable = new V2MetricValueStatus(); buildable.setAverageUtilization(fluent.getAverageUtilization()); @@ -30,5 +32,4 @@ public V2MetricValueStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java index 2f2521ee8e..55ccce0486 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java @@ -1,29 +1,31 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Objects; -import io.kubernetes.client.custom.Quantity; -import java.lang.Object; -import java.lang.String; /** * Generated */ @SuppressWarnings("unchecked") public class V2MetricValueStatusFluent> extends BaseFluent{ + + private Integer averageUtilization; + private Quantity averageValue; + private Quantity value; + public V2MetricValueStatusFluent() { } public V2MetricValueStatusFluent(V2MetricValueStatus instance) { this.copyInstance(instance); } - private Integer averageUtilization; - private Quantity averageValue; - private Quantity value; - + protected void copyInstance(V2MetricValueStatus instance) { instance = instance != null ? instance : new V2MetricValueStatus(); if (instance != null) { @@ -33,53 +35,6 @@ protected void copyInstance(V2MetricValueStatus instance) { } } - public Integer getAverageUtilization() { - return this.averageUtilization; - } - - public A withAverageUtilization(Integer averageUtilization) { - this.averageUtilization = averageUtilization; - return (A) this; - } - - public boolean hasAverageUtilization() { - return this.averageUtilization != null; - } - - public Quantity getAverageValue() { - return this.averageValue; - } - - public A withAverageValue(Quantity averageValue) { - this.averageValue = averageValue; - return (A) this; - } - - public boolean hasAverageValue() { - return this.averageValue != null; - } - - public A withNewAverageValue(String value) { - return (A) this.withAverageValue(new Quantity(value)); - } - - public Quantity getValue() { - return this.value; - } - - public A withValue(Quantity value) { - this.value = value; - return (A) this; - } - - public boolean hasValue() { - return this.value != null; - } - - public A withNewValue(String value) { - return (A) this.withValue(new Quantity(value)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -103,6 +58,30 @@ public boolean equals(Object o) { return true; } + public Integer getAverageUtilization() { + return this.averageUtilization; + } + + public Quantity getAverageValue() { + return this.averageValue; + } + + public Quantity getValue() { + return this.value; + } + + public boolean hasAverageUtilization() { + return this.averageUtilization != null; + } + + public boolean hasAverageValue() { + return this.averageValue != null; + } + + public boolean hasValue() { + return this.value != null; + } + public int hashCode() { return Objects.hash(averageUtilization, averageValue, value); } @@ -128,5 +107,27 @@ public String toString() { return sb.toString(); } - + public A withAverageUtilization(Integer averageUtilization) { + this.averageUtilization = averageUtilization; + return (A) this; + } + + public A withAverageValue(Quantity averageValue) { + this.averageValue = averageValue; + return (A) this; + } + + public A withNewAverageValue(String value) { + return (A) this.withAverageValue(new Quantity(value)); + } + + public A withNewValue(String value) { + return (A) this.withValue(new Quantity(value)); + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java index 9ce7fa32d3..b1b7e8a785 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2ObjectMetricSourceBuilder extends V2ObjectMetricSourceFluent implements VisitableBuilder{ + + V2ObjectMetricSourceFluent fluent; + public V2ObjectMetricSourceBuilder() { this(new V2ObjectMetricSource()); } @@ -11,17 +14,16 @@ public V2ObjectMetricSourceBuilder(V2ObjectMetricSourceFluent fluent) { this(fluent, new V2ObjectMetricSource()); } - public V2ObjectMetricSourceBuilder(V2ObjectMetricSourceFluent fluent,V2ObjectMetricSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2ObjectMetricSourceBuilder(V2ObjectMetricSource instance) { this.fluent = this; this.copyInstance(instance); } - V2ObjectMetricSourceFluent fluent; + public V2ObjectMetricSourceBuilder(V2ObjectMetricSourceFluent fluent,V2ObjectMetricSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2ObjectMetricSource build() { V2ObjectMetricSource buildable = new V2ObjectMetricSource(); buildable.setDescribedObject(fluent.buildDescribedObject()); @@ -30,5 +32,4 @@ public V2ObjectMetricSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java index 59fc26d9de..80246a0607 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java @@ -1,70 +1,60 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V2ObjectMetricSourceFluent> extends BaseFluent{ + + private V2CrossVersionObjectReferenceBuilder describedObject; + private V2MetricIdentifierBuilder metric; + private V2MetricTargetBuilder target; + public V2ObjectMetricSourceFluent() { } public V2ObjectMetricSourceFluent(V2ObjectMetricSource instance) { this.copyInstance(instance); } - private V2CrossVersionObjectReferenceBuilder describedObject; - private V2MetricIdentifierBuilder metric; - private V2MetricTargetBuilder target; - - protected void copyInstance(V2ObjectMetricSource instance) { - instance = instance != null ? instance : new V2ObjectMetricSource(); - if (instance != null) { - this.withDescribedObject(instance.getDescribedObject()); - this.withMetric(instance.getMetric()); - this.withTarget(instance.getTarget()); - } - } - + public V2CrossVersionObjectReference buildDescribedObject() { return this.describedObject != null ? this.describedObject.build() : null; } - public A withDescribedObject(V2CrossVersionObjectReference describedObject) { - this._visitables.remove("describedObject"); - if (describedObject != null) { - this.describedObject = new V2CrossVersionObjectReferenceBuilder(describedObject); - this._visitables.get("describedObject").add(this.describedObject); - } else { - this.describedObject = null; - this._visitables.get("describedObject").remove(this.describedObject); - } - return (A) this; - } - - public boolean hasDescribedObject() { - return this.describedObject != null; + public V2MetricIdentifier buildMetric() { + return this.metric != null ? this.metric.build() : null; } - public DescribedObjectNested withNewDescribedObject() { - return new DescribedObjectNested(null); + public V2MetricTarget buildTarget() { + return this.target != null ? this.target.build() : null; } - public DescribedObjectNested withNewDescribedObjectLike(V2CrossVersionObjectReference item) { - return new DescribedObjectNested(item); + protected void copyInstance(V2ObjectMetricSource instance) { + instance = instance != null ? instance : new V2ObjectMetricSource(); + if (instance != null) { + this.withDescribedObject(instance.getDescribedObject()); + this.withMetric(instance.getMetric()); + this.withTarget(instance.getTarget()); + } } public DescribedObjectNested editDescribedObject() { return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(null)); } + public MetricNested editMetric() { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); + } + public DescribedObjectNested editOrNewDescribedObject() { return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(new V2CrossVersionObjectReferenceBuilder().build())); } @@ -73,38 +63,6 @@ public DescribedObjectNested editOrNewDescribedObjectLike(V2CrossVersionObjec return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(item)); } - public V2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; - } - - public A withMetric(V2MetricIdentifier metric) { - this._visitables.remove("metric"); - if (metric != null) { - this.metric = new V2MetricIdentifierBuilder(metric); - this._visitables.get("metric").add(this.metric); - } else { - this.metric = null; - this._visitables.get("metric").remove(this.metric); - } - return (A) this; - } - - public boolean hasMetric() { - return this.metric != null; - } - - public MetricNested withNewMetric() { - return new MetricNested(null); - } - - public MetricNested withNewMetricLike(V2MetricIdentifier item) { - return new MetricNested(item); - } - - public MetricNested editMetric() { - return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); - } - public MetricNested editOrNewMetric() { return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); } @@ -113,38 +71,6 @@ public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(item)); } - public V2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; - } - - public A withTarget(V2MetricTarget target) { - this._visitables.remove("target"); - if (target != null) { - this.target = new V2MetricTargetBuilder(target); - this._visitables.get("target").add(this.target); - } else { - this.target = null; - this._visitables.get("target").remove(this.target); - } - return (A) this; - } - - public boolean hasTarget() { - return this.target != null; - } - - public TargetNested withNewTarget() { - return new TargetNested(null); - } - - public TargetNested withNewTargetLike(V2MetricTarget item) { - return new TargetNested(item); - } - - public TargetNested editTarget() { - return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); - } - public TargetNested editOrNewTarget() { return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V2MetricTargetBuilder().build())); } @@ -153,6 +79,10 @@ public TargetNested editOrNewTargetLike(V2MetricTarget item) { return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); } + public TargetNested editTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -176,6 +106,18 @@ public boolean equals(Object o) { return true; } + public boolean hasDescribedObject() { + return this.describedObject != null; + } + + public boolean hasMetric() { + return this.metric != null; + } + + public boolean hasTarget() { + return this.target != null; + } + public int hashCode() { return Objects.hash(describedObject, metric, target); } @@ -200,12 +142,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withDescribedObject(V2CrossVersionObjectReference describedObject) { + this._visitables.remove("describedObject"); + if (describedObject != null) { + this.describedObject = new V2CrossVersionObjectReferenceBuilder(describedObject); + this._visitables.get("describedObject").add(this.describedObject); + } else { + this.describedObject = null; + this._visitables.get("describedObject").remove(this.describedObject); + } + return (A) this; + } + + public A withMetric(V2MetricIdentifier metric) { + this._visitables.remove("metric"); + if (metric != null) { + this.metric = new V2MetricIdentifierBuilder(metric); + this._visitables.get("metric").add(this.metric); + } else { + this.metric = null; + this._visitables.get("metric").remove(this.metric); + } + return (A) this; + } + + public DescribedObjectNested withNewDescribedObject() { + return new DescribedObjectNested(null); + } + + public DescribedObjectNested withNewDescribedObjectLike(V2CrossVersionObjectReference item) { + return new DescribedObjectNested(item); + } + + public MetricNested withNewMetric() { + return new MetricNested(null); + } + + public MetricNested withNewMetricLike(V2MetricIdentifier item) { + return new MetricNested(item); + } + + public TargetNested withNewTarget() { + return new TargetNested(null); + } + + public TargetNested withNewTargetLike(V2MetricTarget item) { + return new TargetNested(item); + } + + public A withTarget(V2MetricTarget target) { + this._visitables.remove("target"); + if (target != null) { + this.target = new V2MetricTargetBuilder(target); + this._visitables.get("target").add(this.target); + } else { + this.target = null; + this._visitables.get("target").remove(this.target); + } + return (A) this; + } public class DescribedObjectNested extends V2CrossVersionObjectReferenceFluent> implements Nested{ + + V2CrossVersionObjectReferenceBuilder builder; + DescribedObjectNested(V2CrossVersionObjectReference item) { this.builder = new V2CrossVersionObjectReferenceBuilder(this, item); } - V2CrossVersionObjectReferenceBuilder builder; - + public N and() { return (N) V2ObjectMetricSourceFluent.this.withDescribedObject(builder.build()); } @@ -214,14 +218,15 @@ public N endDescribedObject() { return and(); } - } public class MetricNested extends V2MetricIdentifierFluent> implements Nested{ + + V2MetricIdentifierBuilder builder; + MetricNested(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } - V2MetricIdentifierBuilder builder; - + public N and() { return (N) V2ObjectMetricSourceFluent.this.withMetric(builder.build()); } @@ -230,14 +235,15 @@ public N endMetric() { return and(); } - } public class TargetNested extends V2MetricTargetFluent> implements Nested{ + + V2MetricTargetBuilder builder; + TargetNested(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } - V2MetricTargetBuilder builder; - + public N and() { return (N) V2ObjectMetricSourceFluent.this.withTarget(builder.build()); } @@ -246,7 +252,5 @@ public N endTarget() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java index e78883c368..37948476f1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2ObjectMetricStatusBuilder extends V2ObjectMetricStatusFluent implements VisitableBuilder{ + + V2ObjectMetricStatusFluent fluent; + public V2ObjectMetricStatusBuilder() { this(new V2ObjectMetricStatus()); } @@ -11,17 +14,16 @@ public V2ObjectMetricStatusBuilder(V2ObjectMetricStatusFluent fluent) { this(fluent, new V2ObjectMetricStatus()); } - public V2ObjectMetricStatusBuilder(V2ObjectMetricStatusFluent fluent,V2ObjectMetricStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2ObjectMetricStatusBuilder(V2ObjectMetricStatus instance) { this.fluent = this; this.copyInstance(instance); } - V2ObjectMetricStatusFluent fluent; + public V2ObjectMetricStatusBuilder(V2ObjectMetricStatusFluent fluent,V2ObjectMetricStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2ObjectMetricStatus build() { V2ObjectMetricStatus buildable = new V2ObjectMetricStatus(); buildable.setCurrent(fluent.buildCurrent()); @@ -30,5 +32,4 @@ public V2ObjectMetricStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java index eeac60c29b..1a8beac033 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java @@ -1,28 +1,42 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Optional; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V2ObjectMetricStatusFluent> extends BaseFluent{ + + private V2MetricValueStatusBuilder current; + private V2CrossVersionObjectReferenceBuilder describedObject; + private V2MetricIdentifierBuilder metric; + public V2ObjectMetricStatusFluent() { } public V2ObjectMetricStatusFluent(V2ObjectMetricStatus instance) { this.copyInstance(instance); } - private V2MetricValueStatusBuilder current; - private V2CrossVersionObjectReferenceBuilder describedObject; - private V2MetricIdentifierBuilder metric; + + public V2MetricValueStatus buildCurrent() { + return this.current != null ? this.current.build() : null; + } + + public V2CrossVersionObjectReference buildDescribedObject() { + return this.describedObject != null ? this.describedObject.build() : null; + } + + public V2MetricIdentifier buildMetric() { + return this.metric != null ? this.metric.build() : null; + } protected void copyInstance(V2ObjectMetricStatus instance) { instance = instance != null ? instance : new V2ObjectMetricStatus(); @@ -33,36 +47,16 @@ protected void copyInstance(V2ObjectMetricStatus instance) { } } - public V2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; - } - - public A withCurrent(V2MetricValueStatus current) { - this._visitables.remove("current"); - if (current != null) { - this.current = new V2MetricValueStatusBuilder(current); - this._visitables.get("current").add(this.current); - } else { - this.current = null; - this._visitables.get("current").remove(this.current); - } - return (A) this; - } - - public boolean hasCurrent() { - return this.current != null; - } - - public CurrentNested withNewCurrent() { - return new CurrentNested(null); + public CurrentNested editCurrent() { + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(null)); } - public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { - return new CurrentNested(item); + public DescribedObjectNested editDescribedObject() { + return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(null)); } - public CurrentNested editCurrent() { - return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(null)); + public MetricNested editMetric() { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); } public CurrentNested editOrNewCurrent() { @@ -73,38 +67,6 @@ public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(item)); } - public V2CrossVersionObjectReference buildDescribedObject() { - return this.describedObject != null ? this.describedObject.build() : null; - } - - public A withDescribedObject(V2CrossVersionObjectReference describedObject) { - this._visitables.remove("describedObject"); - if (describedObject != null) { - this.describedObject = new V2CrossVersionObjectReferenceBuilder(describedObject); - this._visitables.get("describedObject").add(this.describedObject); - } else { - this.describedObject = null; - this._visitables.get("describedObject").remove(this.describedObject); - } - return (A) this; - } - - public boolean hasDescribedObject() { - return this.describedObject != null; - } - - public DescribedObjectNested withNewDescribedObject() { - return new DescribedObjectNested(null); - } - - public DescribedObjectNested withNewDescribedObjectLike(V2CrossVersionObjectReference item) { - return new DescribedObjectNested(item); - } - - public DescribedObjectNested editDescribedObject() { - return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(null)); - } - public DescribedObjectNested editOrNewDescribedObject() { return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(new V2CrossVersionObjectReferenceBuilder().build())); } @@ -113,38 +75,6 @@ public DescribedObjectNested editOrNewDescribedObjectLike(V2CrossVersionObjec return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(item)); } - public V2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; - } - - public A withMetric(V2MetricIdentifier metric) { - this._visitables.remove("metric"); - if (metric != null) { - this.metric = new V2MetricIdentifierBuilder(metric); - this._visitables.get("metric").add(this.metric); - } else { - this.metric = null; - this._visitables.get("metric").remove(this.metric); - } - return (A) this; - } - - public boolean hasMetric() { - return this.metric != null; - } - - public MetricNested withNewMetric() { - return new MetricNested(null); - } - - public MetricNested withNewMetricLike(V2MetricIdentifier item) { - return new MetricNested(item); - } - - public MetricNested editMetric() { - return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); - } - public MetricNested editOrNewMetric() { return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); } @@ -176,6 +106,18 @@ public boolean equals(Object o) { return true; } + public boolean hasCurrent() { + return this.current != null; + } + + public boolean hasDescribedObject() { + return this.describedObject != null; + } + + public boolean hasMetric() { + return this.metric != null; + } + public int hashCode() { return Objects.hash(current, describedObject, metric); } @@ -200,12 +142,74 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withCurrent(V2MetricValueStatus current) { + this._visitables.remove("current"); + if (current != null) { + this.current = new V2MetricValueStatusBuilder(current); + this._visitables.get("current").add(this.current); + } else { + this.current = null; + this._visitables.get("current").remove(this.current); + } + return (A) this; + } + + public A withDescribedObject(V2CrossVersionObjectReference describedObject) { + this._visitables.remove("describedObject"); + if (describedObject != null) { + this.describedObject = new V2CrossVersionObjectReferenceBuilder(describedObject); + this._visitables.get("describedObject").add(this.describedObject); + } else { + this.describedObject = null; + this._visitables.get("describedObject").remove(this.describedObject); + } + return (A) this; + } + + public A withMetric(V2MetricIdentifier metric) { + this._visitables.remove("metric"); + if (metric != null) { + this.metric = new V2MetricIdentifierBuilder(metric); + this._visitables.get("metric").add(this.metric); + } else { + this.metric = null; + this._visitables.get("metric").remove(this.metric); + } + return (A) this; + } + + public CurrentNested withNewCurrent() { + return new CurrentNested(null); + } + + public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { + return new CurrentNested(item); + } + + public DescribedObjectNested withNewDescribedObject() { + return new DescribedObjectNested(null); + } + + public DescribedObjectNested withNewDescribedObjectLike(V2CrossVersionObjectReference item) { + return new DescribedObjectNested(item); + } + + public MetricNested withNewMetric() { + return new MetricNested(null); + } + + public MetricNested withNewMetricLike(V2MetricIdentifier item) { + return new MetricNested(item); + } public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ + + V2MetricValueStatusBuilder builder; + CurrentNested(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } - V2MetricValueStatusBuilder builder; - + public N and() { return (N) V2ObjectMetricStatusFluent.this.withCurrent(builder.build()); } @@ -214,14 +218,15 @@ public N endCurrent() { return and(); } - } public class DescribedObjectNested extends V2CrossVersionObjectReferenceFluent> implements Nested{ + + V2CrossVersionObjectReferenceBuilder builder; + DescribedObjectNested(V2CrossVersionObjectReference item) { this.builder = new V2CrossVersionObjectReferenceBuilder(this, item); } - V2CrossVersionObjectReferenceBuilder builder; - + public N and() { return (N) V2ObjectMetricStatusFluent.this.withDescribedObject(builder.build()); } @@ -230,14 +235,15 @@ public N endDescribedObject() { return and(); } - } public class MetricNested extends V2MetricIdentifierFluent> implements Nested{ + + V2MetricIdentifierBuilder builder; + MetricNested(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } - V2MetricIdentifierBuilder builder; - + public N and() { return (N) V2ObjectMetricStatusFluent.this.withMetric(builder.build()); } @@ -246,7 +252,5 @@ public N endMetric() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java index f4bdd9bd82..eba378d121 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2PodsMetricSourceBuilder extends V2PodsMetricSourceFluent implements VisitableBuilder{ + + V2PodsMetricSourceFluent fluent; + public V2PodsMetricSourceBuilder() { this(new V2PodsMetricSource()); } @@ -11,17 +14,16 @@ public V2PodsMetricSourceBuilder(V2PodsMetricSourceFluent fluent) { this(fluent, new V2PodsMetricSource()); } - public V2PodsMetricSourceBuilder(V2PodsMetricSourceFluent fluent,V2PodsMetricSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2PodsMetricSourceBuilder(V2PodsMetricSource instance) { this.fluent = this; this.copyInstance(instance); } - V2PodsMetricSourceFluent fluent; + public V2PodsMetricSourceBuilder(V2PodsMetricSourceFluent fluent,V2PodsMetricSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2PodsMetricSource build() { V2PodsMetricSource buildable = new V2PodsMetricSource(); buildable.setMetric(fluent.buildMetric()); @@ -29,5 +31,4 @@ public V2PodsMetricSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java index 66620d48c9..f5a13a605d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java @@ -1,27 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V2PodsMetricSourceFluent> extends BaseFluent{ + + private V2MetricIdentifierBuilder metric; + private V2MetricTargetBuilder target; + public V2PodsMetricSourceFluent() { } public V2PodsMetricSourceFluent(V2PodsMetricSource instance) { this.copyInstance(instance); } - private V2MetricIdentifierBuilder metric; - private V2MetricTargetBuilder target; + + public V2MetricIdentifier buildMetric() { + return this.metric != null ? this.metric.build() : null; + } + + public V2MetricTarget buildTarget() { + return this.target != null ? this.target.build() : null; + } protected void copyInstance(V2PodsMetricSource instance) { instance = instance != null ? instance : new V2PodsMetricSource(); @@ -31,34 +41,6 @@ protected void copyInstance(V2PodsMetricSource instance) { } } - public V2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; - } - - public A withMetric(V2MetricIdentifier metric) { - this._visitables.remove("metric"); - if (metric != null) { - this.metric = new V2MetricIdentifierBuilder(metric); - this._visitables.get("metric").add(this.metric); - } else { - this.metric = null; - this._visitables.get("metric").remove(this.metric); - } - return (A) this; - } - - public boolean hasMetric() { - return this.metric != null; - } - - public MetricNested withNewMetric() { - return new MetricNested(null); - } - - public MetricNested withNewMetricLike(V2MetricIdentifier item) { - return new MetricNested(item); - } - public MetricNested editMetric() { return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); } @@ -71,38 +53,6 @@ public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(item)); } - public V2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; - } - - public A withTarget(V2MetricTarget target) { - this._visitables.remove("target"); - if (target != null) { - this.target = new V2MetricTargetBuilder(target); - this._visitables.get("target").add(this.target); - } else { - this.target = null; - this._visitables.get("target").remove(this.target); - } - return (A) this; - } - - public boolean hasTarget() { - return this.target != null; - } - - public TargetNested withNewTarget() { - return new TargetNested(null); - } - - public TargetNested withNewTargetLike(V2MetricTarget item) { - return new TargetNested(item); - } - - public TargetNested editTarget() { - return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); - } - public TargetNested editOrNewTarget() { return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V2MetricTargetBuilder().build())); } @@ -111,6 +61,10 @@ public TargetNested editOrNewTargetLike(V2MetricTarget item) { return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); } + public TargetNested editTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -131,6 +85,14 @@ public boolean equals(Object o) { return true; } + public boolean hasMetric() { + return this.metric != null; + } + + public boolean hasTarget() { + return this.target != null; + } + public int hashCode() { return Objects.hash(metric, target); } @@ -150,12 +112,54 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withMetric(V2MetricIdentifier metric) { + this._visitables.remove("metric"); + if (metric != null) { + this.metric = new V2MetricIdentifierBuilder(metric); + this._visitables.get("metric").add(this.metric); + } else { + this.metric = null; + this._visitables.get("metric").remove(this.metric); + } + return (A) this; + } + + public MetricNested withNewMetric() { + return new MetricNested(null); + } + + public MetricNested withNewMetricLike(V2MetricIdentifier item) { + return new MetricNested(item); + } + + public TargetNested withNewTarget() { + return new TargetNested(null); + } + + public TargetNested withNewTargetLike(V2MetricTarget item) { + return new TargetNested(item); + } + + public A withTarget(V2MetricTarget target) { + this._visitables.remove("target"); + if (target != null) { + this.target = new V2MetricTargetBuilder(target); + this._visitables.get("target").add(this.target); + } else { + this.target = null; + this._visitables.get("target").remove(this.target); + } + return (A) this; + } public class MetricNested extends V2MetricIdentifierFluent> implements Nested{ + + V2MetricIdentifierBuilder builder; + MetricNested(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } - V2MetricIdentifierBuilder builder; - + public N and() { return (N) V2PodsMetricSourceFluent.this.withMetric(builder.build()); } @@ -164,14 +168,15 @@ public N endMetric() { return and(); } - } public class TargetNested extends V2MetricTargetFluent> implements Nested{ + + V2MetricTargetBuilder builder; + TargetNested(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } - V2MetricTargetBuilder builder; - + public N and() { return (N) V2PodsMetricSourceFluent.this.withTarget(builder.build()); } @@ -180,7 +185,5 @@ public N endTarget() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java index 644d791846..955a9b9d36 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2PodsMetricStatusBuilder extends V2PodsMetricStatusFluent implements VisitableBuilder{ + + V2PodsMetricStatusFluent fluent; + public V2PodsMetricStatusBuilder() { this(new V2PodsMetricStatus()); } @@ -11,17 +14,16 @@ public V2PodsMetricStatusBuilder(V2PodsMetricStatusFluent fluent) { this(fluent, new V2PodsMetricStatus()); } - public V2PodsMetricStatusBuilder(V2PodsMetricStatusFluent fluent,V2PodsMetricStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2PodsMetricStatusBuilder(V2PodsMetricStatus instance) { this.fluent = this; this.copyInstance(instance); } - V2PodsMetricStatusFluent fluent; + public V2PodsMetricStatusBuilder(V2PodsMetricStatusFluent fluent,V2PodsMetricStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2PodsMetricStatus build() { V2PodsMetricStatus buildable = new V2PodsMetricStatus(); buildable.setCurrent(fluent.buildCurrent()); @@ -29,5 +31,4 @@ public V2PodsMetricStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java index 6445215ea9..1ae339905e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java @@ -1,27 +1,37 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V2PodsMetricStatusFluent> extends BaseFluent{ + + private V2MetricValueStatusBuilder current; + private V2MetricIdentifierBuilder metric; + public V2PodsMetricStatusFluent() { } public V2PodsMetricStatusFluent(V2PodsMetricStatus instance) { this.copyInstance(instance); } - private V2MetricValueStatusBuilder current; - private V2MetricIdentifierBuilder metric; + + public V2MetricValueStatus buildCurrent() { + return this.current != null ? this.current.build() : null; + } + + public V2MetricIdentifier buildMetric() { + return this.metric != null ? this.metric.build() : null; + } protected void copyInstance(V2PodsMetricStatus instance) { instance = instance != null ? instance : new V2PodsMetricStatus(); @@ -31,38 +41,14 @@ protected void copyInstance(V2PodsMetricStatus instance) { } } - public V2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; - } - - public A withCurrent(V2MetricValueStatus current) { - this._visitables.remove("current"); - if (current != null) { - this.current = new V2MetricValueStatusBuilder(current); - this._visitables.get("current").add(this.current); - } else { - this.current = null; - this._visitables.get("current").remove(this.current); - } - return (A) this; - } - - public boolean hasCurrent() { - return this.current != null; - } - - public CurrentNested withNewCurrent() { - return new CurrentNested(null); - } - - public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { - return new CurrentNested(item); - } - public CurrentNested editCurrent() { return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(null)); } + public MetricNested editMetric() { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); + } + public CurrentNested editOrNewCurrent() { return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); } @@ -71,38 +57,6 @@ public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(item)); } - public V2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; - } - - public A withMetric(V2MetricIdentifier metric) { - this._visitables.remove("metric"); - if (metric != null) { - this.metric = new V2MetricIdentifierBuilder(metric); - this._visitables.get("metric").add(this.metric); - } else { - this.metric = null; - this._visitables.get("metric").remove(this.metric); - } - return (A) this; - } - - public boolean hasMetric() { - return this.metric != null; - } - - public MetricNested withNewMetric() { - return new MetricNested(null); - } - - public MetricNested withNewMetricLike(V2MetricIdentifier item) { - return new MetricNested(item); - } - - public MetricNested editMetric() { - return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); - } - public MetricNested editOrNewMetric() { return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); } @@ -131,6 +85,14 @@ public boolean equals(Object o) { return true; } + public boolean hasCurrent() { + return this.current != null; + } + + public boolean hasMetric() { + return this.metric != null; + } + public int hashCode() { return Objects.hash(current, metric); } @@ -150,12 +112,54 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withCurrent(V2MetricValueStatus current) { + this._visitables.remove("current"); + if (current != null) { + this.current = new V2MetricValueStatusBuilder(current); + this._visitables.get("current").add(this.current); + } else { + this.current = null; + this._visitables.get("current").remove(this.current); + } + return (A) this; + } + + public A withMetric(V2MetricIdentifier metric) { + this._visitables.remove("metric"); + if (metric != null) { + this.metric = new V2MetricIdentifierBuilder(metric); + this._visitables.get("metric").add(this.metric); + } else { + this.metric = null; + this._visitables.get("metric").remove(this.metric); + } + return (A) this; + } + + public CurrentNested withNewCurrent() { + return new CurrentNested(null); + } + + public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { + return new CurrentNested(item); + } + + public MetricNested withNewMetric() { + return new MetricNested(null); + } + + public MetricNested withNewMetricLike(V2MetricIdentifier item) { + return new MetricNested(item); + } public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ + + V2MetricValueStatusBuilder builder; + CurrentNested(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } - V2MetricValueStatusBuilder builder; - + public N and() { return (N) V2PodsMetricStatusFluent.this.withCurrent(builder.build()); } @@ -164,14 +168,15 @@ public N endCurrent() { return and(); } - } public class MetricNested extends V2MetricIdentifierFluent> implements Nested{ + + V2MetricIdentifierBuilder builder; + MetricNested(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } - V2MetricIdentifierBuilder builder; - + public N and() { return (N) V2PodsMetricStatusFluent.this.withMetric(builder.build()); } @@ -180,7 +185,5 @@ public N endMetric() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java index 828ad4ce5c..ae3ea3731c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2ResourceMetricSourceBuilder extends V2ResourceMetricSourceFluent implements VisitableBuilder{ + + V2ResourceMetricSourceFluent fluent; + public V2ResourceMetricSourceBuilder() { this(new V2ResourceMetricSource()); } @@ -11,17 +14,16 @@ public V2ResourceMetricSourceBuilder(V2ResourceMetricSourceFluent fluent) { this(fluent, new V2ResourceMetricSource()); } - public V2ResourceMetricSourceBuilder(V2ResourceMetricSourceFluent fluent,V2ResourceMetricSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2ResourceMetricSourceBuilder(V2ResourceMetricSource instance) { this.fluent = this; this.copyInstance(instance); } - V2ResourceMetricSourceFluent fluent; + public V2ResourceMetricSourceBuilder(V2ResourceMetricSourceFluent fluent,V2ResourceMetricSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2ResourceMetricSource build() { V2ResourceMetricSource buildable = new V2ResourceMetricSource(); buildable.setName(fluent.getName()); @@ -29,5 +31,4 @@ public V2ResourceMetricSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java index 86b195abf5..9c3aa378b8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java @@ -1,27 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V2ResourceMetricSourceFluent> extends BaseFluent{ + + private String name; + private V2MetricTargetBuilder target; + public V2ResourceMetricSourceFluent() { } public V2ResourceMetricSourceFluent(V2ResourceMetricSource instance) { this.copyInstance(instance); } - private String name; - private V2MetricTargetBuilder target; + + public V2MetricTarget buildTarget() { + return this.target != null ? this.target.build() : null; + } protected void copyInstance(V2ResourceMetricSource instance) { instance = instance != null ? instance : new V2ResourceMetricSource(); @@ -31,51 +37,6 @@ protected void copyInstance(V2ResourceMetricSource instance) { } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - - public V2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; - } - - public A withTarget(V2MetricTarget target) { - this._visitables.remove("target"); - if (target != null) { - this.target = new V2MetricTargetBuilder(target); - this._visitables.get("target").add(this.target); - } else { - this.target = null; - this._visitables.get("target").remove(this.target); - } - return (A) this; - } - - public boolean hasTarget() { - return this.target != null; - } - - public TargetNested withNewTarget() { - return new TargetNested(null); - } - - public TargetNested withNewTargetLike(V2MetricTarget item) { - return new TargetNested(item); - } - - public TargetNested editTarget() { - return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); - } - public TargetNested editOrNewTarget() { return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V2MetricTargetBuilder().build())); } @@ -84,6 +45,10 @@ public TargetNested editOrNewTargetLike(V2MetricTarget item) { return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); } + public TargetNested editTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -104,6 +69,18 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasTarget() { + return this.target != null; + } + public int hashCode() { return Objects.hash(name, target); } @@ -123,12 +100,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public TargetNested withNewTarget() { + return new TargetNested(null); + } + + public TargetNested withNewTargetLike(V2MetricTarget item) { + return new TargetNested(item); + } + + public A withTarget(V2MetricTarget target) { + this._visitables.remove("target"); + if (target != null) { + this.target = new V2MetricTargetBuilder(target); + this._visitables.get("target").add(this.target); + } else { + this.target = null; + this._visitables.get("target").remove(this.target); + } + return (A) this; + } public class TargetNested extends V2MetricTargetFluent> implements Nested{ + + V2MetricTargetBuilder builder; + TargetNested(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } - V2MetricTargetBuilder builder; - + public N and() { return (N) V2ResourceMetricSourceFluent.this.withTarget(builder.build()); } @@ -137,7 +141,5 @@ public N endTarget() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java index e254134785..c45a75c764 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class V2ResourceMetricStatusBuilder extends V2ResourceMetricStatusFluent implements VisitableBuilder{ + + V2ResourceMetricStatusFluent fluent; + public V2ResourceMetricStatusBuilder() { this(new V2ResourceMetricStatus()); } @@ -11,17 +14,16 @@ public V2ResourceMetricStatusBuilder(V2ResourceMetricStatusFluent fluent) { this(fluent, new V2ResourceMetricStatus()); } - public V2ResourceMetricStatusBuilder(V2ResourceMetricStatusFluent fluent,V2ResourceMetricStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2ResourceMetricStatusBuilder(V2ResourceMetricStatus instance) { this.fluent = this; this.copyInstance(instance); } - V2ResourceMetricStatusFluent fluent; + public V2ResourceMetricStatusBuilder(V2ResourceMetricStatusFluent fluent,V2ResourceMetricStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2ResourceMetricStatus build() { V2ResourceMetricStatus buildable = new V2ResourceMetricStatus(); buildable.setCurrent(fluent.buildCurrent()); @@ -29,5 +31,4 @@ public V2ResourceMetricStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java index 239ac000fc..ea755a8d0d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java @@ -1,27 +1,33 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.util.Optional; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.lang.Object; import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.Objects; -import java.lang.Object; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") public class V2ResourceMetricStatusFluent> extends BaseFluent{ + + private V2MetricValueStatusBuilder current; + private String name; + public V2ResourceMetricStatusFluent() { } public V2ResourceMetricStatusFluent(V2ResourceMetricStatus instance) { this.copyInstance(instance); } - private V2MetricValueStatusBuilder current; - private String name; + + public V2MetricValueStatus buildCurrent() { + return this.current != null ? this.current.build() : null; + } protected void copyInstance(V2ResourceMetricStatus instance) { instance = instance != null ? instance : new V2ResourceMetricStatus(); @@ -31,34 +37,6 @@ protected void copyInstance(V2ResourceMetricStatus instance) { } } - public V2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; - } - - public A withCurrent(V2MetricValueStatus current) { - this._visitables.remove("current"); - if (current != null) { - this.current = new V2MetricValueStatusBuilder(current); - this._visitables.get("current").add(this.current); - } else { - this.current = null; - this._visitables.get("current").remove(this.current); - } - return (A) this; - } - - public boolean hasCurrent() { - return this.current != null; - } - - public CurrentNested withNewCurrent() { - return new CurrentNested(null); - } - - public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { - return new CurrentNested(item); - } - public CurrentNested editCurrent() { return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(null)); } @@ -71,19 +49,6 @@ public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(item)); } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public boolean hasName() { - return this.name != null; - } - public boolean equals(Object o) { if (this == o) { return true; @@ -104,6 +69,18 @@ public boolean equals(Object o) { return true; } + public String getName() { + return this.name; + } + + public boolean hasCurrent() { + return this.current != null; + } + + public boolean hasName() { + return this.name != null; + } + public int hashCode() { return Objects.hash(current, name); } @@ -123,12 +100,39 @@ public String toString() { sb.append("}"); return sb.toString(); } + + public A withCurrent(V2MetricValueStatus current) { + this._visitables.remove("current"); + if (current != null) { + this.current = new V2MetricValueStatusBuilder(current); + this._visitables.get("current").add(this.current); + } else { + this.current = null; + this._visitables.get("current").remove(this.current); + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public CurrentNested withNewCurrent() { + return new CurrentNested(null); + } + + public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { + return new CurrentNested(item); + } public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ + + V2MetricValueStatusBuilder builder; + CurrentNested(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } - V2MetricValueStatusBuilder builder; - + public N and() { return (N) V2ResourceMetricStatusFluent.this.withCurrent(builder.build()); } @@ -137,7 +141,5 @@ public N endCurrent() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java index 16ead3258b..4b485ab89c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java @@ -3,6 +3,9 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; public class VersionInfoBuilder extends VersionInfoFluent implements VisitableBuilder{ + + VersionInfoFluent fluent; + public VersionInfoBuilder() { this(new VersionInfo()); } @@ -11,17 +14,16 @@ public VersionInfoBuilder(VersionInfoFluent fluent) { this(fluent, new VersionInfo()); } - public VersionInfoBuilder(VersionInfoFluent fluent,VersionInfo instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public VersionInfoBuilder(VersionInfo instance) { this.fluent = this; this.copyInstance(instance); } - VersionInfoFluent fluent; + public VersionInfoBuilder(VersionInfoFluent fluent,VersionInfo instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public VersionInfo build() { VersionInfo buildable = new VersionInfo(); buildable.setBuildDate(fluent.getBuildDate()); @@ -40,5 +42,4 @@ public VersionInfo build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java index 566f6a7fce..b69414b952 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java @@ -1,23 +1,18 @@ package io.kubernetes.client.openapi.models; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Objects; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") public class VersionInfoFluent> extends BaseFluent{ - public VersionInfoFluent() { - } - - public VersionInfoFluent(VersionInfo instance) { - this.copyInstance(instance); - } + private String buildDate; private String compiler; private String emulationMajor; @@ -31,7 +26,14 @@ public VersionInfoFluent(VersionInfo instance) { private String minCompatibilityMinor; private String minor; private String platform; + + public VersionInfoFluent() { + } + public VersionInfoFluent(VersionInfo instance) { + this.copyInstance(instance); + } + protected void copyInstance(VersionInfo instance) { instance = instance != null ? instance : new VersionInfo(); if (instance != null) { @@ -51,226 +53,161 @@ protected void copyInstance(VersionInfo instance) { } } - public String getBuildDate() { - return this.buildDate; - } - - public A withBuildDate(String buildDate) { - this.buildDate = buildDate; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + VersionInfoFluent that = (VersionInfoFluent) o; + if (!(Objects.equals(buildDate, that.buildDate))) { + return false; + } + if (!(Objects.equals(compiler, that.compiler))) { + return false; + } + if (!(Objects.equals(emulationMajor, that.emulationMajor))) { + return false; + } + if (!(Objects.equals(emulationMinor, that.emulationMinor))) { + return false; + } + if (!(Objects.equals(gitCommit, that.gitCommit))) { + return false; + } + if (!(Objects.equals(gitTreeState, that.gitTreeState))) { + return false; + } + if (!(Objects.equals(gitVersion, that.gitVersion))) { + return false; + } + if (!(Objects.equals(goVersion, that.goVersion))) { + return false; + } + if (!(Objects.equals(major, that.major))) { + return false; + } + if (!(Objects.equals(minCompatibilityMajor, that.minCompatibilityMajor))) { + return false; + } + if (!(Objects.equals(minCompatibilityMinor, that.minCompatibilityMinor))) { + return false; + } + if (!(Objects.equals(minor, that.minor))) { + return false; + } + if (!(Objects.equals(platform, that.platform))) { + return false; + } + return true; } - public boolean hasBuildDate() { - return this.buildDate != null; + public String getBuildDate() { + return this.buildDate; } public String getCompiler() { return this.compiler; } - public A withCompiler(String compiler) { - this.compiler = compiler; - return (A) this; - } - - public boolean hasCompiler() { - return this.compiler != null; - } - public String getEmulationMajor() { return this.emulationMajor; } - public A withEmulationMajor(String emulationMajor) { - this.emulationMajor = emulationMajor; - return (A) this; - } - - public boolean hasEmulationMajor() { - return this.emulationMajor != null; - } - public String getEmulationMinor() { return this.emulationMinor; } - public A withEmulationMinor(String emulationMinor) { - this.emulationMinor = emulationMinor; - return (A) this; - } - - public boolean hasEmulationMinor() { - return this.emulationMinor != null; - } - public String getGitCommit() { return this.gitCommit; } - public A withGitCommit(String gitCommit) { - this.gitCommit = gitCommit; - return (A) this; - } - - public boolean hasGitCommit() { - return this.gitCommit != null; - } - public String getGitTreeState() { return this.gitTreeState; } - public A withGitTreeState(String gitTreeState) { - this.gitTreeState = gitTreeState; - return (A) this; - } - - public boolean hasGitTreeState() { - return this.gitTreeState != null; - } - public String getGitVersion() { return this.gitVersion; } - public A withGitVersion(String gitVersion) { - this.gitVersion = gitVersion; - return (A) this; - } - - public boolean hasGitVersion() { - return this.gitVersion != null; - } - public String getGoVersion() { return this.goVersion; } - public A withGoVersion(String goVersion) { - this.goVersion = goVersion; - return (A) this; + public String getMajor() { + return this.major; } - public boolean hasGoVersion() { - return this.goVersion != null; + public String getMinCompatibilityMajor() { + return this.minCompatibilityMajor; } - public String getMajor() { - return this.major; + public String getMinCompatibilityMinor() { + return this.minCompatibilityMinor; } - public A withMajor(String major) { - this.major = major; - return (A) this; + public String getMinor() { + return this.minor; } - public boolean hasMajor() { - return this.major != null; + public String getPlatform() { + return this.platform; } - public String getMinCompatibilityMajor() { - return this.minCompatibilityMajor; + public boolean hasBuildDate() { + return this.buildDate != null; } - public A withMinCompatibilityMajor(String minCompatibilityMajor) { - this.minCompatibilityMajor = minCompatibilityMajor; - return (A) this; + public boolean hasCompiler() { + return this.compiler != null; } - public boolean hasMinCompatibilityMajor() { - return this.minCompatibilityMajor != null; + public boolean hasEmulationMajor() { + return this.emulationMajor != null; } - public String getMinCompatibilityMinor() { - return this.minCompatibilityMinor; + public boolean hasEmulationMinor() { + return this.emulationMinor != null; } - public A withMinCompatibilityMinor(String minCompatibilityMinor) { - this.minCompatibilityMinor = minCompatibilityMinor; - return (A) this; + public boolean hasGitCommit() { + return this.gitCommit != null; } - public boolean hasMinCompatibilityMinor() { - return this.minCompatibilityMinor != null; + public boolean hasGitTreeState() { + return this.gitTreeState != null; } - public String getMinor() { - return this.minor; + public boolean hasGitVersion() { + return this.gitVersion != null; } - public A withMinor(String minor) { - this.minor = minor; - return (A) this; + public boolean hasGoVersion() { + return this.goVersion != null; } - public boolean hasMinor() { - return this.minor != null; + public boolean hasMajor() { + return this.major != null; } - public String getPlatform() { - return this.platform; + public boolean hasMinCompatibilityMajor() { + return this.minCompatibilityMajor != null; } - public A withPlatform(String platform) { - this.platform = platform; - return (A) this; + public boolean hasMinCompatibilityMinor() { + return this.minCompatibilityMinor != null; } - public boolean hasPlatform() { - return this.platform != null; + public boolean hasMinor() { + return this.minor != null; } - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - VersionInfoFluent that = (VersionInfoFluent) o; - if (!(Objects.equals(buildDate, that.buildDate))) { - return false; - } - if (!(Objects.equals(compiler, that.compiler))) { - return false; - } - if (!(Objects.equals(emulationMajor, that.emulationMajor))) { - return false; - } - if (!(Objects.equals(emulationMinor, that.emulationMinor))) { - return false; - } - if (!(Objects.equals(gitCommit, that.gitCommit))) { - return false; - } - if (!(Objects.equals(gitTreeState, that.gitTreeState))) { - return false; - } - if (!(Objects.equals(gitVersion, that.gitVersion))) { - return false; - } - if (!(Objects.equals(goVersion, that.goVersion))) { - return false; - } - if (!(Objects.equals(major, that.major))) { - return false; - } - if (!(Objects.equals(minCompatibilityMajor, that.minCompatibilityMajor))) { - return false; - } - if (!(Objects.equals(minCompatibilityMinor, that.minCompatibilityMinor))) { - return false; - } - if (!(Objects.equals(minor, that.minor))) { - return false; - } - if (!(Objects.equals(platform, that.platform))) { - return false; - } - return true; + public boolean hasPlatform() { + return this.platform != null; } public int hashCode() { @@ -348,5 +285,69 @@ public String toString() { return sb.toString(); } - + public A withBuildDate(String buildDate) { + this.buildDate = buildDate; + return (A) this; + } + + public A withCompiler(String compiler) { + this.compiler = compiler; + return (A) this; + } + + public A withEmulationMajor(String emulationMajor) { + this.emulationMajor = emulationMajor; + return (A) this; + } + + public A withEmulationMinor(String emulationMinor) { + this.emulationMinor = emulationMinor; + return (A) this; + } + + public A withGitCommit(String gitCommit) { + this.gitCommit = gitCommit; + return (A) this; + } + + public A withGitTreeState(String gitTreeState) { + this.gitTreeState = gitTreeState; + return (A) this; + } + + public A withGitVersion(String gitVersion) { + this.gitVersion = gitVersion; + return (A) this; + } + + public A withGoVersion(String goVersion) { + this.goVersion = goVersion; + return (A) this; + } + + public A withMajor(String major) { + this.major = major; + return (A) this; + } + + public A withMinCompatibilityMajor(String minCompatibilityMajor) { + this.minCompatibilityMajor = minCompatibilityMajor; + return (A) this; + } + + public A withMinCompatibilityMinor(String minCompatibilityMinor) { + this.minCompatibilityMinor = minCompatibilityMinor; + return (A) this; + } + + public A withMinor(String minor) { + this.minor = minor; + return (A) this; + } + + public A withPlatform(String platform) { + this.platform = platform; + return (A) this; + } + } \ No newline at end of file diff --git a/gen b/gen deleted file mode 160000 index fc51af92af..0000000000 --- a/gen +++ /dev/null @@ -1 +0,0 @@ -Subproject commit fc51af92afc406664dc9bce6234ecfb9c9499dc9 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 3c9269768d..4ee3eea705 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiCallback.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiCallback.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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; import java.io.IOException; 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 72c2a8e32c..f7a5312569 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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; import okhttp3.*; @@ -1433,10 +1432,10 @@ 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 mpBuilder MultipartBody.Builder * @param key The key of the Header element * @param file The file to add to the Header - */ + */ protected 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)); 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 bd7b98883b..e05dffaedf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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; import java.util.Map; 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 52f5becda8..1b03e38975 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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; import java.util.List; @@ -59,7 +58,7 @@ public int getStatusCode() { /** *

Get the headers.

* - * @return a {@link java.util.Map} of headers + * @return a {@link java.util.Map} of headers */ public Map> getHeaders() { return headers; 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 5eaa2206ff..515ffe6492 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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; import java.util.Objects; @@ -60,4 +59,4 @@ public static void setApiClientFactory(Supplier factory) { private Configuration() { } -} \ No newline at end of file +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java index 0cf9561b1e..ec4cfbb653 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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; import okhttp3.*; 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 f132795f2f..02bc54407a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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; import com.google.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 6461e0a8f0..302a73d5bf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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; @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-21T03:25:56.836812Z[Etc/UTC]", comments = "Generator version: 7.16.0") diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java index 78f16ff777..9f03aa6f25 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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; import okhttp3.MediaType; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressResponseBody.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressResponseBody.java index 46d2af36f4..ae03d657b5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressResponseBody.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressResponseBody.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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; import okhttp3.MediaType; 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 0ecfda1250..ec9a1108f8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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; import java.util.Map; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java index 363d47cef7..e88b00dc8e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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; import java.util.HashSet; 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 c6e8d86194..f6796a1d6b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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; import java.util.Collection; 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 4b8c47f08b..3b6665ec78 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 9e31078388..57e7f2999a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -306,7 +305,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * create a ValidatingAdmissionPolicy * @param body (required) * @return APIcreateValidatingAdmissionPolicyRequest @@ -786,7 +785,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of MutatingWebhookConfiguration * @return APIdeleteCollectionMutatingWebhookConfigurationRequest * @http.response.details @@ -1815,7 +1814,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ValidatingAdmissionPolicy * @return APIdeleteCollectionValidatingAdmissionPolicyRequest * @http.response.details @@ -2208,7 +2207,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ValidatingAdmissionPolicyBinding * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest * @http.response.details @@ -2601,7 +2600,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ValidatingWebhookConfiguration * @return APIdeleteCollectionValidatingWebhookConfigurationRequest * @http.response.details @@ -2879,7 +2878,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a MutatingWebhookConfiguration * @param name name of the MutatingWebhookConfiguration (required) * @return APIdeleteMutatingWebhookConfigurationRequest @@ -3159,7 +3158,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @return APIdeleteValidatingAdmissionPolicyRequest @@ -3439,7 +3438,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ValidatingAdmissionPolicyBinding * @param name name of the ValidatingAdmissionPolicyBinding (required) * @return APIdeleteValidatingAdmissionPolicyBindingRequest @@ -3719,7 +3718,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ValidatingWebhookConfiguration * @param name name of the ValidatingWebhookConfiguration (required) * @return APIdeleteValidatingWebhookConfigurationRequest @@ -3877,7 +3876,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -4212,7 +4211,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) @@ -5997,7 +5996,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update status of the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) @@ -6519,7 +6518,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @return APIreadValidatingAdmissionPolicyRequest @@ -7067,7 +7066,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read status of the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @return APIreadValidatingAdmissionPolicyStatusRequest @@ -7431,7 +7430,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) @@ -8164,7 +8163,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace status of the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) * @param body (required) @@ -8654,7 +8653,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of MutatingAdmissionPolicy * @return APIdeleteCollectionMutatingAdmissionPolicyRequest * @http.response.details @@ -1331,7 +1330,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of MutatingAdmissionPolicyBinding * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest * @http.response.details @@ -1609,7 +1608,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a MutatingAdmissionPolicy * @param name name of the MutatingAdmissionPolicy (required) * @return APIdeleteMutatingAdmissionPolicyRequest @@ -1889,7 +1888,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a MutatingAdmissionPolicyBinding * @param name name of the MutatingAdmissionPolicyBinding (required) * @return APIdeleteMutatingAdmissionPolicyBindingRequest @@ -2047,7 +2046,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -2382,7 +2381,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of MutatingAdmissionPolicy * @return APIdeleteCollectionMutatingAdmissionPolicyRequest * @http.response.details @@ -1331,7 +1330,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of MutatingAdmissionPolicyBinding * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest * @http.response.details @@ -1609,7 +1608,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a MutatingAdmissionPolicy * @param name name of the MutatingAdmissionPolicy (required) * @return APIdeleteMutatingAdmissionPolicyRequest @@ -1889,7 +1888,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a MutatingAdmissionPolicyBinding * @param name name of the MutatingAdmissionPolicyBinding (required) * @return APIdeleteMutatingAdmissionPolicyBindingRequest @@ -2047,7 +2046,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -2382,7 +2381,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 707f55e73a..6849111e79 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -300,7 +299,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * create a CustomResourceDefinition * @param body (required) * @return APIcreateCustomResourceDefinitionRequest @@ -696,7 +695,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of CustomResourceDefinition * @return APIdeleteCollectionCustomResourceDefinitionRequest * @http.response.details @@ -974,7 +973,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @return APIdeleteCustomResourceDefinitionRequest @@ -1132,7 +1131,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1467,7 +1466,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * partially update the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) @@ -1986,7 +1985,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * partially update status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) @@ -2170,7 +2169,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * read the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @return APIreadCustomResourceDefinitionRequest @@ -2352,7 +2351,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * read status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @return APIreadCustomResourceDefinitionStatusRequest @@ -2595,7 +2594,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * replace the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) @@ -2840,7 +2839,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * replace status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param body (required) 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 542036697d..dbae624c76 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 4f5e6cab6a..a011d8e584 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -300,7 +299,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * create an APIService * @param body (required) * @return APIcreateAPIServiceRequest @@ -581,7 +580,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete an APIService * @param name name of the APIService (required) * @return APIdeleteAPIServiceRequest @@ -976,7 +975,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of APIService * @return APIdeleteCollectionAPIServiceRequest * @http.response.details @@ -1132,7 +1131,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1467,7 +1466,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind APIService * @return APIlistAPIServiceRequest * @http.response.details @@ -1725,7 +1724,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * partially update the specified APIService * @param name name of the APIService (required) * @param body (required) @@ -1986,7 +1985,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * partially update status of the specified APIService * @param name name of the APIService (required) * @param body (required) @@ -2170,7 +2169,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * read the specified APIService * @param name name of the APIService (required) * @return APIreadAPIServiceRequest @@ -2352,7 +2351,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * read status of the specified APIService * @param name name of the APIService (required) * @return APIreadAPIServiceStatusRequest @@ -2595,7 +2594,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * replace the specified APIService * @param name name of the APIService (required) * @param body (required) @@ -2840,7 +2839,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * replace status of the specified APIService * @param name name of the APIService (required) * @param body (required) 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 79ba4acf3b..1d75105954 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * get available API versions * @return APIgetAPIVersionsRequest * @http.response.details 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 d8ead2a1b2..cc5603483c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 e981ac22b3..5f1c28364a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -318,7 +317,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * create a ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -568,7 +567,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * create a DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -818,7 +817,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * create a Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1068,7 +1067,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * create a ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1318,7 +1317,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * create a StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1724,7 +1723,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedControllerRevisionRequest @@ -2127,7 +2126,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedDaemonSetRequest @@ -2530,7 +2529,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedDeploymentRequest @@ -2933,7 +2932,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedReplicaSetRequest @@ -3336,7 +3335,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedStatefulSetRequest @@ -3624,7 +3623,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3914,7 +3913,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4204,7 +4203,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4494,7 +4493,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4784,7 +4783,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4943,7 +4942,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -5278,7 +5277,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind ControllerRevision * @return APIlistControllerRevisionForAllNamespacesRequest * @http.response.details @@ -5613,7 +5612,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind DaemonSet * @return APIlistDaemonSetForAllNamespacesRequest * @http.response.details @@ -5948,7 +5947,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind Deployment * @return APIlistDeploymentForAllNamespacesRequest * @http.response.details @@ -6292,7 +6291,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedControllerRevisionRequest @@ -6637,7 +6636,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedDaemonSetRequest @@ -6982,7 +6981,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedDeploymentRequest @@ -7327,7 +7326,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedReplicaSetRequest @@ -7672,7 +7671,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedStatefulSetRequest @@ -8008,7 +8007,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind ReplicaSet * @return APIlistReplicaSetForAllNamespacesRequest * @http.response.details @@ -8343,7 +8342,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind StatefulSet * @return APIlistStatefulSetForAllNamespacesRequest * @http.response.details @@ -8610,7 +8609,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * partially update the specified ControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8881,7 +8880,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * partially update the specified DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9152,7 +9151,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * partially update status of the specified DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9423,7 +9422,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * partially update the specified Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9694,7 +9693,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * partially update scale of the specified Deployment * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9965,7 +9964,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * partially update status of the specified Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -10236,7 +10235,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * partially update the specified ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -10507,7 +10506,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * partially update scale of the specified ReplicaSet * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -10778,7 +10777,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * partially update status of the specified ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -11049,7 +11048,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * partially update the specified StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -11320,7 +11319,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * partially update scale of the specified StatefulSet * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -11591,7 +11590,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * partially update status of the specified StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -11785,7 +11784,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * read the specified ControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -11977,7 +11976,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * read the specified DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -12169,7 +12168,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * read status of the specified DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -12361,7 +12360,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * read the specified Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -12553,7 +12552,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * read scale of the specified Deployment * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -12745,7 +12744,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * read status of the specified Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -12937,7 +12936,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * read the specified ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -13129,7 +13128,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * read scale of the specified ReplicaSet * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -13321,7 +13320,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * read status of the specified ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -13513,7 +13512,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * read the specified StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -13705,7 +13704,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * read scale of the specified StatefulSet * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -13897,7 +13896,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * read status of the specified StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -14150,7 +14149,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * replace the specified ControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -14405,7 +14404,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace the specified DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -14660,7 +14659,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace status of the specified DaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -14915,7 +14914,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * replace the specified Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -15170,7 +15169,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * replace scale of the specified Deployment * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -15425,7 +15424,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * replace status of the specified Deployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -15680,7 +15679,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * replace the specified ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -15935,7 +15934,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * replace scale of the specified ReplicaSet * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -16190,7 +16189,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * replace status of the specified ReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -16445,7 +16444,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * replace the specified StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -16700,7 +16699,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * replace scale of the specified StatefulSet * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -16955,7 +16954,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * replace status of the specified StatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) 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 746ebd81f1..9c967600e6 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 a3c2920495..5e6b61e94d 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -297,7 +296,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * create a SelfSubjectReview * @param body (required) * @return APIcreateSelfSubjectReviewRequest @@ -537,7 +536,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * create a TokenReview * @param body (required) * @return APIcreateTokenReviewRequest @@ -696,7 +695,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details 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 63be1105a5..825184e955 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 82ea88829c..1d0fe2ff2a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -308,7 +307,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * create a LocalSubjectAccessReview * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -549,7 +548,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * create a SelfSubjectAccessReview * @param body (required) * @return APIcreateSelfSubjectAccessReviewRequest @@ -789,7 +788,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * create a SelfSubjectRulesReview * @param body (required) * @return APIcreateSelfSubjectRulesReviewRequest @@ -1029,7 +1028,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * create a SubjectAccessReview * @param body (required) * @return APIcreateSubjectAccessReviewRequest @@ -1188,7 +1187,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details 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 d26fe46620..305a1b013b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 508bb8e074..4d2150215e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -309,7 +308,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * create a HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -715,7 +714,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest @@ -1003,7 +1002,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1162,7 +1161,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1497,7 +1496,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * partially update the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2380,7 +2379,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * partially update status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2574,7 +2573,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * read the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2766,7 +2765,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * read status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3019,7 +3018,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * replace the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3274,7 +3273,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * replace status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) 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 fae9f4bda2..2a96543269 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -309,7 +308,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * create a HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -715,7 +714,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest @@ -1003,7 +1002,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1162,7 +1161,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1497,7 +1496,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * partially update the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2380,7 +2379,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * partially update status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2574,7 +2573,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * read the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2766,7 +2765,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * read status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3019,7 +3018,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * replace the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3274,7 +3273,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * replace status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) 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 12c5d9be9e..94346ddc2f 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 0c7c4d3af6..259fc2f0c1 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -311,7 +310,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * create a CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -561,7 +560,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * create a Job * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -967,7 +966,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedCronJobRequest @@ -1370,7 +1369,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Job * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedJobRequest @@ -1658,7 +1657,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1948,7 +1947,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2107,7 +2106,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -2442,7 +2441,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * list or watch objects of kind CronJob * @return APIlistCronJobForAllNamespacesRequest * @http.response.details @@ -2777,7 +2776,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * list or watch objects of kind Job * @return APIlistJobForAllNamespacesRequest * @http.response.details @@ -3121,7 +3120,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * list or watch objects of kind CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedCronJobRequest @@ -3466,7 +3465,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * list or watch objects of kind Job * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedJobRequest @@ -3734,7 +3733,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * partially update the specified CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4005,7 +4004,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * partially update status of the specified CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4276,7 +4275,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * partially update the specified Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4547,7 +4546,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * partially update status of the specified Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4741,7 +4740,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * read the specified CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4933,7 +4932,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * read status of the specified CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -5125,7 +5124,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * read the specified Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -5317,7 +5316,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * read status of the specified Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -5570,7 +5569,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * replace the specified CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -5825,7 +5824,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * replace status of the specified CronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -6080,7 +6079,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * replace the specified Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -6335,7 +6334,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * replace status of the specified Job * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) 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 ae04b2868a..8271b16bb1 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 4a410f1e7a..fe94f8d673 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -300,7 +299,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * create a CertificateSigningRequest * @param body (required) * @return APIcreateCertificateSigningRequestRequest @@ -581,7 +580,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @return APIdeleteCertificateSigningRequestRequest @@ -976,7 +975,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of CertificateSigningRequest * @return APIdeleteCollectionCertificateSigningRequestRequest * @http.response.details @@ -1132,7 +1131,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1467,7 +1466,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) @@ -1986,7 +1985,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) @@ -2247,7 +2246,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) @@ -2431,7 +2430,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @return APIreadCertificateSigningRequestRequest @@ -2613,7 +2612,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @return APIreadCertificateSigningRequestApprovalRequest @@ -2795,7 +2794,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @return APIreadCertificateSigningRequestStatusRequest @@ -3038,7 +3037,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) @@ -3283,7 +3282,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) @@ -3528,7 +3527,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param body (required) 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 ac317f516b..1131f67fd6 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -302,7 +301,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * create a ClusterTrustBundle * @param body (required) * @return APIcreateClusterTrustBundleRequest @@ -551,7 +550,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @return APIdeleteClusterTrustBundleRequest @@ -1228,7 +1227,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ClusterTrustBundle * @return APIdeleteCollectionClusterTrustBundleRequest * @http.response.details @@ -1630,7 +1629,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of PodCertificateRequest * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedPodCertificateRequestRequest @@ -1918,7 +1917,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a PodCertificateRequest * @param name name of the PodCertificateRequest (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2077,7 +2076,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -2412,7 +2411,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * partially update the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) @@ -3620,7 +3619,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * read the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @return APIreadClusterTrustBundleRequest @@ -4267,7 +4266,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * replace the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) @@ -4957,7 +4956,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * create a ClusterTrustBundle * @param body (required) * @return APIcreateClusterTrustBundleRequest @@ -581,7 +580,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @return APIdeleteClusterTrustBundleRequest @@ -976,7 +975,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ClusterTrustBundle * @return APIdeleteCollectionClusterTrustBundleRequest * @http.response.details @@ -1132,7 +1131,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1467,7 +1466,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * partially update the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) @@ -1909,7 +1908,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * read the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @return APIreadClusterTrustBundleRequest @@ -2152,7 +2151,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * replace the specified ClusterTrustBundle * @param name name of the ClusterTrustBundle (required) * @param body (required) 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 9c42d91a7f..31c582a8c4 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 78de9dd010..674491cbec 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -309,7 +308,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * create a Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -715,7 +714,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedLeaseRequest @@ -1003,7 +1002,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a Lease * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1162,7 +1161,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1497,7 +1496,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * list or watch objects of kind Lease * @return APIlistLeaseForAllNamespacesRequest * @http.response.details @@ -1841,7 +1840,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * list or watch objects of kind Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedLeaseRequest @@ -2109,7 +2108,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * partially update the specified Lease * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2303,7 +2302,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * read the specified Lease * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2556,7 +2555,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * replace the specified Lease * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java index 827c6017b0..bec94a9127 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -309,7 +308,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * create a LeaseCandidate * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -715,7 +714,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of LeaseCandidate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest @@ -1003,7 +1002,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a LeaseCandidate * @param name name of the LeaseCandidate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1162,7 +1161,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1497,7 +1496,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * list or watch objects of kind LeaseCandidate * @return APIlistLeaseCandidateForAllNamespacesRequest * @http.response.details @@ -1841,7 +1840,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * list or watch objects of kind LeaseCandidate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedLeaseCandidateRequest @@ -2109,7 +2108,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * partially update the specified LeaseCandidate * @param name name of the LeaseCandidate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2303,7 +2302,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * read the specified LeaseCandidate * @param name name of the LeaseCandidate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2556,7 +2555,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * replace the specified LeaseCandidate * @param name name of the LeaseCandidate (required) * @param namespace object name and auth scope, such as for teams and projects (required) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java index fc2d17f453..82451d4b1d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -309,7 +308,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * create a LeaseCandidate * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -715,7 +714,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of LeaseCandidate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedLeaseCandidateRequest @@ -1003,7 +1002,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a LeaseCandidate * @param name name of the LeaseCandidate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1162,7 +1161,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1497,7 +1496,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * list or watch objects of kind LeaseCandidate * @return APIlistLeaseCandidateForAllNamespacesRequest * @http.response.details @@ -1841,7 +1840,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * list or watch objects of kind LeaseCandidate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedLeaseCandidateRequest @@ -2109,7 +2108,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * partially update the specified LeaseCandidate * @param name name of the LeaseCandidate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2303,7 +2302,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * read the specified LeaseCandidate * @param name name of the LeaseCandidate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2556,7 +2555,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * replace the specified LeaseCandidate * @param name name of the LeaseCandidate (required) * @param namespace object name and auth scope, such as for teams and projects (required) 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 ebfd088a3f..b136a81fa0 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * get available API versions * @return APIgetAPIVersionsRequest * @http.response.details 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 db26d8cb57..0801447352 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -284,7 +283,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect DELETE requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -482,7 +481,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect DELETE requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -672,7 +671,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect DELETE requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -870,7 +869,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect DELETE requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1051,7 +1050,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect DELETE requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectDeleteNodeProxyRequest @@ -1239,7 +1238,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect DELETE requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) @@ -1492,7 +1491,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect GET requests to attach of Pod * @param name name of the PodAttachOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1761,7 +1760,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect GET requests to exec of Pod * @param name name of the PodExecOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1950,7 +1949,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect GET requests to portforward of Pod * @param name name of the PodPortForwardOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2139,7 +2138,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect GET requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2337,7 +2336,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect GET requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2527,7 +2526,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect GET requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2725,7 +2724,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect GET requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2906,7 +2905,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect GET requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectGetNodeProxyRequest @@ -3094,7 +3093,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect GET requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) @@ -3283,7 +3282,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect HEAD requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3481,7 +3480,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect HEAD requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3671,7 +3670,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect HEAD requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3869,7 +3868,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect HEAD requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4050,7 +4049,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect HEAD requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectHeadNodeProxyRequest @@ -4238,7 +4237,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect HEAD requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) @@ -4427,7 +4426,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect OPTIONS requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4625,7 +4624,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect OPTIONS requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4815,7 +4814,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect OPTIONS requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -5013,7 +5012,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect OPTIONS requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -5194,7 +5193,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect OPTIONS requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectOptionsNodeProxyRequest @@ -5382,7 +5381,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect OPTIONS requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) @@ -5571,7 +5570,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PATCH requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -5769,7 +5768,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PATCH requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -5959,7 +5958,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PATCH requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -6157,7 +6156,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PATCH requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -6338,7 +6337,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PATCH requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectPatchNodeProxyRequest @@ -6526,7 +6525,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PATCH requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) @@ -6779,7 +6778,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect POST requests to attach of Pod * @param name name of the PodAttachOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7048,7 +7047,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect POST requests to exec of Pod * @param name name of the PodExecOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7237,7 +7236,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect POST requests to portforward of Pod * @param name name of the PodPortForwardOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7426,7 +7425,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect POST requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7624,7 +7623,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect POST requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7814,7 +7813,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect POST requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8012,7 +8011,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect POST requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8193,7 +8192,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect POST requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectPostNodeProxyRequest @@ -8381,7 +8380,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect POST requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) @@ -8570,7 +8569,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PUT requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8768,7 +8767,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PUT requests to proxy of Pod * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8958,7 +8957,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PUT requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9156,7 +9155,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PUT requests to proxy of Service * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9337,7 +9336,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PUT requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @return APIconnectPutNodeProxyRequest @@ -9525,7 +9524,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * connect PUT requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) @@ -9764,7 +9763,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * create a Namespace * @param body (required) * @return APIcreateNamespaceRequest @@ -10013,7 +10012,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * create a Binding * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -10263,7 +10262,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * create a ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -10513,7 +10512,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * create Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -10763,7 +10762,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * create an Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -11013,7 +11012,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * create a LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -11263,7 +11262,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * create a PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -11513,7 +11512,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * create a Pod * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -11772,7 +11771,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * create binding of a Pod * @param name name of the Binding (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -12032,7 +12031,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * create eviction of a Pod * @param name name of the Eviction (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -12283,7 +12282,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * create a PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -12533,7 +12532,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * create a ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -12783,7 +12782,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * create a ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -13033,7 +13032,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * create a Secret * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -13283,7 +13282,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * create a Service * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -13533,7 +13532,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * create a ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -13792,7 +13791,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * create token of a ServiceAccount * @param name name of the TokenRequest (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -14034,7 +14033,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * create a Node * @param body (required) * @return APIcreateNodeRequest @@ -14274,7 +14273,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * create a PersistentVolume * @param body (required) * @return APIcreatePersistentVolumeRequest @@ -14679,7 +14678,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedConfigMapRequest @@ -15082,7 +15081,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedEndpointsRequest @@ -15485,7 +15484,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedEventRequest @@ -15888,7 +15887,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedLimitRangeRequest @@ -16291,7 +16290,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest @@ -16694,7 +16693,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Pod * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedPodRequest @@ -17097,7 +17096,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedPodTemplateRequest @@ -17500,7 +17499,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedReplicationControllerRequest @@ -17903,7 +17902,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedResourceQuotaRequest @@ -18306,7 +18305,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Secret * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedSecretRequest @@ -18709,7 +18708,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Service * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedServiceRequest @@ -19112,7 +19111,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedServiceAccountRequest @@ -19506,7 +19505,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Node * @return APIdeleteCollectionNodeRequest * @http.response.details @@ -19899,7 +19898,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of PersistentVolume * @return APIdeleteCollectionPersistentVolumeRequest * @http.response.details @@ -20177,7 +20176,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a Namespace * @param name name of the Namespace (required) * @return APIdeleteNamespaceRequest @@ -20466,7 +20465,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -20756,7 +20755,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete Endpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -21046,7 +21045,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete an Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -21336,7 +21335,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a LimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -21626,7 +21625,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * delete a PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -21916,7 +21915,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * delete a Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -22206,7 +22205,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * delete a PodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -22496,7 +22495,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -22786,7 +22785,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * delete a ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -23076,7 +23075,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -23366,7 +23365,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * delete a Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -23656,7 +23655,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * delete a ServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -23937,7 +23936,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a Node * @param name name of the Node (required) * @return APIdeleteNodeRequest @@ -24217,7 +24216,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * delete a PersistentVolume * @param name name of the PersistentVolume (required) * @return APIdeletePersistentVolumeRequest @@ -24375,7 +24374,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -24710,7 +24709,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * list objects of kind ComponentStatus * @return APIlistComponentStatusRequest * @http.response.details @@ -25045,7 +25044,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind ConfigMap * @return APIlistConfigMapForAllNamespacesRequest * @http.response.details @@ -25380,7 +25379,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind Endpoints * @return APIlistEndpointsForAllNamespacesRequest * @http.response.details @@ -25715,7 +25714,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind Event * @return APIlistEventForAllNamespacesRequest * @http.response.details @@ -26050,7 +26049,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind LimitRange * @return APIlistLimitRangeForAllNamespacesRequest * @http.response.details @@ -26385,7 +26384,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind Namespace * @return APIlistNamespaceRequest * @http.response.details @@ -26729,7 +26728,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedConfigMapRequest @@ -27074,7 +27073,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedEndpointsRequest @@ -27419,7 +27418,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedEventRequest @@ -27764,7 +27763,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedLimitRangeRequest @@ -28109,7 +28108,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * list or watch objects of kind PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedPersistentVolumeClaimRequest @@ -28454,7 +28453,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * list or watch objects of kind Pod * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedPodRequest @@ -28799,7 +28798,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedPodTemplateRequest @@ -29144,7 +29143,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * list or watch objects of kind ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedReplicationControllerRequest @@ -29489,7 +29488,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedResourceQuotaRequest @@ -29834,7 +29833,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * list or watch objects of kind Secret * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedSecretRequest @@ -30179,7 +30178,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * list or watch objects of kind Service * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedServiceRequest @@ -30524,7 +30523,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * list or watch objects of kind ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedServiceAccountRequest @@ -30860,7 +30859,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * list or watch objects of kind Node * @return APIlistNodeRequest * @http.response.details @@ -31195,7 +31194,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * list or watch objects of kind PersistentVolume * @return APIlistPersistentVolumeRequest * @http.response.details @@ -31530,7 +31529,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * list or watch objects of kind PersistentVolumeClaim * @return APIlistPersistentVolumeClaimForAllNamespacesRequest * @http.response.details @@ -31865,7 +31864,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * list or watch objects of kind Pod * @return APIlistPodForAllNamespacesRequest * @http.response.details @@ -32200,7 +32199,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind PodTemplate * @return APIlistPodTemplateForAllNamespacesRequest * @http.response.details @@ -32535,7 +32534,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * list or watch objects of kind ReplicationController * @return APIlistReplicationControllerForAllNamespacesRequest * @http.response.details @@ -32870,7 +32869,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind ResourceQuota * @return APIlistResourceQuotaForAllNamespacesRequest * @http.response.details @@ -33205,7 +33204,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * list or watch objects of kind Secret * @return APIlistSecretForAllNamespacesRequest * @http.response.details @@ -33540,7 +33539,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * list or watch objects of kind ServiceAccount * @return APIlistServiceAccountForAllNamespacesRequest * @http.response.details @@ -33875,7 +33874,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * list or watch objects of kind Service * @return APIlistServiceForAllNamespacesRequest * @http.response.details @@ -34133,7 +34132,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * partially update the specified Namespace * @param name name of the Namespace (required) * @param body (required) @@ -34394,7 +34393,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * partially update status of the specified Namespace * @param name name of the Namespace (required) * @param body (required) @@ -34664,7 +34663,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * partially update the specified ConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -34935,7 +34934,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * partially update the specified Endpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -35206,7 +35205,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * partially update the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -35477,7 +35476,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * partially update the specified LimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -35748,7 +35747,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * partially update the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -36019,7 +36018,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * partially update status of the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -36290,7 +36289,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * partially update the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -36561,7 +36560,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * partially update ephemeralcontainers of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -36832,7 +36831,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * partially update resize of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -37103,7 +37102,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * partially update status of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -37374,7 +37373,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * partially update the specified PodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -37645,7 +37644,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * partially update the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -37916,7 +37915,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * partially update scale of the specified ReplicationController * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -38187,7 +38186,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * partially update status of the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -38458,7 +38457,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * partially update the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -38729,7 +38728,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * partially update status of the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -39000,7 +38999,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * partially update the specified Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -39271,7 +39270,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * partially update the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -39542,7 +39541,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * partially update the specified ServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -39813,7 +39812,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * partially update status of the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -40075,7 +40074,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * partially update the specified Node * @param name name of the Node (required) * @param body (required) @@ -40336,7 +40335,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * partially update status of the specified Node * @param name name of the Node (required) * @param body (required) @@ -40597,7 +40596,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * partially update the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) @@ -40858,7 +40857,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * partially update status of the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) @@ -41042,7 +41041,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * read the specified ComponentStatus * @param name name of the ComponentStatus (required) * @return APIreadComponentStatusRequest @@ -41224,7 +41223,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * read the specified Namespace * @param name name of the Namespace (required) * @return APIreadNamespaceRequest @@ -41406,7 +41405,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * read status of the specified Namespace * @param name name of the Namespace (required) * @return APIreadNamespaceStatusRequest @@ -41597,7 +41596,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * read the specified ConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -41789,7 +41788,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * read the specified Endpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -41981,7 +41980,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * read the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -42173,7 +42172,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * read the specified LimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -42365,7 +42364,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * read the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -42557,7 +42556,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * read status of the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -42749,7 +42748,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * read the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -42941,7 +42940,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * read ephemeralcontainers of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -43278,7 +43277,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * read log of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -43470,7 +43469,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * read resize of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -43662,7 +43661,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * read status of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -43854,7 +43853,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * read the specified PodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -44046,7 +44045,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * read the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -44238,7 +44237,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * read scale of the specified ReplicationController * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -44430,7 +44429,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * read status of the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -44622,7 +44621,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * read the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -44814,7 +44813,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * read status of the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -45006,7 +45005,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * read the specified Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -45198,7 +45197,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * read the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -45390,7 +45389,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * read the specified ServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -45582,7 +45581,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * read status of the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -45765,7 +45764,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * read the specified Node * @param name name of the Node (required) * @return APIreadNodeRequest @@ -45947,7 +45946,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * read status of the specified Node * @param name name of the Node (required) * @return APIreadNodeStatusRequest @@ -46129,7 +46128,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * read the specified PersistentVolume * @param name name of the PersistentVolume (required) * @return APIreadPersistentVolumeRequest @@ -46311,7 +46310,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * read status of the specified PersistentVolume * @param name name of the PersistentVolume (required) * @return APIreadPersistentVolumeStatusRequest @@ -46554,7 +46553,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace the specified Namespace * @param name name of the Namespace (required) * @param body (required) @@ -46799,7 +46798,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace finalize of the specified Namespace * @param name name of the Namespace (required) * @param body (required) @@ -47044,7 +47043,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace status of the specified Namespace * @param name name of the Namespace (required) * @param body (required) @@ -47298,7 +47297,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace the specified ConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -47553,7 +47552,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace the specified Endpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -47808,7 +47807,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -48063,7 +48062,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * replace the specified LimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -48318,7 +48317,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * replace the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -48573,7 +48572,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * replace status of the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -48828,7 +48827,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * replace the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -49083,7 +49082,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * replace ephemeralcontainers of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -49338,7 +49337,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * replace resize of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -49593,7 +49592,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE } /** - * + * * replace status of the specified Pod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -49848,7 +49847,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * replace the specified PodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -50103,7 +50102,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * replace the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -50358,7 +50357,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap } /** - * + * * replace scale of the specified ReplicationController * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -50613,7 +50612,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * replace status of the specified ReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -50868,7 +50867,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * replace the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -51123,7 +51122,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * replace status of the specified ResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -51378,7 +51377,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * replace the specified Secret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -51633,7 +51632,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * replace the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -51888,7 +51887,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * replace the specified ServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -52143,7 +52142,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * replace status of the specified Service * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -52389,7 +52388,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * replace the specified Node * @param name name of the Node (required) * @param body (required) @@ -52634,7 +52633,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * replace status of the specified Node * @param name name of the Node (required) * @param body (required) @@ -52879,7 +52878,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * replace the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) @@ -53124,7 +53123,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * replace status of the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param body (required) 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 4aa5e795c0..8cda5462f9 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -312,7 +311,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * Creates a cluster scoped Custom object * @param group The custom resource's group name (required) * @param version The custom resource's version (required) @@ -578,7 +577,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * Creates a namespace scoped Custom object * @param group The custom resource's group name (required) * @param version The custom resource's version (required) @@ -849,7 +848,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * Deletes the specified cluster scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -1142,7 +1141,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * Delete collection of cluster scoped custom objects * @param group The custom resource's group name (required) * @param version The custom resource's version (required) @@ -1459,7 +1458,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * Delete collection of namespace scoped custom objects * @param group The custom resource's group name (required) * @param version The custom resource's version (required) @@ -1738,7 +1737,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * Deletes the specified namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -1914,7 +1913,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @param group The custom resource's group name (required) * @param version The custom resource's version (required) @@ -2105,7 +2104,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * Returns a cluster scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -2300,7 +2299,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * read scale of the specified custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -2495,7 +2494,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * read status of the specified cluster scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -2697,7 +2696,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * Returns a namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -2902,7 +2901,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * read scale of the specified namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -3107,7 +3106,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * read status of the specified namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -3453,7 +3452,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * list or watch cluster scoped custom objects * @param group The custom resource's group name (required) * @param version The custom resource's version (required) @@ -3797,7 +3796,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * list or watch namespace scoped custom objects * @param group The custom resource's group name (required) * @param version The custom resource's version (required) @@ -4150,7 +4149,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * list or watch namespace scoped custom objects * @param group The custom resource's group name (required) * @param version The custom resource's version (required) @@ -4416,7 +4415,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * patch the specified cluster scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -4685,7 +4684,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * partially update scale of the specified cluster scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -4954,7 +4953,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * partially update status of the specified cluster scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -5230,7 +5229,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * patch the specified namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -5509,7 +5508,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * partially update scale of the specified namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -5788,7 +5787,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * partially update status of the specified namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -6040,7 +6039,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * replace the specified cluster scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -6297,7 +6296,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * replace scale of the specified cluster scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -6555,7 +6554,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * replace status of the cluster scoped specified custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -6816,7 +6815,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * replace the specified namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -7083,7 +7082,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * replace scale of the specified namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) @@ -7351,7 +7350,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * replace status of the specified namespace scoped custom object * @param group the custom resource's group (required) * @param version the custom resource's version (required) 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 ff18d77843..da2d077ec4 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 8b45e14278..d0574b7d80 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -309,7 +308,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * create an EndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -715,7 +714,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of EndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedEndpointSliceRequest @@ -1003,7 +1002,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete an EndpointSlice * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1162,7 +1161,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1497,7 +1496,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind EndpointSlice * @return APIlistEndpointSliceForAllNamespacesRequest * @http.response.details @@ -1841,7 +1840,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind EndpointSlice * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedEndpointSliceRequest @@ -2109,7 +2108,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * partially update the specified EndpointSlice * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2303,7 +2302,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * read the specified EndpointSlice * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2556,7 +2555,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * replace the specified EndpointSlice * @param name name of the EndpointSlice (required) * @param namespace object name and auth scope, such as for teams and projects (required) 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 b3b9801fd3..129d9222c0 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 5fa43940cc..cc04b7647c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -309,7 +308,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * create an Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -715,7 +714,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedEventRequest @@ -1003,7 +1002,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete an Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1162,7 +1161,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1497,7 +1496,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind Event * @return APIlistEventForAllNamespacesRequest * @http.response.details @@ -1841,7 +1840,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedEventRequest @@ -2109,7 +2108,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * partially update the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2303,7 +2302,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * read the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2556,7 +2555,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * replace the specified Event * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) 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 ccee19fb72..0752e8da72 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java index bb705ccc32..fbbb3bd7b4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -302,7 +301,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * create a FlowSchema * @param body (required) * @return APIcreateFlowSchemaRequest @@ -542,7 +541,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * create a PriorityLevelConfiguration * @param body (required) * @return APIcreatePriorityLevelConfigurationRequest @@ -938,7 +937,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of FlowSchema * @return APIdeleteCollectionFlowSchemaRequest * @http.response.details @@ -1331,7 +1330,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of PriorityLevelConfiguration * @return APIdeleteCollectionPriorityLevelConfigurationRequest * @http.response.details @@ -1609,7 +1608,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a FlowSchema * @param name name of the FlowSchema (required) * @return APIdeleteFlowSchemaRequest @@ -1889,7 +1888,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration (required) * @return APIdeletePriorityLevelConfigurationRequest @@ -2047,7 +2046,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -2382,7 +2381,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind FlowSchema * @return APIlistFlowSchemaRequest * @http.response.details @@ -2717,7 +2716,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * partially update the specified FlowSchema * @param name name of the FlowSchema (required) * @param body (required) @@ -3236,7 +3235,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * partially update status of the specified FlowSchema * @param name name of the FlowSchema (required) * @param body (required) @@ -3497,7 +3496,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration (required) * @param body (required) @@ -3758,7 +3757,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update status of the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration (required) * @param body (required) @@ -3942,7 +3941,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * read the specified FlowSchema * @param name name of the FlowSchema (required) * @return APIreadFlowSchemaRequest @@ -4124,7 +4123,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * read status of the specified FlowSchema * @param name name of the FlowSchema (required) * @return APIreadFlowSchemaStatusRequest @@ -4306,7 +4305,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration (required) * @return APIreadPriorityLevelConfigurationRequest @@ -4488,7 +4487,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read status of the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration (required) * @return APIreadPriorityLevelConfigurationStatusRequest @@ -4731,7 +4730,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * replace the specified FlowSchema * @param name name of the FlowSchema (required) * @param body (required) @@ -4976,7 +4975,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro } /** - * + * * replace status of the specified FlowSchema * @param name name of the FlowSchema (required) * @param body (required) @@ -5221,7 +5220,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration (required) * @param body (required) @@ -5466,7 +5465,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace status of the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration (required) * @param body (required) 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 103f4d512e..caedcfa7a5 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 55b6b4f498..a8e37f39d9 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -300,7 +299,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * create a StorageVersion * @param body (required) * @return APIcreateStorageVersionRequest @@ -696,7 +695,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of StorageVersion * @return APIdeleteCollectionStorageVersionRequest * @http.response.details @@ -974,7 +973,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a StorageVersion * @param name name of the StorageVersion (required) * @return APIdeleteStorageVersionRequest @@ -1132,7 +1131,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1467,7 +1466,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ } /** - * + * * list or watch objects of kind StorageVersion * @return APIlistStorageVersionRequest * @http.response.details @@ -1725,7 +1724,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * partially update the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) @@ -1986,7 +1985,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * partially update status of the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) @@ -2170,7 +2169,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * read the specified StorageVersion * @param name name of the StorageVersion (required) * @return APIreadStorageVersionRequest @@ -2352,7 +2351,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * read status of the specified StorageVersion * @param name name of the StorageVersion (required) * @return APIreadStorageVersionStatusRequest @@ -2595,7 +2594,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * replace the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) @@ -2840,7 +2839,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * replace status of the specified StorageVersion * @param name name of the StorageVersion (required) * @param body (required) 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 2212113e35..5ecc5e2935 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -210,8 +209,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiEx } /** - * - * + * + * * @param logpath path to the log (required) * @return APIlogFileHandlerRequest * @http.response.details @@ -354,8 +353,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiEx } /** - * - * + * + * * @return APIlogFileListHandlerRequest * @http.response.details

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 437d36d755..d66c75e614 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 654521e32e..2241ba4671 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -308,7 +307,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * create an IPAddress * @param body (required) * @return APIcreateIPAddressRequest @@ -548,7 +547,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * create an IngressClass * @param body (required) * @return APIcreateIngressClassRequest @@ -797,7 +796,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * create an Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1047,7 +1046,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * create a NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1288,7 +1287,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * create a ServiceCIDR * @param body (required) * @return APIcreateServiceCIDRRequest @@ -1684,7 +1683,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of IPAddress * @return APIdeleteCollectionIPAddressRequest * @http.response.details @@ -2077,7 +2076,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of IngressClass * @return APIdeleteCollectionIngressClassRequest * @http.response.details @@ -2479,7 +2478,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedIngressRequest @@ -2882,7 +2881,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedNetworkPolicyRequest @@ -3276,7 +3275,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ServiceCIDR * @return APIdeleteCollectionServiceCIDRRequest * @http.response.details @@ -3554,7 +3553,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete an IPAddress * @param name name of the IPAddress (required) * @return APIdeleteIPAddressRequest @@ -3834,7 +3833,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete an IngressClass * @param name name of the IngressClass (required) * @return APIdeleteIngressClassRequest @@ -4123,7 +4122,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete an Ingress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4413,7 +4412,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a NetworkPolicy * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -4694,7 +4693,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ServiceCIDR * @param name name of the ServiceCIDR (required) * @return APIdeleteServiceCIDRRequest @@ -4852,7 +4851,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -5187,7 +5186,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind IPAddress * @return APIlistIPAddressRequest * @http.response.details @@ -5522,7 +5521,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * list or watch objects of kind IngressClass * @return APIlistIngressClassRequest * @http.response.details @@ -5857,7 +5856,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * list or watch objects of kind Ingress * @return APIlistIngressForAllNamespacesRequest * @http.response.details @@ -6201,7 +6200,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * list or watch objects of kind Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedIngressRequest @@ -6546,7 +6545,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedNetworkPolicyRequest @@ -6882,7 +6881,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind NetworkPolicy * @return APIlistNetworkPolicyForAllNamespacesRequest * @http.response.details @@ -7217,7 +7216,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind ServiceCIDR * @return APIlistServiceCIDRRequest * @http.response.details @@ -7475,7 +7474,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * partially update the specified IPAddress * @param name name of the IPAddress (required) * @param body (required) @@ -7736,7 +7735,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * partially update the specified IngressClass * @param name name of the IngressClass (required) * @param body (required) @@ -8006,7 +8005,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * partially update the specified Ingress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8277,7 +8276,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * partially update status of the specified Ingress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8548,7 +8547,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * partially update the specified NetworkPolicy * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8810,7 +8809,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * partially update the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @param body (required) @@ -9071,7 +9070,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * partially update status of the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @param body (required) @@ -9255,7 +9254,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * read the specified IPAddress * @param name name of the IPAddress (required) * @return APIreadIPAddressRequest @@ -9437,7 +9436,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * read the specified IngressClass * @param name name of the IngressClass (required) * @return APIreadIngressClassRequest @@ -9628,7 +9627,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * read the specified Ingress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9820,7 +9819,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * read status of the specified Ingress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -10012,7 +10011,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * read the specified NetworkPolicy * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -10195,7 +10194,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * read the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @return APIreadServiceCIDRRequest @@ -10377,7 +10376,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * read status of the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @return APIreadServiceCIDRStatusRequest @@ -10620,7 +10619,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace the specified IPAddress * @param name name of the IPAddress (required) * @param body (required) @@ -10865,7 +10864,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * replace the specified IngressClass * @param name name of the IngressClass (required) * @param body (required) @@ -11119,7 +11118,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * replace the specified Ingress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -11374,7 +11373,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * replace status of the specified Ingress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -11629,7 +11628,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * replace the specified NetworkPolicy * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -11875,7 +11874,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * replace the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @param body (required) @@ -12120,7 +12119,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * replace status of the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @param body (required) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java index 4c494af4a6..96a8ec057d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -302,7 +301,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * create an IPAddress * @param body (required) * @return APIcreateIPAddressRequest @@ -542,7 +541,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * create a ServiceCIDR * @param body (required) * @return APIcreateServiceCIDRRequest @@ -938,7 +937,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of IPAddress * @return APIdeleteCollectionIPAddressRequest * @http.response.details @@ -1331,7 +1330,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ServiceCIDR * @return APIdeleteCollectionServiceCIDRRequest * @http.response.details @@ -1609,7 +1608,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete an IPAddress * @param name name of the IPAddress (required) * @return APIdeleteIPAddressRequest @@ -1889,7 +1888,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ServiceCIDR * @param name name of the ServiceCIDR (required) * @return APIdeleteServiceCIDRRequest @@ -2047,7 +2046,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -2382,7 +2381,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * list or watch objects of kind IPAddress * @return APIlistIPAddressRequest * @http.response.details @@ -2717,7 +2716,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * list or watch objects of kind ServiceCIDR * @return APIlistServiceCIDRRequest * @http.response.details @@ -2975,7 +2974,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * partially update the specified IPAddress * @param name name of the IPAddress (required) * @param body (required) @@ -3236,7 +3235,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * partially update the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @param body (required) @@ -3497,7 +3496,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * partially update status of the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @param body (required) @@ -3681,7 +3680,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * read the specified IPAddress * @param name name of the IPAddress (required) * @return APIreadIPAddressRequest @@ -3863,7 +3862,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * read the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @return APIreadServiceCIDRRequest @@ -4045,7 +4044,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * read status of the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @return APIreadServiceCIDRStatusRequest @@ -4288,7 +4287,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * replace the specified IPAddress * @param name name of the IPAddress (required) * @param body (required) @@ -4533,7 +4532,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * replace the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @param body (required) @@ -4778,7 +4777,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * replace status of the specified ServiceCIDR * @param name name of the ServiceCIDR (required) * @param body (required) 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 34568bdc9f..67f3ba627b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 75af093e73..e0004e527a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -300,7 +299,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * create a RuntimeClass * @param body (required) * @return APIcreateRuntimeClassRequest @@ -696,7 +695,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of RuntimeClass * @return APIdeleteCollectionRuntimeClassRequest * @http.response.details @@ -974,7 +973,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a RuntimeClass * @param name name of the RuntimeClass (required) * @return APIdeleteRuntimeClassRequest @@ -1132,7 +1131,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1467,7 +1466,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * list or watch objects of kind RuntimeClass * @return APIlistRuntimeClassRequest * @http.response.details @@ -1725,7 +1724,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * partially update the specified RuntimeClass * @param name name of the RuntimeClass (required) * @param body (required) @@ -1909,7 +1908,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * read the specified RuntimeClass * @param name name of the RuntimeClass (required) * @return APIreadRuntimeClassRequest @@ -2152,7 +2151,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * replace the specified RuntimeClass * @param name name of the RuntimeClass (required) * @param body (required) 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 343d39e501..43ecc8627b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -210,7 +209,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * get service account issuer OpenID JSON Web Key Set (contains public token verification keys) * @return APIgetServiceAccountIssuerOpenIDKeysetRequest * @http.response.details 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 13ab4d9f78..d137974bad 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 2166f40827..1d15879fd4 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -309,7 +308,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * create a PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -715,7 +714,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest @@ -1003,7 +1002,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -1162,7 +1161,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1506,7 +1505,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * list or watch objects of kind PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedPodDisruptionBudgetRequest @@ -1842,7 +1841,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c } /** - * + * * list or watch objects of kind PodDisruptionBudget * @return APIlistPodDisruptionBudgetForAllNamespacesRequest * @http.response.details @@ -2109,7 +2108,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * partially update the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2380,7 +2379,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * partially update status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2574,7 +2573,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * read the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -2766,7 +2765,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * read status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3019,7 +3018,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * replace the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3274,7 +3273,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb } /** - * + * * replace status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) 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 084da660da..3cf3dd6471 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 8851d74d71..465763c0ab 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -306,7 +305,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * create a ClusterRole * @param body (required) * @return APIcreateClusterRoleRequest @@ -546,7 +545,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * create a ClusterRoleBinding * @param body (required) * @return APIcreateClusterRoleBindingRequest @@ -795,7 +794,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * create a Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1045,7 +1044,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * create a RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1327,7 +1326,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ClusterRole * @param name name of the ClusterRole (required) * @return APIdeleteClusterRoleRequest @@ -1607,7 +1606,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @return APIdeleteClusterRoleBindingRequest @@ -2002,7 +2001,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ClusterRole * @return APIdeleteCollectionClusterRoleRequest * @http.response.details @@ -2395,7 +2394,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ClusterRoleBinding * @return APIdeleteCollectionClusterRoleBindingRequest * @http.response.details @@ -2797,7 +2796,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of Role * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedRoleRequest @@ -3200,7 +3199,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedRoleBindingRequest @@ -3488,7 +3487,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a Role * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3778,7 +3777,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a RoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3937,7 +3936,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -4272,7 +4271,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind ClusterRole * @return APIlistClusterRoleRequest * @http.response.details @@ -4607,7 +4606,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind ClusterRoleBinding * @return APIlistClusterRoleBindingRequest * @http.response.details @@ -4951,7 +4950,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * list or watch objects of kind Role * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedRoleRequest @@ -5296,7 +5295,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedRoleBindingRequest @@ -5632,7 +5631,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind RoleBinding * @return APIlistRoleBindingForAllNamespacesRequest * @http.response.details @@ -5967,7 +5966,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * list or watch objects of kind Role * @return APIlistRoleForAllNamespacesRequest * @http.response.details @@ -6225,7 +6224,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * partially update the specified ClusterRole * @param name name of the ClusterRole (required) * @param body (required) @@ -6486,7 +6485,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * partially update the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param body (required) @@ -6756,7 +6755,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * partially update the specified Role * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7027,7 +7026,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * partially update the specified RoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7212,7 +7211,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * read the specified ClusterRole * @param name name of the ClusterRole (required) * @return APIreadClusterRoleRequest @@ -7394,7 +7393,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * read the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @return APIreadClusterRoleBindingRequest @@ -7585,7 +7584,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * read the specified Role * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7777,7 +7776,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * read the specified RoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8021,7 +8020,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * replace the specified ClusterRole * @param name name of the ClusterRole (required) * @param body (required) @@ -8266,7 +8265,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * replace the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param body (required) @@ -8520,7 +8519,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * replace the specified Role * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8775,7 +8774,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * replace the specified RoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) 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 86d5331a00..4147e9439c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java index 6f33ee342f..2fba2a11db 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -306,7 +305,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * create a DeviceClass * @param body (required) * @return APIcreateDeviceClassRequest @@ -555,7 +554,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * create a ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -805,7 +804,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * create a ResourceClaimTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1046,7 +1045,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * create a ResourceSlice * @param body (required) * @return APIcreateResourceSliceRequest @@ -1442,7 +1441,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of DeviceClass * @return APIdeleteCollectionDeviceClassRequest * @http.response.details @@ -1844,7 +1843,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedResourceClaimRequest @@ -2247,7 +2246,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceClaimTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest @@ -2641,7 +2640,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceSlice * @return APIdeleteCollectionResourceSliceRequest * @http.response.details @@ -2919,7 +2918,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * delete a DeviceClass * @param name name of the DeviceClass (required) * @return APIdeleteDeviceClassRequest @@ -3208,7 +3207,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * delete a ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3498,7 +3497,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * delete a ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3779,7 +3778,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * delete a ResourceSlice * @param name name of the ResourceSlice (required) * @return APIdeleteResourceSliceRequest @@ -3937,7 +3936,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -4272,7 +4271,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * list or watch objects of kind DeviceClass * @return APIlistDeviceClassRequest * @http.response.details @@ -4616,7 +4615,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedResourceClaimRequest @@ -4961,7 +4960,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * list or watch objects of kind ResourceClaimTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedResourceClaimTemplateRequest @@ -5297,7 +5296,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind ResourceClaim * @return APIlistResourceClaimForAllNamespacesRequest * @http.response.details @@ -5632,7 +5631,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * list or watch objects of kind ResourceClaimTemplate * @return APIlistResourceClaimTemplateForAllNamespacesRequest * @http.response.details @@ -5967,7 +5966,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind ResourceSlice * @return APIlistResourceSliceRequest * @http.response.details @@ -6225,7 +6224,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * partially update the specified DeviceClass * @param name name of the DeviceClass (required) * @param body (required) @@ -6495,7 +6494,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * partially update the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -6766,7 +6765,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * partially update status of the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7037,7 +7036,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * partially update the specified ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7299,7 +7298,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * partially update the specified ResourceSlice * @param name name of the ResourceSlice (required) * @param body (required) @@ -7483,7 +7482,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * read the specified DeviceClass * @param name name of the DeviceClass (required) * @return APIreadDeviceClassRequest @@ -7674,7 +7673,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * read the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7866,7 +7865,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * read status of the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8058,7 +8057,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * read the specified ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8241,7 +8240,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * read the specified ResourceSlice * @param name name of the ResourceSlice (required) * @return APIreadResourceSliceRequest @@ -8484,7 +8483,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * replace the specified DeviceClass * @param name name of the DeviceClass (required) * @param body (required) @@ -8738,7 +8737,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * replace the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8993,7 +8992,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * replace status of the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9248,7 +9247,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * replace the specified ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9494,7 +9493,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * replace the specified ResourceSlice * @param name name of the ResourceSlice (required) * @param body (required) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java index 937c52a024..ab0066c324 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -300,7 +299,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * create a DeviceTaintRule * @param body (required) * @return APIcreateDeviceTaintRuleRequest @@ -696,7 +695,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of DeviceTaintRule * @return APIdeleteCollectionDeviceTaintRuleRequest * @http.response.details @@ -974,7 +973,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * delete a DeviceTaintRule * @param name name of the DeviceTaintRule (required) * @return APIdeleteDeviceTaintRuleRequest @@ -1132,7 +1131,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1467,7 +1466,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * list or watch objects of kind DeviceTaintRule * @return APIlistDeviceTaintRuleRequest * @http.response.details @@ -1725,7 +1724,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * partially update the specified DeviceTaintRule * @param name name of the DeviceTaintRule (required) * @param body (required) @@ -1909,7 +1908,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * read the specified DeviceTaintRule * @param name name of the DeviceTaintRule (required) * @return APIreadDeviceTaintRuleRequest @@ -2152,7 +2151,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * replace the specified DeviceTaintRule * @param name name of the DeviceTaintRule (required) * @param body (required) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java index 3407ef26e1..b1d03602cb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -306,7 +305,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * create a DeviceClass * @param body (required) * @return APIcreateDeviceClassRequest @@ -555,7 +554,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * create a ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -805,7 +804,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * create a ResourceClaimTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1046,7 +1045,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * create a ResourceSlice * @param body (required) * @return APIcreateResourceSliceRequest @@ -1442,7 +1441,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of DeviceClass * @return APIdeleteCollectionDeviceClassRequest * @http.response.details @@ -1844,7 +1843,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedResourceClaimRequest @@ -2247,7 +2246,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceClaimTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest @@ -2641,7 +2640,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceSlice * @return APIdeleteCollectionResourceSliceRequest * @http.response.details @@ -2919,7 +2918,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * delete a DeviceClass * @param name name of the DeviceClass (required) * @return APIdeleteDeviceClassRequest @@ -3208,7 +3207,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * delete a ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3498,7 +3497,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * delete a ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3779,7 +3778,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * delete a ResourceSlice * @param name name of the ResourceSlice (required) * @return APIdeleteResourceSliceRequest @@ -3937,7 +3936,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -4272,7 +4271,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * list or watch objects of kind DeviceClass * @return APIlistDeviceClassRequest * @http.response.details @@ -4616,7 +4615,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedResourceClaimRequest @@ -4961,7 +4960,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind ResourceClaim * @return APIlistResourceClaimForAllNamespacesRequest * @http.response.details @@ -5632,7 +5631,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind ResourceSlice * @return APIlistResourceSliceRequest * @http.response.details @@ -6225,7 +6224,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * partially update the specified DeviceClass * @param name name of the DeviceClass (required) * @param body (required) @@ -6495,7 +6494,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * partially update the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -6766,7 +6765,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * partially update status of the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7037,7 +7036,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update the specified ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7299,7 +7298,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * partially update the specified ResourceSlice * @param name name of the ResourceSlice (required) * @param body (required) @@ -7483,7 +7482,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * read the specified DeviceClass * @param name name of the DeviceClass (required) * @return APIreadDeviceClassRequest @@ -7674,7 +7673,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * read the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7866,7 +7865,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * read status of the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8058,7 +8057,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read the specified ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8241,7 +8240,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * read the specified ResourceSlice * @param name name of the ResourceSlice (required) * @return APIreadResourceSliceRequest @@ -8484,7 +8483,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * replace the specified DeviceClass * @param name name of the DeviceClass (required) * @param body (required) @@ -8738,7 +8737,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * replace the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8993,7 +8992,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * replace status of the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9248,7 +9247,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace the specified ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9494,7 +9493,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * replace the specified ResourceSlice * @param name name of the ResourceSlice (required) * @param body (required) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java index 54a3fe458e..eb8440204b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -306,7 +305,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * create a DeviceClass * @param body (required) * @return APIcreateDeviceClassRequest @@ -555,7 +554,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * create a ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -805,7 +804,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * create a ResourceClaimTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1046,7 +1045,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * create a ResourceSlice * @param body (required) * @return APIcreateResourceSliceRequest @@ -1442,7 +1441,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of DeviceClass * @return APIdeleteCollectionDeviceClassRequest * @http.response.details @@ -1844,7 +1843,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedResourceClaimRequest @@ -2247,7 +2246,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceClaimTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest @@ -2641,7 +2640,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of ResourceSlice * @return APIdeleteCollectionResourceSliceRequest * @http.response.details @@ -2919,7 +2918,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * delete a DeviceClass * @param name name of the DeviceClass (required) * @return APIdeleteDeviceClassRequest @@ -3208,7 +3207,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * delete a ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3498,7 +3497,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * delete a ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -3779,7 +3778,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * delete a ResourceSlice * @param name name of the ResourceSlice (required) * @return APIdeleteResourceSliceRequest @@ -3937,7 +3936,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -4272,7 +4271,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * list or watch objects of kind DeviceClass * @return APIlistDeviceClassRequest * @http.response.details @@ -4616,7 +4615,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedResourceClaimRequest @@ -4961,7 +4960,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind ResourceClaim * @return APIlistResourceClaimForAllNamespacesRequest * @http.response.details @@ -5632,7 +5631,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind ResourceSlice * @return APIlistResourceSliceRequest * @http.response.details @@ -6225,7 +6224,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * partially update the specified DeviceClass * @param name name of the DeviceClass (required) * @param body (required) @@ -6495,7 +6494,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * partially update the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -6766,7 +6765,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * partially update status of the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7037,7 +7036,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update the specified ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7299,7 +7298,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * partially update the specified ResourceSlice * @param name name of the ResourceSlice (required) * @param body (required) @@ -7483,7 +7482,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * read the specified DeviceClass * @param name name of the DeviceClass (required) * @return APIreadDeviceClassRequest @@ -7674,7 +7673,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * read the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -7866,7 +7865,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * read status of the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8058,7 +8057,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read the specified ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8241,7 +8240,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * read the specified ResourceSlice * @param name name of the ResourceSlice (required) * @return APIreadResourceSliceRequest @@ -8484,7 +8483,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * replace the specified DeviceClass * @param name name of the DeviceClass (required) * @param body (required) @@ -8738,7 +8737,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * replace the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -8993,7 +8992,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * replace status of the specified ResourceClaim * @param name name of the ResourceClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9248,7 +9247,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace the specified ResourceClaimTemplate * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9494,7 +9493,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * replace the specified ResourceSlice * @param name name of the ResourceSlice (required) * @param body (required) 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 c7533e27ff..b4447b7907 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 698209b8f2..8c86558182 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -300,7 +299,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * create a PriorityClass * @param body (required) * @return APIcreatePriorityClassRequest @@ -696,7 +695,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of PriorityClass * @return APIdeleteCollectionPriorityClassRequest * @http.response.details @@ -974,7 +973,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a PriorityClass * @param name name of the PriorityClass (required) * @return APIdeletePriorityClassRequest @@ -1132,7 +1131,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1467,7 +1466,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac } /** - * + * * list or watch objects of kind PriorityClass * @return APIlistPriorityClassRequest * @http.response.details @@ -1725,7 +1724,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * partially update the specified PriorityClass * @param name name of the PriorityClass (required) * @param body (required) @@ -1909,7 +1908,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * read the specified PriorityClass * @param name name of the PriorityClass (required) * @return APIreadPriorityClassRequest @@ -2152,7 +2151,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * replace the specified PriorityClass * @param name name of the PriorityClass (required) * @param body (required) 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 cd4afe6952..5dfb2a2197 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details 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 64c10c35f3..834d22f0be 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -310,7 +309,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * create a CSIDriver * @param body (required) * @return APIcreateCSIDriverRequest @@ -550,7 +549,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * create a CSINode * @param body (required) * @return APIcreateCSINodeRequest @@ -799,7 +798,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * create a CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects (required) * @param body (required) @@ -1040,7 +1039,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * create a StorageClass * @param body (required) * @return APIcreateStorageClassRequest @@ -1280,7 +1279,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * create a VolumeAttachment * @param body (required) * @return APIcreateVolumeAttachmentRequest @@ -1520,7 +1519,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * create a VolumeAttributesClass * @param body (required) * @return APIcreateVolumeAttributesClassRequest @@ -1801,7 +1800,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * delete a CSIDriver * @param name name of the CSIDriver (required) * @return APIdeleteCSIDriverRequest @@ -2081,7 +2080,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * delete a CSINode * @param name name of the CSINode (required) * @return APIdeleteCSINodeRequest @@ -2476,7 +2475,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of CSIDriver * @return APIdeleteCollectionCSIDriverRequest * @http.response.details @@ -2869,7 +2868,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of CSINode * @return APIdeleteCollectionCSINodeRequest * @http.response.details @@ -3271,7 +3270,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest @@ -3665,7 +3664,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of StorageClass * @return APIdeleteCollectionStorageClassRequest * @http.response.details @@ -4058,7 +4057,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of VolumeAttachment * @return APIdeleteCollectionVolumeAttachmentRequest * @http.response.details @@ -4451,7 +4450,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of VolumeAttributesClass * @return APIdeleteCollectionVolumeAttributesClassRequest * @http.response.details @@ -4738,7 +4737,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a CSIStorageCapacity * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -5019,7 +5018,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * delete a StorageClass * @param name name of the StorageClass (required) * @return APIdeleteStorageClassRequest @@ -5299,7 +5298,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * delete a VolumeAttachment * @param name name of the VolumeAttachment (required) * @return APIdeleteVolumeAttachmentRequest @@ -5579,7 +5578,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * delete a VolumeAttributesClass * @param name name of the VolumeAttributesClass (required) * @return APIdeleteVolumeAttributesClassRequest @@ -5737,7 +5736,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -6072,7 +6071,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t } /** - * + * * list or watch objects of kind CSIDriver * @return APIlistCSIDriverRequest * @http.response.details @@ -6407,7 +6406,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr } /** - * + * * list or watch objects of kind CSINode * @return APIlistCSINodeRequest * @http.response.details @@ -6742,7 +6741,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind CSIStorageCapacity * @return APIlistCSIStorageCapacityForAllNamespacesRequest * @http.response.details @@ -7086,7 +7085,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca } /** - * + * * list or watch objects of kind CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedCSIStorageCapacityRequest @@ -7422,7 +7421,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * list or watch objects of kind StorageClass * @return APIlistStorageClassRequest * @http.response.details @@ -7757,7 +7756,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call } /** - * + * * list or watch objects of kind VolumeAttachment * @return APIlistVolumeAttachmentRequest * @http.response.details @@ -8092,7 +8091,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * list or watch objects of kind VolumeAttributesClass * @return APIlistVolumeAttributesClassRequest * @http.response.details @@ -8350,7 +8349,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * partially update the specified CSIDriver * @param name name of the CSIDriver (required) * @param body (required) @@ -8611,7 +8610,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * partially update the specified CSINode * @param name name of the CSINode (required) * @param body (required) @@ -8881,7 +8880,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * partially update the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -9143,7 +9142,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * partially update the specified StorageClass * @param name name of the StorageClass (required) * @param body (required) @@ -9404,7 +9403,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * partially update the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) @@ -9665,7 +9664,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * partially update status of the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) @@ -9926,7 +9925,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * partially update the specified VolumeAttributesClass * @param name name of the VolumeAttributesClass (required) * @param body (required) @@ -10110,7 +10109,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * read the specified CSIDriver * @param name name of the CSIDriver (required) * @return APIreadCSIDriverRequest @@ -10292,7 +10291,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * read the specified CSINode * @param name name of the CSINode (required) * @return APIreadCSINodeRequest @@ -10483,7 +10482,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * read the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -10666,7 +10665,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * read the specified StorageClass * @param name name of the StorageClass (required) * @return APIreadStorageClassRequest @@ -10848,7 +10847,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * read the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @return APIreadVolumeAttachmentRequest @@ -11030,7 +11029,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * read status of the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @return APIreadVolumeAttachmentStatusRequest @@ -11212,7 +11211,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * read the specified VolumeAttributesClass * @param name name of the VolumeAttributesClass (required) * @return APIreadVolumeAttributesClassRequest @@ -11455,7 +11454,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * replace the specified CSIDriver * @param name name of the CSIDriver (required) * @param body (required) @@ -11700,7 +11699,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * replace the specified CSINode * @param name name of the CSINode (required) * @param body (required) @@ -11954,7 +11953,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba } /** - * + * * replace the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity (required) * @param namespace object name and auth scope, such as for teams and projects (required) @@ -12200,7 +12199,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th } /** - * + * * replace the specified StorageClass * @param name name of the StorageClass (required) * @param body (required) @@ -12445,7 +12444,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * replace the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) @@ -12690,7 +12689,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback } /** - * + * * replace status of the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param body (required) @@ -12935,7 +12934,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal } /** - * + * * replace the specified VolumeAttributesClass * @param name name of the VolumeAttributesClass (required) * @param body (required) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1alpha1Api.java index 6cd792d694..0fdc27ef4d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1alpha1Api.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -300,7 +299,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of VolumeAttributesClass * @return APIdeleteCollectionVolumeAttributesClassRequest * @http.response.details @@ -974,7 +973,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1467,7 +1466,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * create a VolumeAttributesClass * @param body (required) * @return APIcreateVolumeAttributesClassRequest @@ -696,7 +695,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of VolumeAttributesClass * @return APIdeleteCollectionVolumeAttributesClassRequest * @http.response.details @@ -974,7 +973,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * delete a VolumeAttributesClass * @param name name of the VolumeAttributesClass (required) * @return APIdeleteVolumeAttributesClassRequest @@ -1132,7 +1131,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1467,7 +1466,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * partially update the specified VolumeAttributesClass * @param name name of the VolumeAttributesClass (required) * @param body (required) @@ -1909,7 +1908,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * read the specified VolumeAttributesClass * @param name name of the VolumeAttributesClass (required) * @return APIreadVolumeAttributesClassRequest @@ -2152,7 +2151,7 @@ public okhttp3.Call executeAsync(final ApiCallback } /** - * + * * replace the specified VolumeAttributesClass * @param name name of the VolumeAttributesClass (required) * @param body (required) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationApi.java index e040b13066..0d1bce2f93 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationApi.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -213,7 +212,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws } /** - * + * * get information of a group * @return APIgetAPIGroupRequest * @http.response.details diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1alpha1Api.java index c0d346c891..f0fdf9bceb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1alpha1Api.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -300,7 +299,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete collection of StorageVersionMigration * @return APIdeleteCollectionStorageVersionMigrationRequest * @http.response.details @@ -974,7 +973,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A } /** - * + * * delete a StorageVersionMigration * @param name name of the StorageVersionMigration (required) * @return APIdeleteStorageVersionMigrationRequest @@ -1132,7 +1131,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) } /** - * + * * get available resources * @return APIgetAPIResourcesRequest * @http.response.details @@ -1467,7 +1466,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw } /** - * + * * get the version information for this server * @return APIgetCodeRequest * @http.response.details 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 46efd5d1da..035dc0b4c6 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.apis; import io.kubernetes.client.openapi.ApiCallback; @@ -210,7 +209,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Api } /** - * + * * get service account issuer OpenID configuration, also known as the 'OIDC discovery doc' * @return APIgetServiceAccountIssuerOpenIDConfigurationRequest * @http.response.details 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 6662a52f36..823042f239 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.auth; import io.kubernetes.client.openapi.ApiException; 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 ba17d60e0c..b1757e79f2 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.auth; import io.kubernetes.client.openapi.Pair; 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 482ae8901a..84d6891f1c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.auth; import io.kubernetes.client.openapi.Pair; 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 334417a430..acd438a826 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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.auth; import io.kubernetes.client.openapi.ApiException; 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 index a62c0ddabf..18a92ef51f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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; 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 1897a15db7..10ab1b410f 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ 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 86cf6a6c82..56c668017c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -267,4 +266,3 @@ 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 6e5d19d685..84241c6ccd 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ 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 92df18b2e3..332bd1a686 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -267,4 +266,3 @@ 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 4ccc14f9ba..987b835fc6 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -265,4 +264,3 @@ 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 cbb7b1e236..928c9370e5 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -339,4 +338,3 @@ 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 65f77dfa84..9bce0b1d53 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ 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 fe97c0fca6..feeccfd1c4 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -689,4 +688,3 @@ 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 4ec9e7b6e3..f40031b6d0 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 d39f3b778a..a643c59647 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -233,4 +232,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java index 6ddb966d8b..c011d5715a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 fbcc964828..a7e6c5a70e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -295,4 +294,3 @@ 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 4b4a9738f8..2296c19707 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -693,4 +692,3 @@ 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 b2729fa32a..1a883635b2 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 9461e4b2ca..4dbcedcc48 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -240,4 +239,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java index bf8f2b3d9b..f2c4295bfc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -311,4 +310,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java index 1b9eb41f0d..56eec8ed37 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -305,4 +304,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java index 57a471d5d6..183ef8075f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -339,4 +338,3 @@ 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 9439cda7c1..9b6ef41722 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -242,4 +241,3 @@ 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 e058f55caf..0d5251abe9 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -404,4 +403,3 @@ 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 201dac21c4..2ac610e14b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -293,4 +292,3 @@ 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 bc003788d9..e51f336d06 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -513,4 +512,3 @@ 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 abec9d9a2f..b8731d44d2 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -323,4 +322,3 @@ 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 b40b3fece0..c7cc3f196a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 3fc8a75086..1fc94c7c95 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -333,4 +332,3 @@ 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 8e94f9fc52..c0199287d1 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 e45681186e..2e26dead01 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -385,4 +384,3 @@ 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 079063a84b..ef4b5d6b2e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -230,4 +229,3 @@ 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 9e8be47729..e9ea82767d 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 00bcfc1c0c..af7ba52e6a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -299,4 +298,3 @@ 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 24f1b433ef..f138585ada 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -274,4 +273,3 @@ 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 1433e727c4..f2e3da31f7 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -230,4 +229,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java index b01881c78f..bff6dbdc8f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -416,4 +415,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java index 25d6072843..2e73cf7b3f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -270,4 +269,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java index 2dca090c7f..1672a2b679 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 82ee068ebf..d7b0cb6dc6 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java index fd923b37b5..3f0c0fade1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 c9d1aea036..63326e05a3 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -362,4 +361,3 @@ 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 7d969e95c5..2bb0b785aa 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ 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 c6067cef7d..106aed34b1 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -272,4 +271,3 @@ 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 04cf861283..ae15f7a016 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -307,4 +306,3 @@ 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 4b93b373ad..54b92a4aaa 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -298,4 +297,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java index 829722961f..69cb25a1ee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -215,4 +214,3 @@ 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 8fecf9a356..bfab4333a3 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -307,4 +306,3 @@ 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 e102b585ab..b73d726543 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 9ad60c57a8..9d272dd7d3 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -461,4 +460,3 @@ 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 63d6280e42..e928e48f97 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -307,4 +306,3 @@ 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 c58232472e..de87786746 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -318,4 +317,3 @@ 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 5709d7127c..ecfbdab64e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 fa18f4466e..7f43871225 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -233,4 +232,3 @@ 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 2f563aa901..383d5fdaa0 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -495,4 +494,3 @@ 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 cff9284b8d..85e5723707 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -400,4 +399,3 @@ 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 28fddc03e9..ff92859692 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 f6f3c03f8c..4853d118c9 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -341,4 +340,3 @@ 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 c6bc1aef17..367928541f 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -258,4 +257,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java index 45994c9c5f..4da2c0ec87 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -282,4 +281,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java index 4f346392f3..8d4e210536 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -276,4 +275,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java index 73e506af6e..32746ba82c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -216,4 +215,3 @@ 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 277d26f3de..e34401e3e3 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -377,4 +376,3 @@ 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 2aeea85de5..de4925bf33 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -377,4 +376,3 @@ 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 c65a8aa9dc..610ed56b6d 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -339,4 +338,3 @@ 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 b138c9cdf2..3337aa080d 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -360,4 +359,3 @@ 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 af453eb582..4d390ec826 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 9c49e261da..b47ad89b6b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -446,4 +445,3 @@ 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 36f11504ef..f726dbc762 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -257,4 +256,3 @@ 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 7ac4549468..9e22441318 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -304,4 +303,3 @@ 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 c8d161c606..a67d7bf69d 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -304,4 +303,3 @@ 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 c377096d8a..412156efc8 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -205,4 +204,3 @@ 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 2979330fbf..5666534c8a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -354,4 +353,3 @@ 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 99645cb45d..b43cb18bb9 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -359,4 +358,3 @@ 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 6cbf066df6..fb712b6099 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 fb4647ec0c..aead051f1e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java index 80151376fe..ab65f4d520 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 1a00741f42..9adc158d71 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -305,4 +304,3 @@ 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 120709f5ac..ea57d986e7 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -322,4 +321,3 @@ 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 03c57a7c65..0e32ee1051 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 827e7f9a88..2b5ccf131c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -360,4 +359,3 @@ 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 571e8a7659..1c8d9da8c5 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -369,4 +368,3 @@ 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 5b14df1000..cbeb705603 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -235,4 +234,3 @@ 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 e60df304f2..876aca407c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -272,4 +271,3 @@ 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 de2882daf2..2d2f30e521 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 8ae6a2face..577ece9c71 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -335,4 +334,3 @@ 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 932e961943..7dad6f1025 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -287,4 +286,3 @@ 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 7392111b59..56e8199884 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -314,4 +313,3 @@ 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 33c46ee210..d89ba89889 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -1096,4 +1095,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java index da23c287dd..3b6ffb817b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -275,4 +274,3 @@ 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 50c9f5304c..044d999aa2 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -246,4 +245,3 @@ 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 790eedd64d..dda2580965 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -329,4 +328,3 @@ 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 f08265e295..afa9553acc 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java index ca188892f8..a017540592 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -247,4 +246,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java index b0bd49bb0d..136b0441e4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -256,4 +255,3 @@ 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 8d24292553..2399c1bd9e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -274,4 +273,3 @@ 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 c10f938e55..54079d7ace 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -206,4 +205,3 @@ 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 925682039a..40c7481f29 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -384,4 +383,3 @@ 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 647534f2e8..4fad2ff7e4 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -238,4 +237,3 @@ 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 c831f8ea78..975ba50bea 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -683,4 +682,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java index 46122fe1b4..37bbfb9a90 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ 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 267ecb0244..0b1a0a8247 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -331,4 +330,3 @@ 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 61e9d94f20..b2971242d7 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java index 4ccfcf402e..cb5d5200a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -216,4 +215,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java index 2828f55ae1..fc894d7229 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -253,4 +252,3 @@ 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 5c6d252fa3..6b9003fbd5 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 6e33b5a2b9..54261d9f73 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 93e3b8d59d..e97c793bf1 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -413,4 +412,3 @@ 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 8c8b44cfda..50df89a116 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -285,4 +284,3 @@ 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 f10c654f23..0de5ad4260 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -275,4 +274,3 @@ 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 221a68a319..5504444672 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -362,4 +361,3 @@ 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 177dae465f..cdccec962e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -247,4 +246,3 @@ 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 55e05ad7ac..e75082b382 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -339,4 +338,3 @@ 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 1bda60f43b..67f95ffcd4 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -333,4 +332,3 @@ 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 ccc93fb161..081fd44e21 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 9099343b41..94e36069c1 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -385,4 +384,3 @@ 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 7cae91ced5..591c6a4297 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -382,4 +381,3 @@ 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 6e3d8ebf65..05e05bcfa4 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -301,4 +300,3 @@ 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 7c8c1c3c72..c29b9d72b2 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -492,4 +491,3 @@ 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 1e06e77ad5..025141b2fc 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -275,4 +274,3 @@ 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 3358897ff0..1105888f6b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -237,4 +236,3 @@ 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 f560905743..c7388bf953 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ 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 f88264c511..315cbe3a1a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -212,4 +211,3 @@ 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 f4ce1a425e..d5047aabd2 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 b856db2f13..1722fa191a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -333,4 +332,3 @@ 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 fbff0c4c5d..c08f8328c7 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 0deae6aa21..cbf55dde8c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -331,4 +330,3 @@ 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 f924fb29f2..60f1e3ac9a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -480,4 +479,3 @@ 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 b35c0a92e5..74e8f1f2b1 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -240,4 +239,3 @@ 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 692267a02d..ea961269b5 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -422,4 +421,3 @@ 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 16d2ee1a87..ebef17d155 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 8a1bd6ac4b..0473334777 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -360,4 +359,3 @@ 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 e4ff0d8097..54738b3bd4 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 ebfbed5a9b..75277a92f1 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -412,4 +411,3 @@ 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 a446cdc02a..a2dd81e83b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -446,4 +445,3 @@ 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 9d129e3495..ca8cb69987 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -240,4 +239,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Device.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Device.java index 912f7183a3..b81abda7d6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Device.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Device.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -612,4 +611,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java index b63de593f1..41937843dd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -288,4 +287,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java index edc51b9330..5005797946 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -280,4 +279,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java index 614785bd5f..faea0f8e0d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -292,4 +291,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java index badbb88576..6d5cf38a5f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -248,4 +247,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java index c6cc2f3065..5044125e8b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -330,4 +329,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java index c1c3c850d8..4afb34c71d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -251,4 +250,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java index 3e261a76fe..8f19385f31 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -307,4 +306,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java index ec48031d20..8d4f670962 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java index 162df58199..0c2c6c329f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java index 3c9dc53036..298012c25b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -310,4 +309,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java index 07f599ebb9..6e2c86ccf1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -279,4 +278,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java index 6f71ca110a..af10b6a342 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -253,4 +252,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java index cc72e3147e..6117efea36 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -299,4 +298,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java index 91cc0f936a..613ef9b18c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -530,4 +529,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java index 76c3548bd7..0a00c79f8b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java index 388eb86399..723cb37778 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -436,4 +435,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java index 9e31f11fed..5de0d33621 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -303,4 +302,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java index 4c46e0e903..df113726da 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 16929bfab1..7164274f48 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -230,4 +229,3 @@ 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 302f3708c8..561289382b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -306,4 +305,3 @@ 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 650a4d2306..071b52704a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -257,4 +256,3 @@ 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 7ca4c8a1ce..055f0b5bf2 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -239,4 +238,3 @@ 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 042b9098bb..38cfbcc33b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -451,4 +450,3 @@ 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 d08f362f00..373596a0d3 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -307,4 +306,3 @@ 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 dde26c0adb..48c444e3b2 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -259,4 +258,3 @@ 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 96c0c6a12d..683036a32a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -280,4 +279,3 @@ 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 99857cec67..a96b948487 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -405,4 +404,3 @@ 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 11f2c73c4c..b12ac0e2f4 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 868f404898..e9056b6c2a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -329,4 +328,3 @@ 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 cb302f0f31..269caf4c35 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -322,4 +321,3 @@ 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 8b4288bdd1..511b1efa9b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 00b7e866e0..bd148c7560 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -272,4 +271,3 @@ 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 9f4c4ae59e..0139eaa752 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -277,4 +276,3 @@ 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 4e772d2110..e16142d2a8 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -338,4 +337,3 @@ 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 fe9ee7529d..ea89f75970 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -1126,4 +1125,3 @@ 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 1bb9c719fd..e0077ea3e9 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ 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 626eeb5417..c9db6778c7 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -238,4 +237,3 @@ 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 b74980f5ec..ba7b00225d 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java index 54c28a28ea..804eabe7ec 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -433,4 +432,3 @@ 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 30e727aacb..1d1b44dd00 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -219,4 +218,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java index 4bac804fbc..be758acb63 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -232,4 +231,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java index cad77f6685..2b443e42b7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 a89f19eaa9..246cc495dc 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -238,4 +237,3 @@ 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 c18dfafdcd..c1932e5902 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -342,4 +341,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java index 2ed5b6906d..1d9e4b70f2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -260,4 +259,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java index bf82aa3bd0..a054af5688 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -286,4 +285,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java index 7c98c2eaf5..7e4d29bf69 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ 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 cb400ab8be..4a4aefdc4d 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -341,4 +340,3 @@ 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 3d07b0e662..b9ceade59e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -341,4 +340,3 @@ 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 ba9499976d..5bfef47d9c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -238,4 +237,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java index 43bfe48891..aece2bfb67 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -215,4 +214,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java index 6803c8387e..e77c2b8d4b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java index daa49dffa2..7ea19120da 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -326,4 +325,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java index e1266ab240..8690aea715 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java index 5f02a11580..ec7d4c6f4f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -326,4 +325,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java index 428317cfaf..3556b17eb7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -230,4 +229,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java index 17d4abe04b..59c3aa96d8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -215,4 +214,3 @@ 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 80cb8fda6b..c9e733169a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -215,4 +214,3 @@ 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 51c30c3e4b..1054d35e5e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -299,4 +298,3 @@ 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 4c937f17d7..368383976f 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -242,4 +241,3 @@ 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 1f0613cc39..8ff33658c0 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -275,4 +274,3 @@ 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 482bcd04c6..9bd7cdeb1a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ 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 626cff7d8e..dac9eb1921 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -272,4 +271,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java index 7687cabdb3..bfe56fcab6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -215,4 +214,3 @@ 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 cf19eb023a..c4b8dda220 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 30e5543596..7e8c3ca1c7 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -358,4 +357,3 @@ 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 2dd5ca65ef..0e56f0b760 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 4ec3f8229f..6d0beffd5d 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -275,4 +274,3 @@ 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 5d26eca04a..e74f12006c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -233,4 +232,3 @@ 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 261a24b40d..edb65e7d1d 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 fdb8275b08..14138bb88c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 c75a3ce050..899d659e64 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -296,4 +295,3 @@ 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 8edea333db..b9feda9ac0 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -321,4 +320,3 @@ 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 0e2437d8f3..397a7570a1 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -256,4 +255,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java index 6d3adf4b1a..58dee1e2e8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -215,4 +214,3 @@ 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 7ffe66b4f1..a9be8d9849 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java index 8aa63d48dc..674f96fbd9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java index 0533db7092..7d92efa9b1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java index 95be599c78..0025700ba6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -215,4 +214,3 @@ 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 3f9e61f135..0de819f997 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -256,4 +255,3 @@ 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 74ef515794..2609b7f9dd 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -516,4 +515,3 @@ 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 a529000ff5..daa9f86232 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -516,4 +515,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java index 5ee7da8f01..2c2a24feb3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -238,4 +237,3 @@ 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 3cb3b2c8d5..5799a46b98 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 77498b43e2..080c6e42b2 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -242,4 +241,3 @@ 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 7e0fd9aa55..9b077908a6 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ 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 05c3f4cbf2..da1b569978 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 7d182d8ff7..82396456ef 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -335,4 +334,3 @@ 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 afa547fd68..c7d73e726a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -240,4 +239,3 @@ 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 f7c6c7909f..5caac02ce5 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 e8b107c47c..f1976e358b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -290,4 +289,3 @@ 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 6bb65ba4a7..9d75dce64a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -230,4 +229,3 @@ 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 79a77c9abe..4fd01b7c73 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -272,4 +271,3 @@ 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 ad500d5636..c42c9f0922 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -240,4 +239,3 @@ 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 8d53421cf2..b5495dd7f8 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -247,4 +246,3 @@ 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 5be38f6d3f..40d328f5e3 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -342,4 +341,3 @@ 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 76819e484a..6bb1ff43aa 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ 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 bcdae03054..0a5a0a1515 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -249,4 +248,3 @@ 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 e82888e080..73914fec0c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -1566,4 +1565,3 @@ 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 fd9148e79e..aa2f7645dd 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 173bcc39e7..429187cc08 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -360,4 +359,3 @@ 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 da4cfaa91e..38c6ae3f40 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 d6ab3b46ca..cf622895ff 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -644,4 +643,3 @@ 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 17cf16cbc3..041cef25b6 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -512,4 +511,3 @@ 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 e97ce1299b..564690174b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -242,4 +241,3 @@ 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 669b4f5ff1..df0cafee94 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -272,4 +271,3 @@ 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 a89a56ab23..ea309d1e19 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -267,4 +266,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java index 27b6b5fa29..e103c9caf7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -260,4 +259,3 @@ 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 e792155dc6..f05dfcaddd 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -286,4 +285,3 @@ 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 bf20a8ed6a..34d3e7a629 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ 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 6226bf5d6a..02bea34af6 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 593916e5eb..8adc8ece28 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -377,4 +376,3 @@ 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 6012a7c9e2..e82eb5035f 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -271,4 +270,3 @@ 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 54ec745210..79e474e2b2 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -306,4 +305,3 @@ 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 997a5654e6..d6b3facedd 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ 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 8fe460dd28..6f2c481982 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -393,4 +392,3 @@ 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 8b613e7bfb..25db2b1e88 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 0e9edd5c06..8bdefed1fd 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -233,4 +232,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java index 143752bcd3..c545c4bd56 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -247,4 +246,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java index 1425bae19e..15be53c08c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -291,4 +290,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java index a517c48bb3..efa68b5bb6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -280,4 +279,3 @@ 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 18066e25cf..aab1ec17d2 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -296,4 +295,3 @@ 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 fe2ea12cf9..42b06947bc 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -320,4 +319,3 @@ 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 0872652c4c..ff5360b37f 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -230,4 +229,3 @@ 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 2a291b0d87..2248df5bf6 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -208,4 +207,3 @@ 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 6bff3b6490..898eb8bf68 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -339,4 +338,3 @@ 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 cdb1d5f0b9..fe13ad9bb6 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 7513322ccc..e846ad1d87 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -383,4 +382,3 @@ 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 6239cf51e3..e1a4a35c2c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java index 71e38b71a0..f496748465 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -372,4 +371,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java index 4110e80a1f..6dcefea79e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 3d57c1192e..f47b7dd33f 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -598,4 +597,3 @@ 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 5735e5623a..b6a1a215a8 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -322,4 +321,3 @@ 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 bbd0d585cc..524b9bb33a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 9c7f6a513a..e1d5548bc5 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -272,4 +271,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java index 86bd5b7e9d..5498d7218f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -405,4 +404,3 @@ 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 7c9a10e4da..480dcf649e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 e631392727..6bc3ef5836 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -333,4 +332,3 @@ 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 4aca3a2ec2..b65e8ec85f 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 7dce16204d..345f141997 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -219,4 +218,3 @@ 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 11c3145b8a..ba50546a30 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -260,4 +259,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java index 85f4935367..21125dd9c8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -279,4 +278,3 @@ 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 8e8c5129da..97ed888115 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ 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 58e77eb729..3d9f2de803 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -280,4 +279,3 @@ 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 2c2edfe405..1442a66f89 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -280,4 +279,3 @@ 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 b17b0de209..d51ffc7619 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 7063645c52..d4547e7bd9 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -273,4 +272,3 @@ 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 5ce035a95a..0688499d50 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -266,4 +265,3 @@ 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 3847eb0875..391633f0fe 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -351,4 +350,3 @@ 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 8ce6d9c2bd..3210de9058 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 6b92bf8b92..6d0be26c83 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 c396a73ec7..1e89d90e7a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -262,4 +261,3 @@ 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 ec06a31376..f1790ad3ec 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -360,4 +359,3 @@ 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 c4ea935faf..d07d3cbd39 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ 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 525a622ca1..89e3abe3a7 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ 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 1335bdd29e..49cf81bb64 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java index 84e5bba106..f137ed0423 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -205,4 +204,3 @@ 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 dedad738b6..0a6e53847a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java index 6f3797f904..d0d0c24a51 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -240,4 +239,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java index 0dc5593fbb..c648d3bea2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -232,4 +231,3 @@ 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 7d82d6e609..68ca8011de 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -233,4 +232,3 @@ 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 c2aa91f201..263c49d853 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -286,4 +285,3 @@ 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 733e3713d0..a299e85191 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -279,4 +278,3 @@ 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 20f4cf65e1..ae41a05d6c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -418,4 +417,3 @@ 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 e076f68941..602d4b2033 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -700,4 +699,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java index 71d5833828..f976ac50f9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -205,4 +204,3 @@ 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 d5591dccf7..b9a853ae4f 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -517,4 +516,3 @@ 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 4182bff8c3..13faa14dae 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -238,4 +237,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java index 708f3fc113..38a82d50b1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -269,4 +268,3 @@ 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 0981bf7489..e9a753b4dc 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -267,4 +266,3 @@ 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 49253a25ee..b34087a508 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 39a6d2355b..736b7c8b16 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -680,4 +679,3 @@ 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 85627ab879..40135e003a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -388,4 +387,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java index b89dd2a58e..c861dbae7a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -242,4 +241,3 @@ 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 5191bd61a4..744647b4b1 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -216,4 +215,3 @@ 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 14897b6b11..dbfc98fe0b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -359,4 +358,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java index 41a61f99b6..5fc374a861 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -238,4 +237,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java index 2eb790e842..bcec043b41 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -300,4 +299,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java index d9db165c74..fb505a64b0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -305,4 +304,3 @@ 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 3c7b9a7713..ce9808e83c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 7dcc174dd1..a46f42f125 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 70342b85c7..204f44a4c3 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -360,4 +359,3 @@ 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 8681298c2e..a076baeb95 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 86f1ad85d3..209bdf6340 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -467,4 +466,3 @@ 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 300e2e62ea..006a50cd55 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -469,4 +468,3 @@ 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 c02467cbb0..ca27501f17 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -247,4 +246,3 @@ 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 21d23026c6..1754b0bffd 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -242,4 +241,3 @@ 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 eb15f5dd9f..5803e36e66 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 0d669f6475..79f33a50fa 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -1184,4 +1183,3 @@ 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 1e4a250ea4..89311a1c72 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -296,4 +295,3 @@ 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 bc402899c7..52921376e8 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 30d8d2bf4d..80dbc185d1 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 f0b338e96c..244c812b21 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -280,4 +279,3 @@ 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 fda9be711b..093e46e343 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -397,4 +396,3 @@ 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 824224f237..d1b7749210 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -280,4 +279,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java index 122f7eec63..baecdad752 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -362,4 +361,3 @@ 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 d417d1f03f..05cf281095 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -387,4 +386,3 @@ 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 a638119d2f..2d48c63d0e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -308,4 +307,3 @@ 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 0ff4876d20..a31fb81d97 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -238,4 +237,3 @@ 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 ad8749e79e..e04bf2ca42 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 aedc39a06b..67a4484b59 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 e8645629da..4f849cd1af 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -301,4 +300,3 @@ 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 fb53d68d30..49ddcbb273 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -410,4 +409,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java index c8a0e0e10c..c3f08ef4d3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -263,4 +262,3 @@ 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 4eccdfff21..b76decc464 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -233,4 +232,3 @@ 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 8630e3f194..01449d5357 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -288,4 +287,3 @@ 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 0583260da5..401bcd8b69 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 125ffb69a8..c1ea362ce9 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -299,4 +298,3 @@ 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 c92dcb85a8..7df72b8ecc 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -215,4 +214,3 @@ 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 564a679ec1..90a2ad399f 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 3f2b23fed2..e02b31290c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -215,4 +214,3 @@ 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 507f371396..e95a42cbf8 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -215,4 +214,3 @@ 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 d25f895613..67943898d0 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -275,4 +274,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java index 04769e8fba..1220666bfd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 188c9977f8..48014f94e4 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -215,4 +214,3 @@ 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 fe2fbb280f..65bf9b9e1e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -595,4 +594,3 @@ 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 bcfe7e8558..7e2d3102e5 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -1622,4 +1621,3 @@ 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 59c7cccbfb..880b91bbe9 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -855,4 +854,3 @@ 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 d719531653..b2cdb88b31 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ 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 eaf1c428cc..cb9f360327 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 c1af3dd054..ecf42fa24e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -242,4 +241,3 @@ 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 d30a30ae35..3ec3e80fb4 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -384,4 +383,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java index 692234aa3d..49f434658d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -333,4 +332,3 @@ 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 1396452388..f8410658f8 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -272,4 +271,3 @@ 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 926adc497a..341be41e4a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -272,4 +271,3 @@ 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 dd11eb086a..f6218d7c14 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -238,4 +237,3 @@ 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 0f911175da..94fef95fc2 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -242,4 +241,3 @@ 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 a89cc8c49f..48e81fba04 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -391,4 +390,3 @@ 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 c598675860..13edfb715d 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java index fd5d11991d..1cf2dede15 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java index d00aaa8f14..615a6b3d72 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -326,4 +325,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java index 56a794fb24..2b3a3cbd61 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java index 17920fd08a..cbfd514c9b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -215,4 +214,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java index 874cc4a1f8..15ddd536cf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -279,4 +278,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java index c4bf7bf3e6..89c401e3bf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -230,4 +229,3 @@ 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 f236bcf52a..2b311c0cea 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -468,4 +467,3 @@ 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 60d81eab3c..be0172c636 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -257,4 +256,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java index a3617a183f..726ada700c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -259,4 +258,3 @@ 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 a0db66b831..ea0e1d1b65 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -362,4 +361,3 @@ 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 b66bd94b0f..f4178c7709 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -437,4 +436,3 @@ 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 25706b0aa5..628b8fbe9a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -437,4 +436,3 @@ 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 6c5ab6a655..7b764d0c90 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 fc5801544a..6c5e1ae99c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -333,4 +332,3 @@ 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 3270002c93..4acd0e6d64 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 2a17cfe6d3..22a02d68fe 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -301,4 +300,3 @@ 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 935b0ba8c6..21a8ffa0bb 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -399,4 +398,3 @@ 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 83eeec68a7..b209fff473 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 3836171e8c..266b830d29 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -333,4 +332,3 @@ 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 750ed21336..17c2ae81e9 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 70d4151c86..2c70f7e111 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -301,4 +300,3 @@ 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 e8c5145dbf..eada1638b5 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -372,4 +371,3 @@ 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 9f68614905..5f49e9f8c8 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -452,4 +451,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java index 4338c50d7b..271ce0dae0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -305,4 +304,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java index a3f124ab9f..1d425879f2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java index 9bff8447f7..e1850f02c3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java index 342c083119..c01c516751 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -312,4 +311,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java index fde200f02a..7a0aa22143 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -307,4 +306,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java index 6c17573025..e3cb584af6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java index d639aac675..8b9a72da0a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -247,4 +246,3 @@ 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 e71b2d90b9..d2d952e945 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -276,4 +275,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java index 62b72fd73c..abea3c80db 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java index d122372587..a6f2461baf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -376,4 +375,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java index e80a7656f9..99c913fce0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -269,4 +268,3 @@ 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 b590dfde39..bb73d1e42a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 180df930ae..5ed7abc1c9 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 8a721392dd..4377d2368b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -289,4 +288,3 @@ 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 4346a00854..d87d30240d 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -251,4 +250,3 @@ 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 dda040e13c..2365917ab9 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -303,4 +302,3 @@ 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 d1afcaf1fa..d80c64ec5a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -345,4 +344,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java index 7f2d54a8ef..834f55a249 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -307,4 +306,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java index 5c2bbfa169..532d8d22cf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java index b2df57d8c0..9a92fd49d2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -463,4 +462,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java index dd1d0e09a7..a2dce76e33 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -267,4 +266,3 @@ 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 900d421abe..51f61d0083 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -322,4 +321,3 @@ 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 b2b4d3c5cc..f3ac5f6900 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -359,4 +358,3 @@ 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 b1ff53ffb5..70ee0e68bc 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 c02f1f450e..6934bd4538 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 bc2a0d42c8..91c278a3a7 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -275,4 +274,3 @@ 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 a3398da440..ccb0aa2a5f 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -239,4 +238,3 @@ 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 57a1d49bdb..de7bf482a1 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -239,4 +238,3 @@ 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 d388c6aff7..86e67a5d47 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -236,4 +235,3 @@ 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 a2f28145d6..9fbf5e9e85 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -366,4 +365,3 @@ 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 74b9bc3d22..b29536f215 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -371,4 +370,3 @@ 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 8e2608e71c..863102dbe9 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 3ed9275fa2..d433d1a409 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -298,4 +297,3 @@ 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 8e820f7cb1..5df780862b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 fd41b026a6..53dbb11943 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -479,4 +478,3 @@ 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 2a97e69445..221b940cc4 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -479,4 +478,3 @@ 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 cb9812be39..4b5c8617d2 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -205,4 +204,3 @@ 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 810179ecc0..1d6aec4928 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -242,4 +241,3 @@ 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 5253e300f9..9bb434a772 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -267,4 +266,3 @@ 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 5f2fdb5e3f..6acf2bbe52 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -230,4 +229,3 @@ 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 17760054e4..3d183e12da 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -286,4 +285,3 @@ 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 19aae60c52..23af191893 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 8a61dd97ad..0c4d5784ce 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -400,4 +399,3 @@ 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 fae81ac362..704a1268d0 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -235,4 +234,3 @@ 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 6df9c65c2b..94c880524d 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -272,4 +271,3 @@ 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 c8165cb486..d77328a8c9 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 db25abcf3e..3f24b2f153 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -287,4 +286,3 @@ 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 a11f435e42..e6ecd2a7e4 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -238,4 +237,3 @@ 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 9c5306db1c..24ce798cd0 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -314,4 +313,3 @@ 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 ea96bafa48..24f78a5fc4 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -530,4 +529,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java index c6647cbfe8..97890e3a4d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -215,4 +214,3 @@ 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 632f1a684e..1b2d489683 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -339,4 +338,3 @@ 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 5abaa17b79..0da7c1f2ac 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -242,4 +241,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java index f3ced7f442..9f33434ea5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java index d5a076eb25..ab95b87958 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ 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 c6db2b5053..07393daabe 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -339,4 +338,3 @@ 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 fa34a63011..0402d56dfc 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -208,4 +207,3 @@ 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 a55d5f3f20..959a76dbc9 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 0fc4f267c7..3d4b421a5a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 e693acf29a..376fd3c05c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -399,4 +398,3 @@ 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 733f410954..b63d8ad39b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java index 8cfb4bc81c..00cfc54a6c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 a02e315fe4..94cbceeb1f 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -272,4 +271,3 @@ 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 e14614d3d8..fbdec6f675 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -235,4 +234,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java index 1480bdc0a3..0113a52f7e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java index db2cdca474..996d92bfec 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java index b9590a16bb..25e8d4750a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -219,4 +218,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java index fca50be2a8..bfe4ddf0d2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -230,4 +229,3 @@ 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 644b5bcfc1..1b3b3cfa42 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 0730755fc6..cc554a23dd 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -360,4 +359,3 @@ 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 4af3e69585..9771e84bc1 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -836,4 +835,3 @@ 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 d39bae5436..fbbe9e55d7 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -262,4 +261,3 @@ 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 39e26645eb..094e0b3ad7 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java index 71e58e699f..049206b584 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -212,4 +211,3 @@ 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 7af2eade6e..5096d391f5 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 061fdb545a..abdddbc9af 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -333,4 +332,3 @@ 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 5e4e06cfa9..6227502c0f 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 36a6bb29f1..d2b741db61 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -205,4 +204,3 @@ 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 8efff33af3..d5e4cb97fc 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -238,4 +237,3 @@ 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 4bd1f1e5ce..44064835db 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -534,4 +533,3 @@ 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 bad92b9f02..5c458bf902 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -486,4 +485,3 @@ 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 2555ea3e44..4e604b8da2 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -240,4 +239,3 @@ 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 fa0aeaecce..a4729b6194 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -420,4 +419,3 @@ 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 0d30abdadf..25eebd4255 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -268,4 +267,3 @@ 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 cd467d199d..c7e50cf10b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -377,4 +376,3 @@ 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 7688cd9d64..92baa56471 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -522,4 +521,3 @@ 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 c9966102a5..e918bbcdce 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 7176b97b3b..4088efea84 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -327,4 +326,3 @@ 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 91a090b17d..3f2701a00b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -327,4 +326,3 @@ 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 68c92cf0bd..ab9a72d0c2 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -339,4 +338,3 @@ 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 52a95306dd..16f714ea88 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -380,4 +379,3 @@ 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 3a88d8eb2b..c70438e365 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -299,4 +298,3 @@ 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 7e70d510db..5ab85636b6 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -336,4 +335,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java index 410d81278d..587b2cd574 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -233,4 +232,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java index fa5abfd0c1..75b715275f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -235,4 +234,3 @@ 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 198df282f4..f6da143075 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 39ee6ec84b..3f6774f020 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -246,4 +245,3 @@ 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 489a29feb0..4604e56e28 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -303,4 +302,3 @@ 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 905cf91776..c090e61a3d 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -287,4 +286,3 @@ 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 4c8e682581..1cc14cb142 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -243,4 +242,3 @@ 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 012d05e1f8..9990e605c0 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -339,4 +338,3 @@ 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 a3ea976b05..10f73df7fd 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -249,4 +248,3 @@ 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 cfb1e4defe..1d42c434fd 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -308,4 +307,3 @@ 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 01faaaac14..2c9098ab5f 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 15e956713b..ef3d52ccfa 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -258,4 +257,3 @@ 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 737d3fcc98..c6f5962267 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -230,4 +229,3 @@ 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 00a45a7fc9..4c554262f3 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -432,4 +431,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java index 50a66ce1a2..a845bef7e2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -230,4 +229,3 @@ 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 425d24c23d..770eeacc9e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -275,4 +274,3 @@ 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 3bac979ddc..f49e963123 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -305,4 +304,3 @@ 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 2ce3bcb83d..e7ec08ed01 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -258,4 +257,3 @@ 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 cc0805e1b6..161516b8b4 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -316,4 +315,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java index a50a022a92..75d6c74f04 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -215,4 +214,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java index 317d630f61..66845247a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java index 2dde9873fb..61f2546c68 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java index 5f5f5909e1..543f9b439d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java index 786dbac5a7..cd96b6eb88 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -313,4 +312,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java index 1bdc534764..4eb49fc10e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java index 353f88ab16..8e3925e5d9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -474,4 +473,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java index 64136ac807..12d6e6117c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -289,4 +288,3 @@ 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 4e540720c8..9723fe2f16 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -568,4 +567,3 @@ 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 a7bffbf618..5fc50a671b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -322,4 +321,3 @@ 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 88db9eb642..d1938b2631 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java index 0f435e175d..7c2d38df23 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -305,4 +304,3 @@ 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 1498e02094..b56a9f3c2d 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -362,4 +361,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java index 8ef1dcf238..2e55fd298e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 7b4f444545..281836963e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -1175,4 +1174,3 @@ 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 1be76d8ea7..5af6c6c2f9 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -339,4 +338,3 @@ 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 c6693c3314..e920be9f9b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 7e9f7ccda1..acdfa48158 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -240,4 +239,3 @@ 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 b6d7a5f4e2..2e54c48b6a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -275,4 +274,3 @@ 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 6617433628..5909d1b591 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -312,4 +311,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java index 8f47ec2273..dd8d293a3c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -344,4 +343,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java index 1ef8945fe3..74606503b5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 0393ba3dca..7631a240b6 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 516d1c17de..56162d9e56 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -263,4 +262,3 @@ 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 96a7f463ea..c58fbaa472 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -392,4 +391,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java index 9aef426a97..5f04fa97f5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ 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 cc33f57655..44f6d3899e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ 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 0ee654d4e4..3736058913 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -205,4 +204,3 @@ 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 2a28b100cb..3547e45d71 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -370,4 +369,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java index e195d02afa..b025c4cc49 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -251,4 +250,3 @@ 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 b84e59702b..a7fccfead8 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -305,4 +304,3 @@ 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 7d63ff3d8e..8bc95e1304 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -242,4 +241,3 @@ 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 041f197a06..b569c4a0d3 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -260,4 +259,3 @@ 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 8502d6e0db..5a2652444f 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -242,4 +241,3 @@ 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 876f21e5f7..cd4a2c04fa 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -295,4 +294,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java index e175d3fe86..ae1099b5f3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -208,4 +207,3 @@ 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 971173c40e..1517bc8e48 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -307,4 +306,3 @@ 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 1de2a7a227..1460657ef9 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 3654b2c079..db0354cab0 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java index 677aaf39d1..3968e44842 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -268,4 +267,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java index 0de220d329..979803385a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -208,4 +207,3 @@ 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 97526deff3..17d33e880e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -244,4 +243,3 @@ 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 d18aed2473..8f3ad07f2a 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -372,4 +371,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java index 1908544a3e..c3e9ed6610 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -333,4 +332,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java index 241400ea58..998d056acc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java index f694638dd2..00a4a2980b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java index 13d9b61931..8027851daf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java index ccbaf3e00f..3f8cf52887 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -272,4 +271,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java index 35ac45d75d..0b4fb34a17 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java index 5fe928a004..1b712bea4a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -454,4 +453,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java index 859e867e48..6436ce18f9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -279,4 +278,3 @@ 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 adf1fb286a..d42e5d0f09 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -405,4 +404,3 @@ 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 79d15e3166..e54ca6207f 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -238,4 +237,3 @@ 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 649782d1d0..12cca45202 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -300,4 +299,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequest.java index f1dbc8991f..4e383f7900 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequest.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -339,4 +338,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestList.java index 379d68f41e..93ce6f5c3f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpec.java index 88c1c86c3f..8de06175e3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -476,4 +475,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatus.java index 187047f9be..89ad9b3456 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodCertificateRequestStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -342,4 +341,3 @@ 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 ebed432d48..436ec9a4b5 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -318,4 +317,3 @@ 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 3a9fe99446..1e322b3a86 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 f7cf9975db..2401a7a5db 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -360,4 +359,3 @@ 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 772022d3da..6536ff9255 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java index f19cc3c2fa..02cacc21ff 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java index b27672f782..ad86e370c3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java index 74b153454a..e14e62d083 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java index d52d2eae83..570f135f22 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -260,4 +259,3 @@ 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 0e79a45288..3455cd6b27 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -310,4 +309,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java index 340e419798..3e66adc4cd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java index 91fd02fa71..084e5c8bcc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -344,4 +343,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java index bd0358e9c2..53809a7c2a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java index cb60596fae..e0bbd084b3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java index 37e45657ec..481dd476be 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java index 5c37c7cf3a..594c4b548c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -360,4 +359,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java index 4238b30bde..512a4396ae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3CELDeviceSelector.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -215,4 +214,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java index 34462600dc..8b13bab781 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceSelector.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java index b8b5b5041e..53ed312400 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -303,4 +302,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java index 1eb8b9da59..710a0942ad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -307,4 +306,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java index 8a3bdae51a..5e53bce7fa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java index bfb590f094..7ba66eca59 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -247,4 +246,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java index 28e29c33c8..6bd056da23 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -350,4 +349,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java index ab1ac4cc70..2a2af4843c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -416,4 +415,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java index e732e143a8..d267c3cdc3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -270,4 +269,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java index 076d0cb6af..fc2efb2174 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -208,4 +207,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java index 847173c7e1..6073828258 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -575,4 +574,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java index 4ebb7a0acd..f259f70893 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -215,4 +214,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java index 1bccff2a66..0690d58693 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -282,4 +281,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java index 1640bbe769..5a02706687 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -276,4 +275,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java index aeeacb639d..05881ac94d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -216,4 +215,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java index a52ccc9197..e3fb5e2f57 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -307,4 +306,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java index a663f846e9..64308f5423 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java index 814508c4fe..e984817859 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java index 50b6b9a00a..c4bb361472 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -216,4 +215,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSet.java index e6759d2d95..3f6c93c122 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSet.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -253,4 +252,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Device.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Device.java index 87fdd90c88..a50f61fb58 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Device.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Device.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -247,4 +246,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfiguration.java index 863f9db310..b76c5eb404 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -288,4 +287,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResult.java index 30171f13ab..4e6b358bba 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResult.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -280,4 +279,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttribute.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttribute.java index 898223ad36..bb5815c503 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttribute.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttribute.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -292,4 +291,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacity.java index 0804adc2d8..d098de7e5f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacity.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -248,4 +247,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaim.java index 64e882b7fa..3394d7a6a2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaim.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -330,4 +329,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfiguration.java index 1e5f271a1d..6cbfd89479 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -251,4 +250,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClass.java index c2c00b79b9..f5155e3be3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClass.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -307,4 +306,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguration.java index c53fbce0a8..8998deb4b4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassList.java index 4bfb930f54..1232dd1cf4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpec.java index 69aa115fd7..db61684472 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -310,4 +309,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraint.java index 1bbf462b53..53497bf469 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraint.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -279,4 +278,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumption.java index eca501036d..ba502f5c0c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumption.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -253,4 +252,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java index d974789c79..6bdf1967a2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -513,4 +512,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResult.java index f22c00e6e6..b7e4116a1e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResult.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -530,4 +529,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java index 5ab89b3b67..db0a936c6d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java index 32b28c2a97..f77ad69ee8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -436,4 +435,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java index ba9c7d230a..8f0039881b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -303,4 +302,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java index 8f16a0ca35..7d7faf5952 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java index 6f64b72f0f..4524747d49 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java index 3f2ed2692f..05bbaec0f0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java index 7b5d4b531e..32c3bb904b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -215,4 +214,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java index 16d6c5a0b9..d2bfe78860 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -208,4 +207,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java index 4f56b3bad7..1ea505dc4b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java index 963aa4ea19..884b51b554 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java index be96efa6bb..d2d4085b0a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -360,4 +359,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java index f4c62b7801..ba6d90262e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java index df37404cde..2a5b6c9c41 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -372,4 +371,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java index 0f03c8b851..845b0a6266 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java index 7ba971a4ca..93df177c34 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -302,4 +301,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java index b5021e78c3..2e1f845f79 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java index cda31857ab..d7fe5541cc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -272,4 +271,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java index 59e463282d..901314b957 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java index 4ba43ad44d..7788b438b9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -454,4 +453,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java index 8e9994aaba..df7a8adbbc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -279,4 +278,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java index 0da391c043..4e392badfa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -405,4 +404,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java index d2df3ebb82..4ffdbba593 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -279,4 +278,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java index 23f60733fd..8a6255dd45 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -242,4 +241,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java index 7be80f65d1..716b77a654 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -238,4 +237,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java index 3d4a35bee6..9cc4721fe3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -300,4 +299,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java index 95f4a02014..bf950c0b50 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -305,4 +304,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaim.java index 053d850dda..db5ab330bf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaim.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -339,4 +338,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java index 2f0056e8fb..7d59d3d389 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -305,4 +304,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimList.java index 59823d505b..f01e1d859c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpec.java index 96ed0ba4b3..b683327d95 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatus.java index 89c55059c4..89d8e2a303 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -312,4 +311,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplate.java index be2157ef13..92872800a5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplate.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -307,4 +306,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateList.java index 0c17eab2b5..4b745359b4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpec.java index b25196a7f8..d5a79f9bc1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -247,4 +246,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePool.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePool.java index 010f9d330f..26bceec10e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePool.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePool.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -269,4 +268,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSlice.java index a59631981d..caf94a8407 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSlice.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -307,4 +306,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceList.java index c3b6e4e746..8d985765cc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpec.java index 3a894dd223..f3b3e3bce3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -463,4 +462,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java index 59d854e75c..cd3ed53c34 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java index fc9137ba18..43c886eacd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java index bbb2d8699a..79181f8a93 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -219,4 +218,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java index 6e5a430378..d92713cd13 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -230,4 +229,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java index 8e720cf433..38879973cc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java index 95ce539543..10b5804261 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -344,4 +343,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java index b964106afa..8d2712dd52 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java index d1e75f61df..b93adeba87 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -416,4 +415,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java index b7f8fd255e..fb74f01af0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -270,4 +269,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java index 6a5d22a7ba..27cb8459c3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -215,4 +214,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java index bd52fe4161..4599ba9df3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -282,4 +281,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java index 8e6fb4d3c7..258e188eb7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -276,4 +275,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java index 724ceed5f4..4ab024827b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -216,4 +215,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java index de48ce2613..8fce720f81 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -216,4 +215,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java index 01ce38a7fa..099b18b6c0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -253,4 +252,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java index 2932de003a..c7e336c0cc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -612,4 +611,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfiguration.java index 60213fff5d..8e7d800e2d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -288,4 +287,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResult.java index 0a49186b62..400a934031 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResult.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -280,4 +279,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttribute.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttribute.java index cb7e406df6..4431b7edc1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttribute.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttribute.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -292,4 +291,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacity.java index ad3bd888b4..9d06199c16 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacity.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -248,4 +247,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaim.java index 059ab52e54..71066dc8a0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaim.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -330,4 +329,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfiguration.java index 6e37804fd2..df44930fea 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -251,4 +250,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClass.java index 257a96154c..d781abb2b5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClass.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -307,4 +306,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java index 8bc3e9ad15..1d4476a06a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassList.java index 8d9580eabb..0f5d641be3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpec.java index 77f2cde16b..2ac2fe21d1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -310,4 +309,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraint.java index 5a9843e972..7f26500004 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraint.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -279,4 +278,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumption.java index 0fe29c8721..24c4a2dd10 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumption.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -253,4 +252,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequest.java index bce4c3961a..65e4eb836e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequest.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -299,4 +298,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResult.java index 2dbce1e157..b3a650452c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResult.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -530,4 +529,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java index a0180533d4..7651d31325 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java index 753ce03ed3..d976fb7d71 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -436,4 +435,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java index aa8553689d..4079ba421c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -303,4 +302,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java index 8f12f030de..8da7772534 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java index 64a21e187c..cb1833d2db 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -433,4 +432,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java index 689bb3c95e..4ca859a76a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -279,4 +278,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java index 924e51b270..0ab2babf23 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -242,4 +241,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java index 962e0b9c56..dff0b2157f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -339,4 +338,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java index 9692bd134b..19fdf13956 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -305,4 +304,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimList.java index af6c38a6a6..8411301d12 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpec.java index e28668d112..13cbbe6bc2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -210,4 +209,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatus.java index b86ce31a91..fb20e0c119 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatus.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -312,4 +311,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplate.java index 0cda01612f..f11479e8e0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplate.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -307,4 +306,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java index adea09b940..315532ef08 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpec.java index 50d854375c..f79f0aa562 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -247,4 +246,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java index 1191901b3c..d322230dd9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -269,4 +268,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java index febc62cfe5..71bde0358f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -307,4 +306,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java index 364b6e6f84..4ffbc6dcc5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } - diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java index ceac2ce410..f10749a0bb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -463,4 +462,3 @@ 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 df7ed54614..99ec00c873 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -275,4 +274,3 @@ 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 7e0e429604..def0d5eb06 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -275,4 +274,3 @@ 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 ac1dd504ff..7ea74724f3 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -275,4 +274,3 @@ 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 1004decdad..bf93a6d1bd 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 4020726f49..448806e03d 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 aa7bbc8b28..75e1d0f26b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -269,4 +268,3 @@ 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 9abc607c7b..79b47766a8 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -318,4 +317,3 @@ 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 858fd477ed..0fc1c862b2 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -334,4 +333,3 @@ 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 f46af5d332..cf484158d7 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -241,4 +240,3 @@ 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 fac353196d..54de24ba64 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -333,4 +332,3 @@ 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 db60d0baa9..5948cdf74b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -325,4 +324,3 @@ 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 beabd3831d..c9c86c2dc5 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -353,4 +352,3 @@ 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 f0a31bfccc..fe553dee55 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -396,4 +395,3 @@ 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 e07a9cd72b..d946b64f79 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -247,4 +246,3 @@ 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 8e957ed452..fbeed5adab 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -375,4 +374,3 @@ 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 786c7db3f2..4a41ef8de7 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -375,4 +374,3 @@ 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 5a5d2b6d5e..ea9bc56085 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -303,4 +302,3 @@ 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 9efcde31b2..d9f0388c4c 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -266,4 +265,3 @@ 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 d1e11dd9e1..5781f3fb75 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -275,4 +274,3 @@ 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 8665176475..36e8691e16 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -275,4 +274,3 @@ 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 d4e5d9ab43..8e1d2b085b 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 ee47ee68e8..a042dd249e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 2cf3930544..a9795c303e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 430d555b20..276b7b50c3 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -245,4 +244,3 @@ 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 4972463472..70e084563e 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 @@ -1,16 +1,15 @@ /* - * Kubernetes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: release-1.34 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - +Copyright 2025 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 java.util.Objects; @@ -575,4 +574,3 @@ public String toJson() { return JSON.getGson().toJson(this); } } -